:root{color-scheme:dark;--ink:#111327;--blue:#26214f;--violet:#7954ff;--pink:#ff4f8b;--yellow:#ffdc35;--light:#faf8ff;--muted:#b5aecb;--cyan:#76e7ff}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;min-height:100%;overscroll-behavior:none}body{font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:#fff;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 14% 12%,#5140a3 0%,transparent 35%),radial-gradient(ellipse at 96% 85%,#a12b62 0%,transparent 40%),#100e21}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #fff;outline-offset:3px}img{max-width:100%}.app{position:relative;width:100%;max-width:460px;height:100dvh;min-height:560px;max-height:930px;overflow:hidden;isolation:isolate;background:linear-gradient(165deg,#201b48 0%,#17152d 53%,#181327 100%);box-shadow:0 24px 90px #080511ab} .app:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(#ffffff0b 1px,transparent 1px);background-size:20px 20px;opacity:.3}.ambient{position:absolute;pointer-events:none;z-index:-1;border-radius:50%;filter:blur(50px);opacity:.35}.ambient-one{width:240px;height:220px;background:#7f4bfb;top:15%;left:-140px}.ambient-two{width:220px;height:240px;background:#ff4285;bottom:0;right:-130px}.topbar{height:56px;position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:7px 18px;border-bottom:1px solid #ffffff17}.rush-chip{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:.09em;font-weight:900;color:#d7d0f6;white-space:nowrap}.status-dot{height:7px;width:7px;border-radius:50%;background:#74f6bc;box-shadow:0 0 10px #74f6bc}.slash{opacity:.3}.top-controls{display:flex;align-items:center;gap:8px}.best-chip{font-size:9px;color:#aba4ca;letter-spacing:.03em;background:#ffffff0d;border:1px solid #ffffff20;border-radius:40px;padding:7px 9px;white-space:nowrap}.best-chip strong{font-size:12px;color:var(--yellow);margin-left:4px;letter-spacing:0;font-variant-numeric:tabular-nums}.icon-btn{border-radius:50%;height:31px;width:31px;display:grid;place-items:center;color:white;background:#ffffff17;border:1px solid #ffffff30;font-size:17px;line-height:1}.screen-container{position:relative;height:calc(100% - 56px)}.screen{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;display:none;flex-direction:column;padding:17px 20px 14px;overscroll-behavior:contain;scrollbar-width:none}.screen::-webkit-scrollbar{display:none}.screen.active{display:flex;animation:screen-in .28s ease both}@keyframes screen-in{from{opacity:.3;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.eyebrow{display:flex;align-items:center;justify-content:center;gap:10px;color:#ffdf7b;font-size:11px;font-weight:900;letter-spacing:.08em}.eyebrow-line{height:2px;flex:1;background:linear-gradient(90deg,transparent,#fce07a)}.eyebrow-line:last-child{transform:scaleX(-1)}.game-logo{text-align:center;margin-top:7px;line-height:1.03;filter:drop-shadow(0 7px 0 #100b25)}.game-logo>span{display:block;font-weight:1000;font-size:clamp(37px,9vw,52px);letter-spacing:-.09em;paint-order:stroke fill;color:#fbf9ff;-webkit-text-stroke:3px #12152d;text-shadow:3px 3px 0 #624fff,-3px -1px 0 #624fff}.game-logo>strong{display:block;position:relative;font-size:clamp(37px,9vw,53px);letter-spacing:-.1em;color:#ff655d;-webkit-text-stroke:2.7px #1a1024;paint-order:stroke fill;text-shadow:3px 5px 0 #9e203b,0 -2px 0 #ffcc8b}.logo-bag{display:inline-block;font-size:24px;transform:rotate(17deg) translateY(-12px);letter-spacing:0;-webkit-text-stroke:0}.start-copy{text-align:center;font-size:12px;font-weight:800;color:#e1daf8;margin:12px 0 14px}.train-scene{position:relative;min-height:180px;flex:1;max-height:340px;overflow:hidden;border:3px solid #f6b941;border-radius:20px;box-shadow:0 9px 0 #5a3477,0 14px 30px #0004;transform:rotate(-.5deg)}.train-scene>img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}.scene-glass{position:absolute;inset:0;background:linear-gradient(0deg,#171126d9,transparent 32%,transparent 70%,#17112656)}.scene-label{position:absolute;border-radius:7px;padding:7px 9px;font-weight:1000;font-size:11px;box-shadow:3px 4px 0 #151125}.scene-label-top{top:13px;right:11px;color:#161026;background:#ffe24b;transform:rotate(5deg)}.scene-label-top b{font-size:14px}.scene-label-bottom{bottom:12px;left:12px;background:#ed3159;color:white;transform:rotate(-5deg)}.game-flow{display:flex;align-items:center;justify-content:space-between;margin:23px 0 17px;gap:4px}.game-flow>div:not(.flow-arrow){flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;white-space:nowrap}.game-flow span{font-weight:900;color:#ffeb9d;border:1px solid #f7ce4999;background:#f4c44316;font-size:11px;border-radius:7px;padding:4px 9px}.game-flow b{font-size:10px;color:#e9e5ff}.flow-arrow{font-size:22px;color:#ffd848;font-weight:1000}.action-btn{width:100%;min-height:65px;flex-shrink:0;border:none;border-radius:15px;display:flex;align-items:center;justify-content:center;gap:14px;position:relative;padding:12px 16px;letter-spacing:-.055em;font-size:clamp(19px,5.1vw,24px);font-weight:1000;transition:transform .1s,box-shadow .1s;touch-action:manipulation}.action-btn:active{transform:translateY(3px) scale(.99);box-shadow:0 2px 0 #943012}.action-primary{background:linear-gradient(165deg,#ffef53,#ffac22);color:#2b1722;box-shadow:0 6px 0 #a95827,0 12px 20px #0301093b;border:2px solid #fffbc3}.action-arrow{font-size:25px;line-height:1}.action-outline{background:transparent;border:2px solid #7e72af;color:#e8e1ff;margin-top:12px;font-size:18px;box-shadow:none;min-height:55px}.bottom-hint{text-align:center;color:#b1a9d2;font-size:10px;font-weight:650;letter-spacing:.01em;margin:15px 0 0}.phase-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.phase-num{display:inline-block;background:#6551ca47;border:1px solid #9682e2a8;padding:5px 10px;border-radius:40px;color:#e8e0ff;font-weight:900;font-size:10px;letter-spacing:.1em}.phase-swipe{font-size:10px;font-weight:1000;letter-spacing:.1em;color:#f5ca50}.phase-heading{font-size:clamp(31px,7.7vw,39px);font-weight:1000;letter-spacing:-.075em;text-align:center;margin:20px 0 3px;line-height:1.1;text-shadow:3px 4px 0 #0c0b25}.yellow{color:#ffdc32}.phase-sub{text-align:center;font-weight:800;font-size:12px;color:#ded7fb;margin:9px 0 17px}.phase-sub em{color:#ffe457;font-style:normal}.aim-art{position:relative;min-height:160px;flex:1;max-height:330px;border-radius:20px;border:3px solid #8767e0;box-shadow:0 7px 0 #292147;overflow:hidden;background:#252144}.aim-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.aim-art-tint{position:absolute;inset:0;background:linear-gradient(120deg,#19132d8a,#3c205999),linear-gradient(0deg,#19132dc7,transparent 70%)}.stolen-tag{position:absolute;top:15px;left:12px;padding:8px 12px;background:#f53666;border:2px solid white;box-shadow:3px 3px 0 #1c1236;transform:rotate(-8deg);font-weight:1000;font-size:20px}.stolen-tag span{font-size:10px;display:block;color:#fff79c;text-align:center}.throw-guide{position:absolute;bottom:8px;left:9px;width:145px;height:145px;filter:drop-shadow(1px 2px 3px #0005)}.angle-display{position:absolute;bottom:15px;right:13px;background:#19152edb;border:2px solid #77edff;box-shadow:0 0 20px #62e2f75f;border-radius:13px;padding:6px 16px;text-align:center;min-width:120px}.angle-display span{display:block;font-size:10px;color:#dcf9ff;font-weight:800}.angle-display strong{display:block;color:#ffe151;font-weight:1000;font-size:38px;line-height:1.15;font-variant-numeric:tabular-nums}.aim-control{margin:22px 0 16px;padding:16px 15px 13px;background:#080d26c2;border:1px solid #7268b5;border-radius:16px}.control-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:8px}.control-heading b{color:#ffe15a;font-size:17px}.control-heading span{color:#aaa4ca;font-size:10px}.gauge-outer{padding:0 3px}.gauge-track{position:relative;height:28px;background:repeating-linear-gradient(90deg,transparent,transparent calc(11.111% - 1px),#e5e8fc2a calc(11.111% - 1px),#e5e8fc2a 11.111%),linear-gradient(90deg,#41477c,#646ca1);border:3px solid #a4aff0;border-radius:7px;box-shadow:0 0 0 4px #222c56,0 5px 12px #080714c7}.gauge-target{position:absolute;height:100%;top:0;left:42%;width:5.56%;background:#ffdd3a;box-shadow:0 0 16px #ffe93caa,inset 0 0 6px white;z-index:1}.gauge-needle{position:absolute;top:-13px;bottom:-12px;left:50%;width:5px;transform:translateX(-50%);background:#ff4c80;box-shadow:0 0 8px #f53867;z-index:2;border-radius:3px;pointer-events:none}.gauge-needle span{position:absolute;top:-5px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:11px solid transparent;border-right:11px solid transparent;border-top:13px solid #ff4c80}.gauge-labels{display:flex;justify-content:space-between;font-size:11px;font-weight:900;color:#c6c5e6;margin-top:16px}.gauge-caption{text-align:center;margin-top:12px;font-size:11px;color:#c5bedf}.gauge-caption strong{color:#ffe74c}.square-yellow{display:inline-block;background:#ffdc35;width:9px;height:9px;border-radius:2px;margin-right:4px}.perfect-flash{position:absolute;inset:0;display:none;align-items:center;justify-content:center;z-index:9;background:#18112791;font-size:clamp(45px,12vw,65px);font-weight:1000;color:#ffe733;-webkit-text-stroke:2px #1a1040;text-shadow:5px 6px 0 #bc3b64,0 0 28px #ffdf49;pointer-events:none}.perfect-flash.show{display:flex;animation:pop-flash .65s ease both}@keyframes pop-flash{0%{opacity:0;transform:scale(.6)}30%{opacity:1;transform:scale(1.14)}65%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.15)}}.spin-screen{padding-top:15px}.unlimited-label{background:#ffd836;color:#2b1830;border-radius:20px;padding:5px 10px;font-weight:1000;font-size:10px;letter-spacing:.06em}.spin-heading{margin:15px -8px 0;text-align:center;white-space:nowrap;font-weight:1000;letter-spacing:-.09em;font-size:clamp(29px,7.8vw,42px);line-height:1.13;color:#ffef57;-webkit-text-stroke:1px #170f2e;text-shadow:3px 4px 0 #f53c65,6px 7px 0 #160c31;animation:spin-shout .52s infinite alternate ease-in-out}@keyframes spin-shout{to{transform:rotate(-1.1deg) scale(1.01)}}.spin-sub{text-align:center;font-weight:850;color:#eee9ff;font-size:12px;margin:16px 0 10px}.spin-pad{height:clamp(240px,45vh,420px);flex:1;min-height:220px;max-height:460px;position:relative;isolation:isolate;margin:5px -8px 10px;border-radius:22px;border:2px solid #9568d9;overflow:hidden;background:radial-gradient(circle at center,#3c216a,#26183f 48%,#171127 95%);touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}.spin-pad:active{cursor:grabbing}.spin-art-bg{position:absolute;inset:0;background-image:linear-gradient(#170c42a3,#170c42e0),url('../assets/images/spin.webp');background-size:cover;opacity:.85;background-position:center}.spin-glow{position:absolute;inset:5%;border-radius:50%;background:radial-gradient(circle,#ffb33a35,transparent 64%);opacity:.5;transform:scale(.7);pointer-events:none}.orbit{position:absolute;top:50%;left:50%;border:3px dashed #fff9;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.orbit-one{height:min(78vw,310px);width:min(78vw,310px);max-height:90%;max-width:90%;border-color:#73e9ffcc;border-width:4px;box-shadow:0 0 15px #88e5ffc0;animation:orbit-right 4s linear infinite}.orbit-two{height:min(64vw,250px);width:min(64vw,250px);max-height:74%;max-width:74%;border-color:#ffd34288;animation:orbit-left 3s linear infinite}.orbit-three{height:min(89vw,380px);width:min(89vw,380px);max-height:97%;max-width:97%;border-color:#fb72b066;border-width:2px;animation:orbit-right 5s linear infinite}@keyframes orbit-right{to{transform:translate(-50%,-50%) rotate(360deg)}}@keyframes orbit-left{to{transform:translate(-50%,-50%) rotate(-360deg)}}.spin-bag-wrap{position:absolute;left:50%;top:50%;width:clamp(118px,34vw,180px);transform:translate(-50%,-50%) rotate(var(--bag-rotation,0deg));filter:drop-shadow(10px 14px 1px #120f32) drop-shadow(0 0 14px #1a9cf7);pointer-events:none;will-change:transform}.bag-svg{width:100%;display:block}.spin-center-prompt{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:100px;height:100px;background:#170d33d9;border:2px solid #ffe463;border-radius:50%;box-shadow:0 0 24px #ffd6318c;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:30px;font-weight:1000;color:#ffe348;line-height:1;pointer-events:none;transition:opacity .2s}.spin-center-prompt span{font-size:11px;color:white;margin-top:3px;text-align:center;line-height:1.3}.spin-center-prompt.hidden{opacity:0}.spin-spark{position:absolute;pointer-events:none;color:#ffe34d;font-size:30px;filter:drop-shadow(0 0 8px #ffd83e)}.spark-one{top:11%;left:13%}.spark-two{top:60%;right:10%;color:#bdf6ff}.spark-three{bottom:10%;left:17%;font-size:23px}.spin-stats{display:grid;grid-template-columns:1fr 2fr;gap:9px;margin-top:auto}.spin-timer,.spin-power{border-radius:13px;border:1px solid #968cd1;background:#17132de3;display:flex;align-items:center;justify-content:center;gap:3px;padding:10px 7px;white-space:nowrap}.spin-timer span{font-size:12px;color:#d5caee;font-weight:800}.spin-timer strong{font-size:32px;color:#fff;font-weight:1000;font-variant-numeric:tabular-nums}.spin-power{flex-direction:column;gap:0;border-color:#eb9447;background:linear-gradient(145deg,#561c37,#261629);box-shadow:inset 0 0 30px #ff51281f}.spin-power>span{font-size:13px;color:#fff;font-weight:1000;letter-spacing:.03em}.spin-power em{color:#f6d942;font-style:normal}.spin-power>strong{font-size:clamp(27px,7vw,36px);color:#ffdc36;text-shadow:0 0 10px #ec6d17;font-weight:1000;line-height:1.12;font-variant-numeric:tabular-nums}.spin-tip{display:flex;justify-content:center;gap:7px;align-items:center;padding:9px;font-weight:900;font-size:11px;background:#fff1b416;color:#f6dc86;border:1px solid #ecbd5345;border-radius:9px;margin-top:10px}.spin-screen .bottom-hint{margin:10px 0 1px}.flight-heading{text-align:center;font-size:36px;letter-spacing:-.075em;margin:19px 0 16px;color:#ffeb4b;text-shadow:3px 4px 0 #b12e60}.flight-view{position:relative;flex:1;min-height:340px;max-height:630px;border-radius:19px;overflow:hidden;border:3px solid #9e79ed;background:linear-gradient(#54c1f8,#ffe4b0);box-shadow:0 7px 0 #2e234d}.flight-view canvas{width:100%;height:100%;display:block}.flight-bubble{display:none}.flight-hud{position:absolute;left:12px;right:12px;top:15px;background:#100e2fb8;border:2px solid #ffffff60;backdrop-filter:blur(6px);border-radius:13px;text-align:center;padding:8px}.flight-hud span{display:block;color:#c5eaff;font-weight:900;font-size:11px}.flight-hud strong{font-size:clamp(34px,10vw,52px);font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:#ffde49}.flight-hud strong span{display:inline;color:#ffe681;font-size:17px}.flight-details{display:flex;justify-content:space-around;gap:10px;margin-top:20px;color:#d2c8f5;font-weight:900;font-size:12px}.result-screen{align-items:center}.result-tag{background:#dcae34;color:#1b1424;border-radius:30px;font-size:10px;font-weight:1000;padding:6px 10px}.result-tag.new-record{background:#ff4d85;color:white}.result-screen>.phase-top{width:100%}.result-burst{margin-top:25px;font-size:80px;filter:drop-shadow(0 0 18px #ff5b7b);line-height:1;transform:rotate(-14deg);animation:result-bounce .7s ease both}.result-burst span{font-size:47px}@keyframes result-bounce{0%{transform:translateY(-90px) scale(.2) rotate(-30deg)}65%{transform:translateY(5px) scale(1.16) rotate(8deg)}100%{transform:rotate(-14deg)}}.result-heading{font-size:39px;margin:20px 0 10px;line-height:1;letter-spacing:-.08em;color:#ffe44d;text-shadow:4px 5px 0 #ee3d71}.result-distance-label{font-size:13px;font-weight:900;color:#ddd4fe;margin-top:20px}.result-distance{display:flex;justify-content:center;align-items:baseline;gap:7px;margin-top:0;color:#fff}.result-distance strong{font-weight:1000;letter-spacing:-.045em;font-size:clamp(48px,13vw,64px);font-variant-numeric:tabular-nums;text-shadow:0 0 16px #e47354}.result-distance span{font-size:24px;font-weight:1000;color:#ffdb49}.result-rank{text-align:center;border-radius:100px;padding:7px 22px;background:#f2cf46;color:#2b1a38;font-weight:1000;font-size:15px;transform:rotate(-3deg)}.result-fun{color:#e5dcfa;text-align:center;font-size:12px;font-weight:800;min-height:35px;margin:15px 0}.result-meta{width:100%;display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:8px;margin:14px 0 25px}.result-meta>div{background:#ffffff0e;border:1px solid #ffffff26;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 5px;white-space:nowrap}.result-meta span{color:#aaa4cc;font-size:10px;font-weight:800}.result-meta strong{font-size:14px;color:#ffe45c;font-weight:1000}.result-screen .action-btn{width:100%}.result-screen .bottom-hint{margin-top:15px}.toast{position:absolute;z-index:100;left:50%;bottom:25px;transform:translate(-50%,18px);opacity:0;pointer-events:none;min-width:180px;max-width:90%;text-align:center;background:#fff;color:#261c39;padding:10px 17px;font-size:13px;font-weight:900;border-radius:40px;box-shadow:0 8px 26px #0008;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}@media(min-width:500px){.app{border-radius:34px;border:7px solid #302b46;height:min(860px,96dvh)}.topbar{height:54px}.screen-container{height:calc(100% - 54px)}}@media(max-height:700px){.screen{padding-top:12px;padding-bottom:9px}.game-logo>span,.game-logo>strong{font-size:36px}.game-flow{margin:14px 0}.start-copy{margin:7px 0 10px}.train-scene{min-height:160px}.action-btn{min-height:56px}.bottom-hint{margin-top:9px}.phase-heading{margin-top:10px}.phase-sub{margin-bottom:9px}.aim-control{margin:12px 0 12px;padding:12px}.spin-heading{margin-top:8px}.spin-sub{margin:10px 0 6px}.spin-pad{min-height:210px}.result-burst{font-size:55px;margin-top:10px}.result-heading{font-size:33px;margin:13px 0 7px}.result-distance-label{margin-top:10px}.result-fun{margin:10px 0}.result-meta{margin:9px 0 15px}}@media(prefers-reduced-motion:reduce){.screen.active{animation:none}.orbit{animation:none}.spin-heading{animation:none}}
.train-scene.grabbed{animation:grab-shake .13s 5 alternate ease-in-out}.train-scene.grabbed img{transform:scale(1.12);filter:saturate(1.4)}@keyframes grab-shake{from{transform:translate(-6px,1px) rotate(-2deg)}to{transform:translate(7px,-2px) rotate(2deg)}}

/* X result sharing: clear, scrollable preview and visible share CTA. */
.result-screen .result-burst{margin-top:12px;font-size:64px}
.result-screen .result-burst span{font-size:38px}
.result-screen .result-heading{margin:13px 0 5px;font-size:35px}
.result-screen .result-distance-label{margin-top:10px}
.result-screen .result-fun{min-height:18px;margin:10px 0 6px}
.result-screen .result-meta{margin:9px 0 13px}
.share-preview{width:100%;border:1px solid #777196;background:#141324c9;border-radius:14px;padding:12px 14px;margin:0 0 13px;display:flex;flex-direction:column;gap:5px}
.share-preview-header{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:900;color:#d0cbe2}
.share-preview-x{font-size:18px;color:#fff;line-height:1}
.share-preview-text{margin:3px 0 0;font-size:12px;line-height:1.5;color:#fff;font-weight:740;white-space:pre-line;overflow-wrap:anywhere}
.share-hashtags{font-size:12px;line-height:1.6;font-weight:900;color:#a5d4ff;overflow-wrap:anywhere}
.action-x{background:#050507;border:2px solid #c9c9d8;color:#fff;box-shadow:0 5px 0 #494353;font-size:18px;min-height:57px;text-decoration:none;cursor:pointer}
.action-x:active{box-shadow:0 2px 0 #494353}
.x-mark{font-size:23px;margin-right:4px;vertical-align:-2px}
.result-screen .action-primary{margin-top:12px}
.result-screen .bottom-hint{margin-top:12px;line-height:1.55;padding-bottom:8px}
@media(max-height:700px){.share-preview{padding:10px 12px}.result-screen .result-burst{margin-top:3px;font-size:53px}.result-screen .result-heading{margin:9px 0 3px}}
