/* Coinop app pages — same tokens and surfaces as the landing (glass, white plan cards, 16px radii). */
body.app { background: var(--bg); }
.app-nav { background: linear-gradient(rgba(var(--bg-rgb), .9), rgba(var(--bg-rgb), .55) 70%, rgba(var(--bg-rgb), 0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: auto; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.link.cur { color: var(--accent) !important; }
.wbtn { height: 36px; padding: 0 16px; border-radius: 999px; background: #fff; color: #07100a; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: transform .3s var(--ease); }
.wbtn:hover { transform: translateY(-1px); }
.wbtn.on { background: var(--glass); color: var(--fg); border: 1px solid var(--glass-line); padding-left: 6px; }
.wbtn i { width: 24px; height: 24px; border-radius: 99px; }
@media (max-width: 1199.98px) { .app-nav .nav-right .theme { display: none; } .wbtn { height: 34px; padding: 0 14px; font-size: 13px; } }

/* ---------- page head ---------- */
.page { position: relative; padding-top: 112px; min-height: 100vh; }
.page-glow { position: absolute; left: 0; right: 0; top: 0; height: 620px; overflow: hidden; pointer-events: none; }
.page-glow img { width: 100%; height: 100%; object-fit: cover; opacity: .42; -webkit-mask-image: linear-gradient(#000 10%, transparent); mask-image: linear-gradient(#000 10%, transparent); }
:root[data-theme="light"] .page-glow img { opacity: .25; }
.phead { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24px; }
.phead h1 { font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: -1.5px; }
.phead p { margin-top: 12px; color: var(--muted); max-width: 560px; }
.phead .eyebrow { margin-bottom: 12px; }
.hiw { flex: none; }
.hiw span { gap: 8px; }

/* ---------- ticker strip ---------- */
.strip { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(240, 253, 244, .08); backdrop-filter: blur(10px); overflow: hidden; }
.strip small { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.strip .sep { width: 1px; height: 22px; background: var(--line); flex: none; }
.strip .rpills { display: flex; gap: 6px; overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.pill { flex: none; padding: 4px 10px; border-radius: 99px; font-size: 12px; line-height: 16px; font-weight: 600; background: rgba(240, 253, 244, .08); color: var(--fg); white-space: nowrap; }
.pill.g { color: var(--accent); background: rgba(61, 255, 122, .12); }
.pill.r { color: #ff8080; background: rgba(255, 90, 90, .12); }
.pill.n { color: var(--muted); }
.strip .rtp { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.strip .rtp b { font-weight: 700; }

/* ---------- grid + surfaces ---------- */
.gamegrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; margin-top: 16px; align-items: start; }
.panel { border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.glassy { border-radius: 16px; background: var(--glass); border: 1px solid rgba(240, 253, 244, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.stage-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 520px; background: #040805; border: 1px solid var(--line); }
.stage-card .stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.stage-card .stage-shade { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, rgba(4, 8, 5, .1), rgba(4, 8, 5, .75)); }

/* bet panel = the template's plan card */
.bet { padding: 9px 9px 16px; }
.bet .paper { border-radius: 12px; background: var(--paper); color: var(--ink); padding: 22px 20px 20px; }
.bet h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; }
.field { margin-top: 16px; }
.field > label, .flabel { display: block; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; }
.stake { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 14px 0 10px; border-radius: 14px; background: rgba(7, 16, 10, .05); border: 1px solid rgba(7, 16, 10, .1); }
.stake .tok { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 4px; border-radius: 99px; background: #fff; border: 1px solid rgba(7, 16, 10, .1); font-size: 13px; font-weight: 600; flex: none; }
.stake .tok i { width: 24px; height: 24px; border-radius: 99px; background: radial-gradient(circle at 35% 30%, #b9ffd0, #3dff7a 50%, #11a846); }
.stake input { flex: 1; min-width: 0; border: 0; background: none; font: 600 28px/1 var(--inter); letter-spacing: -.5px; text-align: right; color: var(--ink); outline: none; }
.stake input::placeholder { color: rgba(7, 16, 10, .25); }
.bal { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--ink-dim); }
.bal button { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.presets.six { grid-template-columns: repeat(6, 1fr); }
.presets button { height: 36px; border-radius: 10px; background: rgba(7, 16, 10, .05); border: 1px solid rgba(7, 16, 10, .08); font-size: 13px; font-weight: 600; color: var(--ink); transition: background .2s, border-color .2s; }
.presets button:hover, .presets button.on { background: rgba(61, 255, 122, .18); border-color: rgba(22, 194, 83, .5); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sides button { height: 52px; border-radius: 14px; border: 1px solid rgba(7, 16, 10, .1); background: rgba(7, 16, 10, .04); font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .25s var(--ease); }
.sides button.on { background: #07100a; color: #fff; border-color: #07100a; }
.sides button.on .face { box-shadow: 0 0 0 2px var(--accent); }
.face { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--accent); color: #07100a; }
.face.t { background: #fff; border: 1px solid rgba(7, 16, 10, .2); }
.fees { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fees div { display: flex; justify-content: space-between; color: var(--ink-dim); }
.fees b { color: var(--ink); font-weight: 600; }
.fees .total b { font-size: 16px; }
.bet .go { width: 100%; justify-content: center; margin-top: 16px; height: 48px; background: #07100a; color: #fff; }
.bet .go span { height: 48px; }
.bet .go .b-a { width: 100%; justify-content: center; }
.bet .go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(61, 255, 122, .0); transition: box-shadow .3s; }
.bet .go:hover::after { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bet .go.accent { background: var(--accent); color: #062010; }
.bet-foot { list-style: none; padding: 14px 10px 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.bet-foot li { display: flex; align-items: center; gap: 8px; }
.bet-foot li::before { content: ""; width: 20px; height: 20px; flex: none; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M7 10.2l2 2 4-4.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M7 10.2l2 2 4-4.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat { padding: 20px 22px; }
.stat small { display: block; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; margin-top: 8px; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -.8px; }
.stat em { display: block; font-style: normal; margin-top: 4px; font-size: 13px; color: var(--accent); }

/* ---------- tables ---------- */
.block { margin-top: 16px; padding: 20px 22px 8px; }
.block-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.block-h h2 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.3px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(240, 253, 244, .06); border: 1px solid rgba(240, 253, 244, .08); }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); transition: all .25s var(--ease); }
.seg button.on { background: #fff; color: #07100a; font-weight: 600; }
:root[data-theme="light"] .seg button.on { background: #07100a; color: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); padding: 12px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid rgba(240, 253, 244, .06); white-space: nowrap; }
:root[data-theme="light"] .tbl td { border-bottom-color: rgba(7, 16, 10, .06); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .win { color: var(--accent); font-weight: 600; }
.tbl .lose { color: var(--muted); }
.tbl .neg { color: #ff8080; }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who i { width: 24px; height: 24px; border-radius: 99px; flex: none; }
.gtag { display: inline-flex; align-items: center; gap: 8px; }
.gtag img { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; }
.side { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.side.h { background: var(--accent); color: #07100a; }
.side.t { border: 1px solid var(--glass-line); color: var(--fg); }
.dir { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; margin-left: 6px; }
.dir.l { color: var(--accent); background: rgba(61, 255, 122, .12); }
.dir.s { color: #ff8080; background: rgba(255, 90, 90, .12); }
.empty { padding: 40px 8px 44px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--fg); font-size: 16px; margin-bottom: 4px; }
.tscroll { overflow-x: auto; }

/* ---------- modals / toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(2, 5, 3, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s var(--ease); }
.modal-wrap.on { opacity: 1; }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 32px; border-radius: 24px; background: rgba(12, 18, 14, .92); border: 1px solid rgba(240, 253, 244, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: translateY(24px) scale(.98); transition: transform .45s var(--ease); color: #fff; --muted: #cdd8d0; --line: rgba(240, 253, 244, .14); --fg: #fff; }
.modal-wrap.on .modal { transform: none; }
.modal-x { position: absolute; right: 18px; top: 18px; width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.m-title { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.6px; margin-top: 10px; }
.m-sub { margin-top: 12px; color: var(--muted); }
.m-connect { width: min(760px, 100%); }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.cc { position: relative; border-radius: 16px; padding: 22px 20px 20px; height: auto; display: flex; flex-direction: column; }
.cc h3 { font-size: 24px; line-height: 32px; font-weight: 600; margin-top: 16px; }
.cc p { font-size: 14px; line-height: 20px; margin-top: 8px; flex: 1; }
.cc .btn { margin-top: 20px; width: 100%; justify-content: center; }
.cc .btn .b-a { width: 100%; justify-content: center; }
.plan-card.cc p { color: var(--ink-dim); }
.cc-dark { background: rgba(240, 253, 244, .06); border: 1px solid rgba(240, 253, 244, .12); }
.cc-dark .plan-k { color: var(--muted); }
.cc-dark p { color: var(--muted); }
.m-small { width: min(440px, 100%); }
.kv { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); margin-top: 8px; }
.kv span { color: var(--muted); }
.m-actions { display: flex; gap: 8px; margin-top: 24px; }
.m-how .hsteps { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.m-how .hs { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.m-how .hs i { font-style: normal; font-weight: 700; color: var(--accent); font-size: 14px; line-height: 28px; }
.m-how .hs h4 { font-size: 18px; line-height: 28px; font-weight: 600; }
.m-how .hs p { color: var(--muted); font-size: 14px; line-height: 21px; margin-top: 4px; }
.m-how .note2 { margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: rgba(61, 255, 122, .08); color: var(--muted); font-size: 13px; line-height: 19px; }
.m-how table { margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: #fff; color: #07100a; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: all .4s var(--ease); max-width: calc(100vw - 40px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* countdown */
.cd { display: flex; align-items: flex-start; gap: 8px; }
.cd div { text-align: center; }
.cd b { display: block; font-size: 44px; line-height: 48px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.cd small { display: block; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.cd i { font-style: normal; font-size: 36px; line-height: 44px; color: var(--muted); }

/* footer spacing on app pages */
.app-foot { margin-top: 64px; }

@media (max-width: 1199.98px) {
  .gamegrid { grid-template-columns: 1fr; }
  .phead { flex-direction: column; align-items: flex-start; }
  .phead h1 { font-size: 40px; line-height: 46px; }
  .stats { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .stage-card { min-height: 420px; }
  .strip .rtp { display: none; }
}
@media (max-width: 809.98px) {
  .page { padding-top: 88px; }
  .block { padding: 16px 14px 4px; }
  .block-h { flex-direction: column; align-items: flex-start; }
  .modal { padding: 24px 20px; }
  .m-title { font-size: 26px; line-height: 32px; }
  .presets.six { grid-template-columns: repeat(3, 1fr); }
  .cd b { font-size: 32px; line-height: 36px; }
}

/* ---------- coin flip ---------- */
.hl { display: flex; gap: 6px; }
.flip-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flip-last { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(4, 10, 6, .55); border: 1px solid rgba(240, 253, 244, .12); backdrop-filter: blur(10px); z-index: 2; }
.flip-last i { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; border: 1px dashed rgba(240, 253, 244, .3); color: rgba(240, 253, 244, .5); }
.flip-last i.h { border: 0; background: var(--accent); color: #062010; }
.flip-last i.t { border: 1px solid rgba(240, 253, 244, .6); color: #fff; }
.coin3d-wrap { position: relative; perspective: 1200px; z-index: 2; }
.coin3d { position: relative; width: 220px; height: 220px; transform-style: preserve-3d; transition: transform 2.4s cubic-bezier(.2, .8, .2, 1); }
.coin3d .cf { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; display: grid; place-items: center; }
.coin3d .cf.h { background: radial-gradient(circle at 35% 28%, #d6ffe4, #3dff7a 42%, #13a847 80%, #0c7a33); box-shadow: inset 0 -10px 24px rgba(0, 60, 20, .45), inset 0 8px 18px rgba(255, 255, 255, .45), 0 0 60px rgba(61, 255, 122, .45); }
.coin3d .cf.h img { width: 92px; height: 92px; filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .4)) drop-shadow(0 -1px 0 rgba(0, 60, 20, .4)); }
.coin3d .cf.t { transform: rotateY(180deg); background: radial-gradient(circle at 35% 28%, #3c4a41, #121a15 60%, #070c09); box-shadow: inset 0 0 0 10px rgba(61, 255, 122, .55), inset 0 8px 18px rgba(255, 255, 255, .12), 0 0 60px rgba(61, 255, 122, .3); }
.coin3d .cf.t .slot { width: 36px; height: 120px; border-radius: 18px; background: var(--accent); box-shadow: 0 0 24px rgba(61, 255, 122, .6); }
.coin3d .cf b { position: absolute; bottom: 30px; font-size: 13px; letter-spacing: 2px; color: rgba(0, 0, 0, .35); }
.coin3d .cf.t b { color: rgba(255, 255, 255, .4); }
.coin3d .edge { position: absolute; inset: 0; border-radius: 50%; transform: translateZ(-1px); background: #0c7a33; }
.coin3d.idle { animation: coinIdle 6s ease-in-out infinite; transition: none; }
@keyframes coinIdle { 0%, 100% { transform: rotateY(-14deg) rotateX(8deg); } 50% { transform: rotateY(14deg) rotateX(-6deg); } }
.flip-msg { position: relative; z-index: 2; margin-top: 28px; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.flip-msg.win { color: var(--accent); }

/* ---------- crash ---------- */
.med { font-size: 14px; font-weight: 700; }
.side-col { display: flex; flex-direction: column; gap: 16px; }
.big-win em { color: var(--accent); }
.crash-stage { min-height: 520px; background: radial-gradient(120% 90% at 20% 100%, rgba(61, 255, 122, .16), rgba(4, 8, 5, 0) 60%), #040805; }
.crash-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crash-center { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.crash-center b { display: block; font-size: 88px; line-height: 92px; font-weight: 700; letter-spacing: -3px; font-variant-numeric: tabular-nums; color: #fff; transition: color .3s; }
.crash-center span { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 99px; background: rgba(240, 253, 244, .08); border: 1px solid rgba(240, 253, 244, .12); font-size: 14px; color: var(--muted); backdrop-filter: blur(8px); }
.crash-stage.flying .crash-center b { color: var(--accent); text-shadow: 0 0 40px rgba(61, 255, 122, .45); }
.crash-stage.crashed .crash-center b { color: #ff6b6b; text-shadow: 0 0 40px rgba(255, 80, 80, .35); }
.settles { position: absolute; left: 20px; bottom: 16px; font-size: 12px; color: var(--muted); }
.settles a { color: var(--fg); font-weight: 600; margin-left: 4px; }
.stake.auto .tok { padding: 0 12px; }
.stake .x { font: 600 22px/1 var(--inter); color: var(--ink-dim); }
.pending { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 10px 2px; }
.pending small { display: block; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.pending b { font-size: 18px; }
.pending .btn { height: 38px; padding: 0 18px; font-size: 14px; }
.pending .btn span { height: 38px; }
.chat { margin-top: 0; padding-bottom: 16px; }
.msgs { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 0 12px; }
.msg { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; font-size: 14px; }
.msg i { width: 24px; height: 24px; border-radius: 99px; }
.msg b { display: block; font-size: 13px; }
.msg time { font-size: 12px; color: var(--muted); }
.chat-in { width: 100%; height: 44px; border-radius: 12px; background: rgba(240, 253, 244, .06); border: 1px solid rgba(240, 253, 244, .1); color: var(--muted); font-size: 14px; }

/* ---------- moonshot ---------- */
.moon-stage { display: grid; grid-template-columns: 1fr 250px; gap: 20px; padding: 28px; align-items: center; }
.moon-stage > .machine, .moon-stage > .ladder2 { position: relative; z-index: 2; }
.machine { border-radius: 22px; padding: 18px; background: linear-gradient(180deg, rgba(26, 38, 30, .85), rgba(8, 14, 10, .9)); border: 1px solid rgba(160, 255, 190, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .4); backdrop-filter: blur(12px); }
.mhead { display: grid; grid-template-columns: 1fr 1fr 1fr; text-align: center; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.reels3 { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; height: 216px; border-radius: 14px; overflow: hidden; background: #030604; padding: 0 8px; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.reel3 { position: relative; overflow: hidden; }
.strip3 { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.strip3 div { height: 72px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.strip3 div img { width: 22px; height: 22px; }
.strip3 .up { color: var(--accent); } .strip3 .dn { color: #ff7b7b; }
.reel3.fixed { display: grid; place-items: center; }
.lev { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.lev small { font-size: 14px; color: var(--muted); margin-left: 2px; }
.payline { position: absolute; left: 0; right: 0; top: 72px; height: 72px; border-top: 1px solid rgba(61, 255, 122, .35); border-bottom: 1px solid rgba(61, 255, 122, .35); background: rgba(61, 255, 122, .05); pointer-events: none; }
.rest { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.ladder2 { display: flex; flex-direction: column; gap: 6px; }
.rung2 { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(4, 10, 6, .55); border: 1px solid rgba(240, 253, 244, .1); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; letter-spacing: .3px; transition: all .4s var(--ease); }
.rung2 small { font-size: 11px; font-weight: 500; color: var(--muted); display: block; letter-spacing: 0; }
.rung2 b { font-size: 15px; }
.rung2.moon { background: var(--accent); color: #062010; border-color: transparent; box-shadow: 0 0 30px rgba(61, 255, 122, .4); }
.rung2.moon small { color: rgba(6, 32, 16, .7); }
.rung2.rekt b { color: #ff7b7b; }
.rung2.hit { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sym { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 809.98px) { .moon-stage { grid-template-columns: 1fr; padding: 16px; } .strip3 div { font-size: 16px; } .lev { font-size: 18px; } }
.lev { font-size: 21px; white-space: nowrap; }
.moon-stage .stage-shade { background: radial-gradient(80% 80% at 40% 50%, rgba(4, 8, 5, .25), rgba(4, 8, 5, .7)); }

/* ---------- prize draw ---------- */
.pot-card { min-height: 520px; }
.pot-card .stage-img { opacity: 1; }
.pot-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 10, 6, .15), rgba(4, 10, 6, .82) 70%); }
.pot-in { position: relative; z-index: 2; height: 100%; min-height: 520px; display: flex; flex-direction: column; padding: 28px; }
.pot-top { display: flex; justify-content: space-between; align-items: center; }
.status { padding: 4px 12px; border-radius: 99px; background: rgba(4, 10, 6, .6); color: var(--accent); font-size: 13px; font-weight: 600; border: 1px solid rgba(61, 255, 122, .35); }
.closes { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #eaf7ee; background: rgba(4, 10, 6, .45); padding: 4px 10px; border-radius: 99px; }
.pot-l { margin-top: auto; font-size: 16px; color: #eaf7ee; }
.pot-v { display: flex; align-items: baseline; gap: 14px; margin-top: 4px; }
.pot-v b { font-size: 88px; line-height: 92px; font-weight: 700; letter-spacing: -3px; color: #fff; text-shadow: 0 2px 40px rgba(0, 40, 14, .6); font-variant-numeric: tabular-nums; }
.pot-v span { font-size: 32px; font-weight: 700; color: var(--accent); }
.pot-row { display: grid; grid-template-columns: 1fr 240px; gap: 12px; margin-top: 20px; }
.cdbox { padding: 16px 20px; background: rgba(4, 10, 6, .55); }
.cdbox > small, .mini-stats small { display: block; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mini-stats { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: rgba(4, 10, 6, .55); }
.mini-stats small { margin-bottom: 2px; }
.mini-stats b { font-size: 22px; }
.yours { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(61, 255, 122, .12); }
.yours small { display: block; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-dim); }
.yours span { font-size: 13px; color: var(--ink); }
.yours b { font-size: 32px; font-weight: 700; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; height: 56px; border-radius: 14px; background: rgba(7, 16, 10, .05); border: 1px solid rgba(7, 16, 10, .1); overflow: hidden; }
.stepper button { font-size: 22px; color: var(--ink); }
.stepper button:hover { background: rgba(61, 255, 122, .15); }
.stepper input { border: 0; background: none; text-align: center; font: 700 24px/1 var(--inter); color: var(--ink); outline: none; min-width: 0; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.draw-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: start; }
.tnote { font-size: 13px; color: var(--muted); padding: 12px 8px 14px; }
.fair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; padding: 28px; }
.fair h2 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.5px; margin-top: 10px; }
.fair p { color: var(--muted); }
.fair code { grid-column: 1 / -1; font: 12px/1.5 ui-monospace, Menlo, monospace; color: var(--muted); word-break: break-all; padding: 12px 14px; border-radius: 10px; background: rgba(240, 253, 244, .05); }
@media (max-width: 1199.98px) { .stats.four { grid-template-columns: 1fr 1fr; } .draw-grid, .fair { grid-template-columns: 1fr; } .pot-v b { font-size: 56px; line-height: 60px; } .pot-row { grid-template-columns: 1fr; } }

/* ---------- hub ---------- */
.hub-pot { position: relative; margin-top: 32px; overflow: hidden; min-height: 340px; border: 0; }
.hp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-pot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 10, 6, .88) 0%, rgba(4, 10, 6, .55) 55%, rgba(4, 10, 6, .2)); }
.hp-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: center; padding: 40px; }
.hp-sub { margin-top: 12px; color: #d9e6dd; max-width: 480px; }
.hub-pot .btns { margin-top: 24px; }
.hub-pot .pot-l { color: #eaf7ee; }
.yt { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(240, 253, 244, .14); font-size: 14px; color: var(--muted); }
.yt b { color: #fff; }
.hub-pot .cdbox { color: #fff; }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.gcard { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #040805; isolation: isolate; }
.gcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); z-index: -1; }
.gcard:hover img { transform: scale(1.06); }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 10, 6, 0) 45%, rgba(4, 10, 6, .88)); z-index: -1; }
.gc-in { position: absolute; left: 20px; right: 64px; bottom: 20px; color: #fff; }
.gc-in h3 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.4px; }
.gc-in p { font-size: 14px; line-height: 20px; color: #d9e6dd; margin-top: 4px; }
.gc-go { position: absolute; right: 18px; bottom: 20px; width: 36px; height: 36px; border-radius: 99px; background: #fff; color: #07100a; display: grid; place-items: center; font-weight: 600; transition: transform .4s var(--ease); }
.gcard:hover .gc-go { transform: translateX(3px); }
@media (max-width: 1199.98px) { .games { grid-template-columns: 1fr 1fr; } .hp-in { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 809.98px) { .games { grid-template-columns: 1fr; } .gcard { aspect-ratio: 4 / 3; } .hub-pot .btns { flex-direction: column; } }

/* ---------- legal + 404 ---------- */
.legal-in { max-width: 760px; }
.legal-tabs { display: flex; gap: 6px; margin: 16px 0 32px; }
.legal-tabs a { padding: 8px 16px; border-radius: 99px; background: var(--glass); font-size: 14px; color: var(--muted); }
.legal-tabs a.on { background: #fff; color: #07100a; font-weight: 600; }
.prose h1 { font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -1px; margin-bottom: 24px; }
.prose h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; line-height: 26px; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted); margin-top: 12px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose a { color: var(--accent); }
.prose strong, .prose b { color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--fg); font-weight: 600; }
.prose td { color: var(--muted); }
.nf-page { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.nf-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.nf-page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 8, 5, .85), rgba(4, 8, 5, .1)); }
.nf-in { position: relative; z-index: 2; }
.nf-in h1 { font-size: 72px; line-height: 80px; font-weight: 700; letter-spacing: -1.5px; margin-top: 12px; }
.nf-in p { margin-top: 24px; color: #d3ddd6; max-width: 460px; }
.nf-in .btns { margin-top: 32px; }
body.nf .app-foot { margin-top: 0; }
@media (max-width: 809.98px) { .nf-in h1 { font-size: 44px; line-height: 50px; } .prose h1 { font-size: 36px; line-height: 42px; } }
.gamegrid > *, .draw-grid > *, .hp-in > *, .side-col > *, .stats > *, .block { min-width: 0; }
@media (max-width: 809.98px) {
  .crash-center b { font-size: 56px; line-height: 60px; }
  .crash-center span { font-size: 12px; max-width: 260px; }
  .pot-v b { font-size: 44px; line-height: 48px; }
  .hub-pot .cd b, .cdbox .cd b { font-size: 28px; line-height: 32px; }
  .coin3d { width: 170px; height: 170px; }
  .reels3 { height: 180px; } .strip3 div { height: 60px; } .payline { top: 60px; height: 60px; }
  .strip { flex-wrap: nowrap; }
  .phead h1 { font-size: 36px; line-height: 42px; }
}
.btn.busy { opacity: .75; pointer-events: none; }
.btn.busy::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 99px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.coin3d.spinning { animation: coinSpin .6s linear infinite; transition: none; }
@keyframes coinSpin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.bet .go.soon { background: rgba(7, 16, 10, .08); color: var(--ink-dim); pointer-events: none; }
