@charset "UTF-8";
/* Online rooms share the local game's design tokens and components. */
:root{--paper:#f5fafc;--ink:#243e50;--green:#f4d69b;--dark-green:#4e7186;--coral:#f27e67;--muted:#5e7686;--line:#e3edf2;--white:#fdfefe;font-family:"Segoe UI","Yu Gothic UI","Hiragino Kaku Gothic ProN",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b65c20;outline-offset:4px}h1:focus{outline:none}button{border:0}button,input,select{min-height:40px}.header{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:28px 40px;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:850;font-size:23px;letter-spacing:-.8px}.brand small{display:block;font-size:8px;letter-spacing:1.6px;margin-top:5px;font-weight:650}.brand-icon{background:var(--green);border:1.5px solid var(--ink);border-radius:12px;display:grid;grid-template-columns:repeat(2,10px);gap:4px;place-content:center;width:44px;height:46px;transform:rotate(-7deg)}.brand-icon i{width:10px;height:10px;border:1px solid var(--ink);border-radius:50%;background:var(--coral)}.brand-icon i:nth-child(2){background:#edc64d}.brand-icon i:nth-child(3){background:#4b7dc5}.brand-icon i:nth-child(4){background:var(--white)}.header-tools{display:flex;align-items:center;gap:20px}.mock-badge{font-size:9px;letter-spacing:1.4px;border:1px solid var(--line);border-radius:30px;padding:8px 10px}.text-button{border:0;background:none;padding:8px 0;font-size:12px;text-decoration:underline;text-underline-offset:4px}.container{max-width:1200px;padding:0 40px;margin:auto}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;display:block}.hero{display:grid;grid-template-columns:1.12fr 1fr;gap:55px;align-items:center;padding:65px 0 74px}.hero .eyebrow{display:flex;align-items:center;gap:10px;letter-spacing:1.5px}.spark{font-size:25px}.hero h1{font-size:54px;letter-spacing:-2.5px;line-height:1.35;margin:24px 0;font-weight:850}.underline{position:relative;color:var(--dark-green);z-index:0;white-space:nowrap}.underline:after{content:"";position:absolute;bottom:2px;left:0;right:0;height:13px;background:var(--green);z-index:-1;transform:rotate(-1deg)}.intro{font-size:13px;line-height:2.2;color:var(--muted);margin-bottom:28px}.home-actions{display:flex;flex-direction:column;gap:12px;max-width:355px}.button{border:1.5px solid var(--ink);border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 20px;font-weight:750;font-size:14px;line-height:1.5;transition:transform .15s,box-shadow .15s}.button:not(:disabled):hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--ink)}.button.primary{background:var(--green);box-shadow:3px 3px 0 var(--ink)}.button.secondary{background:#eee5f7}.button span{font-size:22px}.full{width:100%}.pills{display:flex;flex-wrap:wrap;gap:20px;font-size:10px;margin-top:25px;color:var(--muted)}.pills span:before{content:'✓';color:var(--dark-green);margin-right:5px}.local-note{font-size:10px;line-height:1.8;color:var(--muted);margin-top:17px}.hero-art{position:relative;padding:30px 10px 35px;isolation:isolate}.hero-art:before{content:'';position:absolute;inset:-35px -30px;background:radial-gradient(circle,#dbe9f1 1px,transparent 1px);background-size:14px 14px;z-index:-2;mask-image:radial-gradient(ellipse,black 25%,transparent 70%)}.demo-board{background:var(--white);border:2px solid var(--ink);padding:22px;border-radius:20px;transform:rotate(5deg);box-shadow:10px 10px 0 #e8f2f8;max-width:390px;margin:auto}.demo-title{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.8px;font-weight:750}.demo-secret{display:flex;justify-content:center;gap:16px;margin:24px 0}.demo-secret .peg{background:var(--ink);color:var(--paper);border:1px solid var(--ink);width:48px;height:48px;font-size:20px}.demo-divider{border-top:1px dashed #d6e4ec;margin-bottom:18px}.peg{width:36px;height:36px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #243e5055;border-radius:50%;background:var(--peg);color:var(--peg-ink);box-shadow:inset 0 -3px 0 #00000012;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums}.peg.empty{background:#f1f6f9;box-shadow:none;border:1.5px dashed #a6c0d1;color:#7e9aaa;font-size:18px}.peg-row{display:flex;align-items:center;gap:9px}.demo-row{display:flex;align-items:center;gap:15px;padding:12px 0}.demo-number{font-size:10px;color:var(--muted)}.demo-score{font-size:11px;line-height:1.7;font-weight:750;margin-left:auto;white-space:nowrap}.demo-row.last{background:#f0f8fc;margin:3px -9px;padding:12px 9px;border-radius:8px}.demo-success{text-align:center;font-size:11px;margin-top:17px;font-weight:700}.art-label{position:absolute;right:-5px;top:6px;font-size:9px;letter-spacing:1.5px;transform:rotate(5deg);background:var(--green);padding:10px 13px;border:1px solid var(--ink);border-radius:5px;z-index:2}.art-note{position:absolute;bottom:-14px;right:10px;font-size:12px;transform:rotate(-6deg);font-weight:700}.art-star{position:absolute;left:-15px;bottom:2px;font-size:55px;color:var(--coral);transform:rotate(10deg)}.how{border-top:1px solid var(--ink);padding:25px 0 50px}.section-title{display:flex;align-items:center;gap:25px}.section-title h2{font-size:20px;letter-spacing:-.5px}.tiny-grid{margin-left:auto;font-size:40px;transform:rotate(-10deg)}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;margin-top:18px}.steps article{position:relative;padding:7px 0 0 42px}.step-num{position:absolute;left:0;top:8px;font-size:11px;font-weight:750;background:var(--green);border-radius:50%;width:28px;height:28px;display:inline-grid;place-items:center}.steps h3{font-size:15px;margin:8px 0 12px}.steps p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}.page-footer{max-width:1120px;margin:0 auto;border-top:1px solid var(--line);padding:25px 0 30px;display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted)}.page-footer span:last-child{letter-spacing:1.6px}.game,.setup{padding:20px 0 55px;min-height:75vh}.game-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.game-top>.eyebrow{margin-left:auto;margin-right:15px}.tag{font-size:10px;background:#eee5f7;border-radius:30px;padding:7px 11px;white-space:nowrap}.page-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0}.page-heading h1{font-size:34px;letter-spacing:-1px;margin:14px 0}.page-heading p:not(.eyebrow){font-size:13px;color:var(--muted)}.heading-art{font-size:72px;color:var(--dark-green);margin-right:20px}.setup-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:28px;align-items:start}.panel{background:#fff7ed;border:1px solid var(--line);border-radius:14px;padding:25px;margin-bottom:22px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.panel h2{font-size:17px;margin:0}.panel-heading h2{display:flex;align-items:center;gap:10px}.step-num.inline{position:static}.field-label{display:block;font-size:12px;font-weight:700;margin:20px 0 10px}.number-picker{display:grid;grid-template-columns:repeat(8,1fr);gap:7px}.number-picker button{background:var(--paper);border:1px solid var(--line);border-radius:7px;font-weight:700;font-size:17px;min-height:44px}.number-picker button small{font-size:9px;margin-left:2px}.number-picker [aria-pressed=true]{background:var(--green);border-color:var(--ink);box-shadow:2px 2px 0 var(--ink)}.name-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:23px}.name-field{display:flex;align-items:center;gap:8px;min-width:0}.avatar{width:32px;height:32px;display:grid;place-items:center;background:#e6f3fb;border-radius:50%;font-size:10px;font-weight:800;flex-shrink:0}.avatar-1,.avatar-5{background:#f2d3c6}.avatar-2,.avatar-6{background:#d0e1ec}.avatar-3,.avatar-7{background:#e7d9ea}.name-field input{width:100%;min-width:0;padding:8px 10px;border:1px solid var(--line);background:var(--paper);border-radius:6px;font-size:12px}.small-note{font-size:11px;color:var(--muted);line-height:1.9;margin:17px 0 0}.range-label{display:flex;align-items:center;justify-content:space-between;font-size:12px}.range-label strong{font-size:25px}.range-label small{font-size:11px;font-weight:500;color:var(--muted)}input[type=range]{width:100%;accent-color:var(--dark-green);cursor:pointer}.range-ends{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:22px}.setup-palette{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.color-option{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:11px 3px;display:flex;align-items:center;flex-direction:column;gap:7px;position:relative}.color-option>span:nth-child(2){font-size:9px}.color-option i{position:absolute;right:5px;top:3px;font-size:11px;font-style:normal;color:var(--muted)}.color-option:not(.chosen){background:transparent;border-style:dashed}.color-option:not(.chosen) .peg{opacity:.38}.color-option.chosen{border-color:#9bbaca;background:#f2f9fc}.notice{color:#a44432;font-size:11px;line-height:1.7}.notice:empty{display:none}.setup-summary{position:sticky;top:22px}.summary-panel{background:#eee5f7;border-color:#d8cce5}.summary-panel h2{font-size:19px;margin:18px 0 28px}.summary-panel select{width:100%;background:var(--white);border:1px solid #adc8d9;border-radius:6px;padding:10px;font-size:13px}.secret-preview{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:26px 0}.summary-line{display:flex;justify-content:space-between;font-size:12px;padding:12px 0;border-bottom:1px solid var(--line)}.summary-panel .button{margin-top:24px}.summary-footnote{display:block;text-align:center;font-size:10px;color:var(--muted);margin-top:18px}.game-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:55px;padding-top:35px;align-items:start}.game-side h1{font-size:34px;letter-spacing:-1px;line-height:1.45;margin:15px 0}.muted{font-size:12px;line-height:2;color:var(--muted)}.players{display:grid;gap:8px;margin-top:25px}.player{display:flex;align-items:center;gap:11px;background:var(--white);border:1px solid var(--line);border-radius:9px;padding:11px 13px;min-width:0}.player>div{min-width:0}.player strong{font-size:12px;display:block;overflow-wrap:anywhere}.player small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.player.active,.player.winner{border-color:var(--dark-green);background:#e1eddf}.turn-arrow{margin-left:auto;font-size:20px}.rule-card{background:#fff0d9;border:1px solid var(--line);padding:20px;border-radius:10px;margin-top:24px}.rule-card p{display:flex;gap:18px;align-items:center;font-size:11px;margin:16px 0}.rule-card b{font-size:12px;min-width:62px}.hit-text{color:#4e7186}.blow-text{color:#99543d}.rule-card small{font-size:10px;color:var(--muted);line-height:1.8}.secret-card{padding:24px 0;text-align:center}.secret-card .secret-preview{gap:7px;margin:16px 0}.secret-card .peg{width:33px;height:33px}.secret-card>span:last-child{font-size:10px;color:var(--muted)}.answer-panel{background:#fff7ed;border:1.5px solid var(--ink);border-radius:15px;box-shadow:6px 6px 0 #e8f2f8;padding:25px}.answer-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.answer-heading h2{font-size:19px;margin:11px 0 0;overflow-wrap:anywhere}.answer-heading h2 small{display:inline-block;font-size:11px;font-weight:500;margin-left:10px}.turn-chip{padding:8px 13px;background:var(--green);border-radius:30px;font-size:11px;white-space:nowrap}.answer-slots{display:flex;gap:10px;padding-top:25px}.answer-slot{flex:1;min-width:0;background:var(--paper);border:1.5px solid var(--line);border-radius:10px;min-height:103px;display:flex;flex-direction:column;align-items:center;gap:12px;padding:10px 0 13px}.answer-slot.selected{border-color:var(--dark-green);background:#f9e6bb;box-shadow:0 0 0 1px var(--dark-green)}.slot-number{font-size:9px;letter-spacing:1.5px;color:var(--muted)}.answer-slot .peg{width:43px;height:43px;font-size:12px}.empty-slot{display:grid;place-items:center;width:43px;height:43px;font-size:24px;color:#8caabb;border:1.5px dashed #adc8d9;border-radius:50%}.answer-help{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);gap:10px;margin:10px 0}.answer-help b{color:var(--ink)}.answer-help .text-button{font-size:10px}.game-palette{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.palette-button{display:flex;align-items:center;flex-direction:column;gap:8px;background:transparent;border:1px solid transparent;border-radius:8px;position:relative;padding:7px 0}.palette-button:hover{background:#f2f9fc}.palette-button>span:nth-child(2){font-size:8px;white-space:nowrap;letter-spacing:-.3px}.palette-button .peg{width:34px;height:34px}.palette-button.used{background:#f0f7fb;border-color:#dfecf3}.palette-button i{position:absolute;right:0;top:0;font-style:normal;background:var(--ink);color:var(--white);border-radius:50%;width:16px;height:16px;display:grid;place-items:center;font-size:9px;border:1px solid var(--white)}.swap-note{font-size:10px;color:var(--muted);line-height:1.8;margin:15px 0 21px}.submit:disabled{background:#ecf3f8;opacity:.65;box-shadow:none}.history-panel{margin-top:32px}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.history-heading h2{font-size:15px}.history-heading h2>span{display:inline-block;padding:4px 7px;border-radius:6px;background:#eff5fa;font-size:10px;margin-left:5px}.history-heading select{font-size:10px;max-width:155px;border:1px solid var(--line);border-radius:6px;background:var(--white);padding:7px}.history-table{border:1px solid var(--line);border-radius:10px;background:var(--white);overflow:hidden}.history-labels,.history-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(160px,1.55fr) 83px;gap:12px;align-items:center;padding:14px}.history-labels{font-size:9px;background:#f0f7fb;color:var(--muted)}.history-labels span:last-child{text-align:right}.history-row{border-top:1px solid var(--line);min-height:66px}.history-player{display:flex;align-items:center;gap:10px;min-width:0}.history-player>span{font-size:10px;color:var(--muted)}.history-player strong{font-size:10px;overflow-wrap:anywhere}.history-row .peg{width:27px;height:27px;font-size:8px}.history-row .peg-row{gap:5px}.score{display:flex;justify-content:flex-end;gap:6px}.score>span{min-width:35px;border-radius:6px;padding:6px 5px;text-align:center;font-size:16px;font-weight:800}.score small{font-size:8px;margin-left:3px}.score .hit{background:#e9f5fb}.score .blow{background:#f4dfcf}.history-row.solved{background:#f0f9fd}.empty-history{padding:25px 10px 35px;text-align:center;border:1px dashed #dbe7ee;border-radius:12px;color:var(--muted)}.empty-history>span{font-size:36px;display:block;color:#7399ae;margin-bottom:8px}.empty-history b{font-size:12px;font-weight:500}.empty-history p{font-size:10px;margin-top:10px}.result-panel{background:#f2f7fb;border:1.5px solid var(--ink);border-radius:15px;text-align:center;padding:28px;box-shadow:6px 6px 0 #e8f2f8}.result-panel.win{background:#edf7fc}.result-star{display:block;font-size:52px;color:var(--dark-green);margin-bottom:10px}.result-panel h2{font-size:32px;overflow-wrap:anywhere;line-height:1.4}.result-panel p{font-size:12px;color:var(--muted)}.result-code{display:flex;justify-content:center;gap:12px;margin:25px 0 30px}.result-panel .text-button{margin-top:15px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{max-width:440px;width:calc(100% - 36px);border:1.5px solid var(--ink);border-radius:14px;background:var(--paper);padding:28px;color:var(--ink);box-shadow:6px 6px 0 #243e5040}dialog::backdrop{background:#243e5077}dialog h2{font-size:20px}dialog p{font-size:12px;line-height:1.8;color:var(--muted)}.dialog-actions{display:flex;gap:12px;margin-top:25px}.dialog-actions .button{font-size:12px;padding:12px}
@media(min-width:1100px){.play-column{max-width:690px}}
@media(max-width:1000px){.hero{gap:25px}.hero h1{font-size:43px}.demo-board{padding:17px}.demo-row{gap:10px}.demo-row .peg{width:30px;height:30px}.game-layout{grid-template-columns:250px minmax(0,1fr);gap:28px}.answer-panel{padding:20px}.game-palette{grid-template-columns:repeat(4,1fr)}.history-labels,.history-row{grid-template-columns:85px minmax(0,1fr) 72px;gap:8px;padding:12px 10px}.history-row .peg{width:23px;height:23px}.history-row .peg-row{gap:3px}.score>span{min-width:31px}.answer-slot .peg,.empty-slot{width:34px;height:34px}.answer-slot{min-height:92px}.setup-layout{gap:20px}.panel{padding:20px}.number-picker{gap:4px}.name-fields{grid-template-columns:1fr}.brand{font-size:21px}.demo-secret{gap:12px}}
@media(max-width:760px){.header{padding:20px 24px}.container{padding:0 24px}.hero{grid-template-columns:1fr;padding:36px 0 50px;gap:35px}.hero h1{font-size:49px}.intro br{display:none}.home-actions{max-width:none}.hero-art{width:100%;max-width:380px;justify-self:center;margin-bottom:20px}.demo-board{padding:22px}.demo-row .peg{width:36px;height:36px}.demo-row{gap:15px}.hero-art:before{inset:-20px 0}.steps{grid-template-columns:1fr;gap:25px}.section-title{gap:15px}.section-title h2{font-size:18px}.page-footer{margin:0 24px;font-size:9px}.page-footer span:last-child{font-size:8px;letter-spacing:.5px}.header-tools{gap:3px;flex-direction:column;align-items:flex-end}.mock-badge{font-size:7px;padding:5px 8px}.header-tools .text-button{font-size:10px;min-height:30px}.setup-layout{grid-template-columns:1fr}.setup-summary{position:static}.name-fields{grid-template-columns:1fr 1fr}.page-heading h1{font-size:28px}.heading-art{font-size:48px;margin-right:0}.setup-main .panel:last-child{margin-bottom:0}.game-layout{grid-template-columns:1fr;gap:16px;padding-top:20px}.game-side h1{font-size:25px;margin:10px 0}.game-side h1 br{display:none}.game-side>.muted,.game-side>.eyebrow{display:none}.players{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:16px}.player{padding:9px 10px}.player strong{font-size:11px}.player small{font-size:8px}.rule-card{padding:12px 15px;margin-top:14px;display:flex;flex-wrap:wrap;gap:8px 18px}.rule-card>.eyebrow{width:100%;font-size:9px}.rule-card p{margin:3px 0;gap:8px;font-size:10px}.rule-card b{font-size:10px;min-width:auto}.rule-card small{display:none}.secret-card{display:none}.play-column{min-width:0}.game-top>.eyebrow{display:none}.game-palette{grid-template-columns:repeat(8,minmax(0,1fr))}.answer-slot .peg,.empty-slot{width:42px;height:42px}.history-labels,.history-row{grid-template-columns:minmax(75px,1fr) minmax(160px,1.5fr) 78px;padding:13px;gap:8px}.history-row .peg{width:26px;height:26px}.history-row .peg-row{gap:4px}.game{padding-bottom:35px}.answer-heading h2{font-size:17px}.game-side .players:has(.player:nth-child(5)){grid-template-columns:repeat(4,minmax(0,1fr))}.players:has(.player:nth-child(5)) .player{flex-direction:column;text-align:center;padding:9px 5px;gap:5px}.players:has(.player:nth-child(5)) .turn-arrow{display:none}}
@media(max-width:480px){.header{padding:17px 18px;gap:8px}.brand{font-size:17px;gap:9px}.brand small{font-size:5.6px;letter-spacing:.7px}.brand-icon{width:35px;height:38px;border-radius:9px}.container{padding:0 20px}.hero h1{font-size:40px;letter-spacing:-2px}.hero .eyebrow{font-size:9px;letter-spacing:.7px}.intro{font-size:12px}.pills{gap:15px}.hero-art{max-width:320px}.demo-board{padding:20px 17px}.demo-row{gap:10px}.demo-row .peg{width:32px;height:32px}.demo-row .peg-row{gap:8px}.demo-secret .peg{width:43px;height:43px}.art-label{font-size:8px;right:0}.art-star{font-size:43px;left:-5px}.art-note{font-size:10px;right:6px}.page-footer{margin:0 20px}.section-title .eyebrow{font-size:8px;letter-spacing:1px}.section-title h2{font-size:16px}.name-fields{grid-template-columns:1fr}.page-heading h1{font-size:25px}.heading-art{display:none}.panel{padding:18px}.number-picker button{font-size:15px}.number-picker button small{display:none}.setup-palette{gap:6px}.color-option>span:nth-child(2){font-size:8px}.game-layout{padding-top:8px}.game-side h1{font-size:22px}.game-top .text-button{font-size:11px}.answer-panel{padding:17px 14px;box-shadow:4px 4px 0 #e8f2f8}.answer-heading{gap:8px}.answer-heading h2{font-size:15px}.answer-heading h2 small{font-size:10px;margin-left:5px}.answer-heading .eyebrow{font-size:9px}.turn-chip{font-size:9px;padding:7px 9px}.answer-slots{gap:6px;padding-top:20px}.answer-slot{min-height:86px;gap:10px}.answer-slot .peg,.empty-slot{width:32px;height:32px;font-size:10px}.empty-slot{font-size:22px}.game-palette{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.palette-button{padding:7px 0}.palette-button>span:nth-child(2){font-size:9px}.palette-button .peg{width:35px;height:35px}.answer-help{font-size:10px}.swap-note{font-size:9px}.button{font-size:12px;padding:13px 16px}.history-labels{display:none}.history-row{grid-template-columns:minmax(0,1fr) 78px;gap:8px;padding:12px}.history-player{grid-column:1/-1;gap:8px}.history-player strong{font-size:10px}.history-row .peg{width:28px;height:28px}.history-row .peg-row{gap:6px}.history-row:first-of-type{border-top:0}.history-heading h2{font-size:13px}.history-heading select{max-width:130px}.history-panel{margin-top:24px}.result-panel{padding:24px 17px}.result-panel h2{font-size:26px}.result-code{gap:9px}.result-code .peg{width:32px;height:32px}.player .avatar{width:28px;height:28px}.turn-arrow{font-size:16px}.rule-card{gap:5px 12px}.rule-card p{font-size:9px}.rule-card b{font-size:9px}.game-side .players:has(.player:nth-child(5)) .player strong{font-size:9px}.empty-history b{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.button{text-decoration:none}.online-notices:empty{display:none}.online-notices{position:sticky;top:0;z-index:8}.error-notice,.info-notice{margin:14px 0 0;padding:13px 17px;border:1px solid #cb9b83;border-radius:8px;background:#fff0e3;font-size:12px;line-height:1.8}.info-notice{background:#f0f8fd;border-color:#aacddd}.online-entry{max-width:620px;margin:28px auto 50px}.online-entry>.eyebrow{margin-top:35px}.online-entry h1{font-size:43px;line-height:1.4;letter-spacing:-1.5px;margin:20px 0}.online-entry .panel{margin-top:25px}.online-entry input{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:14px}.entry-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:22px}.entry-actions>.button{flex:1;justify-content:center}.saved-seats{display:grid;gap:10px;margin-top:17px}.saved-seats small{font-size:10px;font-weight:500}.online-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:32px;margin-top:26px}.online-layout aside>.panel{padding:20px;margin-bottom:15px}.online-layout .players{margin-top:12px}.online-layout .panel-heading{margin-bottom:15px}.online-layout .panel-heading h2{font-size:15px}.online-layout .player{padding:10px}.presence{width:7px;height:7px;border-radius:50%;background:#b3c1cb;flex-shrink:0;margin-left:auto}.presence.on{background:#548b68}.room-code{font-size:9px;letter-spacing:1.5px;line-height:1.9;text-align:right}.room-code b{font-size:13px;letter-spacing:1px}.invite-bar{display:flex;gap:12px;align-items:center;background:#f0f7fb;border:1px solid var(--line);border-radius:10px;padding:13px 16px}.invite-bar label{font-size:11px;white-space:nowrap}.invite-bar input{min-width:0;flex:1;border:1px solid var(--line);background:var(--white);border-radius:5px;padding:10px;font-size:11px}.invite-bar .button{padding:8px 14px;font-size:11px}.lobby-title{font-size:21px!important;line-height:1.7;margin:18px 0 10px!important}.lobby-colors{flex-wrap:wrap;gap:8px}.lobby-colors .peg{width:30px;height:30px}.online-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.online-fields label{font-size:12px}.online-fields select{display:block;width:100%;margin-top:10px;padding:9px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.rules-editor summary{cursor:pointer;font-size:13px;font-weight:700;min-height:30px}.rules-editor summary span{font-size:10px;font-weight:400;color:var(--muted);margin-left:15px}.rules-editor .button{margin-top:20px}.waiting-turn{text-align:center;padding:25px 8px}.waiting-turn>span{font-size:65px;color:#7399ae}.waiting-turn h3{font-size:18px}.waiting-turn p{font-size:12px;color:var(--muted);line-height:1.9}.online-layout .result-panel{margin-bottom:26px}.online-room .history-row:first-child{border-top:0}.online-room .small-note{overflow-wrap:anywhere}.online-room .history-row .small-note{margin:0}.online-room .page-heading h1{font-size:29px}.online-layout .game-palette{grid-template-columns:repeat(8,minmax(0,1fr))}
@media(max-width:1000px){.online-layout{grid-template-columns:235px minmax(0,1fr);gap:23px}.online-layout .game-palette{grid-template-columns:repeat(4,minmax(0,1fr))}.online-layout .entry-actions{flex-direction:column;align-items:stretch}.online-room .history-row{grid-template-columns:minmax(0,1fr) 72px}.online-room .history-player{grid-column:1/-1}}
@media(max-width:760px){.online-layout{grid-template-columns:1fr;gap:18px}.online-layout .players{grid-template-columns:repeat(2,minmax(0,1fr))}.online-layout aside>.small-note{display:none}.online-layout .rule-card{display:flex}.online-layout .game-palette{grid-template-columns:repeat(8,minmax(0,1fr))}.online-layout .entry-actions{flex-direction:row}.online-room .page-heading h1{font-size:24px}.online-room .page-heading{gap:10px;margin:22px 0}.online-layout .history-row{grid-template-columns:minmax(75px,1fr) minmax(160px,1.5fr) 78px}.online-layout .history-player{grid-column:auto}}
@media(max-width:480px){.online-entry h1{font-size:35px}.online-entry .entry-actions{flex-direction:column;align-items:stretch}.online-room .page-heading h1{font-size:22px}.room-code b{font-size:10px;letter-spacing:0}.room-code{font-size:8px}.invite-bar{flex-wrap:wrap;padding:12px;gap:8px}.invite-bar label{width:100%}.invite-bar input{font-size:10px}.online-layout .game-palette{grid-template-columns:repeat(4,minmax(0,1fr))}.online-layout .entry-actions{flex-direction:column;align-items:stretch}.online-layout .history-row{grid-template-columns:minmax(0,1fr) 78px}.online-layout .history-player{grid-column:1/-1}.online-fields{gap:12px}.online-fields label{font-size:11px}.waiting-turn h3{font-size:15px}.waiting-turn p{font-size:11px}.online-layout .players:has(.player:nth-child(5)){grid-template-columns:repeat(2,minmax(0,1fr))}.online-layout .players:has(.player:nth-child(5)) .player{flex-direction:row;text-align:left;gap:8px}.online-room .page-heading .eyebrow{font-size:8px;letter-spacing:1px}.online-layout aside>.panel{padding:15px}}
.page-footer{flex-wrap:wrap;align-items:center}.sister-game{font-size:10px;letter-spacing:0;line-height:1.8;text-underline-offset:3px}.sister-game:hover{color:var(--dark-green)}
@media(max-width:600px){.page-footer .sister-game{order:3;flex-basis:100%;font-size:9px}}
.latest-result{position:sticky;top:0;z-index:3;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin-top:12px;overflow-wrap:anywhere}
.latest-label{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.latest-clue{display:flex;align-items:center;justify-content:space-between;gap:8px}.latest-clue .peg-row{gap:4px}.latest-clue .peg{width:26px;height:26px;font-size:10px}.latest-score{font-size:11px;font-weight:700;white-space:nowrap}.latest-empty,.latest-clue>div>span:not(.peg){font-size:11px}
.history-table{position:relative;max-height:360px;overflow:auto;overscroll-behavior:contain;overflow-anchor:none}
@media(max-width:760px){.playing-layout>.play-column{grid-row:1}.playing-layout>aside{grid-row:2}.online-room:has(.playing-layout){display:flex;flex-direction:column}.online-room:has(.playing-layout)>.page-heading{display:none}.online-room:has(.playing-layout)>.invite-bar{order:2;margin-top:18px}.playing-layout{margin-top:12px}.playing-layout .answer-panel{padding:12px}.playing-layout .answer-slots{padding-top:12px;gap:5px}.playing-layout .answer-slot{min-height:54px;gap:5px}.playing-layout .slot-number{font-size:8px}.playing-layout .answer-slot .peg,.playing-layout .empty-slot{width:28px;height:28px}.playing-layout .game-palette,.online-layout.playing-layout .game-palette{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.playing-layout .palette-button{padding:5px 0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:4px}.playing-layout .palette-button .peg{width:25px;height:25px;font-size:9px}.playing-layout .palette-button>span:nth-child(2){font-size:8px; margin:0}.playing-layout .swap-note{margin:8px 0;font-size:9px}.playing-layout .answer-help{margin:6px 0;font-size:9px}.playing-layout .answer-panel>.small-note{font-size:9px;margin:7px 0 0}.playing-layout .history-panel{margin-top:16px}.latest-clue .peg{width:22px;height:22px;font-size:9px}.latest-score{font-size:10px}.latest-result{padding:8px}.history-table{max-height:40dvh}.playing-layout .history-row .peg-row{gap:4px}.playing-layout .history-row .peg{width:25px;height:25px}}

/* Keep shared guesses beside the current turn; supporting room details follow. */
.online-layout.history-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.history-layout>aside{min-width:0}
.history-layout>aside>.history-panel{margin-top:0}
.online-layout .room-details{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}
.online-layout .room-details .rule-card{margin-top:0}
.online-layout .lobby-details{display:block}
.online-room:has(.playing-layout)>.page-heading{display:none}
.online-room:has(.playing-layout)>.invite-bar{display:none}
@media(max-width:760px){.online-layout.history-layout{grid-template-columns:minmax(0,1fr)}.history-layout>.play-column{grid-row:1}.history-layout>aside{grid-row:2}.online-layout .room-details{grid-template-columns:minmax(0,1fr);gap:18px}.history-layout .history-table{max-height:32dvh}}
