:root {
  color-scheme: light;
  --paper: #f8f8ef;
  --white: #fffff9;
  --sky: #e4edf0;
  --ink: #173d3b;
  --muted: #60726c;
  --line: #cdd7cb;
  --accent: #bc4c35;
  --accent-soft: #f5e5d9;
  --green-soft: #e7ece0;
  --radius: 18px;
  --body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Arial', 'Helvetica Neue', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 625px;
  z-index: -1;
  background: radial-gradient(circle at 86% 23%, #f7f8ed 0, transparent 24%), linear-gradient(180deg, var(--sky) 0%, #eef2e9 68%, var(--paper) 100%);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img, svg { display: block; max-width: 100%; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
::selection { background: #f2c6aa; color: var(--ink); }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 20px; padding: 10px 18px; background: var(--ink); color: white; border-radius: 7px; z-index: 1100; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); color: white; }
.site-header { border-bottom: 1px solid rgba(23,61,59,.15); }
.site-header > .wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--display); font-size: 25px; letter-spacing: -1.3px; font-weight: 800; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-sub { display: block; font-size: 8px; line-height: 1; letter-spacing: 1.8px; margin-top: 7px; font-weight: 600; }
.brand > span { white-space: nowrap; }
.brand img { width: 35px; height: 42px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 29px; }
.site-header nav a { font-size: 13px; font-weight: 600; text-decoration: none; }
.site-header nav a:last-child { border: 1px solid var(--ink); border-radius: 100px; padding: 8px 17px; }
.hero { position: relative; padding: 44px 0 34px; }
.eyebrow { display: block; margin: 0 0 11px; color: var(--accent); font-size: 11px; line-height: 1.4; letter-spacing: 1.8px; font-weight: 700; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 750; line-height: 1.16; letter-spacing: -.045em; }
h1 { max-width: 960px; font-size: clamp(44px, 5.8vw, 72px); margin: 0 0 16px; }
h2 { font-size: clamp(29px, 3.3vw, 42px); margin: 0 0 15px; }
h3 { font-size: 22px; margin: 0 0 13px; }
h4 { font-size: 18px; margin: 0 0 10px; }
p { margin: 0 0 18px; }
.intro { max-width: 760px; font-size: 18px; line-height: 1.65; margin-bottom: 20px; color: #506760; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c6d1c4; border-radius: 100px; padding: 4px 10px; font-size: 11px; font-weight: 550; line-height: 1.5; background: rgba(255,255,249,.32); }
.pill::before { content: ''; width: 4px; height: 4px; border-radius: 100%; background: var(--accent); }
.play-section { scroll-margin-top: 22px; }
.player-shell { background: #0b1719; border: 1px solid #203b3b; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 48px -32px #173d3b70; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; color: #e8eee4; border-bottom: 1px solid #294143; min-height: 53px; background: #142a2b; }
.player-label { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; border-radius: 100%; background: #bdca8f; box-shadow: 0 0 0 4px #bdca8f0b; }
.player-actions { display: flex; align-items: center; gap: 6px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-width: 31px; height: 30px; border: 1px solid #425553; background: transparent; color: #e8eee4; border-radius: 5px; padding: 4px 9px; font-size: 11px; line-height: 1; transition: border-color .15s, background .15s; }
.icon-button:hover { background: #294143; border-color: #9aa99b; }
.icon-button svg { width: 14px; height: 14px; stroke-width: 1.6; }
.frame-wrap { position: relative; height: min(76vh, 740px); min-height: 580px; width: 100%; background: #0b1719; }
#game-frame { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0; background: #0b1719; }
.load-note { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #e8eee4; background: #0b1719; padding: 30px; text-align: center; font-size: 14px; pointer-events: none; transition: opacity .3s; }
.load-note::before { content: ''; width: 27px; height: 27px; border: 2px solid #43514d; border-top-color: #e2b28f; border-radius: 50%; animation: spin .9s linear infinite; }
.load-note.is-hidden, .load-note.loaded { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 3px 0; }
.embed-note { margin: 0; font-size: 12px; color: var(--muted); }
.text-link { font-size: 12px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.hero h1 > span { color: #506760; font-size: .64em; letter-spacing: -.04em; }
.quick-nav > span { font-size: 9px; letter-spacing: 1.5px; color: var(--ink); }
caption { text-align: left; padding: 13px 17px; font-size: 12px; color: var(--muted); }
tbody th { background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; border-top: 1px solid #dce2d5; }
.tier-dot.jet { background: #d99d54; }
.tier-dot.cloud { background: #8fa06e; }
.tier-dot.kite { background: #658f88; }
.tier-dot.tree { background: #7895ae; }
.tier-dot.ground { background: #9b82a6; }
.quick-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 25px; padding: 26px 0; margin: 0 0 58px; border-bottom: 1px solid var(--line); }
.quick-nav a { color: var(--muted); font-size: 12px; font-weight: 550; text-decoration: none; }
.quick-nav a:hover { color: var(--accent); }
.quick-nav a::before { content: '↳'; margin-right: 7px; color: #8b9c8b; }
.section-heading { max-width: 730px; margin-bottom: 28px; }
.section-heading p { color: var(--muted); font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 65px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffff94d; }
.steps article { padding: 29px 30px 26px; min-width: 0; }
.steps article + article { border-left: 1px solid var(--line); }
.step-number { display: block; width: 35px; height: 35px; margin-bottom: 24px; color: var(--accent); border: 1px solid #d8b9a2; border-radius: 50%; text-align: center; font-size: 12px; line-height: 33px; font-weight: 600; }
.steps h3 { margin-bottom: 12px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 75px; margin-bottom: 74px; }
.guide-content { min-width: 0; }
.guide-block { padding: 0 0 35px; margin: 0 0 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.guide-block:last-child { margin-bottom: 0; }
.guide-block > p { color: #506760; }
.guide-block h2 { font-size: 32px; }
.guide-block h3 { margin-top: 25px; font-size: 20px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; margin: 24px 0 19px; background: #fffff965; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { color: var(--muted); background: #edf0e6; font-size: 10px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 1px; }
th, td { padding: 14px 17px; }
td { border-top: 1px solid #dce2d5; line-height: 1.5; }
td:first-child { font-weight: 650; white-space: nowrap; }
td:last-child { color: #506760; }
.tier-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.tier-dot[data-tier='2'] { background: #d99d54; }
.tier-dot[data-tier='3'] { background: #8fa06e; }
.tier-dot[data-tier='4'] { background: #658f88; }
.tier-dot[data-tier='5'] { background: #7895ae; }
.tier-dot[data-tier='6'] { background: #9b82a6; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 23px 0; }
.mode-card { padding: 23px; border: 1px solid var(--line); border-radius: 11px; background: #fffff961; }
.mode-card h3 { margin: 0 0 11px; font-size: 18px; }
.mode-card p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.mode-card strong { color: var(--ink); }
.callout { border: 1px solid #dfcbbb; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; padding: 20px 23px; margin: 25px 0; font-size: 14px; line-height: 1.75; }
.callout p { margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }
.tip-list { padding-left: 19px; color: #506760; }
.tip-list li { padding-left: 5px; margin: 0 0 13px; }
.tip-list li::marker { color: var(--accent); font-size: 12px; }
.tip-list strong { color: var(--ink); }
.sidebar { border-top: 2px solid var(--ink); padding-top: 24px; }
.sidebar h2 { font-size: 23px; line-height: 1.3; margin-bottom: 17px; }
.sidebar h3 { font-size: 17px; }
.sidebar p { font-size: 13px; color: var(--muted); }
.sidebar > section, .sidebar > div { margin-bottom: 29px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.sidebar > :last-child { border-bottom: none; padding-bottom: 0; }
.sidebar .eyebrow { font-size: 10px; }
.sidebar .button { width: 100%; margin-top: 6px; }
.sidebar ul { padding: 0; margin: 0; list-style: none; }
.sidebar li { margin-bottom: 12px; font-size: 13px; }
.sidebar li a { text-decoration-color: #acbbac; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--ink); border-radius: 8px; color: var(--white); background: var(--ink); padding: 11px 20px; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .15s, transform .15s; }
.button:hover { color: var(--white); background: #28514d; transform: translateY(-1px); }
.faq-list { border-top: 1px solid var(--line); margin-top: 24px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 21px 32px 21px 0; list-style: none; font-size: 15px; line-height: 1.55; font-weight: 650; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 3px; top: 17px; font-size: 24px; font-weight: 400; color: var(--accent); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { padding-bottom: 12px; }
.faq-list details p { margin-bottom: 21px; padding-right: 24px; font-size: 14px; color: var(--muted); }
.source-note { margin-top: 23px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.source-note a { text-decoration-color: #b8c3b4; }
.muted { color: var(--muted); }
.help-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; font-size: 13px; margin-top: 18px; }
.site-footer { border-top: 1px solid var(--line); padding: 37px 0 26px; background: #ecf0e6; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 29px; }
.site-footer .brand { font-size: 23px; }
.site-footer .brand img { width: 29px; height: 35px; }
.site-footer p { margin: 11px 0 0; color: var(--muted); max-width: 450px; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 8px; }
.footer-links a { color: #506760; text-decoration: none; font-size: 12px; }
.site-footer .wrap > p, .site-footer small { display: block; border-top: 1px solid #d3dccd; padding-top: 19px; margin: 0; max-width: none; color: #6e7e73; font-size: 11px; }
.page-content { min-height: 65vh; padding: 65px 0 80px; }
.page-content h1 { font-size: clamp(40px, 5vw, 62px); max-width: 800px; margin-bottom: 24px; }
.page-content .prose { max-width: 760px; color: #506760; }
.prose h2 { color: var(--ink); font-size: 26px; margin-top: 35px; }
.prose h3 { color: var(--ink); font-size: 21px; margin-top: 28px; }
.prose ul { padding-left: 21px; }
.prose li { margin-bottom: 10px; }
.prose a { overflow-wrap: anywhere; }
.prose .button { margin-top: 12px; }
.player-shell.focus-mode { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; border: 0; border-radius: 0; width: 100%; height: 100%; height: 100dvh; }
.player-shell.focus-mode .player-toolbar { flex: 0 0 auto; }
.player-shell.focus-mode .frame-wrap { flex: 1 1 auto; min-height: 0; height: auto; }
body.player-focused { overflow: hidden; }
.player-shell:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: #0b1719; width: 100vw; height: 100vh; }
.player-shell:fullscreen .frame-wrap { flex: 1; height: auto; min-height: 0; }

@media (min-width: 1350px) {
  .hero { padding-top: 49px; }
}
@media (max-width: 1000px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 38px; }
  .steps article { padding: 25px 23px; }
  .hero h1 { font-size: clamp(44px, 6.6vw, 66px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header > .wrap { min-height: 73px; gap: 15px; }
  .site-header nav { gap: 17px; }
  .site-header nav { display: none; }
  .site-header nav a { font-size: 12px; }
  .site-header nav a:last-child { padding: 7px 12px; }
  .brand { font-size: 23px; }
  .brand img { width: 29px; height: 36px; }
  .hero { padding-top: 34px; padding-bottom: 28px; }
  .hero h1 { font-size: clamp(39px, 8.1vw, 58px); line-height: 1.12; }
  .intro { font-size: 16px; line-height: 1.65; margin-bottom: 17px; }
  .hero-meta { gap: 6px; }
  .pill { font-size: 10px; padding: 4px 8px; }
  .frame-wrap { height: 720px; height: calc(100svh - 110px); min-height: 620px; }
  .player-shell { border-radius: 12px; }
  .player-toolbar { padding: 11px 12px; }
  .player-footer { align-items: flex-start; gap: 12px; }
  .embed-note { font-size: 11px; }
  .text-link { font-size: 11px; }
  .quick-nav { gap: 12px 21px; padding: 22px 0; margin-bottom: 42px; }
  .quick-nav a { font-size: 11px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading p { font-size: 15px; }
  .steps { margin-bottom: 48px; }
  .steps article { padding: 23px 18px; }
  .step-number { margin-bottom: 20px; }
  .steps h3 { font-size: 17px; }
  .steps p { font-size: 13px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 35px; margin-bottom: 48px; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .sidebar > section, .sidebar > div { margin: 0; padding-bottom: 5px; border-bottom: 0; }
  .guide-block { margin-bottom: 32px; padding-bottom: 29px; }
  .guide-block h2 { font-size: 29px; }
  .guide-block > p, .tip-list { font-size: 15px; }
  .footer-top { gap: 25px; }
  .footer-links { gap: 13px 18px; max-width: 200px; justify-content: flex-end; }
  .page-content { padding-top: 40px; padding-bottom: 50px; }
}
@media (max-width: 520px) {
  .site-header nav { gap: 13px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero h1 { font-size: 43px; letter-spacing: -.055em; }
  .hero h1 > span { font-size: .7em; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
  .intro { font-size: 15px; }
  .player-label { font-size: 10px; letter-spacing: .4px; }
  .player-actions { gap: 5px; }
  .icon-button { padding: 4px 7px; min-width: 30px; gap: 5px; font-size: 10px; }
  .icon-button span { display: none; }
  .player-footer { flex-direction: column; gap: 6px; }
  .steps { grid-template-columns: 1fr; }
  .steps article { display: grid; grid-template-columns: 35px minmax(0, 1fr); column-gap: 18px; padding: 23px; }
  .steps article + article { border-left: 0; border-top: 1px solid var(--line); }
  .step-number { grid-row: 1 / 3; margin-bottom: 0; }
  .steps h3 { margin: 1px 0 9px; font-size: 18px; }
  .steps p { grid-column: 2; font-size: 14px; }
  .mode-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mode-card { padding: 21px; }
  .mode-card p { font-size: 14px; }
  th, td { padding: 12px 11px; }
  table { font-size: 12px; }
  th { font-size: 9px; letter-spacing: .5px; }
  .tier-dot { width: 6px; height: 6px; margin-right: 6px; }
  .callout { padding: 18px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sidebar > section, .sidebar > div { padding-bottom: 23px; border-bottom: 1px solid var(--line); }
  .sidebar > :last-child { padding-bottom: 0; border-bottom: 0; }
  .sidebar .button { width: auto; }
  .footer-top { flex-direction: column; gap: 19px; margin-bottom: 25px; }
  .footer-links { padding-top: 0; max-width: none; justify-content: flex-start; gap: 22px; }
  .site-footer { padding-top: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
