:root {
  --bg: #0c0a10;
  --panel: #17121d;
  --panel-soft: #211928;
  --text: #f7eef7;
  --muted: #c6b5c9;
  --dim: #8e7f93;
  --line: rgba(255, 255, 255, 0.1);
  --pink: #ff6b93;
  --peach: #ffb07c;
  --max: 1120px;
  --page-gutter: clamp(28px, 7vw, 96px);

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 107, 147, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 16rem, rgba(255, 176, 124, 0.1), transparent 28rem),
    var(--bg);
}

body,
button,
input,
textarea {
  font: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - (var(--page-gutter) * 2), var(--max));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

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

.brand__logo {
  width: auto;
  height: 42px;
  max-width: 132px;
  object-fit: contain;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #120b14;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  letter-spacing: 0;
}

.brand__name {
  font-size: 0.96rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: min(100% - (var(--page-gutter) * 2), var(--max));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: clamp(44px, 8vw, 92px) 0;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 10% 2% 8%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(12, 10, 16, 0.55), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 52%);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 72%, transparent);
}

.hero__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 900px;
}

.hero__background::before,
.hero__background::after {
  position: absolute;
  content: "";
}

.hero__background::before {
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 72% 45%, black 0%, black 34%, transparent 66%);
  transform: rotateX(62deg) rotateZ(-18deg) translate3d(120px, 90px, -80px);
  animation: gridSurge 9s linear infinite;
}

.hero__background::after {
  inset: -30% -10%;
  background:
    linear-gradient(
      112deg,
      transparent 0%,
      transparent 34%,
      rgba(255, 107, 147, 0.12) 42%,
      rgba(255, 176, 124, 0.28) 48%,
      rgba(255, 255, 255, 0.18) 50%,
      rgba(255, 107, 147, 0.16) 53%,
      transparent 62%,
      transparent 100%
    );
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, transparent 24%, black 46%);
  animation: lightSweep 6.5s ease-in-out infinite;
}

.hero__background span {
  position: absolute;
  width: clamp(130px, 19vw, 280px);
  aspect-ratio: 1.35;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(255, 107, 147, 0.24), rgba(255, 176, 124, 0.08)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 24px 90px rgba(255, 107, 147, 0.11);
  transform-style: preserve-3d;
  animation: panelOrbit 13s ease-in-out infinite alternate;
}

.hero__background span:nth-child(1) {
  top: 10%;
  right: 2%;
  animation-delay: -1s;
}

.hero__background span:nth-child(2) {
  right: 19%;
  bottom: 9%;
  width: clamp(118px, 15vw, 220px);
  animation-duration: 16s;
  animation-delay: -6s;
}

.hero__background span:nth-child(3) {
  top: 22%;
  left: 58%;
  width: clamp(76px, 10vw, 150px);
  animation-duration: 10s;
  animation-delay: -3s;
}

.hero__background span:nth-child(4) {
  right: 8%;
  bottom: 35%;
  width: clamp(54px, 7vw, 112px);
  background: linear-gradient(135deg, rgba(255, 176, 124, 0.32), rgba(255, 107, 147, 0.12));
  animation-duration: 8s;
  animation-delay: -5s;
}

.hero__background span:nth-child(5) {
  top: 8%;
  left: 50%;
  width: clamp(180px, 24vw, 360px);
  aspect-ratio: 2.4;
  border-color: rgba(255, 176, 124, 0.22);
  background:
    linear-gradient(90deg, transparent, rgba(255, 176, 124, 0.18), transparent),
    rgba(255, 255, 255, 0.025);
  animation: panelSlide 7.5s ease-in-out infinite alternate;
}

.hero__background span:nth-child(6) {
  right: 36%;
  bottom: 24%;
  width: clamp(90px, 12vw, 180px);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  animation-duration: 12s;
  animation-delay: -8s;
}

.hero__background span:nth-child(7) {
  top: 46%;
  right: -4%;
  width: clamp(220px, 31vw, 480px);
  aspect-ratio: 3.8;
  border-color: rgba(255, 107, 147, 0.28);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 107, 147, 0.16) 0 2px,
      transparent 2px 18px
    );
  animation: scanBar 4.8s ease-in-out infinite alternate;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(14px, 2.5vw, 28px) 0;
}

.hero__eyebrow {
  margin: 0 0 18px;
  color: var(--peach);
  font-size: clamp(0.72rem, 1.1vw, 0.86rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: clamp(2.15rem, 4.35vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero__lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.9;
}

.hero__statement {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  font-weight: 600;
  line-height: 1.85;
}

.game-section,
.notice-section {
  width: min(100% - (var(--page-gutter) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 108px) 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

.game-card {
  overflow: hidden;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.game-card--wide {
  grid-column: span 3;
  min-height: 380px;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-card:hover img {
  transform: scale(1.035);
}

.notice-section {
  padding-top: clamp(34px, 6vw, 72px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.notice-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 56px);
  width: min(100% - (var(--page-gutter) * 2), var(--max));
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
}

.footer-ci {
  display: flex;
  align-items: flex-start;
}

.footer-ci__image {
  max-width: 150px;
  max-height: 58px;
  object-fit: contain;
}

.footer-ci__fallback {
  display: grid;
  gap: 4px;
  color: var(--text);
  line-height: 1;
}

.footer-ci__fallback span {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-ci__fallback strong {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 800;
}

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

.company-info div {
  display: grid;
  grid-template-columns: 92px 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.6;
}

.company-info a:hover {
  color: var(--text);
}

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

  .site-header {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    inset: 18% 0 8%;
    mask-image: linear-gradient(180deg, black, black 68%, transparent);
  }

  .game-showcase {
    grid-template-columns: 1fr;
  }

  .game-card,
  .game-card--wide {
    grid-column: auto;
    min-height: 230px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

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

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

@keyframes panelOrbit {
  from {
    transform: translate3d(-18px, 22px, 0) rotateX(8deg) rotateY(-14deg) rotateZ(-7deg);
    opacity: 0.42;
  }

  to {
    transform: translate3d(34px, -28px, 70px) rotateX(-8deg) rotateY(16deg) rotateZ(9deg);
    opacity: 0.88;
  }
}

@keyframes panelSlide {
  from {
    transform: translate3d(-48px, 12px, -20px) skewX(-12deg);
    opacity: 0.3;
  }

  to {
    transform: translate3d(38px, -22px, 50px) skewX(-12deg);
    opacity: 0.74;
  }
}

@keyframes scanBar {
  from {
    transform: translate3d(38px, -20px, 0) rotate(-12deg);
    opacity: 0.22;
  }

  to {
    transform: translate3d(-58px, 34px, 0) rotate(-12deg);
    opacity: 0.62;
  }
}

@keyframes gridSurge {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 108px 108px, 108px 108px;
  }
}

@keyframes lightSweep {
  0%,
  18% {
    transform: translateX(-34%);
    opacity: 0;
  }

  42% {
    opacity: 1;
  }

  72%,
  100% {
    transform: translateX(28%);
    opacity: 0.2;
  }
}

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

  .hero__background::before,
  .hero__background::after,
  .hero__background span {
    animation: none;
  }
}
