:root {
  color-scheme: dark;
  --bg: #070b1a;
  --bg-elevated: rgba(11, 17, 40, 0.94);
  --line: rgba(140, 188, 255, 0.28);
  --text: #f2f6ff;
  --muted: #9fb3cc;
  --accent: #4cc9f0;
  --accent-strong: #80ffdb;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% -20%, #1f3b73 0%, transparent 40%),
    radial-gradient(circle at 80% -30%, #264653 0%, transparent 35%),
    linear-gradient(180deg, #060a17 0%, #070b1a 45%, #050816 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(10px);
}

.site-nav {
  max-width: 1260px;
  margin: 0 auto;
  min-height: 74px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  outline: none;
}

.logo-link img {
  width: auto;
  height: 23px;
  display: block;
}

.logo-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.45);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-item {
  position: relative;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #ecf4ff;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 120ms ease, color 120ms ease;
}

.top-link:hover,
.menu-item:focus-within > .top-link,
.top-link[aria-expanded="true"] {
  background: rgba(62, 126, 189, 0.2);
  color: #ffffff;
}

.menu-item.has-dropdown > .top-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.75;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 13, 29, 0.98);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

.menu-item:hover > .dropdown,
.menu-item:focus-within > .dropdown,
.menu-item.is-open > .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #d5e6ff;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 120ms ease, color 120ms ease;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: rgba(105, 165, 236, 0.22);
  color: #ffffff;
}

.menu a.current-page {
  color: var(--accent-strong);
}

.page-main {
  max-width: 1260px;
  margin: 0 auto;
  padding: 84px 24px 120px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.main-overview {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 24px;
  margin-bottom: 26px;
}

.main-overview__info,
.main-overview__trailer {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 25, 54, 0.75), rgba(7, 14, 31, 0.92));
  box-shadow: var(--shadow);
}

.main-overview__info {
  padding: 26px 24px 22px;
}

.game-logo-wrap {
  margin-bottom: 20px;
}

.game-logo-wrap img {
  width: min(100%, 460px);
  height: auto;
  display: block;
}

.game-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.fact-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
}

.fact-label {
  color: #b8cae0;
  font-size: 0.95rem;
  font-weight: 600;
}

.fact-value {
  color: #eaf2ff;
  font-size: 1rem;
  line-height: 1.45;
}

.steam-link {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  outline: none;
}

.steam-link img {
  display: block;
  width: auto;
  height: 28px;
}

.steam-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.45);
}

.main-overview__trailer {
  padding: 14px;
}

.trailer-shell {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
  background: #03060f;
}

.trailer-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 42px 32px;
  background: linear-gradient(145deg, rgba(13, 25, 54, 0.75), rgba(7, 14, 31, 0.92));
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3.1rem);
  line-height: 1.18;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  white-space: pre-line;
}

@media (max-width: 980px) {
  .site-nav {
    padding-inline: 16px;
    gap: 16px;
  }

  .menu {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }

  .menu::-webkit-scrollbar {
    height: 5px;
  }

  .menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(130, 170, 220, 0.35);
  }

  .main-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 68px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-direction: column;
  }

  .menu {
    gap: 1px;
  }

  .top-link {
    padding: 10px 12px;
    font-size: 0.93rem;
  }

  .dropdown {
    min-width: 170px;
  }

  .page-main {
    padding-top: 56px;
  }

  .hero {
    padding: 28px 22px;
  }

  .main-overview__info {
    padding: 22px 18px 18px;
  }

  .fact-row {
    grid-template-columns: 64px 1fr;
  }

  .fact-label,
  .fact-value {
    font-size: 0.93rem;
  }

  .main-overview__trailer {
    padding: 10px;
  }
}
