:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Noto Sans JP",sans-serif;color:#24463e;background:#eaf1e8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #f29e52;outline-offset:3px}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}.shell{max-width:1100px;margin:auto;padding:18px 24px 30px;position:relative}header{display:flex;justify-content:space-between;align-items:center;height:38px;margin-bottom:10px}header a{text-decoration:none;color:#24463e;font-weight:850;font-size:12px;letter-spacing:.14em}header a span{opacity:.45}.top-controls{display:flex;gap:8px}.top-controls button{border:1px solid #bbd0be;background:#f5f8ef;border-radius:50px;height:38px;min-width:40px;padding:0 12px;font-size:12px}.game{height:min(62vh,590px);min-height:410px;border-radius:30px;overflow:hidden;position:relative;background:#d5e6d4;isolation:isolate}.view{position:absolute;inset:0;touch-action:none}.view canvas{width:100%;height:100%;display:block}.title{position:absolute;top:24px;left:28px;z-index:2;pointer-events:none}.title p{font-size:9px;letter-spacing:.18em;margin:0 0 10px;opacity:.7}.title h1{font-size:clamp(25px,4vw,42px);line-height:1.24;letter-spacing:-.04em;margin:0;font-weight:850;text-shadow:0 2px 12px #eaf3e9cc}.spot-tag{position:absolute;right:24px;top:29px;z-index:2;pointer-events:none;text-align:right}.spot-tag span{display:block;font-size:9px;letter-spacing:.14em;opacity:.6}.spot-tag strong{font-size:12px;display:block;margin-top:6px}.catch-count{position:absolute;left:24px;bottom:27px;display:flex;align-items:baseline;gap:6px;z-index:2;background:#f6f8e9b5;border:1px solid #fff7;border-radius:14px;padding:8px 12px;pointer-events:none}.catch-count span{font-size:23px;font-weight:850}.catch-count small{font-size:10px}.aim-cue{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:700;background:#f7faefcb;border:1px solid #fff7;padding:10px 15px;border-radius:40px;white-space:nowrap;pointer-events:none}.mode{position:absolute;bottom:7px;right:16px;font-size:8px;color:#42675e;margin:0;opacity:.7;pointer-events:none}.bite{position:absolute;inset:45% 0 auto;z-index:4;text-align:center;pointer-events:none;filter:drop-shadow(0 8px 12px #274b3c40);animation:pop .3s ease-out}.bite span{font-weight:950;font-size:54px;line-height:.9;color:#fff4bc;letter-spacing:.04em;text-shadow:0 3px #698875}.bite strong{display:block;color:#fff;background:#ee8055;width:max-content;padding:10px 19px;border-radius:40px;margin:13px auto 0;font-size:14px}.fight-hud{position:absolute;left:50%;bottom:35px;transform:translateX(-50%);width:min(390px,70%);padding:12px 15px;border-radius:18px;background:#f7faeae6;box-shadow:0 5px 20px #264d3d15;z-index:3}.distance{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:800}.distance progress{flex:1;width:20px;height:8px;border:0;border-radius:8px;accent-color:#3b9984}.distance strong{min-width:30px;text-align:right}.tension-label{display:flex;justify-content:space-between;font-size:10px;margin:10px 0 6px}.tension-label span:last-child{opacity:.5}.tension-track{height:7px;border-radius:5px;background:#dce4d5;position:relative;overflow:hidden}.tension-track div{width:0;height:100%;background:#529f80;border-radius:5px;transition:background .2s}.tension-track span{position:absolute;right:25%;height:100%;width:2px;background:#f5f6eb}.controls{max-width:530px;margin:16px auto 0;text-align:center}.controls>p{font-size:12px;min-height:21px;margin:0 0 10px;line-height:1.6;font-weight:600}.action{border:0;border-radius:23px;background:#275c4e;color:#fff8df;display:flex;gap:17px;align-items:center;justify-content:center;width:100%;min-height:76px;box-shadow:0 7px 0 #173e34;user-select:none;touch-action:none;transition:transform .12s,background .12s;position:relative}.action:active,.action.holding{transform:translateY(4px);box-shadow:0 3px 0 #173e34;background:#3e8f73}.action.danger{background:#bd634f}.action.bite-now{background:#e5824e}.action>span:first-child{font-size:30px;font-weight:300}.action strong{display:block;font-size:19px;letter-spacing:.04em}.action small{display:block;font-size:10px;opacity:.75;margin-top:5px}.bottom-row{display:flex;justify-content:space-between;gap:10px;margin-top:21px}.bottom-row button{border:0;background:transparent;font-size:11px;padding:10px;min-height:40px}.bottom-row b{margin-left:5px;font-size:10px;opacity:.5}.paused{position:absolute;inset:0;background:#dcebd9da;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:7;backdrop-filter:blur(4px)}.paused p{font-size:25px;font-weight:850}.paused button,.primary{border:0;border-radius:16px;padding:15px 27px;background:#285f50;color:#fff9df;font-weight:800;min-height:48px}.result{position:fixed;z-index:12;left:50%;top:50%;transform:translate(-50%,-50%);width:min(380px,calc(100vw - 36px));text-align:center;background:#faf9ee;border:1px solid #e4e8d9;border-radius:30px;box-shadow:0 0 0 100vmax #193e3b66,0 20px 70px #173b3c33;padding:25px;animation:result-in .3s ease-out}.result>p:first-child{font-size:10px;letter-spacing:.22em;color:#759479}.result h2{font-size:24px;margin:10px 0}.result #result-size{font-size:27px;font-weight:850;margin:8px 0;color:#b67e3f}.result #result-text{font-size:12px;line-height:1.8;min-height:39px}.result button{width:100%;margin-top:10px}.fish-art{--fish:#efb45d;width:140px;height:80px;position:relative;margin:20px auto}.fish-art i{position:absolute;left:25px;top:17px;width:90px;height:47px;border-radius:55% 60% 55% 50%;background:var(--fish);box-shadow:inset 0 -10px #0001,inset 0 4px #fff4;transform:rotate(-9deg)}.fish-art b{position:absolute;left:5px;top:22px;border-top:22px solid transparent;border-bottom:22px solid transparent;border-left:35px solid var(--fish);transform:rotate(-9deg)}.fish-art em{position:absolute;width:6px;height:6px;right:35px;top:30px;background:#274b41;border-radius:50%;box-shadow:1px -1px 0 1px #fff8}.drawer{position:fixed;inset:auto 0 0;max-height:80vh;overflow:auto;background:#f7f8ef;z-index:14;border-radius:25px 25px 0 0;box-shadow:0 0 0 100vmax #193e3b66;padding:24px max(20px,calc((100vw - 720px)/2));animation:pop .25s}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.drawer-head h2{font-size:20px;margin:0}.drawer-head button{border:1px solid #cbd9cb;border-radius:50%;width:40px;height:40px;background:transparent;font-size:24px}.book-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.book-card{border:1px solid #dce4d4;border-radius:17px;padding:15px 8px;text-align:center}.book-card .swatch{height:30px;width:50px;border-radius:50%;margin:5px auto 14px;box-shadow:inset 0 -5px #0001}.book-card h3{font-size:11px;margin:5px 0}.book-card p{font-size:10px;opacity:.65;margin:5px 0}.spot-choice{display:block;width:100%;padding:18px;text-align:left;background:#edf1e5;border:1px solid #d6e0d1;border-radius:16px;margin:10px 0}.spot-choice strong{font-size:16px}.spot-choice small{display:block;font-size:11px;margin-top:7px}.help{font-size:11px;line-height:1.8;max-width:530px;margin:25px auto 0;color:#628176}.help summary{cursor:pointer;width:max-content;margin:auto}.help p{margin:12px 0}footer{font-size:9px;line-height:1.8;text-align:center;margin-top:20px;color:#7c9589}footer a{color:inherit}body.night{background:#dce7e5}.night .title,.night .spot-tag{color:#e9f5dd}.night .title h1{text-shadow:0 2px 12px #152f4dcc}.night .mode{color:#d4e7d8}@keyframes pop{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@keyframes result-in{from{opacity:0;transform:translate(-50%,-45%) scale(.92)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@media(max-width:600px){.shell{padding:10px 12px 24px}header{height:36px;margin-bottom:9px}.game{height:54svh;min-height:370px;max-height:510px;border-radius:23px}.title{top:20px;left:18px}.title p{font-size:7px;letter-spacing:.1em;margin-bottom:7px}.title h1{font-size:27px}.spot-tag{top:24px;right:15px}.spot-tag span{font-size:7px}.spot-tag strong{font-size:10px}.catch-count{left:12px;bottom:30px;padding:6px 9px}.catch-count span{font-size:19px}.catch-count small{font-size:8px}.aim-cue{font-size:9px;padding:9px 11px;left:auto;right:12px;transform:none;bottom:32px}.fight-hud{width:calc(100% - 24px);bottom:28px}.game:has(.fight-hud:not([hidden])) .catch-count{display:none}.controls{margin-top:12px}.controls>p{font-size:11px;min-height:34px;margin-bottom:7px}.action{min-height:68px;border-radius:19px}.action strong{font-size:18px}.bottom-row{margin-top:14px}.book-grid{grid-template-columns:repeat(2,1fr)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Short screens keep fish, bite/tension and the primary action together.
   Above-fold budget: 8 + 36 + 6 + stage + 6 + 32 + 5 + 60 + 7 = stage + 160px.
   Reserve 178px (18px breathing room); secondary collection/help stay below. */
@media(max-height:650px){
 .shell{padding:8px 12px 24px}
 header{height:36px;margin-bottom:6px}
 .top-controls button{height:36px}
 .game{height:calc(100svh - 178px);min-height:130px;max-height:none;border-radius:20px}
 .title{top:12px;left:14px}.title p{display:none}.title h1{font-size:18px;line-height:1.3}.title h1 br{display:none}
 .spot-tag{top:39px;right:14px}.spot-tag span{display:none}.spot-tag strong{font-size:9px;margin-top:0}
 .catch-count{left:12px;bottom:24px;padding:4px 7px}.catch-count span{font-size:16px}.catch-count small{font-size:8px}
 .aim-cue{font-size:9px;padding:7px 9px;left:auto;right:12px;transform:none;bottom:24px}
 .bite{inset:34% 0 auto}.bite span{font-size:38px}.bite strong{font-size:12px;margin-top:6px;padding:6px 14px}
 .fight-hud{width:calc(100% - 24px);bottom:22px;padding:8px 12px;border-radius:12px}.tension-label{margin:6px 0 4px}
 .game:has(.fight-hud:not([hidden])) .catch-count{display:none}
 .controls{margin-top:6px}.controls>p{font-size:11px;line-height:16px;height:32px;min-height:32px;margin:0 0 5px;display:flex;align-items:center;justify-content:center}
 .action{min-height:60px;border-radius:16px}.action strong{font-size:17px}.action small{font-size:9px;margin-top:3px}.action>span:first-child{font-size:25px}
 .bottom-row{margin-top:14px}.result{max-height:calc(100svh - 24px);overflow:auto;padding:18px}.fish-art{margin:10px auto}.result h2{font-size:21px}
}
