/* Ballfin | Leonida Lottery. An in-game GTA V website (browser frame, fixed column over a GTA VI backdrop, flat
   buttons, title strips, sponsored adverts) in the Leonida Lottery's own cartoon look. Titles are Pricedown outlines
   (graphics, see media-src/toon/titles.py); text faces: Archivo, Leckerli One (brand), Covered By Your Grace (cheque),
   DSEG7 (displays), Arial (body, as on the game's sites). */
:root {
  --ink: #231a3a;
  --paper: #fffaf1;
  --cream: #fff6e3;
  --muted: #5d5470;
  --orange: #ec6533;
  --orange-2: #f28c3a;
  --sun: #f6b843;
  --gold: #ffd25c;
  --red: #e0502a;
  --azure: #2a97ea;
  --azure-d: #1868b8;
  --azure-dd: #0f4b8c;
  --teal: #2f9e8f;
  --body: Arial, Helvetica, sans-serif;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --script: "Leckerli One", "Brush Script MT", cursive;
  --pad: clamp(16px, 2.2vw, 26px);
  --sec: clamp(16px, 3.2vw, 40px);
  --col: 1240px;
}
* { box-sizing: border-box; }
html { background: #0e6fa6; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 14px/1.5 var(--body); background: transparent; }
/* the GTA VI backdrop (official Leonida Keys screenshot) stays put while the page scrolls */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #0e6fa6 url("/assets/bg-keys-2560.webp") center / cover no-repeat; }
@media (max-width: 1300px) { body::before { background-image: url("/assets/bg-keys-1280.webp"); } }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--azure-dd); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Pricedown title outlines */
.pd { display: block; height: 1em; width: auto; overflow: visible; }
.pd path { fill: var(--cream); stroke: var(--ink); stroke-width: 70px; stroke-linejoin: round; paint-order: stroke fill; }

/* ------------------------------------------------------------------ the in-game browser */
.chrome { position: relative; z-index: 2; }
.chrome__title { background: #0c0c0e; color: #cfcfd4; text-align: center; font: 12px/26px var(--body); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
.chrome__bar { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background: linear-gradient(#e6e6e6, #bdbdbd); border-bottom: 1px solid #8a8a8a; }
.cb { flex: none; width: 26px; height: 22px; border-radius: 4px; border: 1px solid #8d8d8d; background: linear-gradient(#fdfdfd, #d4d4d4); display: grid; place-items: center; color: #505050; font: bold 11px var(--body); }
.chrome__addr { flex: 1; min-width: 0; height: 22px; border-radius: 4px; border: 1px solid #8d8d8d; background: #fff; font: 12px/20px var(--body); padding: 0 9px; color: #1b1b1b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the prizes stand in the free space either side of the page */
.flank { display: none; }
@media (min-width: 1480px) {
  .flank { --gut: calc((100vw - var(--col)) / 2); display: block; position: fixed; top: 54%; z-index: 0; transform: translate(-50%, -50%); pointer-events: none; }
  .flank img { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(8, 22, 40, .45)); }
  .flank--l { left: calc(var(--gut) / 2); width: min(calc(var(--gut) * .62), 250px); }
  .flank--r { left: calc(100vw - var(--gut) / 2); width: min(calc(var(--gut) - 56px), 300px); }
}

/* ------------------------------------------------------------------ page column */
.site { position: relative; z-index: 1; width: min(var(--col), 100%); margin: 0 auto; background: var(--paper); box-shadow: 0 0 0 3px var(--ink), 0 30px 80px rgba(6, 18, 34, .45); }

/* ------------------------------------------------------------------ masthead: the poster */
.mast { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 16px var(--sec); background: linear-gradient(180deg, var(--orange) 0%, var(--orange-2) 55%, var(--sun) 100%); border-bottom: 3px solid var(--ink); overflow: hidden; }
.mast__bills img { position: absolute; width: 112px; height: auto; pointer-events: none; filter: drop-shadow(0 4px 0 rgba(35, 26, 58, .22)); }
.mast__bills .b1 { left: 47%; top: -14px; transform: rotate(-12deg); }
.mast__bills .b2 { left: 62%; bottom: -22px; transform: rotate(9deg) scaleX(-1); width: 96px; }
.mast__bills .b3 { left: 36%; bottom: -30px; transform: rotate(16deg); width: 84px; }
.brand { position: relative; display: flex; align-items: center; gap: clamp(10px, 1.4vw, 16px); color: inherit; text-decoration: none; }
.brand__badge { width: clamp(70px, 8.4vw, 108px); height: auto; flex: none; filter: drop-shadow(0 5px 0 rgba(35, 26, 58, .3)); }
.brand__text { display: flex; flex-direction: column; }
.brand__state { font: 800 clamp(12px, 1.2vw, 15px)/1 var(--display); font-stretch: 112%; letter-spacing: .26em; text-transform: uppercase; color: var(--cream); text-shadow: 0 2px 0 var(--ink); }
.brand__name { font: 400 clamp(46px, 5.6vw, 72px)/.95 var(--script); color: var(--red); -webkit-text-stroke: 5px var(--cream); paint-order: stroke fill; text-shadow: 0 6px 0 #7d2412; margin-top: 4px; }
.mast__right { position: relative; display: flex; align-items: center; gap: 18px; }
.mast__claim { text-align: right; }
.mast__k { margin: 0; font: 800 11px/1 var(--display); font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: #5b2410; }
.mast__v { margin: 6px 0 0; display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px; font-size: clamp(38px, 4.2vw, 56px); }
.mast__v .pd { filter: drop-shadow(0 4px 0 var(--ink)); }
.mast__ccy { font: 900 .3em/1 var(--display); font-stretch: 75%; letter-spacing: .06em; color: var(--cream); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; margin-bottom: .18em; }
.usd--ps5, .pname--ps5 { display: none; }
[data-prize="ps5"] .usd--gta, [data-prize="ps5"] .pname--gta { display: none; }
[data-prize="ps5"] .usd--ps5, [data-prize="ps5"] .pname--ps5 { display: block; }
.mast__act { display: flex; flex-direction: column; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: bold 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: #fff; text-decoration: none; border: 0; border-radius: 3px; padding: 12px 16px; background: var(--azure); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 0 0 2px var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--azure-d); }
.btn--hot { background: var(--red); }
.btn--hot:hover { background: #c23f1c; }
.btn.is-off { cursor: default; }
.btn.is-off:hover { background: var(--red); }
.ca { display: flex; align-items: stretch; padding: 0; border: 2px solid var(--ink); border-radius: 3px; background: var(--cream); font: 12px/1 var(--body); cursor: pointer; overflow: hidden; }
.ca:disabled { cursor: default; }
.ca__k { background: var(--ink); color: var(--gold); padding: 8px; font-weight: bold; letter-spacing: .1em; }
.ca__v { padding: 8px 10px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ nav and ticker */
.nav { display: flex; background: var(--azure-dd); border-bottom: 3px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button { flex: none; color: #fff; background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .16); padding: 14px 18px; font: bold 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.nav button:hover { background: var(--azure-d); }
.nav button[aria-current="true"] { background: var(--gold); color: var(--ink); }
.ticker { display: flex; background: var(--gold); border-bottom: 3px solid var(--ink); font: bold 12px/32px var(--body); overflow: hidden; }
.ticker__k { flex: none; background: var(--ink); color: var(--gold); padding: 0 12px; letter-spacing: .12em; text-transform: uppercase; }
.ticker__view { flex: 1; overflow: hidden; }
.ticker__row { display: inline-flex; white-space: nowrap; animation: tick 48s linear infinite; }
.ticker__row span { padding: 0 22px; border-right: 2px dotted rgba(35, 26, 58, .35); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ hero: the live draw */
.hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); border-bottom: 3px solid var(--ink); }
.stage { position: relative; overflow: hidden; padding: 18px clamp(8px, 1.8vw, 22px) 14px; background: radial-gradient(115% 80% at 46% 42%, #f8cf55 0%, #f2a73d 48%, #ea7a37 100%); border-right: 3px solid var(--ink); }
.stage__rays { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage__rays path { fill: #fff3c4; opacity: .2; }
.stage__bills img { position: absolute; width: 120px; height: auto; pointer-events: none; filter: drop-shadow(0 6px 0 rgba(35, 26, 58, .2)); }
.stage__bills .b1 { left: -18px; top: 30%; transform: rotate(-22deg); }
.stage__bills .b2 { right: -24px; top: 46%; transform: rotate(14deg) scaleX(-1); width: 104px; }
.stage__bills .b3 { left: 2%; bottom: 7%; transform: rotate(10deg); width: 96px; }
.stage__head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 8px; }
.stage h1 { margin: 0; font-size: clamp(40px, 4.2vw, 56px); line-height: 1; }
.stage h1 .pd { filter: drop-shadow(0 4px 0 var(--ink)); }
.round-chip { font: 800 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: var(--ink); padding: 8px 10px; border-radius: 3px; }
.round-chip b { font-weight: 900; color: #fff; }
.live { display: inline-flex; align-items: center; gap: 6px; font: bold 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--red); padding: 7px 8px; border-radius: 3px; box-shadow: 0 0 0 2px var(--ink); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.live.is-drawing { background: var(--azure-dd); }
.stage__status { flex-basis: 100%; width: fit-content; max-width: 100%; margin: 2px 0 0; font: bold 14px/1.3 var(--body); background: var(--cream); border: 2px solid var(--ink); border-radius: 3px; padding: 7px 11px; box-shadow: 0 3px 0 var(--ink); }
.stage__head .stage__status { flex: 0 1 auto; }
.stage__head::after { content: ""; order: 1; flex-basis: 100%; }
.stage__head .stage__status { order: 2; }
.machine { position: relative; z-index: 1; width: 100%; max-width: 660px; margin: 6px auto 0; aspect-ratio: 1200 / 1374; will-change: transform; }
.machine > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.toon-drum img { display: block; user-select: none; -webkit-user-drag: none; }

.side { display: grid; align-content: start; }
.panel { padding: 0 0 22px; border-bottom: 3px solid var(--ink); }
.panel:last-child { border-bottom: 0; }
.strip { margin: 0 0 16px; font: bold 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--azure-dd); padding: 11px var(--pad); border-bottom: 3px solid var(--ink); }
.strip--hot { background: var(--red); }
.strip--mint { background: var(--teal); }
.fine { margin: 12px var(--pad) 0; font-size: 12px; color: var(--muted); }

.prize { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 0 var(--pad); }
.prize__art { display: block; height: clamp(150px, 14vw, 200px); width: auto; filter: drop-shadow(0 8px 10px rgba(35, 26, 58, .28)); transform-origin: 50% 100%; }
.prize__art.is-swap { animation: swap .7s cubic-bezier(.22, 1, .36, 1); }
@keyframes swap { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.08) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.prize__name { margin: 0; font-size: clamp(40px, 4vw, 54px); line-height: 1; }
.prize__name .pd path { fill: var(--red); stroke-width: 60px; }
.prize__name .pd { filter: drop-shadow(0 4px 0 var(--ink)); }
.prize__sub { margin: 10px 0 0; color: var(--muted); }
.prize__usd { margin: 8px 0 0; }
.prize__usd b { font: 900 26px/1 var(--display); font-stretch: 80%; color: var(--azure-d); }
.odds { list-style: none; margin: 18px var(--pad) 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.odds__i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; font-size: 12px; color: var(--muted); }
.odds__i img { height: 44px; width: auto; flex: none; }
.odds__i b { display: block; font: 900 17px/1.1 var(--display); font-stretch: 80%; letter-spacing: .02em; color: var(--ink); }
.odds__i.is-on { background: #fff1c2; box-shadow: 0 3px 0 var(--ink); }

/* the pot as a kiosk jackpot sign: LED digits and an LED bar */
.jackpot { margin: 0 var(--pad); padding: 12px 14px 14px; background: #160f22; border: 3px solid var(--ink); border-radius: 8px; box-shadow: inset 0 0 0 2px #3a2c52, 0 4px 0 var(--ink); }
.jackpot__top { display: flex; justify-content: space-between; gap: 10px; font: 800 11px/1 var(--display); font-stretch: 112%; letter-spacing: .16em; text-transform: uppercase; color: #c98a3a; }
.jackpot__top b { color: #ffcf7a; font-weight: 900; }
.jackpot__num { position: relative; margin: 10px 0 12px; font: 700 clamp(40px, 4.4vw, 56px)/1 "DSEG7", monospace; text-align: right; }
.jackpot__num::before { content: "$"; position: absolute; left: 0; bottom: .06em; font: 900 .62em/1 var(--display); font-stretch: 75%; color: #ffb347; }
.jackpot__num .ghost { position: absolute; right: 0; color: #3a2416; }
.jackpot__num #pot { position: relative; color: #ffb347; text-shadow: 0 0 10px rgba(255, 150, 40, .55); }
.jackpot__bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; }
.jackpot__bar i { height: 14px; border-radius: 2px; background: #3a2416; }
.jackpot__bar i.on { background: #ffb347; box-shadow: 0 0 8px rgba(255, 150, 40, .7); }
.jackpot__bar i.part { background: linear-gradient(90deg, #ffb347 var(--f), #3a2416 var(--f)); }
.jackpot.is-full .jackpot__bar i { background: #ffd27a; }
.claims { list-style: none; margin: 12px var(--pad) 0; padding: 0; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.claims li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; background: #f4f0e6; border-radius: 4px; }
.claims b { color: #17796b; font: 900 14px/1.2 var(--display); font-stretch: 85%; }
.claims li.is-new { animation: flash 1.4s ease-out; }
@keyframes flash { from { background: var(--gold); } }

.find { display: flex; gap: 8px; margin: 0 var(--pad); }
.find input { flex: 1; min-width: 0; font: 14px var(--body); padding: 11px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; color: var(--ink); }
.find input::placeholder { color: #8b8399; }
.found { margin: 10px var(--pad) 0; min-height: 21px; font-weight: bold; }

/* ------------------------------------------------------------------ sections */
.sec { padding: clamp(26px, 4vw, 48px) var(--sec); border-bottom: 3px solid var(--ink); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 22px; }
.sec__title { margin: 0; display: grid; gap: 10px; font-size: clamp(42px, 5.4vw, 70px); line-height: 1; }
.sec__title .pd { filter: drop-shadow(0 5px 0 var(--ink)); }
.eyebrow { font: 800 12px/1 var(--display); font-stretch: 112%; letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.sample { margin-right: auto; align-self: flex-end; font: bold 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 2px dashed #b7ae9c; border-radius: 3px; padding: 6px 8px; }
.tabs { display: flex; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; box-shadow: 0 3px 0 var(--ink); }
.tabs button { background: #fff; border: 0; border-right: 2px solid var(--ink); padding: 9px 14px; font: bold 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected="true"] { background: var(--azure-dd); color: #fff; }

.board { border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 5px 0 var(--ink); }
.draws { width: 100%; border-collapse: collapse; font-size: 14px; }
.draws th { background: var(--azure-dd); color: #fff; text-align: left; font: bold 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 11px 14px; }
.draws td { padding: 9px 14px; border-top: 1px solid #e8e2d5; vertical-align: middle; }
.draws tbody tr:nth-child(even) td { background: #faf6ec; }
.draws tr.is-new td { animation: flash 2s ease-out; }
.draws .r { font: 900 18px/1 var(--display); font-stretch: 80%; }
.draws .w { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.draws .p { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; }
.draws .p img { height: 32px; width: auto; }
.draws .usd { font: 900 16px/1 var(--display); font-stretch: 85%; }
.draws .tx { margin-left: 8px; font-size: 12px; color: var(--azure-d); }
.ball { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--c); box-shadow: inset -5px -6px 0 rgba(35, 26, 58, .2); vertical-align: middle; }
.ball i { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #fffdf6; border: 2px solid var(--ink); font: 900 12px/1 var(--display); font-style: normal; }
.ball::after { content: ""; position: absolute; left: 6px; top: 5px; width: 9px; height: 5px; border-radius: 50%; background: #fff; transform: rotate(-38deg); }

/* sponsored adverts: type-only banners, each in its own trade's voice */
.ads { padding: 18px var(--sec) 24px; border-bottom: 3px solid var(--ink); background: #f4efe3; }
.ads__k { margin: 0 0 8px; font: bold 10px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #8b8399; }
.ads__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ad { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; border: 3px solid var(--ink); border-radius: 6px; min-height: 104px; overflow: hidden; }
.ad b { display: block; }
.ad span { position: relative; display: block; font: bold 13px/1.3 var(--body); margin-top: 4px; }
.ad small { position: relative; display: block; font-size: 11px; opacity: .8; margin-top: 3px; }
.ad--swamp { background: #1f3b2a; color: #ecdfa6; padding-top: 22px; }
.ad--swamp::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: repeating-linear-gradient(-45deg, #ffd25c 0 10px, #1a1a1a 10px 20px); }
.ad--swamp b { font: 900 27px/1 var(--display); font-stretch: 62%; letter-spacing: .03em; text-transform: uppercase; color: #ffe27a; }
.ad--keys { background: linear-gradient(180deg, #ff9fbd 0 64%, #ffd27a 64% 76%, #3fc1c9 76%); color: #10335a; }
.ad--keys b { font: 400 28px/1 var(--script); color: #0f4b8c; -webkit-text-stroke: 3px #fff6e3; paint-order: stroke fill; }
.ad--kiosk { background: var(--red); color: #fff3cf; padding-bottom: 22px; }
.ad--kiosk::after { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: repeating-conic-gradient(#fff3cf 0 25%, #231a3a 0 50%) 0 0 / 10px 10px; }
.ad--kiosk b { font: 900 28px/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: var(--gold); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }

/* how to play: four painted panels laid out like the box art */
.sec--how { background: var(--ink); }
.sec--how .eyebrow { color: var(--gold); }
.sec--how .sec__title .pd { filter: drop-shadow(0 5px 0 var(--red)); }
.comic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-areas: "a a a b b" "c c d d d"; gap: 12px; }
.comic .cel:nth-child(1) { grid-area: a; }
.comic .cel:nth-child(2) { grid-area: b; }
.comic .cel:nth-child(3) { grid-area: c; }
.comic .cel:nth-child(4) { grid-area: d; }
.cel { display: flex; flex-direction: column; margin: 0; border-radius: 4px; overflow: hidden; border: 3px solid #120c1e; background: var(--cream); }
.cel img { display: block; width: 100%; height: auto; }
.cel__cap { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 3px solid var(--ink); }
.cel__cap p { margin: 0; font-size: 14px; line-height: 1.4; }
.cel__cap b { display: block; font: 900 19px/1.1 var(--display); font-stretch: 80%; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 2px; }
.cel__no { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); font: 900 17px/1 var(--display); color: var(--ink);
  background: radial-gradient(circle at 50% 50%, #fffdf6 0 12px, var(--ink) 12px 14.5px, transparent 14.5px), var(--c, #f06c36); box-shadow: inset -6px -7px 0 rgba(35, 26, 58, .2); }
.cel:nth-child(1) .cel__no { --c: #2e9bea; }
.cel:nth-child(2) .cel__no { --c: #f6c435; }
.cel:nth-child(3) .cel__no { --c: #2fbfa8; }
.cel:nth-child(4) .cel__no { --c: #f06c36; }

/* our winners: the giant cheque */
.winners { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.cheque { margin: 0; transform: rotate(-1.5deg); filter: drop-shadow(0 10px 0 rgba(35, 26, 58, .2)); }
.cheque svg { display: block; width: 100%; height: auto; }
.chq-org { font: 900 32px/1 var(--display); font-stretch: 80%; letter-spacing: .08em; fill: var(--ink); }
.chq-script { font: 400 22px/1 var(--script); fill: #c2421f; }
.chq-lab { font: bold 14px/1 var(--body); letter-spacing: .1em; fill: #4d5a3e; }
.chq-hand { font-family: "Covered By Your Grace", "Marker Felt", cursive; fill: #1b2a6e; }
.chq-dollar { font: 900 34px/1 var(--display); font-stretch: 80%; fill: #4d5a3e; }
.chq-micr { font: 18px/1 "Courier New", monospace; letter-spacing: .14em; fill: #4d5a3e; }
.chq-stamp { font: 900 60px/1 var(--display); font-stretch: 75%; letter-spacing: .06em; fill: #d7392a; }
#chqStamp { transform-box: fill-box; transform-origin: center; }
#chqStamp.is-stamp { animation: stamp .5s cubic-bezier(.22, 1, .36, 1); }
@keyframes stamp { from { opacity: 0; transform: scale(1.8); } }
.lede { margin: 0 0 16px; font: 800 clamp(20px, 2vw, 25px)/1.2 var(--display); font-stretch: 85%; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 2px dashed #d5cdbd; }
.ledger b { font: 900 22px/1 var(--display); font-stretch: 80%; }
.winners .fine { margin: 14px 0 0; }

/* fine print */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); margin: 0; }
.rules div { padding: 14px 0 16px; border-top: 3px solid var(--ink); }
.rules dt { font: 900 20px/1.1 var(--display); font-stretch: 80%; letter-spacing: .03em; text-transform: uppercase; margin-bottom: 6px; }
.rules dd { margin: 0; font-size: 15px; line-height: 1.55; max-width: 62ch; }

/* footer */
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 32px; align-items: center; padding: 26px var(--sec) 30px; background: var(--ink); color: #e6e0f2; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__badge { width: 62px; height: auto; flex: none; }
.foot__brand p { margin: 0; font: 800 14px/1.35 var(--display); font-stretch: 90%; }
.foot__legal { margin: 0; font-size: 12px; line-height: 1.55; color: #b9b0cf; max-width: 72ch; }
.foot__links { display: flex; gap: 18px; }
.foot__links a { color: var(--gold); font: bold 13px var(--body); text-decoration: none; }
.foot__links a[aria-disabled="true"] { opacity: .55; }
.foot__links a[href]:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 3px solid var(--ink); }
  .machine { max-width: 600px; }
  .side { grid-template-columns: 1fr 1fr; }
  .side .panel:first-child { grid-column: 1 / -1; }
  .side .panel:nth-child(2) { border-right: 3px solid var(--ink); border-bottom: 0; }
  .side .panel:nth-child(3) { border-bottom: 0; }
  .winners { grid-template-columns: 1fr; }
  .cheque { max-width: 820px; }
}
@media (max-width: 820px) {
  .ads__row { grid-template-columns: 1fr; }
  .ad { min-height: 0; }
  .comic { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d d"; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .chrome__title { font-size: 11px; line-height: 22px; }
  .cb--x { display: none; }
  .mast { flex-direction: column; align-items: stretch; padding-top: 14px; padding-bottom: 16px; }
  .mast__right { justify-content: space-between; align-items: flex-end; }
  .mast__claim { text-align: left; }
  .mast__v { justify-content: flex-start; }
  .mast__act { align-items: flex-end; }
  .side { grid-template-columns: 1fr; }
  .side .panel:nth-child(2) { border-right: 0; border-bottom: 3px solid var(--ink); }
  .prize { grid-template-columns: 104px minmax(0, 1fr); }
  .prize__art { height: auto; width: 104px; }
  .draws .c-when, .draws .c-paid .tx { display: none; }
  .draws th, .draws td { padding: 8px 9px; }
  .draws .p img { display: none; }
  .comic { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .mast__right { flex-direction: column; align-items: stretch; }
  .mast__act { flex-direction: row; align-items: stretch; }
  .mast__act > * { flex: 1; }
  .ca__v { max-width: none; }
  .draws .c-paid { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__row { animation: none; }
  .prize__art.is-swap, #chqStamp.is-stamp, .claims li.is-new, .draws tr.is-new td { animation: none; }
}
