@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root{font-family:'DM Sans','Noto Sans SC',system-ui,sans-serif;color:#273d35;background:#f5f1e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 5% 0%,#fff9ee 0,transparent 35%),#f5f1e9}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #ec9b69;outline-offset:3px}.site-shell{max-width:1530px;min-height:100vh;margin:auto;padding:0 50px}.site-header{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dedfd4}.brand{display:flex;align-items:center;gap:11px;color:#24493b;font-weight:800;font-size:23px;letter-spacing:-1px;text-decoration:none}.brand-mark{width:35px;height:35px;border-radius:12px;background:#275741;color:#fff7df;display:grid;place-items:center;font-size:22px;transform:rotate(-10deg);box-shadow:0 4px 0 #b7c9ae}.brand-plus{display:inline-block;margin-left:6px;padding:3px 6px 2px;border-radius:4px;background:#f5b67e;color:#513f2d;vertical-align:middle;font-size:11px;letter-spacing:1px}.header-tag{font-size:12px;font-weight:700;color:#777e6d;letter-spacing:.1em}.live-dot,.status-dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#7eb68d;box-shadow:0 0 0 4px #e0ecdc}.layout{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:36px;padding-top:46px}.main-column{min-width:0}.hero-copy{margin-bottom:29px}.eyebrow,.section-overline{font-size:11px;font-weight:800;letter-spacing:.19em;color:#bc8963}.eyebrow{display:flex;align-items:center;gap:11px}.eyebrow-line{height:1px;width:25px;background:#d9aa7d}.hero-copy h1{margin:15px 0 12px;font-size:clamp(33px,3.65vw,54px);line-height:1.25;letter-spacing:-.06em;color:#264938}.hero-copy h1 em{font-style:normal;color:#df9569}.hero-copy p{max-width:710px;margin:0;color:#788077;font-size:14px;line-height:1.9}.game-card{overflow:hidden;border:1px solid #deddd1;border-radius:18px;background:#fffdf7;box-shadow:0 24px 52px #817e6820,0 5px 10px #817e680f}.game-topbar{height:51px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;background:#fffdf7}.game-label{color:#3f604b;font-size:12px;font-weight:800;letter-spacing:.08em}.game-label-icon{color:#e7a16d;font-size:15px;margin-right:6px}.game-label-en{color:#a8b0a2;font-size:10px}.status-pill{padding:7px 10px;border-radius:20px;background:#edf4e7;color:#6a9270;font-size:11px;font-weight:700}.status-pill .status-dot{width:6px;height:6px;margin-right:4px;box-shadow:none}.canvas-wrap{position:relative;width:100%;overflow:hidden;background:#edc69d;aspect-ratio:1000/430}canvas{display:block;width:100%;height:100%}.game-hud{position:absolute;top:24px;right:27px;display:flex;align-items:center;gap:18px;padding:10px 15px;border:1px solid #ffffff70;border-radius:12px;background:#fffaf0d9;box-shadow:0 7px 17px #b8875e22;backdrop-filter:blur(8px)}.hud-stat{display:flex;flex-direction:column;gap:2px;min-width:73px}.hud-stat span{color:#889082;font-size:10px;font-weight:700}.hud-stat strong{color:#325a45;font-size:23px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:.06em}.hud-divider{height:30px;width:1px;background:#d6dacc}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(90deg,#e5b68f52,#f7d7af2e 70%);transition:opacity .2s}.overlay.hidden{opacity:0;pointer-events:none}.overlay-content{text-align:center;max-width:440px;padding:26px 30px 30px;border:1px solid #fff9e5ad;border-radius:22px;background:#fff9eddc;box-shadow:0 18px 60px #ae785e3c;backdrop-filter:blur(10px)}.overlay-kicker{display:block;color:#d78f66;font-size:11px;font-weight:800;letter-spacing:.2em}.overlay h2{margin:10px 0 7px;color:#2c5443;font-size:26px;letter-spacing:-.04em}.overlay p{margin:0 0 18px;color:#718073;font-size:12px;line-height:1.8}.primary-button{min-width:175px;padding:12px 16px;border:0;border-radius:10px;background:#315f49;color:#fff9ed;font-size:13px;font-weight:800;box-shadow:0 5px 0 #214737,0 9px 18px #3458413d;transition:transform .15s,box-shadow .15s}.primary-button:hover{transform:translateY(-2px);box-shadow:0 7px 0 #214737,0 11px 20px #3458413d}.primary-button span:last-child{margin-left:15px}.game-footer{min-height:56px;padding:10px 23px;display:flex;align-items:center;justify-content:space-between;gap:10px}.keyboard-help{display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:#7d8579;font-size:11px;font-weight:600}.keycap{min-width:21px;padding:4px 6px;border:1px solid #d8dfd0;border-bottom-width:2px;border-radius:5px;background:#f6f8f0;color:#57715c;font-size:10px;font-weight:800;text-align:center}.help-divider{margin:0 9px;color:#bbc1b2}.text-button{padding:6px 0;border:0;background:transparent;color:#637e69;font-size:11px;font-weight:800}.text-button:disabled{opacity:.45;cursor:default}.sidebar{padding-top:4px}.profile-card{padding:25px 23px 23px;border:1px solid #e3e1d6;border-radius:17px;background:#fffdf8;box-shadow:0 16px 38px #827c6012}.card-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.card-heading h2{margin:5px 0 0;font-size:22px;letter-spacing:-.05em}.card-heading h2 span{margin-left:5px;color:#e8a672;font-size:15px}.card-heading-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f7e7c8;color:#d49b66;font-size:22px}.field-label,.section-heading,.record-heading,.recent-heading{display:block;color:#405f4d;font-size:12px;font-weight:800}.name-row{display:flex;gap:7px;margin-top:9px}.name-row input{width:100%;min-width:0;height:39px;padding:0 11px;border:1px solid #dfe3d9;border-radius:8px;background:#fbfcf7;color:#2f5140;font-size:12px}.name-row input::placeholder{color:#a9b1a6}.name-row button{flex:none;padding:0 12px;border:0;border-radius:8px;background:#dfece0;color:#466b50;font-size:11px;font-weight:800}.name-row button:hover{background:#cfe4d2}.field-hint{margin:8px 0 0;color:#9ba298;font-size:10px;line-height:1.6}.card-rule{height:1px;margin:22px 0;background:#e8e8df}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.section-heading small{color:#aab0a4;font-size:10px;font-weight:500}.outfit-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.outfit-option{display:flex;align-items:center;flex-direction:column;min-height:113px;padding:8px 4px;border:1px solid #e7e9df;border-radius:10px;background:#fbfcf8;color:#526a56;transition:border-color .15s,transform .15s,background .15s}.outfit-option:hover{transform:translateY(-2px)}.outfit-option.selected{border:2px solid #84ad87;background:#f2f8ed}.outfit-option strong{margin-top:5px;font-size:10px}.outfit-option small{margin-top:2px;color:#a1aa9c;font-size:9px}.record-heading{display:flex;justify-content:space-between}.tiny-star{color:#e7b370;font-size:18px}.best-score{display:flex;align-items:baseline;gap:6px;margin:6px 0}.best-score strong{color:#325a45;font-size:38px;line-height:1;font-weight:800;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.best-score span{color:#8a9689;font-size:11px}.record-note{margin:7px 0 17px;color:#9aa498;font-size:10px}.recent-heading{margin-bottom:8px;font-size:10px;color:#8f9b8c}.recent-list{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}.recent-list li{display:flex;justify-content:space-between;padding:6px 8px;border-radius:6px;background:#f5f8f0;color:#759079;font-size:10px}.recent-list li.empty-record{background:transparent;padding-left:0;color:#a8b0a7}.site-footer{display:flex;justify-content:space-between;gap:12px;margin-top:43px;padding:20px 0 28px;border-top:1px solid #e1e1d5;color:#a3a99c;font-size:10px}.mobile-controls{display:none}
@media(max-width:1050px){.site-shell{padding:0 26px}.layout{grid-template-columns:minmax(0,1fr) 275px;gap:20px}.game-hud{top:15px;right:15px}}
@media(max-width:760px){.site-shell{padding:0 16px}.site-header{height:69px}.brand{font-size:19px}.header-tag{display:none}.layout{display:block;padding-top:29px}.hero-copy{margin-bottom:22px}.hero-copy h1{font-size:35px}.hero-copy p{font-size:12px}.game-topbar{height:45px;padding:0 14px}.canvas-wrap{aspect-ratio:1000/530}.game-hud{top:12px;right:12px;gap:8px;padding:6px 8px}.hud-stat{min-width:50px}.hud-stat span{font-size:8px}.hud-stat strong{font-size:16px}.hud-divider{height:24px}.overlay-content{width:80%;padding:14px}.overlay h2{font-size:18px}.overlay p{font-size:10px;margin-bottom:10px}.primary-button{padding:9px;font-size:11px}.game-footer{padding:8px 12px}.keyboard-help{font-size:9px}.keycap{font-size:9px}.help-divider{margin:0 3px}.mobile-controls{display:flex;gap:10px;margin-top:12px}.mobile-control{flex:1;display:flex;justify-content:space-between;padding:13px;border:1px solid #d0dcca;border-radius:10px;background:#e8f0e3;color:#477353;font-size:12px;font-weight:800;touch-action:none;user-select:none}.mobile-control.jump-control{border-color:#dfb292;background:#f8e2ce;color:#a66b49}.mobile-control span{font-size:17px;line-height:1}.sidebar{padding:0;margin-top:24px}.profile-card{max-width:none}.site-footer{margin-top:29px}}
@media(max-width:420px){.hero-copy h1{font-size:30px}.game-label-en{display:none}.status-pill{font-size:9px}.canvas-wrap{aspect-ratio:1000/600}.overlay-content{width:82%}.game-footer{align-items:flex-start}.keyboard-help{max-width:250px}}

.game-actions{display:flex;align-items:center;gap:9px}
.view-toggle{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:5px 10px;border:1px solid #dbe4d6;border-radius:9px;background:#f3f8ef;color:#3f684e;font-size:11px;font-weight:800;white-space:nowrap;transition:background .15s,border-color .15s}
.view-toggle:hover{border-color:#aac8aa;background:#e6f1e3}
.view-toggle[aria-pressed="true"]{border-color:#a2bfa1;background:#deecda}
.view-toggle-icon{font-size:18px;line-height:1}
.mode-toolbar{margin:-8px 0 14px}
.mode-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mode-option{display:flex;align-items:center;gap:13px;min-height:78px;padding:14px 18px;border:1px solid #dedfd2;border-radius:14px;background:#fffcf5;color:#677a66;text-align:left;transition:background .18s,border-color .18s,box-shadow .18s}
.mode-option:hover{border-color:#91aa89;background:#f3f6e9}
.mode-option[aria-pressed="true"]{border-color:#325c47;background:#325c47;color:#fff7df;box-shadow:0 5px 14px #294b3814}
.mode-option:focus-visible{outline:3px solid #d99b65;outline-offset:3px}
.mode-option::after{content:'';flex:none;width:17px;height:17px;margin-left:auto;border:1px solid currentColor;border-radius:50%;opacity:.4}
.mode-option[aria-pressed="true"]::after{content:'✓';display:grid;place-items:center;border-color:#f2dbab;background:#f2dbab;color:#325c47;font-size:12px;font-weight:800;opacity:1}
.mode-symbol{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:#f5e4cf;color:#c58b51;font-size:26px;line-height:1}
.mode-option[aria-pressed="true"] .mode-symbol{background:#ffffff12;color:#f1cf89}
.mode-option-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.mode-option-copy strong{font-size:15px;letter-spacing:.03em}
.mode-option-copy small{font-size:11px;opacity:.76}
.mode-caption{display:flex;align-items:center;gap:10px;min-height:40px;padding:5px 2px 0}
.mode-caption p{margin:0;color:#87917f;font-size:11px;line-height:1.6}
.mode-reset[hidden]{display:none}
@media(max-width:360px){.mode-option .mode-symbol{display:none}}
.mode-reset{min-height:34px;margin-left:auto;padding:6px 12px;border:1px solid #c8d4c4;border-radius:9px;background:#eaf2e6;color:#426b50;font-size:11px;font-weight:800;white-space:nowrap}
.mode-reset:hover:not(:disabled){background:#d9ead7}
.mode-reset:disabled{opacity:.45;cursor:default}
.hazard-warning{position:absolute;z-index:3;top:46%;right:23px;display:grid;place-items:center;width:65px;height:65px;border:3px solid #ffdbd5;border-radius:18px;background:#c73533e8;color:#fff;font-size:37px;line-height:1;box-shadow:0 0 0 7px #d7353333,0 8px 23px #78292366;pointer-events:none;animation:hazard-flash .45s steps(2,end) infinite}
.hazard-warning[hidden]{display:none}
.resume-countdown{position:absolute;z-index:4;inset:0;display:grid;place-items:center;background:#263b3045;pointer-events:none}
.resume-countdown[hidden]{display:none}
.resume-countdown span{display:grid;place-items:center;width:clamp(100px,18%,160px);aspect-ratio:1;border:3px solid #fff8e2;border-radius:50%;background:#fff7e8ef;color:#2f5945;font-size:clamp(60px,10vw,108px);font-weight:800;font-variant-numeric:tabular-nums;line-height:1;box-shadow:0 0 0 12px #fff8e230,0 16px 50px #29412e55}
@keyframes hazard-flash{50%{opacity:.26;transform:scale(.91)}}
body.game-expanded .site-shell{max-width:1750px}
body.game-expanded .layout{grid-template-columns:minmax(0,1fr)}
body.game-expanded .sidebar{display:none}
@media(max-width:760px){.view-toggle{min-width:31px;min-height:29px;padding:3px 7px;justify-content:center}.view-toggle #view-toggle-label{display:none}body.game-expanded .site-shell{padding:0 8px}body.game-expanded .layout{padding-top:20px}}
@media(max-width:420px){.game-actions{gap:4px}.status-pill{padding:5px 6px}.hazard-warning{right:12px;width:48px;height:48px;font-size:28px}.mode-picker{gap:8px}.mode-option{gap:8px;min-height:74px;padding:11px 10px}.mode-symbol{width:26px;height:32px;font-size:23px}.mode-option-copy strong{font-size:13px}.mode-option-copy small{font-size:9px}.mode-option::after{width:13px;height:13px}.mode-caption p{font-size:10px}.mode-reset{min-height:32px;padding:5px 8px;font-size:10px}}
.footer-actions,.audio-controls,.audio-level{display:flex;align-items:center;gap:12px}
.footer-actions{flex:none;gap:14px}
.audio-controls{gap:9px}
.audio-level{gap:5px;color:#617c65;font-size:11px;font-weight:700;white-space:nowrap}
.audio-toggle{min-width:64px;padding:5px 7px;border:1px solid #dbe4d6;border-radius:7px;background:#f1f7ed;color:#4d7358;font-size:11px;font-weight:800;white-space:nowrap}
.audio-toggle:hover{background:#e3f0df}
.audio-toggle[aria-pressed="false"]{background:#f3f0ea;color:#8c9187}
.audio-toggle:disabled{opacity:.5;cursor:default}
#music-volume,#effects-volume{width:68px;height:18px;accent-color:#5b9970;cursor:pointer}
#music-volume:disabled,#effects-volume:disabled{opacity:.45;cursor:default}
@media(max-width:760px){.game-footer{flex-wrap:wrap}.footer-actions{width:100%;justify-content:flex-end}.audio-toggle{font-size:10px}#music-volume,#effects-volume{width:78px}}
@media(max-width:420px){.footer-actions{flex-wrap:wrap;gap:6px}.audio-controls{width:100%;justify-content:flex-end;gap:6px}.audio-level{font-size:10px}#music-volume,#effects-volume{width:56px}}

.outfit-portrait{display:block;width:88px;height:75px;overflow:hidden;border-radius:13px}.outfit-portrait canvas{display:block;width:100%;height:100%}.outfit-option{min-height:132px;padding:10px 5px;border-width:2px}.outfit-option strong{margin-top:7px;font-size:11px}.outfit-option small{font-size:10px;color:#7c897c}.outfit-option.selected{background:#f1f6ed;box-shadow:0 3px 12px #48653c0c}

.header-actions{display:flex;align-items:center;gap:22px}
.header-page-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;border:1px solid #b8cfb5;border-radius:999px;background:#eaf3e5;color:#315d43;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap;transition:background .15s,transform .15s,box-shadow .15s}
.header-page-link:hover{background:#dcebd5;transform:translateY(-2px);box-shadow:0 5px 14px #37563b24}
.header-page-link:focus-visible{outline:3px solid #ec9b69;outline-offset:3px}
@media(max-width:760px){.header-actions{gap:0}.header-page-link{min-height:34px;padding:7px 10px;font-size:11px}}

.overflow-whiteout[hidden]{display:none}
.game-card{position:relative}
.overflow-whiteout{position:absolute;z-index:10;inset:0;overflow:hidden;pointer-events:auto;animation:overflow-white-screen .9s ease-out forwards}
.overflow-whiteout::before{content:'';position:absolute;left:18.5%;top:64%;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,#fff 0 12%,#fff7c9 24%,#ffba72 42%,#e68d73 58%,#ffffff00 72%);box-shadow:0 0 35px 16px #fff3a9;animation:overflow-flash .68s ease-out both}
.overflow-whiteout::after{content:'';position:absolute;left:18.5%;top:64%;width:108px;height:108px;border:10px solid #fff8d2;border-radius:50%;box-shadow:0 0 0 14px #efac774f,0 0 40px 18px #fff2ba;animation:overflow-shockwave .7s ease-out both}
@keyframes overflow-white-screen{0%,18%{background:#ffffff00}48%{background:#fff8e6b8}100%{background:#fff}}
@keyframes overflow-flash{0%{opacity:0;transform:translate(-50%,-50%) scale(.08)}12%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(8)}}
@keyframes overflow-shockwave{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}18%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(10)}}
