/* Compact game-native frame: status above, equipment and XP below. */
html:has(#rogue-panel:not([hidden])){--top-height:38px}
body:has(#rogue-panel:not([hidden])){background:#091217}
body:has(#rogue-panel:not([hidden])) header.arcade-top{padding:3px 12px;background:#0d181f;border-color:#283b45;color:#bdcdd5;backdrop-filter:none}
body:has(#rogue-panel:not([hidden])) .brand{color:#d4e2e9;font-size:12px}
body:has(#rogue-panel:not([hidden])) .brand-icon{width:24px;height:24px;font-size:18px}
body:has(#rogue-panel:not([hidden])) .top-dropdown>summary{min-height:28px;padding:3px 8px;font-size:12px;background:#12232c;border-color:#304752;color:#c7d8df}
#rogue-panel{height:calc(100dvh - var(--top-height) - 12px);min-height:320px;border-color:#253a43;background:#0b171d;border-radius:3px;box-shadow:none;font-size:13px}
.r-combat-top{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:start;gap:12px;padding:10px 14px 8px;background:#0c1920;border-bottom:1px solid #20363e;flex-shrink:0;min-height:58px;box-sizing:border-box}
.r-status-block{display:grid;grid-template-columns:1fr auto;gap:5px;max-width:220px;font-size:12px;color:#a4bdc9}.r-status-name{font-size:11px;letter-spacing:1px;color:#7596a5}.r-health-track{display:block;grid-column:1/-1;height:3px;background:#243942}.r-health-track em{display:block;width:100%;height:100%;background:#83d8cd;transition:width .1s linear}#r-health-label{font-size:12px;white-space:nowrap}#r-gold-stat{grid-column:1/-1;font-size:12px}#r-gold{font-size:12px;font-weight:600;color:#e9c886}
.r-clock-block{display:grid;justify-items:center;gap:3px;font-variant-numeric:tabular-nums}#r-time{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12.5px;line-height:1.1;font-weight:600;letter-spacing:1px;color:#e9f1f4}#r-round{font-size:11px;color:#a2bbc7}
.r-stats-block{display:flex;justify-content:flex-end;gap:14px;align-items:center;color:#c9dbe3}.r-stats-block>div:first-child{display:grid;gap:4px;font-size:12px;text-align:right;font-variant-numeric:tabular-nums}.r-hud-actions{display:flex;gap:5px}.r-combat-top .r-btn{min-height:30px;padding:4px 9px;border-radius:2px;background:#12262f;border-color:#35505d;color:#bdd3de;font-size:12px}.r-combat-top .r-btn:focus-visible{outline:2px solid #7ed8e9}
#rogue-panel .r-field{min-height:150px}#rogue-panel .r-minimap{width:104px;top:8px;right:8px;border-color:#3a555e;opacity:.86}#rogue-panel #r-dash{padding:6px 10px;min-height:34px;min-width:64px;font-size:12px;border-radius:2px;bottom:10px;right:10px;background:#152e38d9}
#rogue-panel .r-bottom{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:8px 14px;background:#0c1920;border-top:1px solid #20363e;overflow:visible;flex-shrink:0;font-size:12px;line-height:1.35}#rogue-panel #r-message{display:block;min-height:16px;color:#99b6c4;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset}.r-equipment-bar{display:flex;gap:12px;align-items:flex-end;justify-content:space-between;min-width:0}#rogue-panel #r-build{display:flex;flex-wrap:wrap;gap:16px;max-width:none;overflow:visible;min-width:0;-webkit-line-clamp:unset}.r-slot-group{display:flex;gap:7px;align-items:center}.r-slot-label{font-size:11px;color:#7f9eae;white-space:nowrap}.r-slot-row{display:flex;gap:5px}.r-slot{position:relative;display:grid;place-items:center;width:34px;height:34px;box-sizing:border-box;background:#10232b;border:1px solid #35515d;border-radius:3px;outline:none;color:#52707e;flex-shrink:0}.r-slot img{width:28px;height:28px;border-radius:2px;object-fit:cover}.r-slot small{position:absolute;right:1px;bottom:-1px;min-width:12px;line-height:13px;text-align:center;font-size:10px;font-weight:700;background:#09161deb;color:#dcecf2;border-radius:2px}.r-slot.empty{border-style:dashed;color:#456371;font-size:16px}.r-slot.evolved{border-color:#e7c06e;box-shadow:inset 0 0 8px #f6c77e22}.r-slot.evolved small{color:#f4d189}.r-slot:focus,.r-slot:hover:not(.empty){border-color:#91d7e9}.r-slot-tip{display:none;position:absolute;bottom:calc(100% + 8px);left:0;width:190px;max-width:65vw;padding:9px;background:#10232ff5;border:1px solid #49636f;color:#d8e8ed;font-size:12px;line-height:1.5;z-index:15;box-shadow:0 4px 16px #0008;pointer-events:none}.r-slot:hover .r-slot-tip,.r-slot:focus .r-slot-tip{display:block}
#rogue-panel .r-controls{display:block;padding:0;flex-shrink:0;margin:0;font-size:11px;color:#6e8c9b}.r-xp-row{display:flex;align-items:center;gap:12px;color:#718f9f;font-size:11px}.r-xp-row>i{display:block;height:3px;background:#253841;flex:1}.r-xp-row #r-xp{display:block;height:100%;background:#709ac2;width:0;transition:width .1s linear}#r-xp-label{white-space:nowrap;font-size:11px}
/* Smaller menus retain readable choices; pause and upgrades keep the arena visible. */
#r-screen:has(.r-launch){background:#0b1820ed;backdrop-filter:none;color:#d5e5ed}#r-screen .r-launch{width:min(720px,100%)}#r-screen .r-launch .r-title{font-size:22px;color:#e4eff4}#r-screen .r-launch .r-copy,#r-screen .r-launch .r-meta{font-size:12px;color:#92adbc}#r-screen .r-launch-label{font-size:11px;color:#7da2b4}#r-screen .r-launch-head,#r-screen .r-launch-foot{border-color:#304651}#r-screen .r-stage-detail{font-size:12px;line-height:1.7;color:#a3bdcb}#r-screen .r-stage-detail strong{color:#8fd1df!important}#r-screen .r-launch .r-btn,#r-screen .r-launch .r-starter{min-height:32px;padding:5px 8px;font-size:12px;background:#162e3a;color:#c7dce7;border-color:#345263}#r-screen .r-launch .r-btn[aria-pressed=true]{background:#254e60;border-color:#69b9d4;color:#effaff}#r-screen .r-launch .r-start{min-height:36px;padding:7px 12px;font-size:13px;background:#81cbd5;color:#0a2630}#r-screen .r-launch-grid{gap:18px}#r-screen .r-title{font-size:22px}#r-screen>.r-copy{font-size:13px}#r-screen .r-launch .r-mode-picker{margin-bottom:8px}
#rogue-panel .r-cards{max-width:840px;grid-template-rows:88px repeat(6,auto)}#rogue-panel .r-card-top{height:88px;padding-top:30px!important}#rogue-panel .r-ability-art{width:50px;height:50px}#rogue-panel .r-card b{font-size:16px}#rogue-panel .r-card{font-size:13px}#rogue-panel .r-ability-category,#rogue-panel .r-upgrade-level,#rogue-panel .r-synergy-hint{font-size:12px}#rogue-panel .r-resource-help{font-size:11px}#rogue-panel .r-upgrade-tools{font-size:12px}
@media(max-width:700px){#rogue-panel{height:calc(100dvh - var(--top-height) - 8px);min-height:300px}.r-combat-top{padding:8px;gap:8px;grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr)}.r-status-block{grid-template-columns:1fr;gap:3px}.r-status-name{font-size:10px;letter-spacing:.6px}#r-time{font-size:11px}.r-stats-block{gap:6px}.r-hud-actions{gap:4px}.r-stats-block>div:first-child{font-size:11px}.r-combat-top .r-btn{min-height:30px;padding:4px 6px;font-size:11px}#rogue-panel .r-bottom{padding:7px 8px;gap:6px}#rogue-panel #r-build{gap:10px}.r-slot-group{gap:5px}.r-slot-label{font-size:10px}.r-slot-row{gap:3px}.r-slot{width:30px;height:30px}.r-slot img{width:25px;height:25px}#rogue-panel .r-controls{display:none}#rogue-panel .r-minimap{width:76px}.r-slot-tip{position:fixed;left:12px;right:12px;bottom:100px;width:auto;max-width:none}#r-screen .r-launch-grid{gap:12px}#r-screen:has(.r-launch){background:#0b1820f5;border-color:#29434f}#rogue-panel:has(#r-screen:not([hidden]) .r-cards)>.r-combat-top{visibility:hidden}}
@media(max-width:360px){.r-combat-top{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);gap:5px}.r-hud-actions{flex-direction:column}.r-stats-block{gap:4px}#r-time{font-size:10px}.r-slot{width:28px;height:28px}.r-slot img{width:23px;height:23px}.r-slot-group{gap:4px}#rogue-panel #r-build{gap:7px}.r-slot-label{max-width:32px;white-space:normal}}
@media(max-height:500px){#rogue-panel .r-bottom{display:flex;padding:4px 10px;gap:3px}#rogue-panel #r-message{display:none}.r-combat-top{padding:5px 10px;min-height:46px}.r-slot{width:28px;height:28px}.r-slot img{width:23px;height:23px}#rogue-panel .r-field{min-height:100px}}
@media(prefers-reduced-motion:reduce){.r-health-track em,.r-xp-row #r-xp{transition:none}}
