/* =====================================================================
   Playdom — flat, Duel-style skin (loaded last, overrides the rest)
   ===================================================================== */
:root { --bg: #0e152e; --bg2: #101936; --panel: #151e3f; --panel2: #182349; --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.14);
  --gold: #7c8cff; --gold-hi: #e1e6ff; --gold-lo: #3446d6; --ivory: #f2f4ff; --mute: #8c95c8; --acc: #3d5afe;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Plus Jakarta Sans', system-ui, sans-serif; --r: 12px; }
body { font-family: var(--sans); background: var(--bg); }
#app { background: var(--bg) !important; } #app::before { display: none; }
#top { background: var(--bg); backdrop-filter: none; border-bottom: 1px solid var(--line); padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.wordmark { display: block; } .wm-a { font-family: var(--sans); font-weight: 800; font-size: 30px; letter-spacing: -.045em; line-height: 1; color: #fff; }
.splash .wm-a { font-size: 56px; } .splash { background: var(--bg); } .splash .sp svg { display: none; }
.icon-btn { border: 0; background: rgba(255,255,255,.06); color: var(--mute); }
.bal { height: 38px; border: 0; background: var(--panel2); box-shadow: none; color: #fff; padding: 0 14px 0 8px; font-weight: 700; }
.bal-ico { width: 22px; height: 22px; background: #ffc83d; box-shadow: none; } .bal-ico::after { border-color: #c98a08; inset: 6px; }
#tabs { background: var(--bg); backdrop-filter: none; border-top: 1px solid var(--line); } #tabs a { letter-spacing: .04em; text-transform: none; font-size: 11px; font-weight: 700; } #tabs a.on { color: #fff; } #tabs a.on i { filter: none; color: var(--acc); }

/* buttons & controls */
.btn { border-radius: 10px; letter-spacing: .02em; text-transform: none; font-weight: 700; font-size: 15px; }
.btn.gold { background: var(--acc); color: #fff; box-shadow: none; } .btn.gold::after { display: none; }
.btn.ghost { background: rgba(255,255,255,.07); border: 0; color: #dfe4ff; }
.btn.ruby { background: #e0393e; box-shadow: none; } .btn.green { background: #1fae6a; color: #fff; box-shadow: none; }
.btn.big { height: 52px; letter-spacing: .02em; }
.seg { background: rgba(0,0,0,.25); border: 0; } .seg button { text-transform: none; letter-spacing: 0; font-size: 13px; } .seg button.on { background: var(--acc); color: #fff; box-shadow: none; }
.quick button { border: 0; background: rgba(255,255,255,.06); color: #b9c1f0; }
.bet { background: rgba(0,0,0,.28); border: 1px solid var(--line); } .bet input { font-family: var(--sans); font-weight: 800; color: #fff; } .bet button { color: #b9c1f0; border-color: var(--line); }
.stage, .panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: none; }
.stage.felt { background: #0f4a3a; border-color: rgba(255,255,255,.08); }
.stat { background: rgba(0,0,0,.22); border: 0; border-radius: 10px; } .stat b { font-family: var(--sans); color: #fff; font-weight: 800; }
.lbl { letter-spacing: .12em; }
.pill { border: 0; background: rgba(255,255,255,.07); } .pill.g { color: #ffc83d; background: rgba(255,200,61,.12); } .pill.w { background: rgba(63,200,130,.14); } .pill.l { background: rgba(224,96,92,.12); }
.g-head h1, .sec-h h2, .res, .lb-val, .prof-head h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; }
.g-head .back { border: 0; background: rgba(255,255,255,.07); color: #fff; } .g-head .sub { color: #3fe08f; font-weight: 700; letter-spacing: .06em; }
.tabs2 button { border: 0; background: rgba(255,255,255,.06); text-transform: none; letter-spacing: 0; font-size: 13px; } .tabs2 button.on { background: var(--acc); color: #fff; }
.lb-row { background: var(--panel); border: 0; border-radius: 12px; } .lb-row.me { background: #414759; }
.avatar { background: var(--acc); color: #fff; border: 0; font-family: var(--sans); }
.pod { background: var(--panel); border: 0; } .pod.p1 { background: #414759; } .pod .crown { color: #ffc83d; }
.bonus { border: 0; background: var(--panel); } .bonus .gi { background: var(--acc); color: #fff; }
.toast { background: var(--panel2); border: 0; } .bigwin .t2 { background: none; color: #ffc83d; -webkit-text-fill-color: #ffc83d; }

/* lobby */
.hero2 { margin: 14px 16px 0; border-radius: 16px; padding: 26px 22px; min-height: 150px; display: flex; align-items: flex-end; position: relative; overflow: hidden; background: linear-gradient(115deg, #3d5afe 0%, #6a3fd8 60%, #8b3fc8 100%); }
.hero2::before, .hero2::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); } .hero2::before { width: 220px; height: 220px; right: -60px; top: -80px; } .hero2::after { width: 120px; height: 120px; right: 70px; bottom: -60px; background: rgba(255,255,255,.07); }
.hero2 h1 { margin: 0 0 6px; font-size: 34px; line-height: 1.02; font-weight: 800; letter-spacing: -.035em; position: relative; } .hero2 p { margin: 0; color: rgba(255,255,255,.8); font-size: 13.5px; position: relative; max-width: 240px; }
.lb-tools { padding: 16px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; } .cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; padding: 9px 15px; border-radius: 10px; color: #aeb7ea; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.06); } .cats button.on { background: var(--acc); color: #fff; }
.searchbox { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--mute); } .searchbox input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font-size: 14.5px; user-select: text; -webkit-user-select: text; }
.row-sec { padding-top: 18px; } .rs-h { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 10px; } .rs-h h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; } .rs-h span { color: var(--mute); font-size: 12.5px; }
.rs-h button { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.07); color: #aeb7ea; }
.hrow { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x proximity; scrollbar-width: none; } .hrow::-webkit-scrollbar { display: none; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.poster { position: relative; flex: none; width: 128px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: linear-gradient(165deg, var(--c1), var(--c2)); display: block; scroll-snap-align: start; transition: transform .15s; }
.pgrid .poster { width: auto; } .poster:active { transform: scale(.96); }
.poster .art { position: absolute; left: 0; right: 0; top: 12%; display: grid; place-items: center; } .poster .art svg { width: 82%; height: auto; filter: drop-shadow(0 8px 10px rgba(0,0,0,.28)); transition: transform .3s; } .poster:hover .art svg { transform: scale(1.06) rotate(-2deg); }
.poster .pl { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 9px; text-align: center; background: linear-gradient(transparent, rgba(8,10,30,.78)); } .poster .pl b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: #fff; } .poster .pl small { color: rgba(255,255,255,.55); font-size: 9.5px; font-weight: 600; }
.rtp { position: absolute; top: 7px; left: 7px; z-index: 2; font-size: 8.5px; font-weight: 800; color: #3fe08f; background: rgba(8,10,30,.55); padding: 3px 6px; border-radius: 6px; letter-spacing: .02em; }
.ptag { position: absolute; top: 7px; right: 7px; z-index: 2; font-size: 8.5px; font-weight: 800; color: #fff; background: #ff6a3d; padding: 3px 6px; border-radius: 6px; } .ptag.live { background: #e0393e; display: flex; align-items: center; gap: 4px; } .ptag.live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }

/* support brand */
.sp-brand .sp-pbox { display: none; } .sp-brand b { font-size: 30px; letter-spacing: -.045em; }

/* new games */
.lim-stage { padding: 30px 16px 20px; text-align: center; }
.lim-x { font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -.03em; color: #fff; transition: color .25s; } .lim-x.win { color: var(--win); } .lim-x.lose { color: var(--lose); }
.lim-sub { color: var(--mute); margin-top: 8px; font-size: 13px; }
.rps-stage { padding: 26px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.rps-hand { font-size: 64px; line-height: 1; min-height: 76px; display: grid; place-items: center; } .rps-hand.shake { animation: shake .5s infinite; } .rps-vs { font-weight: 800; color: var(--mute); }
.rps-lab { font-size: 11px; letter-spacing: .14em; color: var(--mute); font-weight: 700; margin-top: 6px; }
.rps-pick { display: flex; gap: 10px; } .rps-pick button { flex: 1; height: 72px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 34px; display: grid; place-items: center; transition: .15s; } .rps-pick button.on { background: var(--acc); transform: translateY(-3px); }
.keno-stage { padding: 14px; } .keno-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.kn { aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.07); font-weight: 800; font-size: 14px; color: #cfd6ff; position: relative; transition: transform .12s, background .2s; } .kn:active { transform: scale(.92); } .kn.sel { background: var(--acc); color: #fff; } .kn.drawn { background: #ffc83d; color: #2a1b00; animation: pop .3s; } .kn.hit { background: #1fae6a; color: #fff; box-shadow: 0 0 0 2px #7ff0b4; animation: pop .35s; }
.keno-pay { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; } .keno-pay div { flex: none; min-width: 54px; text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(0,0,0,.25); font-size: 11px; color: var(--mute); } .keno-pay div b { display: block; color: #fff; font-size: 12.5px; } .keno-pay div.on { background: #1fae6a; } .keno-pay div.on b, .keno-pay div.on { color: #fff; }
.beef-stage { padding: 14px 0 10px; overflow: hidden; } .beef-road { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 8px 14px; scroll-behavior: smooth; } .beef-road::-webkit-scrollbar { display: none; }
.lane { flex: none; width: 66px; height: 130px; border-left: 2px dashed rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 14px; position: relative; font-weight: 800; font-size: 12px; color: #8c95c8; }
.lane.done { color: #3fe08f; } .lane.dead { background: rgba(224,57,62,.14); color: #ff7a7e; } .lane .cow { position: absolute; top: 10px; transition: .25s; } .lane .car { position: absolute; top: 20px; font-size: 38px; animation: pop .25s; }
.beef-start { width: 66px; flex: none; display: grid; place-items: end center; padding-bottom: 14px; color: #8c95c8; font-size: 11px; font-weight: 800; }
.bac-stage { padding: 14px; min-height: 360px; } .bac-side { text-align: center; } .bac-side h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.7); } .bac-side h3 b { margin-left: 8px; background: rgba(0,0,0,.35); border-radius: 12px; padding: 2px 9px; letter-spacing: 0; color: #fff; }
.bac-cards { display: flex; justify-content: center; min-height: 86px; } .bac-cards .pcard { margin: 0 -8px; width: 58px; height: 82px; } .bac-msg { text-align: center; font-weight: 800; font-size: 24px; padding: 14px 0; color: #fff; }
.bac-bets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .bac-bet { position: relative; height: 72px; border-radius: 12px; font-weight: 800; background: rgba(255,255,255,.07); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; } .bac-bet small { color: var(--mute); font-weight: 600; font-size: 11px; } .bac-bet.p { background: rgba(61,90,254,.35); } .bac-bet.b { background: rgba(224,57,62,.35); } .bac-bet.t { background: rgba(31,174,106,.35); } .bac-bet .stk { top: 6px; right: 6px; }
.sl-top span { font-weight: 800; letter-spacing: .3em; }
