:root {
  --paper: #f4ecdc;
  --ink: #2f4a43;
  --ink-soft: #66786b;
  --accent: #c8663f;
  --frame: #fbf6ea;
  --chip: #fffaf0;
  --chip-border: #dccfb6;
  --focus: #c8663f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 236, 200, 0.9), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(190, 214, 196, 0.55), transparent 65%),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}

body { overflow-x: hidden; }

.stage {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4.4vw, 40px);
  color: var(--ink);
}

h1 span { color: var(--accent); }

.sub {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.music {
  flex: none;
  border: 2px solid var(--ink);
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  min-height: 44px;
}

.music[aria-pressed="true"] {
  background: var(--ink);
  color: var(--chip);
}

.screen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1072;
  border-radius: 18px;
  overflow: hidden;
  background: var(--frame);
  border: 6px solid var(--frame);
  box-shadow: 0 20px 50px rgba(90, 70, 40, 0.25), 0 4px 12px rgba(90, 70, 40, 0.15);
}

.screen {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  cursor: pointer;
}

.hotspots {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  background: transparent;
  border: 0;
  border-radius: 14px;
  padding: 0;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.hotspot:hover {
  background: rgba(255, 245, 215, 0.14);
  box-shadow: inset 0 0 0 2px rgba(255, 245, 215, 0.6);
}

.hotspot:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  background: rgba(255, 245, 215, 0.14);
}

.paper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.caption {
  margin: 16px 0 12px;
  min-height: 1.6em;
  font-size: clamp(16px, 2.2vw, 19px);
}

.toys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.toys button {
  border: 1.5px solid var(--chip-border);
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  box-shadow: 0 2px 0 rgba(120, 95, 60, 0.15);
}

.toys button:hover { border-color: var(--accent); }

.toys button[data-action="pet"] {
  background: #ffe9e4;
  border-color: #f2b8aa;
}

.hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 70ch;
}

@media (prefers-reduced-motion: reduce) {
  .hotspot { transition: none; }
}
