/* Presentation pass: arcade depth, readable side roster, stable action hit targets. */
:root{--mint:#64f6dc;--line:#365ca3}
header{background:linear-gradient(#214b91,#122958);border-bottom:3px solid #5b95da;min-height:54px;padding:8px 22px}
.brand{font-size:22px;font-style:italic;color:#fff9d5;text-shadow:0 3px #142b60,2px 0 #142b60;letter-spacing:1px}.brand span{color:#ffcb4b}
button,select{background:linear-gradient(#3663a6,#1c3973);border:2px solid #729bce;box-shadow:inset 0 2px #ffffff33,0 4px #0a1b3c;color:#fff6e2;font-weight:700}
button:hover{background:linear-gradient(#5183c7,#2b4c89);color:white;filter:brightness(1.08)}button:active{transform:translateY(2px);box-shadow:inset 0 2px #ffffff33,0 2px #0a1b3c}
button.active{background:linear-gradient(#ffd675,#e99828);border-color:#fff1ac;color:#422b23;box-shadow:inset 0 2px #fff8be,0 4px #9d531b}
footer{background:#12264b;border-top:2px solid #355e98}
#overlay{background:radial-gradient(ellipse at 50% 10%,#2589c57d,#101e51ed 80%);backdrop-filter:blur(5px)}
.panel{background:linear-gradient(145deg,#27589b,#182e64 65%);border:3px solid #7fb5e7;box-shadow:inset 0 3px #c1e8ff66,0 9px #071738,0 25px 80px #0008;border-radius:24px}
.panel h1{color:#fff1b1;text-shadow:0 4px #945828,0 7px #101d49;font-weight:1000}.panel p{color:#e2edff}.eyebrow{color:#92fff0;font-weight:800}
#intro{width:min(100%,1000px);max-width:1000px;padding:24px 30px}#intro h1{font-size:42px;margin:8px 0 14px}#intro h1 br{display:none}#intro>p:first-of-type{max-width:780px;font-size:13px}
#intro h3{color:#ffe18b;font-size:12px}#characters{gap:10px}#characters button{border-radius:16px;background:radial-gradient(ellipse at 50% 20%,color-mix(in srgb,var(--player-color),#fff 15%),#233f79 78%);border-color:var(--player-color);color:white;min-height:108px;overflow:hidden;box-shadow:inset 0 2px #ffffff66,0 5px #0b1c41}#characters button.active{outline:3px solid #ffe184;outline-offset:2px}#characters img{width:76px;height:76px;filter:drop-shadow(0 5px 3px #07122780)}#characters button span{padding:3px 0;text-shadow:0 2px #17224b}#characters button:disabled{opacity:.42}
#levels button{min-height:48px;border-color:#8db7d8;border-bottom-width:4px;background:linear-gradient(145deg,#2e648f,#234175)}#levels button:nth-child(2){background:linear-gradient(145deg,#438fb2,#2d4f86)}#levels button:nth-child(3){background:linear-gradient(145deg,#af743d,#71464c)}#levels button:nth-child(4){background:linear-gradient(145deg,#2d916f,#1b525c)}#levels button:nth-child(5){background:linear-gradient(145deg,#3b70a7,#303778)}#levels button:nth-child(6){background:linear-gradient(145deg,#ad4d62,#632a64)}#levels button.active{outline:2px solid #ffe389;border-color:#ffe389;color:#fff1ac}
.primary,#start{background:linear-gradient(#ffe183,#ffae35);border:2px solid #fff0aa;color:#3b2640;box-shadow:inset 0 3px #fff4b8,0 6px #ac5726,0 9px 16px #07143466;font-size:17px;text-transform:uppercase;letter-spacing:.6px}.primary:hover,#start:hover{background:linear-gradient(#ffeb9f,#ffc253);color:#3b2640}
#characterDetails{padding:10px 12px;background:#0c204f77;border-radius:12px;border:1px solid #779bdd55}.kit-preview span{background:#091d4977;color:#fff1d7}.kit-preview small{color:#c9ddff}
#powerBar button{padding:8px 8px 8px 60px;width:166px;min-height:76px;text-align:left;font-size:11px;border:2px solid #7babe0;border-radius:16px;background:conic-gradient(#091634bb var(--cooldown,0%),transparent 0),linear-gradient(#356ca9,#1b386e);box-shadow:inset 0 3px #bce8ff55,0 5px #0b1939,0 9px 18px #0005;color:white}
#powerBar [aria-disabled=true]{opacity:.68}#powerBar #powerFour{width:182px;background:linear-gradient(0deg,#efa83266 var(--charge,0%),transparent 0),linear-gradient(#654aa3,#34265c);border-color:#ffdb72}#powerBar #punchAction{padding:8px;min-width:64px}#punchAction::before{display:none}
#clock{top:10px;font-size:30px;padding:4px 24px;border-radius:0 0 20px 20px;border:2px solid #9bcbff;background:linear-gradient(#386a9e,#16315e);box-shadow:inset 0 2px #e5fbff55,0 5px #081b36;color:#fff0a8;text-shadow:0 2px #70512c;z-index:1}#modeScore{top:65px;max-width:180px}
@media(min-width:1000px) and (min-height:600px){
 #participants,.campaign #participants{top:23%;left:18px;right:18px;bottom:auto!important;width:auto;display:grid;grid-template-columns:148px 1fr 148px;grid-template-rows:repeat(2,180px);gap:24px 0}
 .player-card{grid-column:1;grid-row:1;display:flex;flex-direction:column;padding:6px 9px;gap:0;border:2px solid var(--player-color);background:linear-gradient(150deg,color-mix(in srgb,var(--player-color),#153665 75%),#102953);box-shadow:inset 0 3px #ffffff55,0 6px #071a35;position:relative;border-radius:20px;overflow:visible}
 .player-card:nth-child(2){grid-column:1;grid-row:2}.player-card:nth-child(3){grid-column:3;grid-row:1}.player-card:nth-child(4){grid-column:3;grid-row:2}
 #participants .player-card img{width:100px!important;height:96px!important;margin-top:-20px;filter:drop-shadow(0 7px 4px #0005)}.player-info{width:100%;text-align:center;flex:0}.player-info strong{font-size:17px;color:#fff3cb;text-shadow:0 2px #101e3b}.player-info strong small{margin:3px 0;color:var(--player-color);font-size:9px}.health-track{height:9px;background:#0a1939;border:1px solid #d2e7ff66}.hp-number{font-size:11px}.upgrades{margin-top:3px;font-size:10px!important}
 #hud{top:12px;left:18px;right:18px}#hud>div:first-child{max-width:310px}#hud>div{background:#122852dc}#stats{max-width:240px}#phaseBanner{top:75px}
}
@media(max-width:999px),(max-height:599px){#powerBar button{padding:47px 5px 5px;width:112px;min-width:56px;min-height:82px;font-size:10px;line-height:1.3}#powerBar button::before{width:36px;height:36px;left:calc(50% - 18px);top:5px}#powerBar #powerFour{width:120px}#intro h1{font-size:30px}#characters img{width:52px;height:52px}#characters button{min-height:78px}#clock{font-size:22px;padding:4px 8px}.brand{font-size:16px}}
@media(pointer:coarse){#powerBar button,#powerBar #powerFour{padding:29px 3px 3px;width:60px;min-height:60px;font-size:8px}#powerBar button::before{width:25px;height:25px;left:calc(50% - 12px);top:3px}}
@media(max-width:600px){#intro{padding:18px 14px}#characters img{width:48px;height:48px}.panel h1{font-size:28px}#levels{grid-template-columns:repeat(2,1fr)}#levels button{font-size:10px}#powerBar button{font-size:9px}.brand{font-size:13px}#clock{border-radius:10px;padding:4px 6px}}
/* Pilot polish: enlarge the existing portraits without changing their protected art. */
@media(min-width:1000px) and (min-height:600px){#participants .player-card img{transform:scale(1.35);transform-origin:50% 70%}.player-info strong{letter-spacing:.2px}}
#characters img{transform:scale(1.12)}
/* Jewel action cards: decorative only; cooldown/charge and touch geometry unchanged. */
#powerBar #powerOne{--card-light:#24b597;--card-mid:#137263;--card-dark:#123c48;--card-edge:#99f5c9}
#powerBar #powerTwo{--card-light:#438fe4;--card-mid:#285b9d;--card-dark:#18335d;--card-edge:#abdfff}
#powerBar #powerThree{--card-light:#ae65db;--card-mid:#713e9f;--card-dark:#3c285f;--card-edge:#e8bbff}
#powerBar #powerFour{--card-light:#bd8037;--card-mid:#88502e;--card-dark:#412d4b;--card-edge:#ffe29a}
#powerBar button:not(#punchAction){background:conic-gradient(#061324bd var(--cooldown,0%),transparent 0),radial-gradient(ellipse at 24% 0%,#ffffff38,transparent 62%),linear-gradient(155deg,var(--card-light),var(--card-mid) 48%,var(--card-dark));border-color:var(--card-edge);box-shadow:inset 0 2px 1px #ffffff70,inset 0 -3px 2px #07132f66,0 5px 0 #11213e,0 8px 14px #07152c70;color:#fffaf0;text-shadow:0 1px 2px #09152f;font-weight:800;transition:filter .15s,border-color .15s}
#powerBar #powerFour{background:linear-gradient(0deg,#ffcf4348 var(--charge,0%),transparent var(--charge,0%)),radial-gradient(ellipse at 25% 0%,#fff2ba55,transparent 65%),linear-gradient(145deg,var(--card-light),var(--card-mid) 45%,var(--card-dark))}
#powerBar button::before{filter:drop-shadow(0 3px 2px #08172c80)}
#powerBar button[aria-disabled=true]{opacity:1;filter:saturate(.62) brightness(.79)}
#powerBar button:hover:not([aria-disabled=true]){filter:brightness(1.15)}
#powerBar button:focus-visible{outline:3px solid #fff6c5;outline-offset:4px}
#powerBar button:active:not([aria-disabled=true]){box-shadow:inset 0 2px 1px #ffffff70,0 2px 0 #11213e;transform:translateY(2px)}
#powerBar #powerFour.spent{filter:grayscale(.9) brightness(.7)}
@media(prefers-reduced-motion:reduce){#powerBar button{transition:none}}
.reduced-effects #powerBar button{transition:none}
