:root{font-family:Inter,'Segoe UI','Malgun Gothic',sans-serif;color:#edf0ec;background:#101b25;font-synthesis:none;--muted:#9aabb5;--mint:#b9e1bd;--line:#ffffff12}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:4px}button{color:inherit}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 5%;gap:32px}.brand{display:flex;align-items:center;font-size:23px;font-weight:700;letter-spacing:-1px}.brand-light{font-weight:350;color:#bac6cb}.brand-icon{font-size:42px;color:var(--mint);margin-right:12px}.beta{font-size:10px;border:1px solid #50646a;border-radius:4px;padding:3px 5px;letter-spacing:1px;margin-left:10px}.top-note{font-size:14px;color:var(--muted);margin-left:auto}.local-badge{font-size:10px;letter-spacing:1.5px;color:#abc2b7;border-left:1px solid #41505a;padding-left:24px}#lobby{max-width:1600px;margin:auto;padding:0 5%}.intro{display:flex;justify-content:space-between;align-items:center;padding:58px 0 42px}.eyebrow{font-size:11px;letter-spacing:2.3px;color:#b7d8bb;font-weight:600;margin:0 0 18px}h1,h2,h3,p{margin-top:0}.intro h1{font-size:clamp(35px,3.1vw,54px);font-weight:550;line-height:1.35;letter-spacing:-2px;margin-bottom:18px}.intro h1 span{color:var(--mint)}.subtitle{color:#a9b8c1;line-height:1.9;font-size:16px;margin-bottom:0}.intro-note{display:flex;gap:24px;align-items:center;padding:0 6% 0 0}.intro-note>span{font-size:80px;font-weight:200;color:#b9e1bd}.intro-note p{font-size:14px;line-height:1.9;color:#a9b8c1;margin:0}.library-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.library-head h2{font-size:22px;letter-spacing:-.7px;margin-bottom:9px}.library-head p{font-size:14px;color:var(--muted);margin:0}.collection{font-size:10px;letter-spacing:2px;color:#9cacb5}.collection span{color:#c8ddca;margin-left:12px}.lobby-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:32px;align-items:start}.gallery{display:grid;grid-template-columns:1fr 1fr;gap:24px}.art-card{background:none;padding:0;text-align:left;border:0;border-radius:12px}.art-wrap{position:relative;overflow:hidden;border-radius:12px;border:2px solid transparent;transition:border-color .2s,transform .2s}.art-card.selected .art-wrap{border-color:var(--mint);box-shadow:0 0 0 4px #b9e1bd0b}.art-card:hover .art-wrap{transform:translateY(-4px)}.art-wrap img{width:100%;aspect-ratio:1.14;object-fit:cover;display:block}.art-tag{position:absolute;top:17px;left:17px;font-size:9px;letter-spacing:1.7px;background:#19292bcc;color:#fff4da;border-radius:4px;padding:9px 12px}.checkmark{position:absolute;right:14px;bottom:14px;display:none;place-items:center;width:28px;height:28px;background:var(--mint);border-radius:50%;color:#18372d}.selected .checkmark{display:grid}.art-caption{display:flex;justify-content:space-between;padding:20px 2px}.art-category{color:#889ca6;font-size:9px;letter-spacing:1.5px}.art-caption h3{font-size:19px;font-weight:500;letter-spacing:-.5px;margin:8px 0 0}.art-number{font-size:22px;font-weight:300;color:#667984;padding-top:12px}.setup{background:#1c2a35;border:1px solid #ffffff0b;border-radius:14px;padding:28px;margin-top:-8px}.setup .eyebrow{font-size:9px;letter-spacing:1.7px;margin-bottom:12px}.setup h2{font-size:22px;font-weight:550;letter-spacing:-.8px;margin-bottom:26px}.setup label,legend{display:block;font-size:13px;font-weight:500;margin-bottom:10px}.setup input{width:100%;border:1px solid #41515a;border-radius:7px;background:#14212b;color:#eef4ef;padding:11px 13px;font-size:14px}.setup input::placeholder{color:#8b9da6}fieldset{border:0;margin:22px 0 0;padding:0;min-width:0}legend{padding:0;width:100%}legend span{float:right;font-size:11px;font-weight:400;color:#899da7;margin-top:2px}.segmented{display:flex;background:#14212b;padding:4px;border-radius:7px}.segmented button{flex:1;background:none;border:0;border-radius:5px;font-size:13px;padding:11px 5px;color:#a0b1ba}.segmented button.active{color:#e6f2e8;background:#364b4c}.piece-options{display:flex;gap:8px}.piece-options button{flex:1;background:#14212b;border:1px solid #364651;border-radius:7px;padding:10px 0;font-size:21px;font-weight:500}.piece-options button span{display:block;font-size:11px;color:#93a6b0;margin-top:5px;font-weight:400}.piece-options button.active{border-color:#b9e1bd;background:#b9e1bd0c;color:#c8ebca}.mode-description{font-size:12px;color:#a2b5bc;line-height:1.7;min-height:20px;margin:20px 0}.primary{border:0;background:var(--mint);color:#18352c;font-weight:650;padding:15px 20px;border-radius:7px;font-size:14px;width:100%;transition:background .2s}.primary:hover{background:#d0efd1}.primary span{float:right;font-size:18px}.setup-foot{text-align:center;font-size:11px;color:#8fa2ad;margin:13px 0 0}.lobby-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:40px;padding:22px 0;font-size:12px;color:#8499a5}.game-toolbar{height:92px;display:flex;align-items:center;gap:28px;padding:0 30px;border-bottom:1px solid var(--line)}.game-title{display:flex;gap:18px;align-items:center}.game-title p{font-size:9px;letter-spacing:2px;color:var(--mint);margin:0 0 7px}.game-title h1{font-size:19px;letter-spacing:-.5px;margin:0;font-weight:500}.icon-button{width:38px;height:38px;background:#ffffff06;border:1px solid #ffffff15;border-radius:8px;font-size:24px}.game-stats{display:flex;align-items:center;gap:24px;margin-left:auto;font-size:13px;color:#9dafb9}#timer{font-size:20px;font-variant-numeric:tabular-nums;color:#dae4e6;min-width:70px}.secondary{background:transparent;border:1px solid #536b64;border-radius:7px;color:#cae5cc;padding:11px 15px;font-size:13px}.workspace{display:flex;height:calc(100dvh - 226px);min-height:410px}.board-area{flex:1;overflow:auto;position:relative;background-color:#233843;background-image:radial-gradient(#ffffff0e 1px,transparent 1px);background-size:18px 18px;scrollbar-color:#54717d #233843;overscroll-behavior:contain}#board{position:relative;min-height:100%;touch-action:none;isolation:isolate}.board-center{position:absolute;border:1px dashed #a8c2c82b;border-radius:10px;display:flex;justify-content:center;align-items:center;flex-direction:column;pointer-events:none;color:#a8c2c84a}.board-center span{letter-spacing:4px;font-size:12px}.board-center p{font-size:13px;margin:12px 0}.piece{position:absolute;border:0;padding:0;background:none;touch-action:none;filter:drop-shadow(0 3px 3px #08182066);cursor:grab;transform:translate(-50%,-50%);line-height:0}.piece img{width:100%;height:100%;pointer-events:none;user-select:none}.piece.dragging{filter:drop-shadow(0 14px 10px #06161c7d) drop-shadow(0 5px 3px #06161c47);cursor:grabbing;z-index:5}.piece.locked{filter:drop-shadow(0 0 3px #eaa878);cursor:not-allowed}.piece:focus-visible{outline:2px dashed #d4efc6;outline-offset:-20px;border-radius:25px}.board-controls{position:sticky;bottom:20px;left:20px;width:max-content;display:flex;gap:2px;align-items:center;background:#142630ed;border:1px solid #ffffff1a;box-shadow:0 5px 24px #0003;padding:5px;border-radius:9px;z-index:10;margin-top:-44px}.board-controls button{border:0;background:transparent;padding:8px 11px;font-size:19px;color:#cfdfdf}.board-controls #fit{font-size:12px;border-left:1px solid #ffffff20;margin-left:6px}.board-controls span{font-size:12px;min-width:36px;text-align:center;color:#aabfc5}.session-panel{width:250px;flex-shrink:0;padding:30px 22px;display:flex;flex-direction:column;border-left:1px solid var(--line)}.session-panel .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:14px}.session-panel h2{font-size:15px;font-weight:500;margin-bottom:24px}.session-panel h2 span{color:var(--mint);margin-left:6px}.player{display:flex;align-items:center;gap:12px;margin-bottom:16px;font-size:13px}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#b9e1bd22;color:#c8e6ca}.player small{display:block;color:#8aa49c;font-size:11px;margin-top:5px}.session-tip{border-top:1px solid var(--line);padding-top:28px;margin-top:16px}.session-tip>span{font-size:32px;color:var(--mint)}.session-tip h3{font-size:14px;margin:12px 0}.session-tip p,.session-bottom p{font-size:12px;color:#93a8b1;line-height:1.9}.session-bottom{margin-top:auto;padding-top:20px}.session-bottom>span{font-size:11px;color:#bfd3c2}.game-footer{display:flex;justify-content:space-between;padding:16px 30px;font-size:11px;color:#a0b0b8}.game-footer>span:last-child{letter-spacing:2px;font-size:9px}.complete{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#142831f5;border:1px solid #b9e1bd66;padding:35px;text-align:center;border-radius:18px;z-index:20;box-shadow:0 20px 100px #081b28aa;min-width:330px}.complete>span{font-size:48px;color:var(--mint)}.complete>p{color:#a8bfc6;font-size:12px;margin:15px 0}.complete>p:first-of-type{font-size:9px;letter-spacing:2px}.complete h2{font-size:23px;font-weight:500}.complete .primary{margin-top:12px}#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:50;background:#d7e9d7;color:#1b352c;border:1px solid #afc9b8;border-radius:9px;padding:14px 22px;box-shadow:0 4px 24px #0003;font-size:14px;max-width:90vw}
@media(min-width:1600px){.art-wrap img{aspect-ratio:1.3}.intro{padding-top:75px;padding-bottom:55px}}
@media(max-width:1100px){.lobby-grid{grid-template-columns:1fr 290px;gap:22px}.gallery{gap:16px}.setup{padding:22px}.art-wrap img{aspect-ratio:.88}.session-panel{width:210px}.top-note{display:none}.local-badge{margin-left:auto}.intro-note{padding-right:0}.game-toolbar{gap:16px}.game-stats{gap:14px}}
@media(max-width:760px){.topbar{height:70px}.brand{font-size:20px}.brand-icon{font-size:34px}.local-badge{font-size:8px;padding-left:12px}.intro{padding:35px 0}.intro h1{font-size:36px}.intro-note{display:none}.lobby-grid{display:flex;flex-direction:column}.gallery{width:100%}.art-wrap img{aspect-ratio:.95}.art-caption h3{font-size:16px}.art-category{font-size:8px}.art-number,.collection{display:none}.setup{width:100%;margin-top:0}.lobby-footer{flex-direction:column;gap:10px;margin-top:25px}.game-toolbar{height:88px;padding:12px 16px;flex-wrap:wrap;gap:10px}.game-title{gap:10px}.game-title h1{font-size:15px}.game-stats{gap:10px;font-size:11px}#connection{display:none}#timer{font-size:16px;min-width:44px}.secondary{padding:7px 10px;font-size:11px}.session-panel{display:none}.workspace{height:calc(100dvh - 204px);min-height:320px}.game-footer{padding:12px 16px}.game-footer>span:last-child{display:none}.complete{min-width:290px;padding:25px}.art-tag{font-size:8px;padding:7px;top:10px;left:10px}.board-controls{bottom:12px;left:12px}}
/* Compact play-first layout. */
.topbar{height:64px}.library-head{padding-top:44px;margin-bottom:28px}.library-head h1{font-size:28px;font-weight:500;margin:0}.art-caption h2{font-size:18px;font-weight:500;margin:0}.setup{margin:0}.setup .primary{margin-top:28px}.art-wrap img{aspect-ratio:1.15}.workspace{height:calc(100dvh - 144px);min-height:320px}.game-toolbar{height:80px}.session-panel{width:180px;padding:26px 18px}.board-area{background-color:#2b414b}.board-center{border-color:#a8c2c815}#board{min-height:0}.complete h2{margin:15px 0}
@media(max-width:760px){.topbar{height:56px}.library-head{padding-top:28px;margin-bottom:22px}.art-wrap img{aspect-ratio:.95}.workspace{height:calc(100dvh - 144px)}.game-toolbar{height:88px}.session-panel{display:none}.setup{margin-bottom:25px}}
.board-controls{position:fixed;bottom:22px;left:22px;margin-top:0}
.piece.joined,.piece.joined.dragging{filter:none}.piece.joined img{opacity:0}.assembly{position:absolute;pointer-events:none;filter:drop-shadow(0 3px 3px #08182066)}.assembly.dragging{filter:drop-shadow(0 14px 10px #06161c7d) drop-shadow(0 5px 3px #06161c47)}
/* One shared slim bar, viewport workspace, central scoreboard. */
.topbar{height:52px;padding:0 20px;gap:24px}.brand{font-size:19px;white-space:nowrap}.brand-icon{font-size:30px;margin-right:9px}#game-tools{display:flex;align-items:center;flex:1;gap:16px;min-width:0}.game-title{gap:10px;min-width:0}.game-title h1{font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.game-title p{font-size:10px;margin:0 0 3px;letter-spacing:0}.game-title .icon-button{display:none}.game-stats{gap:16px;font-size:12px}#timer{font-size:16px;min-width:50px}.secondary{padding:7px 12px;font-size:12px;white-space:nowrap}.workspace{height:calc(100dvh - 52px);min-height:0;width:100%}.board-area{overflow:hidden;width:100%;height:100%}#board{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-height:0}.playing{overflow:hidden}.complete{position:fixed}
#participants-overlay{position:fixed;inset:52px 0 0;z-index:100;display:grid;place-items:center}#participants-panel{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 92px);overflow:auto;background:rgba(16,27,37,.30);backdrop-filter:blur(12px);border:1px solid #ffffff30;border-radius:14px;padding:20px 24px;box-shadow:0 18px 60px #0005;color:#f4f8f7}.participants-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.participants-heading h2{font-size:18px;margin:0}.participants-heading .icon-button{width:30px;height:30px;font-size:22px}#participants-panel table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}#participants-panel th{font-weight:500;color:#c3d1d5;font-size:12px;text-align:right;padding:10px 8px;border-bottom:1px solid #ffffff30}#participants-panel td{text-align:right;padding:16px 8px;border-bottom:1px solid #ffffff15}#participants-panel th:nth-child(2),#participants-panel td:nth-child(2){text-align:left;overflow-wrap:anywhere}#participants-panel th:first-child,#participants-panel td:first-child{text-align:center;width:42px}#participants-panel .self{color:#c7edcb}
@media(max-width:760px){.topbar{height:52px;padding:0 10px;gap:10px}.playing .brand-light,.playing .brand{font-size:0}.playing .brand-icon{font-size:28px;margin:0}.playing .game-title{display:none}#game-tools{gap:8px}.game-stats{gap:10px}.workspace{height:calc(100dvh - 52px)}.secondary{padding:7px 9px}#participants-panel{padding:16px 12px}#participants-panel td{font-size:13px}}

.celebration{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:90}

/* White surfaces, crisp rectangular controls, restrained green accents. */
:root{color-scheme:light;color:#25312e;background:#fff;--muted:#69766f;--mint:#356553;--line:#dfe5e1}
.topbar{background:#fff;border-bottom-color:#dce3de}
.brand-light{color:#748078}.brand-icon{color:#356553}
.game-title p{color:#547465}.game-stats{color:#65726b}#timer{color:#25312e}
button,input,.primary,.secondary,.icon-button,.setup input,.art-card,.art-wrap,.setup,.segmented,.segmented button,.piece-options button,.checkmark,.board-center,#participants-panel,#toast{border-radius:0}
.setup{background:#f7f9f7;border-color:#dde4df}
.setup input{background:#fff;border-color:#cbd5ce;color:#25312e}.setup input::placeholder{color:#7b867f}
.segmented{background:#e9eeea}.segmented button{color:#627067}.segmented button.active{background:#fff;color:#244d3c;box-shadow:0 1px 3px #203b2912}
.piece-options button{background:#fff;border-color:#d4ddd6;color:#526159}.piece-options button.active{background:#edf4ef;border-color:#48715b;color:#244d3c}
.primary{background:#356553;color:#fff}.primary:hover{background:#294f41}
.secondary,.icon-button{background:#fff;border-color:#cfd9d2;color:#3c5547}.secondary:hover,.icon-button:hover{background:#edf3ee;border-color:#8fa696}
.art-card.selected .art-wrap{border-color:#48715b;box-shadow:0 0 0 3px #48715b10}.checkmark{background:#356553;color:#fff}
.board-area{background-color:#f1f4f1;background-image:radial-gradient(#546b5a16 1px,transparent 1px)}
.board-center{border-color:#657e6b20}
.piece:focus-visible{outline-color:#356553;border-radius:0}
#participants-panel{background:rgba(255,255,255,.30);border-color:#aebeb3;color:#26382d;box-shadow:0 18px 60px #243b2d20}
#participants-panel th{color:#4e6255;border-bottom-color:#aebeb3}#participants-panel td{border-bottom-color:#becbc2}#participants-panel .self{color:#24593d}
#toast{background:#fff;color:#2f4939;border-color:#bdcec2;box-shadow:0 4px 24px #243b2d18}

.board-area{background:var(--room-color,#ddcbb4);isolation:isolate}
.board-area::before,.background-swatch::before{content:"";position:absolute;inset:0;background:url('/room-texture.png') center/cover;filter:grayscale(1) brightness(1.15);mix-blend-mode:multiply;opacity:.65;pointer-events:none;z-index:-1}
.board-area[data-background="original"]::before,.background-swatch[data-background="original"]::before{filter:none;mix-blend-mode:normal;opacity:1}
#options-panel{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 60px);overflow:auto;border:1px solid #cbd5ce;border-radius:0;padding:24px;background:#fff;color:#25312e;box-shadow:0 16px 60px #152b2526}
#options-panel::backdrop{background:#18292030}
#background-options{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.background-choice{padding:5px;border:1px solid #d8e0da;background:#fff;color:#526159;font-size:12px}
.background-choice[aria-pressed="true"]{border-color:#356553;outline:1px solid #356553;color:#244d3c}
.background-swatch{display:block;height:58px;position:relative;isolation:isolate;background:var(--room-color);margin-bottom:7px}
@media(max-width:480px){#background-options{grid-template-columns:repeat(3,1fr)}.playing .game-stats{gap:6px}.playing #game-tools{gap:5px}.playing .secondary{padding:7px}}

.kick-button{margin-left:10px;padding:4px 7px;border:1px solid #b99191;background:#fff;color:#914141;font-size:11px;border-radius:0}.kick-button:hover{background:#fff0f0}
#participants-panel{background:rgba(0,0,0,.70);color:#fff;border-color:#ffffff40;box-shadow:0 18px 60px #0004}
#participants-panel th{color:#fff3b0;border-bottom-color:#ffffff45}#participants-panel td{color:#fff;border-bottom-color:#ffffff25}#participants-panel .self td{color:#ffe481}
#participants-panel .icon-button,#participants-panel .kick-button{background:#0003;color:#fff3b0;border-color:#ffffff55}#participants-panel .icon-button:hover,#participants-panel .kick-button:hover{background:#0006;color:#fff}

#lobby{max-width:1600px;padding:32px 4%}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}.gallery .art-card{display:block;overflow:hidden;background:#f4f4ef}.gallery .art-card img{display:block;width:100%;height:280px;object-fit:contain;transition:opacity .15s}.gallery .art-card:hover img{opacity:.85}
#puzzle-setup{max-width:1200px;margin:36px auto;padding:0 4%;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px;align-items:center}#puzzle-preview{display:block;width:100%;max-height:calc(100dvh - 140px);object-fit:contain}#puzzle-setup .setup{margin:0}#puzzle-setup:has(#puzzle-preview[hidden]){display:block;max-width:420px}
@media(max-width:900px){.gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery .art-card img{height:240px}}
@media(max-width:600px){#lobby{padding:20px 16px}.gallery{gap:14px}.gallery .art-card img{height:180px}#puzzle-setup{display:flex;flex-direction:column;gap:20px;margin:20px auto}#puzzle-preview{max-height:40dvh}#puzzle-setup .setup{width:100%}}

/* Gallery masthead and image-cut puzzle ornaments. */
.logo-scatter{display:none}.gallery-page{background:repeating-linear-gradient(90deg,#fff 0,#fff 5px,#f1f2f2 5px,#f1f2f2 7px)}
.gallery-page .topbar{height:240px;position:relative;justify-content:center;background:transparent;border:0;overflow:hidden}
.gallery-page .brand{position:relative;z-index:2;font-size:34px;letter-spacing:-1.5px;background:#ffffffb8;padding:12px 22px}.gallery-page .brand-icon{font-size:44px}
.gallery-page .logo-scatter{display:block;position:absolute;inset:0;pointer-events:none}
.logo-piece{position:absolute;width:130px;height:130px;object-fit:contain;filter:drop-shadow(0 6px 5px #24362a30)}
.logo-piece-0{left:3%;top:24px;transform:rotate(-24deg)}.logo-piece-1{left:16%;top:80px;transform:rotate(19deg)}.logo-piece-2{left:29%;top:24px;transform:rotate(-12deg)}
.logo-piece-3{right:28%;top:80px;transform:rotate(26deg)}.logo-piece-4{right:16%;top:24px;transform:rotate(-22deg)}.logo-piece-5{right:3%;top:80px;transform:rotate(16deg)}.logo-piece-6{left:7%;top:90px;transform:rotate(38deg)}
.gallery-page #lobby{padding-top:12px}.gallery-page .art-card{box-shadow:0 3px 16px #23362b0a}
.playing .topbar>.brand{display:none}.playing .game-title{display:flex;flex-shrink:0}.playing #game-mode{font-size:14px;font-weight:600;letter-spacing:0;margin:0;white-space:nowrap}
@media(max-width:760px){.gallery-page .topbar{height:175px}.gallery-page .brand{font-size:26px;padding:10px}.gallery-page .brand-icon{font-size:34px}.logo-piece{width:88px;height:88px}.logo-piece-2{left:22%;top:-25px}.logo-piece-3{right:25%;top:125px}.logo-piece-1{left:7%;top:105px}.logo-piece-4{right:7%;top:0}.logo-piece-6{display:none}.playing .game-stats{gap:7px}.playing #game-tools{gap:7px}}

/* Equal bands: previous 7px period enlarged 1.4x to 9.8px. */
.gallery-page{background:repeating-linear-gradient(90deg,#fff 0,#fff 4.9px,#f1f2f2 4.9px,#f1f2f2 9.8px)}
.gallery-page .gallery .art-card{background:#fff;border:1px solid #000;box-shadow:0 5px 14px #0000001f;transition:box-shadow .18s ease}
.gallery-page .gallery .art-card:hover{box-shadow:0 8px 20px #0000002b}
.playing .topbar>.brand{display:flex;font-size:19px}.playing .brand-light{font-size:inherit}
@media(max-width:760px){.gallery-page .topbar{height:210px}.logo-piece-2{left:23%;top:14px}.logo-piece-3{right:24%;top:110px}.logo-piece-1{left:8%;top:105px}.logo-piece-4{right:8%;top:14px}.logo-piece-0{left:2%;top:20px}.logo-piece-5{right:2%;top:105px}.playing .topbar>.brand{font-size:14px;letter-spacing:-.7px}.playing .brand-icon{font-size:23px;margin-right:5px}}
@media(max-width:480px){.playing .topbar{gap:6px;padding:0 6px}.playing .topbar>.brand{font-size:11px}.playing .brand-icon{font-size:18px;margin-right:3px}.playing #game-tools{gap:4px}.playing .secondary{padding:6px 4px;font-size:10px}.playing .game-stats{gap:4px}.playing #timer{font-size:13px;min-width:38px}.playing #game-mode{font-size:14px}}

/* Content-sized white frames retain a consistent inset around each image. */
.gallery-page .gallery{justify-items:center}
.gallery-page .gallery .art-card{width:fit-content;max-width:100%;padding:12px}
.gallery-page .gallery .art-card img{width:auto;height:auto;max-width:100%;max-height:280px;object-fit:contain}
#puzzle-setup:not([open]){display:none}
#puzzle-setup[open]{display:block;width:min(360px,calc(100vw - 32px));max-width:360px;margin:auto;padding:24px;border:1px solid #000;background:#fff;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 12px 45px #0003}
#puzzle-setup .setup{width:100%;padding:0;border:0;box-shadow:none;background:#fff}
#puzzle-setup::backdrop{background:#0003}
@media(max-width:900px){.gallery-page .gallery .art-card img{max-height:240px}}
@media(max-width:600px){.gallery-page .gallery .art-card{padding:8px}.gallery-page .gallery .art-card img{max-height:180px}}

#puzzle-setup:not([open]){display:none!important}

.gallery .art-card{position:relative}
.gallery .art-card::after{content:'PLAY';position:absolute;inset:12px;display:grid;place-items:center;background:#0005;color:#fff;font-size:24px;font-weight:700;letter-spacing:4px;opacity:0;transition:opacity .18s;pointer-events:none}
.gallery .art-card:hover::after,.gallery .art-card:focus-visible::after{opacity:1}
#nickname-field{margin-bottom:20px}#custom-count{margin-top:12px;width:100%}#actual-count{display:block;margin-top:6px;font-size:12px;color:#59665f}#actual-count[hidden]{display:none}
#invite-panel{width:min(440px,calc(100vw - 32px));padding:24px;border:1px solid #000;background:#fff;color:#25312e;box-shadow:0 12px 45px #0003}
#invite-panel::backdrop{background:#0003}#invite-link{width:100%;margin:8px 0 16px}#copy-invite{width:100%}#copy-status{font-size:13px;margin:12px 0 0}#copy-status:empty{display:none}
@media(max-width:600px){.gallery .art-card::after{inset:8px}}

.piece-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.custom-count-row{display:flex;align-items:center;gap:10px;margin-top:12px}
.custom-count-row label{margin:0;white-space:nowrap;flex-shrink:0}
.custom-count-row #custom-count{margin:0;width:0;flex:1;min-width:0}
#connection{display:none!important}#progress{font-variant-numeric:tabular-nums}

#setup-error { color: #b42318; margin: 12px 0; font-size: 14px; }

.piece-nickname{position:absolute;z-index:2147483647;transform:translate(-100%,-100%);pointer-events:none;user-select:none;max-width:min(140px,calc(100% - 8px));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 6px;border:1px solid #ffffff80;border-radius:4px;background:#263c32e8;color:#fff;font-size:11px;font-weight:500;line-height:16px;box-shadow:0 2px 5px #0002}

/* White content sheet, with the existing striped sides left exposed. */
.gallery-page #lobby{width:calc(100% - 64px);max-width:1320px;margin:0 auto;min-height:calc(100dvh - 240px);padding:32px 40px 64px;background:#fff}
.play-navigation{display:flex;justify-content:center;gap:16px;padding-bottom:28px;border-bottom:1px solid #e4e9e5}
.play-navigation a{display:block;flex:1;min-width:0;padding:16px 28px;text-align:center;background:#fff;border:1px solid #356553;color:#2b5541;font-size:18px;font-weight:650}
.play-navigation a:hover,.play-navigation a[aria-current="page"]{background:#356553;color:#fff}
.welcome,.picker-heading{padding:42px 0 30px}.welcome{text-align:center}
.section-kicker,.source-label{display:block;color:#597262;font-size:14px;font-weight:650;letter-spacing:1px;margin-bottom:12px}
.welcome h1,.picker-heading h1{font-size:clamp(24px,3vw,36px);font-weight:650;letter-spacing:-1px;margin:0 0 16px}
.welcome p,.picker-heading p,.gallery-heading p,.source-card p,.sharing-note{font-size:16px;line-height:1.7;color:#65726a}
.image-sources{display:grid;grid-template-columns:1fr;gap:20px;align-items:stretch;margin:28px 0 20px}
.source-card{display:flex;flex-direction:column;align-items:flex-start;padding:24px;border:1px solid #d9e2dc;background:#fafcfb;min-width:0}
.source-card h2{font-size:19px;line-height:1.4;margin:0 0 20px;letter-spacing:-.5px}.source-card label{font-size:14px;margin-bottom:8px}
.source-card input{width:100%;min-width:0;padding:10px;border:1px solid #bdccc2;background:#fff;color:#26382d;font-size:14px}
.source-card input[type=file]{padding:8px;font-size:13px}.source-card p{font-size:14px;margin:12px 0 18px}
.source-card .secondary,.source-action{margin-top:auto;font-size:14px;padding:10px 16px;background:#fff;border:1px solid #8fa696;color:#2b5541}
a.source-card:hover{border-color:#356553;background:#f2f7f3}.sharing-note{padding:14px 18px;background:#f2f7f3;font-size:14px}
.gallery-heading{margin:32px 0 24px}.gallery-heading h2{font-size:24px;margin-bottom:8px}.gallery-heading p{margin:0}
#image-import-error{color:#b42318;padding:12px 0;font-size:16px}#image-import-status{font-size:16px;padding:12px 0}
.setup-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.setup-heading h2{margin:0!important;font-size:20px}
#puzzle-setup[open]{width:min(560px,calc(100vw - 32px));max-width:560px}#puzzle-preview{max-height:220px;width:100%;margin-bottom:20px;object-fit:contain}
@media(max-width:1000px){.image-sources{grid-template-columns:1fr}.source-card{padding:20px}.gallery-page #lobby{padding:24px}}
@media(max-width:600px){.gallery-page #lobby{width:calc(100% - 24px);padding:20px 16px 40px}.play-navigation{gap:10px}.play-navigation a{min-width:0;flex:1;padding:14px 8px;font-size:16px}.welcome,.picker-heading{padding-top:28px}.welcome h1,.picker-heading h1{font-size:25px}.gallery-heading h2{font-size:21px}}

/* Compact import forms: heading, input and action, then local feedback. */
.image-sources{gap:14px;margin-top:24px}.source-card{padding:18px 20px}
.source-card h2{font-size:18px;margin:0 0 12px}.source-input-row{display:flex;align-items:center;gap:12px;width:100%}
.source-input-row input{flex:1;width:0;min-width:0}.source-input-row .secondary{flex-shrink:0;margin:0;padding:10px 18px}
.source-card p{margin:8px 0 0;font-size:13px;line-height:1.5}.source-card .import-error{color:#b42318;font-size:14px}.source-card .import-status{color:#526159;font-size:14px}
@media(max-width:480px){.source-card{padding:16px}.source-input-row{gap:8px}.source-input-row .secondary{padding:10px 12px}.source-card h2{font-size:17px}}
/* Keep the hint centered in the viewport. */
.playing .topbar{position:relative}
.center-tools{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center}
#reset-singles{position:absolute;left:calc(100% + 10px);top:0}
#game-tools .secondary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px}
#game-tools svg{width:23px;height:23px;flex:none}
.center-tools .secondary,#options-button{padding:5px 8px}
#hint-button{color:#886614;background:#fff4cb;border-color:#c1ab60}
#progress,#timer{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}
#hint-panel{position:fixed;left:50%;top:calc(50% + 26px);transform:translate(-50%,-50%);z-index:95;width:max-content;max-width:calc(100vw - 24px);padding:5px;background:#fff;border:1px solid #000;box-shadow:0 8px 30px #0003;opacity:0;visibility:hidden;pointer-events:none;transition:opacity 180ms ease,visibility 0s linear 180ms}
#hint-panel.visible{opacity:1;visibility:visible;transition-delay:0s}
#hint-image{display:block;width:auto;height:auto;max-width:min(960px,calc(100vw - 36px));max-height:calc(100dvh - 140px);user-select:none}
#hint-button{touch-action:none;user-select:none}
@media(max-width:1100px){.playing .brand{font-size:0}.playing .brand-icon{font-size:28px}.playing .game-title{display:none}}
@media(max-width:760px){.playing .topbar{height:96px;align-items:flex-start;padding-top:8px}.center-tools{top:54px}.playing .workspace{height:calc(100dvh - 96px)}#participants-overlay{top:96px}#game-tools{gap:8px}.game-stats{gap:10px}}
/* Bare toolbar icons; retain a keyboard-only focus indicator. */
#game-tools :is(#participants-button,#options-button,#hint-button,#reset-singles,#home){border:0;background:transparent;box-shadow:none}
#game-tools :is(#participants-button,#options-button,#hint-button,#reset-singles,#home):hover{background:transparent;color:#24593d}

/* Keep route changes within the current document and reserve the scrollbar lane. */
html{scrollbar-gutter:stable}
html[data-selection="true"] #home-intro{display:none}
html[data-selection="true"] #image-picker[hidden]{display:block!important}
.play-navigation a{transition:background-color 120ms ease,color 120ms ease}
