:root {
  --bg: #0a0a12;
  --panel: #141422;
  --surface: #1e1e30;
  --accent: #00f0ff;
  --accent2: #ff2a6d;
  --text: #f4f4ff;
  --muted: #8b8bb0;
  --danger: #ff4d4d;
  --warning: #ffcc00;
  --success: #00f0ff;
  --flicker-intensity: 1;
  --flicker-speed: 1;
}

[data-theme="light"] {
  --bg: #f4f4f8;
  --panel: #ffffff;
  --surface: #eaeaef;
  --text: #111118;
  --muted: #555566;
  --accent: #0066ff;
  --accent2: #d9005b;
  --danger: #cc0000;
}

[data-theme="retro"] {
  --bg: #0c0c00;
  --panel: #1a1a05;
  --surface: #22220a;
  --accent: #33ff00;
  --accent2: #ffcc00;
  --text: #ccff99;
  --muted: #99aa55;
  --danger: #ff3333;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  transition: background 0.2s, color 0.2s;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* Flicker and CRT */
body.flicker .glitch,
body.flicker .logo,
body.flicker h1,
body.flicker h2 {
  animation: flicker calc(1s / var(--flicker-speed)) infinite alternate;
}

body.glow .glitch,
body.glow .logo {
  text-shadow:
    0 0 calc(4px * var(--flicker-intensity)) var(--accent),
    0 0 calc(10px * var(--flicker-intensity)) var(--accent);
}

body.scanlines::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 9000;
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 calc(2px * var(--flicker-intensity)) var(--accent));
  }
  20%, 24%, 55% {
    opacity: calc(0.85 - 0.15 * var(--flicker-intensity));
    filter: none;
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  line-height: 1.4;
}

.pants { color: var(--accent); }
.legacy { color: var(--accent2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  cursor: pointer;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
  transition: 0.2s;
  font: inherit;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn.neon {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.btn.neon:hover {
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.7);
}

.btn.outline {
  border-color: var(--accent2);
  color: var(--accent2);
}

.btn.outline:hover {
  background: var(--accent2);
  color: var(--bg);
}

.btn.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn.danger:hover {
  background: var(--danger);
  color: var(--bg);
}

.btn.icon {
  border: none;
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.search-section {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.glitch {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  color: var(--text);
  text-shadow: 2px 2px var(--accent), -2px -2px var(--accent2);
  margin: 0 0 1rem;
}

.dev-notice {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent2);
  border-radius: 0.5rem;
  color: var(--accent2);
  font-size: 0.85rem;
  font-weight: 600;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
  flex-wrap: wrap;
}

input[type='text'],
input[type='url'],
input[type='number'],
input[type='file'],
input[type='color'],
select,
textarea {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
  font: inherit;
}

input[type='text']:focus,
input[type='url']:focus,
input[type='number']:focus,
input[type='file']:focus,
input[type='color']:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
}

.search-form input {
  flex: 1;
  min-width: 240px;
}

.status {
  min-height: 1.5rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.status.error {
  color: var(--danger);
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.results > .hint,
.results > .error,
.results > .loading,
.results > .error-box {
  grid-column: 1 / -1;
  text-align: center;
}

.source-card,
.setting-card,
.engine-card,
.api-card {
  background: var(--panel);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: 0.2s;
}

.source-card:hover,
.setting-card:hover,
.engine-card:hover,
.api-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.1);
}

.source-card h3,
.setting-card h3,
.engine-card h3,
.api-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.source-card .meta,
.engine-card .meta,
.api-card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.source-card .details,
.engine-card .details {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
}

.source-card .details li,
.engine-card .details li {
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.06);
}

.chip,
.pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.status-ok { color: var(--success); }
.status-warn { color: var(--warning); }
.status-off { color: var(--danger); }

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.source-card .actions,
.engine-card .actions,
.api-card .actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.source-card .actions .btn,
.engine-card .actions .btn,
.api-card .actions .btn {
  flex: 1;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--accent);
}

.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.error {
  color: var(--danger);
}

.error-box {
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  color: var(--danger);
  text-align: left;
}

.import-section,
.library-section,
.settings-section,
.engines-section,
.dashboard-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: 1rem;
}

.library-list,
.engine-list,
.api-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.file-label {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  cursor: pointer;
  margin-top: 0.75rem;
}

.file-label input[type='file'] {
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-content {
  background: var(--panel);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 1rem;
  width: min(900px, 95vw);
  max-height: 95vh;
  overflow: auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.modal-content.small {
  width: min(560px, 90vw);
}

.modal-content.wide {
  width: min(1024px, 95vw);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.player-box {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.player-meta {
  text-align: center;
}

.player-meta h3 {
  margin: 0 0 0.5rem;
}

.player-stage {
  width: 100%;
  min-height: 420px;
  background: var(--bg);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-stage ruffle-player,
.player-stage object,
.player-stage embed {
  width: 100%;
  height: 480px;
  max-height: 70vh;
  border: none;
}

.player-error {
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.35);
  border-radius: 0.75rem;
  padding: 1rem;
}

.player-error h3 {
  margin: 0 0 0.5rem;
  color: var(--danger);
}

.player-error ul {
  padding-left: 1.25rem;
  color: var(--text);
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.player-tools {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.player-tools label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.disclaimer-text {
  padding: 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
}

.disclaimer-text p {
  margin: 0 0 1rem;
}

.disclaimer-text h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--accent);
}

.official-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.official-links a {
  color: var(--accent);
}

.official-links code {
  background: rgba(0, 240, 255, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(0, 240, 255, 0.08);
  color: var(--muted);
  margin-top: 2rem;
}

footer a {
  color: var(--accent);
}

.small {
  font-size: 0.85rem;
}

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

/* Settings / engines / dashboard shared */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.form-row label {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row .hint {
  flex-basis: 100%;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

pre {
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
}

.dashboard-log {
  background: var(--bg);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  max-height: 320px;
  overflow-y: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 1rem;
}

.dashboard-log .ok { color: var(--success); }
.dashboard-log .warn { color: var(--warning); }
.dashboard-log .err { color: var(--danger); }

/* Game cards, discovery, and detail */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1rem auto;
  max-width: 1100px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.filter-group select,
.filter-group input {
  min-width: 160px;
}

.result-count {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.card-grid,
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card-row {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.game-card {
  background: var(--panel);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}

.game-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.1);
}

.card-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: var(--surface);
}

.card-cover-fallback,
.detail-cover-fallback {
  width: 100%;
  height: 140px;
  background: var(--surface);
  color: var(--accent);
  font-family: 'Press Start 2P', cursive;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.detail-cover-fallback {
  height: 100%;
  min-height: inherit;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-cats {
  margin: 0;
  min-height: 1.4rem;
}

.card-rating {
  margin: 0;
  font-size: 0.85rem;
}

.stars {
  color: var(--warning);
}

.card-status {
  margin: 0;
  font-size: 0.8rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.card-actions .btn {
  flex: 1;
  min-width: 70px;
}

.unavailable {
  color: var(--danger);
  font-size: 0.85rem;
}

.home-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.section-row {
  background: var(--panel);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
}

.section-title {
  margin: 0 0 1rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.9rem;
  color: var(--accent);
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(0, 240, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.category-pill:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

.category-pill .count {
  background: var(--surface);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.game-detail {
  background: var(--panel);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-cover {
  background: var(--surface);
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 260px;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 0.5rem;
}

.detail-info .meta {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.detail-desc {
  color: var(--text);
  max-width: 720px;
}

.detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.detail-section {
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.detail-section.full {
  grid-column: 1 / -1;
}

.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 600;
}

.detail-list dd {
  margin: 0;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.source-item {
  background: var(--bg);
  border-radius: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.08);
}

.source-item p {
  margin: 0 0 0.5rem;
}

.skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, var(--surface) 50%, var(--panel) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.2s infinite;
  border-radius: 0.5rem;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 640px) {
  .search-form,
  .form-row,
  .player-tools,
  .error-actions,
  .actions {
    flex-direction: column;
  }
  .search-form input,
  .search-form button,
  .form-row input,
  .form-row select,
  .form-row button,
  .btn {
    width: 100%;
  }
  .source-card .actions .btn,
  .engine-card .actions .btn,
  .api-card .actions .btn {
    width: 100%;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    min-height: 200px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list dt {
    color: var(--accent);
  }

  .card-grid,
  .card-row {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .game-card .card-actions {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 1rem;
  }
  .container {
    padding: 1rem;
  }
  .search-section {
    padding: 1.5rem 1rem 1rem;
  }
  .logo {
    font-size: 0.65rem;
  }
  .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-cover {
    height: 240px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animations and transitions */
.btn, .category-pill, .game-card, .card-cover, .chip {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.08), 0 0 16px rgba(0, 240, 255, 0.05);
}

.game-card:hover .card-cover,
.game-card:hover .card-cover-fallback {
  transform: scale(1.03);
}

.card-cover, .card-cover-fallback, .detail-cover-fallback {
  transition: transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled, .btn[disabled] {
  transform: none;
  box-shadow: none;
}

.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.12);
}

.loading::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modal fade */
.modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.96) translateY(10px);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.modal.open .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}
