/* Earth Creator Season 2 — official site */
:root {
  --bg: #0a1018;
  --surface: #101923;
  --surface-2: #0d151f;
  --text: #e9f0f8;
  --muted: #9baec2;
  --line: #203044;
  --accent: #adccdf;
  --accent-strong: #d5e9f4;
  --accent-soft: #12303c;
  --gold: #80d9ea;
  --code-bg: #142537;
  --code-text: #c0e6f0;
  --hero-bg: #050a10;
  --shadow: none;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Noto Sans Mono CJK JP", monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2f6fa;
  --surface: #ffffff;
  --surface-2: #e8f0f6;
  --text: #132b42;
  --muted: #4b6176;
  --line: #ccdae5;
  --accent: #17647c;
  --accent-strong: #0c4b61;
  --accent-soft: #dceef4;
  --gold: #17647c;
  --code-bg: #e2edf3;
  --code-text: #1e5267;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: break-word;
  line-break: strict;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--code-bg);
  color: var(--code-text);
  padding: .1em .42em;
  border-radius: 6px;
  overflow-wrap: anywhere;
  word-break: normal;
}

svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 820px; }
.small { font-size: .9rem; color: var(--muted); }

/* ---------- navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 27px; height: 27px; color: var(--accent); stroke-width: 1.2; }
.brand-name { font-family: Arial, sans-serif; font-weight: 600; letter-spacing: -.035em; font-size: 1.2rem; white-space: nowrap; line-height: 1.2; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; text-decoration: none; }
.header-link:hover { color: var(--accent); }
.header-link svg { width: 16px; height: 16px; }
.site-nav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 500; padding: 6px 0 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-icon-dark { display: none; }
.theme-icon-light { display: block; }
:root[data-theme="light"] .theme-icon-dark { display: block; }
:root[data-theme="light"] .theme-icon-light { display: none; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 13px 24px; border-radius: 5px; font: inherit; font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: .75rem; border-radius: 4px; }
.btn-primary { background: #e6eef3; color: #101b24; border-color: #e6eef3; }
.btn-primary:hover { background: #fff; border-color: #fff; color: #101b24; }
.btn-light { background: #07142366; color: #e3f1fb; border-color: #56718b80; }
.btn-light:hover { background: #132f46; color: #fff; border-color: #a6d9ec; }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Earth ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); color: #f2f5f7; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 480px) 1fr; padding-top: 76px; padding-bottom: 80px; }
.hero-heading, .hero-summary { grid-column: 1; position: relative; z-index: 2; }
.hero-season { color: #90a0ad; font-size: .84rem; margin-bottom: 22px; }
.hero h1 { display: flex; flex-direction: column; font-family: Arial, sans-serif; font-size: clamp(4.8rem, 7.2vw, 6.5rem); font-weight: 500; line-height: .98; letter-spacing: -.065em; margin: 0 0 34px; }
.hero-lead { font-size: .94rem; line-height: 2; color: #b4bfc9; letter-spacing: .015em; margin-bottom: 30px; }
.mobile-break { display: none; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; }
.hero-cta .btn-primary { min-width: 154px; }
.hero-map-link { display: inline-flex; align-items: center; gap: 10px; color: #d1dbe2; font-size: .86rem; text-decoration: none; padding: 12px 0; }
.hero-map-link:hover { color: #fff; }
.hero-map-link svg { width: 16px; height: 16px; }
.hero-platforms { color: #8c9aa8; font-size: .75rem; margin: 22px 0 0; }
.hero-visual { position: absolute; width: 800px; height: 700px; top: -34px; right: -70px; pointer-events: none; }
.hero-planet { position: absolute; inset: 0; }
.hero-planet img { width: 100%; height: 100%; object-fit: contain; }
#earth-globe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.globe-ready #earth-globe { opacity: 1; }
.globe-ready .hero-planet { visibility: hidden; }
.hero-controls { position: absolute; z-index: 3; right: 40px; bottom: 24px; }
.globe-toggle { min-height: 44px; padding: 8px 12px; background: transparent; border: 1px solid #33404a; border-radius: 4px; color: #9eacb8; font: .7rem var(--font); cursor: pointer; }
.globe-toggle:hover { color: #e6eef4; border-color: #7b8f9f; }

/* ---------- server connection strip ---------- */
.server-dock { position: relative; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.server-dock-inner { display: grid; grid-template-columns: 1.12fr 1fr 1.1fr; align-items: center; min-height: 112px; }
.dock-heading { display: flex; gap: 15px; align-items: center; padding-right: 20px; }
.dock-heading > svg { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.1; }
.dock-heading > div { display: flex; flex-direction: column; gap: 6px; }
.dock-title { font-size: 1.05rem; font-weight: 700; }
.dock-note { font-size: .61rem; color: var(--muted); }
.address-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 0 24px; border-left: 1px solid var(--line); min-width: 0; }
.address-label { grid-column: 1; font: .56rem var(--mono); letter-spacing: .13em; color: var(--muted); }
.address-value { grid-column: 1; grid-row: 2; background: none; color: var(--text); font-size: .8rem; font-weight: 600; padding: 0; white-space: nowrap; }
.port-sep { font-family: var(--font); font-size: .6rem; font-weight: 400; color: var(--muted); margin: 0 .5em; }
.address-row .copy-btn { grid-column: 2; grid-row: 1 / span 2; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 7px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: .7rem; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.copied { border-color: var(--accent); color: var(--accent); }
.address-row .copy-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.address-row .copy-btn.copied::after { content: "✓"; }
.copy-btn-sm { margin-left: 8px; }

/* ---------- introduction ---------- */
.discovery { padding: 72px 0 52px; }
.discovery-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.discovery h2 { font-size: 1.55rem; font-weight: 600; letter-spacing: -.025em; }
.discovery-description > p { color: var(--muted); font-size: .93rem; line-height: 2; margin-bottom: 24px; }
.discovery-links { display: flex; flex-wrap: wrap; gap: 16px 30px; }
.discovery-links a { display: inline-flex; align-items: center; gap: 10px; font-size: .83rem; text-decoration: none; }
.discovery-links a:hover { text-decoration: underline; }
.discovery-links svg { width: 15px; height: 15px; }

/* ---------- world in numbers ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-bottom: 52px; }
.stat { padding: 4px 24px; display: flex; flex-direction: column; gap: 10px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { white-space: nowrap; font: 400 clamp(1.4rem, 2.4vw, 2.2rem) Arial, sans-serif; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.3; }
.stat-num small { font-size: .48em; margin: 0 .22em; color: var(--accent); font-family: var(--font); font-weight: 400; }
.stat-label { font-size: .69rem; color: var(--muted); line-height: 1.5; }

/* ---------- sections ---------- */
.heading-line { display: inline-block; }
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--surface-2); }
.section-kicker { font-size: .64rem; font-weight: 500; font-family: var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.section h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); letter-spacing: -.025em; font-weight: 650; margin-bottom: 18px; }
.section-lead { max-width: 54em; color: var(--muted); margin-bottom: 32px; font-size: .92rem; line-height: 1.95; }

/* steps */
.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.step {
  position: relative; counter-increment: step;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 22px 74px; box-shadow: var(--shadow);
}
.step:nth-child(-n+2) { grid-column: 1 / -1; }
.step::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-weight: 400; font-size: 1.05rem;
}
.step p { font-size: .9rem; }
.step h3 { font-size: 1.05rem; margin: 6px 0 10px; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 14px; }
.join-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.join-box h4 { font-size: 1rem; margin-bottom: 6px; }
.addr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.addr-line code { font-size: 1rem; font-weight: 700; }
.addr-line .copy-btn-sm { margin-left: 0; }
.kv { margin: 0 0 10px; display: grid; gap: 4px; }
.kv div { display: flex; gap: 10px; align-items: baseline; }
.kv dt { min-width: 4.5em; color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; }
.kv code { font-size: 1rem; font-weight: 700; }

/* earth */
.earth-figure { margin: 0 0 28px; }
.earth-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #0b1520; aspect-ratio: 2 / 1; object-fit: cover; }
.earth-figure figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.earth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.facts dt { font-weight: 700; color: var(--accent); font-size: .8rem; margin-bottom: 2px; }
.facts dd { margin: 0; }
.travel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.travel h3 { font-size: 1.12rem; margin-bottom: 12px; }
.cmd-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.cmd-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cmd-list span { color: var(--muted); font-size: .92rem; }
.chips-title { font-size: .95rem; margin: 16px 0 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .9rem;
}
.chips code { font-size: .8rem; }

/* worlds */
.lobby-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 28px; }
.lobby-figure { margin: 0; }
.lobby-figure img { border-radius: var(--radius); border: 1px solid var(--line); background: #0b1520; }
.lobby-text h3 { font-size: 1.3rem; margin-bottom: 12px; }
.plain-list { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.plain-list li::marker { color: var(--accent); }
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.world-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.world-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.world-card h3 code { font-size: .74em; font-weight: 600; margin-left: 4px; vertical-align: 2px; }
.world-card p { color: var(--muted); }
.world-card .world-cmd { margin-top: auto; padding-top: 10px; color: var(--muted); }

/* features */
.feature-wide, .feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); min-width: 0;
}
.feature-wide { margin-bottom: 18px; }
.feature-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.feature-icon {
  width: 46px; height: 46px; padding: 10px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); stroke-width: 1.7;
}
.feature-head h3 { font-size: 1.15rem; }
.feature-cmds { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.feature-cmds code { font-size: .8rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.table-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }

.mini-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mini-table caption { text-align: left; font-weight: 800; padding-bottom: 8px; font-size: .95rem; }
.mini-table th, .mini-table td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.mini-table th { white-space: nowrap; color: var(--muted); font-weight: 700; width: 1%; }
.mini-table tr:last-child th, .mini-table tr:last-child td { border-bottom: 1px solid var(--line); }

.more { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.more summary { cursor: pointer; font-weight: 700; color: var(--accent); list-style-position: inside; }
.more[open] summary { margin-bottom: 10px; }
.more .mini-table { margin: 6px 0 10px; }
.table-scroll { overflow-x: auto; margin: 6px 0 10px; }
.rank-table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.rank-table th, .rank-table td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.rank-table thead th { color: var(--muted); font-weight: 700; }
.rank-table th:first-child { text-align: left; }

.foods { width: 100%; max-width: 512px; image-rendering: pixelated; margin: 4px 0 14px; }

/* commands */
.cmd-search { position: relative; max-width: 560px; margin-bottom: 24px; }
.cmd-search svg { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--muted); }
.cmd-search input {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px 11px 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text);
}
.cmd-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cmd-empty { margin-top: 12px; color: var(--muted); }
.cmd-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cmd-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; box-shadow: var(--shadow); min-width: 0; }
.cmd-group h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cmd-table { list-style: none; margin: 0; padding: 0; }
.cmd-table li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.cmd-table li > code:first-child { justify-self: start; font-weight: 700; }
.cmd-table .alias { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.cmd-table .desc { font-size: .92rem; }
.cmd-table li[hidden], .cmd-group[hidden] { display: none; }

/* rules */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rules-list { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: rule; display: grid; gap: 10px; }
.rules-list li {
  counter-increment: rule; position: relative; padding: 16px 18px 16px 58px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600;
}
.rules-list li::before {
  content: counter(rule); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .92rem;
}
.rules-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.rules-side h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.rules-side h3 svg { color: var(--accent); width: 22px; height: 22px; }
.rules-side .plain-list { color: var(--muted); font-size: .95rem; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 28px 15px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* links */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.link-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon title" "icon desc" "icon url";
  column-gap: 16px; row-gap: 4px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.link-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.link-icon { grid-area: icon; width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.link-title { grid-area: title; font-weight: 800; font-size: 1.1rem; }
.link-desc { grid-area: desc; color: var(--muted); font-size: .92rem; }
.link-url { grid-area: url; color: var(--accent); font-size: .85rem; font-family: var(--mono); overflow-wrap: anywhere; }

/* footer */
.site-footer { background: var(--hero-bg); color: #93a8bb; border-top: 1px solid #1c2b3b; padding: 48px 0; font-size: .88rem; }
.site-footer a { color: #9ed8eb; }
.footer-inner p { margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 12px !important; }
.footer-links a { font-weight: 700; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1rem; }
.footer-brand svg { color: #9ed8eb; width: 22px; height: 22px; }
.footer-legal { margin-top: 14px; color: #8597a5; font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .hero-inner { grid-template-columns: minmax(0, 440px) 1fr; }
  .hero-visual { width: 750px; height: 650px; right: -150px; top: -10px; }
  .hero h1 { font-size: 5.3rem; }
  .hero-lead { max-width: 27em; }
  .server-dock-inner { grid-template-columns: 1fr 1fr; padding-top: 22px; padding-bottom: 22px; gap: 20px; }
  .dock-heading { grid-column: 1 / -1; padding: 0; }
  .dock-heading > div { flex-direction: row; align-items: center; gap: 16px; }
  .address-row { padding: 0; border-left: 0; }
  .address-row:last-child { padding-left: 24px; border-left: 1px solid var(--line); }
  .address-row .copy-btn { margin-right: 20px; }
}
@media (max-width: 900px) {
  .header-actions { gap: 16px; }
  .hero-inner { grid-template-columns: minmax(0, 390px) 1fr; }
  .hero h1 { font-size: 4.7rem; }
  .hero-visual { right: -205px; opacity: .75; }
  .hero-lead { max-width: 23em; }
  .mobile-break { display: inline; }
  .hero-controls { right: 28px; }
  .feature-grid, .cmd-groups, .earth-grid, .lobby-block, .rules-grid, .world-grid, .table-pair { grid-template-columns: minmax(0, 1fr); }
  .discovery-inner { gap: 32px; }
  .discovery h2 { font-size: 1.3rem; }
  .discovery-description > p br { display: none; }
  .stat { padding: 4px 16px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 112px; }
  .wrap { padding-left: 22px; padding-right: 22px; }
  .header-row { min-height: 62px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 25px; height: 25px; }
  .brand-name { font-size: 1.06rem; }
  .header-actions { gap: 10px; }
  .header-link { display: none; }
  .header-join { min-height: 32px; padding: 7px 11px; font-size: .72rem; }
  .icon-btn { width: 32px; height: 32px; }
  .site-nav { gap: 24px; }
  .site-nav a { font-size: .74rem; padding-bottom: 11px; }
  .hero-inner { display: flex; flex-direction: column; padding-top: 32px; padding-bottom: 28px; }
  .hero-heading { order: 0; }
  .hero-season { font-size: .77rem; margin-bottom: 12px; }
  .hero h1 { flex-direction: row; gap: .22em; font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: -.055em; line-height: 1.1; margin: 0; white-space: nowrap; }
  .hero-visual { position: relative; order: 1; top: auto; right: auto; width: calc(100% + 100px); height: 350px; margin: 0 -50px; opacity: 1; }
  .hero-summary { order: 2; }
  .hero-lead { max-width: none; font-size: .89rem; line-height: 1.95; margin-bottom: 24px; }
  .hero-cta { gap: 24px; }
  .hero-cta .btn { min-width: 136px; min-height: 48px; font-size: .84rem; padding: 12px 20px; }
  .hero-map-link { font-size: .81rem; }
  .hero-platforms { font-size: .72rem; margin-top: 18px; }
  .hero-controls { position: static; order: 3; align-self: end; margin-top: 8px; min-height: 44px; }
  .globe-toggle { font-size: .65rem; min-height: 44px; }
  .server-dock-inner { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; padding-bottom: 24px; }
  .dock-heading { gap: 12px; }
  .dock-heading > svg { width: 26px; height: 26px; }
  .dock-heading > div { flex-direction: column; align-items: start; gap: 2px; }
  .dock-title { font-size: .95rem; }
  .dock-note { font-size: .68rem; }
  .address-row, .address-row:last-child { border: 0; border-top: 1px solid var(--line); padding: 15px 0 0; }
  .address-row .copy-btn { margin: 0; padding: 6px 10px; }
  .address-row .copy-btn span { position: static; width: auto; height: auto; clip: auto; }
  .address-row .copy-btn.copied::after { content: none; }
  .address-value { font-size: .85rem; }
  .discovery { padding: 48px 0 36px; }
  .discovery-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .discovery h2 { font-size: 1.3rem; }
  .discovery-description > p { font-size: .87rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 36px; row-gap: 26px; }
  .stat { padding: 0 0 0 20px; }
  .stat:first-child { padding-left: 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat-num { font-size: clamp(1.1rem, 4.6vw, 1.7rem); }
  .stat-label { font-size: .62rem; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 1.5rem; line-height: 1.5; }
  .section-lead { font-size: .87rem; }
  .steps, .join-grid { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 20px; }
  .step::before { position: static; margin-bottom: 14px; width: 32px; height: 32px; border-radius: 5px; font-size: .85rem; }
  .step h3 { margin-top: 0; }
  .feature-wide, .feature, .travel, .rules-side, .world-card { padding: 20px 18px; }
  .cmd-group { padding: 20px 18px 8px; }
  .mini-table th { white-space: normal; width: 32%; }
}
@media (max-width: 370px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 1rem; }
  .brand-mark { width: 23px; height: 23px; }
  .hero-visual { height: 300px; }
  .hero-cta { gap: 18px; }
  .hero-cta .btn { min-width: 116px; }
  .hero-map-link { font-size: .76rem; }
  .address-value { font-size: .74rem; }
  .copy-btn { font-size: .62rem; }
}

/* wide screens: description beside the command */
@media (min-width: 901px) {
  .cmd-table li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 14px; row-gap: 0; align-items: start; }
  .cmd-table li > code:first-child { grid-column: 1; grid-row: 1; }
  .cmd-table .alias { grid-column: 1; grid-row: 2; }
  .cmd-table .desc { grid-column: 2; grid-row: 1 / span 2; }
}

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

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin-bottom: 14px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.text-link svg { width: 16px; height: 16px; }

/* Season 2 Web map */
.map-block { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.map-figure { margin: 0; }
.map-figure a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b1520; }
.map-figure a:hover { border-color: var(--accent); }
.map-figure img { width: 100%; aspect-ratio: 1184 / 750; object-fit: cover; }
.map-figure figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.map-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.btn-accent { background: var(--accent); color: var(--surface); }
.btn-accent:hover { background: var(--accent-strong); color: var(--surface); }
@media (max-width: 900px) {
  .map-block { grid-template-columns: minmax(0, 1fr); }
}


/* long server address: smaller on phones, may wrap before the port (<wbr>) */
@media (max-width: 420px) {
  .addr-line code { font-size: .88rem; }
}
@media (max-width: 370px) {
  .address-value { white-space: normal; overflow-wrap: normal; }
}
.port-group { white-space: nowrap; }

/* ---------- 一番上の行: 項目を折り返して全部見せる（2026-11-19） ---------- */
.site-nav, .site-nav.wiki-nav { flex-wrap: wrap; overflow: visible; column-gap: 24px; row-gap: 0; }
@media (max-width: 700px) {
  /* 折り返して高くなるので、スマホでは画面の上に固定しない */
  .site-header { position: relative; }
  html { scroll-padding-top: 16px; }
  .header-row { flex-wrap: wrap; justify-content: flex-start; column-gap: 16px; row-gap: 0; min-height: 0; padding-top: 12px; padding-bottom: 2px; }
  .brand { margin-right: auto; min-height: 36px; }
  /* 右上の「ランキング・Wiki・マップ・マーケット」は2行目に並べる */
  .header-actions { display: contents; }
  .header-join, .header-actions .icon-btn { order: 1; }
  .header-row::after { content: ""; order: 2; flex-basis: 100%; height: 8px; }
  .header-link { display: inline-flex; order: 3; gap: 5px; font-size: .74rem; padding-bottom: 6px; }
  .header-link svg { width: 13px; height: 13px; }
  .site-nav, .site-nav.wiki-nav { column-gap: 18px; }
  .site-nav a { padding-top: 5px; padding-bottom: 9px; }
}
