:root {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --color-primary: #00d4ff;
  --color-accent: #e94560;
  --color-purple: #a855f7;
  --color-blue: #3b82f6;
  --text-primary: #e0e0e0;
  --text-secondary: #9999aa;
  --text-muted: #6a6a7e;
  --border-color: #2a2a4a;
  --radius: 8px;
  --radius-lg: 12px;
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg-primary: #f5f5f8;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ecedf2;
  --color-primary: #0091b3;
  --color-accent: #d63852;
  --color-purple: #7c3aed;
  --color-blue: #2563eb;
  --text-primary: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #888899;
  --border-color: #d8d8e4;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(233, 69, 96, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(214, 56, 82, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 145, 179, 0.04) 0%, transparent 50%);
}

/* ===== Animated Background Grid ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridDrift 25s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridDrift {
  to { transform: translate(50px, 50px); }
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0, 145, 179, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 145, 179, 0.04) 1px, transparent 1px);
}

/* ===== Floating Orbs ===== */
body::after {
  content: '';
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06), transparent 70%);
  top: 10%;
  right: -5%;
  animation: floatOrb1 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::after {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.04), transparent 70%);
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 40px) scale(1.15); }
  66% { transform: translate(30px, -30px) scale(0.9); }
  100% { transform: translate(-20px, 60px) scale(1.05); }
}

.portal {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 32px;
}

.portal::before {
  content: '';
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05), transparent 70%);
  bottom: 10%;
  left: -5%;
  animation: floatOrb2 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

[data-theme="light"] .portal::before {
  background: radial-gradient(circle, rgba(0, 145, 179, 0.04), transparent 70%);
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.1); }
  100% { transform: translate(-30px, 20px) scale(0.95); }
}

/* ===== Entrance Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-header   { opacity: 0; animation: fadeInUp 0.6s ease forwards 0.05s; }
.version-badge   { opacity: 0; animation: fadeInUp 0.4s ease forwards 0.12s; }
.marquee-bar     { opacity: 0; animation: fadeInUp 0.6s ease forwards 0.15s; }
.section-label:nth-of-type(1) { opacity: 0; animation: fadeInUp 0.4s ease forwards 0.2s; }
.game-cards:nth-of-type(1) .game-card:nth-child(1) { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.25s; }
.game-cards:nth-of-type(1) .game-card:nth-child(2) { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.35s; }
.game-cards:nth-of-type(1) .game-card:nth-child(3) { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.45s; }
.section-label:nth-of-type(2) { opacity: 0; animation: fadeInUp 0.4s ease forwards 0.5s; }
.game-cards:nth-of-type(2) .game-card:nth-child(1) { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.55s; }
.game-cards:nth-of-type(2) .game-card:nth-child(2) { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.65s; }
.game-cards:nth-of-type(2) .game-card:nth-child(3) { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.75s; }
.live-stats      { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.85s; }
.leaderboard-callout { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.9s; }
.portal-footer   { opacity: 0; animation: fadeInUp 0.5s ease forwards 0.95s; }

/* ===== Header ===== */
.portal-header {
  text-align: center;
}

.logo-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.portal-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-purple), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.portal-header .subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: italic;
}

/* ===== Version Badge ===== */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-family: var(--font-main);
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.version-badge:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.1);
}

.version-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: onlinePulse 2s ease-in-out infinite;
}

.whats-new-label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  opacity: 0.6;
}

.version-badge:hover .whats-new-label {
  opacity: 1;
}

/* ===== Changelog Modal ===== */
.changelog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.changelog-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.changelog-modal {
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s ease;
  overflow: hidden;
}

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

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
}

.changelog-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.changelog-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.changelog-close:hover {
  color: var(--text-primary);
}

.changelog-body {
  padding: 20px 24px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.changelog-body::-webkit-scrollbar {
  width: 6px;
}

.changelog-body::-webkit-scrollbar-track {
  background: transparent;
}

.changelog-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.cl-version {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.cl-version:not(:first-child) {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.cl-tag {
  padding: 3px 10px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.cl-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cl-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.cl-item {
  padding: 4px 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.cl-feature {
  color: var(--color-primary);
  font-weight: 600;
}

.cl-desc {
  color: var(--text-secondary);
}

.cl-spacer {
  height: 4px;
}

/* ===== Marquee ===== */
.marquee-bar {
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 0;
  position: relative;
}

.marquee-bar::before,
.marquee-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 1;
}

.marquee-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.marquee-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 250s linear infinite;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.marquee-content span {
  flex-shrink: 0;
  padding: 0 32px;
}

.marquee-bar:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-content span::after {
  content: '\2022';
  margin-left: 32px;
  color: var(--color-accent);
  opacity: 0.4;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Section Labels ===== */
.section-label {
  width: 100%;
  max-width: 640px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: -16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ===== Game Cards ===== */
.game-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 640px;
}

.game-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Per-game hover glow */
.game-card[data-game="trivia"]:hover {
  border-color: var(--color-primary);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.12),
    0 0 60px rgba(0, 212, 255, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

.game-card[data-game="battleship"]:hover {
  border-color: var(--color-accent);
  box-shadow:
    0 0 30px rgba(233, 69, 96, 0.12),
    0 0 60px rgba(233, 69, 96, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

.game-card[data-game="connect-four"]:hover {
  border-color: var(--color-purple);
  box-shadow:
    0 0 30px rgba(168, 85, 247, 0.12),
    0 0 60px rgba(168, 85, 247, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

.game-card[data-game="wordle"]:hover {
  border-color: #2ecc71;
  box-shadow:
    0 0 30px rgba(46, 204, 113, 0.12),
    0 0 60px rgba(46, 204, 113, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

.game-card[data-game="typing-test"]:hover {
  border-color: #f39c12;
  box-shadow:
    0 0 30px rgba(243, 156, 18, 0.12),
    0 0 60px rgba(243, 156, 18, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

.game-card[data-game="snake"]:hover {
  border-color: var(--color-primary);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.12),
    0 0 60px rgba(0, 212, 255, 0.05),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Color the icon on hover */
.game-card[data-game="trivia"]:hover .game-icon { color: var(--color-primary); border-color: rgba(0, 212, 255, 0.3); }
.game-card[data-game="battleship"]:hover .game-icon { color: var(--color-accent); border-color: rgba(233, 69, 96, 0.3); }
.game-card[data-game="connect-four"]:hover .game-icon { color: var(--color-purple); border-color: rgba(168, 85, 247, 0.3); }
.game-card[data-game="wordle"]:hover .game-icon { color: #2ecc71; border-color: rgba(46, 204, 113, 0.3); }
.game-card[data-game="typing-test"]:hover .game-icon { color: #f39c12; border-color: rgba(243, 156, 18, 0.3); }
.game-card[data-game="snake"]:hover .game-icon { color: var(--color-primary); border-color: rgba(0, 212, 255, 0.3); }

/* Color the arrow on hover */
.game-card[data-game="trivia"]:hover .play-arrow { color: var(--color-primary); }
.game-card[data-game="battleship"]:hover .play-arrow { color: var(--color-accent); }
.game-card[data-game="connect-four"]:hover .play-arrow { color: var(--color-purple); }
.game-card[data-game="wordle"]:hover .play-arrow { color: #2ecc71; }
.game-card[data-game="typing-test"]:hover .play-arrow { color: #f39c12; }
.game-card[data-game="snake"]:hover .play-arrow { color: var(--color-primary); }

/* ===== Game Icons (SVG) ===== */
.game-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.game-icon-svg {
  width: 36px;
  height: 36px;
}

/* Trivia: spinning dashed ring */
.icon-ring {
  animation: iconRingSpin 12s linear infinite;
  transform-origin: center;
}

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

/* Battleship: crosshair pulse on hover */
.game-card[data-game="battleship"]:hover .crosshair-pulse {
  animation: crosshairPulse 1.5s ease-in-out infinite;
}

@keyframes crosshairPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.game-info {
  flex: 1;
}

.game-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.game-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.game-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  padding: 3px 10px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-color);
}

.meta-tag.flavor {
  color: var(--color-accent);
  border-color: rgba(233, 69, 96, 0.3);
  background: rgba(233, 69, 96, 0.08);
}

.play-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.game-card:hover .play-arrow {
  transform: translateX(4px);
}

/* ===== Online Badge ===== */
.online-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  font-size: 0.65rem;
  color: #10b981;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.online-badge.visible {
  opacity: 1;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== Live Stats Bar ===== */
.live-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.live-stats .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: onlinePulse 2s ease-in-out infinite;
}

.live-stats .live-label {
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  font-size: 0.65rem;
}

/* ===== Champions Callout ===== */
.leaderboard-callout {
  width: 100%;
  max-width: 640px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.leaderboard-callout h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-align: center;
}

.champ-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
  font-size: 0.85rem;
}

.champ-row:last-child {
  border-bottom: none;
}

.champ-game {
  font-weight: 700;
  color: var(--color-primary);
}

.champ-holder {
  color: var(--text-secondary);
  font-style: italic;
  text-align: right;
}

/* ===== Konami Easter Egg ===== */
.konami-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-purple), var(--color-primary));
  text-align: center;
  z-index: 1000;
  animation: konamiSlideDown 0.5s ease;
  cursor: pointer;
}

.konami-banner.active {
  display: block;
}

.konami-banner p {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.konami-banner p:last-child {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 2px;
}

@keyframes konamiSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* CRT scanline overlay */
.konami-active .portal::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  z-index: 999;
  animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Screen flash */
.screen-flash {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 2000;
  animation: flashOut 0.4s ease-out forwards;
  pointer-events: none;
}

@keyframes flashOut {
  from { opacity: 0.6; }
  to { opacity: 0; }
}

/* ===== Confetti ===== */
.confetti {
  position: fixed;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1001;
  animation: confettiBurst 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes confettiBurst {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r, 720deg)) scale(0);
    opacity: 0;
  }
}

/* ===== Footer ===== */
.portal-footer {
  text-align: center;
}

.portal-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.portal-footer .disclaimer {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.5;
  font-style: italic;
}

/* ===== Wide Screens — Grid Card Layout ===== */
@media (min-width: 1100px) {
  .game-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1060px;
  }

  .game-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }

  .game-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .game-icon-svg {
    width: 44px;
    height: 44px;
  }

  .game-meta {
    justify-content: center;
  }

  .play-arrow {
    display: none;
  }

  .online-badge {
    top: 10px;
    right: 10px;
  }

  .marquee-bar,
  .leaderboard-callout,
  .section-label {
    max-width: 1060px;
  }
}

/* ===== Small Screens ===== */
@media (max-width: 640px) {
  .portal {
    padding: 24px 16px;
    gap: 24px;
  }

  .portal-header h1 {
    font-size: 2rem;
  }

  .game-card {
    padding: 16px;
    gap: 14px;
  }

  .game-icon {
    width: 44px;
    height: 44px;
  }

  .game-icon-svg {
    width: 28px;
    height: 28px;
  }

  .play-arrow {
    display: none;
  }

  .champ-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .champ-holder {
    text-align: left;
    font-size: 0.8rem;
  }
}
