:root {
  --ink-950: #0f0d0b;
  --ink-900: #151312;
  --ink-700: #3c3730;
  --ink-600: #50483e;
  --ink-500: #676056;
  --paper-50: #fbf7ef;
  --paper-100: #f3eadb;
  --paper-200: #e5d3b6;
  --forest-975: #0b1d18;
  --forest-950: #10261f;
  --forest-850: #18362e;
  --forest-650: #295045;
  --copper-700: #8f4a29;
  --copper-600: #b86b3d;
  --copper-300: #f0b06d;
  --wine-700: #7b2e3b;
  --violet-650: #4b4167;
  --mist-100: #e9eef0;
  --surface: #fffaf1;
  --white: #fff;
  --line: rgba(21, 19, 18, 0.16);
  --line-dark: rgba(255, 255, 255, 0.18);
  --shadow-card: 0 18px 54px rgba(21, 19, 18, 0.1);
  --shadow-raised: 0 28px 90px rgba(21, 19, 18, 0.2);
  --radius: 8px;
  --space-100: 8px;
  --space-150: 12px;
  --space-200: 16px;
  --space-300: 24px;
  --space-400: 32px;
  --space-600: 48px;
  --space-800: 64px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink-900);
  background: var(--paper-50);
  font-family: "Noto Sans KR", "Malgun Gothic", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body {
  margin: 0;
  min-width: 320px;
}

main {
  overflow: clip;
}

a {
  color: inherit;
}

.age-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-300);
  padding: 13px clamp(18px, 5vw, 72px);
  color: var(--ink-900);
  background: var(--paper-100);
  border-bottom: 1px solid rgba(123, 46, 59, 0.24);
}

.age-gate div {
  display: flex;
  align-items: center;
  gap: var(--space-150);
  min-width: 260px;
}

.age-gate p {
  max-width: 860px;
  margin: 0;
  font-size: 14px;
}

.age-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--wine-700);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 86vh;
  color: var(--white);
  background-image: url("assets/hero-eraweaver-v2.png");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 13, 11, 0.94) 0%, rgba(15, 13, 11, 0.78) 42%, rgba(15, 13, 11, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 29, 24, 0.2) 0%, rgba(11, 29, 24, 0.82) 100%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24%;
  content: "";
  background: linear-gradient(180deg, rgba(11, 29, 24, 0), rgba(11, 29, 24, 0.72));
}

.hero-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-300);
  padding: clamp(20px, 4vw, 34px) clamp(18px, 6vw, 88px) 0;
}

.brand,
.nav-links {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: var(--space-100);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: var(--ink-900);
  background: var(--copper-300);
  font-size: 12px;
}

.nav-links {
  gap: var(--space-300);
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.72fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
  padding: clamp(64px, 9vw, 124px) clamp(18px, 6vw, 88px) clamp(56px, 8vw, 96px);
}

.hero-copy-block {
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.world-feed .eyebrow {
  color: var(--copper-300);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(78px, 14vw, 156px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 var(--space-150);
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-kicker {
  max-width: 760px;
  margin: var(--space-300) 0 0;
  color: #f8dbad;
  font-size: clamp(25px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.18;
}

.hero-copy {
  max-width: 700px;
  margin: var(--space-300) 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

.english-line {
  margin: var(--space-200) 0 0;
  color: #f8dbad;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-150);
  margin-top: var(--space-400);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--space-300);
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: var(--ink-900);
  background: var(--copper-300);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.play-surface {
  padding: var(--space-300);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 38, 31, 0.92), rgba(15, 13, 11, 0.88)),
    rgba(16, 38, 31, 0.88);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}

.surface-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-200);
  padding-bottom: var(--space-200);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.surface-top span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 900;
}

.surface-top strong {
  color: var(--copper-300);
  text-align: right;
}

.scene-card {
  margin: var(--space-300) 0;
  padding: var(--space-300);
  border: 1px solid rgba(240, 176, 109, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.08);
}

.scene-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.scene-card .speaker {
  margin-bottom: var(--space-100);
  color: var(--copper-300);
  font-size: 14px;
  font-weight: 900;
}

.choice-stack {
  display: grid;
  gap: var(--space-100);
}

.choice-stack button {
  min-height: 44px;
  padding: 0 var(--space-200);
  border: 1px solid rgba(240, 176, 109, 0.4);
  border-radius: var(--radius);
  color: #ffe4bd;
  background: rgba(240, 176, 109, 0.1);
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.promotion-meter {
  height: 8px;
  margin-top: var(--space-200);
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
}

.promotion-meter span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--copper-300), #f8dbad);
}

.consequence-board {
  display: grid;
  gap: var(--space-100);
  margin: var(--space-300) 0 0;
}

.consequence-board div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-200);
  padding-top: var(--space-100);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.consequence-board dt,
.consequence-board dd {
  margin: 0;
}

.consequence-board dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 900;
}

.consequence-board dd {
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
}

.quick-doors,
.ripple-hook,
.world-feed,
.era-strip,
.comparison,
.waitlist-panel {
  padding: clamp(56px, 8vw, 98px) clamp(18px, 6vw, 88px);
}

.ripple-hook {
  background:
    radial-gradient(circle at 78% 12%, rgba(240, 176, 109, 0.16), transparent 28%),
    linear-gradient(180deg, var(--paper-50), var(--paper-100));
}

.ripple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--space-400);
}

.ripple-card {
  position: relative;
  min-height: 262px;
  padding: var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.ripple-card::after {
  position: absolute;
  top: 31px;
  right: -20px;
  width: 40px;
  height: 1px;
  content: "";
  background: rgba(184, 107, 61, 0.36);
}

.ripple-card:last-child::after {
  display: none;
}

.ripple-card span {
  display: block;
  margin-bottom: var(--space-200);
  color: var(--copper-600);
  font-size: 13px;
  font-weight: 900;
}

.ripple-card p {
  margin: 0;
}

.ripple-card.public {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-950), var(--forest-650));
}

.ripple-card.public span {
  color: var(--copper-300);
}

.ripple-card.public p {
  color: rgba(255, 255, 255, 0.84);
}

.quick-doors {
  background:
    linear-gradient(180deg, var(--forest-975) 0%, var(--paper-50) 42%),
    var(--paper-50);
}

.quick-doors .section-heading {
  color: var(--white);
}

.quick-doors .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  max-width: 820px;
}

.section-heading > p:not(.eyebrow),
.feed-heading > p {
  margin: var(--space-200) 0 0;
  color: var(--ink-600);
  font-size: 19px;
}

.door-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--space-400);
}

.door-card {
  min-height: 302px;
  display: flex;
  flex-direction: column;
  padding: var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.door-card.featured {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 38, 31, 0.98), rgba(41, 80, 69, 0.94)),
    var(--forest-950);
}

.door-card:nth-child(2) {
  background: #f8f1e7;
}

.door-card:nth-child(3) {
  background: #eef5f1;
}

.door-card:nth-child(4) {
  background: #f7edf0;
}

.door-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-150);
  margin-bottom: var(--space-300);
  color: var(--copper-600);
  font-size: 13px;
  font-weight: 900;
}

.door-card.featured .door-meta {
  color: var(--copper-300);
}

.door-meta strong {
  color: var(--ink-500);
  text-align: right;
  font-size: 12px;
}

.door-card.featured .door-meta strong {
  color: rgba(255, 255, 255, 0.72);
}

.door-card p {
  margin: 0;
}

.door-card.featured p {
  color: rgba(255, 255, 255, 0.84);
}

.door-card a {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 13px;
  border-radius: var(--radius);
  color: var(--ink-900);
  background: var(--copper-300);
  font-weight: 900;
  text-decoration: none;
}

.world-feed {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 29, 24, 0.94), rgba(75, 65, 103, 0.74)),
    var(--forest-950);
}

.feed-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.feed-heading > p {
  color: rgba(255, 255, 255, 0.78);
}

.feed-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr 0.95fr;
  gap: 16px;
  margin-top: var(--space-400);
}

.feed-card {
  min-height: 214px;
  padding: var(--space-300);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.feed-card span {
  display: block;
  margin-bottom: var(--space-200);
  color: var(--copper-300);
  font-size: 13px;
  font-weight: 900;
}

.feed-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.feed-card.chronicle {
  background: rgba(255, 250, 241, 0.14);
}

.feed-card.world {
  background: rgba(240, 176, 109, 0.13);
}

.era-strip {
  background: var(--paper-50);
}

.era-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--space-400);
}

.era-track article,
.compare-grid article {
  padding: var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow-card);
}

.era-track span,
.compare-grid span {
  display: block;
  margin-bottom: var(--space-200);
  color: var(--copper-600);
  font-size: 13px;
  font-weight: 900;
}

.era-track p,
.compare-grid p {
  margin: 0;
}

.comparison {
  background: var(--mist-100);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: var(--space-400);
}

.compare-grid article:nth-child(2) {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest-950), var(--forest-650));
}

.compare-grid article:nth-child(2) span {
  color: var(--copper-300);
}

.waitlist-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: var(--white);
}

.waitlist-panel p {
  max-width: 720px;
  margin: 18px 0 0;
}

form {
  padding: var(--space-300);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
  box-shadow: var(--shadow-raised);
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
}

input,
form button {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius);
  font: inherit;
}

input {
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

form button {
  margin-top: var(--space-150);
  border: 0;
  color: var(--white);
  background: var(--violet-650);
  font-weight: 900;
}

input:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

@media (max-width: 1120px) {
  .hero-grid,
  .feed-heading {
    grid-template-columns: 1fr;
  }

  .play-surface {
    max-width: 640px;
  }

  .door-grid,
  .ripple-grid,
  .feed-grid,
  .era-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ripple-card::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .age-gate,
  .hero-nav,
  .waitlist-panel {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-100);
  }

  .hero {
    min-height: auto;
    background-position: 64% center;
  }

  .hero-grid {
    padding-top: 72px;
  }

  .play-surface {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .door-grid,
  .ripple-grid,
  .feed-grid,
  .era-track,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .door-card,
  .feed-card {
    min-height: auto;
  }
}
