/* 9ja Play — night-sky blue with sky-blue and orange accents. */
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #061A33;
  --deep: #0B2647;
  --lift: #12345E;
  --line: #1F4A7A;
  --sky: #2EB8FF;
  --sky-soft: #8FDBFF;
  --orange: #FF8A1F;
  --flame: #FF5A1F;
  --white: #F4FAFF;
  --muted: #9DB7D3;
  --win: #3BE08A;
  --loss: #FF4D6A;

  --grad-orange: linear-gradient(180deg, #FFA43D 0%, #FF6A1A 100%);
  --grad-sky: linear-gradient(180deg, #5CCBFF 0%, #1F8FE6 100%);

  --font: 'Bricolage', system-ui, sans-serif;
  --step--1: 0.833rem; --step-0: 1rem; --step-1: 1.2rem; --step-2: 1.44rem; --step-3: 2.074rem; --step-4: 2.986rem;
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.5;
  background: var(--night); color: var(--white); font-variant-numeric: tabular-nums;
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(46, 184, 255, .18), transparent 70%);
  background-attachment: fixed;
}
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 800; font-stretch: 82%; }
h1 { font-size: var(--step-3); } h2 { font-size: var(--step-2); } h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--sky); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.win { color: var(--win); } .loss { color: var(--loss); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.practice-bar { background: var(--grad-orange); color: #2A1100; text-align: center; font-weight: 700; font-size: var(--step--1); padding: 5px 12px; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: rgba(6, 26, 51, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { height: 34px; width: auto; display: block; }
.topbar .spacer { flex: 1; }
.balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; white-space: nowrap; }
.balance strong { font-size: var(--step-1); color: var(--white); }
.balance small { color: var(--sky-soft); font-size: .72rem; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  min-height: 42px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 800; background: var(--grad-orange); color: #2A1100; text-decoration: none;
  box-shadow: 0 3px 0 #B83F08, 0 8px 18px rgba(255, 106, 26, .25);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #B83F08; }
.btn:disabled { filter: grayscale(.6) brightness(.8); cursor: not-allowed; transform: none; }
.btn.sky { background: var(--grad-sky); color: #031629; box-shadow: 0 3px 0 #0C5FA3, 0 8px 18px rgba(46, 184, 255, .25); }
.btn.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sky); }
.btn.big { min-height: 56px; font-size: var(--step-1); width: 100%; border-radius: var(--r-md); }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--white); background: var(--deep); border: 1px solid var(--line); text-decoration: none; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }

.layout { display: grid; grid-template-columns: 1fr; }
main { padding: 14px 14px 110px; max-width: 1180px; width: 100%; margin: 0 auto; }

.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around;
  background: rgba(6, 26, 51, .97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; min-width: 58px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; border-radius: var(--r-sm); white-space: nowrap;
}
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--orange); }
.nav .wide-only { display: none; }
.nav .nav-heading { display: none; }

@media (min-width: 960px) {
  .layout { grid-template-columns: 230px 1fr; }
  .nav { position: sticky; top: 63px; height: calc(100vh - 63px); flex-direction: column; justify-content: flex-start;
    border-top: 0; border-right: 1px solid var(--line); padding: 14px 10px; gap: 2px; overflow-y: auto; background: transparent; }
  .nav a, .nav .wide-only { display: flex; flex-direction: row; gap: 12px; font-size: var(--step-0); padding: 9px 12px; }
  .nav a[aria-current="page"] { background: var(--deep); }
  .nav .nav-heading { display: block; color: var(--muted); font-size: var(--step--1); padding: 14px 12px 4px; }
  main { padding: 22px 28px 60px; }
  .mobile-only { display: none !important; }
}

/* ---------- Lobby ---------- */
.ticker { display: flex; align-items: center; gap: 10px; background: var(--deep); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; overflow: hidden; margin-bottom: 12px; }
.ticker-icon { flex: none; width: 22px; height: 22px; color: var(--orange); }
.ticker-track { display: flex; gap: 36px; white-space: nowrap; font-size: var(--step--1); }
.ticker-track b { color: var(--orange); }
@media (prefers-reduced-motion: no-preference) { .ticker-track { animation: ticker 40s linear infinite; } }
@keyframes ticker { to { transform: translateX(-50%); } }

.banners { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 12 / 5; background: var(--deep); }
.banner-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.banner { flex: 0 0 100%; height: 100%; position: relative; display: block; color: var(--white); text-decoration: none; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .2s; }
.banner-dots button[aria-current="true"] { width: 22px; background: var(--orange); }
/* Built-in slides shown until real banner images are added */
.slide { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; padding: 0 6%; height: 100%; overflow: hidden; }
.slide h2 { font-size: clamp(1.3rem, 5.4vw, 2.8rem); margin-bottom: .25em; }
.slide p { font-size: clamp(.8rem, 2.6vw, 1.1rem); margin-bottom: .7em; color: rgba(255, 255, 255, .9); }
.slide .btn { min-height: 36px; padding: 0 14px; font-size: clamp(.8rem, 2.4vw, 1rem); }
.slide svg { width: 100%; height: auto; max-height: 100%; }
.slide.s-sky { background: radial-gradient(circle at 80% 30%, #7FD7FF 0, #2EB8FF 35%, #0D6FC4 100%); }
.slide.s-orange { background: radial-gradient(circle at 80% 40%, #FFC27A 0, #FF8A1F 40%, #D9480F 100%); }
.slide.s-orange h2, .slide.s-orange p { color: #2A1100; }
.slide.s-night { background: radial-gradient(circle at 75% 30%, #1F5C9E 0, #0B2647 55%, #061A33 100%); }

.lobby-tools { display: flex; gap: 8px; margin: 14px 0 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; background: transparent; min-height: 44px; width: 100%; padding: 0; }
.search input:focus { outline: none; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 10px; }
.cat { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--deep); color: var(--muted); font-weight: 700; cursor: pointer; }
.cat[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: #031629; }

.section-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: var(--step-1); }
.section-title svg { width: 22px; height: 22px; color: var(--orange); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.tile { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; text-decoration: none; display: block; color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 14px rgba(0, 0, 0, .3); transition: transform .12s; }
.tile:hover { transform: translateY(-2px); }
.tile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile .tag { position: absolute; top: 6px; left: 6px; background: var(--orange); color: #2A1100; font-size: .64rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.tile-name { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-weight: 800; font-stretch: 78%; font-size: clamp(.82rem, 3.4vw, 1.1rem);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 10px rgba(0, 0, 0, .4); letter-spacing: .01em; }

/* Donation card */
.donate-card { margin-top: 22px; border-radius: var(--r-lg); padding: 20px; background: linear-gradient(135deg, #0F3B6E 0%, #0B2647 60%); border: 1px solid var(--line); display: grid; gap: 14px; }
@media (min-width: 760px) { .donate-card { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.donate-card h2 { font-size: var(--step-2); }
.progress { height: 14px; background: var(--night); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--orange)); border-radius: 999px; min-width: 14px; }
.donate-nums { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--muted); margin-top: 6px; }
.donate-nums strong { color: var(--white); font-size: var(--step-1); }
.bank { background: var(--night); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 4px; }
.bank .acct { font-size: var(--step-2); font-weight: 800; letter-spacing: .04em; }

/* ---------- Panels & forms ---------- */
.panel { background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.stack { display: grid; gap: 12px; }
.stack > h1, .stack > h2, .stack > h3 { margin-bottom: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.split { display: grid; gap: 14px; }
@media (min-width: 960px) { .split { grid-template-columns: 1.6fr 1fr; align-items: start; } }
label { display: grid; gap: 6px; font-weight: 700; font-size: var(--step--1); color: var(--muted); }
input, select { min-height: 46px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--night); color: var(--white); font-size: var(--step-0); }
input:focus, select:focus { border-color: var(--sky); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--white); font-size: var(--step-0); }
.check input { min-height: auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--night); cursor: pointer; color: var(--white); font-weight: 700; }
.chip:hover { border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--sky); color: #031629; border-color: var(--sky); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--night); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; text-transform: capitalize; }
.seg button[aria-pressed="true"] { background: var(--sky); color: #031629; }

.stake { display: grid; grid-template-columns: 46px 1fr 46px; gap: 6px; }
.stake input { text-align: center; font-weight: 800; font-size: var(--step-1); }
.stake button { border-radius: 10px; border: 1.5px solid var(--line); background: var(--night); cursor: pointer; font-size: var(--step-0); font-weight: 800; }

table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
td.num, th.num { text-align: right; }

/* ---------- Game page frame ---------- */
.game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.game-head h1 { margin: 0; font-size: var(--step-2); }
.game-head .rtp { margin-left: auto; font-size: var(--step--1); color: var(--muted); }
.stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(circle at 50% 0%, #15457C 0, #0B2647 60%, #081E3A 100%); border: 1px solid var(--line); }
.result { min-height: 2em; text-align: center; font-size: var(--step-2); font-weight: 800; margin: 10px 0 0; }

/* Sky Rush */
.skybox { aspect-ratio: 16 / 10; width: 100%; background: linear-gradient(180deg, #1A8FE0 0%, #57C3FF 55%, #A8E3FF 100%); }
.skybox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.sky-mult { font-size: clamp(3.4rem, 12vw, 6.6rem); font-weight: 800; font-stretch: 75%; line-height: 1; color: #fff; text-shadow: 0 4px 0 rgba(6, 26, 51, .35); }
.sky-mult.crashed { color: var(--loss); text-shadow: 0 3px 0 #fff; }
.sky-sub { color: #062B4D; font-size: var(--step-1); font-weight: 700; }
.history { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.history span { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--deep); font-weight: 800; font-size: var(--step--1); }
.history .hi { color: var(--orange); } .history .lo { color: var(--muted); } .history .mid { color: var(--sky); }
.players { max-height: 260px; overflow: auto; }

/* Cowrie Fortune slots */
.machine { padding: 14px; background: linear-gradient(180deg, #FF9A2E, #E8590C); border-radius: var(--r-lg); max-width: 520px; margin: 0 auto;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .2), 0 12px 30px rgba(0, 0, 0, .35); }
.machine-top { text-align: center; font-weight: 800; font-stretch: 78%; font-size: var(--step-2); color: #2A1100; margin-bottom: 10px; }
.reels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #061A33; padding: 8px; border-radius: var(--r-md); }
.reel { position: relative; overflow: hidden; height: calc(var(--cell) * 3); border-radius: 12px; background: linear-gradient(180deg, #0B2647, #12345E 50%, #0B2647); }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 22%; z-index: 2; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(#061A33, transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, #061A33); }
.strip { will-change: transform; }
.strip.blur { filter: blur(1.6px); }
.sym { height: var(--cell); display: grid; place-items: center; font-size: calc(var(--cell) * .58); line-height: 1; transition: transform .2s; }
.sym.hit { animation: pop .6s ease-in-out 3; }
@keyframes pop { 50% { transform: scale(1.22); filter: drop-shadow(0 0 12px #FFD27A); } }
.paylines { position: absolute; inset: 8px; pointer-events: none; z-index: 3; width: calc(100% - 16px); height: calc(100% - 16px); }
.paylines polyline { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px #FFB45A); stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw .6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.win-banner { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; pointer-events: none; }
.win-banner span { background: rgba(6, 26, 51, .88); border: 2px solid var(--orange); color: var(--orange); font-weight: 800; font-size: var(--step-3); font-stretch: 80%; padding: 8px 22px; border-radius: 999px; animation: winIn .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes winIn { from { transform: scale(.4); opacity: 0; } }
canvas.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* Lucky 36 */
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 460px; }
.ball { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line); background: var(--night); font-weight: 800; cursor: pointer; color: var(--white); }
.ball[aria-pressed="true"] { background: var(--grad-orange); color: #2A1100; border-color: var(--orange); }
.ball.drawn { box-shadow: 0 0 0 3px var(--sky); }
.ball.drawn[aria-pressed="true"] { background: var(--win); border-color: var(--win); color: #062B1B; }

/* Gem Mines */
.mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px; max-width: 460px; margin: 0 auto; }
.mine { aspect-ratio: 1; border-radius: 12px; border: 0; cursor: pointer; background: linear-gradient(180deg, #2C6FB3, #1A4F88); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25);
  font-size: clamp(1.4rem, 7vw, 2.2rem); display: grid; place-items: center; transition: transform .1s; }
.mine:hover:not(:disabled) { transform: translateY(-2px); background: linear-gradient(180deg, #3B85CF, #1F5C9E); }
.mine:disabled { cursor: default; }
.mine.gem { background: radial-gradient(circle, #1F5C9E, #0B2647); animation: flipIn .3s ease-out; }
.mine.bomb { background: radial-gradient(circle, #FF6A7F, #A3122B); animation: flipIn .3s ease-out; }
.mine.ghost { opacity: .45; }
@keyframes flipIn { from { transform: rotateY(90deg); } }
.mult-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; font-weight: 800; }
.mult-bar strong { color: var(--orange); font-size: var(--step-2); }

/* Plinko */
.plinko canvas { display: block; width: 100%; height: auto; }

/* Dice */
.dice-track { position: relative; height: 56px; margin: 30px 18px 16px; border-radius: 999px; overflow: visible; }
.dice-track .band { position: absolute; inset: 18px 0; border-radius: 999px; background: var(--loss); }
.dice-track .band i { position: absolute; top: 0; bottom: 0; background: var(--win); border-radius: 999px; }
.dice-marker { position: absolute; top: -22px; transform: translateX(-50%); transition: left .7s cubic-bezier(.2, .9, .3, 1.1); text-align: center; }
.dice-marker span { display: inline-block; background: var(--white); color: var(--night); font-weight: 800; padding: 2px 10px; border-radius: 8px; }
.dice-marker::after { content: ''; display: block; width: 4px; height: 44px; margin: 2px auto 0; background: var(--white); border-radius: 4px; }
input[type="range"] { width: 100%; accent-color: var(--orange); min-height: 30px; padding: 0; background: transparent; border: 0; }
.dice-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.dice-stats div { background: var(--night); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.dice-stats strong { display: block; font-size: var(--step-1); }

/* Kobo Flip */
.coin-wrap { display: grid; place-items: center; padding: 30px 0 16px; perspective: 800px; }
.coin { width: 150px; height: 150px; position: relative; transform-style: preserve-3d; }
.coin .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 3rem; backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #FFE3A1, #FFB13D 45%, #D9700B 100%); color: #6B3200; box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .25), 0 10px 26px rgba(0, 0, 0, .4); }
.coin .tails { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #CDEFFF, #5CCBFF 45%, #1F8FE6 100%); color: #052B4E; }

/* Jackpot Wheel */
.wheel-wrap { position: relative; max-width: 360px; margin: 18px auto; }
.wheel-wrap svg.wheel { width: 100%; height: auto; display: block; transition: transform 4.2s cubic-bezier(.12, .8, .1, 1); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 34px; z-index: 2; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .4)); }
.wheel-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wheel-legend span { padding: 2px 10px; border-radius: 99px; font-weight: 800; font-size: var(--step--1); color: #031629; }

/* VIP */
.ladder { display: grid; gap: 8px; }
.rung { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: var(--night); border: 1px solid var(--line); }
.rung.current { background: var(--grad-orange); color: #2A1100; border-color: var(--orange); }
.rung.current .muted { color: #5A2A00; }
.meter { height: 10px; background: var(--night); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--orange)); }

/* Modal & toast */
dialog { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; background: var(--deep); color: var(--white); width: min(440px, 94vw); }
dialog::backdrop { background: rgba(3, 12, 26, .78); }
.dialog-body { padding: 22px; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--night); padding: 4px; border-radius: 12px; }
.tabs button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-weight: 800; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--sky); color: #031629; }
.error { color: var(--loss); min-height: 1.4em; margin: 0; font-size: var(--step--1); }
#toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 50; display: grid; gap: 8px; width: min(420px, 92vw); }
.toast { padding: 12px 16px; border-radius: var(--r-md); background: var(--white); color: var(--night); font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.toast.bad { background: var(--loss); color: #fff; }
.toast.good { background: var(--win); color: #062B1B; }

.footer-note { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }
.badge18 { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--loss); color: var(--loss); font-weight: 800; margin-right: 8px; vertical-align: middle; }
code { background: var(--night); padding: 2px 6px; border-radius: 4px; font-size: .85em; word-break: break-all; }
@media (max-width: 480px) { .topbar .btn { padding: 0 12px; } }
.layout > main { min-width: 0; }
.split > * { min-width: 0; }
@media (max-width: 600px) { .skybox { aspect-ratio: 5 / 4; } }

/* ---------- Round 3 additions ---------- */
.footer-note p { margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--sky); }
.rtp + .icon-btn, .game-head h1 + .icon-btn { margin-left: auto; }
.game-head .rtp { margin-left: auto; }
.game-head .rtp + .icon-btn { margin-left: 8px; }
@media (max-width: 480px) { .game-head .rtp { display: none; } }

.bet-panels { display: grid; gap: 12px; }
@media (min-width: 640px) and (max-width: 959px) { .bet-panels { grid-template-columns: 1fr 1fr; } }
.bet-panel { background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: grid; gap: 10px; }
.bet-panel h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--step-0); }
.bet-panel h3 .pill { background: var(--night); border: 1px solid var(--line); padding: 1px 10px; border-radius: 99px; font-size: var(--step--1); }
.bet-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.online { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 3px rgba(59, 224, 138, .2); }

.auto-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.auto-status { font-size: var(--step--1); color: var(--sky-soft); min-height: 1.2em; }

.tile .fav { position: absolute; top: 4px; right: 4px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(6, 26, 51, .55); color: #fff; cursor: pointer; padding: 0; }
.tile .fav svg { width: 18px; height: 18px; position: static; }
.tile .fav[aria-pressed="true"] { color: var(--orange); }
.tile .fav[aria-pressed="true"] svg { fill: currentColor; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3); gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
@media (min-width: 640px) { .row-scroll { grid-auto-columns: calc((100% - 30px) / 4); } }
@media (min-width: 1100px) { .row-scroll { grid-auto-columns: calc((100% - 50px) / 6); } }

.daily-card { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, #FF8A1F, #FF5A1F 55%, #D9480F); color: #2A1100; }
.daily-card svg { width: 56px; height: 56px; flex: none; }
.daily-card strong { display: block; font-size: var(--step-1); font-stretch: 85%; }
.daily-card .btn { margin-left: auto; }
.daily-card.used { background: var(--deep); color: var(--white); border: 1px solid var(--line); }

.install-card { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--deep); border: 1px dashed var(--sky); }
.install-card .btn { margin-left: auto; }

.bigwins td:first-child { font-weight: 700; }
.bigwins .mult { color: var(--orange); font-weight: 800; }

.info-page { max-width: 760px; }
.info-page h2 { margin-top: 1.4em; }
.info-page details { background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 8px; }
.info-page summary { cursor: pointer; font-weight: 700; }
.info-page details p, .info-page details ol { margin: 10px 0 0; }
.sound-btn[aria-pressed="false"] .on, .sound-btn[aria-pressed="true"] .off { display: none; }
@media (max-width: 480px) {
  .topbar { gap: 6px; padding: 8px 10px; }
  body.signed-in .brand { width: 74px; overflow: hidden; flex: none; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .topbar .icon-btn svg { width: 20px; height: 20px; }
  .balance strong { font-size: var(--step-0); }
}
.game-head [data-rules] { margin-left: auto; }
.game-head .rtp + [data-rules] { margin-left: 8px; }
@media (max-width: 480px) { .game-head [data-rules] { margin-left: auto !important; } }
.bet-panel .row2 { grid-template-columns: 1fr auto; }
.bet-panel .row2 .check { white-space: nowrap; }

/* ---------- Naija games ---------- */
.naija-stage { padding-bottom: 14px; }
.whot-table { display: grid; place-items: center; padding: 16px 0 6px; }
.whot-card { width: 130px; height: auto; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
.whot-card.deal { animation: deal .35s ease-out; }
@keyframes deal { from { transform: rotateY(90deg) translateY(-10px); } }
.whot-history { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 6px 14px; min-height: 34px; }
.whot-history span { background: var(--night); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-weight: 800; font-size: var(--step--1); }
.whot-guess { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 14px 0; }
.whot-guess .btn { flex-direction: column; min-height: 62px; line-height: 1.2; }
.whot-guess small { font-weight: 700; font-size: .78rem; opacity: .85; }

.pitch { background: linear-gradient(180deg, #0F3B6E 0%, #12345E 55%, #1E9E57 55%, #17834A 100%); }
.goal { display: block; width: 100%; max-width: 440px; margin: 6px auto 0; overflow: visible; }
.keeper, .ball-g { transition: transform .55s cubic-bezier(.2, .8, .3, 1); transform-box: view-box; transform-origin: 150px 100px; }
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 14px 0; }
.shots { display: flex; gap: 6px; justify-content: center; padding: 10px 0 0; }
.shots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .25); border: 2px solid rgba(255, 255, 255, .4); }
.shots i.goal { background: var(--win); border-color: var(--win); }
.shots i.miss { background: var(--loss); border-color: var(--loss); }
.goal-call { text-align: center; font-size: var(--step-3); font-weight: 800; font-stretch: 78%; margin: 6px 0 0; min-height: 1.2em; }

.road { display: flex; overflow-x: auto; scrollbar-width: thin; margin: 10px 0 0; background: #2B2F36; border-top: 6px solid #FFD23F; border-bottom: 6px solid #FFD23F; }
.lane { position: relative; flex: 0 0 82px; height: 230px; border-right: 3px dashed rgba(255, 255, 255, .5); display: grid; place-items: center; overflow: hidden; }
.lane.kerb { background: #4A5160; border-right: 6px solid #FFD23F; }
.lane.kerb span { position: absolute; bottom: 8px; font-weight: 800; font-size: var(--step--1); color: #fff; }
.lane .lm { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: var(--step--1); color: #fff; }
.lane.done { background: rgba(59, 224, 138, .18); }
.lane.done .lm { color: var(--win); }
.lane.crash { background: rgba(255, 77, 106, .3); }
.lane .boom { font-size: 2.4rem; z-index: 2; }
.okada-bike { width: 62px; z-index: 2; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); background: #fff; border-radius: 12px; padding: 4px; }
.lane .car { position: absolute; left: 50%; top: -60px; width: 30px; height: 50px; margin-left: -15px; border-radius: 8px; background: #2EB8FF; opacity: .55; }
.lane:nth-child(odd) .car { background: #FF4D6A; }
@media (prefers-reduced-motion: no-preference) { .lane:not(.kerb) .car { animation: drive 2.4s linear infinite; } }
@keyframes drive { to { top: 240px; } }

.track { position: relative; margin: 14px; border-radius: var(--r-md); overflow: hidden; background: #2B2F36; }
.track-lane { position: relative; height: 64px; border-bottom: 3px dashed rgba(255, 255, 255, .45); display: flex; align-items: center; padding-left: 30px; }
.track-lane:last-of-type { border-bottom: 0; }
.lane-no { position: absolute; left: 8px; font-weight: 800; color: #FFD23F; }
.racer { width: 90px; will-change: transform; }
.racer.first { filter: drop-shadow(0 0 10px #FFD23F); }
.danfo { width: 90px; display: block; }
.finish { position: absolute; top: 0; bottom: 0; right: 14px; width: 12px; background: repeating-linear-gradient(0deg, #fff 0 10px, #061A33 10px 20px); }

.cookoff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.team { text-align: center; }
.team h3 { margin: 0 0 4px; }
.team strong { display: block; font-size: var(--step-3); font-weight: 800; }
.pot { width: 100%; max-width: 140px; display: block; margin: 0 auto; }
@media (prefers-reduced-motion: no-preference) { .pot .steam { animation: steam 2s ease-in-out infinite; } }
@keyframes steam { 50% { transform: translateY(-4px); opacity: .25; } }
.vs { font-weight: 800; font-size: var(--step-2); color: var(--orange); }
.judges { display: flex; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.judges span { width: 34px; height: 40px; border-radius: 8px; background: var(--night); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; }
.judges span.shown { background: var(--white); color: var(--night); animation: deal .3s ease-out; }
.tile img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .tag { z-index: 2; }

/* =========================================================
   Cinematic game screens: each game wears its thumbnail's look
   ========================================================= */
.game-view { position: relative; isolation: isolate; --acc: var(--sky); --acc2: var(--orange); }
.game-view[data-game="crash"]   { --acc: #5CD0FF; --acc2: #FF8A1F; }
.game-view[data-game="slots"]   { --acc: #FFC24A; --acc2: #FF8A1F; }
.game-view[data-game="mines"]   { --acc: #36E0FF; --acc2: #2E7BFF; }
.game-view[data-game="plinko"]  { --acc: #FF3FD8; --acc2: #7A5CFF; }
.game-view[data-game="wheel"]   { --acc: #FFC24A; --acc2: #2FE08A; }
.game-view[data-game="dice"]    { --acc: #4C9DFF; --acc2: #FF8A1F; }
.game-view[data-game="flip"]    { --acc: #FFC24A; --acc2: #FF8A1F; }
.game-view[data-game="numbers"] { --acc: #B07CFF; --acc2: #FF5ACD; }
.game-view[data-game="whot"]    { --acc: #FF5A6A; --acc2: #FFC24A; }
.game-view[data-game="penalty"] { --acc: #3BE08A; --acc2: #E9FFF3; }
.game-view[data-game="danfo"]   { --acc: #FFD23F; --acc2: #FF8A1F; }
.game-view[data-game="jollof"]  { --acc: #FF7A1F; --acc2: #FF3B2F; }
.game-view[data-game="okada"]   { --acc: #C46CFF; --acc2: #2EB8FF; }

/* Full-bleed backdrop behind the whole game page, fading into the night */
.game-view::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: min(820px, 120vh); pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 26, 51, .25) 0%, rgba(6, 26, 51, .6) 45%, var(--night) 100%), var(--bg) center top / cover no-repeat; }

/* Hero header */
.hero-head { gap: 12px; margin-bottom: 16px; padding: 4px 0; }
.hero-thumb { width: 64px; height: 64px; flex: none; border-radius: 16px; object-fit: cover;
  box-shadow: 0 0 0 2px var(--acc), 0 0 22px color-mix(in srgb, var(--acc) 60%, transparent), 0 10px 20px rgba(0, 0, 0, .45); }
.hero-title { min-width: 0; }
.hero-title h1 { margin: 0; font-size: clamp(1.7rem, 5.4vw, 2.9rem); line-height: .95; font-weight: 800; font-stretch: 72%; font-style: italic; letter-spacing: -.01em;
  background: linear-gradient(180deg, #FFFFFF 10%, var(--acc) 60%, var(--acc2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(3, 12, 26, .8)) drop-shadow(0 0 14px color-mix(in srgb, var(--acc) 45%, transparent)); padding-right: .1em; }
.hero-blurb { margin: 4px 0 0; color: #DDEBFA; font-weight: 600; font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.hero-rtp { padding: 1px 9px; border-radius: 99px; background: rgba(6, 26, 51, .6); border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); color: var(--acc); font-weight: 800; }
.game-view .game-head .icon-btn { background: rgba(6, 26, 51, .55); backdrop-filter: blur(6px); }
@media (max-width: 480px) { .hero-thumb { width: 48px; height: 48px; border-radius: 12px; } }

/* Stage = the playfield: backdrop art, neon frame, inner glow */
.game-view .stage { background: linear-gradient(180deg, rgba(6, 26, 51, .35), rgba(6, 26, 51, .72)), var(--bg) center / cover;
  border: 1.5px solid color-mix(in srgb, var(--acc) 70%, transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 0 40px color-mix(in srgb, var(--acc) 22%, transparent) inset, 0 0 28px color-mix(in srgb, var(--acc) 30%, transparent), 0 18px 40px rgba(0, 0, 0, .45); }
.game-view .stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 22%); }
.game-view .skybox { background: var(--bg) center / cover; }
.game-view .pitch { background: linear-gradient(180deg, rgba(6, 26, 51, .15), rgba(6, 26, 51, .35)), var(--bg) center 30% / cover; }
.game-view .slots-stage, .game-view .numbers-stage { padding: 16px; }
.game-view .numbers-stage .board { margin: 0 auto; }

/* Glass bet panels */
.game-view .split > .panel { background: linear-gradient(180deg, rgba(18, 52, 94, .72), rgba(6, 26, 51, .82)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); box-shadow: 0 -2px 0 var(--acc) inset, 0 14px 30px rgba(0, 0, 0, .35); }
.game-view .bet-panel { background: linear-gradient(180deg, rgba(18, 52, 94, .72), rgba(6, 26, 51, .82)); backdrop-filter: blur(12px); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }

/* Glossy action buttons */
.game-view .btn.big { position: relative; overflow: hidden; text-transform: none; letter-spacing: .01em; font-stretch: 85%; }
.game-view .btn.big::after { content: ''; position: absolute; left: 6%; right: 6%; top: 3px; height: 42%; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); }
.game-view .btn.big:not(:disabled) { box-shadow: 0 4px 0 #B83F08, 0 0 24px rgba(255, 138, 31, .45); }
.game-view .btn.big.sky:not(:disabled) { box-shadow: 0 4px 0 #0C5FA3, 0 0 24px rgba(46, 184, 255, .5); }
@media (prefers-reduced-motion: no-preference) {
  .game-view .btn.big:not(:disabled)::before { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); animation: sheen 3.2s ease-in-out infinite; }
}
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* Big numbers glow in the game's colour */
.game-view .result { text-shadow: 0 0 18px color-mix(in srgb, var(--acc) 55%, transparent); }
.game-view .mult-bar strong { color: var(--acc); text-shadow: 0 0 14px color-mix(in srgb, var(--acc) 70%, transparent); font-stretch: 78%; font-size: var(--step-3); }
.game-view .sky-mult { text-shadow: 0 4px 0 rgba(6, 26, 51, .45), 0 0 30px rgba(255, 255, 255, .7); font-style: italic; }
.game-view .sky-sub { color: #fff; text-shadow: 0 2px 4px rgba(6, 26, 51, .6); }
.game-view .history span { background: rgba(6, 26, 51, .7); border: 1px solid rgba(255, 255, 255, .08); }

/* Slots: gold cabinet */
.game-view .machine { background: linear-gradient(180deg, #FFE08A 0%, #F2B33D 22%, #C9831A 60%, #8C5410 100%); padding: 16px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -6px 0 rgba(0, 0, 0, .3), 0 0 0 3px #3A2205, 0 0 40px rgba(255, 194, 74, .45), 0 20px 40px rgba(0, 0, 0, .55); }
.game-view .machine-top { font-style: italic; font-size: var(--step-3); color: #3A1D00; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.game-view .reels { background: #120A02; box-shadow: inset 0 0 0 2px #5A3608, inset 0 0 18px rgba(0, 0, 0, .8); }
.game-view .reel { background: linear-gradient(180deg, #1B1206, #3A2A12 50%, #1B1206); }
.game-view .reel::before { background: linear-gradient(#120A02, transparent); }
.game-view .reel::after { background: linear-gradient(transparent, #120A02); }
.game-view .win-banner span { border-color: #FFC24A; color: #FFD97A; box-shadow: 0 0 30px rgba(255, 194, 74, .6); }

/* Mines: crystal tiles */
.game-view .mine { background: linear-gradient(160deg, rgba(80, 200, 255, .35), rgba(20, 70, 140, .55)); border: 1px solid rgba(120, 220, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .3), 0 0 10px rgba(54, 224, 255, .15); backdrop-filter: blur(3px); }
.game-view .mine:hover:not(:disabled) { background: linear-gradient(160deg, rgba(110, 220, 255, .5), rgba(30, 90, 170, .65)); box-shadow: 0 0 16px rgba(54, 224, 255, .5); }
.game-view .mine.gem { background: radial-gradient(circle, rgba(54, 224, 255, .55), rgba(11, 38, 71, .8)); box-shadow: 0 0 20px rgba(54, 224, 255, .7); }
.game-view .mine.bomb { background: radial-gradient(circle, #FF6A7F, #A3122B); box-shadow: 0 0 24px rgba(255, 77, 106, .8); }

/* Lucky 36: neon balls */
.game-view .ball { background: radial-gradient(circle at 35% 30%, #3A2A6E, #160E36); border-color: rgba(176, 124, 255, .55); box-shadow: 0 0 8px rgba(176, 124, 255, .25); }
.game-view .ball[aria-pressed="true"] { background: radial-gradient(circle at 35% 30%, #FFD19A, #FF8A1F 55%, #C4500C); box-shadow: 0 0 14px rgba(255, 138, 31, .7); }
.game-view .ball.drawn { box-shadow: 0 0 0 3px #B07CFF, 0 0 16px #B07CFF; }
.game-view .ball.drawn[aria-pressed="true"] { background: radial-gradient(circle at 35% 30%, #9CF5C4, #3BE08A 55%, #1A9A5A); border-color: var(--win); color: #062B1B; box-shadow: 0 0 0 3px var(--win), 0 0 18px var(--win); }

/* Coin, wheel, dice glow */
.game-view .coin { filter: drop-shadow(0 0 28px rgba(255, 194, 74, .55)); }
.game-view .wheel-wrap svg.wheel { filter: drop-shadow(0 0 22px rgba(255, 194, 74, .5)) drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.game-view .dice-track .band { box-shadow: 0 0 16px rgba(76, 157, 255, .45); }

/* Naija games */
.game-view .whot-card { filter: drop-shadow(0 0 18px rgba(255, 194, 74, .45)) drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); }
.game-view .whot-history span { background: rgba(20, 4, 8, .65); border-color: rgba(255, 194, 74, .4); }
.game-view .goal-call { font-style: italic; text-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 0 22px rgba(59, 224, 138, .7); }
.game-view .road, .game-view .track { background: rgba(20, 22, 30, .78); backdrop-filter: blur(2px); box-shadow: 0 0 24px color-mix(in srgb, var(--acc) 35%, transparent); }
.game-view .lane.kerb { background: rgba(60, 66, 82, .85); }
.game-view .racer.first { filter: drop-shadow(0 0 14px #FFD23F); }
.game-view .team strong { text-shadow: 0 0 16px rgba(255, 122, 31, .7); }
.game-view .pot { filter: drop-shadow(0 0 20px rgba(255, 90, 31, .55)); }
.game-view .judges span:not(.shown) { background: rgba(6, 26, 51, .7); }
.game-view .judges span.shown { background: linear-gradient(180deg, #FFFFFF, #FFE3C2); color: #3A1D00; border-color: #FFB45A; box-shadow: 0 0 12px rgba(255, 138, 31, .55); }
.game-view .vs { font-style: italic; font-size: var(--step-3); text-shadow: 0 0 18px rgba(255, 138, 31, .8); }

/* ---------- More Naija games ---------- */
.game-view[data-game="nepa"]     { --acc: #FFE066; --acc2: #FF8A1F; }
.game-view[data-game="calabash"] { --acc: #FFC24A; --acc2: #C47A36; }
.game-view[data-game="suya"]     { --acc: #FF5A1F; --acc2: #FFD23F; }
.game-view[data-game="scratch"]  { --acc: #3BE08A; --acc2: #FFD23F; }
.game-view[data-game="ludo"]     { --acc: #2EB8FF; --acc2: #FF8A1F; }

/* Up NEPA! */
.nepa-room { display: grid; justify-items: center; padding: 10px 0 4px; }
.bulb { width: min(150px, 34vw); height: auto; overflow: visible; transition: filter .2s; }
.bulb .glass { fill: url(#bulbGlow); stroke: #FFF6C8; stroke-width: 3; transition: fill .2s; }
.bulb .filament { stroke: #FF8A1F; }
.nepa-room:not(.off) .bulb { filter: drop-shadow(0 0 26px #FFE066) drop-shadow(0 0 60px rgba(255, 200, 60, .55)); }
.nepa-room.off .bulb .glass { fill: #2A3442; stroke: #4A5568; }
.nepa-room.off .bulb .filament { stroke: #4A5568; }
.nepa-room.flicker .bulb { animation: flicker .65s steps(2) 1; }
@keyframes flicker { 0%, 30%, 60% { opacity: 1; } 15%, 45%, 75% { opacity: .35; } }
.nepa-call { margin: 6px 0 0; font-weight: 800; font-stretch: 78%; font-style: italic; font-size: var(--step-3); color: #FFF3B0; text-shadow: 0 0 18px rgba(255, 224, 102, .8), 0 3px 0 rgba(0, 0, 0, .5); }
.nepa-room.off .nepa-call { color: var(--muted); text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.nepa-room.cut .nepa-call { color: var(--loss); text-shadow: 0 0 18px rgba(255, 77, 106, .7); }
.hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 8px 14px 0; }
.hour { text-align: center; padding: 6px 2px; border-radius: 10px; background: rgba(6, 26, 51, .7); border: 1px solid rgba(255, 255, 255, .1); font-size: var(--step--1); }
.hour b { display: block; color: var(--muted); font-size: .72rem; }
.hour span { font-weight: 800; }
.hour.lit { background: linear-gradient(180deg, rgba(255, 224, 102, .4), rgba(255, 138, 31, .25)); border-color: #FFE066; box-shadow: 0 0 12px rgba(255, 224, 102, .45); }
.hour.lit b { color: #FFF3B0; }
.hour.next { border-color: var(--sky); box-shadow: 0 0 0 2px rgba(46, 184, 255, .35); }
.hour.cut { background: rgba(255, 77, 106, .35); border-color: var(--loss); }

/* Calabash Cowrie */
.cal-row { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 10px; padding: 34px 16px 4px; max-width: 560px; margin: 0 auto; }
.cal { position: relative; border: 0; background: none; padding: 0; cursor: pointer; aspect-ratio: 4 / 3.4; display: grid; align-items: end; }
.cal:focus-visible { outline: 3px solid var(--acc); outline-offset: 4px; border-radius: 12px; }
.cal-lid { position: relative; z-index: 2; display: block; transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); }
.cal-svg { width: 100%; height: auto; display: block; }
.cal-cowrie { position: absolute; left: 50%; bottom: 8%; width: 46%; transform: translateX(-50%); z-index: 1; visibility: hidden; }
.cowrie { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 12px rgba(255, 220, 140, .9)); }
.cal:hover .cal-lid { transform: translateY(-4px); }
.cal.mine .cal-lid { filter: drop-shadow(0 0 14px var(--acc)) drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); }
.cal.lift .cal-lid { transform: translateY(-62%) rotate(-8deg); }
.cal.win .cowrie { animation: pop .6s ease-in-out 3; }
.cal-row.shuffle .cal:nth-child(odd) .cal-lid { animation: wob .35s ease-in-out 2; }
.cal-row.shuffle .cal:nth-child(even) .cal-lid { animation: wob .35s ease-in-out 2 reverse; }
@keyframes wob { 25% { transform: translateX(-10px) rotate(-4deg); } 75% { transform: translateX(10px) rotate(4deg); } }

/* Suya Pepper */
.grill { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px 22px 6px; }
.heat-meter { width: 26px; height: 190px; border-radius: 999px; background: rgba(6, 26, 51, .75); border: 2px solid rgba(255, 255, 255, .15); position: relative; overflow: hidden; box-shadow: 0 0 18px rgba(255, 90, 31, .35); }
.heat-meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 999px; }
.heat-read { text-align: center; }
.heat-name { display: block; font-weight: 800; font-size: var(--step-1); color: #FFE3C2; text-transform: uppercase; letter-spacing: .06em; }
.heat-num { display: block; font-size: clamp(3rem, 11vw, 5.6rem); font-weight: 800; font-stretch: 72%; font-style: italic; line-height: 1; text-shadow: 0 4px 0 rgba(0, 0, 0, .45), 0 0 30px currentColor; }
.heat-target { color: #E8EEF6; font-weight: 700; }
.suya-stage .history { padding: 10px 14px 0; }
.game-view[data-game="suya"] .dice-stats { grid-template-columns: 1fr 1fr; }
.dice-stats small { display: block; color: var(--muted); }
.dice-stats b { font-size: var(--step-1); }
input[type="range"][data-slide] { width: 100%; accent-color: var(--orange); margin: 8px 0; }

/* Naija Scratch */
.scard { margin: 16px auto 0; max-width: 380px; padding: 12px; border-radius: 18px; background: linear-gradient(160deg, #FFE27A, #F2B33D 40%, #1EAA59 41%, #12804A); box-shadow: 0 0 0 3px #063D20, 0 0 34px rgba(59, 224, 138, .35), 0 18px 30px rgba(0, 0, 0, .5); }
.scard-head { text-align: center; font-weight: 800; font-style: italic; font-stretch: 78%; font-size: var(--step-2); color: #3A1D00; margin-bottom: 8px; }
.sgrid-wrap { position: relative; border-radius: 12px; overflow: hidden; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #FFF8E6; padding: 8px; }
.scell { aspect-ratio: 1; border-radius: 10px; background: #fff; border: 2px solid #F0D9A8; display: grid; place-items: center; align-content: center; gap: 2px; }
.scell .sq { font-size: 2rem; font-weight: 800; color: #E7D3A6; }
.scell .sico, .pt-ico { display: block; width: 58%; }
.scell .sico svg, .pt-ico svg { width: 100%; height: auto; display: block; }
.scell small { font-weight: 800; font-size: .66rem; color: #6B4A12; }
.scell.hit { border-color: #1EAA59; background: #E6FFF0; animation: pop .6s ease-in-out 3; box-shadow: 0 0 14px rgba(30, 170, 89, .6); }
.sfoil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .4s; }
.paytable { display: grid; gap: 4px; }
.pt-head, .pt-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--step--1); }
.pt-head { color: var(--muted); font-weight: 700; }
.pt-row span { display: flex; align-items: center; gap: 8px; }
.pt-row .pt-ico { width: 26px; }

/* Ludo Duel */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 26px 14px 8px; }
.duelist { text-align: center; padding: 12px 6px; border-radius: 16px; background: rgba(6, 26, 51, .55); border: 1.5px solid rgba(255, 255, 255, .1); transition: box-shadow .3s, border-color .3s; }
.duelist h3 { margin: 0 0 8px; }
.duelist.you h3 { color: #8FDBFF; } .duelist.oga h3 { color: #FFB27A; }
.duelist strong { display: block; font-size: var(--step-3); font-weight: 800; margin-top: 6px; }
.duelist.won { border-color: var(--win); box-shadow: 0 0 24px rgba(59, 224, 138, .55); }
.dice { display: flex; gap: 8px; justify-content: center; }
.die { width: clamp(44px, 12vw, 70px); height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
.die.rolling { transform: rotate(calc(var(--r, 1) * 12deg)); }
.dice .die:nth-child(2).rolling { transform: rotate(-14deg) translateY(-4px); }
.scard, .cal-row, .duel { -webkit-user-select: none; user-select: none; }

/* =================== Whot Live =================== */
.game-view[data-game="whotlive"] { --acc: #FF5A6A; --acc2: #FFC24A; }
.live-pill { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #FF3B4E; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .04em; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .55; } }
.dot-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 800; }
.toast.action { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: linear-gradient(90deg, #7A1F2B, #B83246); color: #fff; }
.toast.action .btn { flex: none; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: var(--step--1); }

.wl-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.wl-tabs button { flex: 1; max-width: 200px; min-height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 26, 51, .6); color: var(--white); font: inherit; font-weight: 800; cursor: pointer; }
.wl-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #FF6A7A, #B83246); border-color: #FF8A96; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-bottom: 14px; }
.wl-grid > [data-alerts]:empty { display: none; }
.wl-grid > [data-alerts] { grid-column: 1 / -1; }
.wl-card h2 { margin: 0; font-size: var(--step-1); }
.wl-card h3 { margin: 10px 0 6px; font-size: var(--step-0); color: var(--muted); }
.wl-card hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 6px 0; }
.wl-card input { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: rgba(6, 26, 51, .7); color: var(--white); border-radius: 99px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: var(--step--1); cursor: pointer; }
.chip:hover { border-color: var(--acc, var(--sky)); }
.wl-pot { margin: 0; }
.wl-pot b.win, .win { color: var(--win); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
.wl-alert { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(46, 184, 255, .14); border: 1px solid rgba(46, 184, 255, .5); }
.wl-alert.invite { background: rgba(255, 90, 106, .16); border-color: #FF8A96; }
.wl-history { display: grid; gap: 6px; margin-top: 8px; }
.wl-hrow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.friend-list { display: grid; gap: 4px; }
.friend { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.friend > span:nth-child(2) { flex: 1; display: grid; }
.friend > b { flex: 1; }
.friend small { font-size: .75rem; }
.av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: linear-gradient(160deg, #2E7BFF, #12345E); border: 2px solid rgba(255, 255, 255, .15); }
.av.on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--win); border: 2px solid var(--night); }
.av.empty { background: transparent; border: 2px dashed var(--line); color: var(--muted); }

/* waiting room */
.wl-wait { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.wl-code { text-align: center; }
.wl-code small { color: var(--muted); display: block; }
.wl-code strong { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: .18em; font-stretch: 80%; color: #FFD97A; text-shadow: 0 0 18px rgba(255, 194, 74, .5); }
.wl-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.wl-seatbox { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; background: rgba(6, 26, 51, .6); border: 1px solid var(--line); text-align: center; }
.wl-seatbox.filled { border-color: color-mix(in srgb, var(--acc) 60%, transparent); }
.wl-seatbox .av { width: 52px; height: 52px; font-size: 1rem; }
.wl-seatbox small { color: var(--muted); }
.wl-share { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-seat { max-width: 520px; margin: 0 auto; }

/* table */
.wl-table { display: grid; gap: 12px; }
.wl-opps { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wl-opp { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 120px; padding: 10px 12px; border-radius: 16px; background: rgba(6, 26, 51, .65); border: 1.5px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.wl-opp.turn { border-color: #FFD97A; box-shadow: 0 0 22px rgba(255, 194, 74, .55); }
.wl-opp.out { opacity: .45; }
.wl-opp .av { width: 48px; height: 48px; }
.ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(#FFD97A calc(var(--p, 100) * 1%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }
.fan { display: flex; height: 34px; }
.fan .mini { width: 22px; margin-left: -12px; transform: rotate(calc((var(--i, 0) - 3) * 4deg)); }
.fan .mini:first-child { margin-left: 0; }
.fan .mini svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.wl-felt { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(20px, 7vw, 70px); padding: 22px 12px; border-radius: 26px;
  background: radial-gradient(ellipse at center, rgba(30, 120, 70, .85), rgba(10, 60, 36, .92) 70%), var(--bg) center / cover;
  border: 3px solid #5A3608; box-shadow: inset 0 0 0 6px rgba(255, 194, 74, .25), inset 0 0 40px rgba(0, 0, 0, .55), 0 14px 30px rgba(0, 0, 0, .5); min-height: 220px; }
.wl-market { position: relative; width: clamp(78px, 20vw, 110px); aspect-ratio: 100 / 150; border: 0; background: none; padding: 0; cursor: pointer; }
.wl-market:disabled { cursor: default; }
.wl-market .stackcard { position: absolute; inset: 0; }
.wl-market .stackcard:nth-child(2) { transform: translate(3px, -3px); }
.wl-market .stackcard:nth-child(3) { transform: translate(6px, -6px); }
.wl-market svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.wl-market small { position: absolute; left: 0; right: 0; bottom: -24px; text-align: center; font-weight: 800; color: #E9FFF3; }
.my-turn .wl-market:not(:disabled):hover { filter: drop-shadow(0 0 12px #FFD97A); }
.wl-pile { display: grid; justify-items: center; gap: 8px; }
.wl-top { width: clamp(92px, 24vw, 130px); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55)); }
.wl-top svg { width: 100%; height: auto; display: block; }
.wl-top.land { animation: land .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes land { from { transform: translateY(-40px) rotate(-12deg) scale(1.15); opacity: .4; } }
.wl-call { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: #FFD97A; color: #3A1D00; font-weight: 800; text-transform: capitalize; }
.wl-call svg { width: 18px; height: 18px; }
.wl-pending { padding: 4px 14px; border-radius: 99px; background: var(--loss); color: #fff; font-weight: 800; animation: pop .6s ease-in-out infinite; }
.wl-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; white-space: nowrap;
  font-weight: 800; font-style: italic; font-stretch: 72%; font-size: clamp(1.8rem, 7vw, 3.4rem); color: #FFF3B0; text-shadow: 0 4px 0 #7A1F2B, 0 0 24px rgba(255, 194, 74, .9); }
.wl-banner.show { animation: callout 1.3s ease-out; }
@keyframes callout { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.wl-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 4px 0; font-weight: 800; position: relative; }
.my-turn .wl-status [data-turnlabel] { color: #FFD97A; }
.wl-timer { flex: 1; min-width: 80px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.wl-timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--win), #FFD97A); transition: width .25s linear; }
.wl-timer i.low { background: var(--loss); }
.wl-hand { display: flex; gap: 6px; overflow-x: auto; padding: 22px 6px 10px; scroll-snap-type: x proximity; }
.wl-card-btn { position: relative; flex: none; width: clamp(66px, 17vw, 96px); border: 0; padding: 0; background: none; cursor: pointer; scroll-snap-align: start; transition: transform .15s, filter .15s; }
.wl-card-btn svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.wl-card-btn small { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); padding: 0 6px; border-radius: 6px; background: #7A1F2B; color: #FFF6E5; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.wl-card-btn.ok { transform: translateY(-14px); filter: drop-shadow(0 0 10px #FFD97A); }
.wl-card-btn.ok:hover { transform: translateY(-20px); }
.wl-card-btn.no { opacity: .5; }
.wl-card-btn.flying { transform: translateY(-90px) scale(.8); opacity: 0; transition: transform .25s, opacity .25s; }
.wl-card-btn:focus-visible { outline: 3px solid #FFD97A; outline-offset: 3px; border-radius: 10px; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wl-actions .btn.big { flex: 1 1 200px; }
.phrases { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.wl-bubble { position: absolute; top: -10px; left: 50%; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 14px; background: #fff; color: var(--night); font-weight: 800; white-space: nowrap; z-index: 5; animation: pop .3s ease-out; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.wl-shape-dlg, .wl-result { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #12345E, #061A33); color: var(--white); padding: 22px; width: min(440px, 92vw); text-align: center; }
.wl-shape-dlg::backdrop, .wl-result::backdrop { background: rgba(3, 10, 22, .7); backdrop-filter: blur(3px); }
.wl-shape-dlg h2, .wl-result h2 { margin: 0 0 6px; }
.wl-shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.wl-shapes button { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: #FFF6E5; color: #7A1F2B; font: inherit; font-weight: 800; font-size: .72rem; text-transform: capitalize; cursor: pointer; }
.wl-shapes button:hover, .wl-shapes button:focus-visible { outline: 3px solid #FFD97A; }
.wl-shapes svg { width: 34px; height: 34px; }
.wl-result h2 { font-size: var(--step-3); font-style: italic; }
.wl-sums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.wl-sums div { padding: 10px 6px; border-radius: 12px; background: rgba(6, 26, 51, .7); border: 1px solid var(--line); }
.wl-sums small { display: block; color: var(--muted); font-size: .72rem; }
.wl-sums b { font-size: var(--step-1); }
.wl-result details { text-align: left; font-size: .75rem; word-break: break-all; margin-bottom: 12px; }
.wl-res-actions { display: grid; gap: 8px; }
@media (max-width: 480px) { .wl-opp { min-width: 96px; padding: 8px; } .wl-felt { min-height: 190px; } }
.friend-list { align-content: start; }
.wl-card, .wl-wait > .panel { align-content: start; }
@media (max-width: 640px) {
  .game-view[data-game="whotlive"] .wl-table ~ * { display: none; }
  .wl-opp { grid-template-columns: auto auto; justify-items: start; align-items: center; column-gap: 8px; min-width: 0; padding: 6px 10px; }
  .wl-opp .av { width: 38px; height: 38px; grid-row: span 3; }
  .wl-opp .fan { height: 24px; } .fan .mini { width: 16px; margin-left: -9px; }
  .wl-felt { min-height: 170px; padding: 14px 10px; }
  .wl-hand { padding-top: 18px; }
}

/* ======== Whot Live table v2: livelier, real card movement ======== */
.wl-table { gap: 10px; }
.wl-topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wl-chip-pot { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; font-weight: 800;
  background: linear-gradient(180deg, #3A2405, #1C1102); border: 1.5px solid #FFC24A; color: #FFE7A6; box-shadow: 0 0 16px rgba(255, 194, 74, .35); }
.coin { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF2B0, #FFC24A 45%, #B57A0B); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); display: inline-block; }
.wl-topbar .chip.on { border-color: #FFD97A; color: #FFD97A; }
.wl-topbar .chip { margin-left: auto; }

.av.big { width: 48px; height: 48px; font-size: .95rem; background: linear-gradient(160deg, var(--c, #2E7BFF), color-mix(in srgb, var(--c, #2E7BFF) 40%, #061A33)); border: 2px solid rgba(255, 255, 255, .35); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.av .ring { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; background: conic-gradient(#FFD97A calc(var(--p, 0) * 1%), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%); mask: radial-gradient(circle, transparent 60%, #000 62%); }
.wl-who { position: relative; display: flex; align-items: center; gap: 10px; }
.wl-who > span:nth-child(2) { display: grid; line-height: 1.2; }
.wl-who small { color: var(--muted); font-size: .78rem; }
.lastcard { padding: 2px 8px; border-radius: 99px; background: var(--loss); color: #fff; font-weight: 800; font-size: .72rem; animation: pop .8s ease-in-out infinite; }

/* opponents */
.wl-opps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.wl-opp { display: grid; justify-items: stretch; gap: 8px; min-width: 0; padding: 10px 12px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 52, 94, .75), rgba(6, 26, 51, .85)); border: 1.5px solid rgba(255, 255, 255, .1); }
.wl-opp.turn { border-color: #FFD97A; box-shadow: 0 0 0 1px #FFD97A inset, 0 0 26px rgba(255, 194, 74, .45); }
.opp-hand { display: flex; justify-content: center; align-items: flex-end; height: 86px; padding: 0 10px; }
.opp-hand .oc { flex: none; width: 56px; margin-left: calc(-56px + max(12px, min(40px, (100% - 56px) / var(--n, 5)))); transform-origin: 50% 120%;
  transform: rotate(calc((var(--i, 0) - (var(--n, 5) - 1) / 2) * 4deg)) translateY(calc(max(var(--i, 0) - (var(--n, 5) - 1) / 2, (var(--n, 5) - 1) / 2 - var(--i, 0)) * 2px)); }
.opp-hand .oc:first-child { margin-left: 0; }
.opp-hand .oc svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45)); }
.wl-opps.n1 .opp-hand .oc { width: 64px; margin-left: calc(-64px + max(14px, min(46px, (100% - 64px) / var(--n, 5)))); }
.wl-opps.n1 .opp-hand { height: 98px; }

/* felt table */
.wl-felt { padding: 14px; border-radius: 34px; min-height: 0;
  background: repeating-linear-gradient(92deg, #6B3A12 0 6px, #5A2F0D 6px 9px, #7A4518 9px 15px), #6B3A12;
  border: 0; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 16px 34px rgba(0, 0, 0, .55); }
.wl-felt-inner { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(26px, 9vw, 90px); padding: 26px 12px 34px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0) 0 0 / 6px 6px,
              radial-gradient(ellipse at 50% 40%, #2FA864 0%, #16804A 45%, #0B5631 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 216, 120, .35), inset 0 0 50px rgba(0, 0, 0, .5); min-height: 210px; }
.wl-watermark { position: absolute; inset: auto 0 6px; text-align: center; font-weight: 800; font-style: italic; letter-spacing: .3em; font-size: clamp(1.1rem, 4vw, 1.8rem); color: rgba(255, 255, 255, .07); pointer-events: none; }
.wl-market { width: clamp(76px, 19vw, 108px); aspect-ratio: 100 / 140; }
.wl-market .stackcard { transform: translate(calc(var(--k) * 2px), calc(var(--k) * -2px)); }
.wl-market small { bottom: -26px; color: #E9FFF3; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.my-turn .wl-market:not(:disabled) { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
.wl-pile { position: relative; width: clamp(88px, 23vw, 124px); aspect-ratio: 100 / 140; }
.wl-pile .pc { position: absolute; inset: 0; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.wl-pile .pc svg { width: 100%; height: auto; display: block; }
.wl-pile .pc:not(.top) { filter: brightness(.82) drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); }
.wl-pile .pc.landed { animation: slam .32s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes slam { from { transform: rotate(var(--r)) scale(1.18); } to { transform: rotate(var(--r)) scale(1); } }
.wl-flags { position: absolute; top: 10px; right: 12px; display: grid; gap: 6px; justify-items: end; }
.wl-call { text-transform: capitalize; box-shadow: 0 0 16px rgba(255, 217, 122, .6); }

/* my seat and hand */
.wl-me { padding: 10px 12px 4px; border-radius: 18px; background: linear-gradient(180deg, rgba(18, 52, 94, .7), rgba(6, 26, 51, .85)); border: 1.5px solid rgba(255, 255, 255, .1); }
.wl-me.turn { border-color: #FFD97A; box-shadow: 0 0 0 1px #FFD97A inset, 0 0 30px rgba(255, 194, 74, .4); animation: turnGlow 1.6s ease-in-out infinite; }
@keyframes turnGlow { 50% { box-shadow: 0 0 0 1px #FFD97A inset, 0 0 12px rgba(255, 194, 74, .2); } }
.wl-me.turn [data-turnlabel] { color: #FFD97A; font-weight: 800; }
.wl-me .wl-timer { flex: 1; max-width: 220px; margin-left: auto; }
.wl-hand { display: flex; justify-content: center; overflow: visible; padding: 26px 8px 14px; gap: 0; }
.wl-card-btn { width: clamp(70px, 17vw, 100px); margin-left: var(--ov, 6px); transform-origin: 50% 130%;
  transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 3deg)) translateY(calc(max(var(--i) - (var(--n) - 1) / 2, (var(--n) - 1) / 2 - var(--i)) * 3px)); }
.wl-card-btn:first-child { margin-left: 0; }
.wl-card-btn.ok { transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 3deg)) translateY(-18px); filter: drop-shadow(0 0 12px #FFD97A); z-index: 2; }
.wl-card-btn.ok:hover, .wl-card-btn.ok:focus-visible { transform: rotate(0deg) translateY(-30px) scale(1.06); z-index: 3; }
.wl-card-btn.no { opacity: 1; filter: brightness(.6) saturate(.7); }
.wl-card-btn:disabled { cursor: wait; }
.wl-card-btn small.sp2, .wl-card-btn small.sp5 { background: var(--loss); }
.wl-card-btn small.sp14 { background: #1E7A4C; }
.wl-card-btn small.sp20 { background: linear-gradient(90deg, #B07CFF, #FF5ACD); }
.wl-card-btn small.sp8 { background: #2E7BFF; }
.wl-card-btn.shake { animation: shake .35s; }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.wl-card-btn.flipin { animation: flipin .35s ease-out; }
@keyframes flipin { from { transform: rotateY(90deg); } }
.wl-fly { position: fixed; z-index: 70; aspect-ratio: 100 / 140; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)); will-change: transform; }
.wl-fly svg { width: 100%; height: auto; display: block; }

/* actions */
.wl-actions { gap: 10px; }
.wl-go { flex: 1 1 220px; }
.wl-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; cursor: pointer; user-select: none; }
.wl-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wl-switch .track { position: relative; width: 46px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .15); border: 1px solid var(--line); transition: background .2s; }
.wl-switch .track i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.wl-switch input:checked + .track { background: var(--win); }
.wl-switch input:checked + .track i { transform: translateX(20px); }
.wl-switch input:focus-visible + .track { outline: 3px solid #FFD97A; outline-offset: 2px; }
.wl-banner { font-size: clamp(2rem, 8vw, 3.8rem); z-index: 4; }
.wl-felt { position: relative; }
@media (max-width: 640px) {
  .wl-opps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
  .wl-opp { padding: 8px; gap: 4px; }
  .av.big { width: 38px; height: 38px; font-size: .8rem; }
  .opp-hand { height: 62px; } .opp-hand .oc { width: 40px; margin-left: calc(-40px + max(8px, min(28px, (100% - 40px) / var(--n, 5)))); }
  .wl-opps.n1 .opp-hand { height: 72px; } .wl-opps.n1 .opp-hand .oc { width: 46px; margin-left: calc(-46px + max(10px, min(32px, (100% - 46px) / var(--n, 5)))); }
  .wl-felt { padding: 8px; border-radius: 24px; }
  .wl-felt-inner { min-height: 170px; padding: 18px 8px 30px; }
  .wl-hand { padding-top: 22px; }
  .wl-card-btn { width: 64px; }
}
.wl-felt { display: block; padding: 12px; }
.wl-felt-inner { min-height: 190px; padding: 22px 12px 32px; }
.wl-card-btn.no { filter: brightness(.72) saturate(.8); }
@media (min-width: 900px) { .wl-hand { padding-top: 22px; } .opp-hand { height: 80px; } }

/* Whot opening: shuffle, deal, start burst */
.wl-table.intro .wl-hand, .wl-table.intro .wl-market, .wl-table.intro .wl-actions { pointer-events: none; }
.wl-shuffle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(80px, 20vw, 110px); aspect-ratio: 100 / 140; z-index: 3; }
.wl-shuffle span { position: absolute; inset: 0; transform: translateY(calc(var(--k) * -1.5px)); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
.wl-shuffle svg { width: 100%; height: auto; display: block; }
.wl-start { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 6; overflow: hidden; border-radius: inherit; }
.wl-start .rays { position: absolute; width: 200%; aspect-ratio: 1; background: repeating-conic-gradient(rgba(255, 217, 122, .22) 0 10deg, transparent 10deg 20deg);
  animation: raysIn 1.7s ease-out forwards, spin 6s linear infinite; }
@keyframes raysIn { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes spin { to { rotate: 360deg; } }
.wl-start span { grid-area: 1 / 1; font-weight: 800; font-style: italic; font-stretch: 72%; font-size: clamp(2.6rem, 11vw, 5.2rem); color: #FFF3B0; opacity: 0;
  text-shadow: 0 5px 0 #7A1F2B, 0 0 30px rgba(255, 194, 74, .95); }
.wl-start .w1 { animation: word 0.75s ease-out forwards; }
.wl-start .w2 { animation: word 1s ease-out .75s forwards; color: #fff; text-shadow: 0 5px 0 #B84A00, 0 0 36px rgba(255, 138, 31, 1); }
@keyframes word { 0% { opacity: 0; transform: scale(2.2) rotate(-6deg); } 25% { opacity: 1; transform: scale(.92) rotate(0deg); } 40% { transform: scale(1.05); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
.seo-links { max-width: 1100px; margin: 0 auto; padding: 8px 20px 90px; font-size: .78rem; color: var(--muted); text-align: center; }
.seo-links a { color: var(--muted); }
@media (min-width: 900px) { .seo-links { padding-left: 260px; padding-bottom: 24px; } }

/* =================== Penalty Duel =================== */
.game-view[data-game="penaltylive"] { --acc: #3BE08A; --acc2: #FFD23F; }
.pd-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pd-vs .vs { font-weight: 800; font-style: italic; font-size: var(--step-3); color: #FFD23F; text-shadow: 0 0 18px rgba(255, 210, 63, .6); }
.pd-match { display: grid; gap: 10px; }
.pd-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #0B2647, #061A33); border: 1.5px solid #1F4A7A; box-shadow: inset 0 -3px 0 #3BE08A; }
.pd-player { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-width: 0; }
.pd-player:last-child { grid-template-columns: auto 1fr auto; direction: rtl; text-align: right; }
.pd-player:last-child > * { direction: ltr; }
.pd-player b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-player.shooting .av { box-shadow: 0 0 0 3px #FFD23F, 0 0 18px rgba(255, 210, 63, .7); }
.pd-score { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; font-stretch: 72%; line-height: 1; color: #fff; text-shadow: 0 0 14px rgba(59, 224, 138, .6); }
.pd-dash { font-size: var(--step-3); font-weight: 800; color: var(--muted); }
.pd-dots { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.pd-player:last-child .pd-dots { justify-content: flex-end; }
.pd-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); }
.pd-dots i.goal { background: var(--win); border-color: var(--win); box-shadow: 0 0 8px var(--win); }
.pd-dots i.miss { background: var(--loss); border-color: var(--loss); }
.pd-dots i.next { border-color: #FFD23F; animation: pop .9s ease-in-out infinite; }
.pd-dots i.sd { border-style: dashed; }
.pd-role { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; text-align: center; }
.pd-role.shoot { background: linear-gradient(90deg, rgba(255, 138, 31, .25), rgba(255, 90, 31, .1)); border: 1px solid rgba(255, 138, 31, .6); }
.pd-role.keep { background: linear-gradient(90deg, rgba(46, 184, 255, .25), rgba(46, 184, 255, .08)); border: 1px solid rgba(46, 184, 255, .6); }
.pd-role b { font-size: var(--step-1); }
.pd-role span { color: #D6E4F5; }
.pd-timer { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 6px; }
.pd-timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--win), #FFD97A); transition: width .2s linear; }
.pd-timer i.low { background: var(--loss); }
.pd-stage { padding: 10px 10px 4px; }
.pd-goal { width: 100%; max-width: 560px; display: block; margin: 0 auto; }
.pd-zone { fill: transparent; cursor: pointer; transition: fill .15s; }
.pd-zone:hover { fill: rgba(255, 255, 255, .12); }
.pd-zone.mine { fill: rgba(255, 210, 63, .25); }
.pd-call { min-height: 1.3em; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s cubic-bezier(.2, .9, .3, 1.4); font-size: clamp(1.8rem, 7vw, 3rem); }
.pd-call.show { opacity: 1; transform: scale(1); }
.pd-zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-zones .btn.picked { outline: 3px solid #FFD23F; outline-offset: 2px; }
.pd-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pd-final { font-size: clamp(2.6rem, 10vw, 4rem); font-weight: 800; font-stretch: 72%; margin: 4px 0; }
@media (max-width: 480px) { .pd-player { gap: 6px; } .pd-player .av.big { width: 36px; height: 36px; } .pd-zones .btn.big { padding: 0 6px; font-size: .95rem; } }
/* 3D penalty scene */
.pd-3d { width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); background: #061A33; }
.p3d canvas { display: block; touch-action: manipulation; }
.pd-stage:has(.pd-3d), .pitch:has(.pd-3d) { padding: 8px; }
.wl-mend { cursor: default; }
.wl-mend.count { border-color: #FFD23F; color: #FFE7A6; }
.wl-low { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-weight: 800; font-size: .72rem;
  padding: 2px 8px; border-radius: 99px; background: var(--loss); color: #fff; animation: pop .9s ease-in-out infinite; }
.wl-count { display: grid; gap: 4px; margin: 10px 0; text-align: left; }
.wl-count > div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(6, 26, 51, .7); border: 1px solid var(--line); }
.wl-count > div.best { border-color: var(--win); box-shadow: 0 0 10px rgba(59, 224, 138, .35); }
.wl-count small { color: var(--muted); }
.wl-count b { font-size: var(--step-1); }
.wl-count p { margin: 4px 0 0; font-size: .75rem; }
.wl-notseated{background:rgba(255,196,0,.12);border:1px solid rgba(255,196,0,.4);border-radius:10px;padding:.6rem .8rem;font-weight:600}
.wl-watching{background:rgba(255,196,0,.1);border-left:3px solid #ffc400;padding:.5rem .7rem;border-radius:6px;font-size:.92rem}
.wl-seats.mini{display:flex;gap:.6rem;flex-wrap:wrap}
.wl-seats.mini .wl-seatbox{display:flex;flex-direction:column;align-items:center;gap:.2rem;min-width:64px}
.wl-seats.mini .av.empty{opacity:.45;border:1px dashed currentColor}
.wl-dup{background:rgba(255,80,80,.14);border:1.5px solid rgba(255,110,110,.6);border-radius:12px;padding:.7rem .9rem;margin-bottom:.8rem;line-height:1.45}
/* Big tables (4-6 players): tighter opponent tiles so the felt stays in view */
.wl-opps.n4, .wl-opps.n5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.wl-opps.n4 .wl-opp, .wl-opps.n5 .wl-opp { padding: 8px 10px; gap: 4px; }
.wl-opps.n4 .opp-hand, .wl-opps.n5 .opp-hand { height: 54px; }
.wl-opps.n4 .opp-hand .oc, .wl-opps.n5 .opp-hand .oc { width: 36px; margin-left: calc(-36px + max(8px, min(24px, (100% - 36px) / var(--n, 5)))); }
@media (max-width: 640px) {
  .wl-opps.n3, .wl-opps.n4, .wl-opps.n5 { grid-template-columns: 1fr 1fr; gap: 6px; }
  .wl-opps.n3 .wl-opp, .wl-opps.n4 .wl-opp, .wl-opps.n5 .wl-opp { padding: 6px 8px; gap: 2px; }
  .wl-opps.n3 .opp-hand, .wl-opps.n4 .opp-hand, .wl-opps.n5 .opp-hand { height: 30px; }
  .wl-opps.n3 .opp-hand .oc, .wl-opps.n4 .opp-hand .oc, .wl-opps.n5 .opp-hand .oc { width: 20px; margin-left: calc(-20px + max(5px, min(14px, (100% - 20px) / var(--n, 5)))); }
  .wl-opps .wl-opp .av { width: 32px; height: 32px; }
}
.wl-actions { min-width: 0; } .wl-actions > * { min-width: 0; }
.wl-table, .wl-wait { max-width: 100%; overflow-x: clip; }

/* ===================== Draughts Live ===================== */
.dr-table { display: grid; gap: 10px; max-width: min(640px, max(320px, calc(100svh - 250px))); margin: 0 auto; }
.dr-top { display: flex; justify-content: space-between; align-items: center; }
.dr-player { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(6, 26, 51, .7); border: 1.5px solid rgba(255, 255, 255, .1); }
.dr-player.turn { border-color: #FFD97A; box-shadow: 0 0 18px rgba(255, 194, 74, .4); }
.dr-pname { display: grid; flex: 1; min-width: 0; } .dr-pname small { opacity: .75; }
.dr-taken { font-weight: 800; color: #ff8f80; }
.dr-turnpill { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #FFD97A; color: #3a2400; white-space: nowrap; }
.dr-chip { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 2px 4px rgba(0, 0, 0, .5); }
.dr-chip.w { background: radial-gradient(circle at 38% 32%, #fffaf0, #ecd6a6 60%, #b38d55); }
.dr-chip.b { background: radial-gradient(circle at 38% 32%, #ff8a7c, #c4231b 58%, #5e0806); }
.wl-seatbox .dr-chip { width: 54px; height: 54px; }
.dr-boardwrap { padding: clamp(8px, 2.4vw, 16px); border-radius: 16px; background: linear-gradient(135deg, #8a4b1c, #4e250a 60%, #2e1404);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 210, 140, .35); }
.dr-board { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; touch-action: manipulation;
  background-color: #ecc98a; background-image: conic-gradient(#4a2408 25%, #ecc98a 0 50%, #4a2408 0 75%, #ecc98a 0); background-size: 20% 20%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); }
.dr-sq { position: absolute; width: 10%; height: 10%; pointer-events: none; }
.dr-sq.last { background: rgba(255, 210, 74, .32); box-shadow: inset 0 0 0 2px rgba(255, 217, 122, .55); }
.dr-piece { position: absolute; width: 10%; height: 10%; padding: 0; border: 0; background: none; cursor: default; display: grid; place-items: center; z-index: 2; }
.dr-piece::before { content: ""; position: absolute; inset: 9%; border-radius: 50%;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(255, 255, 255, .12), 0 3px 6px rgba(0, 0, 0, .55); transition: transform .15s; }
.dr-piece::after { content: ""; position: absolute; inset: 27%; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .14); }
.dr-piece.w::before { background: radial-gradient(circle at 38% 32%, #fffdf6, #efdcb0 58%, #b38d55); }
.dr-piece.b::before { background: radial-gradient(circle at 38% 32%, #ff8f80, #c8261e 56%, #5e0806); }
.dr-piece svg { position: relative; z-index: 1; width: 48%; height: 48%; color: #f2b51c; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.dr-piece.can { cursor: pointer; }
.dr-piece.can::before { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 0 3px #FFD97A, 0 0 16px rgba(255, 217, 122, .8); animation: drPulse 1.4s ease-in-out infinite; }
.dr-piece.sel::before { transform: scale(1.12); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 0 4px #4ee38b, 0 0 20px rgba(78, 227, 139, .85); animation: none; }
.dr-piece.moving { z-index: 5; }
.dr-piece.taken { animation: drTaken .45s ease-in forwards; }
.dr-piece.crowning svg { animation: drCrown .6s cubic-bezier(.2, 1.6, .4, 1); }
.dr-dest { position: absolute; width: 10%; height: 10%; border: 0; padding: 0; background: none; cursor: pointer; z-index: 3; display: grid; place-items: center; }
.dr-dest::before { content: ""; width: 34%; height: 34%; border-radius: 50%; background: rgba(78, 227, 139, .85); box-shadow: 0 0 14px rgba(78, 227, 139, .9); }
.dr-dest.cap::before { width: 70%; height: 70%; background: none; border: 3px solid #ff6b5b; box-shadow: 0 0 14px rgba(255, 107, 91, .9); }
.dr-dest b { position: absolute; font-size: clamp(.6rem, 2vw, .85rem); color: #fff; text-shadow: 0 1px 2px #000; }
.dr-status { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(6, 26, 51, .7); font-weight: 700; }
.dr-status.mine { background: linear-gradient(90deg, rgba(255, 194, 74, .25), rgba(6, 26, 51, .7)); }
.dr-status > span:first-child { flex: 1; }
.dr-timer { width: 90px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; flex: none; }
.dr-timer i { display: block; height: 100%; width: 0; background: #4ee38b; transition: width .2s linear; }
.dr-timer i.low { background: #ff6b5b; }
.dr-board.intro .dr-piece { animation: drDrop .5s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.dr-banner { position: absolute; inset: 0; display: grid; place-items: center; z-index: 6; background: rgba(0, 0, 0, .35); animation: drFade 2.4s ease forwards; }
.dr-banner b { padding: 14px 22px; border-radius: 14px; background: rgba(6, 26, 51, .92); border: 2px solid #FFD97A; font-size: clamp(1rem, 3vw, 1.3rem); text-align: center; }
@keyframes drPulse { 50% { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 0 3px #FFD97A, 0 0 26px rgba(255, 217, 122, 1); } }
@keyframes drTaken { 40% { transform: scale(1.25); opacity: 1; } to { transform: scale(0) rotate(40deg); opacity: 0; } }
@keyframes drCrown { from { transform: scale(0) translateY(-40%); } to { transform: scale(1); } }
@keyframes drDrop { from { transform: translateY(-120%) scale(1.3); opacity: 0; } }
@keyframes drFade { 0%, 80% { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dr-piece.can::before { animation: none; } .dr-board.intro .dr-piece { animation: none; } }
/* Customer care */
.cc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 800px) { .cc-grid { grid-template-columns: 1fr; } }
.cc-grid select, .cc-grid textarea { width: 100%; }
.cc-item { display: grid; gap: 2px; text-align: left; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; position: relative; font: inherit; }
.cc-item.on { border-color: #2EB8FF; background: rgba(46, 184, 255, .12); }
.cc-item small { opacity: .7; }
.cc-item .dot-badge { position: absolute; top: 8px; right: 10px; }
.cc-thread { display: grid; gap: 10px; max-height: 50vh; overflow-y: auto; padding: 4px; }
.cc-msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; }
.cc-msg p { margin: 0 0 4px; line-height: 1.45; } .cc-msg small { opacity: .65; font-size: .78rem; }
.cc-msg.me { justify-self: end; background: rgba(46, 184, 255, .18); border-bottom-right-radius: 4px; }
.cc-msg.staff { justify-self: start; background: rgba(78, 227, 139, .15); border-bottom-left-radius: 4px; }
.nav .dot-badge[data-cc-badge] { margin-left: 6px; }
textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--night); color: var(--white); resize: vertical; }
textarea:focus { border-color: var(--sky); outline: none; }
.cc-head h1 { margin: 0; font-size: var(--step-3, 2rem); }
.panel code { word-break: break-all; } .split > * { min-width: 0; }
.split .panel, .split .panel > * { min-width: 0; max-width: 100%; } .split input { max-width: 100%; min-width: 0; }
.stack > *, label > input, label > select { min-width: 0; }
.wl-table { grid-template-columns: minmax(0, 1fr); } .wl-table > * { min-width: 0; }
/* Customer care live chat (player side) */
.lc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 860px) { .lc-wrap { grid-template-columns: 1fr; } .lc-side { display: none; } }
.lc { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: min(72vh, 680px); min-height: 420px; }
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(6, 26, 51, .5); }
.lc-status { font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.lc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.lc-dot.on { background: var(--win); box-shadow: 0 0 8px var(--win); } .lc-dot.wait { background: var(--orange); }
.lc-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lc-hello { margin: auto; text-align: center; max-width: 340px; } .lc-hello p { color: var(--muted); }
.lc-msg { display: grid; gap: 3px; max-width: 82%; } .lc-msg.me { align-self: flex-end; justify-items: end; } .lc-msg.them { align-self: flex-start; }
.lc-msg small { font-size: .74rem; } .lc-msg .rd { font-size: .7rem; color: var(--muted); }
.lc-bubble { padding: 9px 13px; border-radius: 16px; background: var(--lift); }
.lc-msg.me .lc-bubble { background: var(--grad-sky); color: #fff; border-bottom-right-radius: 4px; } .lc-msg.them .lc-bubble { border-bottom-left-radius: 4px; }
.lc-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; } .lc-bubble img { max-width: 220px; max-height: 280px; border-radius: 10px; display: block; cursor: zoom-in; }
.lc-sys { align-self: center; font-size: .78rem; color: var(--muted); background: rgba(255, 255, 255, .06); padding: 3px 12px; border-radius: 99px; text-align: center; }
.lc-typing { padding: 0 16px 8px; font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.lc-typing[hidden] { display: none; }
.lc-typing .dots { display: inline-flex; gap: 3px; } .lc-typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: lcB 1s infinite; }
.lc-typing .dots i:nth-child(2) { animation-delay: .15s; } .lc-typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes lcB { 30% { transform: translateY(-3px); } }
.lc-foot { border-top: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; }
.lc-topics { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { border: 1.5px solid var(--line); background: none; color: var(--muted); padding: 4px 11px; border-radius: 99px; font: inherit; font-size: .82rem; cursor: pointer; }
.chip-btn.on { border-color: var(--sky); color: var(--white); background: rgba(46, 184, 255, .15); }
.lc-compose { display: flex; gap: 8px; align-items: flex-end; }
.lc-compose textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; }
.lc-icon { width: 42px; height: 42px; flex: none; border-radius: 10px; border: 1.5px solid var(--line); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.lc-icon svg { width: 20px; height: 20px; } .lc-icon:hover { color: var(--white); border-color: var(--sky); }
.lc-rate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.lc-stars { display: flex; gap: 2px; } .lc-stars button { background: none; border: 0; font-size: 1.8rem; color: var(--line); cursor: pointer; line-height: 1; }
.lc-stars:hover button { color: #FFC24A; } .lc-stars button:hover ~ button { color: var(--line); }
@media (prefers-reduced-motion: reduce) { .lc-typing .dots i { animation: none; } }
.link-btn { background: none; border: 0; color: var(--sky); font: inherit; font-weight: 600; cursor: pointer; justify-self: center; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.forgot-done { background: rgba(46, 184, 255, .1); border: 1px solid rgba(46, 184, 255, .35); border-radius: 12px; padding: 12px 14px; line-height: 1.5; }
.reset-card { max-width: 440px; margin: 30px auto; } .reset-card h1 { margin: 0; }

/* =========================================================
   Lagos Lights, Owambe Party, Baba Ijebu, Ten-Ten, Ogbonge Spin
   ========================================================= */
.game-view[data-game="lagos"]    { --acc: #FF4FD8; --acc2: #36E0FF; }
.game-view[data-game="owambe"]   { --acc: #FFD23F; --acc2: #FF5ACD; }
.game-view[data-game="ijebu"]    { --acc: #FFD23F; --acc2: #E53950; }
.game-view[data-game="tenten"]   { --acc: #FF5ACD; --acc2: #2EB8FF; }
.game-view[data-game="bigwheel"] { --acc: #FFD23F; --acc2: #FF5A1F; }

.game-view .machine.lagos { max-width: 640px; background: linear-gradient(180deg, #3B1A6E 0%, #1B0B3F 55%, #0A0420 100%); box-shadow: 0 0 0 2px #FF4FD8, 0 0 40px rgba(255, 79, 216, .45), 0 20px 40px rgba(0, 0, 0, .55); }
.game-view .machine.lagos .machine-top { color: #FFE9FB; text-shadow: 0 0 10px #FF4FD8, 0 0 22px #FF4FD8; font-style: normal; letter-spacing: .02em; }
.game-view .machine.lagos .reels { background: #07021A; box-shadow: inset 0 0 0 2px #36E0FF66, inset 0 0 18px rgba(0, 0, 0, .8); gap: 6px; }
.game-view .machine.lagos .reel { background: linear-gradient(180deg, #120836, #24125A 50%, #120836); }
.game-view .machine.lagos .paylines polyline { stroke: #36E0FF; filter: drop-shadow(0 0 6px #36E0FF); }
.game-view .machine.lagos .win-banner span { border-color: #FF4FD8; color: #FFD6F6; box-shadow: 0 0 30px rgba(255, 79, 216, .6); }

.game-view .machine.owambe { background: linear-gradient(180deg, #FFE36A 0%, #FF9DE2 30%, #C2238F 70%, #6E0E52 100%); box-shadow: 0 0 0 2px #FFD23F, 0 0 34px rgba(255, 90, 205, .45), 0 20px 40px rgba(0, 0, 0, .5); }
.game-view .machine.owambe .machine-top { color: #4A0636; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
.game-view .machine.owambe .reels { background: #2A0420; box-shadow: inset 0 0 0 2px #FFD23F88, inset 0 0 18px rgba(0, 0, 0, .8); }
.game-view .machine.owambe .reel { background: linear-gradient(180deg, #3D0830, #6B1554 50%, #3D0830); }
.game-view .machine.owambe .paylines polyline { stroke: #FFD23F; }

.line-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.line-map svg { width: 100%; height: auto; }
.line-map rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .15); }
.line-map circle { fill: rgba(255, 255, 255, .35); }
.line-map polyline { fill: none; stroke: #36E0FF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Baba Ijebu */
.ijebu-stage { display: grid; gap: 14px; }
.ij-draw { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 14px; border-radius: var(--r-md); background: radial-gradient(circle at 50% 30%, #3A0D16, #14040A); box-shadow: inset 0 0 0 2px #FFD23F55; }
.ij-ball { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #2A0A00;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #FFE58A 30%, #F2B33D 70%, #A8650C); box-shadow: 0 6px 12px rgba(0, 0, 0, .45); animation: winIn .35s cubic-bezier(.2, 1.4, .4, 1); }
.ij-ball.empty { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .4); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); animation: none; }
.ij-ball.hit { background: radial-gradient(circle at 35% 30%, #fff 0 12%, #9FF0C2 30%, #1EAA59 70%, #0A5A2C); color: #032612; box-shadow: 0 0 0 3px #fff, 0 0 22px #3BE08A; }
.ij-board { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.ij-num { aspect-ratio: 1; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .07); color: var(--white); font: inherit; font-weight: 700; font-size: clamp(11px, 2.6vw, 15px); cursor: pointer; padding: 0; min-width: 0; }
.ij-num:hover { background: rgba(255, 255, 255, .14); }
.ij-num.on { background: var(--acc); color: #2A0A00; box-shadow: 0 0 12px color-mix(in srgb, var(--acc) 70%, transparent); }
.ij-num.drawn { outline: 2px solid #E53950; outline-offset: -2px; }
.ij-num.on.drawn { background: #3BE08A; outline-color: #fff; }
.ij-picks { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Ten-Ten */
.tt-arena { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; padding: 16px 8px 4px; }
.tt-side { text-align: center; }
.tt-side h3 { margin: 0 0 6px; }
.tt-leg { width: min(110px, 26vw); height: auto; }
.tt-leg.bounce { animation: ttHop .36s ease-in-out; }
@keyframes ttHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.tt-score { display: grid; place-items: center; padding-bottom: 20px; }
.tt-score strong { font-size: var(--step-4, 2.4rem); line-height: 1; color: var(--acc); }
.tt-rounds { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tt-rounds li { display: grid; place-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.tt-rounds b { font-size: 20px; }
.tt-rounds b.hit { color: #3BE08A; }
.tt-rounds b.miss { color: #FF5A6A; }
.tt-picks { display: grid; gap: 6px; }
.tt-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tt-pick .seg { flex: none; }

/* Ogbonge Spin */
.wheel-wrap svg.bigwheel { transition: transform 4.2s cubic-bezier(.1, .75, .08, 1); }
.game-view .wheel-wrap svg.bigwheel { filter: drop-shadow(0 0 22px rgba(255, 210, 63, .5)) drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.bw-backs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bw-back { display: grid; place-items: center; gap: 1px; padding: 10px 4px; border-radius: 14px; border: 2px solid transparent; cursor: pointer; font: inherit; color: #1A0A00;
  background: var(--c); opacity: .7; transition: transform .15s, opacity .15s; }
.bw-back strong { font-size: 22px; line-height: 1; }
.bw-back span { font-weight: 800; }
.bw-back small { font-size: 11px; opacity: .8; }
.bw-back:hover { opacity: .9; }
.bw-back.on { opacity: 1; border-color: #fff; transform: translateY(-2px); box-shadow: 0 0 18px var(--c); }

/* =========================================================
   Rewards, levels, invites, leaderboards, share, install, live chat
   ========================================================= */
.lv { display: inline-block; vertical-align: middle; padding: 1px 7px; border-radius: 99px; background: linear-gradient(135deg, #FFD23F, #FF9A1F); color: #2A1100; font-size: .68rem; font-weight: 800; line-height: 1.5; letter-spacing: .01em; }
.lv.big { font-size: 1.15rem; padding: 8px 14px; border-radius: 16px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: var(--step--1); background: var(--night); border: 1px solid var(--line); }
.pill.good { background: rgba(59, 224, 138, .14); border-color: rgba(59, 224, 138, .5); color: #7DF0B5; }

.rewards h1 { margin-bottom: 14px; }
.rw-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.rewards .panel { display: grid; gap: 12px; }
.rewards h2 { margin: 0; font-size: var(--step-1); }
.rw-level-top { display: flex; gap: 14px; align-items: center; }
.rw-level-top small { display: block; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: 6px 0 4px; }
.bar.big { height: 14px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3BE08A, #FFD23F); transition: width .6s; }
.streak { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak li { position: relative; display: grid; gap: 2px; place-items: center; padding: 10px 2px; border-radius: 12px; background: rgba(255, 255, 255, .06); text-align: center; font-size: .7rem; min-width: 0; }
.streak li b { font-size: .72rem; white-space: nowrap; }
.streak li.done { background: rgba(59, 224, 138, .15); }
.streak li.done i { position: absolute; top: 2px; right: 5px; color: #3BE08A; font-style: normal; font-weight: 800; }
.streak li.today { background: linear-gradient(160deg, #FFD23F, #FF7A1A); color: #2A1100; box-shadow: 0 0 18px rgba(255, 186, 63, .55); transform: translateY(-2px); }
.missions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mission { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.mission.claimed { opacity: .65; }
.rw-allbonus { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px dashed rgba(255, 210, 63, .5); }
.copyrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copyrow input { min-width: 0; }
.btn.wa { background: #25D366; color: #052E16; }
.rw-boards-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lb-table { width: 100%; }
.lb-table tr.me td { background: rgba(255, 210, 63, .12); font-weight: 800; }
.lb-table td:first-child { width: 2.5em; }
.rw-boards .seg button { text-transform: none; }

dialog.daily-pop { max-width: 340px; }
.daily-pop-coin { font-size: 72px; line-height: 1; animation: coinSpin 1.6s ease-in-out infinite; }
@keyframes coinSpin { 0%, 100% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(1.1); } }

.install-bar { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(520px, calc(100% - 20px));
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: #0E2A52; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: pop .3s ease-out; }
.install-bar img { border-radius: 10px; }
.install-bar small { display: block; color: var(--muted); }
@media (min-width: 900px) { .install-bar { bottom: 20px; } }

.phrases .reactions { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.chip.emoji { font-size: 1.3rem; padding: 4px 10px; line-height: 1.2; }
.wl-bubble.emoji { font-size: 1.8rem; padding: 2px 10px; background: transparent; box-shadow: none; }
.lc-panel { margin-top: 8px; }
.say-float { position: fixed; top: 110px; left: 50%; transform: translateX(-50%); z-index: 20; display: grid; justify-items: center; padding: 8px 14px; border-radius: 16px; background: #fff; color: var(--night); font-weight: 800; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); animation: sayIn .35s cubic-bezier(.2, 1.4, .4, 1); pointer-events: none; max-width: 80%; text-align: center; }
.say-float small { font-size: .68rem; color: #4B5B73; }
.say-float.mine { background: #FFD23F; }
.say-float.emoji span { font-size: 2.4rem; line-height: 1; }
@keyframes sayIn { from { opacity: 0; transform: translate(-50%, -10px) scale(.8); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

.rw-grid > * { min-width: 0; }
.streak { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.row-2 > * { min-width: 0; }
@media (max-width: 420px) { .streak li { padding: 8px 1px; font-size: .62rem; } .streak li b { font-size: .7rem; } .rw-allbonus { flex-wrap: wrap; } }

/* =========================================================
   Live tables: cards, roulette, baccarat, blackjack, poker, chess
   ========================================================= */
.game-view[data-game="poker"] { --acc: #3BE08A; --acc2: #FFD23F; }
.game-view[data-game="blackjack"] { --acc: #FFD23F; --acc2: #3BE08A; }
.game-view[data-game="liveroulette"] { --acc: #FFD23F; --acc2: #D3263A; }
.game-view[data-game="baccarat"] { --acc: #2EB8FF; --acc2: #D3263A; }
.game-view[data-game="chess"] { --acc: #F0D9B5; --acc2: #B58863; }

.pc { display: inline-grid; position: relative; width: 46px; height: 64px; border-radius: 7px; background: #fff; color: #111; box-shadow: 0 4px 10px rgba(0, 0, 0, .45); font-weight: 800; flex: none; vertical-align: middle; }
.pc b { position: absolute; left: 6px; top: 3px; font-size: 18px; line-height: 1; }
.pc i { position: absolute; right: 5px; bottom: 2px; font-size: 26px; font-style: normal; line-height: 1; }
.pc.red { color: #D3263A; }
.pc.back { background: repeating-linear-gradient(45deg, #1E5AA8 0 6px, #2A6ACC 6px 12px); border: 3px solid #fff; }
.pc.slot { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.pc.small { width: 34px; height: 48px; } .pc.small b { font-size: 14px; } .pc.small i { font-size: 18px; }
.pc.big { width: 56px; height: 78px; } .pc.big b { font-size: 22px; } .pc.big i { font-size: 32px; }
.pc.deal { animation: dealIn .35s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes dealIn { from { transform: translateY(-30px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

.lt-wrap { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
@media (max-width: 900px) { .lt-wrap { grid-template-columns: 1fr; } }
.lt-stage { display: grid; gap: 12px; padding: 14px; }
.lt-status { display: grid; gap: 6px; text-align: center; }
.lt-status b { font-size: var(--step-1); }
.lt-timer { position: relative; display: block; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lt-timer i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--acc2), var(--acc)); border-radius: inherit; }
.lt-timer em { position: absolute; right: 6px; top: -18px; font-style: normal; font-size: .75rem; color: var(--muted); }
.lt-history { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.hb { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 8px; font-weight: 800; font-size: .8rem; color: #fff; }
.hb.red { background: #D3263A; } .hb.black { background: #141414; border: 1px solid #333; } .hb.green { background: #13A35A; }
.hb.player { background: #2EB8FF; color: #031629; } .hb.banker { background: #D3263A; } .hb.tie { background: #13A35A; }
.chip-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.chipbtn { width: 52px; height: 52px; border-radius: 50%; border: 5px dashed rgba(255, 255, 255, .85); background: #2EB8FF; color: #031629; font-weight: 800; cursor: pointer; font: inherit; font-weight: 800; }
.chipbtn:nth-child(2) { background: #FF5A1F; color: #fff; } .chipbtn:nth-child(3) { background: #141414; color: #fff; } .chipbtn:nth-child(4) { background: #B07CFF; color: #fff; } .chipbtn:nth-child(5) { background: #FFD23F; } .chipbtn:nth-child(6) { background: #3BE08A; }
.chipbtn.on { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 3px #fff, 0 8px 16px rgba(0, 0, 0, .5); }
.lt-bets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.lt-bets h3 { margin: 0 0 6px; font-size: var(--step-0); }
.betpill { display: inline-block; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: .78rem; margin: 2px 2px 0 0; }
.betpill.won { background: rgba(59, 224, 138, .2); color: #7DF0B5; } .betpill.lost { opacity: .5; }

/* roulette */
.rw-wrap { position: relative; width: min(320px, 80vw); margin: 0 auto; }
.rw-wrap svg.rw { width: 100%; height: auto; display: block; }
.rw-ball { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rw-ball span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 28px; font-weight: 800; color: #fff; border: 4px solid #fff; box-shadow: 0 0 24px rgba(255, 210, 63, .8); animation: winIn .4s cubic-bezier(.2, 1.4, .4, 1); }
.rw-ball span.red { background: #D3263A; } .rw-ball span.black { background: #141414; } .rw-ball span.green { background: #13A35A; }
.rboard { display: grid; grid-template-columns: 34px 1fr 40px; grid-template-areas: "z n c" ". d ." ". o ."; gap: 3px; }
.rzero { grid-area: z; display: grid; } .rnums { grid-area: n; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rcols { grid-area: c; display: grid; gap: 3px; } .rdoz { grid-area: d; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; } .routs { grid-area: o; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.rb { position: relative; min-height: 34px; min-width: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; background: #0D5C33; color: #fff; font: inherit; font-weight: 800; font-size: .78rem; cursor: pointer; }
.rb.red { background: #B51F32; } .rb.black { background: #141414; } .rb.green { background: #13A35A; }
.rb:disabled { cursor: default; opacity: .85; }
.rb.win { box-shadow: 0 0 0 3px #FFD23F, 0 0 16px #FFD23F; z-index: 1; }
.rb em, .bac-spot em { position: absolute; right: -4px; top: -6px; display: none; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 99px; background: #FFD23F; color: #2A1100; font-style: normal; font-size: .68rem; place-items: center; border: 2px solid #fff; }
.rb em.on, .bac-spot em.on { display: grid; }
@media (max-width: 520px) { .rnums { grid-template-columns: repeat(6, 1fr); } .rb { min-height: 30px; font-size: .7rem; } }

/* baccarat */
.bac-hands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bac-hand { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); text-align: center; }
.bac-hand h3 { margin: 0 0 8px; } .bac-hand h3 b { color: var(--acc); }
.bac-hand[data-side="banker"] h3 b { color: #FF7A8A; }
.bac-cards { display: flex; gap: 6px; justify-content: center; min-height: 64px; flex-wrap: wrap; }
.bac-spots { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 8px; }
.bac-spot { position: relative; display: grid; gap: 2px; place-items: center; padding: 18px 6px; border-radius: 16px; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 800; color: #fff; }
.bac-spot span { font-size: 1.2rem; } .bac-spot small { opacity: .8; font-weight: 600; }
.bac-spot.p { background: #1F78C4; } .bac-spot.t { background: #13A35A; } .bac-spot.b { background: #B51F32; }
.bac-spot.win { border-color: #FFD23F; box-shadow: 0 0 18px #FFD23F; }

/* blackjack + poker lists */
.bj-list, .pk-list { display: grid; gap: 8px; }
.bj-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); color: inherit; text-decoration: none; }
.bj-row .btn { grid-row: span 3; }
.bj-felt { padding: 14px; border-radius: 28px; background: radial-gradient(120% 80% at 50% 0%, #1F8F55, #0B4A2B 70%); box-shadow: inset 0 0 0 6px #5A3414, 0 20px 40px rgba(0, 0, 0, .4); display: grid; gap: 14px; }
.bj-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.bj-dealer { display: grid; justify-items: center; gap: 6px; }
.bj-cards { display: flex; gap: 4px; justify-content: center; min-height: 64px; }
.bj-seats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bj-seat { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; background: rgba(0, 0, 0, .18); min-width: 0; text-align: center; }
.bj-seat .bj-cards { min-height: 48px; } .bj-seat .pc { width: 34px; height: 48px; } .bj-seat .pc b { font-size: 13px; } .bj-seat .pc i { font-size: 18px; }
.bj-seat.turn { box-shadow: 0 0 0 3px #FFD23F; } .bj-seat.me { background: rgba(255, 210, 63, .12); }
.bj-seat.empty { border: 2px dashed rgba(255, 255, 255, .25); color: var(--muted); font: inherit; cursor: pointer; min-height: 90px; }
.bj-seat small { font-size: .7rem; color: #CFE8D9; }
.bj-res { font-size: .72rem; font-weight: 800; padding: 2px 6px; border-radius: 99px; background: rgba(0, 0, 0, .3); }
.bj-res.win, .bj-res.blackjack { color: #7DF0B5; } .bj-res.lose, .bj-res.bust { color: #FF8A95; }
.bj-controls { margin-top: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 560px) { .bj-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* poker */
.pk-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 10px; }
.pk-felt { position: relative; height: 430px; border-radius: 200px / 150px; background: radial-gradient(110% 80% at 50% 30%, #1F8F55, #0B4A2B 70%); box-shadow: inset 0 0 0 10px #5A3414, inset 0 0 0 13px #C9A24A, 0 24px 50px rgba(0, 0, 0, .45); margin: 30px 10px 80px; }
.pk-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; width: 70%; text-align: center; }
.pk-board { display: flex; gap: 5px; } .pk-pot { font-weight: 800; padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0, .3); }
.pk-wait { margin: 0; font-size: .85rem; color: #E8F5EC; }
.pk-seat { position: absolute; display: grid; justify-items: center; gap: 3px; width: 120px; transform: translate(-50%, -50%); }
.pk-seat.p0 { left: 50%; top: 100%; } .pk-seat.p1 { left: 6%; top: 74%; } .pk-seat.p2 { left: 6%; top: 24%; } .pk-seat.p3 { left: 50%; top: 0%; } .pk-seat.p4 { left: 94%; top: 24%; } .pk-seat.p5 { left: 94%; top: 74%; }
.pk-cards { display: flex; gap: 2px; min-height: 48px; }
.pk-plate { position: relative; display: grid; justify-items: center; padding: 4px 10px; border-radius: 12px; background: #0B1F3A; border: 2px solid rgba(255, 255, 255, .15); min-width: 96px; font-size: .78rem; }
.pk-plate b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-seat.turn .pk-plate { border-color: #FFD23F; box-shadow: 0 0 14px rgba(255, 210, 63, .6); }
.pk-seat.me .pk-plate { background: #123A66; }
.pk-seat.folded { opacity: .45; }
.pk-seat.empty { color: var(--muted); }
.pk-d { position: absolute; right: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font-style: normal; font-weight: 800; display: grid; place-items: center; font-size: .7rem; }
.pk-act { font-style: normal; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: rgba(0, 0, 0, .45); text-transform: capitalize; }
.pk-bet { font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: #FFD23F; color: #2A1100; }
.pk-win { font-size: .8rem; font-weight: 800; color: #7DF0B5; animation: winIn .4s; }
.pk-clock { display: block; width: 96px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.pk-clock i { display: block; height: 100%; background: #FFD23F; }
.pk-raise { display: grid; gap: 6px; } .pk-raise input { width: 100%; }
.pk-log { margin: 0; padding-left: 18px; font-size: .8rem; }
@media (max-width: 620px) {
  .pk-felt { height: 420px; border-radius: 120px / 160px; margin: 34px 4px 54px; }
  .pk-seat { width: 92px; } .pk-plate { min-width: 80px; font-size: .7rem; } .pk-plate b { max-width: 84px; }
  .pk-seat.p1, .pk-seat.p2 { left: 12%; } .pk-seat.p4, .pk-seat.p5 { left: 88%; }
  .pk-board .pc { width: 36px; height: 52px; } .pk-board .pc b { font-size: 14px; } .pk-board .pc i { font-size: 20px; }
}

/* chess */
.ch-wrap { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .ch-wrap { grid-template-columns: 1fr; } }
.ch-main { display: grid; gap: 6px; }
.ch-board { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 6px #5A3414, 0 20px 40px rgba(0, 0, 0, .45); }
.cs { position: relative; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; min-width: 0; min-height: 0; aspect-ratio: 1; overflow: hidden; }
.cs.lt { background: #F0D9B5; } .cs.dk { background: #B58863; }
.cs.last { background: #CDD26A; } .cs.dk.last { background: #AAA23A; }
.cs.sel { box-shadow: inset 0 0 0 4px #2EB8FF; }
.cs.tgt::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: rgba(0, 0, 0, .25); }
.cs.cap { box-shadow: inset 0 0 0 5px rgba(211, 38, 58, .7); }
.cs.chk { background: radial-gradient(circle, #FF4D4D, #C21E1E 70%); }
.cp { font-size: clamp(26px, 8.5vw, 52px); line-height: 1; user-select: none; }
.cp.w { color: #fff; -webkit-text-stroke: 1.4px #111; text-shadow: 0 2px 2px rgba(0, 0, 0, .35); }
.cp.b { color: #111; -webkit-text-stroke: .6px #000; }
.cs .rk, .cs .fl { position: absolute; font-style: normal; font-size: .62rem; font-weight: 800; color: rgba(0, 0, 0, .55); }
.cs .rk { left: 3px; top: 2px; } .cs .fl { right: 3px; bottom: 1px; }
.ch-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.ch-bar.on { background: rgba(255, 210, 63, .14); box-shadow: inset 0 0 0 2px rgba(255, 210, 63, .5); }
.ch-clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.3rem; padding: 2px 10px; border-radius: 8px; background: #0B1F3A; }
.ch-clock.low { background: #B51F32; }
.ch-moves { margin: 0; padding-left: 26px; max-height: 260px; overflow: auto; columns: 2; font-variant-numeric: tabular-nums; }
.pk-controls .row-3 .btn, .bj-controls .row-3 .btn { white-space: normal; line-height: 1.15; padding-inline: 6px; font-size: clamp(.85rem, 3.4vw, 1.1rem); min-width: 0; }

/* ================= Table kit: felt tables, cards, chips, avatars (v34) ================= */
.tbl { --felt1: #148A50; --felt2: #0A4A2B; --rail1: #4A2716; --rail2: #1C0D06; --print: rgba(255, 255, 255, .13);
  position: relative; border-radius: 999px; padding: 16px;
  background: linear-gradient(160deg, var(--rail1), var(--rail2) 70%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .6), inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -3px 6px rgba(0, 0, 0, .5); }
.tbl > .felt { position: relative; height: 100%; border-radius: inherit; overflow: visible;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .10), transparent 58%),
    radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1.4px) 0 0 / 5px 5px,
    radial-gradient(120% 90% at 50% 40%, var(--felt1), var(--felt2) 78%);
  box-shadow: inset 0 0 0 3px #C9A24A, inset 0 0 0 5px rgba(0, 0, 0, .35), inset 0 10px 40px rgba(0, 0, 0, .45); }
.tbl .print { position: absolute; pointer-events: none; color: var(--print); font-weight: 800; letter-spacing: .08em; text-align: center; }
.tbl .print.logo { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(1.4rem, 5vw, 2.6rem); white-space: nowrap; }
.tbl.wine { --felt1: #8A1F35; --felt2: #3E0B17; }
.tbl.teal { --felt1: #127A66; --felt2: #08392F; }
.tbl.navy { --felt1: #1B4E8F; --felt2: #0A2347; }

/* cards */
.cd { --w: 46px; --h: 66px; display: inline-block; position: relative; width: var(--w); height: var(--h); perspective: 600px; flex: none; vertical-align: middle; }
.cd.sm { --w: 34px; --h: 49px; } .cd.lg { --w: 58px; --h: 82px; } .cd.xl { --w: 66px; --h: 94px; }
.cd-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, .8, .3, 1); transform: rotateY(180deg); }
.cd.up .cd-in { transform: rotateY(0deg); }
.cd-face, .cd-back { position: absolute; inset: 0; border-radius: calc(var(--w) * .14); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 3px 8px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .15); }
.cd-face { background: linear-gradient(160deg, #fff, #F1EDE4); color: #16161D; font-weight: 800; }
.cd-face.red { color: #D3263A; }
.cd-face b { position: absolute; left: 8%; top: 4%; font-size: calc(var(--w) * .36); line-height: 1; letter-spacing: -.04em; }
.cd-face i { position: absolute; left: 9%; top: calc(4% + var(--w) * .36); font-style: normal; font-size: calc(var(--w) * .26); line-height: 1; }
.cd-face u { position: absolute; right: 8%; bottom: 4%; text-decoration: none; font-size: calc(var(--w) * .58); line-height: 1; }
.cd-back { transform: rotateY(180deg); border: 3px solid #fff;
  background: radial-gradient(circle at 50% 50%, #FF8A2A 0 14%, transparent 15%), repeating-linear-gradient(45deg, #10305E 0 5px, #173F78 5px 10px); }
.cd.fly { animation: cdFly .5s cubic-bezier(.2, .75, .25, 1) both; }
@keyframes cdFly { from { transform: translate(var(--dx), var(--dy)) rotate(-18deg) scale(.55); opacity: .2; } 60% { opacity: 1; } to { transform: none; } }
.cd.win .cd-face { box-shadow: 0 0 0 2px #FFD23F, 0 0 16px rgba(255, 210, 63, .9); }
.cd.dim { filter: brightness(.55) saturate(.6); transition: filter .3s; }

/* chips */
.chip { --c: #E6E6E6; --e: #fff; position: relative; display: block; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 38%, transparent 39%), repeating-conic-gradient(var(--c) 0 30deg, var(--e) 30deg 45deg), var(--c);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(0, 0, 0, .15), 0 2px 3px rgba(0, 0, 0, .4); }
.chip.c1 { --c: #E9E9E9; --e: #9AA3AE; } .chip.c10 { --c: #D3263A; --e: #fff; } .chip.c100 { --c: #1F78C4; --e: #fff; }
.chip.c1k { --c: #13A35A; --e: #fff; } .chip.c10k { --c: #1A1A1A; --e: #FFD23F; } .chip.c100k { --c: #7C3AED; --e: #fff; }
.chip.c1m { --c: #F59E0B; --e: #1A1A1A; } .chip.c5m { --c: #EC4899; --e: #fff; }
.chips { position: relative; display: block; width: 22px; height: 30px; }
.chips .chip { position: absolute; left: 0; bottom: calc(var(--i) * 3px); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35), 0 1px 0 rgba(0, 0, 0, .5); }
.cstack { display: inline-flex; align-items: flex-end; gap: 4px; }
.cstack em { font-style: normal; font-weight: 800; font-size: .72rem; padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; white-space: nowrap; }
.fly-chip { position: fixed; z-index: 90; pointer-events: none; }
.cstack.in { animation: stackIn .35s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes stackIn { from { transform: translateY(14px) scale(.6); opacity: 0; } }

/* avatars */
.av { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, var(--a), var(--b)); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
  box-shadow: 0 0 0 3px #0B1424, 0 6px 14px rgba(0, 0, 0, .5); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.av.me { box-shadow: 0 0 0 3px #FFD23F, 0 6px 14px rgba(0, 0, 0, .5); }
.av-ai { position: absolute; right: -6px; bottom: -3px; font-size: .52rem; font-weight: 800; padding: 1px 4px; border-radius: 6px; background: rgba(11, 20, 36, .92); color: #9FB3CF; border: 1px solid rgba(255, 255, 255, .18); letter-spacing: .04em; }
.ring { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: conic-gradient(var(--rc, #FFD23F) calc(var(--p, 1) * 360deg), rgba(255, 255, 255, .12) 0);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 4px), #000 calc(50% - 3.5px)); mask: radial-gradient(circle, transparent 0 calc(50% - 4px), #000 calc(50% - 3.5px)); }
.turn .ring { opacity: 1; }

.float-txt { position: fixed; z-index: 95; transform: translate(-50%, 0); font-weight: 800; font-size: 1.1rem; color: #7DF0B5; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); pointer-events: none; animation: floatUp 1.6s ease-out forwards; white-space: nowrap; }
.float-txt.bad { color: #FF8A95; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }
.bubble { position: absolute; left: 50%; top: calc(100% + 6px); transform: translate(-50%, 0); padding: 2px 9px; border-radius: 99px; background: #fff; color: #111; font-size: .7rem; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); z-index: 3; }
.bubble::after { content: ""; position: absolute; left: 50%; top: -3px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.bubble.pop { animation: bubPop .32s cubic-bezier(.2, 1.4, .4, 1); }
.bubble.fold { background: #49536A; color: #E6EAF2; } .bubble.raise, .bubble.bet, .bubble.all-in { background: #FFD23F; } .bubble.call { background: #7DF0B5; }
@keyframes bubPop { from { scale: .4; opacity: 0; } }
.shoe { position: absolute; width: 54px; height: 40px; border-radius: 8px 8px 12px 12px; background: linear-gradient(180deg, #2A2F3A, #12151C); box-shadow: 0 6px 12px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .1); }
.shoe::before { content: ""; position: absolute; left: 8px; right: 8px; top: -8px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, #fff 0 2px, #DCD6CA 2px 3px); transform: skewX(-12deg); }

/* ---------- poker ---------- */
.pk2 { position: relative; height: 470px; margin: 46px 34px 70px; }
.pk2 .felt { border-radius: 260px / 190px; }
.pk2.tbl { border-radius: 276px / 206px; }
.pk2 .deck { position: absolute; left: 50%; top: 22%; width: 2px; height: 2px; }
.pk2 .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; width: 72%; text-align: center; z-index: 1; }
.pk2 .board { display: flex; gap: 6px; min-height: 82px; align-items: center; }
.pk2 .board .slot { width: 58px; height: 82px; border-radius: 8px; border: 2px dashed rgba(255, 255, 255, .14); }
.pk2 .pot { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 99px; background: rgba(0, 0, 0, .38); font-weight: 800; color: #fff; min-height: 34px; }
.pk2 .pot .chips { height: 26px; }
.pk2 .msg { margin: 0; font-size: .9rem; color: #F0FAF4; min-height: 1.3em; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.pk2 .msg.show { animation: bubPop .35s cubic-bezier(.2, 1.3, .4, 1); }
.pk2 .print.logo { top: 27%; font-size: 1.3rem; }
.seat { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: 128px; z-index: 2; transition: opacity .35s; }
.seat .who { position: relative; }
.seat .hole { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); display: flex; gap: 0; z-index: 2; }
.seat .hole .cd:nth-child(1) { transform: rotate(-7deg) translateX(5px); } .seat .hole .cd:nth-child(2) { transform: rotate(7deg) translateX(-5px); }
.seat.me .hole { top: auto; bottom: 30px; } .seat.me .hole .cd:nth-child(1) { transform: rotate(-5deg) translateX(3px); } .seat.me .hole .cd:nth-child(2) { transform: rotate(5deg) translateX(-3px); }
.seat .plate { position: relative; display: grid; justify-items: center; min-width: 98px; max-width: 128px; padding: 3px 10px 4px; border-radius: 12px; background: rgba(9, 16, 30, .92); border: 1px solid rgba(255, 255, 255, .14); font-size: .76rem; line-height: 1.25; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.seat .plate b { max-width: 108px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .plate [data-chips] { color: #FFD97A; font-weight: 700; }
.seat.turn .plate { border-color: #FFD23F; box-shadow: 0 0 16px rgba(255, 210, 63, .5); }
.seat.folded .who, .seat.folded .plate { opacity: .45; filter: saturate(.4); }
.seat.out { opacity: .55; }
.seat.won .av { animation: winGlow 1.2s ease-in-out 2; }
@keyframes winGlow { 50% { box-shadow: 0 0 0 3px #FFD23F, 0 0 30px 8px rgba(255, 210, 63, .8); } }
.seat .dbtn { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #fff 55%, #DDD 56%); color: #111; font-weight: 800; font-size: .7rem; display: grid; place-items: center; box-shadow: 0 2px 5px rgba(0, 0, 0, .5); left: -18px; bottom: -6px; transition: all .5s cubic-bezier(.3, .8, .3, 1); }
.seat .betspot { position: absolute; left: 50%; top: 50%; z-index: 1; }
.seat.empty .open { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .3); display: grid; place-items: center; color: rgba(255, 255, 255, .6); font-size: .74rem; font-weight: 700; background: rgba(0, 0, 0, .15); }
.seat.empty button.open { cursor: pointer; font: inherit; font-weight: 800; color: #fff; border-color: #FFD23F; background: rgba(255, 210, 63, .12); }
.seat.empty button.open:hover { background: rgba(255, 210, 63, .25); }
/* landscape seat spots */
.seat.p0 { left: 50%; top: 100%; } .seat.p1 { left: 4%; top: 76%; } .seat.p2 { left: 4%; top: 22%; } .seat.p3 { left: 50%; top: 0%; } .seat.p4 { left: 96%; top: 22%; } .seat.p5 { left: 96%; top: 76%; }
/* where each seat's bet sits, relative to the seat, pointing at the middle */
.seat.p0 .betspot { transform: translate(-50%, -112px); } .seat.p1 .betspot { transform: translate(64px, -40px); } .seat.p2 .betspot { transform: translate(64px, 30px); }
.seat.p3 .betspot { transform: translate(-50%, 86px); } .seat.p4 .betspot { transform: translate(-94px, 30px); } .seat.p5 .betspot { transform: translate(-94px, -40px); }
.pk-controls2 { margin-top: 12px; }
@media (max-width: 640px) {
  .pk2 { height: 560px; margin: 40px 18px 64px; }
  .pk2 .felt, .pk2.tbl { border-radius: 150px / 240px; }
  .pk2 .mid { width: 86%; }
  .pk2 .board { gap: 3px; min-height: 60px; }
  .pk2 .board .cd { --w: 42px; --h: 60px; } .pk2 .board .slot { width: 42px; height: 60px; }
  .seat { width: 96px; } .seat .plate { min-width: 80px; max-width: 96px; font-size: .68rem; padding: 2px 6px 3px; } .seat .plate b { max-width: 84px; }
  .av { width: 44px; height: 44px; font-size: .9rem; }
  .seat.p1 { left: 9%; top: 72%; } .seat.p2 { left: 9%; top: 28%; } .seat.p4 { left: 91%; top: 28%; } .seat.p5 { left: 91%; top: 72%; }
  .seat.p1 .betspot { transform: translate(40px, -46px); } .seat.p2 .betspot { transform: translate(40px, 34px); }
  .seat.p4 .betspot { transform: translate(-66px, 34px); } .seat.p5 .betspot { transform: translate(-66px, -46px); }
  .seat.p0 .betspot { transform: translate(-50%, -104px); } .seat.p3 .betspot { transform: translate(-50%, 70px); }
  .seat .hole .cd { --w: 30px; --h: 43px; }
  .seat.me .hole .cd { --w: 50px; --h: 71px; }
}

/* ---------- blackjack ---------- */
.bj2 { position: relative; height: 470px; border-radius: 30px 30px 50% 50% / 30px 30px 70% 70%; padding: 16px; margin-bottom: 8px; }
.bj2 .felt { border-radius: 18px 18px 50% 50% / 18px 18px 70% 70%; }
.bj2 .print.arc { left: 0; right: 0; top: 150px; font-size: .78rem; }
.bj2 .print.arc2 { left: 0; right: 0; top: 172px; font-size: .62rem; letter-spacing: .14em; }
.bj2 .shoe { right: 26px; top: 22px; transform: rotate(-8deg); }
.bj2 .dealer { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; }
.bj2 .dealer .cards, .bj2 .spot .cards { display: flex; min-height: 66px; }
.bj2 .dealer .cards .cd + .cd, .bj2 .spot .cards .cd + .cd { margin-left: -18px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .4); font-weight: 800; font-size: .78rem; color: #fff; min-height: 22px; }
.tag.pop { animation: bubPop .3s cubic-bezier(.2, 1.4, .4, 1); }
.tag.bust, .tag.lose { background: #9F1239; } .tag.win { background: #047857; } .tag.blackjack { background: linear-gradient(90deg, #F59E0B, #FFD23F); color: #2A1100; } .tag.push { background: #475569; }
.bj2 .status { position: absolute; left: 50%; top: 200px; transform: translateX(-50%); width: min(70%, 360px); text-align: center; display: grid; gap: 6px; }
.bj2 .status b { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.bj2 .spot { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 5px; width: 110px; }
.bj2 .spot.s0 { left: 12%; top: 58%; } .bj2 .spot.s1 { left: 29%; top: 76%; } .bj2 .spot.s2 { left: 50%; top: 84%; } .bj2 .spot.s3 { left: 71%; top: 76%; } .bj2 .spot.s4 { left: 88%; top: 58%; }
.bj2 .circle { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); display: grid; place-items: center; background: rgba(0, 0, 0, .1); }
.bj2 .circle .cstack { position: absolute; bottom: 10px; }
.bj2 .spot.turn .circle { border-color: #FFD23F; box-shadow: 0 0 18px rgba(255, 210, 63, .6); }
.bj2 .spot .name { font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: rgba(9, 16, 30, .85); max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bj2 .spot.me .name { background: #FFD23F; color: #2A1100; }
.bj2 .spot button.circle { cursor: pointer; font: inherit; color: #fff; font-weight: 800; font-size: .7rem; border-style: dashed; border-color: #FFD23F; background: rgba(255, 210, 63, .1); }
.bj2 .spot .cards { position: relative; }
@media (max-width: 640px) {
  .bj2 { height: 470px; border-radius: 26px 26px 50% 50% / 26px 26px 34% 34%; }
  .bj2 .felt { border-radius: 14px 14px 50% 50% / 14px 14px 34% 34%; }
  .bj2 .spot { width: 78px; } .bj2 .circle { width: 46px; height: 46px; }
  .bj2 .spot .cd { --w: 34px; --h: 49px; } .bj2 .spot .cards .cd + .cd { margin-left: -16px; }
  .bj2 .spot.s0 { left: 14%; top: 60%; } .bj2 .spot.s1 { left: 31%; top: 76%; } .bj2 .spot.s2 { top: 82%; } .bj2 .spot.s3 { left: 69%; top: 76%; } .bj2 .spot.s4 { left: 86%; top: 60%; }
  .bj2 .print.arc { top: 140px; font-size: .62rem; } .bj2 .print.arc2 { display: none; } .bj2 .status { top: 170px; }
  .bj2 .shoe { right: 12px; top: 16px; transform: rotate(-8deg) scale(.8); }
}

/* ---------- baccarat ---------- */
.bac2 { max-width: 880px; margin: 0 auto; position: relative; border-radius: 40px 40px 999px 999px / 40px 40px 280px 280px; padding: 16px; }
.bac2 .felt { border-radius: 26px 26px 999px 999px / 26px 26px 270px 270px; padding: 18px 16px 30px; display: grid; gap: 14px; }
.bac2 .shoe { right: 18px; top: 16px; transform: rotate(-8deg); }
.bac2 .lt-status { position: relative; z-index: 1; padding-right: 60px; }
.bac2 .lt-status b { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.bac2 .boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bac2 .box { border: 2px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 8px 6px 10px; display: grid; justify-items: center; gap: 6px; transition: box-shadow .3s, border-color .3s; }
.bac2 .box h3 { margin: 0; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; color: #fff; }
.bac2 .box h3 .pts { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #111; font-size: 1rem; letter-spacing: 0; }
.bac2 .box.player h3 { color: #9BD0FF; } .bac2 .box.banker h3 { color: #FFB3BE; }
.bac2 .box.win { border-color: #FFD23F; box-shadow: 0 0 24px rgba(255, 210, 63, .55), inset 0 0 20px rgba(255, 210, 63, .15); }
.bac2 .box .cards { display: flex; gap: 6px; min-height: 82px; align-items: center; justify-content: center; }
.bac2 .box .cards .cd:nth-child(3) { transform: rotate(90deg); margin-left: 12px; }
.bac2 .areas { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 8px; }
.bac2 .area { position: relative; display: grid; gap: 2px; place-items: center; padding: 16px 6px 18px; border-radius: 18px 18px 60px 60px; border: 2px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .12); cursor: pointer; font: inherit; color: #fff; font-weight: 800; transition: transform .15s, background .2s; }
.bac2 .area:hover:not(:disabled) { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.bac2 .area span { font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; } .bac2 .area small { opacity: .8; font-weight: 600; }
.bac2 .area.player { border-color: #6FB6FF; } .bac2 .area.tie { border-color: #4ADE80; } .bac2 .area.banker { border-color: #FF8A9A; }
.bac2 .area.win { box-shadow: 0 0 22px #FFD23F; border-color: #FFD23F; }
.bac2 .area b[data-mine] { position: absolute; top: -16px; right: 10px; }
.bac2 .area:disabled { cursor: default; }
.bac2 .lt-history { margin-top: 2px; }

/* ---------- roulette ---------- */
.rou2 { border-radius: 36px; padding: 16px; }
.rou2 .felt { border-radius: 24px; padding: 16px 12px; display: grid; gap: 14px; }
.rou2 .head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: center; }
.rou2 .lt-status b { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.rou2 .bowl { position: relative; width: min(300px, 74vw); aspect-ratio: 1; border-radius: 50%; padding: 12px;
  background: radial-gradient(circle, #6B3B17 60%, #3A1F0B 61%, #2A1607 70%, #5A3414 71%, #24130A 100%); box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 0 0 3px #C9A24A; }
.rou2 .bowl svg.rw { width: 100%; height: 100%; display: block; }
.rou2 .ballring { position: absolute; inset: 12px; pointer-events: none; }
.rou2 .ball { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #D9D9D9 55%, #9A9A9A); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.rou2 .rw-pointer { position: absolute; left: 50%; top: -4px; width: 22px; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.rou2 .rboard .rb { background: transparent; border-color: rgba(255, 255, 255, .55); }
.rou2 .rboard .rb.red { background: #B51F32; } .rou2 .rboard .rb.black { background: #121212; } .rou2 .rboard .rb.green { background: #0E8A4A; }
.rou2 .rboard .rb em { display: none; } .rou2 .rboard .rb em.on { display: block; left: 50%; top: 50%; right: auto; transform: translate(-50%, -62%); min-width: 0; height: auto; padding: 0; border: 0; background: none; z-index: 2; pointer-events: none; }
.rou2 .rboard .rb em .cstack em { font-size: .55rem; padding: 0 4px; } .rou2 .rboard .rb em .chips { transform: scale(.78); transform-origin: bottom center; }
.rou2 .rboard .rb .cstack { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); pointer-events: none; z-index: 2; }
.rou2 .rboard .rb .cstack em { font-size: .58rem; padding: 0 4px; }
.rou2 .rboard .rb .cstack .chips { transform: scale(.8); transform-origin: bottom center; }
.rou2 .result { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 3; }
@media (min-width: 901px) { .rou2 .felt { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; } }
.rou2 .lt-history { max-width: 300px; }
@media (prefers-reduced-motion: reduce) { .cd-in { transition: none; } .cd.fly, .cstack.in, .bubble.pop, .float-txt { animation: none; } }

.seat.me .hole .cd + .cd { margin-left: -6px; }

/* ===== Rewards: Detty December + share (v36) ===== */
.rw-intro { margin: -4px 0 14px; max-width: 70ch; }
.rw-dec { grid-column: 1 / -1; position: relative; overflow: hidden; padding-top: 30px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(214, 40, 57, .35), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(19, 163, 90, .35), transparent 55%), linear-gradient(160deg, #1A1030, #0B1A2E);
  border: 1px solid rgba(255, 210, 63, .35); }
.dec-lights { position: absolute; left: 0; right: 0; top: 0; height: 26px; display: flex; justify-content: space-around; align-items: flex-start; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -20%, transparent 58%, rgba(255, 255, 255, .25) 60%, transparent 62%) 0 0 / 11.2% 26px repeat-x; }
.dec-lights i { width: 9px; height: 13px; margin-top: calc(6px + (var(--i) % 2) * 5px); border-radius: 50% 50% 45% 45%; background: hsl(calc(var(--i) * 67deg) 95% 60%); box-shadow: 0 0 10px hsl(calc(var(--i) * 67deg) 95% 60%); animation: twinkle 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
@keyframes twinkle { 50% { opacity: .35; box-shadow: none; } }
.dec-head { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dec-head h2 { margin: 0 0 4px; font-size: var(--step-2); background: linear-gradient(90deg, #FFE38A, #FF9F43, #FF5A6E); -webkit-background-clip: text; color: transparent; }
.dec-head p { max-width: 62ch; }
.dec-btn { color: #fff; background: linear-gradient(180deg, #FF5A6E, #C81E3A); box-shadow: 0 6px 0 #7A0E22, 0 0 30px rgba(255, 90, 110, .45); animation: decPulse 2.2s ease-in-out infinite; }
@keyframes decPulse { 50% { transform: scale(1.03); } }
.dec-cal { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.dec-cal li { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: .72rem; min-width: 0; }
.dec-cal li span { color: var(--muted); font-weight: 700; } .dec-cal li b { font-size: .8rem; color: #FFD97A; }
.dec-cal li.big { background: rgba(255, 90, 110, .14); border-color: rgba(255, 90, 110, .4); }
.dec-cal li.today { border-color: #FFD23F; box-shadow: 0 0 0 2px #FFD23F, 0 0 18px rgba(255, 210, 63, .45); }
.dec-cal li.done { background: rgba(19, 163, 90, .22); border-color: rgba(125, 240, 181, .4); }
.dec-cal li.done i { position: absolute; right: 4px; top: 2px; font-style: normal; color: #7DF0B5; font-size: .7rem; }
.dec-cal li.missed { opacity: .4; }
@media (max-width: 520px) { .dec-cal { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rw-share { display: grid; gap: 8px; align-content: start; }
.rw-share h2 { margin: 0; }
@media (prefers-reduced-motion: reduce) { .dec-lights i, .dec-btn { animation: none; } }

/* ===== Lobby: top picks + quick start (v36) ===== */
.quick-start { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 12px 0; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(110deg, rgba(255, 138, 31, .22), rgba(46, 184, 255, .14)); border: 1px solid rgba(255, 138, 31, .45); }
.quick-start strong { display: block; font-size: var(--step-1); } .quick-start span { color: var(--muted); }
.heroes { margin: 6px 0 4px; }
.hero-grid { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.hero-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 8px 8px 10px; border-radius: 20px; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .25s; animation: heroIn .5s cubic-bezier(.2, .8, .3, 1) both; animation-delay: var(--d); }
.hero-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; transition: transform .45s cubic-bezier(.2, .8, .3, 1); }
.hero-card:hover, .hero-card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8), inset 0 0 0 2px var(--orange, #FF8A1F); }
.hero-card:hover img { transform: scale(1.03); }
.hero-info { display: block; padding: 0 2px; } .hero-info b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-info small { color: #C9D4E6; font-size: .76rem; line-height: 1.3; display: block; }
.hero-play { text-align: center; padding: 7px 0; border-radius: 99px; font-weight: 800; font-size: .85rem; color: #2A1100; background: linear-gradient(180deg, #FFD25A, #FF8A1A); box-shadow: 0 4px 0 #A34A00; }
.hero-live { position: absolute; left: 16px; top: 16px; padding: 2px 8px 2px 18px; border-radius: 99px; background: rgba(0, 0, 0, .65); font-size: .68rem; font-weight: 800; }
.hero-live::before { content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #FF4D6A; box-shadow: 0 0 8px #FF4D6A; animation: livePulse 1.4s infinite; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hero-card { animation: none; } }

.lobby-lights { position: relative; height: 22px; margin: 2px 0 -4px; }
