/* Cleo's Studio (2026-11-06): what the studio games share. Same brand kit + feel as the other games,
   painted CLEO scenes behind, one calm card or row of big targets on top. */
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
}
:root {
  --navy: #2E3253;
  --sun: #FDF2C5;
  --coral: #F56F56;
  --lagoon: #0EC0DB;
  --deep: #0293C6;
  --pink: #F7C9D4;
  --pinkdeep: #E58FA6;
  --cream: #FFF9EE;
  --gold: #E8B84A;
  --mint: #CFE9D8;
  --leaf: #1F6B45;
}
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; background: #F3E6D3; }
/* no pinch or double-tap zoom anywhere in the studio (2026-11-06: little fingers tapping Tap the Sea together
   zoomed a wall screen in and nobody could zoom back out); taps and clicks still work */
html, body, .room { touch-action: none; }
body {
  position: fixed; inset: 0;
  font-family: "Fredoka", ui-rounded, system-ui, sans-serif; color: var(--navy);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
img, video { -webkit-user-drag: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the painted scene: sized like a photo set to "cover" by CleoStudio.fitScene, anchored top-left */
.room { position: absolute; inset: 0; overflow: hidden; overflow: clip; } /* clip (11/7): the painting is wider than the screen; a focused button must never scroll the room sideways */
.scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.scene > img, .scene > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scene > video { opacity: 0; transition: opacity .25s ease; }
.scene > video.is-on { opacity: 1; }
.scene__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(46,50,83,.12) 100%); }

/* controls: the same look as every CLEO game */
.controls { position: absolute; left: max(12px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); display: flex; gap: 16px; z-index: 20; }
.controls--right { left: auto; right: max(12px, env(safe-area-inset-right)); }
@media (max-width: 420px) { .controls { gap: 10px; } }
.ctl {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9); background: rgba(255, 252, 240, 0.85);
  color: var(--navy); text-decoration: none; font: 500 0.92rem/1 "Fredoka", system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 2px 10px rgba(46, 50, 83, .12);
}
.ctl::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.ctl:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.ctl--round { width: 50px; height: 50px; padding: 0; justify-content: center; }
.ctl--round svg { width: 25px; height: 25px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ctl--pill { box-sizing: border-box; height: 50px; padding: 0 16px 0 11px; gap: 7px; font-size: 1rem; }
.ctl--pill svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2.4; }
.ctl--round .spk { fill: var(--navy); }
.ctl--round .off { display: none; }
.ctl[aria-pressed="false"] .wave { display: none; }
.ctl[aria-pressed="false"] .off { display: inline; }

/* the "hear it again" ear */
.again { width: 58px; height: 58px; }
.again svg { width: 30px; height: 30px; }

/* the spoken prompt, shown as a picture too (a letter, never a sentence) */
.prompt {
  position: absolute; z-index: 15; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%);
  min-width: 64px; height: 64px; padding: 0 16px; box-sizing: border-box; border-radius: 22px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255, 252, 240, .94); border: 3px solid #fff; box-shadow: 0 6px 22px rgba(46, 50, 83, .18);
  font: 600 2.4rem/1 "Fredoka", system-ui, sans-serif; color: var(--navy);
  opacity: 0; transition: opacity .4s ease, transform .4s ease; pointer-events: none;
}
.prompt.is-on { opacity: 1; }
/* (the book's layout moved to the ONE WORLD block at the end, 11/7 night) */

/* the level / mode row, top centre: pictures, never a score (Shell Song levels, Ballet modes) */
.levels {
  position: absolute; z-index: 12; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%);
  display: flex; gap: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(255, 252, 240, .72); border: 2px solid rgba(255,255,255,.9);
}
.lvl { width: 46px; height: 46px; border-radius: 50%; border: 2px solid transparent; background: rgba(255,255,255,.5); padding: 5px; cursor: pointer; display: grid; place-items: center; }
.lvl img { width: 100%; height: 100%; object-fit: contain; }
.lvl svg { width: 100%; height: 100%; fill: rgba(255,255,255,.7); stroke: #2E8FB0; stroke-width: 2.4; }
.lvl.is-on { border-color: #E8B84A; background: #FDF2C5; box-shadow: 0 0 12px rgba(232, 184, 74, .6); }
.lvl[aria-disabled="true"] { opacity: .3; filter: grayscale(.7); cursor: default; }
.lvl.is-new { animation: jglow 2.6s ease-in-out 3; }
.lvl:focus-visible { outline: 3px solid #2E3253; outline-offset: 2px; }


/* narrow phones: the level row sits under the buttons */
@media (max-width: 520px) { .levels { top: calc(max(12px, env(safe-area-inset-top)) + 62px); } }

/* a camera flash when the music stops */
.flash { position: fixed; inset: 0; z-index: 30; background: #fff; pointer-events: none; opacity: 0; }

/* the big round buttons (start, check) */
.big {
  position: absolute; z-index: 16; width: clamp(96px, 16vmin, 150px); aspect-ratio: 1; border-radius: 50%;
  border: 5px solid #fff; display: grid; place-items: center; cursor: pointer; padding: 0;
  box-shadow: 0 10px 28px rgba(46, 50, 83, .28); transition: transform .3s ease, opacity .4s ease;
}
.big svg { width: 54%; height: 54%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.big:active { scale: .95; } /* the scale property, so it never undoes a button's centering transform */
.big:focus-visible { outline: 4px solid var(--navy); outline-offset: 4px; }
.big[hidden] { display: none; }
.big.is-hiding { opacity: 0; pointer-events: none; }

/* wall screens (1080p) and big screens: bigger buttons, read from across the room */
@media (min-width: 1400px) and (min-height: 800px) {
  .controls, .levels, .prompt, .journal__close, .songbar { zoom: 1.35; }
  .big { width: clamp(150px, 15vmin, 190px); }
}

/* no "save image" bubble or text selection when a little finger holds a picture */
.room img, .journal img, .unbox img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- two friends (11/7 evening) ---------- */
/* the button on each solo game that splits the screen, one side for each friend */
.two-btn svg .h1 { fill: #F7A9C4; stroke: var(--navy); stroke-width: 1.6; }
.two-btn svg .h2 { fill: #8FD8EC; stroke: var(--navy); stroke-width: 1.6; }
/* inside one half: no way out to the big games menu, and no games-for-two doors */
.is-paired .door .controls .ctl--map { display: none; }
.doors li.only-paired { display: none; }
.is-paired .doors li.only-paired { display: list-item; } /* Tap the Sea lives in the shallows now; a half of two friends still offers it */
.is-paired .doorway--together, .is-paired .doors li.is-together, .is-paired .doors li.is-loud { display: none; } /* a half offers the quieter games */
/* a press inside one half of two friends (the half never gets :active; two.js adds .is-pressed) */
.doorway.is-pressed { transform: scale(.97); }
.big.is-pressed, .ctl.is-pressed, .pick.is-pressed, .lvl.is-pressed { scale: .95; }
/* (Sea Journal, clam, sticker, sparkle and confetti styles moved to /play/world.css, ONE WORLD 11/7 night: every place and game shares them) */
