@font-face{font-family:GlyphSans;src:url('./fonts/glyph-sans-v1.woff') format('woff');font-weight:600;font-display:swap}
@font-face{font-family:GlyphEmoji;src:url('./fonts/glyph-emoji-v1.woff') format('woff');font-weight:600;font-display:swap}
:root{--ink:#26362f;--muted:#7c857c;--line:#e5e8de;--paper:#f7f8f2;--mint:#49b99b;--mint-light:#e2f3e9;--coral:#ef8874;--coral-light:#f9e8e1;--lime:#d6f390;--white:#fff;--radius:18px;--shadow:0 4px 14px #26362f05}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI','Noto Sans',Arial,'Hiragino Kaku Gothic ProN','Yu Gothic',GlyphSans,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{color:inherit;cursor:pointer;border:0}button:disabled{cursor:default;opacity:.42}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #49b99b;outline-offset:4px}button{transition:background .18s,transform .18s,opacity .18s}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.site-header{max-width:1800px;margin:auto;padding:25px 36px 22px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:22px;letter-spacing:-.8px;line-height:1;font-weight:800}.brand-light{font-weight:400}.brand small{display:block;font-size:10px;font-weight:500;letter-spacing:2px;margin-top:8px;color:var(--muted)}.brand-mark{display:grid;grid-template-columns:repeat(2,12px);gap:4px;padding:9px;background:var(--ink);border-radius:11px;transform:rotate(-5deg)}.brand-mark i{width:12px;height:12px;background:var(--lime);border-radius:2px}.brand-mark i:last-child{background:var(--coral)}.header-right{display:flex;align-items:center;gap:9px}.header-caption{font-size:10px;font-weight:600;letter-spacing:1.4px;margin-right:20px;color:var(--muted)}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:transparent}.icon-button:hover{background:#e9ece1}.app-shell{max-width:1800px;margin:auto;padding:0 36px;display:grid;grid-template-columns:292px minmax(0,1fr);gap:24px}.builder{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:24px 23px 19px;box-shadow:var(--shadow);align-self:start}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.9px;display:flex;align-items:center;gap:8px}.tiny-square{width:6px;height:6px;background:var(--mint);border-radius:1px}.editor-heading h1{font-size:29px;line-height:1.46;letter-spacing:-1.3px;margin:17px 0 8px;font-weight:750}.editor-heading p{font-size:12px;line-height:1.9;color:var(--muted);margin:0 0 21px}.army-editors{display:grid;grid-template-columns:1fr 1fr;gap:13px;position:relative}.army-editor{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fafbf7;padding:12px 9px 10px;transition:border-color .2s,box-shadow .2s}.army-editor.selected{border-color:#b0d9c8;box-shadow:0 0 0 2px #e6f2e9}.army-editor[data-army="1"].selected{border-color:#edb4a6;box-shadow:0 0 0 2px #faece5}.army-editor label{font-size:10px;display:flex;align-items:center;gap:5px;font-weight:600;cursor:pointer;white-space:nowrap;height:16px}.team-dot{width:7px;height:7px;display:inline-block;flex-shrink:0;border-radius:50%}.mint{background:var(--mint)}.coral{background:var(--coral)}.glyph-input{background:transparent;border:0;outline:0;width:100%;height:66px;text-align:center;color:var(--ink);font-size:45px;line-height:1;font-family:GlyphSans,GlyphEmoji,sans-serif;font-weight:600;padding:0;border-radius:6px;caret-color:var(--mint)}.glyph-input:focus{background:#fff;box-shadow:inset 0 0 0 1px #92b7a3}.input-hint{display:block;color:#8c958b;text-align:center;font-size:8px;letter-spacing:.3px}.conversion-line{display:flex;align-items:center;justify-content:center;gap:6px;margin:8px 0 3px}.conversion-line span{height:1px;width:20px;background:var(--line)}.conversion-line svg{width:12px;height:12px;color:#a4aaa0}.army-editor canvas{width:100%;display:block;aspect-ratio:1;cursor:crosshair}.army-count{text-align:center;margin-top:7px}.army-count strong{font-size:18px;font-weight:650;letter-spacing:-.6px}.army-count span{font-size:8px;letter-spacing:1px;color:var(--muted)}.editor-vs{position:absolute;left:50%;top:76px;transform:translate(-50%,-50%);background:#fff;border-radius:50%;font-size:10px;font-style:italic;z-index:1;width:24px;height:24px;text-align:center;padding-top:5px;color:var(--muted)}.mini-icon{background:transparent;display:inline-flex;padding:0;margin-left:auto;align-items:center;justify-content:center}.mini-icon svg{width:13px;height:13px}.presets{margin:14px 0 0;display:flex;flex-direction:column;gap:8px}.presets>span{font-size:9px;color:var(--muted)}#presetButtons{display:flex;gap:6px}#presetButtons button{background:#f1f3ec;width:32px;height:31px;border-radius:6px;font-size:16px;font-family:GlyphSans,GlyphEmoji,sans-serif;display:flex;align-items:center;justify-content:center}#presetButtons button:hover{background:var(--lime)}.input-message{font-size:10px;line-height:1.6;color:#bd5e45;margin-top:8px}.input-message:empty{display:none}.roster-heading{display:flex;justify-content:space-between;align-items:center;margin-top:19px;margin-bottom:10px;font-size:10px;font-weight:650}.text-button{background:none;padding:0;font-size:10px;color:var(--muted)}.text-button span{margin-left:3px}.roster{display:grid;grid-template-columns:repeat(2,1fr);gap:7px 12px}.roster-item{display:flex;align-items:center;gap:7px;font-size:10px}.role-chip{width:18px;height:18px;border-radius:4px;text-align:center;font-size:12px;font-weight:650;display:inline-flex;justify-content:center;align-items:center}.roster-item strong{margin-left:auto;font-size:11px;font-weight:600;color:var(--muted)}.trait-note{display:flex;align-items:center;gap:9px;padding:12px 0;margin:13px 0 4px;border-top:1px solid var(--line);min-height:64px}.trait-symbol{font-size:25px;color:var(--mint);font-family:GlyphSans,sans-serif;flex-shrink:0}.trait-note strong{font-size:10px;font-weight:600}.trait-note p{font-size:9px;line-height:1.7;color:var(--muted);margin:4px 0 0}.primary-button{display:flex;width:100%;align-items:center;justify-content:space-between;background:var(--ink);color:var(--lime);border-radius:10px;padding:16px 19px;font-size:13px;font-weight:650;letter-spacing:.1px}.primary-button:hover:not(:disabled){background:#3a4e40;filter:none}.primary-button svg{width:18px;height:18px}.start-caption{font-size:9px;color:var(--muted);text-align:center;margin:10px 0 0}.start-caption span{padding:0 4px}.arena-area{min-width:0;display:flex;flex-direction:column}.arena{height:calc(100svh - 219px);min-height:566px;max-height:900px;position:relative;isolation:isolate;overflow:hidden;background:#edf0e5;border-radius:var(--radius);border:1px solid #e1e5d9}.viewport{position:absolute;inset:0;z-index:-1}.viewport canvas{display:block;width:100%;height:100%;touch-action:none;outline:0}.arena-topline{position:absolute;top:22px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.arena-topline .eyebrow{font-size:9px;color:#75816c;letter-spacing:1.5px}.version-label{font-weight:400;opacity:.55;margin-left:6px}.state-pill{display:flex;align-items:center;gap:6px;font-size:8px;letter-spacing:1px;font-weight:650;color:#6a7a5d}.state-pill>span{width:5px;height:5px;background:#9fbf70;border-radius:50%}.state-pill.running>span{background:var(--coral);animation:pulse 1.4s ease infinite}.match-hud{position:absolute;top:55px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:720px;display:grid;grid-template-columns:1fr 58px 1fr;gap:16px;align-items:center;padding:16px 20px;background:#ffffffda;backdrop-filter:blur(12px);border:1px solid #fff;border-radius:12px;box-shadow:0 3px 15px #2a382308}.hud-team{display:flex;gap:7px;align-items:center;font-weight:700}.hud-team>span:not(.team-dot){font-size:19px;line-height:1.3;font-family:GlyphSans,GlyphEmoji,sans-serif}.hud-team>small{font-size:8px;font-weight:550;letter-spacing:.5px;color:var(--muted)}.hud-team>strong{font-size:15px;margin-left:auto;font-weight:600}.hud-team>strong small{font-size:7px;font-weight:500;color:var(--muted)}.health-track{height:4px;width:100%;border-radius:2px;background:#e8ece2;margin-top:9px;overflow:hidden}.health-track i{display:block;width:100%;height:100%;background:var(--mint);border-radius:2px;transition:width .2s linear}.enemy .health-track i{background:var(--coral)}.match-time{text-align:center;align-self:center}.match-time strong{display:block;font-size:21px;line-height:1.1;font-weight:650;letter-spacing:-.7px}.match-time span{display:block;font-size:7px;letter-spacing:1.2px;color:var(--muted);margin-top:4px}.arena-message{position:absolute;bottom:112px;left:50%;transform:translateX(-50%);font-size:11px;color:#65765c;background:#fafff3cc;padding:9px 13px;border:1px solid #fff9;border-radius:30px;white-space:nowrap;max-width:90%;overflow:hidden;text-overflow:ellipsis;pointer-events:none}.message-dot{display:inline-block;width:5px;height:5px;background:#93af71;border-radius:50%;vertical-align:middle;margin-right:6px}.arena-bottom{position:absolute;bottom:22px;left:24px;right:24px;display:flex;flex-direction:column;gap:12px}.view-controls{display:flex;align-items:center;gap:10px}.camera-tabs{background:#ffffffd9;backdrop-filter:blur(10px);display:flex;padding:4px;border-radius:9px;border:1px solid white}.camera-tabs button{background:transparent;padding:8px 12px;font-size:10px;border-radius:6px;display:flex;align-items:center;gap:5px;white-space:nowrap}.camera-tabs button.active{background:var(--ink);color:white}.camera-tabs svg{width:12px;height:12px}.zoom-controls{display:flex;gap:1px;background:#ffffffd9;padding:4px;border:1px solid white;border-radius:9px}.zoom-controls button{width:29px;height:29px;background:transparent;border-radius:4px;font-size:17px}.camera-hint{font-size:9px;color:#7a8671;margin-left:5px}.playback-controls{margin-left:auto;display:flex;align-items:center;gap:5px;background:#ffffffd9;border-radius:9px;border:1px solid #fff;padding:3px}.playback-controls .icon-button{width:30px;height:29px;border-radius:5px}.playback-controls svg{width:13px;height:13px}#speedBtn{background:transparent;min-width:36px;font-size:10px;height:29px;font-weight:600}.battle-actions{display:flex;gap:8px;align-self:center;background:#fffef6e8;padding:8px 12px;border-radius:12px;box-shadow:0 4px 20px #37432b0a;border:1px solid white;backdrop-filter:blur(8px)}.command-intro{font-size:10px;align-self:center;margin-right:6px;line-height:1.7}.command-intro small{display:block;font-size:8px;color:var(--muted)}.battle-actions button{display:flex;gap:7px;align-items:center;background:#f1f4e8;border-radius:8px;padding:9px 12px;text-align:left;font-size:11px;position:relative;white-space:nowrap}.battle-actions button svg{width:16px;height:16px}.battle-actions button span small{display:block;font-size:8px;font-weight:400;color:var(--muted);margin-top:3px}.battle-actions button kbd{font-size:8px;margin-left:4px;align-self:flex-start;color:#859075;border:1px solid #d5ddc9;border-radius:2px;width:12px;text-align:center}.battle-actions button.used{opacity:.4}.battle-actions button.used:after{content:'使用済';position:absolute;inset:0;background:#f0f4e9dc;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:10px}.arena.running .arena-message{bottom:166px}.arena-footnote{display:flex;justify-content:space-between;align-items:center;padding:14px 3px;font-size:9px;color:#8b9583}.footnote-left{display:flex;gap:10px;align-items:center}.footnote-left strong{font-size:8px;letter-spacing:1.1px;font-weight:600}.live-dot{width:5px;height:5px;background:#93b772;border-radius:50%}.footnote-right{font-size:8px;letter-spacing:1.4px}.field-guide{display:flex;align-items:center;gap:22px;border-top:1px solid var(--line);padding:17px 3px 0}.guide-title .eyebrow{font-size:8px;letter-spacing:1.3px;color:#8b9583}.guide-title h2{font-size:12px;font-weight:550;margin:7px 0 0;white-space:nowrap}.role-samples{display:flex;gap:24px;margin-left:auto}.role-samples>div{display:flex;align-items:center;gap:9px}.sample-char{width:34px;height:34px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:22px;font-family:GlyphSans,sans-serif}.spear{background:#f9e6c1;color:#bb8b3e}.blade{background:#fbe5d9;color:#ce7b57}.guard{background:#dcebe9;color:#498e89}.core{background:#e9e4f6;color:#9382b7}.role-samples>div>span:last-child{font-size:10px;white-space:nowrap}.role-samples small{font-size:8px;display:block;color:var(--muted);margin-top:3px}.guide-link{display:flex;align-items:center;justify-content:center;background:transparent;width:32px;height:32px;border:1px solid #d5dbcd;border-radius:50%}.guide-link svg{width:14px;height:14px}.site-footer{max-width:1800px;margin:0 auto;padding:22px 39px 20px;display:flex;justify-content:space-between;color:#a0a796;font-size:8px;letter-spacing:.7px}.site-footer i{font-style:normal;margin:0 8px}.site-footer button{background:transparent;color:#8b9583;padding:0;font-size:8px;letter-spacing:1px}.loading{position:absolute;inset:0;background:#edf0e5;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:10}.loading p{font-size:17px;letter-spacing:2px;margin:21px 0 8px}.loading small{font-size:10px;color:var(--muted)}.loading-dots{display:flex;gap:10px}.loading-dots i{width:15px;height:15px;background:var(--mint);border-radius:3px;animation:bounce .9s ease infinite}.loading-dots i:nth-child(2){background:var(--lime);animation-delay:.12s}.loading-dots i:nth-child(3){background:var(--coral);animation-delay:.24s}.countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:90px;font-weight:750;color:var(--ink);text-shadow:0 3px 0 #ffffff91;pointer-events:none;z-index:4;letter-spacing:-5px}.selected-badge{position:absolute;top:147px;left:24px;background:#fffdf3e8;border:1px solid white;border-radius:8px;padding:8px 10px;display:flex;gap:9px;align-items:center;font-size:10px}.selected-badge strong{font-size:9px;font-weight:600;color:var(--muted)}.selected-badge button{padding:0 0 0 8px;background:none;color:var(--muted);font-size:16px}.results-overlay{position:absolute;inset:0;display:grid;place-items:center;z-index:20;background:#ecf0e0b0;backdrop-filter:blur(6px);padding:22px}.result-card{background:#fffdf6;border:1px solid #fff;border-radius:22px;padding:29px 32px;max-width:360px;width:100%;text-align:center;box-shadow:0 15px 60px #35452a15}.result-card .eyebrow{justify-content:center;color:#859272;font-size:8px}.result-glyph{font-family:GlyphSans,GlyphEmoji,sans-serif;font-weight:600;font-size:55px;line-height:1.5;display:grid;place-items:center;width:100px;height:100px;border-radius:24px;margin:16px auto;background:var(--mint-light);color:#2c8b6d;transform:rotate(-5deg)}.result-card h2{font-size:24px;margin:10px 0;letter-spacing:-.8px}.result-card>p{font-size:11px;line-height:1.8;color:var(--muted);margin:6px 0 15px}.result-stats{display:flex;justify-content:center;gap:22px;margin:16px 0}.result-stats strong{font-size:22px;display:block;font-weight:600}.result-stats small{font-size:8px;color:var(--muted)}.mvp{border-top:1px solid var(--line);padding:12px 0 17px;font-size:10px;color:var(--muted);line-height:1.8}.mvp strong{color:var(--ink)}.result-card .primary-button{justify-content:center;gap:15px;padding:13px}.secondary-button{background:#edf0e4;width:100%;padding:12px;margin-top:8px;border-radius:9px;font-size:11px}.result-card>.text-button{margin-top:16px;font-size:9px}.show-result{position:absolute;right:24px;top:148px;background:var(--ink);color:var(--lime);font-size:11px;padding:10px 15px;border-radius:8px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;font-size:12px;padding:12px 20px;border-radius:10px;box-shadow:0 8px 30px #26362f20;z-index:100;max-width:90%;text-align:center;line-height:1.6}dialog{border:1px solid var(--line);border-radius:20px;padding:25px 30px;width:min(650px,calc(100% - 30px));max-height:88svh;color:var(--ink);background:#fbfcf7;box-shadow:0 20px 100px #20302030}dialog::backdrop{background:#26362f50;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center}.dialog-top .eyebrow{color:var(--muted);font-size:9px}dialog h2{font-size:24px;letter-spacing:-1px;margin:14px 0}.manual-lead{font-size:12px;line-height:1.9;color:var(--muted)}.howto{list-style:none;counter-reset:steps;padding:0;margin:24px 0;display:flex;flex-direction:column;gap:18px}.howto li{position:relative;padding-left:38px;counter-increment:steps}.howto li:before{content:counter(steps,decimal-leading-zero);position:absolute;left:0;top:0;width:26px;height:26px;border-radius:6px;background:#e6eeda;display:grid;place-items:center;font-size:10px;font-weight:650}.howto strong{font-size:12px;display:block;margin-bottom:5px}.howto li>span{font-size:11px;line-height:1.8;color:var(--muted)}dialog h3{font-size:13px;margin-top:25px}.manual-roles{display:grid;grid-template-columns:1fr 1fr;gap:10px}.manual-role{background:white;border:1px solid var(--line);padding:12px;border-radius:10px;display:flex;gap:10px}.manual-role .role-chip{width:29px;height:29px;font-size:19px;flex-shrink:0}.manual-role strong{display:block;font-size:11px}.manual-role small{display:block;font-size:9px;color:var(--muted);line-height:1.8;margin-top:4px}.manual-note{margin:22px 0 15px;font-size:10px;line-height:1.9;border-top:1px solid var(--line);padding-top:17px}.manual-note>strong{font-size:11px}.manual-note p{color:var(--muted);margin:7px 0}.keyboard-help{display:flex;gap:15px;color:var(--muted);font-size:9px;flex-wrap:wrap}.credits{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;font-size:9px;line-height:1.9;color:var(--muted)}.credits summary{cursor:pointer;letter-spacing:1px}.credits p{font-size:9px}.fatal-error{background:#fff2e7;padding:20px;position:fixed;bottom:20px;left:20px;right:20px;z-index:300;border-radius:12px}.arena.is-paused .state-pill>span{animation:none}.app-shell.battling .army-editor input{pointer-events:none}.app-shell.battling .builder{opacity:.91}
@keyframes bounce{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-9px) rotate(10deg)}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
@media(min-width:1600px){.app-shell{grid-template-columns:320px minmax(0,1fr);gap:28px}.builder{padding:28px}.editor-heading h1{font-size:33px}.army-editor{padding:14px 12px}.glyph-input{height:72px}.presets{margin-top:18px}.roster-heading{margin-top:23px}.trait-note{margin-top:18px}.arena{min-height:650px}.role-samples{gap:36px}}
@media(max-width:1150px){.site-header{padding:22px 24px}.app-shell{padding:0 24px;gap:18px;grid-template-columns:270px minmax(0,1fr)}.builder{padding:20px 18px}.editor-heading h1{font-size:27px}.header-caption{display:none}.hud-team>small{display:none}.match-hud{gap:10px;padding:13px 16px}.camera-hint{display:none}.role-samples{gap:14px}.role-samples>div:last-child{display:none}.field-guide{gap:16px}.guide-title h2{font-size:10px}.guide-title .eyebrow{font-size:7px}.role-samples>div{gap:6px}.sample-char{width:29px;height:29px;font-size:20px}.footnote-right{display:none}.command-intro{display:none}.battle-actions button{padding:8px 10px}.site-footer{padding:22px 27px}.arena{min-height:570px}}
@media(max-width:820px){.site-header{padding:19px 18px 20px}.brand{font-size:20px}.brand small{font-size:9px}.header-right{gap:3px}.app-shell{padding:0 18px;display:flex;flex-direction:column;gap:18px}.builder{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0 25px;padding:23px}.editor-heading{grid-column:1;grid-row:1}.editor-heading h1{font-size:29px;margin-top:13px}.editor-heading p{margin-bottom:11px}.army-editors{grid-column:2;grid-row:1/5;align-self:start}.glyph-input{height:61px;font-size:40px}.army-editor{padding:10px 8px}.input-hint{font-size:7px}.army-editor canvas{max-height:96px;width:100%;object-fit:contain}.presets{grid-column:1;grid-row:2;margin-top:0}.roster-heading{grid-column:1/3;grid-row:5;margin-top:18px}.roster{grid-column:1/3;grid-row:6;grid-template-columns:repeat(3,1fr);gap:8px 20px}.trait-note{grid-column:1/3;grid-row:7;margin-top:12px;min-height:55px;padding:10px 0}.primary-button{grid-column:1/3;grid-row:8}.start-caption{grid-column:1/3;grid-row:9}.input-message{grid-column:1/3;grid-row:4}.arena{height:65svh;min-height:460px;max-height:700px}.arena-area{width:100%}.field-guide{padding:13px 2px 0}.role-samples>div:last-child{display:flex}.site-footer{padding:24px 20px}.app-shell.battling .builder{display:none}.app-shell.battling .arena{height:calc(100svh - 150px);min-height:500px}.app-shell.battling .field-guide{display:none}.app-shell.battling .arena-footnote{padding-bottom:0}.arena-topline{left:18px;right:18px;top:18px}.match-hud{width:calc(100% - 36px);top:46px}.arena-bottom{left:18px;right:18px;bottom:18px}.arena-message{bottom:102px}.arena.running .arena-message{bottom:160px}.arena-footnote{font-size:8px}.selected-badge{left:18px;top:131px}.show-result{right:18px;top:131px}}
@media(max-width:520px){.site-header{padding:17px 16px}.brand{font-size:18px;gap:9px}.brand small{font-size:8px;letter-spacing:1.5px}.brand-mark{grid-template-columns:repeat(2,10px);gap:3px;padding:7px;border-radius:8px}.brand-mark i{width:10px;height:10px}.header-right .icon-button{width:31px;height:31px}.header-right svg{width:18px;height:18px}.app-shell{padding:0 12px;gap:14px}.builder{padding:20px 17px;gap:0 13px;border-radius:14px}.editor-heading .eyebrow{font-size:7px;letter-spacing:1.4px;gap:5px}.editor-heading h1{font-size:22px;letter-spacing:-.9px;margin:13px 0 7px}.editor-heading p{font-size:9px;line-height:1.9;margin-bottom:14px}.army-editors{gap:8px}.army-editor{padding:9px 5px 7px;border-radius:9px}.army-editor label{font-size:8px;gap:4px}.army-editor .team-dot{width:5px;height:5px}.glyph-input{font-size:34px;height:50px}.input-hint{font-size:6px;letter-spacing:-.3px}.conversion-line{margin:6px 0 3px}.conversion-line span{width:12px}.conversion-line svg{width:10px;height:10px}.army-count strong{font-size:15px}.army-count span{font-size:6px}.editor-vs{top:65px;width:20px;height:20px;font-size:8px;padding-top:4px}.mini-icon svg{width:11px;height:11px}.presets>span{font-size:8px}.presets{gap:6px}#presetButtons{display:grid;grid-template-columns:repeat(3,29px);gap:5px}#presetButtons button{width:29px;height:27px;font-size:14px}.roster-heading{margin-top:15px;font-size:9px}.roster{gap:8px 12px}.roster-item{gap:4px;font-size:8px}.roster-item strong{font-size:9px}.role-chip{width:16px;height:16px;font-size:11px}.trait-note strong{font-size:9px}.trait-note p{font-size:8px}.trait-note{min-height:50px;margin:11px 0 3px;padding:9px 0}.trait-symbol{font-size:22px}.primary-button{font-size:12px;padding:14px 16px;border-radius:8px}.start-caption{font-size:8px}.arena{border-radius:14px;min-height:410px;height:60svh}.arena-topline .eyebrow{font-size:7px;letter-spacing:1.1px}.state-pill{font-size:6px;letter-spacing:.8px}.version-label{display:none}.arena-topline{left:14px;right:14px;top:14px}.match-hud{top:38px;width:calc(100% - 28px);padding:11px 12px;gap:10px;grid-template-columns:1fr 35px 1fr;border-radius:9px}.hud-team{gap:5px}.hud-team>span:not(.team-dot){font-size:16px}.hud-team>strong{font-size:13px}.hud-team>strong small{font-size:6px}.hud-team .team-dot{width:5px;height:5px}.match-time strong{font-size:17px}.match-time span{font-size:6px;letter-spacing:.6px}.health-track{height:3px;margin-top:7px}.arena-bottom{left:12px;right:12px;bottom:12px;gap:10px}.view-controls{gap:6px}.camera-tabs{padding:3px;border-radius:7px}.camera-tabs button{font-size:9px;padding:7px 9px;border-radius:5px;gap:4px}.camera-tabs svg{width:10px;height:10px}.zoom-controls{padding:3px;border-radius:7px}.zoom-controls button{width:24px;height:27px;font-size:15px}.playback-controls{gap:0;padding:2px;border-radius:7px}.playback-controls .icon-button{width:25px;height:28px}#speedBtn{min-width:29px;font-size:9px}.arena-message{font-size:9px;bottom:83px;padding:8px 11px}.arena.running .arena-message{bottom:133px}.battle-actions{gap:6px;width:100%;padding:7px;border-radius:9px}.battle-actions button{flex:1;justify-content:center;gap:6px;font-size:10px;padding:8px 6px;border-radius:6px}.battle-actions button svg{width:14px;height:14px}.battle-actions button span small{font-size:7px}.battle-actions kbd{display:none}.footnote-left{gap:7px}.footnote-left strong{font-size:6px;letter-spacing:.7px}.arena-footnote{padding:11px 2px;font-size:7px}.live-dot{width:4px;height:4px}.field-guide{gap:7px}.guide-title h2{font-size:9px;margin-top:5px}.guide-title .eyebrow{font-size:6px;letter-spacing:.7px}.role-samples{gap:10px}.role-samples>div{gap:4px}.role-samples>div:nth-child(2),.role-samples>div:last-child{display:none}.sample-char{width:28px;height:28px}.role-samples>div>span:last-child{font-size:8px}.role-samples small{font-size:6px;margin-top:3px}.guide-link{width:26px;height:26px;margin-left:4px}.site-footer{font-size:6px;padding:21px 16px}.site-footer i{margin:0 3px}.site-footer button{font-size:6px;letter-spacing:.5px}.selected-badge{left:14px;top:111px;font-size:9px}.selected-badge strong{font-size:8px}.show-result{top:111px;right:14px;font-size:10px;padding:8px 10px}.result-card{padding:22px 25px;border-radius:17px;max-width:310px}.result-glyph{width:76px;height:76px;border-radius:18px;font-size:45px;margin:13px auto}.result-card h2{font-size:22px}.result-stats{margin:12px 0}.result-stats strong{font-size:19px}.mvp{padding:8px 0 12px;font-size:9px}.result-card>p{font-size:10px}.countdown{font-size:70px}.app-shell.battling .arena{height:calc(100svh - 137px);min-height:480px}.app-shell.battling .arena-area{scroll-margin-top:10px}dialog{padding:18px 20px;border-radius:16px}dialog h2{font-size:20px}.manual-lead{font-size:11px}.manual-roles{gap:7px}.manual-role{padding:9px;gap:6px}.manual-role .role-chip{width:22px;height:22px;font-size:15px}.manual-role strong{font-size:10px}.manual-role small{font-size:8px}}
@media(max-width:520px){.editor-heading p{font-size:10px}.army-editor label{font-size:9px}.input-hint{font-size:7px}.roster-heading{font-size:10px}.roster-item{font-size:10px}.roster-item strong{font-size:10px}.trait-note strong{font-size:10px}.trait-note p{font-size:9px}.camera-tabs button{min-height:34px;font-size:10px}.zoom-controls button{height:34px;width:27px}.playback-controls .icon-button{height:34px;width:29px}#speedBtn{height:34px}.battle-actions button{min-height:43px}.battle-actions button span small{font-size:8px}#backToEditor{font-size:9px;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* League edition: clearer characters, one strategy, persistent rivals. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ranking-nav{display:flex;gap:7px;align-items:center;border:1px solid #dbe2ce;background:#eef3e3;border-radius:8px;padding:10px 13px;font-size:11px;font-weight:650;margin-right:7px;white-space:nowrap}.ranking-nav>span{font-size:17px;line-height:1}
.builder{display:flex;flex-direction:column;padding:20px}.editor-heading{order:0}.editor-heading h1{font-size:25px;margin:11px 0 9px;line-height:1.45}.editor-heading p{display:none}.army-editors{order:2;margin-top:10px}.army-editor{padding:10px 8px 8px}.glyph-input{height:52px;font-size:38px}.army-editor canvas{max-height:96px;object-fit:contain}.input-hint{font-size:8px}.conversion-line{margin:5px 0 1px}.army-count{margin-top:3px}.army-count strong{font-size:16px}.presets{order:3;flex-direction:row;align-items:center;margin-top:10px;gap:8px}.presets>span{font-size:8px;white-space:nowrap}#presetButtons{gap:4px;display:flex;flex:1}#presetButtons button{width:27px;height:28px;font-size:15px;flex:1}.input-message{order:4}.strategy-picker{order:5}.builder>.primary-button{order:6;margin-top:12px;padding:15px 14px;font-size:12px}.start-caption{order:7;font-size:8px;margin:8px 0 0}.roster-heading{order:8;margin-top:17px;margin-bottom:9px}.roster{order:9;gap:6px 8px}.roster-item{background:#f7f8f3;padding:6px;border-radius:6px;min-height:32px;text-align:left;font-size:10px}.roster-item:hover:not(:disabled){background:#eaf2df}.roster-item:disabled{opacity:.35}.roster-item strong{font-size:10px}.trait-note{display:none}
.strategy-picker{border-top:1px solid var(--line);padding-top:14px;margin-top:15px}.strategy-heading{display:flex;justify-content:space-between;gap:7px;align-items:center}.strategy-heading h2{font-size:12px;margin:0;font-weight:700;letter-spacing:-.3px}.strategy-heading>span{font-size:8px;color:var(--muted)}.strategy-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.strategy-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #e3e7d9;border-radius:9px;padding:9px 2px;background:#f8f9f3;color:#667160;min-height:77px;position:relative}.strategy-options button.active{background:#e8f2d2;border-color:#b5cc87;box-shadow:inset 0 0 0 1px #b5cc8755;color:#314824}.strategy-options button.active:after{content:'✓';position:absolute;right:5px;top:3px;font-size:9px}.strategy-options button svg{width:18px;height:18px}.strategy-options strong{font-size:11px;font-weight:650}.strategy-options small{font-size:8px;font-weight:400;color:#7c8572}.strategy-description{font-size:9px;line-height:1.7;color:#7c8572;margin:8px 0}.strategy-description strong{font-weight:550;color:#506344}.enemy-strategy{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:9px;color:#838b7a;margin-top:9px}.enemy-strategy select{font:inherit;color:#526148;background:#f5f7ed;border:1px solid #e1e6d7;border-radius:6px;padding:5px 23px 5px 8px;max-width:116px}.enemy-strategy select:disabled{opacity:.7}.challenge-banner{order:1;display:flex;gap:9px;align-items:center;background:#f4eddb;border:1px solid #e6d6ad;border-radius:9px;padding:10px;margin-top:12px}.challenge-crown{font-size:24px;color:#aa8532}.challenge-banner strong{font-size:11px;display:block}.challenge-banner small{display:block;font-size:8px;margin-top:4px;color:#9a8b68}.challenge-banner button{margin-left:auto;background:transparent;font-size:19px;color:#a18f6b;padding:0 3px}.hud-strategy{display:block;color:#7d8974;font-size:8px;letter-spacing:.5px;margin-top:6px}.selected-badge{top:155px;max-width:calc(100% - 45px);gap:7px;box-shadow:0 3px 15px #27382208}.selected-badge .inspect-badge-button{font-size:9px;color:#426737;padding-left:4px;text-decoration:underline;text-underline-offset:3px}.arena.running .arena-message{bottom:96px}.arena-message{bottom:96px}.arena .show-result{top:155px}.result-card{max-height:calc(100% - 20px);overflow:auto}.ranking-result{padding:11px;background:#eff4e3;border-radius:8px;margin-bottom:11px;text-align:left}.ranking-result strong{display:block;font-size:13px;color:#44672c}.ranking-result small{display:block;font-size:9px;line-height:1.6;color:#83926c;margin-top:4px}.ranking-result .result-verification{color:#a76e47}#resultRankingBtn{font-size:10px;margin-top:6px}
.unit-inspector{background:#fff;border:1px solid #dde4d6;border-radius:15px;padding:17px 20px;margin:0 0 19px;box-shadow:0 7px 24px #35442b05;scroll-margin-top:18px;outline:none;--role-color:#efb449}.inspector-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0e6;padding-bottom:10px}.inspector-head .eyebrow{color:#95a18a;font-size:8px}.inspector-head .eyebrow span{color:var(--role-color);letter-spacing:1px;font-size:11px}.inspector-head>div{display:flex;gap:8px;align-items:center}.inspector-head .icon-button{width:27px;height:27px}.inspector-head .icon-button svg{width:15px;height:15px}.focus-unit{display:flex;align-items:center;gap:5px;border-radius:6px;padding:8px 10px;background:#edf3e4;font-size:10px;color:#596e48}.focus-unit svg{width:13px;height:13px}.inspector-content{display:grid;grid-template-columns:1.05fr 1fr;gap:24px;align-items:center;padding:13px 0}.unit-identity{display:flex;align-items:center;gap:8px}.portrait-wrap{width:138px;height:138px;flex-shrink:0}.unit-portrait{width:100%;height:100%;stroke:none;overflow:visible}.unit-team{display:block;font-size:9px;font-weight:600;letter-spacing:.5px}.unit-identity h2{font-size:23px;letter-spacing:-.6px;margin:7px 0}.unit-identity p{font-size:10px;line-height:1.6;color:#88917e;margin:0 0 8px}.unit-state{display:inline-block;padding:4px 8px;border-radius:5px;background:#f0f5e6;font-size:9px;color:#7a8c5c}.unit-state.defeated{background:#f9e6df;color:#bb7968}.unit-health-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;letter-spacing:.5px}.unit-health-label>strong{font-size:10px;color:#88917e;letter-spacing:1px}.unit-health-track{height:7px;background:#ecf0e5;border-radius:5px;overflow:hidden;margin-top:8px}.unit-health-track i{display:block;height:100%;border-radius:5px;transition:width .1s linear;background:#49b99b}.unit-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px 12px;margin:14px 0 10px}.unit-stats>div{min-width:0}.unit-stats dt{font-size:8px;color:#89947e}.unit-stats dd{font-size:12px;font-weight:600;margin:4px 0 0;white-space:nowrap}.unit-battle-stats{display:flex;gap:15px;font-size:8px;color:#8d9783;border-top:1px solid #edf0e6;padding-top:10px}.unit-battle-stats strong{font-size:12px;margin-right:5px;color:#66775c;font-weight:600}.unit-explanations{display:grid;grid-template-columns:1fr 1fr;gap:22px;border-top:1px solid #edf0e6;padding-top:12px}.unit-detail-label{font-size:7px;color:#9aa58e;letter-spacing:1.2px;display:block;font-weight:600}.unit-explanations strong{display:block;font-size:11px;margin-top:7px;color:#516349}.unit-explanations p{font-size:10px;line-height:1.8;color:#8b9581;margin:5px 0 0}#unitStrategy{color:#6d7f5b}
.character-guide{border-top:1px solid var(--line);padding:17px 0 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-heading .eyebrow{font-size:8px;letter-spacing:1.4px;color:#929d88}.section-heading h2{font-size:16px;margin:7px 0 0;font-weight:600;letter-spacing:-.4px}.section-heading>.text-button{font-size:9px;white-space:nowrap}.character-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-top:15px}.character-card{border:1px solid #e3e8da;border-radius:11px;padding:4px 5px 10px;text-align:center;background:#fafbf6;min-width:0;transition:background .2s,transform .2s}.character-card:hover{background:#fff;transform:translateY(-2px)!important;border-color:var(--role-color)}.character-picture{max-width:100px;aspect-ratio:1;margin:auto}.character-card strong{display:block;font-size:10px;font-weight:650;color:#56634d}.character-card small{display:block;font-size:8px;line-height:1.6;color:#9aa18f;margin:5px auto 0;max-width:90px;min-height:25px}.character-tip{font-size:9px;color:#929c87;margin:10px 0 0;line-height:1.7}.ranking-teaser{display:flex;align-items:center;gap:15px;background:#edf2e2;border:1px solid #dfe7d0;border-radius:13px;padding:21px 22px;margin-top:22px}.teaser-mark{width:48px;height:48px;border-radius:11px;display:grid;place-items:center;background:#dde8c7;font-size:31px;color:#768d4e;flex-shrink:0}.ranking-teaser .eyebrow{font-size:8px;letter-spacing:1.5px;color:#96a37d}.ranking-teaser h2{font-size:16px;margin:6px 0 7px;font-weight:650}.ranking-teaser p{font-size:10px;color:#8c987b;line-height:1.7;margin:0}.ranking-teaser>.secondary-button{width:auto;padding:11px 14px;background:#fff;border:1px solid #dce4cd;font-size:10px;white-space:nowrap;margin:0 0 0 auto;color:#647a45}.ranking-teaser>.secondary-button>span{margin-left:10px}.manual-portrait{height:70px;width:70px;flex-shrink:0}.manual-role{align-items:center;gap:4px;padding:9px}.manual-role>div:last-child{min-width:0}.manual-role small{font-size:10px}.app-shell.battling .character-guide{display:none}
.ranking-dialog{width:min(760px,calc(100% - 28px));padding:23px 28px 20px}.league-dot{width:5px;height:5px;background:#9cc16a;border-radius:50%;display:inline-block;margin-left:4px}.ranking-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:5px 0 24px}.ranking-title h2{font-size:25px;margin:11px 0 9px;letter-spacing:-1px}.ranking-title p{font-size:11px;color:#8b9581;margin:0}.ranking-emblem{display:grid;place-items:center;width:65px;height:65px;background:#e8efd9;border-radius:16px;font-size:40px;color:#879e5f;transform:rotate(6deg);flex-shrink:0}.register-combo{background:#fff;border:1px solid #e1e7d7;border-radius:12px;display:flex;align-items:center;gap:13px;padding:14px}.register-glyph{font-family:GlyphSans,GlyphEmoji,sans-serif;display:grid;place-items:center;font-size:35px;background:#edf3e2;width:63px;height:63px;border-radius:11px;line-height:1;flex-shrink:0}.register-combo>div{min-width:0}.register-combo strong{display:block;font-size:15px;margin-top:5px}.register-combo small{display:block;color:#95a086;font-size:9px;margin-top:6px;line-height:1.6}.register-combo>.primary-button{width:auto;gap:15px;padding:12px 15px;font-size:11px;margin-left:auto;flex-shrink:0}.rankings-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 11px;font-size:10px;color:#8b9880}.rankings-heading button{font-size:10px;padding:5px}.ranking-notice{font-size:11px;color:#68884b;line-height:1.7;background:#eef4e4;border-radius:8px;padding:10px 13px;margin:10px 0 14px}.ranking-notice:empty{display:none}.ranking-notice.error{color:#ad6650;background:#f9eae1}.ranking-table{width:100%;border-collapse:collapse;table-layout:fixed}.ranking-table th{font-size:9px;color:#99a18e;font-weight:500;text-align:left;padding:7px 9px 11px;border-bottom:1px solid #e2e7d8}.ranking-table th:first-child{width:47px}.ranking-table th:nth-child(3){width:100px}.ranking-table th:nth-child(4){width:72px;text-align:right}.ranking-table th:nth-child(5){width:90px}.ranking-table td{border-bottom:1px solid #e6eadf;padding:13px 9px}.ranking-position{font-size:12px;font-weight:600;color:#a6ad9b}.top-three .ranking-position{color:#a68b48}.ranking-combo{display:flex;align-items:center;gap:11px;min-height:75px}.rank-glyph{font-family:GlyphSans,GlyphEmoji,sans-serif;font-size:31px;line-height:1;background:#f0f3e9;width:45px;height:45px;border-radius:9px;display:grid;place-items:center;flex-shrink:0}.top-three .rank-glyph{background:#e7eed9}.ranking-combo strong{font-size:12px;font-weight:650}.ranking-combo small{font-size:8px;color:#9aa48c;display:block;margin-top:5px}.ranking-record{font-size:10px;color:#75846a;white-space:nowrap}.ranking-record small{font-size:8px;display:block;color:#a2aa96;margin-top:5px}.ranking-rating{font-size:17px;font-weight:650;letter-spacing:-.5px;text-align:right;color:#596e47}.challenge-button{border:1px solid #dce5cc;background:#eff4e5;border-radius:7px;padding:9px 10px;font-size:10px;color:#6c8351;white-space:nowrap}.ranking-action{text-align:right}.ranking-note{font-size:9px;line-height:1.9;color:#9aa38e;margin:18px 0 1px}.ranking-empty{text-align:center;padding:35px 16px;color:#98a38a;font-size:12px;line-height:1.8}
@media(min-width:1600px){.builder{padding:24px}.editor-heading h1{font-size:28px}.strategy-options button{min-height:83px}.character-picture{max-width:120px}.character-card strong{font-size:12px}.character-card small{font-size:9px;max-width:130px}.inspector-content{grid-template-columns:1fr 1fr}.unit-identity{gap:15px}.portrait-wrap{width:155px;height:155px}.unit-identity h2{font-size:27px}.unit-stats dd{font-size:14px}.unit-explanations p{font-size:11px}}
@media(max-width:1150px){.builder{padding:18px 16px}.editor-heading h1{font-size:23px}.presets>span{display:none}.strategy-heading h2{font-size:11px}.strategy-heading>span{font-size:7px}.strategy-options strong{font-size:10px}.strategy-options small{font-size:7px}.portrait-wrap{width:106px;height:106px}.unit-identity{gap:4px}.unit-identity h2{font-size:19px}.unit-identity p{font-size:9px}.inspector-content{gap:13px}.unit-inspector{padding:14px}.unit-stats{gap:9px 6px}.unit-stats dd{font-size:10px}.unit-stats dt{font-size:7px}.unit-battle-stats{gap:8px}.unit-battle-stats strong{font-size:11px}.character-cards{grid-template-columns:repeat(3,1fr)}.character-card{display:grid;grid-template-columns:62px 1fr;grid-template-rows:1fr 1fr;text-align:left;padding:4px 8px 4px 2px}.character-picture{width:62px;grid-column:1;grid-row:1/3}.character-card strong{grid-column:2;grid-row:1;align-self:end;font-size:10px;margin-bottom:3px}.character-card small{grid-column:2;grid-row:2;margin:0;font-size:7px;max-width:none;min-height:0;align-self:start}.ranking-teaser{padding:16px;gap:12px}.ranking-teaser h2{font-size:14px}.ranking-teaser p{font-size:9px}.ranking-teaser>.secondary-button{font-size:9px;padding:10px}}
@media(max-width:820px){.builder{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:'intro armies' 'presets armies' 'message message' 'challenge challenge' 'strategy strategy' 'start start' 'caption caption' 'rosterhead rosterhead' 'roster roster';gap:0 20px;padding:21px}.editor-heading{grid-area:intro}.editor-heading h1{font-size:26px;margin:13px 0 15px}.army-editors{grid-area:armies;margin-top:0;max-width:280px;justify-self:end;width:100%}.presets{grid-area:presets;align-self:start;flex-direction:column;align-items:flex-start;margin:0}.presets>span{display:block}#presetButtons{width:100%;max-width:228px;gap:5px}#presetButtons button{max-width:34px;min-width:23px;flex:1}.input-message{grid-area:message}.challenge-banner{grid-area:challenge;margin-top:15px}.strategy-picker{grid-area:strategy;margin-top:16px;padding-top:13px}.strategy-heading h2{font-size:13px}.strategy-heading>span{font-size:9px}.strategy-options{gap:9px}.strategy-options button{min-height:67px;display:grid;grid-template-columns:23px auto;grid-template-rows:1fr 1fr;gap:2px 9px;padding:10px 13px;text-align:left;justify-content:center}.strategy-options button svg{grid-column:1;grid-row:1/3;width:21px;height:21px}.strategy-options strong{grid-column:2;grid-row:1;align-self:end;font-size:12px}.strategy-options small{grid-column:2;grid-row:2;align-self:start;font-size:9px}.strategy-description{font-size:10px;display:inline-block;margin:8px 0 0}.enemy-strategy{float:right;display:inline-flex;font-size:10px;margin-top:7px}.enemy-strategy select{font-size:10px;padding:5px 18px 5px 8px}.builder>.primary-button{grid-area:start;margin-top:13px;padding:15px 17px;font-size:13px}.start-caption{grid-area:caption;font-size:9px;margin-top:8px}.roster-heading{grid-area:rosterhead;margin-top:17px;font-size:11px}.roster{grid-area:roster;grid-template-columns:repeat(3,1fr);gap:7px 10px}.roster-item{font-size:10px;padding:6px 8px}.selected-badge{top:142px;left:18px}.arena .show-result{top:142px}.arena-message,.arena.running .arena-message{bottom:90px}.inspector-content{gap:20px}.portrait-wrap{width:130px;height:130px}.unit-identity h2{font-size:23px}.unit-identity p{font-size:10px}.unit-stats dt{font-size:9px}.unit-stats dd{font-size:12px}.unit-battle-stats{font-size:9px}.unit-explanations p{font-size:10px}.character-cards{grid-template-columns:repeat(6,1fr);gap:6px}.character-card{display:block;text-align:center;padding:3px 3px 9px}.character-picture{width:auto;max-width:100px}.character-card strong{font-size:10px;margin:0}.character-card small{font-size:8px;margin:5px 0 0;line-height:1.6}.ranking-teaser h2{font-size:16px}.ranking-teaser p{font-size:10px}.ranking-teaser>.secondary-button{font-size:10px;padding:11px 13px}.ranking-teaser{margin-top:20px}.app-shell.battling .ranking-teaser{display:none}}
@media(max-width:520px){.ranking-nav{padding:7px 9px;font-size:9px;gap:4px;margin-right:2px}.ranking-nav>span{font-size:15px}.header-right{gap:0}.header-right .icon-button{width:27px;height:30px}.header-right #fullscreenBtn{display:none}.brand{font-size:16px;gap:7px}.brand small{font-size:7px;letter-spacing:1px}.brand-mark{grid-template-columns:repeat(2,8px);padding:6px;gap:3px}.brand-mark i{width:8px;height:8px}.site-header{padding:16px 13px}.builder{padding:17px 15px;gap:0 12px}.editor-heading .eyebrow{font-size:6px;letter-spacing:1px}.editor-heading h1{font-size:21px;line-height:1.55;margin:11px 0 14px}.army-editors{gap:7px}.army-editor{padding:8px 5px 6px}.glyph-input{height:45px;font-size:32px}.army-editor label{font-size:8px}.input-hint{font-size:6px}.army-editor canvas{max-height:76px}.army-count strong{font-size:13px}.army-count span{font-size:6px}.conversion-line{margin:4px 0 1px}.editor-vs{top:60px}#presetButtons{display:grid;grid-template-columns:repeat(3,28px);gap:5px}#presetButtons button{width:28px;height:28px;max-width:none}.presets>span{font-size:8px}.strategy-heading h2{font-size:12px}.strategy-heading>span{font-size:8px}.strategy-options{gap:6px;margin-top:9px}.strategy-options button{padding:10px 6px;gap:2px 5px;grid-template-columns:17px auto;min-height:62px}.strategy-options button svg{width:17px;height:17px}.strategy-options strong{font-size:10px}.strategy-options small{font-size:7px}.strategy-description{font-size:9px;display:block}.enemy-strategy{float:none;display:flex;font-size:9px;margin-top:8px}.enemy-strategy select{font-size:10px;padding:6px 22px 6px 8px}.roster-heading{font-size:10px;margin-top:14px}.roster-item{font-size:10px;padding:6px 5px;gap:4px}.roster-item strong{font-size:10px}.roster-item .role-chip{width:16px;height:18px;font-size:10px}.roster{gap:7px 8px}.builder>.primary-button{font-size:12px;padding:15px 14px}.start-caption{font-size:8px}.hud-strategy{font-size:7px;margin-top:5px}.selected-badge{top:124px;left:13px;gap:5px;padding:7px 8px;font-size:9px;max-width:calc(100% - 26px)}.selected-badge strong{font-size:8px}.selected-badge .inspect-badge-button{font-size:8px;padding-left:4px}.selected-badge button{padding-left:4px}.arena .show-result{top:124px;right:13px}.arena-message,.arena.running .arena-message{bottom:74px;font-size:8px;padding:7px 10px}.app-shell.battling .arena{height:calc(100svh - 130px);min-height:470px}.unit-inspector{padding:12px;margin-bottom:17px;border-radius:12px}.inspector-head .eyebrow{font-size:7px;letter-spacing:1.2px}.focus-unit{font-size:9px;padding:7px 8px;gap:4px}.focus-unit svg{width:11px;height:11px}.inspector-head>div{gap:3px}.inspector-head .icon-button{width:24px;height:26px}.inspector-content{display:block;padding:7px 0 12px}.unit-identity{gap:13px;justify-content:flex-start}.portrait-wrap{width:112px;height:112px}.unit-identity h2{font-size:23px;margin:5px 0}.unit-identity p{font-size:10px;margin-bottom:6px}.unit-team{font-size:9px}.unit-state{font-size:8px}.unit-vitals{padding:0 4px}.unit-health-label{font-size:12px}.unit-stats{grid-template-columns:repeat(3,1fr);gap:10px 12px;margin-top:12px}.unit-stats dd{font-size:12px}.unit-stats dt{font-size:9px}.unit-battle-stats{justify-content:space-between;font-size:8px;padding-top:8px;gap:7px}.unit-battle-stats strong{font-size:12px}.unit-explanations{gap:13px;padding-top:12px}.unit-detail-label{font-size:6px;letter-spacing:1px}.unit-explanations strong{font-size:10px;margin-top:5px;line-height:1.7}.unit-explanations p{font-size:9px;line-height:1.8}.section-heading h2{font-size:14px}.section-heading .eyebrow{font-size:7px;letter-spacing:1px}.section-heading>.text-button{font-size:8px}.character-cards{grid-template-columns:repeat(3,1fr);gap:8px}.character-picture{max-width:100px}.character-card{padding:3px 6px 10px}.character-card strong{font-size:11px}.character-card small{font-size:9px;min-height:29px}.character-tip{font-size:9px;margin-top:10px}.ranking-teaser{display:grid;grid-template-columns:35px 1fr;gap:10px;padding:16px;margin-top:18px}.teaser-mark{width:35px;height:39px;font-size:24px;border-radius:8px}.ranking-teaser .eyebrow{font-size:7px;letter-spacing:1px}.ranking-teaser h2{font-size:14px;margin:5px 0}.ranking-teaser p{font-size:9px}.ranking-teaser>.secondary-button{grid-column:1/3;width:100%;margin:2px 0 0;font-size:11px;padding:11px 13px;text-align:center}.ranking-teaser>.secondary-button>span{margin-left:9px}.manual-roles{grid-template-columns:1fr}.manual-role{padding:8px;gap:8px}.manual-portrait{width:65px;height:65px}.manual-role strong{font-size:11px}.manual-role small{font-size:10px}.ranking-dialog{padding:17px 15px;width:calc(100% - 18px);max-height:92svh}.ranking-title{margin:5px 0 18px;gap:7px}.ranking-title h2{font-size:20px;line-height:1.5;letter-spacing:-.8px;margin:7px 0}.ranking-title p{font-size:9px;line-height:1.8;max-width:220px}.ranking-emblem{width:44px;height:49px;font-size:31px;border-radius:12px}.register-combo{padding:12px;display:grid;grid-template-columns:52px 1fr;gap:9px 11px;border-radius:10px}.register-glyph{width:52px;height:52px;font-size:31px}.register-combo strong{font-size:14px;margin-top:4px}.register-combo small{font-size:9px;line-height:1.6;margin-top:5px}.register-combo .unit-detail-label{font-size:7px}.register-combo>.primary-button{grid-column:1/3;width:100%;margin:0;font-size:11px;padding:11px 13px}.rankings-heading{font-size:9px;margin-top:19px;margin-bottom:6px}.rankings-heading button{font-size:9px}.ranking-notice{font-size:10px;padding:9px 11px}.ranking-table th{padding:7px 5px 10px;font-size:8px}.ranking-table th:first-child{width:30px}.ranking-table th:nth-child(3){display:none}.ranking-table th:nth-child(4){width:48px}.ranking-table th:nth-child(5){width:65px}.ranking-table td{padding:11px 5px}.ranking-position{font-size:10px}.ranking-combo{gap:7px;min-height:68px}.rank-glyph{width:38px;height:40px;font-size:27px;border-radius:8px}.ranking-combo strong{font-size:10px}.ranking-combo small{font-size:7px;margin-top:4px}.ranking-table .ranking-record{display:none}.ranking-rating{font-size:14px}.challenge-button{font-size:9px;padding:9px 7px;border-radius:6px;min-height:40px}.ranking-note{font-size:9px;margin-top:14px}.ranking-empty{font-size:11px;padding:25px 12px}.result-card{padding:20px 23px}.result-card>.text-button{margin-top:11px}.result-stats{margin:11px 0}.result-glyph{width:67px;height:67px;font-size:40px;margin:11px auto}.result-card h2{font-size:21px}.mvp{padding:8px 0 10px}.ranking-result{padding:9px;margin-bottom:8px}.ranking-result strong{font-size:11px}.ranking-result small{font-size:8px}.result-card .primary-button{font-size:11px;padding:12px}.result-card .secondary-button{padding:10px;font-size:10px}}

/* ---- HASHITO ARCADE fit ---- */
/* The arcade frame (dark bar above, dark guide below) owns navigation; the game keeps its own light paper look. */
html,body{overflow-x:hidden}
.site-header .brand{cursor:default}
h1 .h1-name{display:block;margin:0 0 10px;font-size:.46em;line-height:1.2;letter-spacing:.2em;color:var(--mint);font-weight:800}
/* result screen: compact share row */
.result-share .hs-share{padding:12px 0 2px;font-family:inherit;font-size:12px;line-height:1.5;text-align:left}
.result-share .hs-share-card{padding:10px 12px 8px;border-radius:14px;border:1px solid var(--line);background:#fff}
.result-share .hs-share-h{margin:0 0 7px;font-size:11px;letter-spacing:.08em;color:var(--muted);text-align:center}
.result-share .hs-share-row{justify-content:center;gap:6px}
.result-share .hs-share-btn{min-height:38px;min-width:38px;padding:6px 11px;border-radius:10px;font-size:12px;font-weight:700;border-color:var(--line);background:var(--paper)}
.result-share .hs-share-x{background:#111;border-color:#111;color:#fff}
.result-share .hs-share-facebook{background:#1877f2;border-color:#1877f2;color:#fff}
.result-share .hs-share-x:hover,.result-share .hs-share-facebook:hover{filter:brightness(1.15);background-image:none}
.result-share .hs-share-msg{margin:6px 0 0;font-size:11px;text-align:center}
.result-share .hs-share-msg:empty{display:none}
.result-share .hs-share-ogp{margin:6px 0 0;font-size:9px;line-height:1.5;color:var(--muted);text-align:center}
