/* Run buff pick screen (run-buffs-ui-v1.js). Armory palette and chamfer frame (armory-v73.css, boss-mod-v1.css).
   Layout from the Codex card concept (owner 2026-12-04): icon + name row, split value line, footer under a rule.
   Fixed card size (PC 250, phone 170) whatever the text; short descriptions only where a rule is hidden (owner 2026-12-04),
   highlighted card = amber key badge + two edge ticks (no glow). */
#run-buffs-v1{--rb-amber:#eaa75b;--rb-bg:#0b151b;--rb-line:#78858070;--rb-muted:#aab0ac;--rb-panel:#101c22;--rb-text:#e8e0cc;--rb-rare:#5fa8e8;--rb-epic:#c07ae8;
 position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;background:#05090bd9;font-family:'Ops Pixel',monospace;color:var(--rb-text);touch-action:manipulation;user-select:none}
#run-buffs-v1[hidden]{display:none}
.rb-panel-v1{display:flex;flex-direction:column;align-items:center;gap:14px;max-width:100%}
.rb-panel-v1 h2{margin:0;font-size:32px;letter-spacing:4px;color:var(--rb-amber);font-weight:normal;text-align:center}
.rb-sub-v1{margin:0 0 8px;font-size:13px;color:var(--rb-text);letter-spacing:3px}
.rb-cards-v1{display:flex;gap:20px;max-width:100%}
.rb-card-v1{--rb-frame:#788580;position:relative;width:240px;height:250px;padding:14px 16px;display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:left;cursor:pointer;
 font:inherit;color:inherit;border:2px solid var(--rb-frame);background:linear-gradient(160deg,var(--rb-panel),var(--rb-bg));
 clip-path:polygon(8px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 8px),calc(100% - 8px) 100%,8px 100%,0 calc(100% - 8px),0 8px)}
.rb-card-v1[data-rarity=rare]{--rb-frame:var(--rb-rare)}
.rb-card-v1[data-rarity=epic]{--rb-frame:var(--rb-epic)}
.rb-card-v1:focus{outline:none}
.rb-card-v1:hover,.rb-card-v1:focus-visible{border-width:3px;padding:13px 15px}
.rb-card-v1:hover::before,.rb-card-v1:focus-visible::before,.rb-card-v1:hover::after,.rb-card-v1:focus-visible::after{content:'';position:absolute;width:3px;height:22px;background:var(--rb-text)}
.rb-card-v1:hover::before,.rb-card-v1:focus-visible::before{left:3px;top:14px}
.rb-card-v1:hover::after,.rb-card-v1:focus-visible::after{right:3px;bottom:14px}
.rb-card-v1:active{transform:translateY(1px)}
.rb-top-v1{display:flex;align-items:center;justify-content:space-between}
.rb-tier-v1{font-size:11px;letter-spacing:3px;color:var(--rb-muted)}
.rb-card-v1[data-rarity=rare] .rb-tier-v1{color:var(--rb-rare)}
.rb-card-v1[data-rarity=epic] .rb-tier-v1{color:var(--rb-epic)}
.rb-key-v1{font-size:12px;color:var(--rb-text);border:1px solid var(--rb-line);min-width:20px;padding:2px 5px;text-align:center}
.rb-card-v1:hover .rb-key-v1,.rb-card-v1:focus-visible .rb-key-v1{background:var(--rb-amber);border-color:var(--rb-amber);color:#101c22}
.rb-head-v1{display:flex;align-items:center;gap:12px;min-height:64px}
.rb-icon-v1{width:64px;height:64px;flex:none;image-rendering:pixelated}
.rb-name-v1{font-size:20px;letter-spacing:2px;line-height:1.15}
.rb-val-v1{font-size:32px;line-height:1.1;color:var(--rb-amber);white-space:nowrap}
.rb-val-v1 small{font-size:14px;letter-spacing:1px}
.rb-desc-v1{font-size:12px;line-height:1.55;color:#cfc8b8}
.rb-have-v1{margin-top:auto;display:flex;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid var(--rb-line);font-size:10px;color:var(--rb-muted);letter-spacing:1px}
.rb-have-v1 b{font-weight:normal;color:var(--rb-text)}
.rb-chips-v1{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;align-items:center;min-height:24px;margin-top:4px}
.rb-chip-v1{font-size:12px;border:1px solid var(--rb-line);background:#101c22cc;padding:4px 10px;color:var(--rb-text)}
.rb-chip-v1 b{font-weight:normal;color:var(--rb-amber)}
.rb-label-v1{border-color:transparent;background:none;color:var(--rb-muted)}
/* Phones in landscape (the game is landscape-only on touch): three cards across, smaller type, no key hints. */
@media (max-height:500px),(pointer:coarse){
 .rb-panel-v1{gap:8px}.rb-panel-v1 h2{font-size:20px}.rb-sub-v1{font-size:10px;margin:0}
 .rb-cards-v1{gap:10px}.rb-card-v1{width:31vw;max-width:240px;height:170px;padding:10px 12px;gap:7px}
 .rb-card-v1:hover,.rb-card-v1:focus-visible{padding:9px 11px}
 .rb-head-v1{min-height:40px;gap:8px}.rb-icon-v1{width:40px;height:40px}
 .rb-name-v1{font-size:14px}.rb-val-v1{font-size:22px}.rb-val-v1 small{font-size:11px}.rb-desc-v1{font-size:10px;line-height:1.4}
 .rb-have-v1{font-size:9px;padding-top:5px}.rb-key-v1{display:none}.rb-chip-v1{font-size:10px;padding:2px 7px}
}
