:root {
  --bg: #070910;
  --panel: #0d1120;
  --panel-2: #11172a;
  --line: rgba(255,255,255,.1);
  --line-strong: rgba(255,255,255,.18);
  --text: #f6f7fb;
  --muted: #929bb1;
  --muted-2: #65708a;
  --accent: #d7ff63;
  --accent-2: #8dc6ff;
  --danger: #ff8e8e;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 30px 80px rgba(0,0,0,.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 68% 2%, rgba(83,112,180,.12), transparent 34%),
    linear-gradient(180deg, #070910 0%, #090c16 45%, #06080e 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button, select, input[type="range"] { accent-color: var(--accent); }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.stars { position: fixed; inset: 0; pointer-events: none; opacity: .5; z-index: -1; }
.stars-a { background-image: radial-gradient(circle, rgba(255,255,255,.75) 0 1px, transparent 1.4px); background-size: 76px 76px; background-position: 13px 22px; }
.stars-b { background-image: radial-gradient(circle, rgba(150,186,255,.55) 0 1px, transparent 1.3px); background-size: 131px 131px; background-position: 41px 59px; opacity: .28; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); }
.header-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.header-badges span { border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 800; letter-spacing: .12em; }

.hero { min-height: 430px; padding: 58px 0 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-copy { max-width: 730px; }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 900; letter-spacing: .18em; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(56px, 9vw, 116px); letter-spacing: -.075em; line-height: .88; font-weight: 900; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { margin: 32px 0 0; max-width: 660px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.85; }
.hero-lead strong { color: var(--text); }
.hero-orbit { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: space-between; }
.orbit-line { position: absolute; left: 74px; right: 52px; top: 50%; border-top: 1px dashed rgba(255,255,255,.18); }
.earth-orb { position: relative; width: 148px; height: 148px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8ce7ff 0%, #4e9cff 24%, #2250b0 65%, #122452 100%); box-shadow: 0 0 65px rgba(60,140,255,.22); z-index: 1; overflow: hidden; }
.earth-orb span { position: absolute; width: 82px; height: 46px; border-radius: 50%; background: #98c96c; left: 10px; top: 48px; transform: rotate(-19deg); opacity: .8; }
.moon-orb { width: 66px; height: 66px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #f8f7ef, #c8c6bd 54%, #777875 100%); box-shadow: 0 0 45px rgba(255,255,255,.11); z-index: 1; }

.simulator-shell { display: grid; grid-template-columns: minmax(0, 1fr) 330px; background: rgba(12,16,29,.92); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(16px); }
.sim-main { padding: 28px; min-width: 0; }
.settings-panel { border-left: 1px solid var(--line); padding: 28px 24px; background: rgba(255,255,255,.018); }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.section-head h2, .panel-head h2, .milestones-section h2, .reality-section h2 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.045em; line-height: 1.06; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.status-pill[data-state="walking"] { color: var(--accent); border-color: rgba(215,255,99,.3); background: rgba(215,255,99,.06); }
.status-pill[data-state="walking"] span { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.status-pill[data-state="paused"] span { background: #ffc66d; }
.status-pill[data-state="arrived"] { color: var(--accent); }
.status-pill[data-state="arrived"] span { background: var(--accent); }

.space-map { position: relative; height: 270px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 20% 50%, rgba(58,104,204,.11), transparent 25%), #090c15; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent); }
.earth { position: absolute; left: 7%; top: 50%; width: 116px; height: 116px; margin-top: -58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #95eaff 0%, #4b9bf2 27%, #23468e 65%, #101c42 100%); box-shadow: 0 0 55px rgba(73,132,255,.22); overflow: hidden; z-index: 3; }
.earth-glow { position: absolute; inset: -18px; border: 1px solid rgba(101,167,255,.12); border-radius: 50%; }
.earth-continent { position: absolute; background: #88bf64; opacity: .78; border-radius: 48% 52% 35% 65%; }
.earth-continent.c1 { width: 54px; height: 29px; left: 8px; top: 39px; transform: rotate(-15deg); }
.earth-continent.c2 { width: 34px; height: 48px; right: 11px; top: 18px; transform: rotate(22deg); }
.earth-continent.c3 { width: 38px; height: 23px; left: 45px; bottom: 11px; transform: rotate(8deg); }
.moon { position: absolute; right: 7%; top: 50%; width: 64px; height: 64px; margin-top: -32px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #f4f2e8, #bdbcb7 58%, #747573 100%); box-shadow: 0 0 35px rgba(255,255,255,.11); z-index: 3; }
.crater { position: absolute; border-radius: 50%; background: rgba(70,72,72,.22); box-shadow: inset 1px 1px 1px rgba(0,0,0,.16); }
.crater-1 { width: 13px; height: 13px; left: 10px; top: 17px; }
.crater-2 { width: 8px; height: 8px; right: 12px; top: 12px; }
.crater-3 { width: 17px; height: 12px; right: 12px; bottom: 13px; }
.route { position: absolute; left: calc(7% + 98px); right: calc(7% + 51px); top: 50%; height: 2px; background: rgba(255,255,255,.12); z-index: 1; }
.route::before { content: ""; position: absolute; inset: -1px 0 auto; border-top: 1px dashed rgba(255,255,255,.1); transform: translateY(-10px); }
.route-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 14px rgba(215,255,99,.25); }
.walker { position: absolute; top: calc(50% - 44px); left: calc(7% + 98px); transform: translateX(-50%); z-index: 4; transition: left .15s linear; text-align: center; }
.walker-body { display: block; font-size: 29px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.walker-tag { display: block; margin-top: 5px; transform: translateX(-3px); border: 1px solid var(--line); background: rgba(7,9,16,.82); color: var(--text); border-radius: 999px; padding: 3px 7px; font-size: 10px; white-space: nowrap; }
.map-label { position: absolute; top: 16px; font-size: 9px; font-weight: 900; letter-spacing: .16em; color: var(--muted-2); }
.map-label-earth { left: 7%; }
.map-label-moon { right: 7%; }

.progress-row { margin: 20px 0 18px; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.progress-copy strong { color: var(--text); }
.progress-track { width: 100%; height: 7px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress-bar { width: 0%; height: 100%; border-radius: inherit; background: var(--accent); box-shadow: 0 0 18px rgba(215,255,99,.22); }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.stat-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; background: rgba(255,255,255,.018); }
.stat-card > span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.stat-card strong { display: block; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.045em; line-height: 1; overflow-wrap: anywhere; }
.stat-card strong small { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.stat-card p { margin: 10px 0 0; color: var(--muted-2); font-size: 11px; }
.stat-primary { background: linear-gradient(135deg, rgba(215,255,99,.07), rgba(255,255,255,.015)); border-color: rgba(215,255,99,.18); }

.controls-row { margin-top: 16px; display: grid; grid-template-columns: auto auto minmax(190px,1fr); gap: 10px; align-items: end; }
.btn { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); padding: 0 18px; font-weight: 850; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.btn-primary { background: var(--accent); color: #111509; border-color: var(--accent); }
.btn-secondary { background: rgba(255,255,255,.04); color: var(--text); }
@media (hover:hover) and (pointer:fine) { .btn:hover { transform: translateY(-1px); } .btn-secondary:hover { border-color: var(--line-strong); background: rgba(255,255,255,.07); } }
.speed-control { min-width: 0; }
.speed-control label { display: block; color: var(--muted); font-size: 10px; margin: 0 0 6px 2px; }
select { width: 100%; min-height: 48px; color: var(--text); background: #0a0e19; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }

.panel-head { margin-bottom: 30px; }
.field-group { margin-bottom: 27px; }
.field-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.field-label label { font-size: 13px; font-weight: 750; }
.field-label output { color: var(--accent); font-size: 12px; font-weight: 850; }
input[type="range"] { width: 100%; cursor: pointer; }
.range-hints { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.estimate-card { border: 1px solid rgba(215,255,99,.2); border-radius: 16px; padding: 17px; background: rgba(215,255,99,.05); }
.estimate-card span { display: block; color: var(--muted); font-size: 10px; }
.estimate-card strong { display: block; margin: 6px 0; font-size: 25px; letter-spacing: -.04em; }
.estimate-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.text-btn { margin-top: 14px; border: 0; background: transparent; color: var(--muted); padding: 7px 0; cursor: pointer; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

.milestones-section { padding: 105px 0 70px; }
.section-head-wide { align-items: end; }
.section-head-wide > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.milestone-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 34px; }
.milestone-item { padding: 22px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 170px; position: relative; transition: background .2s ease; }
.milestone-item.done { background: rgba(215,255,99,.045); }
.milestone-kicker { display: flex; justify-content: space-between; gap: 10px; color: var(--muted-2); font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.milestone-item.done .milestone-kicker { color: var(--accent); }
.milestone-item h3 { margin: 30px 0 4px; font-size: 18px; letter-spacing: -.03em; }
.milestone-item strong { color: var(--muted); font-size: 12px; }
.milestone-item p { margin: 10px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.6; }

.reality-section { margin: 30px 0 105px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-xl); display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; background: rgba(255,255,255,.018); }
.reality-copy p:last-child { color: var(--muted); font-size: 13px; line-height: 1.9; margin-bottom: 0; }
.comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.comparison-card { border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: rgba(0,0,0,.13); }
.comparison-card span { color: var(--muted); font-size: 10px; }
.comparison-card strong { display: block; margin-top: 6px; font-size: 22px; letter-spacing: -.03em; }
.comparison-card p { margin: 6px 0 0; color: var(--muted-2); font-size: 9px; }

footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted-2); font-size: 10px; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .hero-orbit { display: none; }
  .simulator-shell { grid-template-columns: 1fr; }
  .settings-panel { border-left: 0; border-top: 1px solid var(--line); }
  .milestone-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reality-section { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { padding-top: 18px; }
  .header-badges span:nth-child(2), .header-badges span:nth-child(3) { display: none; }
  .hero { min-height: 0; padding: 40px 0 52px; }
  .hero h1 { font-size: clamp(54px, 19vw, 82px); }
  .hero-lead { margin-top: 24px; font-size: 15px; }
  .sim-main { padding: 18px; }
  .settings-panel { padding: 23px 18px; }
  .space-map { height: 235px; }
  .earth { left: 4%; width: 88px; height: 88px; margin-top: -44px; }
  .moon { right: 5%; width: 53px; height: 53px; margin-top: -26px; }
  .route { left: calc(4% + 76px); right: calc(5% + 43px); }
  .walker { left: calc(4% + 76px); }
  .map-label-earth { left: 4%; }
  .map-label-moon { right: 5%; }
  .section-head { align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .controls-row { grid-template-columns: 1fr 1fr; }
  .speed-control { grid-column: 1 / -1; }
  .milestones-section { padding-top: 78px; }
  .section-head-wide { display: block; }
  .section-head-wide > p { margin-top: 18px; }
  .milestone-list { grid-template-columns: 1fr; }
  .milestone-item { min-height: 0; }
  .reality-section { padding: 22px 18px; }
  .comparison-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .001ms !important; }
}
