/* qw3rk — chunky, friendly, a bit daft. */
[hidden] { display: none !important; }
:root {
  --bg: #FFF6E9; --paper: #FFFFFF; --ink: #1C1A24; --muted: #6B6577;
  --hot: #FF5A36; --mint: #22C99A; --butter: #FFD23F; --lilac: #B49CFF; --bad: #F0445A;
  --line: 3px solid var(--ink); --shadow: 0 5px 0 var(--ink); --r: 16px;
  --display: 'Bricolage Grotesque', ui-rounded, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
[data-theme="midnight"] { --bg:#14132B; --paper:#1F1D3D; --ink:#F4F1FF; --muted:#A9A3C9; --hot:#FF7AB6; --butter:#7AD7FF; }
[data-theme="matcha"]   { --bg:#EEF5E6; --paper:#FFFFFF; --ink:#1F3324; --muted:#5D7564; --hot:#3E9B5B; --butter:#D9F2A6; }
[data-theme="bubblegum"]{ --bg:#FFE9F4; --paper:#FFFFFF; --ink:#3A1631; --muted:#8A5A7E; --hot:#FF3EA5; --butter:#BDF0FF; }
[data-theme="terminal"] { --bg:#0B0F0B; --paper:#101810; --ink:#7CFF8A; --muted:#4BA357; --hot:#7CFF8A; --butter:#1F3A22; --display: var(--mono); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.5;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
a { color: inherit; }
main { max-width: 820px; margin: 0 auto; padding: 0 18px 40px; }

/* header */
.top { display:flex; justify-content:space-between; align-items:center; max-width: 980px; margin: 0 auto; padding: 16px 18px; gap: 12px; }
.logo { display:flex; gap:4px; text-decoration:none; }
.cap { display:inline-grid; place-items:center; width:34px; height:36px; background:var(--paper); border:var(--line); border-radius:9px;
  box-shadow: 0 4px 0 var(--ink); font: 800 20px/1 var(--mono); transition: transform .08s; }
.cap.hot { background: var(--hot); color: #fff; }
.logo:hover .cap:nth-child(odd) { transform: translateY(2px) rotate(-4deg); }
.logo:hover .cap:nth-child(even) { transform: translateY(-2px) rotate(4deg); }
.nav { display:flex; gap:8px; flex-wrap: wrap; justify-content:flex-end; }

/* keycap buttons */
.key { font: 600 16px/1 var(--display); color: var(--ink); background: var(--paper); border: var(--line); border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow); cursor: pointer; transition: transform .06s, box-shadow .06s; text-decoration:none; display:inline-flex; gap:6px; align-items:center; justify-content:center; }
.key:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.key.small { padding: 9px 12px; font-size: 15px; }
.key.hot { background: var(--hot); color: #fff; }
[data-theme="terminal"] .key.hot { color: #0B0F0B; }
.key[disabled] { opacity: .5; cursor: not-allowed; }
.pro-btn { background: var(--butter); }
.pill { font: 600 14px/1 var(--display); border: 2px solid var(--ink); border-radius: 99px; padding: 8px 14px; background: var(--paper); color: var(--ink); text-decoration:none; cursor:pointer; }
.pill:hover { background: var(--butter); }

/* hero */
.hero { text-align:center; padding: 18px 0 8px; }
.eyebrow { font: 600 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; font-weight: 800; }
.squiggle { background: linear-gradient(transparent 62%, var(--butter) 62%); padding: 0 4px; }
h2 { font-size: 26px; margin: 0 0 10px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.hot-text { color: var(--hot); }

/* cards */
.card { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: 0 8px 0 var(--ink); padding: 22px; margin: 18px 0; }

/* game */
.game { position: relative; cursor: text; outline: none; }
.game:focus-within, .game:focus { box-shadow: 0 8px 0 var(--hot); border-color: var(--ink); }
.round-row { display:flex; align-items:center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.dots { display:flex; gap:6px; }
.dots i { width:14px; height:14px; border-radius:50%; border: 2px solid var(--ink); }
.dots i.done { background: var(--mint); } .dots i.now { background: var(--butter); }
.round-name { font-weight: 700; }
.live { margin-left:auto; font: 600 14px var(--mono); color: var(--muted); }
.text { font: 400 clamp(19px, 3.4vw, 26px)/1.6 var(--mono); min-height: 3.2em; word-break: break-word; user-select: none; }
.text .c { color: color-mix(in srgb, var(--ink) 38%, transparent); border-radius: 3px; }
.text .c.ok { color: var(--ink); }
.text .c.cur { background: var(--butter); color: var(--ink); box-shadow: 0 3px 0 var(--hot); animation: blink 1s steps(2) infinite; }
.text .c.miss { background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad); }
.text .c.sp { background: radial-gradient(circle, color-mix(in srgb, var(--ink) 22%, transparent) 2px, transparent 2.5px) center / 100% 100% no-repeat; }
.text .c.sp.cur { background-color: var(--butter); }
@keyframes blink { 50% { box-shadow: 0 3px 0 transparent; } }
.game.shake { animation: shake .18s; }
@keyframes shake { 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
.typer { position:absolute; opacity:0; left:0; top:0; width:100%; height:100%; border:0; font-size:16px; cursor:text; caret-color: transparent; }
.hint { margin-top: 14px; color: var(--muted); font-size: 15px; }
.mobile-only { display:none; } @media (pointer: coarse) { .mobile-only { display:inline; } }

/* Kev the Key */
.kev { display:flex; align-items:center; gap: 14px; margin: 4px 6px 10px; }
.kev-face { flex: none; width: 58px; height: 60px; background: var(--hot); border: var(--line); border-radius: 14px; box-shadow: 0 5px 0 var(--ink);
  position: relative; display:flex; justify-content:center; gap: 10px; padding-top: 16px; animation: bob 3s ease-in-out infinite; }
.kev-face .eye { width: 9px; height: 12px; background: var(--ink); border-radius: 50%; animation: blinkEye 4s infinite; }
.kev-face .mouth { position:absolute; bottom: 12px; left: 50%; width: 18px; height: 9px; transform: translateX(-50%); border-bottom: 3px solid var(--ink); border-radius: 0 0 12px 12px; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes blinkEye { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.bubble { position: relative; background: var(--paper); border: var(--line); border-radius: 14px; padding: 10px 14px; margin: 0; font-size: 16px; }
.bubble::before { content:''; position:absolute; left:-11px; top: 50%; width: 16px; height: 16px; background: var(--paper); border-left: var(--line); border-bottom: var(--line); transform: translateY(-50%) rotate(45deg); }

/* results */
.results { text-align: center; }
.big-row { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 16px; }
.big { background: var(--bg); border: var(--line); border-radius: 14px; padding: 12px 6px; }
.big b { display:block; font-size: clamp(28px, 6vw, 44px); line-height: 1; font-weight: 800; }
.big span { font: 600 12px var(--mono); text-transform: uppercase; color: var(--muted); }
.grid { font-size: 20px; line-height: 1.25; margin: 12px auto; white-space: pre-wrap; font-family: inherit; }
.share-row { display:flex; gap: 10px; justify-content:center; flex-wrap: wrap; margin: 12px 0; }
.small-row { gap: 8px; }
.next { font-family: var(--mono); color: var(--muted); }
.vs { font-weight: 700; background: var(--butter); border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; display: inline-block; color: #1C1A24; }

.banner { max-width: 820px; margin: 0 auto 4px; padding: 12px 16px; background: var(--butter); border: var(--line); border-radius: 14px; font-weight: 700; text-align:center; color:#1C1A24; }
.banner { margin-left: max(18px, calc(50% - 392px)); margin-right: max(18px, calc(50% - 392px)); }

/* sections */
.how { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0; }
.step { background: var(--paper); border: var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.step h3 { margin: 8px 0 4px; } .step p { margin: 0; color: var(--muted); font-size: 15px; }
.num { display:inline-grid; place-items:center; width: 32px; height: 32px; border-radius: 9px; background: var(--butter); border: 2px solid var(--ink); font: 800 16px var(--mono); color:#1C1A24; }
.league-cta { display:flex; align-items:center; gap: 18px; background: var(--lilac); color: #1C1A24; }
.league-cta p { margin: 0; }
.faq details { background: var(--paper); border: var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; } .faq p { margin: 8px 0 0; color: var(--muted); }
.foot { text-align:center; color: var(--muted); font-size: 14px; padding: 20px; }

/* modals */
.modal { width: min(560px, calc(100vw - 24px)); max-height: 88vh; border: var(--line); border-radius: 20px; box-shadow: 0 10px 0 var(--ink); background: var(--paper); color: var(--ink); padding: 24px; }
.modal::backdrop { background: rgba(28,26,36,.45); backdrop-filter: blur(3px); }
.x { position:absolute; right: 14px; top: 14px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 10px; width: 36px; height: 36px; cursor:pointer; font-size: 16px; }
.perks { list-style: none; padding: 0; margin: 14px 0; } .perks li { padding: 8px 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 15%, transparent); }
.tiny { font-size: 13px; color: var(--muted); }
.field { width: 100%; font: 500 17px var(--display); padding: 12px 14px; border: var(--line); border-radius: 12px; margin: 8px 0 12px; background: var(--bg); color: var(--ink); }
.plans { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.plan { border: var(--line); border-radius: 14px; padding: 14px; text-align:center; background: var(--bg); }
.plan b { font-size: 26px; display:block; } .plan .save { font: 700 12px var(--mono); background: var(--mint); color: #fff; border-radius: 99px; padding: 3px 8px; }
.check { display:flex; gap: 8px; align-items:flex-start; font-size: 14px; margin: 10px 0; }
.tabs { display:flex; gap: 6px; margin: 8px 0 12px; }
.tab { border: 2px solid var(--ink); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 600 14px var(--display); cursor: pointer; }
.tab.on { background: var(--ink); color: var(--paper); }
.board ol { padding: 0; margin: 0; list-style: none; }
.board li { display:flex; gap: 10px; padding: 9px 4px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 15%, transparent); align-items:center; }
.board li .pos { font: 700 14px var(--mono); width: 30px; } .board li .nm { flex: 1; font-weight: 600; } .board li .sc { font: 700 15px var(--mono); }
.board li.me { background: var(--butter); border-radius: 8px; color:#1C1A24; }
.badge { white-space: nowrap; font: 700 11px var(--mono); background: var(--butter); border: 1.5px solid var(--ink); border-radius: 6px; padding: 1px 5px; margin-left: 6px; color:#1C1A24; }
.stat-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-grid div { border: var(--line); border-radius: 12px; padding: 10px; text-align:center; background: var(--bg); }
.stat-grid b { display:block; font-size: 26px; } .stat-grid span { font: 600 11px var(--mono); color: var(--muted); text-transform: uppercase; }
.spark { display:flex; align-items:flex-end; gap: 4px; height: 90px; padding: 6px; border: var(--line); border-radius: 12px; background: var(--bg); }
.spark i { flex:1; background: var(--hot); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.spark i.empty { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.themes { display:flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.row { display:flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.league-item { border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; margin: 8px 0; display:flex; justify-content: space-between; align-items:center; gap: 8px; }
code.code { font: 700 15px var(--mono); background: var(--butter); padding: 2px 6px; border-radius: 6px; color:#1C1A24; }

.toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: transform .25s; z-index: 99; max-width: 90vw; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 640px) {
  .lbl { display: none; }
  .cap { width: 26px; height: 28px; font-size: 16px; border-radius: 7px; }
  .logo { gap: 3px; } .top { padding: 12px; } .nav { gap: 6px; flex-wrap: nowrap; }
  .key.small { padding: 7px 9px; font-size: 15px; border-radius: 10px; }
  .how { grid-template-columns: 1fr; }
  .league-cta { flex-direction: column; align-items: flex-start; }
  .card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- add-ons: sponsors, teams, merch ---------- */
.sponsor-bar { display:flex; align-items:center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 6px 0 -4px; font-size: 15px; }
.sponsor-bar a { font-weight: 800; }
.ad-label { font: 700 11px var(--mono); text-transform: uppercase; border: 1.5px solid var(--ink); border-radius: 6px; padding: 1px 6px; background: var(--paper); }
.sponsor-card { border: 2px dashed var(--ink); border-radius: 14px; padding: 12px 14px; margin: 14px auto; max-width: 520px; text-align: left; display:flex; gap: 10px; align-items:center; justify-content: space-between; flex-wrap: wrap; }
.merch-nudge { display:block; margin: 12px auto; max-width: 520px; padding: 12px 14px; border: var(--line); border-radius: 14px; background: var(--butter); color: #1C1A24; text-decoration: none; font-weight: 700; }
.merch-nudge:hover { transform: translateY(-1px); }
.teams-line { text-align:center; color: var(--muted); margin: -4px 0 20px; }
.team-dot { display:inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); vertical-align: middle; margin-right: 4px; }
.league-item .acts { display:flex; gap: 6px; flex-wrap: wrap; }
.team-head { display:flex; align-items:center; gap: 10px; margin: 14px 0 6px; padding: 8px 12px; border-radius: 12px; color: #fff; font-weight: 800; }
.upgrade-box { border: var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; background: var(--bg); }
/* shared page bits for teams / sponsor / shop / admin pages */
.page-hero { text-align:left; padding: 18px 0 6px; }
.page-hero h1 { margin-bottom: 10px; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }
.cols { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.cols .step h3 { margin-top: 4px; }
.price-row { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.price-card { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.price-card .amt { font-size: 40px; font-weight: 800; line-height: 1; margin: 8px 0; }
.price-card ul { padding-left: 18px; margin: 8px 0 14px; }
.products { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.product { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display:flex; flex-direction: column; gap: 8px; }
.product .art { background: var(--bg); border: 2px solid var(--ink); border-radius: 12px; aspect-ratio: 4/3; display:grid; place-items:center; overflow:hidden; }
.product .art svg { width: 90%; height: 90%; }
.product h3 { margin: 4px 0 0; } .product p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.product .buy-row { display:flex; justify-content: space-between; align-items:center; }
.product .cost { font: 800 20px var(--mono); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align:left; padding: 8px 6px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 15%, transparent); }
.table td.n, .table th.n { text-align: right; font-family: var(--mono); }
.preview-game { pointer-events: none; }
@media (max-width: 640px) { .cols, .price-row { grid-template-columns: 1fr; } }

/* ---------- Facebook ---------- */
.pill.fb { border-color: #1877F2; color: #1877F2; }
.pill.fb:hover { background: #1877F2; color: #fff; }
.group-nudge { display:block; margin: 10px auto 0; max-width: 520px; padding: 10px 14px; border: 2px solid #1877F2; border-radius: 14px; color: #1877F2; text-decoration: none; font-weight: 700; background: var(--paper); }
.group-nudge:hover { background: #1877F2; color: #fff; }

/* ---------- update 1.1 ---------- */
.milestone { display:flex; flex-direction:column; align-items:center; gap:6px; margin:14px auto 4px; max-width:460px; padding:14px 16px;
  background: var(--butter); color:#1C1A24; border: var(--line); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); animation: pop .35s ease-out; }
.milestone b { font: 800 24px var(--display); } .milestone span { font-weight: 600; }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 70% { transform: scale(1.04); } 100% { transform: scale(1); opacity: 1; } }
.tip-nudge { display:inline-block; margin: 8px 0 0; font-weight: 700; color: var(--ink); text-decoration: underline dotted; }
.trial { background: color-mix(in srgb, var(--mint) 18%, var(--paper)); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.pro-extras { display:flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.badge.founder { background: var(--hot); color: #fff; }
.flag { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px; opacity: .55; }
.flag:hover, .flag:focus-visible { opacity: 1; background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
h3 .flag { font-size: 13px; vertical-align: middle; }
.reasons { display:grid; gap: 0; margin: 6px 0 10px; } .reasons .check { margin: 6px 0; font-size: 15px; }
textarea.field { resize: vertical; font-size: 15px; }
/* pages added in 1.1 */
.offer { display:grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.offer .price { font: 800 54px var(--display); line-height: 1; } .offer .price small { font-size: 18px; color: var(--muted); font-weight: 600; }
.places { font: 700 15px var(--mono); background: var(--ink); color: var(--paper); display:inline-block; padding: 6px 12px; border-radius: 99px; margin: 10px 0; }
.ticks { list-style: none; padding: 0; } .ticks li { padding: 6px 0 6px 30px; position: relative; } .ticks li::before { content: '✓'; position:absolute; left: 4px; font-weight: 800; color: var(--mint); }
.giftcard { background: var(--paper); border: var(--line); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); padding: 26px; text-align: center; max-width: 560px; margin: 18px auto; position: relative; overflow: hidden; }
.giftcard::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1.4px, transparent 1.4px); background-size: 18px 18px; pointer-events: none; }
.giftcard > * { position: relative; }
.giftcard .code { font: 800 34px var(--mono); letter-spacing: .06em; background: var(--butter); color:#1C1A24; border: var(--line); border-radius: 14px; padding: 10px 16px; display:inline-block; margin: 12px 0; }
.kit-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.kit-item { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; display:flex; flex-direction: column; gap: 8px; }
.kit-item .em { font-size: 40px; } .kit-item h3 { margin: 0; } .kit-item p { margin: 0; color: var(--muted); flex: 1; }
.press-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.press-grid a { display:block; background: var(--paper); border: var(--line); border-radius: 14px; padding: 10px; text-align:center; color: var(--ink); text-decoration: none; font-weight: 700; }
.press-grid img { width: 100%; height: 120px; object-fit: contain; border-radius: 8px; background: var(--bg); margin-bottom: 6px; }
.fact { font-family: var(--mono); background: var(--bg); border: 2px dashed var(--ink); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; }
@media (max-width: 700px) { .offer { grid-template-columns: 1fr; } }
@media print {
  body.printing > *:not(main), body.printing main > *:not(.print-me) { display: none !important; }
  body.printing .giftcard { box-shadow: none; } body.printing .no-print { display: none !important; }
}
.ad-note { font-size: 14px; color: var(--muted); }
.tip-nudge + .tip-nudge { margin-left: 14px; }
