:root {
  --paper: #f5f3ee; --ink: #172b27; --muted: #70807b; --line: #d8ddd5;
  --green: #b9e861; --orange: #ee7651; --white: #fffefa;
  --mono: 'Inter', sans-serif; --sans: 'Inter', sans-serif; --display: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); min-height: 100vh; }
.app-shell { max-width: 1240px; margin: auto; padding: 0 46px; }
.topbar { height: 78px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; padding: 5px 13px 5px 8px; border-radius: 4px; background: #f4b299; color: var(--ink); font: 700 12px var(--mono); letter-spacing: .12em; text-decoration: none; }
.brand-animal { display: grid; place-items: center; width: 34px; height: 34px; overflow: visible; font: 32px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; filter: grayscale(1) brightness(0); transform: scaleX(-1); }
.top-right, .eyebrow, .footer { font: 500 10px var(--mono); letter-spacing: .12em; }
.top-right { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.live-dot { width: 7px; height: 7px; background: #62ba59; border-radius: 50%; box-shadow: 0 0 0 3px #62ba5922; }
.view { min-height: calc(100vh - 132px); }
.footer { height: 54px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #87918d; }
.footer b { color: var(--orange); font-size: 15px; margin-left: 4px; }
.eyebrow { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.eyebrow .bar { display: inline-block; width: 20px; height: 1px; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.055em; }
.landing { padding: 50px 0 32px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-copy { padding: 25px 0; }
.hero-copy h1 { font-size: clamp(58px, 8.7vw, 112px); line-height: .89; margin: 23px 0 25px; font-weight: 600; }
.hero-copy h1 em { font-style: normal; color: #849d53; }
.hero-sub { font-size: 17px; line-height: 1.6; color: #65736e; max-width: 420px; }
.hero-pitches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 34px; }
.hero-pitch { min-width: 0; border-left: 2px solid var(--orange); padding-left: 13px; }
.hero-pitch > span { display: block; color: var(--muted); font: 500 9px var(--mono); letter-spacing: .1em; }
.hero-pitch strong { display: block; margin-top: 7px; font: 600 15px/1.25 var(--display); }
.hero-pitch p { margin: 4px 0 0; color: #7b8882; font-size: 11px; line-height: 1.4; }
.entry-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 12px 34px #1a342109; }
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 16px; margin-bottom: 19px; }
.tab { background: none; border: 0; padding: 0 0 12px; color: #98a09c; font: 600 12px var(--sans); cursor: pointer; position: relative; }
.tab.active { color: var(--ink); }
.tab.active:after { content: ''; height: 2px; background: var(--orange); position: absolute; bottom: -1px; left: 0; right: 0; }
.field-label { font: 500 10px var(--mono); letter-spacing: .1em; color: var(--muted); display: block; margin: 0 0 8px; }
.input { width: 100%; height: 48px; padding: 0 14px; background: #f7f7f2; border: 1px solid var(--line); border-radius: 8px; font: 500 15px var(--sans); color: var(--ink); outline: none; }
.input:focus { border-color: #849d53; box-shadow: 0 0 0 3px #849d5320; }
.form-row { margin: 0 0 17px; }
.btn { border: 0; border-radius: 8px; padding: 14px 18px; background: var(--ink); color: white; font: 600 13px var(--sans); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #29463e; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: #caef83; }
.btn-full { width: 100%; margin-top: 3px; }
.hint { margin: 15px 0 0; font-size: 11px; line-height: 1.5; color: #8a9590; }
.daily-section { margin: 28px 0 52px; }
.daily-game-panel { padding: 28px 32px; box-shadow: 0 12px 34px #1a342109; }
.daily-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.daily-head h2 { font-size: clamp(27px, 3.5vw, 38px); margin: 8px 0 0; }
.daily-head .count-tag { padding: 8px 12px; font-size: 10px; white-space: nowrap; }
.daily-question-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 18px 22px; border-radius: 11px; background: #f3f3ed; }
.daily-question-strip .eyebrow { font-size: 9px; }
.daily-question-strip h3 { margin: 7px 0 3px; font-size: clamp(24px, 3vw, 34px); }
.daily-question-strip p { margin: 6px 0 0; color: #7d8983; font-size: 15px; line-height: 1.4; }
.daily-question-icon { flex: 0 0 auto; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #e6edda; font-size: 33px; }
.daily-lanes-wrap { margin-top: 18px; }
.daily-lanes-wrap .answer-lane .lane-heading { display: none; }
.daily-lanes-wrap .guess-lane .lane-heading strong { display: none; }
.daily-unit-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.daily-unit-row .field-label { margin: 0; }
.daily-unit-select { width: 100%; height: 42px; padding: 0 12px; font-size: 12px; }
.daily-control-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 190px; align-items: end; gap: 14px; margin-top: 22px; }
.daily-unit-row { flex-direction: column; align-items: stretch; gap: 7px; }
.daily-guess-control { margin-top: 0; padding: 16px 18px 13px; }
.daily-guess-control .range-wrap { margin: 14px 0 8px; }
.daily-submit { margin: 0; min-width: 0; min-height: 48px; padding: 13px 15px; }
.daily-reset-hint { margin-top: 14px; font-size: 11px; }
.daily-loading { min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.daily-loading p { margin: 0; }
.daily-result { margin-top: 20px; padding: 18px 20px; background: #f3f3ed; border-radius: 10px; }
.daily-score { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.daily-score strong { color: #6e883c; font: 700 42px/1 var(--display); letter-spacing: -.06em; }
.daily-score span, .daily-result-values span { color: var(--muted); font: 500 8px var(--mono); letter-spacing: .08em; }
.daily-result-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.daily-result-values div { min-width: 0; padding: 12px 14px; border: 1px solid #e4e7df; border-radius: 8px; background: var(--white); }
.daily-result-values span { display: block; font-size: 8px; white-space: nowrap; }
.daily-result-values strong { display: block; margin-top: 6px; font: 600 13px var(--mono); white-space: nowrap; }
.daily-result > p { margin: 13px 0 0; color: #738078; font-size: 12px; line-height: 1.45; }
.daily-community { margin-top: 16px; padding: 19px 20px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.daily-community-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.daily-community-head .eyebrow { font-size: 8px; }
.daily-community-head h3 { margin: 6px 0 0; font-size: 22px; }
.community-refresh { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #f7f7f2; color: var(--ink); font: 20px/1 var(--sans); cursor: pointer; }
.community-refresh:hover { background: #edf1e6; }
.community-refresh:disabled { opacity: .45; cursor: wait; }
.community-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.community-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 7px; background: #f3f3ed; }
.community-stats strong { font: 600 18px/1 var(--mono); }
.community-stats span { color: var(--muted); font: 500 7px var(--mono); letter-spacing: .08em; }
.community-chart { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: 8px; height: 126px; margin-top: 15px; padding: 0 2px; }
.community-bin { display: grid; grid-template-rows: 17px 1fr 15px; align-items: end; height: 100%; min-width: 0; text-align: center; }
.community-bin-count { color: #829087; font: 8px var(--mono); }
.community-bar-track { position: relative; width: min(100%, 24px); height: 86px; justify-self: center; overflow: hidden; border-radius: 4px 4px 2px 2px; background: #f0f1eb; }
.community-bar-track i { position: absolute; right: 0; bottom: 0; left: 0; display: block; border-radius: 4px 4px 0 0; background: #afc28d; }
.community-bin.is-your-score .community-bar-track i { background: var(--orange); }
.community-bin-label { color: #7e8a83; font: 7px var(--mono); white-space: nowrap; }
.community-axis-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: #87918d; font: 7px var(--mono); letter-spacing: .06em; }
.community-your-key { display: flex; align-items: center; gap: 5px; }
.community-your-key i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }
.community-message { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; min-height: 76px; color: #70807b; font-size: 12px; line-height: 1.5; text-align: center; }
.community-retry { padding: 9px 12px; font-size: 11px; }
.community-privacy { margin: 11px 0 0; color: #8a9590; font-size: 9px; line-height: 1.4; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 24px; }
.rule { background: #eeeee7; padding: 17px 18px; }
.rule-no { font: 10px var(--mono); color: var(--orange); }
.rule strong { display: block; font: 600 13px var(--display); margin: 9px 0 3px; }
.rule span { font-size: 11px; color: var(--muted); line-height: 1.4; }
.hidden { display: none !important; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 24px; padding: 18px 0 24px; }
.game-main { min-width: 0; }
.game-head { display: flex; justify-content: space-between; align-items: flex-start; margin: 4px 0 13px; }
.game-head h1 { font-size: 32px; margin: 7px 0 0; }
.room-code { border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; background: var(--white); font: 500 14px var(--mono); letter-spacing: .12em; cursor: pointer; }
.room-code small { display: block; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; margin-bottom: 5px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.lobby-panel { min-height: 350px; }
.panel-top { display: flex; align-items: center; justify-content: space-between; }
.count-tag { border-radius: 99px; background: #eef2e7; padding: 7px 10px; font: 10px var(--mono); color: #697c45; }
.player-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 20px 0; }
.player-chip { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; background: #e5efcd; border-radius: 50%; font: 600 12px var(--display); }
.player-chip strong { font-size: 13px; }
.player-chip small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.room-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 0 0 14px; padding: 12px; background: #f7f7f2; border: 1px solid #eceee8; border-radius: 8px; }
.room-setting { min-width: 0; }
.room-setting .field-label { margin-bottom: 6px; }
.lobby-setting-select { height: 40px; padding: 0 10px; font-size: 12px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2370807b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 13px; }
.setting-current { display: flex; align-items: center; height: 40px; padding: 0 10px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 500; }
.callout { padding: 14px; background: #f3f3ed; border-radius: 8px; color: #77837e; font-size: 12px; line-height: 1.5; }
.callout strong { color: var(--ink); }
.wait-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; }
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 19px; }
.side-title { font: 500 10px var(--mono); letter-spacing: .1em; color: var(--muted); margin-bottom: 15px; }
.health-list { display: flex; flex-direction: column; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; border-bottom: 1px solid #eceee8; }
.health-row:last-child { border-bottom: 0; }
.health-ident { min-width: 0; display: flex; align-items: center; gap: 9px; }
.health-heart { flex: 0 0 auto; width: 38px; height: 36px; overflow: visible; transform-box: fill-box; transform-origin: center; animation: heartbeat var(--beat-duration, 3.6s) ease-in-out infinite; }
.heart-empty { fill: #e8eae4; }
.heart-fill { fill: var(--heart-color); transition: clip-path .7s cubic-bezier(.2,.7,.2,1); }
.heart-outline { fill: none; stroke: #d4d8d0; stroke-width: 4; stroke-linejoin: round; }
.health-copy { min-width: 0; }
.health-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.health-caption { margin-top: 3px; color: #8c9791; font: 9px var(--mono); letter-spacing: .04em; }
.health-val { flex: 0 0 auto; font: 12px var(--mono); white-space: nowrap; }
.health-val small { color: #929b96; font: 9px var(--mono); }
.health-row.dead .health-copy, .health-row.dead .health-val { opacity: .48; }
.health-row.dead .health-heart { animation: none; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 12% { transform: scale(var(--beat-peak, 1.025)); } 24% { transform: scale(1); } 36% { transform: scale(var(--beat-echo, 1.012)); } 48% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .health-heart { animation: none; } }
.question-card { position: relative; overflow: hidden; min-height: 180px; background: #1d352e; border: 0; color: #fffefa; padding: 22px 25px; }
.question-card .eyebrow { color: #a9b5ac; position: relative; z-index: 1; }
.question-card h2 { position: relative; z-index: 1; font-size: clamp(32px, 4vw, 48px); line-height: .98; margin: 19px 0 7px; max-width: 500px; }
.question-title-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.question-title-row h2 { margin-right: 0; }
.question-speed-reveal { color: var(--green); font: 700 clamp(26px, 3.2vw, 40px)/1 var(--display); letter-spacing: -.045em; white-space: nowrap; }
.reveal-card .question-speed-reveal { color: #728d3e; }
.question-card p { position: relative; z-index: 1; color: #bbc7bf; font-size: 17px; line-height: 1.45; margin: 8px 0 0; }
.timer { position: absolute; right: 22px; bottom: 20px; z-index: 1; font: 500 12px var(--mono); color: var(--green); }
.guess-card { margin-top: 14px; }
.guess-top { display: flex; justify-content: space-between; align-items: center; }
.guess-top label { font: 500 10px var(--mono); letter-spacing: .1em; color: var(--muted); }
.guess-number { font: 600 34px var(--display); letter-spacing: -.04em; }
.guess-number small { font: 12px var(--mono); color: var(--muted); letter-spacing: 0; }
.range-wrap { margin: 12px 0 7px; }
.range { width: 100%; appearance: none; height: 5px; border-radius: 8px; background: linear-gradient(90deg, var(--green) 0%, var(--green) var(--progress, 0%), #e5e9e1 var(--progress, 0%), #e5e9e1 100%); outline: none; }
.range::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 4px solid var(--green); box-shadow: 0 1px 4px #0002; cursor: grab; }
.range::-moz-range-thumb { width: 13px; height: 13px; border: 4px solid var(--green); border-radius: 50%; background: var(--ink); cursor: grab; }
.range-labels { display: flex; justify-content: space-between; color: #8e9994; font: 10px var(--mono); }
.guess-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.submit-btn { min-width: 150px; }
.submit-message { font-size: 12px; color: var(--muted); }
.reveal-card { background: #edf1e6; color: var(--ink); border: 1px solid #d9e2cb; }
.reveal-card .eyebrow { color: #77856e; }
.reveal-card h2 { color: var(--ink); }
.reveal-card p { color: #65736e; }
.answer-speed { position: relative; z-index: 1; font: 600 18px var(--display); color: var(--green); margin-top: 12px; }
.reveal-card .answer-speed { color: #728d3e; }
.results-list { margin-top: 17px; }
.result-row { display: grid; grid-template-columns: 1fr auto auto; gap: 15px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.result-row:last-child { border: 0; }
.result-row .result-guess { font: 12px var(--mono); }
.damage { color: #d46a4b; font: 500 11px var(--mono); }
.safe { color: #74903e; font: 500 11px var(--mono); }
.room-actions { margin-top: 16px; }
.winner-panel { text-align: center; padding: 35px 24px; }
.trophy { font-size: 38px; }
.winner-panel h2 { font-size: 44px; margin: 14px 0 5px; }
.winner-panel p { color: var(--muted); }
.player-health-big { font: 600 52px var(--display); color: #80984b; margin: 18px 0 25px; }
.winner-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.winner-actions .wait-note { flex-basis: 100%; margin: 0 0 5px; }
.join-code { font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 8px; background: var(--ink); color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 10; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.damage-rule { display: flex; justify-content: space-between; font: 10px var(--mono); color: var(--muted); padding-top: 10px; }
.speed-lanes { display: grid; gap: 19px; }
.speed-lane { min-width: 0; }
.lane-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 10px var(--mono); letter-spacing: .1em; color: var(--muted); }
.lane-heading strong { color: #87918c; font: 500 10px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.answer-lane.is-revealed .lane-heading strong { color: #728d3e; }
.lane-track { height: 56px; position: relative; margin: 8px 14px 0; }
.lane-rail { position: absolute; left: 0; right: 0; top: 50%; height: 3px; border-radius: 5px; transform: translateY(-50%); background: #e5e9e1; }
.answer-lane .lane-track { isolation: isolate; }
.lane-environment { position: absolute; z-index: 0; inset: 2px 0; overflow: hidden; border-radius: 8px; }
.lane-environment::before, .lane-environment::after { content: ''; position: absolute; pointer-events: none; }
.lane-environment--field { background: linear-gradient(180deg,#f4f4eb 0 49%,#e4ecd6 50% 100%); }
.lane-environment--field::before { content: none; }
.lane-environment--field::after { left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(180deg,#d5e2bd,#c7d9a5); }
.grass-blade { position: absolute; bottom: 4px; left: var(--blade-left); width: 9px; height: var(--blade-height); color: #829f54; transform: rotate(var(--blade-angle)); transform-origin: 50% 100%; animation: grass-bend 2s ease-in-out infinite alternate; animation-delay: var(--sway-delay); opacity: .9; }
.grass-blade:nth-child(3n) { color: #9ab56d; opacity: .78; }
.grass-blade:nth-child(3n + 1) { color: #718d47; }
.grass-blade svg { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.lane-environment--sky { background: linear-gradient(180deg,#dceef3,#f5f7f1); }
.lane-environment--sky::before { inset: 2px 0; background-image: radial-gradient(ellipse 20px 7px at 12% 72%,#fff 98%,transparent 102%),radial-gradient(ellipse 15px 6px at 20% 74%,#fff 98%,transparent 102%),radial-gradient(ellipse 22px 7px at 62% 38%,#fff 98%,transparent 102%),radial-gradient(ellipse 15px 5px at 71% 40%,#fff 98%,transparent 102%); background-size: 170px 25px; animation: cloud-drift 12s linear infinite; opacity: .8; }
.lane-environment--ocean { background: linear-gradient(180deg,#c9edf1 0 50%,#4c91a2 50% 100%); }
.lane-environment--ocean::before { left: 0; right: 0; top: 0; height: 50%; background-image: radial-gradient(ellipse 16px 5px at 13% 75%,#fffefa 98%,transparent 102%),radial-gradient(ellipse 12px 4px at 21% 77%,#fffefa 98%,transparent 102%),radial-gradient(ellipse 19px 6px at 67% 44%,#fffefa 98%,transparent 102%),radial-gradient(ellipse 13px 4px at 76% 46%,#fffefa 98%,transparent 102%); background-size: 150px 24px; animation: cloud-drift 15s linear infinite; opacity: .68; }
.lane-environment--ocean::after { content: none; }
.lane-environment--road { background: linear-gradient(180deg,#e8ebe5 0 35%,#d3d8d1 36% 64%,#e9ebe6 65% 100%); }
.lane-environment--road::before, .lane-environment--road::after { content: none; }
.lane-environment--rail { background: linear-gradient(180deg,#edf0eb,#e2e7e0); }
.lane-environment--rail::before { inset: 0; background: repeating-linear-gradient(90deg,transparent 0 11px,#9ca99c66 11px 13px,transparent 13px 27px); animation: rail-scroll 1.1s linear infinite; }
.lane-environment--rail::after { left: 0; right: 0; top: 7px; bottom: 7px; border-top: 1px solid #9ba99a99; border-bottom: 1px solid #9ba99a99; }
.lane-environment--space { background: linear-gradient(180deg,#e9eef1,#e2e9eb); }
.lane-environment--space::before { inset: 0; background-image: radial-gradient(circle at 12px 7px,#fffefa 0 1px,transparent 1.8px),radial-gradient(circle at 33px 16px,#94a6a6 0 1px,transparent 1.8px),radial-gradient(circle at 20px 21px,#fffefa 0 .8px,transparent 1.7px); background-size: 48px 28px; animation: star-drift 10s linear infinite; opacity: .9; }
.lane-environment--space::after { inset: 4px -10px; border-bottom: 1px solid #9ab3b588; border-radius: 50%; transform: rotate(-5deg); }
.answer-lane .lane-rail { z-index: 1; background: repeating-linear-gradient(90deg,#dfe5d8 0 5px,transparent 5px 10px); }
.lane-track--road .lane-rail { height: 4px; background: repeating-linear-gradient(90deg,#edc84d 0 14px,transparent 14px 36px); background-size: 36px 4px; animation: road-scroll .9s linear infinite; }
.lane-marker { position: absolute; top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translate(-50%,-50%); transition: left .2s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.lane-icon { display: grid; place-items: center; width: 37px; height: 37px; border: 2px solid var(--white); border-radius: 50%; background: var(--ink); box-shadow: 0 2px 8px #172b2722; font-size: 19px; line-height: 1; }
.directional-glyph { display: inline-block; }
.directional-glyph.turn-right { transform: scaleX(-1); }
.answer-marker.silhouette .lane-icon { background: transparent; border-color: transparent; filter: grayscale(1) brightness(0); opacity: .5; box-shadow: none; }
.answer-marker.revealed .lane-icon { background: transparent; border-color: transparent; box-shadow: none; font-size: 28px; animation: reveal-pop .42s cubic-bezier(.2,.8,.2,1) both; }
.answer-marker.revealed, .guess-marker { transition: none; will-change: left; }
.guess-marker { left: 0; gap: 0; transform: translate(-50%,-50%); }
.guess-marker .lane-icon.arrow-icon { width: 46px; height: 30px; padding: 4px 7px; border: 2px solid var(--ink); border-radius: 99px; background: var(--green); }
.arrow-icon svg { display: block; width: 100%; height: 100%; overflow: visible; }
.arrow-icon path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.marker-value { color: var(--ink); font: 500 9px var(--mono); letter-spacing: 0; line-height: 1.1; }
.answer-marker .marker-value { color: #6f8740; }
.lane-scale { display: flex; justify-content: space-between; color: #919c95; font: 9px var(--mono); margin: 0 14px; }
.no-guess { position: absolute; inset: 0; display: grid; place-items: center; color: #98a19c; font: 10px var(--mono); letter-spacing: .04em; }
.question-card + .recap-panel { margin-top: 14px; }
.recap-panel .panel-top { margin-top: 22px; }
.recap-panel .lane-heading strong { font-size: 11px; }
@keyframes reveal-pop { 0% { transform: scale(.65); opacity: .25; } 75% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes grass-bend { from { transform: rotate(calc(var(--blade-angle) - 3deg)); } to { transform: rotate(calc(var(--blade-angle) + 12deg)); } }
@keyframes cloud-drift { from { background-position: 0 0; } to { background-position: -170px 0; } }
@keyframes road-scroll { from { background-position: 0 0; } to { background-position: -36px 0; } }
@keyframes rail-scroll { from { background-position: 0 0; } to { background-position: -27px 0; } }
@keyframes star-drift { from { background-position: 0 0; } to { background-position: -48px 0; } }
@media (prefers-reduced-motion: reduce) { .lane-environment::before, .lane-environment::after, .grass-blade, .lane-track--road .lane-rail { animation: none !important; } }
.guess-control { margin-top: 20px; padding: 16px 16px 13px; border: 1px solid var(--line); border-radius: 10px; background: #f7f7f2; }
.guess-control .range-wrap { margin: 14px 0 8px; }
.guess-control .range { cursor: pointer; }
.guess-control .range:disabled { cursor: default; opacity: .55; }
.online-count { display: flex; align-items: center; gap: 5px; color: #75837d; font: 10px var(--mono); }
.online-count i { display: block; width: 6px; height: 6px; background: #6fb761; border-radius: 50%; }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid #172b2733; border-top-color: #172b27; border-radius: 50%; vertical-align: middle; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 850px) {
  .app-shell { padding: 0 24px; } .landing { gap: 25px; }
  .game-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 14px; }
  .question-card { min-height: 285px; } .question-card h2 { font-size: 42px; }
}
@media (max-width: 680px) {
  .app-shell { padding: 0 17px; } .topbar { height: 62px; } .view { min-height: calc(100vh - 112px); } .footer { height: auto; min-height: 50px; padding: 9px 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; font-size: 8px; } .footer span:last-child { font-size: 7px; letter-spacing: .08em; }
  .landing { display: flex; flex-direction: column; align-items: stretch; padding: 28px 0 24px; gap: 22px; }
  .hero-copy { padding: 12px 0 0; } .hero-copy h1 { font-size: 68px; margin: 18px 0; } .hero-sub { font-size: 15px; }
  .hero-pitches { margin-top: 22px; gap: 11px; } .hero-pitch { padding-left: 10px; }
  .hero-pitch strong { font-size: 13px; } .hero-pitch p { font-size: 10px; }
  .entry-card { padding: 21px; } .rules { margin-top: 14px; grid-template-columns: 1fr; }
  .daily-section { margin: 22px 0 35px; } .daily-game-panel { padding: 18px; }
  .daily-head { gap: 8px; margin-bottom: 15px; } .daily-head h2 { font-size: 27px; }
  .daily-head .count-tag { padding: 6px 8px; font-size: 8px; }
  .daily-question-strip { min-height: 78px; padding: 13px 14px; gap: 10px; }
  .daily-question-strip h3 { font-size: 24px; } .daily-question-strip p { margin-top: 5px; font-size: 13px; }
  .daily-question-icon { width: 48px; height: 48px; font-size: 27px; }
  .daily-lanes-wrap { margin-top: 14px; }
  .daily-control-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-areas: "guess guess" "unit submit"; align-items: end; gap: 10px; margin-top: 15px; }
  .daily-unit-row { grid-area: unit; gap: 6px; } .daily-guess-control { grid-area: guess; padding: 12px 13px 9px; }
  .daily-unit-select { height: 40px; } .daily-submit { grid-area: submit; width: 100%; }
  .daily-result { margin-top: 14px; padding: 13px; } .daily-result-values { gap: 6px; }
  .daily-result-values div { padding: 9px 7px; } .daily-result-values span { font-size: 7px; }
  .daily-result-values strong { font-size: 10px; }
  .daily-community { margin-top: 11px; padding: 13px 11px 11px; }
  .daily-community-head h3 { font-size: 18px; } .community-refresh { width: 30px; height: 30px; }
  .community-stats { gap: 5px; margin-top: 11px; } .community-stats > div { padding: 9px 7px; }
  .community-stats strong { font-size: 15px; } .community-stats span { font-size: 6px; }
  .community-chart { gap: 3px; height: 112px; margin-top: 12px; }
  .community-bin { grid-template-rows: 15px 1fr 13px; } .community-bar-track { height: 76px; }
  .community-bin-label { font-size: 6px; letter-spacing: -.04em; }
  .community-axis-note { font-size: 6px; } .community-privacy { font-size: 8px; }
  .rule { display: grid; grid-template-columns: 22px 1fr; align-items: start; padding: 12px 14px; }
  .rule-no { grid-row: span 2; } .rule strong { margin: 0 0 2px; }
  .game-layout { display: flex; flex-direction: column; padding: 12px 0 15px; gap: 12px; }
  .game-head { margin: 3px 0 10px; } .game-head h1 { font-size: 27px; } .room-code { font-size: 12px; }
  .panel { padding: 14px; } .sidebar { order: 2; display: grid; grid-template-columns: 1fr; } .side-card { padding: 12px; }
  .health-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .room-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .health-row { gap: 5px; padding: 9px 0; } .health-ident { gap: 6px; } .health-heart { width: 30px; height: 28px; }
  .health-name { font-size: 10px; } .health-caption { font-size: 8px; } .health-val { font-size: 10px; } .health-val small { font-size: 8px; }
  .speed-lanes { gap: 16px; } .lane-track { margin-left: 12px; margin-right: 12px; height: 52px; } .lane-scale { margin-left: 12px; margin-right: 12px; }
  .lane-icon { width: 34px; height: 34px; font-size: 17px; } .lane-heading { font-size: 9px; } .lane-heading strong { font-size: 9px; }
  .question-card { padding: 15px 18px; min-height: 132px; } .question-card h2 { font-size: 34px; margin: 12px 0 4px; } .question-card p { font-size: 15px; margin-top: 6px; } .timer { right: 16px; bottom: 11px; font-size: 10px; }
  .guess-actions { align-items: center; gap: 8px; } .submit-btn { min-width: 132px; padding: 11px 12px; }
  .speed-lanes { gap: 11px; } .lane-heading { font-size: 8px; } .lane-heading strong { font-size: 8px; }
  .lane-track { height: 40px; margin-top: 4px; } .lane-scale { font-size: 8px; }
  .lane-icon { width: 29px; height: 29px; font-size: 15px; }
  .answer-marker.revealed .lane-icon { font-size: 22px; }
  .guess-marker .lane-icon.arrow-icon { width: 38px; height: 26px; padding: 3px 5px; }
  .guess-control { margin-top: 12px; padding: 11px 12px 8px; } .guess-control .range-wrap { margin: 9px 0 5px; }
  .damage-rule { font-size: 8px; } .guess-actions { margin-top: 10px; }
  .recap-panel .panel-top { margin-top: 12px; } .result-row { padding: 8px 0; font-size: 11px; }
  .player-grid { grid-template-columns: 1fr 1fr; gap: 7px; } .player-chip { padding: 9px 7px; gap: 7px; }
  .round-layout .sidebar .side-card:nth-child(2) { display: none; }
  .avatar { width: 26px; height: 26px; } .player-chip strong { font-size: 11px; } .result-row { gap: 8px; }
  .results-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; margin-top: 11px; }
  .result-row { min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 3px 6px; padding: 6px 0; }
  .result-row > span:first-child { grid-column: 1 / -1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .result-row .result-guess { grid-column: 1; grid-row: 2; font-size: 9px; }
  .result-row .damage { grid-column: 2; grid-row: 2; justify-self: end; font-size: 9px; }
  .winner-panel h2 { font-size: 36px; }
}
@media (min-width: 681px) and (max-height: 900px) {
  .topbar { height: 62px; }
  .view { min-height: calc(100svh - 108px); }
  .footer { height: 46px; }
  .game-layout { padding: 9px 0 13px; gap: 18px; }
  .game-head { margin: 2px 0 9px; }
  .game-head h1 { font-size: 28px; margin-top: 5px; }
  .question-card { min-height: 148px; padding: 17px 21px; }
  .question-card h2 { font-size: 38px; margin: 12px 0 4px; }
  .question-card p { font-size: 14px; }
  .question-card .timer { bottom: 14px; right: 18px; }
  .panel { padding: 16px; }
  .speed-lanes { gap: 11px; }
  .lane-track { height: 42px; margin-top: 4px; }
  .guess-control { margin-top: 12px; padding: 12px 13px 9px; }
  .guess-control .range-wrap { margin: 8px 0 5px; }
  .recap-panel .panel-top { margin-top: 12px; }
  .result-row { padding: 7px 0; font-size: 11px; }
  .room-actions { margin-top: 11px; }
  .side-card { padding: 15px; }
  .health-row { padding: 8px 0; }
  .damage-rule { font-size: 9px; }
  .guess-actions { margin-top: 12px; }
}
@media (max-height: 760px) {
  .topbar { height: 54px; }
  .footer { height: 38px; }
  .view { min-height: calc(100svh - 92px); }
  .game-layout { padding: 6px 0 8px; }
  .game-head { margin: 0 0 7px; }
  .game-head h1 { font-size: 24px; }
  .question-card { min-height: 122px; padding: 13px 17px; }
  .question-card h2 { font-size: 31px; margin: 9px 0 3px; }
  .panel { padding: 12px; }
  .speed-lanes { gap: 8px; }
  .lane-track { height: 34px; }
  .lane-icon { width: 26px; height: 26px; font-size: 13px; }
  .answer-marker.revealed .lane-icon { font-size: 19px; }
  .guess-marker .lane-icon.arrow-icon { width: 34px; height: 23px; }
  .guess-control { margin-top: 9px; padding: 9px 10px 7px; }
  .guess-top label, .guess-control .range-labels { font-size: 8px; }
  .guess-control .guess-number { font-size: 25px; }
  .damage-rule { font-size: 7px; }
  .guess-actions { margin-top: 8px; }
  .submit-btn { padding: 9px 10px; }
  .recap-panel .panel-top { margin-top: 9px; }
  .result-row { padding: 5px 0; }
  .side-card { padding: 11px; }
  .health-row { padding: 5px 0; }
  .health-heart { width: 30px; height: 28px; }
  .health-caption { margin-top: 1px; }
}
