/* Base reset & variables */
:root {
  --bg: #0f172a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --primary: #1e40af;
  --primary-contrast: #ffffff;
  --secondary: #3b82f6;
  --border: #1e293b;
  --surface: #1e293b;
  --surface-strong: #334155;
  --accent: #60a5fa;
  --radius: 12px;
  --shadow: 0 4px 6px rgba(0,0,0,.3), 0 1px 3px rgba(0,0,0,.2);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 15px; /* 폴백 — config.php 'font_size' 값이 우선 적용됨 */
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', 'Noto Sans KR', system-ui, -apple-system, Segoe UI, Roboto, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section.alt { background: var(--surface); }
.section-header { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.text-muted { color: var(--muted); }
.h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.2; margin: 0 0 12px; }
.h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.25; margin: 0 0 12px; }
.lead { font-size: clamp(1rem, 2.5vw, 1.125rem); color: var(--muted); margin: 0 0 16px; }
.cards .card { height: 100%; }

/* Header */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px 12px; background: var(--surface-strong); }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(15,23,42,.95); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; flex-shrink: 0; }
.brand img { width: auto; height: 36px; }
.brand-name { letter-spacing: .2px; font-size: clamp(0.875rem, 2.5vw, 1rem); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-toggle { display: flex; gap: 4px; }
.lang-btn { padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: all 0.2s ease; }
.lang-btn:hover { color: var(--text); background: var(--surface); }
.lang-btn.active { color: var(--accent); background: var(--surface); }
.site-nav { display: flex; gap: 16px; }
.nav-link { text-decoration: none; color: var(--secondary); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav-link:hover { background: var(--surface-strong); }
.nav-toggle { display: none; color: var(--text); font-size: 14px; }
@media (max-width: 760px) {
  .header-inner { min-height: 48px; }
  .header-actions { order: 3; }
  .site-nav {
    display: none;
    position: absolute;
    top: 48px;
    right: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    flex-direction: column;
    order: 4;
    z-index: 200;
  }
  .site-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }
  .language-toggle { gap: 2px; }
  .lang-btn { padding: 4px 8px; font-size: 12px; }
}

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-inner { text-align: center; }
.hero-actions { display: inline-flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.thumb { width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { background: linear-gradient(135deg, var(--surface), var(--surface-strong)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; cursor: pointer; transition: .15s ease; font-weight: 500; font-size: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: var(--secondary); color: var(--primary-contrast); border-color: var(--secondary); }
.btn-secondary:hover { filter: brightness(1.1); }
.btn-accent { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
.btn-accent:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--secondary); }
.btn-ghost:hover { background: var(--surface); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  padding: 32px 0;
}
.footer-title {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li {
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
  word-break: break-all;
}
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.brand-row img { width: 24px; height: 24px; flex-shrink: 0; }
.footer-bottom {
  padding: 16px 0 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0;
    text-align: center;
  }
  .brand-row { justify-content: center; }
  .footer-links li { font-size: 0.85rem; }
  .footer-bottom { text-align: center; padding: 12px 0 20px; }
}
@media (max-width: 480px) {
  .footer-grid { padding: 24px 0; gap: 24px; }
}

/* Forms */
.search { display: flex; align-items: center; gap: 8px; }
input[type="search"], input[type="text"], input[type="url"], textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 16px; }
label { display: grid; gap: 6px; margin-bottom: 12px; }
.form { display: grid; gap: 12px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ==========================================
   Hero Slider (index.php)
   ========================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  overflow: hidden;
}
.slider-container { position: relative; width: 100%; height: 100%; }
.slider-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}
.slide-bg.game-bg { background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #4338ca 100%); }
.slide-bg.puzzle-bg { background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #6b21a8 100%); }

/* Individual game backgrounds */
.slide-bg.game-bg-1 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%); }
.slide-bg.game-bg-2 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%); }
.slide-bg.game-bg-3 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%); }
.slide-bg.game-bg-4 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%); }

/* YouTube Background Video */
.youtube-bg-container {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  overflow: hidden;
  z-index: 1;
}
.youtube-bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Cover the container while maintaining 16:9 — use both vw/vh to ensure full coverage */
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: none;
}
.youtube-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}
@media (max-width: 768px) {
  .youtube-bg-overlay { background: rgba(0, 0, 0, 0.5); }
}

/* YouTube Sound Toggle Button */
.youtube-sound-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  color: #fff;
}
.youtube-sound-toggle:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
}
.youtube-sound-toggle:active {
  transform: scale(0.95);
}
.youtube-sound-toggle .sound-icon {
  font-size: 20px;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Ensure content appears above video */
.slide-content,
.games-slide-content,
.games-single-content {
  position: relative;
  z-index: 10;
}

.slide-content {
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* First slide - Brand presentation */
.slide-logo { text-align: center; }
.slide-logo img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  margin: 0 auto 24px;
  max-width: var(--logo-main-size, 280px);
  width: 100%;
  height: auto;
}
.brand-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.3);
  word-break: keep-all;
}
.brand-tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #e2e8f0;
  margin: 0 0 40px;
  opacity: 0.9;
}
.slide-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Game showcase slides */
.game-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.game-image { display: flex; justify-content: center; }
.game-img {
  max-width: 100%;
  width: 300px;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 0 0 6px rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.game-img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.15),
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.3);
}
.game-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.game-placeholder h2 { font-size: clamp(1.25rem, 3vw, 2rem); color: #ffffff; margin: 0 0 8px; }
.game-placeholder p { color: #cbd5e1; font-size: 1.1rem; margin: 0; }

/* Game Link Buttons */
.game-actions { margin-top: 24px; }
.game-links { display: flex; gap: 10px; flex-wrap: wrap; }
.game-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.game-link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}
.game-link-btn .platform-icon { font-size: 16px; }
.game-link-btn.ios { background: linear-gradient(135deg, rgba(0, 122, 255, 0.8), rgba(0, 122, 255, 0.6)); }
.game-link-btn.android { background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(76, 175, 80, 0.6)); }
.game-link-btn.steam { background: linear-gradient(135deg, rgba(102, 192, 244, 0.8), rgba(102, 192, 244, 0.6)); }
.game-link-btn.website { background: linear-gradient(135deg, rgba(156, 39, 176, 0.8), rgba(156, 39, 176, 0.6)); }

.game-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  word-break: keep-all;
}
.game-description {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0 0 24px;
  opacity: 0.9;
}

/* Slider Navigation */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 20;
  pointer-events: none;
}
.slider-btn {
  pointer-events: auto;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.slider-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.dot.active { background: #ffffff; transform: scale(1.3); }
.dot:hover { background: rgba(255,255,255,0.7); }

/* Hero Slider responsive */
@media (max-width: 1024px) {
  .game-showcase { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .game-links { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-slider { min-height: 400px; height: 100vh; height: 100dvh; }
  .slide-content { padding: 60px 16px 80px; }

  .youtube-bg-overlay { background: rgba(0, 0, 0, 0.5); }

  .youtube-sound-toggle {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }
  .youtube-sound-toggle .sound-icon { font-size: 16px; }

  .slide-logo img { max-width: min(75vw, var(--logo-main-size, 280px)); }
  .slide-actions { flex-direction: column; align-items: center; }

  .game-img { width: 200px; }
  .game-placeholder { max-width: 240px; }
  .slider-btn { width: 40px; height: 40px; font-size: 18px; }
  .slider-dots { bottom: 16px; gap: 8px; }
  .dot { width: 10px; height: 10px; }
}

@media (max-width: 480px) {
  .slide-content { padding: 48px 12px 72px; }
  .slide-logo img { max-width: min(70vw, var(--logo-main-size, 280px)); }
  .game-img { width: 160px; }
  .game-links { gap: 8px; }
  .game-link-btn { padding: 8px 12px; font-size: 13px; }
}

/* ==========================================
   Games Page Slider
   ========================================== */
.games-hero-slider {
  position: relative;
  height: 80vh;
  height: 80dvh;
  min-height: 450px;
  overflow: hidden;
}
.games-slider-container { position: relative; width: 100%; height: 100%; }
.games-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.games-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.games-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.games-slide-bg.game-bg-1 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%); }
.games-slide-bg.game-bg-2 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%); }
.games-slide-bg.game-bg-3 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%); }
.games-slide-bg.game-bg-4 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%); }

.games-slide-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.games-game-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.games-game-image { display: flex; justify-content: center; }
.games-game-img {
  max-width: 100%;
  width: 320px;
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.1),
    0 0 0 6px rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.games-game-img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.15),
    0 0 0 6px rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.3);
}
.games-game-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.games-game-placeholder h2 { font-size: clamp(1.25rem, 3vw, 2.2rem); color: #ffffff; margin: 0 0 8px; font-weight: 600; }
.games-game-placeholder p { color: rgba(255,255,255,0.8); font-size: 1.2rem; margin: 0; }

/* Games Page Link Buttons */
.games-game-actions { margin-top: 24px; }
.games-game-links { display: flex; gap: 10px; flex-wrap: wrap; }
.games-game-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.games-game-link-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}
.games-game-link-btn .platform-icon { font-size: 16px; }
.games-game-link-btn.ios { background: linear-gradient(135deg, rgba(0, 122, 255, 0.8), rgba(0, 122, 255, 0.6)); }
.games-game-link-btn.android { background: linear-gradient(135deg, rgba(76, 175, 80, 0.8), rgba(76, 175, 80, 0.6)); }
.games-game-link-btn.steam { background: linear-gradient(135deg, rgba(102, 192, 244, 0.8), rgba(102, 192, 244, 0.6)); }
.games-game-link-btn.website { background: linear-gradient(135deg, rgba(156, 39, 176, 0.8), rgba(156, 39, 176, 0.6)); }

.games-game-info { }
.games-game-meta { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.games-genre {
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.games-platform {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.games-game-title {
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  line-height: 1.2;
  word-break: keep-all;
}
.games-game-description {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin: 0 0 24px;
}
.games-game-status { }
.games-status-badge {
  display: inline-block;
  background: rgba(255,255,255,0.9);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Games Navigation */
.games-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 20;
  pointer-events: none;
}
.games-slider-btn {
  pointer-events: auto;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.games-slider-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

/* Games Dots */
.games-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.games-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.games-dot.active { background: #ffffff; transform: scale(1.3); }
.games-dot:hover { background: rgba(255,255,255,0.7); }

/* Games Page Single Game */
.games-hero-single {
  position: relative;
  height: 80vh;
  height: 80dvh;
  min-height: 450px;
  overflow: hidden;
}
.games-single-container { position: relative; width: 100%; height: 100%; }
.games-single-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.games-single-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.games-single-bg.game-bg-1 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%); }
.games-single-bg.game-bg-2 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%); }
.games-single-bg.game-bg-3 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%); }

/* Games Page Empty State */
.games-hero-empty {
  position: relative;
  height: 50vh;
  height: 50dvh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.games-empty-content { text-align: center; padding: 0 16px; }
.games-empty-content h1 { margin-bottom: 16px; }
.games-empty-content p { color: var(--muted); }

/* Games Slider responsive */
@media (max-width: 1024px) {
  .games-game-showcase { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .games-game-info { padding-left: 0; }
  .games-game-links { justify-content: center; }
  .games-game-meta { justify-content: center; }

  /* 세로 배치 시 높이를 콘텐츠에 맞게 확장 */
  .games-hero-slider, .games-hero-single {
    height: auto;
    min-height: 0;
  }
  .games-slide {
    min-height: auto;
    padding: 80px 0 60px;
  }
  .games-slide-bg,
  .games-single-bg {
    /* 배경이 콘텐츠 전체를 덮도록 */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
  }
}

@media (max-width: 768px) {
  .games-slide { padding: 70px 0 60px; }
  .games-slide-content { padding: 0 16px; }
  .games-single-content { padding: 70px 16px 60px; }
  .games-game-img { width: 200px; }
  .games-game-placeholder { max-width: 240px; }
  .games-slider-btn { width: 40px; height: 40px; font-size: 18px; }
  .games-slider-dots { bottom: 16px; }
}

@media (max-width: 480px) {
  .games-slide { padding: 60px 0 50px; }
  .games-slide-content, .games-single-content { padding: 0 12px; }
  .games-single-content { padding-top: 60px; padding-bottom: 50px; }
  .games-game-img { width: 160px; }
  .games-game-link-btn { padding: 8px 12px; font-size: 13px; }
}

/* Games intro section */
.games-intro { margin: 40px 0 0; }

/* Games List Section */
.games-list-section { padding: 60px 0; background: var(--bg); }

/* Game Icon Grid */
.games-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-icon-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-icon-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(96, 165, 250, 0.25);
  background: linear-gradient(135deg, var(--surface), var(--surface-strong));
}

.game-icon-card.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface), var(--surface-strong));
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.35);
}

.game-icon-image {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-icon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-icon-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface), var(--surface-strong));
  color: var(--muted);
  font-size: 48px;
  font-weight: 700;
}

.game-icon-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.game-icon-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.3;
}

.game-icon-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-icon-genre,
.game-icon-platform {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.game-icon-genre {
  background: rgba(96, 165, 250, 0.15);
  color: var(--accent);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.game-icon-platform {
  background: var(--border);
  color: var(--muted);
}

.game-icon-status {
  font-size: 0.9rem;
  color: var(--text);
  padding: 6px 14px;
  background: var(--bg);
  border-radius: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
  display: inline-block;
}

.game-icon-card.active .game-icon-title { color: var(--accent); }
.game-icon-card.active .game-icon-status { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.game-icon-card.active .game-icon-genre { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* Game Icon Grid responsive */
@media (max-width: 1024px) {
  .games-icon-grid { gap: 20px; }
  .game-icon-image { width: 100px; height: 100px; }
}

@media (max-width: 768px) {
  .games-icon-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .game-icon-card { padding: 16px; }
  .game-icon-image { width: 90px; height: 90px; }
  .game-icon-title { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .games-list-section { padding: 32px 0; }
  .games-icon-grid { grid-template-columns: 1fr; gap: 12px; }

  .game-icon-card {
    flex-direction: row;
    text-align: left;
    padding: 16px;
    gap: 16px;
  }

  .game-icon-image { width: 80px; height: 80px; border-radius: 16px; }
  .game-icon-info { align-items: flex-start; }
  .game-icon-title { font-size: 1rem; }
  .game-icon-meta { justify-content: flex-start; }
}

/* ==========================================
   About Page
   ========================================== */
.about-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(253, 184, 19, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.about-hero-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
}

/* Core Values */
.about-values {
  padding: 80px 0;
  background: var(--bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 40px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(96, 165, 250, 0.2);
}

.value-card:hover::before { opacity: 1; }

.value-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg), var(--surface-strong));
  border-radius: 50%;
  border: 3px solid var(--border);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3);
}

.value-icon svg { width: 60px; height: 60px; }

.value-title {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.value-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Story Section */
.about-story {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.story-content {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 16px;
}

.story-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.9;
  color: rgba(241, 245, 249, 0.9);
  margin: 0 0 24px;
}

.story-text:last-child { margin-bottom: 0; }

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.15);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

/* Vision Section */
.about-vision {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}

.about-vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(253, 184, 19, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.vision-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.vision-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vision-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}

/* About responsive */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .about-hero { padding: 48px 0; }
  .about-values, .about-story, .about-vision { padding: 48px 0; }

  .value-card { padding: 28px 20px; }
  .value-icon { width: 80px; height: 80px; margin-bottom: 16px; }
  .value-icon svg { width: 48px; height: 48px; }

  .about-stats { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================
   Index Quick Links Section
   ========================================== */
.index-quick-links {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
  position: relative;
}

.quick-links-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin: 0 0 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-link-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(96, 165, 250, 0.2);
}

.quick-link-card:hover::before { opacity: 1; }

.quick-link-card.about-card:hover { border-color: #60a5fa; }
.quick-link-card.games-card:hover { border-color: #3b82f6; }
.quick-link-card.contact-card { cursor: default; }
.quick-link-card.contact-card:hover { border-color: #fdb813; }

.quick-link-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg), var(--surface-strong));
  border-radius: 50%;
  margin-bottom: 24px;
  border: 3px solid var(--border);
  color: var(--accent);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.quick-link-icon svg { width: 48px; height: 48px; }

.quick-link-card:hover .quick-link-icon {
  transform: scale(1.1) rotate(-5deg);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.3);
}

.quick-link-card.games-card .quick-link-icon { color: var(--secondary); }
.quick-link-card.contact-card .quick-link-icon { color: #fdb813; }

.quick-link-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.quick-link-heading {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  transition: color 0.3s ease;
}

.quick-link-card:hover .quick-link-heading { color: var(--accent); }

.quick-link-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.quick-link-arrow {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-arrow { transform: translateX(8px); }

.contact-email {
  display: inline-block;
  font-size: 1rem;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 20px;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-weight: 600;
  transition: all 0.3s ease;
  word-break: break-all;
}

.contact-email:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: var(--accent);
}

/* Quick Links responsive */
@media (max-width: 1024px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .index-quick-links { padding: 48px 0; }
  .quick-links-title { margin-bottom: 32px; }
  .quick-link-card { padding: 28px 20px; }
  .quick-link-icon { width: 80px; height: 80px; margin-bottom: 16px; }
  .quick-link-icon svg { width: 40px; height: 40px; }
}

/* ==========================================
   Misc / Legacy
   ========================================== */
.features { align-items: stretch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.stat { display: grid; gap: 4px; text-align: center; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.actions-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta { background: linear-gradient(180deg, var(--surface), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-inner { text-align: center; }

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
}
