/* ========== Tokens ========== */
:root {
  --bg: #1b1530;
  --surface: #2a2245;
  --surface-2: #3a2f5c;
  --surface-3: #4a3d72;

  --ink: #fff4e6;
  --ink-dim: #e6dcf2;
  --ink-muted: #b9aed4;

  --pink: #ff5ea8;
  --pink-deep: #c43d7e;
  --yellow: #ffd84d;
  --yellow-deep: #c9a52a;
  --blue: #5ec8ff;
  --blue-deep: #2f8ec5;
  --mint: #6ee7a8;
  --mint-deep: #38b075;
  --danger: #ff5c6b;
  --danger-deep: #b83340;

  /* role colors */
  --role-civilian: var(--blue);
  --role-civilian-deep: var(--blue-deep);
  --role-undercover: var(--pink);
  --role-undercover-deep: var(--pink-deep);
  --role-mrwhite: var(--yellow);
  --role-mrwhite-deep: var(--yellow-deep);

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 255, 255, 0.06) inset;

  --tap: 56px;

  --font-display: 'Fredoka', 'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========== Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 94, 168, 0.22), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(255, 216, 77, 0.16), transparent 40%),
    radial-gradient(circle at 18% 78%, rgba(94, 200, 255, 0.18), transparent 42%),
    radial-gradient(circle at 92% 92%, rgba(110, 231, 168, 0.16), transparent 42%);
  background-attachment: fixed;
}

input {
  user-select: text;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* ========== Layout primitives ========== */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen__pad {
  padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom));
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.stack--xs { gap: var(--s-1); }
.stack--sm { gap: var(--s-2); }
.stack--md { gap: var(--s-4); }
.stack--lg { gap: var(--s-6); }

.spacer-top { margin-top: auto; }

.sticky-bottom {
  position: sticky;
  bottom: 0;
  padding-top: var(--s-3);
  background: linear-gradient(to bottom, transparent, var(--bg) 35%);
  margin-top: auto;
}

/* ========== Typography ========== */
.title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.muted {
  color: var(--ink-muted);
}

.muted.small {
  font-size: 13px;
}

.error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

.progress {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #2a0844;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  padding: 6px var(--s-3);
  border-radius: 999px;
}

.greeting {
  font-size: 18px;
  color: var(--ink-dim);
  text-align: center;
  font-weight: 500;
}

/* ========== Hero (Home empty state) ========== */
.hero {
  text-align: center;
  padding: var(--s-7) 0 var(--s-5);
}

.hero__title {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, var(--pink) 0%, var(--yellow) 35%, var(--mint) 65%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 18px rgba(255, 94, 168, 0.35));
  line-height: 1;
}

.hero__tagline {
  margin-top: var(--s-4);
  color: var(--ink-dim);
  font-size: 17px;
  font-weight: 500;
}

/* ========== Buttons ========== */
.btn {
  position: relative;
  min-height: var(--tap);
  padding: 0 var(--s-5);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.15s ease;
  letter-spacing: 0.01em;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--lg {
  min-height: 60px;
  font-size: 17px;
  border-radius: 999px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #2a0844;
  box-shadow: 0 4px 0 var(--pink-deep), 0 10px 22px rgba(255, 94, 168, 0.35);
}
.btn--primary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--pink-deep), 0 4px 10px rgba(255, 94, 168, 0.3);
}

.btn--secondary {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.25);
}
.btn--secondary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn--danger {
  background: linear-gradient(135deg, var(--danger), #ff8a52);
  color: #2a0808;
  box-shadow: 0 4px 0 var(--danger-deep), 0 10px 22px rgba(255, 92, 107, 0.35);
}
.btn--danger:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--danger-deep), 0 4px 10px rgba(255, 92, 107, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-muted);
  font-weight: 600;
}
.btn--ghost:hover:not(:disabled) {
  color: var(--ink);
}

/* ========== Field / stepper / input ========== */
.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.field__label {
  font-weight: 600;
}

.stepper {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.stepper__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.stepper__btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.stepper__value {
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  font-weight: 800;
  color: var(--yellow);
}

.input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 var(--s-4);
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 94, 168, 0.18), 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* ========== Scoreboard ========== */
.scoreboard {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.scoreboard__row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  background: var(--surface);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.scoreboard__row:nth-child(1) { box-shadow: 0 2px 0 var(--yellow-deep), 0 6px 14px rgba(255, 216, 77, 0.2); }
.scoreboard__row:nth-child(2) { box-shadow: 0 2px 0 var(--blue-deep), 0 6px 14px rgba(94, 200, 255, 0.18); }
.scoreboard__row:nth-child(3) { box-shadow: 0 2px 0 var(--pink-deep), 0 6px 14px rgba(255, 94, 168, 0.18); }

.scoreboard__rank {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.scoreboard__row:nth-child(1) .scoreboard__rank { color: var(--yellow); }
.scoreboard__row:nth-child(2) .scoreboard__rank { color: var(--blue); }
.scoreboard__row:nth-child(3) .scoreboard__rank { color: var(--pink); }

.scoreboard__name {
  font-weight: 600;
}

.scoreboard__score {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 20px;
  color: var(--mint);
}

/* ========== Reveal flip card ========== */
.reveal-card {
  position: relative;
  aspect-ratio: 5 / 6;
  width: 100%;
  perspective: 1400px;
}

.reveal-card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-card.revealed .reveal-card__inner {
  transform: rotateY(180deg);
}

.reveal-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  text-align: center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

.reveal-card__face--front {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 94, 168, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(94, 200, 255, 0.3), transparent 55%),
    linear-gradient(155deg, var(--surface-2), var(--surface));
}

.reveal-card__face--front::before,
.reveal-card__face--front::after {
  content: '★';
  position: absolute;
  font-size: 28px;
  color: rgba(255, 244, 230, 0.18);
}
.reveal-card__face--front::before { top: 14px; left: 18px; }
.reveal-card__face--front::after  { bottom: 14px; right: 18px; transform: rotate(180deg); }

.reveal-card__face--back {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 216, 77, 0.22), transparent 55%),
    radial-gradient(circle at 70% 75%, rgba(110, 231, 168, 0.22), transparent 55%),
    linear-gradient(155deg, #2f2553, #1f1840);
  transform: rotateY(180deg);
}

.reveal-card__hidden-label {
  color: var(--ink-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.reveal-card__big-tap {
  margin-top: var(--s-4);
  font-size: 56px;
  filter: drop-shadow(0 4px 18px rgba(255, 216, 77, 0.4));
}

.reveal-card__word {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.reveal-card__hint {
  margin-top: var(--s-3);
  font-size: 15px;
  color: var(--ink-dim);
  font-weight: 500;
}

/* ========== Play screen ========== */
.order {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.order__chip {
  background: var(--surface);
  border-radius: 999px;
  padding: var(--s-2) var(--s-3);
  display: inline-flex;
  gap: var(--s-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim);
}

.order__chip:first-child {
  background: linear-gradient(135deg, var(--mint), var(--blue));
  color: #07221b;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--mint-deep);
}

.order__step {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.order__chip:first-child .order__step {
  color: rgba(7, 34, 27, 0.65);
}

/* Player card grid — compact 3-col mobile-first; eases up on wider screens. */
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}

@media (min-width: 480px) {
  .board {
    gap: var(--s-3);
  }
}

@media (min-width: 720px) {
  .board {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  position: relative;
  aspect-ratio: 4 / 5;
  perspective: 1000px;
  cursor: pointer;
}

.card--eliminated {
  cursor: default;
}

.card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}

.card.is-flipped .card__inner {
  transform: rotateY(180deg);
}

.card:not(.is-flipped):active .card__inner {
  transform: scale(0.96);
}

.card__face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: var(--s-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

.card__face--front {
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 216, 77, 0.16), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(255, 94, 168, 0.22), transparent 55%),
    linear-gradient(155deg, var(--surface-2), var(--surface));
  color: var(--ink);
  gap: 4px;
}

/* Seat number badge — top-left, always shown. */
.card__seat {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

/* Lock icon — top-right, only when revealed. */
.card__lock {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* Player name area — clipped, supports a horizontal marquee for overflow. */
.card__name {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.card__name-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  gap: 28px;
}
.card__name-track > .card__name-text + .card__name-text {
  display: none;
}
.card__name-track.is-marquee > .card__name-text + .card__name-text {
  display: inline;
}
.card__name-track.is-marquee {
  animation: card-name-marquee 7s linear infinite;
}

@keyframes card-name-marquee {
  to {
    transform: translateX(calc(-50% - 14px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .card__name-track.is-marquee {
    animation: none;
  }
}

/* Hint text under the name (e.g. "Tap to claim", "Tap to reveal"). */
.card__hint {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  min-height: 12px;
}

/* Locked-card visual: dimmed surface, mildly desaturated, no hover affordance. */
.card--locked {
  cursor: default;
}
.card--locked .card__face--front {
  opacity: 0.55;
  filter: saturate(0.75);
}

.card__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(155deg, var(--role-color, var(--surface-2)), var(--role-color-deep, var(--surface)));
  color: #1a0a26;
  gap: 4px;
}

.card__role {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(26, 10, 38, 0.7);
}

.card__back-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(26, 10, 38, 0.85);
}

.card__word {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  padding: 0 4px;
}

/* Per-role tinting on the back face */
.card[data-role-color="civilian"]   { --role-color: var(--role-civilian);   --role-color-deep: var(--role-civilian-deep); }
.card[data-role-color="undercover"] { --role-color: var(--role-undercover); --role-color-deep: var(--role-undercover-deep); }
.card[data-role-color="mrwhite"]    { --role-color: var(--role-mrwhite);    --role-color-deep: var(--role-mrwhite-deep); }

/* ========== Summary banner ========== */
.banner {
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  padding: var(--s-6) var(--s-4);
  border-radius: var(--radius-xl);
  letter-spacing: -0.01em;
  background:
    linear-gradient(135deg, rgba(255, 94, 168, 0.25), rgba(255, 216, 77, 0.2) 35%, rgba(110, 231, 168, 0.22) 65%, rgba(94, 200, 255, 0.25));
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.banner__text {
  position: relative;
  background: linear-gradient(95deg, var(--pink), var(--yellow) 40%, var(--mint) 70%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.2));
}

/* ========== Recap ========== */
.recap {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.recap__row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: var(--s-3);
  align-items: center;
  background: var(--surface);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-lg);
  font-size: 15px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.recap__name { font-weight: 700; }

.recap__role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 244, 230, 0.08);
  color: var(--ink-dim);
}

.recap__row[data-role-color="civilian"]   .recap__role { background: rgba(94, 200, 255, 0.18);   color: var(--blue); }
.recap__row[data-role-color="undercover"] .recap__role { background: rgba(255, 94, 168, 0.18);   color: var(--pink); }
.recap__row[data-role-color="mrwhite"]    .recap__role { background: rgba(255, 216, 77, 0.2);    color: var(--yellow); }

.recap__word {
  color: var(--ink-dim);
  font-style: italic;
  font-weight: 500;
}

.recap__points {
  font-weight: 900;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

.recap__points[data-zero="true"] { color: var(--ink-muted); }

/* ========== Modal ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 22, 0.65);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  animation: fade-in 0.15s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 94, 168, 0.18), transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(255, 216, 77, 0.12), transparent 50%),
    var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.modal__body {
  color: var(--ink-dim);
  margin-bottom: var(--s-5);
  font-size: 15px;
}

.modal__body p {
  margin-bottom: var(--s-2);
}

.modal__actions {
  display: flex;
  gap: var(--s-2);
}

.modal__actions .btn {
  flex: 1;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: calc(var(--s-5) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-3);
  color: var(--ink);
  padding: var(--s-3) var(--s-4);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  font-size: 14px;
  font-weight: 600;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--error {
  background: linear-gradient(135deg, var(--danger), #ff8a52);
  color: #2a0808;
}

/* ========== Bank error banner ========== */
.bank-error {
  margin: var(--s-4);
  padding: var(--s-4);
  background: rgba(255, 92, 107, 0.12);
  border: 2px solid var(--danger);
  border-radius: var(--radius-lg);
  color: var(--danger);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 600;
}

.bank-error code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  .reveal-card__inner,
  .card__inner {
    transition: none;
  }
  .card.is-flipped .card__inner,
  .reveal-card.revealed .reveal-card__inner {
    transform: none;
  }
  .card__face--back,
  .reveal-card__face--back {
    transform: none;
  }
  .card:not(.is-flipped) .card__face--back,
  .reveal-card:not(.revealed) .reveal-card__face--back {
    opacity: 0;
    pointer-events: none;
  }
  .card.is-flipped .card__face--front,
  .reveal-card.revealed .reveal-card__face--front {
    opacity: 0;
    pointer-events: none;
  }
}
