/* gamblepad app — same language as the landing: black, one accent, Neue Montreal for words, DIN Next for numbers. */
@font-face { font-family: "Neue Montreal"; src: url("/assets/fonts/NeueMontreal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DIN Next"; src: url("/assets/fonts/DINNextLight.woff2") format("woff2"); font-weight: 300; font-display: swap; }
:root {
  --bg: #0B0B0B; --bg2: #111; --panel: #161616; --panel2: #1C1C1C; --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.18);
  --acc: #FF4D2E; --acc2: #FFB09E; --win: #5CF08A; --txt: #fff; --mut: #A3A3A3; --mut2: #6F6F6F;
  --ff: "Neue Montreal", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; --fn: "DIN Next", "Neue Montreal", sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--txt); font-family: var(--ff); -webkit-font-smoothing: antialiased; }
body { margin: 0; font-size: 15px; line-height: 1.35; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
.num { font-family: var(--fn); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.mut { color: var(--mut); } .acc { color: var(--acc); } .win { color: var(--win); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; padding: 0 22px; background: rgba(11,11,11,.75); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 6px; color: var(--mut); transition: color .2s, background .2s; }
.nav a:hover { color: #fff; } .nav a.on { color: #fff; background: rgba(255,255,255,.07); }
.right { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.chip.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--mut2); } .chip.net.ok i { background: var(--win); box-shadow: 0 0 8px var(--win); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: 6px; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; transition: background .2s, color .2s, transform .15s; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.14); } .btn:active { transform: translateY(1px); }
.btn.acc { background: var(--acc); color: #0B0B0B; } .btn.acc:hover { background: var(--acc2); }
.btn.win { background: var(--win); color: #0B0B0B; } .btn.win:hover { background: #9dffbb; }
.btn.big { height: 54px; font-size: 17px; padding: 0 26px; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arr::after { content: ""; display: block; width: 8px; height: 8px; background: currentColor; -webkit-mask: url("/assets/chevron.svg") center / contain no-repeat; mask: url("/assets/chevron.svg") center / contain no-repeat; }

/* ---- layout ---- */
.view { flex: 1; width: min(100% - 44px, 1320px); margin: 0 auto; padding: 34px 0 60px; }
.foot { display: flex; justify-content: space-between; gap: 20px; padding: 18px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.foot a:hover { color: #fff; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.head h1 { font-size: 38px; letter-spacing: -.03em; line-height: 1.05; }
.head p { color: var(--mut); margin-top: 8px; max-width: 620px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.stat { padding: 16px 18px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.stat small { display: block; font-size: 12px; color: var(--mut); margin-bottom: 8px; }
.stat b { font-weight: 300; font-family: var(--fn); font-size: 30px; letter-spacing: -.02em; }
.stat b em { font-style: normal; font-size: 14px; color: var(--mut); margin-left: 6px; font-family: var(--ff); }

/* ---- coin cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.coin { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease); opacity: 0; transform: translateY(16px); animation: rise .7s var(--ease) forwards; }
.coin:hover { border-color: rgba(255,77,46,.55); transform: translateY(-3px); }
@keyframes rise { to { opacity: 1; transform: none; } }
.coin .id { display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; border-radius: 10px; background: #000; border: 1px solid var(--line); object-fit: cover; display: grid; place-items: center; font-size: 16px; color: var(--mut); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.coin .id b { display: block; font-weight: 400; font-size: 17px; letter-spacing: -.01em; } .coin .id small { color: var(--mut); font-size: 12.5px; }
.coin .pool { display: flex; align-items: baseline; gap: 8px; }
.coin .pool b { font-family: var(--fn); font-weight: 300; font-size: 34px; letter-spacing: -.02em; } .coin .pool span { color: var(--mut); font-size: 12.5px; }
.coin .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mut); padding-top: 10px; border-top: 1px solid var(--line); }
.coin .row b { font-weight: 400; color: #fff; }
.coin .spark { height: 44px; width: 100%; }
.coin .last { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; font-size: 12px; background: rgba(255,255,255,.07); }
.coin .last.won { background: rgba(92,240,138,.15); color: var(--win); } .coin .last.lost { background: rgba(255,77,46,.15); color: var(--acc); }
.empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line2); border-radius: 10px; color: var(--mut); }
.empty b { display: block; font-weight: 400; color: #fff; font-size: 20px; margin-bottom: 8px; }

/* ---- coin page ---- */
.coinpage { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.game { border-radius: 12px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.game-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.game-top .st { display: inline-flex; align-items: center; gap: 8px; } .game-top .st i { width: 7px; height: 7px; border-radius: 50%; background: var(--mut2); }
.game-top .st.live i { background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: blink 1s infinite; } .game-top .st.won i { background: var(--win); } .game-top .st.lost i { background: var(--acc); }
@keyframes blink { 50% { opacity: .35; } }
.chart { position: relative; height: 420px; background: #0B0B0B; }
.chart canvas { width: 100%; height: 100%; }
.mult { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; transition: transform .4s var(--ease), opacity .3s; }
.mult b { display: block; font-family: var(--fn); font-weight: 300; font-size: 96px; line-height: .9; letter-spacing: -.03em; color: #fff; text-shadow: 0 0 40px rgba(255,77,46,.25); }
.mult b.broke { color: var(--acc); } .mult b.won { color: var(--win); }
.mult small { display: block; margin-top: 10px; font-size: 13px; color: var(--mut); letter-spacing: .02em; }
.mult.idle b { font-size: 60px; color: rgba(255,255,255,.35); text-shadow: none; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,11,11,.55); backdrop-filter: blur(4px); }
.countdown b { font-family: var(--fn); font-weight: 300; font-size: 120px; color: #fff; }
.flash { position: absolute; inset: 0; background: var(--acc); opacity: 0; pointer-events: none; }
.flash.go { animation: flash .7s ease-out; } @keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }
.zones { position: absolute; right: 12px; top: 12px; display: grid; gap: 3px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.zones span { display: flex; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 4px; }
.zones span i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; } .zones span.on { background: rgba(255,255,255,.08); color: #fff; }

.bet { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; padding: 18px; border-top: 1px solid var(--line); background: var(--bg2); }
.bet .field { display: grid; gap: 8px; }
.bet label { font-size: 12px; color: var(--mut); display: flex; justify-content: space-between; }
.bet label a { color: var(--acc); cursor: pointer; }
.amt { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: 8px; background: #0B0B0B; border: 1px solid var(--line2); }
.amt input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-family: var(--fn); font-weight: 300; font-size: 28px; letter-spacing: -.02em; color: #fff; }
.amt span { color: var(--mut); font-size: 13px; }
.amt .pct { display: flex; gap: 4px; } .amt .pct button { height: 26px; padding: 0 8px; border-radius: 4px; background: rgba(255,255,255,.07); font-size: 11.5px; color: var(--mut); } .amt .pct button:hover { color: #fff; background: rgba(255,255,255,.14); }
.bet .go { min-width: 220px; }
.bet .cash { min-width: 260px; height: 54px; font-size: 18px; border-radius: 8px; }
.bet .cash b { font-family: var(--fn); font-weight: 300; font-size: 24px; }
.bet .note { grid-column: 1 / 3; font-size: 12.5px; color: var(--mut); }
.bet .note b { font-weight: 400; color: #fff; }
.locked { padding: 18px; border-top: 1px solid var(--line); background: var(--bg2); color: var(--mut); font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }

.side { display: grid; gap: 14px; }
.card { padding: 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.card h3 { font-size: 13px; color: var(--mut); letter-spacing: .02em; margin-bottom: 12px; }
.cid { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cid .logo { width: 56px; height: 56px; border-radius: 12px; }
.cid b { display: block; font-size: 22px; letter-spacing: -.02em; } .cid small { color: var(--mut); }
.cid .desc { color: var(--mut); font-size: 13px; margin-top: 6px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 13.5px; }
.kv span { color: var(--mut); } .kv b { font-weight: 400; text-align: right; } .kv b.n { font-family: var(--fn); font-weight: 300; font-size: 17px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.links a { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 5px; background: rgba(255,255,255,.06); font-size: 12px; color: var(--mut); } .links a:hover { color: #fff; }
.pull { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mut); }
.hist { display: grid; gap: 6px; }
.hrow { display: grid; grid-template-columns: 24px 1fr auto auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; background: rgba(255,255,255,.04); font-size: 12.5px; transition: background .2s; }
.hrow:hover { background: rgba(255,255,255,.08); }
.hrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--mut2); } .hrow.won i { background: var(--win); } .hrow.lost i { background: var(--acc); } .hrow.live i { background: var(--acc); animation: blink 1s infinite; }
.hrow b { font-family: var(--fn); font-weight: 300; font-size: 17px; } .hrow.won b { color: var(--win); } .hrow.lost b { color: var(--acc); }
.hrow .v { color: var(--mut); cursor: pointer; } .hrow .v:hover { color: #fff; }
.hrow small { color: var(--mut); }

/* ---- launch ---- */
.launch { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.form { padding: 24px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.f { display: block; margin-bottom: 16px; } .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lbl { display: block; font-size: 12px; color: var(--mut); margin-bottom: 7px; } .lbl b { color: #fff; font-weight: 400; }
.form input:not([type="range"]):not([type="file"]), .form textarea { display: block; width: 100%; font: 15px/1.4 var(--ff); color: #fff; background: #0B0B0B; border: 1px solid var(--line2); border-radius: 8px; padding: 12px 14px; outline: none; resize: none; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(255,77,46,.14); }
.form input::placeholder, .form textarea::placeholder { color: var(--mut2); }
#lSym { text-transform: uppercase; letter-spacing: .06em; }
.form input[type="range"] { width: 100%; height: 26px; -webkit-appearance: none; appearance: none; background: transparent; margin: 0; }
.form input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--acc) 0, var(--acc) var(--fill, 30%), var(--panel2) var(--fill, 30%)); }
.form input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid #0B0B0B; cursor: pointer; }
.form input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--panel2); }
.form input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #0B0B0B; cursor: pointer; }
.drop { position: relative; display: grid; place-items: center; min-height: 120px; border: 1.5px dashed var(--line2); border-radius: 8px; background: #0B0B0B; cursor: pointer; overflow: hidden; padding: 12px; text-align: center; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: var(--acc); }
.drop .ph { font-size: 13px; color: var(--mut); } .drop img { max-width: 112px; max-height: 112px; border-radius: 10px; }
.form [hidden] { display: none !important; }
.steps-log { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.steps-log .step { display: flex; gap: 8px; color: var(--mut); } .steps-log .step .i { color: var(--mut2); flex: 0 0 auto; }
.steps-log .step.ok .i { color: var(--win); } .steps-log .step.err, .steps-log .step.err .i { color: var(--acc); }
.steps-log .step a { color: #fff; text-decoration: underline; text-underline-offset: 3px; } .steps-log .step code { color: #fff; }
.rules { display: grid; gap: 10px; }
.rule { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13.5px; }
.rule .k { display: inline-flex; align-items: center; justify-content: center; height: 28px; border-radius: 4px; font-size: 12px; } .rule .k.acc { background: var(--acc); color: #0B0B0B; } .rule .k.win { background: var(--win); color: #0B0B0B; } .rule .k.wh { background: #fff; color: #0B0B0B; }
.recv { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: #0B0B0B; border: 1px solid var(--line); font-size: 12.5px; color: var(--mut); word-break: break-all; }
.recv b { display: block; color: #fff; font-weight: 400; margin-bottom: 4px; }

/* ---- house ---- */
.house .stats { grid-template-columns: repeat(3, 1fr); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 400; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); } .table tr:hover td { background: rgba(255,255,255,.03); }
.table td.n { font-family: var(--fn); font-weight: 300; font-size: 16px; }

/* ---- modal, toasts ---- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(100%, 640px); max-height: 90vh; overflow: auto; padding: 26px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); animation: pop .35s var(--ease); }
@keyframes pop { from { transform: translateY(14px); opacity: 0; } }
.modal-card .x { position: absolute; right: 12px; top: 10px; font-size: 24px; color: var(--mut); } .modal-card .x:hover { color: #fff; }
.modal-card h2 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; } .modal-card p { color: var(--mut); font-size: 13.5px; }
.seed { display: grid; gap: 10px; margin: 16px 0; }
.seed div { display: grid; gap: 4px; font-size: 12px; color: var(--mut); } .seed code { display: block; padding: 9px 10px; border-radius: 6px; background: #0B0B0B; border: 1px solid var(--line); color: #fff; word-break: break-all; font-size: 12px; }
.verdict { padding: 12px 14px; border-radius: 8px; font-size: 13.5px; background: rgba(255,255,255,.06); }
.verdict.ok { background: rgba(92,240,138,.12); color: var(--win); } .verdict.bad { background: rgba(255,77,46,.15); color: var(--acc); }
.replay { height: 160px; margin-top: 12px; border-radius: 8px; background: #0B0B0B; border: 1px solid var(--line); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 8px; background: #161616; border: 1px solid var(--line2); font-size: 13.5px; max-width: 360px; animation: pop .35s var(--ease); }
.toast.err { border-color: rgba(255,77,46,.6); } .toast.ok { border-color: rgba(92,240,138,.5); }
.toast a { color: var(--acc); }

/* ---- arena ---- */
.arena-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.arena-head h1 { font-size: 34px; letter-spacing: -.03em; line-height: 1.05; } .arena-head p { color: var(--mut); margin-top: 6px; max-width: 640px; font-size: 14px; }
.arena-head .btns { display: flex; gap: 8px; }
.arena-view .chart { height: min(58vh, 560px); min-height: 380px; }
.arena-view .stats { margin-top: 18px; }
.arena-below { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coinlist { display: grid; gap: 6px; }
.crow { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.04); transition: background .2s; }
.crow:hover { background: rgba(255,255,255,.08); } .crow .logo { width: 36px; height: 36px; border-radius: 8px; font-size: 12px; }
.crow b { display: block; font-weight: 400; } .crow small { color: var(--mut); font-size: 12px; } .crow small em { font-style: normal; color: var(--acc); }
.crow .n { font-family: var(--fn); font-weight: 300; font-size: 20px; } .crow .n small { font-family: var(--ff); font-size: 12px; }
.card h3 a { float: right; font-size: 12px; }
.game-top .strip { display: flex; gap: 4px; overflow: hidden; flex: 1; margin: 0 16px; justify-content: flex-end; }
.game-top .strip i { font-style: normal; font-family: var(--fn); font-weight: 300; font-size: 13px; padding: 2px 7px; border-radius: 4px; background: rgba(255,77,46,.16); color: var(--acc); cursor: pointer; white-space: nowrap; }
.game-top .strip i.hi { background: rgba(92,240,138,.16); color: var(--win); } .game-top .strip i.lo { background: rgba(255,255,255,.07); color: var(--mut); }
.game-top .pre { white-space: nowrap; }
.bet.idle { grid-template-columns: 1fr; align-items: center; }
.bet .hint { font-size: 13.5px; color: var(--mut); } .bet .hint b { font-weight: 400; color: #fff; } .bet .hint .v { color: var(--acc); cursor: pointer; }
.bet .pick { display: grid; gap: 6px; } .bet .pick .lbl { font-size: 12px; color: var(--mut); margin: 0; }
.bet select { height: 42px; padding: 0 12px; border-radius: 8px; background: #0B0B0B; border: 1px solid var(--line2); color: #fff; font: inherit; outline: none; min-width: 240px; }
.bet:not(.idle) { grid-template-columns: auto 1fr auto; } .bet:not(.idle) .note { grid-column: 1 / 4; }
.bet:not(.idle) .pick:empty { display: none; }
.house-stats { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1000px) { .coinpage, .launch { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } .nav a:nth-child(5) { display: none; } }
@media (max-width: 1000px) { .arena-below { grid-template-columns: 1fr; } .game-top .strip { display: none; } .bet:not(.idle) { grid-template-columns: 1fr; } .bet:not(.idle) .note { grid-column: 1; } }
@media (max-width: 720px) { .arena-head { flex-direction: column; align-items: flex-start; } .arena-view .chart { min-height: 300px; height: 48vh; } .game-top .pre { display: none; } .top { padding: 0 14px; } .brand span { display: none; } .chip.net { display: none; } .view { width: calc(100% - 28px); padding-top: 22px; } .head { flex-direction: column; align-items: flex-start; } .head h1 { font-size: 30px; } .chart { height: 320px; } .mult b { font-size: 64px; } .bet { grid-template-columns: 1fr; } .bet .note { grid-column: 1; } .bet .go, .bet .cash { width: 100%; } .stats, .house .stats { grid-template-columns: 1fr 1fr; } .nav a:nth-child(4) { display: none; } }
