/* Onthoud de reeks: a window above that shows the sequence, large tiles below that light up. */
.or { max-width: 520px; margin: 0 auto; scroll-margin: 12px 0; }

.or-stage { display: grid; place-items: center; min-height: 168px; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: #fbf9f4; border: 1.5px solid #e6e0d2; text-align: center; }
.or-show, .or-note, .or-answer { display: grid; justify-items: center; gap: 8px; width: 100%; }
.or-show[hidden], .or-note[hidden], .or-answer[hidden], .or-start[hidden], .or-progress[hidden] { display: none; }
.or-show__face { display: grid; place-items: center; height: 104px; color: #1a1a1a; font: 700 84px/1 Inter, system-ui, sans-serif; }
.or-show__face svg { width: 104px; height: 104px; }
.or--words .or-show__face { font: 400 46px/1 Georgia, 'Times New Roman', serif; }
.or-show__count { font-size: 17px; color: #4b5563; }
.or-note__text { margin: 0; max-width: 30em; font-size: 19px; line-height: 1.45; color: #1a1a1a; }
.or-start { min-width: 180px; min-height: 52px; font-size: 19px; }

.or-progress { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.or-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #8fb9a1; background: #fff; }
.or-dot.is-done { background: #2f5d45; border-color: #2f5d45; }

.or-answer__title { margin: 0; font-size: 18px; font-weight: 700; color: #8f2a22; }
.or-answer__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: chip; }
.or-chip { position: relative; display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 10px; background: #fff; border: 2px solid #cfe2d6; font: 700 24px/1 Inter, system-ui, sans-serif; color: #1a1a1a; counter-increment: chip; }
.or--words .or-chip { font: 400 18px/1 Georgia, 'Times New Roman', serif; }
.or-chip svg { width: 34px; height: 34px; }
.or-chip::before { content: counter(chip); position: absolute; top: -8px; left: -6px; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 9px; background: #2f5d45; color: #fff; font: 700 12px/18px Inter, system-ui, sans-serif; }
.or-chip.is-missed { border-color: #c0392b; background: #fdecea; }

.or-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.or-tile { position: relative; display: grid; place-items: center; min-height: 64px; padding: 6px; border: 2px solid #cfe2d6; border-radius: 16px; background: #fff; color: #1a1a1a; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.or--pictures .or-tile { aspect-ratio: 1; }
.or--pictures .or-tile__face svg { width: 70%; height: 70%; }
.or--pictures .or-tile__face { display: grid; place-items: center; width: 100%; height: 100%; }
.or--digits .or-tiles { max-width: 360px; margin: 0 auto; }
.or--digits .or-tile { min-height: 72px; font: 700 34px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.or--digits .or-tile:last-child { grid-column: 2; }
.or--words .or-tile { min-height: 76px; font: 400 22px/1.15 Georgia, 'Times New Roman', serif; overflow-wrap: anywhere; }
/* More contrast: a firm edge on every tile; the states below colour it as before. */
.sp--contrast .or-tile { border-color: #2f5d45; }
.or-tile:active { background: #eef4f0; }
@media (hover: hover) { .or-tile:hover { border-color: #2f5d45; } }
.or-tile:focus-visible { outline: 3px solid #f2b705; outline-offset: 3px; }
.or.is-watching .or-tile { cursor: default; }
.or.is-watching .or-tile:hover, .or.is-watching .or-tile:active { border-color: #cfe2d6; background: #fff; }

/* The lit tile: warm yellow, a thick border, a little larger - clear at a glance. */
.or .or-tile.is-lit, .or.is-watching .or-tile.is-lit { background: #fff1b8; border-color: #b7791f; border-width: 4px; transform: scale(1.06); box-shadow: 0 6px 16px rgba(183, 121, 31, .35); z-index: 1; }
.or-tile.is-tapped { background: #eef4f0; border-color: #2f5d45; transform: scale(.97); }
.or-tile.is-wrong { background: #fdecea; border-color: #c0392b; border-width: 4px; }
.or-tile.is-right { border-color: #2f5d45; border-width: 4px; box-shadow: 0 0 0 3px #8fc1a4; }

.or-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 16px 0 0; }
.or-tools__cost { font-size: 16px; color: #4b5563; }

/* A tip: the tile to tap next, in a pulsing yellow ring (the lit tile of the sequence is filled instead). */
.or-tile.is-hint { border-color: #b7791f; border-width: 4px; box-shadow: 0 0 0 4px #f2b705; animation: or-hint 1.1s ease-in-out infinite; }
@keyframes or-hint { 50% { box-shadow: 0 0 0 10px rgba(242, 183, 5, .3); } }

/* Larger: bigger tiles and letters. More contrast: firm edges and darker text. */
.sp--large .or { max-width: 600px; }
.sp--large .or-note__text { font-size: 21px; }
.sp--large .or--digits .or-tiles { max-width: 420px; }
.sp--large .or--digits .or-tile { min-height: 82px; font-size: 40px; }
.sp--large .or--words .or-tile { min-height: 86px; font-size: 25px; }
.sp--contrast .or-stage { border-color: #6b6255; }
.sp--contrast .or-note__text, .sp--contrast .or-show__count, .sp--contrast .or-tools__cost { color: #000; }
.sp--contrast .or-dot { border-color: #2f5d45; }

@media (prefers-reduced-motion: reduce) {
  .or-tile.is-hint { animation: none; }
  .or-tile { transition: none; }
  .or .or-tile.is-lit, .or-tile.is-tapped { transform: none; }
}
@media (max-width: 520px) {
  .or-stage { min-height: 150px; padding: 12px; }
  .or-show__face { height: 88px; font-size: 72px; }
  .or-show__face svg { width: 88px; height: 88px; }
  .or--words .or-show__face { font-size: 40px; }
  .or-note__text { font-size: 18px; }
  .or-tiles { gap: 8px; }
  .or--words .or-tile { min-height: 68px; font-size: 20px; }
  .or--digits .or-tile { min-height: 64px; }
}
