/* ===================== CHIP — light chip design ===================== */
:root {
  --fn: 'Space Grotesk', system-ui, sans-serif; --ft: 'Rubik Mono One', 'Space Grotesk', sans-serif;
  --bg: #f4eee2; --bg2: #ebe3d1; --panel: #fffdf8; --panel2: #f7f1e5; --ink: #17171c; --line: #17171c; --soft: #d8cfbc;
  --text: #17171c; --muted: #6d6658;
  --red: #e63946; --blue: #2f5bea; --mint: #18b47b; --yellow: #ffc83d; --green: #0f9c55;
  --gold: #ffc83d; --gold2: #e9a90f; --cyan: #2f5bea; --pink: #e63946; --accent: #2f5bea;
  --sh: 3px 3px 0 var(--ink); --sh-sm: 2px 2px 0 var(--ink); --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--fn); font-size: 14px; overflow: hidden; font-variant-numeric: tabular-nums; }
button { font-family: inherit; cursor: pointer; color: inherit; }
a { color: var(--blue); }
.hidden { display: none !important; }
.embed-only { display: none !important; }
.mono, .num { font-family: var(--fn); font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: 12px; }

/* header */
header { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--panel); border-bottom: 2px solid var(--ink); position: relative; z-index: 3; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 400 24px var(--ft); letter-spacing: 0; white-space: nowrap; }
.logo img { width: 36px; height: 36px; image-rendering: pixelated; }
.logo span { text-shadow: 2px 2px 0 var(--red); }
.tagline { color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.pill { display: flex; align-items: center; gap: 4px; border: 2px solid var(--ink); background: var(--panel); padding: 6px 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border-radius: 999px; color: var(--muted); }
.pill b { color: var(--ink); font-weight: 700; }
.pill.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px #c6f0dd; animation: blink 1.6s infinite; margin-right: 2px; }
@keyframes blink { 50% { opacity: .35; } }
.pill.jp { background: var(--yellow); color: var(--ink); box-shadow: var(--sh-sm); }
.xlink, .openfull { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; background: var(--panel); }
.xlink:hover, .openfull:hover { background: var(--ink); color: #fff; }
.btn-wallet { background: var(--blue); color: #fff; border: 2px solid var(--ink); padding: 8px 16px; font-size: 13.5px; font-weight: 700; white-space: nowrap; border-radius: 999px; box-shadow: var(--sh-sm); }
.btn-wallet.on { background: var(--panel); color: var(--ink); }
.btn-wallet:active { transform: translate(2px, 2px); box-shadow: none; }
.ca-chip { display: flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 12.5px var(--fn); white-space: nowrap; }
.ca-chip b { background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.ca-chip:disabled { cursor: default; } .ca-chip:disabled span { color: var(--muted); }
.ca-chip:not(:disabled):hover { background: var(--yellow); }

/* ticker */
#ticker { height: 28px; display: flex; align-items: center; background: var(--ink); color: #fff; overflow: hidden; font-size: 12.5px; position: relative; z-index: 2; }
.live-dot { background: var(--red); color: #fff; font-weight: 700; padding: 0 10px; height: 100%; display: flex; align-items: center; flex-shrink: 0; letter-spacing: .5px; font-size: 11.5px; }
.track { flex: 1; overflow: hidden; white-space: nowrap; }
.track-inner { display: inline-block; padding-left: 100%; animation: marquee 70s linear infinite; }
.track-inner span { margin-right: 32px; color: #d9d4c8; }
.track-inner b { color: var(--yellow); font-weight: 700; }
.track-inner .w { color: #6ff0ad; } .track-inner .l { color: #ff8a93; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* layout */
main { display: flex; height: calc(100% - 84px); }
.rail { width: 88px; background: var(--bg2); border-right: 2px solid var(--ink); display: flex; flex-direction: column; align-items: stretch; padding: 12px 10px; gap: 8px; z-index: 2; }
.rail button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-sm); transition: transform .06s; }
.rail button i { font-style: normal; font-size: 18px; font-weight: 700; line-height: 1; }
.rail button span { font-size: 12px; font-weight: 700; }
.rail button:hover { background: #fff; transform: translate(-1px, -1px); box-shadow: var(--sh); }
.rail button.on { background: var(--ink); color: #fff; }
.rail button.get { background: var(--red); color: #fff; padding: 12px 0 10px; }
.rail button.get i { font-size: 24px; }
.rail button.get.on { background: var(--ink); }
.rail-gap { flex: 1; }
.zoom { display: flex; flex-direction: column; gap: 6px; }
.zoom button { padding: 4px 0; } .zoom button i { font-size: 20px; }
.rail .unread { position: absolute; top: -6px; right: -6px; margin: 0; }

.stage { flex: 1; position: relative; min-width: 0; background: var(--bg2); }
#floor { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: pointer; touch-action: pan-y; }
.stage-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px; font-size: 12.5px; font-weight: 600; pointer-events: none; white-space: nowrap; box-shadow: var(--sh-sm); }

/* panel */
.panel { width: 384px; background: var(--panel); border-left: 2px solid var(--ink); display: flex; flex-direction: column; min-height: 0; z-index: 2; }
.tabs { display: flex; gap: 5px; padding: 10px; border-bottom: 2px solid var(--ink); background: var(--panel2); }
.tabs button { flex: 1; background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tabs button.on { background: var(--ink); color: #fff; }
.panel-body { flex: 1; overflow-y: auto; padding: 12px; }
.panel-body::-webkit-scrollbar { width: 8px; } .panel-body::-webkit-scrollbar-thumb { background: var(--soft); border-radius: 8px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--sh-sm); }
.tile .k { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile .v { font-weight: 700; font-size: 18px; color: var(--ink); margin-top: 2px; }
.tile .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.grid3 .tile:nth-child(1) { background: #dbe4fd; } .grid3 .tile:nth-child(2) { background: #d5f1e4; } .grid3 .tile:nth-child(3) { background: #fff1c9; }
.v.pos, .pos { color: var(--green) !important; } .v.neg, .neg { color: var(--red) !important; }
h3 { font-weight: 700; font-size: 15px; margin: 18px 0 10px; display: flex; align-items: baseline; gap: 6px; }
h3 small { color: var(--muted); font-size: 12px; font-weight: 500; }
.link { background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.link:hover { background: var(--yellow); }
.lnk { color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 700; }
.lnk:hover { text-decoration: underline; }
.note { font-size: 12.5px; color: var(--muted); background: var(--panel2); border: 2px dashed var(--soft); border-radius: var(--r); padding: 9px 10px; line-height: 1.45; }
.xcall { background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: var(--r); padding: 12px; margin-bottom: 10px; box-shadow: var(--sh); font-size: 13px; line-height: 1.45; }
.xcall b { font-size: 15px; } .xcall .btn { color: var(--ink); }

/* feed + lists */
.feed { display: flex; flex-direction: column; gap: 6px; }
.ev { display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: start; padding: 8px 10px; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); font-size: 13px; line-height: 1.45; }
.tag { display: inline-block; text-align: center; font-size: 10px; font-weight: 700; padding: 3px 0; border: 2px solid var(--ink); border-radius: 999px; letter-spacing: .3px; }
.tag.win { background: #c9f2dd; } .tag.loss { background: #fdd3d6; } .tag.fees { background: #fff1c9; } .tag.bet { background: #dbe4fd; }
.tag.wait, .tag.push { background: var(--panel2); color: var(--muted); } .tag.jp { background: var(--yellow); }
.ev .t { color: var(--muted); font-size: 11.5px; }
.ev b { color: var(--blue); cursor: pointer; font-weight: 700; }
.amt.pos { color: var(--green); font-weight: 700; } .amt.neg { color: var(--red); font-weight: 700; }
.alist { display: flex; flex-direction: column; gap: 6px; }
.alist .row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--r); cursor: pointer; }
.alist .row:hover { background: #fff; box-shadow: var(--sh-sm); transform: translate(-1px, -1px); }
.alist .row img { width: 26px; height: 37px; image-rendering: pixelated; background: var(--panel2); border-radius: 6px; }
.alist .tk { font-weight: 700; font-size: 14px; color: var(--ink); }
.alist .st { font-size: 12px; color: var(--muted); }
.alist .val { text-align: right; font-weight: 700; font-size: 13px; }
.rank { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }

/* agent card */
.ahead { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; margin: 10px 0; padding: 12px; background: #dbe4fd; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--sh); }
.ahead img { width: 64px !important; height: 86px !important; image-rendering: pixelated; background: var(--panel); border: 2px solid var(--ink); border-radius: 10px !important; }
.ahead .tk { font: 400 22px var(--ft); line-height: 1; }
.ahead .nm { font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.status { font-size: 12.5px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); border: 1.5px solid var(--ink); }
.status.paused::before { background: var(--yellow); } .status.broke::before { background: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { font-size: 11.5px; font-weight: 700; border: 2px solid var(--ink); background: var(--panel); padding: 4px 10px; color: var(--ink); border-radius: 999px; text-decoration: none; }
button.chip:hover, a.chip:hover { background: var(--yellow); }
.chip.on { background: var(--ink); color: #fff; }
.tierbar { height: 12px; background: var(--panel2); border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.tierbar div { height: 100%; background: repeating-linear-gradient(90deg, var(--red) 0 10px, var(--yellow) 10px 20px); }
.tiers { display: flex; justify-content: space-between; margin-top: 6px; }
.tiers span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-align: center; flex: 1; }
.tiers span.on { color: var(--ink); }
.log .ev { grid-template-columns: 56px 1fr; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--panel); border: 2px solid var(--ink); color: var(--ink); padding: 9px 12px; font-size: 13px; font-weight: 700; border-radius: 10px; box-shadow: var(--sh-sm); text-decoration: none; transition: transform .06s; }
.btn:hover:not(:disabled) { background: #fff; }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.btn.gold { background: var(--yellow); }
.btn.gold:hover:not(:disabled) { background: #ffd666; }
.btn.green { background: var(--mint); color: #fff; } .btn.green:hover:not(:disabled) { background: #1fc98a; }
.btn.red { background: var(--red); color: #fff; } .btn.red:hover:not(:disabled) { background: #f04b58; }
.btn.cyan { background: var(--blue); color: #fff; }
.btn.block { width: 100%; display: flex; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.gamebtns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gamebtns .btn { justify-content: flex-start; }
.gamebtns .btn i { font-style: normal; font-size: 16px; width: 18px; text-align: center; color: var(--red); }
.seg { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; background: var(--panel); border: 0; padding: 7px; font-weight: 700; font-size: 12.5px; text-transform: capitalize; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }
.trade .qrow { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; align-items: center; }
.trade .qrow .chip { padding: 6px 12px; font-size: 12.5px; }
.trade .qrow input { flex: 1; min-width: 60px; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px; font: 600 13px var(--fn); background: #fff; }
.trade .qrow .btn { flex: 1; padding: 8px 6px; }
.trade .s { margin-top: 6px; }

/* launch form */
.form label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 10px 0 4px; }
.form input[type=text], .form select { width: 100%; background: #fff; border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); padding: 9px; font: 500 14px var(--fn); }
.form input:focus, .form select:focus, .composer input:focus, .fairrow input:focus { outline: 3px solid #b9c9fb; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.sw { width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; }
.sw.on { outline: 3px solid var(--blue); outline-offset: 1px; }
.preview { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.preview > div:last-child { flex: 1 1 100% !important; }
.preview canvas { width: 132px !important; height: 132px !important; image-rendering: pixelated; border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--sh-sm); }
.prevwrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.prevwrap small { font-size: 11px; color: var(--muted); }
.prevwrap[hidden] { display: none; }
#prevChar { width: 54px !important; height: 78px !important; background: var(--panel2); }
.styles { display: grid; gap: 6px; }
.styleopt { border: 2px solid var(--ink); background: var(--panel); padding: 9px 10px; cursor: pointer; text-align: left; border-radius: var(--r); }
.styleopt.on { background: #fff1c9; box-shadow: var(--sh-sm); }
.styleopt b { font-weight: 700; }
.styleopt div { font-size: 12px; color: var(--muted); margin-top: 3px; }
.imgseg { margin-bottom: 2px; }
.steps { display: flex; gap: 6px; margin: 4px 0 10px; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--panel); border: 2px solid var(--soft); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel2); font-size: 12px; }
.step.on { border-color: var(--ink); color: var(--ink); } .step.on b { background: var(--yellow); border: 2px solid var(--ink); }
.step.done { border-color: var(--green); color: var(--green); } .step.done b { background: var(--mint); color: #fff; }
.spinner { width: 34px; height: 34px; margin: 6px auto 10px; border: 4px solid var(--soft); border-top-color: var(--blue); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* fairness */
.fair code, .rev code { display: block; font: 500 11px ui-monospace, Menlo, Consolas, monospace; color: var(--ink); background: var(--panel2); border: 1.5px solid var(--soft); border-radius: 8px; padding: 6px 8px; margin: 4px 0 6px; word-break: break-all; }
.fair .s b { color: var(--ink); }
.fairrow { display: flex; gap: 6px; margin-top: 6px; }
.fairrow input { flex: 1; min-width: 0; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 8px; font: inherit; font-size: 12.5px; }
.fairrow .btn { white-space: nowrap; padding: 8px 10px; font-size: 12.5px; }
.rev { margin-top: 4px; }

/* chat */
.chatlist { display: flex; flex-direction: column; gap: 6px; height: calc(100vh - 340px); min-height: 220px; overflow-y: auto; padding-right: 4px; }
.msg { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 8px 10px; background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; }
.msg.me { background: #fff1c9; }
.msg img, .msg .noav { width: 22px; height: 32px; border-radius: 5px; background: var(--panel2); image-rendering: pixelated; }
.msg .mh { display: flex; gap: 8px; align-items: baseline; }
.msg .mh b { color: var(--blue); font-weight: 700; cursor: pointer; }
.msg .mh .t { font-size: 11px; color: var(--muted); }
.msg .mt { font-size: 13.5px; line-height: 1.4; word-break: break-word; margin-top: 2px; }
.composer { display: flex; gap: 6px; margin-top: 10px; }
.composer input { flex: 1; min-width: 0; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 10px; font: inherit; }
.unread { font-style: normal; margin-left: 4px; background: var(--red); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font-size: 10px; font-weight: 700; padding: 0 5px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(23, 23, 28, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; background: var(--panel); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 18px; position: relative; }
.mhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mhead h2 { font: 400 20px var(--ft); margin: 0; }
.mhead .bal { margin-left: auto; font-size: 13px; color: var(--muted); }
.mhead .bal b { color: var(--green); }
.mclose { background: var(--panel); border: 2px solid var(--ink); border-radius: 50%; width: 32px; height: 32px; font-size: 14px; font-weight: 700; }
.how ol { padding-left: 20px; line-height: 1.55; }
.how li { margin-bottom: 6px; }
.how b { color: var(--ink); }
.how h3 { margin-top: 14px; }
.gate-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 14px; }
.gate-logo img { width: 96px; height: 96px; image-rendering: pixelated; }
.gate-logo b { font: 400 28px var(--ft); text-shadow: 2px 2px 0 var(--red); }

/* custom confirm + wallet help (native dialogs are blocked inside X posts) */
.ask { position: fixed; inset: 0; z-index: 120; background: rgba(23,23,28,.5); display: grid; place-items: center; padding: 16px; }
.ask-box { width: 100%; max-width: 360px; background: var(--panel); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 16px; }
.ask-box h4 { margin: 0 0 6px; font: 400 16px var(--ft); }
.ask-box p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; font-weight: 500; }
.ask-list { display: flex; flex-direction: column; gap: 8px; }

#toast { position: fixed; left: 50%; top: 92px; transform: translateX(-50%); z-index: 130; display: flex; flex-direction: column; gap: 6px; pointer-events: none; align-items: center; }
#toast div { background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--sh-sm); padding: 9px 14px; font-size: 13px; font-weight: 600; animation: pop .25s; max-width: 90vw; }
#toast div.err { background: #fdd3d6; }

/* focus card (one coin's live card, shown inside its X post) */
.focus-card { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: var(--panel); border: 2px solid var(--ink); border-radius: 14px; box-shadow: var(--sh); padding: 8px 10px; z-index: 4; }
.focus-card[hidden] { display: none; }
.focus-card > img { width: 28px; height: 40px; image-rendering: pixelated; }
.fc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fc-top b { font: 400 15px var(--ft); }
.fc-top .status { margin: 0; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-nums { display: flex; gap: 10px; font-size: 11.5px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.fc-nums b { color: var(--ink); }
.fc-acts { display: flex; gap: 6px; }
.fc-acts .btn { padding: 7px 10px; font-size: 12.5px; }

@media (max-width: 900px) {
  html, body { overflow: auto; }
  main { flex-direction: column; height: auto; }
  .rail { width: 100%; flex-direction: row; padding: 8px; border-right: 0; border-bottom: 2px solid var(--ink); overflow-x: auto; }
  .rail button { min-width: 62px; }
  .rail-gap, .zoom { display: none; }
  .stage { height: 60vh; flex: none; }
  .panel { width: 100%; border-left: 0; border-top: 2px solid var(--ink); }
  .panel-body { overflow: visible; }
  .tagline, .hide-sm, .ca-chip { display: none; }
  .stage-hint { display: none; }
}
@media (max-width: 520px) { .pill.live { display: none; } .logo { font-size: 20px; } header { gap: 6px; padding: 0 10px; } }
/* =================== GAME SCREENS =================== */
.modal-box.wide { max-width: 1120px; width: 96vw; padding: 0; background: #0e0a11; border: 2px solid #4a3414; max-height: 96vh; }
.gs { display: flex; flex-direction: column; min-height: 0; }
.gs-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: linear-gradient(#1d1521, #140f17); border-bottom: 1px solid #2c2431; }
.gs-title { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.gs-ico { width: 42px; height: 42px; display: grid; place-items: center; background: #2a1c06; border: 2px solid var(--gold2); color: var(--gold); font: 800 22px var(--fn); box-shadow: 0 3px 0 #000; }
.gs-title h2 { margin: 0; font: 700 24px var(--fn); color: var(--gold); line-height: 1; text-shadow: 2px 2px 0 #5a2a00; }
.gs-title small { color: var(--muted); font-size: 12.5px; }
.gs-me { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: #0f0b12; border: 1px solid #2c2431; }
.gs-me img { width: 30px; height: 43px; image-rendering: pixelated; background: #2a1a10; }
.gs-me b { font: 700 14px var(--fn); color: var(--gold); display: block; }
.gs-me small { color: var(--muted); font-size: 11.5px; }
.gs-stat { text-align: right; min-width: 104px; padding: 4px 12px; background: #0f0b12; border: 1px solid #2c2431; }
.gs-stat small { display: block; color: var(--muted); font-size: 11.5px; }
.gs-stat b { font: 700 19px var(--fn); color: var(--green); }
.gs-stat b.neg { color: var(--red); } .gs-stat b.pos { color: var(--green); }
#gsSess { color: var(--text); }
.gs-stat b.flash { animation: flash .6s; }
@keyframes flash { 0% { color: #fff; text-shadow: 0 0 12px #fff; } }
.gs-icon { width: 40px; height: 40px; background: #1a141d; border: 1px solid #3a2f40; color: var(--text); font: 800 16px var(--fn); }
.gs-icon:hover { border-color: var(--gold2); color: var(--gold); }
.gs-sub { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: #120e15; border-bottom: 1px solid #221b26; font-size: 12.5px; color: #b8aab5; }
.gs-sub > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-hist { margin-left: auto; display: flex; gap: 4px; align-items: center; overflow: hidden; }
.gs-hist em { font-style: normal; color: var(--muted); margin-right: 4px; }
.hn { font: 700 11px var(--fn); padding: 3px 6px; background: #1c171f; border: 1px solid #2c2431; color: var(--muted); }
.hn.w { color: var(--green); border-color: #1d5a35; background: #0b1f13; } .hn.l { color: var(--red); border-color: #4a1d1d; background: #1c0c0c; }
.rn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--fn); color: #fff; border: 2px solid #e9e2c8; }
.rn.red { background: #b01c2c; } .rn.black { background: #16161c; } .rn.green { background: #14a052; }
.rn:first-of-type { width: 30px; height: 30px; border-color: var(--gold); }
.gs-stage { position: relative; padding: 18px; background: radial-gradient(ellipse at 50% 0%, #241a1a, #0e0a11 70%); overflow: auto; }
.gs-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #150f18; border-top: 1px solid #2c2431; flex-wrap: wrap; }
.gs-keys { padding: 6px 16px 8px; font-size: 11.5px; color: #7d7280; background: #150f18; text-align: right; }

/* chips */
.pchip { width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 4px dashed var(--e); display: flex; align-items: center; justify-content: center;
  font: 800 9px var(--fn); color: var(--t); box-shadow: inset 0 0 0 3px var(--c), inset 0 0 0 5px rgba(255,255,255,.28), 0 3px 0 rgba(0,0,0,.6); }
.chipbtn { background: none; border: 0; padding: 0; transition: transform .1s; border-radius: 50%; }
.chipbtn:hover:not(:disabled) { transform: translateY(-4px); }
.chipbtn:active:not(:disabled) { transform: translateY(1px); }
.chipbtn:disabled { opacity: .35; cursor: not-allowed; }
.chipbtn.sel.on { transform: translateY(-6px); box-shadow: 0 0 0 3px #fff, 0 0 16px rgba(255,255,255,.5); }
.stack { position: relative; width: 46px; height: 52px; }
.schip { position: absolute; left: 0; width: 46px; height: 16px; border-radius: 50%; background: var(--c); border: 3px dashed var(--e); box-shadow: 0 2px 0 rgba(0,0,0,.55); }

/* bet control */
.betctl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.betnow { min-width: 130px; padding: 6px 12px; background: #0b080d; border: 2px solid #3a2a12; }
.betnow small { display: block; font-size: 11.5px; color: var(--muted); }
.betnow b { font: 700 22px var(--fn); color: var(--gold); }
.betnow span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.chiprow { display: flex; gap: 7px; padding-top: 6px; }
.betops { display: flex; gap: 4px; }
.betops button { background: #1c161f; border: 1px solid #3a2f40; color: var(--text); padding: 8px 11px; font-size: 13px; font-weight: 600; }
.betops button:hover:not(:disabled) { border-color: var(--gold2); color: var(--gold); }
.betops button:disabled { opacity: .35; }

/* buttons */
.bigbtn { min-width: 156px; height: 64px; background: linear-gradient(#ffe46a, #e9a820); border: 3px solid #1a1000; color: #1a1000; box-shadow: 0 6px 0 #7a4a00, 0 8px 16px rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .06s, box-shadow .06s; }
.bigbtn b { font: 700 24px var(--fn); line-height: 1; }
.bigbtn small { font-size: 11px; opacity: .7; margin-top: 3px; text-transform: uppercase; letter-spacing: 1px; }
.bigbtn:hover:not(:disabled) { filter: brightness(1.07); }
.bigbtn:active:not(:disabled), .bigbtn.pressed { transform: translateY(4px); box-shadow: 0 2px 0 #7a4a00; }
.bigbtn:disabled { background: #3a3236; color: #7a6f75; box-shadow: 0 6px 0 #1a1418; cursor: not-allowed; }
.acts { display: flex; gap: 8px; align-items: center; }
.act { min-width: 98px; height: 58px; background: #1c161f; border: 2px solid var(--gold2); color: var(--text); box-shadow: 0 4px 0 #000; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.act b { font: 700 16px var(--fn); color: var(--gold); }
.act small { font-size: 10.5px; color: var(--muted); }
.act:hover:not(:disabled) { background: #2a2018; }
.act:active:not(:disabled), .act.pressed { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.act:disabled { border-color: #2c2431; box-shadow: none; opacity: .4; cursor: not-allowed; }

/* banner */
.banner { position: absolute; left: 50%; top: 26px; transform: translate(-50%, 0) scale(.6); opacity: 0; pointer-events: none; z-index: 20; padding: 14px 34px; text-align: center; border: 3px solid #000; box-shadow: 0 6px 0 #000, 0 0 40px rgba(0,0,0,.6); transition: transform .25s cubic-bezier(.2,1.6,.4,1), opacity .2s; min-width: 260px; }
.banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.banner b { display: block; font: 700 28px var(--fn); line-height: 1.05; }
.banner small { display: block; font: 700 15px var(--fn); margin-top: 4px; }
.gs-dice .banner, .gs-roulette .banner { top: auto; bottom: 30px; }
.gs-blackjack .banner { left: auto; right: 6%; top: auto; bottom: 26%; transform: scale(.6); min-width: 220px; }
.gs-blackjack .banner.show { transform: none; }
.banner.win { background: linear-gradient(#2fd27a, #13894a); color: #fff; text-shadow: 2px 2px 0 #0a4a24; }
.banner.big { background: linear-gradient(#ffe46a, #e9a820); color: #2a1400; animation: shake .5s .2s; box-shadow: 0 6px 0 #000, 0 0 60px rgba(255,210,63,.8); }
.banner.loss { background: linear-gradient(#3a1418, #22090c); color: #ff8080; border-color: #5a1d1d; }
.banner.push { background: #2a2430; color: #ddd; }
@keyframes shake { 25% { rotate: -2deg; } 75% { rotate: 2deg; } }

/* felt */
.felt { background: radial-gradient(ellipse at 50% 30%, #1d9a5c, #0c6038 55%, #073f26); border: 10px solid #5a2d0c; box-shadow: inset 0 0 0 3px #9a6a2a, inset 0 0 70px rgba(0,0,0,.55), 0 8px 0 #2a1404; border-radius: 14px; position: relative; }

/* playing cards */
.pcard { width: 84px; height: 118px; background: linear-gradient(160deg, #fffdf6, #f1ead8); border: 2px solid #1a1a1a; border-radius: 8px; position: relative; color: #16161c; box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.3); animation: dealIn .34s cubic-bezier(.2,.9,.3,1.1) both; flex-shrink: 0; }
.pcard.red { color: #c4162a; }
.pcard.still { animation: none; }
.pcard.flip { animation: flipIn .4s ease-out both; }
@keyframes dealIn { from { transform: translate(260px, -180px) rotate(-14deg); opacity: 0; } }
@keyframes flipIn { from { transform: rotateY(90deg); } }
.ci { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ci b { font: 700 19px var(--fn); } .ci i { font-style: normal; font-size: 16px; }
.ci.tl { top: 6px; left: 6px; } .ci.br { bottom: 6px; right: 6px; transform: rotate(180deg); }
.cc { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; }
.cc.big { font-size: 62px; }
.cface { position: absolute; inset: 24px 18px; border: 2px solid currentColor; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 4px, transparent 4px 8px); }
.cface b { font: 700 30px var(--fn); line-height: 1; } .cface i { font-style: normal; font-size: 22px; }
.pcard.back { background: #b8202f; }
.pcard.back .bk { position: absolute; inset: 6px; border: 2px solid #f6e7c8; border-radius: 4px; background: repeating-linear-gradient(45deg, #b8202f 0 6px, #8a1020 6px 12px), #b8202f; box-shadow: inset 0 0 0 3px #b8202f, inset 0 0 0 5px #e0b048; }
.placeholder { color: rgba(255,255,255,.55); font-size: 14px; align-self: center; }

/* ---- blackjack ---- */
.bj-table { min-height: 470px; padding: 14px 20px 26px; border-radius: 16px 16px 320px 320px / 16px 16px 120px 120px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dealer { display: flex; flex-direction: column; align-items: center; margin-top: -4px; }
.dealer img { width: 42px; height: 60px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.4)); }
.dealer span { font: 700 11px var(--fn); color: #d8f5e2; background: rgba(0,0,0,.35); padding: 2px 8px; margin-top: 2px; }
.shoe { position: absolute; top: 22px; right: 34px; width: 70px; height: 92px; }
.shoe i { position: absolute; width: 54px; height: 76px; background: #b8202f; border: 2px solid #1a1a1a; border-radius: 6px; box-shadow: inset 0 0 0 4px #b8202f, inset 0 0 0 6px #e0b048; }
.shoe i:nth-child(1) { left: 0; top: 0; } .shoe i:nth-child(2) { left: 5px; top: 4px; } .shoe i:nth-child(3) { left: 10px; top: 8px; background: #4a2a10; }
.hand { display: flex; align-items: center; gap: 14px; }
.hand .cards { display: flex; gap: 8px; min-height: 122px; align-items: center; }
.total { font: 700 18px var(--fn); min-width: 54px; text-align: center; padding: 6px 10px; background: #08301c; color: #fff; border: 2px solid #d9b44a; border-radius: 22px; opacity: 0; transform: scale(.7); transition: .2s; }
.total.show { opacity: 1; transform: none; }
.total.bust { background: #5a1418; border-color: #ff6b6b; }
.total.bj { background: #e9a820; color: #1a1000; }
.arc { text-align: center; padding: 6px 0; border-top: 2px solid rgba(217,180,74,.55); border-bottom: 2px solid rgba(217,180,74,.55); width: 64%; border-radius: 50%/30%; }
.arc span { display: block; font: 700 15px var(--fn); color: #f0d27a; letter-spacing: 2px; }
.arc small { color: #bfe8cf; font-size: 12px; }
.betspot { position: absolute; left: 7%; bottom: 22%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.betspot .ring { width: 86px; height: 86px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.55); display: grid; place-items: center; background: rgba(0,0,0,.12); }
.betspot small { font: 700 12px var(--fn); color: #fff; background: rgba(0,0,0,.4); padding: 2px 8px; }

/* ---- slots ---- */
.slot-wrap { display: grid; grid-template-columns: 1fr 250px; gap: 18px; align-items: start; }
.cab { background: linear-gradient(#b0182c, #6a0c18 70%, #4a0810); border: 4px solid #e0b048; border-radius: 18px 18px 8px 8px; padding: 14px; box-shadow: 0 8px 0 #2a0408, inset 0 0 0 3px #7a1020; }
.cab-marquee { display: flex; align-items: center; gap: 12px; background: #1a0a10; border: 3px solid #e0b048; padding: 8px 12px; border-radius: 10px; }
.cab-marquee span { font: 700 30px var(--fn); color: #ffe46a; text-shadow: 0 0 10px #ff9a20, 2px 2px 0 #7a2a00; letter-spacing: 3px; white-space: nowrap; }
.bulbs { flex: 1; height: 12px; background: radial-gradient(circle, #ffe27a 3.5px, transparent 4.5px) 0 0 / 16px 12px; animation: bulbs .6s steps(2) infinite; }
@keyframes bulbs { 50% { background-position: 8px 0; filter: hue-rotate(160deg); } }
.cab-jp { margin: 10px auto; width: fit-content; min-width: 60%; text-align: center; background: #0a0606; border: 2px solid #5a3a12; padding: 6px 18px; }
.cab-jp small { display: block; font-size: 11px; color: #c99a5a; letter-spacing: 1px; }
.cab-jp b { font: 700 28px var(--fn); color: #ffb020; text-shadow: 0 0 10px rgba(255,176,32,.7); }
.reelwin { position: relative; display: flex; gap: 10px; background: #08060c; padding: 12px; border: 4px solid #e0b048; border-radius: 10px; box-shadow: inset 0 0 30px #000; }
.reel { flex: 1; height: 240px; overflow: hidden; position: relative; border: 3px solid #000; border-radius: 6px; background: linear-gradient(#b8b0a0, #fffaf0 28%, #fffaf0 72%, #b8b0a0); }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), transparent 30%, transparent 70%, rgba(0,0,0,.45)); pointer-events: none; }
.strip { will-change: transform; }
.cell { height: 80px; display: grid; place-items: center; }
.cell img { width: 62px; height: 62px; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.reel.win { box-shadow: 0 0 0 3px #ffd23f, 0 0 26px #ffd23f; animation: glow .5s 4 alternate; }
@keyframes glow { to { box-shadow: 0 0 0 3px #fff, 0 0 40px #ffd23f; } }
.payline { position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; margin-top: -1px; background: rgba(255,50,70,.85); z-index: 3; box-shadow: 0 0 8px rgba(255,50,70,.8); pointer-events: none; }
.pl-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #ff3a4a; font-size: 18px; z-index: 4; }
.pl-arrow.l { left: -14px; } .pl-arrow.r { right: -14px; }
.leds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.led { background: #070506; border: 2px solid #3a2a12; padding: 6px 10px; text-align: center; }
.led small { display: block; font-size: 10.5px; color: #a08a6a; letter-spacing: 1px; }
.led b { font: 700 20px var(--fn); color: #ff6a3a; text-shadow: 0 0 8px rgba(255,90,40,.6); }
.led.win b { color: #5aff8a; text-shadow: 0 0 8px rgba(90,255,140,.6); }
.paytable { background: #120d15; border: 2px solid #2c2431; padding: 12px; }
.paytable h4 { margin: 0 0 8px; font: 700 14px var(--fn); color: var(--gold); }
.pt-row { display: flex; align-items: center; gap: 3px; padding: 5px 6px; border-bottom: 1px solid #221b26; font-size: 12.5px; color: var(--muted); }
.pt-row img { width: 24px; height: 24px; image-rendering: pixelated; }
.pt-row span { margin-left: 4px; }
.pt-row b { margin-left: auto; font: 700 15px var(--fn); color: var(--gold); }
.pt-row.hit { background: #ffd23f; color: #1a1000; animation: blink2 .4s 5; } .pt-row.hit b { color: #1a1000; }
@keyframes blink2 { 50% { background: #fff3b0; } }
.pt-jp { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.pt-jp img { width: 18px; height: 18px; image-rendering: pixelated; vertical-align: middle; }
.pt-jp b { color: var(--gold); }

/* ---- video poker ---- */
.vp { background: linear-gradient(#10208a, #08104a); border: 4px solid #e0b048; border-radius: 12px; padding: 14px 18px 16px; box-shadow: 0 8px 0 #040820, inset 0 0 0 3px #2a3aaa; }
.vp-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 18px; background: #050a3a; border: 2px solid #3a4acc; padding: 8px 12px; }
.vp-row { display: flex; gap: 8px; align-items: center; padding: 3px 6px; font: 700 13px var(--fn); color: #ffe46a; }
.vp-row span { flex: 1; } .vp-row b { color: #fff; } .vp-row em { font-style: normal; color: #8ea0ff; font-size: 11px; min-width: 52px; text-align: right; }
.vp-row.hit { background: #ffd23f; color: #0a1040; animation: blink2 .4s 6; } .vp-row.hit b, .vp-row.hit em { color: #0a1040; }
.vp-cards { display: flex; justify-content: center; gap: 14px; margin: 22px 0 6px; }
.vp-slot { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vp .pcard { width: 100px; height: 140px; cursor: pointer; transition: transform .12s; }
.vp .pcard .ci b { font-size: 22px; } .vp .cc { font-size: 52px; } .vp .cc.big { font-size: 72px; }
.vp-slot.held .pcard { transform: translateY(-10px); box-shadow: 0 0 0 4px #ffd23f, 0 10px 20px rgba(0,0,0,.4); }
.hold { width: 100px; padding: 7px 0; background: #18288a; border: 2px solid #6a7aff; color: #c8d0ff; font: 700 14px var(--fn); box-shadow: 0 3px 0 #040820; }
.hold small { font-size: 10px; opacity: .7; }
.hold.on { background: #ffd23f; color: #0a1040; border-color: #fff; }
.hold:disabled { opacity: .4; cursor: default; }
.vp-msg { text-align: center; font: 700 14px var(--fn); color: #fff; margin: 8px 0 0; min-height: 20px; }
.vp .leds .led { background: #030620; border-color: #3a4acc; }

/* ---- roulette ---- */
.rl { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: center; padding: 18px; }
.rl-left { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#wheel { width: 280px; height: 280px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.rl-num { min-height: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rl-num b { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 700 24px var(--fn); color: #fff; border: 3px solid #ffd23f; box-shadow: 0 0 20px rgba(255,210,63,.6); animation: pop .4s; }
.rl-num b.red { background: #b01c2c; } .rl-num b.black { background: #16161c; } .rl-num b.green { background: #14a052; }
.rl-num small { font: 700 12px var(--fn); color: #e7f7ec; }
@keyframes pop { from { transform: scale(.3); } }
.rboard { display: grid; grid-template-columns: 46px repeat(12, 1fr) 48px; grid-template-rows: repeat(3, 48px) 42px 42px; gap: 3px; }
.rc { position: relative; border: 2px solid rgba(240,232,205,.85); background: rgba(0,0,0,.16); color: #fff; font: 700 15px var(--fn); padding: 0; min-width: 0; transition: filter .1s, box-shadow .1s; }
.rc.red { background: #b01c2c; } .rc.black { background: #17171d; } .rc.green { background: #14a052; }
.rc.out { font-size: 13px; } .rc.out.red, .rc.out.black { font-size: 18px; }
.rc:hover { filter: brightness(1.25); box-shadow: inset 0 0 0 2px #ffd23f; }
.rc.cover { box-shadow: inset 0 0 0 3px #ffd23f; filter: brightness(1.2); }
.rc.winner { animation: win3 .5s 6 alternate; z-index: 2; }
@keyframes win3 { to { box-shadow: 0 0 0 3px #ffd23f, 0 0 22px #ffd23f; filter: brightness(1.5); } }
.rc.won { box-shadow: inset 0 0 0 3px #5aff8a; }
.pc { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 3px dashed var(--e); color: var(--t); font: 800 8px var(--fn); display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0,0,0,.6); z-index: 3; animation: pop .2s; pointer-events: none; }
.rl-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #d4eedd; }
.rl-legend b { color: #ffd23f; font-family: var(--fn); font-weight: 700; }

/* ---- dice ---- */
.dc { background: radial-gradient(ellipse at 50% 30%, #2f6ac8, #163c86 55%, #0b2252); padding: 22px 34px 26px; text-align: center; }
.dc-roll { font: 700 86px var(--fn); color: #fff; text-shadow: 0 5px 0 #000; line-height: 1; }
.dc-roll.rolling { color: #cfd9ff; } .dc-roll.win { color: #5aff8a; animation: pop .3s; } .dc-roll.loss { color: #ff6b6b; animation: pop .3s; }
.dc-sub { margin: 8px 0 18px; color: #d8e4ff; font-size: 15px; }
.dc-sub b { font-family: var(--fn); font-weight: 700; color: #fff; } .dc-sub b.pos { color: #5aff8a; } .dc-sub b.neg { color: #ff8080; }
.dc-track { position: relative; height: 26px; background: #c0303a; border: 3px solid #000; border-radius: 4px; box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.dc-win { position: absolute; left: 0; top: 0; bottom: 0; background: #22b45a; transition: width .15s; }
.dc-marker { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); opacity: 0; transition: left .35s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.dc-marker.show { opacity: 1; }
.dc-marker i { display: block; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 16px solid #fff; filter: drop-shadow(0 2px 0 #000); }
.dc-ticks { position: absolute; top: 30px; left: 0; right: 0; display: flex; justify-content: space-between; font: 700 11px var(--fn); color: #b8c8ff; }
.dc-slider { width: 100%; margin: 34px 0 10px; accent-color: #ffd23f; height: 22px; }
.dc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dc-stats div { background: rgba(0,0,0,.28); border: 2px solid rgba(255,255,255,.15); padding: 8px; }
.dc-stats small { display: block; font-size: 12px; color: #b8c8ff; }
.dc-stats b { font: 700 20px var(--fn); color: #fff; }
.dc-presets { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.dc-presets button { background: rgba(0,0,0,.3); border: 2px solid rgba(255,255,255,.2); color: #fff; padding: 6px 12px; font: 700 14px var(--fn); }
.dc-presets button small { display: block; font: 500 10px Inter; color: #b8c8ff; }
.dc-presets button.on, .dc-presets button:hover { border-color: #ffd23f; color: #ffd23f; }

@media (max-width: 900px) {
  .gs-top { flex-wrap: wrap; } .gs-me { display: none; }
  .slot-wrap, .rl { grid-template-columns: 1fr; justify-items: center; }
  .pcard { width: 62px; height: 88px; } .cc { font-size: 32px; } .cface { inset: 18px 12px; } .cface b { font-size: 20px; }
  .vp .pcard { width: 58px; height: 84px; } .hold { width: 58px; font-size: 11px; }
  .vp-pay { grid-template-columns: 1fr; }
  .dc-stats { grid-template-columns: repeat(2, 1fr); }
  .rboard { grid-template-columns: 30px repeat(12, 1fr) 32px; font-size: 11px; }
  .rc { font-size: 11px; }
}

/* readability pass: pixel font only for big titles */
.logo { font-family: var(--ft); font-weight: 700; letter-spacing: 0; }
.gs-title h2, .banner b, .cab-marquee span, .bigbtn b, .mhead h2 { font-family: var(--ft) !important; font-weight: 700 !important; letter-spacing: .5px; }
.bigbtn b { font-size: 26px; }
.gs-title h2 { font-size: 26px; }
.banner b { font-size: 30px; }
.ci b { font-family: var(--fn); font-weight: 800; font-size: 20px; letter-spacing: -1px; }
.ci.br { transform: none; }
.cface b { font-family: var(--fn); font-weight: 800; font-size: 32px; }
.pchip { font-family: var(--fn); font-weight: 800; font-size: 10px; letter-spacing: -.3px; }
.pc { font-family: var(--fn); font-weight: 800; font-size: 9px; }
.gs-stat b, .betnow b, .led b, .cab-jp b { letter-spacing: .3px; }
.tag, .tabs button, .chip, .rail button span, .badge, .live-dot, .seg button, .hn { letter-spacing: .3px; }
.tabs button { font-size: 13px; }
.ev .tag { font-size: 10px; }
.act b { font-size: 17px; }
.hold { font-size: 15px; }
.vp-row { font-size: 14px; }
.rc { font-size: 16px; }
.total { font-size: 20px; }
.pc { left: auto; top: -9px; right: -7px; transform: none; width: 26px; height: 26px; border-width: 2px; font-size: 8px; }
.tabs button { font-size: 12px; white-space: nowrap; padding: 7px 0; }


/* ===================== CHIP: game screens, light frame ===================== */
.logo { font-family: var(--ft); font-weight: 400; }
.gs-title h2, .banner b, .bigbtn b, .mhead h2 { font-family: var(--ft) !important; font-weight: 400 !important; letter-spacing: 0; }
.cab-marquee span { font-family: var(--ft) !important; font-weight: 400 !important; }
.modal-box.wide { max-width: 1120px; width: 96vw; padding: 0; background: var(--panel); border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; max-height: 96vh; box-shadow: 6px 6px 0 var(--ink); }
.gs-top { background: var(--panel); border-bottom: 2px solid var(--ink); }
.gs-ico { background: var(--yellow); border: 2px solid var(--ink); color: var(--ink); border-radius: 12px; box-shadow: var(--sh-sm); }
.gs-title h2 { color: var(--ink); text-shadow: 2px 2px 0 var(--red); font-size: 20px; line-height: 1.2; }
.gs-title small { color: var(--muted); }
.gs-me, .gs-stat { background: var(--panel2); border: 2px solid var(--ink); border-radius: 10px; }
.gs-me img { background: var(--panel); border-radius: 6px; }
.gs-me b { color: var(--ink); }
.gs-stat b { color: var(--green); } #gsSess { color: var(--ink); }
.gs-icon { background: var(--panel); border: 2px solid var(--ink); border-radius: 10px; color: var(--ink); }
.gs-icon:hover { background: var(--yellow); color: var(--ink); }
.gs-sub { background: var(--panel2); border-bottom: 2px solid var(--ink); color: var(--muted); font-weight: 500; }
.gs-lim { margin-left: 14px; white-space: nowrap; color: var(--muted); } .gs-lim b { color: var(--ink); font-weight: 700; }
.hn { background: var(--panel); border: 1.5px solid var(--ink); color: var(--muted); border-radius: 8px; }
.hn.w { color: var(--green); background: #c9f2dd; border-color: var(--ink); } .hn.l { color: var(--red); background: #fdd3d6; border-color: var(--ink); }
.gs-stage { background: radial-gradient(ellipse at 50% 0%, #fffdf8, var(--bg) 75%); }
.gs-bottom { background: var(--panel); border-top: 2px solid var(--ink); }
.gs-keys { background: var(--panel); color: var(--muted); }
.betnow { background: var(--panel2); border: 2px solid var(--ink); border-radius: 10px; }
.betnow b { color: var(--ink); }
.betops button { background: var(--panel); border: 2px solid var(--ink); color: var(--ink); border-radius: 10px; font-weight: 700; }
.betops button:hover:not(:disabled) { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.bigbtn { background: var(--yellow); border: 2px solid var(--ink); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); border-radius: 14px; }
.bigbtn b { font-size: 18px; }
.bigbtn:active:not(:disabled), .bigbtn.pressed { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.bigbtn:disabled { background: #e6dfd0; color: #9b9384; box-shadow: 4px 4px 0 #b9b1a0; border-color: #9b9384; }
.act { background: var(--panel); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 10px; }
.act b { color: var(--ink); } .act small { color: var(--muted); }
.act:hover:not(:disabled) { background: var(--yellow); }
.act:active:not(:disabled), .act.pressed { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.act:disabled { border-color: #b9b1a0; box-shadow: none; opacity: .5; }
.banner { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: 14px; }
.banner.win { background: var(--mint); text-shadow: none; }
.banner.big { background: var(--yellow); color: var(--ink); box-shadow: 5px 5px 0 var(--ink), 0 0 50px rgba(255,200,61,.8); }
.banner.loss { background: #fdd3d6; color: var(--red); border-color: var(--ink); }
.banner.push { background: var(--panel); color: var(--ink); }
.paytable { background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; }
.paytable h4 { color: var(--ink); }
.pt-row { border-bottom: 1px solid var(--soft); }
.pt-row b, .pt-jp b { color: var(--ink); }
.pt-row.hit { background: var(--yellow); }
/* tables keep their colors but in CHIP's palette */
.felt { background: radial-gradient(ellipse at 50% 30%, #4f78f2, #2f5bea 55%, #2448c2); border: 8px solid var(--ink); box-shadow: inset 0 0 0 3px #fff, inset 0 0 60px rgba(0,0,0,.25), 6px 6px 0 rgba(23,23,28,.25); }
.cab { background: linear-gradient(#ef5a66, #e63946 60%, #c42b37); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink), inset 0 0 0 3px #fff; }
.cab-marquee { background: var(--ink); border: 3px solid #fff; }
.cab-marquee span { color: var(--yellow); text-shadow: 2px 2px 0 var(--red); }
.reelwin { border-color: var(--ink); background: var(--ink); }
.vp { background: linear-gradient(#2f5bea, #1d3fb0); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink), inset 0 0 0 3px #fff; }
.dc { background: radial-gradient(ellipse at 50% 30%, #23c98b, #18b47b 55%, #0f8f60); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 rgba(23,23,28,.25); }
.pcard.back, .shoe i { background: var(--red); }
.pcard.back .bk { background: repeating-linear-gradient(45deg, #e63946 0 6px, #c42b37 6px 12px); box-shadow: inset 0 0 0 3px #e63946, inset 0 0 0 5px #fff; border-color: #fff; }

/* ===================== EMBED: the whole site inside an X post ===================== */
body.embed { font-size: 13px; }
body.embed .rail .embed-only { display: flex !important; }
body.embed .hide-embed, body.embed .tagline, body.embed .hide-sm, body.embed .stage-hint, body.embed .panel .tabs, body.embed .rail .zoom, body.embed .rail-gap { display: none !important; }
body.embed header { height: 46px; padding: 0 8px; gap: 6px; }
body.embed .logo { font-size: 18px; gap: 6px; }
body.embed .logo img { width: 28px; height: 28px; }
body.embed .pill { padding: 4px 9px; font-size: 11.5px; border-width: 2px; }
body.embed .pill.jp { box-shadow: none; }
body.embed .btn-wallet { padding: 6px 12px; font-size: 12.5px; box-shadow: none; }
body.embed .openfull { width: 30px; height: 30px; font-size: 14px; display: grid !important; }
body.embed #ticker { height: 22px; font-size: 11.5px; }
body.embed .live-dot { font-size: 10px; padding: 0 7px; }
body.embed main { position: relative; display: block; height: calc(100% - 68px); }
body.embed .stage { position: absolute; inset: 0 0 54px 0; }
body.embed .rail { position: absolute; left: 0; right: 0; bottom: 0; height: 54px; width: auto; flex-direction: row; padding: 6px; gap: 5px; border: 0; border-top: 2px solid var(--ink); }
body.embed .rail button { flex: 1; min-width: 0; padding: 4px 0; gap: 1px; box-shadow: none; border-radius: 10px; }
body.embed .rail button:hover { transform: none; box-shadow: none; }
body.embed .rail button i { font-size: 15px; } body.embed .rail button span { font-size: 10.5px; }
body.embed .rail button.get { padding: 4px 0; } body.embed .rail button.get i { font-size: 17px; }
body.embed .panel { position: absolute; inset: 0 0 54px 0; width: auto; border: 0; z-index: 5; display: flex; }
body.embed[data-tab="floor"] .panel { display: none; }
body.embed .panel-body { padding: 10px; }
body.embed .chatlist { height: auto; max-height: none; min-height: 120px; flex: 1; }
body.embed .stage-zoom { position: absolute; right: 8px; top: 8px; display: flex !important; flex-direction: column; gap: 5px; z-index: 3; }
body.embed .stage-zoom button { width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 8px; background: var(--panel); font-weight: 700; font-size: 16px; line-height: 1; padding: 0; }
body.embed #toast { top: 52px; }
body.embed #toast div { font-size: 12px; padding: 7px 11px; }
body.embed .modal { padding: 8px; align-items: flex-end; background: rgba(23,23,28,.35); }
body.embed .modal:has(.modal-box.wide) { align-items: stretch; background: rgba(23,23,28,.55); }
body.embed .modal-box { max-height: 100%; padding: 12px; border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
body.embed .modal-box.wide { width: 100%; max-height: 100%; height: 100%; border-radius: 14px; }
body.embed .gate-logo { flex-direction: row; justify-content: center; }
body.embed .gate-logo { margin: 0 0 6px; } body.embed .gate-logo img { width: 56px; height: 56px; } body.embed .gate-logo b { font-size: 20px; }
body.embed .how p { margin: 6px 0; font-size: 12.5px; line-height: 1.4; }
body.embed .mhead { margin-bottom: 6px; } body.embed .mhead h2 { font-size: 16px; }
body.embed.left main::after { content: 'Come back when you are 18+ and it is legal where you live.'; position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; background: var(--bg); font-weight: 700; z-index: 20; }
/* game screens squeezed into the post */
body.embed .gs-top { padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
body.embed .gs-me, body.embed .gs-keys, body.embed .gs-hist { display: none; }
body.embed .gs-ico { width: 32px; height: 32px; font-size: 16px; }
body.embed .gs-title h2 { font-size: 15px; } body.embed .gs-title small { font-size: 11px; }
body.embed .gs-stat { min-width: 0; padding: 3px 8px; } body.embed .gs-stat b { font-size: 15px; } body.embed .gs-stat small { font-size: 10.5px; }
body.embed .gs-icon { width: 32px; height: 32px; }
body.embed .gs-sub { padding: 5px 10px; font-size: 11.5px; }
body.embed .gs-stage { padding: 8px; }
body.embed .gs-bottom { padding: 8px 10px; gap: 8px; }
body.embed .bigbtn { min-width: 110px; height: 50px; } body.embed .bigbtn b { font-size: 14px; }
body.embed .act { min-width: 70px; height: 46px; } body.embed .act b { font-size: 14px; }
body.embed .pchip { width: 36px; height: 36px; font-size: 8px; } body.embed .chiprow { gap: 4px; flex-wrap: wrap; }
body.embed .betnow { min-width: 96px; padding: 4px 8px; } body.embed .betnow b { font-size: 17px; }
body.embed .bj-table { min-height: 330px; padding: 8px 10px 16px; }
body.embed .pcard { width: 52px; height: 74px; } body.embed .cc { font-size: 26px; } body.embed .cc.big { font-size: 36px; } body.embed .cface { inset: 14px 9px; } body.embed .cface b { font-size: 16px; } body.embed .ci b { font-size: 13px; } body.embed .ci i { font-size: 11px; }
body.embed .hand .cards { min-height: 78px; gap: 4px; }
body.embed .shoe, body.embed .betspot { display: none; }
body.embed .slot-wrap, body.embed .rl { grid-template-columns: 1fr; gap: 8px; padding: 0; }
body.embed .paytable { display: none; }
body.embed .reel { height: 150px; } body.embed .cell { height: 50px; } body.embed .cell img { width: 40px; height: 40px; }
body.embed .cab { padding: 8px; } body.embed .cab-marquee span { font-size: 14px; } body.embed .cab-jp b { font-size: 18px; }
body.embed .vp { padding: 8px; } body.embed .vp-pay { display: none; } body.embed .vp-cards { gap: 6px; margin: 10px 0 4px; }
body.embed .vp .pcard { width: 56px; height: 80px; } body.embed .hold { width: 56px; font-size: 11px; }
body.embed #wheel { width: 190px; height: 190px; }
body.embed .rboard { grid-template-columns: 26px repeat(12, 1fr) 28px; grid-template-rows: repeat(3, 30px) 28px 28px; gap: 2px; } body.embed .rc { font-size: 10px; }
body.embed .dc { padding: 12px 14px; } body.embed .dc-roll { font-size: 52px; } body.embed .dc-stats { grid-template-columns: repeat(2, 1fr); }
/* embed must beat the narrow-screen rules */
body.embed, html:has(body.embed) { overflow: hidden !important; }
body.embed .panel-body { overflow-y: auto !important; }
body.embed .stage { height: auto; }
body.embed .rail { overflow: visible; }
body.embed .rail button { min-width: 0; }
@media (max-width: 900px) {
  body.site .stage { height: clamp(300px, 82vw, 62vh); }
  body.site .rail { gap: 5px; padding: 6px; }
  body.site .rail button { flex: 1; min-width: 0; padding: 6px 0; }
  body.site .rail button span { font-size: 11px; }
}
@media (max-width: 520px) {
  body.site .btn-wallet { padding: 7px 11px; font-size: 12.5px; }
  body.site .pill.jp { padding: 5px 9px; font-size: 11.5px; }
  body.site .logo span { display: none; }
}
/* embed: game screen = fixed top bar + scrolling table + fixed bet bar */
body.embed .modal-box.wide { display: flex; flex-direction: column; overflow: hidden; }
body.embed .modal-box.wide > .gs { flex: 1; min-height: 0; height: 100%; }
body.embed .gs-stage { flex: 1 1 auto; min-height: 0; overflow: auto; }
body.embed .gs-sub > span:first-child { display: none; }
body.embed .gs-sub .gs-lim { margin-left: 0; }
body.embed .gs-stat:has(#gsSess) { display: none; }
body.embed .gs-bottom { flex-wrap: wrap; row-gap: 6px; }
body.embed .betctl { gap: 6px; flex-wrap: nowrap; width: 100%; overflow-x: auto; }
body.embed .chiprow { flex-wrap: nowrap; padding-top: 2px; }
body.embed .betops { flex-shrink: 0; }
body.embed .gs-bottom > :not(.betctl) { margin-left: auto; }
body.embed .betops button { padding: 6px 8px; font-size: 12px; }
/* launch by sending SOL */
.paybox .addr { display: flex; gap: 6px; align-items: center; margin: 8px 0; }
.paybox .addr code, code.ca { flex: 1; min-width: 0; display: block; font: 600 12px ui-monospace, Menlo, Consolas, monospace; background: var(--panel2); border: 2px solid var(--ink); border-radius: 10px; padding: 8px; word-break: break-all; }
.paybox .qr { display: grid; place-items: center; margin: 4px auto 10px; padding: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; width: fit-content; }
.paybox .qr:empty { display: none; }
.paybox .qr img, .paybox .qr canvas { display: block; }
.paybox .warn { margin: 10px 0 8px; padding: 8px 10px; background: #fff1c9; border: 2px solid var(--ink); border-radius: 10px; font-size: 12.5px; line-height: 1.4; }
.paybox .waiting { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin: 6px 0; }
.spinner.sm { width: 16px; height: 16px; border-width: 3px; margin: 0; }
@media (pointer: coarse) { .paybox .qr { display: none !important; } }
