/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-card: #ffffff;
  --line: #ececf0;
  --text: #1a1a1f;
  --text-mute: #6b6b76;
  --text-soft: #9a9aa5;
  --accent: #ff5a5f;
  --accent-soft: #fff0f1;
  --ink: #111418;
  --shadow-sm: 0 2px 10px rgba(20, 20, 30, 0.04);
  --shadow-md: 0 8px 30px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 18px 50px rgba(20, 20, 30, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; }
.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav { display: flex; gap: 8px; }

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  padding: 8px 18px;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav-ko { font-size: 15px; }
.nav-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.7;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.active {
  color: #fff;
  background: var(--ink);
}

/* ============ SECTIONS ============ */
.section { display: none; animation: fadeIn 0.45s ease; }
.section-active { display: block; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

.block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: none; }
#games .block { padding-top: 36px; }

.block-head { margin-bottom: 36px; }
.block-head.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.block-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}
.block-head.center .block-title { justify-content: center; }
.title-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  text-transform: uppercase;
}

.block-sub {
  margin-top: 14px;
  color: var(--text-mute);
  font-size: 16px;
}
.sub-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-soft);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, #ffe4e5 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, #e7f0ff 0%, transparent 60%),
    linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  padding: 72px 32px 80px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo {
  height: 180px;
  width: auto;
  max-width: 90%;
  margin: 0 auto 24px;
  object-fit: contain;
}

.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.hero-title .accent { color: var(--accent); font-weight: 800; }

.hero-title-en {
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--text-soft);
}

/* ============ INTRO CARD ============ */
.intro-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.intro-lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 10px;
}
.intro-lead strong { color: var(--accent); font-weight: 700; }

.intro-lead-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.65;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
  font-style: italic;
}

.intro-body {
  font-size: 15.5px;
  color: var(--text-mute);
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto 12px;
}
.intro-body em {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}
.intro-body strong { color: var(--ink); font-weight: 700; }

/* ============ TIMELINE (centered, alternating) ============ */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 0 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg,
    var(--accent) 0%,
    #ffb6b9 45%,
    #ffe2e3 80%,
    var(--line) 100%);
  transform: translateX(-50%);
  border-radius: 3px;
}

.t-item {
  position: relative;
  width: 50%;
  padding-bottom: 40px;
  box-sizing: border-box;
}
.t-item:last-child { padding-bottom: 0; }

.t-item:nth-child(odd) {
  padding-right: 56px;
  text-align: right;
}

.t-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 56px;
  text-align: left;
}

/* Center dot on the line */
.t-item::before {
  content: '';
  position: absolute;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 6px #fff, 0 6px 16px rgba(255, 90, 95, 0.28);
  z-index: 2;
  transition: transform 0.35s ease;
}
.t-item:nth-child(odd)::before { right: -11px; }
.t-item:nth-child(even)::before { left: -11px; }
.t-item:hover::before { transform: scale(1.18); }

.t-year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.t-content {
  display: inline-block;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.t-item:hover .t-content {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.t-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.45;
}
.t-title-en {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-style: italic;
}

.t-desc {
  font-size: 14.5px;
  color: var(--text-mute);
  margin-top: 6px;
}

.t-thumb {
  margin: 14px 0 0;
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  background: #fff;
}
.t-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.t-thumb.t-thumb-square { max-width: 240px; }
.t-thumb.t-thumb-square img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============ CONTACT / MAP ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.map-wrap img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.info-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 8px 0;
}

.info-item {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
}

.info-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.info-text {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.75;
}
.info-text-en {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.7;
}

.info-mail {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}
.info-mail:hover { color: var(--accent); }

/* ============ GAMES ============ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.game-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f7fa 0%, #eceef3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.game-card:hover .game-thumb img { transform: scale(1.04); }

.game-info {
  padding: 28px 26px 30px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.game-en {
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--text-soft);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.platforms {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pf {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-mute);
  border: 1px solid var(--line);
}

.status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-top: auto;
}

/* ============ FOOTER ============ */
.footer {
  background: #0e1014;
  color: #b3b5bd;
  padding: 50px 32px;
  text-align: center;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-logo {
  height: 44px;
  width: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-text {
  font-size: 13.5px;
  color: #b3b5bd;
  margin-bottom: 6px;
}
.footer-text-en {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #7d808a;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.copy {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #61646c;
  letter-spacing: 1px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero { padding: 60px 24px 70px; }
  .hero-title { font-size: 21px; }
  .hero-logo { height: 130px; }

  .block { padding: 70px 0; }
  .block-title { font-size: 28px; gap: 10px; }
  .title-en { font-size: 13px; letter-spacing: 1px; }
  .hero-title-en { font-size: 13px; }
  .intro-lead-en { font-size: 13px; }
  .t-title-en { font-size: 11.5px; }

  /* Timeline → single column on mobile */
  .timeline::before {
    left: 12px;
    transform: none;
  }
  .t-item,
  .t-item:nth-child(odd),
  .t-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 44px 44px;
    text-align: left;
  }
  .t-item::before,
  .t-item:nth-child(odd)::before,
  .t-item:nth-child(even)::before {
    left: 1px;
    right: auto;
    top: 8px;
    width: 20px;
    height: 20px;
  }
  .t-year { font-size: 18px; }
  .t-content { padding: 20px 22px; border-radius: 14px; }

  .intro-card { padding: 40px 28px; }
  .intro-lead { font-size: 17px; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .map-wrap img { min-height: 240px; }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .header-inner { padding: 0 18px; height: 64px; }
  .brand-logo { height: 32px; }
  .nav-link { padding: 8px 14px; font-size: 14px; }

  .container { padding: 0 20px; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 18px; }
  .hero-logo { height: 110px; }
  .block-title { font-size: 24px; }
  .nav-link { padding: 7px 12px; font-size: 13px; }
}
