/* ==================== Shared Light Theme ==================== */
:root {
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-dim: rgba(13, 148, 136, 0.08);
  
  --bg: #f8f7f4;
  --bg-surface: #f0efeb;
  --bg-card: #ffffff;
  
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-muted: #9a9a9a;
  
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-ambient: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.1);
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== Navigation ==================== */
.game-nav {
  width: 100%;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 250ms var(--ease-out);
  text-decoration: none;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ==================== Double Border Card ==================== */
.game-card-shell {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3px;
  transition: all 400ms var(--ease-out);
  box-shadow: var(--shadow-ambient);
}

.game-card-core {
  background: var(--bg-card);
  border-radius: calc(var(--radius-xl) - 3px);
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ==================== Original Game Styles ==================== */
:root {
  --primary-blue: #4A90E2;
  --primary-dark: #2C3E50;
  --accent-yellow: #F39C12;
  --accent-green: #27AE60;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Pacifico', cursive, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -300px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  filter: blur(140px);
  z-index: -1;
}

.game-container {
  width: 100%;
  max-width: 700px;
  animation: fadeIn 0.7s var(--ease-out);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.game-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.game-title {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: 'Pacifico', cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: bounce 2s ease-in-out infinite;
}

.game-title .icon {
  font-size: 3.5rem;
  display: inline-block;
  animation: fly 3s ease-in-out infinite;
}

.game-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-weight: 500;
}

.game-main {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

canvas {
  display: block;
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: url('http://s2js.com/img/etc/flappyback.png') !important;
  background-size: cover !important;
  transition: all 250ms var(--ease-out);
  cursor: pointer;
}

canvas:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border-color: var(--accent);
}

canvas:active {
  transform: translateY(-2px);
}

.game-footer {
  text-align: center;
}

.game-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ambient);
  transition: all 300ms var(--ease-out);
}

.info-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  font-size: 1.5rem;
}

.info-text {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.game-features {
  margin-top: 2rem;
  text-align: center;
}

.features-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  font-weight: 700;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.feature-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: all 300ms var(--ease-out);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

.feature-tag:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fly {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-5deg);
  }
  75% {
    transform: translateY(8px) rotate(5deg);
  }
}

@media (max-width: 768px) {
  body {
    padding: 0.75rem;
  }
  
  .game-title {
    font-size: 2.5rem;
  }
  
  .game-title .icon {
    font-size: 3rem;
  }
  
  .game-subtitle {
    font-size: 1rem;
  }
  
  canvas {
    max-width: 100%;
    height: auto;
  }
  
  .game-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .info-item {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }
  
  .game-title {
    font-size: 2rem;
  }
  
  .game-title .icon {
    font-size: 2.5rem;
  }
  
  .game-subtitle {
    font-size: 0.9rem;
  }
  
  .info-text {
    font-size: 0.85rem;
  }
}
