/* Matchday UI: warm white stock, navy ink, vermilion actions. */
:root{--ink:#192d3a;--muted:#576b76;--paper:#fffdf5;--edge:#c6d0d5;--green:#e94e35;--accent:#e94e35}
button,input,summary{font-family:Arial,sans-serif}button:focus-visible,summary:focus-visible,canvas:focus-visible{outline-color:#e94e35}
#lobby{background:#243746;font-family:Arial,sans-serif;color:var(--ink)}
#lobby .lobby-card{width:min(470px,100%);border:2px solid var(--ink);border-radius:0;background:var(--paper);box-shadow:6px 6px 0 #101f2b;max-height:calc(100dvh - 32px)}
#lobby .lobby-front{padding:16px 30px 22px}
.home-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:16px}
#home-wallet{margin:0;color:var(--ink);font:bold 14px Arial;text-align:left}
#home-settings{position:relative;text-align:left;font-size:12px}#home-settings>summary{list-style:none;min-height:36px;padding:10px 0 10px 15px}#home-settings>summary::-webkit-details-marker{display:none}
.settings-body{position:absolute;z-index:8;right:0;top:38px;width:min(310px,calc(100vw - 80px));padding:16px;border:2px solid var(--ink);background:var(--paper);box-shadow:4px 4px 0 #192d3a30;max-height:60dvh;overflow:auto}
#lobby h2{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:55px;font-weight:900;letter-spacing:-1.1px;color:var(--ink)}
#lobby-subtitle{display:none}#loadout-portrait{width:300px;max-width:100%;height:120px;aspect-ratio:5/2;margin:6px auto 15px}
#join-form{max-width:none}#join-form label{font:12px Arial;margin:0 0 8px;text-align:left}
.nickname-field{border:2px solid var(--ink);padding:0;border-radius:0;background:#fff}.nickname-field:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px #e94e3530}
#nickname{font:18px Arial;padding:12px;color:var(--ink)}#shuffle-name{border-radius:0;border-left:1px solid var(--edge);background:transparent;color:#304a5c;min-height:46px;width:48px}
#play{border:2px solid var(--ink);border-radius:0;background:var(--accent);box-shadow:3px 3px 0 var(--ink);min-height:54px;color:#fff;font:700 20px Arial;margin-top:14px}#play:hover{background:#d94028}#play:active{box-shadow:1px 1px 0 var(--ink);transform:translate(2px,2px)}
#home-navigation{max-width:none;gap:12px;margin-top:20px}#home-navigation button,#home-navigation button:last-child,#home-navigation #quest-summary{background:transparent;border:0;border-bottom:1px solid #b9c9d1;border-radius:0;color:#263f50;font:13px Arial;min-height:44px;padding:10px 3px;flex:1;margin:0}
#home-navigation #quest-summary.claim-ready{border-bottom:3px solid var(--accent)}
#personal-best{color:var(--muted);font:11px Arial;margin:18px 0 0}
#sound-toggle,#back-home,#how-to,.solo-note{color:var(--muted)}#back-home{font-size:14px;text-decoration:underline;text-underline-offset:5px}
#lobby[data-page=workshop] .lobby-card{width:min(920px,100%)}#lobby #workshop{padding:22px}
#workshop .page-heading{padding-bottom:16px;border-bottom:2px solid var(--ink)}#workshop .page-heading h2{font-family:Georgia,serif;font-style:italic;font-size:32px;letter-spacing:-1px}
#workshop-back{border:1px solid var(--ink);border-radius:0;background:#fff;color:var(--ink);box-shadow:2px 2px 0 #192d3a20}
.store-header{border-bottom:1px solid var(--edge);padding-bottom:12px}.store-header button{border-radius:0;color:var(--ink);background:transparent}.store-header button[aria-selected=true]{background:var(--ink);color:#fff}.store-header #wallet{color:var(--ink)}
.section-note{color:var(--muted)}.loadout-summary{border:1px solid var(--edge);background:#edf2f4;border-radius:0;color:var(--ink)}
.equipment-filters button{border:1px solid var(--ink);border-radius:0;color:var(--ink);background:transparent}.equipment-filters button[aria-pressed=true]{background:var(--ink);color:#fff}
.equipment-items article{border:1px solid #a9b9c1;border-radius:0;background:#fff;grid-template-columns:94px 1fr;gap:5px 14px;padding:15px}.equipment-items canvas{width:94px;height:74px}.equipment-items h3{font-size:18px;color:var(--ink)}.equipment-items small{color:var(--muted);font-size:9px;letter-spacing:.5px}.equipment-items p{color:#314a58;font-size:13px}.equipment-items .item-weakness{color:#8f523b}
.equipment-items article[data-rarity=Legendary]{background:#fffdf4;border-left-color:#b88b30}.equipment-items article[data-rarity=Rare]{border-left-color:#427e9c}.equipment-items article[data-rarity=Epic]{border-left-color:#8564a0}
.item-actions button{border:1px solid var(--ink);border-radius:0;background:var(--accent);color:#fff;box-shadow:2px 2px 0 var(--ink)}.item-actions .try-item{background:transparent;color:var(--ink);border-color:#9aadb7;box-shadow:none}.item-actions button:disabled{background:#edf2f4;color:#576b76;box-shadow:none;opacity:1;border-color:#bcc8ce}
.equipment-items canvas.item-demo{border-radius:0;border:1px solid var(--edge)}#shop-feedback{border-radius:0;background:#e8f0f4;color:var(--ink);border-left:3px solid #507f94}
#daily-quests article{border:1px solid #a9b9c1;border-radius:0;background:#fff;padding:18px}#daily-quests strong{color:var(--ink)}#daily-quests span{color:var(--muted)}#daily-quests button{border:1px solid var(--ink);border-radius:0;background:var(--accent);color:#fff}#daily-quests button:disabled{background:#edf2f4;color:var(--muted);border-color:#bcc8ce;opacity:1}#daily-quests progress{accent-color:#395f74;border-radius:0}#daily-quests progress::-webkit-progress-value{background:#395f74}#daily-quests progress::-moz-progress-bar{background:#395f74}
#run-stats{border-block:2px solid var(--ink);padding:18px 0}#run-stats dd{color:var(--ink);font-family:Arial}#run-stats dt{color:var(--muted)}
#coin-receipt{border:1px solid #c9ae63;border-radius:0;background:#fff1c4;color:#755920;text-align:left}#home-cash-out,#cash-out{border:2px solid var(--ink);border-radius:0;background:#e8bd59;color:#273844;box-shadow:2px 2px 0 #192d3a}
#lobby:has(#run-stats:not([hidden])) #lobby-subtitle{display:block;margin:10px 0 20px}#lobby:has(#run-stats:not([hidden])) #lobby-title{font-family:Impact,'Arial Narrow',Arial,sans-serif;font-size:40px}#lobby:has(#run-stats:not([hidden])) .home-header,#lobby:has(#run-stats:not([hidden])) #join-form>label,#lobby:has(#run-stats:not([hidden])) .nickname-field{display:none}
#home-button{border:1px solid var(--ink);border-radius:4px;background:#fffdf5ed;color:var(--ink);box-shadow:2px 2px 0 #192d3a25}
#leaderboard{border:1px solid #afbec5;border-radius:4px;background:#fffdf5e6;color:var(--ink)}#leaderboard h1 span,#standings .rank{color:#647782}#standings .you{background:#ddeaf0;color:#213f50;border-radius:2px}
#run-wallet{color:var(--ink)}#run-wallet span{color:#3f5967}
#quest-tracker{background:#fffdf5ed;color:var(--ink);border:1px solid #afbec5;border-radius:4px}#quest-tracker small{color:#576b76}#quest-tracker progress{accent-color:#395f74}#quest-tracker progress::-webkit-progress-value{background:#395f74}
#coach{border:1px solid #afbec5;border-radius:4px;background:#fffdf5f2;color:var(--ink)}#coach button{color:#405c6c}.coach-gesture svg{stroke:#395f74}.gesture-dot{fill:#c7dce5;stroke:#395f74}
#combat-cue{color:var(--ink)}#combat-cue kbd{background:#fffdf5;border-color:#afbec5;border-radius:3px;color:var(--ink)}
#attack{border-color:#fffdf5;background:conic-gradient(#395f74 var(--ready,360deg),#c4d0d5 0);box-shadow:0 3px 0 #192d3a55}#attack:before{background:#fffdf5}#attack-label{color:var(--ink)}#attack.followup-ready{border-color:#ef795d;box-shadow:0 0 0 3px #ef795d40}
#reward-notice{border:1px solid #b88b30;border-radius:3px;background:#fff2c9;color:#5a471e}
@media(max-width:759px){#lobby .lobby-front{padding:14px 22px 20px}#lobby #workshop{padding:16px}.equipment-items article{grid-template-columns:72px 1fr;padding:12px;gap:4px 10px}.equipment-items canvas{width:72px;height:58px}.equipment-items h3{font-size:16px}.equipment-items p{font-size:12px}.store-header{gap:8px}.store-header button{padding:10px 8px}#workshop .page-heading h2{font-size:28px}}
@media(max-height:560px){#loadout-portrait{height:85px;width:220px;margin:0 auto 8px}.home-header{margin-bottom:8px}#lobby h2{font-size:42px}#home-navigation{margin-top:12px}#personal-best{margin-top:10px}}
/* Item icons have their own high-resolution, square presentation. */
.equipment-items article{grid-template-columns:96px 1fr;column-gap:18px}
.equipment-items canvas:not(.item-demo){width:96px;height:96px;aspect-ratio:1;align-self:start;grid-row:1/5;object-fit:contain}
@media(max-width:759px){.equipment-items article{grid-template-columns:80px 1fr;column-gap:12px}.equipment-items canvas:not(.item-demo){width:80px;height:80px}}

/* A soft halo sits behind the item; text and demos stay crisp. */
.equipment-items article[data-rarity=Rare]{--item-glow:rgba(64,159,221,.32)}
.equipment-items article[data-rarity=Epic]{--item-glow:rgba(157,91,210,.34)}
.equipment-items article[data-rarity=Legendary]{--item-glow:rgba(235,174,41,.44)}
.equipment-items article[data-rarity=Rare] canvas:not(.item-demo),
.equipment-items article[data-rarity=Epic] canvas:not(.item-demo),
.equipment-items article[data-rarity=Legendary] canvas:not(.item-demo){
 background:radial-gradient(ellipse at center,var(--item-glow) 0%,transparent 70%);
 filter:drop-shadow(0 0 5px var(--item-glow));
}
