:root{color:#1a1814;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#efeae1;font-family:Avenir Next,PingFang SC,Hiragino Sans GB,Noto Sans SC,sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0}button,textarea,.tab{font:inherit;text-decoration:none}.app{flex-direction:column;min-height:100%;display:flex}.app-battle{height:100%;min-height:0;overflow:hidden}.topbar{border-bottom:1px solid #e3dccf;justify-content:space-between;align-items:flex-end;gap:16px;padding:18px 24px 14px;display:flex}.brand{align-items:flex-end;gap:22px;display:flex}.tabs,.team-row,.roster,.unit-list{gap:8px;display:flex}.tabs{align-items:center}.tab,.ghost,.team-red,.team-blue,.roster button{cursor:pointer;color:#3f3a33;background:0 0;border:0}.tab,.team-red,.team-blue,.roster button,.ghost{border-radius:999px;padding:8px 12px}.tab[aria-current=page]{color:#f7f4ee;background:#1a1814}.team-red[aria-pressed=true]{color:#fff8f3;background:#c4473a}.team-blue[aria-pressed=true]{color:#f4f8ff;background:#2d62b5}.roster{flex-direction:column}.roster button{text-align:left;border-radius:10px}.roster button[aria-pressed=true]{background:#efe2d4}.ghost{background:#e7e0d4}.ghost:disabled,.team-red:disabled,.team-blue:disabled{cursor:default;opacity:.55}.unit-list{color:#3f3a33;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}.scrub{accent-color:#e15a1c;width:100%}.top-side,.account{align-items:center;gap:12px;display:flex}.account{color:#3f3a33;font-size:13px}.login-gate{flex-direction:column;align-items:flex-start;gap:12px;display:flex}.login-gate h1,.login-gate p{margin:0}.login-gate h1{font-size:22px;font-weight:650}.login-gate p{color:#6d675e;line-height:1.5}.mark,.mark-sub,.top-note{margin:0}.mark{letter-spacing:.08em;text-transform:uppercase;font-size:22px}.mark-sub,.top-note{color:#6d675e;font-size:13px}.layout{flex:1;grid-template-columns:minmax(320px,420px) 1fr;gap:18px;min-height:0;padding:18px;display:grid}.layout-battle{grid-template-rows:minmax(0,1fr);overflow:hidden}.layout-battle .panel,.layout-battle .stage{height:100%;min-height:0}.layout-create{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.layout-create .stage{height:520px;min-height:520px}.panel{flex-direction:column;gap:12px;min-height:0;display:flex;overflow:auto}.field{font-size:14px;font-weight:600}textarea{resize:vertical;color:#1a1814;background:#f7f4ee;border:1px solid #ddd4c6;border-radius:14px;width:100%;min-height:148px;padding:14px;line-height:1.5}textarea:focus-visible,button:focus-visible{outline-offset:2px;outline:2px solid #e15a1c}.examples,.history{flex-direction:column;gap:8px;display:flex}.history{margin:0;padding:0;list-style:none}.history button{cursor:pointer;text-align:left;color:#3f3a33;background:0 0;border:0;border-radius:10px;justify-content:space-between;gap:12px;width:100%;padding:8px 10px;display:flex}.history button[aria-pressed=true]{background:#efe2d4}.traits h2,.history-title{margin:0;font-size:14px;font-weight:600}.traits{flex-direction:column;gap:10px;display:flex}.trait-grid{grid-template-columns:1fr 1fr;gap:8px 12px;display:grid}.trait{color:#6d675e;flex-direction:column;gap:4px;font-size:13px;display:flex}.trait input{color:#1a1814;width:100%;font:inherit;background:#f7f4ee;border:1px solid #ddd4c6;border-radius:10px;padding:8px 10px}.chip[aria-pressed=true]{color:#f7f4ee;background:#1a1814}.chip,.primary{cursor:pointer;border:0}.chip{text-align:left;color:#3f3a33;background:0 0;border-radius:10px;padding:8px 10px}.chip:hover{background:#e7e0d4}.actions{align-items:center;gap:12px;display:flex}.primary{color:#fff8f3;background:#e15a1c;border-radius:999px;padding:11px 18px}.primary:disabled{cursor:default;opacity:.55}.count,.hint,.status,.stage-caption{color:#6d675e;font-size:13px}.status a{color:#9a3d12}.hint,.status,.error,.stage-caption,.stage-empty p{margin:0}.meter{background:#e3dccf;border-radius:999px;height:6px;overflow:hidden}.meter span{background:#e15a1c;height:100%;display:block}.error{color:#9d2c2c;line-height:1.45}.stage{background:#141816;border-radius:20px;min-height:520px;position:relative;overflow:hidden}.stage-tools{z-index:2;gap:8px;display:flex;position:absolute;top:12px;left:12px}.stage-tools button{cursor:pointer;color:#1a1814;background:#f7f1e6;border:0;border-radius:999px;padding:8px 12px}.stage-tools button[aria-pressed=true]{color:#f7f4ee;background:#1a1814}.stage-view,.stage-empty{position:absolute;inset:0 0 36px}.stage-empty{color:#d9d3c7;text-align:center;place-items:center;padding:24px;display:grid}.stage-caption{color:#b7c2bb;position:absolute;bottom:12px;left:16px;right:16px}.stage-message,.stage-loading{color:#f3efe6;margin:0;font-size:14px}.stage-message{text-align:center;place-items:center;padding:24px;display:grid;position:absolute;inset:0 0 36px}.verdict{color:#1a1814;background:#f7f1e6;border-radius:999px;margin:0;padding:8px 16px;font-weight:650;position:absolute;top:16px;left:50%;transform:translate(-50%)}.half-name{color:#1c2418;letter-spacing:.16em;pointer-events:none;-webkit-user-select:none;user-select:none;text-shadow:0 1px #ffffffbf;margin:0;font-size:13px;position:absolute;left:50%;transform:translate(-50%)}.soldier-row{flex-wrap:wrap;gap:8px;display:flex}.soldier-row button{cursor:pointer;color:#3f3a33;background:0 0;border:0;border-radius:999px;padding:8px 12px}.soldier-row button[aria-pressed=true]{background:#efe2d4}.half-name.far{top:7%}.half-name.near{bottom:3%}@media (width<=800px){.topbar{flex-direction:column;align-items:flex-start}.layout{grid-template-columns:1fr}.layout-create .stage{height:420px;min-height:420px}.layout-battle{grid-template-rows:minmax(0,1fr) minmax(220px,46vh)}.layout-battle .stage{height:auto;min-height:0}}
