:root{font-family:"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#2e3632;background:#f5f3ec;font-synthesis:none;--red:#c64631;--ink:#2e3632;--muted:#85897e;--line:#dedfd4}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #c64631;outline-offset:5px}button{border:0}a{color:inherit;text-decoration:none}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button svg{width:22px;height:22px}.svg-defs{position:absolute;width:0;height:0}.app-shell{max-width:1680px;margin:auto;padding:0 48px}.header{height:108px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:13px;font-weight:900;font-size:24px;letter-spacing:-1px;line-height:1.1}.brand-seal{display:grid;place-items:center;width:44px;height:48px;border-radius:4px;background:var(--red);color:#fff8ed;font-size:31px;font-family:serif;font-weight:900;transform:rotate(-3deg)}.brand-run{color:var(--red);font-size:25px;letter-spacing:-1.5px;margin-left:4px}.brand small{display:block;font-size:8px;letter-spacing:3px;font-weight:600;margin:7px 0 0 2px}.header-right{display:flex;align-items:center;gap:21px}.edition{font-size:11px;color:#7d8278;letter-spacing:1px;margin-right:29px}nav{display:flex;gap:29px}.text-button{font-size:12px;background:none;padding:10px 0;font-weight:600}.text-button span{margin-left:12px;color:#94988b}.header-divider{height:21px;width:1px;background:var(--line);margin:0 2px 0 8px}.icon-button{position:relative;display:grid;place-items:center;width:30px;height:32px;background:transparent}.icon-button svg{width:20px;height:20px}.mute-dot{position:absolute;right:3px;bottom:4px;width:6px;height:6px;background:var(--red);border:1px solid #f5f3ec;border-radius:50%}.game-stage{height:min(610px,65vw);min-height:460px;border:1px solid #dce0d2;border-radius:13px;position:relative;overflow:hidden;background:#dce4d0;isolation:isolate}#scene,#scene canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.scene-wash{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(234,237,220,.98),rgba(234,237,220,.88) 22%,rgba(234,237,220,.15) 48%,transparent 67%);transition:opacity .8s}.scene-top{position:absolute;top:25px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between}.pill{display:flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid #aebba0;border-radius:5px;font-size:8px;letter-spacing:1.6px;font-weight:700;background:#f0f1df66}.pill i,.version i,.mini-map>div i{width:5px;height:5px;border-radius:50%;background:#647e56}.scene-label{font-size:10px;letter-spacing:1.5px;color:#5d6e56;margin-left:auto;margin-right:20px}.hero-copy{position:absolute;left:48px;top:100px;transition:opacity .35s,transform .5s;pointer-events:none}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:600;display:flex;align-items:center;gap:9px}.eyebrow>span{width:18px;height:1px;background:var(--red)}h1{font-size:clamp(48px,5.3vw,78px);font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-weight:900;letter-spacing:-5px;line-height:1.35;margin:21px 0 19px}h1>span{color:var(--red)}.hero-copy p{font-size:12px;line-height:2.1;letter-spacing:1px;color:#65705f}.hero-tags{display:flex;gap:15px;font-size:7px;letter-spacing:1.5px;margin-top:22px;color:#7d8873}.hero-tags>span+span{border-left:1px solid #bac2ad;padding-left:15px}.vertical-copy{position:absolute;right:28px;top:90px;writing-mode:vertical-rl;letter-spacing:4px;font-size:12px;font-family:serif;color:#4b5c45}.corner-note{position:absolute;left:30px;bottom:137px;display:flex;align-items:center;gap:12px;font-size:7px;line-height:1.8;letter-spacing:1px;color:#72816a}.corner-note b{font-weight:400;font-size:9px;letter-spacing:1px}.compass{display:flex;flex-direction:column;align-items:center;font-size:8px;gap:2px}.compass i{font-size:22px;font-style:normal}.mini-map{position:absolute;right:26px;bottom:138px;width:104px;text-align:center;background:#f9faedb3;border:1px solid #ffffffa1;backdrop-filter:blur(10px);border-radius:8px;padding:12px 8px}.mini-map>span{font-size:7px;letter-spacing:1.4px}.mini-map svg{display:block;width:76px;height:98px;margin:auto;stroke-linejoin:round}#map-outline{stroke:#d1d8c4;stroke-width:13}#map-path{stroke:#7a8e66;stroke-width:2;stroke-dasharray:3 3}#map-player{fill:var(--red);stroke:#fffbef;stroke-width:2}.mini-map>div{font-size:7px;display:flex;align-items:center;justify-content:center;gap:6px;letter-spacing:1px}.start-panel{position:absolute;bottom:18px;left:22px;right:22px;background:#fcfcf2f2;backdrop-filter:blur(15px);border:1px solid #ffffffb3;border-radius:8px;display:flex;align-items:center;padding:19px 25px;box-shadow:0 4px 20px #38442706;min-height:99px}.selected-info{flex:1}.stage-kicker{font-size:8px;letter-spacing:1.5px;font-weight:700;color:#7e8974;display:flex;align-items:center;gap:6px}.stage-kicker b{color:var(--red)}.difficulty{font-size:8px;font-weight:400;letter-spacing:.5px;background:#e6ecd9;color:#718561;padding:3px 8px;border-radius:3px;margin-left:9px}.selected-info h2{font-size:19px;letter-spacing:2px;margin:6px 0}.selected-info p{font-size:10px;color:#848b7d;margin:0}.start-button{display:flex;align-items:center;justify-content:space-between;gap:53px;background:var(--red);color:#fffaf0;border-radius:5px;padding:14px 23px;min-width:214px;transition:background .2s,transform .2s}.start-button:hover{background:#b23726;transform:translateY(-2px)}.start-button>span{font-size:17px;font-weight:700;letter-spacing:2px}.start-button small{display:block;font-size:7px;font-weight:500;letter-spacing:2px;margin-top:5px}.start-button svg{width:23px}.start-shortcut{display:flex;gap:6px;align-items:center;margin-left:18px;color:#93998a;font-size:8px}kbd{display:inline-grid;place-items:center;border:1px solid #d2d5c8;border-bottom-width:2px;border-radius:3px;background:#fafbf4;font:10px monospace;min-width:24px;height:24px;color:#697160}.start-shortcut kbd{font-size:7px;min-width:40px;height:19px}.course-section{padding-top:27px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.section-heading h2{font-size:12px;letter-spacing:1px;margin:0;font-weight:700}.section-heading h2 span{font-size:7px;letter-spacing:1.6px;color:#92968a;margin-left:15px;font-weight:500}.unlock-note{font-size:9px;color:#909587;letter-spacing:.5px}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.course-card{position:relative;background:#eeeee5;border:1px solid #dddfd2;border-radius:7px;padding:19px 17px 32px;text-align:left;display:flex;gap:13px;min-height:118px;overflow:hidden;transition:border .2s,transform .2s}.course-card:hover{transform:translateY(-2px);border-color:#adb69c}.course-card.active{border:1.5px solid var(--red);background:#faf8ef}.course-number{font:italic 32px Georgia,serif;color:#a4ad94;line-height:1.1}.active .course-number{color:var(--red)}.course-card-copy{position:relative;z-index:1}.course-kind{display:block;font-size:6px;letter-spacing:1.3px;color:#89927c}.course-card strong{display:block;font-size:13px;letter-spacing:.5px;margin:7px 0}.course-card small{font-size:8px;color:#858c7b}.course-card small i{font-size:7px;letter-spacing:2px;font-style:normal;margin-left:10px}.course-art{position:absolute;right:13px;top:13px;width:86px;height:56px;stroke:#d3d9c4;stroke-width:11;opacity:.6}.active .course-art{stroke:#e7cbb6}.card-state{position:absolute;bottom:9px;right:12px;display:flex;align-items:center;gap:5px;font-size:7px;letter-spacing:.5px;color:#8f9783}.card-state svg{width:9px;height:9px}.active .card-state{color:var(--red)}.active .card-state>span{margin-left:10px;font-size:13px}.instruction-strip{display:flex;align-items:center;gap:20px;min-height:69px;font-size:10px;color:#7d8575}.strip-label{font-size:7px;letter-spacing:1.6px;color:#545f4c;margin-right:3px}.instruction-strip>div{display:flex;align-items:center;gap:5px}.instruction-strip>div>span{margin:0 3px;font-size:9px}.instruction-strip kbd{width:21px;min-width:21px;height:21px}.instruction-strip p{font-size:9px;letter-spacing:.5px}.strip-dot{color:#b9bead}.instruction-strip>button{margin-left:auto;font-size:9px;background:none}.instruction-strip>button span{margin-left:10px}footer{border-top:1px solid var(--line);padding:21px 0 24px;display:flex;justify-content:space-between;align-items:center;color:#93988b;font-size:7px;letter-spacing:1.2px}footer>span:nth-child(2){font-size:8px;letter-spacing:1.5px}.version{display:flex;align-items:center;gap:7px}.version i{background:var(--red);width:4px;height:4px}.play-hud{position:absolute;top:83px;left:31px;right:31px;display:flex;justify-content:space-between;pointer-events:none}.hud-label{display:block;font-size:8px;font-weight:700;letter-spacing:2px;color:#5e7055}.play-hud strong{display:block;font:500 32px monospace;letter-spacing:-1px;margin:5px 0}.play-hud small{font-size:8px;letter-spacing:1px;color:#74876a}.progress-block{text-align:right;width:170px}.progress-track{height:4px;background:#aeba9b77;border-radius:5px;margin:10px 0}.progress-track i{display:block;width:0;height:100%;background:var(--red);border-radius:5px}.drive-controls{position:absolute;bottom:22px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.steer-button{pointer-events:auto;touch-action:none;user-select:none;background:#fbfcf0ec;border:1px solid #fff9;border-radius:9px;width:130px;padding:10px 13px;box-shadow:0 4px 15px #344d2720;transition:background .12s,color .12s}.steer-button>span{font-size:30px;line-height:1.2}.steer-button small{display:block;font-size:9px;letter-spacing:1px}.steer-button kbd{height:18px;min-width:18px;font-size:8px;margin-left:7px}.steer-button.pressed{background:var(--red);color:#fff}.steering-status{text-align:center;background:#f7f8e4c9;backdrop-filter:blur(10px);padding:12px 20px;border-radius:7px;min-width:150px}.steering-status>span{font:20px monospace}.steering-status>span small{font:9px sans-serif}.steering-status>small{font-size:8px;letter-spacing:1px;color:#718264}.inertia-track{height:4px;background:#c5ceb7;position:relative;border-radius:3px;margin:10px 0 6px}.inertia-track:before{content:"";position:absolute;left:50%;width:1px;height:10px;top:-3px;background:#8d9b7f}.inertia-track i{position:absolute;left:50%;top:-2px;width:8px;height:8px;border-radius:50%;background:var(--red);transform:translateX(-50%)}.countdown{position:absolute;inset:0;display:grid;place-content:center;text-align:center;font:700 105px Georgia,serif;color:var(--red);background:#edf0dc22;pointer-events:none;text-shadow:0 3px 20px #f5f3ec}.countdown small{display:block;font:11px sans-serif;letter-spacing:4px}.loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:18px;background:#e6ead9;font-size:12px;letter-spacing:2px;z-index:5}.scene-error{position:absolute;inset:0;place-content:center;text-align:center;background:#e6ead9;z-index:6}.scene-error h2{font-size:20px}.scene-error p{font-size:12px}.running .scene-wash{opacity:0}.running .hero-copy{opacity:0;transform:translateX(-20px)}.running .vertical-copy,.running .corner-note{display:none}.running .mini-map{bottom:135px}.running .scene-label{display:none}.running .game-stage{height:min(680px,75vh)}.running .course-section,.running .instruction-strip{display:none}.running footer{margin-top:22px}dialog{border:1px solid #e0dfd2;background:#f9f7ee;color:var(--ink);border-radius:13px;padding:44px;max-width:510px;width:calc(100% - 32px);box-shadow:0 25px 100px #26302344}dialog::backdrop{background:#26302366;backdrop-filter:blur(5px)}.modal-close{position:absolute;right:14px;top:14px}.modal-eyebrow{font-size:9px;color:var(--red);letter-spacing:2px;font-weight:700}dialog h2{font-family:serif;font-size:31px;letter-spacing:1px;margin:12px 0 22px}dialog p{font-size:12px;line-height:2;color:#758069}dialog .modal-action{background:var(--red);color:#fff;border-radius:5px;display:flex;align-items:center;justify-content:center;gap:24px;width:100%;padding:16px;font-size:14px;margin-top:22px}dialog .secondary-action{background:none;display:block;margin:16px auto 0;font-size:11px;color:#7b8572}.help-item{border-top:1px solid var(--line);padding:14px 0;display:flex;gap:17px;align-items:center}.help-item>span{font:italic 22px Georgia;color:var(--red)}.help-item strong{font-size:12px}.help-item p{font-size:10px;margin:4px 0 0;line-height:1.7}.result-number{font:44px monospace;margin:13px 0;color:var(--red)}.result-stats{display:flex;justify-content:space-between;font-size:11px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#7e8874}.record-row{padding:16px 0;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:12px}.record-row small{display:block;font-size:9px;color:#8c9483;margin-top:6px}.record-row b{font:14px monospace;color:var(--red)}.settings-row{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:20px 0;font-size:12px;gap:20px}.settings-row input{accent-color:var(--red);max-width:150px}.settings-row select{background:#eeeee3;border:1px solid #d8dccb;padding:7px;border-radius:4px;color:#67725b}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#303e2e;color:#fff9ed;border-radius:6px;padding:13px 23px;font-size:11px;opacity:0;pointer-events:none;transition:.3s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}
@media(min-width:1450px){.game-stage{height:650px}.hero-copy{top:115px;left:60px}h1{font-size:84px}.hero-copy p{font-size:14px}.course-card{min-height:127px}.course-card strong{font-size:15px}.course-card-copy{margin-left:5px}}
@media(max-width:1100px){.app-shell{padding:0 28px}.edition{display:none}.hero-copy{left:35px;top:95px}h1{font-size:61px}.start-shortcut{display:none}.course-card{gap:10px;padding:16px 12px 31px}.course-number{font-size:27px}.course-card strong{font-size:11px}.course-art{width:65px;opacity:.4}.course-card small i{margin-left:5px;letter-spacing:0}.instruction-strip{gap:12px}.instruction-strip p{font-size:8px}}
@media(max-width:760px){.app-shell{padding:0 16px}.header{height:83px}.brand{font-size:20px;gap:10px}.brand-seal{width:35px;height:39px;font-size:26px}.brand-run{font-size:21px}.brand small{font-size:6px;letter-spacing:2.5px;margin-top:5px}.header-right{gap:12px}nav{gap:15px}.text-button{font-size:10px}.text-button span{display:none}.header-divider{display:none}.icon-button{width:25px}.header-right>.icon-button:last-child{display:none}.game-stage{height:640px;min-height:0}.scene-wash{background:linear-gradient(180deg,#e9eddb 0%,#e9eddbb3 32%,transparent 58%)}.scene-top{left:19px;right:19px;top:18px}.scene-label{font-size:8px;margin-right:0;letter-spacing:.6px}.pill{font-size:6px;padding:6px 8px;letter-spacing:1px}.hero-copy{left:25px;top:75px}.eyebrow{font-size:8px;letter-spacing:1.1px}h1{font-size:55px;line-height:1.25;letter-spacing:-3px;margin:16px 0 13px}.hero-copy p{font-size:10px;line-height:1.9;margin:0}.hero-tags{margin-top:14px;font-size:6px}.vertical-copy{top:85px;right:20px;font-size:10px;letter-spacing:3px}.corner-note{display:none}.mini-map{right:14px;bottom:146px;width:71px;padding:9px 4px}.mini-map>span{font-size:5px;letter-spacing:.5px}.mini-map svg{height:70px;width:55px}.mini-map>div{font-size:5px}.start-panel{left:11px;right:11px;bottom:12px;padding:15px;flex-wrap:wrap;gap:12px;min-height:113px}.selected-info h2{font-size:15px;margin:6px 0}.selected-info p{font-size:8px;max-width:150px;line-height:1.7}.stage-kicker{font-size:7px;gap:4px;letter-spacing:.6px}.difficulty{font-size:6px;margin-left:3px;padding:2px 5px}.start-button{min-width:130px;padding:14px;gap:13px}.start-button>span{font-size:14px;letter-spacing:1px}.start-button small{font-size:5px;letter-spacing:1px}.start-button svg{width:18px}.course-section{padding-top:24px}.section-heading{margin-bottom:12px}.section-heading h2{font-size:11px}.section-heading h2 span{font-size:5px;margin-left:8px;letter-spacing:1px}.unlock-note{font-size:7px}.course-grid{grid-template-columns:1fr;gap:9px}.course-card{padding:15px 15px 18px;min-height:87px;gap:15px;align-items:center}.course-number{font-size:34px}.course-kind{font-size:6px}.course-card strong{font-size:12px;margin:5px 0}.course-card small{font-size:8px}.course-art{right:17px;top:10px;width:90px}.card-state{bottom:8px;font-size:6px}.course-card small i{margin-left:8px}.instruction-strip{min-height:90px;gap:10px;flex-wrap:wrap;justify-content:center;align-content:center;row-gap:10px}.strip-label{font-size:6px}.instruction-strip p{display:none}.instruction-strip>button{margin-left:0;font-size:8px}.strip-dot{display:none}footer{padding:19px 0;font-size:6px;letter-spacing:.5px}footer>span:nth-child(2){display:none}.running .game-stage{height:calc(100svh - 125px);min-height:480px;max-height:900px}.play-hud{top:69px;left:20px;right:20px}.play-hud strong{font-size:25px}.progress-block{width:120px}.hud-label{font-size:7px;letter-spacing:1px}.play-hud small{font-size:6px}.drive-controls{left:16px;right:16px;bottom:20px}.steer-button{width:94px;padding:11px}.steer-button>span{font-size:30px}.steer-button kbd{display:none}.steer-button small{font-size:9px}.steering-status{min-width:100px;padding:10px}.steering-status>span{font-size:17px}.steering-status>span small{font-size:7px}.steering-status>small{font-size:7px}.running footer{margin-top:15px;padding-top:14px}dialog{padding:35px 26px}.result-number{font-size:36px}.scene-error h2{font-size:16px}.scene-error p{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.corner-note{display:none}

@media(max-width:760px){.header-right{gap:8px}.header-right>.icon-button:last-child{display:grid}nav{gap:12px}}

.inertia-track:before{display:none}.inertia-track i{left:0;top:0;height:4px;width:0;border-radius:3px;transform:none}

.result-actions {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.result-actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.result-actions-row > * {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px;
  border: 1px solid #d0d4c5;
  border-radius: 5px;
  background: transparent;
  color: #485643;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.result-actions-row > :not(:disabled):hover { background: #eeefe4; }
.result-actions-row > :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.result-actions-row > :disabled { color: #707669; cursor: default; }
@media (max-width: 350px) {
  .result-actions-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-actions-row .result-tip { grid-column: 1 / -1; }
}
.result-share-status { color: #485643; font-size: 11px; line-height: 1.5; }
.result-share-status:not(:empty) { margin-top: 10px; }
.result-share-copy {
  width: 100%;
  margin-top: 6px;
  padding: 7px;
  border: 1px solid #d0d4c5;
  border-radius: 5px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
