/* =========================================================
   ЭКСПЕДИЦИЯ «МЕРИДИАН» — стили
   ========================================================= */

:root {
  --bg-deep: #05060f;
  --bg-panel: rgba(20, 28, 60, 0.72);
  --border-soft: rgba(120, 180, 255, 0.16);
  --neon-cyan: #22d3ee;
  --neon-blue: #3b82f6;
  --neon-amber: #f59e0b;
  --neon-magenta: #e879f9;
  --neon-red: #ef4444;
  --text-main: #e8ecff;
  --text-dim: #7f90c0;
  --text-soft: #c7d4f7;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-main);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Звёздный фон ---------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, rgba(92, 44, 180, 0.35), transparent 55%),
    radial-gradient(circle at 82% 74%, rgba(20, 90, 170, 0.30), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(30, 20, 70, 0.55), transparent 80%),
    var(--bg-deep);
}
.starfield::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.75;
  background-image:
    radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 64%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 48%, #bfe4ff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 34%, #ffe9b8 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, #d9c8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 90%, #bfe4ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 62%, #d9c8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 46%, #fff 50%, transparent 51%);
  background-size: 260px 260px;
  animation: drift 90s linear infinite;
}
@keyframes drift {
  from { background-position: 0 0; }
  to   { background-position: 260px 260px; }
}

/* ---------- Общие утилиты ---------- */
.hidden { display: none !important; }

.screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  padding: 24px;
}
.screen.active { display: flex; }

button { font-family: inherit; }
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

/* ---------- Кнопки ---------- */
.btn {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(22, 30, 64, 0.85);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  background: rgba(34, 46, 92, 0.95);
  border-color: rgba(120, 180, 255, 0.35);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #041018;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4ae3f5, #5b9cff);
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, var(--neon-amber), #ef7c22);
  color: #1a0e00;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover { box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5); }

.btn-lg { font-size: 16px; padding: 14px 30px; border-radius: 14px; }

/* =========================================================
   ГЛАВНОЕ МЕНЮ
   ========================================================= */
#screen-menu {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
}

.menu-wrap {
  max-width: 760px;
  width: 100%;
  text-align: center;
  padding: 18px 0;
  margin: auto 0;
}

.game-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, #9be8ff 0%, #6ea8ff 40%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(34, 211, 238, 0.25));
}

.game-sub {
  color: var(--text-dim);
  font-size: clamp(13px, 1.6vw, 16px);
  margin: 0 0 24px;
}

.rules {
  text-align: left;
  background: rgba(12, 18, 42, 0.7);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-soft);
  backdrop-filter: blur(6px);
}
.rules p { margin: 0 0 10px; }
.rules p:last-child { margin-bottom: 0; }
.rules strong { color: #a9dcff; }

.mode-picker {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(12, 18, 42, 0.8);
  border: 1px solid var(--border-soft);
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.mode-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.mode-btn:hover { color: var(--text-main); }
.mode-btn.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(59, 130, 246, 0.22));
  border-color: rgba(34, 211, 238, 0.5);
  color: #b9f1ff;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.16);
}

.mode-desc {
  color: var(--text-dim);
  font-size: 13px;
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.5;
  min-height: 2.6em;
}

/* =========================================================
   ЭКРАН ПЕРЕХОДА
   ========================================================= */
#screen-transition {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.transition-wrap { text-align: center; animation: fadeIn 0.35s ease; }

.transition-planet {
  width: 150px;
  height: 150px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  background: radial-gradient(circle at 32% 28%, var(--c1, #1b2a4a), var(--c2, #0a1024) 78%);
  box-shadow:
    0 0 70px var(--c1, #1b2a4a),
    inset -22px -22px 60px rgba(0, 0, 0, 0.7),
    inset 8px 8px 30px rgba(255, 255, 255, 0.08);
  animation: floaty 2.6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.transition-wrap h2 { font-size: clamp(20px, 3vw, 30px); margin: 0 0 8px; }
.transition-sub { color: var(--text-dim); font-size: 16px; margin: 0 0 26px; }

.transition-dots { display: flex; justify-content: center; gap: 8px; }
.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(120, 180, 255, 0.2);
  border: 1px solid rgba(120, 180, 255, 0.3);
}
.tdot.done { background: var(--neon-cyan); border-color: transparent; }
.tdot.active {
  background: var(--neon-amber);
  border-color: transparent;
  box-shadow: 0 0 12px var(--neon-amber);
}

/* =========================================================
   ИГРОВОЙ ЭКРАН
   ========================================================= */
#screen-game {
  flex-direction: column;
  padding: 10px 12px;
  gap: 8px;
}

/* ---------- HUD ---------- */
.hud {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(8px);
}
.hud-cell { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hud-label {
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.hud-value {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-main);
  display: inline-block;
  transition: color 0.2s ease;
}
.hud-value.hud-score { color: #9be8ff; }

.hud-value.pulse { animation: scorePulse 0.45s ease; }
@keyframes scorePulse {
  50% { transform: scale(1.3); color: var(--neon-cyan); }
}

#hud-timer-cell.warning .hud-value {
  color: var(--neon-red);
  animation: blink 0.9s infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

#hud-mode.risky { color: var(--neon-amber); }

/* ---------- Тело игры ---------- */
.game-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  gap: 10px;
}

/* ---------- Мини-карта ---------- */
.minimap-col {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}
.minimap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.mm-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(120, 180, 255, 0.28);
  background: rgba(10, 16, 36, 0.9);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 0;
}
.mm-dot.passed {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #041018;
  border-color: transparent;
}
.mm-dot.risky-passed {
  background: linear-gradient(135deg, var(--neon-amber), #ef7c22);
  color: #1a0e00;
}
.mm-dot.failed {
  background: rgba(120, 20, 20, 0.55);
  border-color: var(--neon-red);
  color: #ffb3b3;
}
.mm-dot.current {
  border-color: var(--neon-cyan);
  color: #b9f1ff;
  cursor: pointer;
  animation: dotPulse 1.7s ease-in-out infinite;
}
.mm-dot.current:hover { background: rgba(34, 211, 238, 0.18); }
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* ---------- Поле ---------- */
.board-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  border-radius: 16px;
  padding: 10px;
  background: radial-gradient(circle at 50% 0%, rgba(60, 90, 180, 0.18), rgba(8, 12, 28, 0.65));
  border: 1px solid rgba(120, 180, 255, 0.12);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.4s ease;
}
.board {
  display: grid;
  gap: 6px;
  width: 100%;
  height: 100%;
}

/* ---------- Карточка ---------- */
.card {
  position: relative;
  padding: 0;
  border: none;
  background: transparent;
  perspective: 900px;
  cursor: pointer;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.card:disabled { cursor: default; }

.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.36s cubic-bezier(.2, .75, .3, 1);
  border-radius: 10px;
}
.card.flipped .card-inner,
.card.matched .card-inner { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
}

.card-front {
  background: linear-gradient(150deg, #16204a, #0c1330 55%, #1a1440);
  border: 1px solid rgba(120, 180, 255, 0.22);
}
.card-front::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.3px),
    radial-gradient(circle, rgba(140, 200, 255, 0.35) 1px, transparent 1.3px);
  background-size: 26px 26px, 44px 44px;
  background-position: 0 0, 13px 13px;
  opacity: 0.5;
}
.card-emblem {
  position: relative;
  z-index: 1;
  font-size: clamp(12px, 2.6vw, 22px);
  color: rgba(140, 200, 255, 0.35);
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #1b2a5e, #101a3c);
  border: 1px solid rgba(34, 211, 238, 0.4);
  gap: 2px;
}
.card-icon {
  font-size: clamp(16px, 4.2vw, 36px);
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
.card-label {
  font-size: clamp(8px, 1.45vw, 12px);
  line-height: 1.12;
  text-align: center;
  color: var(--text-soft);
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.card.matched .card-back {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.5), inset 0 0 18px rgba(34, 211, 238, 0.25);
  opacity: 0.94;
}
.card.error .card-back {
  border-color: var(--neon-red);
  animation: flashRed 0.5s ease;
}
@keyframes flashRed {
  0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); background: linear-gradient(160deg, #1b2a5e, #101a3c); }
  50%      { box-shadow: 0 0 26px rgba(239, 68, 68, 0.85); background: linear-gradient(160deg, #5e1b1b, #3c1010); }
}

/* ---------- Оверлей старта планеты ---------- */
.board-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 16, 0.74);
  backdrop-filter: blur(5px);
  padding: 16px;
  animation: fadeIn 0.3s ease;
}
.overlay-card { text-align: center; max-width: 440px; }
.overlay-planet { font-size: 54px; margin-bottom: 8px; }
.overlay-card h2 { font-size: clamp(18px, 3vw, 26px); margin: 0 0 10px; }
.overlay-info {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 22px;
}

/* ---------- Статус-бар ---------- */
.status-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px;
  border-radius: 12px;
  background: rgba(16, 24, 52, 0.62);
  border: 1px solid rgba(120, 180, 255, 0.1);
  font-size: 13px;
  min-height: 42px;
}
.status-text { color: var(--text-soft); }
#btn-finish { padding: 7px 14px; font-size: 12.5px; }

/* =========================================================
   МОДАЛКА
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 4, 12, 0.82);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.25s ease;
}
.modal-card {
  max-width: 580px;
  width: 100%;
  background: linear-gradient(160deg, #101a3c, #0a1024);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 70px rgba(34, 211, 238, 0.12);
  animation: modalIn 0.32s cubic-bezier(.2, .75, .3, 1);
}
.modal-title {
  margin: 0 0 14px;
  font-size: 20px;
  color: #a9dcff;
}
.modal-text {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-soft);
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-actions .btn { flex: 1 1 180px; }

/* =========================================================
   ОВЕРЛЕЙ РЕЗУЛЬТАТА
   ========================================================= */
.result-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 4, 12, 0.66);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}
.result-card {
  text-align: center;
  padding: 30px 34px;
  border-radius: 22px;
  background: rgba(10, 16, 36, 0.96);
  border: 1px solid var(--border-soft);
  max-width: 520px;
  animation: modalIn 0.35s cubic-bezier(.2, .75, .3, 1);
}
.result-icon { font-size: 54px; line-height: 1; margin-bottom: 10px; }
.result-card h2 { font-size: 22px; margin: 0 0 10px; }
.result-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.result-overlay.success .result-icon { color: var(--neon-cyan); text-shadow: 0 0 30px rgba(34, 211, 238, 0.7); }
.result-overlay.success .result-card { border-color: rgba(34, 211, 238, 0.4); }
.result-overlay.failure .result-icon { color: var(--neon-red); text-shadow: 0 0 30px rgba(239, 68, 68, 0.7); }
.result-overlay.failure .result-card { border-color: rgba(239, 68, 68, 0.4); }

/* =========================================================
   ФИНАЛЬНЫЙ ЭКРАН
   ========================================================= */
#screen-final {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
}

.final-wrap {
  max-width: 760px;
  width: 100%;
  text-align: center;
  padding: 24px 0;
  margin: auto 0;
}
.final-wrap h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 22px;
  background: linear-gradient(120deg, #9be8ff, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-score {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.final-score-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.final-score-value {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
  line-height: 1;
}
.final-rank {
  font-size: 18px;
  font-weight: 700;
  color: var(--neon-amber);
  margin: 0 0 6px;
}
.final-summary {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 22px;
}

.final-planets {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.final-row {
  display: grid;
  grid-template-columns: 34px minmax(120px, 1.4fr) 1.3fr 1fr 0.8fr;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(16, 24, 52, 0.6);
  border: 1px solid rgba(120, 180, 255, 0.1);
  font-size: 13px;
}
.final-row.ok { border-left: 3px solid var(--neon-cyan); }
.final-row.bad { border-left: 3px solid var(--neon-red); }
.fr-icon { font-size: 20px; text-align: center; }
.fr-name { font-weight: 600; }
.fr-status { color: var(--text-soft); }
.fr-pairs, .fr-score { color: var(--text-dim); text-align: right; }

/* =========================================================
   АНИМАЦИИ
   ========================================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
/* =========================================================
   ДОСТУПНОСТЬ: prefers-reduced-motion
   При включённой системной настройке «уменьшить движение»
   отключаем/упрощаем все анимации и переходы:
   - переворот карточки
   - вспышка ошибки
   - мигание таймера
   - переход между планетами (fadeIn, floaty)
   - появление плашки-события (modalIn)
   - дрейф звёздного фона (drift)
   - покачивание планеты на экране перехода (floaty)
   - пульсация точки мини-карты (dotPulse)
   - пульс счёта (scorePulse)
   - вспышка поля при достижении порога (theme-flash)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  /* Бесконечные анимации — явное отключение */
  .starfield::before { animation: none !important; }
  .transition-planet { animation: none !important; }
  .mm-dot.current { animation: none !important; }
  .hud-value.pulse { animation: none !important; }

  /* Мигающий таймер — без мигания */
  #hud-timer-cell.warning .hud-value {
    animation: none !important;
    opacity: 1 !important;
  }

  /* Вспышка ошибки — статичная рамка */
  .card.error .card-back {
    animation: none !important;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.7) !important;
  }

  /* Подсветка порога — статичная тень */
  .board-wrap.theme-flash {
    box-shadow: inset 0 0 70px rgba(34, 211, 238, 0.18),
                0 0 24px rgba(34, 211, 238, 0.12) !important;
  }

  /* Появление модалки/оверлея — без scale/translate */
  .modal,
  .modal-card,
  .result-overlay,
  .result-card,
  .transition-wrap,
  .board-overlay {
    animation: none !important;
    transform: none !important;
  }

  .modal-card,
  .result-card {
    transition: none !important;
  }
  /* Карточка: opacity вместо 3D-переворота */
  .card-inner {
    transform-style: flat !important;
    transition: none !important;
  }
  .card.flipped .card-inner,
  .card.matched .card-inner {
    transform: none !important;
  }
  .card-back {
    transform: none !important;
    opacity: 0;
    transition: none !important;
  }
  .card.flipped .card-back,
  .card.matched .card-back {
    opacity: 1;
  }
  .card-front {
    transition: none !important;
  }
  .card.flipped .card-front,
  .card.matched .card-front {
    opacity: 0;
  }
}