/* WordBlaze homepage (wordblaze.app). Same navy, teal and amber as the game, same rounded type and chunky tiles. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #12141c;
  --bg-2: #171a24;
  --panel: #1f2331;
  --panel-2: #272c3d;
  --line: #2f3448;
  --line-2: #4a5170;
  --text: #eef0f7;
  --muted: #9aa0bb;
  --correct: #1fb89a;
  --present: #f1a43c;
  --absent: #2c3041;
  --race: #ff6b6b;
  --flame: #ee7a37;
  --edge: rgba(0, 0, 0, .38);
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1140px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--present); }
code { font-family: inherit; font-weight: 800; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--present); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--present); color: #1b1405; padding: 8px 14px; border-radius: 8px; font-weight: 800; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--correct); color: #fff; text-decoration: none; font-weight: 900; font-size: 17px;
  padding: 14px 24px; border-radius: 14px; box-shadow: 0 4px 0 color-mix(in srgb, var(--correct) 58%, #000);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--correct) 58%, #000); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px var(--line-2); }
.btn-small { padding: 9px 16px; font-size: 15px; border-radius: 11px; box-shadow: 0 3px 0 color-mix(in srgb, var(--correct) 58%, #000); }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 21px; }
.logo-img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 3px 10px rgba(0, 0, 0, .45); }
.logo-word b, .footer-brand b { color: var(--present); font-weight: 900; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.kicker-logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
h1 { font-size: clamp(42px, 6.2vw, 72px); font-weight: 900; line-height: 1.02; letter-spacing: -0.025em; max-width: 13ch; }
.lede { margin-top: 22px; font-size: 20px; color: #c9cde0; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-weight: 700; font-size: 15px; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--correct); }

/* the live race demo */
.demo {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 6px var(--bg-2);
}
.demo-top { display: flex; align-items: center; gap: 14px; }
.demo-title { font-weight: 900; color: var(--muted); white-space: nowrap; }
.demo-timer { flex: 1; height: 10px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.demo-fill { display: block; height: 100%; width: 100%; background: var(--race); transform-origin: left; }
.demo-time { font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; min-width: 3.2ch; text-align: right; }
.demo-opponents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.opp { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; transition: border-color .3s; }
.opp-name { font-weight: 800; font-size: 14px; }
.opp-state { grid-column: 1; font-size: 12px; font-weight: 700; color: var(--muted); }
.opp.won { border-color: var(--correct); }
.opp.won .opp-state { color: var(--correct); }
.mini { grid-row: 1 / span 2; grid-column: 2; display: grid; grid-template-columns: repeat(5, 8px); gap: 2px; }
.mini i { width: 8px; height: 8px; border-radius: 2px; background: var(--absent); opacity: .45; }
.mini i.c { background: var(--correct); opacity: 1; }
.mini i.p { background: var(--present); opacity: 1; }
.mini i.a { background: #3a3f55; opacity: 1; }
.demo-board { display: grid; grid-template-rows: repeat(6, auto); gap: 7px; justify-content: center; }
.row { display: grid; grid-template-columns: repeat(5, var(--t, 52px)); gap: 7px; }
.tile {
  width: var(--t, 52px); height: var(--t, 52px); border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-2); border: 2px solid var(--line); font-weight: 900; font-size: calc(var(--t, 52px) * .5); text-transform: uppercase;
}
.tile.typed { border-color: var(--line-2); background: var(--panel-2); }
.tile.c, .tile.p, .tile.a { border-color: transparent; color: #fff; }
.tile.c { background: var(--correct); box-shadow: 0 3px 0 color-mix(in srgb, var(--correct) 60%, #000); }
.tile.p { background: var(--present); box-shadow: 0 3px 0 color-mix(in srgb, var(--present) 60%, #000); }
.tile.a { background: var(--absent); color: #9aa1bd; box-shadow: 0 3px 0 color-mix(in srgb, var(--absent) 60%, #000); }
.tile.flip { animation: flip .45s ease both; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.demo-status { margin-top: 16px; text-align: center; font-weight: 800; color: var(--muted); min-height: 1.6em; }
.demo-status b { color: var(--text); }

/* ---------------------------------------------------------------- live numbers */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-n { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat-l { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 15px; margin-top: 4px; }
.stats-note { color: var(--muted); font-size: 13px; padding: 0 0 18px; }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { margin-top: 14px; color: var(--muted); font-size: 19px; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 18px;
  background: var(--panel-2); border: 2px solid var(--line-2); font-weight: 900; font-size: 20px;
}
.steps li:nth-child(1) .step-n { background: var(--correct); border-color: transparent; box-shadow: 0 3px 0 color-mix(in srgb, var(--correct) 60%, #000); }
.steps li:nth-child(2) .step-n { background: var(--present); border-color: transparent; box-shadow: 0 3px 0 color-mix(in srgb, var(--present) 60%, #000); }
.steps li:nth-child(3) .step-n { background: var(--race); border-color: transparent; box-shadow: 0 3px 0 #a83a3a; }
.steps p { margin-top: 8px; color: var(--muted); }

/* ---------------------------------------------------------------- "in Discord" mockups */
.mock-wrap { position: relative; margin-top: 48px; padding-right: 215px; }
.window { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0f15; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: #0b0c11; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window-body { display: grid; grid-template-columns: 62px minmax(0, 1fr) 240px; min-height: 0; }
.rail { background: #0b0c11; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail span { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 15px; color: #fff; }
.stage { background: var(--bg); position: relative; display: flex; align-items: center; }
.stage img { width: 100%; }
.chatcol { background: #12141b; border-left: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; overflow: hidden; }
.chatcol .head { font-weight: 900; color: var(--text); font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chatcol .head .playing { display: block; margin-top: 2px; font-size: 12px; font-weight: 800; color: var(--correct); }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 8px; }
.msg .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; }
.msg .who { font-weight: 800; color: var(--text); }
.msg .who small { margin-left: 6px; font-size: 10px; font-weight: 900; color: #fff; background: #5865c8; padding: 1px 5px; border-radius: 4px; vertical-align: 1px; }
.msg p { color: #c9cde0; }
.msg img { margin-top: 6px; border-radius: 8px; border: 1px solid var(--line); }
.phone {
  position: absolute; right: 0; bottom: -48px; width: 236px; border-radius: 38px; padding: 30px 9px 12px;
  background: #07080b; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; width: 64px; height: 12px; margin-left: -32px; border-radius: 8px; background: #1c1f29; }
.phone img { border-radius: 6px 6px 28px 28px; }
.mock-caption { margin-top: 64px; color: var(--muted); max-width: 46em; }

/* ---------------------------------------------------------------- modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.mode { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.mode p { margin-top: 10px; color: var(--muted); }
.mode h3 { margin-top: 18px; font-size: 24px; }
.mode-word { display: flex; gap: 5px; }
.mode-word i {
  font-style: normal; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 16px; color: #fff;
  background: var(--m); box-shadow: 0 3px 0 var(--m-edge);
}
.mode-word i.off { background: var(--absent); color: #9aa1bd; box-shadow: 0 3px 0 #1b1e29; }
.m-race { --m: var(--race); --m-edge: #a83a3a; }
.m-daily { --m: var(--present); --m-edge: color-mix(in srgb, var(--present) 60%, #000); }
.m-endless { --m: var(--correct); --m-edge: color-mix(in srgb, var(--correct) 60%, #000); }

/* ---------------------------------------------------------------- results in chat */
.chat-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.chat-copy p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 26px; color: #c9cde0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--correct); box-shadow: 0 2px 0 color-mix(in srgb, var(--correct) 60%, #000); }
.ticks li b { color: var(--text); }
.ticks.small { gap: 8px; margin-top: 16px; font-size: 15px; }
.ticks.small li::before { width: 9px; height: 9px; top: .6em; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8); }
.shot-race { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- extras */
.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.extra-icon.tiers { display: flex; gap: 3px; padding: 0 8px; width: auto; }
.extra-icon.tiers i { width: 8px; height: 22px; border-radius: 3px; }
.extra { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.extra > p { margin-top: 12px; color: var(--muted); }
.extra-group { border-color: color-mix(in srgb, var(--present) 50%, var(--line)); }
.extra-head { display: flex; align-items: center; gap: 12px; }
.extra-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--panel-2); border: 1px solid var(--line-2); }
.extra-icon svg { width: 22px; height: 22px; fill: var(--present); }
.extra-icon.swatches { display: flex; gap: 3px; padding: 0 8px; width: auto; }
.extra-icon.swatches i { width: 9px; height: 22px; border-radius: 3px; }
.fine { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- FAQ */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------------------------------------------------------------- final + footer */
.final { padding: 100px 0; text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final h2 { max-width: 16ch; }
.final-tiles { display: flex; gap: 8px; }
.final-tiles i {
  font-style: normal; width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 28px; color: #fff;
}
.final-tiles i.c { background: var(--correct); box-shadow: 0 4px 0 color-mix(in srgb, var(--correct) 60%, #000); }
.final-tiles i.p { background: var(--present); box-shadow: 0 4px 0 color-mix(in srgb, var(--present) 60%, #000); }
.final-tiles i.a { background: var(--absent); color: #9aa1bd; box-shadow: 0 4px 0 #1b1e29; }
.footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-brand { font-weight: 900; color: var(--text); font-size: 17px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-note { margin-left: auto; font-size: 14px; }

.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; }
.notfound h1 { max-width: none; font-size: clamp(30px, 5vw, 46px); }
.notfound p { color: var(--muted); }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1080px) {
  .window-body { grid-template-columns: 54px minmax(0, 1fr) 210px; }
  .mock-wrap { padding-right: 150px; }
  .phone { width: 200px; }
}
@media (max-width: 900px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid, .chat-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .modes, .extras { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .nav-links { display: none; }
  .nav-row .btn-small { margin-left: auto; }
  .section { padding: 72px 0; }
  .mock-wrap { padding-right: 0; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .rail, .chatcol { display: none; }
  .phone { position: relative; right: auto; bottom: auto; width: min(260px, 70%); margin: -60px 16px 0 auto; }
  .mock-caption { margin-top: 28px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .lede { font-size: 18px; }
  .demo { padding: 16px; border-radius: 18px; }
  .demo-board { --t: 44px; }
  .row, .demo-board { gap: 6px; }
  .demo-opponents { gap: 6px; }
  .opp { padding: 7px 8px; }
  .opp-name { font-size: 13px; }
  .mini { grid-template-columns: repeat(5, 6px); gap: 2px; }
  .mini i { width: 6px; height: 6px; }
  .stat { padding: 20px 14px; }
  .shots { grid-template-columns: 1fr; }
  .final-tiles i { width: 48px; height: 48px; font-size: 24px; }
  .footer-note { margin-left: 0; }
  .btn { width: 100%; }
  .nav-row .btn-small { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile.flip { animation: none; }
  .btn { transition: none; }
}
