:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#142c29;background:#f4f6f5;font-synthesis:none;font-size:16px;--green:#0b5247;--lime:#c5f277;--line:#dfe7e3;--muted:#60716b}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #bc7010;outline-offset:4px}[hidden]{display:none!important}.app{max-width:1580px;margin:auto;padding:0 42px}.header{display:flex;align-items:center;justify-content:space-between;padding:26px 0}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--green);font-size:28px;font-weight:400;letter-spacing:-1px}.brand b{font-weight:800}.brand small{display:block;font-size:11px;font-weight:700;letter-spacing:1.6px;margin-top:5px;color:var(--muted)}.brand-icon{position:relative;background:var(--green);color:var(--lime);font-weight:900;border-radius:14px;display:grid;place-items:center;width:49px;height:49px;font-size:34px}.brand-icon span{position:absolute;font-size:21px;bottom:0;right:6px}.header-right{display:flex;align-items:center;gap:24px}.local-label,.status-label{font-size:14px;color:var(--muted)}.navigation{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:20px}.tabs{display:flex;gap:22px}.tab{background:none;border:0;padding:20px 5px;font-size:15px;font-weight:650;color:var(--muted);border-bottom:3px solid transparent;margin-bottom:-1px}.tab.active{color:var(--green);border-color:var(--green)}.tab span{background:#e7ede9;padding:2px 7px;border-radius:6px;margin-left:5px;font-size:12px}.view{padding-top:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.7px;color:var(--muted)}h1{font-size:clamp(25px,2.3vw,36px);letter-spacing:-1.2px;margin:6px 0 0;line-height:1.2}h2{font-size:21px;letter-spacing:-.5px;margin:12px 0}p{line-height:1.55}.round-badge{font-size:14px;border:1px solid var(--line);background:#fff;border-radius:30px;padding:10px 16px;font-weight:600}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(6,minmax(70px,1fr));gap:6px;padding:12px;background:#dce6e0;border:1px solid #cddbd2;border-radius:22px;min-height:490px}.board-center{grid-column:2/8;grid-row:2/6;background:var(--green);border-radius:16px;padding:28px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#fff;position:relative;overflow:hidden}.board-center .eyebrow{color:var(--lime)}.board-center h2{font-size:clamp(24px,2.4vw,36px);letter-spacing:-1px;margin:18px 0 8px}.board-center p{color:#d1e4d9;max-width:360px;margin:7px 0 20px}.board-center .primary{background:var(--lime);color:#18362c}.board-legend{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted);padding:15px 5px}.board-legend span{display:flex;align-items:center;gap:7px}.legend-dot{width:10px;height:10px;border-radius:3px;background:#f3da95}.legend-dot.neutral{background:#fff;border:1px solid var(--line)}.game-sidebar{display:flex;flex-direction:column;gap:18px}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:24px}.turn-panel{flex:0 0 auto}.turn-panel p{color:var(--muted);font-size:14px}.dice-placeholder{font-size:65px;text-align:center;color:var(--green);margin:16px 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#254a40;padding:11px 17px;font-size:14px;font-weight:700;text-decoration:none}.button.primary{background:var(--green);border-color:transparent;color:white}.button.subtle{background:transparent}.button.danger{color:#a43034;border-color:#eccace}.button.wide{width:100%}.button:hover:not(:disabled){filter:brightness(.96)}.panel-title{display:flex;justify-content:space-between;align-items:center}.panel-title h2{font-size:17px;margin:0}.panel-title>span{font-size:12px;letter-spacing:1px;color:var(--muted)}.muted{color:var(--muted);font-size:14px}.bottom-row{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:14px;color:var(--muted)}footer{border-top:1px solid var(--line);margin-top:22px;padding:20px 0 24px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between}
.square{position:relative;min-height:70px;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;border:2px solid transparent;transition:box-shadow .12s}.square.challenge{background:#f3da95}.square.current-square{border-color:#0b5247;box-shadow:0 0 0 2px #fff}.square-number{position:absolute;top:6px;left:8px;font-size:11px;font-weight:750;color:#6e694d}.square-symbol{font-family:Georgia,serif;font-size:30px;color:#856724;margin:10px 0}.square.neutral .square-symbol{color:#8b9e92}.square.start-square{background:#c5f277}.square.start-square .square-symbol{color:#25563c}.occupants{display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:wrap;position:absolute;bottom:4px;left:2px;right:2px}.team-token{display:inline-flex;align-items:center;justify-content:center;background:var(--team);color:white;width:44px;height:44px;flex-shrink:0;font-size:20px;font-weight:800;border-radius:50%;border:3px solid white;box-shadow:0 2px 3px #0002}.team-token.small{width:23px;height:23px;font-size:11px;border-width:2px}.center-token{margin-top:22px}.center-token .team-token{width:58px;height:58px;font-size:24px}.board-center .center-token+h2{margin:10px 0}.participant{font-size:14px;line-height:1.5;color:#d1e4d9}.participant strong{color:white}.center-stats{display:flex;margin-top:25px;gap:26px;font-size:14px;color:#d1e4d9}.center-stats strong{display:block;color:var(--lime);font-size:28px;margin-bottom:2px}.setup-steps{display:flex;gap:12px;margin:15px 0 0}.setup-steps button{display:flex;align-items:center;gap:8px;background:#ffffff12;border:1px solid #ffffff26;border-radius:8px;padding:9px 12px;font-size:14px;color:white}.setup-steps button>span{background:#c5f277;color:#18362c;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:800}.dice-tray{display:flex;justify-content:center;gap:14px;padding:18px 0 23px;min-height:98px}.die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:5px;padding:12px;width:68px;height:68px;border:1px solid #d3dfd8;border-radius:13px;box-shadow:0 4px 0 #e6ece8;background:white}.die i{border-radius:50%;width:10px;height:10px}.die .pip{background:#194f40}.rolling .die{animation:shake .15s infinite alternate}.dice-caption{text-align:center;font-size:13px!important;margin:-10px 0 15px!important}.deck-counter{text-align:center;font-size:12px;color:var(--muted);margin-top:15px}.rank-row{display:flex;align-items:center;gap:9px;padding:13px 0;border-bottom:1px solid #edf0ee;font-size:14px}.rank-row:last-child{border-bottom:0;padding-bottom:0}.rank-place{font-size:12px;color:#7c8c83;width:12px}.rank-name{flex:1;overflow-wrap:anywhere}.rank-row strong{font-size:18px}.rank-row.is-current .rank-name{font-weight:750}.winner-points{font-size:58px;font-weight:800;color:var(--lime);line-height:1;margin:18px 0 28px}.winner-points small{display:block;font-size:14px;font-weight:400;color:#d1e4d9;margin-top:8px}.editor-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:26px;align-items:start}.editor-form{position:sticky;top:20px}.editor-form h2{margin:0 0 22px}.editor-form label{display:block;font-size:14px;font-weight:650;margin:20px 0 8px}.editor-form label:first-child{margin-top:0}fieldset{border:0;padding:0;margin:0;min-width:0}input,textarea,select{width:100%;border:1px solid #cad8cf;border-radius:8px;padding:11px 12px;line-height:1.5;background:#fcfdfc;color:#193b2f;font-size:16px}textarea{resize:vertical;min-height:100px}input::placeholder,textarea::placeholder{color:#819088;font-size:14px}.number-input{max-width:110px}.field-help{color:var(--muted);font-size:13px;line-height:1.5;margin:9px 0 0}.color-picker{display:flex;gap:9px;flex-wrap:wrap}.editor-form .color-choice{position:relative;margin:0}.color-choice input{position:absolute;opacity:0;width:32px;height:32px;cursor:pointer}.color-choice span{display:block;background:var(--team);width:30px;height:30px;border-radius:50%;border:3px solid white;outline:1px solid transparent;pointer-events:none}.color-choice input:checked+span{outline:2px solid #214e3e}.color-choice input:focus-visible+span{outline:3px solid #bc7010}.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.item-area{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.empty-state{grid-column:1/-1;min-height:370px;border:1px dashed #b5c9ba;border-radius:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:45px;text-align:center}.empty-symbol{font-size:45px;color:#789c86;font-weight:800;letter-spacing:-3px}.empty-state h2{font-size:25px;margin:22px 0 5px}.empty-state p{max-width:360px;color:var(--muted);font-size:15px}.team-card-heading{display:flex;gap:14px;align-items:center}.team-card-heading h2{margin:0 0 5px;font-size:19px;overflow-wrap:anywhere}.member-list{display:flex;flex-wrap:wrap;gap:7px;margin:22px 0}.member-list>span{background:#eef3ee;color:#4b6455;padding:5px 9px;font-size:13px;border-radius:5px;overflow-wrap:anywhere}.item-actions{display:flex;gap:20px;border-top:1px solid var(--line);padding-top:15px;margin-top:20px}.text-button{border:0;background:none;color:var(--green);font-size:14px;font-weight:600;padding:5px 0;min-height:30px;text-decoration:underline;text-underline-offset:4px}.danger-text{color:#a04d4a}.mini-card{border-top:4px solid #ebc86c;display:flex;flex-direction:column}.mini-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.points-pill{display:inline-flex;background:#f6e4b5;color:#74520b;border-radius:7px;font-size:13px;white-space:nowrap;font-weight:750;padding:7px 10px}.mini-card h2{font-size:22px;line-height:1.3;overflow-wrap:anywhere}.card-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;color:#50665a;margin:2px 0;flex:1}.notice{padding:15px 18px;background:#e7efe4;border-left:3px solid #729666;font-size:14px;line-height:1.6;border-radius:3px;margin-bottom:22px}.rules-panel h2{margin:0 0 20px}.rules-list{padding-left:23px;margin:0}.rules-list li{padding-left:12px;margin-bottom:24px}.rules-list li::marker{color:var(--green);font-weight:800}.rules-list p{font-size:15px;color:var(--muted);margin:7px 0}.rules-panel .notice{margin-bottom:15px}.rules-panel>.muted{font-size:13px;margin-bottom:0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#183e32;color:white;padding:15px 22px;border-radius:10px;box-shadow:0 8px 28px #0002;font-size:14px;max-width:min(90vw,640px);z-index:100}.challenge-dialog{padding:0;border:0;border-radius:22px;width:min(700px,calc(100vw - 36px));max-height:90vh;color:#1f3d30;background:#fff;box-shadow:0 25px 100px #09201766}.challenge-dialog::backdrop,.confirm-dialog::backdrop{background:#102b23bd;backdrop-filter:blur(5px)}.challenge-top{background:var(--green);padding:24px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.challenge-top .eyebrow{color:var(--lime)}.challenge-top .points-pill{font-size:16px;padding:10px 14px}.challenge-body{padding:32px 38px 28px}.challenge-for{font-size:15px;font-weight:700;color:var(--green);overflow-wrap:anywhere}.challenge-for span{font-weight:400;color:var(--muted)}.challenge-body h2{font-size:clamp(28px,3.5vw,40px);line-height:1.2;letter-spacing:-1px;margin:23px 0;overflow-wrap:anywhere}.challenge-text{font-size:21px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.challenge-bottom{padding:0 38px 25px}.challenge-bottom p{font-size:13px;color:var(--muted)}.challenge-actions{display:flex;gap:12px;margin:14px 0}.challenge-actions .button{flex:1;padding:15px 12px}.challenge-bottom>.text-button{display:block;margin:12px auto 0;font-size:12px}.confirm-dialog{border:0;border-radius:16px;padding:28px;width:min(440px,calc(100vw - 32px));color:#193b2f}.confirm-dialog h2{margin-top:0}.confirm-dialog p{font-size:15px;color:var(--muted)}.confirm-dialog form{display:flex;justify-content:flex-end;gap:12px;margin-top:26px}.board-center h2,.turn-panel h2{overflow-wrap:anywhere}.board-center .participant{max-width:100%;overflow-wrap:anywhere}@keyframes shake{from{transform:rotate(-7deg)}to{transform:rotate(7deg)}}@media(min-width:1500px){.board{min-height:540px;grid-template-rows:repeat(6,minmax(78px,1fr))}}@media(max-width:1100px){.app{padding:0 24px}.play-layout{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.board{padding:8px;gap:4px;grid-template-rows:repeat(6,minmax(62px,1fr));min-height:450px}.board-center{padding:20px}.board-center h2{font-size:28px}.panel{padding:20px}.editor-layout{grid-template-columns:320px minmax(0,1fr)}.item-area{grid-template-columns:1fr}.square{min-height:60px}.board-legend{font-size:11px}.status-label{font-size:12px}.tabs{gap:13px}.local-label{display:none}}@media(max-width:850px){.play-layout{grid-template-columns:1fr}.game-sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}.board{min-height:500px}.board-center h2{font-size:34px}.header{padding:20px 0}.status-label{display:none}.editor-layout{grid-template-columns:300px minmax(0,1fr)}.board-legend{font-size:12px}.editor-form{position:static}}@media(max-width:620px){.app{padding:0 15px}.header-right .button{font-size:12px;padding:9px}.brand{font-size:24px;gap:8px}.brand-icon{width:40px;height:40px;font-size:28px}.brand small{font-size:9px;letter-spacing:1px}.tabs{width:100%;gap:2px;justify-content:space-between}.tab{font-size:13px;padding:16px 2px}.tab span{font-size:11px;padding:2px 4px;margin-left:2px}.section-heading{align-items:flex-start}.section-heading h1{font-size:26px;letter-spacing:-.7px}.round-badge{font-size:12px;padding:8px 10px;max-width:140px;text-align:center}.eyebrow{font-size:10px;letter-spacing:1.2px}.view{padding-top:22px}.board{gap:3px;padding:5px;border-radius:12px;min-height:415px;grid-template-rows:repeat(6,minmax(59px,1fr))}.square{min-height:59px;border-radius:6px}.square-number{font-size:9px;top:4px;left:3px}.square-symbol{font-size:23px}.occupants{gap:1px;bottom:3px}.occupants .team-token.small{width:14px;height:14px;font-size:8px;border-width:1px}.board-center{padding:12px;border-radius:9px}.board-center h2{font-size:25px}.board-center p{font-size:13px;margin:7px 0 16px}.board-center .eyebrow{font-size:9px}.board-center .button{font-size:13px;padding:10px}.setup-steps{gap:6px}.setup-steps button{font-size:12px;padding:7px;gap:5px}.center-token{margin-top:10px}.center-stats{margin-top:18px;gap:20px}.center-stats strong{font-size:24px}.participant{font-size:13px}.board-legend{font-size:10px;gap:8px;padding:12px 2px}.game-sidebar{grid-template-columns:1fr}.game-sidebar .turn-panel{display:grid;grid-template-columns:1fr 1fr;column-gap:15px;align-items:center}.turn-panel>.eyebrow,.turn-panel>h2,.turn-panel>p{grid-column:1}.turn-panel>h2{margin:8px 0}.turn-panel>p{margin:2px 0}.turn-panel>.dice-tray{grid-column:2;grid-row:1/4;padding:8px 0}.turn-panel>.button{grid-column:1/3;margin-top:15px}.turn-panel>.dice-caption,.turn-panel>.deck-counter{grid-column:1/3;margin-top:8px!important}.die{width:56px;height:56px;padding:9px;gap:4px}.die i{width:9px;height:9px}.dice-tray{gap:10px}.editor-layout{grid-template-columns:1fr}.empty-state{min-height:240px;padding:30px}.editor-form{position:static}.empty-state h2{font-size:23px}.bottom-row{align-items:flex-start;font-size:12px;margin-top:10px}.bottom-row .button{font-size:12px;padding:8px;white-space:nowrap}.challenge-body{padding:24px}.challenge-text{font-size:18px}.challenge-top{padding:20px 24px}.challenge-bottom{padding:0 24px 22px}.challenge-actions{flex-direction:column}.challenge-actions .primary{order:-1}.challenge-for{font-size:14px}footer{font-size:11px;gap:15px}.winner-points{font-size:45px;margin:15px 0}.board-center h2{max-width:100%}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.board-center .button.primary{background:var(--lime);color:#18362c}.turn-panel p,.card-copy,.rules-list p,.empty-state p{font-size:1rem}.square-number{font-size:.75rem}.board-center{overflow:auto}.board-center h2{flex-shrink:0}.brand small{letter-spacing:1px}
.assignment-section{margin-bottom:34px}.assignment-section>h2{margin:0 0 16px}.assignment-card{display:flex;flex-direction:column}.assignment-team{display:flex;align-items:center;gap:9px;color:var(--green);margin:4px 0 18px}.assignment-team span:last-child{margin-left:auto;color:var(--muted);font-size:13px}.assignment-status{font-size:12px;font-weight:800;border-radius:20px;padding:6px 10px}.assignment-status.pending{background:#fff0bd;color:#72530b}.assignment-status.passed{background:#daf1dd;color:#236034}.assignment-status.failed{background:#f5dede;color:#873b3b}.assignment-card .challenge-actions{margin-top:22px}.assignment-result{font-size:14px;font-weight:700;color:var(--muted);border-top:1px solid var(--line);padding-top:15px;margin:20px 0 0}.cloud-dialog{width:min(530px,calc(100vw - 32px))}.cloud-dialog label{display:block;font-size:14px;font-weight:700;margin:18px 0 8px}.cloud-code{font-size:38px;letter-spacing:7px;font-weight:850;color:var(--green);background:#eef4f0;border-radius:10px;text-align:center;padding:18px 12px;margin:18px 0}.cloud-divider{text-align:center;color:var(--muted);font-size:13px;margin:24px 0 18px}.cloud-dialog>.wide{margin-top:10px}.cloud-dialog .form-actions{justify-content:flex-start}.header-right{gap:10px}@media(max-width:850px){.navigation{align-items:flex-start;overflow-x:auto}.tabs{min-width:max-content}.header-right{flex-wrap:wrap;justify-content:flex-end}.header-right .local-label{display:none}}@media(max-width:620px){#cloud-button{max-width:145px}.assignment-team{flex-wrap:wrap}.assignment-team span:last-child{width:100%;margin-left:32px}.cloud-code{font-size:29px;letter-spacing:4px}}
