* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #101a2a;
  --header: #111d2e;
  --panel: #1a283c;
  --panel-deep: #152236;
  --line: #334459;
  --text: #f3f5f8;
  --muted: #afbdd0;
  --faint: #9cacc1;
  --amber: #ffca72;
  --amber-strong: #ffb84e;
  --green: #81ddaf;
  --red: #ff8990;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
h1:focus, #fix-question:focus { outline: none; }
.icon { width: 1.22em; height: 1.22em; display: inline-block; flex: none; vertical-align: middle; }
[data-icon] { display: inline-grid; place-items: center; }
.shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
#app { flex: 1; padding-block: 36px 64px; }
.site-header { border-bottom: 1px solid #2a394d; background: var(--header); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-brand { display: flex; align-items: center; gap: 16px; max-width: 100%; }
.company-logo { display: block; max-width: 100%; }
.company-logo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 5px; }
.header-logo { width: 294px; }
.brand { display: inline-block; font-size: .88rem; font-weight: 750; letter-spacing: .045em; text-decoration: none; line-height: 1.15; white-space: nowrap; }
.brand strong { color: var(--amber); }
.brand small { text-transform: uppercase; display: block; color: var(--faint); font-size: .57rem; letter-spacing: .18em; margin-top: 5px; }
nav { display: flex; align-items: center; gap: 6px; }
nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .86rem; font-weight: 650; text-decoration: none; padding: 10px 13px; min-height: 44px; border-radius: 8px; }
nav a:hover { background: var(--panel); color: var(--text); }
nav a[aria-current] { color: var(--amber); background: #ffca7212; }
.language-switch { display: inline-flex; align-items: center; flex: none; color: var(--faint); border: 1px solid var(--line); border-radius: 8px; }
.language-switch button { min-width: 32px; min-height: 36px; padding: 3px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: .75rem; font-weight: 750; cursor: pointer; }
.language-switch button:hover { color: var(--text); }
.language-switch button[aria-pressed="true"] { color: var(--amber); background: #ffca7212; }
.language-status { margin-block: 0; color: var(--amber); font-size: .8rem; }
.language-status:not(:empty) { padding-bottom: 10px; }
.site-footer { border-top: 1px solid #2a394d; color: var(--faint); font-size: .8rem; }
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 22px; padding-block: 19px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--amber); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--green); vertical-align: .1em; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.eyebrow, .drawing-header, .room-label {
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: .13em;
  font-weight: 700;
}
.eyebrow { color: var(--amber); font-size: .73rem; display: block; }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.22fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: 15px 0 34px; }
.hero-label { display: flex; align-items: center; gap: 10px; }
.hero-label span { width: 20px; height: 1px; background: var(--amber); }
.hero h1 { font-size: clamp(3.4rem, 6.35vw, 6.15rem); letter-spacing: -.075em; line-height: .96; margin: 18px 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-copy > p { font-size: clamp(1rem, 1.45vw, 1.18rem); color: var(--muted); max-width: 33ch; }
#start-form { margin-top: 28px; }
#start-form label { display: block; font-size: .82rem; font-weight: 650; margin-bottom: 8px; }
.start-controls { display: flex; flex-wrap: wrap; gap: 9px; }
.start-controls input { flex: 1 1 145px; min-width: 0; width: 100%; padding: 0 13px; min-height: 48px; color: var(--text); background: #131f31; border: 1px solid #465872; border-radius: 8px; }
.start-controls input::placeholder { color: var(--faint); }
.button, .text-button, .icon-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: .9rem; text-decoration: none; }
.button { padding: 10px 16px; }
.primary { background: var(--amber); color: #201912; }
.primary:hover { background: #ffda96; }
.secondary { background: var(--panel-deep); border-color: #50617a; color: var(--text); }
.secondary:hover { border-color: var(--amber); }
.text-button { color: var(--muted); background: transparent; padding: 0 4px; }
.text-button:hover { color: var(--amber); }
.hero-copy > .text-button { margin-top: 5px; }
.icon-button { padding: 8px; min-width: 44px; background: var(--panel-deep); border-color: var(--line); color: var(--text); }
.daily-challenge { padding: 12px 14px; margin-top: 9px; }
.daily-challenge h2 { color: var(--amber); font-size: .95rem; margin-bottom: 5px; }
.daily-challenge h2 .icon { margin-right: 3px; }
.daily-challenge p { color: var(--muted); font-size: .85rem; }
.daily-challenge strong { color: var(--text); }
.hero-drawing, .stage { overflow: hidden; background: #142135; }
.hero-drawing { box-shadow: 0 16px 42px #050b1640; }
.drawing-header, .drawing-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 17px; color: var(--muted); font-size: .73rem; }
.drawing-header { border-bottom: 1px solid var(--line); }
.drawing-header .icon { color: var(--amber); margin-right: 6px; }
.drawing-header span:last-child, .drawing-footer span:last-child:not(:first-child) { color: var(--faint); }
.drawing-footer { border-top: 1px solid var(--line); }
.brief { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 17px 20px; }
.tile-icon { display: inline-grid; width: 43px; height: 43px; place-items: center; color: var(--amber); background: #ffca7216; border: 1px solid #ffca7232; border-radius: 10px; font-size: 1.13rem; }
.brief h2 { font-size: 1.04rem; margin-bottom: 4px; }
.brief p, .level-card p, .badge-card p { color: var(--muted); font-size: .9rem; }
#save-status.storage-unavailable .status-dot { display: none; }
.reference { border-left: 1px solid var(--line); padding-left: 20px; min-width: 195px; }
.reference strong { display: block; color: var(--amber); font-size: 1.62rem; line-height: 1.15; }
.reference small { font-size: .8rem; }
.reference span { color: var(--muted); font-size: .76rem; }
.training { margin-top: 32px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.training .section-heading { display: block; }
.training .section-heading h2 { margin-top: 4px; }
.section-heading h2 { font-size: 1.48rem; }
.section-heading > span:not(.eyebrow) { color: var(--muted); }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.level-card { padding: 16px 17px; }
.level-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 15px; }
.level-state { color: var(--green); display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; white-space: nowrap; }
.level-state.locked { color: var(--faint); }
.level-card h3 { font-size: 1.13rem; margin: 5px 0 7px; }
.level-card .stars { margin-top: 12px; }
.page-heading { margin: 8px 0 23px; }
.page-heading h1 { font-size: clamp(2rem, 4.5vw, 3.65rem); letter-spacing: -.05em; max-width: 28ch; margin-top: 7px; }
.page-heading p { color: var(--muted); margin-top: 8px; }
.hud { display: grid; grid-template-columns: auto auto auto minmax(130px, 1fr) auto; align-items: center; gap: 18px; padding: 13px 17px; margin-bottom: 16px; }
.hud-stat { display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--line); padding-right: 18px; }
.hud-stat > .icon { color: var(--amber); }
.hud-stat span:not(.hearts), .hud-progress label { display: block; color: var(--muted); font-size: .76rem; }
.hud-stat strong { font-size: 1.23rem; font-variant-numeric: tabular-nums; }
.hud-stat .urgent { color: var(--red); }
.hearts { display: inline-flex; gap: 3px; white-space: nowrap; color: #8495ae; }
.hearts .full { color: var(--red); fill: var(--red); }
.hud-progress { min-width: 0; }
.hud-progress label { display: flex; justify-content: space-between; gap: 6px; }
progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 8px; background: #101a2c; color: var(--amber-strong); accent-color: var(--amber-strong); }
progress::-webkit-progress-bar { background: #101a2c; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--amber-strong); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--amber-strong); border-radius: 8px; }
.hunt-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr); gap: 16px; align-items: start; }
.ranger { display: flex; align-items: center; gap: 14px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.ranger-avatar { position: relative; flex: 0 0 44px; height: 48px; animation: ranger-greet .8s ease-in-out; }
.ranger-avatar span { position: absolute; }
.ranger-helmet {
  z-index: 2; top: 0; left: 3px; width: 38px; height: 19px;
  background: var(--amber); border-bottom: 4px solid #d88a32; border-radius: 20px 20px 5px 5px;
}
.ranger-helmet::after {
  content: ""; position: absolute; top: 4px; left: 15px; width: 8px; height: 8px;
  background: #fff0c8; border-radius: 50%;
}
.ranger-face {
  z-index: 1; top: 14px; left: 8px; width: 28px; height: 24px;
  background: #f5bf91; border-radius: 4px 4px 50% 50%;
}
.ranger-face::before {
  content: ""; position: absolute; top: 9px; left: 7px; width: 3px; height: 4px;
  background: #252032; border-radius: 50%; box-shadow: 11px 0 #252032;
}
.ranger-face::after {
  content: ""; position: absolute; top: 13px; left: 10px; width: 8px; height: 5px;
  border-bottom: 2px solid #653d42; border-radius: 50%;
}
.ranger-jacket {
  bottom: 0; left: 4px; width: 36px; height: 16px; border-radius: 13px 13px 5px 5px;
  background: linear-gradient(90deg, #287769 44%, #b1f1cc 44% 56%, #287769 56%);
}
.ranger-balloon {
  position: relative; padding: 5px 10px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 9px; font-size: .85rem; color: var(--muted);
}
.ranger-balloon::before {
  content: ""; position: absolute; top: 16px; left: -5px; width: 8px; height: 8px;
  background: var(--panel); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}
.ranger-balloon strong { color: var(--amber); }
.hunt-daily-target { margin-top: 4px; color: var(--amber); }
.ranger.has-hint .ranger-avatar { animation: ranger-tip .7s ease-in-out; }
@keyframes ranger-greet {
  30% { transform: translateY(-4px) rotate(-8deg); }
  65% { transform: rotate(5deg); }
}
@keyframes ranger-tip {
  35% { transform: translateY(-6px) rotate(8deg); }
  70% { transform: rotate(-5deg); }
}
.scene-scroll { overflow: auto; }
.stage .scene-svg { min-width: 640px; }
.scroll-hint { display: none; white-space: nowrap; }
.feedback-panel { padding: 18px; }
.feedback-panel h2, .detail-panel h2 { font-size: 1.14rem; }
.empty-note { padding-top: 20px; color: var(--muted); }
.empty-note .icon { font-size: 1.3rem; color: var(--amber); margin-bottom: 8px; }
.note { margin-top: 15px; padding: 13px 12px; background: #101a2c; border: 1px solid var(--line); border-radius: 9px; }
.note.positive .eyebrow, .fix-feedback.positive { color: var(--green); }
.note.negative .eyebrow, .fix-feedback.negative { color: var(--red); }
.note h3 { font-size: 1.06rem; margin: 8px 0; }
.note p, .detail-panel p, .result-panel > p { color: var(--muted); }
#hunt-end { color: var(--amber); font-weight: 700; margin-top: 16px; }
#hunt-next { margin-top: 17px; }
.scene-svg { display: block; width: 100%; height: auto; --technical: #9eb4c9; }
.scene-svg .diagram-bg { fill: #14243a; }
.scene-svg .room-fill { fill: #233750; }
.scene-svg .subroom { fill: #17283d; stroke: #658099; stroke-width: 1.2; }
.scene-svg .attic { fill: #1b2e46; }
.scene-svg .soil-fill { fill: #352e32; }
.scene-svg .earth-line { fill: none; stroke: #8c7565; stroke-width: 2; }
.scene-svg .soil-layer { fill: none; stroke: #705c55; stroke-width: 1; stroke-dasharray: 6 6; opacity: .8; }
.scene-svg .foundation { fill: #576777; stroke: #b6c3d0; stroke-width: 1.7; }
.scene-svg .gravel { fill: #49424a; }
.scene-svg .structure { fill: none; stroke: #b6c6d6; stroke-width: 6; stroke-linejoin: round; }
.scene-svg .fine, .scene-svg .detail { fill: none; stroke: var(--technical); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene-svg .fine { opacity: .6; }
.scene-svg .dimension { fill: none; stroke: #8b97a5; stroke-width: 1; stroke-dasharray: 3 3; }
.scene-svg .landscape { fill: none; stroke: #78928f; stroke-width: 1.6; opacity: .7; }
.scene-svg .furnish { fill: #344b61; stroke: #7893ac; stroke-width: 1.6; }
.scene-svg .fixture { fill: #3b536b; stroke: #b2c5d6; stroke-width: 1.8; stroke-linejoin: round; }
.scene-svg .glass { fill: #3b617a; stroke: #b4cde1; stroke-width: 1.8; }
.scene-svg .accent-line { fill: none; stroke: #d3e2ef; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scene-svg .pipe-outer, .scene-svg .pipe-inner { fill: none; stroke: #a7bfd1; stroke-width: 11; stroke-linejoin: round; }
.scene-svg .pipe-inner { stroke: #405d75; stroke-width: 7; }
.scene-svg .timber { fill: #675849; stroke: #baa38a; stroke-width: 1.6; }
.scene-svg .timber-joists { fill: none; stroke: #bfaa97; stroke-width: 4; }
.scene-svg .insulation { fill: none; stroke: #d3b88a; stroke-width: 1.4; }
.scene-svg .airflow { fill: none; stroke: #7ccee1; stroke-width: 2; stroke-dasharray: 6 4; stroke-linecap: round; }
.scene-svg .stair-flight { fill: none; stroke: #b6c6d6; stroke-width: 2.5; stroke-linejoin: round; }
.scene-svg .snow { fill: #a7bed0; stroke: #e2ebf5; stroke-width: 1.4; }
.scene-svg .detail-box { stroke: #658099; stroke-width: 1.3; }
.room-label { fill: #bcc9d8; font-size: 11px; }
.scene-object[role="button"] { cursor: pointer; touch-action: manipulation; outline: none; }
.scene-object[aria-disabled="true"] { cursor: default; }
.target-hit { fill: transparent; pointer-events: all; }
.target-ring { fill: none; stroke: #86a6c4; stroke-width: 1.3; stroke-dasharray: 3 4; opacity: .86; pointer-events: none; }
.target-dot { fill: #213b55; stroke: #a8c3dc; stroke-width: 1.1; }
.target-plus { stroke: #d5e4ef; stroke-width: 1.3; pointer-events: none; }
.preview-svg .target-dot { fill: #614725; stroke: #ffca72; }
.preview-svg .target-plus { stroke: #ffe1a8; }
.preview-svg .target-ring { stroke: #ffca72; opacity: .62; }
.scene-object:focus-visible .target-ring, .scene-object[aria-disabled="false"]:hover .target-ring { stroke: var(--amber); stroke-width: 2.6; stroke-dasharray: none; opacity: 1; }
.scene-object.found .target-ring { stroke: var(--red); stroke-width: 3; stroke-dasharray: none; opacity: 1; }
.scene-object.found .target-dot { fill: #8c3245; stroke: var(--red); }
.scene-object.decoy .target-ring { stroke: #acb7c8; opacity: .65; }
.scene-object.decoy .target-dot { fill: #546272; stroke: #aab8ca; }
.fix-panel, .result-panel { max-width: 850px; padding: clamp(16px, 3.5vw, 32px); }
.site-file { max-width: 850px; padding: clamp(16px, 3.5vw, 32px); }
.site-file .actions span { color: var(--muted); font-size: .85rem; }
.fact-line { margin-top: 12px; color: var(--muted); }
.fact-line strong { display: block; color: var(--text); font-size: .84em; }
.fact-sources { display: block; color: var(--muted); font-size: .84em; }
.fact-sources a, .source-list a { color: var(--amber); }
.note .fact-line { border-top: 1px solid var(--line); padding-top: 9px; font-size: .9rem; }
.rules-card { margin-top: 17px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-deep); }
.rules-card h2 { font-size: 1.12rem; }
.rules-optional { margin: 3px 0 7px; color: var(--muted); font-size: .85rem; }
.sources-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.source-list { display: grid; gap: 8px; padding-left: 20px; margin: 12px 0; }
.source-list + h2 { margin-top: 20px; }
.fix-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 14px; }
.fix-top span:last-child { color: var(--muted); font-size: .82rem; }
.fix-panel h2 { margin: 19px 0 8px; }
.fix-panel p { color: var(--muted); }
.options { display: grid; gap: 9px; margin-top: 20px; }
.option { text-align: left; width: 100%; display: flex; min-height: 57px; align-items: center; gap: 12px; border: 1px solid #495c75; border-radius: 8px; padding: 9px 13px; color: var(--text); background: var(--panel-deep); }
.option:enabled:hover { border-color: var(--amber); }
.option:disabled { cursor: default; opacity: 1; }
.option > .icon { margin-left: auto; }
.option.correct { color: var(--green); border-color: var(--green); }
.option.incorrect { color: var(--red); border-color: var(--red); }
.option-letter { flex: none; min-width: 28px; text-align: center; padding: 3px; font-family: Consolas, monospace; background: #2a3a50; border-radius: 5px; }
.fix-feedback { margin-top: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 15px; }
.stars { display: inline-flex; gap: 6px; color: #92a2b9; }
.stars .earned { color: var(--amber); fill: var(--amber); }
.celebration { font-size: 2.6rem; margin-bottom: 15px; }
.celebration .earned { animation: celebrate .45s cubic-bezier(.15,.55,.3,1.3) both; }
.celebration .earned:nth-child(2) { animation-delay: .08s; }
.celebration .earned:nth-child(3) { animation-delay: .16s; }
@keyframes celebrate { from { transform: translateY(10px) scale(.7); opacity: .4; } to { transform: none; opacity: 1; } }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 17px; }
.metrics div { background: var(--panel-deep); border-radius: 8px; padding: 10px 13px; }
.metrics span { display: block; font-size: .8rem; color: var(--muted); }
.metrics strong { font-size: 1.43rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.result-details { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; max-width: 850px; }
.detail-panel { padding: 16px; }
.detail-panel h2, .detail-panel strong { margin-bottom: 4px; }
.review-list { list-style: none; padding: 0; margin: 0; }
.review-list li, .new-badge { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.new-badge { display: flex; align-items: start; gap: 10px; }
.new-badge .tile-icon { flex: none; }
.leaderboard { max-width: 850px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 16px; overflow-wrap: anywhere; }
thead { background: var(--panel-deep); color: var(--muted); }
tbody tr { border-top: 1px solid var(--line); }
tbody td:first-child { color: var(--amber); }
.empty-state { text-align: center; padding: 40px 18px; }
.empty-state h2 { margin: 13px 0 6px; }
.empty-state p { margin-bottom: 14px; color: var(--muted); }
.badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.badge-card { padding: 15px; display: flex; gap: 12px; align-items: start; }
.badge-card .tile-icon { color: var(--faint); background: var(--panel-deep); border-color: var(--line); flex: none; }
.badge-card .tile-icon.earned { color: var(--amber); border-color: #ffca7244; background: #ffca7216; }
.badge-card h3 { margin-bottom: 4px; font-size: 1.08rem; }
.badge-card .level-state { margin-left: auto; }
.profile-levels { margin-top: 26px; }
dialog { width: min(500px, calc(100% - 30px)); padding: 24px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
dialog::backdrop { background: #050a15c9; }
dialog h2 { margin-top: 7px; }
.dialog-close { position: absolute; top: 12px; right: 12px; }
.instructions { margin: 17px 0; padding-left: 20px; color: var(--muted); }
.instructions li + li { margin-top: 9px; }
.instructions strong { color: var(--text); }
@media (max-width: 1050px) {
  .hunt-layout { grid-template-columns: minmax(0, 1fr); }
  .feedback-panel { min-height: 160px; }
}
@media (max-width: 1000px) {
  .header-brand .brand { display: none; }
}
@media (max-width: 850px) {
  .hud { grid-template-columns: auto auto auto minmax(130px, 1fr); }
  #hunt-stop { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hud { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; padding: 10px; }
  .hud-stat { border: 0; padding: 0; gap: 4px; }
  .hud-stat strong { font-size: 1rem; }
  .hud-progress, #hunt-stop { grid-column: 1 / -1; }
  .shell { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 3px; padding-bottom: 22px; }
  .hero h1 { font-size: clamp(3.6rem, 12vw, 5.2rem); }
  #app { padding-block: 23px 42px; }
  .start-controls { max-width: 470px; }
  .level-grid { grid-template-columns: 1fr; gap: 9px; }
  .scroll-hint { display: inline; }
  .badge-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 6px; padding: 10px 0 7px; }
  .header-logo { width: 274px; }
  nav { width: 100%; justify-content: space-between; gap: 3px; }
  nav a { flex: 1; padding: 8px 5px; font-size: .81rem; }
  nav a > [data-icon] { display: none; }
}
@media (max-width: 510px) {
  .brief { grid-template-columns: auto 1fr; gap: 10px; padding: 13px; }
  .reference { grid-column: 2; border-left: 0; padding-left: 0; }
  #hunt-stop .button { width: 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-details { grid-template-columns: 1fr; }
  th, td { padding: 10px 7px; font-size: .83rem; }
  .badge-card { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .celebration .earned, .ranger .ranger-avatar, .ranger.has-hint .ranger-avatar { animation: none; }
}
