:root {
  --ink: #0a0b0d;
  --text: #f8f7f2;
  --muted: #9ba1ad;
  --paper: #f4f5f7;
  --surface: #ffffff;
  --line: rgba(10, 11, 13, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #ff4d3d;
  --lime: #b7ff48;
  --blue: #4e8cff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#games,
#ost,
#voice-cast,
#contact {
  scroll-margin-top: 120px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", sans-serif;
}

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

.page-shell {
  overflow: hidden;
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max-width));
  padding: 14px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.58);
  color: var(--text);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(183, 255, 72, 0.65);
  border-radius: 50%;
  color: var(--lime);
  font-family: "Teko", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong,
.site-nav a,
.eyebrow,
.button,
.tag-row span,
.card-label,
.contact-label,
.feature-pills span {
  font-family: "Teko", sans-serif;
  letter-spacing: 0;
}

.brand-copy strong {
  font-size: 1.25rem;
  font-weight: 600;
}

.brand-copy span {
  color: rgba(248, 247, 242, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.site-nav a {
  color: rgba(248, 247, 242, 0.7);
  font-size: 1rem;
  transition: color 160ms ease;
}

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

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(248, 247, 242, 0.16);
  border-radius: 999px;
  background: rgba(248, 247, 242, 0.08);
}

.language-switch button {
  min-width: 34px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 247, 242, 0.58);
  cursor: pointer;
  font-family: "Teko", sans-serif;
  font-size: 1rem;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.language-switch button[aria-pressed="true"] {
  background: var(--lime);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 84svh;
  padding: 118px max(24px, calc((100vw - var(--max-width)) / 2)) 42px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.9) 0%, rgba(5, 6, 8, 0.54) 48%, rgba(5, 6, 8, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0) 55%, rgba(5, 6, 8, 0.86) 100%),
    url("./assets/cat-girl-survivor-2-bg.jpg") center/cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 1rem;
}

.hero h1,
.section-heading h2,
.spotlight-card h2,
.game-body h3 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-weight: 500;
  line-height: 0.95;
}

.hero h1 {
  max-width: 760px;
  font-size: 8.4rem;
}

.hero h1 span {
  display: block;
  max-width: 520px;
  margin-top: 12px;
  color: rgba(248, 247, 242, 0.68);
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.45;
}

.hero-text {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(248, 247, 242, 0.76);
  font-size: 1.05rem;
  line-height: 1.8;
}

.official-x-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(248, 247, 242, 0.24);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.38);
  color: rgba(248, 247, 242, 0.74);
  backdrop-filter: blur(12px);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.official-x-link:hover,
.official-x-link:focus-visible {
  border-color: var(--lime);
  background: rgba(183, 255, 72, 0.12);
  color: var(--text);
  transform: translateY(-2px);
}

.official-x-link span {
  color: var(--lime);
  font-family: "Teko", sans-serif;
  font-size: 1.05rem;
}

.official-x-link strong {
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 13px 19px 11px;
  border: 1px solid rgba(248, 247, 242, 0.3);
  border-radius: 999px;
  font-size: 1.08rem;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: transparent;
  background: var(--text);
  color: var(--ink);
}

.button-secondary {
  color: var(--text);
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 52px;
}

.spotlight-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(10, 11, 13, 0.58);
  backdrop-filter: blur(16px);
}

.card-label {
  margin: 0;
  color: var(--lime);
  font-size: 1rem;
}

.spotlight-card h2 {
  max-width: 520px;
  font-size: 3.6rem;
}

.spotlight-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(248, 247, 242, 0.72);
  line-height: 1.75;
}

.spotlight-video {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 320px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(10, 11, 13, 0.58);
  backdrop-filter: blur(16px);
}

.spotlight-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition:
    opacity 160ms ease,
    transform 220ms ease;
}

.spotlight-video::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.08), rgba(5, 6, 8, 0.42));
  content: "";
}

.spotlight-video:hover img,
.spotlight-video:focus-visible img {
  opacity: 1;
  transform: scale(1.03);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(248, 247, 242, 0.94);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.play-button::before {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid var(--ink);
  content: "";
  transform: translate(-38%, -50%);
}

.video-caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: var(--text);
  font-family: "Teko", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.spotlight-video,
.spotlight-video img {
  min-height: 320px;
  aspect-ratio: 16 / 9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.feature-pills span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px 4px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 0.95rem;
}

.text-link {
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
}

.spotlight-link {
  color: var(--text);
}

.marquee-strip {
  overflow: hidden;
  background: var(--ink);
  color: rgba(248, 247, 242, 0.46);
}

.marquee-strip div {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 18px 0 15px;
  font-family: "Teko", sans-serif;
  font-size: 1.35rem;
  animation: marquee 26s linear infinite;
}

.section {
  padding: 96px max(24px, calc((100vw - var(--max-width)) / 2)) 0;
  scroll-margin-top: 104px;
}

.section-heading {
  max-width: var(--max-width);
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 1120px;
  font-family: "Noto Sans KR", sans-serif;
  font-size: clamp(2.35rem, 3.05vw, 3.35rem);
  font-weight: 900;
  line-height: 1.16;
  color: var(--ink);
  word-break: keep-all;
}

.section-heading p,
.game-body p,
.contact-grid p {
  color: #59606c;
  line-height: 1.75;
}

.section-heading p {
  max-width: 680px;
  margin: 14px 0 0;
}

.section-heading strong {
  color: var(--ink);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  overflow: hidden;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.game-card:nth-child(1),
.game-card:nth-child(2),
.game-card:nth-child(3) {
  grid-column: span 4;
}

.game-card-featured {
  grid-column: span 12;
  grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
}

.games-grid > .game-card-featured {
  grid-column: span 12;
}

.game-card-original {
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
}

.game-card-original .game-media {
  order: 2;
}

.game-media {
  min-height: 280px;
  background-position: center;
  background-size: cover;
}

.game-media-logo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 26px;
}

.game-media-logo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 6, 8, 0.72) 100%);
  content: "";
  pointer-events: none;
}

.game-media-logo img {
  position: relative;
  z-index: 1;
  width: min(58%, 320px);
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55));
}

.game-card-featured .game-media {
  min-height: 100%;
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.game-body h3 {
  color: var(--ink);
  font-size: 2.75rem;
}

.game-body .tag-row {
  color: #59606c;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-pills span {
  color: #59606c;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.store-links a:hover,
.store-links a:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--text);
  transform: translateY(-2px);
}

.store-links .guide-link {
  border-color: rgba(255, 77, 61, 0.45);
  color: var(--accent);
}

.store-links .guide-link:hover,
.store-links .guide-link:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
}

.store-links .settings-link {
  border-color: rgba(183, 255, 72, 0.48);
  color: #5f7d00;
}

.store-links .settings-link:hover,
.store-links .settings-link:focus-visible {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.ost-card {
  position: relative;
  grid-column: span 12;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(28px, 3.5vw, 48px);
  align-items: center;
  min-height: 0;
  padding: clamp(30px, 4.2vw, 48px);
  border: 1px solid rgba(255, 77, 61, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 11% 24%, rgba(255, 77, 61, 0.42), transparent 31%),
    radial-gradient(circle at 82% 10%, rgba(78, 140, 255, 0.26), transparent 28%),
    linear-gradient(140deg, #211115 0%, #171b25 48%, #080b11 100%);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(10, 11, 13, 0.2);
}

.ost-card::after {
  position: absolute;
  inset: auto -10% -34% auto;
  width: 420px;
  aspect-ratio: 1;
  border: 34px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 28px rgba(255, 77, 61, 0.12),
    0 0 110px rgba(255, 77, 61, 0.18);
  content: "";
}

.ost-card > * {
  position: relative;
  z-index: 1;
}

.ost-card .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.ost-card h3 {
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(2.65rem, 4.05vw, 4.55rem);
  line-height: 1.06;
  text-wrap: balance;
  word-break: keep-all;
}

.ost-card .ost-credit {
  display: inline-flex;
  width: fit-content;
  margin: 18px 0 4px;
  padding: 9px 14px;
  border: 1px solid rgba(183, 255, 72, 0.55);
  border-radius: 999px;
  background: rgba(183, 255, 72, 0.12);
  color: var(--lime);
  font-weight: 900;
}

.ost-card p:not(.eyebrow):not(.ost-credit) {
  max-width: 560px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.14vw, 1.16rem);
  line-height: 1.7;
}

.ost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ost-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.ost-links a:hover,
.ost-links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.ost-meta {
  display: inline-grid;
  gap: 2px;
  margin-top: 26px;
  padding: 14px 18px;
  border-left: 4px solid var(--lime);
  background: rgba(255, 255, 255, 0.06);
}

.ost-meta span {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Teko", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ost-meta strong {
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
}

.ost-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 16px;
  min-height: 0;
}

.ost-singer-card,
.cast-group-card,
.cast-card {
  margin: 0;
}

.ost-singer-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(0.6deg);
}

.ost-singer-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ost-video {
  position: relative;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  transform: rotate(-0.5deg);
}

.ost-video::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 5, 8, 0.06), rgba(4, 5, 8, 0.34));
  content: "";
  pointer-events: none;
}

.ost-video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition:
    opacity 160ms ease,
    transform 220ms ease;
}

.ost-video:hover img,
.ost-video:focus-visible img {
  opacity: 0.92;
  transform: scale(1.03);
}

.voice-cast-section {
  padding-top: 112px;
}

.cast-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1.26fr);
  align-items: start;
  gap: 24px;
}

.cast-group-card {
  overflow: hidden;
  border: 1px solid rgba(10, 11, 13, 0.1);
  border-radius: 18px;
  background: #120b0f;
  box-shadow: 0 26px 68px rgba(10, 11, 13, 0.16);
}

.cast-group-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

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

.cast-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10, 11, 13, 0.1);
  border-radius: 16px;
  background: #12151d;
  box-shadow: 0 18px 44px rgba(10, 11, 13, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.cast-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 64px rgba(10, 11, 13, 0.18);
}

.cast-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 12.5;
  object-fit: cover;
}

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

.contact-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-section {
  padding-top: 108px;
  padding-bottom: 48px;
}

.contact-card {
  padding: 0;
}

.contact-grid > div {
  padding: 22px;
}

.contact-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 1rem;
}

.contact-grid a {
  font-size: 1.1rem;
  font-weight: 800;
}

.contact-grid p {
  margin: 0;
}

.site-footer {
  padding: 28px 24px 38px;
  color: #6d7480;
  text-align: center;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 82svh;
  }

  .hero h1 {
    font-size: 6.6rem;
  }

  .section-heading h2 {
    font-size: 2.75rem;
  }

  .hero-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .game-card:nth-child(1),
  .game-card:nth-child(2),
  .game-card:nth-child(3),
  .game-card-featured {
    grid-column: span 12;
  }

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

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

  .game-card-original .game-media {
    order: 0;
  }

  .game-card-featured .game-media {
    min-height: 280px;
  }

  .ost-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ost-links {
    justify-content: flex-start;
  }

  .ost-showcase {
    max-width: 620px;
  }

  .cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .game-media-logo img {
    width: min(64%, 300px);
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 12px;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    border-radius: 18px;
  }

  .header-actions {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 1.1rem;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .language-switch button {
    min-width: 30px;
  }

  .hero {
    min-height: auto;
    padding: 136px 18px 28px;
  }

  .hero h1 {
    font-size: 5.2rem;
  }

  .hero h1 span {
    font-size: 1rem;
  }

  .hero-panel {
    margin-top: 36px;
  }

  .spotlight-video,
  .spotlight-video img {
    min-height: 220px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading h2 {
    font-size: 2.2rem;
  }

  .game-body,
  .contact-grid > div {
    padding: 20px;
  }

  .game-media-logo {
    padding: 18px;
  }

  .game-media-logo img {
    width: min(72%, 260px);
  }

  .ost-card {
    padding: 22px;
  }

  .ost-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ost-links a {
    flex: 1 1 100%;
  }

  .ost-card h3 {
    font-size: clamp(2.25rem, 11vw, 3.45rem);
  }

  .ost-singer-card,
  .ost-video {
    transform: none;
  }

  .voice-cast-section {
    padding-top: 76px;
  }

  .cast-grid {
    grid-template-columns: 1fr;
  }
}
