:root {
  --film-gold: #d6a94a;
  --film-ink: #070a0f;
  --film-paper: #f4ead1;
}

html,
body,
#root {
  overflow-x: hidden;
}

.gwangbok-home {
  position: relative;
  gap: 1.25rem !important;
  justify-content: flex-start !important;
  padding: 0 1rem 3rem !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(139, 101, 34, 0.16), transparent 34rem),
    linear-gradient(180deg, #070a0f 0%, #0a111b 68%, #070a0f 100%);
}

.gwangbok-home::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.19;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.025) 4px);
  mix-blend-mode: screen;
}

.gwangbok-home > * {
  position: relative;
  z-index: 1;
}

.home-masthead {
  box-sizing: border-box;
  display: flex;
  width: 100vw;
  min-height: 410px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8rem 1.5rem 3.4rem;
  border-bottom: 1px solid rgba(214, 169, 74, 0.48);
  background:
    linear-gradient(180deg, rgba(3, 5, 9, 0.2) 0%, rgba(3, 5, 9, 0.38) 42%, #070a0f 100%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.72), transparent 35%, transparent 66%, rgba(5, 7, 11, 0.72)),
    url("/game/home/hero-v2.jpg") center 38% / cover no-repeat;
  box-shadow: inset 0 -24px 50px #070a0f;
}

.home-masthead::before {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  content: "1940—1945  ·  KOREAN LIBERATION ARMY ARCHIVE";
  transform: translateX(-50%);
  color: rgba(244, 234, 209, 0.74);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  white-space: nowrap;
}

.home-masthead h1 {
  color: var(--film-paper);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.08;
  text-shadow: 0 3px 24px #000, 0 1px 2px #000;
}

.home-masthead p {
  text-shadow: 0 2px 12px #000;
}

.mission-poster,
.role-grid,
.home-footer {
  width: min(100%, 58rem) !important;
  max-width: none !important;
}

.mission-poster {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 3.25rem) !important;
  border-color: rgba(214, 169, 74, 0.56) !important;
  background:
    linear-gradient(90deg, rgba(9, 7, 4, 0.98) 0%, rgba(9, 7, 4, 0.9) 48%, rgba(9, 7, 4, 0.24) 100%),
    linear-gradient(0deg, rgba(9, 7, 4, 0.82), transparent 68%),
    url("/game/home/press-v2.jpg") center 42% / cover no-repeat !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.mission-poster > * {
  max-width: 34rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.mission-poster .mission-meta {
  align-self: flex-start;
  color: #1b1408;
  background: var(--film-gold);
  text-shadow: none;
}

.role-grid {
  margin-top: 0.35rem;
}

.role-card {
  border-color: rgba(148, 163, 184, 0.25) !important;
  background: linear-gradient(145deg, rgba(24, 35, 52, 0.92), rgba(11, 17, 27, 0.9)) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

.student-card form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
}

.preview-entry {
  min-height: 185px;
  padding: 1.6rem 1.8rem !important;
  border-color: rgba(86, 178, 213, 0.54) !important;
  background:
    linear-gradient(90deg, rgba(4, 19, 31, 0.97) 0%, rgba(4, 19, 31, 0.82) 56%, rgba(4, 19, 31, 0.32) 100%),
    url("/game/home/oss-v2.jpg") center 48% / cover no-repeat !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3);
}

.preview-entry:hover {
  border-color: rgba(125, 211, 252, 0.9) !important;
  transform: translateY(-2px);
}

.preview-entry > div {
  max-width: 35rem;
}

.preview-entry .preview-entry__cta {
  color: #082f49;
  background: #38bdf8;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.24);
}

.home-footer {
  padding-top: 1.2rem;
}

.home-reconstruction-note {
  line-height: 1.55;
}

@media (min-width: 640px) {
  .preview-entry {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .home-masthead {
    min-height: 360px;
    padding: 7rem 1.25rem 2.5rem;
    background-position: 58% 40%;
  }

  .home-masthead::before {
    font-size: 0.61rem;
    letter-spacing: 0.11em;
  }

  .home-masthead h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9.8vw, 2.65rem);
    white-space: normal;
    word-break: keep-all;
  }

  .home-masthead p {
    max-width: 21rem;
    line-height: 1.55;
  }

  .mission-poster {
    min-height: 320px;
    background:
      linear-gradient(180deg, rgba(9, 7, 4, 0.42), rgba(9, 7, 4, 0.96) 58%),
      url("/game/home/press-v2.jpg") 58% center / cover no-repeat !important;
  }

  .preview-entry {
    min-height: 270px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end !important;
    background:
      linear-gradient(180deg, rgba(4, 19, 31, 0.32), rgba(4, 19, 31, 0.96) 61%),
      url("/game/home/oss-v2.jpg") center 35% / cover no-repeat !important;
  }

  .preview-entry .preview-entry__cta {
    text-align: center;
  }

  .preview-mode-badge {
    top: auto !important;
    bottom: 0.75rem;
    max-width: calc(100vw - 1.5rem);
  }
}
