*{box-sizing:border-box}html{background:#faf5eb;color:#283a36;font-family:Outfit,system-ui,sans-serif}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{border:1px solid #bfc6b5;background:#faf7ed;color:#263c34;padding:12px 17px;border-radius:10px;cursor:pointer;min-height:46px;font-weight:600;touch-action:manipulation}@media(hover:hover){button:hover{background:#eee8d8}}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #cc632c;outline-offset:3px}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}.primary{background:#215947;border-color:#215947;color:#fff}@media(hover:hover){.primary:hover{background:#184b3b}}.muted{color:#626d61;font-size:14px;line-height:1.5}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:700}.site-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(16px,calc((100% - 1100px)/2));border-bottom:1px solid #dedfd1}.site-header>a{font-weight:700;white-space:nowrap}.site-header nav{display:flex;gap:6px}.site-header button{font-size:13px;padding:8px 10px;border:0;background:transparent;min-height:42px}main{max-width:1100px;margin:auto}.home-screen{padding:24px}.home-art{position:relative;min-height:420px;overflow:hidden;border-radius:18px;background:#ead3a9}.home-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.home-content{position:relative;padding:40px;width:58%;pointer-events:none}.home-content h1{font-size:clamp(58px,8vw,96px);line-height:.87;letter-spacing:-.055em;margin:25px 0;color:#183f35}.home-content>p:last-child{font-size:22px;line-height:1.35}.home-actions{padding:24px 0 0}.solo-actions,.online-actions{display:flex;gap:10px;flex-wrap:wrap}.online-actions{margin-top:10px}.best{font-weight:600}.centered{max-width:580px;margin:auto;text-align:center;padding:65px 24px;min-height:65vh}.centered h1{font-size:40px;margin:12px 0}.centered>button{margin:12px 5px}.centered form{max-width:370px;margin:30px auto;text-align:left}.join-row{display:flex;gap:8px;margin-top:7px}.join-row input{width:100%;min-width:0;text-transform:uppercase;font-size:22px;letter-spacing:.12em;border:1px solid #b9c5b3;border-radius:9px;padding:12px;background:#fff}.play-screen{background:#faf5eb;width:min(100%,760px);margin:0 auto;padding:12px 20px}.play-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.play-top h1{font-size:23px;margin:10px 0}.play-top button{border:0;background:transparent;padding:8px 5px;min-width:44px}.hud{display:flex;justify-content:space-between;align-items:center;padding:12px 2px}.hud>div{display:flex;flex-direction:column;gap:2px}.hud span{font-size:12px;color:#647466}.hud strong{font-size:20px}.hud-middle{text-align:center}.hud-score{text-align:right}.board-stage{position:relative;overflow:hidden;border-radius:14px;background:#e9c798}.board-stage canvas{display:block;width:100%;height:auto;touch-action:none}.cover{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:#f8f2e9ed;padding:22px}.cover h2{font-size:35px;margin:5px 0}.cover p{max-width:370px;line-height:1.5}.cover-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.play-hint{min-height:42px;padding:10px 1px;font-size:14px;line-height:1.3}.touch-controls{display:flex;align-items:center;justify-content:space-between;gap:16px}.dpad{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,46px);gap:5px}.dpad button{font-size:24px;padding:2px;border-radius:9px;touch-action:none;user-select:none}.dpad [data-move=up]{grid-column:2}.dpad [data-move=left]{grid-column:1;grid-row:2}.dpad [data-move=down]{grid-column:2;grid-row:2}.dpad [data-move=right]{grid-column:3;grid-row:2}.dpad button.active{background:#215947;color:#fff}.action-controls{display:flex;flex-direction:column;gap:7px;min-width:130px}.action-controls button[aria-pressed=true]{background:#e7c67c;border-color:#b38a39}.play-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;padding:10px 0}.play-footer button{min-height:40px;padding:8px 10px;font-size:12px}footer{max-width:1100px;margin:auto;display:flex;justify-content:space-between;padding:20px 24px;color:#617065;font-size:13px}dialog{border:0;border-radius:17px;padding:28px;max-width:min(92vw,520px);color:#283a36;background:#fffaf0;box-shadow:0 20px 80px #17322533}dialog::backdrop{background:#183c356b}dialog h2{font-size:30px;margin-top:6px}dialog p,dialog li{line-height:1.6}dialog li{margin-bottom:10px}dialog button{margin:4px 3px}dialog .close{float:right;border:0;font-size:24px;background:none;padding:2px 8px}dialog label{display:block;margin:10px 0}dialog select{display:block;width:100%;padding:12px;margin-bottom:20px}.feedback{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:90vw;background:#173f35;color:white;padding:13px 22px;border-radius:12px;z-index:30;box-shadow:0 5px 22px #183c3533}.skip{position:absolute;top:-60px;left:10px;z-index:100;background:white;padding:12px}.skip:focus{top:5px}[hidden]{display:none!important}
@media(max-width:600px){.site-header{padding:8px 12px;gap:4px}.site-header>a{font-size:13px}.site-header nav{gap:0}.site-header button{font-size:12px;padding:7px}.home-screen{padding:12px}.home-art{min-height:430px}.home-art>img{object-position:57% center}.home-content{padding:28px 20px;width:78%}.home-content h1{font-size:68px}.home-content .eyebrow{max-width:200px;line-height:1.5}.home-content>p:last-child{font-size:19px}.solo-actions,.online-actions{display:grid;grid-template-columns:1fr 1fr}.solo-actions button,.online-actions button{font-size:13px;padding:12px 9px}.play-screen{padding:6px 12px}.play-top h1{font-size:20px}.hud{padding:8px 0}.hud span{font-size:11px}.hud strong{font-size:17px}.board-stage{border-radius:10px}.dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:4px}.action-controls{min-width:125px}.action-controls button{font-size:13px;padding:10px}.play-hint{font-size:13px;min-height:44px}.play-footer{flex-wrap:wrap}footer{padding:18px 12px;font-size:12px}}
@media(max-height:520px) and (min-width:650px){.play-screen{background:#faf5eb;width:660px}.board-stage{width:390px;float:left;margin-right:14px}.hud{padding:2px}.touch-controls{display:block;padding-top:20px}.action-controls{margin-top:12px}.play-hint{min-height:55px}.play-footer{display:block}.play-footer>*{margin:3px}.site-header{padding-top:3px;padding-bottom:3px}footer{clear:both}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.site-header>[data-app-exit]{display:flex;align-items:center;min-height:44px}html[data-in-app=old] .site-header{padding-right:62px;flex-wrap:wrap}html[data-in-app=old] .site-header nav{flex-wrap:wrap}

html[data-in-app] .site-header{flex-wrap:wrap}
/* 3D courtyard (hide-seek-3d.mjs): the 2D canvas stays underneath for focus and as the fallback. */
.board-stage.has-3d{background:#cfe3e4}
.board-stage.has-3d #board{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none}
.courtyard-3d{display:none}
.board-stage.has-3d .courtyard-3d{display:block;width:100%;aspect-ratio:9/10;touch-action:none}
@media(max-height:520px) and (min-width:650px){.board-stage.has-3d .courtyard-3d{aspect-ratio:9/8}}
@media(min-width:900px){.board-stage.has-3d .courtyard-3d{aspect-ratio:4/3}}
.courtyard-count{position:absolute;inset:0;display:grid;place-content:center;gap:6px;text-align:center;background:#173b33cc;color:#fff6df;backdrop-filter:blur(2px)}
.courtyard-count[hidden]{display:none}
.courtyard-count b{font-size:28px}.courtyard-count strong{font-size:64px;line-height:1}.courtyard-count span{font-size:15px;opacity:.9}
/* Thumb stick (replaces the four arrow buttons): drag from the centre in any direction. */
.stick{position:relative;width:132px;height:132px;border-radius:50%;background:radial-gradient(circle,#fffaf0 0 38%,#f1e8d6 39% 100%);border:1px solid #c9c1ad;box-shadow:inset 0 2px 8px #3a2a1418;touch-action:none;user-select:none;-webkit-user-select:none}
.stick::before{content:'';position:absolute;inset:14px;border-radius:50%;border:1px dashed #c4b89a}
.stick-knob{position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;background:#245a4c;box-shadow:0 4px 10px #173b3355;transition:transform .08s ease-out}
.stick.active .stick-knob{transition:none;background:#1d4b3f}
@media(max-height:520px) and (min-width:650px){.stick{width:116px;height:116px}}
/* Spotted: the board edge glows red while the seeker can see you. */
.board-stage.spotted{box-shadow:0 0 0 3px #d2462c,0 0 22px #d2462c88}
#cover-note{white-space:pre-line}
/* Landscape phones: stick on the left, the courtyard in the middle sized to the screen height, actions on the right. */
@media(max-height:520px) and (min-width:650px){
  body[data-screen="play"] .site-header,body[data-screen="play"] footer{display:none}
  .play-screen{width:auto;max-width:none;display:grid;grid-template-columns:150px minmax(0,1fr) 168px;grid-template-rows:auto auto 1fr auto;column-gap:14px;align-items:center;padding:6px 12px;min-height:100svh;box-sizing:border-box}
  .play-top{grid-column:1/-1;grid-row:1}
  .hud{grid-column:2;grid-row:2}
  .board-stage{grid-column:2;grid-row:3;float:none;margin:0 auto;width:auto;height:calc(100svh - 112px);aspect-ratio:9/8}
  .board-stage.has-3d .courtyard-3d{width:100%;height:100%;aspect-ratio:auto}
  .board-stage canvas#board{height:100%;width:auto;margin:auto}
  .touch-controls{display:contents}
  .stick{grid-column:1;grid-row:2/5;align-self:center;justify-self:center;width:132px;height:132px}
  .action-controls{grid-column:3;grid-row:2/4;align-self:center;margin:0}
  .play-hint{grid-column:2;grid-row:4;min-height:0;margin:4px 0 0;font-size:13px}
  .play-footer{grid-column:3;grid-row:4;display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:12px}
}
@media(max-height:520px) and (min-width:650px){
  .play-screen{grid-template-rows:auto 1fr auto;row-gap:4px}
  .play-top{grid-column:1;grid-row:1;align-self:start}.play-top h1{display:none}
  .hud{grid-column:2;grid-row:1;padding:0}
  .board-stage{grid-row:2;height:calc(100svh - 104px)}
  .stick{grid-row:2/4}
  .action-controls{grid-row:1/3}
  .play-hint{grid-row:3}
  .play-footer{grid-row:3}
}
@media(max-height:520px) and (min-width:650px){.play-footer #opponent-label{display:none}.board-stage{height:calc(100svh - 112px)}.play-screen{min-height:0;height:100svh}}
@media(max-height:520px) and (min-width:650px){body[data-screen="play"] main{margin:0;padding:0}body[data-screen="play"] .play-screen{margin:0}}
@media(max-height:520px) and (min-width:650px){.play-footer{flex-wrap:nowrap;align-self:end}.play-footer [hidden]{display:none!important}.play-footer button{padding:6px 12px}}
@media(max-height:520px) and (min-width:650px){.play-footer{min-height:0;padding:0;margin:0}}
