:root { color-scheme: light; font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; color: #343044; background: #f7f1e7; }
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 5% 80%, #f0ddce 0, transparent 40%), radial-gradient(ellipse at 100% 0, #e6e2ef 0, transparent 40%), #f7f1e7; min-height: 100svh; }
button, a, canvas { -webkit-tap-highlight-color: transparent; }
button { font: inherit; font-weight: 800; cursor: pointer; touch-action: manipulation; border: 0; color: #343044; }
button:focus-visible, canvas:focus-visible { outline: 4px solid #603b9d; outline-offset: 5px; }
.playroom { max-width: 1120px; margin: auto; padding: 24px 32px 18px; }
.topbar { margin-bottom: 22px; }
.eyebrow { text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .2em; margin: 0 0 5px; color: #73677a; }
h1 { font-size: clamp(24px, 3.3vw, 38px); letter-spacing: -.055em; margin: 0; }
.quiet { background: #eee5db; border: 2px solid #e1d5c9; border-radius: 18px; padding: 12px 19px; min-height: 48px; }
.play-area { position: relative; overflow: hidden; border: 2px solid #fff; border-radius: 36px; background: #eee9f6; box-shadow: 0 16px 50px #53466312, inset 0 0 0 7px #ffffff45; }
.scene-heading { position: absolute; top: 24px; left: 28px; right: 28px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; z-index: 1; }
.pal-tag { display: flex; align-items: center; gap: 9px; font-weight: 800; background: #fff9; padding: 10px 15px; border-radius: 20px; }
.color-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pal-color, #55cbb0); }
#cue { margin: 0; font-size: 16px; font-weight: 700; }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 620; touch-action: none; cursor: grab; }
canvas.dragging { cursor: grabbing; }
.reaction { position: absolute; bottom: 20px; left: 10px; right: 10px; margin: 0; text-align: center; color: #68577d; font-size: 18px; font-weight: 700; pointer-events: none; }
.controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 23px; }
.primary { min-width: 240px; min-height: 68px; padding: 14px 36px; border-radius: 24px; color: #fffaf4; background: #654996; box-shadow: 0 6px 0 #48336d; font-size: 26px; }
.primary span { font-size: 31px; margin-right: 8px; }
.next { min-height: 56px; padding: 12px 23px; background: #fff9; border: 2px solid #dfd3e8; border-radius: 20px; font-size: 17px; }
button:hover { filter: brightness(1.04); }
button:active { transform: translateY(3px); }
.keyboard-note { margin: 17px 0 0; text-align: center; font-size: 12px; color: #77677b; }
@media (max-width: 700px) {
  .playroom { padding: 16px 12px; }
  .topbar { margin-bottom: 16px; }
  .playroom .topbar:has(> .home-link) { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 9px; }
  .playroom .topbar:has(> .home-link) > :last-child:not(.home-link) { grid-column: auto; justify-self: end; }
  h1 { font-size: clamp(19px, 4vw, 28px); }
  .eyebrow { display: none; }
  .quiet { font-size: 12px; padding: 8px; }
  .play-area { border-radius: 25px; }
  canvas { aspect-ratio: 1 / 1.12; }
  .scene-heading { top: 15px; left: 15px; right: 15px; flex-wrap: wrap; font-size: 14px; }
  #cue { font-size: 13px; }
  .pal-tag { padding: 8px 11px; }
  .reaction { font-size: 15px; bottom: 17px; }
  .controls { gap: 12px; }
  .primary { min-width: 0; flex: 1; max-width: 235px; font-size: 23px; padding: 13px 20px; }
  .next { padding: 12px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { button:active { transform: none; } }
