:root{color-scheme:dark;--blue:#4169e1;--text:#f5f5f7;--muted:#929299;--line:#2a2a2e;--card:#1e1e1e;font-family:Arial,Helvetica,sans-serif;font-synthesis:none;background:#000;color:var(--text)}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #94aeff;outline-offset:5px}[hidden]{display:none!important}.container{width:min(1160px,calc(100% - 80px));margin:0 auto}.header{height:110px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #202023;gap:24px}.brand{display:flex;align-items:center;min-width:132px}.brand img{object-fit:contain;max-width:132px}.brand-fallback{font-weight:900;font-size:30px;letter-spacing:-1.6px}.brand-fallback span{color:#7896f3}.header-note{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:9px}.status-dot{display:inline-block;width:6px;height:6px;background:#8db099;border-radius:100%}.header-link{font-size:13px}.header-link span{color:#9ab0f9;margin-left:20px}.hero{display:grid;grid-template-columns:1.08fr 1fr;gap:50px;align-items:center;padding:54px 0 74px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#a7a8b0;line-height:1.8}h1{font-size:64px;line-height:1.06;letter-spacing:-3px;font-weight:600;margin:24px 0}.hero h1{font-size:58px;margin:0 0 20px}.blue-word{color:#829df2}.hero-description{font-size:16px;color:#a5a5ad;line-height:1.8;margin:26px 0 30px}.button{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:48px;border:1px solid #3c3c43;border-radius:9px;padding:13px 24px;background:#202023;color:#f8f8fa;font-size:13px;font-weight:600;transition:background .15s,transform .15s}.button:hover{background:#303038}.button.primary{background:var(--blue);border-color:var(--blue)}.button.primary:hover{background:#537aeb}.button:active{transform:translateY(1px)}.hero-cta{min-width:210px;justify-content:space-between}.microcopy{font-size:11px;color:#787881;margin-top:17px}.hero-art{position:relative;background:#17191e;border:1px solid #303238;border-radius:20px;min-height:408px;padding:25px 34px 20px;transform:rotate(2deg);box-shadow:0 24px 80px #13204422}.art-label{font-size:9px;letter-spacing:1.5px;color:#959cab;display:flex;gap:8px;align-items:center}.demo-puzzle{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;width:290px;height:290px;max-width:90%;margin:28px auto;transform:rotate(-5deg)}.demo-tile{border-radius:4px;background-image:url('/landscape.svg');background-size:400% 400%;background-position:calc(var(--x)*100%/3) calc(var(--y)*100%/3);box-shadow:0 3px 5px #0004}.tile-3{transform:translate(15px,-13px) rotate(13deg)}.tile-12{transform:translate(-18px,8px) rotate(-12deg)}.tile-6{transform:translate(-7px,4px) rotate(-8deg)}.tile-15{transform:translate(12px,12px) rotate(9deg)}.art-sticker{position:absolute;bottom:45px;right:-22px;display:flex;align-items:center;gap:14px;padding:16px 22px;background:#dce6b7;color:#263019;border-radius:12px;box-shadow:0 10px 30px #0005;transform:rotate(-6deg);font-size:11px;line-height:1.65}.art-sticker>span{font-size:30px}.art-sticker strong{font-weight:600}.art-caption{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.5px;color:#89909b}.steps{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);padding:34px 0;gap:26px}.steps article{display:flex;gap:20px}.step-number{font:12px monospace;color:#829df2;padding-top:3px}.steps h2{font-size:15px;margin:0 0 10px;font-weight:500}.steps p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.little-note{display:flex;justify-content:center;align-items:center;gap:10px;text-align:center;color:#72727c;font-size:11px;line-height:1.8;padding:30px 0 12px}.little-note>span{font-size:18px}.footer{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:#707079;padding:35px 0 28px}.footer a{color:#a3a3ad}.back-link{display:inline-block;color:#9b9ba5;font-size:12px;margin-bottom:36px}.page-intro{text-align:center;padding:42px 0 24px}.page-intro .back-link{display:block}.page-intro h1{font-size:48px;margin:15px 0 20px;letter-spacing:-2px}.page-intro p{color:#95959e;font-size:15px}.create-layout{max-width:640px;margin:auto}.upload-card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:25px;transition:border-color .15s}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;width:100%;min-height:250px;background:#18181b;border:1px dashed #53535d;border-radius:10px;color:#a2a2ac}.dropzone:hover,.drag-over .dropzone{background:#202638;border-color:#8ca7ff}.dropzone strong{font-size:17px;color:#eee}.dropzone span{font-size:13px}.dropzone .upload-icon{font-size:38px;color:#a8baff;font-weight:300;line-height:1;margin-bottom:8px}.dropzone small{font-size:10px;color:#797984;margin-top:10px}.text-blue{color:#93acf9}.upload-card>.button{width:100%;margin-top:22px}.upload-note{font-size:10px;color:#8a8a95;line-height:1.8;text-align:center;margin:16px 0 0}.upload-note a{text-decoration:underline}.create-details{display:flex;justify-content:center;gap:36px;color:#93939d;font-size:11px;padding:24px 0}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#preview-image{display:block;width:100%;max-height:300px;object-fit:contain;border-radius:8px;background:#111}.preview-info{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0 0;min-width:0}.preview-info>div{min-width:0}.preview-info strong{display:block;max-width:350px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.preview-info small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.text-button{background:none;border:0;color:#9bb2fb;font-size:11px;white-space:nowrap}.error{color:#ffb5ab;font-size:13px;line-height:1.5}.game-layout{padding-top:30px;max-width:1020px;margin:auto}.game-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.share-tools{display:flex;align-items:center;gap:20px}.expiry{font-size:11px;color:#9999a3}.expiry strong{font-family:monospace;color:#d6d6de}.button.small{font-size:11px;min-height:36px;padding:8px 13px}.game-heading{display:flex;align-items:center;justify-content:space-between;margin:40px 0 24px;gap:20px}.level-tabs{display:flex;align-items:center;gap:14px;font-size:10px;color:#656572}.level-tabs .active{color:#9bb4ff}.level-tabs .done{color:#92cbb1}.tab-line{width:30px;height:1px;background:#38383f}.game-heading h1{font-size:40px;letter-spacing:-1.6px;margin:16px 0 12px}.game-heading p{font-size:13px;color:#94949f;line-height:1.6;margin:0}.timer-box{padding:15px 22px;border:1px solid #31313a;border-radius:12px;text-align:center;background:#151518;min-width:126px}.timer-box>span{display:block;font-size:8px;letter-spacing:1.7px;color:#8a8a95;margin-bottom:8px}.timer-box strong{font-size:32px;font-weight:400;font-variant-numeric:tabular-nums;letter-spacing:1px}.timer-box.urgent strong{color:#f1b671}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px;align-items:start}.game-card{background:var(--card);padding:22px;border:1px solid #303035;border-radius:14px;min-width:0}.board-caption{display:flex;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:1.2px;color:#9d9da7;margin-bottom:18px}#progress{letter-spacing:0;color:#aebbe5}.board-shell{width:100%;display:flex;align-items:center;justify-content:center;background:#151517;border-radius:5px;padding:0;min-height:100px}.board{position:relative;max-width:100%;overflow:hidden;background-color:#111114;background-image:linear-gradient(to right,#ffffff0d 1px,transparent 1px),linear-gradient(to bottom,#ffffff0d 1px,transparent 1px);background-size:25% 25%;isolation:isolate}.piece{position:absolute;width:25%;height:25%;padding:0;border:2px solid #ffffff66;border-radius:3px;background-size:100% 100%;box-shadow:0 4px 10px #0008;touch-action:none;user-select:none;cursor:grab;opacity:1!important}.piece:focus-visible{outline:3px solid #bfd0ff;outline-offset:-5px}.piece.dragging{cursor:grabbing;box-shadow:0 6px 18px #000b}.piece.near{border:3px solid #f4d765}.piece.locked{border:2px solid #73bd8f;cursor:default;box-shadow:none}.sliding .piece{border:1px solid #111;cursor:pointer;transition:left .12s,top .12s;box-shadow:none;touch-action:manipulation}.board-hint{font-size:10px;color:#92929e;text-align:center;line-height:1.6;padding-top:17px}.hint-dot{display:inline-block;width:5px;height:5px;background:#f4d765;border-radius:100%;margin-right:5px}.reference-card{padding:22px;border:1px solid #27272d;border-radius:14px;background:#111113}.reference-card .eyebrow{font-size:9px;letter-spacing:1.5px}.reference-card img{width:100%;max-height:210px;object-fit:contain;margin:16px 0;border-radius:5px;background:#090909}.reference-card h2{font-size:14px;font-weight:500;margin:4px 0 10px}.reference-card p{font-size:11px;color:#8f8f9b;line-height:1.8;margin:0}.reference-divider{height:1px;background:#2b2b32;margin:24px 0}.reference-label{font-size:8px;letter-spacing:1.5px;color:#a6a6b0;display:block;margin-bottom:10px}.reference-card details{margin-top:22px;color:#92929f;font-size:10px}.reference-card summary{cursor:pointer}.reference-card details p{margin-top:10px}.game-actions{display:flex;gap:12px;justify-content:center;margin:24px 0}.button.subtle{background:transparent;border-color:transparent;color:#9b9ba5}.loading{text-align:center;padding:160px 0;color:#a7b9f7}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);padding:16px 24px;background:#e2e9ff;color:#17254c;border-radius:12px;font-size:13px;box-shadow:0 8px 40px #0009;z-index:1000;text-align:center;line-height:1.5}dialog{max-width:min(430px,calc(100% - 32px));padding:34px;background:#1e1e24;color:#f5f5fa;border:1px solid #454551;border-radius:18px;text-align:center;box-shadow:0 20px 120px #000}dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}dialog h2{font-size:26px;font-weight:500;letter-spacing:-.6px}dialog p{font-size:14px;color:#a7a7b2;line-height:1.7}dialog form{margin-top:24px}.dialog-icon{font-size:40px;color:#8fabff}.terms{max-width:680px;margin:50px auto 70px}.terms h1{font-size:44px;letter-spacing:-1.5px}.terms h2{font-size:20px;margin:30px 0 10px}.terms p{color:#a0a0ab;font-size:14px;line-height:1.8}.terms .button{margin-top:20px}
@media(min-width:1300px){.hero{padding-top:64px;padding-bottom:90px}h1{font-size:72px}.hero h1{font-size:64px}}
@media(max-width:900px){.container{width:calc(100% - 48px)}.hero{gap:32px;padding:40px 0 60px}.hero h1{font-size:46px}.hero-description{font-size:14px}.hero-art{padding:22px;min-height:340px}.demo-puzzle{width:240px;height:240px;margin:25px auto}.art-sticker{right:-8px;bottom:35px;padding:12px 16px}.steps article{gap:12px}.steps p{font-size:11px}.steps br{display:none}.play-layout{grid-template-columns:minmax(0,1fr) 210px;gap:18px}.reference-card{padding:16px}.game-top>.eyebrow{display:none}}
@media(max-width:680px){.header{height:84px}.header-note{display:none}.hero{grid-template-columns:1fr;gap:30px;padding:28px 0 45px}.hero-copy{text-align:center}.hero h1{font-size:48px;margin-top:0}.hero-description br{display:none}.hero-description{max-width:350px;margin:22px auto}.hero-art{width:min(390px,94%);margin:0 auto;min-height:350px}.demo-puzzle{width:250px;height:250px}.steps{grid-template-columns:1fr;padding:26px 0;gap:25px}.steps article{gap:20px}.steps h2{font-size:15px}.steps p{font-size:12px}.steps br{display:none}.little-note{font-size:10px;align-items:flex-start}.footer{font-size:9px;flex-wrap:wrap}.game-layout{padding-top:20px}.game-top{justify-content:center}.share-tools{width:100%;justify-content:space-between;gap:10px}.game-heading{margin:28px 0 20px}.game-heading h1{font-size:29px;letter-spacing:-1px}.game-heading p{font-size:12px}.timer-box{padding:13px;min-width:98px}.timer-box strong{font-size:26px}.play-layout{grid-template-columns:1fr}.reference-card{display:grid;grid-template-columns:90px 1fr;column-gap:18px;align-items:center}.reference-card>.eyebrow{grid-column:2;grid-row:1}.reference-card img{grid-column:1;grid-row:1/4;margin:0;max-height:90px}.reference-card h2{grid-column:2;font-size:13px;margin:5px 0}.reference-card p{grid-column:2;font-size:10px}.reference-divider,.reference-label,.reference-label+p{display:none}.reference-card details{grid-column:1/3;margin-top:12px}.game-card{padding:16px}.board-caption{font-size:8px;letter-spacing:.7px}.page-intro{padding-top:30px}.page-intro h1{font-size:42px}}
@media(max-width:480px){.container{width:calc(100% - 24px)}.header{height:76px;gap:10px}.brand img{width:112px}.brand{min-width:112px}.header-link{font-size:11px}.header-link span{margin-left:8px}.hero h1{font-size:44px;letter-spacing:-2px}.hero{padding-top:22px}.hero-art{width:calc(100% - 22px);padding:20px;min-height:330px}.art-label{font-size:8px}.demo-puzzle{width:230px;height:230px}.art-sticker{bottom:30px;right:-8px}.footer>span:first-child{width:100%}.footer{padding-top:26px;gap:14px}.upload-card{padding:15px}.create-details{gap:18px;font-size:10px}.preview-info{flex-direction:column;align-items:flex-start}.preview-info strong{max-width:250px}.game-card{padding:10px}.board-caption{margin:5px 0 12px;font-size:7px}.board-hint{font-size:9px;padding:12px 4px 3px}.share-tools{flex-direction:column;align-items:stretch;text-align:center}.game-actions{flex-direction:column}.game-actions .button{width:100%}.game-heading{gap:10px;align-items:flex-end}.game-heading h1{font-size:25px}.game-heading p{font-size:11px}.timer-box{padding:10px;min-width:85px}.timer-box strong{font-size:23px}.timer-box>span{font-size:7px}.level-tabs{gap:8px;font-size:9px}.tab-line{width:20px}.terms h1{font-size:36px}.terms{margin-top:30px}.piece{border-width:1px}.piece.locked{border-width:1px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Extend the drag boundary below the original board without adding trays. */
.board-shell{overflow:hidden}
.board-shell:has(.free-drag){background:transparent}
.puzzle-workspace{position:relative;max-width:100%;flex:none;isolation:isolate}
.puzzle-workspace>.board{position:absolute;left:0;top:0;width:100%;max-width:none}
.puzzle-workspace>.board.jigsaw{overflow:visible}

/* Green-piece celebration, followed by a seamless level-one photo reveal. */
.board.complete{box-shadow:inset 0 0 0 2px #73e2a7}
.board.complete .piece{border:2px solid #73e2a7;cursor:default;box-shadow:none}
.celebration{position:absolute;inset:0 0 auto;overflow:hidden;pointer-events:none;z-index:1000}
.celebration i{position:absolute;left:var(--x);top:-14px;width:7px;height:12px;border-radius:2px;animation:confetti-fall .85s var(--delay) ease-out both}
@keyframes confetti-fall{from{transform:translate(0,0) rotate(0);opacity:1}to{transform:translate(var(--drift),240px) rotate(var(--turn));opacity:0}}
@media(prefers-reduced-motion:reduce){.celebration i{animation:none;top:var(--x);transform:rotate(var(--turn));opacity:.85}}

/* Compact game branding, reference and sharing controls. */
.game-heading{margin:0 0 16px;align-items:center}
.game-heading h1{margin:0;line-height:1;letter-spacing:normal}
#game-brand .brand img{width:180px;max-width:180px;height:64px}
.game-subheading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}
.reference-card.sharing-card{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.sharing-card .reference-visual{width:100%}
.sharing-card .reference-visual img{display:block;width:100%;max-height:200px;margin:0;object-fit:contain}
.reference-content{flex:1;min-width:0;width:100%}
.sharing-card .reference-content p{margin:7px 0 0}
.share-options{border:0;padding:0;margin:20px 0 14px;min-width:0}
.share-options legend{font-size:12px;font-weight:700;margin-bottom:12px}
.share-options label{display:block;font-size:12px;line-height:1.5;margin:0 0 10px;cursor:pointer}
.share-options input{accent-color:#8ca7ff;margin:0 6px 0 0}
.share-options small{display:block;margin-left:22px;color:#92929e;font-size:10px}
.share-buttons{display:flex;flex-direction:column;gap:8px}
.share-buttons .button{width:100%}
.sharing-card details{width:100%;margin:0;font-size:10px}
.sharing-card .share-status{font-size:10px;color:#a9c7b4;min-height:1em}
.mystery-photo{display:grid;place-items:center;min-height:120px;border-radius:8px;background:#171d2e;color:#9bb4ff;font-size:54px}
.sliding .piece{touch-action:none;cursor:grab}
.sliding .piece.dragging{transition:none;cursor:grabbing;z-index:3;box-shadow:none}
@media(max-width:680px){.sharing-card .reference-visual{width:90px;flex:none}.sharing-card .reference-visual img{max-height:150px}.sharing-card .reference-content{width:auto}.mystery-photo{min-height:100px}.game-subheading .expiry{font-size:10px}}
@media(max-width:480px){#game-brand .brand img{width:150px;max-width:150px;height:54px}.game-heading{align-items:center;margin:0 0 18px}.game-layout{padding-top:20px}.game-subheading{gap:10px;margin-bottom:16px}}

.difficulty-label{display:block;font-size:12px;margin:16px 0 8px}
#share-levels{width:100%;background:#15151a;border:1px solid #494953;color:var(--text);padding:10px;border-radius:7px;font:inherit;font-size:12px}
.rank-option{display:block;font-size:12px;line-height:1.6;margin:16px 0;cursor:pointer}.rank-option input{accent-color:#8ca7ff}.rank-option small{display:block;color:var(--muted);font-size:10px;margin-left:23px}
.leaderboard{margin-top:24px;padding:22px;border:1px solid #353542;border-radius:14px;background:#1e1e1e}
.leaderboard-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.leaderboard h2{font-size:22px;margin:8px 0}.leaderboard p{font-size:12px;color:#acacb8;line-height:1.6}.leaderboard ol{padding-left:28px}.leaderboard li{padding:12px 6px;border-bottom:1px solid #34343b}.leaderboard li::marker{color:#97b2ff;font-weight:bold}.leaderboard li strong{overflow-wrap:anywhere;font-size:14px}.leaderboard li span{float:right;margin-left:12px;font-size:11px;color:#a2a2ae}.rank-note{font-size:10px!important;color:#91919e!important;line-height:1.6}#name-form label{display:block;text-align:left;font-size:12px;margin:12px 0 8px}#player-name{width:100%;padding:12px;border:1px solid #636376;background:#111116;border-radius:8px;color:white;font:inherit}#name-form .button{width:100%;margin-top:10px}
@media(max-width:480px){.leaderboard{padding:14px}.leaderboard-heading{align-items:flex-start;flex-direction:column}.leaderboard h2{font-size:20px}}

/* Consent controls use equal-weight accept/reject choices and stay usable on phones. */
.footer{flex-wrap:wrap;align-items:center}
.cookie-link{background:none;border:0;color:#b7c7fa;text-decoration:underline;text-underline-offset:3px;padding:8px 0;font:inherit;cursor:pointer}
.cookie-banner{position:fixed;z-index:500;bottom:18px;left:50%;transform:translateX(-50%);width:min(1080px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;display:flex;align-items:center;gap:26px;padding:22px 26px;background:#1e1e24;border:1px solid #56566a;border-radius:16px;box-shadow:0 12px 70px #000b}
.cookie-banner h2{font-size:18px;letter-spacing:0;margin:0 0 8px}.cookie-banner p{font-size:13px;line-height:1.6;color:#c2c2ce;margin:0}.cookie-banner a,#cookie-settings a,.terms a:not(.button){text-decoration:underline;text-underline-offset:3px;color:#b7c7fa}
.cookie-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.cookie-actions .button{white-space:nowrap}.cookie-actions .cookie-link{padding:12px 4px;font-size:13px}
#cookie-settings{max-height:calc(100dvh - 32px);overflow:auto;text-align:left;width:min(540px,calc(100% - 32px));padding:28px}#cookie-settings h2{font-size:26px}#cookie-settings p{font-size:13px;line-height:1.7;color:#c2c2ce}.cookie-category{padding:18px 0;border-block-start:1px solid #42424b}.cookie-category>strong{display:flex;justify-content:space-between;gap:10px}.cookie-category strong{font-size:14px}.cookie-category strong span{font-weight:400;color:#b3b3c2;font-size:12px}.cookie-category label{display:flex;align-items:center;gap:10px;cursor:pointer}#analytics-consent{width:20px;height:20px;accent-color:#4169e1}.cookie-category p{margin-bottom:0}
@media(max-width:900px){.cookie-banner{align-items:stretch;flex-direction:column;gap:16px}.cookie-actions{flex-wrap:wrap}.cookie-actions .button{flex:1}}
@media(max-width:480px){.cookie-banner{bottom:8px;width:calc(100% - 16px);padding:16px}.cookie-actions{flex-direction:column;align-items:stretch;gap:8px}.cookie-actions .button{width:100%;min-height:44px}.cookie-actions .cookie-link{padding:7px}#cookie-settings{padding:22px}.footer{justify-content:center;text-align:center;gap:12px 20px}}

/* iOS long-press must not open native image actions while moving puzzle pieces. */
.puzzle-workspace,.puzzle-workspace .piece{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}

.board.complete.revealed{overflow:hidden;box-shadow:none;background-image:none}
.board.revealed .piece{visibility:hidden}
.completed-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block;pointer-events:none;user-select:none}
.board.complete.seamless .piece{border:0;border-radius:0}
.completed-photo-actions{display:flex;justify-content:center;padding-top:14px}
.completed-photo-actions .button{min-height:44px}
