:root {
  --bg-1: #ffeef7;
  --bg-2: #f3e8ff;
  --bg-3: #e6f4ff;
  --ink: #7a5c7e;
  --ink-dim: #a58aa8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Avenir Next", "Trebuchet MS", Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 20% -10%, var(--bg-1), transparent 60%),
    radial-gradient(1000px 700px at 110% 15%, var(--bg-3), transparent 55%),
    radial-gradient(900px 900px at 50% 115%, var(--bg-2), transparent 60%),
    #fbf3fa;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* faint pastel confetti dots, like toy packaging paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2.2px 2.2px at 12px 18px, #f9c8e2 99%, transparent),
    radial-gradient(2px 2px at 44px 60px, #c5e3f7 99%, transparent),
    radial-gradient(2.4px 2.4px at 76px 30px, #d9cdf2 99%, transparent),
    radial-gradient(1.8px 1.8px at 28px 92px, #fbe6ae 99%, transparent),
    radial-gradient(2px 2px at 96px 78px, #c9edd8 99%, transparent);
  background-size: 120px 120px;
  opacity: 0.5;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

#device {
  display: block;
  width: min(92vw, 62vh, 430px);
  height: auto;
  cursor: pointer;
  touch-action: manipulation;
  filter: drop-shadow(0 18px 30px rgba(150, 90, 140, 0.28));
}

.hints {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.hint {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(190, 140, 190, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 2px 6px rgba(160, 100, 160, 0.12);
}

.hint b { color: #b06aa8; }
.hint.dim { opacity: 0.75; }

.foot {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .hints { gap: 8px; font-size: 11.5px; }
  .hint { padding: 3px 9px; }
  .foot { font-size: 10.5px; padding: 0 16px; }
}
