@font-face { font-family: "Cinzel Decorative"; src: url(/fonts/CinzelDecorative-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url(/fonts/CinzelDecorative-Black.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(/fonts/Cinzel-VariableFont_wght.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url(/fonts/GreatVibes-Regular.woff2) format("woff2"); font-display: swap; }
/* Mina's voice: readable flirty italic serif (Great Vibes stays for the short "Mina's" logos only) */
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/PlayfairDisplay-Italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/PlayfairDisplay-Italic-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --pink: #ff3d9a; --hot: #ff1f6b; --red: #e0123f; --magenta: #c2186b; --plum: #6e0b3a;
  --gold: #ffd36b; --gold2: #f5a623; --cream: #fff3e6;
  --card: rgba(110, 10, 55, .62); --line: rgba(255, 211, 107, .45);
  --glow: 0 0 12px rgba(255, 61, 154, .75), 0 0 28px rgba(255, 31, 107, .45);
  --gold-glow: 0 0 10px rgba(255, 211, 107, .6);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { background: #a3124f; }
body { font-family: "Cinzel", Georgia, serif; color: var(--cream); min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255, 95, 170, .55), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(255, 60, 90, .45), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 150, 200, .35), transparent 60%),
    linear-gradient(160deg, #a3124f 0%, #c51a5f 40%, #8f1048 100%); }
.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff8, transparent), radial-gradient(1.5px 1.5px at 70% 20%, #ffd36b, transparent),
    radial-gradient(2px 2px at 40% 80%, #fff6, transparent), radial-gradient(1.5px 1.5px at 85% 65%, #ffd36baa, transparent),
    radial-gradient(1px 1px at 10% 90%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #ffe9a8, transparent);
  background-size: 380px 380px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .2; transform: translateY(-8px); } }
main, .topbar { position: relative; z-index: 1; }
main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }
h1, h2, h3 { margin: 0; }
.deco { font-family: "Cinzel Decorative", serif; font-weight: 900; letter-spacing: .02em; }
.script { font-family: "Great Vibes", cursive; font-weight: 400; }
.say { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: .005em; text-shadow: 0 1px 2px rgba(60, 0, 25, .55); }
.gold-text { background: linear-gradient(180deg, #fff6c9 0%, #ffd36b 40%, #f0a020 75%, #ffe39a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #7a1238) drop-shadow(0 0 10px rgba(255, 190, 80, .55)); }
small { font-size: .7rem; letter-spacing: .14em; opacity: .85; }
a { color: var(--gold); }

/* ---------- buttons ---------- */
.btn { --bg: var(--pink); display: inline-flex; align-items: center; justify-content: center; gap: .4em; cursor: pointer; text-decoration: none;
  font: 800 1rem "Cinzel", serif; letter-spacing: .06em; padding: .7em 1.2em; border-radius: 999px; border: 2px solid var(--gold); color: #fff;
  background: linear-gradient(180deg, #ff6fb6, var(--hot)); box-shadow: var(--glow), inset 0 2px 0 #fff5; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { filter: grayscale(.6) brightness(.8); cursor: not-allowed; transform: none; }
.btn.gold { background: linear-gradient(180deg, #ffe9a3, #f5b331 60%, #d98a0f); color: #5a0a2a; border-color: #fff3c4; box-shadow: var(--gold-glow), inset 0 2px 0 #fff8; }
.btn.ghost { background: rgba(255, 255, 255, .08); border-color: var(--line); box-shadow: none; }
.btn.demo { background: repeating-linear-gradient(45deg, #3a3a3a, #3a3a3a 10px, #4a4a4a 10px, #4a4a4a 20px); border: 2px dashed #ffd36b; color: #ffd36b; box-shadow: none; }
.btn.small { font-size: .78rem; padding: .5em .9em; }
.btn.big { font-size: 1.12rem; padding: .8em 1.5em; }
.btn.wide { width: 100%; margin-top: .6rem; }
.link { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; font-size: .8rem; padding: 0; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 18px; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(120, 8, 52, .92), rgba(150, 14, 66, .82)); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; color: var(--cream); display: flex; align-items: baseline; gap: 8px; }
.brand .script { font-size: 1.7rem; color: #ffd0e6; text-shadow: var(--glow); }
.brand .deco { font-size: 1.05rem; color: var(--gold); text-shadow: var(--gold-glow); }
.mode-badge { font: 800 .7rem system-ui; letter-spacing: .15em; background: #222; color: #ffd36b; border: 1px dashed #ffd36b; padding: 3px 8px; border-radius: 6px; }
.wallet { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.chip-pill { display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .25); border: 1.5px solid var(--gold); border-radius: 999px; padding: 5px 14px; color: #fff; cursor: pointer; font: inherit; }
.chip-pill b { font-size: 1.15rem; color: var(--gold); min-width: 2ch; text-align: right; }
.chip-pill.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.15); box-shadow: var(--gold-glow); } }

/* ---------- hero ---------- */
.hero { position: relative; margin: 18px 0 14px; border-radius: 22px; overflow: hidden; border: 2px solid var(--gold); box-shadow: var(--glow); min-height: 380px; }
.hero-img { width: 100%; height: 440px; object-fit: cover; object-position: 60% 30%; display: block; }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 30px 40px; max-width: 560px;
  background: linear-gradient(90deg, rgba(150, 10, 70, .82) 0%, rgba(150, 10, 70, .55) 60%, transparent 100%); }
.hero-script { font-size: 4rem; color: #ffd0e6; line-height: .8; text-shadow: var(--glow); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; }
.hook { font: italic 600 1.45rem/1.3 "Playfair Display", Georgia, serif; margin: 10px 0 18px; color: #fff; text-shadow: 0 1px 2px rgba(60, 0, 25, .6), 0 0 12px rgba(255, 61, 154, .45); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.taken-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; margin-bottom: 18px; }
.taken-bar > div { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.taken-bar b { font-family: "Cinzel Decorative"; font-size: 1.8rem; }
.code { font-family: ui-monospace, Menlo, monospace !important; letter-spacing: .08em; color: var(--gold); }
.me-box .code { font-size: 1.5rem; }

.lobby-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sec-head h2 { font-size: 1.5rem; color: var(--gold); text-shadow: var(--gold-glow); }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(90, 0, 40, .35); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.tile { position: relative; border-radius: 16px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 3 / 4; text-decoration: none; color: #fff;
  background: linear-gradient(160deg, #ff5fa8, #b3124f); display: flex; flex-direction: column; justify-content: flex-end; transition: transform .15s, box-shadow .15s; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(110, 5, 45, .92) 88%); }
.tile .t-body { position: relative; padding: 10px 12px; }
.tile h3 { font-family: "Cinzel Decorative"; font-size: .98rem; line-height: 1.15; color: var(--gold); text-shadow: 0 2px 4px #5a0020; }
.tile p { margin: 4px 0 0; font-size: .72rem; line-height: 1.3; opacity: .92; }
.tile .emoji { position: absolute; top: 34%; left: 0; right: 0; text-align: center; font-size: 3.4rem; filter: drop-shadow(0 0 14px #ff9fd0); }
.tile.live { border-color: var(--gold); box-shadow: var(--glow); }
.tile.live:hover { transform: translateY(-3px) rotate(-.5deg); }
.tile .tag { position: absolute; top: 10px; left: 10px; font: 800 .62rem system-ui; letter-spacing: .14em; padding: 4px 8px; border-radius: 999px; }
.tile.live .tag { background: #2bd96b; color: #053; box-shadow: 0 0 10px #2bd96b; }
.tile.soon { cursor: default; }
.tile.soon .tag { background: rgba(0, 0, 0, .45); color: var(--gold); border: 1px solid var(--gold); }
.tile.soon:not(.has-art) { background: linear-gradient(160deg, #ff7ab8 0%, #d41b62 55%, #9c0f47 100%); }
.tile.soon.has-art img { filter: saturate(.8) brightness(.8); }

.board h2 { font-size: 1.15rem; color: var(--gold); margin-bottom: 8px; }
.board h3, .side h3 { font-size: .85rem; letter-spacing: .14em; margin: 14px 0 6px; color: #ffd0e6; }
.lb { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.lb li { counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.lb li:nth-child(odd) { background: rgba(255, 255, 255, .06); }
.lb li::before { content: counter(r); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 .75rem system-ui; background: rgba(255, 255, 255, .15); }
.lb li:nth-child(1)::before { background: linear-gradient(#fff1b0, #f5a623); color: #5a0a2a; content: "👑"; }
.lb li:nth-child(2)::before { background: #e8e8f0; color: #333; }
.lb li:nth-child(3)::before { background: #e59b5b; color: #3a1300; }
.lb .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .v { font-weight: 800; color: var(--gold); }
.lb li.me { outline: 1.5px solid var(--pink); }
.log { list-style: none; margin: 0; padding: 0; font-size: .8rem; max-height: 260px; overflow: auto; }
.log li { padding: 5px 2px; border-bottom: 1px dashed rgba(255, 211, 107, .2); display: flex; gap: 6px; }
.log li .w { margin-left: auto; font-weight: 800; }
.log li .w.win { color: #8dffb5; } .log li .w.loss { color: #ffb3c9; }
.log li.new { animation: flash 1s; }
@keyframes flash { from { background: rgba(255, 211, 107, .35); } }
.fineprint { font-size: .72rem; opacity: .8; line-height: 1.5; margin-top: 18px; }

/* ---------- games ---------- */
.game-head { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.game-head h1 { flex: 1; text-align: center; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.game-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.board-wrap { padding: 12px; }
.plinko-stats { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.plinko-stats > div { background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; display: flex; flex-direction: column; }
.plinko-stats b { font-family: "Cinzel Decorative"; font-size: 1.5rem; color: var(--gold); }
#plinko { width: min(100%, calc((100vh - 320px) * .9375)); min-width: 300px; height: auto; display: block; margin: 0 auto; border-radius: 14px; background: radial-gradient(circle at 50% 20%, #ff8cc4 0%, #e83a85 45%, #b71658 100%); box-shadow: inset 0 0 40px rgba(120, 0, 50, .5); }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 12px; }
.bets { display: flex; gap: 6px; align-items: center; }
.bets::before { content: "BET"; font-size: .7rem; letter-spacing: .14em; margin-right: 4px; opacity: .85; }
.bets button { font: 800 .95rem "Cinzel"; min-width: 48px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(0, 0, 0, .2); color: #fff; cursor: pointer; }
.bets button.on { background: linear-gradient(180deg, #ffe9a3, #f5b331); color: #5a0a2a; border-color: #fff3c4; box-shadow: var(--gold-glow); }
.drop-btns { display: flex; gap: 10px; }
.side-art { width: 100%; border-radius: 12px; border: 1.5px solid var(--line); aspect-ratio: 4 / 3.2; object-fit: cover; object-position: center 15%; }

/* ---------- Slot Machine.exe: glossy luxury cabinet ---------- */
.slot-cab { position: relative; text-align: center; padding: 18px 18px 16px; border-radius: 28px; border: 0; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, .35), transparent 55%),
    linear-gradient(180deg, #ff4f9e 0%, #e01a63 38%, #b80f4f 70%, #d8236a 100%);
  box-shadow: 0 0 0 3px #fff1b8, 0 0 0 6px #e7a52a, 0 0 0 8px #8a4b06, 0 18px 50px rgba(110, 0, 45, .55), 0 0 40px rgba(255, 61, 154, .6), inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -10px 24px rgba(120, 0, 45, .45); }
.slot-cab::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .12) 100%); }
.slot-cab > * { position: relative; }
.marquee { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 1.7rem; color: #fff6d0; padding: 8px 14px 9px; border-radius: 16px; margin: 0 auto 14px; max-width: 420px;
  text-shadow: 0 2px 0 #8a1240, 0 0 14px rgba(255, 220, 140, .9);
  background:
    radial-gradient(circle, #fff7c9 0 2.2px, transparent 3px) 0 2px / 18px 100% repeat-x,
    radial-gradient(circle, #fff7c9 0 2.2px, transparent 3px) 9px calc(100% - 2px) / 18px 100% repeat-x,
    linear-gradient(180deg, #a30c45, #6e0730);
  border: 2px solid #ffd36b; box-shadow: 0 0 0 2px #8a4b06, 0 0 18px rgba(255, 211, 107, .55), inset 0 0 18px rgba(255, 61, 154, .5);
  animation: bulbs 1.1s steps(2) infinite; }
.marquee .deco { letter-spacing: .08em; }
.mq-ico { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(80, 0, 30, .6)); }
@keyframes bulbs { 50% { background-position: 9px 2px, 0 calc(100% - 2px), 0 0; } }

/* gold-framed reel window */
.reels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; border-radius: 22px;
  background: linear-gradient(180deg, #fff3c2 0%, #f3b53a 22%, #b8740f 50%, #f7c95a 78%, #fff1b8 100%);
  box-shadow: 0 0 0 2px #7a3f05, 0 8px 22px rgba(90, 0, 35, .5), inset 0 2px 2px rgba(255, 255, 255, .9), inset 0 -2px 3px rgba(110, 60, 0, .6); }
.reels::before { content: ""; position: absolute; inset: 8px; border-radius: 16px; background: linear-gradient(180deg, #5e0628, #8c0f44); box-shadow: inset 0 0 0 2px rgba(120, 60, 0, .55); }
.reel { position: relative; height: 312px; overflow: hidden; border-radius: 14px; z-index: 1;
  background: radial-gradient(120% 70% at 50% 50%, #fff 0%, #ffe6f1 55%, #ffc1dc 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 211, 107, .9); }
/* inner shadow (cylinder curvature) + glass highlight, above the strip */
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 2;
  background:
    linear-gradient(180deg, rgba(90, 0, 35, .55) 0%, rgba(90, 0, 35, .12) 18%, transparent 32%, transparent 68%, rgba(90, 0, 35, .12) 82%, rgba(90, 0, 35, .55) 100%),
    linear-gradient(100deg, transparent 8%, rgba(255, 255, 255, .45) 14%, rgba(255, 255, 255, .08) 26%, transparent 34%);
  box-shadow: inset 0 14px 22px rgba(90, 0, 35, .35), inset 0 -14px 22px rgba(90, 0, 35, .35), inset 6px 0 10px rgba(90, 0, 35, .18), inset -6px 0 10px rgba(90, 0, 35, .18); }
.strip { position: relative; z-index: 1; will-change: transform; transition: filter .2s; }
.reel::before { content: ""; position: absolute; left: 0; right: 0; top: 33.333%; height: 33.333%; z-index: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(60% 70% at 50% 50%, rgba(255, 226, 140, .95), rgba(255, 150, 200, .5) 60%, transparent 80%); }
.reels.won .reel::before { opacity: 1; animation: band .9s ease-in-out infinite; }
@keyframes band { 50% { opacity: .55; } }
.sym { height: 104px; display: grid; place-items: center; }
.sym img { width: 94px; height: 94px; display: block; border-radius: 50%; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 5px 6px rgba(110, 0, 45, .38)); }
.reel.spinning .strip { filter: blur(3.2px) saturate(1.15); }
.reel.spinning .sym img { transform: scaleY(1.12); }
.sym.land img { animation: land .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes land { 0% { transform: scale(.82) translateY(-6px); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
.payline { position: absolute; z-index: 3; left: 4px; right: 4px; top: calc(50% - 54px); height: 108px; border-radius: 16px; pointer-events: none;
  border: 2.5px solid rgba(255, 223, 130, .95); box-shadow: 0 0 10px rgba(255, 211, 107, .7), inset 0 0 10px rgba(255, 211, 107, .35); }
.payline::before, .payline::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 9px solid transparent; transform: translateY(-50%); }
.payline::before { left: -8px; border-left: 12px solid #ffd36b; border-right: 0; filter: drop-shadow(0 0 4px #ffd36b); }
.payline::after { right: -8px; border-right: 12px solid #ffd36b; border-left: 0; filter: drop-shadow(0 0 4px #ffd36b); }
.glass { position: absolute; z-index: 4; inset: 12px; border-radius: 16px; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 30%); }
.glass::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 30%; left: -40%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
.reels.won .glass::after { animation: sheen 1.2s ease-out 2; }
@keyframes sheen { to { left: 120%; } }
.reels.won .payline { animation: lineglow .9s ease-in-out infinite; border-color: #fff3c4; }
@keyframes lineglow { 50% { box-shadow: 0 0 22px 6px rgba(255, 211, 107, .95), 0 0 50px 10px rgba(255, 61, 154, .55), inset 0 0 18px rgba(255, 240, 190, .7); background: rgba(255, 240, 190, .12); } }
.reels.won .sym:nth-child(2) img { animation: winpop .9s ease-in-out infinite; }
@keyframes winpop { 50% { transform: scale(1.08); filter: drop-shadow(0 0 10px #ffe59a) drop-shadow(0 0 18px rgba(255, 61, 154, .8)); } }
.reel.tease { animation: shake .12s infinite; }
.reel.tease::after { box-shadow: inset 0 0 0 3px var(--pink), inset 0 0 30px rgba(255, 61, 154, .9), inset 0 14px 22px rgba(90, 0, 35, .35), inset 0 -14px 22px rgba(90, 0, 35, .35); }
@keyframes shake { 50% { transform: translateX(2px); } }
.reel.hit { animation: pulse .6s 3; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 3px #ffd36b, 0 0 26px #ffd36b; } }
.slot-cab .plinko-stats > div { background: rgba(90, 0, 35, .35); border-color: rgba(255, 223, 130, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.slot-cab .spin { background: linear-gradient(180deg, #ffe9a3, #f5b331 55%, #d98a0f); color: #6a0a2f; border-color: #fff3c4; text-shadow: 0 1px 0 #fff6; box-shadow: 0 0 0 2px #8a4b06, 0 6px 0 #9a5a08, 0 10px 20px rgba(90, 0, 35, .45), var(--gold-glow), inset 0 2px 0 #fff9; }
.slot-cab .spin:active { transform: translateY(4px); box-shadow: 0 0 0 2px #8a4b06, 0 2px 0 #9a5a08, var(--gold-glow); }
/* symbol icons in paytable / odds / logs */
.combo { display: inline-flex; gap: 3px; vertical-align: middle; }
.combo .ico, img.ico { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(80, 0, 30, .5)); }
.paytable .combo .ico { width: 28px; height: 28px; }
.paytable li { align-items: center; }
.paytable em { font-style: normal; font-size: .72rem; opacity: .85; margin-left: 6px; }
.odds-t .combo .ico { width: 24px; height: 24px; }
.log .lbl { display: inline-flex; align-items: center; gap: 4px; }
.log .lbl .ico { width: 18px; height: 18px; }
.slot-msg { font: italic 600 1.35rem/1.3 "Playfair Display", Georgia, serif; margin: 12px 0 8px; min-height: 2.6rem; text-shadow: 0 1px 2px rgba(60, 0, 25, .6), 0 0 12px rgba(255, 61, 154, .45); }
.spin { min-width: 180px; font-size: 1.4rem; }
.paytable { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.paytable li { display: flex; justify-content: space-between; padding: 4px 2px; border-bottom: 1px dashed rgba(255, 211, 107, .2); }
.paytable b { color: var(--gold); }

/* ---------- modals ---------- */
dialog.modal { border: 2px solid var(--gold); border-radius: 22px; padding: 22px; color: var(--cream); max-width: min(860px, 94vw); width: 100%;
  background: linear-gradient(160deg, #c51a5f, #8f1048); box-shadow: var(--glow), 0 30px 80px rgba(60, 0, 25, .6); }
dialog.modal.narrow { max-width: min(520px, 94vw); }
dialog::backdrop { background: rgba(90, 0, 40, .55); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.modal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.modal-art { width: 100%; border-radius: 16px; border: 2px solid var(--line); }
.modal h2 { font-size: 1.8rem; }
.big-script { font-size: 1.4rem; margin: 2px 0 6px; color: #fff0f6; }
.steps { padding-left: 1.2em; line-height: 1.5; font-size: .92rem; }
.steps li { margin-bottom: 6px; }
.code-row { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.code.big { font-size: 1.7rem; background: rgba(0, 0, 0, .25); padding: 4px 12px; border-radius: 10px; border: 1.5px dashed var(--gold); }
.forgot { margin-top: 14px; background: rgba(0, 0, 0, .15); border-radius: 12px; padding: 10px 12px; }
.forgot summary { cursor: pointer; font-weight: 800; color: var(--gold); }
.row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.row.wrap { flex-wrap: wrap; } .row.center { justify-content: center; }
input, select { font: 600 1rem system-ui; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .92); color: #5a0a2a; min-width: 0; flex: 1; }
.note { font-size: .78rem; line-height: 1.45; opacity: .92; }
.demo-only { margin-top: 10px; }
.broke-art { width: 100%; max-height: 260px; object-fit: cover; object-position: center 30%; border-radius: 16px; border: 2px solid var(--line); }
.broke-title { text-align: center; font-size: 2.6rem; color: #fff; text-shadow: var(--glow); margin-top: 10px; }
.broke-sub { text-align: center; font-size: 1rem; }
.share-card { width: 100%; max-width: 480px; display: block; margin: 8px auto; border-radius: 12px; border: 1.5px solid var(--line); }
#m-broke { max-width: min(600px, 94vw); }
.gate { text-align: center; }
.odds-t { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 6px 0 14px; }
.odds-t td, .odds-t th { padding: 4px 6px; border-bottom: 1px dashed rgba(255, 211, 107, .25); text-align: left; }
.odds-t th { color: var(--gold); font-size: .72rem; letter-spacing: .1em; }
.rtp { background: rgba(0, 0, 0, .2); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }

/* ---------- toasts / confetti ---------- */
.toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: linear-gradient(180deg, #ff6fb6, #e0125f); border: 2px solid var(--gold); color: #fff; font: 800 1.05rem "Cinzel"; padding: 10px 18px; border-radius: 16px;
  box-shadow: var(--glow); animation: tin .3s ease-out, tout .4s ease-in 2.4s forwards; max-width: 90vw; text-align: center; }
.toast.gold { background: linear-gradient(180deg, #ffe9a3, #f5b331); color: #5a0a2a; }
@keyframes tin { from { transform: translateY(-14px) scale(.9); opacity: 0; } }
@keyframes tout { to { transform: translateY(-10px); opacity: 0; } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

@media (max-width: 900px) {
  .lobby-grid, .game-wrap { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-art { max-height: 220px; object-fit: cover; object-position: center 20%; }
  .taken-bar { grid-template-columns: 1fr 1fr; } .me-box { grid-column: 1 / -1; }
  .hero-img { height: 250px; object-position: 30% 30%; }
  .hero-text { position: relative; padding: 16px 18px 20px; background: linear-gradient(180deg, #b3155a, #8f1048); max-width: none; }
  .hero-script { font-size: 2.8rem; } .hook { font-size: 1.2rem; margin: 6px 0 12px; }
  .brand .deco { display: none; }
  .reel { height: 246px; } .sym { height: 82px; } .sym img { width: 70px; height: 70px; }
  .payline { top: calc(50% - 43px); height: 86px; }
  .slot-cab { padding: 14px 12px; } .reels { gap: 7px; padding: 10px; } .marquee { font-size: 1.3rem; } .mq-ico { width: 26px; height: 26px; }
}

/* ---------- sound toggles ---------- */
.snd-btn { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); background: rgba(0, 0, 0, .25); color: #fff; font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; padding: 0; line-height: 1; }
.snd-btn:hover { box-shadow: var(--gold-glow); }
.snd-btn.amb { color: rgba(255, 255, 255, .45); font-weight: 900; }
.snd-btn.amb.on { color: var(--gold); box-shadow: var(--gold-glow); }
.snd-btn.voice { color: rgba(255, 255, 255, .45); }
.snd-btn.voice.on { color: var(--gold); box-shadow: var(--gold-glow); }
.voice-wrap { position: relative; display: flex; align-items: center; }
.voice-vol-lab { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  display: none; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px;
  background: rgba(40, 4, 22, .94); border: 1.5px solid var(--gold); color: #ffe0ef;
  font: 700 .68rem/1.2 Cinzel, Georgia, serif; letter-spacing: .04em; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.voice-wrap:hover .voice-vol-lab, .voice-wrap:focus-within .voice-vol-lab, .voice-wrap.open .voice-vol-lab { display: flex; }
.voice-vol { width: 92px; height: 6px; accent-color: #ffd36b; cursor: pointer; }
/* sound buttons stay at least 38px; phone sizes are in the mobile section below */
@media (max-width: 760px) { .topbar { flex-wrap: wrap; } .wallet { flex-wrap: wrap; justify-content: flex-end; gap: 6px; } #demo-topup-top { margin-right: 0 !important; } }

/* ---------- Mina reaction pop-ups (js/minapop.mjs) ---------- */
.mp-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 0 22px 22px; }
.mp-layer[popover] { margin: 0; border: 0; padding: 0 22px 22px; background: none; overflow: visible; width: 100%; height: 100%; max-width: none; max-height: none; color: inherit; }
.mp-layer[popover]::backdrop { display: none; }
.mp-layer.mp-top, .mp-layer[popover].mp-top { align-items: flex-start; padding-top: 14px; }
.mp-layer.mp-center { align-items: center; justify-content: center; padding: 16px; }
.mp-card { pointer-events: auto; cursor: pointer; position: relative; display: flex; align-items: center; gap: 0; max-width: min(400px, calc(100vw - 24px));
  animation: mp-in .55s cubic-bezier(.2, 1.5, .4, 1) both; filter: drop-shadow(0 14px 30px rgba(90, 0, 40, .45)); }
.mp-card.mp-out { animation: mp-off .38s ease-in forwards; }
@keyframes mp-in { 0% { transform: translateX(120%) rotate(6deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes mp-off { to { transform: translateX(120%) rotate(4deg); opacity: 0; } }
.mp-portrait { position: relative; flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; padding: 4px; z-index: 2;
  background: conic-gradient(from 200deg, #fff6c9, #ffd36b, #f5a623, #fff1b0, #d98a0f, #ffd36b, #fff6c9);
  box-shadow: 0 0 0 2px #fff8, 0 0 18px rgba(255, 211, 107, .85), 0 0 34px rgba(255, 61, 154, .6); animation: mp-bob 1.6s ease-in-out .5s infinite alternate; }
.mp-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 22%; display: block; border: 2px solid #a3124f; background: #ff9fd0; }
@keyframes mp-bob { to { transform: translateY(-4px) rotate(-2deg); } }
.mp-bubble { position: relative; margin-left: -14px; padding: 12px 16px 12px 28px; border-radius: 20px; z-index: 1;
  background: linear-gradient(180deg, #fff 0%, #ffe6f2 100%); color: #7a0a33; border: 2.5px solid var(--gold);
  box-shadow: inset 0 -3px 0 rgba(255, 61, 154, .18), 0 0 16px rgba(255, 61, 154, .5);
  font: 800 .98rem/1.28 "Cinzel", Georgia, serif; display: flex; flex-direction: column; gap: 1px; animation: mp-wobble .5s ease-out .35s both; }
.mp-bubble::before { content: ""; position: absolute; left: 6px; top: 50%; width: 16px; height: 16px; background: #fff3f8; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg); }
.mp-bubble span:first-of-type { color: #e0125f; font-size: 1.08rem; }
.mp-name { font: italic 700 1.02rem/1.15 "Playfair Display", Georgia, serif; color: #ff1f6b; margin-bottom: 2px; text-shadow: 0 1px 0 #fff; }
@keyframes mp-wobble { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: none; } }
.mp-spark { position: absolute; font-style: normal; color: #fff6c9; text-shadow: 0 0 6px #ffd36b, 0 0 12px #ff3d9a; pointer-events: none; animation: mp-twinkle 1.1s ease-in-out infinite; }
.mp-spark.s1 { top: -6px; right: 4px; font-size: 1.2rem; }
.mp-spark.s2 { bottom: 2px; left: -6px; font-size: .95rem; animation-delay: .35s; }
.mp-spark.s3 { top: 34%; right: -8px; font-size: .8rem; animation-delay: .7s; }
@keyframes mp-twinkle { 0%, 100% { transform: scale(.5) rotate(0); opacity: .2; } 50% { transform: scale(1.2) rotate(40deg); opacity: 1; } }

/* moods tint the bubble a touch */
.mp-bigloss .mp-bubble, .mp-broke .mp-bubble, .mp-low .mp-bubble { background: linear-gradient(180deg, #fff 0%, #ffd9e4 100%); }
.mp-reload .mp-bubble { background: linear-gradient(180deg, #fffaf0 0%, #fff0c2 100%); }

/* big win: centre stage */
.mp-card.mp-big { flex-direction: column; text-align: center; max-width: min(440px, calc(100vw - 24px)); animation: mp-boom .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.mp-card.mp-big.mp-out { animation: mp-shrink .38s ease-in forwards; }
@keyframes mp-boom { 0% { transform: scale(.2) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes mp-shrink { to { transform: scale(.6); opacity: 0; } }
.mp-big::before { content: ""; position: absolute; left: 50%; top: 120px; width: 520px; height: 520px; transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 211, 107, .55) 0 10deg, transparent 10deg 22deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: mp-rays 8s linear infinite; }
@keyframes mp-rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.mp-big .mp-portrait { width: 230px; height: 230px; padding: 6px; }
.mp-big .mp-portrait img { object-position: center 18%; }
.mp-big .mp-bubble { margin: -22px 0 0; padding: 26px 24px 16px; align-items: center; background: linear-gradient(180deg, #fff6d6 0%, #ffd36b 100%); border-color: #fff; color: #6e0b3a;
  box-shadow: 0 0 24px rgba(255, 211, 107, .9), 0 0 50px rgba(255, 61, 154, .55); font-size: 1.08rem; }
.mp-big .mp-bubble::before { display: none; }
.mp-big .mp-bubble span:first-of-type { font: 900 1.5rem/1.15 "Cinzel Decorative", serif; color: #c2186b; }
.mp-big .mp-name { font-size: 1.9rem; }
.mp-big .mp-spark.s1 { font-size: 2rem; top: 4px; right: 10px; } .mp-big .mp-spark.s2 { font-size: 1.5rem; left: 4px; } .mp-big .mp-spark.s3 { font-size: 1.2rem; }

@media (max-width: 640px) {
  .mp-layer, .mp-layer[popover] { padding: 0 10px 12px; justify-content: center; }
  .mp-card { max-width: calc(100vw - 20px); }
  .mp-portrait { width: 84px; height: 84px; padding: 3px; }
  .mp-bubble { padding: 9px 12px 9px 22px; font-size: .86rem; }
  .mp-bubble span:first-of-type { font-size: .95rem; }
  .mp-name { font-size: 1.25rem; }
  @keyframes mp-in { 0% { transform: translateY(130%); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
  @keyframes mp-off { to { transform: translateY(130%); opacity: 0; } }
  .mp-top .mp-card { animation-name: mp-drop; } .mp-top .mp-card.mp-out { animation-name: mp-lift; }
  @keyframes mp-drop { 0% { transform: translateY(-130%); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
  @keyframes mp-lift { to { transform: translateY(-130%); opacity: 0; } }
  .mp-big .mp-portrait { width: 180px; height: 180px; }
  .mp-big::before { width: 400px; height: 400px; top: 95px; }
  .mp-big .mp-bubble span:first-of-type { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .mp-card, .mp-portrait, .mp-spark, .mp-big::before, .mp-bubble { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* ---------- Blackjack vs Mina (js/blackjack.mjs) ---------- */
.bj-table { position: relative; padding: 0; overflow: hidden; border: 3px solid transparent; border-radius: 26px;
  background: linear-gradient(#a3124f, #a3124f) padding-box, linear-gradient(160deg, #fff6c9, #ffd36b 30%, #d98a0f 55%, #fff1b0 75%, #f5a623) border-box;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 0 26px rgba(255, 211, 107, .45), 0 16px 40px rgba(90, 0, 40, .5); }
.bj-table.glow { animation: bj-glow 1.2s ease-out; }
@keyframes bj-glow { 30% { box-shadow: 0 0 0 3px #fff8, 0 0 60px rgba(255, 211, 107, .95), 0 0 110px rgba(255, 61, 154, .6); } }
.bj-table.shake { animation: bj-shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes bj-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px) rotate(.3deg); } 30%, 50%, 70% { transform: translateX(-7px) rotate(-.4deg); } 40%, 60% { transform: translateX(7px); } }
.bj-stage { position: relative; height: 360px; overflow: hidden; background: #e4559a; }
.bj-dealer { position: absolute; inset: 0; animation: bj-breathe 3.4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes bj-breathe { from { transform: translateY(0) scale(1); } to { transform: translateY(-3px) scale(1.012); } }
.bj-dealer.react { animation: bj-react .5s cubic-bezier(.2, 1.6, .4, 1), bj-breathe 3.4s ease-in-out .5s infinite alternate; }
@keyframes bj-react { 0% { transform: scale(1.035) translateY(4px); } 100% { transform: none; } }
.bj-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 6%; opacity: 0; transition: opacity .38s ease; display: block; }
.bj-frame.on { opacity: 1; }
.bj-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(197, 20, 95, .55) 60%, #c2186b); }
/* speech bubble */
.bj-say { position: absolute; left: 16px; top: 16px; z-index: 4; max-width: min(300px, 46%); padding: 10px 16px 12px; border-radius: 20px 20px 20px 6px;
  background: linear-gradient(180deg, #fff 0%, #ffe6f2 100%); color: #7a0a33; border: 2.5px solid var(--gold);
  box-shadow: inset 0 -3px 0 rgba(255, 61, 154, .18), 0 0 18px rgba(255, 61, 154, .55), 0 8px 20px rgba(90, 0, 40, .35);
  font: 800 .98rem/1.28 "Cinzel", Georgia, serif; display: flex; flex-direction: column; gap: 1px; opacity: 0; transform: scale(.6) translateY(-10px); transform-origin: 0 100%;
  transition: opacity .25s, transform .25s; pointer-events: none; }
.bj-say.on { opacity: 1; transform: none; animation: mp-wobble .5s ease-out both; }
.bj-say span:first-of-type { color: #e0125f; font-size: 1.06rem; }
.bj-say .mp-name { font-size: 1.4rem; }
/* shoe */
.bj-shoe { position: absolute; right: 18px; top: 150px; z-index: 3; width: 92px; height: 74px; border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, #fff1b0, #f5b331 45%, #b86e0a); border: 2px solid #fff3c4; box-shadow: 0 8px 18px rgba(90, 0, 40, .5), inset 0 2px 0 #fff8;
  transform: perspective(300px) rotateX(18deg) rotate(-8deg); }
.bj-shoe i { position: absolute; left: 10px; right: 10px; height: 46px; top: -14px; border-radius: 6px; border: 2px solid #fff;
  background: repeating-linear-gradient(45deg, #ff4f9f 0 6px, #e0125f 6px 12px); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.bj-shoe i:nth-child(2) { top: -10px; left: 12px; } .bj-shoe i:nth-child(3) { top: -6px; left: 14px; }
.bj-shoe span { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: 900 .62rem "Cinzel Decorative"; color: #6e0b3a; letter-spacing: .12em; }
.bj-shoe.give i:nth-child(1) { animation: bj-give .35s ease-out; }
@keyframes bj-give { 40% { transform: translate(-10px, -6px) rotate(-6deg); } }
/* cards */
.bj-row { display: flex; align-items: center; gap: 12px; }
.bj-row.dealer { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; justify-content: center; }
.bj-cards { display: flex; min-height: 118px; }
.bj-cards .pcard + .pcard { margin-left: -26px; }
.pcard { width: 82px; height: 116px; perspective: 700px; flex: 0 0 auto; filter: drop-shadow(0 6px 10px rgba(80, 0, 35, .45)); }
.pcard .inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg); transition: transform .42s cubic-bezier(.3, 1.4, .5, 1); }
.pcard.up .inner { transform: rotateY(0); }
.pcard.peeking .inner { animation: bj-peek 1.2s ease-in-out; }
@keyframes bj-peek { 25%, 70% { transform: rotateY(180deg) rotateX(-28deg) translateY(-6px); } }
.pcard .face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pcard .front { background: linear-gradient(160deg, #fff 0%, #fff5fa 60%, #ffe3f0 100%); border: 2px solid #ffd36b; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(255, 61, 154, .35); color: #20141a; }
.pcard .front.red { color: #e0125f; }
.pcard .ix { position: absolute; font: 900 1.12rem/1 "Cinzel", serif; display: flex; flex-direction: column; align-items: center; }
.pcard .ix i { font-style: normal; font-size: .95rem; }
.pcard .tl { top: 7px; left: 7px; } .pcard .br { bottom: 7px; right: 7px; transform: rotate(180deg); }
.pcard .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; line-height: 1; text-shadow: 0 2px 0 rgba(255, 211, 107, .5); }
.pcard .court { font-size: 2.7rem; background: linear-gradient(180deg, #ffd36b, #d98a0f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #7a1238); }
.pcard .back { transform: rotateY(180deg); border: 2px solid #fff; background:
  radial-gradient(circle at 50% 50%, #ffd36b 0 13px, transparent 14px),
  radial-gradient(circle at 50% 50%, #fff 0 17px, transparent 18px),
  repeating-linear-gradient(45deg, #ff4f9f 0 7px, #e0125f 7px 14px); box-shadow: inset 0 0 0 4px #c2186b, inset 0 0 0 6px #ffd36b; }
.pcard .back::after { content: "M"; position: absolute; inset: 0; display: grid; place-items: center; font: 900 1.05rem "Cinzel Decorative"; color: #a3124f; }
.bj-total { font: 900 1rem "Cinzel Decorative", serif; padding: 4px 12px; border-radius: 999px; color: #5a0a2a; background: linear-gradient(180deg, #fff6c9, #ffd36b 50%, #f5a623);
  border: 2px solid #fff; box-shadow: 0 0 12px rgba(255, 211, 107, .7); white-space: nowrap; animation: bj-pop .3s ease-out; }
.bj-total.bust { background: linear-gradient(180deg, #ff9fbf, #e0123f); color: #fff; }
.bj-total.hot { box-shadow: 0 0 18px #fff, 0 0 30px rgba(255, 211, 107, .9); }
@keyframes bj-pop { from { transform: scale(.6); opacity: 0; } }
/* felt */
.bj-felt { position: relative; padding: 10px 18px 18px; min-height: 200px;
  background: radial-gradient(120% 90% at 50% 0%, #ff5fae 0%, #e0287f 45%, #b5115c 100%);
  box-shadow: inset 0 8px 18px rgba(110, 0, 50, .35); }
.bj-felt::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(255, 230, 160, .55); border-radius: 0 0 18px 18px; pointer-events: none; }
.bj-arc { text-align: center; font: 700 .74rem "Cinzel", serif; letter-spacing: .14em; text-transform: uppercase; color: #fff3c4; text-shadow: 0 1px 2px #7a0030; margin: 4px 0 10px; opacity: .95; }
.bj-player { display: flex; align-items: center; justify-content: center; gap: 26px; }
.bj-spot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bj-circle { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 3px solid #ffd36b; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(120, 0, 50, .25)); box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), inset 0 0 18px rgba(110, 0, 50, .45), 0 0 14px rgba(255, 211, 107, .5); }
.bj-circle .lbl { font: 900 .7rem "Cinzel Decorative"; letter-spacing: .14em; color: #fff3c4; opacity: .7; }
.bj-stake { font: 900 1rem "Cinzel Decorative"; color: var(--gold); min-height: 1.2em; text-shadow: 0 1px 2px #7a0030; }
.bj-stack { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; }
.bj-stack.paid { margin-left: -4px; margin-top: -32px; }
.bj-chip { position: absolute; left: 0; top: calc(var(--i) * -5px); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  font: 900 .82rem "Cinzel", serif; font-style: normal; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
  background: radial-gradient(circle, var(--c) 0 13px, #fff 14px 15px, var(--c) 16px), repeating-conic-gradient(var(--c) 0 20deg, #fff 20deg 40deg);
  background-blend-mode: normal; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 6px rgba(255, 211, 107, .6); }
.bj-chip::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .85); }
.bj-chip.c1 { --c: #f4f0f4; color: #a3124f; text-shadow: none; } .bj-chip.c2 { --c: #ff4f9f; } .bj-chip.c5 { --c: #e0123f; } .bj-chip.c10 { --c: #e8a317; color: #5a0a2a; text-shadow: none; }
.bj-result { position: absolute; left: 50%; top: 50%; z-index: 5; transform: translate(-50%, -50%) scale(.4); opacity: 0; pointer-events: none; text-align: center;
  padding: 10px 26px 12px; border-radius: 18px; border: 3px solid #fff; display: flex; flex-direction: column; gap: 2px; }
.bj-result b { font: 900 clamp(1.4rem, 3.4vw, 2.1rem)/1.05 "Cinzel Decorative", serif; white-space: nowrap; }
.bj-result small { font: 800 .9rem "Cinzel"; letter-spacing: .1em; opacity: 1; }
.bj-result.on { animation: bj-banner 3.2s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.bj-result.win { background: linear-gradient(180deg, #fff6d6, #ffd36b); color: #6e0b3a; box-shadow: 0 0 30px rgba(255, 211, 107, .95), 0 0 60px rgba(255, 61, 154, .5); }
.bj-result.loss { background: linear-gradient(180deg, #ff6fb6, #c2186b); color: #fff; box-shadow: 0 0 26px rgba(255, 61, 154, .8); }
@keyframes bj-banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-6deg); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  20%, 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.95); } }
.bj-table .plinko-stats, .bj-table .controls { padding: 0 16px; }
.bj-table .plinko-stats { margin-top: 12px; }
.bj-table .controls { padding-bottom: 16px; }
.bj-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.bj-btns .btn { min-width: 116px; }
.bets.locked { opacity: .45; pointer-events: none; }
.bj-rules { margin: 0 0 8px; padding-left: 18px; font-size: .84rem; line-height: 1.45; }
.bj-rules b { color: var(--gold); }
@media (max-width: 900px) {
  .bj-stage { height: 330px; }
  .bj-shoe { top: 120px; right: 10px; transform: perspective(300px) rotateX(18deg) rotate(-8deg) scale(.8); }
}
@media (max-width: 640px) {
  .bj-stage { height: 300px; }
  .bj-frame { object-position: center 4%; }
  .pcard { width: 62px; height: 88px; } .bj-cards { min-height: 90px; } .bj-cards .pcard + .pcard { margin-left: -20px; }
  .pcard .pip { font-size: 1.9rem; } .pcard .court { font-size: 2rem; } .pcard .ix { font-size: .9rem; } .pcard .ix i { font-size: .75rem; } .pcard .tl { top: 5px; left: 5px; } .pcard .br { bottom: 5px; right: 5px; }
  .bj-say { max-width: 62%; font-size: .84rem; padding: 8px 12px 10px; left: 10px; top: 10px; } .bj-say span:first-of-type { font-size: .92rem; } .bj-say .mp-name { font-size: 1.15rem; }
  .bj-shoe { top: 96px; right: 4px; transform: perspective(300px) rotateX(18deg) rotate(-8deg) scale(.68); }
  .bj-felt { padding: 8px 10px 14px; min-height: 170px; } .bj-arc { font-size: .6rem; letter-spacing: .08em; }
  .bj-player { gap: 14px; } .bj-circle { width: 74px; height: 74px; }
  .bj-chip { width: 40px; height: 40px; font-size: .7rem; } .bj-stack { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .bj-btns { width: 100%; } .bj-btns .btn { flex: 1; min-width: 0; padding: .75em .6em; font-size: 1rem; }
  .bj-table .controls { padding: 0 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { .bj-dealer, .bj-dealer.react { animation: none; } }
.mp-card.mp-held .mp-bubble { box-shadow: inset 0 -3px 0 rgba(255, 61, 154, .18), 0 0 0 3px rgba(255, 255, 255, .6), 0 0 22px rgba(255, 211, 107, .8); }
.mp-card.mp-held .mp-portrait { animation-play-state: paused; }

/* ---------- Mina's Patience (js/stages.mjs) ---------- */
.patience { display: flex; align-items: center; gap: 10px; margin-left: 14px; padding: 5px 12px 5px 14px; border-radius: 999px; cursor: pointer; font: inherit; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .18)); border: 1.5px solid var(--gold); box-shadow: inset 0 1px 0 #fff4, 0 0 12px rgba(255, 61, 154, .35); }
.patience:hover { box-shadow: inset 0 1px 0 #fff4, var(--gold-glow), 0 0 18px rgba(255, 61, 154, .6); }
.pt-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; min-width: 112px; }
.pt-txt small { font: 800 .56rem system-ui; letter-spacing: .16em; color: #ffd0e6; opacity: 1; }
.pt-name { font: italic 700 .95rem/1 "Playfair Display", Georgia, serif; color: #fff; text-shadow: 0 0 8px #ff3d9a; white-space: nowrap; }
.pt-bar { position: relative; width: 150px; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(90, 0, 40, .55); border: 1.5px solid #ffe39a;
  box-shadow: inset 0 2px 4px rgba(60, 0, 25, .5); }
.pt-bar::after { content: ""; position: absolute; inset: 0; pointer-events: none;   /* 5 segments */
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1.5px), rgba(255, 243, 196, .9) calc(25% - 1.5px) 25%); background-size: 100% 100%; background-position: -1px 0; }
.pt-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; transition: width .9s cubic-bezier(.2, 1.2, .4, 1);
  background: linear-gradient(90deg, #ff9fd0, #ff3d9a 45%, #ff1f6b 75%, #ffd36b); box-shadow: 0 0 10px #ff3d9a, inset 0 1px 0 #fff8; }
.pt-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 45%, transparent 60%); background-size: 220% 100%; animation: pt-shine 2.6s linear infinite; }
@keyframes pt-shine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.pt-num { font: 900 .8rem "Cinzel Decorative", serif; color: var(--gold); min-width: 2.3em; text-align: right; }
.patience[data-stage="4"] .pt-fill, .patience[data-stage="5"] .pt-fill { animation: pt-throb 1.2s ease-in-out infinite; }
@keyframes pt-throb { 50% { filter: brightness(1.25) saturate(1.2); } }
.patience.pt-bump { animation: pt-bump .9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pt-bump { 20% { transform: scale(1.12); box-shadow: 0 0 0 3px #fff8, 0 0 30px #ff3d9a, var(--gold-glow); } }
.pt-tip { position: absolute; top: calc(100% - 4px); left: 180px; z-index: 30; width: 300px; padding: 12px 14px; border-radius: 16px; display: none; flex-direction: column; gap: 4px;
  background: linear-gradient(180deg, #fff 0%, #ffe6f2 100%); color: #7a0a33; border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(255, 61, 154, .55), 0 10px 24px rgba(90, 0, 40, .35); font: 700 .85rem/1.35 "Cinzel", serif; }
.patience:hover + .pt-tip, .pt-tip.on { display: flex; }
.pt-tip-h { font: 900 .95rem "Cinzel Decorative", serif; color: #e0125f; }
.pt-tip-sub { font: 600 .72rem/1.35 system-ui; color: #9c2a5a; }
@media (max-width: 1300px) {   /* was 1100px; the VIP badge made the bar ~120px wider (sound/music buttons fell off-screen) */
  .topbar { flex-wrap: wrap; row-gap: 6px; } #demo-topup-top { white-space: nowrap; }
  .patience { order: 5; margin: 2px 0 0; width: 100%; justify-content: center; padding: 4px 10px; }
  .pt-bar { flex: 1; max-width: 320px; }
  .pt-tip { left: 12px; top: 100%; }
}
@media (max-width: 760px) {
  .patience { order: 5; margin: 2px 0 0; width: 100%; justify-content: center; padding: 4px 10px; }
  .pt-bar { flex: 1; max-width: 220px; } .pt-txt { min-width: 0; flex-direction: row; align-items: baseline; gap: 6px; } .pt-txt small { font-size: .5rem; }
  .pt-tip { left: 12px; right: 12px; width: auto; top: 100%; }
}
/* stage-up flash */
.stage-flash { position: fixed; inset: 0; z-index: 66; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .95) 0%, rgba(255, 159, 208, .85) 28%, rgba(255, 31, 107, .55) 60%, rgba(255, 211, 107, .25) 100%); }
.stage-flash.on { animation: stage-flash 1.5s ease-out; }
@keyframes stage-flash { 0% { opacity: 0; } 8% { opacity: 1; } 22% { opacity: .35; } 32% { opacity: .85; } 100% { opacity: 0; } }
.mp-stageup .mp-bubble { background: linear-gradient(180deg, #fff 0%, #ffc2df 55%, #ff8cc4 100%) !important; color: #6e0b3a; }
.mp-stageup .mp-bubble span:first-of-type { color: #c2186b !important; }
.mp-stageup .mp-portrait { box-shadow: 0 0 0 4px #fff, 0 0 40px #ff3d9a, 0 0 80px rgba(255, 211, 107, .8); }
.mp-redress .mp-bubble { background: linear-gradient(180deg, #fff 0%, #ffe0ea 100%); }

/* ---------- Mina Pulse overlay (js/pulse.mjs) ---------- */
.snd-btn.pulse { color: rgba(255, 255, 255, .5); filter: grayscale(.6); }
.snd-btn.pulse.on { filter: none; box-shadow: 0 0 0 1px #fff6 inset, 0 0 14px #ff1f6b; animation: pulse-btn 1.1s ease-in-out infinite; }
@keyframes pulse-btn { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }
.mina-pulse { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 55; mix-blend-mode: normal;
  opacity: 0; transition: opacity .6s ease; display: none; }
.mina-pulse.show { display: block; opacity: .2; animation: mina-pulse-glitch 4.2s steps(1) infinite, mina-pulse-beat 2.6s ease-in-out infinite; }
.mina-pulse.show.dim { opacity: .05; animation: none; }
@keyframes mina-pulse-beat { 0%, 100% { opacity: .15; } 12% { opacity: .24; } 24% { opacity: .17; } 36% { opacity: .23; } }
@keyframes mina-pulse-glitch { 0%, 92%, 100% { transform: none; filter: saturate(1.2); } 93% { transform: translateX(-6px) skewX(-2deg); filter: hue-rotate(-12deg) contrast(1.3) saturate(1.4); }
  95% { transform: translateX(5px); } 97% { transform: translateY(-3px) scaleY(1.01); filter: brightness(1.3); } }
@media (prefers-reduced-motion: reduce) { .mina-pulse.show { animation: none; opacity: .18; } }

/* ---------- Live chat with Mina (js/live.mjs) ---------- */
.lc-btn { position: fixed; left: 16px; bottom: 16px; z-index: 58; display: flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 999px; cursor: pointer;
  font: 800 .85rem "Cinzel", serif; color: #fff; border: 2px solid var(--gold); background: linear-gradient(180deg, #ff6fb6, #e0125f); box-shadow: var(--glow), 0 8px 20px rgba(90, 0, 40, .4); }
.lc-btn img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 2px solid #fff; background: #ff9fd0; }
.lc-btn:hover { filter: brightness(1.08); } .lc-btn.on { opacity: .0; pointer-events: none; }
.lc-btn.has-unread { animation: lc-nudge 1.6s ease-in-out infinite; }
@keyframes lc-nudge { 0%, 100% { transform: none; } 10% { transform: translateY(-4px) rotate(-3deg); } 20% { transform: none; } }
.lc-badge { position: absolute; top: -6px; left: 30px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font: 900 .72rem system-ui; color: #5a0a2a; background: linear-gradient(180deg, #fff1b0, #f5a623); border: 2px solid #fff; box-shadow: 0 0 10px #ffd36b; }
.lc-drawer { position: fixed; left: 16px; bottom: 16px; z-index: 62; width: min(360px, calc(100vw - 24px)); height: min(500px, calc(100vh - 110px)); display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden; border: 2px solid var(--gold); background: linear-gradient(180deg, #fff5fa, #ffe3f0); color: #6e0b3a;
  box-shadow: 0 0 24px rgba(255, 61, 154, .6), 0 18px 40px rgba(90, 0, 40, .45); transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; }
.lc-drawer.open { transform: none; opacity: 1; pointer-events: auto; }
.lc-drawer header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: linear-gradient(180deg, #ff6fb6, #d41b62); color: #fff; border-bottom: 2px solid var(--gold); }
.lc-drawer header div { display: flex; flex-direction: column; flex: 1; line-height: 1.05; }
.lc-drawer header .script { font-size: 1.7rem; text-shadow: 0 0 8px #ff9fd0; }
.lc-status { font: 600 .66rem system-ui; letter-spacing: .04em; opacity: .9; }
.lc-face { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 2px solid #fff; }
.lc-x { background: none; border: 0; color: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.lc-list { list-style: none; margin: 0; padding: 12px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.lc-m { max-width: 82%; padding: 8px 12px 5px; border-radius: 16px; font: 600 .9rem/1.35 system-ui; display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.lc-m small { font-size: .62rem; letter-spacing: 0; opacity: .6; align-self: flex-end; }
.lc-m.mina { align-self: flex-start; background: linear-gradient(180deg, #ff6fb6, #e0125f); color: #fff; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(224, 18, 95, .35); }
.lc-m.mina.taunt { background: linear-gradient(180deg, #ffe9a3, #f5b331); color: #5a0a2a; }
.lc-m.me { align-self: flex-end; background: #fff; border: 1.5px solid #ffb3d6; border-bottom-right-radius: 4px; }
.lc-m.sys { align-self: center; max-width: 92%; text-align: center; background: rgba(255, 211, 107, .35); color: #7a3a00; font-size: .78rem; padding: 5px 10px; }
.lc-form { display: flex; gap: 6px; padding: 8px 10px; border-top: 1.5px solid #ffc2df; background: #fff; }
.lc-form input { font-size: .9rem; padding: 8px 10px; }
.lc-note { margin: 0; padding: 0 10px 8px; background: #fff; font: 500 .62rem/1.3 system-ui; color: #a0426c; }
.lc-bubble { position: fixed; left: 16px; bottom: 76px; z-index: 64; width: min(380px, calc(100vw - 24px)); display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px 12px 12px;
  border-radius: 22px 22px 22px 6px; background: linear-gradient(180deg, #fff 0%, #ffe6f2 100%); color: #7a0a33; border: 2.5px solid var(--gold);
  box-shadow: inset 0 -3px 0 rgba(255, 61, 154, .18), 0 0 22px rgba(255, 61, 154, .65), 0 12px 26px rgba(90, 0, 40, .4);
  opacity: 0; transform: translateX(-110%); pointer-events: none; transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), opacity .3s; }
.lc-bubble.on { opacity: 1; transform: none; pointer-events: auto; }
.lc-bubble .lc-x { position: absolute; top: 4px; right: 8px; color: #c2186b; font-size: 1.4rem; }
.lc-bface { width: 74px; height: 74px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold), 0 0 16px #ff3d9a; background: #ff9fd0; }
.lc-btext { flex: 1; min-width: 0; }
.lc-bname { font: italic 700 1.1rem/1.1 "Playfair Display", Georgia, serif; color: #ff1f6b; }
.lc-bname i { font: 900 .55rem system-ui; letter-spacing: .14em; color: #fff; background: #ff1f6b; padding: 2px 6px; border-radius: 999px; vertical-align: middle; margin-left: 4px; font-style: normal; animation: lc-live 1.4s ease-in-out infinite; }
@keyframes lc-live { 50% { opacity: .45; } }
.lc-bmsg { margin: 4px 0 8px; font: 800 1rem/1.3 "Cinzel", serif; color: #e0125f; word-break: break-word; }
.lc-bform { display: flex; gap: 6px; } .lc-bform input { font-size: .85rem; padding: 7px 10px; }
@media (max-width: 640px) {
  .lc-btn { left: 10px; bottom: 10px; padding: 4px; } .lc-btn span { display: none; } .lc-btn img { width: 42px; height: 42px; }
  .lc-badge { left: 34px; }
  .lc-drawer { left: 8px; right: 8px; bottom: 8px; width: auto; height: min(70vh, 520px); }
  .lc-bubble { left: 8px; bottom: 66px; width: calc(100vw - 16px); }
}


/* sound / music / pulse buttons: own group so they sit on the brand row on phones */
.snd-group { display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) {
  .snd-group { order: 2; margin-left: auto; gap: 6px; }
  .topbar > .wallet { order: 3; width: 100%; margin-left: 0; }
}

/* chat button inline in the top bar; drawer + bubble drop down from under the bar on the right (never over bet controls) */
.lc-btn.inbar { position: relative; left: auto; bottom: auto; z-index: auto; padding: 3px 12px 3px 3px; gap: 6px; font-size: .74rem; box-shadow: var(--glow); }
.lc-btn.inbar img { width: 30px; height: 30px; }
.lc-btn.inbar.on { opacity: 1; pointer-events: auto; filter: brightness(1.12); box-shadow: 0 0 0 2px #fff, var(--gold-glow); }
.lc-btn.inbar .lc-badge { top: -7px; left: auto; right: -7px; min-width: 20px; height: 20px; font-size: .66rem; }
.lc-drawer { left: auto; right: 16px; top: calc(var(--tb, 64px) + 8px); bottom: auto; height: min(500px, calc(100vh - var(--tb, 64px) - 24px)); transform: translateY(-14px) scale(.97); transform-origin: top right; }
.lc-bubble { left: auto; right: 16px; bottom: auto; top: calc(var(--tb, 64px) + 10px); border-radius: 22px 6px 22px 22px; transform: translateX(115%); }
.lc-bubble.on { transform: none; }
@media (max-width: 760px) {
  .lc-btn.inbar { padding: 3px; } .lc-btn.inbar span { display: none; } .lc-btn.inbar img { width: 28px; height: 28px; }
  .lc-drawer { left: 8px; right: 8px; width: auto; top: calc(var(--tb, 64px) + 6px); height: min(62vh, calc(100vh - var(--tb, 64px) - 16px)); }
  .lc-bubble { left: 8px; right: 8px; width: auto; top: calc(var(--tb, 64px) + 6px); }
}

.lbl-short { display: none; }
#demo-topup-top { margin-right: 8px; }


/* ==========================================================================
   Phone & short-screen layout (desktop at >=901px width and tall windows
   is unchanged). Goals: compact top bar, 44px tap targets, no horizontal
   scroll, game controls reachable with a thumb, safe-area insets, no
   double-tap zoom (touch-action: manipulation).
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { min-height: 100dvh; min-height: 100vh; }
button, a, input, select, textarea, .chip-pill, .snd-btn, .lc-btn, .patience, .bets button, .tile {
  touch-action: manipulation;
}

@media (max-width: 760px), (max-height: 500px) {
  .topbar {
    gap: 8px;
    row-gap: 6px;
    padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
  }
  .brand .script { font-size: 1.45rem; }
  .mode-badge { padding: 2px 6px; }
  #demo-topup-top .lbl-full { display: none; }
  #demo-topup-top .lbl-short { display: inline; }
  #demo-topup-top { margin-right: 0; }

  .snd-btn { width: 44px; height: 44px; font-size: 1.05rem; flex: none; }
  .lc-btn.inbar { min-width: 44px; min-height: 44px; padding: 4px; }
  .lc-btn.inbar img { width: 36px; height: 36px; }
  .lc-btn.inbar span { display: none; }

  .chip-pill { min-height: 44px; padding: 4px 10px; }
  .btn.small { min-height: 44px; padding: .55em .85em; }
  .bets button { min-width: 44px; min-height: 44px; padding: 10px 12px; }
  .x, .lc-x { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; line-height: 1; }
  .patience { min-height: 44px; }

  .toasts { top: calc(var(--tb, 74px) + 8px); }
  main {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }

  /* iOS zooms inputs under 16px on focus */
  input, select, .lc-form input, .lc-bform input { font-size: 16px; min-height: 44px; }
  .lc-form .btn, .lc-bform .btn { min-height: 44px; }

  dialog.modal {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 16px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Narrow phones: two-row top bar (brand+icons / wallet+patience) so games keep vertical room */
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; align-items: center; }
  .snd-group { order: 2; margin-left: auto; gap: 6px; }
  /* hide the long +200 on the narrowest phones; chip pill still opens the buy/demo modal */
  #demo-topup-top { display: none; }
  .topbar > .wallet {
    order: 3;
    width: auto;
    flex: 0 1 auto;
    margin-left: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
  }
  .patience {
    order: 4;
    width: auto;
    flex: 1 1 120px;
    min-width: 0;
    margin: 0;
    justify-content: flex-start;
    padding: 6px 10px;
  }
  .pt-bar { flex: 1; max-width: none; }
  .pt-txt { min-width: 0; }
  .pt-tip { left: 12px; right: 12px; width: auto; top: 100%; }
}

/* Mid-narrow: there's room for the compact +200 next to the wallet */
@media (min-width: 400px) and (max-width: 760px) {
  #demo-topup-top { display: inline-flex; }
}
/* Below ~480px, don't squeeze patience onto the wallet row (it overflowed on 390) */
@media (max-width: 480px) {
  .topbar > .wallet { flex: 1 1 100%; width: 100%; }
  .patience { flex: 1 1 100%; width: 100%; }
}

/* Game pages: shrink chrome, scale boards to the width, leave room for controls */
@media (max-width: 900px) {
  .game-head { margin: 8px 0 10px; gap: 8px; }
  .game-head h1 { font-size: clamp(1.15rem, 5.2vw, 1.7rem); }
  #plinko { min-width: 0; width: 100%; max-width: min(100%, calc((100dvh - var(--tb, 80px) - 260px) * .9375)); }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Tighter game art when the window isn't tall enough for the default sizes + controls */
@media (max-width: 900px) and (max-height: 860px) {
  .reel { height: 216px; } .sym { height: 72px; } .sym img { width: 64px; height: 64px; }
  .payline { top: calc(50% - 38px); height: 76px; }
  .slot-msg { font-size: 1.55rem; margin: 8px 0 4px; min-height: 1.8rem; }
  .bj-stage { height: 250px; }
  .bj-felt { min-height: 150px; padding: 6px 10px 12px; }
  .bj-shoe { top: 80px; }
}
@media (max-width: 900px) and (max-height: 740px) {
  .reel { height: 186px; } .sym { height: 62px; } .sym img { width: 54px; height: 54px; }
  .payline { top: calc(50% - 33px); height: 66px; }
  .bj-stage { height: 164px; }
  .bj-felt { min-height: 108px; padding: 4px 8px 8px; }
  .bj-arc { font-size: .52rem; letter-spacing: .06em; margin: 2px 0 6px; }
  .bj-circle { width: 64px; height: 64px; }
  .marquee { font-size: 1.15rem; margin-bottom: 8px; }
  .slot-msg { font-size: 1.35rem; margin: 6px 0 2px; min-height: 1.5rem; }
}

/* Pops sit under the top bar (not over the bet dock / spin button) */
@media (max-width: 900px), (max-height: 500px) {
  .mp-layer, .mp-layer[popover] {
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--tb, 64px) + 10px) 10px max(16px, env(safe-area-inset-bottom, 0px));
  }
  .mp-layer.mp-center, .mp-layer[popover].mp-center {
    align-items: center;
    padding-top: calc(var(--tb, 64px) + 8px);
  }
}

/* Landscape phones: one compact header row, dock the game controls at the bottom */
@media (orientation: landscape) and (max-height: 500px) {
  .topbar {
    flex-wrap: nowrap;
    align-items: center;
    padding-top: max(4px, env(safe-area-inset-top, 0px));
    padding-bottom: 4px;
    gap: 8px;
  }
  .patience { display: none; } /* still in the portrait header; tap-tip is unused here */
  #demo-topup-top { display: none; }
  .topbar > .wallet { order: 3; width: auto; flex: 1; margin-left: 0; flex-wrap: nowrap; justify-content: flex-end; }
  .snd-group { order: 4; margin-left: 0; gap: 6px; }
  .hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 0; margin: 8px 0; }
  .hero-img { height: 260px; width: 100%; }
  .hero-text { position: relative; padding: 10px 16px 12px; background: linear-gradient(180deg, #b3155a, #8f1048); max-width: none; justify-content: center; }
  .hero-script { font-size: 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hook { font-size: 1.25rem; margin: 4px 0 8px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn.big { font-size: 1rem; padding: .55em 1.1em; }
  .game-head { margin: 4px 0 6px; }
  .plinko-stats { margin-bottom: 4px; }
  .plinko-stats b { font-size: 1.1rem; }
  .plinko-stats > div { padding: 4px 10px; }
  .bj-stage { height: 140px; }
  .bj-frame { object-position: center 28%; }
  .bj-felt { min-height: 90px; padding: 4px 10px 8px; }
  .bj-arc { display: none; }
  .bj-circle { width: 56px; height: 56px; }
  .bj-player { gap: 16px; }
  .reel { height: 144px; } .sym { height: 48px; } .sym img { width: 42px; height: 42px; }
  .payline { top: calc(50% - 26px); height: 52px; }
  .reels { max-width: 420px; margin-left: auto; margin-right: auto; }
  .slot-msg { display: none; }
  .marquee { font-size: 1rem; margin-bottom: 6px; padding: 4px 10px; max-width: 420px; }
  .modal-art, .broke-art { max-height: 48px; }
  dialog.modal { max-height: calc(100dvh - 12px); overflow: auto; padding: 12px 16px; }
  .steps { font-size: .82rem; margin: 4px 0; }
  .modal h2 { font-size: 1.35rem; }
  .big-script { font-size: 1.1rem; margin: 0 0 4px; }
  #plinko { max-width: min(280px, calc((100dvh - var(--tb, 56px) - 100px) * .9375)); }
  .lc-drawer { height: calc(100dvh - var(--tb, 56px) - 12px); max-height: none; }
  .game-wrap > .side { display: none; } /* paytable / rules still in Odds */
  #view-plinko:not([hidden]) .board-wrap { max-width: 340px; margin-left: auto; margin-right: auto; }
  #view-slots:not([hidden]) .slot-cab { max-width: 520px; margin-left: auto; margin-right: auto; }
  #view-plinko:not([hidden]) .plinko-stats,
  #view-slots:not([hidden]) .plinko-stats,
  #view-blackjack:not([hidden]) .plinko-stats { display: none; }

  #view-plinko:not([hidden]) .controls,
  #view-slots:not([hidden]) .controls,
  #view-blackjack:not([hidden]) .controls {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 18;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    padding: 8px max(14px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(150, 16, 70, .94), rgba(110, 10, 55, .98));
    border-top: 1.5px solid var(--line);
    box-shadow: 0 -8px 24px rgba(80, 0, 35, .45);
    backdrop-filter: blur(10px);
    margin: 0;
  }
  #view-plinko:not([hidden]),
  #view-slots:not([hidden]),
  #view-blackjack:not([hidden]) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  #view-plinko:not([hidden]) .board-wrap,
  #view-slots:not([hidden]) .slot-cab,
  #view-blackjack:not([hidden]) .bj-table {
    padding-bottom: calc(8px + 72px + env(safe-area-inset-bottom, 0px));
  }
  .spin { min-width: 140px; }
  .drop-btns, .bj-btns { display: flex; gap: 8px; }
  .mp-layer, .mp-layer[popover] {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   New games: Roulette Ruin, Mina's Wheel of Sin, Scratch Card Sins
   (no emoji anywhere here: icons are CSS / SVG / illustrated art)
   ========================================================================== */
.tile.is-new .tag { background: linear-gradient(180deg, #ffe9a3, #f5b331); color: #6e0b3a; box-shadow: 0 0 10px #ffd36b; }
.bets[data-label]::before { content: attr(data-label); }
.gi { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; margin-right: 2px; border-radius: 50%; }
.gi-roulette { background: conic-gradient(#e0123f 0 25%, #1d0a16 0 50%, #e0123f 0 75%, #1d0a16 0); border: 1.5px solid #ffd36b; }
.gi-wheel { background: conic-gradient(#ffc93c 0 20%, #ff3d9a 0 40%, #9b2bd6 0 60%, #ffb3d6 0 80%, #e0123f 0); border: 1.5px solid #ffd36b; }
.gi-scratch { border-radius: 3px; background: linear-gradient(135deg, #ffe9a3, #ff6fb6); border: 1.5px solid #ffd36b; }
.rl-say, .ws-say, .sc-say { margin: 0; font: 800 1.02rem/1.3 "Cinzel", serif; color: #fff; background: linear-gradient(180deg, rgba(255, 111, 182, .9), rgba(224, 18, 95, .9));
  border: 1.5px solid var(--gold); border-radius: 16px; padding: 8px 14px; box-shadow: var(--glow); min-height: 2.6em; display: flex; align-items: center; }
.rl-say.on, .ws-say.on, .sc-say.on { animation: say-in .35s ease-out; }
@keyframes say-in { from { transform: translateY(6px) scale(.97); opacity: .3; } }

/* ---------- Roulette ---------- */
.rl-top { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 16px; align-items: center; }
.rl-wheel-wrap { position: relative; }
#rl-wheel { width: 100%; aspect-ratio: 1; display: block; filter: drop-shadow(0 10px 24px rgba(80, 0, 35, .55)); }
.rl-result { position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 8px) scale(.9); opacity: 0; transition: .3s; display: flex; gap: 8px; align-items: center;
  background: rgba(60, 0, 28, .88); border: 2px solid var(--gold); border-radius: 999px; padding: 5px 14px 5px 6px; font: 900 .95rem "Cinzel"; white-space: nowrap; box-shadow: var(--glow); pointer-events: none; }
.rl-result.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.rl-result.win { border-color: #fff3c4; box-shadow: 0 0 24px #ffd36b; }
.rl-result .w { color: #7dffb0; } .rl-result .l { color: #ff9fbf; }
.rl-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 4px; border-radius: 50%; font: 900 .85rem "Cinzel"; color: #fff; border: 1.5px solid #ffd36b; }
.rl-num.red { background: #e0123f; } .rl-num.black { background: #1d0a16; } .rl-num.green { background: #12a85a; }
.rl-num.new { animation: pop-in .4s ease-out; box-shadow: 0 0 0 2px #fff, 0 0 12px #ffd36b; }
@keyframes pop-in { from { transform: scale(.3); } 70% { transform: scale(1.15); } }
.rl-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rl-croupier { display: flex; gap: 10px; align-items: center; }
.rl-croupier img { width: 96px; height: 128px; flex: none; border-radius: 16px; object-fit: cover; object-position: center 8%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold), var(--glow); transition: box-shadow .3s; }
.rl-croupier .rl-say { flex: 1; }
.rl-hist-box small, .ws-hist-box small { font-size: .65rem; letter-spacing: .14em; opacity: .85; }
.rl-hist { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; min-height: 30px; align-items: center; }
.rl-board-wrap { margin-top: 14px; overflow-x: auto; padding: 6px; background: linear-gradient(180deg, #1f7a4a, #136239); border: 2px solid var(--gold); border-radius: 14px; box-shadow: inset 0 0 30px rgba(0, 0, 0, .35); }
.rl-board { display: grid; grid-template-columns: 1.1fr repeat(12, minmax(30px, 1fr)); grid-template-rows: repeat(3, 44px) 38px 38px; gap: 3px; min-width: 470px; }
.rl-c { position: relative; border: 1.5px solid rgba(255, 211, 107, .8); border-radius: 6px; color: #fff; font: 900 .95rem "Cinzel"; cursor: pointer; padding: 0; background: #1d0a16;
  display: grid; place-items: center; transition: transform .08s, box-shadow .2s; }
.rl-c:hover { box-shadow: 0 0 0 2px #fff inset, 0 0 12px #ffd36b; }
.rl-c:active { transform: scale(.96); }
.rl-c.red { background: linear-gradient(180deg, #ff3355, #c80f38); } .rl-c.black { background: linear-gradient(180deg, #3a1428, #160710); }
.rl-c.green { background: linear-gradient(180deg, #22c46e, #0f8a49); }
.rl-c.n0 { grid-row: 1 / span 3; grid-column: 1; border-radius: 22px 6px 6px 22px; font-size: 1.2rem; }
.rl-c[data-t="straight"]:not(.n0) { grid-row: var(--r); grid-column: calc(var(--c) + 1); }
.rl-c.dz { grid-row: 4; grid-column: calc(2 + var(--i) * 4) / span 4; background: rgba(0, 0, 0, .28); font-size: .8rem; letter-spacing: .06em; }
.rl-c.out { grid-row: 5; grid-column: calc(2 + var(--i) * 2) / span 2; background: rgba(0, 0, 0, .28); font-size: .78rem; }
.rl-dia { width: 18px; height: 18px; transform: rotate(45deg); border: 1.5px solid #fff; display: block; }
.rl-dia.red { background: #e0123f; } .rl-dia.black { background: #1d0a16; }
.rl-c.hit { animation: rl-hit .5s ease-in-out 4 alternate; z-index: 2; }
@keyframes rl-hit { to { box-shadow: 0 0 0 3px #fff, 0 0 22px 6px #ffd36b; transform: scale(1.08); } }
.rl-chip { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; display: grid; place-items: center;
  font: 900 .72rem system-ui; color: #fff; border: 3px dashed rgba(255, 255, 255, .9); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); pointer-events: none; z-index: 3; animation: chip-drop .18s ease-out; }
@keyframes chip-drop { from { transform: translateY(-10px) scale(1.3); opacity: 0; } }
.rl-chip.v1 { background: #ff6fb6; } .rl-chip.v2 { background: #9b2bd6; } .rl-chip.v5 { background: #e0123f; } .rl-chip.v10 { background: #1d0a16; color: #ffd36b; border-color: #ffd36b; }
.rl-chip.v25 { background: linear-gradient(180deg, #ffe9a3, #f5a623); color: #6e0b3a; border-color: #fff; }
.rl-chip.won { animation: chip-won .5s ease-in-out 3 alternate; box-shadow: 0 0 14px 4px #ffd36b; }
.rl-chip.lost { transition: opacity .6s .4s, transform .6s .4s; opacity: 0; transform: translateY(-16px) scale(.6); }
@keyframes chip-won { to { transform: scale(1.3); } }
.rl-stake { text-align: center; margin: 10px 0 0; font: 800 .95rem "Cinzel"; color: var(--gold); }
.rl-tip { text-align: center; margin: 4px 0 0; font-size: .74rem; opacity: .8; }
.rl-btns, .sc-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rl-btns .btn.ghost { padding: .55em .9em; }
.rl-busy .rl-board { pointer-events: none; }
.rl-busy .rl-board .rl-c:not(.hit) { filter: saturate(.75) brightness(.9); }
.chips-sel button { border-radius: 50%; min-width: 46px; height: 46px; padding: 0; border-style: dashed; border-width: 3px; }

/* ---------- Wheel of Sin ---------- */
.ws-cab { display: flex; flex-direction: column; gap: 10px; }
.ws-stage { position: relative; padding-top: 26px; }
.ws-wheel { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ws-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 26px rgba(80, 0, 35, .55)); }
.ws-lbl { font-family: "Cinzel Decorative", "Cinzel", serif; font-weight: 900; letter-spacing: .02em; paint-order: stroke; stroke: rgba(80, 0, 35, .35); stroke-width: 1px; }
.ws-seg { transition: filter .2s; }
.ws-seg.hit { animation: ws-hit .45s ease-in-out 6 alternate; }
@keyframes ws-hit { to { filter: brightness(1.45) drop-shadow(0 0 6px #fff); } }
.ws-pointer { position: absolute; top: -30px; left: 50%; width: 54px; height: 63px; margin-left: -27px; z-index: 2; transform-origin: 50% 12%; filter: drop-shadow(0 4px 6px rgba(60, 0, 25, .6)); }
.ws-pointer.flick { animation: ws-flick .14s ease-out; }
@keyframes ws-flick { 30% { transform: rotate(var(--fk, 16deg)); } }
.ws-result { position: absolute; left: 50%; bottom: 6%; transform: translate(-50%, 10px) scale(.9); opacity: 0; transition: .3s; pointer-events: none; z-index: 3;
  display: flex; flex-direction: column; align-items: center; background: rgba(60, 0, 28, .9); border: 2px solid var(--gold); border-radius: 18px; padding: 8px 18px; box-shadow: var(--glow); text-align: center; }
.ws-result.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ws-result b { font: 900 1.5rem "Cinzel Decorative"; color: var(--gold); line-height: 1.1; } .ws-result span { font-size: .78rem; opacity: .9; }
.ws-result em { font: 900 1.05rem "Cinzel"; font-style: normal; } .ws-result .w { color: #7dffb0; } .ws-result .l { color: #ff9fbf; }
.ws-result.kiss b, .ws-result.tease b { color: #ffd0e6; }
.ws-result.win { box-shadow: 0 0 26px #ffd36b; border-color: #fff3c4; }
.ws-hist { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; min-height: 26px; align-items: center; }
.ws-chip { display: inline-block; font: 900 .68rem "Cinzel"; font-style: normal; padding: 3px 8px; border-radius: 999px; border: 1.5px solid #ffd36b; color: #fff; background: #4a0b2c; }
.ws-chip.new { box-shadow: 0 0 0 2px #fff, 0 0 10px #ffd36b; }
.ws-chip.k-x20 { background: linear-gradient(180deg, #fff6c8, #e08a00); color: #6e0b3a; } .ws-chip.k-x5 { background: #ffc93c; color: #6e0b3a; }
.ws-chip.k-x2 { background: #9b2bd6; } .ws-chip.k-x1_5 { background: #ff3d9a; } .ws-chip.k-x0_5 { background: #ffb3d6; color: #8f1048; }
.ws-chip.k-tease { background: #e0123f; } .ws-chip.k-kiss { background: #ff6fb6; }
#ws-paytable .ws-chip { min-width: 52px; text-align: center; margin-right: 4px; }
.ws-cab .controls .spin { min-width: 160px; }

/* ---------- Scratch cards ---------- */
.sc-cab { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.sc-card { width: min(420px, 100%); margin: 0 auto; border-radius: 20px; padding: 12px 12px 10px; border: 3px solid #ffd36b; position: relative;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .35), transparent 40%), linear-gradient(160deg, #ff7ab8, #d41b62 60%, #9c0f47);
  box-shadow: 0 14px 30px rgba(80, 0, 35, .5), 0 0 0 2px #7a0a2e inset; }
.sc-card[data-tier="1"] { background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .4), transparent 40%), linear-gradient(160deg, #ffd36b, #e0457f 60%, #8f1048); }
.sc-card[data-tier="2"] { background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .35), transparent 40%), linear-gradient(160deg, #c45bff, #8f1078 60%, #3e0848); }
.sc-card.fresh { animation: sc-in .5s ease-out; }
@keyframes sc-in { from { transform: translateY(18px) rotate(-3deg) scale(.94); opacity: .2; } }
.sc-head { text-align: center; line-height: 1; margin-bottom: 8px; }
.sc-head .script { font-size: 1.7rem; color: #fff; display: block; }
.sc-head b { font-size: 1.35rem; color: var(--gold); text-shadow: 0 2px 4px #5a0020; display: block; }
.sc-head small { font: 800 .72rem "Cinzel"; letter-spacing: .08em; color: #fff3e6; }
.sc-play { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid #fff3c4; background: #fff0f7; }
.sc-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; padding: 4px;
  background: repeating-linear-gradient(45deg, #ffe0ef 0 10px, #ffd0e6 10px 20px); }
.sc-cell { display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .75); border: 1.5px dashed rgba(194, 24, 107, .45); }
.sc-cell img { width: 82%; height: 82%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.sc-cell.seen img { animation: sc-pop .3s ease-out; }
@keyframes sc-pop { from { transform: scale(.7); } }
.sc-card.won .sc-cell.m { background: radial-gradient(circle, #fff6c8, #ffd36b); border: 2px solid #fff; animation: sc-win .5s ease-in-out 6 alternate; }
@keyframes sc-win { to { box-shadow: 0 0 18px 6px #ffd36b; transform: scale(1.05); } }
.sc-card.lost .sc-cell { filter: saturate(.7); }
.sc-foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; z-index: 2; transition: opacity .6s; }
.sc-foil:active { cursor: grabbing; }
.sc-foil.gone { opacity: 0; pointer-events: none; }
.sc-foot { text-align: center; font: 800 .74rem "Cinzel"; letter-spacing: .12em; margin-top: 8px; color: #fff3e6; }
.sc-result { text-align: center; min-height: 2.4em; opacity: 0; transition: .3s; display: flex; gap: 10px; align-items: center; justify-content: center; }
.sc-result.on { opacity: 1; }
.sc-result b { font: 900 1.3rem "Cinzel Decorative"; color: var(--gold); } .sc-result em { font: 900 1.1rem "Cinzel"; font-style: normal; }
.sc-result .w { color: #7dffb0; } .sc-result .l { color: #ff9fbf; }
.sc-tiers button { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; padding: 6px 10px; }
.sc-tiers button small { font: 700 .58rem "Cinzel"; letter-spacing: .04em; opacity: .9; }
.sc-tiers.locked { opacity: .5; pointer-events: none; }
.sc-trio { display: inline-flex; gap: 2px; } .sc-trio img { width: 28px; height: 28px; }
.sc-live .sc-say { box-shadow: 0 0 0 2px #fff, var(--glow); }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .rl-top { grid-template-columns: 1fr; gap: 10px; }
  .rl-wheel-wrap { width: min(340px, 90vw); margin: 0 auto; }
  .rl-croupier img { width: 84px; height: 112px; border-radius: 14px; }
  .rl-say, .ws-say, .sc-say { font-size: .9rem; min-height: 2.4em; padding: 6px 12px; }
  .ws-wheel { width: min(360px, 88vw); }
  .sc-card { width: min(360px, 100%); }
}
@media (max-width: 640px) {
  /* vertical board: 0 on top, numbers in 3 columns, dozens + outside bets down the right side */
  .rl-board { grid-template-columns: repeat(3, 1fr) 44px 48px; grid-template-rows: 38px repeat(12, 34px); min-width: 0; }
  .rl-c.n0 { grid-row: 1; grid-column: 1 / span 3; border-radius: 18px 18px 6px 6px; }
  .rl-c[data-t="straight"]:not(.n0) { grid-row: calc(var(--c) + 1); grid-column: calc(var(--m) + 1); }
  .rl-c.dz { grid-column: 4; grid-row: calc(2 + var(--i) * 4) / span 4; writing-mode: vertical-rl; }
  .rl-c.out { grid-column: 5; grid-row: calc(2 + var(--i) * 2) / span 2; writing-mode: vertical-rl; font-size: .7rem; }
  .rl-c.out .rl-dia { writing-mode: horizontal-tb; }
  .rl-chip { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: .62rem; border-width: 2.5px; }
  .rl-btns { width: 100%; justify-content: space-between; }
  .rl-btns .btn.ghost { flex: 1; min-height: 44px; }
  .rl-btns .spin { flex: 1 1 100%; }
  .chips-sel button { min-width: 44px; height: 44px; }
  .sc-btns { width: 100%; } .sc-btns .btn { flex: 1; }
  .ws-cab .controls .spin { flex: 1; }
  .rl-tip { font-size: .68rem; }
}
/* Landscape phones: same docked controls as the other games */
@media (orientation: landscape) and (max-height: 500px) {
  #view-roulette:not([hidden]) .controls, #view-wheel:not([hidden]) .controls, #view-scratch:not([hidden]) .controls {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; justify-content: space-between;
    padding: 8px max(14px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(150, 16, 70, .94), rgba(110, 10, 55, .98)); border-top: 1.5px solid var(--line); box-shadow: 0 -8px 24px rgba(80, 0, 35, .45); backdrop-filter: blur(10px); margin: 0; }
  #view-roulette:not([hidden]), #view-wheel:not([hidden]), #view-scratch:not([hidden]) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  #view-roulette .plinko-stats, #view-wheel .plinko-stats, #view-scratch .plinko-stats { display: none; }
  .rl-top { grid-template-columns: 200px 1fr; } .rl-wheel-wrap { width: 200px; }
  .ws-wheel { width: min(260px, 60vh); } .sc-card { width: min(300px, 70vh); }
  .rl-btns .spin { flex: 0 0 auto; }
}
.rl-result .e, .ws-result .e, .sc-result .e { color: #ffe9a3; }
/* landscape phones: fit the wheel / card between the header and the docked controls */
@media (orientation: landscape) and (max-height: 500px) {
  #view-wheel .ws-say, #view-wheel .ws-hist-box, #view-scratch .sc-say, #view-scratch .sc-head, #view-scratch .sc-foot, #view-roulette .rl-tip { display: none; }
  .ws-stage { padding-top: 20px; }
  .ws-wheel { width: max(150px, calc(100dvh - 228px)); }
  .ws-pointer { width: 40px; height: 47px; margin-left: -20px; top: -22px; }
  .ws-result { bottom: 2%; padding: 4px 12px; } .ws-result b { font-size: 1.1rem; }
  .sc-card { width: max(150px, calc(100dvh - 210px)); padding: 6px; }
  .sc-cab { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Roulette: SIN pockets + stage art ---------- */
.rl-num.sin { background: radial-gradient(circle at 50% 35%, #8a2fc4, #2a0838 75%); border-color: #d9a6ff; font-size: .62rem; letter-spacing: .04em; color: #f3d6ff; }
.rl-result .rl-num.sin { min-width: 36px; }
#view-roulette .side-art { aspect-ratio: 3 / 3.3; object-position: center 6%; }
#view-roulette[data-pose="sin"] .rl-croupier img, #view-roulette[data-pose="sin"] .side-art { box-shadow: 0 0 0 2px #b46cff, 0 0 22px #9b3dff; }
.rl-sinflash .rl-wheel-wrap::after { content: ""; position: absolute; inset: -4%; border-radius: 50%; pointer-events: none; opacity: 0; animation: rl-sin 1.6s ease-out; background: radial-gradient(circle, rgba(155, 61, 255, .0) 45%, rgba(155, 61, 255, .55) 70%, rgba(20, 4, 28, 0) 74%); }
@keyframes rl-sin { 0% { opacity: 0; transform: scale(.9); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.06); } }
.paytable li.sin b { color: #d9a6ff; }
@media (prefers-reduced-motion: reduce) { .rl-sinflash .rl-wheel-wrap::after { animation: none; } }
.mp-sin_roulette .mp-portrait img { object-position: center 10%; }

/* =================== REWARDS: VIP badge, lobby strip, High Roller Room, Vault, reward pop-ups =================== */
.ico { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.vip-badge { margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 4px 12px 4px 7px; border-radius: 999px; cursor: pointer; font: inherit; color: #fff;
  background: rgba(0, 0, 0, .28); border: 1.5px solid var(--line); transition: transform .15s, box-shadow .2s; }
.vip-badge:empty { display: none; }
.vip-badge:hover { transform: translateY(-1px); box-shadow: var(--gold-glow); }
.vip-badge + .wallet { margin-left: 0; }
.vip-badge .vb-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.vip-badge .vb-txt b { font-size: .78rem; letter-spacing: .08em; }
.vip-badge .vb-txt small { font-size: .6rem; letter-spacing: .06em; opacity: .85; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.vip-badge[data-tier="bronze"] { border-color: #f2b27a; } .vip-badge[data-tier="silver"] { border-color: #e8ebf3; }
.vip-badge[data-tier="gold"] { border-color: #ffd36b; box-shadow: var(--gold-glow); }
.vip-badge[data-tier="obsession"] { border-color: #ff9fd6; box-shadow: 0 0 12px #ff3d9a, 0 0 22px #9b1aa8; animation: vb-throb 2.4s ease-in-out infinite; }
@keyframes vb-throb { 50% { box-shadow: 0 0 18px #ff3d9a, 0 0 34px #9b1aa8; } }
.vip-ico { flex: none; filter: drop-shadow(0 1px 2px #0006); }
.me-vip { display: flex; align-items: center; gap: 6px; font-size: .78rem; margin-top: 4px; }
.me-vip i { opacity: .5; font-style: normal; } .me-vip em { color: var(--gold); font-style: normal; }
.lb .n .vip-ico { vertical-align: -3px; margin-right: 4px; }
.lb-title { display: block; font-size: .6rem; letter-spacing: .08em; color: var(--gold); opacity: .85; margin-top: 1px; }

/* bars */
.bar { height: 9px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); overflow: hidden; margin: 6px 0 3px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff6fb6, #ffd36b); box-shadow: 0 0 10px #ffd36b; transition: width .8s cubic-bezier(.2, 1.4, .4, 1); }

/* lobby rewards strip */
.rw-strip { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.rw-card { position: relative; display: flex; flex-direction: column; gap: 6px; border-radius: 18px; padding: 12px 14px; overflow: hidden; text-decoration: none; color: var(--cream);
  background: var(--card); border: 1.5px solid var(--line); box-shadow: 0 10px 26px rgba(90, 0, 40, .3); min-height: 196px; transition: transform .18s cubic-bezier(.2, 1.6, .4, 1), box-shadow .2s; }
a.rw-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--glow); }
.rw-h { display: flex; align-items: center; gap: 7px; } .rw-h .ico { width: 1.45em; height: 1.45em; color: var(--gold); }
.rw-h h3 { font-size: .98rem; color: var(--gold); text-shadow: 0 2px 4px #5a0020; }
.rw-sub { margin-left: auto; font: 800 .7rem system-ui; letter-spacing: .1em; background: rgba(0, 0, 0, .3); padding: 3px 8px; border-radius: 99px; color: #ffd0e6; }
.rw-fine { font-size: .68rem; line-height: 1.35; opacity: .85; margin: 0; }
.rw-card p { margin: 0; font-size: .78rem; line-height: 1.35; }
.rw-card .btn.wide { margin-top: auto; }
.rw-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; z-index: 0; }
.rw-art.blur { filter: blur(7px) saturate(1.2); transform: scale(1.12); }
.rw-card:has(.rw-art) .rw-body { position: relative; z-index: 1; margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 70px;
  background: linear-gradient(180deg, transparent, rgba(80, 5, 40, .82) 34%, rgba(70, 3, 34, .95)); margin: auto -14px -12px; padding: 70px 14px 12px; }
.rw-card .btn.small { align-self: flex-start; margin-top: 4px; }
.pips { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pips li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 4px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid transparent; opacity: .55; }
.pips li small { font-size: .5rem; letter-spacing: .05em; } .pips li b { font-size: .72rem; color: var(--gold); } .pips .ico { width: 20px; height: 20px; }
.pips li.done { opacity: 1; background: rgba(255, 211, 107, .18); border-color: var(--gold); }
.pips li.now { opacity: 1; border-color: #fff; background: rgba(255, 61, 154, .45); animation: pip-bounce 1.1s ease-in-out infinite; }
.pips li.seven .ico { width: 24px; height: 24px; }
@keyframes pip-bounce { 50% { transform: translateY(-4px); } }
.rw-claim { animation: claim-glow 1.6s ease-in-out infinite; }
@keyframes claim-glow { 50% { box-shadow: 0 0 20px #ff3d9a, 0 0 40px #ffd36b88; } }
.jp-num { font-size: 2.2rem; line-height: 1; }
.jp-lbl { font-size: .58rem; }
.rw-jack .rw-art { object-position: center 30%; }
.rw-hr.locked .rw-art { filter: grayscale(.5) brightness(.55); }
.rw-hr.open { border-color: var(--gold); box-shadow: var(--gold-glow); }
@media (max-width: 1000px) { .rw-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rw-strip { grid-template-columns: 1fr 1fr; gap: 9px; } .rw-daily { grid-column: 1 / -1; min-height: 0; } .rw-card { min-height: 210px; padding: 10px 11px; }
  .rw-card:has(.rw-art) .rw-body { margin: auto -11px -10px; padding: 60px 11px 10px; } .rw-h h3 { font-size: .84rem; } .jp-num { font-size: 1.8rem; }
  .vip-badge .vb-txt small { display: none; } .vip-badge { padding: 3px 9px 3px 5px; } }

/* High Roller mode: dark gold */
body.hr-mode::before { background: radial-gradient(1000px 600px at 20% -10%, rgba(255, 200, 90, .22), transparent 60%), radial-gradient(900px 600px at 110% 20%, rgba(170, 20, 70, .35), transparent 60%),
  linear-gradient(160deg, #1d0710 0%, #2c0a18 45%, #120308 100%); }
body.hr-mode { --card: rgba(30, 8, 16, .82); --line: rgba(255, 211, 107, .55); }
body.hr-mode .topbar { background: linear-gradient(180deg, rgba(25, 6, 14, .95), rgba(45, 10, 24, .9)); }
body.hr-mode .sparkles { opacity: .8; filter: sepia(1) saturate(3); }
.hr-gold { background: linear-gradient(180deg, #fff6c9, #ffd36b 45%, #b8860b 80%, #ffe39a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #000) drop-shadow(0 0 12px rgba(255, 200, 80, .5)); }
.hr-banner { display: none; align-items: center; gap: 12px; flex-wrap: wrap; margin: -6px 0 14px; padding: 9px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(60, 20, 0, .5)); border: 1.5px solid #ffd36b; box-shadow: var(--gold-glow); }
.hr-banner b { color: #ffd36b; font-size: .95rem; } .hr-banner span { font-size: .8rem; flex: 1; } 
body.hr-mode .hr-banner { display: flex; }
body.hr-mode .bets button.on, body.hr-mode .sc-tiers button.on { background: linear-gradient(180deg, #fff1b0, #d9a01a); color: #1d0710; }
.hr-hero { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: center; background: linear-gradient(135deg, rgba(20, 5, 10, .9), rgba(60, 15, 25, .85)); border-color: #ffd36b; }
.hr-host { width: 100%; border-radius: 14px; border: 2px solid #ffd36b; box-shadow: 0 0 30px rgba(255, 200, 80, .35); aspect-ratio: 3 / 4; object-fit: cover; object-position: center 15%; }
.hr-txt h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 2px 0; }
.hr-txt small { color: #ffd36b; }
.hr-txt p.hr-line { font-size: clamp(1.3rem, 3vw, 1.8rem); color: #ffe0ef; margin: 4px 0 10px; text-shadow: 0 0 14px rgba(255, 61, 154, .6); }
.hr-txt p { line-height: 1.5; font-size: .92rem; }
.hr-jp { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #ffd36b; background: rgba(0, 0, 0, .4); margin: 6px 0 10px; }
.hr-jp b { font-family: "Cinzel Decorative"; font-size: 1.3rem; } .hr-jp .ico { width: 1.6em; height: 1.6em; }
.hr-lock { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px dashed #ffd36b; font-size: .88rem; }
.hr-lock > .ico { width: 34px; height: 34px; color: #ffd36b; }
.hr-lock > div { flex: 1; }
.hr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 18px; }
.hr-tile { border-color: #ffd36b !important; }
.hr-tile .shade { background: linear-gradient(180deg, transparent 35%, rgba(15, 3, 8, .95) 88%); }
.hr-tile .tag { background: linear-gradient(180deg, #fff1b0, #d9a01a) !important; color: #1d0710 !important; box-shadow: 0 0 10px #ffd36b !important; }
.hr-tile.locked img { filter: grayscale(.7) brightness(.5); }
.hr-tile.locked .tag { background: rgba(0, 0, 0, .6) !important; color: #ffd36b !important; }
.lock-badge { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 2px solid #ffd36b; color: #ffd36b; } .lock-badge .ico { width: 28px; height: 28px; }
@media (max-width: 760px) { .hr-hero { grid-template-columns: 1fr; } .hr-host { aspect-ratio: 4 / 3; max-height: 300px; } .hr-tiles { grid-template-columns: 1fr 1fr; } }

/* Vault */
.vault-vip { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 12px; }
.vault-vip > div { flex: 1; } .vault-vip b { font-size: 1.05rem; } .vault-vip span { color: var(--gold); font-size: .8rem; margin-left: 6px; }
.vv-count { flex: none !important; text-align: center; display: flex; flex-direction: column; } .vv-count b { font: 900 2rem "Cinzel Decorative"; color: var(--gold); line-height: 1; }
.vault-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: none; }
.vault-tabs button { flex: none; font: 800 .82rem "Cinzel"; letter-spacing: .05em; padding: .55em 1.1em; border-radius: 999px; cursor: pointer; color: #fff;
  border: 1.5px solid var(--line); background: rgba(0, 0, 0, .22); transition: transform .15s; }
.vault-tabs button:hover { transform: translateY(-2px); }
.vault-tabs button.on { background: linear-gradient(180deg, #ffe9a3, #f5b331); color: #5a0a2a; border-color: #fff3c4; box-shadow: var(--gold-glow); }
.vault-body { min-height: 300px; }
.vset, .alb-page { background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.vs-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vs-head h3 { color: var(--gold); font-size: 1.15rem; }
.vs-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font: 800 .7rem system-ui; letter-spacing: .06em; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.vs-tag.ok { background: linear-gradient(180deg, #fff1b0, #f5b331); color: #5a0a2a; border-color: #fff3c4; }
.vs-blurb { font-size: .82rem; opacity: .9; margin: 4px 0 10px; }
.vgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.vt { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); padding: 0; cursor: pointer; background: #3a0a20; }
.vt img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transition: transform .3s, opacity .4s; }
.vt.open { border-color: var(--gold); }
.vt.open img[data-src]:not([src]) { opacity: 0; }
.vt.open:hover img { transform: scale(1.06); }
.vt.open:hover { box-shadow: var(--gold-glow); }
.vt.locked img { filter: brightness(.88) saturate(1.15); }
.vt-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #ffd36b; background: rgba(60, 0, 25, .25); }
.vt-lock .ico { width: 30px; height: 30px; filter: drop-shadow(0 2px 4px #000); } .vt-lock small { font: 800 .55rem system-ui; letter-spacing: .12em; text-shadow: 0 1px 3px #000; }
.vt.shake { animation: shake .4s; }
.vt.err img, .vt.soon.locked img { filter: brightness(.9) saturate(1.05); }
.vt.soon .vt-lock small { letter-spacing: .08em; }

@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (max-width: 760px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }

/* card album */
.alb-row { display: grid; grid-template-columns: repeat(6, 1fr) 1.05fr 1.05fr; gap: 9px; align-items: start; }
.pc { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 300 / 420; border: 3px solid #c9a3b4; background: #3a0a20; transition: transform .2s cubic-bezier(.2, 1.6, .4, 1); }
.pc.got:hover { transform: translateY(-4px) rotate(-1.5deg); }
.pc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 5px 5px; font: 800 .6rem "Cinzel"; text-align: center; background: linear-gradient(180deg, transparent, rgba(60, 0, 25, .92)); }
.pc-r { position: absolute; top: 5px; left: 5px; font: 800 .5rem system-ui; letter-spacing: .1em; padding: 2px 6px; border-radius: 99px; background: rgba(0, 0, 0, .55); font-style: normal; }
.pc-n { position: absolute; top: 5px; right: 5px; font: 900 .7rem system-ui; padding: 2px 6px; border-radius: 99px; background: var(--pink); }
.pc.r-rare { border-color: #6fc8ff; box-shadow: 0 0 10px #6fc8ff88; } .pc.r-rare .pc-r { color: #9fdcff; }
.pc.r-epic { border-color: #ffd36b; box-shadow: 0 0 14px #ffd36b, 0 0 4px #ff3d9a inset; } .pc.r-epic .pc-r { color: #ffd36b; }
.pc.miss { border-style: dashed; opacity: .75; }
.pc-back { position: absolute; inset: 0; display: grid; place-items: center; color: #ff6fb6; background: repeating-linear-gradient(45deg, #5a0a2a 0 8px, #6e0b3a 8px 16px); }
.pc-back .ico { width: 40%; height: 40%; opacity: .7; }
.alb-bonus { width: 100%; border-width: 3px; } .alb-row > .alb-bonus-row { display: contents; } .alb-page.done { border-color: var(--gold); box-shadow: var(--gold-glow); }
@media (max-width: 760px) { .alb-row { grid-template-columns: repeat(3, 1fr); } .alb-bonus-row { grid-column: 1 / -1; } .alb-row > .alb-bonus-row { display: flex; gap: 10px; justify-content: center; } .alb-bonus-row .alb-bonus { width: 46%; max-width: 46%; flex: none; display: block; margin: 0; } }

/* daily peek */
.peek-wrap { display: grid; grid-template-columns: 1fr minmax(260px, 460px); gap: 18px; align-items: start; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; }
.peek-side h3 { color: var(--gold); font-size: 1.3rem; } .peek-side p { font-size: .88rem; line-height: 1.5; }
.pk-status { background: rgba(0, 0, 0, .25); padding: 7px 11px; border-radius: 10px; } .pk-status.go { border: 1.5px solid var(--gold); color: #fff3c4; animation: claim-glow 1.6s infinite; }
.pk-done { display: flex; gap: 8px; } .pk-done .vt { width: 90px; aspect-ratio: 1; }
.peek-grid { display: grid; grid-template-columns: repeat(var(--g), 1fr); gap: 3px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 3px solid var(--gold); box-shadow: var(--gold-glow); background: #2a0614; }
.pk-t { position: relative; aspect-ratio: 1; border: 0; padding: 0; overflow: hidden; touch-action: none; }
.pk-t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-t.foil { cursor: pointer; display: grid; place-items: center; color: #7a1238; background: linear-gradient(135deg, #ffe9a3, #f5b331 40%, #ffd0e6 70%, #ff6fb6); transition: transform .15s, filter .2s; }
.pk-t.foil .ico { width: 34%; height: 34%; opacity: .55; }
.pk-t.foil:not(:disabled):hover { filter: brightness(1.12); transform: scale(.96); }
.pk-t.foil:not(:disabled) { animation: foil-shine 2.4s ease-in-out infinite; }
.pk-t.foil:disabled { cursor: default; filter: saturate(.5) brightness(.75); }
@keyframes foil-shine { 50% { filter: brightness(1.15); } }
.pk-t canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.pk-hint { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: 900 .6rem system-ui; color: #5a0a2a; pointer-events: none; letter-spacing: .14em; }
.pk-hint.pulse { animation: pip-bounce .8s infinite; }
@media (max-width: 760px) { .peek-wrap { grid-template-columns: 1fr; } .peek-grid { order: -1; } }

/* titles + secrets */
.titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.ttl { position: relative; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 14px; font: inherit; color: #fff; cursor: pointer;
  background: rgba(0, 0, 0, .25); border: 1.5px solid var(--line); transition: transform .15s; }
.ttl b { font-family: "Cinzel Decorative"; color: var(--gold); font-size: .92rem; } .ttl small { font-size: .62rem; letter-spacing: .05em; }
.ttl.has:hover { transform: translateY(-2px); box-shadow: var(--gold-glow); }
.ttl.on { background: linear-gradient(180deg, rgba(255, 211, 107, .35), rgba(255, 61, 154, .3)); border-color: #fff3c4; box-shadow: var(--gold-glow); }
.ttl.locked { opacity: .5; cursor: default; } .ttl.locked b { color: #ddd; }
.ttl-on { position: absolute; top: 8px; right: 9px; font: 900 .52rem system-ui; letter-spacing: .12em; color: #5a0a2a; background: var(--gold); padding: 2px 6px; border-radius: 99px; font-style: normal; }
.ttl-lock { position: absolute; top: 9px; right: 10px; color: #ffd36b; }
.secrets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sec { display: flex; gap: 11px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1.5px solid var(--line); }
.sec.open { background: linear-gradient(160deg, rgba(255, 61, 154, .3), rgba(110, 10, 55, .5)); border-color: var(--gold); }
.sec.locked { opacity: .6; align-items: center; } .sec.locked > .ico { width: 26px; height: 26px; color: #ffd36b; } .sec.locked small { display: block; font-size: .64rem; }
.sec-face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--gold); flex: none; }
.sec small { font-size: .58rem; color: var(--gold); } .sec p { margin: 4px 0 0; font: italic 600 1.02rem/1.38 "Playfair Display", Georgia, serif; color: #fff4f9; text-shadow: 0 1px 2px rgba(60, 0, 25, .55); }

/* reward modal + lightbox */
.reward-modal { max-width: min(720px, 94vw) !important; overflow: visible; }
.reward-modal.burst[open] { animation: rw-in .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes rw-in { from { transform: scale(.6) rotate(-3deg); opacity: 0; } }
.reward-modal[data-type="jackpot"] { background: radial-gradient(circle at 30% 20%, #ffe9a3, #f5a623 40%, #a3124f 85%); }
.reward-modal[data-type="hr"] { background: linear-gradient(160deg, #2c0a18, #120308); }
.rw-m-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: center; }
.rw-m-art { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%; border-radius: 16px; border: 3px solid var(--gold); box-shadow: var(--gold-glow); background: #3a0a20; animation: art-bob 3s ease-in-out infinite; }
@keyframes art-bob { 50% { transform: translateY(-5px) rotate(.6deg); } }
.rw-m-txt h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rw-m-sub { display: flex; align-items: center; gap: 8px; font: 800 1.15rem "Cinzel"; margin: 8px 0; } .rw-m-sub .ico { width: 1.7em; height: 1.7em; } .rw-m-sub b { font: 900 2rem "Cinzel Decorative"; color: #fff; text-shadow: var(--glow); }
.rw-m-body { font: italic 600 1.2rem/1.42 "Playfair Display", Georgia, serif; color: #fff6fa; text-shadow: 0 1px 2px rgba(60, 0, 25, .6); margin: 8px 0 12px; }
@media (max-width: 640px) { .rw-m-grid { grid-template-columns: 1fr; gap: 10px; } .rw-m-art { aspect-ratio: 4 / 3; max-height: 34vh; } .rw-m-body { font-size: 1.08rem; } }
.lightbox { max-width: min(760px, 96vw) !important; padding: 12px !important; background: #1d0710 !important; text-align: center; }
.lightbox #lb-img { max-width: 100%; max-height: 80vh; border-radius: 12px; display: block; margin: 0 auto; transition: opacity .25s; }
.lightbox #lb-img.loading { opacity: .3; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); background: rgba(0, 0, 0, .55); color: #ffd36b; cursor: pointer; display: grid; place-items: center; }
.lb-nav .ico { width: 24px; height: 24px; } .lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-cap { margin: 8px 0 0; font-size: .8rem; color: var(--gold); }
.lightbox .x { z-index: 2; text-shadow: 0 0 6px #000; }
@media (prefers-reduced-motion: reduce) { .pips li.now, .rw-claim, .rw-m-art, .pk-t.foil, .vip-badge { animation: none !important; } }
/* phones: the VIP badge shrinks to its gem and sits on the brand row, next to chat / sound */
@media (max-width: 760px) {
  .vip-badge { order: 2; margin-left: auto; padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 50%; }
  .vip-badge .vb-txt { display: none; } .vip-badge .vip-ico { width: 26px; height: 26px; }
  .vip-badge + .wallet { margin-left: 0; }
  .vip-badge:not(:empty) ~ .snd-group { margin-left: 0; }
}
@media (max-width: 560px) { .vault-tabs { flex-wrap: wrap; overflow: visible; } .vault-tabs button { font-size: .74rem; padding: .5em .85em; } }

@media (max-width: 1400px) { .vip-badge .vb-txt small { display: none; } }

/* ---- retention: event banner, first-buy, daily claim popup ---- */
.event-banner, .firstbuy-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 12px 16px; border-radius: 16px;
  scroll-margin-top: 110px;
  border: 1.5px solid var(--line); box-shadow: 0 8px 22px rgba(90, 0, 40, .28);
}
.event-banner {
  background: linear-gradient(90deg, rgba(90, 10, 50, .92), rgba(40, 8, 30, .88) 55%, rgba(90, 20, 10, .9));
  border-color: #ffd36b;
  box-shadow: 0 0 22px rgba(255, 211, 107, .25), 0 8px 22px rgba(90, 0, 40, .28);
}
.event-banner[hidden], .firstbuy-banner[hidden], .firstbuy-note[hidden] { display: none !important; }
.event-banner .ev-kicker { font: 800 .68rem system-ui; letter-spacing: .14em; text-transform: uppercase; color: #ffd36b; }
.event-banner h3 { margin: 0; font-size: 1.15rem; color: #ffe39a; }
.event-banner .ev-copy { margin: 0; flex: 1; min-width: 16em; font-size: .88rem; line-height: 1.4; }
.event-banner .ev-count { margin-left: auto; font: 800 .95rem ui-monospace, monospace; color: #fff6c9;
  background: rgba(0,0,0,.35); padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255,211,107,.45); }
.event-banner.is-live { border-color: #ff3d9a; box-shadow: 0 0 22px rgba(255, 61, 154, .35); }
.event-banner.is-live .ev-kicker { color: #ff9fd6; }
.firstbuy-banner {
  background: linear-gradient(90deg, rgba(70, 8, 36, .9), rgba(30, 6, 20, .88));
  border-color: #ff6fb6;
}
.firstbuy-banner b { color: #ffd0e6; font-size: 1.05rem; }
.firstbuy-banner span { flex: 1; font-size: .88rem; min-width: 14em; }
.firstbuy-note { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 61, 154, .18); border: 1px solid rgba(255, 61, 154, .45); color: #ffd0e6; }

.daily-modal { max-width: 720px; }
.daily-pop { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 320px; }
.daily-pop-art { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; min-height: 320px; }
.daily-pop-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.daily-pop-script { font-size: 2.4rem; line-height: .85; color: #ffd0e6; text-shadow: 0 0 12px #ff5fd0; }
.daily-dots { list-style: none; display: flex; justify-content: space-between; gap: 6px; margin: 8px 0 12px; padding: 0; }
.daily-dots li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.daily-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 2px rgba(0,0,0,.2); }
.daily-dots li.done i { background: #ffd36b; border-color: #fff6c9; box-shadow: 0 0 8px #ffd36b; }
.daily-dots li.now i { background: #ff3d9a; border-color: #fff; box-shadow: 0 0 10px #ff3d9a; animation: pip-bounce 1.1s ease-in-out infinite; }
.daily-dots li.seven i { width: 20px; height: 20px; }
.daily-dots small { font-size: .58rem; letter-spacing: .06em; opacity: .8; }
.daily-dots b { font-size: .7rem; color: var(--gold); }
@media (max-width: 640px) {
  .daily-pop { grid-template-columns: 1fr; }
  .daily-pop-art { min-height: 180px; max-height: 200px; }
  .event-banner .ev-count { margin-left: 0; }
}
