:root {
  --bg: #0b0810;
  --bg-alt: #100c15;
  --surface: #18121f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7eff7;
  --muted: #b8aaba;
  --dim: #776a7d;
  --pink: #ff6b93;
  --peach: #ffb07c;
  --glow: rgba(255, 107, 147, 0.32);
  --max: 1100px;
  --gutter: clamp(24px, 6vw, 88px);

  color: var(--text);
  background: var(--bg);
  font-family:
    Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

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

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin: 0 auto;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand__logo {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.brand__fallback {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #130b15;
  background: linear-gradient(135deg, var(--pink), var(--peach));
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav a {
  opacity: 0.76;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.site-nav a:hover {
  color: #fff;
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 8, 16, 0.96), rgba(11, 8, 16, 0.72) 42%, rgba(11, 8, 16, 0.18)),
    url("../assets/images/game/hero_bg.png") center / cover no-repeat;
  background-attachment: fixed;
  transform: scale(1.01);
}

.hero__bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 70% 40%, transparent 0 32%, rgba(11, 8, 16, 0.28) 68%);
  transform: translateY(var(--hero-parallax, 0));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 8, 16, 0.04), rgba(11, 8, 16, 1) 96%),
    radial-gradient(circle at 70% 38%, rgba(255, 107, 147, 0.2), transparent 28rem);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin: 0 auto;
  padding: 110px 0 86px;
  transform: translateY(var(--hero-content-shift, 0));
}

.hero__eyebrow,
.section__heading span {
  color: var(--peach);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hero h1 {
  max-width: 680px;
  margin: 18px 0 24px;
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  margin: 0;
  color: #dfd0e2;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700;
}

.hero__statement {
  max-width: 640px;
  margin: 38px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.46rem);
  font-weight: 700;
  line-height: 1.82;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 2px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

.section {
  padding: clamp(76px, 9vw, 120px) 0;
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.game-section {
  padding-top: clamp(56px, 7vw, 92px);
}

.section__container,
.footer__container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin: 0 auto;
}

.section__heading {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__heading--center {
  text-align: center;
}

.section__heading h2 {
  margin: 10px 0 0;
  font-family: "Black Han Sans", Pretendard, sans-serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.section__heading p {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.7;
}

.notice-image,
.game-hero,
.game-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.notice-image {
  width: 100%;
}

.game-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  margin-bottom: 0;
  background: #0d0a10;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.game-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(42px, 7vh, 74px) clamp(18px, 4vw, 46px) clamp(28px, 5vh, 54px);
}

.game-hero__label {
  margin: 0 0 clamp(18px, 3vh, 28px);
  color: var(--peach);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.game-hero__logo {
  width: clamp(320px, 49vw, 650px);
  filter: drop-shadow(0 0 28px var(--glow));
}

.game-hero__tagline {
  margin: clamp(14px, 2vh, 20px) 0 clamp(70px, 10vh, 112px);
  color: #ffd3de;
  font-size: clamp(0.95rem, 1.65vw, 1.14rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.9;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.56);
}

.game-hero__video {
  overflow: hidden;
  width: min(62vw, 680px);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #050308;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.game-hero__video iframe {
  width: 100%;
  height: 100%;
}

.game-info-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(12px, 2vw, 24px) 0 0;
  background: #0b0810;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.game-grid figure {
  margin: 0;
}

.game-grid__wide {
  grid-column: 1 / -1;
}

.game-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-grid__wide img {
  aspect-ratio: 21 / 9;
}

.game-grid img:hover {
  transform: scale(1.025);
}

.lightbox-trigger {
  cursor: pointer;
}

.lightbox-trigger:focus-visible,
.link-buttons a:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 5px;
}

.link-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 340px));
  justify-content: center;
  gap: clamp(18px, 3vw, 32px) clamp(42px, 8vw, 96px);
}

.link-buttons a {
  display: block;
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.link-buttons a:hover {
  filter: brightness(1.1) drop-shadow(0 12px 28px var(--glow));
  transform: translateY(-5px);
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  background: #08060c;
}

.footer__container {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.footer-ci img {
  max-width: 156px;
  max-height: 58px;
  object-fit: contain;
}

.footer-ci span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.company-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  margin: 0;
}

.company-info div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
}

.company-info dt,
.company-info dd {
  margin: 0;
}

.company-info dt {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 800;
}

.company-info dd {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
  backdrop-filter: blur(8px);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 94vw;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.85);
}

.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(16px, 4vw, 42px);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 0.8;
  cursor: pointer;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.86;
    transform: scaleY(1.28);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 22px;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 16px;
  }

  .site-nav {
    flex-wrap: nowrap;
    gap: 16px;
    font-size: 0.78rem;
  }

  .hero__content {
    padding-top: 150px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

  .hero__bg {
    background-attachment: scroll;
  }

  .game-grid,
  .footer__container,
  .company-info {
    grid-template-columns: 1fr;
  }

  .link-buttons {
    grid-template-columns: minmax(0, 280px);
    gap: 18px;
  }

  .link-buttons a {
    max-width: 280px;
  }

  .game-grid img,
  .game-grid__wide img {
    aspect-ratio: 4 / 3;
  }

  .game-hero {
    min-height: auto;
  }

  .game-hero__tagline {
    margin-bottom: 30px;
  }

  .game-hero__content {
    min-height: auto;
    padding-bottom: clamp(18px, 5vw, 32px);
  }

  .game-hero__logo {
    width: min(100%, 420px);
  }

  .game-hero__video {
    width: min(100%, 620px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-cue i {
    animation: none;
  }
}
