@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=Noto+Sans+KR:wght@300;400;700&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --surface: #fafafa;
  --border: rgba(0,0,0,0.08);
  --text: #1a1a1a;
  --muted: #888888;
  --accent: #e03a2f;
  --accent-light: #f5e8e7;
  --accent-dark: #b52d24;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter','Noto Sans KR',sans-serif; overflow-x: hidden; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 28px; width: auto; }
.nav-logo-text { font-size: 14px; font-weight: 900; color: var(--text); letter-spacing: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-btn { background: none; border: none; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 1px; padding: 8px 18px; cursor: pointer; transition: color .15s; text-decoration: none; font-family: inherit; }
.nav-btn:hover { color: var(--text); }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; background: #fff; border: 1px solid var(--border); min-width: 220px; padding: 6px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.nav-dropdown.open .dropdown-menu { display: block; }
.drop-item { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: all .15s; }
.drop-item:hover { color: var(--text); background: var(--bg2); }
.drop-tag { font-size: 9px; font-weight: 700; letter-spacing: 1px; padding: 2px 6px; }
.asc { background: rgba(14,165,233,0.1); color: #0ea5e9; }
.dev { background: rgba(0,0,0,0.05); color: var(--muted); }
.arr { font-size: 10px; }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: flex-end; overflow: hidden; background: #f5f5f7; }
.hero-bg-img { position: absolute; inset: 0; background: #f0f0f2 center/cover no-repeat; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(245,245,247,0.1) 0%, rgba(245,245,247,0.4) 60%, rgba(245,245,247,0.97) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 80px 80px; max-width: 900px; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 5px; color: var(--accent); margin-bottom: 18px; text-transform: uppercase; }
.hero-title { font-size: clamp(48px, 7vw, 88px); font-weight: 900; line-height: 1.0; letter-spacing: -3px; margin-bottom: 22px; color: var(--text); }
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.75; max-width: 560px; font-weight: 300; margin-bottom: 36px; }
.hero-cta { display: inline-block; padding: 14px 36px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-decoration: none; transition: background .2s; }
.hero-cta:hover { background: var(--accent-dark); }
.hero-scroll { position: absolute; bottom: 30px; right: 48px; z-index: 2; font-size: 10px; letter-spacing: 4px; color: var(--muted); writing-mode: vertical-rl; animation: bob 2.5s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* GAMES */
.games-section { padding: 100px 0 80px; background: var(--bg); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 5px; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; }
.section-title { font-size: clamp(26px, 3.5vw, 38px); font-weight: 900; letter-spacing: -1px; color: var(--text); }
.filter-row { display: flex; gap: 6px; align-items: center; }
.filter-btn { padding: 7px 16px; font-size: 12px; font-weight: 600; letter-spacing: 1px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; font-family: inherit; transition: all .15s; }
.filter-btn:hover { color: var(--text); border-color: #bbb; }
.filter-btn.on { background: var(--text); color: #fff; border-color: var(--text); }

/* 게임 그리드 */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.game-card { position: relative; cursor: pointer; text-decoration: none; display: block; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.game-card.hidden { display: none; }
.card-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--bg2); }
.card-thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.game-card:hover .card-thumb-img { transform: scale(1.04); }
.card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: 3px; color: var(--muted); }
.card-status-badge { position: absolute; top: 12px; left: 12px; font-size: 9px; font-weight: 700; letter-spacing: 2px; padding: 3px 8px; }
.badge-beta { background: var(--accent); color: #fff; }
.badge-dev { background: rgba(0,0,0,0.08); color: var(--muted); }
.card-info { padding: 16px 18px 20px; }
.card-genre-tag { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.card-name { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; color: var(--text); }
.card-desc-short { font-size: 13px; color: var(--muted); line-height: 1.6; }
.card-arrow { position: absolute; bottom: 18px; right: 18px; font-size: 16px; color: var(--muted); transition: transform .2s, color .2s; }
.game-card:hover .card-arrow { transform: translateX(4px); color: var(--accent); }

/* ABOUT */
.about-section { padding: 120px 0; background: var(--bg2); }
.about-inner { max-width: 1200px; margin: 0 auto; padding: 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text { font-size: 16px; color: var(--muted); line-height: 1.9; font-weight: 300; }
.about-stats { display: flex; flex-direction: column; gap: 32px; }
.stat { border-left: 3px solid var(--accent); padding-left: 24px; }
.stat-num { font-size: 44px; font-weight: 900; letter-spacing: -2px; line-height: 1; margin-bottom: 4px; color: var(--text); }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 36px 48px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; background: var(--bg); }
.footer-logo { font-size: 13px; font-weight: 900; letter-spacing: 4px; color: var(--muted); }
.footer-copy { font-size: 12px; color: var(--muted); }

/* MOBILE */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .hero-content { padding: 0 24px 60px; }
  .hero-scroll { display: none; }
  .section-inner { padding: 0 20px; }
  .games-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
  .footer { padding: 24px 20px; flex-direction: column; text-align: center; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE OPTIMIZATION ── */
@media (max-width: 768px) {
  /* NAV */
  .nav { padding: 0 16px; height: 56px; }
  .nav-logo-text { font-size: 12px; letter-spacing: 2px; }
  .dropdown-menu { right: -8px; min-width: 190px; }

  /* HERO */
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero-content { padding: 0 20px 60px; }
  .hero-title { font-size: clamp(36px, 11vw, 56px); letter-spacing: -2px; }
  .hero-sub { font-size: 14px; margin-bottom: 28px; }
  .hero-cta { padding: 12px 28px; font-size: 13px; }
  .hero-scroll { display: none; }

  /* GAMES SECTION */
  .games-section { padding: 60px 0 50px; }
  .section-inner { padding: 0 16px; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .games-grid { grid-template-columns: 1fr; gap: 14px; }
  .card-name { font-size: 16px; }
  .filter-row { flex-wrap: wrap; gap: 6px; }

  /* ABOUT */
  .about-section { padding: 60px 0; }
  .about-inner { padding: 0 20px; grid-template-columns: 1fr; gap: 36px; }
  .about-stats { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .stat { border-left: none; border-top: 3px solid var(--accent); padding-left: 0; padding-top: 12px; flex: 1; min-width: 80px; }
  .stat-num { font-size: 32px; }

  /* PROJECTS MARQUEE */
  #projects { padding: 60px 0 40px; }
  #marquee-container button { width: 36px; height: 36px; font-size: 16px; }

  /* FOOTER */
  .footer { padding: 20px 16px; flex-direction: column; text-align: center; gap: 8px; }
}

/* 게임 상세 페이지 모바일 */
@media (max-width: 768px) {
  .hero-content { padding: 80px 20px 60px !important; }
  .game-detail { padding: 50px 20px !important; }
  .detail-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .screenshots { padding: 50px 20px !important; }
  .shot-grid { grid-template-columns: 1fr !important; }
  .game-title { font-size: clamp(40px, 12vw, 72px) !important; }
  .game-tagline { font-size: 15px !important; }
  .cta-row { flex-direction: column; }
  .btn-main, .btn-sub { width: 100%; text-align: center; padding: 13px 20px; }
}

/* 어센션 신청서 모바일 */
@media (max-width: 600px) {
  .page-hero { padding: 90px 16px 40px; }
  .gate-wrap { padding: 0 16px 32px; }
  .form-wrap { padding: 0 16px 48px; }
  .view-wrap { padding: 0 16px 48px; }
  .admin-wrap { padding: 70px 16px 48px; }
  .row { flex-direction: column; }
  .info-grid { flex-direction: column; }
  .info-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .info-cell:last-child { border-bottom: none; }
  .gender-row .gbtn { font-size: 12px; }
  table { font-size: 12px; }
  th, td { padding: 8px 8px; }
}
