/* ==========================================================
   PREUS Official Homepage Stylesheet
   Option 2: Vivid Royal Ocean Blue Theme with Subtle Pixel Borders
========================================================== */

:root {
  --bg-dark: #1e3a8a;           /* Vivid Royal Ocean Blue */
  --bg-section: #172554;        /* Deep Royal Navy Section */
  --bg-card: #1d4ed8;           /* Bright Rich Blue Card */
  --bg-card-hover: #2563eb;     /* Vivid Light Blue Hover */
  --bg-nav: rgba(30, 58, 138, 0.92);
  
  --primary: #ff4757;           /* PREUS Core Red (Striking contrast on blue) */
  --primary-hover: #ff6b81;
  --accent-cyan: #38bdf8;        /* Sky Neon Cyan */
  --accent-purple: #c084fc;
  --accent-yellow: #fde047;
  
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --border-light: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(56, 189, 248, 0.4);
  --border-pixel: rgba(255, 255, 255, 0.28);

  --font-main: 'Rajdhani', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-display: 'Rajdhani', 'Pretendard', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ================= Navbar ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.08);
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 174, 239, 0.45));
  transition: transform 0.3s ease;
}

.logo-text {
  display: inline-block;
  line-height: 1;
}

.logo-e {
  color: #00AEEF;
  text-shadow: 0 0 12px rgba(0, 174, 239, 0.65);
}

.logo-accent {
  color: #00AEEF;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: #ffffff;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.lang-switch .lang-btn {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 0 3px;
}

.lang-switch .lang-btn:hover {
  color: #ffffff;
}

.lang-switch .lang-btn.active {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.7);
}

.lang-switch .lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
  user-select: none;
}

.btn-playstore-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.5rem 1.1rem;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  color: #fff;
}

.btn-playstore-sm:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.35);
}

/* ================= Buttons ================= */
.btn {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b81 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 71, 87, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 71, 87, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-white-store {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.btn-white-store .icon-gplay {
  color: #059669;
}

.btn-white-store .icon-apple {
  color: #000000;
}

.btn-white-store:hover {
  background: #f8fafc;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

/* ================= Hero Section ================= */
.hero-section {
  position: relative;
  min-height: 90vh;
  padding-top: 130px;
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-section);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 71, 87, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(30, 58, 138, 0.75) 60%, rgba(23, 37, 84, 0.88) 100%),
    url('images/top-title.jpg') center center / cover no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 71, 87, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 71, 87, 0.3);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.4rem;
  letter-spacing: 0.5px;
}

.highlight-text {
  background: linear-gradient(90deg, #ff4757, #ffa502, #00d2d3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-light);
}

/* ================= Spotlight Section ================= */
.spotlight-section {
  padding: 5rem 0;
  background: var(--bg-section);
}

.spotlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.75) 0%, rgba(29, 78, 216, 0.85) 100%);
  border: 2px solid var(--border-light);
  border-radius: 4px;
  /* 은은한 픽셀 노치 감성 */
  clip-path: polygon(
    0 8px, 8px 8px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
  );
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.spotlight-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.game-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.game-tag.survival {
  background: rgba(255, 71, 87, 0.15);
  color: #ff6b81;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.spotlight-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
}

.spotlight-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.spotlight-features {
  list-style: none;
  margin-bottom: 2rem;
}

.spotlight-features li {
  margin-bottom: 0.6rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spotlight-features i {
  color: var(--primary);
}

/* ================= Spotlight Visual Slider ================= */
.visual-slider-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 340px;
  min-height: 220px;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 71, 87, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #11141c;
  overflow: hidden;
}

.slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.6s ease;
  transform: scale(1.02);
  pointer-events: none;
}

.slide-item.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-slider-container .art-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 71, 87, 0.4);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff6b81;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 10;
}

/* Slider Nav Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(11, 14, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.25s ease;
}

.visual-slider-container:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 0.8rem; }
.next-btn { right: 0.8rem; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--primary);
  width: 22px;
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
}

/* ================= Games Section ================= */
.games-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background-color: var(--bg-section);
}

.games-bg-overlay {
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 71, 87, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(23, 37, 84, 0.82) 0%, rgba(30, 58, 138, 0.78) 50%, rgba(23, 37, 84, 0.88) 100%),
    url('images/drillking_title.png') center center / cover no-repeat;
  z-index: 1;
}

.games-section .container {
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-sub {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.filter-btn {
  font-family: var(--font-display);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  /* 은은한 픽셀 노치 모서리 */
  clip-path: polygon(
    0 6px, 6px 6px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
  );
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.25);
}

.game-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.45);
}

.card-thumb {
  height: 165px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #19202c;
  overflow: hidden;
  cursor: pointer;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 19, 26, 0.1) 0%, rgba(15, 19, 26, 0.7) 100%);
  pointer-events: none;
}

.thumb-zombie200 { background: linear-gradient(135deg, #3b171c 0%, #151922 100%); }
.thumb-matgo { background: linear-gradient(135deg, #182c25 0%, #151922 100%); }
.thumb-animalmatgo { background: linear-gradient(135deg, #2b2518 0%, #151922 100%); }
.thumb-ftd { background: linear-gradient(135deg, #182635 0%, #151922 100%); }
.thumb-knight { background: linear-gradient(135deg, #261b36 0%, #151922 100%); }
.thumb-axe { background: linear-gradient(135deg, #381f18 0%, #151922 100%); }
.thumb-dalgona { background: linear-gradient(135deg, #332d18 0%, #151922 100%); }
.thumb-crazystop { background: linear-gradient(135deg, #183333 0%, #151922 100%); }

.card-bg-icon {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
}

.genre-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.genre-badge.survival { background: #ff4757; color: #fff; }
.genre-badge.board { background: #2ed573; color: #111; }
.genre-badge.puzzle { background: #1e90ff; color: #fff; }
.genre-badge.casual { background: #ffa502; color: #111; }

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* Game Card Hashtag Badges */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
  align-content: flex-start;
}

.card-tags .tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.45);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 0.9rem;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
}

.store-links {
  display: flex;
  gap: 0.45rem;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap; /* 꺾이지 않고 가로 1열 유지 */
}

.store-btn {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 0.4rem 0.65rem;
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #0f172a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.store-btn i {
  font-size: 0.95rem;
}

.store-btn.gplay i {
  color: #059669; /* Google Play Emerald Green Icon */
}

.store-btn.appstore i {
  color: #000000; /* Apple Black Icon */
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  color: #000000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.store-btn.gplay:hover {
  border-color: #10b981;
}

.store-btn.appstore:hover {
  border-color: #000000;
}

.card-rating {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffa502;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link:hover {
  color: var(--primary-hover);
  transform: translateX(3px);
}

.view-all-box {
  text-align: center;
  margin-top: 1rem;
}

/* ================= About Section ================= */
.about-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-lead {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.value-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 71, 87, 0.12);
  color: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.value-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.value-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  clip-path: polygon(
    0 6px, 6px 6px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)
  );
  padding: 2.2rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

.info-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.info-label {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-val {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.social-channels {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  flex: 1;
  text-align: center;
  padding: 0.7rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.social-btn.facebook {
  background: #1877f2;
  color: #fff;
}

.social-btn.facebook:hover {
  background: #166fe5;
}

.social-btn.playstore {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-light);
}

.social-btn.playstore:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ================= Contact Section ================= */
.contact-section {
  padding: 5rem 0;
  background: var(--bg-section);
}

.contact-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  clip-path: polygon(
    0 8px, 8px 8px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)
  );
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.contact-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.contact-header p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.contact-method:hover {
  border-color: var(--primary);
  background: rgba(255, 71, 87, 0.05);
  transform: translateY(-2px);
}

.method-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 71, 87, 0.15);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.method-icon.fb {
  background: rgba(24, 119, 242, 0.15);
  color: #1877f2;
}

.method-text {
  text-align: left;
}

.method-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.method-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

/* ================= Footer ================= */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-dark);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.footer-logo .logo-mark {
  width: 28px;
  height: 28px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer-right a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-right a:hover {
  color: #fff;
}

/* ================= Responsive (Tablet, Mobile & Various Devices) ================= */

/* Tablet & Smaller Laptops (Max 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .spotlight-card {
    padding: 2.2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.4rem;
  }
}

/* Tablet Portrait & Large Phones (Max 768px) */
@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }
  .nav-right {
    gap: 0;
  }
  .nav-links {
    display: none; /* Mobile navigation simplified */
  }
  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.35;
  }
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }
  .hero-stats {
    gap: 1.2rem;
    padding-top: 1.5rem;
  }
  .stat-num {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }

  /* Filter buttons horizontal scroll on touch */
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.4rem 0.2rem 0.8rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    flex-shrink: 0;
  }

  /* Games grid 2 columns on tablet portrait */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .card-body {
    padding: 1.1rem;
  }
  .card-title {
    font-size: 1.05rem;
  }
  .card-desc {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Spotlight Slider mobile arrow buttons always visible */
  .slider-btn {
    opacity: 0.85;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .spotlight-title {
    font-size: 1.8rem;
  }
  .spotlight-card {
    padding: 1.8rem 1.4rem;
  }
  .spotlight-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }

  .contact-details {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-method {
    justify-content: center;
  }
}

/* Small Mobile Phones (Max 480px) */
@media (max-width: 480px) {
  .container {
    width: 92%;
  }
  .hero-title {
    font-size: 1.7rem;
    line-height: 1.35;
  }
  .badge-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
  }
  .hero-btns {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .btn-playstore-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .stat-divider {
    display: none;
  }

  /* 1 Column Card on small phones */
  .games-grid {
    grid-template-columns: 1fr;
  }
  .card-thumb {
    height: 150px;
  }
  .section-title {
    font-size: 1.8rem;
  }
  
  .info-row {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
  }
  .info-val {
    text-align: left;
  }
  .social-channels {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ================= Flying Easter Egg Hero ================= */
.flying-hero {
  position: fixed;
  z-index: 9999;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
  pointer-events: auto;
}

.flying-hero.hidden {
  display: none !important;
}

.flying-hero:hover {
  transform: scale(1.18) !important;
}

.hero-bubble {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.flying-hero:hover .hero-bubble {
  opacity: 1;
}

.hero-svg {
  display: block;
  animation: capeWave 0.6s infinite alternate ease-in-out;
}

@keyframes capeWave {
  0% { transform: translateY(0px) rotate(18deg); }
  100% { transform: translateY(-4px) rotate(24deg); }
}

/* 왼쪽 아래에서 오른쪽 위로 가로질러 날아가는 애니메이션 */
.flying-hero.fly-across {
  display: block !important;
  animation: heroFlightPath 10s linear forwards;
}

@keyframes heroFlightPath {
  0% {
    left: -80px;
    top: 75vh;
    opacity: 0;
    transform: rotate(15deg);
  }
  8% {
    opacity: 1;
  }
  50% {
    left: 45vw;
    top: 35vh;
    opacity: 1;
    transform: rotate(20deg);
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 105vw;
    top: 10vh;
    opacity: 0;
    transform: rotate(15deg);
  }
}
