/* Simon (memory sequence) — archetype type-09-taper, scoped under .si-root.
   Four big coloured pads in a ring around a central hub. Warm-neutral ground;
   the active pad brightens (.lit). Supports light + dark via .mode-dark and
   respects reduced motion via .no-motion. */

.si-root {
  --board: #e6dfcd; --ink: #2a2620; --hub: #efe9db; --hub-ink: #3a352c;
  --g: #2f9e57; --g-lit: #57e58c;
  --r: #c9433d; --r-lit: #ff7d76;
  --y: #d8a72c; --y-lit: #ffd45e;
  --b: #2f6fb0; --b-lit: #62b0f4;
  display: flex; justify-content: center; padding: clamp(12px, 3vw, 26px) 0; color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .si-root { --board: #1b1e16; --ink: #ece6d6; --hub: #23271e; --hub-ink: #ece6d6;
    --g: #24784a; --r: #a83a36; --y: #b98c26; --b: #2a5c92; }
}
.si-root.mode-dark { --board: #1b1e16; --ink: #ece6d6; --hub: #23271e; --hub-ink: #ece6d6;
  --g: #24784a; --r: #a83a36; --y: #b98c26; --b: #2a5c92; }

.si-stage { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 3vw, 22px); }

.si-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.6vw, 14px);
  inline-size: min(78vw, 360px); block-size: min(78vw, 360px);
  padding: clamp(10px, 2.4vw, 18px);
  background: var(--board); border-radius: 24px;
  box-shadow: var(--shadow-sm, 0 3px 12px rgba(0,0,0,.18));
}

.si-pad {
  appearance: none; border: none; margin: 0; padding: 0;
  inline-size: 100%; block-size: 100%; cursor: pointer;
  box-shadow: inset 0 2px 6px rgba(255,255,255,.22), inset 0 -4px 10px rgba(0,0,0,.28);
  filter: saturate(.72) brightness(.82);
}
.si-g { background: var(--g); border-radius: 100% 12px 12px 12px; }
.si-r { background: var(--r); border-radius: 12px 100% 12px 12px; }
.si-y { background: var(--y); border-radius: 12px 12px 12px 100%; }
.si-b { background: var(--b); border-radius: 12px 12px 100% 12px; }

.si-pad.lit { filter: saturate(1.15) brightness(1.18); box-shadow: 0 0 26px currentColor, inset 0 2px 6px rgba(255,255,255,.4); }
.si-g.lit { color: var(--g-lit); background: var(--g-lit); }
.si-r.lit { color: var(--r-lit); background: var(--r-lit); }
.si-y.lit { color: var(--y-lit); background: var(--y-lit); }
.si-b.lit { color: var(--b-lit); background: var(--b-lit); }
.si-pad:active { transform: scale(.98); }

/* central hub with the status message */
.si-hub {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  inline-size: 38%; block-size: 38%; border-radius: 50%;
  background: var(--hub); color: var(--hub-ink);
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.2);
  pointer-events: none;
}
.si-msg { font-size: clamp(11px, 2.4vw, 15px); font-weight: 600; line-height: 1.25; padding: 6px; }

/* pads are only tappable during the repeat phase */
.si-board.locked .si-pad { cursor: default; pointer-events: none; }
.si-board.over .si-pad { filter: saturate(.4) brightness(.7); }

.si-controls { display: flex; justify-content: center; }
.si-start {
  appearance: none; cursor: pointer;
  padding: 10px 26px; border-radius: 999px; border: 1px solid var(--color-accent-700, #a67c1a);
  background: var(--color-accent-700, #a67c1a); color: #fff; font-weight: 700; font-size: 15px;
}
.si-start:disabled { opacity: .5; cursor: default; }

@media (prefers-reduced-motion: no-preference) {
  .si-pad { transition: filter .12s, box-shadow .12s, background .12s, transform .08s; }
}
.si-root.no-motion .si-pad { transition: none; }
