/* Characters, their own skill bar, and the guided first journey. */
.world-actions{display:flex;align-items:center;gap:7px;flex:none}.hero-select-btn{display:flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--hero-color,#bce7b6) 60%,#3e514c);background:#202d2c;color:#f4f5e8;min-height:46px;padding:4px 8px;text-align:left;box-shadow:2px 2px 0 #101719}.hero-select-btn:hover{border-color:var(--hero-color);background:#32413a}.hero-select-btn>span:first-child{width:34px;height:37px;flex:none}.hero-select-btn .hero-portrait{width:100%;height:100%;object-fit:contain}.hero-select-btn small,.hero-select-btn b{display:block;white-space:nowrap}.hero-select-btn small{color:var(--hero-color,#bce7b6);font:800 8px monospace;letter-spacing:.8px}.hero-select-btn b{font-size:13px;margin-top:2px;line-height:1.1}.hero-select-btn i{font-style:normal;font-size:13px;color:#c3cbbf}.hero-portrait{shape-rendering:crispEdges;image-rendering:pixelated}.hero-portrait rect:not([stroke]){stroke:none!important}.hero-portrait rect[stroke]{stroke-width:.6}.tutorial-help{font:900 19px monospace;color:#c8efad;border-color:#688e76!important}.tutorial-help:hover{background:#34463d;color:#fff}
.hero-deck{display:flex;gap:8px;align-items:center;margin:0 0 7px;padding:5px;background:linear-gradient(105deg,#202d2b,#172529 65%);border:1px solid #536c59;min-width:0}.hero-deck-label{font:800 9px monospace;color:#bad8ad;letter-spacing:.9px;white-space:nowrap;padding:0 3px}.hero-skill-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;flex:1;min-width:0}.hero-skill-row .hero-ability{border:1px solid color-mix(in srgb,var(--ability-color) 65%,#3d5046);background:linear-gradient(110deg,color-mix(in srgb,var(--ability-color) 12%,#192a2b),#1a2429);padding:5px;min-height:43px;box-shadow:inset 0 0 11px color-mix(in srgb,var(--ability-color) 10%,transparent)}.hero-skill-row .hero-ability .ability-icon{width:31px;height:31px;min-width:31px}.hero-skill-row .hero-ability .ability-copy b{color:#fff4dd;font-size:12px}.hero-skill-row .hero-ability .ability-copy small{font-size:9px}.hero-skill-row .hero-ability kbd{background:#243b33;border-color:#88ab82;color:#ddf1ce;font-size:10px}.hero-skill-row .hero-ability:active{background:#3c5144}.hero-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hero-card{background:linear-gradient(130deg,#22302f,#182226 65%);border:1px solid #4a5f56;min-width:0;padding:13px;display:flex;flex-direction:column;gap:10px;box-shadow:3px 3px #0d1519}.hero-card.selected{border:2px solid var(--hero-color);background:linear-gradient(135deg,color-mix(in srgb,var(--hero-color) 14%,#17272a),#182226 68%);box-shadow:0 0 18px color-mix(in srgb,var(--hero-color) 20%,transparent)}.hero-card-head{display:flex;gap:11px;align-items:center}.hero-card-head .hero-portrait{width:77px;height:84px;flex:none;filter:drop-shadow(0 0 9px color-mix(in srgb,var(--hero-color) 35%,transparent))}.hero-card-head>div{min-width:0}.hero-card-head small{font:800 10px monospace;letter-spacing:.8px;color:var(--hero-color)}.hero-card-head h3{font:800 19px Manrope,system-ui;color:#f6f0db;margin:3px 0;line-height:1.15}.hero-card-head p{color:#b4c3b8;font-size:12px;line-height:1.4;margin:3px 0}.hero-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#121c21;border:1px solid #40524b;padding:7px}.hero-metrics>div{border-right:1px solid #40524b;display:flex;flex-direction:column;align-items:center;gap:2px}.hero-metrics>div:last-child{border-right:0}.hero-metrics b{font:900 17px monospace;color:var(--hero-color)}.hero-metrics small{font:800 9px monospace;color:#bcc9c1;letter-spacing:.5px}.hero-skills{display:grid;gap:6px}.hero-skills>div{display:flex;gap:8px;align-items:flex-start;background:#121d21;border:1px solid #32463f;padding:7px}.hero-skills .pixel-icon{width:35px;height:35px}.hero-skills>div>div{flex:1;min-width:0}.hero-skills b{font-size:12px;color:#edf0dc}.hero-skills p{color:#bccbc0;font-size:11px;line-height:1.35;margin:3px 0}.hero-skills small{font:700 9px monospace;color:var(--hero-color)}.hero-skills kbd{font-size:9px;margin-left:4px;color:#d6f4be}.hero-card-footer{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-top:auto}.hero-card-footer small{font:800 9px monospace;color:#a7c1ab}.hero-pick{min-height:38px;cursor:pointer;padding:7px 12px;font:900 11px system-ui;letter-spacing:.5px;color:#14221c;background:var(--hero-color);border:2px solid #ffffff66;box-shadow:2px 2px #0b1316}.hero-pick:disabled{background:#304039;border-color:#6b8d6a;color:#a9d59e;cursor:default}.hero-pick:not(:disabled):hover{filter:brightness(1.15)}
/* Tutorial welcomes new players and then follows real controls in the safe field. */
.tutorial-overlay{position:fixed;inset:0;z-index:28;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 35%,#20342de8 0,#0a151ce8 66%);backdrop-filter:blur(8px);padding:18px;overflow:auto;overscroll-behavior:contain}.tutorial-panel{width:min(760px,100%);max-height:calc(100dvh - 36px);overflow:auto;scrollbar-width:thin;background:linear-gradient(150deg,#23332e,#142228 72%);border:2px solid #adc992;box-shadow:0 0 45px #a6d99623,7px 7px #080f13;padding:clamp(16px,3vw,28px);animation:tutorial-in .28s ease-out}.tutorial-kicker{color:#c1ee9f;font:900 11px monospace;letter-spacing:.19em}.tutorial-panel h2{font:900 clamp(27px,4vw,42px) Manrope,system-ui;color:#ffffe3;letter-spacing:-.7px;margin:8px 0 12px;line-height:1.02}.tutorial-intro,.tutorial-hero-note{color:#c8d7c4;font-size:14px;line-height:1.4;margin:0 0 12px}.tutorial-hero-note{margin:12px 0 0;padding:9px;background:#122023;border:1px solid #4e6555}.tutorial-hero-note b{color:#f8f3d6}.tutorial-hero-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tutorial-hero{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:10px 6px 8px;background:#1b292b;border:1px solid #50665a;color:#f2efdf;box-shadow:2px 2px #0d1719;cursor:pointer}.tutorial-hero:hover,.tutorial-hero.selected{border-color:var(--hero-color);background:color-mix(in srgb,var(--hero-color) 15%,#1b292b);box-shadow:0 0 13px color-mix(in srgb,var(--hero-color) 22%,transparent)}.tutorial-hero.selected{outline:1px solid var(--hero-color)}.tutorial-hero .hero-portrait{width:64px;height:69px;filter:drop-shadow(0 0 7px color-mix(in srgb,var(--hero-color) 34%,transparent))}.tutorial-hero b{font:900 13px system-ui;color:#fff4d8}.tutorial-hero small{font:800 9px monospace;color:var(--hero-color);white-space:nowrap}.tutorial-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.tutorial-actions button{min-height:45px;padding:10px 14px;font:900 12px system-ui;letter-spacing:.6px;cursor:pointer}.tutorial-primary{flex:1;max-width:240px;border:2px solid #d9f4b9;background:#c0df93;color:#17271d;box-shadow:3px 3px #0d1719;display:flex;align-items:center;justify-content:space-between;gap:9px}.tutorial-primary:hover{background:#e4f7bd}.tutorial-secondary{border:1px solid #688071;background:#253631;color:#e1edcf}.tutorial-secondary:hover{background:#405249}.tutorial-summary>p{color:#c8d7c4;font-size:15px;line-height:1.5}.tutorial-summary-row{display:flex;gap:10px;align-items:center;background:#142023;border:1px solid #43594d;padding:10px;margin:6px 0}.tutorial-summary-row .pixel-icon{width:41px;height:41px}.tutorial-summary-row b,.tutorial-summary-row span{display:block}.tutorial-summary-row b{color:#f4eed6;font-size:14px;margin-bottom:3px}.tutorial-summary-row span{font-size:12px;line-height:1.4;color:#b3c5b5}.tutorial-guide{position:absolute;z-index:3;top:42px;right:10px;width:min(310px,68%);padding:8px;background:#142427e8;border:1px solid #b6d39a;box-shadow:3px 3px #0d181b;pointer-events:none;animation:tutorial-in .18s ease-out}.tutorial-guide-head{display:flex;gap:6px;align-items:center}.tutorial-guide-head #tutorialStepIcon{width:30px;height:30px;flex:none}.tutorial-guide-head #tutorialStepIcon .pixel-icon{width:100%;height:100%}.tutorial-guide-head>div{min-width:0;flex:1}.tutorial-guide-head small,.tutorial-guide-head b{display:block}.tutorial-guide-head small{font:900 8px monospace;color:#b7df9c;letter-spacing:.8px}.tutorial-guide-head b{font:800 12px system-ui;color:#fff6d9}.tutorial-guide-head button{pointer-events:auto;cursor:pointer;width:26px;height:26px;background:#293936;border:1px solid #81957a;color:#ebebd4;font-size:17px}.tutorial-guide p{font-size:12px;line-height:1.35;color:#e0e9d7;margin:5px 0}.tutorial-progress{height:4px;background:#112023}.tutorial-progress i{display:block;background:#c5e7a0;height:100%;transition:width .15s linear}.tutorial-guide.hidden{display:none!important}body[data-tutorial-step="roll"] #rollBtn,body[data-tutorial-step="equip"] #loadoutBtn,body[data-tutorial-step="equip"] [data-panel="inventory"],body[data-tutorial-step="skill"] .hero-deck,body[data-tutorial-step="move"] #touchStick{outline:2px solid #d5f6aa;outline-offset:2px;box-shadow:0 0 14px #bce68d66;animation:practice-pulse 1.7s ease-in-out infinite}.tutorial-guide .hidden{display:none!important}@keyframes practice-pulse{0%,100%{outline-color:#a9d98c}50%{outline-color:#f1ffca;box-shadow:0 0 20px #c8f199aa}}@keyframes tutorial-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
/* Keep both hero skills and gear controls accessible at phone sizes. */
body:not(.mobile-mode) .arena-wrap{height:clamp(300px,calc(100dvh - 448px),630px)}body.mobile-mode .world-actions{gap:4px}.mobile-mode .hero-select-btn{min-height:33px;padding:2px 4px;gap:3px}.mobile-mode .hero-select-btn>span:first-child{width:25px;height:27px}.mobile-mode .hero-select-btn small{font-size:6px;letter-spacing:0}.mobile-mode .hero-select-btn b{font-size:10px}.mobile-mode .hero-select-btn i{font-size:10px}.mobile-mode .topbar .tutorial-help{width:34px;height:34px}.mobile-mode .hero-deck{padding:3px;margin-bottom:4px;display:block}.mobile-mode .hero-deck-label{display:none}.mobile-mode .hero-skill-row{gap:3px}.mobile-mode .hero-skill-row .hero-ability{padding:3px;gap:3px;min-height:39px}.mobile-mode .hero-skill-row .hero-ability .ability-icon{width:25px;height:25px;min-width:25px}.mobile-mode .hero-skill-row .hero-ability .ability-copy b{font-size:10px}.mobile-mode .hero-skill-row .hero-ability .ability-copy small{font-size:8px}.mobile-mode .hero-skill-row .hero-ability kbd{display:none}.mobile-mode .loadout .ability-row{grid-template-columns:repeat(3,minmax(0,1fr));max-height:90px}.mobile-mode .ability-row .ability{min-height:43px;padding:3px;gap:2px}.mobile-mode .ability-row .ability .ability-icon{width:23px;height:23px;min-width:23px}.mobile-mode .ability-row .ability b{font-size:9px}.mobile-mode .ability-row .ability small{font-size:7px}.mobile-mode .hero-roster{grid-template-columns:1fr;gap:8px}.mobile-mode .hero-card{padding:9px;gap:7px}.mobile-mode .hero-card-head .hero-portrait{width:61px;height:67px}.mobile-mode .hero-card-head h3{font-size:17px}.mobile-mode .hero-card-head p{font-size:11px}.mobile-mode .hero-card-header small{font-size:9px}.mobile-mode .hero-pick{min-height:42px}.mobile-mode .tutorial-overlay{padding:9px}.mobile-mode .tutorial-panel{max-height:calc(100dvh - 18px);padding:13px;border-width:1px}.mobile-mode .tutorial-panel h2{font-size:26px}.mobile-mode .tutorial-kicker{font-size:9px}.mobile-mode .tutorial-intro,.mobile-mode .tutorial-hero-note{font-size:12px}.mobile-mode .tutorial-hero-grid{gap:5px}.mobile-mode .tutorial-hero{padding:7px 3px}.mobile-mode .tutorial-hero .hero-portrait{width:55px;height:60px}.mobile-mode .tutorial-hero b{font-size:11px}.mobile-mode .tutorial-hero small{font-size:8px}.mobile-mode .tutorial-actions button{padding:8px 9px;font-size:11px}.mobile-mode .tutorial-guide{top:28px;right:5px;width:min(235px,70%);padding:5px}.mobile-mode .tutorial-guide-head #tutorialStepIcon{width:25px;height:25px}.mobile-mode .tutorial-guide-head small{font-size:7px}.mobile-mode .tutorial-guide-head b{font-size:11px}.mobile-mode .tutorial-guide p{font-size:10px;line-height:1.3;margin:4px 0}.mobile-mode .tutorial-guide-head button{width:26px;height:26px}.mobile-mode .tutorial-summary>p{font-size:13px}.mobile-mode .tutorial-summary-row{padding:8px}.mobile-mode .tutorial-summary-row .pixel-icon{width:32px;height:32px}
@media(orientation:landscape) and (max-height:650px){.mobile-mode .hero-select-btn{min-height:25px}.mobile-mode .hero-select-btn>span:first-child{width:19px;height:21px}.mobile-mode .hero-deck{padding:2px;margin-bottom:2px}.mobile-mode .hero-skill-row .hero-ability{min-height:33px;padding:2px}.mobile-mode .hero-skill-row .hero-ability .ability-icon{width:21px;height:21px;min-width:21px}.mobile-mode .loadout .ability-row{max-height:63px}.mobile-mode .ability-row .ability{min-height:30px;padding:2px}.mobile-mode .ability-row .ability .ability-icon{width:21px;height:21px;min-width:21px}.mobile-mode .control-deck{gap:2px}.mobile-mode .touch-stick{width:54px;height:54px}.mobile-mode .stick-guide{width:38px;height:38px}.mobile-mode .stick-knob{width:24px;height:24px}.mobile-mode .tutorial-hero-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.mobile-mode .tutorial-hero .hero-portrait{width:44px;height:48px}.mobile-mode .tutorial-panel{padding:10px;width:min(700px,100%)}.mobile-mode .tutorial-panel h2{font-size:23px;margin:4px 0 8px}.mobile-mode .tutorial-intro,.mobile-mode .tutorial-hero-note{font-size:11px;margin:5px 0}.mobile-mode .tutorial-actions{margin-top:8px}.mobile-mode .tutorial-actions button{min-height:35px}.mobile-mode .tutorial-guide{width:245px;top:23px}}
@media(prefers-reduced-motion:reduce){.tutorial-overlay *,.tutorial-guide,.tutorial-hero,.hero-deck,body[data-tutorial-step] .ability-row,body[data-tutorial-step] #rollBtn{animation:none!important;transition:none!important}}
/* Override the older portrait grid so the two rows of equipment skills fit alongside the hero bar. */
body.mobile-mode .loadout .ability-row{grid-template-columns:repeat(3,minmax(0,1fr));max-height:90px;gap:3px;scrollbar-width:thin}body.mobile-mode .ability-row .ability{min-height:43px;padding:3px;gap:2px}body.mobile-mode .ability-row .ability .ability-icon{width:23px;height:23px;min-width:23px}body.mobile-mode .ability-row .ability .ability-copy b{font-size:9px}body.mobile-mode .ability-row .ability .ability-copy small{font-size:7px}body.mobile-mode .ability-section{min-width:0}.mobile-mode .tutorial-guide-head button{touch-action:manipulation}
@media(orientation:landscape) and (max-height:650px){body.mobile-mode .loadout .ability-row{max-height:64px}body.mobile-mode .ability-row .ability{min-height:30px;padding:2px}body.mobile-mode .ability-row .ability .ability-icon{width:21px;height:21px;min-width:21px}body.mobile-mode .hero-deck{padding:2px;margin-bottom:2px}body.mobile-mode .touch-stick{width:54px;height:54px}body.mobile-mode .stick-guide{width:38px;height:38px}body.mobile-mode .stick-knob{width:24px;height:24px}}

body[data-tutorial-step="intro"] .tutorial-panel{width:min(440px,100%)}.training-camp .pause-stats{display:none}.training-camp .pause-quick-actions{margin-top:12px}
