/* Daylight palette shared by the title screen and race controls. */
:root { --daylight-ink:#24334e; --daylight-muted:#52647a; --daylight-blue:#2e49df; --daylight-blue-soft:#edf0ff; --daylight-teal:#007b76; --daylight-coral:#e85a43; --daylight-line:#dde5eb; --daylight-mist:#f4f7f9; --daylight-shadow:0 12px 36px #293c552c; }
dialog,.overlay-card { color:var(--daylight-ink); }
dialog { background:#fff; border:3px solid #fff; box-shadow:var(--daylight-shadow); }
dialog.task-dialog { background:#fff; border-color:#fff; }
dialog::backdrop { background:#27354e52; }
dialog.fallback-dialog[open] { box-shadow:var(--daylight-shadow),0 0 0 100vmax #27354e52; }
.dialog-head { padding-bottom:8px; border-bottom:2px solid var(--daylight-line); }
.dialog-head h2,.task-dialog .dialog-head h2 { color:var(--daylight-ink); font-weight:950; }
.dialog-head h2::before { content:""; display:inline-block; width:19px; height:19px; margin-right:6px; vertical-align:-2px; background:var(--daylight-coral); }
#settings .dialog-head { background:#fff; border-bottom:2px solid var(--daylight-line); }
dialog button,.overlay-actions button { color:var(--daylight-ink); border:1px solid var(--daylight-line); background:var(--daylight-mist); border-radius:10px; box-shadow:0 2px 0 #dfe7ed; font-weight:750; transition:filter .12s,translate .12s; }
dialog button:hover,.overlay-actions button:hover { filter:brightness(.97); }
dialog button:active,.overlay-actions button:active { translate:0 2px; }
dialog button:disabled { opacity:1; color:#64758a; background:#eef2f5; border-color:#e6ebf0; box-shadow:none; text-shadow:none; }
dialog .primary,.task-dialog .primary,.overlay-card .primary { color:#fff; border-color:var(--daylight-blue); background:var(--daylight-blue); box-shadow:0 3px 0 #2237ad; text-shadow:none; font-weight:900; }
.dialog-head form button { background:#fff; color:var(--daylight-ink); border-color:var(--daylight-line); text-shadow:none; box-shadow:none; }
.task-dialog .muted,.muted { color:var(--daylight-muted); }
.panel { border-top-color:var(--daylight-line); }.panel select,.room-map-settings select { border:1px solid var(--daylight-line); border-radius:8px; background:#fff; color:var(--daylight-ink); box-shadow:inset 0 2px 3px #1d578014; }
.audio-settings input[type=range] { accent-color:var(--daylight-teal); }.audio-settings input[type=checkbox] { accent-color:#1367d3; }
.audio-settings a { color:var(--daylight-blue); font-weight:750; }.audio-settings .section-label { color:#4172a8; }
.hud,.touch-device.match-active .hud,.touch-device.match-result .hud { color:var(--daylight-ink); background:#fffdf8fa; border-bottom:2px solid #d5ece8; box-shadow:0 2px 8px #27384d12; }
.hud .identity small,.hud .score .label { color:var(--daylight-muted); }
.hud .identity .daylight-wordmark { background:#fffdf8 url('art/home-logo-v34.png') center/88% auto no-repeat; border:1px solid #eeeae1; border-radius:8px; }
.hud button,.hud .brandmark { color:var(--daylight-ink); background:#fff; border:1px solid var(--daylight-line); box-shadow:none; text-shadow:none; font-weight:750; }
.hud button:hover { background:#edf8f5; }
.hud button:disabled { color:#69788a; opacity:.65; }
.score #timer,.hud #taskCount { color:var(--daylight-ink); text-shadow:none; }
.score #timer.urgent { color:#b33523; text-shadow:none; }
.race-clock { border-color:var(--daylight-line); }.clock-track { background:#e1ede9; box-shadow:none; }#clockFill { background:linear-gradient(90deg,#2cb9a8,#77d8c6); }#clockFill.urgent { background:linear-gradient(90deg,#ef624b,#ffab78); }
.stage-label { color:#176b63; background:#e7f7f3; border:1px solid #c7ebe3; }
.phone-portrait .drive-controls { background:#fffdf8; border-top:2px solid #d5ece8; }
.overlay-card { border:3px solid #fff; background:#fff; box-shadow:var(--daylight-shadow); }
.overlay-card .eyebrow { color:var(--daylight-teal); font-weight:850; letter-spacing:.08em; }.overlay-card h2 { color:var(--daylight-ink); }.overlay-card p { color:var(--daylight-muted); }
#overlayHome,#practiceSettings,#restart,#resultExit { background:var(--daylight-mist); color:var(--daylight-ink); border:1px solid var(--daylight-line); box-shadow:0 2px 0 #dfe7ed; text-shadow:none; }
#chapterTabs button { color:var(--daylight-ink); background:var(--daylight-mist); border:1px solid var(--daylight-line); box-shadow:none; text-shadow:none; }
#chapterTabs [aria-pressed=true] { color:#fff; background:var(--daylight-blue); border-color:var(--daylight-blue); box-shadow:none; text-shadow:none; }
#campaignProgress { color:var(--daylight-muted); }#campaignChapter { color:var(--daylight-ink); }
#campaignLevels button { background:#fff; color:var(--daylight-ink); border-color:var(--daylight-line); box-shadow:none; text-shadow:none; }
#campaignLevels .is-selected { background:#e3f8f2; color:#0e675d; border-color:#83d4c4; box-shadow:none; }
#campaignLevels .is-locked { color:#6a788b; background:#f4f6f8; border-color:#e8edf1; box-shadow:none; }
.campaign-detail { border:1px solid #eee9db; background:#fffbf1; box-shadow:none; }
.campaign-detail h3,#campaignObjective { color:var(--daylight-ink); }#campaignStars,#campaignNumbers,#campaignBonus,.campaign-footer small { color:#466d94; }
.growth-hero { position:relative; overflow:hidden; background:#eefaf5; border:2px solid #d6efe7; box-shadow:none; border-radius:13px; }
.growth-hero::after { content:""; position:absolute; right:-8px; top:-10px; width:65px; height:120px; transform:skewX(-25deg); background:linear-gradient(90deg,transparent,#ffffff1c,transparent); pointer-events:none; }
.growth-hero strong,.growth-hero small,.growth-hero .growth-kicker,.growth-wallet span { color:#215f58; }.growth-hero strong { text-shadow:none; }
#growthFeedback { color:#176b63; }#speedEffect { color:var(--daylight-teal); }#growthProgress { accent-color:#ffb82d; border-radius:10px; }#growthProgress::-webkit-progress-bar { background:#e1ede9; border-radius:10px; }#growthProgress::-webkit-progress-value { background:linear-gradient(90deg,#36bda9,#83d9cb); border-radius:10px; }
.growth-stages li { color:var(--daylight-muted); background:#fff; border-color:var(--daylight-line); box-shadow:none; }
.growth-stages [aria-current] { color:#126a60; background:#e5f7f1; border-color:#a2dcd1; font-weight:850; }
.room-preview { display:flex; align-items:center; justify-content:center; gap:13px; margin-bottom:7px; }
.room-preview img { width:62px; height:62px; filter:drop-shadow(0 4px 3px #123f8c45); }.room-preview b { color:#2468cc; font-size:28px; font-weight:950; font-style:italic; text-shadow:1px 2px white,0 3px #ffcc63; }
.room-intro p:first-of-type { color:#2163ae; font-weight:850; margin:3px 0; font-size:16px; }.room-intro p { line-height:1.4; }
.room-map-settings { display:grid; grid-template-columns:1.2fr 1fr; gap:8px; }.room-map-settings label { font-size:11px; color:#507ba2; font-weight:750; }
.room-map-settings select { display:block; width:100%; min-width:0; padding:6px 4px; font:inherit; font-size:13px; margin-top:3px; }
.room-entry-actions { gap:9px; }#roomEntry:not([hidden]) { gap:12px; }
#roomDialog #roomNumber { color:var(--daylight-blue); }#roomDialog .versus-stage { border-color:#f5efe2; box-shadow:none; }
.versus-seat span { border:1px solid #fff9; box-shadow:0 2px #285ba02b; }
#roomCode { color:var(--daylight-ink); background:#fff; border-color:var(--daylight-line); box-shadow:none; }
#roomPlayers,#roomRole,#roomMessage { color:var(--daylight-muted); }
.mission-dialog .dialog-head h2 { color:var(--daylight-ink); }.mission-dialog .mission-close { background:transparent; color:#4783b2; text-shadow:none; box-shadow:none; }
#missionGoal { color:var(--daylight-ink); }.mission-dialog[data-role=hunter] #missionGoal { color:#c25b15; }
.mission-clock { position:relative; padding:7px 0; background:radial-gradient(ellipse,#fff9ce,transparent 72%); }
#missionCountdown { color:#d74d36; text-shadow:none; }#missionCountdownHelp { color:#5081ac; }
.match-result .overlay { background:radial-gradient(ellipse at center,#3b302d36,#141d37b5); }
.match-result .overlay-card {
  --result-surface:#fffaf0;
  --result-glow:#ffe27d;
  --result-rim:#e8b84e;
  --result-halo:#e8b84e4d;
  --result-text:#78501c;
  background:radial-gradient(ellipse at 13% 0%,var(--result-glow),var(--result-surface) 63%);
  border-color:var(--result-rim);
  box-shadow:0 0 0 4px var(--result-halo),0 16px 52px #181c3c55;
}
.match-result [data-outcome=lose] .overlay-card {
  --result-surface:#fff6ef;
  --result-glow:#ffb4a1;
  --result-rim:#ef8d76;
  --result-halo:#ef8d764d;
  --result-text:#963e32;
}
.match-result #resultTitle { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.match-result #resultText { overflow:visible; flex-shrink:0; min-height:1.4em; margin:6px 0 8px; color:var(--result-text); }
.match-result .result-stats>div { background:#f6f8fa; border-color:var(--daylight-line); box-shadow:none; }
.match-result .result-stats span { color:#527ba0; }.match-result .result-stats strong { color:#1a5fb6; }
.match-result #resultGrowth,.match-result #resultExit,.match-result #overlayHome {
  background:#fff9; color:var(--daylight-ink); border:1px solid #dfe4ec;
  box-shadow:none; text-shadow:none;
}
.match-result .result-stats>div { background:#fff9; }
.match-result .overlay-card .eyebrow,#resultSummary { color:var(--result-text); }
.match-result .result-stats span { color:var(--daylight-muted); }
.match-result .result-stats strong,#resultVerdict { color:var(--daylight-blue); }
[data-outcome=lose] #resultVerdict { color:#b93828; }
@media (orientation:landscape) and (max-height:500px) {
 .room-preview img { width:49px; height:49px; }.room-preview { gap:8px; }.room-preview b { font-size:24px; }
 .room-map-settings select { padding:5px 3px; font-size:12px; }.room-intro p:first-of-type { font-size:16px; }
 .match-result .result-emblem { height:84px; }.match-result .result-emblem img { width:79px; height:79px; }.match-result .result-hero { grid-template-columns:88px minmax(0,1fr); }
 .match-result #resultVerdict { font-size:43px; }
}
@media (orientation:landscape) and (max-height:340px) {
 .dialog-head { padding-bottom:4px; }.dialog-head h2::before { width:15px; height:15px; margin-right:4px; }
 .room-preview img { width:38px; height:38px; }.room-preview { gap:7px; margin-bottom:3px; }.room-preview b { font-size:20px; }
 .room-intro p:first-of-type { font-size:14px; }.room-intro .muted { font-size:10px; }.room-map-settings select { padding:4px 2px; font-size:11px; margin-top:1px; }.room-map-settings label { font-size:10px; }.room-entry-actions { gap:7px; }
 .match-result .result-emblem { height:64px; }.match-result .result-emblem img { width:62px; height:62px; }.match-result .result-hero { grid-template-columns:69px minmax(0,1fr); }.match-result #resultVerdict { font-size:34px; }.match-result #resultText { font-size:11px; margin:4px 0 6px; }
}
@media (orientation:portrait) and (max-height:520px) {
 .room-preview { display:none; }.room-intro p:first-of-type { font-size:14px; }.room-entry-actions { gap:7px; }.room-map-settings select { padding:4px 3px; font-size:12px; }.dialog-head { padding-bottom:4px; }
}
@media (prefers-reduced-motion:reduce) { dialog button,.overlay-actions button { transition:none; } }
.touch-device .room-map-settings select { font-size:16px; min-height:32px; }
.phone-portrait .room-header { display:grid; grid-template-columns:minmax(0,1fr) auto; }
.phone-portrait .room-header h2 { grid-column:1; grid-row:1; }
.phone-portrait .room-header form { grid-column:2; grid-row:1; }
.phone-portrait #roomDialog .room-invite { grid-column:1/-1; grid-row:2; margin:0; justify-content:space-between; }

.dialog-head h2::before { clip-path:none; border:0; border-radius:0; box-shadow:none; -webkit-mask:var(--panel-icon) center/contain no-repeat; mask:var(--panel-icon) center/contain no-repeat; filter:none; }
#campaignDialog { --panel-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M7%203h10v7c0%208-10%208-10%200ZM7%206H3v4c0%204%204%205%205%205m9-9h4v4c0%204-4%205-5%205M12%2015v6M8%2021h8%22%2F%3E%3C%2Fsvg%3E"); }
#growth { --panel-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20fill%3D%22white%22%20stroke%3D%22none%22%20d%3D%22m14%201-11%2013h7L8%2023%2022%209h-8l3-8Z%22%2F%3E%3C%2Fsvg%3E"); }
#roomDialog { --panel-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%2015%206-6m-7%203-2%202c-5%205%201%2011%206%206l3-3m1-5%202-2c5-5-1-11-6-6l-3%203%22%2F%3E%3C%2Fsvg%3E"); }
#settings { --panel-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10%202%204%200%201%203%203%202%203%200%202%204-2%203-1%203-4%201-2%203-4-1-2-3-3-2%201-4-1-3%203-3Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E"); }
#missionDialog { --panel-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2022V3m0%201h13l-3%204%203%204H5%22%2F%3E%3C%2Fsvg%3E"); }
#displayDialog { --panel-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203H3v5m13-5h5v5M3%2016v5h5m8%200h5v-5%22%2F%3E%3C%2Fsvg%3E"); }
#leaveDialog { --panel-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%204H4v16h6m4-14%206%206-6%206m6-6H9%22%2F%3E%3C%2Fsvg%3E"); }
.task-dialog .primary:disabled { color:#64758a; background:#eef2f5; border-color:#e6ebf0; box-shadow:none; text-shadow:none; opacity:1; }
@media (orientation:landscape) and (max-height:300px) {
 #growth .dialog-head { padding-bottom:2px; margin-bottom:3px; }
 .touch-device #growth .growth-layout { row-gap:3px; }
 .touch-device #growth .growth-hero { padding-block:8px; }
}
#settingsLiveNotice { margin:4px 0 9px; padding:6px 8px; color:#8b5b0d; background:#fff1c2; border:1px solid #edcc7a; border-radius:7px; }
.audio-settings.panel { border-top:0; margin-top:4px; }
.audio-settings input[type=range] { -webkit-appearance:none; appearance:none; height:28px; padding:0; background:transparent; cursor:pointer; }
.audio-settings input[type=range]::-webkit-slider-runnable-track { height:7px; border-radius:8px; border:1px solid #d5e4df; background:linear-gradient(90deg,#42b9a9 0 var(--range-fill,42%),#e0eae7 var(--range-fill,42%) 100%); box-shadow:inset 0 1px 2px #4175a124; }
.audio-settings input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; margin-top:-8px; border:2px solid white; border-radius:50%; background:#169888; box-shadow:0 2px 5px #285b5140; }
.audio-settings input[type=range]::-moz-range-track { height:7px; border-radius:8px; background:#e0eae7; }
.audio-settings input[type=range]::-moz-range-progress { height:7px; background:#42b9a9; border-radius:8px; }
.audio-settings input[type=range]::-moz-range-thumb { width:19px; height:19px; border:2px solid white; border-radius:50%; background:#42b9a9; }
.room-map-settings select,.panel select { -webkit-appearance:none; appearance:none; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23225b94' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 7px center/10px 7px no-repeat; padding-right:22px; }
.touch-device .room-map-settings select { height:34px; line-height:1.2; }
.touch-device .panel select { min-height:38px; }

.mission-dialog::backdrop { background:#27354e52; }


#matchMenu { width:min(380px,calc(var(--screen-width,100vw) - 24px)); }
.match-menu-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
#continueOnline { grid-column:1/-1; }
#exitMatch { color:#a13528; background:#fff0eb; border-color:#f0c7be; }
#view[hidden],#pause[hidden],#openSettings[hidden] { display:none; }
.match-active .hud #displayMode,.match-result .hud #displayMode { display:none; }
body:not(.match-active):not(.match-result) .hud .score { visibility:hidden; }
.touch-device.compact-hud .hud { grid-template-columns:minmax(0,1fr) max-content max-content; }
.touch-device.compact-hud .actions { grid-column:auto; justify-content:flex-end; }
.touch-device.compact-hud .actions button { flex:none; padding-inline:7px; }
@media (orientation:portrait) and (min-width:320px) {
  .phone-portrait.compact-hud .hud { grid-template-columns:minmax(0,1fr) max-content minmax(84px,1fr); }
  .phone-portrait .score { justify-content:center; }
}
#resultTag:empty,#resultText:empty { display:none; }
@media (max-height:300px) and (orientation:landscape) {
  .match-menu-actions { gap:6px; margin-top:8px; }
}

.match-active .hud .actions,.match-result .hud .actions { min-height:38px; }
#matchMenu .dialog-head h2::before { display:none; }
