[hidden]{display:none!important}.view-switch{margin-left:auto}.workspace{max-width:1200px}.action-panel h2{margin:20px 0 12px}.action-buttons{grid-template-columns:1fr 1fr}.history-view{max-width:1000px;margin:26px auto;padding:0 30px}.history-view .history-panel{max-height:none}.history-view .history-columns{grid-template-columns:1fr 1fr}.board-wrap svg{cursor:pointer}.setup-cell{fill:#bad4ad;opacity:.8}.setup-cell:hover{fill:#91b887}.action-hint:empty{display:none}#in-room{margin-top:18px;display:flex;align-items:center;justify-content:space-between}#new-game{width:100%}#room-status{margin:22px 0}
#new-game{background:var(--petrol);border:0;border-radius:8px;padding:10px 16px;color:#f8f5ee;font-weight:600}#new-game:hover{background:#3d5b49}
.start-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.start-button{background:var(--petrol);border:0;border-radius:8px;padding:10px 4px;color:#f8f5ee;font-weight:600}.start-button:hover{background:#3d5b49}
.sandbox-board .legal-cell,.sandbox-board .setup-cell{fill:#c8ddbd;opacity:.8}
.sandbox-board .legal-cell:hover,.sandbox-board .setup-cell:hover{fill:#a7c69f;opacity:.8}
.workspace{max-width:1600px;grid-template-columns:minmax(0,2fr) minmax(260px,1fr) minmax(220px,1fr);gap:clamp(18px,2vw,30px)}.history-side .history-panel{margin-top:0}.history-side .history-columns{grid-template-columns:1fr}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) minmax(260px,.75fr)}.history-side{grid-column:2}.history-side .history-columns{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.workspace{display:flex}.history-side{width:100%}}
.summary-panel{margin-top:18px;padding:20px 23px;border:1px solid #d8d9ce;border-radius:12px}.summary-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.summary-heading h2{font-size:20px}.summary-heading strong{font-size:13px;color:var(--secondary)}.summary-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.summary-card{padding:12px 14px;background:#e5ebdf;border-radius:8px}.summary-card span{display:block;font-size:12px;font-weight:700;color:var(--secondary)}.summary-card strong{display:block;font-size:26px;line-height:1.2;color:var(--petrol);font-variant-numeric:tabular-nums}.summary-card:first-child strong{color:var(--terracotta)}
.summary-card:nth-child(2) strong{color:var(--terracotta)}
.workspace{margin-top:56px}.lan-view{padding-top:56px}
@media(max-width:1000px){.lan-view{padding-top:54px}}
@media(max-width:720px){.workspace{margin-top:48px}}
#saved-replays{margin-top:20px;font-size:14px}#replay-list{display:grid;gap:8px;margin-top:12px}#replay-list button{text-align:left;font-size:12px}
.sandbox-board .own-wall{stroke:var(--petrol)}.sandbox-board .opponent-wall{stroke:var(--terracotta)}.sandbox-board .shared-wall{stroke-width:6}.sandbox-board .removal-preview{stroke:#f4efe6;stroke-width:3;stroke-dasharray:18 10}
#your-walls-title::before,#opponent-walls-title::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;background:var(--petrol)}#opponent-walls-title::before{background:var(--terracotta)}#opponent-walls{color:var(--terracotta)}
.training-status-panel{max-width:1000px;margin:0 auto;padding:24px;border:1px solid #d8d9ce;border-radius:12px}.training-status-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.training-status-heading strong{color:var(--petrol)}.training-status-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:20px 0}.training-status-cards .summary-card strong{font-size:20px}.training-status-panel>p{font-size:13px}

.evaluation-panel{margin-top:28px;padding-top:24px;border-top:1px solid #d8d9ce}.evaluation-panel p{font-size:13px;margin-top:8px}#eval-chart{display:block;width:100%;height:auto;max-height:240px}.eval-axis{stroke:#a5b1a0;stroke-width:1}.eval-line{stroke:var(--petrol);stroke-width:3}.eval-dot{fill:var(--terracotta)}.eval-label{fill:var(--secondary);font-size:12px}.opponent-picker[hidden]{display:none}
.sandbox-board .outside-board{fill:#d7dbd1;pointer-events:none}.turn-button{margin-top:12px;width:100%;padding:10px}
.player-config{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.player-card{padding:20px;border:1px solid #d8d9ce;border-radius:10px}.player-card h2{margin:0 0 18px}.player-types{display:flex;gap:20px;margin-bottom:22px}.player-card label{display:block;margin:12px 0}.player-types label{margin:0}.player-card select,.player-card input[type=url]{width:100%;padding:9px;border:1px solid #b8c2b2;border-radius:6px;background:white}.setup-start{text-align:center;margin-top:24px}.setup-start button{min-width:180px;padding:12px 24px}.probability-labels{font-size:13px;color:var(--secondary);margin:12px 0}.probability-bar{height:30px;position:relative;display:flex;align-items:center}.probability-segments{display:flex;width:100%;height:12px;border-radius:6px;overflow:hidden}.probability-segments i:nth-child(1){background:#496c52}.probability-segments i:nth-child(2){background:#96b895}.probability-segments i:nth-child(3){background:#bb765a}.probability-segments i:nth-child(4){background:#d8b795}.probability-bar input{position:absolute;inset:0;width:100%;height:30px;margin:0;appearance:none;background:transparent;pointer-events:none}.probability-bar input::-webkit-slider-thumb{appearance:none;width:18px;height:18px;background:white;border:2px solid #43634c;border-radius:50%;pointer-events:auto;cursor:ew-resize}.probability-bar input::-moz-range-thumb{width:14px;height:14px;background:white;border:2px solid #43634c;border-radius:50%;pointer-events:auto;cursor:ew-resize}#lan-weights{max-width:450px;margin:18px 0}#lan-weights-confirm{padding:10px 25px}@media(max-width:720px){.player-config{grid-template-columns:1fr}}

/* Rules and ladder previews */
.guide-view{max-width:1280px;margin:0 auto;padding:56px 50px 90px}.guide-hero,.ladder-hero{border-radius:16px;background:#dce8d8;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:40px;padding:48px 56px}.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#738b76;margin:0 0 14px}.guide-hero h2,.ladder-hero h2{font-family:SandboxTitle,'Noto Serif CJK SC',serif;color:var(--petrol);font-size:clamp(32px,4vw,50px);line-height:1.25;letter-spacing:.02em}.guide-hero>div:first-child>p:last-child,.ladder-hero>div:first-child>p:not(.eyebrow){margin-top:16px;color:#52695a;max-width:540px}.rule-diagram{flex:0 0 205px;text-align:center}.diagram-goal{display:block;font-size:11px;color:#69806f;letter-spacing:.08em}.diagram-grid{position:relative;width:188px;height:188px;margin:8px auto;background-color:#edf3e9;background-image:linear-gradient(#bacdbb 1px,transparent 1px),linear-gradient(90deg,#bacdbb 1px,transparent 1px);background-size:20% 20%;border:1px solid #adc1af}.diagram-piece{position:absolute;width:19px;height:19px;border-radius:50%;left:calc(50% - 9px);box-shadow:0 0 0 4px #edf3e9}.enemy-piece{top:10px;background:var(--terracotta)}.own-piece{bottom:10px;background:var(--petrol)}.diagram-wall{position:absolute;background:var(--petrol);height:5px;width:72px;border-radius:5px;left:22px;top:73px}.wall-two{background:var(--terracotta);top:112px;left:92px}.guide-section{margin-top:54px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-heading h2{font-size:27px}.section-heading>span{color:#829082;font-size:12px;letter-spacing:.08em}.rule-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.rule-cards article{padding:24px 22px;min-height:220px;background:#f9f8f2;border:1px solid #e1e5da;border-radius:10px}.rule-number{color:#b7755f;font-size:13px;font-weight:700}.rule-cards h3,.rules-details h3{margin:20px 0 9px;font-size:18px;color:var(--petrol)}.rule-cards p,.rules-details p{font-size:14px;color:#667469;line-height:1.75}.rules-details{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:38px;padding-top:30px;border-top:1px solid #d5ddd0}.rules-details article{display:flex;align-items:flex-start;gap:15px}.rules-details h3{margin:0 0 9px}.rules-details p+p{margin-top:8px}.detail-icon{font-size:23px;color:var(--terracotta);line-height:1.3}.ladder-hero{background:var(--petrol);color:#eff5eb;padding:42px 50px}.ladder-hero h2{color:#f5f4e9}.ladder-hero>div:first-child>p:not(.eyebrow){color:#c2d1c0}.ladder-hero .eyebrow{color:#a9c5a8}.preview-badge{display:inline-block;margin-top:20px;padding:5px 11px;border:1px solid #829b82;border-radius:20px;color:#d6e6d1;font-size:12px}.ladder-hero-mark{display:flex;align-items:center;gap:18px;color:#aec5a8;font-size:70px;line-height:1}.ladder-hero-mark span{font-size:10px;letter-spacing:.2em;line-height:1.8}.ladder-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:34px;margin-top:46px}.leaderboard-head,.ladder-row{display:grid;grid-template-columns:minmax(180px,1fr) 145px 65px 75px;align-items:center;gap:12px}.leaderboard-head{padding:12px 16px;color:#859184;font-size:12px;border-bottom:1px solid #d9dfd3}.ladder-row{padding:18px 16px;border-bottom:1px solid #d9dfd3}.rank-name{display:flex;align-items:center;gap:14px;min-width:0}.rank{font-size:13px;color:#a7b0a3}.top-rank{color:var(--terracotta)}.avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;font-weight:700}.avatar-green{background:#718d72}.avatar-red{background:#b77963}.avatar-gold{background:#b59b6a}.rank-name strong,.rank-name small,.submit-option strong,.submit-option small{display:block}.rank-name small,.submit-option small{font-size:12px;color:#8a968a}.kind{font-style:normal;color:#849185;font-size:12px}.kind.online{color:#527c58}.rating{color:var(--petrol);font-size:19px;font-variant-numeric:tabular-nums}.submit-card{background:#e6ede1;border-radius:12px;padding:25px}.submit-card h2{font-size:24px}.submit-card>p:not(.eyebrow){color:#657669;font-size:14px;margin-top:10px}.submit-option{display:flex;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid #ccd9c9}.submit-option b{font-size:12px;color:#a27664}.preview-button{margin-top:24px;width:100%;background:var(--petrol);color:white;border:0;border-radius:8px;padding:12px}.preview-note{display:block;text-align:center;margin-top:8px;font-size:11px;color:#829082}
@media(max-width:850px){.rule-cards{grid-template-columns:repeat(2,1fr)}.rules-details{grid-template-columns:1fr}.ladder-layout{grid-template-columns:1fr}.submit-card{max-width:none}.ladder-hero-mark{display:none}}
@media(max-width:600px){.guide-view{padding:32px 23px 60px}.guide-hero,.ladder-hero{padding:30px 24px}.guide-hero{display:block}.rule-diagram{margin:25px auto 0}.rule-cards{grid-template-columns:1fr}.rule-cards article{min-height:0}.leaderboard-head,.ladder-row{grid-template-columns:minmax(140px,1fr) 85px 55px;gap:8px;padding-left:0;padding-right:0}.leaderboard-head span:nth-child(3),.ladder-row>span:nth-child(3){display:none}.rank-name{gap:8px}.avatar{width:34px;height:34px}.kind{font-size:11px}.rating{font-size:16px}}

.protocol-download{margin-top:20px}.protocol-download a,.protocol-link{font-size:13px;font-weight:700;color:var(--petrol);text-underline-offset:4px}.protocol-link{display:block;text-align:center;margin-top:18px}
.core-downloads{display:flex;flex-wrap:wrap;gap:8px 18px;margin:10px 0 22px}.core-downloads a{font-size:13px;font-weight:700;color:var(--petrol);text-underline-offset:4px}.ladder-view .core-downloads{justify-content:center;margin-top:14px}
.submit-form{display:grid;gap:12px;margin-top:16px}.submit-form>label{display:grid;gap:5px;font-size:13px;font-weight:700;color:var(--petrol)}.submit-form input:not([type=radio]){width:100%;min-width:0;padding:9px;border:1px solid #b8c7b8;border-radius:7px;background:#fbfcf8;color:var(--ink);font:inherit}.submit-form fieldset{border:0;padding:0;margin:0;display:flex;gap:18px}.submit-form legend{font-size:13px;font-weight:700;color:var(--petrol);margin-bottom:5px}.submit-form small,.submit-status{font-size:12px;color:var(--secondary)}.submit-status{margin-top:10px;overflow-wrap:anywhere}.submit-form .preview-button{margin-top:0}.ladder-empty{padding:22px 16px;color:var(--secondary);font-size:14px}

#game-settings{display:block;margin:0 0 12px auto}.sandbox-board .wall-preview:not(.valid):not(.removal-preview){stroke:#b32f53}.history-column[data-order="first"] .history-list li::before{background:var(--petrol)}.history-column[data-order="second"] .history-list li::before{background:var(--terracotta)}
.ladder-heading-actions{display:flex;align-items:center;gap:12px;color:#829082;font-size:12px;letter-spacing:.08em}.ladder-heading-actions button{letter-spacing:normal}

.sandbox-board .wall-debris{stroke:#c9ccc8;stroke-width:9;stroke-linecap:round;pointer-events:none}
.rating-interval{display:block;font-size:11px;font-weight:500;color:#738b76;white-space:nowrap}
.rating-note{font-size:12px;color:#738b76;margin:0 0 12px}

.upload-progress{display:grid;gap:7px;margin-top:2px;padding:10px 12px;border:1px solid #d2ddcf;border-radius:8px;background:#f2f6ef}.upload-progress-head,.upload-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.upload-progress-head{font-size:12px;color:var(--petrol)}.upload-progress-head strong{font-variant-numeric:tabular-nums}.upload-progress progress{display:block;width:100%;height:8px;border:0;border-radius:99px;overflow:hidden;accent-color:var(--petrol)}.upload-progress progress::-webkit-progress-bar{background:#dce5d8;border-radius:99px}.upload-progress progress::-webkit-progress-value{background:var(--petrol);border-radius:99px;transition:width .15s ease}.upload-progress progress::-moz-progress-bar{background:var(--petrol);border-radius:99px}.upload-progress-meta{font-size:11px;color:var(--secondary);font-variant-numeric:tabular-nums}.upload-progress.is-complete progress{accent-color:#58845d}.upload-progress.is-error{border-color:#e0b6a8;background:#fbefeb}.upload-progress.is-error progress{accent-color:var(--terracotta)}
