@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--paper:#f6f5ef;--ink:#252c25;--muted:#70776f;--line:#dfe2d9;--lime:#d5ef65;--orange:#e8643b;--blue:#496bd5;--jade:#178779;--orange-soft:#f5c4a7;--blue-soft:#c4cef4;--jade-soft:#abdbcd;--display:'Space Grotesk',Arial,sans-serif;--body:'DM Sans',Arial,sans-serif;--active:var(--orange);color-scheme:light;font-family:var(--body);font-synthesis:none;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}a{color:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}button{touch-action:manipulation}svg{display:block}button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}[hidden]{display:none!important}.app-shell{max-width:1376px;margin:auto;padding:0 48px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:25px 0;border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-symbol{font-family:var(--display);font-size:32px;letter-spacing:-4px;line-height:46px;transform:rotate(-6deg);height:46px;width:46px;text-align:center;background:var(--lime);border:1.5px solid var(--ink);border-radius:13px;font-weight:700;padding-right:4px}.brand-symbol>span{font-size:29px}.wordmark>span:last-child{font-size:12px;letter-spacing:.08em;font-weight:700;line-height:1.5}.header-actions{display:flex;align-items:center;gap:28px}.edition{font-size:12px;letter-spacing:.1em;color:var(--muted)}.button{border:1px solid var(--line);border-radius:11px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 18px;font-weight:600;font-size:14px;transition:background .16s,transform .16s}.button:hover{transform:translateY(-1px)}.button-quiet{background:transparent;border-color:#cdd2c7}.button-quiet:hover{background:#fff}.button-dark{color:#fff;background:var(--ink);border-color:var(--ink)}.button-dark:hover{background:#3b453a}.eyebrow{font-size:12px;font-weight:600;letter-spacing:.13em;line-height:1.4}.game-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:33px 0 30px}.game-heading .eyebrow{color:var(--muted)}h1{font-family:var(--display);font-size:clamp(34px,3.7vw,53px);font-weight:700;letter-spacing:-2.6px;line-height:1.12;margin:9px 0 8px}h1>span{color:var(--orange);display:inline-block;transform:rotate(-7deg);padding:0 5px;letter-spacing:-3px}.game-heading p{font-size:15px;color:var(--muted);margin:0;line-height:1.5}.game-heading>.button{flex:none;margin-top:15px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 302px;align-items:start;gap:26px}.board-panel{background:#e9ede3;border:1px solid #dbe1d4;border-radius:20px;overflow:hidden;min-width:0}.board-topline{padding:20px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.table-meta{display:flex;align-items:center;gap:13px}.round-label{font-size:12px;letter-spacing:.06em;font-weight:700;white-space:nowrap}.round-label>span{color:#868e80;font-weight:500;margin-left:4px}.divider{height:14px;width:1px;background:#c9d0c1}.mode-link{padding:5px 0;border:0;background:none;display:flex;align-items:center;gap:4px;font-size:13px;color:#616b5c}.mode-link svg{height:13px;width:13px}.turn-pill{font-size:12px;font-weight:700;color:var(--active);border:1px solid color-mix(in srgb,var(--active) 30%,transparent);background:color-mix(in srgb,var(--active) 8%,#fff);padding:7px 10px;border-radius:30px;max-width:55%;overflow-wrap:anywhere}.board-wrap{position:relative;max-width:653px;margin:0 auto;padding:4px 21px 0;width:100%}#board{overflow:visible;width:100%;height:auto;user-select:none;-webkit-user-select:none}.hex-cell{cursor:pointer;outline:none}.hex-face{fill:#f8f9f3;stroke:#d6ddcb;stroke-width:1.25;transition:fill .18s,stroke .18s}.hex-cell:hover .hex-face{stroke:#9ca78f;stroke-width:2}.hex-cell:focus-visible .hex-face{stroke:#252c25;stroke-width:3;stroke-dasharray:5 3}.hex-cell.legal .hex-face{fill:#f4f8e8;stroke:#a0ad89;stroke-width:1.7}.hex-cell.legal:hover .hex-face{fill:#e4efc7;stroke:#576842;stroke-width:2.5}.hex-cell.claim-preview .hex-face{stroke:var(--active);stroke-width:3}.hex-cell.claim-preview .claim-label{fill:var(--active)}.cell-label{font:10px var(--body);fill:#909887;pointer-events:none;opacity:.65}.center-symbol{font-family:Arial,sans-serif;font-size:28px;fill:#8d987d;pointer-events:none}.center-label{font:9px var(--body);font-weight:700;letter-spacing:.05em;fill:#8d987d}.claim-label{font:12px var(--body);font-weight:700;fill:#536449;pointer-events:none}.runner-shadow{fill:#111d10;opacity:.11}.runner-base{stroke-width:1;stroke:rgba(0,0,0,.06)}.runner-rim{fill:none;stroke:#fff;stroke-opacity:.37;stroke-width:1.4}.runner-symbol{font:23px var(--body);font-weight:700;fill:white;pointer-events:none}.selected-ring{fill:none;stroke:var(--ink);stroke-width:2;stroke-dasharray:3 4;animation:rotate-dash 20s linear infinite}.move-dot{fill:#758763;opacity:.65}.score-dot{fill:var(--active)}.score-dot-label{font:11px var(--body);font-weight:700;fill:white}.last-ring{fill:none;stroke:var(--ink);stroke-width:1.5;opacity:.28}.territory-dot{opacity:.65}.board-bottomline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 24px 17px;min-height:40px}.board-bottomline>span{font-size:14px;font-weight:500;line-height:1.5}.undo-button{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;background:none;border:0;padding:7px 0 7px 10px;flex:none}.undo-button svg{width:16px;height:16px}.board-legend{border-top:1px solid #d6ddcd;display:flex;align-items:center;justify-content:center;gap:21px;padding:15px 17px;color:#6c7663;flex-wrap:wrap}.board-legend>span{font-size:12px;display:flex;align-items:center;gap:7px;white-space:nowrap}.board-legend i{display:block;width:12px;height:12px;flex:none}.legend-dot{background:#8c9980;border:2px solid #b4bfaa;border-radius:50%}.legend-move{border:1.5px dashed #8c9980;border-radius:50%}.legend-territory{background:#c7d8ac;border:1px solid #94a87a;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}.legend-heart{font-size:19px;line-height:12px;font-weight:400}.game-sidebar{min-width:0}.turn-card{background:var(--ink);border-radius:17px;padding:22px;color:white;overflow:hidden}.turn-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.turn-card .eyebrow{font-size:12px;letter-spacing:.12em;color:#b0bbab}.local-tag{font-size:12px;letter-spacing:.06em;color:#b0bbab;border:1px solid #596052;padding:4px 6px;border-radius:4px}.turn-title{display:flex;align-items:center;gap:14px;margin:20px 0 14px}.player-emblem{display:flex;align-items:center;justify-content:center;color:var(--player-color,var(--active));border:1px solid color-mix(in srgb,var(--player-color,var(--active)) 45%,transparent);background:color-mix(in srgb,var(--player-color,var(--active)) 13%,#fff);height:38px;width:38px;border-radius:50%;font-size:21px;flex:none;font-weight:700}.player-emblem.large{height:51px;width:51px;font-size:28px;background:var(--active);border:0;color:white;box-shadow:inset 0 -3px 0 #0002}.turn-title h2{margin:0;font-family:var(--display);font-size:28px;line-height:1.13;letter-spacing:-.8px;overflow-wrap:anywhere}.turn-title h2>span{display:block;font-size:22px;font-weight:400;color:#c5ccbf;letter-spacing:-.6px;margin-top:3px}.turn-card>p{font-size:14px;line-height:1.55;color:#b9c2b2;margin:0 0 18px}.turn-step{border-top:1px solid #475041;padding-top:17px;display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.4;color:#e7ebdf}.step-number{display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:12px;width:23px;height:23px;border:1px solid #77836c;border-radius:50%;color:var(--lime);flex:none}.pass-button{margin-top:15px;width:100%;padding:10px;background:var(--lime);border:0;border-radius:8px;font-weight:600;font-size:14px}.score-section{margin-top:25px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.section-heading>h2{font-family:var(--display);font-size:18px;letter-spacing:-.6px;margin:0}.section-heading>h2>span{font-size:23px}.section-heading>span{font-size:12px;letter-spacing:.12em;color:var(--muted)}#scoreboard{display:flex;flex-direction:column;gap:9px}.score-card{display:flex;align-items:center;gap:11px;background:#fffdf9;border:1px solid var(--line);padding:13px 14px;border-radius:12px;position:relative;overflow:hidden}.score-card.active{border-color:var(--player-color);box-shadow:0 0 0 .5px var(--player-color)}.score-card.active:before{content:'';height:100%;width:3px;background:var(--player-color);position:absolute;top:0;left:0}.score-identity{min-width:0;flex:1}.score-name{font-weight:700;font-size:14px;display:flex;align-items:center;gap:7px;overflow-wrap:anywhere}.score-name>small{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--player-color);line-height:1.5}.score-track{display:flex;gap:4px;margin-top:7px}.score-track>i{width:12px;height:4px;border-radius:4px;background:#e9ede2}.score-track>i.filled{background:var(--player-color)}.score-value{font-family:var(--display);font-weight:500;font-size:29px;letter-spacing:-1px;line-height:1;flex:none}.score-value>span{font:12px var(--body);letter-spacing:0;color:#939b8b;margin-left:3px}.quick-tip{display:flex;gap:10px;margin-top:22px;padding:17px 0 0;border-top:1px solid var(--line)}.tip-symbol{font-size:25px;color:#617a3c;line-height:1.2}.quick-tip h3{font-size:14px;margin:0 0 6px;font-weight:700}.quick-tip p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}.text-button{font-size:13px;font-weight:600;border:0;border-bottom:1px solid #a2aa95;padding:0 0 2px;background:none;display:inline-flex;align-items:center;gap:9px}.quick-tip .text-button{margin-top:10px}.move-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;padding:26px 0 24px}.move-guide>div{display:flex;gap:12px;align-items:flex-start}.guide-number{font-family:var(--display);font-size:13px;line-height:1;display:flex;align-items:center;justify-content:center;height:29px;width:29px;flex:none;border:1px solid #d2d8c8;border-radius:50%;color:#7d8970}.move-guide h3{font-family:var(--display);font-size:16px;letter-spacing:-.3px;margin:1px 0 5px}.move-guide p{font-size:13px;color:var(--muted);margin:0;line-height:1.5}.move-history{border-top:1px solid var(--line);padding:16px 0;color:var(--muted);font-size:13px}.move-history summary{cursor:pointer;width:100%;font-weight:600}.move-history summary span{float:right;font-weight:400;font-size:12px}.move-history ol{list-style:none;margin:14px 0 0;padding:0;max-height:250px;overflow:auto}.move-history li{padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.6}.journal-number{display:inline-block;font-family:var(--display);color:#9ba28f;width:38px}.journal-player{font-weight:700;margin-right:8px;color:var(--player-color)}footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:23px 0 27px;color:#919787;font-size:12px;letter-spacing:.07em}footer>span:first-child{font-family:var(--display);font-weight:700;color:#66715c}footer>span:nth-child(2){letter-spacing:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
dialog{border:1px solid #d5dccb;border-radius:22px;background:var(--paper);padding:28px;width:min(440px,calc(100% - 28px));max-height:90dvh;overflow:auto;color:var(--ink);box-shadow:0 24px 120px #14201633}dialog::backdrop{background:#19211866;backdrop-filter:blur(5px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.dialog-top .eyebrow{color:var(--muted);font-size:12px}.icon-button{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;background:transparent;border:1px solid #d7ddce;border-radius:50%;font-size:24px;line-height:1;font-weight:400;padding:0 0 2px}.icon-button:hover{background:white}dialog h2{font-family:var(--display);font-size:32px;font-weight:600;line-height:1.13;letter-spacing:-1.3px;margin:0 0 12px}dialog p{font-size:16px;line-height:1.65;color:#6a7460;margin:0 0 20px}.player-count{border:0;padding:0;display:flex;gap:12px;margin:24px 0}.player-count legend{font-size:14px;font-weight:600;margin-bottom:10px}.player-count label{flex:1;position:relative;cursor:pointer}.player-count input{position:absolute;opacity:0}.player-count label>span{display:flex;align-items:center;justify-content:center;gap:10px;padding:15px;border:1px solid #d5dbcd;border-radius:10px;font-size:15px;background:#fffdf9}.player-count b{font-family:var(--display);font-size:26px;font-weight:500}.player-count input:checked+span{background:var(--lime);border-color:#637734}.player-count input:focus-visible+span{outline:3px solid var(--blue);outline-offset:3px}.player-inputs{display:flex;flex-direction:column;gap:12px}.name-field{display:flex;align-items:center;gap:12px}.name-field .player-emblem{height:38px;width:38px}.name-field input{min-width:0;width:100%;border:1px solid #d5dbcd;background:#fffdf9;border-radius:9px;padding:11px 12px;font-size:15px}.setup-note{font-size:13px;margin-top:19px;margin-bottom:20px}.start-button{width:100%;justify-content:space-between;font-size:16px;padding:15px 20px}.rules-dialog{width:min(650px,calc(100% - 28px));padding:32px}.rules-dialog h2{font-size:38px;letter-spacing:-1.6px}.rules-intro{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 25px}.rules-intro span{font-size:12px;padding:6px 10px;background:#e8eddd;border:1px solid #d6dec6;border-radius:20px}.rules-dialog section{border-top:1px solid var(--line);padding:22px 0 0;margin-top:20px}.rules-dialog h3{font-family:var(--display);font-size:19px;letter-spacing:-.6px;margin:0 0 12px}.rules-dialog p{font-size:16px;line-height:1.75;margin-bottom:13px}.rules-dialog strong{font-weight:650;color:var(--ink)}.link-example{display:flex;align-items:center;justify-content:center;padding:16px;background:#e9ede3;border-radius:12px;margin:10px 0 18px}.example-runner{background:var(--orange);width:44px;height:44px;color:white;border:4px double #fff6;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:19px}.example-line{width:32px;border-top:2px dashed #9cae82}.example-hex{display:flex;align-items:center;justify-content:center;width:53px;height:59px;background:var(--orange-soft);color:#933912;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);font-family:var(--display);font-size:21px}.rules-note{background:#e9ede3;padding:20px!important;border-radius:12px}.rules-done{width:100%;margin-top:22px}.winner-symbol{font-size:78px;color:var(--active);text-align:center;margin:6px 0 18px;line-height:1}#win-dialog>h2,#win-dialog>p{text-align:center}.final-scores{display:flex;gap:10px;margin:23px 0}.final-score{flex:1;text-align:center;min-width:0;background:#fffdf9;border:1px solid var(--line);padding:14px 6px;border-radius:10px}.final-score b{font-family:var(--display);display:block;font-size:30px;color:var(--player-color);font-weight:500}.final-score span{display:block;font-size:13px;overflow-wrap:anywhere}.view-board{display:block;margin:18px auto 0;font-size:13px}noscript{display:block;padding:25px;color:#a42212;background:#fff}.hex-cell.claim-preview .hex-face{filter:brightness(1.015)}
@keyframes rotate-dash{to{stroke-dashoffset:-140}}
@media(min-width:1500px){.app-shell{max-width:1410px}.game-layout{grid-template-columns:minmax(0,1fr) 322px}.board-wrap{max-width:692px}.game-heading{padding:37px 0}.turn-card{padding:25px}.score-card{padding:15px 16px}}
@media(max-width:1100px){.app-shell{padding:0 28px}.game-layout{gap:20px;grid-template-columns:minmax(0,1fr) 276px}.board-wrap{padding:7px 5px}.board-topline{padding:17px 16px 0}.board-bottomline{padding:4px 16px 16px}.board-legend{gap:13px}.turn-card{padding:20px}.turn-title h2{font-size:26px}.quick-tip{margin-top:19px}.move-guide{gap:16px}.move-guide>div{gap:9px}.move-guide p{font-size:12px}.edition{display:none}h1{font-size:43px}.game-heading p{font-size:14px}.table-meta{gap:9px}.turn-pill{font-size:12px}}
@media(max-width:800px){.app-shell{padding:0 22px}.game-layout{grid-template-columns:minmax(0,1fr) 234px;gap:17px}.turn-card{padding:16px}.local-tag{display:none}.turn-title{gap:10px}.turn-title h2{font-size:23px}.turn-title h2>span{font-size:20px}.player-emblem.large{width:42px;height:42px;font-size:24px}.turn-card>p{font-size:13px}.turn-step{font-size:12px}.score-card{padding:12px 10px;gap:9px}.score-value{font-size:25px}.score-name{font-size:13px}.score-name>small{display:none}.score-track>i{width:10px}.score-card>.player-emblem{height:32px;width:32px;font-size:18px}.quick-tip p{font-size:12px}.board-legend{gap:10px;padding:12px 8px}.board-legend>span{font-size:12px}.board-bottomline>span{font-size:12px}.board-topline{padding:14px 13px 0;gap:4px}.round-label{font-size:12px}.mode-link{font-size:12px}.turn-pill{font-size:12px;padding:5px 7px}.divider{display:none}.game-heading .eyebrow{font-size:12px}h1{font-size:36px;letter-spacing:-1.8px}.game-heading{gap:15px}.game-heading p{font-size:13px}.move-guide{gap:10px}.guide-number{width:24px;height:24px;font-size:12px}.move-guide h3{font-size:14px}.move-guide p{font-size:12px}.quick-tip h3{font-size:13px}}
@media(max-width:680px){.app-shell{padding:0 17px}.site-header{padding:18px 0}.brand-symbol{height:40px;width:40px;font-size:28px;line-height:40px;border-radius:11px}.wordmark{gap:9px}.wordmark>span:last-child{font-size:12px}.button-quiet{font-size:12px;padding:9px 11px;min-height:40px;gap:6px}.button-quiet svg{width:16px;height:16px}.game-heading{padding:25px 0 23px;gap:12px;align-items:flex-start}.game-heading .eyebrow{font-size:12px;letter-spacing:.09em;max-width:220px}h1{font-size:clamp(28px,6.5vw,41px);letter-spacing:-1.6px;margin:8px 0 7px}h1>span{letter-spacing:-2px;padding:0 3px}.game-heading p{font-size:12px;max-width:270px}.game-heading>.button{font-size:0;width:39px;height:39px;min-height:39px;padding:0;margin-top:21px;border-radius:10px;gap:0}.game-heading>.button svg{height:20px;width:20px}.game-layout{display:flex;flex-direction:column;gap:19px}.board-panel{width:100%;border-radius:15px}.board-wrap{padding:0 6px;max-width:555px}.board-topline{padding:15px 16px 0}.round-label{font-size:12px}.mode-link{font-size:12px}.turn-pill{font-size:12px;padding:6px 9px}.table-meta{gap:12px}.divider{display:block}.board-bottomline{padding:0 16px 14px;gap:7px}.board-bottomline>span{font-size:13px}.undo-button{font-size:12px}.board-legend{padding:12px 10px;gap:14px}.board-legend>span{font-size:12px}.game-sidebar{width:100%;display:flex;flex-direction:column}.turn-card{display:none}.score-section{margin-top:0}.section-heading{margin-bottom:10px}.section-heading>h2{font-size:17px}.section-heading>h2>span{font-size:20px}#scoreboard{flex-direction:row;gap:8px}.score-card{flex:1;min-width:0;flex-wrap:wrap;gap:8px;padding:12px 10px}.score-card>.player-emblem{height:25px;width:25px;font-size:14px}.score-identity{flex-basis:calc(100% - 35px)}.score-name{font-size:12px}.score-value{font-size:26px;padding-left:1px}.score-track{gap:3px}.score-track>i{width:7px;height:3px}.score-value>span{font-size:12px}.quick-tip{padding:14px 0 0;margin-top:17px;gap:11px}.tip-symbol{font-size:25px}.quick-tip h3{font-size:14px}.quick-tip p{font-size:13px}.quick-tip .text-button{font-size:12px;margin-top:7px}.move-guide{grid-template-columns:1fr;gap:15px;padding:21px 0}.move-guide>div{gap:12px;align-items:center}.guide-number{height:28px;width:28px;font-size:12px}.move-guide h3{font-size:15px;margin:0 0 3px}.move-guide p{font-size:13px}.move-guide>div>div{min-width:0}footer{font-size:12px;gap:12px;padding:20px 0}footer>span:last-child{display:none}dialog{padding:23px}.rules-dialog{padding:23px}.rules-dialog h2{font-size:31px}.rules-dialog h3{font-size:18px}.rules-dialog p{font-size:16px}.rules-intro span{font-size:12px}.dialog-top .eyebrow{font-size:12px}.cell-label{font-size:12px}}
@media(max-width:370px){.app-shell{padding:0 11px}h1{font-size:28px}.game-heading p{font-size:12px}.board-legend{gap:8px}.board-legend>span{font-size:12px}.turn-pill{font-size:12px}.table-meta{gap:8px}.score-card{padding:10px 7px;gap:6px}.score-identity{flex-basis:calc(100% - 31px)}.score-name{font-size:12px}.score-track{gap:2px}.score-track>i{width:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:white}.app-shell,#setup-dialog,#win-dialog,.icon-button,.rules-done{display:none!important}#rules-dialog{display:block;position:static;border:0;box-shadow:none;max-height:none;width:100%;padding:0;margin:0}#rules-dialog p{font-size:11pt}#rules-dialog h2{font-size:25pt}.rules-dialog section{break-inside:avoid}dialog::backdrop{display:none}}

.board-pass{display:block;width:calc(100% - 32px);margin:0 16px 16px}.score-name>small{display:none}.turn-card .eyebrow{font-size:12px}.local-tag{font-size:12px;padding:4px;letter-spacing:0}

/* Four-seat setup and team play */
#setup-dialog{width:min(570px,calc(100% - 28px))}.mode-field{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;margin-top:18px}select{font:inherit;min-width:0;border:1px solid #ccd4c1;background:#fffdf9;color:var(--ink);border-radius:8px;padding:10px;min-height:42px}select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}select:disabled{opacity:.45}.player-count{margin:18px 0}.player-count label>span{padding:10px}.seat-config{background:#fffdf9;border:1px solid var(--line);border-radius:12px;padding:12px}.seat-options{display:flex;gap:12px;align-items:end;margin:10px 0 0 50px}.seat-options>label{display:flex;flex-direction:column;gap:5px;font-size:14px;flex:1;min-width:0}.team-seat{font-size:12px;font-weight:700;color:var(--player-color);padding-bottom:13px;white-space:nowrap}.difficulty-guide{font-size:14px;margin:16px 0}.team-scores{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.team-total{background:#e9ede3;border:1px solid #cdd7c2;padding:12px;border-radius:10px;min-width:0}.team-total strong{font-size:14px;display:block}.team-total>span{display:block;font-family:var(--display);font-size:25px;margin:5px 0}.team-total small{font-size:12px;overflow-wrap:anywhere;display:block}.seat-status{font-size:12px;color:var(--muted);margin-top:3px;text-transform:capitalize}.ai-control{margin:0 16px 16px;background:#fffdf9}.score-card{padding-top:11px;padding-bottom:11px}#final-scores{flex-wrap:wrap}.final-score{min-width:70px}
@media(max-width:680px){#scoreboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.score-card{flex-wrap:nowrap}.score-identity{flex:1}.score-name{font-size:14px}.score-value{font-size:24px}.seat-options{margin-left:0}.board-legend{gap:10px}.player-count label>span{gap:5px;padding:10px 5px}footer{flex-wrap:wrap}}

/* Shared rooms and a larger touch-friendly board */
.online-panel{background:#fffdf9;border:1px solid var(--line);padding:22px;border-radius:16px;margin-bottom:24px}.room-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.room-heading h2{font-family:var(--display);font-size:30px;letter-spacing:2px;margin:5px 0}.room-heading p{font-size:14px;margin:0}.room-actions{display:flex;gap:8px;flex-wrap:wrap}.invite-field{display:flex;flex-direction:column;gap:6px;font-size:14px;margin:16px 0 8px}.invite-field input,.mode-field input{border:1px solid #ccd4c1;background:#f7f8f2;border-radius:8px;padding:11px;font:inherit;width:100%;min-width:0}.room-access{font-size:13px;line-height:1.5;color:var(--muted)}.room-seats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:17px 0}.room-seat{display:flex;align-items:center;text-align:left;gap:9px;border:1px solid var(--player-color);background:#fff;padding:12px;border-radius:10px;min-width:0}.room-seat:disabled{opacity:.75}.room-seat>span:last-child{min-width:0}.room-seat strong{display:block;font-size:14px;overflow-wrap:anywhere}.room-seat small{display:block;font-size:12px;color:var(--muted);margin-top:4px;text-transform:capitalize}.room-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.room-footer>span{font-size:14px;flex:1}.connection-error,.form-error{color:#a73520}.form-error{font-size:14px;margin:12px 0}.form-error:empty{display:none}.board-wrap.zoomed{max-height:640px;overflow:auto;max-width:100%;padding:0}.board-wrap.zoomed #board{width:850px;max-width:none;min-width:850px}.board-bottomline{flex-wrap:wrap}.board-bottomline>#board-hint{flex:1;min-width:160px}.header-actions{gap:10px}#host-seat-field[hidden]{display:none}#join-dialog .start-button{margin-top:22px}
@media(max-width:680px){.online-panel{padding:16px}.room-heading{align-items:flex-start;flex-wrap:wrap}.room-heading h2{font-size:26px}.room-seats{grid-template-columns:repeat(2,minmax(0,1fr))}.room-seat{padding:10px}.room-seat .player-emblem{height:28px;width:28px;font-size:17px}.room-actions .button{padding:8px 10px;font-size:13px}.header-actions{gap:6px}.wordmark>span:last-child{display:none}.board-wrap.zoomed{max-height:520px}.invite-field input{font-size:14px}.board-bottomline>#board-hint{flex-basis:100%}.board-bottomline{justify-content:flex-end}.board-bottomline .undo-button{padding:7px 10px}.room-access{font-size:13px}}
