:root{--space:12px;--control-height:38px;--surface:#132b29;--border:#415b50;--ink:#e7eddf;--subtle:#b2c7b8;--radius:6px}
button,input,select{font-family:'Segoe UI',sans-serif;line-height:1.3}
.secondary,.movement-toggle,.speed-toggle,input,select{min-height:var(--control-height);border-radius:var(--radius)}
.secondary{font-size:12px;padding:9px 12px;border-color:var(--border);background:#1b3630;color:var(--ink)}
.secondary:hover:enabled{background:#2e4c3d;border-color:#c0b67c}.secondary:disabled{opacity:.42}
input,select{background:#102723;color:var(--ink);border:1px solid var(--border);padding:9px 10px;font-size:13px;min-width:0}
input:focus,select:focus{outline:2px solid #dfca8e;outline-offset:1px}
.panel-heading{gap:8px;margin-bottom:12px}.panel-heading .badge{font-size:10px}.panel-heading .eyebrow{font-size:11px}
aside h2{font:25px Georgia,serif;margin:14px 0}.group-label{font-size:11px;line-height:1.4;margin:17px 0 9px}
.choices{gap:8px}.choice{min-height:84px;padding:12px 6px}.choice strong{font-size:12px;line-height:1.4}.choice small{font-size:10px;line-height:1.4}
.map-choices .choice strong{font-size:11px}.map-choices .choice{min-height:95px}
.shop,.charge-shop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.shop button,.charge-shop button{min-height:72px;font-size:12px;padding:11px 8px;line-height:1.5}.shop button small,.charge-shop small{font-size:11px;margin-top:6px}
.skill-summary{margin:12px 0}.skill-summary>div{padding:8px 0;font-size:12px;gap:8px}.skill-summary b{font-size:11px}
.equipped-preview{display:grid;gap:7px}.equipped-preview>div{display:grid;grid-template-columns:45px minmax(0,1fr);align-items:center;gap:2px 8px;padding:9px 11px;border:1px solid var(--border);border-radius:var(--radius);background:#132c27}
.equipped-preview span{grid-row:span 2;font-size:10px;color:var(--subtle)}.equipped-preview b{font-size:12px;font-weight:600}.equipped-preview small{font-size:11px;color:#e6d29d}.manage-relics{width:100%;margin-top:10px;font-weight:600}
dialog{padding:24px;border-color:#6a8068}.dialog-heading{display:flex;align-items:center;gap:16px;margin-bottom:16px}.dialog-heading h2{margin:0;font:27px Georgia,serif}.dialog-heading h2 small{font:12px 'Segoe UI',sans-serif;color:var(--subtle);margin-left:8px}.dialog-heading>b{margin-left:auto;color:#ffe0a0;font-size:20px;font-variant-numeric:tabular-nums}.dialog-heading button{flex-shrink:0}
#relic-dialog{width:min(1060px,calc(100vw - 32px));max-width:1060px;max-height:calc(100dvh - 32px);overflow:auto}
.relic-equipped{display:grid;gap:6px;margin-bottom:16px;padding:10px;background:#213c30;border:1px solid #75825b;border-radius:var(--radius)}.relic-equipped>p{margin:0;font-size:12px;color:var(--subtle)}
.relic-row{display:grid;grid-template-columns:minmax(145px,1fr) minmax(160px,1fr) auto;align-items:center;gap:16px;padding:13px 12px;border-bottom:1px solid #385144;border-left:3px solid var(--rarity);background:#132b27}
.relic-name b{display:block;font-size:14px;color:var(--rarity)}.relic-name small,.relic-value small{display:block;font-size:11px;color:#b9ccbd;margin-top:5px}.relic-value strong{font-size:13px;font-weight:600;color:#eee3c0}.relic-actions{display:flex;gap:6px}.relic-actions button{min-width:65px;font-size:12px;white-space:nowrap}.relic-actions [aria-pressed=true]{border-color:#d8b96f;background:#3c3926;color:#ffe2a1}
.relic-filters{display:grid;grid-template-columns:minmax(160px,1.5fr) repeat(4,minmax(100px,1fr));gap:8px;margin-bottom:12px}
#relic-list.inventory{max-height:42dvh;overflow-y:auto;margin:0;overscroll-behavior:contain;border:1px solid var(--border);border-radius:var(--radius);scrollbar-gutter:stable}
.relic-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px}.empty-state{padding:24px;text-align:center;color:var(--subtle);font-size:13px}
.loot-feed{position:fixed;left:24px;bottom:24px;display:grid;gap:8px;max-width:300px;z-index:7;pointer-events:none}.loot-notice{padding:12px 16px;border:1px solid var(--rarity);border-left:4px solid var(--rarity);border-radius:var(--radius);background:#112b27f5;box-shadow:0 4px 25px #0007}.loot-notice small{display:block;font-size:10px;letter-spacing:.6px;color:var(--rarity)}.loot-notice b{display:block;font-size:15px;color:#f0e8cf;margin:4px 0}.loot-notice span{font-size:12px;color:#d3e5d1}
@media(max-width:950px){.relic-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.relic-filters input{grid-column:span 2}.relic-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.relic-actions{grid-column:1/-1;justify-content:flex-end}.relic-actions button{min-width:78px}}
@media(max-width:600px){dialog{padding:16px}.dialog-heading{gap:8px}.dialog-heading h2{font-size:23px}.dialog-heading>b{font-size:17px}.dialog-heading h2 small{display:block;margin:4px 0 0}.relic-footer{align-items:stretch;flex-direction:column}.relic-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.relic-row{padding:11px 9px;gap:10px}.relic-name b{font-size:13px}.relic-value strong{font-size:12px}.relic-actions{justify-content:stretch}.relic-actions button{flex:1;min-width:0;padding:8px}.relic-equipped{padding:6px}#relic-list.inventory{max-height:38dvh}.loot-feed{left:12px;bottom:12px;max-width:245px}.loot-notice{padding:9px 12px}.loot-notice b{font-size:13px}}

header .quiet,.arena-controls .quiet,.close{min-height:var(--control-height);padding:9px 10px;font-size:12px}.badge:empty{display:none}

.map-selector{display:grid;gap:7px;color:var(--subtle);font-size:11px;margin:14px 0}.map-selector select{width:100%}

#relic-dialog[open]{display:flex;flex-direction:column;overflow:hidden;height:min(850px,calc(100dvh - 32px))}.dialog-heading,.relic-filters,.relic-footer{flex-shrink:0}.relic-equipped{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));max-height:155px;overflow:auto;flex-shrink:0}.equipped-mini{display:flex;align-items:center;justify-content:space-between;gap:8px;border-left:3px solid var(--rarity);padding:8px;background:#142f29}.equipped-mini b{display:block;color:var(--rarity);font-size:12px}.equipped-mini small{display:block;margin-top:5px;color:#ded2a5;font-size:11px}.equipped-mini button{padding:8px;font-size:11px}#relic-list.inventory{flex:1;min-height:90px;max-height:none}.workshop-row .secondary{font-size:12px;padding:10px;min-width:115px}.workshop-row b{font-size:14px}.workshop-row small{font-size:12px;line-height:1.5}.workshop-nav .secondary{font-size:12px}@media(max-width:600px){.relic-equipped{grid-template-columns:1fr;max-height:140px}.relic-footer{gap:7px;padding-top:10px}.relic-equipped{margin-bottom:10px}.relic-filters{margin-bottom:10px;gap:6px}.workshop-row small{font-size:11px}.workshop-row .secondary{min-width:90px;font-size:11px}.workshop-row{gap:10px}}

.loading-screen{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#102621;color:#f3ddaa;font:26px Georgia,serif}.in-playables .brand,.in-playables .intro,.in-playables footer,.in-playables #guide-dialog .dialog-actions{display:none}.in-playables header{padding:6px 12px;border:0;justify-content:flex-end}.in-playables main{padding-top:8px}.arena{aspect-ratio:8/5;height:auto;background:#08171b}.in-playables .run-toolbar{position:static}.in-playables .arena-shell{align-self:start}@media(pointer:coarse){:root{--control-height:48px}.secondary,.movement-toggle,.speed-toggle,.relic-actions button,.workshop-row .secondary,.close,header .quiet{min-height:48px;min-width:48px}.relic-actions,.run-actions,.arena-controls{gap:8px}.relic-filters input,.relic-filters select{min-height:48px}.blessing{min-height:160px}.relic-footer .secondary{min-height:48px}}
@media(max-height:550px){#relic-dialog[open]{display:block;overflow:auto}#relic-list.inventory{height:180px}.relic-equipped{max-height:95px}.in-playables .arena-top{padding:6px 12px}.in-playables .arena-hud{padding:8px 12px}.in-playables .game-layout{grid-template-columns:minmax(0,1fr) minmax(240px,30%)}.in-playables .arena{max-height:65dvh}}
@media(max-width:420px){.in-playables header{padding:4px 10px}.in-playables main{padding:6px 10px 0}.in-playables .arena-top{padding:8px 10px}.in-playables .arena-hud{padding:10px}.in-playables .run-toolbar{margin-bottom:10px}.in-playables .game-layout{gap:16px}}
