:root {
  --ink: #171713;
  --paper: #fffaf0;
  --white: #ffffff;
  --blue: #2457f5;
  --blue-dark: #173bc1;
  --acid: #dfff3f;
  --coral: #ff6b4a;
  --pink: #ff8db4;
  --line: #d9d5ca;
  --muted: #6f6d64;
  --shadow: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  min-width: 320px;
}

button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.page-shell { min-height: 100vh; overflow: hidden; }

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: relative;
  z-index: 10;
}

.brand {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 950;
  letter-spacing: -1.5px;
  cursor: pointer;
}

.brand > span:last-child > span { color: var(--blue); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--acid); border: 2px solid var(--ink); border-radius: 50%; }
.brand-mark svg { width: 31px; height: 31px; stroke-width: 2.4; }

.how-link { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.how-link span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 8px; background: var(--ink); color: white; border-radius: 50%; }

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: 1.03fr .97fr;
}

.hero-copy { padding: clamp(60px, 8vh, 110px) clamp(28px, 6vw, 92px) 70px; border-right: 2px solid var(--ink); }

.kicker, .mini-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 900;
  color: var(--blue);
}

.kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 13px 0 0 var(--pink); margin-right: 13px; }

.hero h1 {
  margin: 25px 0 24px;
  max-width: 730px;
  font-family: "Arial Rounded MT Bold", "Avenir Next", sans-serif;
  font-size: clamp(68px, 7.8vw, 126px);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 950;
}

.hero h1 em { color: var(--blue); font-style: normal; -webkit-text-stroke: 2px var(--ink); text-shadow: 5px 5px 0 var(--acid); }
.hero-lead { max-width: 590px; margin: 0 0 42px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.55; color: #34342e; }

.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 770px; }
.entry-card { position: relative; display: grid; grid-template-columns: 42px 1fr; min-width: 0; gap: 12px; padding: 24px 22px; background: var(--white); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.primary-entry { background: var(--blue); color: white; }
.entry-number { color: currentColor; opacity: .55; font-size: 11px; font-weight: 900; letter-spacing: .1em; padding-top: 5px; }
.entry-card h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.04em; }
.entry-card p { margin: 0 0 18px; font-size: 13px; opacity: .75; }
.entry-card label { display: block; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.entry-card label span { display: block; margin-bottom: 7px; }
.input-row { display: flex; border-bottom: 2px solid rgba(255,255,255,.55); }
.entry-card input { width: 100%; min-width: 0; height: 45px; border: 0; border-bottom: 2px solid var(--ink); outline: 0; background: transparent; color: inherit; font-size: 16px; font-weight: 700; border-radius: 0; }
.primary-entry input { border: 0; color: white; }
.entry-card input::placeholder { color: currentColor; opacity: .55; }
.category-select { width: 100%; height: 37px; margin: 6px 0 14px; padding: 0 9px; border: 1px solid currentColor; border-radius: 0; background: white; color: var(--ink); font: inherit; font-size: 12px; font-weight: 800; }
.round-button { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; color: white; background: transparent; display: grid; place-items: center; cursor: pointer; }
.join-fields { display: grid; grid-template-columns: 1fr .7fr; gap: 12px; align-items: end; }
.join-fields .button { grid-column: 1 / -1; }
.code-input { text-transform: uppercase; letter-spacing: .18em; }

.hero-visual { position: relative; display: grid; place-items: center; padding: 8vw 5vw; background: var(--blue); }
.hero-visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.23) 1.3px, transparent 1.3px); background-size: 22px 22px; }
.sample-card { width: min(560px, 90%); background: var(--white); border: 3px solid var(--ink); transform: rotate(2.5deg); box-shadow: 14px 14px 0 rgba(0,0,0,.28); position: relative; z-index: 2; }
.sample-image-wrap { aspect-ratio: 4 / 3; position: relative; overflow: hidden; border-bottom: 3px solid var(--ink); }
.sample-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sample-pill { position: absolute; left: 18px; top: 18px; background: var(--acid); border: 2px solid var(--ink); padding: 7px 11px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.sample-info { padding: 24px 26px 28px; }
.sample-info h3 { margin: 8px 0 22px; font-size: clamp(25px, 2.4vw, 39px); line-height: 1; letter-spacing: -.045em; }
.sample-price { display: flex; align-items: end; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 17px; }
.sample-price span { font-size: 10px; letter-spacing: .14em; font-weight: 900; }
.sample-price strong { font-family: "Arial Rounded MT Bold", sans-serif; font-size: clamp(21px, 2vw, 30px); }
.sticker { position: absolute; z-index: 3; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; border: 3px solid var(--ink); font-size: 14px; line-height: 1.05; font-weight: 950; text-align: center; box-shadow: 5px 5px 0 var(--ink); }
.sticker-top { top: 10%; right: 7%; background: var(--acid); transform: rotate(8deg); }
.sticker-bottom { bottom: 8%; left: 6%; background: var(--coral); transform: rotate(-9deg); }

.how-it-works { padding: 78px clamp(24px, 7vw, 110px); border-top: 2px solid var(--ink); background: var(--acid); }
.section-label { margin: 0 0 30px; font-size: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: var(--white); box-shadow: var(--shadow); }
.steps article { min-height: 170px; display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding: 32px; border-right: 2px solid var(--ink); }
.steps article:last-child { border-right: 0; }
.steps b { font-size: 42px; color: var(--blue); line-height: 1; }
.steps h3 { margin: 3px 0 10px; font-size: 21px; }
.steps p { margin: 0; line-height: 1.5; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(24px, 7vw, 110px); background: var(--ink); color: white; font-size: 10px; font-weight: 800; letter-spacing: .12em; }

.button { min-height: 46px; border: 2px solid var(--ink); padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: white; font-size: 12px; font-weight: 950; letter-spacing: .06em; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button svg { width: 18px; }
.button-dark { background: var(--ink); color: white; box-shadow: none; }
.button-acid { background: var(--acid); }
.button-light { background: white; }
.button-full { width: 100%; }
.is-loading { opacity: .6; pointer-events: none; }

.game-shell { background: #efede6; }
.game-shell .site-header { background: var(--white); }
.game-top { display: flex; align-items: center; gap: 30px; }
.round-progress { display: flex; align-items: center; gap: 13px; }
.round-progress > span { font-size: 11px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.round-progress > div { display: flex; gap: 5px; }
.round-progress i { width: 25px; height: 5px; background: #dedbd2; }
.round-progress i.done { background: var(--blue); }
.room-badge { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 24px; }
.room-badge span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.room-badge strong { font-size: 17px; letter-spacing: .14em; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.connection-dot.online { background: #42c86a; box-shadow: 0 0 0 3px #dff6e5; }
.sound-toggle { display: grid; place-items: center; width: 31px; height: 31px; margin-left: 3px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: white; cursor: pointer; }
.sound-toggle:hover { background: var(--acid); }
.sound-toggle svg { width: 16px; height: 16px; }

.lobby-main { min-height: calc(100vh - 86px); display: grid; place-items: center; padding: 48px 24px; }
.lobby-card { width: min(1000px, 100%); display: grid; grid-template-columns: .85fr 1.15fr; background: white; border: 2px solid var(--ink); box-shadow: var(--shadow); }
.lobby-art { background: var(--blue); color: white; padding: clamp(35px, 5vw, 70px); position: relative; overflow: hidden; }
.lobby-art::after { content: '⌁'; position: absolute; right: -22px; bottom: -90px; font-size: 250px; color: rgba(255,255,255,.08); transform: rotate(-20deg); }
.lobby-art .kicker { color: white; }
.big-code { font-family: "Arial Rounded MT Bold", sans-serif; font-size: clamp(60px, 8vw, 108px); font-weight: 950; letter-spacing: .05em; margin: 58px 0 30px; text-shadow: 5px 5px 0 var(--ink); }
.lobby-category { display: inline-flex; margin: -17px 0 20px; padding: 6px 9px; border: 1px solid white; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lobby-art p { max-width: 360px; margin: 28px 0 0; font-size: 14px; line-height: 1.6; opacity: .8; }
.lobby-players { padding: clamp(35px, 5vw, 62px); }
.section-head { display: flex; align-items: start; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 22px; }
.section-head h1 { margin: 8px 0 0; font-size: 32px; letter-spacing: -.045em; }
.section-head > svg { width: 32px; height: 32px; color: var(--blue); }
.player-list { min-height: 206px; padding: 13px 0; }
.player-row { display: flex; align-items: center; min-height: 60px; gap: 13px; border-bottom: 1px solid var(--line); }
.player-row > strong { flex: 1; }
.avatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; font-size: 11px; font-weight: 900; color: var(--ink); }
.avatar-0 { background: var(--acid); }.avatar-1 { background: var(--pink); }.avatar-2 { background: #77d7ff; }.avatar-3 { background: #ffc64a; }.avatar-4 { background: #a994ff; }.avatar-5 { background: #78e2a5; }
.host-tag, .ready-tag { font-size: 9px; font-weight: 900; letter-spacing: .1em; padding: 6px 8px; }
.host-tag { color: var(--blue); background: #e9eeff; }
.ready-tag { color: #248546; }
.lobby-players > small { display: block; margin-top: 18px; color: var(--muted); text-align: center; }
.load-error { margin: 15px 0 0; padding: 11px 13px; border: 1px solid var(--ink); background: #ffe2da; font-size: 12px; font-weight: 700; }
.waiting { min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 7px; font-weight: 800; font-size: 13px; background: #f3f1eb; }
.waiting span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: bounce 1s infinite alternate; }
.waiting span:nth-child(2) { animation-delay: .2s; }.waiting span:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
@keyframes bounce { to { transform: translateY(-5px); } }

.loading-main { min-height: calc(100vh - 86px); display: grid; place-items: center; padding: 30px 20px; background: var(--blue); }
.loading-card { width: min(620px, 100%); padding: clamp(38px, 7vw, 78px); text-align: center; background: var(--paper); border: 3px solid var(--ink); box-shadow: 11px 11px 0 var(--ink); }
.loading-card h1 { margin: 12px 0 14px; font-size: clamp(39px, 6vw, 66px); line-height: .95; letter-spacing: -.06em; }
.loading-card p { margin: 0 auto 35px; max-width: 420px; color: var(--muted); line-height: 1.55; }
.loading-wheel { width: 78px; height: 78px; margin: 0 auto 25px; position: relative; border: 8px solid var(--ink); border-radius: 50%; animation: wheel-spin 1.1s linear infinite; }
.loading-wheel::before { content: ''; position: absolute; inset: 18px; border: 5px solid var(--ink); border-radius: 50%; }
.loading-wheel i { position: absolute; left: 31px; top: -6px; width: 2px; height: 74px; background: var(--ink); transform-origin: center; }
.loading-wheel i:nth-child(2) { transform: rotate(60deg); }.loading-wheel i:nth-child(3) { transform: rotate(120deg); }
.loading-road { height: 8px; overflow: hidden; background: #d6d2c7; }
.loading-road span { display: block; width: 35%; height: 100%; background: var(--coral); animation: road-run 1s ease-in-out infinite alternate; }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
@keyframes road-run { to { transform: translateX(190%); } }

.play-main { max-width: 1510px; margin: 0 auto; padding: 30px clamp(20px, 3.5vw, 54px) 46px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .66fr) 240px; gap: 22px; align-items: start; }
.listing-panel, .guess-panel, .players-rail { background: white; border: 2px solid var(--ink); }
.listing-panel { display: block; min-width: 0; box-shadow: 6px 6px 0 var(--ink); }
.listing-image { min-height: 0; aspect-ratio: 16 / 10; position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); background: #222; touch-action: pan-y; }
.listing-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; transition: opacity .14s; }
.listing-image img.is-changing { opacity: .32; }
.category-label { position: absolute; top: 18px; left: 18px; background: var(--acid); border: 2px solid var(--ink); padding: 8px 11px; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.image-count { position: absolute; left: 18px; bottom: 18px; padding: 7px 10px; color: white; background: var(--ink); font-size: 10px; font-weight: 900; }
.image-count span { margin-left: 8px; color: #c9c7bf; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.gallery-arrow { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: white; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: transform .15s; }
.gallery-arrow:hover { background: var(--acid); }
.gallery-arrow svg { width: 21px; height: 21px; }
.gallery-prev { left: 16px; }
.gallery-prev svg { transform: rotate(180deg); }
.gallery-next { right: 16px; }
.timer { position: absolute; top: 16px; right: 16px; width: 82px; height: 82px; border: 2px solid var(--ink); background: var(--white); border-radius: 50%; box-shadow: 4px 4px 0 var(--ink); }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); stroke-width: 3; }
.timer-bg { stroke: #dedbd2; }.timer-progress { stroke: var(--blue); stroke-dasharray: 113.1; stroke-dashoffset: 0; transition: stroke-dashoffset .2s linear; }
.timer > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: .75; }
.timer strong { font-size: 24px; }.timer span { font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.timer.urgent { background: var(--coral); }.timer.urgent .timer-progress { stroke: var(--ink); }
.listing-copy { padding: clamp(25px, 3vw, 42px); }
.location { display: flex; align-items: center; gap: 7px; color: var(--blue); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.location svg { width: 15px; height: 15px; }
.listing-copy h1 { font-size: clamp(30px, 3vw, 48px); line-height: .98; letter-spacing: -.055em; margin: 17px 0 34px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.facts div { display: grid; gap: 5px; padding: 13px 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.facts span, .description > span { font-size: 9px; color: var(--muted); font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.facts strong { font-size: 14px; }
.description { margin-top: 30px; }
.description p { margin: 9px 0 0; color: #4c4b45; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.guess-panel { padding: clamp(25px, 2.5vw, 38px); box-shadow: 6px 6px 0 var(--blue); }
.guess-panel h2 { margin: 8px 0 10px; font-size: 29px; line-height: 1.05; letter-spacing: -.04em; }
.guess-panel > div:first-child > p { margin: 0 0 32px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.guess-panel form label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.price-input { display: flex; align-items: center; height: 68px; padding: 0 16px; border: 2px solid var(--ink); background: var(--paper); }
.price-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-family: "Arial Rounded MT Bold", sans-serif; font-size: clamp(26px, 2.6vw, 38px); font-weight: 950; letter-spacing: -.03em; }
.price-input span { color: var(--muted); font-weight: 800; white-space: nowrap; }
.quick-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 8px 0 18px; }
.quick-values button { border: 1px solid var(--line); padding: 7px 3px; background: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.quick-values button:hover, .quick-values button.is-selected { border-color: var(--ink); background: var(--acid); }
.price-slider-wrap { margin: -7px 0 15px; }
.price-slider-wrap > label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.price-slider-wrap input { width: 100%; height: 20px; margin: 0; accent-color: var(--blue); cursor: ew-resize; }
.price-slider-scale { display: flex; justify-content: space-between; margin-top: -1px; color: var(--muted); font-size: 7px; font-weight: 800; }
.guess-status { display: flex; align-items: center; gap: 12px; margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.guess-status svg { color: var(--blue); }.guess-status strong { color: var(--ink); }
.locked-price { min-height: 150px; display: grid; place-items: center; align-content: center; text-align: center; background: var(--acid); border: 2px solid var(--ink); }
.locked-price > span { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 12px; border: 2px solid var(--ink); background: white; border-radius: 50%; }
.locked-price small { display: block; font-size: 9px; letter-spacing: .13em; font-weight: 900; }
.locked-price strong { display: block; margin-top: 4px; font-size: 27px; letter-spacing: -.04em; }

.players-rail { padding: 20px 17px; }
.rail-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; padding-bottom: 13px; border-bottom: 2px solid var(--ink); }
.rail-title span { color: var(--coral); font-size: 9px; font-weight: 950; letter-spacing: .15em; }.rail-title strong { font-size: 17px; }
.rail-player { display: grid; grid-template-columns: 34px 1fr 24px; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rail-player .avatar { width: 34px; height: 34px; }
.rail-player > div { min-width: 0; }.rail-player > div strong, .rail-player > div span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rail-player > div strong { font-size: 12px; }.rail-player > div span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.rail-player > b { display: grid; place-items: center; width: 24px; height: 24px; background: var(--ink); color: white; font-size: 11px; }
.rail-player.has-guessed > div span { color: #218643; }

.reveal-main { min-height: calc(100vh - 86px); max-width: 1260px; margin: 0 auto; padding: 45px 28px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 0; }
.reveal-car { height: 640px; position: relative; border: 2px solid var(--ink); transform: rotate(-2deg); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.reveal-car img { width: 100%; height: 100%; object-fit: cover; }
.reveal-car > span { position: absolute; left: 20px; bottom: 20px; padding: 9px 12px; background: var(--acid); border: 2px solid var(--ink); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.reveal-card { position: relative; z-index: 2; background: white; border: 3px solid var(--ink); padding: clamp(30px, 5vw, 65px); box-shadow: 11px 11px 0 var(--blue); margin-left: -30px; }
.reveal-card > h1 { margin: 10px 0 4px; font-family: "Arial Rounded MT Bold", sans-serif; font-size: clamp(50px, 6vw, 83px); line-height: .95; color: var(--blue); letter-spacing: -.06em; }
.reveal-card > p { margin: 0 0 27px; font-weight: 700; }
.source-link { display: inline-flex; align-items: center; gap: 7px; margin: -16px 0 24px; color: var(--blue); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.source-link svg { width: 15px; height: 15px; }
.winner-banner { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--acid); border: 2px solid var(--ink); }
.winner-banner > svg { width: 34px; height: 34px; }.winner-banner small, .winner-banner strong { display: block; }.winner-banner small { font-size: 9px; letter-spacing: .12em; font-weight: 900; }.winner-banner strong { margin-top: 3px; font-size: 18px; }
.no-winner { background: #eee; }
.guess-results { margin-top: 18px; max-height: 220px; overflow: auto; }
.result-row { display: grid; grid-template-columns: 27px 1fr auto; gap: 9px; align-items: center; padding: 10px 5px; border-bottom: 1px solid var(--line); }
.result-row.winner { color: var(--blue); }.result-row > strong { font-size: 13px; }.result-row > span:not(.result-place) { font-weight: 800; font-size: 13px; }.result-row small { grid-column: 2 / -1; color: var(--muted); font-size: 9px; margin-top: -6px; }
.result-place { font-size: 11px; font-weight: 900; color: var(--muted); }.empty-results { color: var(--muted); text-align: center; }
.next-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; color: var(--muted); font-size: 11px; }

.final-shell { min-height: 100vh; background: var(--blue); }
.final-shell .site-header { background: white; }
.final-main { max-width: 720px; margin: 0 auto; padding: 54px 24px 75px; text-align: center; }
.final-main .kicker { color: white; }.final-trophy { width: 96px; height: 96px; display: grid; place-items: center; margin: 25px auto 18px; background: var(--acid); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 7px 7px 0 var(--ink); }
.final-trophy svg { width: 55px; height: 55px; stroke-width: 1.6; }
.final-overline { margin: 0; color: white; font-size: 11px; font-weight: 900; letter-spacing: .17em; }
.final-main > h1 { margin: 6px 0 0; color: white; font-size: clamp(50px, 8vw, 86px); line-height: 1; letter-spacing: -.06em; text-shadow: 5px 5px 0 var(--ink); }
.final-sub { color: white; font-weight: 700; }
.leaderboard { margin-top: 34px; background: white; border: 3px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); text-align: left; }
.leader-row { min-height: 66px; display: grid; grid-template-columns: 35px 42px 1fr auto auto; align-items: center; gap: 12px; padding: 9px 20px; border-bottom: 1px solid var(--line); }
.leader-row:last-child { border-bottom: 0; }.leader-row.first { background: var(--acid); }.leader-row .place { font-size: 20px; font-weight: 950; }.leader-row small { font-size: 8px; font-weight: 900; color: var(--blue); }.leader-row > b { font-size: 18px; }
.final-actions { margin-top: 28px; display: flex; justify-content: center; gap: 12px; }.final-actions p { color: white; }

.toast { position: fixed; left: 50%; bottom: 25px; z-index: 100; max-width: calc(100vw - 40px); transform: translate(-50%, 20px); padding: 13px 20px; border: 2px solid var(--ink); background: var(--acid); box-shadow: 4px 4px 0 var(--ink); font-weight: 800; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }.toast.error { background: var(--coral); }

@media (max-width: 1180px) {
  .play-main { grid-template-columns: minmax(0, 1.6fr) minmax(290px, .7fr); }
  .players-rail { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; overflow-x: auto; }
  .rail-title { min-width: 100px; margin: 0; padding: 0 15px 0 0; border: 0; border-right: 2px solid var(--ink); }
  .rail-player { min-width: 180px; border: 0; }
  .listing-image { min-height: 0; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; }
  .hero-visual { min-height: 720px; }
  .lobby-card { grid-template-columns: 1fr; }
  .big-code { margin: 35px 0 24px; }
  .play-main { grid-template-columns: 1fr; }
  .players-rail { grid-column: auto; }
  .reveal-main { grid-template-columns: 1fr; padding: 28px 20px 50px; }
  .reveal-car { height: 390px; }
  .reveal-card { margin: -35px 20px 0; }
}

@media (max-width: 640px) {
  .game-shell { overflow-x: hidden; overflow-y: visible; }
  .site-header { height: 68px; padding: 0 16px; }
  .brand-mark { width: 37px; height: 37px; }.brand-mark svg { width: 26px; }.brand { font-size: 20px; }
  .how-link { font-size: 10px; }
  .hero { min-height: auto; }
  .hero-copy { padding: 48px 19px 50px; }
  .hero h1 { font-size: 68px; }
  .hero-lead { font-size: 16px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card { grid-template-columns: 30px 1fr; }
  .hero-visual { min-height: 560px; padding: 70px 15px; }
  .sample-card { width: 86%; }
  .sample-image-wrap { aspect-ratio: 1 / 1; }
  .sticker { width: 88px; height: 88px; font-size: 11px; }
  .steps { grid-template-columns: 1fr; }
  .steps article { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 130px; padding: 25px; }
  .steps article:last-child { border-bottom: 0; }
  footer { flex-direction: column; }
  .game-top { gap: 12px; }.round-progress > div { display: none; }.room-badge { padding-left: 12px; }.room-badge span { display: none; }
  .lobby-main { padding: 22px 15px; min-height: calc(100vh - 68px); }.lobby-art, .lobby-players { padding: 30px 23px; }.big-code { font-size: 61px; }
  .loading-main { min-height: calc(100vh - 68px); padding: 20px 13px; }.loading-card { padding: 38px 22px; }.loading-card h1 { font-size: 40px; }
  .play-main { padding: 18px 14px 42px; gap: 16px; }
  .listing-image { min-height: 0; aspect-ratio: 4 / 3; }
  .gallery-arrow { width: 42px; height: 42px; margin-top: -21px; }.gallery-prev { left: 10px; }.gallery-next { right: 10px; }
  .image-count span { display: none; }
  .listing-copy { padding: 25px 20px; }.listing-copy h1 { font-size: 28px; margin-bottom: 20px; }.description p { font-size: 13px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts div { min-width: 0; padding: 10px 7px; }
  .facts span { font-size: 8px; letter-spacing: .06em; }
  .facts strong { font-size: 12px; overflow-wrap: anywhere; }
  .listing-copy .description { display: block; margin-top: 18px; }
  .guess-panel { padding: 25px 20px; }.guess-panel h2 { font-size: 27px; }
  .quick-values { gap: 7px; margin: 11px 0 20px; }
  .quick-values button { min-height: 42px; padding: 8px 4px; font-size: 12px; }
  .price-slider-wrap { margin: 0 0 18px; }
  .price-slider-wrap > label { margin-bottom: 6px; font-size: 9px; }
  .price-slider-wrap input { height: 44px; appearance: none; -webkit-appearance: none; background: transparent; }
  .price-slider-wrap input::-webkit-slider-runnable-track { height: 8px; border: 1px solid var(--ink); border-radius: 999px; background: #d9d5ca; }
  .price-slider-wrap input::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -13px; appearance: none; -webkit-appearance: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--acid); box-shadow: 2px 2px 0 var(--ink); }
  .price-slider-wrap input::-moz-range-track { height: 8px; border: 1px solid var(--ink); border-radius: 999px; background: #d9d5ca; }
  .price-slider-wrap input::-moz-range-thumb { width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 50%; background: var(--acid); box-shadow: 2px 2px 0 var(--ink); }
  .price-slider-scale { margin-top: 0; font-size: 8px; }
  .guess-panel form > .button { min-height: 50px; font-size: 12px; }
  .players-rail { order: 4; }
  .timer { width: 70px; height: 70px; }.timer strong { font-size: 21px; }
  .reveal-main { min-height: calc(100vh - 68px); padding: 17px 12px 35px; }.reveal-car { height: 310px; }.reveal-card { margin: -25px 10px 0; padding: 28px 20px; }.reveal-card > h1 { font-size: 50px; }
  .next-row { align-items: stretch; flex-direction: column; }.result-row { grid-template-columns: 25px 1fr auto; }
  .final-main { padding-top: 40px; }.final-main > h1 { font-size: 54px; }.leader-row { grid-template-columns: 28px 38px 1fr auto; padding: 9px 12px; }.leader-row small { display: none; }.final-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
