:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#123a48;background:#57c5d2;font-synthesis:none;--ink:#123a48;--paper:#fff7df;--coral:#eb7248;--line:#d1d5b5}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #123a48;outline-offset:4px}button{border:0}a{color:inherit;text-decoration:none}button:active{filter:brightness(.96)}[hidden]{display:none!important}#game-shell{position:relative;width:100%;height:100dvh;min-height:260px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}#scene{position:absolute;inset:0;touch-action:none}#scene canvas{display:block;width:100%;height:100%}#float-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.floating-number{position:absolute;top:0;left:0;font-size:20px;font-weight:900;color:#fff9dd;text-shadow:0 2px 0 #9d4c35,2px 0 0 #9d4c35,-2px 0 0 #9d4c35;will-change:transform;white-space:nowrap}.topbar{position:absolute;inset:18px 22px auto;display:flex;align-items:center;gap:14px;z-index:10;pointer-events:none}.topbar>*{pointer-events:auto}.brand{font-size:28px;font-weight:950;letter-spacing:-1px;text-shadow:0 2px 0 #c6f0e6}.brand span{display:block;font-size:11px;font-weight:600;letter-spacing:1px;margin-top:1px}.creator-card{margin-left:auto;display:flex;align-items:center;gap:10px;padding:6px 8px 6px 6px;border-radius:28px;background:#fff8e6ed;box-shadow:0 3px 0 #123a4812}.creator-profile{display:flex;align-items:center;gap:7px}.creator-profile img{border-radius:50%;object-fit:cover}.creator-profile span{display:flex;flex-direction:column;gap:1px}.creator-profile small{font-size:9px;color:#54726d}.creator-profile strong{font-size:12px;white-space:nowrap}.follow{font-size:12px;font-weight:800;background:#f3c45c;border-radius:18px;padding:8px 10px;white-space:nowrap}.icon-button{width:40px;height:40px;border-radius:50%;background:#fff8e6;font-size:20px;font-weight:900;box-shadow:0 3px 0 #123a481c}.run-bar{position:absolute;top:88px;left:22px;display:flex;gap:20px;align-items:flex-start;width:354px;z-index:5;pointer-events:none}.fish-status{width:198px}.status-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:5px;gap:8px}.status-label strong{font-size:14px}.meter{height:10px;background:#2154642b;overflow:hidden;border-radius:8px}.meter i{display:block;height:100%;width:100%;transition:width .12s linear;background:#e78054;border-radius:inherit}.health i{background:#f48660}.run-bar small{display:block;margin-top:5px;font-size:10px;color:#245e66;font-weight:700}.catch-status{width:140px}.catch-dots{display:flex;gap:3px;height:10px}.catch-dots i{flex:1;border-radius:2px;background:#21546425}.catch-dots i.done{background:#e7b64e}.catch-dots i.milestone{outline:1px solid #548783;outline-offset:0}.catch-dots i:last-child{background:#bc604940}.catch-dots i:last-child.done{background:#bc6049}#objective{position:absolute;top:82px;left:50%;transform:translateX(-50%);font-size:13px;font-weight:700;white-space:nowrap;background:#fff7dfa8;padding:8px 14px;border-radius:20px;max-width:90%;text-align:center;pointer-events:none}#enemy-banner{position:absolute;left:50%;top:124px;transform:translateX(-50%);width:min(340px,46vw);text-align:center}#enemy-banner>span{font-size:10px;color:#963d26;font-weight:800;margin-right:8px}#enemy-banner>strong{font-size:14px}.boss{margin-top:6px;height:8px;background:#83452d24}.boss i{background:#bf5637}#controls{position:absolute;left:24px;right:24px;bottom:32px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;pointer-events:none;height:124px;z-index:6}#controls>*{pointer-events:auto}#joystick{width:138px;height:138px;position:relative;display:none;touch-action:none}.joystick-base{position:absolute;width:108px;height:108px;border-radius:50%;left:15px;top:4px;background:#fff6db3b;border:2px solid #fff6db99;box-shadow:inset 0 0 0 12px #fff6db1a}.joystick-nub{position:absolute;width:48px;height:48px;left:28px;top:28px;border-radius:50%;background:#fff6dbb8;box-shadow:0 3px 0 #315b6a29;pointer-events:none}#joystick>span{position:absolute;bottom:0;width:100%;text-align:center;font-size:11px;font-weight:700;color:#285965}.action-controls{display:flex;align-items:flex-end;gap:18px}.skill-button,.dodge-button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;overflow:hidden;flex-shrink:0;box-shadow:0 5px 0 #964c36,0 8px 12px #245a6526;isolation:isolate}.skill-button{width:110px;height:110px;border:5px solid #fff5d9;border-radius:30px;background:#ec754e;color:#fff9df;transform:rotate(-3deg)}.dodge-button{width:78px;height:78px;border:4px solid #fff5d9;border-radius:50%;background:#318e9b;color:#fff9df;box-shadow:0 4px 0 #286572}.action-glyph{font-size:28px;line-height:1;font-weight:900;margin-bottom:6px}.dodge-button .action-glyph{font-size:30px;margin:0}.skill-button strong,.dodge-button strong{font-size:14px;position:relative}.skill-button small,.dodge-button small{font-size:10px;margin-top:4px;position:relative}.cooldown-shade{position:absolute;inset:auto 0 0;height:0;background:#19374388;z-index:-1;pointer-events:none}.skill-button[aria-disabled=true]{filter:saturate(.65)}.keyboard-hint{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:700;color:#245966}.keyboard-hint>div{text-align:center;line-height:1.7}kbd{display:inline-block;font-family:inherit;background:#fff8e6ba;min-width:23px;height:22px;line-height:22px;text-align:center;border-radius:4px;margin:1px;box-shadow:0 2px 0 #376b7330}.run-footer{position:absolute;bottom:12px;left:24px;right:24px;display:flex;gap:12px;font-size:11px;font-weight:700;color:#28646b;pointer-events:none}#reel-panel{position:absolute;left:50%;bottom:52px;transform:translateX(-50%);width:min(350px,38vw);padding:15px 18px;background:#fff6dfed;border-radius:16px;box-shadow:0 4px 0 #2563721f;z-index:6}.reel-heading{display:flex;justify-content:space-between;font-size:13px;margin-bottom:10px;gap:10px}.reel{height:8px}.reel i{background:#408fa1;width:0}.tension-track{height:24px;margin-top:8px;background:linear-gradient(90deg,#accd9666 0 65%,#f2c56470 65% 83%,#dc785870 83%);border-radius:5px;position:relative;overflow:hidden}.tension-track i{position:absolute;width:4px;left:0;top:0;bottom:0;background:#123a48}.tension-track span,.tension-track b{position:absolute;font-size:9px;top:6px;left:8px;font-weight:600}.tension-track b{left:auto;right:7px}.menu-overlay{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:flex-end;padding:70px max(6vw,24px) 30px;z-index:8;background:linear-gradient(90deg,transparent 42%,#b2e1d53b 67%,#d3e8cc91)}.menu-copy{width:380px;pointer-events:auto}.menu-line{font-weight:800;font-size:16px;margin:0 0 16px;color:#2a6471}.menu-copy h1{font-size:94px;line-height:.95;letter-spacing:-5px;margin:0;color:#143e4a;transform:rotate(-4deg);font-weight:950;text-shadow:3px 4px 0 #fff5db}.menu-copy h1 br{display:none}.menu-copy h1>span{display:block;font-size:22px;letter-spacing:7px;line-height:1.7;margin-top:8px;color:#a44a31;text-shadow:1px 2px 0 #fff7dc}.menu-description{font-size:14px;font-weight:600;line-height:1.9;margin:24px 0;color:#315f66}.start-button{display:flex;align-items:center;justify-content:center;gap:12px;padding:15px 18px;background:#e97348;color:#fff9e2;border:3px solid #fff5d7;border-radius:15px;box-shadow:0 5px 0 #a15535;text-align:left;font-size:21px;font-weight:900;min-height:78px}.start-button small{display:block;font-size:11px;font-weight:500;margin-top:6px;color:#fff4d5}.desktop-start{width:100%}.start-arrow{font-size:32px}.mobile-start{display:none;gap:10px}.mobile-start .start-button{flex:1;padding:12px 10px;font-size:18px;gap:10px}.start-button.secondary{background:#327e8d;box-shadow:0 5px 0 #205868}.device-icon{display:block;border:2px solid currentColor;width:20px;height:30px;border-radius:4px;position:relative;flex-shrink:0}.device-icon:after{content:'';position:absolute;width:4px;height:2px;border-radius:2px;background:currentColor;bottom:2px;left:6px}.landscape-icon{width:30px;height:20px}.landscape-icon:after{width:2px;height:4px;left:2px;bottom:6px}.menu-links{display:flex;align-items:center;justify-content:space-between;margin-top:21px;gap:8px}.menu-links button{background:none;font-size:12px;font-weight:700;padding:8px 0;border-bottom:1px solid #4c7a7544}.menu-links span{font-size:10px;opacity:.7}.best-line{margin-top:18px;font-size:11px;color:#466e65}.menu-stamp{position:absolute;left:9%;bottom:12%;border:2px solid #406f6880;transform:rotate(-9deg);padding:10px 15px;color:#285f68;text-align:center;border-radius:9px}.menu-stamp span{display:block;font-size:20px;font-weight:900;letter-spacing:5px}.menu-stamp small{font-size:10px}#toast{position:absolute;bottom:184px;left:50%;transform:translate(-50%,12px);padding:10px 17px;border-radius:20px;background:#183f4fe8;color:#fff8e2;font-size:12px;font-weight:600;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:21;max-width:min(90%,520px);text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}#modal-layer{position:absolute;inset:0;background:#123a4866;backdrop-filter:blur(5px);z-index:20;display:flex;align-items:center;justify-content:center;padding:76px 24px 20px;overflow:auto;touch-action:pan-y}.modal-card{background:#fff6df;border-radius:24px;padding:28px;width:min(880px,100%);box-shadow:0 10px 0 #153d4920;max-height:100%;overflow:auto;touch-action:pan-y}.modal-card.compact{max-width:430px}.modal-card h2{font-size:28px;font-weight:950;margin:0 0 8px;letter-spacing:-1px}.modal-card .intro{font-size:13px;color:#547167;margin:0 0 18px;line-height:1.65}.evolution-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.evolution-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.evolution-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;background:#f2e9cb;border:2px solid transparent;padding:14px;border-radius:16px;min-width:0;transition:border-color .15s,transform .15s}.evolution-card:hover{border-color:#d4a356;transform:translateY(-3px)}.evolution-card img{display:block;width:100%;height:100px;object-fit:contain}.evolution-card>small{font-size:10px;font-weight:800;color:#6b8472}.evolution-card>strong{font-size:18px;margin:5px 0 8px}.evolution-card>span{font-size:11px;color:#4b6961;line-height:1.65}.evolution-card .choose{display:block;font-size:12px;color:#fbf5de;background:#2d7480;padding:8px;text-align:center;border-radius:8px;margin-top:auto}.evolution-card .desc{margin-bottom:14px}.primary-button,.secondary-button{display:block;width:100%;min-height:46px;border-radius:12px;padding:12px 18px;font-weight:800;font-size:15px;background:#e97348;color:#fff7df;box-shadow:0 3px 0 #a75a38;margin-top:12px}.secondary-button{background:#e7dfc4;color:#355e60;box-shadow:none}.button-row{display:flex;gap:10px}.button-row>*{flex:1}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.setting-button{padding:13px 10px;border-radius:10px;background:#e9e1c8;font-weight:700;font-size:12px}.setting-button.active{background:#387f89;color:#fff7df}.result-portrait{height:140px;width:100%;object-fit:contain}.result-title{color:#a95335}.result-stats{display:flex;justify-content:space-between;margin:18px 0;gap:10px}.result-stats span{font-size:11px;color:#617268}.result-stats strong{display:block;font-size:25px;color:#214b55;margin-top:4px}.collection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.collection-item{padding:14px 10px;border-radius:12px;background:#ece5cf;text-align:center}.collection-item>strong{display:block;font-size:12px;margin:10px 0 5px}.collection-item>span{font-size:10px;color:#5b776b}.collection-item.locked{opacity:.5}.collection-symbol{font-size:25px;font-weight:900;color:#b75e3a}.help-list{padding-left:23px;line-height:1.8;font-size:13px}.help-list li{margin-bottom:8px}.help-list strong{color:#af5834}.route-finish{font-size:12px;background:#e8e0c4;padding:12px;border-radius:10px;color:#526c62}#orientation-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:#194c60f5;z-index:40;color:#fff5d5;text-align:center}.orientation-card{max-width:330px}.orientation-card h2{font-size:28px}.orientation-card p{font-size:14px;opacity:.8}.turn-phone{width:88px;height:52px;border:4px solid #fff5d5;border-radius:10px;margin:0 auto 25px;transform:rotate(-12deg)}#loading{position:absolute;inset:0;z-index:50;background:#57c5d2;display:flex;gap:18px;flex-direction:column;align-items:center;justify-content:center;font-size:14px}.loading-fish{width:64px;height:64px;background:#eb8852;color:#fff5d5;display:grid;place-items:center;font-size:32px;font-weight:900;border-radius:50% 45% 48% 30%;transform:rotate(-12deg)}#fatal-error{position:absolute;inset:0;z-index:60;background:#194c60;color:#fff8df;padding:10vh 8vw;line-height:1.8;overflow:auto}body[data-device=touch] #joystick{display:block}body[data-device=touch] .keyboard-hint,body[data-device=touch] .desktop-start{display:none}body[data-device=touch] .mobile-start{display:flex}body[data-screen=menu] #pause-button{visibility:hidden}body[data-screen=menu] .brand{visibility:hidden}
@media(max-width:1100px){.menu-copy{width:350px}.menu-copy h1{font-size:82px}.menu-overlay{padding-right:5vw}.run-bar{width:310px;gap:14px}.fish-status{width:175px}.catch-status{width:120px}#objective{top:145px}}
body[data-layout=portrait] #scene{top:122px;bottom:150px}body[data-layout=portrait][data-screen=menu] #scene{top:70px;bottom:225px}body[data-layout=portrait] .topbar{top:max(12px,env(safe-area-inset-top));left:14px;right:14px;gap:10px}body[data-layout=portrait] .brand{display:none}body[data-layout=portrait] .creator-card{margin-left:0;margin-right:auto}body[data-layout=portrait] .run-bar{top:76px;left:18px;right:18px;width:auto;justify-content:space-between;gap:20px}body[data-layout=portrait] .fish-status{width:55%}body[data-layout=portrait] .catch-status{width:40%}body[data-layout=portrait] #objective{top:149px;width:auto;max-width:calc(100% - 28px);font-size:11px;padding:7px 10px}body[data-layout=portrait] #enemy-banner{top:184px;width:70%}body[data-layout=portrait] #controls{left:10px;right:18px;bottom:max(30px,env(safe-area-inset-bottom));height:135px}body[data-layout=portrait] .action-controls{gap:10px}body[data-layout=portrait] .skill-button{width:98px;height:98px;border-radius:27px}body[data-layout=portrait] .dodge-button{width:68px;height:68px}body[data-layout=portrait] .skill-button strong{font-size:12px}body[data-layout=portrait] .skill-button small{font-size:9px}body[data-layout=portrait] #reel-panel{bottom:183px;width:calc(100% - 44px);max-width:350px;padding:12px 15px}body[data-layout=portrait] #toast{bottom:190px;max-width:88%;width:max-content;font-size:11px}body[data-layout=portrait] .menu-overlay{padding:0 22px 24px;align-items:flex-end;background:linear-gradient(0deg,#b4ded0 0%,#b4ded0ed 28%,transparent 48%)}body[data-layout=portrait] .menu-copy{width:100%}body[data-layout=portrait] .menu-line{font-size:13px;margin-bottom:8px}body[data-layout=portrait] .menu-copy h1{font-size:64px;letter-spacing:-3px;transform:rotate(-3deg)}body[data-layout=portrait] .menu-copy h1>span{font-size:15px;letter-spacing:6px;margin-top:2px}body[data-layout=portrait] .menu-description{font-size:12px;line-height:1.6;margin:13px 0}body[data-layout=portrait] .menu-links{margin-top:16px}body[data-layout=portrait] .best-line{font-size:10px;margin-top:10px}body[data-layout=portrait] .menu-stamp{left:22px;bottom:auto;top:85px;font-size:12px;padding:7px 10px}body[data-layout=portrait] .menu-stamp span{font-size:15px}body[data-layout=portrait] .menu-stamp small{font-size:8px}body[data-layout=portrait] .evolution-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-layout=portrait] .modal-card{padding:22px 16px;border-radius:19px}body[data-layout=portrait] #modal-layer{padding:74px 14px 20px}body[data-layout=portrait] .evolution-card{padding:10px;border-radius:12px}body[data-layout=portrait] .evolution-card img{height:75px}body[data-layout=portrait] .evolution-card>strong{font-size:16px}body[data-layout=portrait] .evolution-card .desc{font-size:11px;margin-bottom:10px}body[data-layout=portrait] .collection-grid{grid-template-columns:repeat(2,1fr)}
@media(max-height:540px) and (min-aspect-ratio:1/1){.topbar{inset:9px 14px auto;gap:9px}.brand{font-size:21px}.brand span{font-size:8px}.creator-card{padding:4px 7px 4px 4px;gap:7px}.creator-profile img{width:29px;height:29px}.creator-profile strong{font-size:11px}.creator-profile small{font-size:8px}.follow{font-size:11px;padding:7px 8px}.icon-button{width:33px;height:33px}.run-bar{top:63px;left:14px;width:250px;gap:12px}.fish-status{width:144px}.catch-status{width:99px}.status-label,.status-label strong{font-size:10px}.run-bar small{font-size:8px}.meter{height:7px}.catch-dots{height:7px;gap:2px}#objective{top:56px;left:auto;right:14px;transform:none;max-width:calc(100% - 294px);font-size:10px;white-space:normal;padding:6px 10px}#enemy-banner{top:103px;width:220px}#enemy-banner>strong{font-size:12px}#controls{left:12px;right:15px;bottom:20px;height:96px}#joystick{width:110px;height:100px}.joystick-base{width:82px;height:82px;left:14px;top:0;border-width:1px}.joystick-nub{width:38px;height:38px;left:21px;top:21px}.action-controls{gap:13px}.skill-button{width:83px;height:83px;border-radius:23px;border-width:4px}.dodge-button{width:61px;height:61px;border-width:3px}.action-glyph{font-size:23px;margin-bottom:3px}.skill-button strong,.dodge-button strong{font-size:11px}.skill-button small,.dodge-button small{font-size:8px;margin-top:3px}.dodge-button .action-glyph{font-size:23px}.run-footer{bottom:6px;left:16px;font-size:9px}#reel-panel{bottom:29px;width:240px;padding:11px 13px}#toast{bottom:126px;font-size:10px;padding:8px 13px}.menu-overlay{padding:48px 30px 17px}.menu-copy{width:310px}.menu-copy h1{font-size:62px}.menu-copy h1>span{font-size:15px;margin-top:5px}.menu-line{font-size:12px;margin-bottom:8px}.menu-description{font-size:11px;margin:12px 0;line-height:1.6}.start-button{min-height:59px;font-size:17px;padding:10px 14px}.start-button small{font-size:9px}.mobile-start .start-button{font-size:14px;padding:9px 7px;gap:7px}.mobile-start .start-button small{font-size:9px}.menu-links{margin-top:11px}.menu-links button{font-size:10px;padding:4px 0}.best-line{margin-top:8px;font-size:9px}.menu-stamp{left:7%;bottom:10%;padding:8px 10px}.menu-stamp span{font-size:16px}.menu-stamp small{font-size:8px}#modal-layer{padding:60px 16px 12px}.modal-card{padding:16px 20px;border-radius:16px}.modal-card h2{font-size:23px}.modal-card .intro{font-size:11px;margin-bottom:12px}.evolution-card{padding:9px}.evolution-card img{height:65px}.evolution-card>strong{font-size:14px;margin:3px 0 5px}.evolution-card>span{font-size:10px;line-height:1.45}.evolution-card .desc{margin-bottom:8px}.evolution-card .choose{font-size:10px;padding:6px}.result-portrait{height:75px}.result-stats{margin:10px 0}.result-stats strong{font-size:20px}.primary-button,.secondary-button{padding:10px;min-height:38px;font-size:12px;margin-top:9px}.settings-grid{gap:7px}.setting-button{padding:10px;font-size:11px}}
@media(max-width:360px){body[data-layout=portrait] .menu-overlay{padding-left:16px;padding-right:16px}body[data-layout=portrait] .menu-copy h1{font-size:55px}.mobile-start .start-button{font-size:15px;gap:7px}.mobile-start .start-button small{font-size:9px}.creator-profile strong{font-size:11px}.creator-profile img{width:30px;height:30px}.creator-card{gap:7px}.follow{font-size:11px;padding:7px 8px}body[data-layout=portrait] #controls{left:3px;right:10px}body[data-layout=portrait] .action-controls{gap:7px}body[data-layout=portrait] .skill-button{width:84px;height:84px}body[data-layout=portrait] .dodge-button{width:59px;height:59px}body[data-layout=portrait] #joystick{width:122px}.status-label strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
:root{background:#bce7e5}#game-shell{background:#bce7e5}body[data-layout=portrait] #scene{mask-image:linear-gradient(to bottom,transparent,#000 5%,#000 95%,transparent)}
#modal-layer button{touch-action:pan-y}.modal-card{overscroll-behavior:contain}

/* The catch ledger stays large and separate from the two thumbs. */
.run-footer{right:auto;bottom:18px;width:330px;gap:0;padding:10px 16px;background:#fff7dff5;border:2px solid #fffdf0;border-radius:14px;box-shadow:0 4px 0 #28646b30;z-index:7;color:var(--ink)}
.run-footer>div{flex:1;min-width:0}.run-footer>div+div{border-left:1px solid #c8cfb7;padding-left:16px;margin-left:10px}
.run-footer span{display:block;font-size:11px;font-weight:800;color:#547167;margin-bottom:3px}
.run-footer strong{display:block;font-size:30px;line-height:1.12;font-weight:950;font-variant-numeric:tabular-nums;letter-spacing:-1px;transform-origin:left center;white-space:nowrap}
.keyboard-hint{transform:translateY(-80px)}
.result-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}.result-links button{font-size:12px;padding:11px 6px}
.result-stats strong{font-variant-numeric:tabular-nums}.evolution-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.reward-locked{border:2px dashed #af8c54}.reward-locked .choose{background:#986b39}
.rank-card{max-width:760px}.rank-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.rank-heading small{font-size:11px;font-weight:800;color:#9e5035}.rank-heading h2{margin-top:5px}
.rank-close{flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#e7dfc4;font-size:25px;line-height:1}
.rank-tabs{display:flex;gap:8px}.rank-tabs button{flex:1;padding:11px;border:2px solid #cad1b6;background:transparent;border-radius:10px;font-size:17px;font-weight:900}
.rank-tabs button[aria-selected=true]{background:#2d7480;color:#fff7df;border-color:#2d7480}.rank-tabs small{display:block;font-size:10px;font-weight:500;margin-top:4px}
.rank-summary{display:flex;gap:20px;align-items:center;padding:16px 0}.rank-summary>div{flex:1;min-width:0}.rank-summary span{font-size:11px;color:#587166;display:block}.rank-summary strong{display:block;font-size:23px;font-weight:900;font-variant-numeric:tabular-nums;margin-top:5px;white-space:nowrap}
.rank-summary .primary-button{width:auto;margin:0;font-size:12px;min-height:40px;padding:9px 12px}
.rank-rules{font-size:11px;line-height:1.6;color:#547167;border-block:1px solid #d5d8bf;padding:8px 0}.rank-rules summary{cursor:pointer;font-weight:700}.rank-rules p{margin:7px 0 0}
.rank-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;margin:12px 0}.rank-toolbar button{background:#e7dfc4;border-radius:6px;padding:7px 11px;flex-shrink:0}
.rank-scroll{max-height:310px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;border-radius:9px;background:#efe8ce}
.rank-scroll table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.rank-scroll th{position:sticky;top:0;background:#e0dfc4;text-align:left;font-size:10px;padding:9px 12px;z-index:1}.rank-scroll th:first-child{width:58px}.rank-scroll th:last-child{width:115px;text-align:right}
.rank-scroll td{padding:8px 12px;border-top:1px solid #daddc3}.rank-scroll td:first-child{font-weight:900}.rank-scroll td:last-child{text-align:right;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.rank-podium td:first-child{color:#b35c34;font-size:16px}
.rank-player{display:flex;gap:8px;align-items:center;min-width:0}.rank-player>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-player img,.rank-avatar{width:28px;height:28px;border-radius:50%;flex-shrink:0}.rank-avatar{display:grid;place-items:center;background:#b7d4c2;color:#36676b;font-weight:800}
.rank-empty{font-size:12px;line-height:1.8;text-align:center;padding:28px 18px;color:#607665}.rank-footnote,.support-footnote{font-size:10px;color:#647467;line-height:1.7;margin:12px 0 0}
.support-card{max-width:780px}.support-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.support-reward{background:#e8e5ca;border-radius:14px;padding:16px;display:flex;flex-direction:column;min-width:0}.boss-reward{background:#dbe7d7}.reward-tag{font-size:11px;font-weight:800;color:#8f5035}.support-reward img{width:100%;height:120px;object-fit:contain;display:block}.support-reward h3{font-size:22px;margin:0 0 8px;font-weight:950}.support-reward p{font-size:12px;line-height:1.8;margin:0 0 12px}.support-reward>small{font-size:10px;line-height:1.7;min-height:34px;color:#5a7266}.support-reward .primary-button{font-size:13px;margin-top:auto}.reward-state{font-size:12px;color:#98643e;margin:6px 0}.reward-state.unlocked{color:#236f61}.triple-actions{display:flex;gap:10px;font-size:11px;margin-bottom:4px}.support-card>.secondary-button{margin-top:16px}
button:disabled{cursor:default;opacity:.55;box-shadow:none}
body[data-layout=portrait] .run-footer{left:16px;bottom:max(9px,env(safe-area-inset-bottom));width:min(330px,calc(100% - 32px));padding:9px 13px}
body[data-layout=portrait] .run-footer strong{font-size:27px}body[data-layout=portrait] .run-footer span{font-size:10px}
body[data-layout=portrait] #controls{bottom:calc(84px + env(safe-area-inset-bottom))}
body[data-layout=portrait][data-screen=game] #scene{bottom:190px}
body[data-layout=portrait] #reel-panel{bottom:250px}body[data-layout=portrait] #toast{bottom:232px}body[data-layout=portrait][data-phase=reel] #toast{bottom:357px}
body[data-layout=portrait] .menu-links{gap:8px;flex-wrap:wrap}.menu-links #leaderboard-button,.menu-links #support-button{color:#9e5035}
body[data-layout=portrait] .evolution-grid.three{grid-template-columns:1fr 1fr}body[data-layout=portrait] .evolution-grid.three .evolution-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:100px 1fr;column-gap:12px}body[data-layout=portrait] .evolution-grid.three .evolution-card:last-child img{grid-column:1;grid-row:1/5;height:120px;align-self:center}body[data-layout=portrait] .evolution-grid.three .evolution-card:last-child>*:not(img){grid-column:2}
body[data-layout=portrait] .rank-heading h2,body[data-layout=portrait] .support-card h2{font-size:23px}
body[data-layout=portrait] .support-grid{grid-template-columns:1fr;gap:12px}body[data-layout=portrait] .support-reward{padding:13px}body[data-layout=portrait] .support-reward img{height:100px}body[data-layout=portrait] .support-reward h3{font-size:20px}body[data-layout=portrait] .support-reward p{font-size:11px}body[data-layout=portrait] .support-reward .primary-button{min-height:40px}
body[data-layout=portrait] .rank-summary{gap:10px;flex-wrap:wrap}body[data-layout=portrait] .rank-summary>div{flex-basis:44%}body[data-layout=portrait] .rank-summary .primary-button{width:100%}body[data-layout=portrait] .rank-scroll{max-height:36dvh}body[data-layout=portrait] .rank-scroll th,body[data-layout=portrait] .rank-scroll td{padding-inline:8px}
@media(max-height:540px) and (min-aspect-ratio:1/1){
  .run-footer{left:14px;bottom:6px;width:258px;padding:5px 10px;border-radius:10px}.run-footer span{font-size:8px;margin-bottom:1px}.run-footer strong{font-size:22px}.run-footer>div+div{margin-left:8px;padding-left:10px}
  #controls{bottom:62px}.keyboard-hint{transform:none}#reel-panel{width:212px;bottom:63px;padding:10px 12px}.reel-heading{font-size:11px}#toast{bottom:173px}body[data-phase=reel] #toast{bottom:164px}
  .rank-heading{margin-bottom:10px}.rank-heading h2{font-size:23px}.rank-tabs button{padding:8px;font-size:14px}.rank-summary{padding:10px 0}.rank-summary strong{font-size:20px}.rank-scroll{max-height:145px}.support-reward{padding:12px}.support-reward img{height:80px}.support-reward h3{font-size:18px}.support-reward p{font-size:11px}.support-grid{gap:10px}.support-reward .primary-button{font-size:11px}.menu-links{gap:6px}.menu-links button{font-size:9px}
}
@media(max-width:360px){body[data-layout=portrait] .run-footer strong{font-size:25px}body[data-layout=portrait] .menu-links{gap:6px}body[data-layout=portrait] .menu-links button{font-size:10px}}

.menu-bottom{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.menu-bottom .best-line{min-width:0}.author-entry{flex-shrink:0;font-size:11px;font-weight:800;padding:7px 8px;margin-top:8px;border-radius:7px;background:#fff7dfb8;color:#8d4c32;touch-action:manipulation}
.author-portraits{display:flex;justify-content:center;gap:8px;margin:4px 0 14px}.author-portraits img{object-fit:contain;width:50%;height:105px}.author-status{font-size:12px;line-height:1.7;color:#2d7480;background:#e2e6cc;padding:10px 12px;border-radius:9px;margin:0 0 16px}.author-card .intro{font-size:12px}.author-card .rank-heading h2{font-size:25px}.author-card .rank-heading{margin-bottom:8px}body[data-author=true] .run-footer{border-color:#e9b25e}
@media(max-height:540px) and (min-aspect-ratio:1/1){.menu-description{margin:8px 0}.menu-links{margin-top:8px}.author-entry{font-size:9px;padding:3px 6px;margin-top:3px}.author-portraits img{height:70px}.author-card .rank-heading h2{font-size:22px}.author-status{font-size:11px;margin-bottom:8px;padding:7px 10px}.author-portraits{margin-bottom:8px}}

/* Solid sea-green hardware makes the left thumb control readable on water. */
body[data-device=touch] #joystick{width:142px;height:146px;flex-shrink:0}
body[data-device=touch] .joystick-base{width:114px;height:114px;left:14px;top:0;border:3px solid #fff7df;background:#438e98;box-shadow:0 4px 0 #215966,inset 0 0 0 8px #6faeae}
body[data-device=touch] .joystick-nub{display:grid;place-items:center;width:52px;height:52px;left:28px;top:28px;background:#fff1c1;border:2px solid #fff9e4;box-shadow:0 4px 0 #1c566780;color:#276879;font-size:28px;font-weight:900}
.stick-arrow{position:absolute;color:#f5edd0;font-size:10px;line-height:1;pointer-events:none}.stick-up{top:7px;left:50%;transform:translateX(-50%)}.stick-down{bottom:7px;left:50%;transform:translateX(-50%)}.stick-left{left:7px;top:50%;transform:translateY(-50%)}.stick-right{right:7px;top:50%;transform:translateY(-50%)}
body[data-device=touch] #joystick>.joystick-label{left:50%;bottom:0;width:auto;transform:translateX(-50%);padding:4px 11px;border-radius:12px;background:#245e6c;color:#fff5d6;font-size:12px;font-weight:900;white-space:nowrap;box-shadow:0 2px 0 #fff8df70}
body[data-device=touch] #joystick.active .joystick-base{background:#256c7a;box-shadow:0 4px 0 #215966,inset 0 0 0 8px #6faeae,0 0 0 4px #f4cf6c}
body[data-device=touch] #joystick.active .joystick-nub{background:#ffd46b}
#control-guide{position:absolute;z-index:12;left:50%;transform:translateX(-50%);bottom:246px;width:min(352px,calc(100% - 32px));padding:13px 14px;background:#fff7df;border:2px solid #ebbd62;border-radius:15px;box-shadow:0 5px 0 #245e6c30;touch-action:pan-y}
.guide-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.guide-heading strong{font-size:17px;font-weight:950}.guide-heading>span{font-size:11px;font-weight:800;color:#8a5b30;white-space:nowrap}
#guide-text{font-size:12px;line-height:1.7;margin:7px 0 9px;color:#365d63}.guide-actions{display:flex;gap:8px;align-items:center}.guide-actions button{min-height:36px;padding:7px 10px;border-radius:8px;font-size:11px;touch-action:manipulation}#guide-next{flex:1;background:#2c7583;color:#fff8df;font-weight:800}#guide-skip{background:transparent;color:#6b7567;padding-inline:4px}
#control-guide:after{content:'';position:absolute;width:12px;height:12px;background:#fff7df;border-right:2px solid #ebbd62;border-bottom:2px solid #ebbd62;transform:rotate(45deg);bottom:-8px;left:40px}body[data-guide=actions] #control-guide:after{left:auto;right:40px}
body[data-guide] #toast{display:none}body[data-guide=move] #joystick .joystick-base{outline:4px solid #f4cf6c;outline-offset:5px;animation:control-beacon 1.25s ease-in-out infinite}
body[data-guide=actions] .skill-button,body[data-guide=actions] .dodge-button,body[data-skill-hint=true] .skill-button{outline:4px solid #f4cf6c;outline-offset:4px;animation:control-beacon 1.25s ease-in-out infinite}body[data-guide=actions] .dodge-button{opacity:1!important}
@keyframes control-beacon{0%,100%{outline-color:#f4cf6c}50%{outline-color:#fff7df}}
@media(max-height:540px) and (min-aspect-ratio:1/1){body[data-device=touch] #joystick{width:118px;height:118px}body[data-device=touch] .joystick-base{width:94px;height:94px;left:12px}body[data-device=touch] .joystick-nub{width:44px;height:44px;left:22px;top:22px;font-size:23px}body[data-device=touch] #joystick>.joystick-label{font-size:10px;padding:3px 10px}#control-guide{bottom:62px;width:212px;padding:10px 11px;border-radius:12px}.guide-heading strong{font-size:14px}#guide-text{font-size:10px;margin:6px 0;line-height:1.65}.guide-actions{gap:5px}.guide-actions button{min-height:34px;padding:6px;font-size:10px}#guide-skip{padding-inline:0}#control-guide:after{display:none}}
@media(max-width:360px){body[data-device=touch][data-layout=portrait] #joystick{width:124px}body[data-device=touch][data-layout=portrait] .joystick-base{left:10px}#control-guide{bottom:246px;padding:11px 12px}.guide-heading strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){body[data-guide] #joystick .joystick-base,body[data-guide] .skill-button,body[data-guide] .dodge-button,body[data-skill-hint] .skill-button{animation:none}}
