/* SpotFast: dark arcade. One cyan-to-magenta gradient carries the brand, the
   board stays quiet so the emoji do the talking, and every size is in rem
   against a root that grows with the viewport, so the layout never jumps at a
   breakpoint. */

@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05060e;
  --bg-elev: #0b0d1a;
  --surface: #121629;
  --surface-2: #1a1f36;
  --surface-3: #242a47;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.17);

  --brand: #2fe0ff;
  --brand-2: #7c5cff;
  --brand-3: #ff4ecd;
  --brand-dim: rgba(47, 224, 255, 0.14);
  --brand-grad: linear-gradient(135deg, #2fe0ff 0%, #7c5cff 54%, #ff4ecd 100%);

  --text: #eef2ff;
  --text-dim: #aab3d6;
  --muted: #7d87ad;

  --good: #46e39b;
  --good-dim: rgba(70, 227, 155, 0.16);
  --bad: #ff5f7a;
  --bad-dim: rgba(255, 95, 122, 0.16);
  --warn: #ffc94b;

  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --app-max: 720px;
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);

  font-size: clamp(15px, 0.4vw + 13.6px, 17.5px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overscroll-behavior-y: none;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(1000px 520px at 8% -10%, rgba(47, 224, 255, 0.16), transparent 62%),
    radial-gradient(760px 460px at 104% 2%, rgba(255, 78, 205, 0.13), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(124, 92, 255, 0.12), transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* One focus ring everywhere, rather than the browser's own. */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
button {
  cursor: pointer;
}
a {
  color: var(--brand);
  text-decoration-color: rgba(47, 224, 255, 0.4);
  text-underline-offset: 2px;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
p {
  margin: 0 0 0.85em;
}
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.wrap {
  width: 100%;
  max-width: var(--app-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: calc(var(--safe-t) + 10px) 0 10px;
  background: linear-gradient(180deg, rgba(5, 6, 14, 0.94), rgba(5, 6, 14, 0.72));
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar__spacer,
.topbar__title {
  flex: 1;
  min-width: 0;
}
.topbar__title {
  text-align: center;
  font-weight: 600;
  color: var(--text-dim);
}
.topbar__tools {
  display: flex;
  gap: 6px;
}

.brandmark {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.brandmark svg {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}
.brandmark b {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brandmark b i {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.iconbtn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 11px;
  color: var(--text-dim);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.iconbtn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.iconbtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.12s, filter 0.15s, background 0.15s, border-color 0.15s;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn--primary {
  background: var(--brand-grad);
  color: #05060e;
  box-shadow: 0 10px 30px rgba(47, 224, 255, 0.22);
}
.btn--primary:hover {
  filter: brightness(1.07);
}
.btn--xl {
  padding: 15px 34px;
  font-size: 1.1rem;
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text-dim);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--quiet {
  background: none;
  color: var(--muted);
}
.btn--quiet:hover {
  color: var(--text-dim);
}

/* ------------------------------------------------------------------- home */

.home {
  flex: 1;
  padding-bottom: calc(40px + var(--safe-b));
}
.hero {
  text-align: center;
  padding: 30px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__mark svg {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.34);
}
.hero__title {
  font-size: clamp(2.5rem, 11vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero__title i {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tag {
  margin: 0;
  max-width: 30ch;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero .btn--xl {
  margin-top: 6px;
}

.records {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0 4px;
}
.record {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.record__icon {
  width: 18px;
  height: 18px;
  fill: var(--brand);
  opacity: 0.9;
}
.record b {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.record span {
  font-size: 0.78rem;
  color: var(--muted);
}

.teaserwrap {
  margin: 26px 0 8px;
  display: grid;
  place-items: center;
}
.tteaser {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  width: min(100%, 320px);
  opacity: 0.85;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 55%, transparent 100%);
}
.tteaser__tile {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background 0.3s, border-color 0.3s;
}
.tteaser__face {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.28s, transform 0.28s;
}
.tteaser__tile.is-open {
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.tteaser__tile.is-open .tteaser__face {
  opacity: 1;
  transform: none;
}

.about {
  margin-top: 30px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.about h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
}
.about em {
  color: var(--text);
  font-style: normal;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0 5px;
}
.about__fine {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ------------------------------------------------------------------- play */

.hud {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}
.hud__round {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.hud__round b {
  color: var(--text);
  font-size: 1rem;
}
.hud__lives {
  display: flex;
  gap: 4px;
}
.heart {
  width: 19px;
  height: 19px;
  fill: var(--bad);
  filter: drop-shadow(0 0 6px rgba(255, 95, 122, 0.45));
  transition: fill 0.2s, opacity 0.2s, transform 0.2s;
}
.heart--gone {
  fill: var(--surface-3);
  filter: none;
  opacity: 0.7;
  transform: scale(0.86);
}
.hud__score {
  min-width: 4.5ch;
  text-align: right;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stage {
  flex: 1;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cluecard {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 13px 15px 11px;
  min-height: 104px;
  position: relative;
}
.cluecard__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.cluecard__text {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.4;
}
.cluecard__text .em {
  color: var(--brand);
  font-weight: 700;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px 2px 8px;
  white-space: nowrap;
  font-size: 0.96em;
}
.chip b {
  font-weight: 650;
}
.tag {
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.tag--easy {
  color: var(--good);
  background: var(--good-dim);
}
.tag--medium {
  color: var(--warn);
  background: rgba(255, 201, 75, 0.14);
}
.tag--hard {
  color: var(--bad);
  background: var(--bad-dim);
}

.meter {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 9px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-grad);
  transform-origin: left center;
  transform: scaleX(0);
}

.boardwrap {
  position: relative;
}

.board {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.tile {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  perspective: 620px;
  border-radius: var(--r-md);
}
.tile:disabled {
  cursor: default;
}
.board--live .tile:not(:disabled):hover .tile__back {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.tile:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.tile__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.36s cubic-bezier(0.2, 0.75, 0.3, 1);
}
.tile.is-open .tile__inner {
  transform: rotateY(180deg);
}

.tile__back,
.tile__front {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tile__back {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tile__back::after {
  content: '';
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
}
.tile__front {
  transform: rotateY(180deg);
  background:
    linear-gradient(160deg, hsl(var(--hue, 220) 60% 16% / 0.95), hsl(var(--hue, 220) 55% 9% / 0.95));
  border: 1px solid hsl(var(--hue, 220) 65% 42% / 0.42);
  font-size: 30px;
  font-size: 9cqw;
  line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
}

/* Highlighted region: everything else steps back. */
.board--masked .tile:not(.is-lit) {
  opacity: 0.38;
}
.tile.is-lit .tile__back {
  border-color: rgba(47, 224, 255, 0.55);
  background: linear-gradient(160deg, #16263a 0%, #0c1424 100%);
  box-shadow: 0 0 0 1px rgba(47, 224, 255, 0.25), 0 0 18px rgba(47, 224, 255, 0.16);
}

.tile.is-right .tile__front {
  border-color: rgba(70, 227, 155, 0.75);
  box-shadow: 0 0 0 2px rgba(70, 227, 155, 0.35), 0 0 22px rgba(70, 227, 155, 0.22);
  animation: pop 0.42s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.tile.is-wrong .tile__front {
  border-color: rgba(255, 95, 122, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 95, 122, 0.38);
}
.tile.is-answer .tile__front {
  border-color: rgba(47, 224, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(47, 224, 255, 0.45), 0 0 26px rgba(47, 224, 255, 0.3);
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pop {
  0% {
    transform: rotateY(180deg) scale(1);
  }
  45% {
    transform: rotateY(180deg) scale(1.14);
  }
  100% {
    transform: rotateY(180deg) scale(1);
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(47, 224, 255, 0.4), 0 0 20px rgba(47, 224, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(47, 224, 255, 0.75), 0 0 34px rgba(47, 224, 255, 0.4);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(3px);
  }
}
.screen--play.is-hit .boardwrap {
  animation: shake 0.4s ease;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  background: rgba(5, 6, 14, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.overlay.is-on {
  opacity: 1;
}
.overlay__card {
  text-align: center;
  display: grid;
  gap: 4px;
  animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.overlay__card strong {
  font-size: clamp(1.9rem, 9vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.overlay__card span {
  color: var(--text-dim);
  font-size: 0.98rem;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

.pops {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--good);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  animation: float 1.1s ease-out forwards;
}
@keyframes float {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.85);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -70%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -160%) scale(1);
  }
}

.peekbar {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}
.peekbar.is-on {
  opacity: 1;
}
.peekbar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-grad);
  transform-origin: left center;
}

/* ---------------------------------------------------------------- results */

.over {
  flex: 1;
  padding-top: 26px;
  padding-bottom: calc(40px + var(--safe-b));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.over__flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-dim);
  border: 1px solid rgba(47, 224, 255, 0.35);
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 650;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.over__flag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.over__label {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0;
}
.over__score {
  font-size: clamp(3rem, 17vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.over__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 20px 0 26px;
}
.stat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  display: grid;
  gap: 2px;
}
.stat b {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 0.8rem;
  color: var(--muted);
}
.over__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 320px);
}
.over__note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 42ch;
}

/* ------------------------------------------------------- sheet and toasts */

.sheet {
  border: 0;
  padding: 0;
  background: none;
  max-width: 560px;
  width: min(100%, 560px);
  margin-inline: auto;
  color: var(--text);
}
.sheet::backdrop {
  background: rgba(3, 4, 10, 0.72);
  backdrop-filter: blur(4px);
}
.sheet__inner {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.sheet__head h2 {
  flex: 1;
  font-size: 1.15rem;
}
.sheet__body {
  padding: 16px;
  max-height: min(70vh, 620px);
  overflow: auto;
  color: var(--text-dim);
}
.sheet__body h3 {
  font-size: 0.96rem;
  color: var(--text);
  margin: 18px 0 8px;
}
.rules {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 9px;
}
.rules b {
  color: var(--text);
}
.rules--plain {
  list-style: disc;
}

.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(18px + var(--safe-b));
  display: grid;
  justify-items: center;
  pointer-events: none;
  z-index: 60;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
  transition: opacity 0.4s, transform 0.4s;
}
.toast--good {
  border-color: rgba(70, 227, 155, 0.45);
  color: var(--good);
}
.toast.is-out {
  opacity: 0;
  transform: translateY(6px);
}

/* --------------------------------------------------------- FAQ and credits */

.site-info {
  padding-bottom: calc(32px + var(--safe-b));
}
.faq h2 {
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  color: var(--text-dim);
}
.faq details p {
  margin: 12px 0 0;
  color: var(--text-dim);
}
.site-footer {
  border-top: 1px solid var(--line-strong);
  margin-top: 28px;
  padding-top: 24px;
  color: var(--text-dim);
  font-size: 0.875rem;
}
.site-footer__next {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 22px;
}

/* -------------------------------------------------------------- no script */

.noscript {
  max-width: 46rem;
  margin: 0 auto;
  padding: 32px var(--gutter) 60px;
  color: var(--text-dim);
}
.noscript h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.noscript h3 {
  color: var(--text);
  margin: 22px 0 8px;
}
.noscript ul {
  padding-left: 1.15em;
  display: grid;
  gap: 7px;
}

.boot {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 0 var(--gutter);
}
.boot svg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.boot h1 {
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.boot p {
  color: var(--muted);
  max-width: 32ch;
}

/* --------------------------------------------------------------- sizes up */

@media (min-width: 700px) {
  .stage {
    gap: 18px;
  }
  .board {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile__inner {
    transition: opacity 0.15s;
  }
  .tile.is-open .tile__inner {
    transform: none;
  }
  .tile__front {
    transform: none;
    opacity: 0;
    transition: opacity 0.15s;
  }
  .tile.is-open .tile__front {
    opacity: 1;
  }
  .tile.is-open .tile__back {
    opacity: 0;
  }
  .tile.is-right .tile__front,
  .tile.is-answer .tile__front {
    animation: none;
  }
  .screen--play.is-hit .boardwrap {
    animation: none;
  }
  .pop {
    animation-duration: 0.8s;
  }
  .overlay__card,
  .toast {
    animation: none;
  }
}
