@font-face {
  font-family: "Galmuri11";
  src: url("assets/fonts/Galmuri11.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070707;
  --bg-soft: #0d0d0e;
  --panel: #121214;
  --line: rgba(255,255,255,.12);
  --text: #f5f5f4;
  --muted: #aaa7a5;
  --red: #d81932;
  --red-bright: #ff334d;
  --max: 1180px;
  --header-height: 76px;
}

.site-header .brand span {
  font-family: "Galmuri11", monospace;
  font-weight: normal;
  letter-spacing: 0.08em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(216,25,50,.12), transparent 29rem),
    var(--bg);
  font-family: Pretendard, "Noto Sans KR", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--red); color: white; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 9999;
  padding: .7rem 1rem; background: white; color: black;
}
.skip-link:focus { top: 1rem; }
.noise {
  pointer-events: none; position: fixed; inset: 0; z-index: 1000; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.section-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section-spacing { padding-block: 132px; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height); display: flex; align-items: center; justify-content: space-between;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(7,7,7,.84); backdrop-filter: blur(18px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: .85rem; font-weight: 800; letter-spacing: .16em; }
.brand img { flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { color: var(--muted); font-size: .75rem; letter-spacing: .16em; font-weight: 750; transition: color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; }
.language-button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; min-width: 42px; height: 30px;
  cursor: pointer; font-size: .72rem; font-weight: 800; transition: border-color .2s, background .2s;
}
.language-button:hover { border-color: var(--red); background: rgba(216,25,50,.12); }
.menu-button { display: none; background: transparent; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.menu-button > span:not(.sr-only) { display: block; height: 1px; background: white; margin: 6px 0; transition: transform .2s, opacity .2s; }

.hero {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: clamp(3rem, 7vw, 7rem); align-items: center; padding-top: calc(var(--header-height) + 44px); padding-bottom: 70px;
}
.eyebrow { margin: 0 0 1.2rem; color: var(--red-bright); font-size: .72rem; font-weight: 850; letter-spacing: .2em; }
.hero h1 { margin: 0; font-size: clamp(3.6rem, 7.4vw, 7.1rem); line-height: .88; letter-spacing: -.07em; font-weight: 300; }
.hero h1 strong { display: block; font-weight: 900; }
.hero-description { max-width: 620px; margin: 2rem 0 0; color: #c4c1bf; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .8rem 1.25rem;
  border: 1px solid transparent; font-size: .82rem; font-weight: 850; letter-spacing: .03em; transition: transform .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: var(--red-bright); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.03); }
.button-ghost:hover { border-color: rgba(255,255,255,.35); }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.hero-meta div { min-width: 0; }
.hero-meta dt { color: #777; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-meta dd { margin: .15rem 0 0; font-size: .78rem; color: #d6d3d1; }
.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 75%; aspect-ratio: 1; right: -14%; top: -13%; border: 1px solid rgba(216,25,50,.34); border-radius: 50%; z-index: -1; }
.hero-visual img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 38px 90px rgba(0,0,0,.55); }
.hero-card { position: absolute; left: -2rem; bottom: 2rem; width: min(290px, 78%); padding: 1.2rem 1.35rem; background: rgba(9,9,10,.82); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.hero-card span, .hero-card small { display: block; color: #8d8987; font-size: .66rem; letter-spacing: .16em; }
.hero-card strong { display: block; margin: .28rem 0; font-size: 1.05rem; letter-spacing: .04em; }

.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; align-items: end; margin-bottom: 3.2rem; }
.section-heading .eyebrow { margin: 0; }
.section-heading h2 { margin: 0; font-size: clamp(2.5rem, 6vw, 5.7rem); letter-spacing: -.055em; line-height: .95; }
.games { border-top: 1px solid var(--line); }
.game-feature { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--panel); border: 1px solid var(--line); }
.game-image { min-height: 610px; position: relative; overflow: hidden; }
.game-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(7,7,7,.38)); }
.game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.game-feature:hover .game-image img { transform: scale(1.025); }
.status-badge { position: absolute; left: 1.2rem; top: 1.2rem; z-index: 2; padding: .45rem .7rem; background: var(--red); font-size: .7rem; font-weight: 800; }
.game-copy { padding: clamp(2rem, 5vw, 5rem); align-self: center; }
.game-copy p { color: var(--muted); }
.game-copy .game-lead { color: white; font-size: clamp(1.45rem, 2.2vw, 2.1rem); line-height: 1.45; font-weight: 700; letter-spacing: -.025em; }
.feature-list { list-style: none; margin: 2rem 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: .9rem 0 .9rem 1.4rem; border-bottom: 1px solid var(--line); color: #d0ccca; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 7px; height: 7px; background: var(--red); }
.text-link { display: inline-flex; gap: .6rem; color: white; font-weight: 800; border-bottom: 1px solid var(--red); padding-bottom: .3rem; }

.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.about-lead { margin: 0; font-size: clamp(1.7rem, 3vw, 3.05rem); line-height: 1.35; letter-spacing: -.035em; font-weight: 750; }
.about-body { color: var(--muted); font-size: 1.04rem; }
.about-body p:first-child { margin-top: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values > div { min-height: 220px; padding: 1.5rem; border-right: 1px solid var(--line); }
.values > div:last-child { border-right: 0; }
.values span { color: var(--red); font-size: .7rem; }
.values strong { display: block; margin: 2.5rem 0 .6rem; font-size: 1.35rem; letter-spacing: .06em; }
.values p { margin: 0; color: var(--muted); font-size: .92rem; }

.news { border-top: 1px solid var(--line); }
.news-list { border-top: 1px solid var(--line); }
.news-list article { display: grid; grid-template-columns: 130px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.news-list time { color: #777; }
.news-tag { color: var(--red-bright); font-size: .66rem; letter-spacing: .15em; font-weight: 800; }
.news-list h3 { margin: .45rem 0 .35rem; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.news-list p { margin: 0; color: var(--muted); }

.contact { padding-bottom: 132px; }
.contact-card { position: relative; overflow: hidden; padding: clamp(2rem, 7vw, 6rem); background: linear-gradient(135deg, #1b0a0e, #0c0c0d 65%); border: 1px solid rgba(216,25,50,.35); }
.contact-card::after { content: "C"; position: absolute; right: -1rem; bottom: -9rem; color: rgba(255,255,255,.025); font-size: 30rem; font-weight: 900; line-height: 1; }
.contact-card h2 { position: relative; z-index: 1; max-width: 920px; margin: 0; font-size: clamp(2.1rem, 5vw, 5rem); line-height: 1.1; letter-spacing: -.055em; }
.contact-card > p:not(.eyebrow) { position: relative; z-index: 1; color: var(--muted); }
.contact-card .button { position: relative; z-index: 1; margin-top: 1rem; }
.contact-card small { display: block; position: relative; z-index: 1; margin-top: .8rem; color: #706c6a; }

.site-footer { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: #777; font-size: .78rem; }
.footer-brand { color: white; }
.back-to-top { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: white; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-button { display: block; z-index: 3; }
  .site-nav {
    position: fixed; inset: 0; padding: 120px 28px 40px; background: rgba(7,7,7,.98);
    flex-direction: column; align-items: flex-start; gap: 1.4rem; transform: translateX(100%); transition: transform .25s ease;
  }
  .site-nav.open { transform: none; }
  .site-nav a { font-size: clamp(1.9rem, 8vw, 3.6rem); color: white; letter-spacing: -.025em; }
  .site-nav .language-button { margin-top: 1rem; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-visual { max-width: 680px; justify-self: end; }
  .section-heading { grid-template-columns: 1fr; }
  .game-feature { grid-template-columns: 1fr; }
  .game-image { min-height: 460px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-height: 66px; }
  .section-shell { width: min(calc(100% - 28px), var(--max)); }
  .section-spacing { padding-block: 88px; }
  .brand span { font-size: .72rem; }
  .hero { gap: 3rem; padding-bottom: 55px; }
  .hero h1 { font-size: clamp(3.25rem, 18vw, 5rem); }
  .hero-description { font-size: .96rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div { display: grid; grid-template-columns: 72px 1fr; }
  .hero-card { left: 1rem; bottom: 1rem; }
  .game-image { min-height: 360px; }
  .game-copy { padding: 1.5rem; }
  .values { grid-template-columns: 1fr; }
  .values > div { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--line); }
  .values > div:last-child { border-bottom: 0; }
  .values strong { margin-top: 1.6rem; }
  .news-list article { grid-template-columns: 1fr; gap: .4rem; }
  .contact { padding-bottom: 88px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-block: 1.5rem; }
  .back-to-top { position: absolute; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
