:root { color-scheme:light; --ink:#263e3a; --muted:#71807a; --green:#316c55; --paper:#f7f6f2; --line:#e2e6dc; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:15px "Segoe UI","Microsoft YaHei",sans-serif; }
button,input,select { font:inherit; }
button,a,select,input { touch-action:manipulation; }
button { cursor:pointer; }
a { color:inherit; text-decoration:none; }
button:disabled { cursor:not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible { outline:3px solid #518abd; outline-offset:4px; }
[hidden] { display:none!important; }
.site-header { max-width:1220px; margin:auto; padding:22px 36px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); gap:24px; }
.brand { display:flex; gap:12px; align-items:center; font-weight:800; font-size:20px; }
.brand-symbol { font-size:36px; color:var(--green); }
.brand small { display:block; font-size:9px; letter-spacing:3px; margin-top:5px; }
.site-header nav { display:flex; gap:28px; font-size:13px; }
.site-header nav span { background:#e6ebdf; padding:3px 7px; border-radius:12px; }
.page-wrap { max-width:1148px; margin:auto; padding-top:24px; }
.page-tools,.tool-buttons { display:flex; align-items:center; gap:12px; }
.page-tools { justify-content:space-between; }
.eyebrow { font-size:10px; letter-spacing:2px; font-weight:800; color:var(--muted); margin:0 0 12px; }
.green { color:var(--green); }
.page-tools .eyebrow { margin:0; }
.tool-buttons { flex-wrap:wrap; font-size:12px; }
.small-button { border:1px solid var(--line); background:#fffdf7; padding:10px 14px; border-radius:10px; color:var(--ink); font-size:12px; font-weight:600; }
.small-button:hover { background:#edf1e6; }
.notice { background:#fff2cf; border:1px solid #ead4a3; padding:10px 16px; border-radius:12px; font-size:12px; line-height:1.7; }
.error { background:#ffebe5; color:#883b27; border-color:#e7b29f; }
.hero { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:45px; padding:42px 0 50px; }
.hero h1 { font-size:clamp(34px,4.5vw,56px); line-height:1.3; letter-spacing:-2px; margin:20px 0; }
.hero h1 span { color:var(--green); }
.hero-description { font-size:16px; color:var(--muted); line-height:1.9; }
.hero-badges { display:flex; gap:16px; flex-wrap:wrap; font-size:11px; color:#66776c; margin-top:24px; }
.hero-picture { height:300px; background:#e8ecdd; position:relative; border-radius:130px 130px 30px 30px; overflow:hidden; isolation:isolate; }
.hero-planet { position:absolute; width:210px; height:185px; border-radius:50%; background:linear-gradient(145deg,#cdd8a6,#94b77f); left:50%; top:42px; transform:translateX(-50%) rotate(-9deg); box-shadow:inset -18px -10px 0 #537c5730; }
.hero-planet>span { position:absolute; font-size:68px; top:30px; left:28px; transform:rotate(9deg); }
.hero-planet>span+span { left:111px; top:55px; font-size:58px; }
.planet-ring { border:14px solid #ffe4a2; border-top-color:transparent; width:285px; height:72px; border-radius:50%; transform:rotate(-18deg); position:absolute; left:-38px; top:95px; }
.hero-key { position:absolute; left:25px; top:57px; transform:rotate(-15deg); font-size:26px; font-weight:800; border:2px solid #b7c5aa; border-bottom-width:6px; background:#fffdf1; padding:15px 22px; border-radius:14px; }
.hero-key.second { left:auto; right:27px; top:152px; transform:rotate(12deg); }
.picture-orbit { position:absolute; inset:12px 28px; border:1px dashed #9cad8c; border-radius:50%; transform:rotate(25deg); }
.picture-star { position:absolute; color:#c79330; font-size:38px; }
.star-a { right:44px; top:30px; }.star-b { left:57px; bottom:60px; font-size:24px; }
.picture-label { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); background:#fffdf1; border:1px solid #d1dbc5; border-radius:10px; padding:12px 20px; white-space:nowrap; font-size:12px; }
.picture-label span { margin-left:24px; }
.map-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; }
.map-heading h2 { font-size:26px; margin:0; }
.difficulty-label { font-size:12px; color:var(--muted); display:grid; gap:7px; }
select { border:1px solid #d3dccd; border-radius:10px; padding:10px; background:#fffdf8; color:var(--ink); max-width:100%; }
.section-note { color:var(--muted); line-height:1.8; font-size:13px; margin:14px 0 24px; }
.region-map { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.region { border:1px solid var(--line); background:#fffdf8; border-radius:22px; overflow:hidden; }
.region-cover { position:relative; height:110px; padding:24px; background:#e4eddd; overflow:hidden; }
.region-cover.valley { background:#f2e4d9; }.region-cover.harbor { background:#e3e6f5; }
.region-number { font-size:10px; letter-spacing:2px; color:var(--muted); }
.region-cover h3 { font-size:21px; margin:10px 0; }
.region-cover>span:last-child { position:absolute; right:25px; top:30px; font-size:40px; }
.stage-card { padding:21px 22px; border-top:1px solid var(--line); }
.stage-title { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.stage-title h4 { margin:0; font-size:15px; }.stage-title>span { font-size:22px; }
.stage-card p { color:var(--muted); font-size:12px; line-height:1.85; min-height:44px; margin:10px 0; }
.stage-card .unlock-note { font-size:11px; min-height:30px; color:#866945; }
.stage-button,.primary-button { border:0; border-radius:10px; background:var(--green); color:white; font-weight:700; padding:13px 20px; }
.stage-button { width:100%; text-align:left; display:flex; justify-content:space-between; gap:12px; font-size:12px; }
.stage-button:disabled { background:#eceee7; color:#7c897c; }
.stage-button:not(:disabled):hover,.primary-button:hover { background:#22543f; }
.stage-card .stage-record { font-size:11px; min-height:0; color:#527250; margin:10px 0 0; }
.how-to { margin:24px 0 45px; padding:23px; background:#eeeee5; border-radius:16px; display:flex; gap:20px; align-items:center; }
.practice-context { padding:18px; margin:20px 0; border:1px solid #cbdcc4; border-radius:14px; background:#eef5e8; display:flex; flex-wrap:wrap; align-items:center; gap:14px; font-size:13px; }
.practice-context p { flex:1 1 260px; margin:0; line-height:1.8; }
#action-prompt { color:#386d58; }
.touch-controls button:disabled { opacity:.5; }
.how-icon { font-size:28px; }.how-to p { flex:1; margin:0; font-size:12px; line-height:1.9; color:var(--muted); }.how-to strong { color:var(--ink); }.how-to a { font-size:12px; white-space:nowrap; }
.home-section { padding:40px 0; border-top:1px solid var(--line); }
.home-count { background:#e9eddf; color:var(--green); font-size:12px; padding:9px 13px; border-radius:16px; }
.home-slots { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:13px; padding:28px 20px 20px; background:linear-gradient(#edf1e5 65%,#d9e2cb 65%); border-radius:22px; border:1px solid #d9e2cd; }
.home-slot { position:relative; min-height:138px; background:transparent; border:1px dashed #aabf9c; border-radius:16px; color:#738666; font-size:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.home-slot.occupied { background:#fffaf1d9; border-style:solid; border-color:#cedcc2; }
.home-slot .building { font-size:40px; }.home-slot .resident { position:absolute; right:7px; top:-16px; font-size:30px; }
.home-slot:hover { background:#fffdf1; }
.home-message { text-align:center; color:#65785e; font-size:13px; min-height:24px; line-height:1.8; }
.decoration-picker { font-size:12px; line-height:1.8; padding:17px; border:1px solid var(--line); border-radius:12px; }
.decoration-picker>div { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.decoration-picker button[aria-pressed=true] { background:#d7e8cf; border-color:#83a577; }
.site-footer { max-width:1148px; margin:auto; border-top:1px solid var(--line); padding:25px 0; display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:11px; line-height:1.8; }
.adventure-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:24px 0 18px; }
.adventure-heading h1 { font-size:27px; margin:0; }
.flight-stats { display:flex; gap:28px; padding:15px 20px; background:#fffdf7; border:1px solid var(--line); border-radius:14px 14px 0 0; font-size:12px; color:var(--muted); }
.flight-stats strong { color:var(--ink); margin-left:5px; }
.journey-track { height:4px; background:#e1e8d9; }.journey-track>div { height:100%; background:#75a567; width:0; }
.platform-scene { position:relative; overflow:hidden; border-radius:0 0 18px 18px; border:1px solid #ccdccc; background:#ccded1; }
#platform-canvas { display:block; width:100%; aspect-ratio:16/9; outline-offset:-4px; cursor:crosshair; touch-action:none; }
.scene-toast { position:absolute; top:17px; left:50%; transform:translateX(-50%); max-width:85%; padding:10px 18px; border-radius:12px; background:#fffdf0eb; color:#375b4d; font-size:14px; font-weight:700; text-align:center; pointer-events:none; box-shadow:0 4px 16px #223b3c12; }
.scene-toast:empty { display:none; }
.coach-panel { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 4px 12px; }
.coach-panel p { margin:0 0 7px; font-size:14px; font-weight:600; }.finger-tip { font-size:12px; color:var(--muted); line-height:1.8; }
#restart-flag { flex-shrink:0; }.game-note { margin-top:6px; font-size:12px; }
.touch-controls { display:flex; justify-content:space-between; padding:8px 0 12px; gap:20px; }
.touch-controls>div { display:flex; gap:12px; }
.touch-controls button { min-width:64px; height:45px; border:1px solid #c4d1be; border-bottom-width:4px; border-radius:12px; color:#456849; background:#e9efdf; font-weight:800; font-size:20px; touch-action:none; user-select:none; }
.touch-controls .jump-control { min-width:125px; font-size:14px; background:#fff0c7; border-color:#dfc78d; }
.touch-controls button:active { border-bottom-width:1px; translate:0 2px; }
dialog { border:1px solid #dce4d3; border-radius:24px; padding:32px; max-width:560px; width:calc(100% - 32px); color:var(--ink); background:#fffdf6; box-shadow:0 25px 100px #223e3533; max-height:90vh; overflow:auto; }
dialog::backdrop { background:#18332c66; backdrop-filter:blur(5px); }
.dialog-art { font-size:48px; margin-bottom:16px; }
dialog h2 { margin:10px 0; font-size:26px; }
dialog p:not(.eyebrow) { color:var(--muted); font-size:14px; line-height:1.9; white-space:pre-line; }
.dialog-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.dialog-actions>* { flex:1; text-align:center; min-width:115px; font-size:13px; }
.paused .platform-scene { filter:saturate(.65); }
@media(max-width:1200px) { .page-wrap,.site-footer { margin-inline:28px; }.site-header { padding-inline:28px; } }
@media(max-width:850px) { .region-map { gap:12px; }.stage-card { padding:18px 14px; }.region-cover { padding:20px 15px; }.region-cover>span:last-child { right:12px; font-size:30px; }.hero { gap:20px; }.home-slots { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 12px; }.hero-key { left:12px; padding:10px 15px; }.hero-key.second { right:12px; } }
@media(max-width:620px) {
  .page-wrap,.site-footer { margin-inline:16px; }.site-header { padding:16px; gap:12px; }.brand { font-size:17px; gap:8px; }.brand-symbol { font-size:29px; }.site-header nav { font-size:11px; gap:12px; }.site-header nav span { display:none; }
  .page-tools { align-items:start; gap:15px; }.page-tools>.eyebrow { max-width:100px; font-size:8px; line-height:1.7; }
  .hero { grid-template-columns:1fr; padding:30px 0; }.hero h1 { font-size:38px; letter-spacing:-1px; }.hero-description { font-size:14px; }.hero-badges { gap:10px; font-size:10px; }
  .hero-picture { height:230px; border-radius:90px 90px 22px 22px; }.hero-planet { top:10px; scale:.86; transform-origin:top left; }.hero-key.second { top:100px; }.picture-label { bottom:12px; }
  .map-heading { align-items:start; flex-direction:column; gap:16px; }.map-heading h2 { font-size:24px; }.difficulty-label { width:100%; }.region-map { grid-template-columns:1fr; }
  .region-cover { height:93px; padding:16px 21px; }.region-cover>span:last-child { top:18px; right:25px; font-size:40px; }.stage-card { padding:19px 21px; }.stage-card p,.stage-card .unlock-note { min-height:0; }
  .how-to { padding:18px; gap:12px; flex-wrap:wrap; }.how-to p { min-width:160px; }.home-slots { padding:24px 10px 14px; gap:21px 8px; }.home-slot { min-height:110px; font-size:10px; }.home-slot .building { font-size:32px; }.home-slot .resident { font-size:24px; }
  .site-footer { flex-direction:column; gap:6px; }.adventure-heading { align-items:start; flex-direction:column; gap:12px; }.adventure-heading h1 { font-size:23px; }.flight-stats { padding:12px 8px; gap:8px; justify-content:space-between; font-size:10px; flex-wrap:wrap; }
  .flight-stats strong { margin-left:2px; }.coach-panel { gap:10px; align-items:start; }.coach-panel p { font-size:12px; line-height:1.7; }.finger-tip { font-size:10px; }.scene-toast { font-size:10px; padding:6px 10px; top:8px; }
  .touch-controls { gap:8px; }.touch-controls>div { gap:8px; }.touch-controls button { min-width:48px; height:48px; }.touch-controls .jump-control { min-width:85px; }dialog { padding:24px 20px; }dialog h2 { font-size:23px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior:auto!important; transition:none!important; } }
