:root{color:var(--ui-ink);background:var(--ui-surface);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--linen:#f3eee5;--sandstone:#d8cfc1;--clay:#b87558;--charcoal:#273038;--dust-blue:#8ea2ae;--display-face:Georgia,"Times New Roman",serif;--ui-highlight:#fffaf2;--ui-shadow:var(--charcoal);--ui-surface:var(--linen);--ui-plane:#e7dfd3;--ui-raised:#ece5da;--ui-ink:var(--charcoal);--ui-muted:#626466;--ui-border:#b7ad9f;--ui-control-muted:#56595c;--ui-control-disabled:#ddd5c9;--ui-inactive:#e2ddd4;--ui-inactive-ink:#555b60;--ui-separator:var(--sandstone);--ui-accent:var(--clay);--ui-accent-hover:#c98c70;--ui-on-accent:#151d23;--ui-accent-soft:#ead3c4;--ui-accent-ink:#895037;--ui-warning:#7a3e29;--ui-warning-soft:#ead0be;--hud-material:linear-gradient(105deg,#f1ebe0,#dfd1bb);--ui-paper-background:linear-gradient(115deg,var(--linen),color-mix(in srgb,var(--linen) 74%,var(--sandstone)));--ui-paper-radius:5px;--ui-paper-shadow:inset 0 0 0 2px var(--linen),0 12px 36px color-mix(in srgb,var(--ui-shadow) 25%,transparent);--banner-material:radial-gradient(ellipse at 8% 0%,color-mix(in srgb,var(--ui-highlight) 65%,transparent),transparent 65%),linear-gradient(100deg,var(--ui-surface) 5%,var(--ui-plane) 65%,var(--sandstone));--action-material:linear-gradient(115deg,color-mix(in srgb,var(--ui-highlight) 55%,transparent),color-mix(in srgb,var(--sandstone) 20%,transparent));--ui-enemy-scout:var(--ui-control-muted);--ui-enemy-runner:var(--ui-accent-ink);--ui-enemy-ironbound:#626574;--ui-enemy-herald:#796084;--ui-enemy-leader:#836b3f;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box;overscroll-behavior:contain}html,body,#app{overscroll-behavior:none;width:100%;height:100%;margin:0;overflow:hidden}@media (any-pointer:coarse){#app{-webkit-user-select:none;user-select:none}#app :is(input,textarea,[contenteditable=true]){-webkit-user-select:text;user-select:text}.game-shell .spell-button kbd,.game-shell .tower-key{display:none}}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.035em;font-weight:800}p{line-height:1.5}small{font-size:12px}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;border:0;border-radius:4px;transition:background .15s,border-color .15s,box-shadow .15s}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,[data-result-heading]:focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}button:not(:disabled):active{transform:translateY(1px)}svg{flex:none;width:24px;height:24px}button svg{pointer-events:none}[hidden]{display:none!important}.sr-only{clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}.eyebrow{letter-spacing:1.2px;color:var(--ui-muted);font-size:10px;font-weight:800;line-height:1.5;display:block}.paper-surface{isolation:isolate;color:var(--ui-ink);background-color:var(--ui-surface);background-image:var(--ui-paper-background);border:1px solid var(--sandstone);border-radius:var(--ui-paper-radius);box-shadow:var(--ui-paper-shadow)}.paper-surface:before,.paper-surface:after{content:"";z-index:-1;pointer-events:none;border-radius:inherit;background:var(--sandstone);position:absolute;inset:0;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.paper-surface:before{opacity:.22;-webkit-mask-image:url(../ui/paper-wash-mask.svg);mask-image:url(../ui/paper-wash-mask.svg)}.paper-surface:after{opacity:.04;-webkit-mask-image:url(../ui/paper-fibre-mask.svg);mask-image:url(../ui/paper-fibre-mask.svg)}@media (max-width:700px){.paper-surface:after{display:none}}:is(.primary,.secondary,.pause-button,.spell-button,.tower-card){--ui-muted:var(--ui-control-muted)}.primary,.secondary{justify-content:center;align-items:center;gap:8px;min-height:44px;padding:11px 15px;font-size:13px;font-weight:800;line-height:1.3;display:inline-flex}.primary{background:var(--ui-accent);border:1px solid var(--ui-accent-ink);color:var(--ui-on-accent)}.primary:hover:not(:disabled){background:var(--ui-accent-hover)}.secondary{background:var(--ui-raised);border:1px solid var(--ui-border);color:var(--ui-ink)}.secondary:hover:not(:disabled),#modal .secondary:hover:not(:disabled){background:var(--linen);border-color:var(--ui-border)}.primary svg,.secondary svg{width:19px;height:19px}.icon-button{width:44px;min-width:44px;height:44px;color:var(--ui-ink);background:0 0;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover:not(:disabled),.text-button:hover:not(:disabled){background:var(--linen);color:var(--ui-ink)}.icon-button svg{width:21px;height:21px}.text-button{min-height:44px;color:var(--ui-ink);background:0 0;justify-content:center;align-items:center;gap:6px;padding:8px 10px;font-size:12px;font-weight:700;display:inline-flex}.text-button svg{width:15px;height:15px}button:disabled{cursor:default}:is(#modal,.game-shell) button:disabled{--ui-ink:var(--ui-inactive-ink);--ui-muted:var(--ui-inactive-ink);--ui-warning:var(--ui-inactive-ink);color:var(--ui-ink);background:var(--ui-inactive);border-color:var(--ui-border);opacity:1;border-style:dashed;transition:none}.tower-stats{border-block:1px solid var(--ui-separator);text-align:left;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0;padding:8px 0;display:grid}.tower-stats>span{min-width:0;color:var(--ui-ink);text-transform:uppercase;letter-spacing:.4px;font-size:9px;line-height:1.4}.tower-stats b{color:var(--ui-ink);letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums;margin-top:3px;font-size:14px;font-weight:700;display:block}.tower-stats>.stat-extra{grid-column:1/-1;justify-content:space-between;align-items:center;gap:8px;display:flex}.tower-stats>.stat-extra b{margin:0;font-size:11px}.stat-next{color:var(--ui-ink);white-space:nowrap}.comparison b{font-size:12px}@media (max-width:600px) and (orientation:portrait){.tower-stats b{font-size:13px}}@media (max-height:650px) and (orientation:landscape){.tower-stats{gap:5px}.tower-stats b{font-size:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}#modal button:not(:disabled):active{transform:none}}.game-shell{--ui-separator:var(--ui-border);background:var(--ui-surface);grid-template-columns:minmax(0,1fr);grid-template-rows:calc(80px + env(safe-area-inset-top)) minmax(0,1fr) calc(112px + env(safe-area-inset-bottom));max-width:2000px;height:100dvh;margin:0 auto;display:grid;position:relative;overflow:hidden}.game-shell :is(.topbar,.sidebar,.tower-dock,.utility-tray){background:var(--sandstone);background-image:var(--hud-material)}.game-shell .topbar{z-index:10;margin:calc(8px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));border:1px solid var(--ui-highlight);background-image:var(--banner-material);box-shadow:inset 0 1px var(--ui-highlight), inset 0 -2px color-mix(in srgb,var(--ui-accent-ink) 15%,transparent),0 3px 12px color-mix(in srgb,var(--ui-shadow) 27%,transparent);border-radius:5px;align-items:center;gap:20px;padding:0 18px;display:flex}.game-shell .brand{white-space:nowrap;flex:none;align-items:center;gap:10px;display:flex}.game-shell .brand>img{object-fit:contain;flex:none;width:34px;height:44px}.game-shell .brand>span{font-family:var(--display-face)}.game-shell .brand strong{letter-spacing:-.6px;font-size:24px;line-height:1.1;display:block}.game-shell .brand small{color:var(--ui-muted);margin-top:4px;font-size:11px;display:block}.game-shell .resources{border-left:1px solid color-mix(in srgb,var(--ui-border) 44%,transparent);flex:none;gap:20px;padding-left:20px;display:flex}.game-shell .resource{align-items:center;gap:8px;min-width:65px;display:flex}.game-shell .resource+.resource{border-left:1px solid color-mix(in srgb,var(--ui-border) 44%,transparent);padding-left:20px}.game-shell .resource svg{width:22px;color:var(--ui-accent-ink)}.game-shell .resource b{font-family:var(--display-face);font-variant-numeric:tabular-nums;font-size:26px;font-weight:700;line-height:1.05;display:block}.game-shell .resource small{color:var(--ui-muted);margin-top:2px;font-size:11px;display:block}.game-shell .resource i{color:var(--ui-ink);margin:0 4px;font-size:14px;font-style:normal}.game-shell .lives-resource.is-threatened{color:var(--ui-warning)}.game-shell .lives-resource.is-threatened b{background:var(--ui-surface);border-left:3px solid var(--ui-warning);padding:0 5px}.game-shell .banner-atmosphere{background:url(../ui/linen-pines.svg) bottom/auto 61px no-repeat;flex:1;align-self:stretch;min-width:0}.game-shell .utility{flex:none;align-items:center;gap:4px;margin-left:auto;display:flex}.game-shell .utility button{border:1px solid var(--sandstone);border-radius:3px}.game-shell :is(.utility button,.inspector-close,.inspector-actions .secondary){background:var(--linen)}.game-shell .speed-button{font-size:16px;font-weight:800}.game-shell .pause-button{background-image:var(--action-material);border-color:color-mix(in srgb,var(--ui-accent-ink) 40%,transparent);width:120px;box-shadow:inset 0 1px color-mix(in srgb,var(--ui-highlight) 70%,transparent),0 2px 4px color-mix(in srgb,var(--ui-accent-ink) 10%,transparent);color:var(--ui-accent-ink);gap:6px;padding:0 12px}.game-shell .pause-button>span{font-size:12px;font-weight:800}.game-shell .utility-disclosure{position:relative}.game-shell .utility-disclosure summary{cursor:pointer;width:44px;height:44px;color:var(--ui-muted);border:1px solid #0000;border-radius:3px;place-items:center;list-style:none;display:grid}.game-shell .utility-disclosure summary::-webkit-details-marker{display:none}.game-shell .utility-disclosure summary>svg{width:22px;height:22px}.game-shell .utility-disclosure[open] summary{background:var(--ui-raised);color:var(--ui-ink);border-color:var(--ui-border)}.game-shell .utility-tray{border:1px solid var(--ui-separator);background-image:var(--hud-material);box-shadow:0 5px 14px color-mix(in srgb,var(--ui-shadow) 12%,transparent);z-index:20;grid-template-columns:repeat(4,44px);padding:5px;display:grid;position:absolute;top:calc(100% + 6px);right:0}.game-shell .utility-tray button{flex:none;width:44px;height:44px}.game-shell .utility-tray .fullscreen-button{grid-column:1/-1;justify-content:center;align-items:center;gap:8px;width:auto;padding:0 8px;font-size:12px;line-height:1.2;display:flex}.game-shell .fullscreen-button svg{width:20px;height:20px}.game-shell .fullscreen-feedback{max-width:176px;color:var(--ui-muted);grid-column:1/-1;padding:7px 6px;font-size:11px;line-height:1.4}.game-shell .game-main{grid-template-rows:minmax(0,1fr) 72px;grid-template-columns:minmax(0,1fr);min-height:0;display:grid;position:relative}.game-shell .battlefield{background:var(--charcoal);grid-area:1/1;min-width:0;min-height:0;position:relative;overflow:hidden}.game-shell #viewport{background:linear-gradient(var(--map-tint),var(--map-tint)),var(--map-background) center/100% 100%;position:absolute;inset:0}.game-shell #viewport canvas{touch-action:none;width:100%;height:100%;display:block}.game-shell #viewport canvas:focus-visible{outline:3px solid var(--ui-accent);outline-offset:-4px;box-shadow:inset 0 0 0 5px var(--ui-on-accent)}.game-shell .field-heading{z-index:1;pointer-events:none;isolation:isolate;top:calc(92px + env(safe-area-inset-top));max-width:55%;position:absolute;left:18px}.game-shell .field-heading:before{content:"";z-index:-1;background:var(--linen);border:1px solid var(--sandstone);border-left:2px solid var(--clay);box-shadow:0 2px 8px color-mix(in srgb,var(--ui-shadow) 9%,transparent);pointer-events:none;border-radius:3px;position:absolute;inset:-4px -7px}.game-shell .field-heading h1{font-family:var(--display-face);font-size:19px;font-weight:700}.game-shell .field-heading p{margin-top:3px;font-size:11px}.game-shell #boss-bar{background:var(--linen);border:1px solid var(--ui-separator);border-radius:8px;width:min(290px,48%);padding:9px 13px;position:absolute;top:16px;left:50%;transform:translate(-50%)}.game-shell #boss-bar>span{letter-spacing:1px;text-align:center;margin-bottom:6px;font-size:10px;font-weight:800;display:block}.game-shell #boss-intent{text-align:center;margin-bottom:6px;font-size:11px;line-height:1.35;display:block}.game-shell #boss-bar>div{background:var(--ui-plane);border-radius:4px;height:5px;overflow:hidden}.game-shell #boss-bar i{background:var(--ui-accent-hover);height:100%;transition:width .2s;display:block}.game-shell .build-guide{border:3px solid var(--ui-accent);width:28px;height:28px;box-shadow:0 0 0 2px var(--ui-surface);pointer-events:none;border-radius:50%;position:absolute;transform:translate(-50%,-50%)}.game-shell .build-guide>span{background:color-mix(in srgb,var(--ui-surface) 95%,transparent);white-space:nowrap;padding:3px 6px;font-size:11px;font-weight:700;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.game-shell .build-guide>span:after{content:"";border:4px solid #0000;border-top-color:var(--ui-surface);position:absolute;top:100%;left:calc(50% - 4px)}.game-shell .sidebar{z-index:6;min-width:0;min-height:0;padding-inline:max(20px,env(safe-area-inset-left)) max(20px,env(safe-area-inset-right));border-top:1px solid var(--ui-highlight);box-shadow:0 -3px 15px color-mix(in srgb,var(--ui-shadow) 16%,transparent);grid-template-rows:minmax(0,1fr);display:grid;position:relative}.game-shell .wave-command{grid-template-columns:minmax(0,1fr) 150px 260px;align-items:center;gap:14px;min-width:0;display:grid}.game-shell .wave-information{min-width:0;min-height:0}.game-shell .wave-compact-label{display:none}.game-shell .next-wave-label{align-items:center;gap:14px;display:flex}.game-shell .next-wave-label .eyebrow{font:700 19px/1.2 var(--display-face);letter-spacing:-.3px;color:var(--charcoal)}.game-shell .kill-count{color:var(--ui-muted);align-items:center;gap:4px;font-size:11px;display:flex}.game-shell .kill-count svg{width:13px;height:13px}.game-shell .enemy-preview{flex-wrap:wrap;gap:3px 12px;margin-top:7px;display:flex}.game-shell .enemy-preview>span{align-items:center;gap:2px;font-size:11px;display:inline-flex}.game-shell .enemy-icon{width:10px;height:10px;color:var(--ui-enemy-scout);flex:none}.game-shell .enemy-runner{color:var(--ui-enemy-runner)}.game-shell .enemy-ironbound{color:var(--ui-enemy-ironbound)}.game-shell .enemy-herald{color:var(--ui-enemy-herald)}.game-shell .enemy-leader{color:var(--ui-enemy-leader)}.game-shell #start-wave{border-radius:4px;grid-column:2;min-height:48px}.game-shell .spell-button{border:1px solid var(--ui-border);background:var(--linen);background-image:var(--action-material);min-width:0;min-height:60px;box-shadow:inset 0 1px var(--ui-highlight),0 2px 3px color-mix(in srgb,var(--ui-shadow) 8%,transparent);border-radius:5px;grid-column:3;justify-content:center;align-items:center;gap:10px;padding:3px 12px;display:flex;position:relative}.game-shell .spell-button>.catapult-art{object-fit:contain;width:62px;height:56px}.game-shell .spell-button>span{font:700 19px/1.1 var(--display-face);text-align:left}.game-shell .spell-button small{color:var(--ui-muted);margin-top:4px;font:11px/1.25 system-ui,sans-serif;display:block}.game-shell .spell-button :is(.spell-compact-name,.spell-compact-status){display:none}.game-shell .spell-button kbd{color:var(--ui-muted);border:1px solid var(--ui-border);border-radius:3px;padding:2px 5px;font:11px system-ui,sans-serif}.game-shell .spell-button.is-cooling{border-style:dashed}.game-shell .spell-button.is-cooling .catapult-art{filter:saturate(.3);opacity:.75}.game-shell .spell-button.is-cooling small{font-variant-numeric:tabular-nums}.game-shell .spell-button.is-ready{border-color:var(--ui-accent-ink);box-shadow:inset 0 -3px color-mix(in srgb,var(--ui-accent) 44%,transparent),inset 0 1px var(--ui-highlight)}.game-shell .spell-button.active:not(:disabled){background:var(--ui-accent);border-color:var(--ui-accent-ink)}.game-shell .sidebar:has(.hint[data-message-id=leader\.warning]) .spell-button.is-ready:not(:disabled){background:var(--ui-accent);border-color:var(--ui-accent-ink)}.game-shell .field-feedback{padding-inline:max(20px,env(safe-area-inset-left)) max(20px,env(safe-area-inset-right));pointer-events:none;flex-direction:column;align-items:flex-start;gap:5px;display:flex;position:absolute;bottom:calc(100% + 6px);left:0;right:0}.game-shell .hint{max-width:min(580px,100%);font-size:11px;line-height:1.35}.game-shell .hint:not(:empty){background:var(--linen);box-shadow:0 2px 8px color-mix(in srgb,var(--ui-shadow) 15%,transparent);border-radius:3px;padding:5px 8px}.game-shell .hint[data-priority="70"],.game-shell .hint[data-priority="90"]{border-left:3px solid var(--ui-warning);background:var(--ui-warning-soft);color:var(--ui-warning)}.game-shell .hint[data-priority="100"]{color:var(--ui-warning)}.game-shell .tower-dock{z-index:5;padding:6px max(20px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));border-top:1px solid color-mix(in srgb,var(--ui-border) 44%,transparent);display:flex;position:relative}.game-shell .tower-dock:before{content:"";top:-1px;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));background:var(--ui-accent-ink);pointer-events:none;max-width:1400px;height:3px;margin-inline:auto;position:absolute}.game-shell .tower-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;width:100%;max-width:1400px;height:100%;margin:auto;display:grid}.game-shell .tower-card{text-align:left;min-width:0;color:var(--tower-color);border:1px solid color-mix(in srgb,var(--ui-border) 49%,transparent);background:var(--linen);box-shadow:inset 0 1px var(--ui-highlight),0 2px 3px color-mix(in srgb,var(--ui-shadow) 7%,transparent);border-radius:5px;grid-template-rows:1fr 22px;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:0 9px;padding:7px 10px;display:grid;position:relative}.game-shell .tower-card:hover:not(:disabled){border-color:var(--ui-accent-ink);background-color:var(--ui-highlight)}.game-shell .tower-key{font:11px var(--display-face);color:var(--ui-muted);position:absolute;top:5px;left:7px}.game-shell .tower-art{grid-row:1/-1;width:64px;height:72px;display:block}.game-shell .tower-art svg{width:100%;height:100%}.game-shell .tower-copy{align-self:end}.game-shell .tower-copy strong{font:700 19px/1.1 var(--display-face);color:var(--ui-ink);display:block}.game-shell .tower-copy small{color:var(--ui-muted);margin-top:4px;font-size:11px;line-height:1.2;display:block}.game-shell .tower-price{font-variant-numeric:tabular-nums;color:var(--ui-ink);align-items:center;gap:4px;font-size:13px;font-weight:700;display:flex}.game-shell .tower-price svg{width:13px;height:13px;color:var(--ui-accent-ink)}.game-shell .tower-card.unaffordable{background:var(--ui-control-disabled);border-style:dashed}.game-shell .tower-card.unaffordable .tower-price,.game-shell .tower-shortfall{color:var(--ui-warning)}.game-shell .tower-shortfall{font-size:10px;line-height:1;position:absolute;bottom:5px;right:6px}.game-shell .tower-card:has(.tower-shortfall:not([hidden])) .tower-price{padding-right:30px}.game-shell .tower-card.selected{background:var(--ui-accent-soft);border-color:var(--clay);box-shadow:inset 0 -4px var(--clay),inset 0 0 0 1px var(--ui-accent-ink)}.game-shell .tower-card.selected:after{content:"✓";color:var(--ui-accent-ink);font-size:12px;position:absolute;top:4px;right:6px}.game-shell .tower-card.selected.unaffordable{background:var(--ui-control-disabled)}.game-shell .tower-card:disabled .tower-art{opacity:.55}.game-shell .tower-card.selected:disabled{box-shadow:inset 0 -3px var(--ui-inactive-ink)}.game-shell .inspector{z-index:8;border:1px solid var(--ui-separator);background:var(--linen);width:min(480px,100%);box-shadow:0 8px 25px color-mix(in srgb,var(--ui-shadow) 25%,transparent),inset 0 1px var(--ui-highlight);pointer-events:auto;border-radius:6px;padding:12px 16px;position:relative}.game-shell .inspector.is-idle{display:none}.game-shell .field-feedback:has(.inspector.has-tower){z-index:9}.game-shell .tower-details summary{cursor:pointer;min-height:44px;color:var(--ui-accent-ink);align-items:center;font-size:11px;display:flex}.game-shell .tower-details summary:before{content:"＋";margin-right:5px}.game-shell .tower-details[open] summary:before{content:"−"}.game-shell .tower-extra{flex-direction:column;gap:5px;padding:4px 0;display:flex}.game-shell #cancel-action{pointer-events:auto;min-width:76px;min-height:44px;position:absolute;bottom:0;right:6px}.game-shell .field-feedback:has(#cancel-action:not([hidden])) .hint{max-width:calc(100% - 88px)}.game-shell #inspector-content{flex-direction:column;min-height:0;display:flex}.game-shell .inspector-heading{min-height:44px;padding-right:46px;position:relative}.game-shell .inspector h3{font:700 23px/1.15 var(--display-face);letter-spacing:-.4px}.game-shell .inspector-close{border:1px solid color-mix(in srgb,var(--ui-border) 38%,transparent);border-radius:4px;position:absolute;top:0;right:0}.game-shell .tower-heading{align-items:center;gap:10px;display:flex}.game-shell .inspector-portrait{flex:none;width:50px;height:54px}.game-shell .inspector-portrait svg{width:100%;height:100%}.game-shell .tower-level{color:var(--ui-muted);letter-spacing:0;font:12px system-ui,sans-serif}.game-shell .inspector-detail{scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent;flex-direction:column;gap:7px;min-height:0;max-height:calc(100dvh - 350px);display:flex;overflow-y:auto}.game-shell .inspector-detail:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.game-shell .inspector-detail>*{flex-shrink:0}.game-shell .inspector .tower-stats{gap:5px 12px;margin:3px 0 0;padding:7px 0}.game-shell .inspector .tower-stats>span{font-size:10px}.game-shell .inspector .tower-stats b{margin-top:2px;font-size:16px}.game-shell .inspector .tower-stats .stat-next{color:var(--ui-accent-ink);font-size:14px}.game-shell .inspector .stat-extra{font-size:10px}.game-shell .inspector .stat-extra b{font-size:12px}.game-shell .tower-description,.game-shell .inspector-detail>p{color:var(--ui-muted);font-size:12px;line-height:1.4}.game-shell .inspector-actions{gap:8px;display:flex}.game-shell .inspector-actions button{flex:1;min-width:0;min-height:44px;padding:8px 6px;font-size:13px;line-height:1.2}.game-shell #upgrade-tower{flex-wrap:wrap}.game-shell .upgrade-shortfall{width:100%;color:var(--ui-warning);font-size:10px;display:block}.game-shell .tower-record,.game-shell .branch-prompt{color:var(--ui-muted);font-size:11px;line-height:1.3;display:block}.game-shell .branch-prompt{color:var(--ui-accent-ink);padding-top:5px}.game-shell .silence-note{border-left:3px solid var(--ui-warning);background:var(--ui-warning-soft);color:var(--ui-warning);padding:5px 7px;font-size:11px}.game-shell .sidebar:has(.hint[data-message-id=leader\.warning]) #upgrade-tower:not(:disabled){background:var(--ui-raised);color:var(--ui-ink);border-color:var(--ui-border)}.game-shell[data-guide=tower-cards] .hint:not(:empty):before{content:"↓ "}.game-shell[data-guide=pad] .hint:not(:empty):before,.game-shell[data-guide=road] .hint:not(:empty):before{content:"↗ "}.game-shell[data-guide=send-wave] #start-wave,.game-shell[data-guide=spell] #spell.is-ready{box-shadow:inset 0 0 0 2px var(--ui-accent-ink)}.game-shell[data-guide=send-wave] .hint:not(:empty):before,.game-shell[data-guide=spell] .hint:not(:empty):before,.game-shell[data-guide=resume] .hint:not(:empty):before{content:"↑ "}.game-shell[data-guide] .hint:not(:empty):before{color:var(--ui-accent-ink)}.game-shell button:focus-visible,.game-shell summary:focus-visible{outline:3px solid var(--charcoal);outline-offset:-3px;z-index:8}.game-shell .pause-overlay{--ui-separator:var(--sandstone);z-index:9;text-align:center;min-width:215px;padding:22px 28px;display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.game-shell .is-paused .pause-overlay{display:block}.game-shell .pause-overlay h2{font-family:var(--display-face);margin:5px 0 16px;font-size:32px;font-weight:700}.game-shell .pause-overlay .primary{white-space:nowrap}.game-shell .is-paused canvas{filter:saturate(.5)brightness(.85)}.game-shell .render-error{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:15px;padding:24px;display:flex;position:absolute;inset:0}.game-shell .render-error h2{font-family:var(--display-face);font-size:28px;font-weight:700}.game-shell .render-error p{max-width:330px;font-size:14px}@media (max-width:1150px){.game-shell .brand small{display:none}}@media (max-width:1000px){.game-shell{grid-template-rows:calc(56px + env(safe-area-inset-top)) minmax(0,1fr) calc(110px + env(safe-area-inset-bottom))}.game-shell .topbar{padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));border:0;border-bottom:1px solid var(--ui-separator);border-radius:0;margin:0}.game-shell .brand>img{width:27px;height:36px}.game-shell .brand>span{display:none}.game-shell .banner-atmosphere{background-size:auto 49px}.game-shell .resource b{font-family:inherit;font-size:20px;font-weight:800}.game-shell .resources{border:0;gap:18px;padding:0}.game-shell .resource+.resource{border:0;padding:0}.game-shell .tower-card{grid-template-columns:46px minmax(0,1fr);gap:0 5px;padding:6px}.game-shell .tower-art{width:46px;height:58px}.game-shell .tower-copy strong{font-size:16px}.game-shell .wave-command{grid-template-columns:minmax(0,1fr) 125px 225px;gap:8px}}@media (max-width:700px){.game-shell .banner-atmosphere{display:none}.game-shell .resource svg{width:17px}.game-shell .pause-button{width:44px;padding:0}.game-shell .pause-button>span{display:none}}@media (max-width:700px) and (orientation:portrait),(max-height:650px) and (orientation:landscape){.game-shell .tower-copy strong,.game-shell .inspector .tower-stats b{font-size:14px}.game-shell .tower-copy small,.game-shell .spell-button small,.game-shell .enemy-preview>span{font-size:10px}.game-shell .tower-description{font-size:11px}.game-shell .inspector-heading{padding-right:96px}.game-shell .tower-details summary{border:1px solid color-mix(in srgb,var(--ui-border) 38%,transparent);background:var(--linen);border-radius:4px;place-items:center;width:44px;height:44px;min-height:44px;font-size:0;display:grid;position:absolute;top:6px;right:56px}.game-shell .tower-details summary:before{content:"i";border:1px solid;border-radius:50%;place-items:center;width:18px;height:18px;margin:0;font:700 13px/1 Georgia,serif;display:grid}.game-shell .tower-details[open] summary{background:var(--ui-accent-soft)}.game-shell .tower-details[open] summary:before{content:"−"}.game-shell .spell-button kbd{display:none}}@media (max-width:700px) and (orientation:portrait){.game-shell{grid-template-rows:calc(48px + env(safe-area-inset-top)) minmax(0,1fr) calc(108px + env(safe-area-inset-bottom))}.game-shell .topbar{padding:env(safe-area-inset-top) max(5px,env(safe-area-inset-right)) 0 max(5px,env(safe-area-inset-left));gap:4px}.game-shell .brand{display:none}.game-shell .resources{flex:1;justify-content:space-between;gap:4px;min-width:0;margin:0 3px 0 0}.game-shell .resource{gap:3px;min-width:0}.game-shell .resource svg{width:15px}.game-shell .resource b{font-size:17px;display:inline}.game-shell .resource small{white-space:nowrap;margin:0;font-size:10px}.game-shell .resource i{margin:0 2px;font-size:12px}.game-shell .utility{gap:0}.game-shell .game-main{grid-template-rows:minmax(0,1fr) 60px}.game-shell .sidebar{padding-inline:6px}.game-shell .wave-command{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr) 110px;gap:7px}.game-shell .wave-information{grid-area:1/1;align-self:center}.game-shell .wave-full-label{display:none}.game-shell .wave-compact-label{display:inline}.game-shell .next-wave-label .eyebrow{font-size:14px;line-height:1.15}.game-shell .kill-count{display:none}.game-shell .enemy-preview{grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 5px;margin-top:3px;display:grid}.game-shell .enemy-preview>span{white-space:nowrap;gap:1px;font-size:10px;line-height:1.15}.game-shell .enemy-icon{width:9px;height:9px}.game-shell .enemy-preview>.enemy-boss{grid-column:1/-1}.game-shell #start-wave{grid-area:1/2;min-height:44px;padding:4px;font-size:12px}.game-shell .wave-command:has(#start-wave:not([hidden])) .spell-button{display:none}.game-shell .spell-button{flex-direction:column;grid-area:1/2;gap:1px;min-height:54px;padding:2px 4px}.game-shell .spell-button>.catapult-art{width:27px;height:20px}.game-shell .spell-button>span{text-align:center;font-size:12px}.game-shell .spell-button :is(.spell-name,small){display:none}.game-shell .spell-button .spell-compact-name{display:block}.game-shell .spell-button .spell-compact-status{margin-top:2px;font:10px/1.1 system-ui,sans-serif;display:block}.game-shell .field-feedback{padding-inline:6px}.game-shell .tower-dock{padding:4px 5px max(7px,env(safe-area-inset-bottom))}.game-shell .tower-dock:before{left:5px;right:5px}.game-shell .tower-cards{gap:4px}.game-shell .tower-card{text-align:center;grid-template-rows:34px 1fr 17px;grid-template-columns:1fr;gap:0;padding:2px 2px 4px}.game-shell .tower-art{grid-row:1;justify-self:center;width:34px;height:34px}.game-shell .tower-copy{align-self:start}.game-shell .tower-copy strong{line-height:1.05}.game-shell .tower-copy small{margin-top:3px;line-height:1.1}.game-shell .tower-price{justify-content:center;font-size:11px}.game-shell .tower-key{font-size:9px;top:3px;left:3px}.game-shell .tower-shortfall{text-align:center;background:0 0;padding:0;font-size:9px;inset:auto 2px 1px}.game-shell .tower-card:has(.tower-shortfall:not([hidden])) .tower-price{align-self:start;padding:0;line-height:1}.game-shell .tower-card:has(.tower-shortfall:not([hidden])) .tower-price svg{width:11px;height:11px}.game-shell .field-feedback:has(.inspector.has-tower){left:5px;right:5px;bottom:max(5px,env(safe-area-inset-bottom));padding:0;position:fixed}.game-shell .inspector{width:100%;padding:6px 8px;position:relative}.game-shell:has(.inspector.has-tower) .tower-dock{visibility:hidden}.game-shell .sidebar:has(.inspector.has-tower) .wave-command{visibility:hidden}.game-shell .inspector-heading .eyebrow{display:none}.game-shell .inspector-detail{gap:4px;max-height:min(230px,45dvh - 56px)}.game-shell .inspector h3{font-size:19px}.game-shell .inspector-portrait{width:30px;height:36px}.game-shell .inspector .tower-stats{gap:4px 8px;padding:4px 0}.game-shell .inspector .tower-stats .stat-next{font-size:12px}.game-shell .tower-record{font-size:10px}.game-shell .field-heading{top:calc(55px + env(safe-area-inset-top));max-width:90%;left:10px}.game-shell .field-heading h1{font-size:16px}.game-shell .field-heading p{font-size:11px}.game-shell:has(#boss-bar:not([hidden])) .field-heading{visibility:hidden}.game-shell #boss-bar{pointer-events:none;width:calc(100% - 16px);padding:4px 8px;top:3px;left:8px;transform:none}.game-shell #boss-bar>span,.game-shell #boss-intent{margin-bottom:2px;font-size:11px;line-height:1.1}.game-shell #boss-bar>div{height:4px}}@media (max-width:380px) and (orientation:portrait){.game-shell .resources{gap:3px}.game-shell .field-feedback:has(.inspector.has-tower) .hint:not(:empty){top:calc(52px + env(safe-area-inset-top));max-width:none;position:fixed;left:6px;right:6px}.game-shell:has(.inspector.has-tower):has(.hint:not(:empty)) .field-heading{visibility:hidden}.game-shell:has(#boss-bar:not([hidden])) .field-feedback:has(.inspector.has-tower) .hint:not(:empty){top:calc(106px + env(safe-area-inset-top))}.game-shell .resource{gap:2px}.game-shell .resource svg{width:12px}.game-shell .resource b{font-size:15px}.game-shell .tower-copy strong{font-size:12px}}@media (max-height:650px) and (orientation:landscape){.game-shell{grid-template-columns:minmax(0,1fr) calc(144px + env(safe-area-inset-right));grid-template-rows:calc(44px + env(safe-area-inset-top)) minmax(0,1fr) calc(78px + env(safe-area-inset-bottom))}.game-shell .topbar{padding-inline:max(8px,env(safe-area-inset-left)) max(6px,env(safe-area-inset-right));grid-area:1/1/auto/-1;gap:8px}.game-shell .brand,.game-shell .banner-atmosphere{display:none}.game-shell .pause-button{width:44px;padding:0}.game-shell .pause-button>span{display:none}.game-shell .resources{gap:14px}.game-shell .resource{gap:4px;min-width:0}.game-shell .resource b{font-size:17px;display:inline}.game-shell .resource small{display:none}.game-shell .resource svg{width:17px}.game-shell .field-heading{z-index:11;top:calc(13px + env(safe-area-inset-top));max-width:none;left:290px;right:102px}.game-shell .field-heading:before,.game-shell .field-heading p{display:none}.game-shell .field-heading h1{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.game-shell .game-main{display:contents}.game-shell .battlefield{grid-area:2/1/-1}.game-shell .tower-dock{border-top:0;border-left:3px solid var(--ui-accent-ink);grid-area:2/2;padding:4px 4px 2px}.game-shell .tower-dock:before{display:none}.game-shell .tower-cards{grid-template-rows:repeat(5,minmax(44px,1fr));grid-template-columns:minmax(0,1fr);gap:3px}.game-shell .tower-card{grid-template-rows:1fr 18px;grid-template-columns:32px minmax(0,1fr);gap:0 4px;padding:3px 4px}.game-shell .tower-art{width:32px;height:38px}.game-shell .tower-copy{align-self:center}.game-shell .tower-copy strong{font-size:13px;line-height:1.05}.game-shell .tower-copy small{display:none}.game-shell .tower-price{font-size:11px}.game-shell .tower-key{display:none}.game-shell .tower-shortfall{font-size:9px;top:auto;bottom:2px;right:2px}.game-shell .tower-card:has(.tower-shortfall:not([hidden])) .tower-price{padding-right:20px}.game-shell .sidebar{padding:0 4px max(2px,env(safe-area-inset-bottom));border-left:3px solid var(--ui-accent-ink);box-shadow:none;grid-area:3/2}.game-shell .wave-command{grid-template-rows:28px minmax(44px,1fr);grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px}.game-shell .wave-information{grid-area:1/1/auto/-1}.game-shell .next-wave-label .eyebrow{font-size:11px;line-height:1.15}.game-shell .kill-count,.game-shell #enemy-preview{display:none}.game-shell #start-wave{grid-area:2/1;min-height:44px;padding:2px;font-size:11px}.game-shell #start-wave>svg{display:none}.game-shell .spell-button{grid-area:2/2;gap:3px;min-height:44px;padding:2px}.game-shell .spell-button>.catapult-art{width:26px;height:32px}.game-shell .spell-button>span{font-size:11px}.game-shell .spell-button small{margin-top:2px;font-size:9px}.game-shell .wave-command:has(#start-wave:not([hidden])) .spell-button>span{font-size:0}.game-shell .wave-command:has(#start-wave:not([hidden])) .spell-button small{display:none}.game-shell .wave-command:has(#start-wave[hidden]) .spell-button{grid-column:1/-1}.game-shell .wave-command:has(#start-wave[hidden]) .spell-button>.catapult-art{width:32px}.game-shell .field-feedback{left:8px;right:calc(152px + env(safe-area-inset-right));padding:0;position:fixed;bottom:8px}.game-shell .inspector{right:calc(150px + env(safe-area-inset-right));top:calc(50px + env(safe-area-inset-top));width:260px;padding:6px 8px;position:fixed;bottom:auto}.game-shell .inspector h3{font-size:18px}.game-shell .inspector-portrait{width:30px;height:36px}.game-shell .inspector-heading .eyebrow{display:none}.game-shell .inspector-detail{gap:4px;max-height:calc(100dvh - 104px)}.game-shell .inspector .tower-stats{margin-top:0;padding:4px 0}.game-shell .inspector .tower-stats b{font-size:12px}.game-shell .inspector .tower-stats .stat-next{font-size:11px}.game-shell .inspector-actions{gap:4px}.game-shell .inspector-actions button{font-size:12px}.game-shell .pause-overlay{padding:12px 22px}.game-shell .pause-overlay h2{margin:3px 0 10px;font-size:25px}.game-shell #boss-bar{pointer-events:none;width:200px;padding:5px 8px;top:6px;left:8px;transform:none}.game-shell #boss-bar>span,.game-shell #boss-intent{margin-bottom:3px;font-size:9px}}@media (max-height:350px) and (orientation:landscape){.game-shell{grid-template-rows:calc(44px + env(safe-area-inset-top)) minmax(0,1fr) calc(46px + env(safe-area-inset-bottom))}.game-shell .tower-dock{padding:1px 3px}.game-shell .tower-cards{gap:2px}.game-shell .wave-command{grid-template-rows:minmax(44px,1fr)}.game-shell .wave-information{display:none}.game-shell #start-wave,.game-shell .spell-button{grid-row:1}}@media (max-height:318px) and (orientation:landscape){.game-shell .tower-cards{grid-template-rows:repeat(3,minmax(44px,1fr));grid-template-columns:repeat(2,minmax(0,1fr))}.game-shell .tower-card{grid-template-rows:14px minmax(0,1fr);grid-template-columns:20px minmax(0,1fr);gap:0 3px;padding:2px}.game-shell .tower-copy{text-align:center;grid-area:1/1/auto/-1;align-self:center}.game-shell .tower-copy strong{font-size:11px}.game-shell .tower-art{grid-area:2/1;justify-self:center;width:20px;height:22px}.game-shell .tower-price{grid-area:2/2;justify-content:flex-start;gap:2px}.game-shell .tower-card:has(.tower-shortfall:not([hidden])) .tower-price{padding-right:0}.game-shell .tower-card:last-child{grid-column:1/-1;grid-template-rows:1fr 18px;grid-template-columns:32px minmax(0,1fr)}.game-shell .tower-card:last-child .tower-art{grid-row:1/-1;width:32px;height:32px}.game-shell .tower-card:last-child .tower-copy{text-align:left;grid-area:1/2;align-self:end}.game-shell .tower-card:last-child .tower-copy strong{font-size:12px}}#modal{z-index:20;color:var(--ui-ink);padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:radial-gradient(ellipse at 50% 42%,var(--linen),transparent 74%),linear-gradient(165deg,color-mix(in srgb,var(--dust-blue) 12%,var(--sandstone)),var(--sandstone));justify-content:center;align-items:center;display:flex;position:fixed;inset:0;overflow-y:auto}#modal .modal-content{scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent;scrollbar-gutter:stable;width:min(550px,100%);max-height:calc(100dvh - 32px);padding:30px;position:relative;overflow-y:auto}.modal-content h2{font-family:var(--display-face);color:var(--ui-ink);text-wrap:balance;margin:8px 0 16px;font-size:33px;font-weight:700;line-height:1.12}.modal-content h3{margin:14px 0 8px;font-size:22px}.modal-content p{color:var(--ui-ink);margin:12px 0;font-size:14px}#modal .modal-content .muted{color:var(--ui-muted);font-size:12px;line-height:1.5}#modal .modal-content>.primary,#modal .modal-content>.secondary{margin-top:12px}#modal .modal-content :is(button,input,select){border-radius:4px}#modal .modal-actions{flex-wrap:wrap;gap:12px;margin-top:22px;display:flex}#modal .modal-actions button{flex:1;min-width:120px}#modal .modal-content:has(.home-menu,.entry-menu){width:min(920px,100%);padding:28px 34px 34px}#modal :is(.home-menu,.entry-menu){grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:center;gap:18px 38px;display:grid}#modal :is(.menu-hero,.entry-actions,.menu-actions){min-width:0;position:relative}#modal .home-menu{position:relative}#modal .menu-hero{text-align:left}#modal .menu-hero:before{content:"";opacity:.65;pointer-events:none;background:url(../ui/linen-pines.svg) 100%/contain no-repeat;height:130px;position:absolute;inset:-22px -8px auto 35%}@media (max-width:360px) and (orientation:portrait){#modal .home-menu .menu-hero:before{display:none}}#modal .menu-hero h2{letter-spacing:-2.8px;margin:0 0 18px;font-size:clamp(52px,5.2vw,72px);line-height:.91}#modal .menu-hero h2 span{display:block}#modal .modal-content .menu-tagline{margin:0;font-size:13px;line-height:1.6}#modal .menu-preview{aspect-ratio:16/9;border:1px solid var(--ui-separator);background:var(--ui-surface);border-radius:2px;width:100%;margin:22px 0 0;position:relative;overflow:hidden}#modal .menu-preview img{object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}#modal .home-menu .menu-actions{gap:10px;display:grid}#modal .home-menu :is(.menu-play,.menu-resume,.menu-hall){text-align:left;border-radius:4px;justify-content:space-between;align-items:center;gap:12px;width:100%;height:72px;min-height:72px;margin:0;padding:8px 14px;display:flex}#modal .home-menu :is(.menu-play,.menu-resume,.menu-hall) strong{letter-spacing:-.3px;font-size:18px;font-weight:800;line-height:1.1;display:block}#modal .home-menu :is(.menu-play,.menu-resume) small{margin-top:4px;font-size:11px;font-weight:400;line-height:1.35;display:block}#modal .home-menu :is(.menu-play,.menu-resume,.menu-hall)>svg{width:20px;height:20px}#modal .home-menu .destination-copy{flex:1;min-width:0}#modal .home-menu .campaign-play :is(svg,.destination-gate){color:var(--ui-on-accent)}#modal .home-menu .survival-play small{color:var(--ui-control-muted)}#modal .home-menu .menu-resume{background:var(--ui-accent-soft);border-color:var(--ui-accent-ink);box-shadow:inset 3px 0 var(--ui-accent);font-size:12px}#modal .home-menu .menu-resume small{color:var(--ui-muted)}#modal :is(.destination-gate,.destination-mark) svg{width:24px;height:28px}#modal .destination-gate svg{stroke-width:1.5px}#modal .menu-play>span{min-width:0}#modal .destination-gate{flex-shrink:0}#modal .menu-navigation{grid-template-columns:1fr 1fr;gap:0 10px;display:grid}#modal .menu-navigation .text-button{padding:8px 4px;font-size:12px;font-weight:500}#modal .home-menu .merchant-footer{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;min-width:0;display:grid}#modal .home-menu .merchant-footer>.menu-shop{text-align:center;border-radius:5px;flex-direction:column;justify-self:center;gap:2px;min-width:0;max-width:100%;padding:2px 4px 4px;font-size:13px;font-weight:700;display:flex}#modal .home-menu .merchant-footer>.menu-shop>span{line-height:1.2}#modal .home-menu .merchant-footer>[data-settings],#modal .home-menu .merchant-footer>[data-watch-intro]{text-align:center;white-space:normal;overflow-wrap:normal;min-width:0;max-width:100%;min-height:44px;padding:6px 3px;font-size:12px;font-weight:500;line-height:1.3}#modal .home-menu .merchant-footer>[data-settings]{justify-self:start}#modal .home-menu .merchant-footer>[data-watch-intro]{justify-self:end}#modal .home-menu .menu-shop:hover{background:var(--ui-accent-soft)}.menu-shop img{object-fit:contain;pointer-events:none;width:112px;height:91px;display:block}#modal .menu-play:focus:not(:focus-visible),#modal :is(.menu-play,.menu-resume)[data-initial-focus]:focus{outline:none}#modal .home-menu>.menu-actions>.publisher-link{color:var(--ui-muted);text-underline-offset:3px;justify-self:center;margin-top:-6px;padding:6px 10px;font-size:11px;font-weight:500;text-decoration:underline}#modal .entry-menu{text-align:center;gap:32px;margin:auto}#modal .entry-menu .menu-preview[data-entry-film]{aspect-ratio:auto}#modal .cinematic-opening{border-radius:0}#modal .cinematic-opening .cinematic-art{aspect-ratio:16/9;height:auto}#modal .entry-actions{flex-direction:column;align-items:stretch;display:flex}#modal .entry-language{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;font-size:12px;display:flex}#modal .entry-language button{background:var(--ui-surface);border:1px solid var(--ui-separator);justify-content:center;align-items:center;min-width:60px;min-height:44px;padding:8px;display:inline-flex;position:relative}#modal .entry-language button[aria-pressed=true]{background:var(--ui-accent-soft);border-color:var(--ui-accent-ink)}#modal .entry-language button[aria-pressed=true]:before{content:"✓";font-size:10px;position:absolute;top:1px;right:3px}#modal .entry-language svg{width:28px;height:20px}#modal .entry-language button:hover{background:var(--linen)}#modal .entry-language button[aria-pressed=true]:hover{background:var(--ui-accent-hover)}#modal .entry-start{text-align:left;letter-spacing:-.4px;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:64px;margin:16px 0 8px;padding:12px 18px;font-size:23px;font-weight:800;display:flex}#modal .entry-gate svg{stroke-width:1.5px;width:30px;height:30px}#modal .entry-start>span:nth-child(2){flex:1}#modal .entry-start>svg{width:22px;height:22px}#modal .modal-content:has(.survival-menu,.hall-menu){width:min(840px,100%)}#modal .modal-content:has(.survival-menu){width:min(960px,100%)}#modal .survival-roads{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0 18px;display:grid}#modal .survival-road{--ui-muted:var(--ui-control-muted);text-align:left;border:1px solid var(--ui-border);background:var(--linen);min-width:0;box-shadow:0 3px 8px color-mix(in srgb,var(--ui-shadow) 7%,transparent);border-radius:4px;flex-direction:column;padding:0;display:flex;overflow:hidden}#modal .survival-road:hover:not(:disabled){border-color:var(--ui-accent-ink);background:var(--ui-accent-soft)}#modal .survival-road:active:not(:disabled){box-shadow:inset 0 0 0 2px var(--ui-accent-ink)}#modal .road-body{border-top:1px solid color-mix(in srgb,var(--ui-border) 40%,transparent);flex-direction:column;flex:1;gap:9px;min-width:0;padding:16px;display:flex}#modal .road-heading{justify-content:space-between;align-items:flex-start;gap:7px;display:flex}#modal .road-heading strong{font-family:var(--display-face);font-size:21px;font-weight:700;line-height:1.15}#modal .road-heading svg{width:19px;height:19px;color:var(--ui-accent-ink);flex:none;margin-top:2px}#modal .road-description{color:var(--ui-muted);font-size:13px;line-height:1.4}#modal .road-locked .road-landscape img{filter:saturate(.6);opacity:.86}#modal .road-locked .road-heading svg{color:var(--ui-muted)}#modal .menu-footer{flex-wrap:wrap;gap:10px;margin-top:18px;display:flex}#modal .menu-footer>button{flex:1;min-width:120px}#modal .road-landscape{aspect-ratio:3/2;background:var(--ui-plane);flex:none;width:100%;display:block;position:relative;overflow:hidden}#modal .road-landscape img{object-fit:cover;object-position:50% 35%;width:100%;height:100%;display:block}#modal .road-landscape b{border:1px solid color-mix(in srgb,var(--ui-highlight) 50%,transparent);background:color-mix(in srgb,var(--ui-surface) 92%,transparent);min-width:27px;height:27px;color:var(--ui-ink);font:700 14px var(--display-face);box-shadow:0 2px 5px color-mix(in srgb,var(--ui-shadow) 15%,transparent);border-radius:2px;place-items:center;padding:0 6px;display:grid;position:absolute;top:10px;left:10px}#modal .result-stars{letter-spacing:8px;color:var(--ui-accent-ink);margin:17px 0;font-size:40px}#modal .result-stars span{color:var(--ui-border)}#modal .result-stats{border-block:1px solid var(--ui-border);border-radius:4px;justify-content:space-between;gap:15px;margin:22px 0;padding:17px 0;display:flex}#modal .result-stats span{color:var(--ui-muted);font-size:12px}#modal .result-stats b{color:var(--ui-ink);margin-bottom:5px;font-size:24px;font-weight:800;display:block}#modal .score-board{text-align:left;border-top:1px solid var(--ui-separator);margin:22px 0;padding:16px 0 0}#modal .score-board h3{margin:0 0 12px;font-size:18px}#modal .score-board ol{margin:0;padding:0;list-style:none}#modal .score-board li{border-top:1px solid var(--ui-border);grid-template-columns:minmax(2.5ch,max-content) minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;font-size:14px;display:grid}#modal .score-board small{color:var(--ui-muted);margin-top:4px;font-size:11px;display:block}#modal .record-rank{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:800}#modal .record-defense strong{overflow-wrap:anywhere;font-size:15px;line-height:1.3;display:block}#modal .record-score{text-align:right;font-variant-numeric:tabular-nums;font-size:23px;font-weight:900}#modal .record-score small{font-weight:500}#modal .survival-score{margin:20px 0;font-size:52px;font-weight:900}#modal .survival-score small{color:var(--ui-muted);margin-top:7px;font-size:13px;font-weight:500;display:block}#modal .score-board li.is-you{background:var(--ui-plane);border-radius:7px}#modal .score-board li.is-leader .record-rank{color:var(--ui-accent-ink)}#modal .own-standing .is-you{box-shadow:inset 3px 0 var(--ui-accent);padding-inline:8px}#modal .shared-result{border-top:1px solid var(--ui-border);margin:16px 0;padding:12px 0}#modal .shared-result button{margin:4px}#modal #nickname{font:inherit;color:var(--ui-ink);background:var(--ui-raised);border:1px solid var(--ui-border);width:100%;max-width:100%;min-height:44px;padding:8px 12px}#modal .nickname-label{margin:16px 0 6px;display:block}#modal .identity-summary{margin:12px 0}#modal .hall-header{grid-template-columns:minmax(0,1fr) minmax(210px,.8fr);align-items:end;gap:18px;margin-bottom:18px;display:grid}#modal .hall-header h2{margin-bottom:0}#modal .hall-filters{min-width:0;color:var(--ui-muted);gap:5px;font-size:11px;display:grid}#modal .hall-road-picker{color:var(--ui-ink);position:relative}#modal .hall-road-picker summary{border:1px solid var(--ui-border);background:var(--linen);cursor:pointer;border-radius:4px;align-items:center;gap:10px;min-height:48px;padding:5px 9px;list-style:none;display:flex}#modal .hall-road-picker summary::-webkit-details-marker{display:none}#modal .hall-road-picker img{object-fit:cover;object-position:50% 35%;border-radius:2px;flex:none;width:48px;height:32px}#modal #hall-road-name{flex:1;min-width:0;font-size:13px;font-weight:700}#modal .hall-road-chevron{font-size:22px}#modal .hall-road-options{z-index:5;background:var(--linen);border:1px solid var(--ui-border);box-shadow:0 8px 20px color-mix(in srgb,var(--ui-shadow) 24%,transparent);border-radius:4px;padding:5px;position:absolute;inset:calc(100% + 4px) 0 auto}#modal .hall-road-options button{text-align:left;background:0 0;border:0;align-items:center;gap:9px;width:100%;min-height:50px;padding:6px;font-size:13px;display:flex}#modal .hall-road-options button[aria-pressed=true]{background:var(--ui-accent-soft)}#modal .hall-road-options button span{flex:1}#modal .hall-challenge{border-block:1px solid var(--ui-separator);grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding:22px;display:grid}#modal .hall-record{align-self:center;min-width:0}#modal .hall-player{color:var(--ui-muted);overflow-wrap:anywhere;margin-bottom:15px;font-size:12px;display:block}#modal .hall-record-values{flex-wrap:wrap;align-items:end;gap:12px 22px;display:flex}#modal .hall-record-values>div{min-width:0}#modal .hall-record-values span{color:var(--ui-muted);margin-bottom:5px;font-size:10px;display:block}#modal .hall-record-values strong{font-family:var(--display-face);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1;display:block}#modal .hall-rank{font-size:clamp(34px,4vw,54px)}#modal .hall-best{font-size:clamp(28px,3vw,40px)}#modal .hall-target{flex-direction:column;justify-content:center;min-width:0;display:flex}#modal .hall-target-heading{color:var(--ui-muted);flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:11px;display:flex}#modal .hall-target-heading b{background:var(--clay);color:var(--ui-on-accent);border-radius:2px;padding:4px 6px;font-size:11px}#modal .hall-target-score{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin-top:6px;font-size:34px;font-weight:800;display:block}#modal .hall-target-score small{font-size:11px;font-weight:400}#modal .hall-challenge p{color:var(--ui-muted);margin:8px 0 12px;font-size:11px;line-height:1.45}#modal .hall-challenge h3{font-family:var(--display-face);margin:8px 0;font-size:28px}#modal .hall-target .primary{justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:48px;padding:10px 12px;display:flex}#modal .hall-target .primary svg{flex:none;width:18px;height:18px}#modal .hall-target .hall-unlock{margin-bottom:0}#modal .hall-footer{border-top:1px solid var(--ui-separator);padding-top:8px}#modal .hall-footer p{color:var(--ui-muted);font-size:11px;line-height:1.5}#modal .survival-result .survival-score{margin:12px 0;font-size:44px}#modal .survival-result .result-best{font-size:12px}#modal .survival-result .shared-result{flex-wrap:wrap;gap:6px;margin:10px 0;padding:10px 0 0;display:flex}#modal .survival-result .shared-result p{flex:1 0 100%;margin:0 0 4px;font-size:12px;line-height:1.4}#modal .survival-result .shared-result button{flex:1;margin:0;font-size:12px}#modal .survival-result .result-stats{margin:12px 0;padding:10px 0}#modal .survival-result .modal-actions{gap:7px;margin-top:12px}#modal .survival-result .modal-actions button{min-width:0;padding:9px 6px;font-size:12px}#modal .settings-menu{font-size:14px;line-height:1.5}#modal .settings-menu h2{margin:0 0 16px;font-size:28px}#modal .settings-audio{grid-template-columns:1fr 1fr;gap:10px;display:grid}#modal .settings-audio button{min-height:44px;font-size:14px}#modal .settings-menu section{border-top:1px solid var(--ui-separator);margin-top:20px;padding-top:16px}#modal .settings-menu h3{margin:0 0 8px;font-family:inherit;font-size:16px;font-weight:700}#modal .settings-menu p{margin:8px 0;font-size:14px;line-height:1.5}#modal .guide-towers{border-top:1px solid var(--ui-border);margin:12px 0}#modal .guide-towers>div{border-bottom:1px solid var(--ui-border);align-items:center;gap:13px;padding:8px 0;display:flex}#modal .guide-towers svg{width:28px;height:32px}#modal .guide-towers span{flex:1}#modal .guide-towers strong{font-size:14px;font-weight:800;display:block}#modal .guide-towers small{color:var(--ui-muted);margin-top:4px;font-size:12px;line-height:1.4;display:block}#modal .guide-towers b{font-size:12px}#modal .keyboard-reference dl{grid-template-columns:minmax(115px,.7fr) minmax(0,1.3fr);gap:10px 16px;margin:0;display:grid}#modal .keyboard-reference dt{font-weight:700}#modal .keyboard-reference dd{margin:0}@media (max-width:700px){.modal-content h2{font-size:29px}#modal .survival-roads{grid-template-columns:1fr;gap:10px;margin-top:16px}#modal .road-landscape{aspect-ratio:2}#modal .road-body{gap:6px;padding:11px 12px}#modal .road-heading strong{font-size:19px}#modal .score-board{margin:16px 0;padding:12px}#modal .score-board li{gap:7px;font-size:13px}#modal .record-defense strong{font-size:14px}#modal .record-score{font-size:21px}}@media (max-width:600px){.menu-shop img{width:92px;height:75px}}@media (max-width:700px) and (orientation:portrait){#modal{padding:14px}#modal .modal-content:not(:has(.cinematic:not(.cinematic-opening),.specialization-menu)){max-height:calc(100dvh - 28px);padding:24px 20px}#modal .modal-content:has(.home-menu,.entry-menu){width:min(440px,100%)}#modal :is(.home-menu,.entry-menu){grid-template-columns:minmax(0,1fr);gap:20px}#modal .menu-hero{text-align:center}#modal .entry-menu .menu-hero:before{display:none}#modal .menu-hero h2{letter-spacing:-2px;margin-bottom:12px;font-size:58px}#modal .modal-content .menu-tagline{font-size:12px}#modal .menu-preview{max-width:300px;margin:16px auto 0}#modal .home-menu .menu-preview{display:none}#modal .home-menu:has(.menu-resume) .menu-hero{text-align:left;display:block}#modal .home-menu:has(.menu-resume) .menu-hero h2{margin:0;font-size:40px}#modal .home-menu:has(.menu-resume) .menu-tagline{display:none}#modal .entry-start{min-height:60px;padding:10px 16px;font-size:21px}#modal .entry-gate svg{width:28px;height:28px}#modal .entry-start>svg{width:23px}}@media (max-width:380px){#modal .keyboard-reference dl{grid-template-columns:1fr;gap:4px}#modal .keyboard-reference dd{margin-bottom:8px}}@media (max-width:380px) and (orientation:portrait){#modal{padding:10px}#modal .modal-content:not(:has(.cinematic:not(.cinematic-opening),.specialization-menu)){max-height:calc(100dvh - 20px);padding:20px 16px}#modal :is(.home-menu,.entry-menu){gap:10px}#modal .menu-hero h2{font-size:46px}#modal .home-menu .menu-hero h2{letter-spacing:-1.4px;margin-bottom:8px;font-size:32px;line-height:1}#modal .home-menu .menu-hero h2 span{display:inline}#modal .home-menu:has(.menu-resume) .menu-hero h2{font-size:32px;line-height:.94}#modal .home-menu:has(.menu-resume) .menu-hero h2 span{display:block}#modal .menu-preview{margin-top:12px}#modal .destination-mark svg{width:25px}#modal .menu-navigation .text-button,#modal .home-menu .merchant-footer>[data-settings],#modal .home-menu .merchant-footer>[data-watch-intro]{font-size:11px}#modal .home-menu .merchant-footer{gap:4px}.home-menu .menu-shop img{width:68px;height:55px}#modal .road-body{padding:11px 10px}#modal .road-heading strong{font-size:18px}#modal .score-board li{grid-template-columns:minmax(2.5ch,max-content) minmax(0,1fr);row-gap:3px}#modal .record-rank{grid-row:1/3;align-self:start;padding-top:4px}#modal .record-score{text-align:left;overflow-wrap:anywhere;grid-area:1/2;font-size:clamp(18px,5.5vw,25px)}#modal .record-defense{grid-area:2/2}}@media (max-height:650px) and (orientation:landscape){.modal-content h2{margin:5px 0 10px;font-size:27px}.modal-content p{margin:8px 0;font-size:12px}#modal .survival-roads{margin:14px 0}#modal .road-landscape{aspect-ratio:2}#modal .road-body{gap:10px;padding:12px}#modal .road-heading strong{font-size:18px}}@media (max-height:500px) and (orientation:landscape){.menu-shop img{width:72px;height:58px}#modal{padding:10px 16px}#modal .modal-content:not(:has(.cinematic:not(.cinematic-opening),.specializations)){max-height:calc(100dvh - 20px);padding:20px 24px}#modal .modal-content:has(.home-menu,.entry-menu){width:min(820px,100%)}#modal :is(.home-menu,.entry-menu){grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 28px}#modal .menu-hero h2{margin-bottom:10px;font-size:46px}#modal .modal-content .menu-tagline{font-size:12px}#modal .menu-preview{max-width:240px;margin:12px 0 0}#modal .home-menu .menu-preview{max-width:195px}#modal .home-menu :is(.menu-play,.menu-resume,.menu-hall){height:56px;min-height:56px;padding-block:6px}#modal .entry-menu{padding-block:4px}#modal .entry-start{min-height:60px;padding:10px 16px;font-size:22px}}#modal:has(.specialization-menu){background:color-mix(in srgb,var(--ui-ink) 40%,transparent)}#modal .modal-content:has(.specialization-menu){scrollbar-gutter:auto;width:min(540px,100%);max-height:75dvh;padding:16px;overflow:hidden}#modal .specialization-menu{grid-template-rows:auto auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr);gap:12px;max-height:calc(75dvh - 34px);display:grid}#modal .specialization-menu header{min-width:0}#modal .specialization-menu .eyebrow{font-size:10px}#modal .specialization-menu h2{text-wrap:initial;margin:4px 0 0;font-size:24px}#modal .specializations{border-top:5px solid var(--ui-accent-ink);grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:8px;padding-top:7px;display:grid}#modal .specialization{background:var(--linen);border:1px solid var(--ui-border);min-width:0;min-height:106px;color:var(--ui-ink);box-shadow:0 2px 3px color-mix(in srgb,var(--ui-shadow) 7%,transparent);flex-direction:column;justify-content:flex-start;align-items:center;gap:5px;padding:8px 6px;display:flex;position:relative}#modal .specialization:hover{background:var(--ui-accent-soft)}#modal .specialization[aria-pressed=true]{background:var(--ui-accent-soft);border-color:var(--ui-accent-ink);box-shadow:inset 0 -3px var(--ui-accent-ink)}#modal .specialization[aria-pressed=true]:after{content:"✓";color:var(--ui-accent-ink);font-size:12px;position:absolute;top:4px;right:5px}#modal .branch-art{line-height:0;display:block}#modal .branch-art svg{width:32px;height:32px}#modal .specialization strong{overflow-wrap:anywhere;font-size:13px;font-weight:750;line-height:1.2}#modal .branch-price{align-items:center;gap:4px;margin-top:auto;font-size:12px;font-weight:750;display:flex}#modal .branch-price svg{width:12px;height:12px}#modal .branch-preview{scrollbar-width:thin;min-height:0;overflow-y:auto}#modal .branch-preview h3{font:700 21px/1.15 var(--display-face);margin:0}#modal .branch-preview .branch-detail{margin:5px 0 8px;font-size:12px;line-height:1.4}#modal .branch-preview .tower-stats{gap:5px 8px;margin:0;padding:7px 0}#modal .branch-preview .tower-stats>span{letter-spacing:0;font-size:9px}#modal .branch-preview .tower-stats b{margin-top:2px;font-size:13px}#modal .branch-preview .tower-stats .stat-next{color:var(--ui-accent-ink)}#modal .branch-preview .tower-stats>.stat-extra b{font-size:12px}#modal .specialization-menu footer{min-width:0}#modal .specialization-menu .branch-permanence{margin:0 0 7px;font-size:11px;line-height:1.3}#modal .branch-actions{grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:8px;display:grid}#modal .branch-actions button{min-width:0;min-height:44px;padding:7px 9px;font-size:12px;line-height:1.2}#modal .branch-commit span{white-space:nowrap;margin-top:3px;font-size:11px;display:block}#modal .specialization-menu .branch-shortfall{color:var(--ui-muted);margin:5px 0 0;font-size:11px}@media (max-width:380px){#modal .modal-content:has(.specialization-menu){padding:10px}#modal .specialization-menu{gap:7px;max-height:calc(75dvh - 22px)}#modal .specialization-menu h2{font-size:21px}#modal .specializations{gap:5px}#modal .specialization{gap:4px;min-height:84px;padding:5px 4px}#modal .branch-art svg{width:28px;height:28px}#modal .specialization strong{font-size:12px}#modal .specializations:has(>:nth-child(2):last-child) .specialization{min-height:76px}#modal .branch-preview .tower-stats{padding-block:5px}#modal .branch-preview h3{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}#modal .branch-preview .branch-detail{margin-top:0}#modal .branch-range-band .tower-stats>span:nth-child(2) b{white-space:nowrap}#modal .branch-range-band .tower-stats>span:nth-child(2) .stat-next{display:block}}@media (max-height:500px) and (orientation:landscape){#modal .modal-content:has(.specialization-menu){width:min(720px,100%);padding:10px}#modal .specialization-menu{grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:6px 18px;max-height:calc(75dvh - 22px)}#modal .specialization-menu header{grid-area:1/1}#modal .specialization-menu h2{font-size:21px}#modal .specializations{grid-area:2/1;align-self:start}#modal .specialization{gap:3px;min-height:90px;padding:5px 4px}#modal .branch-art svg{width:27px;height:27px}#modal .branch-preview{grid-area:1/2/3}#modal .branch-preview h3{font-size:20px}#modal .branch-preview .branch-detail{margin:4px 0 6px}#modal .branch-preview .tower-stats{padding-block:6px}#modal .specialization-menu footer{flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:5px 18px;display:flex}#modal .specialization-menu .branch-permanence{flex:1;margin:0}#modal .branch-actions{flex:1.1}#modal .specialization-menu .branch-shortfall{width:100%;margin:0}}@media (max-width:700px) and (orientation:portrait),(max-height:500px) and (orientation:landscape){#modal .modal-content:has(.campaign-result){scrollbar-gutter:auto;max-height:calc(100dvh - 28px);padding:16px}#modal .campaign-result{gap:10px;display:grid}#modal .campaign-result h2{margin:0;font-size:27px;line-height:1.12}#modal .campaign-result .result-stars{margin:0;font-size:34px;line-height:1.1}#modal .campaign-result>p{margin:0;font-size:13px;line-height:1.4}#modal .campaign-result .result-stats{gap:10px;margin:0;padding:9px 0}#modal .campaign-result .result-stats b{margin-bottom:3px;font-size:22px}#modal .campaign-result .modal-actions{gap:8px;margin:0}#modal .campaign-result .modal-actions button{min-width:100px;min-height:44px;padding:8px;font-size:12px}}@media (max-height:500px) and (orientation:landscape){#modal .modal-content:has(.campaign-result){width:min(720px,100%);max-height:calc(100dvh - 20px);padding:14px}#modal .campaign-result{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:6px 24px}#modal .campaign-result>:is(.eyebrow,h2,.result-stars,p){grid-column:1}#modal .campaign-result .result-stats{border-block:0;border-left:1px solid var(--ui-border);flex-direction:column;grid-area:1/2/5;justify-content:center;gap:8px;padding:0 0 0 20px}#modal .campaign-result .result-stats span{font-size:11px}#modal .campaign-result .result-stats b{margin-bottom:1px;font-size:22px}#modal .campaign-result .modal-actions{grid-column:1/-1;margin-top:6px}}@media (max-width:700px){#modal .hall-header{grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:14px}#modal .hall-header h2{font-size:27px}#modal .hall-filters{gap:4px}#modal .hall-challenge{grid-template-columns:minmax(0,1fr);gap:17px;padding:18px}#modal .hall-player{margin-bottom:12px}#modal .hall-record-values{justify-content:space-between;gap:12px}#modal .hall-rank{font-size:44px}#modal .hall-best{font-size:36px}#modal .hall-target-score{font-size:32px}#modal .hall-menu .score-board{padding:14px 0 0}}@media (max-width:380px) and (orientation:portrait){#modal .hall-header{gap:8px;margin-bottom:10px}#modal .hall-header h2{margin-top:4px;font-size:25px}#modal .hall-challenge{gap:13px;padding:14px}#modal .hall-player{margin-bottom:10px}#modal .hall-rank{font-size:38px}#modal .hall-best{font-size:31px}#modal .hall-target-score{font-size:29px}#modal .survival-result h2{margin:6px 0 10px;font-size:26px}#modal .survival-result .survival-score{margin:10px 0;font-size:36px}#modal .survival-result .survival-score small{margin-top:4px;font-size:11px}#modal .survival-result .result-stats{gap:8px;margin:10px 0;padding:8px 0}#modal .survival-result .result-stats b{font-size:20px}#modal .survival-result .result-stats span{font-size:10px}#modal .survival-result .modal-actions{margin-top:10px}#modal .survival-result .modal-actions button{font-size:11px}}@media (max-height:500px) and (orientation:landscape){#modal .hall-header{grid-template-columns:minmax(0,1fr) minmax(210px,.8fr);gap:18px;margin-bottom:12px}#modal .hall-header h2{font-size:27px}#modal .hall-challenge{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:16px 20px}#modal .hall-player{margin-bottom:10px}#modal .hall-rank{font-size:44px}#modal .hall-best{font-size:34px}#modal .hall-target-score{font-size:30px}#modal .hall-challenge p{margin:6px 0 9px;font-size:10px}#modal .modal-content:has(.survival-result){width:min(840px,100%);padding:18px 22px}#modal .survival-result{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:0 24px;display:grid}#modal .survival-result>.eyebrow,#modal .survival-result>h2,#modal .survival-result>.survival-score,#modal .survival-result>.score-breakdown,#modal .survival-result>.result-stats{grid-column:1}#modal .survival-result>h2{margin:5px 0 8px;font-size:25px}#modal .survival-result>.survival-score{margin:4px 0;font-size:38px}#modal .survival-result>.survival-score small{margin-top:3px;font-size:11px}#modal .survival-result>[data-shared-run]{grid-area:1/2/6;align-self:center}#modal .survival-result .shared-result{border-top:0;margin:0;padding-top:0}#modal .survival-result .shared-result p{font-size:12px}#modal .survival-result>.result-stats{gap:10px;margin:8px 0;padding:8px 0}#modal .survival-result .result-stats b{margin-bottom:3px;font-size:20px}#modal .survival-result .result-stats span{font-size:10px}#modal .survival-result>.modal-actions{grid-column:1/-1;margin-top:8px}}#modal .modal-content:has(.cinematic:not(.cinematic-opening)){scrollbar-gutter:auto;width:min(880px,100%);max-height:calc(100dvh - 32px);padding:0}.cinematic{color:var(--ui-ink);border-radius:inherit;position:relative;overflow:hidden}.cinematic-art{aspect-ratio:16/9;position:relative;overflow:hidden}.cinematic-art video,.cinematic-poster{object-fit:contain;background-color:var(--ui-surface);background-image:var(--ui-paper-background);width:100%;height:100%;display:block;position:absolute;inset:0}.cinematic-title{padding:18px 24px 0}.cinematic-caption{padding:10px 24px 18px;line-height:1.45}.cinematic-actions{align-items:center;gap:12px;padding:0 24px 22px;display:flex}.cinematic-skip{min-width:108px;min-height:44px;margin-left:auto;display:block}@media (max-width:700px){#modal .modal-content:has(.cinematic:not(.cinematic-opening)){max-height:calc(100dvh - 28px)}}@media (max-width:600px){.cinematic-title{padding:14px 16px 0}.cinematic-caption{padding:8px 16px 14px}.cinematic-actions{padding:0 16px 16px}}@media (max-height:500px) and (orientation:landscape){#modal .modal-content:has(.cinematic:not(.cinematic-opening)){max-height:calc(100dvh - 20px);overflow:hidden}.cinematic:not(.cinematic-opening){grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px 16px;max-height:calc(100dvh - 22px);padding:12px;display:grid}.cinematic:not(.cinematic-opening) .cinematic-art{aspect-ratio:16/9;grid-area:1/1/-1;place-self:center;width:100%;max-width:calc(177.778dvh - 81.7778px);height:auto;min-height:0}.cinematic:not(.cinematic-opening) .cinematic-title{grid-column:2;margin:0;padding:0;font-size:26px;line-height:1.12}.cinematic:not(.cinematic-opening) .cinematic-caption{grid-column:2;min-height:0;margin:0;padding:0;font-size:13px;line-height:1.45}.cinematic:not(.cinematic-opening) .cinematic-actions{grid-column:2;margin:0;padding:0}}@media (max-width:450px){.cinematic-actions{flex-wrap:wrap;gap:8px}}
