/* Coin Casino in CasinoPad's look: the playbook (launch), a coin's page, the floor, how it works, the 404. Tokens only. */

body.has-demo .hc { padding-top: calc(var(--top-h) + 30px + 40px); }
.page-top { padding-top: 64px; }

/* ---------- the playbook (launch) ---------- */
.pb { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; margin-top: 18px; align-items: start; }
.pb > *, .pb-main > *, .side > * { min-width: 0; }
.pad { padding: 26px; }
.card h3, .pad h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 700 22px/1.2 var(--font-text); letter-spacing: -0.02em; }
.card h3 span, .pad h3 span { font: 500 13px var(--font-mono); color: var(--muted); letter-spacing: 0; }
.gl { margin-top: 16px; display: grid; gap: 10px; }
.gr { border-radius: 20px; background: var(--bg); box-shadow: var(--ring); overflow: hidden; }
.gr .top { display: grid; grid-template-columns: 50px 1fr 64px 34px; gap: 12px; align-items: center; padding: 12px; }
.gr .ic { width: 50px; height: 50px; border-radius: 14px; overflow: hidden; }
.gr .ic svg { width: 100%; height: 100%; }
.gr .nm b { display: block; font-weight: 700; font-size: 17px; }
.gr .nm span { font: 500 12px var(--font-mono); color: var(--muted); }
.gr .pc { font: 600 19px var(--font-mono); text-align: right; }
.gr .x { width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: var(--ring); color: var(--muted); border: 0; cursor: pointer; }
.gr input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--pu); }
.gr .opts { padding: 2px 14px 16px; display: grid; gap: 12px; }
.ol { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); letter-spacing: 0; text-transform: none; }
.ol span { font: 500 12.5px var(--font-mono); color: var(--pu); }
.card .seg, .gr .seg, .glob .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.card .seg button, .gr .seg button, .glob .seg button { height: 36px; padding: 0 13px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--ring); font-weight: 600; font-size: 13.5px; color: var(--muted); border: 0; cursor: pointer; }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--ink) !important; color: #fff !important; box-shadow: none !important; }
.seg button.on.r { background: var(--pk) !important; }
.seg button.on.z { background: var(--pu) !important; }
.seg-sm button { height: 32px !important; padding: 0 12px !important; font-size: 13px !important; }
.tg { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: var(--ring); font-weight: 600; font-size: 14px; cursor: pointer; position: relative; }
.tg input.t { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 42px; height: 25px; border-radius: var(--r-pill); background: #D9E0EE; position: relative; transition: background .25s; flex: none; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
input.t:checked + .sw { background: var(--pu); }
input.t:checked + .sw::after { transform: translateX(17px); }
input.t:focus-visible + .sw { outline: 2px solid var(--pu); outline-offset: 2px; }
.rng { width: 100%; accent-color: var(--pu); }
.empty-gl { margin-top: 16px; padding: 30px; border-radius: 20px; border: 2px dashed var(--line-2); text-align: center; color: var(--muted); line-height: 1.6; }
.glob { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.warn { margin-top: 8px; font: 500 12px var(--font-mono); color: var(--pk); }
.note { margin-top: 10px; font: 500 12px/1.6 var(--font-mono); color: var(--dim); }
.side { display: grid; gap: 16px; }
.mix { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-top: 16px; }
.donut svg { width: 150px; height: 150px; }
.leg { display: grid; gap: 7px; }
.leg div { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; }
.leg i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.leg b { margin-left: auto; font: 600 13px var(--font-mono); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.kv > div { padding: 14px; border-radius: 16px; background: var(--bg); box-shadow: var(--ring); font: 500 12px var(--font-mono); color: var(--muted); }
.kv b { display: block; margin-top: 5px; font: 700 22px var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.sim { padding: 22px; }
.sim h3 { align-items: center; }
.sim-vol { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.sim-chart { margin-top: 12px; }
.sim-chart svg { display: block; }
.sim-legend { display: flex; gap: 16px; margin-top: 6px; font: 500 12.5px var(--font-mono); color: var(--muted); }
.sim-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.sim .row { display: flex; justify-content: space-between; margin-top: 10px; font: 500 13px var(--font-mono); color: var(--muted); }
.sim .row b { color: var(--ink); font-weight: 600; }
.launch { padding: 24px; }
.launch .field { margin-top: 14px; }
.launch .field .ol { margin-bottom: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split { display: flex; height: 34px; border-radius: 12px; overflow: hidden; margin-top: 16px; font: 600 12px var(--font-mono); }
.split i { display: grid; place-items: center; font-style: normal; color: #fff; white-space: nowrap; overflow: hidden; padding: 0 8px; min-width: 0; }
.go { width: 100%; height: 58px; font-size: 17px; margin-top: 16px; }
.costs { margin-top: 16px; font-size: 13.5px; }
.costs dt { color: var(--muted); }
.costs .total { color: var(--ink); border-top: 1px solid var(--line); }
.todo { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.notes { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
details.links summary { color: var(--muted); font-weight: 600; font-size: 14px; }
.prev .coin-card { margin-top: 14px; box-shadow: var(--ring); }
.prev h3 { margin-bottom: 0; }

/* ---------- a coin's page ---------- */
.coin-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.coin-title { display: grid; gap: 10px; }
.coin-title .k { font: 600 13px var(--font-mono); color: var(--pu); }
.coin-title h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: .95; letter-spacing: -.05em; }
.coin-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.coin-now .now { background: #fff; }
.hist b.c-won { background: var(--good); }
.hist b.c-lost { background: var(--ink); }
.coin-sec { margin-top: 36px; }
.coin-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 16px; }
.tile.static { cursor: default; }
.tile.static:hover { transform: none; }
.coin-kv { grid-template-columns: repeat(6, 1fr); margin-top: 26px; }
.coin-grid { display: grid; grid-template-columns: 1fr 400px; gap: 20px; margin-top: 30px; align-items: start; }
.coin-main, .coin-side { display: grid; gap: 20px; align-content: start; }
.coin-grid > *, .coin-main > * { min-width: 0; }
.log-card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 8px; margin: 0; }
.playbook .pb-list { display: grid; gap: 8px; margin-top: 16px; }
.pb-list > div { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; background: var(--bg); box-shadow: var(--ring); }
.pb-list .ic { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; }
.pb-list .ic svg { width: 100%; height: 100%; }
.pb-list b { display: block; font-size: 15px; }
.pb-list span { font: 500 11.5px var(--font-mono); color: var(--muted); }
.pb-list em { font: 600 12px var(--font-mono); font-style: normal; color: var(--pu); }
.playbook .split i { padding: 0 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin-top: 14px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; }
.about p { margin-top: 10px; color: var(--ink-2); }
.chart { margin-top: 12px; }
.chart.empty { padding: 40px 0; text-align: center; }

/* ---------- the floor ---------- */
.floor { margin-top: 36px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.controls .input { margin-left: auto; max-width: 300px; height: 46px; }
.live-line { margin-top: 10px; font: 500 13px var(--font-mono); }
.prof h1 { font-size: clamp(36px, 5vw, 64px); }

/* ---------- how it works ---------- */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.flow-col { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.flow-box { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--bg); box-shadow: var(--ring); }
.flow-box b { font: 700 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.flow-box p { font-size: 14.5px; color: var(--muted); }
.flow-box.hot { background: var(--grad); box-shadow: none; color: #fff; }
.flow-box.hot p, .flow-box.hot .label { color: rgba(255, 255, 255, .85); }
.flow-box.won-box { background: #EAFBF3; box-shadow: 0 0 0 1px #B6EED3; }
.flow-box.lost-box { background: #FFF1F6; box-shadow: 0 0 0 1px #FFD0E1; }
.flow-arrow { font: 500 13px var(--font-mono); color: var(--muted); padding-left: 16px; }
.flow-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.odds { margin-top: 40px; padding: 8px 24px; overflow-x: auto; }
.odds table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.odds th { text-align: left; font: 500 12px var(--font-mono); color: var(--muted); padding: 14px 10px 12px 0; border-bottom: 1px solid var(--line-2); }
.odds td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.odds tr:last-child td { border-bottom: 0; }
.odds .r { text-align: right; padding-right: 0; }
.odds-game { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.odds-game .ic { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; display: inline-grid; }
.odds-game .ic svg { width: 100%; height: 100%; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.body { margin-top: 12px; color: var(--ink-2); }
.faq { display: grid; gap: 10px; margin-top: 36px; max-width: 860px; }
.faq details { border: 0; border-radius: 20px; background: #fff; box-shadow: var(--ring); padding: 18px 22px; }
.faq summary { cursor: pointer; font: 700 18px var(--font-text); letter-spacing: -.01em; }
.faq p { margin-top: 10px; color: var(--muted); line-height: 1.55; }
.risks h3 { margin-bottom: 6px; }
.risk-list { display: grid; gap: 10px; margin-top: 10px; padding-left: 18px; list-style: disc; color: var(--muted); line-height: 1.55; }

/* ---------- 404 ---------- */
.notfound { gap: 16px; padding-bottom: 90px; }
.nf-tile { width: 180px; border-radius: 26px; overflow: hidden; transform: rotate(-6deg); box-shadow: 0 30px 60px -30px rgba(20, 30, 90, .6); }
.nf-tile svg { width: 100%; height: auto; display: block; }

/* ---------- phones ---------- */
@media (max-width: 1100px) {
  .pb, .coin-grid { grid-template-columns: 1fr; }
  .coin-tiles { grid-template-columns: repeat(3, 1fr); }
  .coin-kv { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .flow, .two-col { grid-template-columns: 1fr; }
  .coin-hero { grid-template-columns: auto 1fr; }
  .coin-actions { grid-column: 1 / -1; }
  .controls .input { margin-left: 0; max-width: none; }
}
@media (max-width: 640px) {
  .glob { grid-template-columns: 1fr; }
  .mix { grid-template-columns: 110px 1fr; }
  .donut svg { width: 110px; height: 110px; }
  .row2 { grid-template-columns: 1fr; }
  .coin-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .coin-kv { grid-template-columns: 1fr 1fr; }
  .flow-pair { grid-template-columns: 1fr; }
  .odds td.muted, .odds th:nth-child(2) { display: none; }
  .coin-now .now { font-size: 15px; height: auto; min-height: 50px; padding-top: 6px; padding-bottom: 6px; white-space: normal; max-width: 100%; }
  .coin-now .now span { white-space: normal; }
  .gr .top { grid-template-columns: 44px 1fr 52px 32px; gap: 10px; }
  .gr .ic { width: 44px; height: 44px; }
}

/* provably fair: the check box, its verdict, the seeds */
.fair-form { display: flex; gap: 10px; margin-top: 14px; }
.fair-form .input { flex: 1; min-width: 0; font-size: 14px; }
.fair-result { margin-top: 18px; }
.fair-result .facts dd { text-align: left; }
.fair-result .ic { display: inline-block; width: 20px; height: 20px; vertical-align: -5px; }
.fair-result .ic svg { width: 100%; height: 100%; }
.break { word-break: break-all; }
.verdict { margin-top: 16px; padding: 13px 16px; border-radius: 14px; background: var(--bg-2); font-size: 14.5px; line-height: 1.55; }
.verdict.ok { background: #E7F7EF; color: #0B6B43; }
.verdict.ok svg { vertical-align: -2px; }
.verdict.bad { background: #FFE8EE; color: #A3123A; }
.seed-list { display: grid; margin-top: 10px; }
.seed-row { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr) max-content; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.seed-row em { font-style: normal; font-weight: 700; color: var(--pu); }
.seed-row.cur .seed-date { color: var(--ink); font-weight: 700; }
.seed-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seed-row .icon-btn, .fair-result .icon-btn { all: unset; display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--muted); cursor: pointer; vertical-align: -4px; }
.seed-row .icon-btn:hover { color: var(--ink); }
.seed-row .icon-btn:focus-visible { outline: 2px solid var(--pu); border-radius: 4px; }
.icon-btn { border: 0; background: none; padding: 2px; color: var(--muted); cursor: pointer; vertical-align: middle; }
.icon-btn:hover { color: var(--ink); }
.bank-facts dd { text-align: right; }
a.res-tag { text-decoration: none; border-bottom: 1px dotted currentColor; }
a.res-tag:hover { border-bottom-style: solid; }
@media (max-width: 720px) {
  .seed-row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .seed-row .seed-hash, .seed-row .seed-seed { grid-column: 1 / -1; }
  .fair-form { flex-direction: column; }
}
