.jigsaw,.jigsaw-gallery{
 --accent:#135e80;--ink:#142c44;--muted:#425a6b;--line:#abc7d5;
 --lake-frame:linear-gradient(145deg,#fff 0%,#daf3fa 28%,#95c7db 79%,#c3e6ef 100%);
 font:500 1rem/1.35 system-ui,sans-serif;color:var(--ink)
}
.jigsaw{
 position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;
 box-sizing:border-box;padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
 border:0;background:radial-gradient(ellipse at 50% 0%,#ffffff 0%,#e9f7fc 54%,#cde6f4 100%);
}
.jigsaw[open]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:10px}
.jigsaw[open]:has(.jigsaw-play:not([hidden])){grid-template-rows:auto minmax(0,1fr)}
.jigsaw[open]>header,.jigsaw[open]>form,.jigsaw[open]>section,.jigsaw[open]>p{width:min(100%,1080px);margin-inline:auto;box-sizing:border-box}
.jigsaw [hidden],.jigsaw-gallery [hidden]{display:none!important}
.jigsaw h2,.jigsaw h3,.jigsaw p,.jigsaw-gallery h2,.jigsaw-gallery h3,.jigsaw-gallery p{margin:0}
.jigsaw button,.jigsaw select,.jigsaw-button,.jigsaw-gallery button,.jigsaw-gallery a{
 min-height:44px;padding:6px 11px;border:1px solid var(--line);border-radius:9px;
 background:#f9fdff;color:var(--ink);touch-action:manipulation;font:700 .875rem/1.2 system-ui,sans-serif;
}
.jigsaw button:disabled{opacity:.42;cursor:default}
.jigsaw button:not(:disabled):hover,.jigsaw-button:hover{border-color:var(--accent)}
.jigsaw :focus-visible,.jigsaw-upload:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.jigsaw button[aria-pressed="true"]{border-color:var(--accent);background:#145f83;color:#fff}
.jigsaw .jigsaw-head{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f9fdffe6;border:1px solid #b0cedc;border-radius:13px;padding:6px 10px 8px}
.jigsaw-head p{color:#8b4b0a;font-size:.75rem;font-weight:800;letter-spacing:.1em}
.jigsaw-head h2{font-size:clamp(1.25rem,4vw,2rem);letter-spacing:-.04em}
.jigsaw-head-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.jigsaw-head button{flex:none}
.jigsaw-setup{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:clamp(16px,4vw,48px);padding:12px;overflow:auto}
.jigsaw-photo{
 display:grid;justify-items:center;gap:7px;margin:0;min-width:0;padding:clamp(10px,2vw,18px);
 border:1px solid #8dbdce;border-radius:12px;background:var(--lake-frame);
 box-shadow:inset 0 1px 2px #fff,inset 0 -4px 0 #8cbace66,0 9px 19px #153c5638
}
.jigsaw-photo canvas{
 display:block;width:auto;max-width:100%;height:auto;max-height:54dvh;background:#cfe9f2;
 box-shadow:0 2px 0 #588494,0 4px 0 #427188,0 8px 13px #284c64ad;
 border-radius:2px
}
.jigsaw-photo figcaption{color:var(--ink);font-size:.875rem;font-weight:750}
.jigsaw-options{display:grid;gap:10px;min-width:0;align-content:center}
.jigsaw-options h3{font-size:clamp(1.25rem,4vw,2.6rem);line-height:1.04;letter-spacing:-.04em}
.jigsaw-options p,.jigsaw-options small,#jigsaw-status{color:var(--muted)}
.jigsaw-options small,#jigsaw-status{font-size:.875rem}
.jigsaw-upload{position:relative;display:grid;place-items:center;text-align:center;cursor:pointer}
.jigsaw-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.jigsaw-count{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:800}
.jigsaw .jigsaw-primary{background:#13658a;color:white;border-color:#074a6b}
.jigsaw-play{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;align-content:start;gap:8px;min-width:0;min-height:0;overflow:auto}
.jigsaw-tools,.jigsaw-tray-head,.jigsaw-actions,.jigsaw-pages,.jigsaw-sections,.jigsaw-assist{display:flex;align-items:center;gap:6px}
.jigsaw-tools,.jigsaw-tray-head{justify-content:space-between;flex-wrap:wrap}
.jigsaw-assist{
 display:grid;grid-template-columns:auto 44px minmax(135px,auto) minmax(112px,auto);
 align-items:stretch;gap:6px
}
.jigsaw-assist button{min-width:0}
.jigsaw-assist [data-undo]{display:grid;place-items:center;padding-inline:0}
.jigsaw-tools strong{color:var(--accent);font-variant-numeric:tabular-nums}
.jigsaw [data-hints][aria-pressed="true"]{color:#9d1133;background:#ffe0e7;border-color:#ca2951}
.jigsaw [data-auto]:not(:disabled){color:#fff;background:#126184;border-color:#064563}
.jigsaw-actions [data-zoom-in],.jigsaw-actions [data-zoom-out],.jigsaw-pages button{min-width:44px;font-size:1.2rem}
.jigsaw-bed{
 position:relative;justify-self:center;box-sizing:border-box;width:var(--bed-width,100%);max-width:100%;height:var(--bed-height,120px);min-width:0;min-height:0;padding:clamp(6px,1.4vw,12px);border:1px solid #83b2c6;border-radius:12px;
 background:var(--lake-frame);box-shadow:0 3px 0 #91bed0,0 8px 14px #2c688137,inset 0 1px 2px #fff
}
.jigsaw-scroll{
 width:100%;height:100%;overflow:auto;display:flex;overscroll-behavior:contain;touch-action:none;border-radius:6px;
 background:#bae0ec;box-shadow:inset 0 1px 5px #487a9763,0 1px 1px #fff
}
.jigsaw-board-wrap{position:relative;flex:none;margin:0 auto;width:calc(var(--base-width,1px)*var(--zoom,1));height:calc(var(--base-height,1px)*var(--zoom,1));overflow:hidden}
.jigsaw-board{display:block;width:100%;height:100%;background:repeating-linear-gradient(125deg,#fff3 0 1px,transparent 1px 6px),linear-gradient(150deg,#eefaff 0%,#d4edf8 57%,#bde2ef 100%);box-shadow:inset 0 0 0 1px #6ca3b5a8;cursor:crosshair}
.jigsaw-board:focus-visible{outline-offset:-3px}
.jigsaw-cursor,.jigsaw-flash{
 position:absolute;pointer-events:none;box-sizing:border-box;left:calc(var(--column)/var(--columns)*100%);top:calc(var(--row)/var(--rows)*100%);
 width:calc(100%/var(--columns));height:calc(100%/var(--rows));border:2px solid var(--accent);border-radius:3px;box-shadow:0 0 9px #279ace99;
}
.jigsaw-flash{opacity:0;background:#8eebacb0;border-color:#208651}
.jigsaw-target,.jigsaw-hint{
 position:absolute;pointer-events:none;z-index:1;
 left:calc((var(--column) + .5)/var(--columns)*100%);top:calc((var(--row) + .5)/var(--rows)*100%);
 width:calc(176%/var(--columns));height:calc(176%/var(--rows));transform:translate(-50%,-50%);
 filter:drop-shadow(0 2px 3px #080e0cba)
}
.jigsaw-hint{z-index:2;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px #f6375b)}
.jigsaw-snap-ring{
 position:absolute;pointer-events:none;z-index:3;
 left:calc((var(--column) + .5)/var(--columns)*100%);top:calc((var(--row) + .5)/var(--rows)*100%);
 width:18px;height:18px;box-sizing:border-box;transform:translate(-50%,-50%);
 border:2px solid #148441;border-radius:50%;box-shadow:0 0 0 2px #f4fff5,0 0 10px #39bc5c
}
.jigsaw-target[data-fits="true"]{filter:drop-shadow(0 0 5px #a9fcb3) drop-shadow(0 0 10px #c3df64a8)}
.jigsaw-tray{
 padding:6px 8px;border:1px solid #a5c8d9;border-radius:10px;background:#f8fcff;
 box-shadow:0 3px 0 #acd0e1,inset 0 1px 1px #fff
}
.jigsaw-sections{flex-wrap:wrap}
.jigsaw-sections button{border-radius:6px}
.jigsaw[data-phase="assembled"] .jigsaw-pieces,.jigsaw[data-phase="split"] .jigsaw-pieces{visibility:hidden}
.jigsaw[data-phase="assembled"] .jigsaw-board,.jigsaw[data-phase="split"] .jigsaw-board{cursor:default}
.jigsaw-scatter{position:fixed;inset:0;z-index:2;pointer-events:none}
.jigsaw-scatter canvas{position:absolute;will-change:transform,opacity}

.jigsaw-pages>span{min-width:5ch;text-align:center;font-size:.875rem;font-variant-numeric:tabular-nums}
.jigsaw-pieces{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;align-items:center;min-height:48px;margin-top:4px;
 padding:2px 4px;border-radius:6px;color:#253b4a;background:repeating-linear-gradient(115deg,#74582d12 0 1px,transparent 1px 5px),linear-gradient(110deg,#fff4dd,#efd7ae);
 box-shadow:inset 0 2px 6px #8c6f4e5c
}
.jigsaw-pieces>p{grid-column:1/-1;padding:10px;text-align:center}
.jigsaw-pieces>button{min-width:0;padding:0;display:grid;place-items:center;touch-action:none;cursor:grab;border-color:transparent;background:transparent}
.jigsaw-pieces button[aria-pressed="true"]{background:#c3e6f4c7;border-color:#19668b;color:var(--ink)}
.jigsaw-pieces canvas{display:block;width:min(100%,116px);height:auto;max-height:clamp(44px,13dvh,104px);aspect-ratio:1;object-fit:contain;pointer-events:none;animation:jigsaw-float 3.8s ease-in-out infinite}
.jigsaw-pieces button[aria-pressed="true"] canvas{scale:1.15}
.jigsaw-pieces button[data-lifted] canvas{visibility:hidden}
.jigsaw-drag{position:fixed;inset:0 auto auto 0;pointer-events:none;z-index:3;will-change:transform;filter:drop-shadow(0 9px 8px #100e09b5)}
.jigsaw-drag[data-snap-ready]{filter:drop-shadow(0 0 4px #efffe7) drop-shadow(0 0 7px #2ab84f)}
.jigsaw[data-auto-solving] .jigsaw-pieces canvas{animation:none}
.jigsaw[data-auto-solving] .jigsaw-drag{filter:drop-shadow(0 3px 4px #15364f75)}
.jigsaw-solved{cursor:default;animation:jigsaw-finish .55s ease-out}
@keyframes jigsaw-float{0%,100%{transform:translate(-4px,2px) rotate(-2deg)}50%{transform:translate(4px,-3px) rotate(2deg)}}
@keyframes jigsaw-finish{from{filter:brightness(1.22)}to{filter:brightness(1)}}
@media(min-width:601px) and (max-width:840px){.jigsaw-pieces{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:600px){
 .jigsaw[open]{gap:7px}
 .jigsaw-play{gap:6px;overflow-anchor:none}
 .jigsaw-head-actions button{padding-inline:7px;font-size:.76rem}
 .jigsaw-tools{gap:4px}
 .jigsaw-tools strong{font-size:.8rem}
 .jigsaw-actions{gap:3px}
 .jigsaw-actions button{padding-inline:6px;font-size:.78rem}
 .jigsaw-actions [data-zoom-in],.jigsaw-actions [data-zoom-out]{font-size:1.15rem}
 .jigsaw-assist{width:100%;grid-template-columns:minmax(0,.85fr) 44px minmax(0,1.2fr) minmax(0,1.05fr);gap:4px}
 .jigsaw-assist button{min-height:44px;padding:4px 3px;font-size:.78rem;line-height:1.12}
 .jigsaw-setup{grid-template-columns:1fr;gap:14px;padding:3px 10px 12px;align-content:safe center}
 .jigsaw-photo{width:min(90%,390px);margin-inline:auto}
 .jigsaw-photo canvas{max-height:30dvh}
 .jigsaw-tray-head{row-gap:2px}
 .jigsaw-tray-body{display:grid;grid-template-rows:1fr}
 .jigsaw-tray-body>div{min-height:0;overflow:clip}
 .jigsaw-play[data-board-focus] .jigsaw-tray-body{grid-template-rows:0fr}
 .jigsaw-play[data-board-focus] .jigsaw-scroll{scrollbar-width:none;overflow-anchor:none}
 .jigsaw-sections{gap:3px}
 .jigsaw-sections button{padding-inline:7px}
 .jigsaw-pieces{grid-template-columns:repeat(4,minmax(0,1fr))}
 .jigsaw-pieces canvas{max-height:clamp(48px,8.5dvh,76px)}
 .jigsaw-play[data-zoomed] .jigsaw-pieces canvas{max-height:clamp(44px,8dvh,68px)}
}
@media(max-width:360px){
 .jigsaw-tools strong{font-size:.72rem}
 .jigsaw-actions button{padding-inline:4px;font-size:.73rem}
}
@media(max-width:600px) and (prefers-reduced-motion:no-preference){
 .jigsaw-tray-body{transition:grid-template-rows 220ms ease-in-out}
}
@media(min-width:380px) and (max-width:600px){
 .jigsaw-tray-head{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .jigsaw-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .jigsaw-sections button{min-width:0;padding:4px 1px;font-size:.75rem;line-height:1.12;white-space:normal}
 .jigsaw-pages{gap:3px}
 .jigsaw-pages>span{min-width:5ch;white-space:nowrap}
}
@media(max-height:500px) and (min-width:601px){
 .jigsaw[open]{gap:4px}
 .jigsaw-play{gap:4px}
 .jigsaw-actions button,.jigsaw-tray-head button{min-height:36px}
 .jigsaw-setup{align-items:start}
 .jigsaw-pieces canvas{max-height:clamp(44px,14dvh,68px)}
}
@media(prefers-reduced-motion:reduce){.jigsaw-pieces canvas,.jigsaw-solved{animation:none}}

.jigsaw[open]>.jigsaw-play[data-solve-expanded]{width:100%}
.jigsaw-play[data-solve-expanded] .jigsaw-tray{justify-self:center;width:min(100%,620px);box-sizing:border-box}
.jigsaw-play[data-solve-expanded] .jigsaw-tray-head{display:none}
.jigsaw-play[data-solve-expanded] .jigsaw-pieces{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:0}
.jigsaw-play[data-solve-expanded] .jigsaw-pieces>button:nth-child(n+7){display:none}
.jigsaw-play[data-solve-expanded] .jigsaw-pieces canvas{max-height:clamp(42px,8dvh,64px)}
.jigsaw-play[data-solve-expanded] .jigsaw-pieces>button[data-auto-pick]{border-color:var(--accent);background:#c3e6f4c7}

.jigsaw-gallery{
 box-sizing:border-box;width:min(720px,calc(100% - 26px));max-height:calc(100% - 24px);
 padding:clamp(12px,3vw,24px);border:1px solid #9bbfd0;border-radius:16px;background:#f5fcff;
 box-shadow:0 18px 58px #102b4a61;overflow:auto
}
.jigsaw-gallery[open]{display:grid;gap:16px}
.jigsaw-gallery::backdrop{background:#142f4b9e}
.jigsaw-gallery header,.jigsaw-gallery-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;background:none}
.jigsaw-gallery header{padding:0 0 10px;border-bottom:1px solid var(--line)}
.jigsaw-gallery section{display:grid;gap:8px}
.jigsaw-gallery [data-preview]{display:grid;justify-items:center;padding:10px;border-radius:8px;background:#d7eef7}
.jigsaw-gallery img{display:block;max-width:100%;max-height:44dvh;width:auto;height:auto;margin:auto}
.jigsaw-gallery a{display:inline-flex;align-items:center;box-sizing:border-box;text-decoration:none}
.jigsaw-gallery [data-save]{background:#156589;color:#fff}
.jigsaw-gallery [data-save]:disabled{opacity:.55}
.jigsaw-gallery :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.jigsaw-gallery-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr));gap:10px}
.jigsaw-gallery-items article{display:grid;align-content:start;gap:7px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}
.jigsaw-gallery-items img{height:110px;max-width:100%;object-fit:contain}
.jigsaw-gallery [role=status]:empty{display:none}

.jigsaw [data-undo] span{font-size:1.35rem;line-height:1}
.jigsaw-gallery{width:min(820px,calc(100% - 26px))}
.jigsaw-gallery [data-account]{padding:clamp(14px,3vw,24px);border:1px solid var(--line);border-radius:12px;background:white}
.jigsaw-gallery [data-account] p{color:var(--muted);margin-bottom:4px}
.jigsaw-gallery [data-auth],.jigsaw-gallery [data-auth] label{display:grid;gap:6px}
.jigsaw-gallery [data-auth]{gap:12px;max-width:480px}
.jigsaw-gallery [data-auth] input{font:inherit;color:var(--ink);min-width:0;min-height:44px;padding:6px 10px;border:1px solid var(--line);border-radius:8px}
.jigsaw-gallery [data-auth-submit],.jigsaw-gallery-items button{background:#145f83;color:white;border-color:#0c4c6a}
.jigsaw-gallery-items{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:12px}
.jigsaw-gallery-items article{padding:0;gap:8px;overflow:hidden}
.jigsaw-gallery-items img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.jigsaw-gallery-items h4,.jigsaw-gallery-items p{margin:0 12px;overflow-wrap:anywhere}
.jigsaw-gallery-items button,.jigsaw-gallery-items a{margin:0 12px 12px}
.jigsaw-gallery [data-library]{gap:12px}
.jigsaw-gallery [data-library] h3:not(:first-child){margin-top:8px}

.jigsaw [data-undo]{color:#174f71;border-color:#8bb6cb;background:#edf9ff}
.jigsaw [data-undo]:disabled{opacity:.7}
.jigsaw [data-register]{color:#fff;background:#145f83;border-color:#0c4c6a}
.jigsaw-gallery [data-profile]{justify-content:flex-end}
@media(max-width:600px){
 .jigsaw-head-actions{max-width:60%}
}

.puzzle-cabinet-heading {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 6px 16px;
 flex-wrap: wrap;
 margin-bottom: 4px;
}
.puzzle-cabinet-heading h3 {
 font: 700 clamp(1.5rem, 3vw, 2rem)/1.15 Georgia, serif;
 color: #372215;
}
.puzzle-cabinet-heading p {
 color: #634b35;
 font-size: .88rem;
}
.jigsaw-gallery-items.puzzle-cabinet {
 --shelf-gap: 24px;
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
 gap: var(--shelf-gap);
 padding: clamp(17px, 3vw, 32px);
 overflow: hidden;
 border: clamp(8px, 1.3vw, 15px) solid #70432a;
 border-radius: 13px;
 background:
  repeating-linear-gradient(93deg, #40261912 0 1px, transparent 1px 23px),
  linear-gradient(105deg, #3a2217, #553421 49%, #3a2217);
 box-shadow: inset 0 5px 18px #24110cc7, 0 4px 0 #552e1c, 0 12px 24px #3d211930;
}
.jigsaw-gallery-items .cabinet-slot {
 position: relative;
 display: grid;
 grid-template-rows: auto 1fr;
 align-content: stretch;
 min-width: 0;
 gap: 11px;
 padding: 0 3px 17px;
 overflow: visible;
 border: 0;
 border-radius: 0;
 background: none;
}
.cabinet-slot::after {
 position: absolute;
 bottom: 0;
 left: -100vw;
 right: -100vw;
 height: 13px;
 content: "";
 background: linear-gradient(#c69354 0%, #b07a44 26%, #75482e 28%, #855537 60%, #63391f 100%);
 box-shadow: 0 6px 7px #1f130f70;
}
.puzzle-box {
 position: relative;
 width: calc(100% - 15px);
 max-width: 280px;
 margin: 8px auto 0;
 transform: translateX(-3px);
}
.puzzle-box::before, .puzzle-box::after {
 position: absolute;
 content: "";
}
.puzzle-box::before {
 top: -7px;
 left: 0;
 width: calc(100% + 10px);
 height: 8px;
 background: linear-gradient(105deg, #f8ecd8, #d2bc9e);
 clip-path: polygon(0 100%, 14px 0, 100% 0, calc(100% - 10px) 100%);
}
.puzzle-box::after {
 top: -7px;
 right: -10px;
 bottom: 0;
 width: 10px;
 background: linear-gradient(90deg, #c7af8f, #a68765);
 clip-path: polygon(0 7px, 100% 0, 100% calc(100% - 8px), 0 100%);
}
.puzzle-box-front {
 position: relative;
 display: grid;
 justify-items: center;
 gap: 3px;
 overflow: hidden;
 padding: 11px 12px 13px;
 border: 1px solid #eadbc4;
 border-radius: 3px 2px 2px 3px;
 background: linear-gradient(135deg, #fff9ec, #f3e6d1 75%, #e8d6b8);
 color: #302117;
 text-align: center;
 box-shadow: 3px 7px 12px #170c08a0;
}
.puzzle-box-art {
 width: 100%;
 aspect-ratio: 4 / 3;
 overflow: hidden;
 background: radial-gradient(ellipse at 42% 32%, #dabd85, #8c6642);
 border: 1px solid #cbb290;
 margin-bottom: 3px;
}
.jigsaw-gallery-items .puzzle-box-art img {
 display: block;
 width: 100%;
 height: 100%;
 max-height: none;
 object-fit: cover;
}
.puzzle-box-brand {
 font: 700 clamp(.86rem, 1.4vw, 1.15rem)/1.15 Georgia, serif;
}
.puzzle-box-brand sup { font-size: .52em; }
.puzzle-box-type, .puzzle-box-count {
 font-size: .76rem;
 line-height: 1.2;
}
.puzzle-box-count { font-weight: 750; }
.puzzle-box-ribbon {
 position: absolute;
 top: 9px;
 right: -22px;
 width: 85px;
 height: 14px;
 transform: rotate(40deg);
 background: linear-gradient(#a46d1c, #f7d37e 38%, #ba8023 72%, #e3b35a);
 box-shadow: 0 2px 3px #2e1b1577;
}
.puzzle-box-ribbon::before, .puzzle-box-ribbon::after {
 position: absolute;
 top: -5px;
 width: 25px;
 height: 17px;
 content: "";
 background: linear-gradient(145deg, #805013, #eebe60 47%, #9d651c);
 border-radius: 4px 85% 4px 60%;
 box-shadow: 0 2px 2px #43281255;
}
.puzzle-box-ribbon::before { left: 18px; transform: rotate(18deg); }
.puzzle-box-ribbon::after { left: 39px; transform: scaleX(-1) rotate(18deg); }
.puzzle-box-ribbon i {
 position: absolute;
 z-index: 1;
 top: 0;
 left: 39px;
 width: 10px;
 height: 11px;
 border-radius: 3px;
 background: linear-gradient(110deg, #a5681b, #f1c969 56%, #8d5515);
}
.cabinet-label {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 width: 100%;
 gap: 5px;
 padding: 10px 12px;
 border: 1px solid #b5864f;
 border-radius: 6px;
 background: #f7ead7;
 color: #392418;
}
.jigsaw-gallery-items .cabinet-label h4,
.jigsaw-gallery-items .cabinet-label p { margin: 0; }
.cabinet-label h4 { font: 700 1.13rem/1.17 Georgia, serif; }
.cabinet-label p { font-size: .87rem; color: #634b35; }
.jigsaw-gallery-items .cabinet-label :is(button, a) {
 margin: auto 0 0;
 padding-block: 7px;
 background: #704719;
 border-color: #654015;
 color: #fff;
}
.cabinet-label :is(button, a):focus-visible { outline-color: #704719; }
.jigsaw-gallery-items .cabinet-label .cabinet-delete {
 min-height: 44px;
 background: transparent;
 border-color: #a66b60;
 color: #872e25;
}
.jigsaw-gallery-items .cabinet-label .cabinet-delete:hover { background: #f3dacf; }
.jigsaw-gallery-items .cabinet-empty {
 grid-column: 1 / -1;
 padding: 15px 10px;
 color: #fff3dc;
 text-align: center;
}

main:has([data-gallery-page]) .page-lead {
 padding-block: clamp(24px, 3vw, 46px);
}
main:has([data-gallery-page]) .page-section {
 margin-block: clamp(20px, 3vw, 40px);
}

.jigsaw-completion-actions {
 display:grid;
 gap:8px;
 width:min(100%,22rem);
 justify-self:center;
}
.jigsaw-completion-actions .jigsaw-button {
 display:grid;
 place-items:center;
 text-decoration:none;
}
.jigsaw-completion-actions .jigsaw-button:hover {
 border-color:var(--accent);
}

/* The same puzzle table skin is used by solo play, private rooms and the room preview. */
.jigsaw.jigsaw-table {
 --accent: #ffcd54;
 --ink: #fffdf3;
 --muted: #cbdbd0;
 --line: #ac9c65;
 --table-panel: radial-gradient(ellipse at 50% 0%, #142f1e 0%, #06190e 53%, #030e09 100%);
 --table-control: linear-gradient(#173525, #061a11 50%, #030f09);
 --table-gold: linear-gradient(#fff2a2 0%, #ffdb65 17%, #f0b623 62%, #c78b14 100%);
 --lake-frame: repeating-linear-gradient(8deg, #6e311648 0 1px, transparent 1px 4px, #ffd57955 6px, transparent 9px),
  repeating-linear-gradient(173deg, #843912 0%, #d58a3b 12%, #9c501c 17%, #ecab59 30%, #be702d 36%, #fcce7b 47%, #854219 59%);
 --board-height: min(49dvh, 470px);
 color-scheme: dark;
 background: radial-gradient(ellipse at 52% 42%, #103a20 0%, #04180d 54%, #020906 100%);
 padding: max(6px, env(safe-area-inset-top)) max(clamp(9px, 1.4vw, 22px), env(safe-area-inset-right))
  max(8px, env(safe-area-inset-bottom)) max(clamp(9px, 1.4vw, 22px), env(safe-area-inset-left));
 gap: 8px;
}
.jigsaw-table[data-table=oak] {
 --lake-frame: repeating-linear-gradient(8deg, #825b1f36 0 1px, transparent 1px 5px), linear-gradient(145deg, #f9d593, #ac7031 54%, #edb669);
}
.jigsaw-table[data-table=marble] {
 --lake-frame: repeating-linear-gradient(131deg, transparent 0 27px, #c1bba7a0 31px, transparent 40px 69px), linear-gradient(110deg, #fffcf4, #d4d4cd);
}
.jigsaw-table[data-table=midnight] {
 --lake-frame: repeating-linear-gradient(25deg, #bfc9ce20 0 1px, transparent 1px 7px), linear-gradient(140deg, #526f66, #0a1915);
}
.jigsaw.jigsaw-table[open]:has(> .jigsaw-setup:not([hidden])) {
 grid-template-rows: auto minmax(0, 1fr) auto auto;
 grid-template-areas: "header" "setup" "status" "buttons";
}
.jigsaw.jigsaw-table[open]:has(.jigsaw-play:not([hidden])) {
 grid-template-rows: auto minmax(0, 1fr);
}
.jigsaw-table:has(> .jigsaw-setup:not([hidden])) > .jigsaw-head {grid-area: header}
.jigsaw-table > .jigsaw-setup {grid-area: setup; align-content: safe center; overscroll-behavior: contain}
.jigsaw-table > #jigsaw-status {text-align: center}
.jigsaw-table > .jigsaw-head-actions > [data-one] {display: none}
.jigsaw-setup .jigsaw-photo-actions {
 display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px;
}
.jigsaw-setup .jigsaw-photo-actions > * {min-width: 0}
.jigsaw-table[open] > :is(header, section) {width: min(100%, 1540px)}
.jigsaw-table svg {display: block; width: 21px; height: 21px; flex-shrink: 0}
.jigsaw.jigsaw-table .jigsaw-head {
 position: relative;
 z-index: 5;
 border: 0;
 border-bottom: 1px solid #d9a935;
 border-radius: 0;
 background: linear-gradient(95deg, #03130c, #061e12 50%, #020c08);
 box-shadow: 0 4px 14px #010905a8;
 padding: 4px clamp(7px, 1.4vw, 18px) 7px;
 gap: 12px;
}
.table-brand {
 display: flex; align-items: center; gap: 8px; flex-shrink: 0;
 color: #fff; text-decoration: none; font: 850 clamp(1.12rem, 2.2vw, 1.72rem)/.95 system-ui, sans-serif;
 letter-spacing: -.05em;
}
.table-brand img {width: clamp(32px, 4.3vw, 52px); height: auto; filter: brightness(1.5) saturate(1.35) drop-shadow(0 2px 3px #000)}
.table-brand sup {font-size: .43em; letter-spacing: 0}
.table-brand small {display: block; color: #ffcd54; text-align: center; font-size: .72em; letter-spacing: -.02em}
.table-nav, .table-nav-actions {display: flex; align-items: center; gap: clamp(6px, 1.35vw, 22px)}
.table-nav a, .table-nav-actions a {color: var(--ink); text-decoration: none; font-weight: 750; white-space: nowrap}
.table-nav a {position: relative; padding: 8px 0; font-size: clamp(.8rem, 1.3vw, 1rem)}
.table-nav a:hover, .table-nav a[aria-current] {color: #ffe69c}
.table-nav a[aria-current]::after {
 content: ""; position: absolute; bottom: 1px; left: 0; right: 0; height: 2px; border-radius: 3px; background: #f4bf37;
}
.table-nav-actions {gap: 9px}
.jigsaw-table .table-premium, .jigsaw-table .table-account {
 display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 37px; padding: 5px 12px; border-radius: 100px;
 border: 1px solid var(--line); background: var(--table-control);
}
.jigsaw-table .table-account {width: 39px; padding: 0}
.jigsaw-table .table-menu {display: none; padding: 4px 7px}
.jigsaw-table button, .jigsaw-table select, .jigsaw-table .jigsaw-button,
.jigsaw-table button[data-undo], .jigsaw-table [data-register] {
 background: var(--table-control); color: var(--ink); border-color: #a79668;
 box-shadow: inset 0 1px 0 #fff4ba24, 0 2px 4px #01080485;
}
.jigsaw-table :is(.table-premium, .jigsaw-primary, [data-exit], [data-auto]:not(:disabled), .jigsaw-sections button[aria-pressed=true]) {
 background: var(--table-gold); color: #1b1101; border-color: #ffdf74;
 box-shadow: inset 0 1px 0 #fffae4, 0 0 10px #ffca3749;
}
.jigsaw-table .jigsaw-photo {border-color: #e4ae55; box-shadow: 0 6px 19px #000b, inset 0 0 0 1px #ffd68f}
.jigsaw-table .jigsaw-head-actions {
 width: min(100%, 1080px); margin-inline: auto; max-width: none;
}
.jigsaw-table .jigsaw-play {
 grid-template-columns: minmax(72px, 100px) minmax(0, 1fr) clamp(185px, 20vw, 304px);
 grid-template-rows: auto minmax(135px, 1fr) auto auto;
 grid-template-areas:
  "hud hud hud"
  "assist board tray"
  "actions zoom tray"
  "status buttons buttons";
 align-content: stretch; gap: 8px 11px; padding: 0 2px 3px;
}
.jigsaw-table.jigsaw-live .jigsaw-play {
 grid-template-columns: clamp(170px, 19vw, 285px) minmax(0, 1fr) clamp(175px, 22vw, 318px);
 grid-template-areas:
  "hud hud hud"
  "roster board tray"
  "roster assist tray"
  "actions zoom tray"
  "status status buttons";
 grid-template-rows: auto minmax(135px,1fr) auto auto auto;
}
.jigsaw-table .jigsaw-tools {display: contents}
.table-hud {
 grid-area: hud; display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
 padding: 1px 2px 3px;
}
.table-title, .table-stats {display: flex; align-items: center; gap: 6px; flex-wrap: wrap}
.table-title h2 {font-size: clamp(1.26rem, 2.4vw, 1.94rem); letter-spacing: -.038em; overflow-wrap: anywhere}
.table-stats > *, .table-title > span {
 display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px;
 white-space: nowrap; border: 1px solid #9b8953; border-radius: 100px; padding: 3px 10px; background: var(--table-control);
 font-weight: 800; font-size: .86rem; font-variant-numeric: tabular-nums;
}
.table-stats strong[data-progress] {color: #ffdb69}
.table-stats button[data-hud-enlarge] {padding-inline: 8px}
.table-title [data-multiplayer] {border-color: #5a9a6b}
.table-title [data-multiplayer] svg {color: #4df080}
.jigsaw-table .table-live-badge {min-height: 27px; text-transform: uppercase; font-size: .69rem; letter-spacing: .06em; border-color: #b39248; color: #ffdb69}
.jigsaw-table[data-room-live] .table-live-badge {background: #ba1512; border-color: #ff6570; color: white}
.jigsaw-table[data-room-live] .table-live-badge::before {content: ""; width: 7px; height: 7px; border-radius: 100%; background: currentColor}
.jigsaw-table .jigsaw-assist {
 grid-area: assist; display: grid; grid-template-columns: minmax(0, 1fr); align-self: center; align-items: stretch; gap: 6px;
}
.jigsaw-table.jigsaw-live .jigsaw-assist {grid-template-columns: repeat(5, minmax(0, 1fr))}
.jigsaw-table .jigsaw-assist button {
 display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
 padding: 5px 3px; min-height: clamp(47px, 9dvh, 72px); line-height: 1.08;
 border-radius: 11px; text-align: center; font-weight: 760;
}
.jigsaw-table .jigsaw-assist button:disabled {opacity: .52}
.jigsaw-table[data-room-preview] [data-auto]:disabled {background: var(--table-gold); color: #1b1101; border-color: #ffdf74; opacity: .75}
.jigsaw-table .jigsaw-assist button span {font-size: inherit; line-height: inherit}
.jigsaw-table .jigsaw-assist svg {width: clamp(19px, 3.75dvh, 28px); height: auto}
.jigsaw-table .jigsaw-assist button[aria-pressed=true] {border-color: #ffdc69; background: #255639}
.jigsaw-table .jigsaw-assist button[data-hints][aria-pressed=true] {border-color: #f78489; background: #7b2130; color: white}
.jigsaw-table .jigsaw-actions {
 grid-area: actions; flex-wrap: wrap; min-width: 0; gap: 4px; align-self: center;
}
.jigsaw-table .jigsaw-actions > button, .jigsaw-table .jigsaw-head-actions > button {min-height: 33px; padding: 4px 8px; font-size: .78rem}
.jigsaw-table .jigsaw-actions > button:not([data-skip]) {padding-inline: 5px}
.jigsaw-table .jigsaw-head-actions {
 grid-area: actions; width: 100%; align-self: center; gap: 5px; flex-wrap: wrap; justify-content: end;
}
.jigsaw-table .jigsaw-play > .jigsaw-head-actions {grid-area: buttons}
.jigsaw-table > .jigsaw-head-actions {
 grid-area: buttons; width: min(100%, 32rem); gap: 8px; justify-content: center;
}
.jigsaw-table > .jigsaw-head-actions > button {min-height: 44px; font-size: .875rem}
.jigsaw-table #jigsaw-status {
 grid-area: status; color: #cbdbd0; align-self: center; font-size: .78rem; padding-inline: 2px;
}
.table-board-area {
 grid-area: board; display: grid; place-items: center; min-width: 0; min-height: 0;
}
.jigsaw.jigsaw-table .jigsaw-bed {
 align-self: center; padding: clamp(5px, .9vw, 11px); border: 1px solid #f1b45f; border-radius: clamp(10px, 1.6vw, 25px);
 box-shadow: 0 6px 0 -2px #61300e, 0 9px 20px #000b, inset 0 0 0 2px #ffcc7c91, inset 0 0 5px 2px #693415;
}
.jigsaw-table .jigsaw-scroll {
 border-radius: clamp(5px, .9vw, 13px); background: #b7d9e9;
 box-shadow: 0 0 0 1px #713811, 0 0 4px 1px #421e13; scrollbar-width: none;
}
.jigsaw-table .jigsaw-board {
 background: linear-gradient(140deg, #dfedf4, #bcdcec 58%, #a6cadd);
}
.table-zoom {
 grid-area: zoom; place-self: center; display: flex; align-items: center; width: min(100%, 265px); gap: 7px; min-width: 0;
 min-height: 36px; padding: 0 4px; border-radius: 40px; border: 1px solid #8b7c54; background: var(--table-control);
}
.table-zoom input {min-width: 0; width: 100%; accent-color: #f5bc30; touch-action: manipulation}
.jigsaw-table .table-zoom button {border: 0; background: transparent; box-shadow: none; padding: 2px; width: 34px; min-height: 32px; border-radius: 50%; font-size: 1.2rem}
.jigsaw-table .jigsaw-tray, .jigsaw-table .live-roster {
 grid-area: tray; display: flex; flex-direction: column; min-height: 0; min-width: 0; gap: 5px;
 border: 1px solid #968356; border-radius: 14px; padding: 7px; background: var(--table-panel);
 box-shadow: inset 0 1px 0 #fff6cc32, 0 4px 11px #0009;
}
.jigsaw-table .jigsaw-tray {align-self: stretch; overflow: auto}
.jigsaw-table .jigsaw-tray-head {display: grid; grid-template-columns: minmax(0,1fr); gap: 5px}
.jigsaw-table .jigsaw-sections {display: grid; gap: 4px; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%}
.jigsaw-table .jigsaw-sections button {min-width: 0; min-height: 31px; padding: 3px 2px; font-size: clamp(.68rem, 1.1vw, .81rem); border-radius: 9px}
.jigsaw-table .jigsaw-pages {justify-content: center; gap: 5px; min-height: 31px}
.jigsaw-table .jigsaw-pages button {min-height: 29px; min-width: 36px; padding: 0 5px; line-height: 1}
.jigsaw-table .jigsaw-pages span {white-space: nowrap; min-width: 0; font-size: .72rem}
.jigsaw-table .jigsaw-tray-body {flex: 1; min-height: 0}
.jigsaw-table .jigsaw-pieces {
 grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0; padding: 0; min-height: 0;
 background: transparent; color: var(--muted); box-shadow: none; border: 0;
}
.jigsaw-table.jigsaw-live .jigsaw-pieces {grid-template-columns: repeat(3,minmax(0,1fr))}
.jigsaw-table .jigsaw-pieces button {min-height: 0; padding: 0; background: transparent; box-shadow: none; border-color: transparent}
.jigsaw-table .jigsaw-pieces button[aria-pressed=true] {border-color: #cca73c; background: #325441}
.jigsaw-table .jigsaw-pieces [data-held] {opacity: .45; cursor: default}
.jigsaw-table .jigsaw-pieces canvas {width: min(100%, 112px); max-height: min(12dvh, 100px)}
.jigsaw-table .jigsaw-play:has(.jigsaw-tray[hidden]) .table-board-area {grid-column-end: -1}
.jigsaw-table .jigsaw-play > :is(.jigsaw-completion-actions, .live-completion) {
 grid-column: 1 / -1; grid-row: -1; justify-self: center;
}
.jigsaw-table .live-completion {
 padding: .6rem .8rem; border-radius: 9px; border: 1px solid #ac9c65; background: var(--table-panel);
}
.jigsaw-table .live-completion div {display: flex; flex-wrap: wrap; align-items: center; gap: 8px}
.jigsaw-table .live-completion a {color: var(--accent)}
.jigsaw-table .live-roster {grid-area: roster; overflow: auto}
.live-roster h3 {display: flex; align-items: center; gap: 6px; font-size: .95rem}
.live-roster h3 svg {color: #ffcd54}
.live-roster progress {width: 100%; height: 5px; accent-color: #f4bc3d}
.live-seats {display: grid; gap: 5px}
.live-seat {
 display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 7px;
 min-width: 0; padding: 5px; border-radius: 9px; border: 1px solid #817852; background: var(--table-control);
}
.live-seat[data-open] {display: none}
.live-seat[data-own] {border-color: #ffd764; box-shadow: inset 0 0 0 1px #ffdd6269, 0 0 10px #edba3250}
.live-seat[data-moving] {border-color: var(--player)}
.live-seat [data-avatar] {
 display: grid; place-items: center; width: clamp(32px,3.5vw,44px); aspect-ratio: 1;
 border: 2px solid #edbd45; border-radius: 100%; background: var(--player,#35745e); color: white; font-weight: 850;
}
.live-seat-copy {display: grid; min-width: 0}
.live-seat [data-name] {overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; font-weight: 800}
.live-seat [data-player-status] {color: var(--muted); font-size: .73rem}
.live-seat [data-player-status]::before {content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 100%; margin-right: 4px; background: #849187}
.live-seat[data-online] [data-player-status]::before {background: #33e075}
.live-seat [data-count] {color: #ffe088; font: 750 .77rem/1 system-ui, sans-serif}
.table-invite {display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3px}
.jigsaw-live [data-player=host] {--player: #0b5cb8}
.jigsaw-live [data-player="1"] {--player: #b91468}
.jigsaw-live [data-player="2"] {--player: #087b3e}
.jigsaw-live [data-player="3"] {--player: #8a4acc}
.jigsaw-live [data-player="4"] {--player: #8f5508}
.jigsaw-live [data-player="5"] {--player: #b03c38}
.jigsaw-live [data-player="6"] {--player: #197b83}
.jigsaw-live [data-player="7"] {--player: #595bb6}
.jigsaw-live [data-player="8"] {--player: #8b544f}
.live-pointer {
 position: absolute; z-index: 4; display: grid; justify-items: center; pointer-events: none;
 transform: translate(-15%, -26%); color: white; transition: top .23s linear, left .23s linear;
}
.live-pointer::before {
 position: absolute; content: ""; top: 20%; left: 18%; width: 21px; height: 24px;
 background: var(--player); border: 2px solid white; border-radius: 2px 95% 95% 95%; transform: rotate(-8deg) skew(19deg,14deg);
 filter: drop-shadow(0 2px 2px #000a);
}
.live-pointer canvas {width: clamp(36px, 5.4vw, 75px); filter: drop-shadow(0 2px 4px var(--player))}
.live-pointer span {z-index: 1; margin-top: -9px; border: 1px solid #fff9; border-radius: 100px; padding: 2px 6px; background: var(--player); font-size: .74rem; font-weight: 750; white-space: nowrap; box-shadow: 0 2px 5px #0009}
.jigsaw-table .jigsaw-play[data-solve-expanded] {grid-template-areas:
 "hud hud hud"
 "board board board"
 "assist zoom tray"
 "actions buttons tray"
 "status status status";
 grid-template-rows: auto minmax(150px,1fr) auto auto auto;
}
.jigsaw-table.jigsaw-live .jigsaw-play[data-solve-expanded] {grid-template-areas:
 "hud hud hud"
 "board board board"
 "roster assist tray"
 "roster zoom tray"
 "actions buttons tray"
 "status status status";
 grid-template-rows: auto minmax(150px,1fr) auto auto auto auto;
}
.jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-head-actions {grid-area: buttons}
.jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-tray {justify-self: stretch; width: auto; max-height: 160px}
.jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-tray-head {display: grid}
.jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-pieces {grid-template-columns: repeat(4,minmax(0,1fr))}
.jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-pieces > button:nth-child(n+7) {display: grid}
.jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-pieces canvas {max-height: 56px}
.jigsaw-table:not(.jigsaw-live) .jigsaw-play[data-solve-expanded] .jigsaw-assist {
 grid-area: assist; grid-column: 1 / 3; grid-template-columns: repeat(5,minmax(0,1fr));
}
.jigsaw-table:not(.jigsaw-live) .jigsaw-play[data-solve-expanded] .table-zoom {grid-area: auto; grid-row: 4; grid-column: 2; justify-self: start}
@media (max-width:860px) {
 .jigsaw-table .table-menu {display: grid; place-items: center}
 .jigsaw-table .table-account {display: none}
 .table-nav {
  display: none; position: absolute; top: calc(100% + 2px); right: 0; padding: 10px 18px; min-width: 170px;
  border: 1px solid #a08c52; border-radius: 11px; background: #071a11; box-shadow: 0 6px 18px #000a;
 }
 .jigsaw-table[data-menu-open] .table-nav {display: grid; gap: 2px}
 .table-nav a {font-size: .9rem}
}
@media (max-width:760px) {
 .jigsaw-table[open] > .jigsaw-setup {
  width: min(100%, 32rem); grid-template-columns: minmax(0, 1fr); gap: 14px;
  align-content: start; padding: 8px clamp(8px, 3vw, 16px) 12px;
 }
 .jigsaw-table .jigsaw-photo {width: min(100%, 19rem); margin-inline: auto}
 .jigsaw-table .jigsaw-photo canvas {max-height: 27dvh}
 .jigsaw-table > .jigsaw-head-actions {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr))}
 .jigsaw-table > .jigsaw-head-actions > [data-register] {grid-column: 1 / -1}
 .jigsaw-table .jigsaw-play,
 .jigsaw-table.jigsaw-live .jigsaw-play,
 .jigsaw-table .jigsaw-play[data-solve-expanded],
 .jigsaw-table.jigsaw-live .jigsaw-play[data-solve-expanded] {
  display: flex; flex-direction: column; align-items: stretch; gap: 7px; overflow-anchor: none;
 }
 .jigsaw-table .jigsaw-play > :not(.table-board-area) {flex: none}
 .table-hud {padding-bottom: 0}
 .jigsaw-live .table-hud {display: grid; grid-template-columns: max-content max-content minmax(0,1fr); gap: 4px}
 .jigsaw-live .table-title {display: contents}
 .jigsaw-live .table-title h2 {grid-column: 1 / -1}
 .jigsaw-live .table-stats {justify-self: end; flex-wrap: nowrap; gap: 3px}
 .jigsaw-live .table-hud :is(.table-stats > *, .table-title > span) {min-height: 29px; padding-inline: 5px; font-size: .69rem}
 .table-title {width: 100%; gap: 4px}
 .table-title h2 {flex-basis: 100%; font-size: clamp(1.13rem,4.8vw,1.65rem)}
 .table-stats > *, .table-title > span {min-height: 30px; padding-inline: 7px; font-size: .75rem}
 .table-stats svg, .table-title svg {width: 16px; height: 16px}
 .jigsaw-table .table-live-badge {min-height: 24px}
 .jigsaw-table .jigsaw-actions {
  order: 7; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  width: 100%; gap: 6px;
 }
 .table-board-area {flex: 0 0 auto; width: 100%; aspect-ratio: var(--photo-ratio, 1.5); max-height: var(--board-height)}
 .jigsaw-table .jigsaw-play[data-solve-expanded] .table-board-area,
 .jigsaw-table .jigsaw-play[data-board-focus] .table-board-area {height: min(68dvh,650px); max-height: none; aspect-ratio: auto}
 .jigsaw-table .table-zoom {order: 5; align-self: center; width: min(100%, 22rem); min-height: 44px}
 .jigsaw-table .table-zoom button {flex: 0 0 44px; min-height: 44px}
 .jigsaw-table .jigsaw-assist, .jigsaw-table:not(.jigsaw-live) .jigsaw-play[data-solve-expanded] .jigsaw-assist {
  order: 2; width: 100%; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px;
 }
 .jigsaw-table.jigsaw-live .jigsaw-assist {order: 4}
 .jigsaw-table .jigsaw-assist button {min-height: clamp(49px, 8dvh, 65px); font-size: clamp(.68rem,2.7vw,.89rem); padding: 4px 2px}
 .jigsaw-table .jigsaw-assist svg {width: 20px}
 .jigsaw-table .jigsaw-tray {order: 3; padding: 6px; gap: 4px; overflow: visible}
 .jigsaw-table .jigsaw-tray-head {gap: 4px}
 .jigsaw-table .jigsaw-sections {grid-template-columns: repeat(4,minmax(0,1fr))}
 .jigsaw-table .jigsaw-sections button {min-height: 44px; font-size: clamp(.68rem, 2.75vw, .85rem)}
 .jigsaw-table .jigsaw-pages {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; width: min(100%, 13rem); margin-inline: auto;
 }
 .jigsaw-table .jigsaw-pages button {min-height: 44px}
 .jigsaw-table .jigsaw-pages span {font-size: .78rem}
 .jigsaw-table .jigsaw-play .jigsaw-pieces, .jigsaw-table.jigsaw-live .jigsaw-play .jigsaw-pieces {
  grid-template-columns: repeat(4,minmax(0,1fr)); padding-block: 3px; gap: 4px;
 }
 .jigsaw-table .jigsaw-play .jigsaw-pieces > p {font-size: .79rem; padding: 5px}
 .jigsaw-table .jigsaw-play .jigsaw-pieces > button {min-height: 44px}
 .jigsaw-table .jigsaw-play .jigsaw-pieces canvas {max-height: clamp(52px, 8dvh, 76px)}
 .jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-tray {max-height: none}
 .jigsaw-table .jigsaw-play > .jigsaw-head-actions {order: 6; align-self: stretch; gap: 6px}
 .jigsaw-table .jigsaw-play > .jigsaw-head-actions > button {flex: 1 1 28%; min-width: 0}
 .jigsaw-table .jigsaw-play > .jigsaw-head-actions > [data-register] {flex-basis: 100%; order: 1}
 .jigsaw-table .jigsaw-play :is(.jigsaw-head-actions, .jigsaw-actions) > button {min-height: 44px; font-size: .8rem}
 .jigsaw-table .jigsaw-play #jigsaw-status {order: 8; align-self: start}
 .jigsaw-table .jigsaw-play > :is(.jigsaw-completion-actions, .live-completion) {order: 5; align-self: center}
 .jigsaw-table .live-roster {order: 2; padding: 4px; background: transparent; border: 0; box-shadow: none}
 .jigsaw-table .live-roster h3, .jigsaw-table .live-roster progress {display: none}
 .live-seats {grid-auto-flow: column; grid-auto-columns: minmax(30%,1fr); overflow-x: auto; scrollbar-width: thin; padding: 1px 1px 4px}
 .live-seat {gap: 4px; padding: 4px; grid-template-columns: auto minmax(0,1fr)}
 .live-seat [data-avatar] {width: 27px; font-size: .67rem}
 .live-seat [data-name] {font-size: .73rem}
 .live-seat [data-player-status] {font-size: .65rem}
 .live-seat [data-count] {display: none}
 .table-invite {min-height: 34px; font-size: .78rem; margin: 0}
}
@media (min-width: 560px) and (max-width: 760px) and (max-height: 500px) {
 .jigsaw-table[open] > .jigsaw-setup {width: 100%; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr)}
 .jigsaw-table .jigsaw-photo canvas {max-height: 45dvh}
 .jigsaw-table > .jigsaw-head-actions {display: flex}
}
@media (max-width: 420px) {
 .jigsaw-table:has(> .jigsaw-setup:not([hidden])) > .jigsaw-head {
  gap: 6px;
  .table-brand {gap: 5px; font-size: clamp(.94rem, 4.5vw, 1.12rem)}
  .table-nav-actions {gap: 6px}
  .table-premium {padding-inline: 8px; font-size: .875rem}
  .table-premium svg {width: 17px}
  .table-menu {min-width: 44px}
 }
}
@media (max-width:359px) {
 .jigsaw-live .table-hud {grid-template-columns: max-content max-content 1fr}
 .jigsaw-live .table-stats {grid-column: 1 / -1; justify-self: start}
}
@media (prefers-reduced-motion: reduce) {.live-pointer {transition: none}}

/* Brass frames and charcoal panels for solo and live play. */
.jigsaw.jigsaw-table {
 --accent: #e0b878;
 --ink: #eee6d7;
 --muted: #c5bbae;
 --line: #917347;
 --table-panel: linear-gradient(155deg, #201e19, #111110 43%, #171512);
 --table-control: linear-gradient(150deg, #30291f, #141310 65%);
 --table-gold: linear-gradient(145deg, #fff0c6, #d9af70 45%, #a77437);
 --lake-frame: repeating-linear-gradient(7deg, #1b0e0347 0 1px, #e5b67724 2px, transparent 4px 6px),
  linear-gradient(145deg, #ebc98c, #654720 22%, #b28c51 40%, #493218 68%, #d3a869 88%, #6a4b26);
 --board-height: min(62dvh, 620px);
 background: #10100f url('/landing-backdrop.webp') left top / 220% auto no-repeat;
}
.jigsaw.jigsaw-table[open]:has(.jigsaw-play:not([hidden])) {grid-template-rows: minmax(0, 1fr)}
.jigsaw.jigsaw-table .jigsaw-head {background: var(--table-panel); border-color: var(--line)}
.jigsaw-table .jigsaw-play, .jigsaw-table.jigsaw-live .jigsaw-play {
 width: min(100%, 1720px);
 grid-template-columns: clamp(110px, 12vw, 185px) minmax(0, 1fr) clamp(155px, 17vw, 240px);
 grid-template-rows: minmax(170px, 1fr) auto auto auto;
 grid-template-areas:
  "nav board sidebar"
  "actions tray place"
  "assist assist zoom"
  "status status buttons";
 gap: clamp(7px, 1vw, 15px);
 padding: clamp(2px, .5vw, 7px);
}
.jigsaw-table .jigsaw-play[data-solve-expanded], .jigsaw-table.jigsaw-live .jigsaw-play[data-solve-expanded] {
 grid-template-areas:
  "nav board board"
  "sidebar tray place"
  "assist assist zoom"
  "actions status buttons";
 grid-template-rows: minmax(170px, 1fr) auto auto auto;
}
.jigsaw-table .jigsaw-play[data-solve-expanded] > .jigsaw-head-actions {justify-self: end; width: auto}
.jigsaw-table .jigsaw-play[data-solve-expanded] :is(.jigsaw-assist, .table-zoom) {grid-area: revert; grid-row: auto; grid-column: auto}
.jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-assist {grid-area: assist}
.jigsaw-table .jigsaw-play[data-solve-expanded] .table-zoom {grid-area: zoom}
.jigsaw-table .jigsaw-play .jigsaw-head, .jigsaw-table .table-sidebar, .jigsaw-table .jigsaw-play .jigsaw-tray {
 border: 1px solid #8a6d44;
 border-radius: 9px;
 background: var(--table-panel);
 box-shadow: inset 0 0 0 3px #13110e, inset 0 0 0 4px #85673f57, 0 4px 14px #000b;
}
.jigsaw-table .jigsaw-play .jigsaw-head {grid-area: nav; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; padding: clamp(8px, 1.15vw, 16px)}
.jigsaw-table .jigsaw-play .table-brand, .jigsaw-table .jigsaw-play .table-account, .jigsaw-table .jigsaw-play .table-premium {display: none}
.jigsaw-table .jigsaw-play .table-nav {position: static; display: grid; padding: 0; border: 0; min-width: 0; box-shadow: none; background: none; gap: 2px}
.jigsaw-table .jigsaw-play .table-nav a {
 white-space: normal; padding: clamp(8px, 1.75dvh, 20px) 2px; border-bottom: 1px solid #80673f55;
 font: 400 clamp(.88rem, 1.42vw, 1.18rem)/1.2 Georgia, serif; color: #e7c794;
}
.jigsaw-table .jigsaw-play .table-nav a:last-child {border-bottom: 0}
.jigsaw-table .jigsaw-play .table-nav-actions {display: none}
.jigsaw-table .table-sidebar {grid-area: sidebar; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; padding: clamp(7px, 1.2vw, 16px); overflow: auto}
.jigsaw-table .table-hud {display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 5px 0; text-align: center}
.jigsaw-table .table-title, .jigsaw-table .table-stats {justify-content: center}
.jigsaw-table .table-title h2 {width: 100%; color: var(--accent); font: 400 clamp(1.04rem, 1.75vw, 1.55rem)/1.15 Georgia, serif}
.jigsaw-table .table-stats > *, .jigsaw-table .table-title > span {min-height: 28px; border-color: #92764d88; padding: 3px 7px; font-size: .75rem}
.jigsaw-table .table-stats strong[data-progress] {color: #edc992}
.jigsaw-table .table-stats .table-clock {
 flex-direction: column; width: clamp(76px, 9vw, 125px); aspect-ratio: 1; border: 3px double #a88852;
 font: 400 clamp(1.17rem, 2.4vw, 1.85rem)/1 Georgia, serif; color: var(--accent);
 box-shadow: inset 0 0 0 4px #1a1712, inset 0 0 0 5px #a888524d;
}
.jigsaw-table .table-sidebar .live-roster {border: 0; background: transparent; box-shadow: none; padding: 6px 0; overflow: visible}
.jigsaw-table .live-roster h3 svg, .jigsaw-table .live-seat [data-count] {color: var(--accent)}
.jigsaw.jigsaw-table .jigsaw-bed {border: 1px solid #c9a369; border-radius: 3px; box-shadow: inset 0 0 0 2px #f7d89b70, inset 0 0 0 5px #21170c80, 0 4px 20px #000c}
.jigsaw-table .jigsaw-scroll {border-radius: 1px; background: #080808; box-shadow: 0 0 0 1px #533d25, 0 0 5px 2px #000b}
.jigsaw-table .jigsaw-board {background: radial-gradient(ellipse at 50% 40%, #272219, #131110 68%, #0b0a09); box-shadow: inset 0 0 0 1px #6d5734}
.jigsaw-table .jigsaw-play .jigsaw-tray {
 max-height: none; width: 100%; padding: 5px clamp(6px, 1.15vw, 16px) 7px; gap: 2px;
 justify-self: stretch; overflow: visible;
}
.jigsaw-table .jigsaw-tray-head, .jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-tray-head {display: flex; justify-content: center; gap: 4px 12px}
.jigsaw-table .jigsaw-sections {width: auto; grid-template-columns: repeat(4, minmax(0,1fr))}
.jigsaw-table .jigsaw-sections button {padding-inline: 7px}
.jigsaw-table .jigsaw-pieces, .jigsaw-table.jigsaw-live .jigsaw-play .jigsaw-pieces,
.jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-pieces {
 display: flex; justify-content: center; align-items: center; gap: clamp(1px, .8vw, 12px);
 padding-block: 0;
}
.jigsaw-table .jigsaw-play .jigsaw-pieces button {
 flex: 0 1 clamp(40px, 13vw, 108px); min-height: 44px;
}
.jigsaw-table .jigsaw-play .jigsaw-pieces canvas, .jigsaw-table .jigsaw-play[data-solve-expanded] .jigsaw-pieces canvas {
 max-height: clamp(42px, 9.5dvh, 90px); filter: drop-shadow(0 1px 0 #d7aa63) drop-shadow(0 4px 4px #000a); animation: none;
}
.jigsaw-table .jigsaw-pieces button[aria-pressed=true] {background: #8c652441}
.jigsaw-table .table-place {grid-area: place; display: grid; place-items: stretch; align-self: stretch}
.jigsaw-table .table-place > button {
 min-height: 56px; border: 3px double #c6a36c; border-radius: 8px; padding: 5px 9px;
 color: #f3d59f; font: 400 clamp(1.03rem, 2vw, 1.52rem)/1.14 Georgia, serif;
 background: linear-gradient(150deg, #50422d, #181510 65%); box-shadow: inset 0 0 0 3px #181410, 0 4px 12px #000a;
}
.jigsaw-table .table-place > button span {display: block; margin-top: .15em; font-size: .76em}
.jigsaw-table .jigsaw-play:has(.jigsaw-tray[hidden]) .table-place {display: none}
.jigsaw-table .jigsaw-play:has(.jigsaw-tray[hidden]) .table-board-area {grid-column-end: 3}
.jigsaw-table .jigsaw-play > :is(.jigsaw-completion-actions, .live-completion) {grid-area: tray; z-index: 1}
.jigsaw-table .jigsaw-play .jigsaw-assist, .jigsaw-table.jigsaw-live .jigsaw-play .jigsaw-assist {
 justify-self: center; width: min(100%, 560px); grid-template-columns: repeat(4,minmax(0,1fr));
}
.jigsaw-table .jigsaw-play .jigsaw-assist button {min-height: 38px; flex-direction: row; font-size: .72rem}
.jigsaw-table .jigsaw-play .jigsaw-assist svg {width: 16px; height: 16px}
.jigsaw-table #jigsaw-status {color: var(--muted)}
@media (max-width: 760px) {
 .jigsaw-table .jigsaw-play > .jigsaw-head {order: 0; position: absolute; top: 6px; right: 6px; padding: 0; border: 0; box-shadow: none; background: none}
 .jigsaw-table .jigsaw-play .table-nav-actions {display: block}
 .jigsaw-table .jigsaw-play .table-menu {display: grid; min-height: 34px; width: 38px}
 .jigsaw-table .jigsaw-play .table-nav {display: none; position: absolute; top: calc(100% + 3px); right: 0; width: 160px; padding: 6px 12px; background: var(--table-panel); border: 1px solid var(--line)}
 .jigsaw-table[data-menu-open] .jigsaw-play .table-nav {display: grid}
 .jigsaw-table .table-sidebar {display: contents}
 .jigsaw-table .table-hud {order: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 42px 0 2px; text-align: left}
 .jigsaw-table .table-title, .jigsaw-table .table-stats {justify-content: start}
 .jigsaw-table .table-title h2 {font-size: 1.13rem}
 .jigsaw-table .table-stats .table-clock {width: auto; aspect-ratio: auto; flex-direction: row; font: 600 .75rem/1.1 system-ui; border: 1px solid #a88852; box-shadow: none}
 .jigsaw-table .table-board-area {order: 1}
 .jigsaw-table .jigsaw-play .jigsaw-tray {order: 2; padding-inline: 4px}
 .jigsaw-table .jigsaw-pages {grid-template-columns: 42px max-content 42px; width: auto}
 .jigsaw-table .table-place {order: 3; align-self: center; width: min(100%, 22rem)}
 .jigsaw-table .table-place > button {min-height: 44px; font-size: 1.03rem}
 .jigsaw-table .table-place > button span {display: inline; font-size: inherit}
 .jigsaw-table .jigsaw-play .jigsaw-assist {order: 4}
 .jigsaw-table .jigsaw-play .jigsaw-assist button {flex-direction: column; min-height: 44px}
 .jigsaw-table .table-sidebar .live-roster {order: 5; padding: 0}
 .jigsaw-table .jigsaw-play > .jigsaw-head-actions {width: 100%}
}
.jigsaw-table .jigsaw-head .table-nav a {display: flex; align-items: center; gap: 8px}
.jigsaw-table .jigsaw-head .table-nav svg {color: var(--accent); width: 18px; height: 18px}
.jigsaw-table > .jigsaw-head .table-nav a:not([aria-label]) svg {display: none}
.jigsaw-table .jigsaw-tray > h3 {
 text-align: center; color: var(--accent); font-size: .68rem; font-weight: 650; letter-spacing: .15em; text-transform: uppercase;
}
@media (max-width: 760px) {
 .jigsaw-table .table-sidebar > * {flex: none}
}

/* Two centered rows, with a stable hit target beneath each animated piece. */
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-pieces {
 display:flex; flex-wrap:wrap; justify-content:center; width:min(100%,440px);
 margin-inline:auto; gap:2px 5px; padding:4px 0;
}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-pieces > button {
 flex:0 0 calc((100% - 20px)/5); min-height:42px;
}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-pieces canvas {
 width:min(100%,60px); max-height:clamp(42px,6.5dvh,60px);
}
@media (prefers-reduced-motion:no-preference) {
 .jigsaw.jigsaw-table:not([data-auto-solving]) .jigsaw-play .jigsaw-pieces button:not([data-held]):not([data-lifted]) canvas {
  animation:jigsaw-float 3.6s ease-in-out infinite; animation-delay:var(--float-delay,0s);
 }
 .jigsaw-pieces button:nth-child(3n+1){--float-delay:-1.4s}
 .jigsaw-pieces button:nth-child(3n+2){--float-delay:-2.6s}
}
.jigsaw.jigsaw-table .jigsaw-play button:not([data-piece]) {
 font-family:Georgia,'Times New Roman',serif; font-weight:500; letter-spacing:.015em;
 min-height:30px; padding:3px 7px; border-radius:5px; border-color:#9a80533d;
 background:linear-gradient(165deg,#332d24,#1b1916 65%,#171614);
 color:#f3e5c9; box-shadow:inset 0 1px 0 #dfc29638,0 1px 3px #0008;
}
.jigsaw.jigsaw-table .jigsaw-play :is([data-one],[data-auto],[data-exit],[data-section][aria-pressed=true]) {
 background:linear-gradient(165deg,#f1d8a8,#d8b67d 65%,#be985d);
 color:#241b11; border:1px solid #d7b782; box-shadow:inset 0 1px 0 #fff4df99;
}
.jigsaw.jigsaw-table .jigsaw-play [data-hints][aria-pressed=true] {background:#482a2a;border-color:#ac7466}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-pieces button {border-radius:5px}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist button {gap:3px;padding:3px;font-size:.77rem}
.jigsaw.jigsaw-table .jigsaw-play :is(.jigsaw-pages,.table-zoom) {min-height:29px}
.jigsaw.jigsaw-table .jigsaw-play .table-zoom button {min-height:27px;flex-basis:30px}
.jigsaw.jigsaw-table .table-place {align-self:center}
.jigsaw.jigsaw-table .table-place button {min-height:33px;font-size:1rem}
.jigsaw.jigsaw-table #your-pieces {font:500 .7rem/1.25 Georgia,serif;letter-spacing:.16em}
@media(max-width:760px){
 .jigsaw.jigsaw-table .jigsaw-play {gap:4px}
 .jigsaw.jigsaw-table .table-place {width:min(82%,280px)}
 .jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist button {min-height:32px}
 .jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist svg {width:12px;height:12px}
 .jigsaw.jigsaw-table .jigsaw-play .jigsaw-pages {grid-template-columns:32px max-content 32px}
 .jigsaw.jigsaw-table .jigsaw-tray .jigsaw-sections button {font-size:.77rem}
}

@media (max-width:760px) and (orientation:portrait) {
 .jigsaw.jigsaw-table[open]:has(.jigsaw-play:not([hidden])) {
  padding-inline:max(3px,env(safe-area-inset-left)) max(3px,env(safe-area-inset-right));
 }
 .jigsaw.jigsaw-table .jigsaw-play {padding-inline:0}
 .jigsaw.jigsaw-table .jigsaw-play:not([data-board-focus]):not([data-solve-expanded]) .table-board-area {
  flex:1 0 auto;
  max-height:none;
  align-content:center;
 }
 .jigsaw.jigsaw-table .jigsaw-bed {padding:3px}
 .jigsaw.jigsaw-table .jigsaw-play #jigsaw-status {margin-bottom:0}
}

/* White puzzle table and polished metal fittings. */
.jigsaw.jigsaw-table:has(.jigsaw-play:not([hidden])) {
 --ink:#171717; --muted:#555; --accent:#79500b; --line:#bd9347;
 --metal:linear-gradient(115deg,#865015,#ffdd75 15%,#a3600b 34%,#fff1a9 51%,#ce861a 74%,#fff0a1 92%,#91530b);
 --silver:linear-gradient(#fff 15%,#f6f6f6 52%,#dcdcdc 92%,#fff);
 --gold:linear-gradient(#fff2a5,#ffcc4c 30%,#cd870c 70%,#a15b00 89%,#f9d783);
 --table-panel:#fff; --table-control:var(--silver); color-scheme:light;
 background:#fff; color:#151515; padding:6px max(5px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left)); overflow:auto;
}
.jigsaw.jigsaw-table .jigsaw-play:not([hidden]) {
 display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:5px;
 width:min(100%,1000px); height:auto; min-height:0; margin:auto; padding:0; background:#fff; overflow:visible;
}
.jigsaw.jigsaw-table .jigsaw-play > .jigsaw-head {
 order:0; position:relative; inset:auto; display:grid; place-items:center; gap:0; width:100%; padding:0 0 5px;
 border:0; box-shadow:none; background:white; z-index:5;
}
.jigsaw.jigsaw-table .jigsaw-play .table-brand {display:block;width:min(57%,300px);aspect-ratio:685/109;background:url('/table-wordmark.webp') center/contain no-repeat}
.jigsaw-play .table-brand > * {visibility:hidden}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-head::after {content:'CUSTOM PUZZLES　│　PLAY TOGETHER　│　ORDER PRINTS';color:#171717;font:700 clamp(9px,2.1vw,12px)/1.6 system-ui;letter-spacing:.09em}
.jigsaw.jigsaw-table .jigsaw-play .table-nav-actions {display:block;position:absolute;right:2%;top:4%}
.jigsaw.jigsaw-table .jigsaw-play .table-nav-actions > a {display:none}
.jigsaw.jigsaw-table .jigsaw-play .table-menu {display:grid;width:38px;background:var(--gold);color:#171717;border-radius:12px;border-color:#ad791e}
.jigsaw.jigsaw-table .jigsaw-play .table-nav {display:none;position:absolute;inset:38px 1% auto auto;width:190px;max-height:75dvh;overflow:auto;padding:10px;background:white;border:1px solid #b38b47;border-radius:12px;box-shadow:0 6px 22px #0003}
.jigsaw.jigsaw-table[data-menu-open] .jigsaw-play .table-nav {display:grid}
.jigsaw.jigsaw-table .jigsaw-play .table-nav a {color:#242424;font:600 14px system-ui;padding:8px 4px}
.jigsaw.jigsaw-table .jigsaw-play .table-nav .table-zoom {width:100%;display:flex}
.jigsaw.jigsaw-table .jigsaw-play .table-place,.jigsaw.jigsaw-table .jigsaw-play .table-hud,.jigsaw.jigsaw-table .jigsaw-play .table-sidebar:empty,.jigsaw.jigsaw-table:not(.jigsaw-live) .jigsaw-play .table-sidebar,.jigsaw.jigsaw-table .jigsaw-play #your-pieces {display:none}
.jigsaw.jigsaw-table .jigsaw-play:not([data-board-focus]):not([data-solve-expanded]) .table-board-area {
 order:1; width:100%; flex:none; height:auto;aspect-ratio:var(--photo-ratio,1.5);max-height:min(58dvh,640px);align-content:center;
}
.jigsaw.jigsaw-table .jigsaw-play:is([data-solve-expanded],[data-board-focus]) .table-board-area {order:1;width:100%;height:68dvh;flex:none}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-bed {background:var(--metal);padding:clamp(4px,.65vw,8px);border:1px solid #986019;border-radius:16px;box-shadow:inset 0 1px 2px white,0 3px 5px #0005}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-scroll {border-radius:11px;background:#fff}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-board {background:#fff}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray {order:2;align-self:center;width:min(100%,760px);padding:0;display:grid;gap:4px;background:white;border:0;box-shadow:none}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray-head {display:grid;justify-items:center;gap:3px}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-sections {display:grid;width:auto;gap:5px}
.jigsaw.jigsaw-table .jigsaw-play button:not([data-piece]) {color:#171717;background:var(--silver);border:1px solid #ba8d39;box-shadow:inset 0 1px 1px white,0 2px 2px #0003;font-family:system-ui,sans-serif;font-weight:700}
.jigsaw.jigsaw-table .jigsaw-play :is(.jigsaw-sections,.jigsaw-head-actions) button {border-radius:30px;text-transform:uppercase;white-space:nowrap;font-size:clamp(.62rem,2.65vw,.86rem)}
.jigsaw.jigsaw-table .jigsaw-play :is([data-section][aria-pressed=true],[data-exit],.table-menu){background:var(--gold)}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-pages {display:grid;grid-template-columns:32px max-content 32px;gap:14px;align-items:center;color:#222;font:700 .72rem system-ui;text-transform:uppercase}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray-body {padding:4px 7px;background:var(--metal);border:1px solid #986019;border-radius:15px;box-shadow:0 3px 5px #0005}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray-body>div {background:radial-gradient(ellipse at center,#333,#181818 78%);border-radius:10px;box-shadow:inset 0 2px 6px #000}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-pieces {width:100%;padding:4px;box-sizing:border-box}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist {order:3;align-self:center;display:grid;width:min(94%,560px);padding:0;border:0;box-shadow:none;background:white}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist button {border:0;background:transparent;box-shadow:none;display:flex;flex-direction:column;align-items:center;color:#151515;font:700 clamp(10px,2.65vw,13px)/1.2 system-ui;text-transform:uppercase}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist svg {display:none}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist button::before {content:'';width:clamp(31px,7vw,42px);aspect-ratio:1;background:var(--icon) center/contain no-repeat;filter:drop-shadow(0 2px 1px #0004)}
.jigsaw-assist [data-auto]{--icon:url('/table-solve.webp')}.jigsaw-assist [data-hints]{--icon:url('/table-hint.webp')}.jigsaw-assist [data-undo]{--icon:url('/table-undo.webp')}.jigsaw-assist [data-pause]{--icon:url('/table-pause.webp')}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist button[aria-pressed=true]::before {outline:2px solid #ab7516;border-radius:50%}
.jigsaw.jigsaw-table .jigsaw-play > .jigsaw-head-actions {order:5;align-self:center;width:min(100%,650px);display:flex;flex-wrap:wrap;justify-content:center;padding-top:6px;border-top:1px solid #d3b784;background:white}
.jigsaw.jigsaw-table .jigsaw-play > .jigsaw-head-actions button {flex:1 1 auto;min-height:36px}
.jigsaw.jigsaw-table .jigsaw-play > .jigsaw-head-actions [data-register]{order:1}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-actions:has([data-skip][hidden]){display:none}
.jigsaw.jigsaw-table .jigsaw-play .table-sidebar:has(.live-roster){order:4;width:100%;background:#fff;border:0;box-shadow:none;color:#171717}
.jigsaw.jigsaw-table .jigsaw-play #jigsaw-status {order:7;margin:2px auto;color:#555}
.jigsaw.jigsaw-table .jigsaw-play [hidden]{display:none!important}
.jigsaw.jigsaw-table .jigsaw-play .table-brand > * {display:none}
.jigsaw.jigsaw-table .jigsaw-play .table-brand {height:auto;min-height:0;padding:0}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist button:not([data-piece]) {border:0;background:transparent;box-shadow:none}
@media(min-width:761px) {
 .jigsaw.jigsaw-table .jigsaw-play:not([data-board-focus]):not([data-solve-expanded]) .table-board-area {max-height:clamp(180px,calc(100dvh - 375px),620px)}
}
.jigsaw.jigsaw-table .table-brand img.company-logo {display:block;width:96px;height:auto;object-fit:contain;visibility:visible}
.jigsaw.jigsaw-table[open]:has(.jigsaw-play:not([hidden])) {
 display:block;width:100dvw;max-width:100%;inset-inline:0;box-sizing:border-box;
 padding-inline:max(8px,env(safe-area-inset-left),env(safe-area-inset-right));overflow-x:clip;
}
.jigsaw.jigsaw-table[open] > .jigsaw-play:not([hidden]) {margin:0 auto;min-width:0;max-width:100%;box-sizing:border-box}
.jigsaw.jigsaw-table .jigsaw-play > .jigsaw-head {grid-template-columns:minmax(0,1fr);justify-items:center;box-sizing:border-box}
.jigsaw.jigsaw-table .jigsaw-play .table-brand {position:relative;isolation:isolate;width:min(56vw,270px);aspect-ratio:auto;background:none}
.jigsaw.jigsaw-table .jigsaw-play .table-brand img.company-logo {width:100%;height:auto}
.jigsaw.jigsaw-table .jigsaw-play :is(.table-board-area,.jigsaw-tray,.jigsaw-assist,.jigsaw-head-actions) {box-sizing:border-box;max-width:100%;min-width:0;margin-inline:auto}
.jigsaw.jigsaw-table .table-board-area {grid-template-columns:minmax(0,1fr)}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray-head {grid-template-columns:minmax(0,1fr)}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-sections {max-width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){
 .jigsaw.jigsaw-table .jigsaw-play .jigsaw-sections button {white-space:normal;padding-inline:3px}
 .jigsaw.jigsaw-table .jigsaw-play .jigsaw-head-actions button {min-width:0;white-space:normal}
 .jigsaw.jigsaw-table .jigsaw-play:not([data-board-focus]):not([data-solve-expanded]) .table-board-area {flex:0 0 auto}
}

/* Let the artwork sit directly on the white table. */
.jigsaw.jigsaw-table .table-brand img.company-logo {
 filter:none; box-shadow:none; border:0; background:transparent;
}
.jigsaw.jigsaw-table .jigsaw-play .table-brand::after {
 content:"";
 position:absolute;
 inset:auto 12% -3px;
 height:4px;
 background:radial-gradient(ellipse,rgba(99,62,17,.24),transparent 72%);
 pointer-events:none;
}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-bed,
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray-body {
 background:linear-gradient(118deg,#8d520b 0%,#ffe891 9%,#ad6c12 21%,#fff2ad 43%,#cc8a1e 61%,#fff3b7 80%,#ac6a0e 95%,#ffdb71);
 box-shadow:inset 0 1px 1px #fff8df,inset 0 -2px 2px #784209,0 3px 5px #0005;
}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-assist button + button {
 background:linear-gradient(transparent,#d2ac65,transparent) left center/1px 62% no-repeat;
}
@media(max-width:760px) and (orientation:portrait) {
 .jigsaw.jigsaw-table[open]:has(.jigsaw-play:not([hidden])) {padding-bottom:max(8px,env(safe-area-inset-bottom))}
 .jigsaw.jigsaw-table[open] > .jigsaw-play:not([hidden]) {
  min-height:100%;justify-content:space-between;
 }
 .jigsaw.jigsaw-table .jigsaw-play #jigsaw-status {order:4;align-self:center;text-align:center;font-size:.72rem}
 .jigsaw.jigsaw-table .jigsaw-play > .jigsaw-head-actions {order:8}
 .jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray-body {padding:5px 8px}
 .jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray-body .jigsaw-pieces canvas {
  width:min(100%,66px);max-height:clamp(46px,7.6dvh,64px);
 }
}
.detective-slot {
 position:absolute;pointer-events:none;box-sizing:border-box;
 left:calc(100% * var(--column) / var(--columns));top:calc(100% * var(--row) / var(--rows));
 width:calc(100% / var(--columns));height:calc(100% / var(--rows));
 border:2px dashed #a76608;border-radius:10%;background:#ffdb6e40;
}
.jigsaw-bed {position:relative}
.jigsaw-bed::after {
 content:'';pointer-events:none;position:absolute;inset:0;border-radius:inherit;
 box-shadow:inset 0 0 7px 2px #ffdf68,0 0 15px 4px #edb42b;opacity:0;
 transition:opacity .48s ease-out;
}
.jigsaw-bed[data-final-five]::after {opacity:var(--final-glow)}
@media(prefers-reduced-motion:reduce){.jigsaw-bed::after{transition:none}}

/* Four mitred lengths of gilt moulding and a separate pane of glass. */
.jigsaw-bed {--rail:clamp(10px,2.7vw,19px)}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-bed[data-molding] {padding:var(--rail);border-radius:4px}
.jigsaw-bed[data-molding] .jigsaw-scroll {border-radius:1px}
.presentation-frame {position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit}
.presentation-frame i {
 position:absolute;display:block;opacity:0;
 background:linear-gradient(var(--light),#44220d,#b37a2c 9%,#ffecaa 16%,#c69a4a 22%,#6b431b 30%,#a37230 40%,#e7bf70 58%,#855421 70%,#4d3015 76%,#ffdf8c 84%,#bd8e46 94%,#493115);
 transition:transform .48s cubic-bezier(.2,.75,.25,1),opacity .4s;
}
.presentation-frame i:nth-child(odd) {left:0;right:0;height:var(--rail)}
.presentation-frame i:nth-child(even) {top:0;bottom:0;width:var(--rail)}
.presentation-frame i:nth-child(1) {top:0;--light:180deg;transform:translateY(-100%);clip-path:polygon(0 0,100% 0,calc(100% - var(--rail)) 100%,var(--rail) 100%)}
.presentation-frame i:nth-child(2) {right:0;--light:270deg;transform:translateX(100%);clip-path:polygon(100% 0,100% 100%,0 calc(100% - var(--rail)),0 var(--rail))}
.presentation-frame i:nth-child(3) {bottom:0;--light:0deg;transform:translateY(100%);clip-path:polygon(var(--rail) 0,calc(100% - var(--rail)) 0,100% 100%,0 100%)}
.presentation-frame i:nth-child(4) {left:0;--light:90deg;transform:translateX(-100%);clip-path:polygon(0 0,100% var(--rail),100% calc(100% - var(--rail)),0 100%)}
.presentation-frame i[data-fitted] {transform:none;opacity:1}
.presentation-frame span {
 position:absolute;inset:var(--rail);opacity:0;transition:opacity .8s ease-out;
 background:linear-gradient(120deg,#fff3 0%,#fff1 16%,transparent 16.4%,transparent 33%,#fff1 34%,transparent 40%,transparent 77%,#fff1);
 box-shadow:inset 1px 2px 4px #23140555,inset -1px -1px 1px #fffc;
}
.jigsaw-bed[data-glazed] .presentation-frame span {opacity:1}
@media(prefers-reduced-motion:reduce){.presentation-frame i,.presentation-frame span{transition:none}}
.jigsaw.jigsaw-table .jigsaw-play [data-print-finished] {
 display:block;padding:11px 16px;border-radius:20px;border:1px solid #946414;
 background:var(--gold);color:#201504;text-align:center;text-decoration:none;
 font:700 .93rem/1.3 system-ui,sans-serif;box-shadow:0 3px 7px #58390229;
}
@media(prefers-reduced-motion:no-preference){
 .jigsaw-play [data-print-finished]{animation:print-invitation .42s .65s both}
 @keyframes print-invitation{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
}

/* A shared exhibition wall, lit separately above each finished work. */
.jigsaw-gallery .museum {
 color:#fff3da;background:linear-gradient(90deg,#152421,#293b35 47%,#1c2e28);
 padding:clamp(18px,4vw,46px);border-radius:5px;border:1px solid #564d35;
 box-shadow:inset 0 7px 15px #0005,inset 0 -6px #544739,inset 0 -9px #8b7659;
}
.jigsaw-gallery .museum h3 {margin:0;color:#fff3da;font:normal clamp(1.55rem,3.4vw,2.4rem)/1.15 Georgia,serif}
.museum-wall {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,195px),1fr));gap:28px 20px}
.museum-wall > div {display:contents}
.museum-work {min-width:0;text-align:center}
.museum-hang {
 display:grid;place-items:center;position:relative;height:220px;padding:43px 13px 15px;
 box-sizing:border-box;background:radial-gradient(ellipse at 50% 26%,#ffe2a344,transparent 67%);
}
.picture-light {position:absolute;top:17px;left:50%;transform:translateX(-50%);width:38%;height:7px;
 border-radius:4px;background:linear-gradient(#765431,#ffebae 24%,#b38b49 57%,#70532d 84%,#ffe3a4);
 box-shadow:0 3px 5px #0007,0 6px 12px #ffdb8f5c}
.picture-light::before {content:'';position:absolute;bottom:100%;left:47%;width:6%;height:7px;background:#b19561}
.museum-frame {--rail:9px;position:relative;display:inline-grid;padding:var(--rail);max-width:100%;
 box-sizing:border-box;background:#291a10;box-shadow:2px 5px 5px #0009,5px 12px 16px #0005}
.jigsaw-gallery .museum-frame :is(img,canvas) {display:block;max-width:100%;max-height:140px;width:auto;height:auto;object-fit:contain}
.museum-frame .presentation-frame span {opacity:1}
.museum-plaque {margin:auto;color:#eee1c6}
.museum-plaque h4 {color:#fff4da;font:normal 1.1rem/1.3 Georgia,serif;margin:0;overflow-wrap:anywhere}
.museum-plaque small {font:normal .8rem/1.6 system-ui,sans-serif;color:#ddcfad}
.museum-actions {display:flex;justify-content:center;flex-wrap:wrap;gap:4px 10px;margin-top:5px}
.jigsaw-gallery .museum .museum-actions :is(button,a) {padding:4px 0;min-height:28px;background:none;color:#ede0c6;border:0;box-shadow:none;font:normal .78rem/1.4 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px}
.jigsaw-gallery .wall-empty {padding:38px 0;color:#e2d5bb}
.museum:has(.museum-work) .wall-empty {display:none}
@media(max-width:600px){
 .jigsaw-gallery .museum {padding:16px 10px 24px}
 .museum-wall {grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 6px}
 .museum-hang {height:150px;padding:34px 3px 8px}
 .museum-frame {--rail:6px}
 .jigsaw-gallery .museum-frame :is(img,canvas){max-height:93px}
}

/* A clear acrylic panel stands off the wall on four brass mounts. */
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-bed[data-glazed],
.jigsaw-gallery .museum-frame {
 --rail:clamp(11px,3vw,24px); padding:var(--rail);
 background:linear-gradient(123deg,#fff9,#e9f1eb52 34%,#cbdad34d 76%,#fff9);
 border:1px solid #becbc3;border-radius:4px;
 box-shadow:inset 2px 2px 1px #fffffff2,inset -2px -2px 1px #91a29a88,2px 3px 1px #c2cbc5,5px 9px 11px #27302036;
}
.jigsaw-bed[data-glazed]::after {opacity:0}
.jigsaw-bed[data-glazed] .presentation-frame i,.museum-frame .presentation-frame i {
 --pin:clamp(5px,1.7vw,10px);width:var(--pin);height:var(--pin);inset:auto;
 border-radius:50%;clip-path:none;opacity:1;transform:none;
 background:linear-gradient(130deg,#fff4b2 0%,#e2b450 25%,#aa761c 54%,#795017 80%,#e3bb69);
 box-shadow:inset 1px 1px 1px #fff7,1px 2px 1px #764f1c,2px 3px 3px #33250948;
}
:is(.jigsaw-bed[data-glazed],.museum-frame) .presentation-frame i:nth-child(1){left:3px;top:3px}
:is(.jigsaw-bed[data-glazed],.museum-frame) .presentation-frame i:nth-child(2){right:3px;top:3px}
:is(.jigsaw-bed[data-glazed],.museum-frame) .presentation-frame i:nth-child(3){right:3px;bottom:3px}
:is(.jigsaw-bed[data-glazed],.museum-frame) .presentation-frame i:nth-child(4){left:3px;bottom:3px}
.jigsaw-gallery .museum {display:block;padding:0;background:#fbfaf7;color:#312e27;border:1px solid #d8d5ce;border-radius:8px;box-shadow:none}
.jigsaw-gallery .museum h3 {padding:14px 16px 4px;color:#29271e;font:normal clamp(20px,3vw,32px)/1.2 Georgia,serif}
.jigsaw-gallery .wall-tip,.jigsaw-gallery .wall-empty {margin:0;padding:3px 16px 12px;color:#514f46;font:normal 13px/1.45 system-ui}
.gallery-room {isolation:isolate;position:relative;background:white;overflow:hidden}
.museum-wall {position:relative;display:block;width:100%;height:230px;background:#eeefec url('/gallery-plaster.webp') center/100% 100%}
.gallery-bench {width:100%;aspect-ratio:1220/460;background:url('/gallery-bench.webp') center/100% 100%}
.museum-work {position:absolute;width:clamp(83px,22%,210px);margin:0}
.museum-work:focus-within,.museum-work:has(details[open]){z-index:10000!important}
.jigsaw-gallery .museum-hang {display:grid;height:auto;min-height:0;padding:0;cursor:grab;touch-action:none;user-select:none;background:none}
.museum-hang:active{cursor:grabbing}
.museum-hang:focus-visible{outline:2px solid #936922;outline-offset:3px}
.jigsaw-gallery .museum-frame {--rail:clamp(6px,1.3vw,12px);display:grid;place-items:center;width:100%;pointer-events:none}
.jigsaw-gallery .museum-frame :is(img,canvas){max-width:100%;width:auto;height:auto;max-height:clamp(70px,12vw,142px)}
.museum-frame .presentation-frame i {--pin:clamp(3px,.5vw,5px)}
.museum .picture-light {display:none}
.jigsaw-gallery .museum-plaque {position:relative;color:#38352d;margin:5px auto 0;width:max-content;max-width:100%}
.museum-plaque summary {cursor:pointer;color:#37342c;font:600 clamp(10px,1.25vw,14px)/1.25 system-ui;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.museum-plaque[open] {padding:5px;border-radius:4px;background:#fff;box-shadow:0 2px 8px #0002}
.jigsaw-gallery .museum-plaque small,.jigsaw-gallery .museum .museum-actions :is(button,a){color:#554728}

.museum-wall .museum-work {width:min(92%,calc(clamp(83px,22%,210px) * var(--frame-scale,1)))}
.jigsaw-gallery .museum-frame :is(img,canvas){max-height:calc(clamp(70px,12vw,142px) * var(--frame-scale,1))}
.jigsaw-gallery .museum [data-enter-room]{margin:4px 16px 10px}
.museum-work[data-wall-selected] .museum-hang:focus-visible{outline:2px solid #916c34}
dialog.wall-room-view[open] {
 position:fixed;inset:0;margin:0;box-sizing:border-box;padding:0;border:0;border-radius:0;
 width:100%;height:100dvh;max-width:none;max-height:none;background:#edf0ed;color:#312e27;
 display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;
}
.wall-room-view .room-bar {display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:max(6px,env(safe-area-inset-top)) 14px 6px;background:#fffdf9;color:#332a20;font:normal 20px Georgia,serif}
.wall-room-view .room-bar button {min-height:40px}
.wall-room-view .room-scroll {min-height:0;overflow:auto}
.wall-room-view .gallery-room {display:flex;flex-direction:column;min-height:100%}
.wall-room-view .museum-wall {flex:1 0 auto}
.wall-room-view .gallery-bench {flex:none;height:clamp(100px,26dvh,280px);aspect-ratio:auto;background-size:cover;background-position:center bottom}
.wall-room-view .museum-work {width:min(92%,calc(clamp(105px,29%,235px) * var(--frame-scale,1)))}
.wall-room-view .museum-frame :is(img,canvas) {max-height:calc(clamp(80px,17vw,156px) * var(--frame-scale,1))}
.museum-work[data-wall-selected] .museum-plaque summary {text-decoration:underline;text-decoration-color:#a27a3b;text-underline-offset:3px}

.museum-frame [data-corner] {
 display:none;position:absolute;width:28px;height:28px;z-index:2;
 pointer-events:auto;touch-action:none;place-items:center;
}
.museum-work[data-wall-selected] .museum-frame [data-corner] {display:grid}
.museum-frame [data-corner]::after {
 content:"";width:9px;height:9px;border:2px solid #fffdf4;border-radius:3px;
 background:#87642c;box-shadow:0 0 0 1px #624a27,0 1px 3px #0007;
}
.museum-frame [data-corner^=n] {top:-10px}
.museum-frame [data-corner^=s] {bottom:-10px}
.museum-frame [data-corner$=w] {left:-10px}
.museum-frame [data-corner$=e] {right:-10px}
.museum-frame :is([data-corner=nw],[data-corner=se]) {cursor:nwse-resize}
.museum-frame :is([data-corner=ne],[data-corner=sw]) {cursor:nesw-resize}

.jigsaw-table .tray-color{display:inline-flex;align-items:center;gap:.45em;font:600 .78rem system-ui;color:#342b1f}
.jigsaw-table .tray-color select{width:auto;min-height:28px;padding:2px 7px;border:1px solid #ba8d39;border-radius:12px;background:white;color:#262017;font:inherit}

/* Three continuous wall bays, with the original display above the bench. */
.gallery-room {
 container-type:inline-size;
 overflow-x:auto;
 overscroll-behavior-x:contain;
 scrollbar-width:none;
 cursor:grab;
}
.gallery-room::-webkit-scrollbar {display:none}
.gallery-room:active {cursor:grabbing}
.gallery-room .museum-wall {
 width:300%;
 background-size:100cqw 100%;
 background-repeat:repeat-x;
}
.gallery-room .museum-work {
 width:min(92cqw,calc(clamp(83px,22cqw,210px) * var(--frame-scale,1)));
}
.wall-room-view .museum-work {
 width:min(92cqw,calc(clamp(105px,29cqw,235px) * var(--frame-scale,1)));
}
.gallery-room .gallery-bench {
 width:300%;
 aspect-ratio:auto;
 height:37.705cqw;
 background:url('/gallery-bench.webp') center bottom / 100cqw 100% no-repeat,
 linear-gradient(to bottom,#e9e9e5 0%,#e4e4dd 79%,#c6bfb3 80%,#d2c7b8 91%,#e7e3db 100%);
}
.wall-room-view .gallery-bench {height:clamp(100px,26dvh,280px)}

.gallery-delete-dialog {
 box-sizing:border-box;width:min(24rem,calc(100% - 2rem));max-height:90dvh;overflow:auto;
 margin:auto;padding:1.25rem;border:1px solid #abc7d5;border-radius:14px;background:white;
 color:#142c44;box-shadow:0 16px 48px #102b4a45;
}
.gallery-delete-dialog[open] {display:grid;gap:.75rem}
.gallery-delete-dialog::backdrop {background:#142c4499}
.gallery-delete-dialog h2 {font:700 1.25rem/1.25 system-ui,sans-serif}
.gallery-delete-dialog strong {overflow-wrap:anywhere}
.gallery-delete-dialog [data-delete-image]:empty,.gallery-delete-dialog [data-delete-error]:empty {display:none}
.jigsaw-gallery .gallery-delete-dialog :is(img,canvas) {display:block;max-width:100%;max-height:7rem;width:auto;height:auto;margin:auto}
.gallery-delete-dialog [role=alert] {color:#862d21}
.gallery-delete-dialog .jigsaw-gallery-actions {justify-content:flex-end}
.gallery-delete-dialog [data-delete-confirm] {background:#922f25;border-color:#922f25;color:white}
.jigsaw-gallery .museum-hang {-webkit-touch-callout:none}


/* Premium photo setup only. Gameplay styles remain untouched. */
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden])){background:#fff!important;color:#25231f!important;color-scheme:light;--ink:#25231f;--muted:#655e54;--line:#e1d8c8;--accent:#94713a;grid-template-rows:auto minmax(0,1fr) auto auto;gap:10px}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head{background:#fff!important;border:0!important;border-bottom:1px solid #e8dfd1!important;border-radius:0;box-shadow:none!important}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head .table-menu,.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head .table-account{background:#fff!important;color:#24211c!important;border-color:#d9ceba!important;box-shadow:none!important}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head .table-premium{background:linear-gradient(120deg,#f7e6c3,#cda76a)!important;color:#261b0c!important;border:1px solid #b79254!important;box-shadow:none!important}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head .table-nav{background:#fff!important;color:#26221b!important}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head .table-nav a{color:#26221b!important}
.jigsaw.jigsaw-table[open]>.jigsaw-setup:not([hidden]){padding:clamp(12px,3vw,32px);gap:clamp(15px,4vw,44px);align-items:center;background:#fff!important;align-content:start}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo{width:100%;box-sizing:border-box;background:linear-gradient(145deg,#faf9f6,#f0ede7)!important;border:1px solid #e4dac8!important;border-radius:16px!important;box-shadow:0 8px 26px #3b2c1710!important;padding:clamp(14px,3vw,26px);gap:13px}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo canvas{background:#fff!important;border:1px solid #d7c8ae;border-radius:3px;box-shadow:0 6px 18px #2d251e29!important;max-height:46dvh}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo figcaption{display:grid;gap:3px;text-align:center;color:#62594c!important;font-weight:500;font-size:.78rem}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-eyebrow{font-size:.65rem;letter-spacing:.16em;color:#80612f;font-weight:700}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-options{gap:13px;color:#25231f}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-options h3{font:400 clamp(1.7rem,4vw,3rem)/1.08 Georgia,serif;color:#24211d!important;letter-spacing:-.035em}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-options :is(p,small){color:#655e54!important}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:9px}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo-actions :is(button,label){min-width:0;box-sizing:border-box;padding:10px 8px;min-height:48px;background:#fff!important;color:#2a251d!important;border:1px solid #cdbb9c!important;border-radius:9px!important;box-shadow:none!important;font-size:.83rem;line-height:1.2;white-space:normal;text-align:center}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-count{display:grid;gap:11px;border:1px solid #e6ddcd;background:#fbfaf7;border-radius:13px;padding:15px;color:#27221a}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-count-head,.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-count-endpoints{display:flex;align-items:center;justify-content:space-between;gap:8px}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-count-head label{font-size:.86rem;font-weight:650}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-count-head output{font:600 1.55rem/1 Georgia,serif;color:#805e25}
.jigsaw.jigsaw-table[open]>.jigsaw-setup #setup-piece-slider{width:100%;min-height:34px;appearance:none;background:transparent;cursor:pointer;accent-color:#ac8446;margin:0}
.jigsaw.jigsaw-table[open]>.jigsaw-setup #setup-piece-slider::-webkit-slider-runnable-track{height:6px;border-radius:10px;background:linear-gradient(90deg,#ad8544 var(--fill),#e5ddcf var(--fill))}
.jigsaw.jigsaw-table[open]>.jigsaw-setup #setup-piece-slider::-webkit-slider-thumb{appearance:none;width:23px;height:23px;margin-top:-8.5px;border-radius:50%;border:2px solid white;background:#ae8646;box-shadow:0 1px 5px #674c4166}
.jigsaw.jigsaw-table[open]>.jigsaw-setup #setup-piece-slider::-moz-range-track{height:6px;border-radius:10px;background:#e5ddcf}
.jigsaw.jigsaw-table[open]>.jigsaw-setup #setup-piece-slider::-moz-range-progress{height:6px;background:#ad8544;border-radius:10px}
.jigsaw.jigsaw-table[open]>.jigsaw-setup #setup-piece-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;border:2px solid white;background:#ae8646}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-count-endpoints{font-size:.68rem;font-weight:500;color:#6c6356}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-primary{background:linear-gradient(120deg,#f3dfb4,#c79d58)!important;border:1px solid #b48c4b!important;color:#241a0e!important;border-radius:9px!important;box-shadow:none!important;min-height:52px}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>#jigsaw-status{background:#fff!important;color:#645b4e!important;text-align:center;font-size:.78rem}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head-actions{background:#fff!important;border-color:#e3d9c8!important;box-shadow:none!important}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head-actions button{color:#28231c!important;background:#fff!important;border:1px solid #cdbb9c!important;box-shadow:none!important;border-radius:9px!important}
.jigsaw.jigsaw-table[open]:has(>.jigsaw-setup:not([hidden]))>.jigsaw-head-actions [data-exit]{background:linear-gradient(120deg,#f3dfb4,#c79d58)!important}
@media(max-width:600px){.jigsaw.jigsaw-table[open]>.jigsaw-setup:not([hidden]){grid-template-columns:minmax(0,1fr);padding:8px 8px 16px;gap:12px;align-content:start}.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo canvas{max-height:28dvh}.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo{padding:13px;gap:8px}.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-options{gap:11px}}



/* Flat, white piece-count selector. Photo preview remains the actual selected image. */
.jigsaw.jigsaw-table[open]>.jigsaw-setup:not([hidden]){
 display:grid;grid-template-columns:minmax(0,1fr);width:min(100%,820px);min-width:0;align-content:start;align-items:start;gap:16px;padding:12px 12px 18px;--art-ratio:1.5;overflow-x:hidden
}
.setup-intro{display:grid;gap:6px;color:#211f1b;min-width:0}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-intro h2{font:600 clamp(1.65rem,4vw,2.5rem)/1.1 Georgia,serif;letter-spacing:-.025em;color:#201e1b}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-intro p{font:400 .9rem/1.4 system-ui,sans-serif;color:#55514a}
.setup-preview-panel{min-width:0;display:grid;gap:12px;border:1px solid #efebe5;background:#f7f6f4;border-radius:12px;padding:14px;box-sizing:border-box}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo{grid-template-columns:minmax(0,1fr);width:100%;min-width:0;max-width:100%;padding:0;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;gap:12px}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo figcaption{display:block;text-align:center;font:600 1.14rem/1.25 Georgia,serif;color:#27231d!important}
.setup-main-photo{width:min(100%,calc(36dvh * var(--art-ratio)));max-width:100%;min-width:0;display:grid;place-items:center}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-main-photo canvas{display:block;width:100%;height:auto;max-width:100%;max-height:none!important;object-fit:contain;border:1px solid #dedad3!important;box-sizing:border-box;border-radius:5px!important;box-shadow:0 2px 5px #332b2012!important}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-options{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo-actions{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-photo-actions :is(button,label){font-size:.82rem;min-height:44px;border-radius:8px!important}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .jigsaw-options>small{grid-column:1/-1;font-size:.7rem;line-height:1.35}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-size-gallery{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;align-items:start;gap:7px;background:#fff;border:0;padding:0;color:#27221a;min-width:0}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-size-gallery h3{font:600 clamp(1.25rem,3vw,1.8rem)/1.15 Georgia,serif;letter-spacing:-.015em;color:#221f1b}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-gallery-note{font:400 .82rem/1.4 system-ui,sans-serif;color:#5c5750}
.setup-size-display{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:8px;min-width:0;margin-top:5px}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-size-card{position:relative;display:grid;grid-template-rows:auto auto;align-content:start;justify-items:center;gap:7px;min-width:0;min-height:44px;padding:10px 7px 9px!important;border:1px solid #dcd9d4!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important;color:#28241f!important;cursor:pointer;white-space:normal;text-align:center}
.setup-art-stage{display:block;width:100%;min-width:0}
.setup-art-stage canvas{display:block;width:100%;height:auto;aspect-ratio:3/2;box-sizing:border-box;border:1px solid #d1ceca;border-radius:4px;background:#fff}
.setup-size-label{display:block;min-width:0;font:600 clamp(.70rem,1.4vw,.85rem)/1.25 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.setup-size-label strong{font:inherit}
.setup-check{position:absolute;right:4px;top:4px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;border:1px solid white;background:#ac8239;color:white;font-size:12px;opacity:0;pointer-events:none}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-size-card[aria-pressed=true]{background:#fcf5e6!important;border-color:#b58b42!important;box-shadow:inset 0 0 0 1px #b58b42!important}
.setup-size-card[aria-pressed=true] .setup-check{opacity:1}
.setup-size-card:focus-visible{outline:2px solid #94713a!important;outline-offset:2px}
.setup-count-caption{font:600 .72rem/1.3 system-ui,sans-serif;color:#795c30}
.setup-start-row{display:grid;gap:8px;min-width:0}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-start-row .jigsaw-primary{width:100%;min-height:50px;font-size:1rem;border-radius:8px!important}
.jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-print-link{font:600 .78rem/1.4 system-ui,sans-serif;color:#795c30;text-align:center;text-underline-offset:3px;padding:4px}
@media(max-width:600px){
 .jigsaw.jigsaw-table[open]>.jigsaw-setup:not([hidden]){gap:13px;padding:8px 8px 12px}
 .setup-preview-panel{padding:10px;gap:9px}
 .setup-main-photo{width:min(100%,calc(29dvh * var(--art-ratio)))}
 .setup-size-display{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .jigsaw.jigsaw-table[open]>.jigsaw-setup .setup-size-card{padding:7px 5px!important;gap:5px}
}

/* Floating reference for the puzzle on the table. */
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-tray-head {
 grid-template-columns: minmax(44px,1fr) auto minmax(44px,1fr);
}
.jigsaw-tray-head .jigsaw-sections {grid-area:1 / 1 / 2 / -1}
.jigsaw-tray-head .tray-color {grid-area:2 / 2}
.jigsaw-tray-head .jigsaw-pages {grid-area:3 / 2}
.jigsaw.jigsaw-table .jigsaw-play button.preview-eye {
 grid-area:2 / 3 / 4 / 4; align-self:center; justify-self:center; z-index:7;
 display:grid; place-items:center; width:44px; height:44px; min-height:44px; padding:4px;
 border:0; border-radius:50%; background:transparent; box-shadow:none; cursor:pointer;
}
.jigsaw.jigsaw-table .preview-eye svg {
 display:block; box-sizing:border-box; width:36px; height:36px; padding:7px;
 border:1px solid #ad791e; border-radius:50%; background:var(--gold); color:#30200f;
 box-shadow:inset 0 1px 1px white, 0 2px 3px #3d290a45;
}
.jigsaw.jigsaw-table .preview-eye[aria-pressed=true] svg {background:#382c1c; color:#ffe299}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-reference {
 position:fixed; z-index:6; inset:0 auto auto 0; display:block; box-sizing:border-box;
 width:max-content; height:auto; min-width:0; min-height:0; margin:0; padding:3px;
 border:1px solid #9a752f; border-radius:11px; background:#241f19;
 box-shadow:inset 0 0 0 1px #e5cc94, 0 5px 18px #211a1045, 0 1px 4px #0004;
 cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none;
 -webkit-tap-highlight-color:transparent;
}
.jigsaw.jigsaw-table .jigsaw-reference:active {cursor:grabbing}
.jigsaw-reference canvas {
 display:block; width:auto; height:auto; max-width:none; max-height:none;
 border-radius:7px; pointer-events:none;
}
.jigsaw.jigsaw-table .jigsaw-play .jigsaw-reference button.preview-resize {
 position:absolute; bottom:0; right:0; display:grid; align-items:end; justify-items:end;
 width:44px; height:44px; min-width:0; min-height:0; max-width:100%; max-height:100%;
 margin:0; padding:3px; border:0; border-radius:0 0 10px 0; background:transparent;
 box-shadow:none; color:#ffe7ab; cursor:nwse-resize; touch-action:none;
}
.preview-resize svg {
 display:block; box-sizing:border-box; width:26px; height:26px; padding:4px;
 border:1px solid #d5ab60; border-radius:7px 3px 7px 3px; background:#302619;
 box-shadow:0 1px 4px #0006; pointer-events:none;
}

/* Keep the hint state readable against both the solo table and furnished rooms. */
dialog.jigsaw-table .jigsaw-play .jigsaw-assist [data-hints] > span {
 display:inline-block; min-width:7.4ch; padding:2px 6px; box-sizing:border-box;
 white-space:nowrap; border-radius:1rem; border:1px solid #a49888;
 background:#f7f4ed; color:#332e28; text-shadow:none;
}
dialog.jigsaw-table .jigsaw-play .jigsaw-assist [data-hints][aria-pressed="true"] > span {
 border-color:#b5f1c8; background:#17633e; color:white;
}
dialog.jigsaw-table .jigsaw-play .jigsaw-assist [data-hints][aria-pressed="true"]::before {
 border-radius:50%; outline:3px solid #2cbb70; outline-offset:1px;
 box-shadow:0 0 0 5px #153f30;
}

/* Fireside solo table. The panorama and photographed flames share one camera frame. */
.solo-signature,.table-brand .solo-motto {display:none}
html:has(.jigsaw-solo[open] > .jigsaw-play:not([hidden])) {overflow:hidden}
dialog.jigsaw.jigsaw-solo[open]:has(> .jigsaw-play:not([hidden])) {padding:0;background:#20150e}
dialog.jigsaw.jigsaw-solo[open] > .jigsaw-play:not([hidden]) {
  --drawer-time:420ms;
  --drawer-ease:cubic-bezier(.22,.72,.22,1);
  --rim:linear-gradient(122deg,#714621 0%,#f5d596 9%,#a77232 24%,#fff1cb 44%,#c49150 68%,#f5deb1 83%,#71471f 100%);
  --lacquer:linear-gradient(#49423c 0%,#292622 27%,#151412 66%,#0c0c0c 90%,#302b25);
  --gutter:max(8px,env(safe-area-inset-left),env(safe-area-inset-right));
  display:flex; position:relative; isolation:isolate; align-items:center; justify-content:flex-start;
  width:100%; height:100dvh; min-height:max(100dvh,430px); max-width:none;
  padding:max(4px,env(safe-area-inset-top)) var(--gutter) max(7px,env(safe-area-inset-bottom));
  margin:0; gap:0; overflow:visible; background:transparent;
}
.solo-room {position:absolute;z-index:-1;inset:0;overflow:hidden;pointer-events:none;background:#281a12}
.solo-panorama {
  position:absolute;top:0;left:min(0px,max(calc((100% - 177.778dvh) / 2),calc(4% - 16dvh)));width:max(100%,177.778dvh);aspect-ratio:16/9;
  background:url('/solo-fireside-1920.webp') center / 100% 100% no-repeat;
}
.solo-room::after {
  content:""; position:absolute;inset:0;
  background:linear-gradient(180deg,#100a0752,transparent 18%,transparent 74%,#160e0880);
}
@media(min-width:2000px),(min-width:1100px) and (min-resolution:1.5dppx),(min-height:650px) and (min-resolution:2dppx) {
  .solo-panorama {background-image:url('/solo-fireside-3840.webp')}
}
.solo-hearth {position:absolute;left:5.10888%;top:47.61905%;width:10.80402%;height:13.54167%}
@media(prefers-reduced-motion:no-preference) {
  .solo-hearth {background:url('/solo-hearth.webp') center/100% 100% no-repeat;mask-image:radial-gradient(ellipse 67% 75% at 50% 50%,#000 64%,transparent 99%)}
}
dialog.jigsaw.jigsaw-solo .jigsaw-play > .jigsaw-head {
  flex:none;width:min(89%,1160px);height:clamp(69px,11dvh,108px);min-height:0;
  padding:0 clamp(6px,1.6vw,24px);border:0;border-radius:0;
  background:linear-gradient(90deg,transparent,#1a1714d6 21%,#1a1714df 50%,#1a1714cf 79%,transparent);
  box-shadow:none;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .table-brand {
  display:grid;justify-items:center;align-content:center;width:auto;background:none;line-height:1;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .table-brand :is(img.company-logo), 
dialog.jigsaw.jigsaw-solo .jigsaw-play .table-brand::after {display:none}
dialog.jigsaw.jigsaw-solo .jigsaw-play .table-brand .solo-signature {
  display:inline-flex;align-items:center;position:relative;visibility:visible;
  color:#f2ede3;font:600 clamp(27px,4.1vw,62px)/1 Georgia,serif;letter-spacing:-.055em;
  text-shadow:0 1px 0 #fff8,0 2px 1px #51483f,0 4px 5px #100a07;
}
.solo-signature sup {align-self:flex-start;margin:.35em .04em 0 .12em;font:600 .16em/1 system-ui;letter-spacing:0}
.solo-signature i {width:.84em;height:.84em;background:linear-gradient(130deg,#fff1ae,#c78634 32%,#ffdd87 50%,#9c601e 84%);mask:url('/mark.svg') center/contain no-repeat}
dialog.jigsaw.jigsaw-solo .jigsaw-play .table-brand .solo-motto {
  display:block;visibility:visible;margin:.45em 0 0;color:#efdab1;
  font:650 clamp(6px,.7vw,10px)/1 system-ui;letter-spacing:.13em;text-transform:uppercase;white-space:nowrap;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-head::after {color:#fff8ec;text-shadow:0 1px 4px #000;font-size:clamp(8px,1vw,12px);line-height:1.5}
dialog.jigsaw.jigsaw-solo .jigsaw-play button.solvebutton-radio {
  width:clamp(56px,7vw,85px);background:transparent;color:#fff;border:0;box-shadow:none;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .solvebutton-radio img {border-radius:18%;clip-path:inset(3% 2% 3% 2% round 18%)}
dialog.jigsaw.jigsaw-solo .jigsaw-play .radio-readout {color:#fff5df;text-shadow:0 1px 3px black}
dialog.jigsaw.jigsaw-solo .jigsaw-play :is(.table-menu,.jigsaw-sections button,.jigsaw-head-actions button,.jigsaw-pages button) {
  background:var(--lacquer);color:#fff8e9;border:1px solid #b8986a;
  box-shadow:inset 0 1px 1px #fff9,inset 0 -2px 2px #0009,0 2px 4px #120a08a6;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play :is(.jigsaw-sections button[aria-pressed=true],[data-exit]) {
  color:#24160c;background:linear-gradient(#fff1c9,#e6bd7b 31%,#c08c43 76%,#f8dba3);
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-head button.table-menu {
  background:var(--lacquer);border:1px solid #c2a16d;color:#fff2db;border-radius:10px;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .table-menu svg {color:#fff2db}
dialog.jigsaw.jigsaw-solo .jigsaw-play > .solo-board-stage {
  --board-width:min(70cqw,1420px);
  --handle-space:44px;
  order:1;display:flex;flex:1 1 0;min-height:84px;width:100%;
  flex-direction:column;align-items:center;justify-content:center;container-type:size;
}
dialog.jigsaw.jigsaw-table.jigsaw-solo .jigsaw-play .solo-board-stage .table-board-area {
  flex:none;margin:0;min-height:1px;width:var(--board-width);max-width:100%;
  height:min(calc(100cqh - var(--handle-space)),calc(var(--board-width) / var(--photo-ratio,1.5) + 12px));
  aspect-ratio:auto;max-height:none;align-content:center;
  transition:width var(--drawer-time) var(--drawer-ease),height var(--drawer-time) var(--drawer-ease);
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-bed {
  background:var(--rim);box-shadow:inset 0 1px 2px #fff2d1,inset 0 -2px 2px #67401f,0 3px 4px #160d08b3,0 10px 22px #1a0e0899;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .solo-drawer-handle {
  position:relative;order:2;display:grid;place-items:center;flex:none;
  width:clamp(72px,10vw,122px);height:var(--handle-space);min-height:44px;min-width:44px;
  background:transparent;border:0;box-shadow:none;color:#fff9eb;padding:0;
}
.solo-drawer-handle::before {
  content:"";position:absolute;inset:5px 0;border-radius:99px;border:1px solid #b4ab9e;
  background:var(--lacquer);box-shadow:inset 0 1px 1px #fffa,inset 0 -2px 2px #0009,0 2px 5px #0009;
}
dialog.jigsaw.jigsaw-solo .solo-drawer-handle svg {position:relative;width:22px;height:13px;transition:transform var(--drawer-time) var(--drawer-ease)}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray {
  display:flex;flex:none;flex-direction:column;align-items:stretch;order:2;
  width:min(86%,1250px);max-height:none;padding:0;gap:0;border:0;background:transparent;box-shadow:none;
  transition:width var(--drawer-time) var(--drawer-ease);
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray-head {
  display:grid;flex:none;align-content:center;align-self:center;align-items:center;justify-items:center;
  grid-template-columns:auto auto 46px;grid-template-rows:1fr 1fr;gap:0 12px;
  width:min(100%,760px);height:84px;box-sizing:border-box;padding:0 6px;
  border:0;border-radius:14px;background:linear-gradient(90deg,transparent,#241c16cc 14% 86%,transparent);
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray-head .jigsaw-sections {grid-area:1/1/2/-1;display:grid;width:100%;gap:clamp(3px,.8vw,12px)}
dialog.jigsaw.jigsaw-solo .jigsaw-tray-head .tray-color {grid-area:2/1;color:#fff3df;justify-self:end}
dialog.jigsaw.jigsaw-solo .jigsaw-tray-head .jigsaw-pages {grid-area:2/2;display:flex;color:#fff3df;gap:8px}
dialog.jigsaw.jigsaw-solo .jigsaw-tray-head .preview-eye {grid-area:2/3;justify-self:center}
dialog.jigsaw.jigsaw-solo .jigsaw-tray-head select {background:#211c17;color:#fff2da;border-radius:20px;color-scheme:dark}
dialog.jigsaw.jigsaw-solo .jigsaw-tray-head .jigsaw-pages button {border-radius:20px;min-width:32px}
dialog.jigsaw.jigsaw-solo .jigsaw-tray-head button.preview-eye svg {background:var(--lacquer);color:#ffdb91;border-color:#c29a60}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray-body {
  position:relative;display:block;flex:none;align-self:center;width:min(100%,640px);
  box-sizing:border-box;padding:clamp(3px,.5vw,6px);border:1px solid #8a693e;border-radius:15px;
  background:linear-gradient(168deg,#fff1c8 0%,#cba576 12%,#715238 36%,#bd996c 65%,#f3dab0 87%,#705139);
  box-shadow:inset 0 1px 1px #fff3d9,0 2px 1px #4b321f,0 6px 14px #180e0999;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray-body > div {
  overflow:clip;border-radius:10px;padding:2px 5px;
  background:radial-gradient(ellipse at 35% 0%,#39332e,#221f1c 65%,#191715);
  box-shadow:inset 0 2px 5px #000b,inset 0 -1px 1px #c1a07e36;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-pieces {
  --tile-size:clamp(44px,8.8dvh,88px);
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,var(--tile-size));
  gap:2px;align-items:stretch;width:100%;margin:0;padding:2px 0;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-pieces > button {
  display:grid;place-items:center;min-width:0;min-height:44px;width:100%;max-width:none;padding:0;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray-body .jigsaw-pieces canvas {
  display:block;width:min(100%,var(--tile-size));height:auto;max-height:none;filter:none;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-pieces p {
  grid-area:1/1/-1/-1;align-self:center;text-align:center;color:#fff3df;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play button.solo-tray-step {
  position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;min-height:44px;
  border:0;background:transparent;color:white;box-shadow:none;padding:0;line-height:1;
  font-size:26px;display:none;align-items:center;justify-content:center;
}
.solo-tray-step::before {content:"";position:absolute;width:30px;height:30px;border:1px solid #d7b98b;border-radius:50%;box-shadow:inset 0 1px 2px #fff4}
.solo-tray-step[data-drawer-prev] {left:3px}
.solo-tray-step[data-drawer-next] {right:3px}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-assist {
  display:grid;flex:none;order:3;width:min(80%,790px);height:clamp(58px,8dvh,79px);
  align-items:center;padding:0;border:0;background:linear-gradient(90deg,transparent,#181512b5 14% 86%,transparent);box-shadow:none;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-assist button {
  display:grid;justify-items:center;align-content:center;gap:2px;min-height:44px;
  padding:0 2px;background:transparent;border:0;box-shadow:none;color:#fff4dc;
  font:650 clamp(10px,1vw,13px)/1.2 system-ui;text-shadow:0 1px 3px #000;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-assist button::before {display:none}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-assist button svg {
  display:block;box-sizing:border-box;width:clamp(29px,4.5dvh,44px);height:clamp(29px,4.5dvh,44px);
  padding:6px;border:1px solid #e1b96f;border-radius:50%;background:var(--lacquer);color:#ffdc94;
  box-shadow:inset 0 1px 1px #fff8,0 2px 3px #0009;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-assist button > span {
  padding:0;min-width:0;background:transparent;border:0;color:#fff4dc;font:inherit;text-shadow:0 1px 3px #000;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-assist [data-hints][aria-pressed=true] svg {
  background:linear-gradient(#225742,#11382e);outline:2px solid #8dd5a7;outline-offset:1px;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-assist button:disabled {opacity:.55}
dialog.jigsaw.jigsaw-solo .jigsaw-play > .jigsaw-head-actions {
  order:5;align-items:center;flex:none;width:min(85%,1020px);padding:2px 4px;min-height:0;height:46px;
  flex-wrap:nowrap;gap:clamp(4px,1.1vw,17px);border:0;background:transparent;box-shadow:none;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-head-actions button {flex:1 1 0;min-width:0;padding-inline:4px;min-height:36px}
dialog.jigsaw.jigsaw-solo .jigsaw-play #jigsaw-status:not([data-notice]) {
  position:absolute;width:1px;height:1px;clip-path:inset(50%);padding:0;overflow:hidden;white-space:nowrap;
}
dialog.jigsaw.jigsaw-solo .jigsaw-play #jigsaw-status[data-notice] {order:4;padding:5px 12px;background:#251c14;color:#fff4db;border-radius:6px}
dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-completion-actions {order:2;flex:none}
dialog.jigsaw.jigsaw-solo .jigsaw-play :is(.jigsaw-head,.jigsaw-tray-head,.jigsaw-assist,.jigsaw-head-actions) {
  transition:height var(--drawer-time) var(--drawer-ease),opacity 220ms ease,transform var(--drawer-time) var(--drawer-ease),visibility 0s;
}
dialog.jigsaw.jigsaw-solo[open] > .jigsaw-play[data-drawer-down]:not([hidden]) {min-height:100dvh}
dialog.jigsaw.jigsaw-solo .jigsaw-play[data-board-focus] > .solo-board-stage {--board-width:99cqw}
dialog.jigsaw.jigsaw-table.jigsaw-solo .jigsaw-play[data-board-focus] .solo-board-stage .table-board-area {height:calc(100cqh - var(--handle-space))}
dialog.jigsaw-solo:not([data-phase=play]) .solo-drawer-handle {visibility:hidden}
dialog.jigsaw.jigsaw-solo .jigsaw-play[data-drawer-down] > .solo-board-stage {--board-width:min(97cqw,2100px)}
dialog.jigsaw.jigsaw-solo .jigsaw-play[data-drawer-down] :is(.jigsaw-head,.jigsaw-tray-head,.jigsaw-assist,.jigsaw-head-actions) {
  height:0;min-height:0;margin-block:0;padding-block:0;opacity:0;overflow:hidden;
  transform:translateY(10px);visibility:hidden;pointer-events:none;
  transition-delay:0s,0s,0s,var(--drawer-time);
}
dialog.jigsaw.jigsaw-solo .jigsaw-play[data-drawer-down] > .jigsaw-head {transform:translateY(-12px)}
dialog.jigsaw.jigsaw-solo .jigsaw-play[data-drawer-down] .solo-drawer-handle svg {transform:rotate(180deg)}
dialog.jigsaw.jigsaw-solo .jigsaw-play[data-drawer-down] .jigsaw-tray {width:min(98%,1520px)}
dialog.jigsaw.jigsaw-solo .jigsaw-play[data-drawer-down] .jigsaw-tray-body > div {padding-inline:41px}
dialog.jigsaw.jigsaw-solo .jigsaw-play[data-drawer-down] .solo-tray-step {display:flex}
@media(max-aspect-ratio:6/5) {
  /* Frame the fireplace and its leather chair like a seated portrait view. */
  .solo-panorama {left:calc(6% - 17dvh)}
  dialog.jigsaw.jigsaw-solo .jigsaw-play > .solo-board-stage {--board-width:83cqw}
  dialog.jigsaw.jigsaw-solo .jigsaw-play > .jigsaw-head {width:100%}
  dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray {width:98%}
  dialog.jigsaw.jigsaw-solo .jigsaw-play > .jigsaw-head-actions {width:100%}
}
@media(max-width:600px) and (max-height:570px) and (max-resolution:1dppx) {
  .solo-panorama {background-image:url('/solo-fireside-960.webp')}
}
@media(max-width:600px) {
  dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray-head {
    width:100%;grid-template-columns:minmax(0,1fr) auto 40px;gap:0 4px;height:81px;
  }
  dialog.jigsaw.jigsaw-solo .jigsaw-tray-head .jigsaw-pages {gap:4px;font-size:.63rem}
  dialog.jigsaw.jigsaw-solo .jigsaw-tray-head .jigsaw-pages button {min-width:27px;min-height:32px;padding:2px 5px}
  dialog.jigsaw.jigsaw-solo .jigsaw-tray-head .tray-color {gap:3px;font-size:.7rem}
  dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-head-actions button {font-size:clamp(9px,2.6vw,12px)}
  dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-head:has(.solvebutton-radio) {grid-template-columns:minmax(45px,1fr) auto minmax(39px,1fr)}
}
@media(max-height:510px) and (orientation:landscape) {
  dialog.jigsaw.jigsaw-solo .jigsaw-play > .jigsaw-head {height:50px}
  dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-head::after {display:none}
  dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-tray-head {height:60px}
  dialog.jigsaw.jigsaw-solo .jigsaw-play .jigsaw-assist {height:45px}
  dialog.jigsaw.jigsaw-solo .jigsaw-play > .jigsaw-head-actions {height:38px}
}
@media(prefers-reduced-motion:reduce) {
  dialog.jigsaw.jigsaw-solo[open] > .jigsaw-play:not([hidden]) {--drawer-time:0ms}
  dialog.jigsaw.jigsaw-solo .jigsaw-play :is(.jigsaw-head,.jigsaw-tray-head,.jigsaw-assist,.jigsaw-head-actions,.table-board-area,.jigsaw-tray,.solo-drawer-handle svg) {transition-duration:0s;transition-delay:0s}
}
