/* Baazigar Live - shared theme: black, gold, a little red. No external fonts or images,
   so it still looks right on poor venue Wi-Fi. */
:root {
  --bg: #2a0a12; --panel: #3a0f1a; --panel2: #4a1422; --line: rgba(226, 179, 65, .32);
  --gold: #e2b341; --gold-hi: #f7de8b; --gold-lo: #8a6a14; --red: #c8203b; --green: #2fae6f;
  --text: #f4ecd6; --muted: #a79d84; --danger: #ff6b6b;
  --serif: "Playfair Display", "Didot", "Bodoni 72", "Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Josefin Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gold-grad: linear-gradient(180deg, #fff3b0 0%, #e6c35a 38%, #b88a1e 72%, #8a6a14 100%);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.45;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, .16), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(200, 32, 59, .25), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23d4af37' fill-opacity='.045' font-family='Georgia,serif' font-size='26'%3E%3Ctext x='14' y='38'%3E%E2%99%A0%3C/text%3E%3Ctext x='74' y='98'%3E%E2%99%A6%3C/text%3E%3Ctext x='74' y='38'%3E%E2%99%A5%3C/text%3E%3Ctext x='14' y='98'%3E%E2%99%A3%3C/text%3E%3C/g%3E%3C/svg%3E"),
    #2a0a12;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); margin: 0 0 .4em; line-height: 1.15; letter-spacing: .06em; }
.logo { font-family: 'Limelight', var(--serif); letter-spacing: .06em; }
.num, .amt, .rank, .pid, .bal, .big-n { font-family: 'Oswald', sans-serif !important; font-weight: 700; letter-spacing: .02em; }
a { color: var(--gold-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
.wrap.wide { max-width: 1100px; }
.brandbar { display: flex; align-items: center; gap: 12px; padding: 4px 2px 14px; }
.emblem {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; line-height: 1;
  color: #1a1304; background: radial-gradient(circle at 32% 28%, #fff3b0, #d4af37 55%, #8a6a14);
  box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold), 0 6px 18px rgba(212, 175, 55, .35);
}
.brandbar .title { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .22em; }
.brandbar .sub { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- cards ---------- */
.card {
  position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.card.glow { box-shadow: 0 0 0 1px rgba(212, 175, 55, .5), 0 0 38px rgba(212, 175, 55, .18), 0 14px 34px rgba(0, 0, 0, .5); }
.card h3 { font-size: 18px; }
.hint { font-size: 13px; color: var(--muted); }

/* ---------- membership card ---------- */
.member {
  border-radius: 20px; padding: 18px; position: relative; overflow: hidden; color: #1b1405;
  background: linear-gradient(135deg, #f8e58f 0%, #d4af37 38%, #a67c1a 70%, #e9cd6c 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
.member::before { content: "\2660"; position: absolute; right: -14px; top: -34px; font-size: 190px; color: rgba(0, 0, 0, .08); font-family: Georgia, serif; }
.member .tag { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.member .pname { font-family: var(--serif); font-size: 24px; font-weight: 700; margin: 4px 0 10px; }
.member .pid { font-family: var(--serif); font-size: 44px; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.member .bal { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 52px; font-weight: 800; line-height: 1; margin-top: 10px; }
.member .bal small { font-size: 14px; font-weight: 700; letter-spacing: .18em; opacity: .75; font-family: var(--sans); }
.member .rankpill { display: inline-block; margin-top: 12px; background: rgba(0, 0, 0, .82); color: var(--gold-hi); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }

/* ---------- coin & chips ---------- */
.coin {
  display: inline-block; position: relative; flex: none; width: 1em; height: 1em; border-radius: 50%; font-size: inherit;
  background: radial-gradient(circle at 30% 28%, #fff7c4, #e2bb45 42%, #8a6a14 100%);
  box-shadow: inset 0 0 0 .07em rgba(0, 0, 0, .3), inset 0 0 0 .13em rgba(255, 255, 255, .28), 0 .06em .14em rgba(0, 0, 0, .55);
}
.coin::after { content: ""; position: absolute; inset: .2em; border-radius: 50%; border: .05em dashed rgba(70, 45, 0, .55); }
.member .coin { font-size: 46px; }

/* ---------- forms ---------- */
.field { display: block; }
.field > span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px 2px; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 14px 14px; border-radius: 12px; border: 1px solid rgba(212, 175, 55, .3); background: #1f0710; color: var(--text);
  font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(212, 175, 55, .22); }
input::placeholder { color: #6f6755; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--gold); flex: none; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 18px; background: #4a1422; color: var(--text); font-weight: 700; letter-spacing: .02em; cursor: pointer; text-decoration: none;
  transition: transform .08s, filter .15s; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.gold { background: var(--gold-grad); color: #1b1405; border-color: #fff0a8; box-shadow: 0 8px 22px rgba(212, 175, 55, .3), inset 0 1px 0 rgba(255, 255, 255, .6); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.btn.red { background: linear-gradient(180deg, #e03a4c, #a01c2c); border-color: #ff8f9b; color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.big { padding: 18px 22px; font-size: 19px; border-radius: 16px; }
.linkbtn { background: none; border: 0; color: var(--gold-hi); text-decoration: underline; cursor: pointer; padding: 6px; }

/* ---------- lists ---------- */
.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.item.me { border-color: var(--gold); background: rgba(212, 175, 55, .12); }
.rank { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--serif); font-weight: 800; background: #23232d; color: var(--gold-hi); }
.rank.r1 { background: radial-gradient(circle at 30% 25%, #fff3b0, #d4af37 60%, #8a6a14); color: #1b1405; box-shadow: 0 0 16px rgba(212, 175, 55, .6); }
.rank.r2 { background: radial-gradient(circle at 30% 25%, #ffffff, #c8ccd2 60%, #7e848c); color: #14161a; }
.rank.r3 { background: radial-gradient(circle at 30% 25%, #ffd9b0, #c8803c 60%, #7a4515); color: #1c0f04; }
.item .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sm { font-size: 12px; color: var(--muted); }
.amt { font-family: var(--serif); font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pos { color: #7ee0a9; } .neg { color: #ff8f9b; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(42, 10, 18, .96) 35%); }
.tabs .in { display: flex; gap: 6px; width: 100%; max-width: 520px; padding: 6px; border-radius: 18px; background: #35101b; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.tabs button { flex: 1; border: 0; border-radius: 13px; padding: 10px 6px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .05em; cursor: pointer; display: grid; gap: 2px; justify-items: center; }
.tabs button .ic { font-size: 20px; line-height: 1; }
.tabs button.on { background: var(--gold-grad); color: #1b1405; }
.seg { display: flex; gap: 6px; background: #1f0710; padding: 5px; border-radius: 14px; border: 1px solid var(--line); overflow-x: auto; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 10px 12px; border-radius: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.seg button.on { background: var(--gold-grad); color: #1b1405; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(212, 175, 55, .16); color: var(--gold-hi); }
.pill.red { background: rgba(192, 35, 52, .22); color: #ff9aa5; } .pill.green { background: rgba(47, 174, 111, .2); color: #7ee0a9; }

/* ---------- toast & overlays ---------- */
.toasts { position: fixed; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top)); z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; width: 100%; padding: 12px 14px; border-radius: 14px; background: #3a0f1a; border: 1px solid var(--gold); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); animation: pop .22s ease-out; }
.toast.bad { border-color: var(--danger); }
.toast.good { border-color: var(--green); }
.toast .t { flex: 1; font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { width: 100%; max-width: 560px; max-height: 94vh; overflow: auto; background: linear-gradient(180deg, #4a1422, #101016); border: 1px solid var(--gold); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(212, 175, 55, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: rgba(212, 175, 55, .55); } 100% { background: transparent; } }
.hero { text-align: center; padding: 18px 6px 6px; }
.hero .emblem { margin: 0 auto 14px; width: 74px; height: 74px; font-size: 44px; }
.hero h1 { font-size: 34px; }
.steps { counter-reset: s; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gold-grad); color: #1b1405; font-size: 14px; }

/* ---------- tables (admin / report) ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 8px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #14141b; }
table.t td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
table.t tr:hover td { background: rgba(255, 255, 255, .03); }
.scroll { overflow: auto; max-height: 62vh; border-radius: 12px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- v2 additions: avatars, level card, gender pick, podium ---------- */
.face { position: relative; display: inline-block; flex: none; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #6a1a2c, #2a0a12); box-shadow: 0 0 0 2px var(--gold); }
.mascot-hero { display: flex; justify-content: center; padding-top: 6px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.bz-eyes { animation: blink 5s infinite; transform-origin: 60px 58px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick button { border: 2px solid var(--line); background: var(--panel); border-radius: 16px; padding: 10px 6px 8px; cursor: pointer; display: grid; justify-items: center; gap: 4px; font-weight: 700; letter-spacing: .08em; }
.pick button.on { border-color: var(--gold-hi); background: var(--panel2); box-shadow: 0 0 0 3px rgba(226,179,65,.25); }
.lvcard { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, var(--panel2), var(--panel)); border: 1px solid var(--gold); border-radius: 22px; padding: 14px; box-shadow: 0 0 34px rgba(226,179,65,.18); }
.lvcard .who { flex: 1; min-width: 0; }
.lvcard .nm { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvcard .lv { display: inline-block; margin-top: 2px; background: var(--gold-grad); color: #2a0a12; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.lvcard .bal { display: flex; align-items: center; gap: 8px; font-size: 44px; line-height: 1.1; margin-top: 4px; }
.lvcard .bal .coin { font-size: 34px; }
.lvcard .bal small { font-size: 12px; letter-spacing: .2em; opacity: .75; font-family: var(--sans); }
.bar { height: 10px; border-radius: 999px; background: rgba(0,0,0,.4); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--gold-grad); border-radius: 999px; transition: width .8s; }
.ticket { background: linear-gradient(135deg, #f7de8b, #e2b341 45%, #b88a1e); color: #2a0a12; border-radius: 22px; padding: 18px; text-align: center; position: relative; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: #2a0a12; transform: translateY(-50%); }
.ticket::before { left: -13px; } .ticket::after { right: -13px; }
.ticket .big-n { font-size: 56px; line-height: 1; }
.ticket small { letter-spacing: .24em; text-transform: uppercase; font-weight: 700; opacity: .75; font-size: 11px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; padding: 10px 0 0; }
.podium .pl { text-align: center; display: grid; justify-items: center; gap: 2px; }
.podium .pl .nm { font-weight: 700; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .pl .v { font-size: 18px; color: var(--gold-hi); }
.podium .step { width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: center; font-size: 28px; color: #2a0a12; background: var(--gold-grad); }
.podium .p1 .step { height: 64px; } .podium .p2 .step { height: 44px; filter: saturate(.2) brightness(1.2); } .podium .p3 .step { height: 30px; filter: hue-rotate(-15deg) saturate(.8) brightness(.85); }
.nudge { text-align: center; font-weight: 700; color: var(--gold-hi); padding: 10px; border: 1px dashed var(--line); border-radius: 14px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.chipg { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-weight: 700; font-size: 13px; }
.chipg.done { background: rgba(226,179,65,.18); border-color: var(--gold); color: var(--gold-hi); }
.shot { text-align: center; font-size: 13px; color: var(--gold-hi); letter-spacing: .06em; }

/* ---------- moving spotlights behind everything ---------- */
body::before, body::after { content: ""; position: fixed; top: -8vh; width: 46vw; height: 130vh; pointer-events: none; z-index: 0; transform-origin: 50% 0; filter: blur(6px); mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(255, 233, 160, .34), rgba(255, 233, 160, .10) 55%, transparent 85%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); }
body::before { left: -6vw; animation: beamL 9s ease-in-out infinite; }
body::after { right: -6vw; animation: beamR 11s ease-in-out infinite; }
@keyframes beamL { 0%, 100% { transform: rotate(-24deg); } 50% { transform: rotate(18deg); } }
@keyframes beamR { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(-18deg); } }
.wrap, .stage, .tabs { position: relative; z-index: 1; } .tabs { position: fixed; z-index: 20; }
@media (min-width: 1200px) { body.tv::before, body.tv::after { width: 38vw; } }
/* extra TV motion */
.machine .lever { position: absolute; right: -1.6vw; top: 30%; width: 1vw; height: 12vh; border-radius: 1vh; background: linear-gradient(90deg, #b88a1e, #f7de8b, #b88a1e); transform-origin: 50% 100%; }
.machine .lever::before { content: ""; position: absolute; top: -2.4vh; left: -.7vh; width: 2.6vh; height: 2.6vh; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ff6b7f, #8e1b2f); }
.machine.pull .lever { animation: pull 1.2s ease-in-out; }
@keyframes pull { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(38deg); } }
.reel.rolling { filter: blur(1.5px); }
.reel.rolling > * { animation: flick .09s linear infinite; }
@keyframes flick { 0% { transform: translateY(-6px); opacity: .7; } 100% { transform: translateY(6px); opacity: 1; } }
.reel.big { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: inset 0 0 2.4vh rgba(0,0,0,.35), 0 0 5vh #fff0a8; } }
.reel.land { animation: land .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes land { 0% { transform: scale(.92) translateY(-14px); } 100% { transform: none; } }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); transform: translateX(-120%); animation: sheen 6s infinite; pointer-events: none; }
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.tcard, .ccard { animation: rise .6s backwards; } @keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- v7: table mascots, guide, chips in hand ---------- */
.gart { display: inline-block; width: 90px; height: 90px; flex: none; }
.gart .dl-bob { animation: dbob 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes dbob { 50% { transform: translateY(-2px) rotate(-1.2deg); } }
.gart .pr-wheel { animation: spin 7s linear infinite; transform-box: fill-box; transform-origin: center; }
.gart .pr-ball { animation: spin 1.6s linear infinite reverse; transform-origin: 60px 102px; }
.gart .pr-cA { animation: cardA 2.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.gart .pr-cB { animation: cardA 2.6s .4s ease-in-out infinite alternate-reverse; transform-box: fill-box; transform-origin: 50% 100%; }
.gart .pr-cC, .gart .pr-cD { animation: cardA 2.6s .8s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes cardA { to { transform: translateY(-3px) rotate(4deg); } }
.gart .pr-d1 { animation: dice 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gart .pr-d2 { animation: dice 2.2s .5s ease-in-out infinite reverse; transform-box: fill-box; transform-origin: center; }
@keyframes dice { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-6px) rotate(40deg); } }
.dl-wave { animation: wave 1s ease-in-out infinite alternate; transform-origin: 86px 82px; }
@keyframes wave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }

.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tt { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 10px; border-radius: 18px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); text-align: center; }
.tt .gart { width: 92px; height: 92px; }
.tt .gname { font-family: var(--serif); font-weight: 700; letter-spacing: .06em; font-size: 15px; color: var(--gold-hi); }
.tt .st { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.tt.done { border-color: var(--gold); box-shadow: 0 0 22px rgba(226,179,65,.22); }
.tt.done .st { color: #7ee0a9; font-weight: 700; }
.tt .flame { position: absolute; top: 6px; right: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #2a0a12; background: linear-gradient(180deg, #ffd27a, #ff8a3d); border-radius: 999px; padding: 2px 8px; animation: flick .7s ease-in-out infinite alternate; }
.pnl { font-weight: 800; font-size: 14px; margin-top: 4px; }
.pnl.up { color: #7ee0a9; } .pnl.down { color: #ff9aa5; } .pnl.even { color: var(--muted); }
.inhand { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--gold); border-radius: 18px; padding: 10px 12px; background: rgba(226,179,65,.1); }
.inhand .gart { width: 76px; height: 76px; }
.inhand b { color: var(--gold-hi); font-size: 22px; }
.helpcard { display: flex; align-items: center; gap: 12px; }
.helpcard .gart { width: 84px; height: 84px; }

/* guide */
.guide { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 18%, #5a1628, #1a0810 70%); animation: fade .2s; }
.guide .gtop { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; }
.guide .gbody { flex: 1; overflow: hidden; position: relative; }
.guide .slide { position: absolute; inset: 0; padding: 4px 22px 0; display: flex; flex-direction: column; align-items: center; text-align: center; animation: slidein .35s ease-out; }
.guide .slide.back { animation-name: slideback; }
@keyframes slidein { from { opacity: 0; transform: translateX(36px); } }
@keyframes slideback { from { opacity: 0; transform: translateX(-36px); } }
.guide .step-no { letter-spacing: .3em; font-size: 12px; color: var(--gold); margin-top: 6px; }
.guide h2 { font-family: var(--serif); font-size: 27px; margin: 4px 0 4px; }
.guide .txt { font-size: 15.5px; line-height: 1.45; max-width: 420px; color: #f3e8d2; }
.guide .gfoot { padding: 10px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.guide .dots { display: flex; justify-content: center; gap: 7px; }
.guide .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); transition: all .25s; }
.guide .dots i.on { width: 24px; border-radius: 6px; background: var(--gold-grad); }
.guide .gbtns { display: flex; gap: 10px; } .guide .gbtns .btn { flex: 1; }
.scene { position: relative; width: 100%; max-width: 380px; height: 250px; margin: 8px 0 6px; overflow: hidden; border-radius: 22px; background: radial-gradient(ellipse at 50% 100%, rgba(14,107,67,.55), rgba(0,0,0,.25) 70%); border: 1px solid rgba(226,179,65,.35); }
.scene .abs { position: absolute; }
.scene .coin { position: absolute; top: -30px; font-size: 24px; animation: rain 2.4s linear infinite; }
@keyframes rain { to { transform: translateY(300px) rotate(540deg); } }
.bubble { position: absolute; max-width: 62%; padding: 7px 11px; border-radius: 14px; font-weight: 700; font-size: 13.5px; line-height: 1.25; background: #fff; color: #2a0a12; box-shadow: 0 6px 16px rgba(0,0,0,.4); opacity: 0; }
.bubble::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.bubble.l::after { left: 24px; } .bubble.r::after { right: 24px; }
.bubble.gold { background: var(--gold-grad); } .bubble.gold::after { background: #e2b341; }
.b1 { animation: say 6s infinite; } .b2 { animation: say 6s 2.8s infinite; }
@keyframes say { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 6%, 40% { opacity: 1; transform: none; } 48%, 100% { opacity: 0; } }
.walker { position: absolute; bottom: 8px; left: -60px; animation: walk 4.5s ease-in-out infinite; }
@keyframes walk { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(150px); } }
.hop { animation: hop 2.4s ease-in-out infinite; } .hop:nth-child(2) { animation-delay: .4s; } .hop:nth-child(3) { animation-delay: .8s; }
@keyframes hop { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-9px) scale(1.06); } }
.flychip { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px dashed #fff; background: #C8203B; box-shadow: 0 2px 6px rgba(0,0,0,.5); animation: fly 2.6s ease-in infinite; opacity: 0; }
@keyframes fly { 0% { opacity: 0; transform: translate(0,0); } 10% { opacity: 1; } 80% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(360deg); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
.stack-chips { position: absolute; display: flex; flex-direction: column-reverse; align-items: center; gap: 1px; }
.stack-chips i { width: 34px; height: 9px; border-radius: 50%; border: 2px solid #fff; animation: grow 3.4s infinite backwards; transform-origin: 50% 100%; }
@keyframes grow { 0%, 12% { opacity: 0; transform: translateY(-30px); } 24%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pop-n { position: absolute; font-family: var(--serif); font-weight: 800; color: #7ee0a9; font-size: 44px; text-shadow: 0 3px 0 rgba(0,0,0,.4); animation: popn 3s infinite; }
@keyframes popn { 0%, 30% { opacity: 0; transform: translateY(14px) scale(.5); } 45% { opacity: 1; transform: scale(1.25); } 55%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.ladder { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 230px; display: grid; gap: 4px; }
.ladder div { padding-left: 64px !important; height: 30px; border-radius: 9px; background: rgba(0,0,0,.35); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.ladder div:last-child { background: var(--gold-grad); color: #2a0a12; }
.climber { position: absolute; left: 48%; bottom: 14px; animation: climb 5s ease-in-out infinite; z-index: 3; }
@keyframes climb { 0%, 8% { transform: translate(-100px, 0); } 100% { transform: translate(-100px, -165px); } }
.phone-ic { position: absolute; width: 74px; height: 128px; border-radius: 14px; border: 3px solid #fff; background: #15151B; display: grid; place-items: center; animation: bob 2.6s ease-in-out infinite; }
.phone-ic span { font-weight: 800; font-size: 11px; color: var(--gold-hi); letter-spacing: .06em; text-align: center; line-height: 1.3; }
.sparkle { position: absolute; font-size: 20px; animation: tw 1.6s ease-in-out infinite; } @keyframes tw { 50% { transform: scale(1.5) rotate(20deg); opacity: .4; } }
/* v8: calmer table tiles on the guest phone */
.tgrid { gap: 14px; }
.tt { padding: 18px 10px 16px; gap: 8px; border-radius: 20px; }
.tt .gart { width: 68px; height: 68px; }
.tt .gname { font-size: 16px; margin-top: 2px; }
.tt .flame { top: 8px; right: 10px; }
.inhand .gart, .helpcard .gart { width: 64px; height: 64px; }
/* v9: table tour path */
.tour .hint { margin: 2px 0 8px; }
.tourbar { height: 8px; border-radius: 99px; background: rgba(0,0,0,.4); overflow: hidden; }
.tourbar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; transition: width .8s; }
.path { position: relative; margin-top: 8px; }
.path svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path .sg { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 11; vector-effect: non-scaling-stroke; }
.path .sg.done { stroke: var(--gold-hi); stroke-dasharray: none; stroke-width: 5; }
.path .sg.cur { stroke: var(--gold-hi); animation: march .9s linear infinite; }
@keyframes march { to { stroke-dashoffset: -13; } }
.stop { position: absolute; transform: translate(-50%, -50%); width: 118px; text-align: center; display: grid; justify-items: center; gap: 2px; }
.stop .disc { position: relative; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3a1220, #1c0a12); border: 3px dashed rgba(255,255,255,.35); }
.stop .disc .gart { width: 56px; height: 56px; margin-top: 4px; }
.stop .sn { font-family: var(--serif); font-weight: 700; font-size: 14px; letter-spacing: .05em; margin-top: 4px; }
.stop .ss { font-size: 11.5px; letter-spacing: .05em; color: var(--muted); }
.stop:not(.done):not(.next):not(.goal) .disc { opacity: .78; }
.stop.done .disc { border: 3px solid var(--gold-hi); background: radial-gradient(circle at 50% 35%, #5a1a2a, #2a0a12); box-shadow: 0 0 20px rgba(226,179,65,.4); }
.stop.done .sn { color: var(--gold-hi); } .stop.done .ss { color: #7ee0a9; font-weight: 700; }
.stop.next .disc { border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(226,179,65,.35), 0 0 26px rgba(226,179,65,.6); animation: nextpulse 1.6s ease-in-out infinite; }
@keyframes nextpulse { 50% { box-shadow: 0 0 0 11px rgba(226,179,65,.1), 0 0 34px rgba(226,179,65,.8); } }
.stop.next .ss { color: var(--gold-hi); font-weight: 800; }
.stop .tick { position: absolute; right: -4px; top: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: #2a0a12; font-weight: 900; display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.stop .fl { position: absolute; left: -2px; top: -4px; font-size: 18px; animation: flick .7s ease-in-out infinite alternate; }
.stop .you { position: absolute; left: -26px; bottom: -6px; animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.stop.goal .disc { border-style: solid; border-color: rgba(226,179,65,.6); font-size: 38px; }
.stop.goal.done .disc { background: var(--gold-grad); animation: nextpulse 1.2s ease-in-out infinite; }
.stop.goal.done .sn { color: var(--gold-hi); font-size: 16px; }
.stop .lbl { background: rgba(48, 12, 22, .96); border-radius: 12px; padding: 3px 10px 4px; margin-top: 3px; position: relative; z-index: 2; }
.stop .lbl .sn { margin-top: 0; }

/* v10: friendlier, airier guide on a lighter stage */
.guide, .guide .txt, .guide h2, .guide .step-no, .guide .gtitle, .guide .btn { font-family: 'Fredoka', var(--sans); }
.guide .gtitle { font-weight: 600; font-size: 15px; color: var(--gold-hi); }
.guide .step-no { letter-spacing: .04em; font-size: 14px; font-weight: 500; color: #ffd98a; margin-top: 10px; }
.guide h2 { font-size: 32px; font-weight: 700; margin: 6px 0 10px; letter-spacing: 0; background: none; -webkit-text-fill-color: #fff; color: #fff; }
.guide .txt { font-size: 18px; line-height: 1.5; font-weight: 400; max-width: 340px; margin-top: 12px; }
.guide .gfoot { gap: 18px; }
.guide .btn { font-weight: 600; font-size: 18px; letter-spacing: 0; }
.guide .dots { gap: 10px; }
.guide .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.22); }
.guide .dots i.on { width: 11px; border-radius: 50%; background: #ffd98a; box-shadow: 0 0 0 4px rgba(255,217,138,.28); transform: scale(1.25); }
.scene { height: 270px; margin: 10px 0 8px; background: radial-gradient(ellipse at 50% 20%, #fff6dc, #f1dca6 75%); border: 3px solid #fff0c4; box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.scene .hint { color: #5a3b0a !important; }
.ladder div { background: rgba(255,255,255,.7); border: 2px solid #e2c06a; color: #4a2a0a; }
.ladder div:last-child { background: var(--gold-grad); }
.bubble { box-shadow: 0 6px 14px rgba(60,30,0,.28); }
.phone-ic { background: #2a0a12; border-color: #fff; }
.guide .slide { padding-top: 10px; }
.lvcard .bal .num.red, .num.red { color: #ff8f9b; }

/* v12: compact welcome screen */
.rv { display: grid; justify-items: center; gap: 14px; text-align: center; padding-top: 4px; font-family: 'Fredoka', var(--sans); }
.rv .hi { letter-spacing: .16em; font-size: 12px; color: #ffd98a; font-weight: 500; }
.rv .nm { font-weight: 700; font-size: 34px; line-height: 1.1; margin-top: -4px; }
.rv .pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rv .pill { display: flex; align-items: center; gap: 8px; border: 2px solid var(--gold); border-radius: 999px; padding: 8px 18px; font-weight: 500; font-size: 18px; background: rgba(0,0,0,.28); }
.rv .pill b { color: var(--gold-hi); font-weight: 700; } .rv .pill .coin { font-size: 22px; }
.rv .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin: 6px 0 4px; }
.rv .rs { display: grid; justify-items: center; gap: 8px; font-size: 13.5px; line-height: 1.25; color: #f3e8d2; }
.rv .rs i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 18px; background: #ffd98a; color: #3a0f1c; box-shadow: 0 0 0 4px rgba(255,217,138,.22); }
.rv .btn { font-family: 'Fredoka', var(--sans); font-weight: 600; font-size: 19px; letter-spacing: 0; }
.rv .hint { margin-top: 2px; }
