/* ========================================
   Solastar Design System v2.0
   Premium Dark Theme with Gold Accent
   ======================================== */

:root {
  /* Core Palette */
  --primary: #f4d125;
  --primary-light: #ffe066;
  --primary-dark: #c4a800;
  --primary-glow: rgba(244, 209, 37, 0.4);

  /* Background */
  --bg-dark: #171410;
  --bg-surface: #1e1b14;
  --bg-card: rgba(30, 27, 20, 0.6);
  --bg-elevated: #2a2618;
  --bg-glass: rgba(30, 27, 20, 0.7);

  /* Border */
  --border-subtle: rgba(244, 209, 37, 0.08);
  --border-default: rgba(244, 209, 37, 0.12);
  --border-hover: rgba(244, 209, 37, 0.3);
  --border-active: rgba(244, 209, 37, 0.5);

  /* Text */
  --text-primary: #f5f0e8;
  --text-secondary: #9a9284;
  --text-muted: #6b6358;
  --text-accent: var(--primary);

  /* Accent Colors */
  --accent-pink: #ec4899;
  --accent-blue: #38bdf8;
  --accent-purple: #a78bfa;
  --accent-green: #4ade80;

  /* Typography */
  --font-display: 'Lexend', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', 'Lexend', sans-serif;

  /* Spacing */
  --nav-height: 72px;
  --nav-height-mobile: 60px;

  /* Effects */
  --blur-md: 16px;
  --blur-lg: 24px;
  --shadow-glow: 0 0 20px rgba(244, 209, 37, 0.3);
  --shadow-glow-hover: 0 0 40px rgba(244, 209, 37, 0.5);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.4);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1.6;
}

input, textarea, button {
  font-family: inherit;
}

input, textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Ambient Background
   ======================================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: ambientFloat 25s ease-in-out infinite alternate;
}

.ambient-orb--primary {
  top: -15%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: var(--primary);
}

.ambient-orb--secondary {
  bottom: -20%;
  right: -15%;
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--accent-purple);
  animation-delay: -10s;
  animation-duration: 30s;
}

.ambient-orb--tertiary {
  top: 40%;
  left: 50%;
  width: 30vw;
  height: 30vw;
  max-width: 400px;
  max-height: 400px;
  background: var(--accent-blue);
  opacity: 0.08;
  animation-delay: -5s;
  animation-duration: 35s;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(10px, 10px) scale(1.02); }
}

/* ========================================
   App Container
   ======================================== */
#app {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   Navigation
   ======================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(23, 20, 16, 0.75);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}

.nav-logo:hover {
  transform: scale(1.03);
}

.nav-logo__icon {
  font-size: 1.8rem;
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-logo__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo__accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links > a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--text-primary);
}

.nav-links > a:hover::after,
.nav-links > a.active::after {
  width: 100%;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-mobile-toggle:hover {
  background: var(--bg-elevated);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  justify-content: flex-end;
}

.mobile-menu__content {
  width: 280px;
  max-width: 80vw;
  background: var(--bg-surface);
  height: 100%;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 1px solid var(--border-subtle);
  animation: slideInRight 0.3s var(--ease-out);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-menu__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-menu__link {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  margin-top: var(--nav-height);
  padding: 3rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero__content {
  text-align: center;
  max-width: 640px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(244, 209, 37, 0.08);
  border: 1px solid rgba(244, 209, 37, 0.15);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s var(--ease-out);
}

.hero__badge .material-symbols-outlined {
  font-size: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s var(--ease-out) 0.1s both;
}

.hero__title--accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 1rem;
  animation: fadeInUp 0.6s var(--ease-out) 0.2s both;
}

.hero__count {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(244, 209, 37, 0.06);
  border: 1px solid rgba(244, 209, 37, 0.12);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  animation: fadeInUp 0.6s var(--ease-out) 0.3s both;
}

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

/* ========================================
   Search
   ======================================== */
.search-section {
  width: 100%;
  max-width: 560px;
  animation: fadeInUp 0.6s var(--ease-out) 0.35s both;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.3rem;
  pointer-events: none;
  transition: color 0.3s;
}

#search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s var(--ease-out);
  outline: none;
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-input:focus {
  border-color: var(--primary);
  background: rgba(30, 27, 20, 0.9);
  box-shadow: 0 0 0 4px rgba(244, 209, 37, 0.1), var(--shadow-glow);
}

#search-input:focus ~ .search-icon,
#search-input:focus + .search-icon {
  color: var(--primary);
}

/* ========================================
   Filter Chips
   ======================================== */
.filters-section {
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.6s var(--ease-out) 0.4s both;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.filter-chip {
  padding: 0.55rem 1.3rem;
  background: rgba(244, 209, 37, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.filter-chip:hover {
  color: var(--text-primary);
  background: rgba(244, 209, 37, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--primary-glow);
}

/* ========================================
   Card Grid
   ======================================== */
main {
  flex: 1;
  padding: 1.5rem 2rem 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}

/* ========================================
   Card
   ======================================== */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: all 0.4s var(--ease-spring);
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover), 0 0 24px rgba(244, 209, 37, 0.08);
}

.card-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.card:hover .card-image {
  transform: scale(1.08);
}

.card-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  opacity: 0.7;
}

.complexity-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.card-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--primary);
}

.model-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.6rem;
  background: rgba(244, 209, 37, 0.06);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.card-subcategory {
  margin-bottom: 0.6rem;
}

.card-subcategory .model-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  background: rgba(244, 209, 37, 0.06);
  border: 1px solid rgba(244, 209, 37, 0.1);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  font-weight: 500;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  color: var(--text-primary);
  transition: color 0.3s;
}

.card:hover .card-title {
  color: #fff;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* ========================================
   Loading Spinner
   ======================================== */
.loading-trigger {
  display: flex;
  justify-content: center;
  padding: 3rem;
  width: 100%;
}

.loader {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(244, 209, 37, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  box-shadow: 0 0 16px rgba(244, 209, 37, 0.15);
  animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Footer
   ======================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(23, 20, 16, 0.5);
  backdrop-filter: blur(8px);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.footer__brand .material-symbols-outlined {
  color: var(--primary);
  opacity: 0.6;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__warning {
  color: var(--text-muted);
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ========================================
   Modal (Contact)
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

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

.modal-content h2 {
  font-family: var(--font-display);
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.contact-form-container {
  display: flex;
  gap: 2.5rem;
}

.form-section {
  flex: 2;
}

.form-row {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 209, 37, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.send-btn {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-primary);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.send-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
}

.contact-info-section {
  flex: 1;
  padding-left: 2rem;
  border-left: 1px solid var(--border-subtle);
}

.contact-info-section h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.contact-email-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-email-link:hover {
  text-decoration: underline;
}

/* ========================================
   Game Interface (play.html)
   ======================================== */
.game-container {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  border: 1px solid var(--border-default);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.screen {
  display: none;
  animation: fadeInUp 0.5s var(--ease-out);
  width: 100%;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screen.active h1 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.screen.active p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 90%;
}

/* Intro Screen */
.intro-thumb {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(244, 209, 37, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 0%;
  transition: width 0.5s var(--ease-out);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--primary-glow);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
}

/* Question */
.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.45;
  word-break: keep-all;
}

.question-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
}

/* Options */
.options-grid {
  display: grid;
  width: 100%;
  gap: 0.8rem;
}

.option-btn {
  width: 100%;
  padding: 1.15rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary) !important;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  font-size: 1rem;
  font-family: var(--font-body);
  text-align: left;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.option-btn:hover {
  background: rgba(244, 209, 37, 0.08);
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--shadow-glow);
}

.option-btn:active {
  transform: translateX(6px) scale(0.98);
}

.option-btn span {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Result Screen */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  width: 100%;
  margin-bottom: 2rem;
}

.result-image {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.result-content {
  padding: 1.5rem 2rem 2rem;
  text-align: left;
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #fff, var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-subtitle {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#result-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Tags */
.tag-pill {
  background: rgba(244, 209, 37, 0.06);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  margin-right: 0.4rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.result-tag-pill {
  background: rgba(244, 209, 37, 0.1);
  color: var(--primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(244, 209, 37, 0.2);
  display: inline-block;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

/* Action Buttons */
.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  width: 100%;
  margin-bottom: 0.75rem;
  border: none;
  transition: all 0.3s var(--ease-out);
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--bg-dark);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-hover);
  transform: translateY(-3px);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  background: rgba(244, 209, 37, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: rgba(244, 209, 37, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s;
}

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

#image-modal .modal-content {
  margin: 0 auto;
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

#image-modal .modal-content img {
  width: auto;
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(244, 209, 37, 0.2);
  object-fit: contain;
}

#image-modal .close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

#image-modal .close-modal:hover {
  background: rgba(244, 209, 37, 0.2);
  color: var(--primary);
}

/* ========================================
   Responsive: Tablet
   ======================================== */
@media (max-width: 900px) {
  .hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
  }
}

/* ========================================
   Responsive: Mobile
   ======================================== */
@media (max-width: 640px) {
  :root {
    --nav-height: var(--nav-height-mobile);
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-content {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 2rem 1.25rem 1rem;
    gap: 1.5rem;
    margin-top: var(--nav-height-mobile);
  }

  .hero__badge {
    font-size: 0.72rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .hero__count {
    font-size: 0.78rem;
  }

  #search-input {
    padding: 0.9rem 1.2rem 0.9rem 3rem;
    font-size: 0.9rem;
  }

  .search-icon {
    font-size: 1.1rem;
    left: 1rem;
  }

  .filter-chip {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
  }

  main {
    padding: 1rem 1rem 2rem;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .card {
    border-radius: var(--radius-md);
  }

  .card-content {
    padding: 0.7rem;
  }

  .card-title {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }

  .card-description {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .card-category {
    font-size: 0.6rem;
  }

  .card-meta {
    margin-bottom: 0.3rem;
  }

  .card-subcategory {
    margin-bottom: 0.4rem;
  }

  .card-subcategory .model-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.5rem;
  }

  .complexity-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  /* Game on mobile */
  .game-container {
    margin: 1rem 0.75rem;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .screen.active h1 {
    font-size: 1.4rem;
  }

  .screen.active p {
    font-size: 0.9rem;
  }

  .question-text {
    font-size: 1.2rem;
  }

  .option-btn {
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
  }

  .result-title {
    font-size: 1.4rem;
  }

  .result-content {
    padding: 1.2rem 1.5rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Contact modal mobile */
  .contact-form-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-info-section {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }

  .modal-content {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    width: 95%;
  }

  .footer__inner {
    padding: 2rem 1.25rem;
  }
}

/* ========================================
   Responsive: Small Mobile (360px)
   ======================================== */
@media (max-width: 380px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .card-content {
    padding: 0.5rem;
  }

  .card-title {
    font-size: 0.78rem;
  }

  .hero__title {
    font-size: 1.8rem;
  }
}

/* ========================================
   Play Page Nav
   ======================================== */
.play-nav__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.play-nav__back:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Test Nav (content_generation pages) */
.test-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 10;
  background: rgba(23, 20, 16, 0.75);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  border-bottom: 1px solid var(--border-subtle);
}

.test-nav .nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-secondary) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.test-nav .nav-logo:hover {
  color: var(--text-primary) !important;
}

/* Tip Box (Result page) */
.tip-box {
  background: rgba(244, 209, 37, 0.06);
  border: 1px solid rgba(244, 209, 37, 0.12);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.tip-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 !important;
  padding: 0;
  line-height: 1.5;
}

.tip-content strong {
  color: var(--primary);
}
