@font-face{font-family:Roboto;src:url('assets/fonts/roboto-latin-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url('assets/fonts/roboto-latin-500-normal.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url('assets/fonts/roboto-latin-700-normal.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Noto Sans Thai';src:url('assets/fonts/noto-sans-thai-thai-400-normal.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Noto Sans Thai';src:url('assets/fonts/noto-sans-thai-thai-500-normal.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
:root{color-scheme:dark;--bg:#121212;--surface:#1e1e1e;--surface-2:#232323;--surface-3:#272727;--text:rgba(255,255,255,.87);--muted:rgba(255,255,255,.60);--primary:#bb86fc;--secondary:#03dac6;--error:#cf6679;--line:#414141;--radius:12px;font-family:Roboto,'Noto Sans Thai',sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:16px;line-height:1.55}button,select{font:inherit}button{cursor:pointer}button,select,summary{touch-action:manipulation}button:disabled{cursor:not-allowed;color:#aaa;background:#303030;border-color:#414141;box-shadow:none}button:disabled span{color:inherit}a{color:var(--primary)}h1,h2,h3,p,dl{margin:0}h1,h2,h3{font-weight:500;line-height:1.2}h1{font-size:clamp(32px,3.3vw,48px);letter-spacing:-1.3px}h2{font-size:24px;letter-spacing:-.3px}h3{font-size:22px}p{color:var(--muted)}img{display:block;max-width:100%;object-fit:contain}button,select,a,summary{outline-offset:4px}button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid var(--secondary)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:8px;left:8px;padding:12px 24px;background:var(--primary);color:#000;z-index:10;transform:translateY(-150%)}.skip-link:focus{transform:none}
.site-header{max-width:1440px;margin:0 auto;padding:24px 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #303030;gap:24px}.game-brand{display:flex;align-items:center;gap:16px}.game-brand img{width:44px;height:44px;padding:3px}.game-title{display:block;font-size:28px;line-height:1.2;font-weight:500;letter-spacing:-.6px}.game-descriptor{display:block;font-size:10px;letter-spacing:2.4px;color:var(--muted);margin-top:4px}.header-meta{display:flex;align-items:center;gap:20px;font-size:12px;color:var(--muted)}.practice-badge{padding:6px 10px;border:1px solid var(--line);border-radius:4px;letter-spacing:1px;font-weight:500;color:var(--text)}#game{max-width:1440px;padding:44px 40px 56px;margin:0 auto;outline:none}.site-footer{max-width:1360px;margin:0 auto;padding:24px 0;border-top:1px solid #303030;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:12px}.storage-notice{max-width:1360px;margin:16px auto 0;background:var(--surface-3);padding:16px 24px;border:1px solid var(--error);border-radius:8px;color:var(--text)}.eyebrow{font-size:11px;font-weight:500;letter-spacing:1.8px;color:var(--muted);margin-bottom:12px}.small-label{font-size:11px;font-weight:500;letter-spacing:1.1px;color:var(--muted)}.thai-name{font-family:'Noto Sans Thai',Roboto,sans-serif;font-size:13px;line-height:1.6;color:var(--muted)}.button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:16px;padding:12px 20px;border:1px solid var(--line);border-radius:7px;background:var(--surface-3);color:var(--text);font-weight:500;font-size:14px;line-height:1.4;transition:background .16s,border-color .16s,box-shadow .16s;box-shadow:0 2px 3px #0003}.button:not(:disabled):hover{background:#333;border-color:#878787}.button:not(:disabled):active{box-shadow:none}.button.primary{background:var(--primary);border-color:var(--primary);color:#000}.button.primary:not(:disabled):hover{background:#cba3fc}.button.primary:disabled{background:#3f354d;color:#bab1c5;border-color:#665a74}.button.outlined{background:transparent}.button.outlined:not(:disabled):hover{background:var(--surface-3)}.text-button{box-shadow:none;background:transparent;border-color:transparent;color:var(--muted)}
.prepare-head{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:44px}.intro{font-size:18px;margin-top:16px}.squad-count{display:flex;flex-direction:column;align-items:flex-end;min-width:140px}.squad-count strong{font-size:40px;line-height:1.2;font-weight:400}.squad-count strong span{font-size:24px;color:var(--muted)}.squad-count>span{font-size:12px;color:var(--muted);margin-top:4px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.section-heading h2{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:12px}.section-heading h2 span{font-size:22px;color:var(--text);letter-spacing:-.3px}.section-heading p{font-size:14px;margin-top:8px}.resume-strip{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:36px}.resume-strip strong{font-weight:500}.resume-strip p{font-size:14px;margin-top:4px}.creature-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.creature-card{background:var(--surface);border:1px solid #383838;border-radius:var(--radius);overflow:hidden;min-width:0;transition:border-color .16s}.creature-card.chosen{border-color:#8161a7}.creature-topline{padding:16px 16px 0;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.pick-state{font-size:9px;letter-spacing:.6px;color:var(--muted);white-space:nowrap}.chosen .pick-state{color:var(--primary)}.creature-art{height:228px;padding:16px 12px 8px;display:flex;align-items:center;justify-content:center}.creature-art img{width:100%;height:100%;object-fit:contain}.creature-body{padding:8px 16px 16px}.creature-body h3{font-size:23px;margin-bottom:3px}.creature-role{font-size:12px;margin-top:8px;min-height:19px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:18px 0 16px;padding-top:14px;border-top:1px solid #393939;font-variant-numeric:tabular-nums}.stats dt{font-size:9px;font-weight:500;letter-spacing:.8px;color:var(--muted)}.stats dd{font-size:22px;font-weight:500;margin:4px 0 0;line-height:1.2}.stats dd small{font-size:13px;font-weight:400;color:var(--muted)}.care-label{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}select{min-height:48px;width:100%;background:#272727;color:var(--text);border:1px solid #555;border-radius:6px;padding:8px 12px;font-size:14px;cursor:pointer}.care-note{font-size:11px;line-height:1.45;min-height:32px;margin:8px 0 12px;color:var(--muted)}.pick-button{width:100%;padding:12px 4px;font-size:12px}.chosen .pick-button{color:var(--primary);border-color:#69537e}.care-guide{font-size:12px;margin-top:16px;line-height:1.7}.care-guide strong{font-weight:500;color:var(--text);margin-right:8px}.field-section{margin-top:40px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.map-pick{display:flex;align-items:center;text-align:left;gap:24px;padding:20px 24px;border:1px solid #414141;border-radius:var(--radius);background:var(--surface);color:var(--text);min-width:0;transition:border-color .16s,background .16s}.map-pick:hover{background:var(--surface-2);border-color:#8b8b8b}.map-pick.chosen{border-color:var(--primary)}.mini-map{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;width:118px;height:118px;flex:none;background:#151515;padding:4px;border:1px solid #454545;border-radius:4px}.mini-tile{border-radius:1px;border:1px solid #ffffff10}.terrain-ground{background:#2a2a2a}.terrain-wall{background:#66625e}.terrain-water{background:#27484d}.terrain-cover{background:#414a38}.map-copy{display:flex;flex-direction:column;gap:4px}.map-copy strong{font-size:22px;font-weight:500;line-height:1.3}.map-pick.chosen .small-label{color:var(--primary)}.map-description{font-size:13px;color:var(--muted);line-height:1.6;margin-top:5px}.mini-legend{display:flex;gap:24px;flex-wrap:wrap;margin-top:16px;font-size:11px}.mini-legend span{display:flex;align-items:center;gap:6px}.mini-legend i,.terrain-legend i{display:inline-block;width:12px;height:12px;border:1px solid #777;border-radius:2px;flex:none}.launch-panel{display:flex;justify-content:space-between;align-items:center;gap:40px;margin-top:36px;padding:24px 32px;background:var(--surface);border:1px solid #383838;border-radius:var(--radius)}.opponent{display:flex;align-items:center;gap:40px;min-width:0}.opponent .eyebrow{margin-bottom:5px}.opponent h2{font-size:24px}.opponent p:not(.eyebrow){font-size:12px;margin-top:7px}.opponent-squad{display:flex;gap:20px;flex-wrap:wrap}.opponent-squad>div{display:flex;align-items:center;gap:8px;font-size:12px}.opponent-squad img{width:48px;height:60px}.opponent-squad small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.launch-action{min-width:210px;text-align:center}.launch-action .button{width:100%;font-size:16px}.launch-action p{font-size:11px;line-height:1.5;margin-top:8px}.prototype-note{font-size:11px;margin-top:24px;text-align:center}
.battle-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.battle-heading h1{font-size:36px;letter-spacing:-.8px}.battle-heading .thai-name{margin-top:7px}.battle-heading .eyebrow{margin-bottom:8px}.battle-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:32px;align-items:start;max-width:1192px;margin:auto}.battlefield{min-width:0}.turn-strip{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);padding:16px 20px;border:1px solid #414141;border-radius:var(--radius);margin-bottom:18px}.turn-strip strong{font-size:18px;font-weight:500}.turn-detail{display:block;font-size:12px;color:var(--muted);margin-top:4px}.turn-indicator{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b0b0b0;margin-right:10px}.turn-indicator.your-turn{background:var(--secondary)}.ap-status{font-size:30px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}.ap-status small{font-size:13px;color:var(--muted)}.side-label{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:500;color:var(--muted);margin:0 2px 8px}.side-label span:last-child{font-size:10px;letter-spacing:.7px}.bot-side{margin-top:10px;margin-bottom:16px}.board-scroll{overflow-x:auto;padding:4px;scrollbar-width:thin}.board-coordinate-row{display:grid;grid-template-columns:repeat(7,1fr);min-width:354px;gap:3px;color:var(--muted);font-size:10px;text-align:center;margin-bottom:5px}.game-board{display:grid;grid-template-columns:repeat(7,minmax(48px,1fr));gap:3px;min-width:354px;background:#171717;border:1px solid #494949;padding:2px;border-radius:5px}.board-cell{position:relative;min-width:48px;min-height:48px;aspect-ratio:1;border:1px solid #555;border-radius:3px;color:var(--text);padding:0;overflow:hidden;isolation:isolate;transition:border-color .12s,box-shadow .12s}.board-cell:hover{border-color:#dadada}.board-cell:focus-visible{outline:3px solid var(--secondary);outline-offset:-4px;z-index:2}.board-cell.selected-cell{box-shadow:inset 0 0 0 3px var(--primary);border-color:var(--primary)}.board-cell.legal-move{border:2px dashed var(--primary)}.board-cell.legal-attack{border:2px solid var(--error)}.cell-coordinate{position:absolute;left:5px;top:2px;color:#ffffff80;font-size:9px;z-index:2}.board-creature{position:absolute;inset:5% 5% 18%;width:90%;height:77%;padding:3px;object-fit:contain}.unit-hp{position:absolute;bottom:3px;left:3px;right:3px;z-index:2;background:#141414e8;border:1px solid #ffffff35;border-radius:2px;text-align:center;font-size:10px;font-weight:500;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}.owner-you .unit-hp{border-color:#bb86fc99}.owner-other .unit-hp{border-color:#a8a8a8}.tile-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:10px;letter-spacing:.3px;font-weight:500;color:#ffffffb3}.legal-move .tile-label{color:var(--primary);font-size:12px}.attack-label{position:absolute;right:0;top:0;font-size:9px;background:var(--error);color:#000;padding:1px 4px;z-index:3;font-weight:700}.action-preview{min-height:68px;padding:16px;background:var(--surface);border:1px solid #414141;border-radius:8px;font-size:14px;line-height:1.55;color:var(--text);margin:16px 0}.terrain-legend{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;font-size:11px;color:var(--muted);margin:20px 0 14px}.terrain-legend span{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.terrain-legend strong{font-weight:500;color:var(--text)}.board-key{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:var(--muted);border-top:1px solid #393939;padding-top:12px}.move-key{color:var(--primary)}.attack-key{color:var(--error)}.battle-sidebar{display:grid;gap:16px}.selected-panel{background:var(--surface);padding:20px;border:1px solid #414141;border-radius:var(--radius)}.selected-panel .eyebrow{font-size:10px;margin-bottom:14px;letter-spacing:1px}.selected-identity{display:flex;align-items:center;gap:8px;min-height:120px}.selected-identity img{width:110px;height:132px;padding:4px}.selected-identity h2{font-size:24px;letter-spacing:-.6px}.selected-identity p:not(.thai-name){font-size:11px;margin-top:8px;line-height:1.55}.selected-identity .thai-name{font-size:11px;margin-top:4px}.selected-panel .stats{margin-top:16px}.selected-panel .stats dd{font-size:24px}.action-flags{display:flex;justify-content:space-between;gap:8px;font-size:11px;padding:10px 0;border-top:1px solid #393939;border-bottom:1px solid #393939}.selected-note{font-size:12px;margin-top:14px;line-height:1.6}.battle-controls{display:grid;gap:4px}.battle-controls .primary{font-size:16px}.battle-notice{font-size:12px;min-height:38px;line-height:1.5;padding:0 4px}.squad-list{padding:18px 20px;border:1px solid #393939;border-radius:var(--radius)}.squad-list h2{font-size:18px;margin-bottom:16px}.roster+.roster{margin-top:16px}.roster h3{font-size:11px;font-weight:500;letter-spacing:.7px;color:var(--muted);margin-bottom:6px}.roster-unit{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:48px;background:transparent;border:1px solid transparent;border-radius:4px;color:var(--text);font-size:12px;padding:8px}.roster-unit span:last-child{font-size:11px;color:var(--muted);white-space:nowrap}.roster-unit:hover{background:var(--surface-3)}.roster-unit.inspecting{border-color:#8161a7;background:var(--surface)}.result-panel{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:24px 28px;border:1px solid var(--primary);border-radius:var(--radius);background:var(--surface);margin-bottom:28px}.result-panel h2{font-size:28px}.result-panel p:not(.eyebrow){margin-top:8px;font-size:14px;max-width:750px}.result-panel .eyebrow{color:var(--primary);margin-bottom:8px}.result-panel .button{min-width:150px}.battle-bottom{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin:40px auto 0;max-width:1192px;padding-top:28px;border-top:1px solid #393939}.battle-bottom h2{font-size:22px;margin-bottom:16px}.battle-bottom p{font-size:13px}.battle-bottom p+p{margin-top:12px}.battle-bottom .eyebrow{font-size:10px;margin-bottom:10px}.log-panel ol{padding-left:24px;font-size:13px;color:var(--muted)}.log-panel li{padding:0 0 10px 6px}.recent-log li:first-child{color:var(--text)}summary{cursor:pointer;min-height:48px;align-content:center;color:var(--primary);font-size:13px}#full-log>ol{max-height:300px;overflow:auto;padding-right:16px}
@media(min-width:1600px){.creature-art{height:244px}}
@media(max-width:1180px){.site-header{padding:20px 24px}#game{padding:32px 24px 40px}.creature-grid{gap:10px}.creature-topline{padding:12px 12px 0;flex-wrap:wrap;gap:3px}.creature-art{height:185px;padding:12px 8px 6px}.creature-body{padding:8px 12px 12px}.creature-body h3{font-size:21px}.creature-body .thai-name{font-size:11px}.creature-role{font-size:11px}.stats{gap:4px}.stats dt{font-size:8px;letter-spacing:.3px}.care-label{font-size:9px}.pick-button{font-size:11px}.map-pick{padding:20px;gap:18px}.map-copy strong{font-size:20px}.opponent{gap:20px;flex-direction:column;align-items:flex-start}.launch-panel{padding:24px}.site-footer{margin:0 24px}.battle-layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px}.selected-panel{padding:16px}.selected-identity img{width:84px;height:112px}.selected-identity h2{font-size:21px}.unit-hp{font-size:9px}.storage-notice{margin:16px 24px 0}}
@media(max-width:900px){.creature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.creature-art{height:220px}.creature-body{padding:8px 16px 16px}.creature-topline{padding:16px 16px 0;flex-wrap:nowrap}.creature-body h3{font-size:24px}.creature-body .thai-name{font-size:13px}.creature-role{font-size:12px}.stats dt{font-size:9px}.pick-button{font-size:13px}.care-label{font-size:11px}.care-note{font-size:12px}.field-grid{grid-template-columns:1fr}.map-pick{gap:24px}.map-copy strong{font-size:23px}.battle-layout{grid-template-columns:minmax(0,1fr)}.battlefield{max-width:720px;width:100%;margin:auto}.battle-sidebar{grid-template-columns:1fr 1fr;gap:20px;align-items:start}.selected-panel{grid-column:1;grid-row:1 / 4}.battle-controls{grid-column:2;grid-row:1}.battle-notice{grid-column:2;grid-row:2}.squad-list{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.squad-list h2{grid-column:1 / -1}.roster+.roster{margin-top:0}.selected-identity img{width:110px;height:132px}.selected-identity h2{font-size:24px}.unit-hp{font-size:11px}.battle-bottom{gap:28px}.battle-heading h1{font-size:32px}}
@media(max-width:600px){.site-header{padding:16px;gap:12px}.game-brand{gap:10px}.game-brand img{width:36px;height:36px}.game-title{font-size:24px}.game-descriptor{font-size:8px;letter-spacing:1.8px}.header-meta{flex-direction:column;align-items:flex-end;gap:5px;font-size:10px}.practice-badge{font-size:9px;padding:4px 6px;letter-spacing:.6px}#game{padding:28px 16px 36px}.prepare-head{gap:12px;margin-bottom:32px;align-items:flex-start}.prepare-head h1{font-size:32px;max-width:250px}.prepare-head .eyebrow{font-size:9px;letter-spacing:1.1px}.intro{font-size:14px;max-width:230px;margin-top:12px}.squad-count{min-width:62px;padding-top:30px}.squad-count strong{font-size:28px}.squad-count strong span{font-size:18px}.squad-count>span{max-width:62px;font-size:10px;text-align:right}.section-heading{gap:12px;margin-bottom:18px;align-items:flex-start}.section-heading h2 span{font-size:20px}.section-heading p{font-size:12px}.section-heading>.small-label{display:none}.creature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.creature-topline{padding:12px 12px 0;font-size:10px;flex-wrap:wrap}.pick-state{font-size:8px;letter-spacing:.3px}.creature-art{height:174px;padding:12px 8px 4px}.creature-body{padding:8px 12px 12px}.creature-body h3{font-size:21px}.creature-body .thai-name{font-size:11px}.creature-role{font-size:10px}.stats{margin:14px 0;gap:3px;padding-top:12px}.stats dd{font-size:20px}.stats dt{font-size:8px;letter-spacing:0}.care-label{font-size:9px}.care-note{font-size:10px;min-height:30px}.pick-button{font-size:11px;padding:12px 2px}.care-guide{font-size:11px;margin-top:16px}.field-section{margin-top:32px}.map-pick{gap:16px;padding:16px}.mini-map{width:91px;height:91px;gap:2px;padding:3px}.map-copy{gap:3px}.map-copy strong{font-size:19px}.map-copy .thai-name{font-size:11px}.map-copy .small-label{font-size:9px}.map-description{font-size:11px;line-height:1.6}.mini-legend{gap:16px;font-size:10px}.launch-panel{flex-direction:column;align-items:stretch;gap:24px;padding:20px}.opponent{gap:16px}.opponent-squad{gap:12px}.opponent-squad>div{gap:4px;font-size:10px}.opponent-squad img{width:35px;height:48px}.opponent-squad small{font-size:10px}.launch-action{min-width:0}.resume-strip{align-items:flex-start;padding:16px;gap:14px;flex-direction:column}.resume-strip .button{width:100%}.resume-strip p{font-size:12px}.site-footer{margin:0 16px;flex-direction:column;gap:6px;font-size:10px}.storage-notice{margin:16px 16px 0;font-size:13px;padding:16px}.battle-heading{align-items:flex-start;margin-bottom:24px;gap:10px;flex-wrap:wrap}.battle-heading h1{font-size:29px}.battle-heading .eyebrow{font-size:9px}.battle-heading .button{font-size:12px;padding:10px 14px;margin-top:6px}.battle-layout{gap:24px}.turn-strip{padding:14px 12px;margin-bottom:16px;gap:8px}.turn-strip strong{font-size:16px}.turn-detail{font-size:11px;max-width:260px}.turn-indicator{margin-right:6px;width:6px;height:6px}.ap-status{font-size:24px}.ap-status small{font-size:11px}.board-scroll{margin:0 -4px;padding:3px}.game-board{gap:2px;padding:2px;min-width:354px}.board-coordinate-row{min-width:354px;gap:2px}.board-cell{min-width:48px;min-height:48px}.cell-coordinate{left:3px;top:1px;font-size:7px}.board-creature{inset:3% 2% 22%;width:96%;height:75%;padding:1px}.unit-hp{font-size:8px;bottom:2px;left:1px;right:1px;line-height:1.3}.tile-label{font-size:8px;letter-spacing:0}.legal-move .tile-label{font-size:10px}.attack-label{font-size:7px;padding:1px 2px}.side-label{font-size:10px;gap:8px}.side-label span:last-child{font-size:8px;letter-spacing:.3px}.action-preview{font-size:12px;padding:12px;min-height:62px}.terrain-legend{font-size:10px;gap:10px 12px}.terrain-legend span{gap:5px}.terrain-legend i{width:10px;height:10px}.board-key{font-size:9px;gap:8px 12px}.battle-sidebar{grid-template-columns:1fr;gap:16px}.selected-panel{grid-column:1;grid-row:auto}.selected-identity{justify-content:flex-start;gap:16px}.selected-identity img{width:110px;height:120px}.selected-identity h2{font-size:26px}.selected-identity .thai-name{font-size:13px}.selected-identity p:not(.thai-name){font-size:12px}.selected-panel .stats dt{font-size:10px}.battle-controls{grid-column:1;grid-row:auto;grid-template-columns:1fr auto;gap:8px}.battle-controls .primary{font-size:14px}.battle-controls .text-button{font-size:12px}.battle-notice{grid-column:1;grid-row:auto;min-height:0}.squad-list{grid-column:1;grid-template-columns:1fr 1fr;padding:16px;gap:0 16px}.roster-unit{font-size:11px;padding:6px 4px;gap:4px;flex-wrap:wrap}.roster-unit span:last-child{font-size:9px}.battle-bottom{grid-template-columns:1fr;gap:28px;margin-top:28px}.battle-bottom h2{font-size:21px}.result-panel{padding:20px;flex-direction:column;align-items:stretch;gap:16px}.result-panel h2{font-size:25px}.result-panel p:not(.eyebrow){font-size:13px}}
@media(max-width:374px){.creature-grid{grid-template-columns:1fr}.creature-art{height:236px}.creature-topline{flex-wrap:nowrap}.creature-body h3{font-size:24px}.creature-body .thai-name{font-size:13px}.care-label{font-size:11px}.care-note{font-size:12px;min-height:20px}.creature-role{font-size:12px}.stats dt{font-size:10px}.stats dd{font-size:24px}.map-pick{gap:12px;padding:12px}.mini-map{width:77px;height:77px}.map-copy strong{font-size:17px}.map-description{font-size:10px}.prepare-head h1{font-size:30px}.header-meta #save-status{max-width:85px;text-align:right}.opponent-squad{gap:8px}.opponent-squad img{width:29px}.squad-list{gap:0 8px}.battle-controls{grid-template-columns:1fr}.side-label{font-size:9px}.board-scroll{max-width:calc(100% + 8px)} }
/* Keep the active desktop board in view; history and guidance follow below. */
@media(min-width:901px){
  #game.battle-screen{padding-top:24px}
  .battle-screen .battle-heading{max-width:1012px;margin:0 auto 20px}
  .battle-layout{--field-width:clamp(360px,calc(100svh - 440px),640px);grid-template-columns:minmax(360px,var(--field-width)) 340px;max-width:calc(var(--field-width) + 372px);gap:32px;justify-content:center}
  .turn-strip{margin-bottom:12px}
}
/* 7 × 48px targets + six 1px gaps + 2px border = 344px minimum. */
@media(max-width:600px){
  #game.battle-screen{padding-left:8px;padding-right:8px}
  .battle-screen .board-scroll{margin:0;padding:2px;max-width:100%}
  .battle-screen .game-board{gap:1px;padding:0;min-width:344px}
  .battle-screen .board-coordinate-row{gap:1px;min-width:344px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.mode-nav{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.mode-nav a{min-height:48px;padding:12px;display:inline-flex;align-items:center;border:1px solid transparent;border-radius:6px;color:var(--muted);font-size:13px;text-decoration:none}.mode-nav a[aria-current="page"]{color:var(--primary);border-color:#69537e}.mode-nav a:hover{background:var(--surface)}@media(max-width:600px){.site-header{flex-wrap:wrap}.mode-nav{order:3;flex-basis:100%;border-top:1px solid var(--line);padding-top:8px}.mode-nav a{flex:1;justify-content:center}}

/* Author display rules must not reveal semantically hidden notices or controls. */
[hidden]{display:none!important}

/* Bespoke game piece: egg silhouette with state-driven remaining-hit markers. */
.base-objective{background:var(--surface);border:1px solid #555;border-radius:8px;padding:12px 16px;margin-bottom:16px}
.base-objective>p{font-size:13px;color:var(--text);line-height:1.5;margin:0 0 12px}
.base-statuses{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.base-status{display:grid;gap:4px;min-width:0;font-size:12px}
.base-status>span:first-child{color:var(--muted)}
.base-status strong{font-weight:500;font-size:14px}
.base-pips{display:flex;gap:4px}
.base-pips i{display:block;width:16px;height:6px;border:1px solid #999;border-radius:2px}
.base-pips .intact{background:var(--primary);border-color:var(--primary)}
.base-pips .broken{background:transparent;border-style:dashed}
.egg-token{position:absolute;width:42%;height:57%;left:29%;top:12%;background:#f5f3ed;border:2px solid #aaa69c;border-radius:50% 50% 46% 46% / 65% 65% 35% 35%;box-shadow:inset -5px -4px 0 #d5d1c4}
.base-destroyed .egg-token{background:transparent;border-style:dashed;box-shadow:none;transform:rotate(22deg)}
.base-cell .unit-hp{border-color:#d5d1c4}
@media(min-width:901px){.battle-layout{--field-width:clamp(360px,calc(100svh - 560px),640px)}}
@media(max-width:600px){.base-objective{padding:12px}.base-objective>p{font-size:12px}.base-statuses{gap:12px}.base-status{font-size:11px}.base-status strong{font-size:13px}}
