:root {
  --bg0: #140101;
  --bg1: #1b0404;
  --panel: #241010;
  --panel2: #2b1212;
  --border: #5b2a2a;
  --borderSoft: #3e1a1a;
  --text: #ffecec;
  --muted: rgba(255, 236, 236, 0.72);
  --muted2: rgba(255, 236, 236, 0.55);
  --gold: #d6b25e;
  --goldDim: rgba(214, 178, 94, 0.15);
  --red: #b21f2d;
  --ok: #2ecc71;
  --bad: #e74c3c;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadowSoft: 0 8px 20px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --radiusSm: 12px;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg0);
  overscroll-behavior: none;
}

html {
  background:
    radial-gradient(
      1200px 800px at 12% 0%,
      rgba(214, 178, 94, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 100% 18%,
      rgba(178, 31, 45, 0.18),
      transparent 62%
    ),
    radial-gradient(
      1000px 900px at 50% 110%,
      rgba(255, 236, 236, 0.05),
      transparent 65%
    ),
    linear-gradient(180deg, #140101, #1b0404);
  background-attachment: fixed;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: transparent;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.18;
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--gold);
  top: -120px;
  left: -100px;
  animation: oF1 20s ease-in-out infinite;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--red);
  bottom: -80px;
  right: -60px;
  animation: oF2 25s ease-in-out infinite;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  top: 50%;
  left: 60%;
  animation: oF3 18s ease-in-out infinite;
}

@keyframes oF1 {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(60px, 80px);
  }
}

@keyframes oF2 {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-50px, -70px);
  }
}

@keyframes oF3 {
  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(-40px, 50px);
  }

  66% {
    transform: translate(30px, -40px);
  }
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 236, 236, 0.06);
  z-index: 100;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 0 4px 4px 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GATE SCREEN — full animated background ===== */
.gate-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(43, 18, 18, 0.95),
    rgba(20, 1, 1, 0.99)
  );
  overflow: hidden;
}

#gateCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Pulsing glow behind card */
.gate-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(214, 178, 94, 0.12) 0%,
    rgba(178, 31, 45, 0.08) 40%,
    transparent 70%
  );
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.gate-card {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      rgba(255, 236, 236, 0.06),
      rgba(255, 236, 236, 0.02)
    ),
    linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--borderSoft);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 80px rgba(214, 178, 94, 0.08),
    var(--shadow);
  animation: gateIn 0.8s ease-out;
  overflow: hidden;
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(214, 178, 94, 0.5),
    transparent 40%,
    transparent 60%,
    rgba(178, 31, 45, 0.4)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: borderShimmer 6s linear infinite;
}

@keyframes borderShimmer {
  0% {
    background: linear-gradient(
      0deg,
      rgba(214, 178, 94, 0.5),
      transparent 40%,
      transparent 60%,
      rgba(178, 31, 45, 0.4)
    );
  }

  25% {
    background: linear-gradient(
      90deg,
      rgba(214, 178, 94, 0.5),
      transparent 40%,
      transparent 60%,
      rgba(178, 31, 45, 0.4)
    );
  }

  50% {
    background: linear-gradient(
      180deg,
      rgba(214, 178, 94, 0.5),
      transparent 40%,
      transparent 60%,
      rgba(178, 31, 45, 0.4)
    );
  }

  75% {
    background: linear-gradient(
      270deg,
      rgba(214, 178, 94, 0.5),
      transparent 40%,
      transparent 60%,
      rgba(178, 31, 45, 0.4)
    );
  }

  100% {
    background: linear-gradient(
      360deg,
      rgba(214, 178, 94, 0.5),
      transparent 40%,
      transparent 60%,
      rgba(178, 31, 45, 0.4)
    );
  }
}

.gate-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(214, 178, 94, 0.04),
    transparent,
    rgba(178, 31, 45, 0.03),
    transparent
  );
  animation: gateRotate 12s linear infinite;
  pointer-events: none;
}

@keyframes gateRotate {
  to {
    transform: rotate(360deg);
  }
}

.gate-symbol {
  position: relative;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow:
    0 0 40px rgba(214, 178, 94, 0.4),
    0 0 80px rgba(214, 178, 94, 0.15);
  animation: symbolBreath 3s ease-in-out infinite;
}

@keyframes symbolBreath {
  0%,
  100% {
    text-shadow:
      0 0 40px rgba(214, 178, 94, 0.4),
      0 0 80px rgba(214, 178, 94, 0.15);
    filter: brightness(1);
  }

  50% {
    text-shadow:
      0 0 60px rgba(214, 178, 94, 0.6),
      0 0 120px rgba(214, 178, 94, 0.25);
    filter: brightness(1.15);
  }
}

.gate-card h1 {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.gate-card > p {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.gate-input-wrap {
  position: relative;
  display: flex;
  gap: 10px;
}

.gate-input-wrap input {
  flex: 1;
  border-radius: var(--radiusSm);
  border: 1px solid var(--borderSoft);
  background: rgba(20, 6, 6, 0.6);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.gate-input-wrap input::placeholder {
  color: rgba(255, 236, 236, 0.3);
}

.gate-input-wrap input:focus {
  border-color: rgba(214, 178, 94, 0.65);
  box-shadow:
    0 0 0 4px rgba(214, 178, 94, 0.18),
    0 0 30px rgba(214, 178, 94, 0.08);
}

.gate-input-wrap button {
  border-radius: var(--radiusSm);
  border: 1px solid rgba(214, 178, 94, 0.35);
  padding: 14px 24px;
  background: linear-gradient(
    180deg,
    rgba(214, 178, 94, 0.22),
    rgba(214, 178, 94, 0.08)
  );
  color: var(--gold);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.06s,
    background 0.2s;
}

.gate-input-wrap button:hover {
  border-color: rgba(214, 178, 94, 0.7);
  box-shadow:
    0 0 0 4px rgba(214, 178, 94, 0.15),
    0 0 40px rgba(214, 178, 94, 0.1);
  background: linear-gradient(
    180deg,
    rgba(214, 178, 94, 0.3),
    rgba(214, 178, 94, 0.12)
  );
}

.gate-input-wrap button:active {
  transform: translateY(1px);
}

.gate-msg {
  position: relative;
  color: var(--bad);
  font-size: 13px;
  margin-top: 14px;
  min-height: 20px;
}

@keyframes gateIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ===== APP LAYOUT ===== */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 18px 54px;
  position: relative;
  z-index: 1;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.header-top h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radiusSm);
  border: 1px solid var(--borderSoft);
  background: rgba(255, 236, 236, 0.04);
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn:hover {
  border-color: rgba(255, 236, 236, 0.2);
  color: var(--text);
  background: rgba(255, 236, 236, 0.08);
}

.icon-btn.active {
  border-color: rgba(214, 178, 94, 0.5);
  color: var(--gold);
  background: var(--goldDim);
}

.stats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stat {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--borderSoft);
  background: rgba(255, 236, 236, 0.04);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.stat span {
  color: var(--text);
  font-weight: 700;
}

.stat-ok span {
  color: var(--ok);
}

.stat-bad span {
  color: var(--bad);
}

.stat-master span {
  color: var(--gold);
}

.filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}

.filter-sep {
  width: 1px;
  height: 20px;
  background: var(--borderSoft);
  margin: 0 2px;
  flex-shrink: 0;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--borderSoft);
  background: rgba(255, 236, 236, 0.04);
  color: var(--muted2);
  transition: all 0.2s;
  white-space: nowrap;
  user-select: none;
  font-family: var(--font);
}

.filter-pill:hover {
  border-color: rgba(255, 236, 236, 0.2);
  color: var(--muted);
}

.filter-pill.active {
  border-color: rgba(214, 178, 94, 0.5);
  color: var(--gold);
  background: var(--goldDim);
}

.search-row {
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted2);
  font-size: 14px;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  border-radius: var(--radiusSm);
  border: 1px solid var(--borderSoft);
  background: rgba(20, 6, 6, 0.55);
  color: var(--text);
  padding: 12px 14px 12px 40px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.search-wrap input::placeholder {
  color: rgba(255, 236, 236, 0.35);
}

.search-wrap input:focus {
  border-color: rgba(214, 178, 94, 0.65);
  box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.18);
}

.count-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--borderSoft);
  background: rgba(214, 178, 94, 0.08);
  color: rgba(255, 236, 236, 0.7);
  flex-shrink: 0;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted2);
  white-space: nowrap;
}

.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--borderSoft);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle.on {
  background: rgba(214, 178, 94, 0.45);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted2);
  transition:
    transform 0.2s,
    background 0.2s;
}

.toggle.on::after {
  transform: translateX(16px);
  background: var(--gold);
}

.panel {
  position: relative;
  background:
    linear-gradient(
      180deg,
      rgba(255, 236, 236, 0.05),
      rgba(255, 236, 236, 0.02)
    ),
    linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--borderSoft);
  border-radius: var(--radius);
  padding: 18px 18px 18px 22px;
  margin: 12px 0;
  box-shadow: var(--shadowSoft);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s,
    opacity 0.3s;
  animation: cardIn 0.35s ease-out both;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--borderSoft);
  transition: background 0.3s;
}

.panel:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(214, 178, 94, 0.3);
}

.panel.state-correct::before {
  background: var(--ok);
}

.panel.state-wrong::before {
  background: var(--bad);
}

.panel.state-mastered {
  opacity: 0.55;
}

.panel.state-mastered::before {
  background: var(--gold);
}

.panel.state-mastered:hover {
  opacity: 0.8;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

.panel.shake {
  animation: shake 0.35s ease;
}

.q {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  padding-right: 30px;
}

.master-star {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--borderSoft);
  font-size: 16px;
  cursor: pointer;
  transition:
    color 0.2s,
    transform 0.2s;
  padding: 4px;
}

.master-star:hover {
  color: var(--gold);
  transform: scale(1.15);
}

.master-star.active {
  color: var(--gold);
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ansInput {
  flex: 1;
  min-width: 200px;
  border-radius: var(--radiusSm);
  border: 1px solid var(--borderSoft);
  background: rgba(20, 6, 6, 0.55);
  color: var(--text);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.15s;
}

.ansInput::placeholder {
  color: rgba(255, 236, 236, 0.35);
}

.ansInput:focus {
  border-color: rgba(214, 178, 94, 0.65);
  box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.18);
}

.ansInput.correct {
  border-color: rgba(46, 204, 113, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.15) !important;
  background: rgba(46, 204, 113, 0.06) !important;
}

.ansInput.wrong {
  border-color: rgba(231, 76, 60, 0.9) !important;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.13) !important;
  background: rgba(231, 76, 60, 0.06) !important;
}

.btn {
  border-radius: var(--radiusSm);
  border: 1px solid rgba(214, 178, 94, 0.35);
  padding: 11px 16px;
  background: linear-gradient(
    180deg,
    rgba(214, 178, 94, 0.18),
    rgba(214, 178, 94, 0.06)
  );
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.06s,
    background 0.15s;
  white-space: nowrap;
}

.btn:hover {
  border-color: rgba(214, 178, 94, 0.65);
  box-shadow: 0 0 0 4px rgba(214, 178, 94, 0.12);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  background: rgba(255, 236, 236, 0.05);
  border-color: var(--borderSoft);
  font-weight: 600;
}

.btn-sm:hover {
  border-color: rgba(255, 236, 236, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 236, 236, 0.06);
}

.status {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status .icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.status .icon.ok {
  background: rgba(46, 204, 113, 0.15);
  color: var(--ok);
}

.status .icon.bad {
  background: rgba(231, 76, 60, 0.15);
  color: var(--bad);
}

.reveal {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: var(--radiusSm);
  border: 1px dashed rgba(255, 236, 236, 0.15);
  background: rgba(255, 236, 236, 0.04);
  font-size: 13px;
  color: rgba(255, 236, 236, 0.85);
  line-height: 1.4;
  display: none;
  animation: revIn 0.25s ease-out;
}

.reveal.reveal-ok {
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.05);
}

.reveal.reveal-bad {
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.05);
}

@keyframes revIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.keyboard-hints {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted2);
}

.keyboard-hints kbd {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--borderSoft);
  background: rgba(255, 236, 236, 0.05);
  font-family: var(--font);
  font-size: 11px;
  margin-right: 4px;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radiusSm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  pointer-events: auto;
  animation: tIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}

.toast.ok {
  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.2),
    rgba(46, 204, 113, 0.08)
  );
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #a3f5c5;
}

.toast.bad {
  background: linear-gradient(
    135deg,
    rgba(231, 76, 60, 0.2),
    rgba(231, 76, 60, 0.08)
  );
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #f5a3a3;
}

.toast.info {
  background: linear-gradient(
    135deg,
    rgba(214, 178, 94, 0.2),
    rgba(214, 178, 94, 0.08)
  );
  border: 1px solid rgba(214, 178, 94, 0.4);
  color: #f0ddb0;
}

.toast.out {
  animation: tOut 0.25s ease-in forwards;
}

@keyframes tIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tOut {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted2);
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  color: var(--borderSoft);
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .wrap {
    padding: 20px 12px 40px;
  }

  .panel {
    padding: 14px 14px 14px 18px;
  }

  .row {
    flex-direction: column;
  }

  .row .ansInput {
    min-width: 0;
    width: 100%;
  }

  .row .btn,
  .row .btn-sm {
    width: 100%;
    text-align: center;
  }

  .header-top {
    flex-direction: column;
    gap: 10px;
  }

  .stats-row {
    gap: 6px;
  }

  .stat {
    padding: 6px 10px;
    font-size: 12px;
  }

  .gate-card {
    padding: 36px 24px;
  }

  .filter-row {
    gap: 5px;
  }

  .keyboard-hints {
    display: none;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: 100%;
  }

  .toggle-wrap {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .bg-orb {
    display: none;
  }

  #gateCanvas {
    display: none;
  }
}
