:root {
  color-scheme: dark;
  --bg: #091420;
  --panel: #0e1d2b;
  --text: #f0f7fc;
  --muted: #adbdcd;
  --line: #2a4053;
  --signal: #63e8ee;
  --amber: #ffbf59;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
:lang(ko) body { word-break: keep-all; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
button, select, input { font: inherit; }
a:focus-visible, select:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.shell { width: min(1270px, calc(100% - 96px)); margin-inline: auto; }
.sr-only:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus { position: absolute; z-index: 5; top: 12px; left: 12px; padding: 12px; background: var(--panel); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 74px; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark img { flex: none; border-radius: 6px; }
.wordmark span { font-size: .88rem; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }
.wordmark b { color: var(--signal); }
.header-links, .header-actions { display: flex; align-items: center; gap: 14px; }
.header-links a {
  display: grid;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}
.header-links a:hover, .footer-inner a:hover { color: var(--signal); }
.language select, .share-button {
  padding: 0 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  background: var(--panel);
}
.language select { max-width: 100%; cursor: pointer; }
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  gap: 7px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.share-button:hover { border-color: var(--signal); }
.share-button [aria-hidden] { color: var(--signal); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .81fr) minmax(0, 1.19fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  padding-block: clamp(52px, 8vw, 111px) clamp(40px, 6.6vw, 92px);
}
.eyebrow {
  color: var(--signal);
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.9rem, 5.25vw, 5.1rem);
  font-weight: 855;
  line-height: .98;
  letter-spacing: -.064em;
  text-wrap: balance;
}
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--signal); font-style: normal; }
:lang(ko) .hero h1, :lang(ja) .hero h1 { font-size: clamp(2.35rem, 4.55vw, 4.35rem); line-height: 1.15; letter-spacing: -.064em; }
.hero-description {
  max-width: 38ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
  line-height: 1.55;
}
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 34px);
  min-height: 54px;
  margin-top: 26px;
  padding: 10px 17px;
  border: 1px solid var(--signal);
  border-radius: 2px;
  color: #061820;
  background: var(--signal);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}
.play-button:hover { background: #a9f8fb; }
.play-button [aria-hidden] { font-size: 1.3rem; }
.eligibility { display: flex; align-items: center; gap: 7px; margin-top: 11px; color: var(--muted); font-size: .82rem; }
.eligibility b { color: var(--amber); font-family: var(--mono); }
.hero-figure, .field-figure { min-width: 0; }
.hero-image { position: relative; border: 1px solid #3f687b; background: #102d40; box-shadow: 0 15px 48px #050a11; }
.hero-image::before, .hero-image::after {
  content: "";
  position: absolute;
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.hero-image::before { inset: -1px auto auto -1px; border-top: 2px solid var(--signal); border-left: 2px solid var(--signal); }
.hero-image::after { inset: auto -1px -1px auto; border-bottom: 2px solid var(--signal); border-right: 2px solid var(--signal); }
.hero-image img, .field-figure img { width: 100%; }
figcaption { color: var(--muted); font-size: .79rem; line-height: 1.4; }
.hero-figure figcaption { margin-top: 9px; text-align: right; }

.stat-band { border-block: 1px solid var(--line); background: var(--panel); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 18px 22px; border-left: 1px solid var(--line); }
.stats div:last-child { border-right: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: .82rem; }
.stats dd { margin: 0; color: var(--signal); font-size: clamp(1.16rem, 2.05vw, 1.72rem); font-weight: 760; line-height: 1.13; overflow-wrap: anywhere; }

.field-section, .press-section { padding-block: clamp(49px, 6.6vw, 96px); }
.section-heading { margin-bottom: clamp(20px, 3vw, 34px); }
.section-heading h2 { margin-top: 8px; font-size: clamp(2.2rem, 4.4vw, 4.05rem); line-height: 1.05; letter-spacing: -.047em; text-wrap: balance; }
.section-heading p:not(.eyebrow) { margin-top: 12px; color: var(--muted); line-height: 1.45; }
.field-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: clamp(24px, 5vw, 74px); align-items: center; }
.field-figure img { border: 1px solid var(--line); background: var(--panel); }
.field-figure figcaption { margin-top: 10px; }
.field-info { padding-block: 17px; border-top: 1px solid var(--line); }
.field-info:last-child { border-bottom: 1px solid var(--line); }
.field-info h3 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.3; }
.field-info p { margin-top: 5px; color: var(--muted); line-height: 1.55; }

.press-section { border-block: 1px solid var(--line); background: var(--panel); }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.downloads a {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  line-height: 1.28;
  text-decoration: none;
}
.downloads a:hover { border-color: var(--signal); }
.downloads strong { font-size: .95rem; }
.download-number, .file-size { color: var(--muted); font-family: var(--mono); font-size: .76rem; }
.file-size { white-space: nowrap; }
.download-arrow { color: var(--signal); font-size: 1.15rem; }
.footer-inner { min-height: 76px; color: var(--muted); font-size: .86rem; }
.footer-inner a { display: grid; align-items: center; min-height: 44px; }

.status {
  position: fixed;
  z-index: 3;
  inset: auto max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) auto;
  padding: 10px 14px;
  border: 1px solid var(--signal);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: 0 8px 28px #050a11;
}
.share-dialog { width: min(calc(100% - 28px), 460px); padding: 22px; border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.share-dialog::backdrop { background: #050a11ce; }
.share-dialog h2 { margin-bottom: 14px; }
.share-dialog input { display: block; width: 100%; margin-top: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--text); background: var(--bg); }
.share-dialog form { display: flex; justify-content: end; margin-top: 16px; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .header-inner { gap: 16px; }
  .header-links, .header-actions { gap: 8px; }
  .downloads a { gap: 9px; }
}

@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 63px; gap: 9px; }
  .header-links { display: none; }
  .header-actions { min-width: 0; }
  .wordmark span { font-size: .76rem; letter-spacing: .065em; }
  .wordmark img { width: 31px; height: 31px; }
  .share-text { display: none; }
  .language { min-width: 0; }
  .language select { padding-inline: 5px; font-size: .82rem; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-block: 36px 25px; }
  .hero h1 { font-size: clamp(2.65rem, 8.8vw, 4.3rem); }
  .hero-description { margin-top: 16px; }
  .play-button { margin-top: 20px; }
  .stats div { padding: 14px 9px; }
  .stats dt { font-size: .74rem; }
  .field-layout, .downloads { grid-template-columns: 1fr; }
  .field-info { padding-block: 13px; }
}

@media (max-width: 355px) {
  .wordmark { gap: 6px; }
  .wordmark span { font-size: .69rem; }
  .site-header .shell { width: calc(100% - 24px); }
  .downloads a { grid-template-columns: auto 1fr auto; }
  .downloads .file-size { grid-column: 2; grid-row: 2; }
  .download-arrow { grid-column: 3; grid-row: 1 / span 2; }
}
