.horde-page{--arena-ground: #101812;--horde-danger: #fb7185;--horde-amber: #f5b65c;--horde-common: #d0d3cb;--horde-rare: #8ce2de;overscroll-behavior:none}html:has(.horde-page){overscroll-behavior:none}.horde-main{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}.horde-back{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--muted)}.horde-back svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}.horde-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:12px 0 24px}.horde-heading h1{font-size:28px}.horde-heading p{margin-top:6px}.horde-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:32px;align-items:start}.horde-play{min-width:0}.horde-hud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 10px;font-variant-numeric:tabular-nums}.horde-hud dt{color:var(--muted);font-size:12px}.horde-hud dd{margin:0;font-size:20px;line-height:1.5}.horde-health-meter{height:5px;background:var(--raised);border-radius:3px;overflow:hidden;margin-bottom:12px}.horde-health-meter span{display:block;width:100%;height:100%;background:var(--accent);transform-origin:left}.horde-health-meter[data-danger=true] span{background:var(--horde-danger)}.horde-arena{position:relative;height:clamp(300px,calc(100dvh - 285px),600px);overflow:hidden;border-radius:16px;background:var(--arena-ground)}#horde-board{display:block;width:100%;height:100%}.horde-overlay{position:absolute;inset:0;display:grid;place-items:safe center;background:#000000d1;padding:24px;overflow-y:auto;overscroll-behavior:contain}.horde-prompt{max-width:430px;text-align:center}.horde-prompt h2{font-size:28px}.horde-prompt p{margin:14px 0 24px;font-size:15px}.horde-primary,.horde-toolbar button{min-height:44px;padding:10px 20px;border:0;border-radius:24px;font:inherit;font-weight:500;color:var(--ground);background:var(--accent)}.horde-primary:active,.horde-toolbar button:active{background:var(--text)}.horde-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.horde-toolbar p{font-size:13px}.horde-toolbar>div{display:flex;gap:8px}.horde-toolbar button{background:var(--raised);color:var(--text);white-space:nowrap;padding-inline:16px}.horde-toolbar button:disabled{color:var(--faint);cursor:not-allowed}.horde-save-status{margin-top:8px;font-size:12px}.horde-save-status[data-warning=true]{color:var(--horde-amber)}.horde-build h2{font-size:18px;margin-bottom:12px}.horde-build p{font-size:14px}.horde-build ul{list-style:none;padding:0;margin:0;display:grid;gap:12px}.horde-build li{display:flex;align-items:center;gap:12px}.horde-build li .power-summary{flex:1;min-width:0}.power-summary span{display:block}.power-rarity{font-size:12px;color:var(--power-color)}[data-rarity=common]{--power-color: var(--horde-common)}[data-rarity=rare]{--power-color: var(--horde-rare)}[data-rarity=legendary]{--power-color: var(--horde-amber)}.horde-build li strong{font-weight:500;color:var(--muted)}.power-icon{width:32px;height:32px;flex-shrink:0;fill:none;stroke:var(--power-color, var(--accent));stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.horde-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-top:40px}.horde-guide h2{font-size:18px;margin-bottom:12px}.horde-guide p{margin-bottom:12px;font-size:14px}.horde-card-choice{width:min(100%,850px)}.horde-card-choice>h2{font-size:28px;outline-offset:6px}.horde-card-choice>p{margin:10px 0 24px;max-width:640px}.horde-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.upgrade-card{display:flex;flex-direction:column;gap:14px;padding:20px;min-height:240px;border:2px solid transparent;border-radius:16px;background:var(--surface);color:var(--text);text-align:left;font:inherit}.upgrade-card .power-icon{width:40px;height:40px}.upgrade-card .card-name{font-size:18px;font-weight:600;line-height:1.3}.upgrade-card .card-description{color:var(--muted);font-size:14px;line-height:1.5}.upgrade-card .card-meta{margin-top:auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;font-size:13px}.upgrade-card .card-rarity{color:var(--power-color);font-weight:500}.upgrade-card .card-level{color:var(--muted)}.upgrade-card:active{background:var(--raised);border-color:var(--accent)}@media(hover:hover)and (pointer:fine){.upgrade-card:hover{background:var(--raised);border-color:var(--accent)}.horde-toolbar button:hover:not(:disabled){background:var(--control)}.horde-primary:hover{background:var(--text)}}.horde-joystick{position:absolute;bottom:16px;left:16px;width:100px;height:100px;border:2px solid var(--control);border-radius:50%;background:#0009;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;display:none}.horde-joystick span{display:block;position:absolute;inset:28px;border-radius:50%;background:var(--accent);pointer-events:none}@media(pointer:coarse){.horde-joystick{display:block}}.horde-focused .site-header,.horde-focused .horde-heading,.horde-focused .horde-build,.horde-focused .horde-guide,.horde-focused .horde-save-status:not([data-warning=true]){display:none}.horde-focused .horde-main{width:min(1500px,calc(100% - 32px));padding-top:calc(8px + env(safe-area-inset-top,0px));padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));flex:1;min-height:0;display:flex;flex-direction:column}.horde-focused{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.horde-focused .horde-layout{grid-template-columns:minmax(0,1fr);flex:1;min-height:0}.horde-focused .horde-play{align-self:stretch;display:flex;flex-direction:column;min-height:0}.horde-focused .horde-hud,.horde-focused .horde-health-meter,.horde-focused .horde-toolbar,.horde-focused .horde-save-status{flex-shrink:0}.horde-focused .horde-arena{flex:1;height:auto;min-height:120px}@media(max-width:900px){.horde-layout{grid-template-columns:minmax(0,1fr)}.horde-build{margin-top:12px}.horde-build ul{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.horde-page .site-header{min-height:66px;gap:12px}.horde-page .wordmark{font-size:clamp(16px,4.5vw,22px)}.horde-page .header-navigation{gap:8px;flex-wrap:nowrap}.horde-back span{display:none}.horde-heading{margin:8px 0 20px;align-items:start;flex-direction:column;gap:4px}.horde-heading h1{font-size:26px}.horde-heading p{font-size:13px}.horde-hud{gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr) repeat(2,minmax(0,1fr))}.horde-hud dd{font-size:16px}.horde-hud dt{font-size:11px}.horde-guide{grid-template-columns:minmax(0,1fr);gap:20px}.horde-focused .horde-main{width:calc(100% - 24px)}.horde-overlay{padding:20px 14px}.horde-prompt h2,.horde-card-choice>h2{font-size:24px}.horde-prompt p{font-size:14px}.horde-cards{grid-template-columns:minmax(0,1fr);gap:10px}.horde-card-choice>p{font-size:13px;margin-bottom:16px}.upgrade-card{min-height:0;display:grid;grid-template-columns:32px minmax(0,1fr);gap:6px 12px;padding:14px}.upgrade-card .power-icon{width:32px;height:32px;grid-row:span 3}.upgrade-card .card-name{font-size:16px}.upgrade-card .card-description{font-size:13px}.horde-toolbar{gap:8px}.horde-toolbar p{font-size:12px}.horde-toolbar button{padding-inline:12px;font-size:13px}}
