:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #b9c8cf;
  --panel: rgba(10, 20, 25, .94);
  --panel-soft: rgba(17, 32, 37, .86);
  --line: rgba(211, 233, 238, .24);
  --ice: #8edbe0;
  --teal: #19a39a;
  --gold: #f2c458;
  --red: #d9584d;
  --blue: #397eb0;
  --safe-top: max(8px, env(safe-area-inset-top));
  --safe-right: max(8px, env(safe-area-inset-right));
  --safe-bottom: max(8px, env(safe-area-inset-bottom));
  --safe-left: max(8px, env(safe-area-inset-left));
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #0c171b; }
body { color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; touch-action: manipulation; }
button { min-width: 0; border: 0; color: inherit; font: inherit; letter-spacing: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; filter: saturate(.35); opacity: .56; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; min-width: 280px; min-height: 320px; overflow: hidden; isolation: isolate; background: #17272d; }
#gameCanvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

.surface { position: absolute; inset: 0; z-index: 20; min-width: 0; min-height: 0; }
.homeSurface { display: grid; grid-template-rows: auto 1fr auto auto; gap: 12px; padding: calc(var(--safe-top) + 28px) var(--safe-right) var(--safe-bottom) var(--safe-left); text-align: center; background: rgba(8, 16, 18, .25); }
.brandBlock { align-self: start; padding: 0 10px; text-shadow: 0 2px 12px #071015; }
.kicker { margin: 0 0 4px; color: var(--gold); font-size: 11px; font-weight: 900; line-height: 1.25; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 2px; color: #fff; font-size: 36px; font-weight: 950; line-height: 1.1; }
h2 { margin-bottom: 6px; color: #fff; font-size: 25px; line-height: 1.1; }
.tagline { margin: 0; color: #dbecef; font-size: 14px; font-weight: 750; }
.homeProgress { align-self: end; justify-self: center; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(340px, calc(100% - 16px)); border: 1px solid var(--line); background: rgba(8, 18, 22, .82); }
.homeProgress span { min-width: 0; padding: 8px 4px; }
.homeProgress span + span { border-left: 1px solid var(--line); }
.homeProgress b, .homeProgress small { display: block; overflow-wrap: anywhere; }
.homeProgress b { color: #fff; font-size: 20px; line-height: 1.05; }
.homeProgress small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.15; }
.homePrimary { justify-self: center; width: min(340px, calc(100% - 16px)); }
.primaryBtn, .rewardBtn, .freeBtn, .textBtn, .upgradeBtn, .runUpgrade { min-height: 46px; border-radius: 6px; font-weight: 850; line-height: 1.2; }
.primaryBtn { width: 100%; padding: 10px 14px; color: #132027; background: var(--gold); box-shadow: 0 3px 0 #a96d24; }
.primaryBtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #a96d24; }
.smallPrimary { max-width: 440px; }
.textBtn { width: 100%; min-height: 44px; margin-top: 3px; color: #e2eff2; background: transparent; text-decoration: underline; text-underline-offset: 3px; }

.homeDock { justify-self: center; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(360px, 100%); border-top: 1px solid var(--line); background: rgba(7, 16, 20, .88); }
.dockAction { position: relative; min-width: 0; min-height: 61px; padding: 7px 2px 5px; background: transparent; color: #d9e9ed; font-size: 10px; font-weight: 800; }
.dockAction + .dockAction { border-left: 1px solid var(--line); }
.dockIcon { position: relative; display: block; width: 24px; height: 25px; margin: 0 auto 3px; color: var(--ice); }
.arsenalIcon::before, .routeIcon::before, .dailyIcon::before, .gearIcon::before { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 950; }
.arsenalIcon::before { content: "+"; border: 2px solid currentColor; }
.routeIcon::before { content: "1-6"; border-bottom: 2px solid currentColor; font-size: 11px; }
.dailyIcon::before { content: "D"; border: 2px solid currentColor; border-top-width: 5px; }
.gearIcon::before { content: "><"; transform: rotate(-22deg); }
.noticeDot { position: absolute; top: 7px; right: calc(50% - 19px); width: 8px; height: 8px; border-radius: 50%; background: #ff705f; box-shadow: 0 0 0 2px #102027; }

.iconBtn { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid rgba(221, 240, 244, .35); border-radius: 6px; background: rgba(10, 21, 25, .88); }
.homeIcon::before { content: ""; position: absolute; left: 12px; top: 17px; width: 18px; height: 15px; border: 3px solid #eaf7f8; border-top: 0; }
.homeIcon::after { content: ""; position: absolute; left: 12px; top: 10px; width: 17px; height: 17px; border-left: 3px solid #eaf7f8; border-top: 3px solid #eaf7f8; transform: rotate(45deg); }
.pauseIcon::before { content: ""; position: absolute; left: 13px; top: 11px; width: 5px; height: 22px; background: #eaf7f8; box-shadow: 12px 0 #eaf7f8; }
.backIcon { position: fixed; z-index: 30; top: calc(var(--safe-top) + 4px); left: var(--safe-left); }
.backIcon::before { content: ""; position: absolute; left: 15px; top: 13px; width: 14px; height: 14px; border-left: 3px solid #eaf7f8; border-bottom: 3px solid #eaf7f8; transform: rotate(45deg); }

.hud { position: absolute; z-index: 12; top: var(--safe-top); left: var(--safe-left); right: var(--safe-right); height: 58px; display: grid; grid-template-columns: 92px minmax(0, 1fr) 78px; gap: 6px; align-items: start; pointer-events: none; }
.hud button { pointer-events: auto; }
.hudTools { display: flex; gap: 4px; }
.hudTools .iconBtn { width: 44px; height: 44px; flex-basis: 44px; }
.hudStrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 43px; border: 1px solid var(--line); background: rgba(7, 17, 21, .9); }
.hudRead { min-width: 0; padding: 4px 2px; text-align: center; }
.hudRead + .hudRead { border-left: 1px solid var(--line); }
.hudRead b, .hudRead span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hudRead b { color: #fff; font-size: 14px; }
.hudRead span { color: var(--muted); font-size: 9px; }
.streakMeter { position: relative; height: 42px; overflow: hidden; border: 1px solid rgba(242, 196, 88, .45); background: rgba(9, 18, 21, .9); }
.streakMeter span { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(242, 196, 88, .45); transition: width .12s linear; }
.streakMeter b { position: relative; display: grid; height: 100%; place-items: center; font-size: 12px; }

.rivalBanner { position: absolute; z-index: 10; top: calc(var(--safe-top) + 64px); left: 50%; width: min(310px, calc(100% - 24px)); padding: 6px 9px; transform: translateX(-50%); border-left: 4px solid var(--red); background: rgba(8, 18, 22, .86); pointer-events: none; }
.rivalBanner b, .rivalBanner span { display: block; overflow-wrap: anywhere; }
.rivalBanner b { color: #fff; font-size: 12px; }
.rivalBanner span { margin-top: 1px; color: #d7e6e9; font-size: 10px; line-height: 1.2; }
.coach { position: absolute; z-index: 9; top: calc(var(--safe-top) + 112px); left: 50%; width: min(300px, calc(100% - 28px)); padding: 5px 8px; transform: translateX(-50%); color: #f9efc9; background: rgba(21, 35, 38, .7); text-align: center; font-size: 11px; font-weight: 800; pointer-events: none; }
.toast { position: absolute; z-index: 60; top: 48%; left: 50%; max-width: calc(100% - 28px); padding: 9px 13px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; background: rgba(5, 13, 16, .94); color: #fff; text-align: center; font-size: 13px; font-weight: 850; pointer-events: none; }

.laneTray { position: absolute; z-index: 11; right: var(--safe-right); bottom: var(--safe-bottom); left: var(--safe-left); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; height: 83px; }
.laneBtn { position: relative; min-width: 0; border: 1px solid rgba(199, 228, 233, .35); border-radius: 6px; background: rgba(8, 20, 24, .9); color: #dcebed; }
.laneBtn.hasTarget { border-color: rgba(142, 219, 224, .8); background: rgba(14, 56, 59, .91); }
.laneBtn.isDanger { border-color: var(--gold); background: rgba(82, 54, 22, .92); }
.laneBtn b, .laneBtn small { display: block; }
.laneBtn b { margin-top: 3px; font-size: 11px; }
.laneBtn small { position: absolute; top: 4px; right: 6px; color: #9eb4ba; font-size: 9px; }
.laneArrow { position: relative; display: block; width: 9px; height: 28px; margin: 7px auto 0; border-radius: 2px; background: #e7f4f6; }
.laneArrow::before { content: ""; position: absolute; top: -5px; left: -5px; width: 0; height: 0; border-right: 9px solid transparent; border-bottom: 12px solid #e7f4f6; border-left: 9px solid transparent; }
.laneArrowLeft { transform: rotate(-18deg); }
.laneArrowRight { transform: rotate(18deg); }
.volleyBtn { position: absolute; z-index: 12; left: calc(var(--safe-left) + 4px); bottom: calc(var(--safe-bottom) + 88px); display: flex; align-items: center; min-height: 44px; max-width: 150px; padding: 4px 10px 4px 4px; border: 1px solid rgba(244, 117, 79, .75); border-radius: 6px; background: rgba(62, 25, 22, .92); font-size: 11px; font-weight: 900; }
.volleyBtn img { width: 34px; height: 34px; margin-right: 4px; object-fit: contain; }

.utilityOffer { position: absolute; z-index: 14; right: calc(var(--safe-right) + 4px); bottom: calc(var(--safe-bottom) + 143px); display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; width: min(278px, calc(100% - 16px)); padding: 5px; border: 1px solid rgba(142, 219, 224, .5); background: rgba(7, 18, 22, .96); }
.utilityOffer > img { grid-row: 1 / 3; align-self: center; width: 38px; height: 38px; object-fit: contain; }
.rewardBtn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 8px 9px; border: 1px solid rgba(142, 219, 224, .72); background: #155e64; color: #fff; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.videoIcon { position: relative; width: 22px; height: 17px; flex: 0 0 22px; margin-right: 7px; border: 2px solid currentColor; border-radius: 3px; }
.videoIcon::after { content: ""; position: absolute; top: 3px; left: 7px; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
.freeBtn { width: 100%; padding: 9px 12px; border: 1px solid rgba(218, 235, 238, .28); background: rgba(15, 28, 32, .92); color: #dce9ec; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.compactFree { min-height: 44px; padding: 3px 8px; border: 0; background: transparent; color: #b8cbcf; font-size: 10px; text-decoration: underline; text-underline-offset: 2px; }
.dangerBtn { border-color: rgba(217, 88, 77, .55); color: #ffd8d4; }

.subSurface { overflow-x: hidden; overflow-y: auto; padding: calc(var(--safe-top) + 58px) max(14px, var(--safe-right)) calc(var(--safe-bottom) + 18px) max(14px, var(--safe-left)); background: var(--panel); }
.surfaceHead { width: min(680px, 100%); margin: 0 auto 15px; text-align: left; }
.subSurface .surfaceHead > .kicker { display: inline-block; margin-left: 40px; }
.surfaceHead h2 { overflow-wrap: anywhere; }
.surfaceBalance { margin: 0; color: var(--ice); font-size: 13px; font-weight: 800; }
.surfaceCopy { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.38; }
.arsenalTracks, .routeMap, .dailyProgress { width: min(680px, 100%); margin: 0 auto; }
.arsenalTrack { display: grid; grid-template-columns: 42px minmax(0, 1fr) 88px; gap: 8px; align-items: center; min-height: 76px; padding: 8px 0; border-top: 1px solid var(--line); }
.arsenalTrack:last-child { border-bottom: 1px solid var(--line); }
.trackIcon { display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid var(--gold); color: var(--gold); font-weight: 950; }
.trackCopy { min-width: 0; }
.trackCopy b, .trackCopy span { display: block; overflow-wrap: anywhere; }
.trackCopy b { font-size: 14px; }
.trackCopy > span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.trackPips { display: flex !important; gap: 3px; margin-top: 6px !important; }
.trackPips i { width: 12px; height: 4px; background: #405158; }
.trackPips i.on { background: var(--gold); }
.upgradeBtn { min-height: 44px; padding: 5px; border: 1px solid rgba(242, 196, 88, .58); background: rgba(68, 50, 20, .76); color: #ffe9ad; font-size: 11px; }

.decisionArea { width: min(680px, 100%); margin: 14px auto 0; }
.decisionArea > button + button { margin-top: 7px; }
.statusLine { min-height: 18px; margin: 7px 0 0; color: #f1d79d; font-size: 11px; text-align: center; overflow-wrap: anywhere; }
.rewardBand { padding-top: 11px; border-top: 1px solid var(--line); }
.rewardBand > img { display: block; width: 48px; height: 48px; margin: 0 auto 4px; object-fit: contain; }
.rewardSummary { margin: 0; color: #f8e9bd; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; }

.routeNode { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 57px; padding: 6px 0; border-top: 1px solid var(--line); }
.routeNode:last-child { border-bottom: 1px solid var(--line); }
.routeNumber { display: grid; width: 29px; height: 29px; place-items: center; border: 2px solid #5f7780; border-radius: 50%; color: #c5d5d9; font-size: 11px; font-weight: 950; }
.routeNode.cleared .routeNumber { border-color: var(--teal); background: var(--teal); color: #fff; }
.routeNode.current .routeNumber { border-color: var(--gold); color: var(--gold); }
.routeCopy { min-width: 0; }
.routeCopy b, .routeCopy span { display: block; overflow-wrap: anywhere; }
.routeCopy b { font-size: 13px; }
.routeCopy span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.routeMark { color: var(--gold); font-size: 10px; font-weight: 900; }
.recordsStats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; width: min(680px, 100%); margin: 15px auto 0; background: var(--line); }
.recordStat { min-width: 0; padding: 9px 3px; background: #13252a; text-align: center; }
.recordStat b, .recordStat span { display: block; overflow-wrap: anywhere; }
.recordStat b { color: #fff; font-size: 18px; }
.recordStat span { margin-top: 2px; color: var(--muted); font-size: 9px; }

.featureObject, .gearHero { display: flex; align-items: center; width: min(680px, 100%); margin: 0 auto; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.featureObject img, .gearHero img { width: 88px; height: 88px; flex: 0 0 88px; object-fit: contain; }
.featureObject div, .gearHero div { min-width: 0; padding-left: 12px; }
.featureObject b, .featureObject span, .gearHero b, .gearHero span { display: block; overflow-wrap: anywhere; }
.featureObject b, .gearHero b { font-size: 15px; }
.featureObject span, .gearHero span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.compactFeature { border: 0; }
.compactFeature img { width: 68px; height: 68px; flex-basis: 68px; }
.compactFeature p { padding-left: 9px; }
.dailyProgress { margin-top: 11px; }
.dailyTask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.dailyTask:last-child { border-bottom: 1px solid var(--line); }
.dailyTask b { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.dailyTask span { color: var(--ice); font-size: 11px; font-weight: 850; }
.gearHero img { width: 148px; height: 148px; flex-basis: 148px; }

.decisionSurface { display: flex; flex-direction: column; justify-content: center; overflow-x: hidden; overflow-y: auto; padding: calc(var(--safe-top) + 22px) max(13px, var(--safe-right)) calc(var(--safe-bottom) + 14px) max(13px, var(--safe-left)); background: rgba(7, 15, 18, .95); }
.decisionTop, .runUpgradeChoices, .decisionSurface .decisionArea { width: min(520px, 100%); margin-right: auto; margin-left: auto; }
.decisionTop { text-align: center; }
.decisionTop h2 { margin-bottom: 7px; }
.rewardSummaryRow { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.rewardSummaryRow img { width: 44px; height: 44px; margin-right: 7px; object-fit: contain; }
.runUpgradeChoices { display: grid; gap: 6px; margin-top: 10px; }
.runUpgrade { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; width: 100%; min-height: 58px; padding: 7px 10px; border: 1px solid rgba(142, 219, 224, .4); background: #122a30; text-align: left; }
.runUpgrade b { min-width: 0; font-size: 13px; }
.runUpgrade span { grid-row: 2; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.runUpgrade strong { grid-row: 1 / 3; grid-column: 2; align-self: center; margin-left: 8px; color: var(--gold); font-size: 11px; }
.runUpgrade.selected { border-color: var(--gold); background: #493e23; }

@media (max-width: 359px), (max-height: 600px) and (orientation: portrait) {
  .homeSurface { gap: 7px; padding-top: calc(var(--safe-top) + 17px); }
  h1 { font-size: 30px; }
  h2 { font-size: 21px; }
  .tagline { font-size: 12px; }
  .homeProgress span { padding: 6px 2px; }
  .homeProgress b { font-size: 17px; }
  .homeDock .dockAction { min-height: 58px; padding-top: 4px; }
  .dockIcon { height: 22px; margin-bottom: 1px; }
  .hud { grid-template-columns: 84px minmax(0, 1fr) 60px; gap: 3px; }
  .hudTools { gap: 2px; }
  .hudTools .iconBtn { width: 44px; height: 44px; flex-basis: 44px; }
  .hudRead b { font-size: 12px; }
  .streakMeter b { font-size: 10px; }
  .rivalBanner { top: calc(var(--safe-top) + 66px); }
  .coach { top: calc(var(--safe-top) + 112px); }
  .laneTray { height: 74px; }
  .laneArrow { height: 23px; margin-top: 6px; }
  .volleyBtn { bottom: calc(var(--safe-bottom) + 78px); max-width: 132px; font-size: 10px; }
  .utilityOffer { bottom: calc(var(--safe-bottom) + 137px); width: min(252px, calc(100% - 10px)); }
  .subSurface { padding-top: calc(var(--safe-top) + 52px); }
  .surfaceHead { margin-bottom: 9px; }
  .arsenalTrack { min-height: 65px; }
  .gearHero img { width: 110px; height: 110px; flex-basis: 110px; }
  .decisionSurface { justify-content: flex-start; padding-top: calc(var(--safe-top) + 15px); }
  .decisionTop h2 { margin-bottom: 3px; }
  .runUpgradeChoices { margin-top: 5px; gap: 4px; }
  .runUpgrade { min-height: 52px; }
  .decisionSurface .decisionArea { margin-top: 7px; }
  .decisionSurface .rewardBtn, .decisionSurface .freeBtn { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
}

@media (orientation: landscape) and (max-height: 460px) {
  .hud { right: 116px; grid-template-columns: 90px minmax(0, 1fr) 70px; }
  .rivalBanner { top: calc(var(--safe-top) + 65px); left: calc((100% - 112px) / 2); width: min(360px, calc(100% - 140px)); }
  .coach { top: auto; right: auto; bottom: 8px; left: 12px; width: min(320px, calc(100% - 420px)); transform: none; }
  .laneTray { top: calc(var(--safe-top) + 52px); right: var(--safe-right); bottom: var(--safe-bottom); left: auto; grid-template-columns: 1fr; width: 104px; height: auto; }
  .laneArrow { display: inline-block; height: 19px; margin: 0 9px 0 0; vertical-align: middle; }
  .laneBtn b { display: inline; }
  .volleyBtn { right: 120px; bottom: 8px; left: auto; }
  .utilityOffer { right: 120px; bottom: 54px; width: 260px; }
  .homeSurface { grid-template-columns: minmax(230px, .8fr) minmax(260px, 1fr); grid-template-rows: 1fr auto auto; gap: 6px 20px; padding: calc(var(--safe-top) + 15px) calc(var(--safe-right) + 20px) var(--safe-bottom) calc(var(--safe-left) + 20px); text-align: left; }
  .brandBlock { grid-row: 1 / 4; align-self: center; }
  .homeProgress, .homePrimary, .homeDock { grid-column: 2; justify-self: stretch; width: 100%; }
  .homeProgress { align-self: end; }
  .homeDock { min-height: 58px; }
  .dockAction { min-height: 57px; }
  .subSurface { padding-top: calc(var(--safe-top) + 50px); }
  .surfaceHead { margin-bottom: 8px; }
  .arsenalTrack { min-height: 57px; }
  .decisionSurface { padding-top: calc(var(--safe-top) + 6px); padding-bottom: calc(var(--safe-bottom) + 6px); }
  .decisionSurface.decisionSurface .dfl-panel { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(290px, 1.2fr); grid-template-rows: auto 1fr; width: min(700px, calc(100vw - 40px)); max-width: 700px; max-height: calc(100dvh - 16px); gap: 6px 18px; align-content: center; align-items: stretch; overflow: hidden; }
  .decisionTop { grid-row: 1 / 3; align-self: center; }
  .runUpgradeChoices { grid-column: 2; align-self: end; margin-top: 0; }
  .decisionSurface .decisionArea { grid-column: 2; align-self: start; margin-top: 0; }
  .runUpgrade { min-height: 44px; }
  .decisionSurface .rewardBtn, .decisionSurface .freeBtn, .decisionSurface .primaryBtn { min-height: 44px; padding-top: 5px; padding-bottom: 5px; }
  .decisionSurface .decisionArea > button + button { margin-top: 5px; }
  .decisionSurface .statusLine { min-height: 14px; margin-top: 3px; }
  .rewardSummaryRow img { width: 36px; height: 36px; }
  .compactFeature img { width: 54px; height: 54px; flex-basis: 54px; }
  #dailySurface { overflow: hidden; padding: calc(var(--safe-top) + 8px) max(14px, var(--safe-right)) calc(var(--safe-bottom) + 8px) max(14px, var(--safe-left)); }
  #dailySurface .dfl-panel { display: grid; grid-template-columns: minmax(230px, .85fr) minmax(300px, 1.15fr); grid-template-rows: auto auto; width: min(700px, calc(100vw - 40px)); max-width: 700px; max-height: calc(100dvh - 16px); gap: 8px 18px; align-content: center; align-items: stretch; overflow: hidden; }
  #dailySurface .surfaceHead { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 0; }
  #dailySurface .featureObject { grid-column: 1; grid-row: 2; align-self: start; padding: 6px 0; }
  #dailySurface .featureObject img { width: 58px; height: 58px; flex-basis: 58px; }
  #dailyProgress { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
  #dailySurface .dailyTask { padding: 5px 0; }
  #dailySurface .decisionArea { grid-column: 2; grid-row: 2; align-self: start; margin-top: 0; }
}

@media (min-width: 768px) and (min-height: 700px) {
  .homeSurface { padding-right: max(28px, var(--safe-right)); padding-left: max(28px, var(--safe-left)); }
  .brandBlock { margin-top: 24px; }
  h1 { font-size: 44px; }
  .homeDock { margin-bottom: 16px; }
  .hud { left: max(20px, var(--safe-left)); right: max(20px, var(--safe-right)); }
}

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