/* Coincade — "Daylight": warm off-white, ink type, one tomato accent. The only dark, colourful things on a page are the games.
   Bricolage Grotesque (display) · Geist (text) · Geist Mono (numbers, addresses). Page-specific rules live in css/<page>.css. */
:root {
  --bg: #f4efe6; --bg2: #ece5d9; --card: #ffffff; --slab: #100f0d;
  --ink: #141210; --ink2: #2c2924; --muted: #6b6358; --faint: #a39a8c;
  --rule: rgba(20, 18, 16, .13); --rule2: rgba(20, 18, 16, .22);
  --accent: #ff4a1c; --accent-ink: #c8360c; --up: #16834a; --down: #c8360c;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 56px; --wrap: 1440px;
  --r: 24px; --r2: 16px;
  --shadow: 0 1px 0 rgba(20, 18, 16, .04), 0 10px 30px -12px rgba(60, 38, 16, .18);
  --shadow-lg: 0 2px 3px rgba(40, 24, 8, .12), 22px 40px 50px -22px rgba(70, 42, 14, .34), 64px 110px 130px -50px rgba(70, 42, 14, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
[hidden] { display: none !important; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 74, 28, .16); flex: none; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; font-optical-sizing: auto; }
.h1 { font-size: clamp(64px, 10.6vw, 156px); line-height: .86; letter-spacing: -.058em; }
.h2 { font-size: clamp(44px, 5.4vw, 76px); line-height: .92; letter-spacing: -.052em; }
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.08; letter-spacing: -.035em; }
.h1 em, .h2 em, .game-word { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; letter-spacing: -.01em; color: var(--ink2); max-width: 400px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.eyebrow b { font-weight: 600; }
.eyebrow .muted { font-weight: 400; }
.link { border-bottom: 1px solid var(--rule2); transition: border-color .2s; }
.link:hover { border-color: var(--ink); }
.up { color: var(--up); } .down { color: var(--down); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--rule2);
  background: transparent; font: 550 15px/1 var(--sans); letter-spacing: -.005em; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
.btn:active { transform: scale(.97); }
.btn.gold, .btn.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.gold:hover, .btn.ink:hover { background: #2a2622; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .arr { font-family: var(--mono); font-size: 15px; opacity: .75; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.ib { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--rule2); background: var(--card); display: grid; place-items: center; font-size: 15px; transition: border-color .2s; }
.ib:hover { border-color: var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 230, .84); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-color: var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 23px/1 var(--display); letter-spacing: -.035em; }
.brand svg { width: 32px; height: 32px; flex: none; transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-14deg); }
.menu { display: flex; gap: 2px; margin: 0 auto; padding: 5px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, .55); }
.menu a { padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.menu a:hover { background: rgba(20, 18, 16, .05); }
.menu a.on { background: var(--ink); color: #fff; }
.menu .dot { width: 7px; height: 7px; box-shadow: none; }
.top-r { display: flex; align-items: center; gap: 10px; }
.wallet { position: relative; }
.wallet .btn .wd { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.wmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--rule); z-index: 60; }
.wmenu button, .wmenu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; font-size: 14px; color: var(--ink2); }
.wmenu button:hover, .wmenu a:hover { background: var(--bg); color: var(--ink); }
.wmenu p { margin: 6px 12px 8px; font-size: 13px; color: var(--muted); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule2); background: transparent; place-items: center; }
.burger span { display: block; width: 15px; height: 1.5px; background: var(--ink); box-shadow: 0 5px 0 var(--ink); transform: translateY(-2.5px); }
.drawer { position: fixed; inset: 88px 0 auto 0; z-index: 49; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 6px var(--gutter) 22px; transform: translateY(-110%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
.drawer.open { transform: none; visibility: visible; }
.drawer a { display: flex; justify-content: space-between; padding: 16px 2px; border-bottom: 1px solid var(--rule); font: 700 26px/1.1 var(--display); letter-spacing: -.035em; }
.drawer a.on { color: var(--accent); }

/* ---------- section heads ---------- */
.sec { padding-top: 96px; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.sec-head > :first-child { grid-column: 1 / 8; }
.sec-head > :first-child p { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 46ch; }
.sec-head > :last-child:not(:first-child) { grid-column: 8 / -1; justify-self: end; }

/* ---------- tabs, chips ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, .55); }
.tabs button { height: 34px; padding: 0 15px; border: 0; border-radius: 999px; background: none; color: var(--ink2); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.tabs button:hover { background: rgba(20, 18, 16, .05); }
.tabs button.on { background: var(--ink); color: #fff; }
.tabs.sm button { height: 30px; padding: 0 12px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule2); font-size: 13px; font-weight: 500; color: var(--ink2); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }

/* ---------- CA plate ---------- */
.ca { display: flex; align-items: center; gap: 16px; max-width: 420px; background: var(--card); border-radius: 18px; padding: 12px 12px 12px 20px; box-shadow: var(--shadow); }
.ca .ca-t { flex: 1; min-width: 0; }
.ca .t { display: block; font-size: 13px; color: var(--muted); }
.ca .t b { color: var(--ink); font-weight: 600; font-size: 14px; margin-right: 6px; }
.ca code { display: block; margin-top: 2px; font: 500 15px/1.3 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca.soon code { font-family: var(--sans); color: var(--ink2); }
.ca button { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--bg); font-size: 14px; font-weight: 550; display: inline-flex; align-items: center; gap: 8px; transition: background .2s; }
.ca button:hover { background: var(--bg2); }
.ca button svg { width: 15px; height: 15px; }

/* ---------- game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: block; background: var(--card); border-radius: var(--r); padding: 8px; box-shadow: 0 1px 0 rgba(20, 18, 16, .03), 0 1px 2px rgba(20, 18, 16, .05); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .scr { position: relative; aspect-ratio: 4 / 3; border-radius: 17px; overflow: hidden; background: var(--slab); isolation: isolate; }
.card .scr .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: 0; transition: opacity .5s; z-index: 1; }
.card .scr .shot.ok { opacity: 1; }
/* where the action is in each 9:16 cabinet, so the 4:3 crop shows it */
.card .scr .shot[data-cab="stack"], .card .scr .shot[data-cab="blast"], .card .scr .shot[data-cab="dodge"] { object-position: 50% 88%; }
.card .scr .shot[data-cab="dash"] { object-position: 50% 72%; }
.card .scr .shot[data-cab="brick"] { object-position: 50% 22%; }
.card .scr .shot[data-cab="snake"], .card .scr .shot[data-cab="flap"], .card .scr .shot[data-cab="moon"] { object-position: 50% 50%; }
.card .scr .poster { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--c1, #ff4a1c) 0, transparent 62%), var(--c0, var(--slab)); }
.card .scr .poster img { width: 34%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 12px 30px -8px rgba(0, 0, 0, .6); }
.card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; opacity: 0; transition: opacity .4s; pointer-events: none; }
.card iframe.on { opacity: 1; }
.card .live { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); font: 500 12px/1 var(--mono); color: var(--ink); }
.card .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card .info { padding: 16px 10px 6px; }
.card .r1 { display: flex; align-items: center; gap: 12px; }
.card .lg { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg2); flex: none; box-shadow: 0 0 0 1px var(--rule); }
.card .nm { flex: 1; min-width: 0; }
.card .nm b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .nm span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .nm span i { font-style: normal; font-family: var(--mono); color: var(--ink2); }
.card .nm span em { font-style: normal; }
.card .r2 { display: grid; grid-template-columns: 1.15fr .9fr 1fr; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.card .r2 span { display: block; font-size: 12px; color: var(--muted); }
.card .r2 b { display: block; font: 500 16px/1.3 var(--mono); letter-spacing: -.02em; margin-top: 2px; }
.empty { padding: 56px 24px; border: 1px dashed var(--rule2); border-radius: var(--r); text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font: 700 26px/1.15 var(--display); letter-spacing: -.035em; margin-bottom: 8px; }
.skel { background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .95), rgba(255, 255, 255, .5)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- panels, boards, tables ---------- */
.panel, .tile { position: relative; background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: 0 1px 0 rgba(20, 18, 16, .03), 0 1px 2px rgba(20, 18, 16, .05); min-width: 0; }
.tile .k { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ph h2 { font-size: 22px; line-height: 1.1; letter-spacing: -.03em; }
.board { display: grid; }
.board .r { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--rule); font-size: 15px; }
.board .r:first-child { border-top: 0; }
.board .r .p { font: 500 13px/1 var(--mono); color: var(--muted); }
.board .r:nth-child(1) .p { color: var(--accent-ink); }
.board .r .s { font: 500 15px/1 var(--mono); }
.board .r.you { background: var(--bg); border-radius: 10px; padding-inline: 10px; }
.board .empty-b { padding: 22px 8px; color: var(--muted); font-size: 14px; text-align: center; }
.timer { font: 500 44px/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; margin: 22px 0 14px; gap: 3px; }
.split-bar i { display: block; height: 100%; border-radius: 3px; }
.legend { display: grid; gap: 8px; font-size: 14px; color: var(--ink2); }
.legend span { display: flex; align-items: center; gap: 10px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { margin-left: auto; font: 500 14px/1 var(--mono); color: var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--rule); }
.tbl td.m { font-family: var(--mono); }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 10px; }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; }
.inp { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--rule2); background: var(--card); outline: none; transition: border-color .2s, box-shadow .2s; }
.inp:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 18, 16, .06); }
textarea.inp { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.inp::placeholder { color: var(--faint); }
.inp.err { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 74, 28, .12); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule2); background: var(--card); font-size: 14px; font-weight: 500; color: var(--ink2); display: inline-flex; align-items: center; gap: 7px; transition: border-color .2s, background .2s, color .2s; }
.seg button svg { width: 14px; height: 14px; }
.seg button:hover { border-color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg button.auto { border-color: var(--accent); border-style: dashed; color: var(--accent-ink); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches input { width: 44px; height: 44px; border: 1px solid var(--rule2); border-radius: 12px; background: var(--card); padding: 4px; cursor: pointer; }

/* ---------- toasts, modal ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(520px, calc(100vw - 32px)); }
.toast { padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 20px 50px -20px rgba(40, 24, 8, .5); font-size: 14px; animation: tin .35s var(--ease); }
.toast.bad { background: var(--accent-ink); }
@keyframes tin { from { opacity: 0; transform: translateY(12px); } }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(20, 18, 16, .38); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal .box { width: min(500px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 30px; border-radius: 26px; background: var(--card); box-shadow: 0 40px 120px -30px rgba(40, 24, 8, .5); }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--muted); margin: 0 0 18px; }

/* ---------- footer ---------- */
.foot { margin-top: 120px; border-top: 1px solid var(--rule); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 44px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
.foot nav { display: grid; gap: 10px; font-size: 15px; font-weight: 500; }
.foot nav a:hover { color: var(--accent-ink); }
.foot .note { margin: 18px 0 0; font-size: 14px; color: var(--muted); max-width: 44ch; }
.foot .big { grid-column: 1 / -1; margin-top: 36px; font: 700 min(14.5vw, 210px)/.8 var(--display); letter-spacing: -.065em; color: rgba(20, 18, 16, .06); user-select: none; white-space: nowrap; text-align: center; overflow: hidden; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 60ms + 60ms); }
.split.in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .split .w > span { transition: none !important; opacity: 1 !important; transform: none !important; }
  .card:hover, .brand:hover svg, .btn:hover .arr { transform: none; }
  .skel, .toast, .modal { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .menu { display: none; }
  .burger { display: grid; }
  .top-r { margin-left: auto; }
}
@media (max-width: 760px) {
  .sec { padding-top: 72px; }
  .sec-head { display: block; padding-bottom: 20px; margin-bottom: 20px; }
  .sec-head > :last-child:not(:first-child) { margin-top: 16px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .top .wrap { height: 72px; gap: 10px; }
  .drawer { inset: 72px 0 auto 0; }
  .brand { font-size: 20px; gap: 10px; } .brand svg { width: 28px; height: 28px; }
  .top-r .launch-cta { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { border-radius: 20px; padding: 6px; }
  .card .scr { border-radius: 15px; }
  .card .info { padding: 12px 6px 4px; }
  .card .r1 { gap: 10px; }
  .card .lg { width: 32px; height: 32px; }
  .card .nm b { font-size: 15px; }
  .card .nm span { font-size: 12px; }
  .card .nm span em { display: none; }
  .card .r2 { grid-template-columns: 1fr 1fr; margin-top: 12px; padding-top: 10px; }
  .card .r2 > div:nth-child(3) { display: none; }
  .card .r2 b { font-size: 15px; }
  .panel, .tile { padding: 20px; border-radius: 20px; }
  .ca { max-width: none; }
  .timer { font-size: 34px; }
  .btn.lg { height: 52px; padding: 0 22px; }
  .foot { margin-top: 88px; }
}

/* placeholder cards in a young arcade */
.card.ghost { background: transparent; box-shadow: none; border: 1.5px dashed var(--rule2); }
.card.ghost:hover { border-color: var(--ink); transform: none; box-shadow: none; }
.card.ghost .scr { background: transparent; display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--muted); border: 1.5px dashed var(--rule); }
.card.ghost .lg { background: transparent; box-shadow: 0 0 0 1.5px var(--rule2) inset; }
