/* Lotto Afro — player site. Brand from the logo: leaf green, Africa blue, ball yellow/red/purple on white. */
:root {
  --green: #45B748; --green-dark: #2E8B3D; --green-soft: #E7F6E8; --blue: #1C449C; --blue-dark: #14337A; --blue-soft: #E8EEFA;
  --purple: #A24097; --yellow: #F9B233; --yellow-dark: #C98A12; --red: #E2242A; --ink: #14213D; --muted: #5B6478; --line: #E3E8F0;
  --bg: #FFFFFF; --surface: #F4F7FB; --surface-2: #EEF2F8; --radius: 18px; --shadow: 0 10px 30px rgba(20, 33, 61, .08); --max: 1120px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; } h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; } h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; } .muted { color: var(--muted); } .small { font-size: .875rem; } .tiny { font-size: .78rem; } .strong { font-weight: 700; } .center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 12px; z-index: 100; } .skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--green-dark); margin-bottom: 6px; }
.section { padding: 48px 0; } .section-alt { background: var(--surface); }
.grid { display: grid; gap: 16px; } .grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } .grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; } .between { justify-content: space-between; } .end { justify-content: flex-end; } .grow { flex: 1; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; } .card-soft { background: var(--surface); border-color: transparent; box-shadow: none; }
.stripe { height: 6px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(90deg, var(--green) 0 40px, var(--yellow) 40px 80px, var(--blue) 80px 120px, var(--red) 120px 160px, var(--purple) 160px 200px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; cursor: pointer; background: var(--blue); color: #fff; transition: transform .08s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--blue-dark); } .btn:active { transform: translateY(1px); }
.btn-green { background: var(--green-dark); color: #fff; } .btn-green:hover { background: #256F31; }
.btn-yellow { background: var(--yellow); color: var(--ink); } .btn-yellow:hover { background: #e6a324; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); } .btn-outline:hover { background: var(--blue-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); } .btn-ghost:hover { background: var(--surface); }
.btn-danger { background: var(--red); color: #fff; } .btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; } .btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.05rem; } .btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; }
label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); } input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .85rem; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--surface-2); color: var(--ink); }
.chip-green { background: var(--green-soft); color: var(--green-dark); } .chip-blue { background: var(--blue-soft); color: var(--blue); } .chip-red { background: #FDECEC; color: #B3191E; } .chip-yellow { background: #FFF3D6; color: var(--yellow-dark); } .chip-purple { background: #F3E6F2; color: var(--purple); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; animation: pulse 1.4s infinite; } @keyframes pulse { 50% { opacity: .35; } }
.badge-18 { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-weight: 900; font-size: .75rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; color: var(--blue); letter-spacing: -.01em; }
.logo svg { height: 44px; width: auto; display: block; } .logo .logo-mark { display: none; } .logo b { color: var(--green-dark); } @media (max-width: 520px) { .logo svg { height: 36px; } .logo .logo-mark { display: none; } .nav { gap: 8px; } .lang { font-size: .75rem; padding: 4px 22px 4px 8px; background-position: right 6px center; } .wallet-chip { padding: 5px 8px; font-size: .8rem; } }
.nav-links { display: flex; gap: 4px; margin-left: 8px; } .nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; } .nav-links a:hover, .nav-links a.active { background: var(--surface); text-decoration: none; color: var(--blue); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { min-height: 38px; padding: 4px 30px 4px 10px; width: auto; border-radius: 10px; font-weight: 700; font-size: .85rem; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314213D' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; }
.wallet-chip { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding: 6px 12px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: .9rem; } .wallet-chip small { font-weight: 600; font-size: .7rem; color: var(--muted); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; }
.drawer { display: none; } .drawer.open { display: block; border-top: 1px solid var(--line); padding: 10px 0 16px; } .drawer a, .drawer button { display: block; width: 100%; text-align: left; padding: 12px 8px; border: 0; background: none; font-weight: 600; color: var(--ink); border-radius: 10px; } .drawer a:hover { background: var(--surface); text-decoration: none; }
@media (max-width: 860px) { .nav-links, .nav-right .btn-play, .nav-right .wallet-chip { display: none; } .burger { display: inline-flex; align-items: center; justify-content: center; } }

/* hero */
.hero { background: radial-gradient(1200px 500px at 10% -10%, var(--green-soft), transparent 60%), radial-gradient(900px 500px at 100% 0, var(--blue-soft), transparent 55%), #fff; padding: 44px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; } @media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-copy { display: contents; } .hero-copy .jackpot-card { order: -2; margin-bottom: 14px; } .hero-copy .hero-cta { order: -1; margin: 0 0 14px !important; } .hero-copy h1 { order: 0; } }
.hero h1 span { color: var(--green-dark); display: block; } .hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.jackpot-card { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 20px 40px rgba(28,68,156,.25); }
.jackpot-card .kicker { color: #CFE0FF; } .jackpot-amount { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; color: var(--yellow); line-height: 1; margin: 4px 0 4px; } .jackpot-local { font-size: .9rem; opacity: .85; margin-bottom: 10px; }
.countdown { display: flex; gap: 8px; } .countdown div { flex: 1; background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px 4px; text-align: center; } .countdown b { display: block; font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; } .countdown span { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.countdown.light div { background: var(--surface); color: var(--ink); }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.balls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ball { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; color: var(--ink); background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.95) 0, rgba(255,255,255,.35) 14%, rgba(255,255,255,0) 26%), radial-gradient(circle at 50% 50%, #ffd36b 0, var(--yellow) 55%, #c98a12 100%); box-shadow: inset -3px -4px 8px rgba(0,0,0,.18), 0 3px 6px rgba(0,0,0,.15); border: 2px solid #fff; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.ball.b2 { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.9) 0, rgba(255,255,255,.3) 14%, rgba(255,255,255,0) 26%), radial-gradient(circle at 50% 50%, #7ad37c 0, var(--green) 55%, #2b8b3a 100%); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ball.b3 { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.9) 0, rgba(255,255,255,.3) 14%, rgba(255,255,255,0) 26%), radial-gradient(circle at 50% 50%, #c77bbf 0, var(--purple) 55%, #6f2a68 100%); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ball.b4 { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.9) 0, rgba(255,255,255,.3) 14%, rgba(255,255,255,0) 26%), radial-gradient(circle at 50% 50%, #5f83d6 0, var(--blue) 55%, #10275c 100%); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ball.bonus { background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.9) 0, rgba(255,255,255,.3) 14%, rgba(255,255,255,0) 26%), radial-gradient(circle at 50% 50%, #f36a6e 0, var(--red) 55%, #9c1216 100%); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ball.sm { width: 34px; height: 34px; font-size: .85rem; } .ball.lg { width: 56px; height: 56px; font-size: 1.25rem; }
.plus { font-weight: 900; color: var(--muted); padding: 0 2px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; } @media (max-width: 700px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.trust div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } .trust b { display: block; font-size: 1.05rem; } .trust span { color: var(--muted); font-size: .8rem; }

/* game cards */
.game-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid var(--accent, var(--green)); }
.game-card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); font-size: 1.4rem; }
.game-card h3 { font-size: 1.25rem; } .game-card .price { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }

/* play page */
.play-head { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.play-head .body { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; } @media (max-width: 700px) { .play-head .body { grid-template-columns: 1fr; } }
.play-jackpot { text-align: right; } .play-jackpot .amt { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--green-dark); line-height: 1; } @media (max-width: 700px) { .play-jackpot { text-align: left; } }
.play-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 18px; align-items: start; } @media (max-width: 860px) { .play-grid { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 84px; }
.numgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; } @media (max-width: 420px) { .numgrid { grid-template-columns: repeat(6, 1fr); gap: 6px; } }
.numgrid .num { min-height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; transition: transform .08s, background .12s; }
.numgrid .num:hover { background: var(--surface); } .numgrid .num.on { background: var(--yellow); border-color: var(--yellow-dark); color: var(--ink); transform: scale(1.06); box-shadow: 0 3px 8px rgba(249,178,51,.45); } .numgrid .num.on.bonus { background: var(--red); color: #fff; border-color: #9c1216; }
.numgrid .num[disabled] { opacity: .4; cursor: not-allowed; }
.slip-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); } .slip-item:last-child { border-bottom: 0; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; font-size: 1.1rem; } .slip-total b { font-size: 1.5rem; }
.banner { border-radius: 14px; padding: 12px 14px; font-weight: 600; margin: 12px 0; } .banner-red { background: #FDECEC; color: #B3191E; } .banner-yellow { background: #FFF3D6; color: var(--yellow-dark); } .banner-green { background: var(--green-soft); color: var(--green-dark); } .banner-blue { background: var(--blue-soft); color: var(--blue); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; } th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); } td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; } tr:last-child td { border-bottom: 0; } .num-col { text-align: right; font-variant-numeric: tabular-nums; }
.fixture { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .fixture:last-child { border-bottom: 0; } .fixture .idx { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: var(--muted); }
.fixture.jm { background: linear-gradient(90deg, #FFF3D6, transparent); border-radius: 12px; padding: 12px 8px; margin-top: 6px; border: 1px dashed var(--yellow-dark); } .fixture.jm .idx { background: var(--yellow); color: var(--ink); }
.marks { display: flex; gap: 6px; } .mark { width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; } .mark.on { background: var(--green); color: #fff; border-color: var(--green-dark); } .mark.res { background: var(--blue); color: #fff; border-color: var(--blue-dark); cursor: default; }
.teams b { display: block; } .teams span { font-size: .78rem; color: var(--muted); }

/* scratch */
.scratch-art { border-radius: 22px; padding: 28px 22px; color: #fff; text-align: center; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.scratch-art.savanna { background: radial-gradient(circle at 50% 0%, #b8631f, #6b2d0b 60%, #3d1806); } .scratch-art.coast { background: radial-gradient(circle at 50% 0%, #2d5fc9, #1C449C 55%, #0b1f4d); }
.scratch-art .kick { letter-spacing: .3em; font-size: .7rem; text-transform: uppercase; color: var(--yellow); } .scratch-art h2 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 3px 0 rgba(0,0,0,.3); }
.scratch-art .top { display: inline-block; background: var(--yellow); color: var(--ink); padding: 8px 18px; border-radius: 999px; font-weight: 900; margin-top: 8px; }
.scratch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; } .scratch-grid.six { grid-template-columns: repeat(6, 1fr); } @media (max-width: 480px) { .scratch-grid.six { grid-template-columns: repeat(3, 1fr); } }
.cell { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; cursor: pointer; border: 0; background: repeating-linear-gradient(45deg, #c9a24b 0 8px, #b08a36 8px 16px); color: transparent; transition: transform .1s; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); } .cell:hover { transform: scale(1.04); }
.cell.open { background: #fff; color: var(--ink); cursor: default; border: 1px solid var(--line); } .cell.open.hit { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); box-shadow: 0 0 0 3px rgba(69,183,72,.3); } .cell.open small { font-size: .7rem; color: var(--muted); font-weight: 600; } .cell.open.hit small { color: var(--green-dark); }
.winning-bar { display: flex; gap: 8px; justify-content: center; align-items: center; background: linear-gradient(90deg, var(--yellow), #ffd66b, var(--yellow)); border-radius: 14px; padding: 10px; margin-top: 8px; }
.scratch-result { margin-top: 14px; padding: 16px; border-radius: 14px; text-align: center; font-weight: 800; font-size: 1.2rem; } .scratch-result.won { background: var(--green-soft); color: var(--green-dark); } .scratch-result.lost { background: var(--surface); color: var(--ink); }

/* account */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; } .tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; } .tabs button.active { color: var(--blue); border-color: var(--blue); }
.stat { padding: 14px; border-radius: 14px; background: var(--surface); } .stat b { display: block; font-size: 1.4rem; } .stat span { color: var(--muted); font-size: .8rem; }
.list-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; } .list-item:last-child { border-bottom: 0; }
.balance-big { font-size: 2.4rem; font-weight: 900; color: var(--green-dark); line-height: 1; }

/* content pages */
.prose { max-width: 760px; } .prose h2 { font-size: 1.4rem; margin-top: 1.6em; color: var(--blue); } .prose h3 { margin-top: 1.2em; } .prose ul { padding-left: 1.2em; } .prose li { margin: .3em 0; } .prose a { font-weight: 600; } .prose blockquote { border-left: 4px solid var(--yellow); margin: 1em 0; padding: 6px 14px; background: var(--surface); border-radius: 0 10px 10px 0; }
.page-head { background: linear-gradient(135deg, var(--blue-soft), #fff); padding: 34px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }

/* footer */
.site-footer { background: #0F1E44; color: #C9D3EA; margin-top: 60px; padding: 44px 0 26px; } .site-footer a { color: #fff; } .site-footer h4 { color: var(--yellow); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 20px; } @media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } } .site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li { margin: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* modal & toast */
.modal { position: fixed; inset: 0; background: rgba(15,30,68,.55); display: grid; place-items: center; z-index: 60; padding: 16px; } .modal[hidden] { display: none; }
.modal .card { width: min(480px, 100%); max-height: 92vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 70; box-shadow: var(--shadow); max-width: min(92vw, 520px); } .toast.err { background: var(--red); } .toast.ok { background: var(--green-dark); } .toast[hidden] { display: none; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }
.code-big { font-family: ui-monospace, monospace; font-size: 1.6rem; letter-spacing: .3em; font-weight: 900; color: var(--blue); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; word-break: break-all; }
.steps { counter-reset: s; } .step { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0; } .step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.empty { text-align: center; color: var(--muted); padding: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* top utility bar (as on national-lottery sites) */
.topbar { background: var(--green-dark); color: #fff; font-size: .8rem; } .topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 32px; gap: 12px; } .topbar a { color: #fff; font-weight: 600; } .topbar .b18 { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; } .topbar .b18 span { border: 2px solid #fff; border-radius: 999px; padding: 0 6px; font-size: .7rem; } @media (max-width: 600px) { .topbar .hide-m { display: none; } }
.promo { background: linear-gradient(90deg, var(--blue), var(--blue-dark)); color: #fff; } .promo .wrap { display: flex; gap: 20px; align-items: center; min-height: 44px; overflow: hidden; font-weight: 700; font-size: .95rem; } .promo .wrap span { white-space: nowrap; } .promo .wrap span + span::before { content: '•'; color: var(--yellow); margin-right: 20px; } @media (max-width: 700px) { .promo .wrap span:nth-child(n+2) { display: none; } }
.results-table { overflow-x: auto; } .results-table table { min-width: 560px; } .results-table td, .results-table th { padding: 12px 8px; } .results-table .game-name { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; } .results-table .num-col { font-weight: 700; }
.cause { display: flex; gap: 14px; align-items: flex-start; } .cause .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--green-soft); flex: none; }

/* hero slider (national-lottery style banner) */
.slider { position: relative; background: linear-gradient(120deg, #2E8B3D 0%, #45B748 45%, #1C449C 100%); color: #fff; overflow: hidden; }
.slides { position: relative; min-height: 420px; } .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; } .slide.on { opacity: 1; pointer-events: auto; }
.slide .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; min-height: 420px; padding-top: 24px; padding-bottom: 40px; }
.slide h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.2rem); } .slide .lead { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 540px; }
.slide .art { max-width: 460px; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.25)); } .slide .art svg { width: 100%; height: auto; }
.slide .chip { background: rgba(255,255,255,.18); color: #fff; } .slide .btn-outline { background: transparent; color: #fff; border-color: #fff; } .slide .btn-outline:hover { background: rgba(255,255,255,.12); }
.slide .btn-yellow { color: var(--ink); }
.slide .jackpot-card { background: rgba(11,21,48,.35); box-shadow: none; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.slider-nav { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; } .slider-nav button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; } .slider-nav button.on { background: #fff; width: 26px; border-radius: 6px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 1.2rem; cursor: pointer; z-index: 2; } .slider-arrow:hover { background: rgba(255,255,255,.35); } .slider-arrow.l { left: 10px; } .slider-arrow.r { right: 10px; }
@media (max-width: 860px) { .slides { min-height: 0; } .slide { position: relative; display: none; opacity: 1; pointer-events: auto; } .slide.on { display: block; } .slide .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 16px; padding-bottom: 44px; gap: 10px; } .slide .art { max-width: 240px; order: -1; } .slide h1 { font-size: 1.7rem; } .slide .lead { font-size: 1rem; } .slider-arrow { display: none; } }
.hero-below { padding: 22px 0 0; }

/* winners wall */
.winners { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .winners .wrap { display: flex; align-items: center; gap: 14px; min-height: 48px; overflow: hidden; }
.winners .lbl { flex: none; font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); } .ticker { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: inline-flex; gap: 40px; animation: ticker 40s linear infinite; padding-right: 40px; } .ticker-track span { font-size: .9rem; } .ticker-track b { color: var(--green-dark); } .ticker-track:hover { animation-play-state: paused; } @keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.winner-card { display: flex; align-items: center; gap: 12px; } .winner-card .amt { font-weight: 900; color: var(--green-dark); font-size: 1.1rem; white-space: nowrap; }
/* live draw */
.live-stage { background: radial-gradient(900px 400px at 50% 0, #17402A, #0B1530 70%); color: #fff; border-radius: 22px; padding: 28px 18px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.live-stage .balls { justify-content: center; gap: 12px; min-height: 64px; } .live-stage .ball.lg { width: 60px; height: 60px; font-size: 1.35rem; opacity: 0; transform: translateY(-40px) scale(.6); animation: drop .6s cubic-bezier(.2,.9,.3,1.3) forwards; } @keyframes drop { to { opacity: 1; transform: none; } }
.live-stage .slot { width: 60px; height: 60px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); display: inline-block; }
.live-stage h1 { color: #fff; } .live-stage .kicker { color: #FFD070; }
.pulse-live { display: inline-flex; align-items: center; gap: 8px; background: rgba(226,36,42,.2); color: #FF9A9E; border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .8rem; }
/* sticky phone bar */
.sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(20,33,61,.08); }
.sticky-bar .in { display: flex; align-items: center; gap: 10px; } .sticky-bar .amt { font-weight: 900; color: var(--green-dark); font-size: 1.1rem; line-height: 1; } .sticky-bar .sub { font-size: .72rem; color: var(--muted); }
@media (max-width: 860px) { .sticky-bar.on { display: block; } body.has-sticky { padding-bottom: 70px; } }
/* motion */
.reveal .ball { opacity: 0; transform: scale(.5); animation: pop .45s cubic-bezier(.2,.9,.3,1.3) forwards; } @keyframes pop { to { opacity: 1; transform: none; } }
.countup { font-variant-numeric: tabular-nums; }
.confetti-wrap { position: relative; overflow: hidden; } .cf { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; animation: cfall linear forwards; } @keyframes cfall { to { transform: translateY(240px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .reveal .ball, .live-stage .ball.lg { animation: none; opacity: 1; transform: none; } }

/* scratch cells: the big five behind the numbers */
.cell.open { position: relative; overflow: hidden; } .cell.open > span, .cell.open > small { position: relative; z-index: 1; } .cell.open > span { text-shadow: 0 1px 0 #fff, 0 0 8px #fff; }
.cell-art { position: absolute; inset: 6%; width: 88%; height: 88%; opacity: .32; z-index: 0; pointer-events: none; } .cell.open.hit .cell-art { opacity: .5; }

/* ---- scratch card face (shared with the console generator) */
.tile-art { width: 1.6em; height: 1.6em; vertical-align: middle; }
.sc-wrap { position: relative; }
.sc-face { --bg: #1c8a3f; --bg2: #04351a; --accent: #F9B233; --ink: #14213D; position: relative; overflow: hidden; border-radius: 22px; color: #fff; background: radial-gradient(120% 70% at 50% 0%, var(--bg), var(--bg2) 85%); box-shadow: 0 22px 50px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.12); padding: 18px 18px 0; font-family: var(--font); aspect-ratio: 3 / 4.35; display: flex; flex-direction: column; }
.sc-face > * { position: relative; z-index: 1; }
.sc-decor { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 0 !important; pointer-events: none; }
.sc-price { position: absolute; left: 0; top: 0; background: var(--red); color: #fff; font-weight: 900; padding: 6px 16px; border-radius: 22px 0 14px 0; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.sc-banner { margin: 22px auto 0; width: 68%; text-align: center; background: linear-gradient(180deg, #fff2b0, var(--accent) 55%, #c98a12); color: var(--ink); font-weight: 900; letter-spacing: .28em; font-size: .78rem; padding: 6px 10px; clip-path: polygon(4% 0, 96% 0, 100% 50%, 96% 100%, 4% 100%, 0 50%); text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.sc-title { color: #fff; text-align: center; margin: 8px 0 0; font-size: clamp(1.6rem, 5.5vw, 2.5rem); font-weight: 900; letter-spacing: -.02em; text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.35); line-height: 1.05; }
.sc-mid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: center; gap: 6px; margin-top: 8px; flex: 1; min-height: 120px; }
.sc-badge { justify-self: start; width: 100%; max-width: 118px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #f3e9c7 70%, #e2c97a); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 0 0 3px var(--accent); transform: rotate(-8deg); }
.sc-badge span { font-size: .6rem; font-weight: 800; line-height: 1.15; text-transform: lowercase; } .sc-badge-icon { width: 46%; height: 46%; margin-top: 4px; }
.sc-mascot { justify-self: center; width: 100%; max-width: 150px; aspect-ratio: 1; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); animation: mascot 4s ease-in-out infinite; } .sc-mascot svg { width: 100%; height: 100%; } @keyframes mascot { 50% { transform: translateY(-6px) rotate(2deg); } }
.sc-ribbons { justify-self: end; width: 100%; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; } .sc-rib-head { color: var(--red); font-weight: 900; text-transform: uppercase; font-size: .62rem; letter-spacing: .08em; text-shadow: 0 1px 0 #fff, 0 0 6px #fff; transform: rotate(-6deg); margin-right: 8px; }
.sc-ribbon { background: linear-gradient(90deg, var(--red), #ff6b3d); color: #fff; font-weight: 900; font-size: .78rem; padding: 4px 12px 4px 16px; clip-path: polygon(10% 0, 100% 0, 100% 100%, 10% 100%, 0 50%); transform: rotate(-6deg); box-shadow: 0 4px 10px rgba(0,0,0,.35); white-space: nowrap; } .sc-ribbon:nth-child(3) { font-size: .72rem; } .sc-ribbon:nth-child(4) { font-size: .68rem; }
.sc-total { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute !important; left: 6px; top: 34%; height: 40%; color: var(--red); font-weight: 900; font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 0 #fff, 0 0 6px #fff; z-index: 2 !important; }
.sc-play { margin: 6px 0 0; padding: 0 0 8px 20px; }
.sc-winbar { display: flex; gap: 6px; align-items: center; justify-content: center; background: linear-gradient(180deg, #fff2b0, var(--accent) 55%, #c98a12); border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; box-shadow: 0 4px 10px rgba(0,0,0,.3); } .sc-winlbl { font-size: .58rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-right: 4px; }
.sc-winnum { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); font-weight: 900; display: grid; place-items: center; font-size: .85rem; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); } .sc-winnum.cover { background: repeating-linear-gradient(45deg, #9a9a9a 0 6px, #c4c4c4 6px 12px); color: #444; }
.sc-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 7px; }
.sc-cell { position: relative; aspect-ratio: 1; border-radius: 14px; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; overflow: hidden; }
.sc-cell.cover { cursor: pointer; background: radial-gradient(circle at 40% 30%, rgba(255,255,255,.35), transparent 50%), repeating-linear-gradient(45deg, #a0a0a0 0 6px, #cfcfcf 6px 12px); box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.4); transition: transform .12s; } .sc-cell.cover:hover { transform: scale(1.04); } .sc-cell.cover.static { cursor: default; }
.sc-cover { width: 74%; height: 74%; opacity: .95; } .sc-here { position: absolute; bottom: 5px; left: 0; right: 0; text-align: center; font-size: .55rem; text-transform: uppercase; letter-spacing: .08em; color: #333; font-weight: 800; text-shadow: 0 1px 0 #fff; }
.sc-grid { container-type: inline-size; } @container (max-width: 400px) { .sc-here { font-size: .44rem; letter-spacing: .02em; bottom: 3px; } } @container (max-width: 300px) { .sc-here { font-size: .38rem; letter-spacing: 0; } }
.sc-cell.open { background: radial-gradient(circle at 50% 30%, #fff, #f1ede0); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.25); animation: cellIn .45s cubic-bezier(.2,1.4,.4,1); } @keyframes cellIn { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }
/* the revealed symbol jumps out of the cell, swells past its size and settles, like the mascot above the grid */
@keyframes symPop { 0% { transform: scale(.4) translateY(10px); opacity: 0; } 45% { transform: scale(1.32) translateY(-6px); opacity: 1; } 70% { transform: scale(.94) translateY(1px); } 85% { transform: scale(1.06); } 100% { transform: scale(1) translateY(0); } }
.sc-cell.open .sc-sym { animation: symPop .8s cubic-bezier(.22,1,.36,1) both; transform-origin: 50% 60%; }
.sc-leg-note { font-style: normal; font-weight: 600; opacity: .75; text-transform: none; letter-spacing: 0; }
.sc-cell.open.hit { background: radial-gradient(circle at 50% 30%, #fff, var(--green-soft)); box-shadow: inset 0 0 0 3px var(--green), 0 0 0 4px rgba(69,183,72,.35), 0 6px 14px rgba(0,0,0,.3); animation: cellIn .45s cubic-bezier(.2,1.4,.4,1), symwin 1s ease-in-out .5s infinite; } @keyframes symwin { 50% { transform: scale(1.06); } }
.sc-cell .sc-sym { width: 62%; height: 62%; } .sc-cell .sc-cell-art { position: absolute; inset: 8%; width: 84%; height: 84%; opacity: .28; } .sc-cell .sc-num { position: relative; font-size: clamp(1rem, 4vw, 1.6rem); text-shadow: 0 1px 0 #fff, 0 0 8px #fff; } .sc-cell.open small { position: relative; font-size: .62rem; font-weight: 800; color: var(--green-dark); margin-top: 1px; }
.sc-grid[style*="--cols:4"] .sc-cell.cover .sc-cover, .sc-grid[style*="--cols:3"] .sc-cell.cover .sc-cover { width: 82%; height: 82%; }
.sc-coins { width: 100%; height: 56px; display: block; margin-top: auto; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; background: #fff; color: var(--ink); margin: 0 -18px; padding: 8px 18px 10px; font-size: .7rem; font-family: ui-monospace, Menlo, monospace; } .sc-barcode { display: inline-block; width: 140px; height: 22px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px); }
.sc-buy { position: absolute; left: 0; right: 0; bottom: 21%; display: grid; place-items: center; z-index: 3; } .sc-buy .btn { box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.35); transform: scale(1.08); }
.sc-face.compact { border-radius: 14px; padding: 10px 10px 0; font-size: .7rem; } .sc-face.compact .sc-title { font-size: 1.1rem; } .sc-face.compact .sc-banner { margin-top: 12px; font-size: .5rem; padding: 3px 6px; } .sc-face.compact .sc-badge span { font-size: .42rem; } .sc-face.compact .sc-ribbon { font-size: .5rem; padding: 2px 8px 2px 10px; } .sc-face.compact .sc-rib-head { font-size: .42rem; } .sc-face.compact .sc-total { font-size: .42rem; } .sc-face.compact .sc-here { font-size: .4rem; } .sc-face.compact .sc-coins { height: 30px; } .sc-face.compact .sc-foot { margin: 0 -10px; padding: 4px 10px 6px; font-size: .5rem; } .sc-face.compact .sc-barcode { width: 70px; height: 12px; } .sc-face.compact .sc-price { font-size: .7rem; padding: 3px 9px; } .sc-face.compact .sc-mid { min-height: 60px; } .sc-face.compact .sc-winnum { width: 18px; height: 18px; font-size: .5rem; } .sc-face.compact .sc-winlbl { font-size: .4rem; } .sc-face.compact .sc-play { padding-left: 12px; } .sc-face.compact .sc-grid { gap: 4px; } .sc-face.compact .sc-cell { border-radius: 8px; } .sc-face.compact .sc-cell.open small { font-size: .42rem; }
@media (max-width: 860px) { .sc-layout { grid-template-columns: 1fr; } .sc-face { aspect-ratio: auto; } .sc-mid { min-height: 100px; } }
@media (prefers-reduced-motion: reduce) { .sc-mascot { animation: none; } .sc-cell.open.hit { animation: none; } .sc-cell.open .sc-sym, .sc-cell.open.hit .sc-sym { animation: none; } }

/* template-specific card details (base idea of the printed originals) */
.tpl-savanna .sc-cell { border-radius: 50%; } .tpl-savanna .sc-cell.cover { background: radial-gradient(circle at 40% 30%, #fff2b0, #f5c542 45%, #c8891a 75%, #7a4d08); box-shadow: 0 0 0 3px #7a4d08, 0 0 0 5px #f5c542, 0 8px 16px rgba(0,0,0,.4); } .tpl-savanna .sc-cell.cover .sc-cover { display: none; } .tpl-savanna .sc-cell.cover .sc-here { position: static; color: #5a3a05; font-size: .6rem; text-shadow: none; }
.tpl-savanna .sc-cell.open { box-shadow: 0 0 0 3px #7a4d08, 0 0 0 6px #f5c542, 0 6px 14px rgba(0,0,0,.35); background: radial-gradient(circle at 50% 30%, #fff, #f7e7c3); } .tpl-savanna .sc-cell .sc-cell-art { opacity: .55; inset: 12%; width: 76%; height: 76%; } .tpl-savanna .sc-cell.open.hit { box-shadow: 0 0 0 3px #2E8B3D, 0 0 0 6px #45B748, 0 0 22px rgba(69,183,72,.6); }
.tpl-savanna .sc-winbar { background: transparent; box-shadow: none; padding: 0; gap: 10px; } .tpl-savanna .sc-winnum { width: 42px; height: 42px; background: radial-gradient(circle at 40% 30%, #fff2b0, #f5c542 50%, #b8860b); color: #5a3a05; box-shadow: 0 0 0 2px #7a4d08, 0 0 0 4px #f5c542, 0 6px 12px rgba(0,0,0,.4); font-size: 1rem; } .tpl-savanna .sc-winnum.cover { color: #7a4d08; font-size: .75rem; }
.tpl-coast .sc-play { background: rgba(255,247,220,.92); border-radius: 14px; padding: 10px; margin: 6px 0 6px 18px; box-shadow: inset 0 0 0 2px #b8860b, 0 8px 18px rgba(0,0,0,.3); background-image: linear-gradient(rgba(184,134,11,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(184,134,11,.12) 1px, transparent 1px); background-size: 18px 18px; }
.tpl-coast .sc-cell { border-radius: 8px; } .tpl-coast .sc-cell.cover { background: radial-gradient(circle at 40% 30%, #fff2b0, #f5c542 45%, #b8860b 80%); box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 2px #7a4d08; } .tpl-coast .sc-cell.cover .sc-cover { width: 64%; height: 64%; } .tpl-coast .sc-cell.open { background: #fff9e8; box-shadow: inset 0 0 0 2px #7a4d08; } .tpl-coast .sc-cell .sc-sym { filter: contrast(1.05) saturate(1.05); } .tpl-coast .sc-cell.open.hit .sc-sym { filter: none; }
.tpl-coast .sc-mascot { max-width: 170px; } .tpl-coast .sc-title { font-family: Georgia, 'Times New Roman', serif; color: #E2242A; text-shadow: 0 2px 0 #fff, 0 4px 0 rgba(0,0,0,.25); letter-spacing: 0; }
.tpl-jungle .sc-title { font-family: Georgia, 'Times New Roman', serif; letter-spacing: 0; } .tpl-jungle .sc-cell { border-radius: 40% 40% 45% 45%; } .tpl-jungle .sc-cell.cover { background: radial-gradient(circle at 40% 30%, #ffe08a, #e0a83a 50%, #8a5a12); box-shadow: 0 8px 16px rgba(0,0,0,.4), inset 0 0 0 2px rgba(255,255,255,.35); } .tpl-jungle .sc-cell.cover .sc-cover { width: 86%; height: 86%; }
.tpl-gold .sc-cell { border-radius: 50%; } .tpl-gold .sc-cell.cover { background: radial-gradient(circle at 40% 30%, #fff2b0, #f5c542 50%, #7a4d08); box-shadow: 0 0 0 2px #7a4d08, 0 8px 16px rgba(0,0,0,.45); } .tpl-gold .sc-cell.cover .sc-cover { width: 88%; height: 88%; } .tpl-gold .sc-cell.cover .sc-here { display: none; }

/* phone: wide tables scroll inside their card instead of the page */
@media (max-width: 600px) { .results-table, .table-wrap table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .results-table tbody, .results-table thead { display: table; width: 100%; min-width: 520px; } .tabs { overflow-x: auto; scrollbar-width: none; } }

/* ---- scratch machine: coats, control bar */
.sc-cell.coat { cursor: pointer; touch-action: none; background: radial-gradient(circle at 50% 30%, #fff, #f1ede0); box-shadow: 0 6px 14px rgba(0,0,0,.35), inset 0 0 0 2px rgba(0,0,0,.08); }
.sc-cell .sc-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; color: var(--ink); }
.sc-cell.coat .sc-under .sc-sym { width: 62%; height: 62%; } .sc-cell.coat .sc-under .sc-cell-art { position: absolute; inset: 8%; width: 84%; height: 84%; opacity: .28; } .sc-cell.coat .sc-under .sc-num { position: relative; font-size: clamp(1rem, 4vw, 1.6rem); text-shadow: 0 1px 0 #fff, 0 0 8px #fff; } .sc-cell.coat .sc-under small { position: relative; font-size: .62rem; font-weight: 800; color: var(--green-dark); margin-top: 1px; }
.sc-cell.coat.hit .sc-under { background: radial-gradient(circle at 50% 30%, #fff, var(--green-soft)); border-radius: inherit; }
.sc-coat { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; transition: opacity .3s; } .sc-cell.cleared .sc-coat { opacity: 0; pointer-events: none; }
.sc-coverart { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; transition: opacity .2s; } .sc-cell.cleared .sc-coverart { opacity: 0 !important; }
.sc-cell.coat.hit.cleared { box-shadow: inset 0 0 0 3px var(--green), 0 0 0 4px rgba(69,183,72,.35), 0 6px 14px rgba(0,0,0,.3); animation: symwin 1s ease-in-out .3s infinite; }
.tpl-savanna .sc-cell.coat { border-radius: 50%; box-shadow: 0 0 0 3px #7a4d08, 0 0 0 5px #f5c542, 0 8px 16px rgba(0,0,0,.4); } .tpl-gold .sc-cell.coat { border-radius: 50%; }
.sc-bar { margin-top: 10px; background: linear-gradient(180deg, #1b2440, #0f1730); border-radius: 16px; padding: 10px 12px; color: #fff; box-shadow: 0 14px 30px rgba(15,23,48,.35), inset 0 1px 0 rgba(255,255,255,.08); }
.sc-bar-in { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; } .sc-bar .lbl { display: block; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: #9fb0d8; font-weight: 800; }
.sc-qty { display: flex; align-items: center; gap: 4px; } .sc-qty .lbl { margin-right: 4px; } .sc-qty button { min-width: 36px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-weight: 800; cursor: pointer; } .sc-qty button.on { background: var(--yellow); color: var(--ink); border-color: var(--yellow); } .sc-qty button:disabled { opacity: .4; cursor: not-allowed; }
.sc-buy-btn { min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #ffd75e, var(--yellow)); color: var(--ink); font-weight: 900; font-size: 1rem; cursor: pointer; box-shadow: 0 8px 20px rgba(249,178,51,.35); white-space: nowrap; } .sc-buy-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sc-actions { display: flex; gap: 6px; } .sc-actions button { min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-weight: 800; cursor: pointer; white-space: nowrap; } .sc-actions button.on { background: var(--green); border-color: var(--green); } .sc-actions button:disabled { opacity: .4; cursor: not-allowed; }
.sc-meters { display: flex; gap: 14px; } .sc-meters b { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; } .sc-meters b.win { color: #7CE68A; }
@media (max-width: 860px) { .sc-bar { position: sticky; bottom: 0; z-index: 25; border-radius: 16px 16px 0 0; margin: 10px -16px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); } .sc-bar-in { grid-template-columns: 1fr 1fr; } .sc-buy-btn { grid-column: 1 / -1; width: 100%; } .sc-actions { grid-column: 1 / -1; justify-content: space-between; } .sc-actions button { flex: 1; padding: 6px 4px; font-size: .78rem; } .sc-meters { justify-content: space-between; grid-column: 1 / -1; } .sc-qty { grid-column: 1 / -1; justify-content: center; } .sc-buy { bottom: 24%; } }

/* ---- win celebration */
.sc-face.winning .sc-mascot { animation: dance .5s ease-in-out infinite alternate; } @keyframes dance { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-10px); } }
.sc-face.winning .sc-ribbons .sc-ribbon { animation: ribbonPulse .7s ease-in-out infinite alternate; } @keyframes ribbonPulse { to { transform: rotate(-6deg) scale(1.06); filter: brightness(1.25); } }
.sc-garland { position: absolute; inset: 6px; border-radius: 20px; pointer-events: none; z-index: 4; }
.sc-garland i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px 3px rgba(249,178,51,.8); animation: bulb 1s ease-in-out infinite; animation-delay: calc(var(--i) * -.11s); }
.sc-garland i:nth-child(3n) { background: var(--red); box-shadow: 0 0 10px 3px rgba(226,36,42,.8); } .sc-garland i:nth-child(3n+1) { background: var(--green); box-shadow: 0 0 10px 3px rgba(69,183,72,.8); }
.sc-garland i:nth-child(-n+8) { top: -5px; left: calc(var(--i) * 12.5% + 2%); } .sc-garland i:nth-child(n+9):nth-child(-n+14) { right: -5px; top: calc((var(--i) - 8) * 16% + 6%); } .sc-garland i:nth-child(n+15):nth-child(-n+22) { bottom: -5px; left: calc((var(--i) - 14) * 12.5% + 2%); } .sc-garland i:nth-child(n+23) { left: -5px; top: calc((var(--i) - 22) * 16% + 6%); }
@keyframes bulb { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.sc-coins-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; border-radius: 22px; } .sc-coins-rain svg { position: absolute; top: -40px; height: auto; aspect-ratio: 1; animation: coinfall linear forwards; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
@keyframes coinfall { to { transform: translateY(120vh) rotate(720deg); } }
.sc-bigwin { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; pointer-events: none; } .sc-bigwin > div { text-align: center; animation: bigIn .5s cubic-bezier(.2,1.4,.4,1); } .sc-bigwin span { display: block; font-size: clamp(2rem, 8vw, 3.4rem); font-weight: 900; color: transparent; background: linear-gradient(180deg, #fff3c4, var(--yellow) 55%, #c98d00); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); letter-spacing: -.02em; } .sc-bigwin b { display: block; color: #fff; font-size: clamp(1.6rem, 6vw, 2.6rem); text-shadow: 0 4px 14px rgba(0,0,0,.7); }
@keyframes bigIn { from { transform: scale(.4); opacity: 0; } }
.sc-face.bigwin { animation: shake .5s ease-in-out 2; } @keyframes shake { 25% { transform: translateX(-4px) rotate(-.5deg); } 75% { transform: translateX(4px) rotate(.5deg); } }
@media (prefers-reduced-motion: reduce) { .sc-face.winning .sc-mascot, .sc-garland i, .sc-face.bigwin { animation: none; } }
/* ---- symbol mechanics: legend (collect), bonus cell (match_three) */
.sc-legend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; background: linear-gradient(180deg, #fff2b0, var(--accent) 55%, #c98a12); border-radius: 12px; padding: 5px 8px; margin: 0 8px 8px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15), 0 3px 8px rgba(0,0,0,.25); }
.sc-legend .sc-winlbl { flex-basis: 100%; text-align: center; font-size: .55rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: var(--ink); }
.sc-leg { display: inline-flex; align-items: center; gap: 3px; background: #fff; border-radius: 999px; padding: 2px 7px 2px 3px; font-size: .62rem; font-weight: 900; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.25); } .sc-leg-icon { width: 18px; height: 18px; } .sc-leg.hit { background: var(--green-soft); box-shadow: 0 0 0 2px var(--green); }
.sc-bonus { position: absolute; right: 6%; bottom: 6%; background: var(--red); color: #fff; font-weight: 900; font-size: .62rem; padding: 1px 5px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.4); } .sc-sym-bonus { filter: drop-shadow(0 0 6px #ffd766); animation: pulse 1s ease-in-out infinite alternate; }
.sc-badge em { font-style: normal; font-size: .5rem; font-weight: 800; line-height: 1.1; }
/* ---- fireworks + mascot jump on a win */
.sc-fireworks { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; border-radius: 22px; }
.sc-burst { position: absolute; width: 0; height: 0; animation: burstFade 1.3s ease-out forwards; } .sc-burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); transform: rotate(var(--a)) translateX(0); animation: spark 1.2s cubic-bezier(.1,.8,.3,1) forwards; }
@keyframes spark { 70% { opacity: 1; } to { transform: rotate(var(--a)) translateX(110px); opacity: 0; } } @keyframes burstFade { 0%, 80% { opacity: 1; } to { opacity: 0; } }
.sc-face.winning .sc-mascot.jump { animation: jumpOut .9s cubic-bezier(.2,1.2,.4,1) 1, dance .5s ease-in-out .9s infinite alternate; z-index: 7; }
@keyframes jumpOut { 0% { transform: scale(1) translateY(0); } 45% { transform: scale(1.7) translateY(-34px) rotate(-6deg); } 70% { transform: scale(1.5) translateY(-22px) rotate(5deg); } 100% { transform: scale(1) translateY(0); } }
#sc-last.rang { animation: rang .5s ease-in-out 3; color: var(--yellow); } @keyframes rang { 50% { transform: scale(1.18); text-shadow: 0 0 14px rgba(249,178,51,.9); } }
.sc-bar #sc-music.on { background: var(--yellow); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sc-burst, .sc-burst i, .sc-face.winning .sc-mascot.jump, #sc-last.rang, .sc-sym-bonus { animation: none; } }
/* ---- modern card face (29 Sep): glass panels, pill chips, soft depth, clean type */
.sc-face { border-radius: 26px; padding: 16px 16px 0; background: radial-gradient(130% 80% at 20% -10%, color-mix(in srgb, var(--bg) 70%, #fff 30%) 0%, var(--bg) 40%, var(--bg2) 100%); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.14) inset; }
.sc-face::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 40% at 80% 10%, rgba(255,255,255,.22), transparent 70%), radial-gradient(50% 35% at 10% 90%, rgba(255,255,255,.12), transparent 70%); }
.sc-decor { opacity: .55; }
.sc-price { left: 12px; top: 12px; border-radius: 999px; padding: 5px 13px; font-size: .95rem; background: linear-gradient(135deg, #ff5a5f, var(--red)); box-shadow: 0 6px 16px rgba(226,36,42,.45), 0 0 0 1px rgba(255,255,255,.35) inset; letter-spacing: .01em; }
.sc-banner { margin-top: 12px; width: auto; display: table; padding: 4px 14px; border-radius: 999px; clip-path: none; background: rgba(255,255,255,.16); color: #fff; font-size: .62rem; letter-spacing: .32em; text-shadow: none; box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sc-title { margin-top: 6px; font-size: clamp(1.7rem, 6vw, 2.7rem); letter-spacing: -.035em; text-shadow: 0 2px 0 rgba(0,0,0,.18), 0 14px 30px rgba(0,0,0,.35); }
.tpl-coast .sc-title { font-family: inherit; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.18), 0 14px 30px rgba(0,0,0,.35); letter-spacing: -.035em; }
.sc-mid { margin-top: 10px; gap: 8px; }
.sc-badge { border-radius: 28px; aspect-ratio: 1; max-width: 118px; padding: 10px 8px; background: rgba(255,255,255,.14); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 10px 24px -12px rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sc-badge span { font-size: .6rem; text-transform: none; letter-spacing: .01em; } .sc-badge em { color: rgba(255,255,255,.85); } .sc-badge-icon { width: 40%; height: 40%; margin-top: 6px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.sc-mascot { filter: drop-shadow(0 16px 22px rgba(0,0,0,.5)); }
.sc-mascot::before { content: ""; position: absolute; inset: 10% 10% 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); z-index: -1; }
.sc-rib-head { transform: none; margin-right: 0; color: rgba(255,255,255,.85); text-shadow: none; font-size: .58rem; letter-spacing: .14em; }
.sc-ribbon { transform: none; clip-path: none; border-radius: 999px; padding: 5px 12px; background: linear-gradient(135deg, #fff3c4, var(--accent) 60%, #d99a12); color: var(--ink); font-size: .74rem; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.45) inset; }
.sc-ribbon:nth-child(2) { font-size: .84rem; padding: 6px 14px; } .sc-ribbon:nth-child(3), .sc-ribbon:nth-child(4) { background: rgba(255,255,255,.16); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sc-face.winning .sc-ribbons .sc-ribbon { animation: ribbonPulseM .7s ease-in-out infinite alternate; } @keyframes ribbonPulseM { to { transform: scale(1.06); filter: brightness(1.2); } }
.sc-total { color: rgba(255,255,255,.75); text-shadow: none; font-size: .56rem; letter-spacing: .14em; left: 4px; }
.sc-play { padding: 0 0 10px 18px; }
.sc-winbar, .sc-legend { border-radius: 16px; background: rgba(255,255,255,.14); box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 7px 10px; }
.sc-winlbl { color: rgba(255,255,255,.85); } .sc-legend .sc-winlbl { color: rgba(255,255,255,.85); }
.sc-winnum { background: linear-gradient(180deg, #fff, #f2e9cf); color: var(--ink); box-shadow: 0 4px 10px -4px rgba(0,0,0,.6); } .sc-winnum.cover { background: repeating-linear-gradient(45deg, #b3b3b3 0 6px, #d6d6d6 6px 12px); }
.sc-leg { background: rgba(255,255,255,.92); box-shadow: 0 3px 8px -3px rgba(0,0,0,.5); }
.sc-grid { gap: 8px; }
.sc-cell { border-radius: 18px; }
.sc-cell.cover, .sc-cell.coat { background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.55), transparent 45%), linear-gradient(160deg, #d9d9d9, #a9a9a9 45%, #cfcfcf 70%, #9c9c9c); box-shadow: 0 10px 20px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.55) inset; }
.sc-cell.coat { background: radial-gradient(circle at 50% 30%, #fff, #f1ede0); }
.sc-cell.open, .sc-cell.coat.cleared { background: linear-gradient(160deg, #ffffff, #f1ecdd); box-shadow: 0 10px 20px -10px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.6) inset; }
.sc-cell.open.hit, .sc-cell.coat.hit.cleared { background: linear-gradient(160deg, #ffffff, var(--green-soft)); box-shadow: 0 0 0 3px var(--green), 0 0 26px rgba(69,183,72,.55), 0 10px 20px -10px rgba(0,0,0,.6); }
.tpl-savanna .sc-cell.cover, .tpl-gold .sc-cell.cover { border-radius: 50%; background: radial-gradient(circle at 38% 28%, #fff6cf, #f5c542 42%, #d99a12 72%, #8a5a0a); box-shadow: 0 10px 20px -8px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.5) inset; }
.tpl-savanna .sc-cell.open, .tpl-gold .sc-cell.open { box-shadow: 0 0 0 3px #d99a12, 0 10px 20px -10px rgba(0,0,0,.6); }
.sc-here { color: #2c2c2c; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.sc-coins { opacity: .9; }
.sc-foot { margin: 0 -16px; background: rgba(255,255,255,.96); border-radius: 0 0 26px 26px; }
.sc-face.compact { border-radius: 16px; } .sc-face.compact .sc-badge { max-width: 70px; padding: 6px 4px; border-radius: 14px; } .sc-face.compact .sc-ribbon { padding: 3px 8px; }
@media (prefers-reduced-motion: reduce) { .sc-face.winning .sc-ribbons .sc-ribbon { animation: none; } }
/* photo symbols: let the tiles fill the cell and keep the mascot clear of the first row */
.sc-cell .sc-sym, .sc-cell.coat .sc-under .sc-sym { width: 80%; height: 80%; } .sc-mascot { max-width: 132px; margin-bottom: 6px; }
/* coat label on photo covers: a solid pill so "scratch here" reads on any picture; the cover picture sits back a little */
.sc-cell.cover .sc-cover { opacity: .6; } .sc-here { left: 50%; right: auto; bottom: 6px; transform: translateX(-50%); width: max-content; max-width: 88%; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: #14213D; font-size: .58rem; letter-spacing: .06em; text-shadow: none; box-shadow: 0 1px 3px rgba(0,0,0,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-gold .sc-cell.cover .sc-here { display: block; } .tpl-savanna .sc-cell.cover .sc-here { position: absolute; color: #14213D; }

/* ---- v5 (1 Oct): numbers and prices that read at a glance; the win takes the page */
.sc-cell .sc-num, .sc-cell.coat .sc-under .sc-num { font-size: clamp(1.3rem, 5.4vw, 2.3rem); line-height: 1.3; min-width: 1.6em; padding: 0 .3em; border-radius: 999px; background: rgba(255,255,255,.94); color: #14213D; text-shadow: none; box-shadow: 0 2px 8px rgba(0,0,0,.28), inset 0 0 0 1px rgba(0,0,0,.06); }
.sc-cell .sc-cell-art, .sc-cell.coat .sc-under .sc-cell-art { opacity: .2; }
.sc-cell.open small, .sc-cell.coat .sc-under small { font-size: .82rem; letter-spacing: .01em; color: #fff; background: linear-gradient(180deg, #2fa34a, var(--green-dark)); padding: 2px 9px; border-radius: 999px; margin-top: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.sc-cell.open.hit small, .sc-cell.coat.hit .sc-under small { background: linear-gradient(180deg, #ffe08a, #f9b233); color: #14213D; }
.sc-winnum { width: 40px; height: 40px; font-size: 1.15rem; } .sc-winlbl, .sc-legend .sc-winlbl { font-size: .66rem; } .sc-leg { font-size: .76rem; padding: 3px 9px 3px 4px; } .sc-leg-icon { width: 20px; height: 20px; }
.sc-price { font-size: 1.15rem; padding: 7px 16px; } .sc-ribbon { font-size: .86rem; padding: 6px 14px; } .sc-rib-head { font-size: .64rem; }
.sc-face.compact .sc-num, .sc-face.compact .sc-cell.coat .sc-under .sc-num { font-size: clamp(.9rem, 3vw, 1.3rem); } .sc-face.compact .sc-cell.open small { font-size: .6rem; padding: 1px 6px; }
.sc-winover { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; cursor: pointer; background: radial-gradient(70% 70% at 50% 45%, rgba(20,33,61,.5), rgba(0,0,0,.82)); backdrop-filter: blur(6px); animation: winFade .25s ease-out; }
.sc-winover.out { animation: winFadeOut .3s ease-in forwards; } @keyframes winFade { from { opacity: 0; } } @keyframes winFadeOut { to { opacity: 0; } }
.sc-winover-rays { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(249,178,51,.16) 0 9deg, transparent 9deg 18deg); animation: raysSpin 22s linear infinite; pointer-events: none; }
@keyframes raysSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.sc-winover .sc-coins-rain, .sc-winover .sc-fireworks { position: absolute; inset: 0; border-radius: 0; z-index: 2; } .sc-winover .sc-burst i { animation-duration: 1.6s; } .sc-winover .sc-burst { animation-duration: 1.7s; } @keyframes sparkBig { 70% { opacity: 1; } to { transform: rotate(var(--a)) translateX(200px); opacity: 0; } } .sc-winover .sc-burst i { animation-name: sparkBig; }
.sc-winover-card { position: relative; z-index: 3; text-align: center; padding: 34px 44px 30px; border-radius: 34px; max-width: min(92vw, 640px); background: radial-gradient(120% 100% at 50% 0%, #2f8a44, #0a3a1a 85%); box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 6px var(--yellow), 0 0 0 13px rgba(249,178,51,.35), 0 0 90px rgba(249,178,51,.55); animation: winPop .65s cubic-bezier(.2,1.5,.4,1); }
.sc-winover-kick { font-size: clamp(1.5rem, 5.5vw, 2.6rem); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 #c98d00, 0 8px 22px rgba(0,0,0,.55); }
.sc-winover-amt { font-size: clamp(3.2rem, 14vw, 7rem); font-weight: 900; line-height: 1; margin: 12px 0 8px; color: transparent; background: linear-gradient(180deg, #fff8dc, var(--yellow) 48%, #d9951a); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 5px 0 #8a5a00) drop-shadow(0 16px 26px rgba(0,0,0,.55)); animation: amtPulse .9s ease-in-out infinite alternate; }
.sc-winover.big .sc-winover-amt { font-size: clamp(3.6rem, 16vw, 8.5rem); } .sc-winover.big .sc-winover-card { animation: winPop .65s cubic-bezier(.2,1.5,.4,1), bigShake .5s ease-in-out .7s 2; }
.sc-winover-sub { color: rgba(255,255,255,.82); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
@keyframes winPop { from { transform: scale(.25) rotate(-8deg); opacity: 0; } } @keyframes amtPulse { to { transform: scale(1.07); } } @keyframes bigShake { 25% { transform: translateX(-6px) rotate(-.6deg); } 75% { transform: translateX(6px) rotate(.6deg); } }
@media (prefers-reduced-motion: reduce) { .sc-winover-rays, .sc-winover-amt, .sc-winover-card { animation: none; } }
/* v5 alignment: the cover label never truncates; the action bar wraps when the card column is narrow */
.sc-cell.cover .sc-here, .sc-cell.coat .sc-here { max-width: 96%; font-size: clamp(.34rem, 2.5cqw, .52rem); letter-spacing: .04em; padding: 2px 6px; overflow: visible; text-overflow: clip; }
.sc-bar { container-type: inline-size; }
@container (max-width: 560px) { .sc-bar-in { grid-template-columns: 1fr 1fr; } .sc-buy-btn { grid-column: 1 / -1; width: 100%; } .sc-actions { grid-column: 1 / -1; justify-content: space-between; } .sc-actions button { flex: 1; padding: 6px 4px; } .sc-meters { grid-column: 1 / -1; justify-content: space-between; } }
/* 2 Oct: Hans's stacked logo, the wordmark inside the map */
.logo .logo-img { height: 84px; width: auto; display: block; margin: 4px 0; }
@media (max-width: 520px) { .logo .logo-img { height: 64px; } }
.logo-tile { display: inline-flex; background: #fff; border-radius: 18px; padding: 8px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.logo-tile .logo-img { height: 96px; margin: 0; }
/* 2 Oct: prize labels always fit their cell - exact amount where it fits, the short form ($1.35K) where it does not */
.sc-cell { container-type: inline-size; }
.sc-cell.open small, .sc-cell.coat .sc-under small { font-size: clamp(11px, 15cqw, 13px); white-space: nowrap; max-width: 96%; padding: 2px 7px; }
.sc-cell small .pz-short { display: none; }
@container (max-width: 84px) { .sc-cell small .pz-full { display: none; } .sc-cell small .pz-short { display: inline; } .sc-cell.open small, .sc-cell.coat .sc-under small { padding: 1px 5px; } }
.sc-face.compact .sc-cell small .pz-full { display: none; } .sc-face.compact .sc-cell small .pz-short { display: inline; }
/* 2 Oct: a six-column grid has ~54 px cells on a phone - too small for a symbol and its prize. Narrow cards fold it to three columns. */
.sc-play { container-type: inline-size; }
@container (max-width: 400px) { .sc-grid[style*="--cols:6"] { grid-template-columns: repeat(3, 1fr); gap: 9px; } .sc-grid[style*="--cols:5"] { grid-template-columns: repeat(3, 1fr); } }
/* 2 Oct: nothing on a card below ~11 px. The cover label sizes to its own cell (each cell is a container now) and wraps rather than shrinking. */
.sc-face .sc-cell.cover .sc-here, .sc-face .sc-cell.coat .sc-here, .sc-face[class*="tpl-"] .sc-cell.cover .sc-here { font-size: clamp(10px, 10cqw, 12.5px); white-space: normal; line-height: 1.05; max-width: 90%; text-align: center; letter-spacing: .03em; }
.sc-banner { font-size: max(11px, .7rem); }
.sc-badge span { font-size: max(11px, .68rem); }
.sc-bar .lbl { font-size: max(11px, .66rem); }
.sc-face.compact .sc-banner, .sc-face.compact .sc-badge span { font-size: max(10px, .5rem); }

/* Football pool — sportsbook look (dark event list inside the white page, odds-style 1 X 2 buttons, docked betslip on phones) */
.sb { --sb-bg: #14213D; --sb-row: #1B2B52; --sb-row2: #223768; --sb-line: rgba(255,255,255,.08); --sb-mut: #9AA7C7; background: var(--sb-bg); color: #fff; border-radius: var(--radius); margin: -20px; padding: 14px 14px 12px; }
.sb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--sb-line); } .sb-top .btn { margin-left: auto; }
.sb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.07); font-weight: 800; font-size: .82rem; color: var(--sb-mut); } .sb-tab.on { background: var(--green); color: #fff; }
.sb-help { font-size: .8rem; color: var(--sb-mut); margin: 10px 0 4px; }
.sb-cols { display: grid; grid-template-columns: 28px 1fr 84px 162px; gap: 10px; align-items: center; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sb-mut); padding: 8px 8px 2px; } .sb-cols .o { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.sb-league { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 8px 6px; font-weight: 800; font-size: .86rem; } .sb-flag { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: .78rem; flex: none; } .sb-count { margin-left: auto; font-size: .7rem; color: var(--sb-mut); background: rgba(255,255,255,.08); border-radius: 999px; padding: 2px 8px; }
.sb-league.jm { color: var(--yellow); } .sb-league.jm .sb-flag { background: var(--yellow); color: var(--ink); } .sb-jmhelp { flex-basis: 100%; font-weight: 500; font-size: .74rem; color: var(--sb-mut); }
.sb-ev { display: grid; grid-template-columns: 28px 1fr 84px 162px; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 10px; background: var(--sb-row); margin-bottom: 4px; border: 1px solid transparent; transition: background .12s; } .sb-ev:hover { background: var(--sb-row2); }
.sb-ev.jm { border-color: rgba(249,178,51,.55); background: linear-gradient(90deg, rgba(249,178,51,.16), var(--sb-row) 60%); }
.sb-no { font-size: .74rem; font-weight: 800; color: var(--sb-mut); text-align: center; } .sb-ev.jm .sb-no { color: var(--yellow); }
.sb-teams { display: grid; gap: 5px; min-width: 0; } .sb-comp { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sb-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sb-team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; min-width: 0; } .sb-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-crest { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 900; letter-spacing: .02em; color: #fff; background: hsl(var(--h) 55% 42%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); }
.sb-time { display: grid; font-size: .74rem; color: var(--sb-mut); line-height: 1.25; } .sb-time b { color: #fff; font-size: .86rem; }
.sb-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sb-odd { display: grid; justify-items: center; gap: 1px; padding: 5px 0 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #263B6B; color: #fff; cursor: pointer; font: inherit; transition: background .12s, transform .08s; } .sb-odd b { font-size: .98rem; line-height: 1.1; } .sb-odd small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sb-mut); }
.sb-odd:hover { background: #2F4A85; } .sb-odd.on { background: var(--green); border-color: var(--green); transform: scale(1.04); box-shadow: 0 4px 12px rgba(69,183,72,.35); } .sb-odd.on small { color: rgba(255,255,255,.85); } .sb-odd:disabled { opacity: .45; cursor: default; transform: none; }
.sb-ev.jm .sb-odd.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 0 4px 12px rgba(249,178,51,.35); } .sb-ev.jm .sb-odd.on small { color: rgba(20,33,61,.75); }
.sb-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--sb-line); font-size: .85rem; } .sb .strong { color: var(--green); font-weight: 800; } .sb .muted { color: var(--sb-mut); } .sb .empty { color: var(--sb-mut); }
.sb .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); } .sb .btn-ghost:hover { background: rgba(255,255,255,.08); }
.sb-sliphead { display: flex; align-items: center; gap: 8px; margin: -20px -20px 14px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--radius) var(--radius) 0 0; } .sb-sliphead h3 { margin: 0; font-size: 1rem; color: #fff; } .sb-slipic { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: .85rem; }
.sb-slipn { margin-left: auto; background: var(--green); color: #fff; font-weight: 900; font-size: .75rem; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 7px; }
.sb-picks { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; } .sb-pick { min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: .7rem; display: grid; place-items: center; letter-spacing: .02em; } .sb-pick.multi { background: var(--blue-soft); color: var(--blue); } .sb-pick.jm { background: #FFF3D6; color: var(--yellow-dark); box-shadow: inset 0 0 0 1px var(--yellow); }
.sb-dock { display: none; } #slip { scroll-margin-top: 180px; }
@media (max-width: 860px) {
  .sb-dock.on { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: #fff; box-shadow: 0 -8px 24px rgba(20,33,61,.25); } .sb-dock .amt { font-weight: 900; font-size: 1.1rem; color: var(--green); line-height: 1; } .sb-dock .sub { font-size: .72rem; color: #9AA7C7; margin-top: 2px; } .sb-dock .btn { margin-left: auto; } body.has-dock { padding-bottom: 72px; }
}
@media (max-width: 600px) {
  .sb { padding: 12px 10px 10px; } .sb-cols { display: none; } .sb-help { font-size: .76rem; }
  .sb-ev, .sb-ev.jm { grid-template-columns: 22px 1fr auto; grid-template-areas: 'no teams time' 'odds odds odds'; row-gap: 8px; padding: 10px 8px; } .sb-no { grid-area: no; } .sb-teams { grid-area: teams; } .sb-time { grid-area: time; text-align: right; } .sb-odds { grid-area: odds; }
  .sb-odd { padding: 7px 0 5px; } .sb-odd b { font-size: 1.05rem; }
  .sb-top .btn { margin-left: 0; } .sb-top .sb-tab:not(.on) { display: none; }
}
/* 4 Oct: the sticky action bar on phones is compact - ticket count beside the balance, the buy button, then one row of small actions -
   so it covers about a sixth of the screen instead of a quarter; in a short window (landscape phone) it stops sticking altogether. */
@media (max-width: 860px) {
  .sc-bar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .sc-bar-in { grid-template-columns: 1fr auto; grid-template-areas: 'qty meters' 'buy buy' 'actions actions'; gap: 6px 10px; }
  .sc-qty { grid-area: qty; grid-column: auto; justify-content: flex-start; } .sc-qty button { min-width: 32px; height: 30px; font-size: .85rem; }
  .sc-meters { grid-area: meters; grid-column: auto; gap: 12px; justify-content: flex-end; } .sc-meters .lbl { display: inline; margin-right: 4px; } .sc-meters b { display: inline; font-size: .95rem; }
  .sc-buy-btn { grid-area: buy; min-height: 42px; font-size: .95rem; }
  .sc-actions { grid-area: actions; } .sc-actions button { min-height: 32px; padding: 4px 6px; font-size: .74rem; border-radius: 8px; }
}
@media (max-width: 860px) and (max-height: 560px) { .sc-bar { position: static; margin: 10px 0 0; border-radius: 16px; } }
@media (max-width: 860px) { .sc-meters { min-width: 0; } .sc-meters div { white-space: nowrap; } .sc-meters .lbl { font-size: max(10px, .6rem); } }
@media (max-width: 480px) { .sc-qty .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .sc-meters { gap: 8px; } }
/* 4 Oct: smaller price badge so it never touches the brand pill on narrow cards */
.sc-price { font-size: .85rem; padding: 4px 11px; }
@media (max-width: 480px) { .sc-price { font-size: .76rem; padding: 3px 9px; left: 10px; top: 10px; } }
/* 4 Oct: the "Biggest prizes" header sits centred over its pill column; the column hugs the widest pill */
.sc-ribbons { width: auto; max-width: 100%; align-items: stretch; } .sc-ribbons .sc-ribbon { align-self: flex-end; } .sc-rib-head { align-self: stretch; text-align: center; margin-right: 0; }
/* 4 Oct: in the compact bar the meters never run into the ticket buttons - the Tickets label goes first, then the meters wrap */
@container (max-width: 540px) { .sc-qty .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .sc-meters { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; } .sc-meters div { white-space: nowrap; } }
@container (max-width: 360px) { .sc-bar-in { grid-template-areas: 'qty qty' 'meters meters' 'buy buy' 'actions actions'; } .sc-meters { justify-content: space-between; } }

/* ---- 4 Oct 2026: the six design proposals ---------------------------------------------------------------- */
/* 4. jackpot strip under the header, on every page */
.strip { background: var(--ink); color: #fff; font-size: .82rem; } .strip[hidden] { display: none; }
.strip .wrap { display: flex; align-items: center; gap: 12px; min-height: 34px; white-space: nowrap; overflow: hidden; }
.strip a { color: #fff; } .strip a:hover { text-decoration: none; color: #FFD070; } .strip b { color: #FFD070; font-weight: 900; } .strip .d { opacity: .35; }
.strip .live { display: inline-flex; align-items: center; gap: 7px; } .strip .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(69,183,72,.3); animation: stripPulse 1.8s ease-in-out infinite; }
.strip .cd b { font-variant-numeric: tabular-nums; }
@keyframes stripPulse { 50% { box-shadow: 0 0 0 6px rgba(69,183,72,.12); } }
@media (max-width: 640px) { .strip .opt { display: none; } }
@media (prefers-reduced-motion: reduce) { .strip .live i { animation: none; } }
/* 3. one-row header and a bottom navigation bar on phones */
.bnav { display: none; } .drawer-lang { display: none; }
@media (max-width: 860px) {
  .topbar { display: none; } .nav { min-height: 56px; gap: 8px; } .logo .logo-img { height: 46px; margin: 2px 0; }
  .nav-right .wallet-chip { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; padding: 6px 10px; font-size: .85rem; } .nav-right .wallet-chip small { display: none; }
  .nav-right .lang { display: none; } .drawer-lang { display: flex; align-items: center; gap: 10px; padding: 12px 8px; font-weight: 600; } .drawer-lang select { flex: 1; }
  body.has-bnav .bnav { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(20,33,61,.08); }
  body.has-bnav { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .bnav a { display: grid; justify-items: center; gap: 2px; font-size: .7rem; font-weight: 700; color: var(--muted); text-decoration: none; padding: 2px 0; border-radius: 10px; }
  .bnav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .bnav a.on { color: var(--green-dark); }
  .sticky-bar.on { display: none; } body.has-sticky { padding-bottom: 0; }
}
/* 1. photographic hero with the jackpot as the headline */
.hero-photo { position: relative; color: #fff; background: #0b2a12 url('/art/hero/lion.jpg') center 30% / cover no-repeat; isolation: isolate; padding: 56px 0 48px; }
.hero-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,40,15,.94) 0%, rgba(5,40,15,.8) 40%, rgba(5,40,15,.18) 100%); }
.hp-in { max-width: 620px; } .hp-k { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #FFD070; }
.hp-amt { font-size: clamp(3rem, 9vw, 6.2rem); font-weight: 900; line-height: .95; margin: 6px 0 12px; letter-spacing: -.02em; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.hp-sub { font-size: 1.1rem; opacity: .92; max-width: 520px; margin: 0 0 18px; }
.hero-photo .hero-cta { display: flex; gap: 10px; flex-wrap: wrap; } .hero-photo .btn-outline { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; } .hero-photo .btn-outline:hover { background: rgba(255,255,255,.12); }
.hp-cd { margin-top: 20px; max-width: 420px; } .hp-when { margin-top: 8px; font-size: .8rem; opacity: .85; }
@media (max-width: 700px) { .hero-photo { background-position: 66% 28%; padding: 210px 0 26px; } .hero-photo::after { background: linear-gradient(180deg, rgba(5,40,15,.1) 0%, rgba(5,40,15,.86) 46%, rgba(5,40,15,.97) 100%); } .hp-amt { font-size: clamp(2.8rem, 15vw, 4.4rem); } }
/* 2. game cards with photo tiles, grouped by kind */
.gsec { margin-top: 26px; } .gsec:first-of-type { margin-top: 18px; } .gsec-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 1.15rem; } .gsec-h .swipe { font-weight: 600; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.gcard:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 14px 34px rgba(20,33,61,.14); }
.gc-band { position: relative; height: 88px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #0b1220)); }
.gc-tile img { width: 62px; height: 62px; border-radius: 50%; box-shadow: 0 6px 14px rgba(0,0,0,.4), 0 0 0 3px rgba(255,255,255,.35); display: block; }
.gc-px { position: absolute; top: 9px; right: 10px; background: var(--red); color: #fff; font-weight: 900; font-size: .78rem; padding: 3px 9px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.gc-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; gap: 4px; } .gc-body h3 { margin: 0; font-size: 1.1rem; } .gc-body p { margin: 0; }
.gc-play { margin-top: auto !important; display: block; text-align: center; padding-top: 10px; padding-bottom: 10px; } .gc-body .gc-play { margin-top: 12px; }
.btn-blue { background: var(--blue); color: #fff; } .btn-blue:hover { background: var(--blue-dark); }
@media (max-width: 860px) { .gcards.scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; } .gcards.scroll::-webkit-scrollbar { display: none; } .gcards.scroll .gcard { flex: 0 0 68%; max-width: 280px; scroll-snap-align: start; } }
/* 5. account: balance card and four panels */
.acct-bal { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, var(--green-dark), #1f6e30); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.acct-bal .kicker { color: #CFE0FF; } .acct-bal .balance-big { color: #fff; } .acct-bal .muted { color: rgba(255,255,255,.8); }
.acct-bal .stack { display: grid; gap: 6px; min-width: 160px; } .acct-bal .stack .btn { text-align: center; } .acct-bal .btn-outline { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; } .acct-bal .btn-outline:hover { background: rgba(255,255,255,.12); }
.acct-tabs { margin-bottom: 16px; } .acct-panels [data-panel] > .card + .card { margin-top: 16px; } .acct-panels [data-panel][hidden] { display: none; }
@media (min-width: 861px) { .acct-panels [data-panel="wallet"] { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } .acct-panels [data-panel="wallet"] > .card + .card { margin-top: 0; } .acct-panels [data-panel="wallet"][hidden] { display: none; } }
/* 4 Oct: on round and blob cells the "scratch here" pill sits in the middle of the cell, where the shape is widest, so the round clip never cuts its ends */
.tpl-savanna .sc-cell .sc-here, .tpl-gold .sc-cell .sc-here, .tpl-jungle .sc-cell .sc-here { bottom: 50%; transform: translate(-50%, 50%); max-width: 84%; }

/* 4 Oct sweep: seven balls stay on one line on phones (result cards and the result page); tab labels fit; the how-to note is never under 10 px */
@media (max-width: 480px) {
  .res-card .balls { gap: 5px; } .res-card .ball.sm { width: 30px; height: 30px; font-size: .76rem; } .res-card .plus { font-size: .9rem; }
  .ball { width: 34px; height: 34px; font-size: .86rem; } .balls { gap: 6px; }
  .tabs button { padding: 10px 10px; font-size: .9rem; }
}
.sc-badge em { font-size: max(10px, .5rem); }
.sc-badge span { font-size: max(10px, .6rem); }
/* 4 Oct sweep: the winning-number bar and the legend clear the mascot and the last ribbon; prize pills on round cells sit a little higher so the round clip never cuts a long amount */
.sc-winbar, .sc-legend { margin-top: 10px; }
.tpl-gold .sc-cell.open small, .tpl-savanna .sc-cell.open small { margin-bottom: 4%; }
/* 4 Oct sweep: result cards keep all seven balls on one line in a four-column grid too */
.res-card .balls { gap: 3px; flex-wrap: nowrap; } .res-card .ball.sm { width: 25px; height: 25px; font-size: .68rem; flex: none; } .res-card .plus { padding: 0 1px; font-size: .8rem; }
/* 4 Oct sweep: a card grows with its content instead of clipping the last row of cells; the how-to badge clears the vertical total line */
.sc-face { min-height: max-content; }
.sc-badge { margin-left: 10px; }
.sc-winbar, .sc-legend { margin-top: 14px; }
/* 4 Oct sweep: the card's rows never shrink into each other; a taller grid makes a taller card */
.sc-face > .sc-banner, .sc-face > .sc-title, .sc-face > .sc-mid, .sc-face > .sc-play, .sc-face > .sc-foot { flex-shrink: 0; }
/* 4 Oct sweep: `overflow: clip` keeps the rounded clipping but, unlike `hidden`, lets an aspect-ratio card grow when its grid needs more height */
.sc-face { overflow: clip; }
/* 4 Oct sweep: the card's shape is a minimum, not a fixed box - a taller grid makes a taller card instead of clipping its last rows */
@media (min-width: 861px) { .sc-wrap { container-type: inline-size; } .sc-face { aspect-ratio: auto; min-height: 145cqw; } }
/* 4 Oct sweep: on phones the how-to badge and the mascot keep a clear gap */
@media (max-width: 860px) { .sc-mid { gap: 10px; } .sc-badge { max-width: 108px; margin-left: 4px; } }
@media (max-width: 860px) { .sc-badge { margin-left: 12px; max-width: 104px; } }
/* 4 Oct sweep: on phones the how-to badge stays inside its own column (no desktop offset), prize pills on round cells sit a touch higher */
@media (max-width: 860px) { .sc-badge { margin-left: 0; max-width: 100%; } .tpl-gold .sc-cell.open small, .tpl-savanna .sc-cell.open small { margin-bottom: 7%; } }
@media (max-width: 860px) { .sc-badge { box-sizing: border-box; margin-left: 6px; max-width: calc(100% - 6px); } }
@media (max-width: 860px) { .sc-badge { padding: 6px 6px; } .sc-badge-icon { margin-top: 2px; } .sc-badge span { line-height: 1.1; } }
/* 4 Oct sweep: on phones the how-to badge is a smaller square (tighter padding, smaller icon) so it sits inside its column with room on both sides */
@media (max-width: 860px) { .sc-face[class*="tpl-"] .sc-badge, .sc-badge { padding: 6px; margin-left: 10px; max-width: calc(100% - 10px); } .sc-badge .sc-badge-icon { width: 36%; height: 36%; margin-top: 2px; } }
@media (max-width: 860px) { .tpl-gold .sc-cell.open small, .tpl-savanna .sc-cell.open small { margin-bottom: 10%; max-width: 72%; } }
