:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07131d;
  color: #eef7fb;
  --page-width: 72rem;
  --copy-width: 54rem;
  --header-height: 4.5rem;
  --line: rgb(169 233 247 / 30%);
  --muted: #aed0dc;
  --surface: rgb(5 22 33 / 92%);
  --surface-light: rgb(15 49 67 / 80%);
  --accent: #a9e9f7;
  --gold: #f4d35e;
  --focus: #fff29a;
  --motion: 175ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 72% 4%, rgb(32 111 145 / 34%) 0, transparent 29rem),
    linear-gradient(#0b2537, #07131d 38rem);
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.4rem;
  color: #041117;
  background: var(--focus);
  transition: transform var(--motion);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgb(7 19 29 / 94%);
  backdrop-filter: blur(0.75rem);
}

.site-header-inner,
footer,
main {
  width: min(var(--page-width), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  min-width: 0;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-name-korean {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--motion), background-color var(--motion), transform var(--motion);
}

nav a:hover,
nav a[aria-current="page"] {
  color: #fff;
  background: rgb(169 233 247 / 12%);
}

nav a:active {
  transform: translateY(1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.95fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

.hero-intro,
.hero-action,
.hero-media,
.card-grid > *,
.split-section > *,
.page-copy > *,
.guide-layout > * {
  min-width: 0;
}

.hero-intro {
  grid-column: 1;
  grid-row: 1;
}

.hero-action {
  grid-column: 1;
  grid-row: 2;
}

.hero > .fact-strip {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
}

.hero > .hero-media {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.5rem;
  color: #8ed8ed;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dd,
li {
  overflow-wrap: break-word;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.65rem, 8vw, 5.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  max-width: 24ch;
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.14;
}

h3 {
  margin-top: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.lead {
  max-width: 42rem;
  margin: 1.5rem 0;
  color: #d5e8ef;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.fact-strip div {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border-left: 2px solid var(--gold);
  background: rgb(5 22 33 / 55%);
}

.fact-strip dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-strip dd {
  margin: 0.15rem 0 0;
  color: #fff;
  font-weight: 700;
}

.hero-media,
.guide-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 35%);
  overflow: clip;
}

.media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020b10;
  overflow: hidden;
}

.media-stage picture,
.media-stage img,
.media-stage video {
  display: block;
  width: 100%;
  height: 100%;
}

.media-stage img,
.media-stage video {
  object-fit: cover;
}

.media-stage video {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.media-toggle {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 46px;
  min-width: 44px;
  height: 46px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #eef7fb;
  background: rgb(5 22 33 / 88%);
  box-shadow: 0 0.3rem 1rem rgb(0 0 0 / 38%);
}

.media-toggle:hover {
  color: #07131d;
}

.media-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.media-toggle[data-state="paused"] .media-toggle-pause,
.media-toggle[data-state="playing"] .media-toggle-play {
  display: none;
}

.hero-media figcaption,
.guide-media figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.play-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

button,
.button-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border: 1px solid #8ed8ed;
  border-radius: 0.55rem;
  color: #041117;
  background: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  transition: color var(--motion), background-color var(--motion), border-color var(--motion), transform var(--motion), opacity var(--motion);
}

button:hover:not(:disabled),
.button-link:hover {
  border-color: var(--gold);
  background: var(--gold);
}

button:active:not(:disabled),
.button-link:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.52;
}

.secondary-button {
  color: #eef7fb;
  background: transparent;
}

#selector-status {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
}

.selector-help {
  margin-right: auto;
}

.disclaimer {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.real-dokdo {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}

.korea-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.korea-flag {
  font-size: 1rem;
  line-height: 1;
}

.real-dokdo-copy {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 2px solid var(--gold);
  background: rgb(5 22 33 / 55%);
}

.real-dokdo-copy p:first-child {
  margin-top: 0;
}

.real-dokdo-copy p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.card-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface-light);
  transition: border-color var(--motion), background-color var(--motion), transform var(--motion);
}

.card-grid article {
  overflow: hidden;
}

.card-grid article:hover,
.faq-list details:hover {
  border-color: rgb(244 211 94 / 70%);
  background: rgb(18 58 78 / 86%);
}

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

.card-grid article .play-modes-image {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #020b10;
}

.card-copy,
.faq-list details {
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.card-grid p,
.split-section p,
.steps,
.faq-list p,
.page-copy p,
.page-copy li,
.guide-copy p,
.guide-copy li {
  color: #d5e8ef;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 8vw, 7rem);
}

.split-section p:first-child {
  margin-top: 0;
}

.section-image {
  display: block;
  width: min(100%, 28rem);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.steps {
  max-width: 50rem;
  padding-left: 1.4rem;
}

.steps li {
  padding: 0.4rem 0 0.4rem 0.5rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent);
  font-weight: 700;
  transition: color var(--motion);
}

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

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: var(--copy-width);
}

.faq-list summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform var(--motion);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin-bottom: 0;
}

.closing-cta {
  max-width: var(--copy-width);
}

.page-hero {
  max-width: var(--copy-width);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.page-hero h1 {
  max-width: 15ch;
}

.breadcrumbs {
  padding-top: 1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--muted);
}

.breadcrumbs a {
  min-height: 44px;
}

.page-copy {
  display: grid;
  grid-template-columns: minmax(12rem, 0.45fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 7rem);
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}

.page-copy h2,
.guide-contents h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.guide-contents {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 3rem);
  padding-top: 3rem;
  overflow: auto;
}

.guide-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-contents nav,
.guide-contents a {
  display: block;
}

.guide-contents a {
  min-height: 36px;
  padding: 0.25rem 0;
  color: var(--muted);
}

.guide-copy {
  max-width: var(--copy-width);
}

.guide-copy > section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.guide-copy > section:last-child {
  border-bottom: 0;
}

.guide-copy h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.guide-media {
  width: min(100%, 34rem);
  margin-top: 2rem;
}

.guide-media-wide {
  width: 100%;
}

.guide-media img {
  display: block;
  width: 100%;
  height: auto;
}

.notice {
  padding: 1rem 1.2rem;
  border-left: 0.25rem solid var(--gold);
  background: var(--surface);
}

.error-page {
  max-width: var(--copy-width);
  min-height: calc(100vh - var(--header-height) - 8rem);
  padding-block: clamp(5rem, 12vw, 9rem);
}

.error-page h1 {
  max-width: 16ch;
}

.error-links {
  align-items: center;
  gap: 0.75rem 1.25rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 48rem) {
  .hero,
  .real-dokdo,
  .split-section,
  .page-copy,
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .hero-intro,
  .hero-action,
  .hero > .hero-media,
  .hero > .fact-strip {
    grid-column: 1;
    grid-row: auto;
  }

  .media-stage {
    aspect-ratio: 9 / 16;
  }

  .guide-contents {
    position: static;
    max-height: none;
    padding-block: 2.5rem 0;
    overflow: visible;
  }

  .guide-contents ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 26rem) {
  :root {
    --header-height: 7rem;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-block: 0.65rem;
  }

  .site-header nav {
    width: 100%;
  }

  .site-header nav a {
    flex: 1;
    justify-content: center;
  }

  .fact-strip,
  .guide-contents ol {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
