/* Parent chrome follows the family site; the play canvas reuses the native Ocean palette,
   original 390x820 composition, production habitat, and warm inset target treatment. */
:root { --sample-ink: #2e4a4e; --sample-cream: #fffdf4; --sample-honey: #f4b84a; }
body.tf-family { margin: 0; color: var(--sample-ink); background: #f8f1e6; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #1e7f82; outline-offset: 5px; }
[hidden] { display: none !important; }
.sample-header { max-width: 1180px; margin: auto; padding: 22px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sample-header > a:last-child { font-size: 14px; font-weight: 800; text-decoration: none; }
.sample-layout { max-width: 1050px; margin: 0 auto; padding: 16px 30px 42px; display: grid; grid-template-columns: minmax(270px, 1fr) minmax(280px, 390px); grid-template-rows: min-content 1fr; gap: 24px clamp(32px, 6vw, 90px); align-items: start; }
.sample-intro { padding-top: 50px; grid-column: 1; grid-row: 1; }
.sample-play { grid-column: 2; grid-row: 1 / span 2; }
.sample-intro h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; margin: 14px 0 24px; letter-spacing: -.025em; }
.sample-lede { font-size: 19px; line-height: 1.55; }
.sample-intro p { max-width: 460px; }
.keyboard-help { margin: 16px 0 30px; font-size: 14px; }
.keyboard-help summary { cursor: pointer; font-weight: 750; }
.sample-about { border-top: 1px solid #d4daca; padding-top: 20px; margin-top: 0; font-size: 15px; line-height: 1.6; grid-column: 1; grid-row: 2; }
.sample-about h2 { font-family: inherit; font-size: 19px; margin: 0 0 10px; }
.sample-link { display: inline-block; margin-top: 9px; font-weight: 800; text-underline-offset: 4px; }
.board-picker { display: flex; gap: 8px; margin-bottom: 12px; }
.board-picker button { min-height: 44px; flex: 1; padding: 8px 14px; border: 1px solid #7aa099; border-radius: 24px; color: var(--sample-ink); background: transparent; font-size: 15px; font-weight: 800; }
.board-picker button[aria-pressed=true] { background: #cfede7; border-color: #1e7f82; }
.board-frame { position: relative; width: 100%; aspect-ratio: 390 / 820; overflow: hidden; border-radius: 28px; background: #46b6b2; box-shadow: 0 10px 24px #2e4a4e1a; }
.board { position: relative; width: 390px; height: 820px; transform-origin: top left; user-select: none; -webkit-user-select: none; }
.scene, .scene-veil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene { object-fit: fill; }
.scene-veil { background: linear-gradient(#d5e8e31a, #d5e8e329 42%, #d5e8e333 72%); }
.tf-family .board-title { position: absolute; z-index: 2; top: 30px; left: 30px; right: 30px; width: fit-content; margin: 0 auto; border-radius: 24px; padding: 10px 20px; font-family: inherit; font-size: 21px; font-weight: 850; line-height: 1.2; color: var(--sample-ink); background: #cfede7ed; text-align: center; }
.board-cue { position: absolute; z-index: 2; top: 505px; left: 32px; right: 32px; text-align: center; font-size: 17px; font-weight: 800; pointer-events: none; }
.target { position: absolute; border: 0; border-radius: 50%; padding: 0; background: transparent; touch-action: manipulation; z-index: 3; }
.target-art { position: absolute; inset: 0; display: block; mask: var(--shape) center / contain no-repeat; -webkit-mask: var(--shape) center / contain no-repeat; background: #f7e4ba; filter: drop-shadow(0 2px 1px #58736cad); opacity: .96; pointer-events: none; }
.target::before { content: ''; position: absolute; inset: -10px; background: #fff3d6; opacity: 0; mask: var(--shape) center / contain no-repeat; -webkit-mask: var(--shape) center / contain no-repeat; transition: opacity .15s; pointer-events: none; }
.target.is-ready::before { opacity: .7; }
.target:disabled { cursor: default; }
.piece { position: absolute; border: 0; padding: 0; background: transparent; border-radius: 14px; touch-action: none; cursor: grab; z-index: 6; transform-origin: 0 0; }
.piece img { position: absolute; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.piece.is-selected { outline: 3px solid var(--sample-honey); outline-offset: 5px; }
.piece.is-held { cursor: grabbing; z-index: 10; outline: none; }
.piece.is-held img { filter: drop-shadow(0 8px 5px #2e4a4e30); }
.landed-piece { position: absolute; pointer-events: none; }
.landed-piece img { display: block; width: 100%; height: 100%; }
.play-controls { display: flex; gap: 10px; justify-content: space-between; margin-top: 14px; }
.play-controls button { min-height: 44px; border: 1px solid #7aa099; border-radius: 25px; padding: 8px 19px; font-size: 15px; font-weight: 800; color: var(--sample-ink); background: transparent; }
.play-controls .next { background: #cfede7; }
.tf-family .play-status { font-size: 14px; min-height: 40px; margin: 10px 0 0; line-height: 1.45; }
.sample-footer { max-width: 1120px; margin: 0 auto; border-top: 1px solid #d4daca; padding: 22px 30px; display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 13px; }
.sample-footer span { margin-left: auto; }
@media (max-width: 700px) {
  .sample-header { padding: 18px 20px; }
  .sample-layout { padding: 4px 20px 28px; display: flex; flex-direction: column; gap: 24px; align-items: center; }
  .sample-intro { padding-top: 0; width: 100%; max-width: 440px; }
  .sample-intro h1 { font-size: 33px; margin: 8px 0 14px; }
  .sample-lede { font-size: 17px; }
  .sample-about { margin-top: 20px; }
  .sample-play { width: 100%; max-width: 390px; }
  .sample-footer { margin: 0 20px; padding: 20px 0; }
  .sample-footer span { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; } }
