:root {
  --ink: #080b0d;
  --ink-soft: #11171b;
  --paper: #f1f1eb;
  --paper-dim: #c9cbc5;
  --line: rgba(255, 255, 255, 0.16);
  --acid: #c7ff2f;
  --cyan: #8ad8f3;
  --max: 1440px;
  --pad: clamp(22px, 4vw, 70px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--acid); color: var(--ink); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  background: var(--acid);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 800;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 90px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, height .3s ease, border-color .3s ease;
}

.site-header.scrolled,
.site-header.on-light {
  height: 72px;
  background: rgba(8, 11, 13, .92);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  z-index: 102;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 950;
  letter-spacing: -.045em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 48px);
}

.main-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--acid);
  transition: right .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after { right: 0; }

.header-meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-number {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: .15em;
}

.menu-toggle {
  position: relative;
  z-index: 102;
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform .25s, top .25s, opacity .25s;
}

.menu-toggle::before { top: 14px; }
.menu-toggle span { top: 20px; }
.menu-toggle::after { top: 26px; }
.menu-open .menu-toggle::before { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::after { top: 20px; transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #071016;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,8,10,.74) 0%, rgba(4,8,10,.18) 52%, rgba(4,8,10,.2) 100%),
    linear-gradient(0deg, rgba(4,8,10,.92) 0%, transparent 42%),
    url("assets/hero-palace.png") center/cover no-repeat;
  transform: scale(1.015);
  animation: hero-drift 12s ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.035) 3px 4px);
}

@keyframes hero-drift {
  from { transform: scale(1.09); }
  to { transform: scale(1.015); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 150px var(--pad) clamp(70px, 9vh, 110px);
}

.hero-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-kicker::before,
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.hero-title {
  margin: 0;
  max-width: 1050px;
  font-size: clamp(58px, 9.4vw, 164px);
  line-height: .79;
  font-weight: 950;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.72);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr auto;
  align-items: end;
  gap: 40px;
  margin-top: 42px;
}

.hero-copy {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: clamp(14px, 1.2vw, 18px);
}

.round-link {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  font-size: 25px;
  transition: color .25s, background .25s, border-color .25s, transform .25s;
}

.round-link:hover {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  transform: rotate(-18deg);
}

.hero-index {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
}

.ticker {
  overflow: hidden;
  padding: 17px 0;
  color: var(--ink);
  background: var(--acid);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 26s linear infinite;
}

.ticker span { padding-right: 48px; }
.ticker b { margin-left: 48px; }

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

.section {
  position: relative;
  padding: clamp(90px, 12vw, 190px) var(--pad);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.75fr;
  gap: 40px;
  margin-bottom: clamp(54px, 7vw, 100px);
}

.section-label {
  margin: 0;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.display-copy {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 90px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 860;
  word-break: keep-all;
}

.display-copy em { color: var(--acid); font-style: normal; }

.split-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 140px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.split-intro p {
  margin: 0;
  max-width: 680px;
  color: var(--paper-dim);
  font-size: clamp(17px, 1.55vw, 23px);
  word-break: keep-all;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(6px); }

.feature-game {
  position: relative;
  min-height: min(800px, 80vw);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: url("assets/hero-palace.png") 67% center/cover;
}

.feature-game::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,8,10,.95), transparent 62%), linear-gradient(90deg, rgba(4,8,10,.45), transparent 50%);
}

.feature-game-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(30px, 5vw, 76px);
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.pill {
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.feature-game h2 {
  margin: 0;
  font-size: clamp(56px, 10vw, 150px);
  line-height: .83;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.feature-caption {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-top: 34px;
}

.feature-caption p {
  max-width: 540px;
  margin: 0;
  color: rgba(255,255,255,.68);
}

.light-section {
  color: var(--ink);
  background: var(--paper);
}

.light-section .section-label { color: rgba(8,11,13,.55); }
.light-section .split-intro { border-color: rgba(8,11,13,.22); }
.light-section .split-intro p { color: #4b5154; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(8,11,13,.25);
  border-bottom: 1px solid rgba(8,11,13,.25);
}

.stat {
  padding: clamp(28px, 4vw, 58px) clamp(18px, 3vw, 45px);
  border-right: 1px solid rgba(8,11,13,.25);
}

.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: clamp(56px, 7vw, 110px); line-height: 1; letter-spacing: -.07em; }
.stat span { display: block; margin-top: 15px; color: #596064; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: color .3s, border-color .3s, transform .3s;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--acid);
  transition: height .35s cubic-bezier(.2,.8,.2,1);
}

.news-card:hover { color: var(--ink); border-color: var(--acid); transform: translateY(-8px); }
.news-card:hover::before { height: 100%; }
.news-card > * { position: relative; z-index: 1; }
.news-card time { font-size: 11px; letter-spacing: .12em; }
.news-card h3 { margin: auto 0 24px; font-size: clamp(25px, 2.3vw, 38px); line-height: 1.08; letter-spacing: -.035em; word-break: keep-all; }
.news-card p { margin: 0; color: rgba(255,255,255,.54); font-size: 13px; }
.news-card:hover p { color: rgba(8,11,13,.65); }

.site-footer {
  position: relative;
  padding: 82px var(--pad) 30px;
  border-top: 1px solid var(--line);
  background: #050708;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  width: min(100%, var(--max));
  margin: auto;
}

.footer-title {
  margin: 0;
  font-size: clamp(55px, 10vw, 160px);
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

.footer-title span { color: var(--acid); }

.socials {
  display: flex;
  gap: 9px;
}

.social-link {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .2s, background .2s, border .2s, transform .2s;
}

.social-link:hover { color: var(--ink); background: var(--acid); border-color: var(--acid); transform: translateY(-3px); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
  width: min(100%, var(--max));
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 70px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,.42);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Internal pages */
.page-hero {
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  padding: 160px var(--pad) 80px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 77% 42%, rgba(75,155,181,.18), transparent 30%),
    linear-gradient(150deg, #10171b, #070a0c 72%);
}

.page-hero-inner { width: min(100%, var(--max)); margin: 0 auto; }
.page-count { color: var(--acid); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.page-title { margin: 24px 0 0; font-size: clamp(72px, 15vw, 230px); line-height: .76; letter-spacing: -.08em; text-transform: uppercase; }
.page-deck { max-width: 690px; margin: 42px 0 0 auto; color: rgba(255,255,255,.64); font-size: clamp(17px, 1.5vw, 23px); word-break: keep-all; }

.manifesto-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.manifesto-row:last-child { border-bottom: 1px solid var(--line); }
.manifesto-row span { color: var(--acid); font-size: 11px; letter-spacing: .12em; }
.manifesto-row h3 { margin: 0; max-width: 900px; font-size: clamp(30px, 4vw, 66px); line-height: 1.02; letter-spacing: -.045em; word-break: keep-all; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(8,11,13,.22); border-left: 1px solid rgba(8,11,13,.22); }
.team-card { min-height: 360px; padding: 34px; border-right: 1px solid rgba(8,11,13,.22); border-bottom: 1px solid rgba(8,11,13,.22); display: flex; flex-direction: column; justify-content: space-between; }
.team-card .role { color: #6a7174; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.team-card .initial { align-self: flex-end; color: transparent; -webkit-text-stroke: 1px rgba(8,11,13,.22); font-size: 130px; line-height: .8; font-weight: 900; }
.team-card h3 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.team-card p { max-width: 390px; margin: 10px 0 0; color: #555d61; }

.game-list { display: grid; gap: 24px; }
.game-card { position: relative; min-height: 660px; display: block; overflow: hidden; border: 1px solid var(--line); }
.game-card .game-bg { position: absolute; inset: 0; background: url("assets/hero-palace.png") center/cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s; }
.game-card:nth-child(2) .game-bg { background-position: 20% 54%; filter: hue-rotate(48deg) saturate(.6); transform: scale(1.03); }
.game-card:nth-child(3) .game-bg { background-position: 90% 85%; filter: grayscale(1) contrast(1.2); transform: scale(1.03); }
.game-card:hover .game-bg { transform: scale(1.07); }
.game-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,10,.96), transparent 67%), linear-gradient(90deg, rgba(5,8,10,.55), transparent 55%); }
.game-card-content { position: absolute; z-index: 1; inset: auto 0 0; display: grid; grid-template-columns: 1fr minmax(260px, .7fr); gap: 40px; align-items: end; padding: clamp(28px, 4vw, 58px); }
.game-card h2 { margin: 0; max-width: 900px; font-size: clamp(54px, 8vw, 125px); line-height: .82; letter-spacing: -.065em; overflow-wrap: anywhere; text-transform: uppercase; }
.game-card p { margin: 0 0 8px; color: rgba(255,255,255,.66); }
.game-card:focus-visible { outline: 3px solid var(--acid); outline-offset: 5px; }

/* Game detail */
.game-detail-hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 160px var(--pad) clamp(70px, 9vw, 130px);
  background-position: center;
  background-size: cover;
}

.game-detail-hero-inner { width: min(100%, var(--max)); margin: 0 auto; }
.game-detail-hero .hero-kicker { color: var(--game-accent, var(--acid)); }
.game-detail-hero h1 { margin: 0; max-width: 1200px; font-size: clamp(68px, 13vw, 205px); line-height: .77; letter-spacing: -.08em; overflow-wrap: anywhere; text-transform: uppercase; }
.game-detail-summary { max-width: 680px; margin: 44px 0 0 auto; color: rgba(255,255,255,.72); font-size: clamp(17px, 1.6vw, 24px); word-break: keep-all; }
.game-detail-info { border-top: 1px solid var(--line); }
.game-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.game-facts > div { min-height: 180px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-facts span { display: block; color: rgba(255,255,255,.45); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.game-facts strong { display: block; margin-top: 46px; font-size: clamp(23px, 2.6vw, 42px); letter-spacing: -.04em; }
.game-story { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-top: clamp(70px, 10vw, 150px); padding-top: 38px; border-top: 1px solid var(--line); }
.game-story > p:not(.section-label) { margin: 0; color: var(--paper-dim); font-size: clamp(24px, 3.4vw, 56px); line-height: 1.15; letter-spacing: -.035em; word-break: keep-all; }
.game-story .text-link { grid-column: 2; justify-self: start; }
.detail-not-found { min-height: 85svh; display: flex; flex-direction: column; justify-content: center; padding: 140px var(--pad) 80px; }
.detail-not-found h1 { margin: 28px 0; font-size: clamp(66px, 12vw, 170px); line-height: .82; letter-spacing: -.075em; }
.detail-not-found p { color: var(--paper-dim); }

/* Admin */
[hidden] { display: none !important; }
.admin-body { min-height: 100vh; color: var(--paper); background: #0a0e10; }
.admin-header { position: sticky; top: 0; z-index: 30; height: 76px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(20px, 4vw, 60px); border-bottom: 1px solid var(--line); background: rgba(10,14,16,.94); backdrop-filter: blur(14px); }
.admin-header .brand { position: static; }
.admin-public-link { color: rgba(255,255,255,.62); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-public-link:hover { color: var(--acid); }
.admin-main { width: min(100%, 1560px); min-height: calc(100vh - 76px); margin: 0 auto; padding: clamp(60px, 7vw, 110px) clamp(20px, 4vw, 60px); }
.auth-panel { width: min(100%, 620px); margin: 5vh auto 0; padding: clamp(28px, 5vw, 62px); border: 1px solid var(--line); background: linear-gradient(145deg, #151c20, #0b0f11); }
.auth-panel h1 { margin: 0 0 26px; font-size: clamp(50px, 8vw, 90px); line-height: .86; letter-spacing: -.065em; text-transform: uppercase; }
.auth-panel > p:not(.eyebrow):not(.security-note) { color: rgba(255,255,255,.6); }
.security-note { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: rgba(255,255,255,.42); font-size: 12px; }
.admin-form { display: grid; gap: 20px; }
.auth-form { margin-top: 36px; }
.admin-form label { display: grid; gap: 9px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-form input, .admin-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 0; outline: 0; padding: 15px 16px; color: white; background: #0d1215; font: 500 15px/1.5 Inter, Pretendard, "Noto Sans KR", sans-serif; text-transform: none; transition: border-color .2s, background .2s; }
.admin-form textarea { resize: vertical; min-height: 90px; }
.admin-form input:focus, .admin-form textarea:focus { border-color: var(--acid); background: #10171a; }
.admin-form input[type="color"] { min-height: 54px; padding: 6px; cursor: pointer; }
.admin-primary { min-height: 54px; border: 1px solid var(--acid); color: var(--ink); background: var(--acid); font-size: 12px; font-weight: 900; letter-spacing: .08em; cursor: pointer; text-transform: uppercase; transition: filter .2s, transform .2s; }
.admin-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.form-message { min-height: 20px; margin: -4px 0; color: var(--acid); font-size: 12px; }
.admin-dashboard-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 70px; }
.admin-dashboard-head h1 { margin: 0; font-size: clamp(60px, 9vw, 130px); line-height: .8; letter-spacing: -.07em; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-actions button, .admin-section-title button, .admin-item-actions button, .admin-item-actions a, .admin-warning button { padding: 10px 13px; border: 1px solid var(--line); color: var(--paper); background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .06em; cursor: pointer; text-transform: uppercase; }
.admin-actions button:hover, .admin-section-title button:hover, .admin-item-actions button:hover, .admin-item-actions a:hover { border-color: var(--acid); color: var(--acid); }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); gap: 18px; align-items: start; }
.admin-editor, .admin-game-list { padding: clamp(24px, 3vw, 42px); border: 1px solid var(--line); background: #0d1215; }
.admin-game-list { position: sticky; top: 94px; }
.admin-section-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-section-title h2 { margin: 0; font-size: clamp(23px, 2.4vw, 36px); letter-spacing: -.04em; }
.admin-section-title span { color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-game-item { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.admin-game-item:first-child { padding-top: 0; }
.admin-game-item h3 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.admin-game-item p { margin: 6px 0 0; color: rgba(255,255,255,.45); font-size: 11px; }
.admin-item-actions { display: flex; gap: 5px; }
.admin-item-actions .danger:hover { border-color: #ff6666; color: #ff8888; }
.admin-warning { margin-top: 18px; padding: 25px 30px; border: 1px solid rgba(199,255,47,.35); background: rgba(199,255,47,.045); }
.admin-warning strong { color: var(--acid); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.admin-warning p { max-width: 850px; color: rgba(255,255,255,.56); font-size: 13px; }
.empty-state { padding: 50px 20px; border: 1px dashed var(--line); color: rgba(255,255,255,.5); text-align: center; }
.admin-footer-link:hover { color: var(--acid); }
.admin-secondary { min-height: 52px; border: 1px solid var(--line); color: var(--paper); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-button-link { display: grid; place-items: center; }
.admin-mode { margin: 25px 0 0; color: rgba(255,255,255,.5); font-size: 12px; }
.admin-actions a { padding: 10px 13px; border: 1px solid var(--line); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.admin-tabs { display: flex; gap: 7px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.admin-tabs button { flex: 0 0 auto; padding: 13px 18px; border: 1px solid var(--line); color: rgba(255,255,255,.6); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.admin-tabs button.active, .admin-tabs button:hover { color: var(--ink); border-color: var(--acid); background: var(--acid); }
.cms-workspace { padding: clamp(24px,4vw,48px); border: 1px solid var(--line); background: #0d1215; }
.cms-single-form { max-width: 920px; }
.cms-page-settings { margin-bottom: 28px; border: 1px solid var(--line); }
.cms-page-settings summary { padding: 18px 22px; cursor: pointer; color: var(--acid); font-size: 12px; font-weight: 800; }
.cms-page-settings form { padding: 5px 22px 24px; }
.cms-collection-layout { grid-template-columns: minmax(280px,.65fr) minmax(0,1.35fr); }
.cms-list-item { width: 100%; display: grid; gap: 5px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); background: transparent; cursor: pointer; text-align: left; }
.cms-list-item:hover strong { color: var(--acid); }
.cms-list-item strong { font-size: 15px; }
.cms-list-item span { color: rgba(255,255,255,.38); font-size: 10px; }

/* CMS detail pages */
.article-hero { min-height: 88svh; display: flex; align-items: flex-end; padding: 160px var(--pad) 80px; background-position: center; background-size: cover; }
.article-hero > div { width: min(100%, var(--max)); margin: 0 auto; }
.article-hero h1 { max-width: 1200px; margin: 0; font-size: clamp(55px,9vw,140px); line-height: .88; letter-spacing: -.065em; word-break: keep-all; }
.article-excerpt { max-width: 680px; margin: 38px 0 0 auto; color: rgba(255,255,255,.68); font-size: clamp(17px,1.6vw,23px); }
.article-body { width: min(100% - (2 * var(--pad)), 920px); margin: 0 auto; padding: clamp(80px,11vw,170px) 0; }
.article-lead { margin: 0; color: var(--paper-dim); font-size: clamp(22px,3vw,42px); line-height: 1.55; letter-spacing: -.025em; white-space: pre-line; word-break: keep-all; }
.goods-detail { padding-top: 150px; }
.goods-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px,8vw,120px); align-items: center; }
.goods-detail-visual { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; color: var(--ink); background: linear-gradient(135deg,#d4e89d,#f2f7df); }
.goods-detail-visual strong { position: relative; z-index: 1; font-size: clamp(60px,8vw,130px); line-height: .8; letter-spacing: -.08em; transform: rotate(-8deg); }
.goods-detail-copy h1 { margin: 0 0 25px; font-size: clamp(48px,7vw,105px); line-height: .88; letter-spacing: -.065em; }
.goods-spec { color: var(--acid); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.goods-description { margin: 38px 0; color: var(--paper-dim); font-size: clamp(18px,1.8vw,26px); word-break: keep-all; }
.goods-detail-actions { margin: 35px 0; }
.goods-buy { display: inline-grid; place-items: center; min-width: 180px; padding: 0 24px; }
.developer-detail { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.developer-portrait { position: relative; min-height: 100svh; display: grid; place-items: center; background-position: center; background-size: cover; }
.developer-portrait span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); font-size: clamp(180px,28vw,480px); line-height: .8; font-weight: 950; }
.developer-copy { display: flex; flex-direction: column; justify-content: center; padding: 140px clamp(30px,6vw,100px) 80px; }
.developer-copy h1 { margin: 0; font-size: clamp(54px,7.5vw,120px); line-height: .86; letter-spacing: -.065em; white-space: pre-line; }
.developer-bio { margin: 48px 0 20px; color: var(--acid); font-size: clamp(19px,2vw,30px); word-break: keep-all; }
.developer-description { color: var(--paper-dim); font-size: 17px; line-height: 1.8; word-break: keep-all; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.product-card { color: var(--ink); background: #e8e8e1; }
.product-visual { position: relative; aspect-ratio: 1 / .88; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #d9dad2, #f7f6ef); }
.product-card:nth-child(2) .product-visual { background: linear-gradient(135deg, #9eafad, #dfe7e2); }
.product-card:nth-child(3) .product-visual { background: linear-gradient(135deg, #181d20, #3b4448); color: white; }
.product-card:nth-child(4) .product-visual { background: linear-gradient(135deg, #d4e89d, #f2f7df); }
.product-word { position: relative; z-index: 1; font-size: clamp(48px, 7vw, 116px); line-height: .82; font-weight: 950; letter-spacing: -.08em; transform: rotate(-8deg); text-transform: uppercase; }
.product-orbit { position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; opacity: .18; }
.product-orbit::before, .product-orbit::after { content: ""; position: absolute; inset: 15%; border: 1px solid currentColor; border-radius: 50%; }
.product-orbit::after { inset: 31%; }
.product-info { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 25px 26px; border-top: 1px solid rgba(8,11,13,.16); }
.product-info h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.product-info p { margin: 5px 0 0; color: #62696b; font-size: 12px; }
.buy-button { min-width: 92px; padding: 12px 16px; border: 1px solid var(--ink); background: transparent; color: inherit; cursor: pointer; font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s, background .2s; }
.buy-button:hover { color: var(--paper); background: var(--ink); }

.toast { position: fixed; z-index: 500; right: 24px; bottom: 24px; padding: 16px 20px; color: var(--ink); background: var(--acid); font-weight: 800; transform: translateY(120px); opacity: 0; transition: .3s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

.news-feature { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 600px; border: 1px solid var(--line); }
.news-feature-art { min-height: 450px; background: linear-gradient(120deg, rgba(8,11,13,.15), rgba(8,11,13,.55)), url("assets/hero-palace.png") center/cover; }
.news-feature-copy { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(30px, 5vw, 64px); }
.news-feature-copy time { color: var(--acid); font-size: 11px; letter-spacing: .12em; }
.news-feature-copy h2 { margin: auto 0 28px; font-size: clamp(36px, 4.5vw, 70px); line-height: 1; letter-spacing: -.05em; word-break: keep-all; }
.news-feature-copy p { margin: 0; color: rgba(255,255,255,.58); }
.news-list { margin-top: 90px; }
.news-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 40px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.news-row:last-child { border-bottom: 1px solid var(--line); }
.news-row time { color: rgba(255,255,255,.48); font-size: 11px; letter-spacing: .1em; }
.news-row h3 { margin: 0; font-size: clamp(22px, 2.4vw, 38px); letter-spacing: -.035em; word-break: keep-all; }
.news-row .arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .2s, color .2s; }
.news-row:hover .arrow { color: var(--ink); background: var(--acid); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { height: 72px; grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .header-meta { display: none; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    padding: 90px var(--pad) 40px;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .menu-open .main-nav { transform: none; }
  .main-nav a { font-size: clamp(42px, 11vw, 74px); line-height: 1; letter-spacing: -.05em; }
  .main-nav a::after { bottom: -3px; }
  .hero::before { background-position: 62% center; }
  .hero-bottom { grid-template-columns: 1fr auto; }
  .hero-index { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .split-intro { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .news-card { min-height: 340px; }
  .manifesto-row { grid-template-columns: 100px 1fr; gap: 25px; }
  .game-card-content { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-copy { min-height: 420px; }
  .game-story { grid-template-columns: 1fr; }
  .game-story .text-link { grid-column: 1; }
  .admin-dashboard-head { align-items: flex-start; flex-direction: column; }
  .admin-actions { justify-content: flex-start; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-game-list { position: static; }
  .goods-detail-grid, .developer-detail { grid-template-columns: 1fr; }
  .developer-portrait { min-height: 60svh; }
}

@media (max-width: 620px) {
  .hero-title { font-size: clamp(55px, 19vw, 92px); }
  .hero-content { padding-bottom: 42px; }
  .hero-bottom { grid-template-columns: 1fr; margin-top: 32px; }
  .round-link { width: 66px; height: 66px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(8,11,13,.25); }
  .stat:last-child { border-bottom: 0; }
  .feature-game { min-height: 78svh; }
  .feature-caption { align-items: flex-start; flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .page-hero { min-height: 62svh; }
  .page-title { font-size: 20vw; }
  .manifesto-row { grid-template-columns: 1fr; gap: 14px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card { min-height: 300px; }
  .game-card { min-height: 72svh; }
  .game-card-content { padding: 25px; }
  .product-info { grid-template-columns: 1fr; }
  .buy-button { width: 100%; }
  .news-row { grid-template-columns: 1fr auto; gap: 16px; }
  .news-row time { grid-column: 1 / -1; }
  .game-facts { grid-template-columns: 1fr; }
  .game-facts > div { min-height: 130px; }
  .game-facts strong { margin-top: 25px; }
  .game-detail-hero h1 { font-size: 18vw; }
  .field-row { grid-template-columns: 1fr; }
  .admin-header .brand span:last-child { font-size: 13px; }
  .admin-public-link { font-size: 9px; }
  .admin-game-item { grid-template-columns: 1fr; }
  .admin-item-actions { flex-wrap: wrap; }
}

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