.pixfind-page{width:min(100% - 32px,1080px);margin:0 auto;padding:28px 0 112px;color:var(--ink,#252820)}
.pixfind-heading{margin:0 auto 22px;max-width:760px}.pixfind-heading h1{font-size:clamp(1.5rem,4vw,2.35rem);margin:.15em 0}.pixfind-heading p{margin:.35em 0}.pixfind-eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.12em;color:#556c47}.pixfind-status,.pixfind-game-status{min-height:1.5em;color:#485044}.pixfind-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:16px}.pixfind-card{min-width:0;border:1px solid #d8dbd1;border-radius:16px;background:#fff;overflow:hidden}.pixfind-card button{display:grid;width:100%;height:100%;padding:0;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer}.pixfind-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#e9e9e2}.pixfind-card__body{padding:12px 14px}.pixfind-card h2{font-size:1.1rem;margin:0 0 6px}.pixfind-card p{margin:0;color:#5d6259;font-size:.9rem}.pixfind-card button:focus-visible,.pixfind-back:focus-visible,#pixfind-play-area:focus-visible,#pixfind-primary:focus-visible{outline:3px solid #335cbe;outline-offset:3px}.pixfind-game{margin-top:20px}.pixfind-game__heading{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}.pixfind-game__heading h2{margin:0;font-size:clamp(1.2rem,3vw,1.8rem)}.pixfind-game__heading p{margin:.25em 0}.pixfind-back{border:1px solid #b8beb0;border-radius:999px;background:#fff;padding:8px 14px;color:inherit;cursor:pointer}.pixfind-progress{white-space:nowrap;font-weight:700}.pixfind-images{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.pixfind-image{min-width:0;margin:0}.pixfind-image figcaption{font-weight:700;margin:0 0 6px}.pixfind-image>img,.pixfind-play-area{display:block;width:100%;max-height:min(62vh,680px);aspect-ratio:4/3;object-fit:contain;background:#f0f0eb;border-radius:12px}.pixfind-play-area{position:relative;overflow:hidden;cursor:crosshair;touch-action:manipulation}.pixfind-play-area img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.pixfind-play-area canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.pixfind-found-list{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}.pixfind-found-list li{border-radius:999px;background:#e2ebd9;padding:5px 12px;font-size:.9rem}.pixfind-found-list:empty{display:none}.pixfind-page [hidden]{display:none!important}.site-footer{margin-bottom:24px}.mobile-nav{z-index:20}.mobile-nav button#pixfind-primary{border:0;background:#49643c;color:#fff;font:inherit;font-weight:700;cursor:pointer}.pixfind-primary-ready{background:#49643c!important;color:#fff!important}.pixfind-primary-done{background:#dadfd4!important;color:#283225!important}
@media(max-width:600px){.pixfind-page{width:calc(100% - 24px);padding-top:18px}.pixfind-game__heading{grid-template-columns:auto 1fr;gap:8px}.pixfind-progress{grid-column:2;white-space:normal}.pixfind-images{grid-template-columns:1fr;gap:12px}.pixfind-image>img,.pixfind-play-area{max-height:48vh}.pixfind-found-list{margin-top:10px}}
@media(max-height:620px) and (min-width:601px){.pixfind-page{padding-top:10px}.pixfind-heading{margin-bottom:8px}.pixfind-game__heading{gap:8px}.pixfind-image>img,.pixfind-play-area{max-height:46vh}}
.pixfind-found-list li{padding:0;background:transparent}.pixfind-found-list li button{border:1px solid #c7d3bc;border-radius:999px;background:#e2ebd9;padding:6px 12px;color:inherit;cursor:pointer}.pixfind-found-list li button:disabled{opacity:1;color:#355638}.mobile-nav button#pixfind-primary{border-radius:12px}
.pixfind-page--playing>.pixfind-heading,.pixfind-page--playing>#pixfind-status{display:none}

/* Keep the puzzle artwork central while a puzzle is active. */
body.pixfind-tool-body.pixfind-is-playing{overflow:hidden;overscroll-behavior:none}
.pixfind-page--playing{position:fixed;inset:var(--px-header-height,64px) 0 calc(4.8rem + env(safe-area-inset-bottom,0px));display:block;box-sizing:border-box;width:100%;height:auto;max-width:none;margin:0;padding:4px 8px 3px;overflow:hidden}
body.pixfind-is-playing>.site-footer{display:none}
.pixfind-game{display:grid;width:100%;height:100%;min-width:0;min-height:0;grid-template-rows:auto auto minmax(0,1fr) auto;gap:3px;margin:0;overflow:hidden}
.pixfind-game__heading{min-width:0;grid-template-columns:30px minmax(0,1fr) auto;gap:7px;align-items:center}
.pixfind-back{width:30px;height:30px;padding:0;border-radius:50%;font-size:1.35rem;line-height:1}
.pixfind-game__identity{min-width:0}.pixfind-game__heading h2{overflow:hidden;font-size:.88rem;text-overflow:ellipsis;white-space:nowrap}.pixfind-game__heading p{overflow:hidden;margin:1px 0 0;color:#62675f;font-size:.62rem;text-overflow:ellipsis;white-space:nowrap}
.pixfind-progress{margin:0;font-size:.7rem;font-variant-numeric:tabular-nums}
.pixfind-game-status{min-height:1em;margin:0;overflow:hidden;font-size:.68rem;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.pixfind-images{display:grid;min-width:0;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:3px;margin:0}
.pixfind-image{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr);gap:3px;margin:0}
.pixfind-image figcaption{display:flex;min-height:21px;align-items:center;justify-content:space-between;gap:8px;margin:0;color:#485044;font-size:.66rem}
.pixfind-compare{min-height:25px;padding:3px 9px;border:1px solid #c5cbbd;border-radius:999px;background:rgba(255,255,255,.88);color:inherit;font:inherit;cursor:pointer}
.pixfind-compare:focus-visible{outline:3px solid #335cbe;outline-offset:2px}
.pixfind-play-area{width:100%;height:100%;max-height:none;aspect-ratio:auto!important;border-radius:8px;background:#171a16;touch-action:manipulation}
.pixfind-play-area img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain}
.pixfind-play-area img[hidden]{display:none!important}
.pixfind-found-list{max-height:48px;align-content:flex-start;gap:4px;overflow:auto;margin:0;padding:0;scrollbar-width:none}
.pixfind-found-list li{flex:none;font-size:.62rem;line-height:1.2}
.pixfind-page--playing .app-tabs{z-index:30}
.pixfind-page--playing~.site-footer{display:none}
@media(max-width:600px){.pixfind-page--playing{width:100%;padding:4px 6px 2px}.pixfind-game__heading{grid-template-columns:28px minmax(0,1fr) auto;gap:5px}.pixfind-back{width:28px;height:28px}.pixfind-images{grid-template-columns:minmax(0,1fr);gap:0}.pixfind-found-list{max-height:40px}}
@media(orientation:landscape) and (max-height:500px){.pixfind-page--playing{grid-template-rows:minmax(28px,auto) auto minmax(0,1fr) auto;gap:2px;padding:2px 8px}.pixfind-game{grid-template-rows:auto auto minmax(0,1fr) auto;gap:2px}.pixfind-game__heading h2{font-size:.74rem}.pixfind-game__heading p,.pixfind-progress,.pixfind-game-status,.pixfind-image figcaption{font-size:.58rem}.pixfind-image figcaption{min-height:17px}.pixfind-back{width:25px;height:25px}.pixfind-found-list{max-height:28px}.pixfind-found-list li{font-size:.54rem}}
/* The older gallery grid used align-items:start, which collapsed the play image. */
.pixfind-page--playing .pixfind-images{align-items:stretch}
.pixfind-page--playing .pixfind-image{height:100%}
/* Puzzle art is stored one pixel per dot: enlarge it in whole steps with hard pixel edges. */
.pixfind-play-area img,.pixfind-card img{image-rendering:pixelated}
.pixfind-hint{display:inline-grid;place-items:center;width:40px;height:40px;margin-left:6px;padding:0;border:0;border-radius:12px;background:#15202b;color:#ffd35a;box-shadow:0 3px 0 rgba(0,0,0,.4);cursor:pointer}
.pixfind-hint[hidden]{display:none}
.pixfind-hint svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pixfind-hint:active{transform:translateY(3px);box-shadow:none}
.pixfind-hint{position:relative;flex:none;width:44px;height:44px}
.pixfind-hint:disabled{opacity:.65;cursor:default}
/* The arcade HUD adds a fifth row: leave the flexible row to the artwork. */
.pixfind-page--playing{display:flex;flex-direction:column}
.pixfind-page--playing #pixfind-game{flex:1;min-height:0;height:auto}
.pixfind-page--playing #pixfind-game.arc-play{grid-template-rows:auto auto auto minmax(0,1fr) auto}

/* Two equally sized, independently tappable views keep their pixels aligned. */
.pixfind-page--playing .pixfind-images--comparison{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:clamp(6px,1vw,14px)}
.pixfind-images--comparison .pixfind-image{min-width:0;min-height:0;height:100%}
.pixfind-images--comparison .pixfind-image figcaption{box-sizing:border-box;min-height:16px;padding:0 4px;font-size:.7rem;font-weight:800;line-height:1}
.pixfind-images--comparison .pixfind-play-area{min-height:0;border:0;border-radius:10px;box-shadow:0 0 0 1px #aeb9a9,0 3px 0 #273c2f1a}
.pixfind-images--comparison .pixfind-play-area:focus-visible{outline:3px solid #335cbe;outline-offset:2px}
.pixfind-game--comparison .pixfind-game__heading{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;min-height:44px}
.pixfind-game--comparison .pixfind-progress,.pixfind-game--comparison .pixfind-found-list{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pixfind-game--comparison .pixfind-hint{margin:0}
@media(max-width:699px) and (orientation:portrait){
  .pixfind-page--playing .pixfind-images--comparison{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}
}
.pixfind-game--comparison .pixfind-back{width:44px;height:44px;min-width:44px;min-height:44px}
.pixfind-game .pixfind-game-status:not([data-visible="true"]){height:0;min-height:0;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pixfind-game .pixfind-game-status[data-feedback="correct"]{color:#245b31}
.pixfind-game .pixfind-game-status[data-feedback="miss"]{color:#8a4d17}
.pixfind-page--playing #pixfind-game:not(.arc-play)>.pixfind-game__heading{grid-row:1}
.pixfind-page--playing #pixfind-game:not(.arc-play)>.pixfind-game-status{grid-row:2}
.pixfind-page--playing #pixfind-game:not(.arc-play)>.pixfind-images{grid-row:3}
.pixfind-page--playing #pixfind-game:not(.arc-play)>.pixfind-found-list{grid-row:4}
.pixfind-page--playing #pixfind-game.arc-play>.arc-hud{grid-row:1}
.pixfind-page--playing #pixfind-game.arc-play>.pixfind-game__heading{grid-row:2}
.pixfind-page--playing #pixfind-game.arc-play>.pixfind-game-status{grid-row:3}
.pixfind-page--playing #pixfind-game.arc-play>.pixfind-images{grid-row:4}
.pixfind-page--playing #pixfind-game.arc-play>.pixfind-found-list{grid-row:5}
.pixfind-page--playing .pixfind-game .pixfind-game-status{box-sizing:border-box;width:100%;height:1.25em;min-height:1.25em;margin:0;padding:0;overflow:hidden;clip-path:none;font-size:.75rem;text-overflow:ellipsis;white-space:nowrap;visibility:hidden}
.pixfind-page--playing .pixfind-game .pixfind-game-status[data-visible="true"]{visibility:visible}
.pixfind-game .pixfind-game-status[data-feedback]{padding:0 5px;border:1px solid #c8d9c9;border-radius:999px;background:rgba(255,255,255,.96);text-align:center}
.pixfind-game .pixfind-game-status[data-feedback="miss"]{border-color:#e6c79d;background:rgba(255,248,237,.97)}
.pixfind-play-area[data-feedback]::after{position:absolute;z-index:3;top:var(--pixfind-feedback-y);left:var(--pixfind-feedback-x);width:30px;height:30px;border:3px solid #65c77a;border-radius:50%;content:"";pointer-events:none;transform:translate(-50%,-50%);animation:pixfind-feedback-pop 900ms ease-out both}
.pixfind-play-area[data-feedback="miss"]::after{border-color:#e5a34c}
@keyframes pixfind-feedback-pop{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}35%{opacity:1}100%{opacity:.75;transform:translate(-50%,-50%) scale(1.25)}}
@media(prefers-reduced-motion:reduce){.pixfind-play-area[data-feedback]::after{animation:none;opacity:1;transform:translate(-50%,-50%)}}
.pixfind-game .pixfind-image #pixfind-image-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pixfind-game--comparison .pixfind-image{position:relative;grid-template-rows:minmax(0,1fr)}
.pixfind-game--comparison .pixfind-image figcaption{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pixfind-game--comparison .pixfind-play-area{touch-action:none}
@media(max-height:620px){.pixfind-game--comparison .pixfind-game__identity p{display:none}}
@media(orientation:landscape) and (max-height:500px){
  body[data-puzzle-mode="spot-difference"].pixfind-is-playing>.site-header{display:block!important}
  body[data-puzzle-mode="spot-difference"].pixfind-is-playing .pixfind-page--playing{top:var(--px-header-height,64px)!important}
  .pixfind-game--comparison>.arc-hud{display:none!important}
  .pixfind-page--playing #pixfind-game.arc-play.pixfind-game--comparison{grid-template-rows:auto auto minmax(0,1fr)}
  .pixfind-page--playing #pixfind-game.arc-play.pixfind-game--comparison>.pixfind-game__heading{grid-row:1}
  .pixfind-page--playing #pixfind-game.arc-play.pixfind-game--comparison>.pixfind-game-status{grid-row:2}
  .pixfind-page--playing #pixfind-game.arc-play.pixfind-game--comparison>.pixfind-images{grid-row:3}
}

/* The player handles pinch zoom and image panning with pointer events. */
#pixfind-play-area,#pixfind-changed-area{touch-action:none}

/* Object targets belong to the play surface, but must clear the bottom navigation. */
body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-page--playing{bottom:calc(5.25rem + env(safe-area-inset-bottom,0px))}
body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-found-list{box-sizing:border-box;flex-wrap:nowrap;align-items:center;gap:6px;width:100%;max-height:40px;min-height:40px;margin:0;padding:3px 5px;overflow-x:auto;overflow-y:hidden;border-radius:12px;background:#e8ede7;scrollbar-width:none}
body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-found-list li{box-sizing:border-box;display:flex;align-items:center;flex:0 0 auto;max-width:min(62vw,220px);height:32px;overflow:hidden;padding:0 9px;border:1px solid #c7d3bc;border-radius:999px;background:#fff;color:#38493d;font-size:.72rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-found-list li::before{content:'○';flex:none;margin-right:5px;color:#7a8a7d;font-size:.82rem}
body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-found-list li.pixfind-target--found{border-color:#5f9e68;background:#e0f1df;color:#295d31}
body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-found-list li.pixfind-target--found::before{content:'✓';color:#268042}

/* Keep the object artwork usable on short landscape screens without letting the
   status list or arcade HUD consume the play surface. */
@media(orientation:landscape) and (max-height:500px){
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing #pixfind-game>.arc-hud{display:none}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing #pixfind-game.arc-play{grid-template-rows:auto auto minmax(70px,1fr) minmax(26px,auto);gap:1px}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing #pixfind-game.arc-play>.pixfind-game__heading{grid-row:1}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing #pixfind-game.arc-play>.pixfind-game-status{grid-row:2}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing #pixfind-game.arc-play>.pixfind-images{grid-row:3}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing #pixfind-game.arc-play>.pixfind-found-list{grid-row:4}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-game__heading{min-height:26px;grid-template-columns:25px minmax(0,1fr) auto;gap:4px}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-game__heading p{display:none}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-back{width:24px;height:24px;min-width:24px;min-height:24px}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-image figcaption{min-height:15px}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-found-list{min-height:26px;max-height:26px;padding:1px 4px}
  body[data-puzzle-mode="hidden-object"].pixfind-is-playing .pixfind-found-list li{height:22px;padding:0 7px;font-size:.62rem}
}

/* Keep a puzzle's name and author legible in the first viewport beside the fixed app navigation. */
.pixfind-page:not(.pixfind-page--playing){padding-bottom:calc(160px + env(safe-area-inset-bottom,0px))}
.pixfind-card{position:relative}
.pixfind-card__body{position:absolute;right:0;bottom:0;left:0;padding:24px 14px 10px;background:linear-gradient(transparent,rgba(18,25,18,.88));color:#fff}
.pixfind-card h2{overflow:hidden;color:inherit;text-overflow:ellipsis;white-space:nowrap}
.pixfind-card p{overflow:hidden;color:rgba(255,255,255,.86);text-overflow:ellipsis;white-space:nowrap}

/* The hidden-object editor reuses the puzzle workbench's compact field style. */
.hidden-target-rename{display:grid;gap:4px;font-size:.75rem;font-weight:700}
.hidden-target-rename>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.hidden-target-rename input{box-sizing:border-box;min-width:0;min-height:40px;padding:7px 10px;border:1px solid #c5cbbd;border-radius:10px;font:inherit;font-weight:400}
.hidden-target-rename button,#hidden-edit-targets{min-height:40px;padding:7px 12px;border:1px solid #c5cbbd;border-radius:12px;background:#fff;color:inherit;font:inherit;font-size:.82rem;cursor:pointer}
.hidden-target-rename button:disabled,#hidden-edit-targets:disabled{opacity:.45;cursor:default}
body.hidden-object-editing #hidden-editor[data-confirmed="true"] #hidden-target-settings[open] .hidden-workbench{display:grid}
