:root{font-family:ui-rounded,system-ui,-apple-system,Segoe UI,sans-serif;color:#36574a;background:#e4f1e2}*{box-sizing:border-box}html,body{margin:0;min-height:100%;-webkit-text-size-adjust:100%}body{background:radial-gradient(circle at 15% 0,#fffbed,#d9eddf 60%,#d0e8dc)}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #d8996e;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}.phone-shell{width:min(100%,620px);min-height:100dvh;margin:auto;padding:max(18px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#fbfcf5;box-shadow:0 0 40px #63977824}.titlebar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.titlebar p,.control-heading p{margin:0 0 5px;font-size:9px;font-weight:900;letter-spacing:.14em;color:#9aac9a}.titlebar h1{margin:0;font-size:clamp(21px,6vw,27px);letter-spacing:-.04em}.titlebar h1 span{color:#e8ad87}.edition{padding:6px 9px;border-radius:99px;background:#e8f3e5;color:#7a9f80;font-size:9px;font-weight:900;letter-spacing:.08em}.world-card{position:relative;overflow:hidden;border-radius:20px;background:#8ec9b5;box-shadow:0 5px #dfecdc,0 10px 24px #83aa8026}#game-container{width:100%;aspect-ratio:16/9;touch-action:none}#game-container canvas{display:block;image-rendering:pixelated}#loading{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#d6ecdf;color:#60866a;font-size:13px;font-weight:800}.status-line{min-height:40px;display:flex;align-items:center;gap:7px;color:#86a28b;font-size:11px;font-weight:700}.status-dot{width:8px;height:8px;border-radius:50%;background:#8bc99c}.controls{padding:16px;background:#fffef8;border:1px solid #e6eee1;border-radius:20px;box-shadow:0 7px 20px #6b987b12}.control-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}.control-heading h2{font-size:16px;margin:0}.control-heading>span{font-size:10px;color:#91a795}.controls-grid{display:grid;grid-template-columns:minmax(138px,1fr) minmax(0,1.3fr);gap:12px;align-items:center}.dpad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);justify-content:center;gap:4px}.dpad button,.secondary-actions button,.social button{min-height:44px;border:1px solid #dfead9;border-radius:12px;background:#edf5e9;color:#6d9b79;font-weight:850}.dpad button{font-size:20px;touch-action:none;user-select:none;-webkit-user-select:none}.dpad .up{grid-column:2}.dpad .left{grid-column:1;grid-row:2}.dpad .down{grid-column:2;grid-row:2}.dpad .right{grid-column:3;grid-row:2}.dpad button:active{background:#d3ead4}.fishing-actions{display:grid;gap:8px}.fishing-actions button{border:0;border-radius:14px;min-height:54px;padding:8px 12px;text-align:left;color:#fff;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.fishing-actions b,.fishing-actions small{display:block}.fishing-actions b{font-size:11px;letter-spacing:.03em}.fishing-actions small{font-size:9px;margin-top:4px;opacity:.9}.cast{background:#70b389;box-shadow:0 4px #56966d}.reel{background:#e5b778;box-shadow:0 4px #bd915d}.reel.bite{background:#ed9777;box-shadow:0 4px #c8785d}.fishing-actions button:disabled{box-shadow:none}.secondary-actions,.social>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:16px}.secondary-actions button,.social button{padding:5px;font-size:10px}.help{margin:12px 0 0;color:#91a793;font-size:11px;line-height:1.5}.social{padding:16px 4px 0}.social h2{font-size:14px;margin:0}.social>div{margin-top:9px}.social p{color:#97a998;font-size:10px;line-height:1.5}.notice{padding:10px;background:#fff3dc;color:#9a7542;border-radius:11px;font-size:11px;line-height:1.5}.save-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#27463499;display:grid;place-items:center;padding:20px}.save-dialog{width:min(100%,400px);padding:22px;border-radius:20px;background:#fffef8}.save-dialog h2{margin:0;font-size:20px}.save-dialog p{font-size:12px;line-height:1.5;color:#829886}.save-dialog button{display:block;width:100%;min-height:44px;margin-top:8px;border:0;border-radius:11px;background:#dcefdc;color:#547c60;font-weight:800}.save-dialog button:last-child{background:#78b58b;color:#fff}@media(max-width:350px){.phone-shell{padding-left:10px;padding-right:10px}.controls{padding:12px}.controls-grid{grid-template-columns:136px minmax(0,1fr);gap:7px}.fishing-actions button{padding:7px}.fishing-actions b{font-size:10px}.dpad{gap:2px}}@media(max-height:700px){.phone-shell{padding-top:max(10px,env(safe-area-inset-top))}.titlebar{margin-bottom:8px}.controls{padding-top:10px;padding-bottom:10px}.control-heading{margin-bottom:7px}.status-line{min-height:32px}.help{margin-top:8px}}.secondary-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.save-dialog{max-height:90dvh;overflow:auto}.profile-preview{display:flex;align-items:center;gap:15px;padding:10px;margin:12px 0;border-radius:14px;background:#e9f5e7}.profile-preview canvas{width:96px;height:96px;image-rendering:pixelated;background:#d5eddd;border-radius:12px}.profile-preview p{margin:0;flex:1}.profile-row{display:flex;align-items:center;gap:8px;margin:8px 0;color:#62836b;font-size:12px;font-weight:700}.profile-row span{flex:1}.profile-row select{min-height:40px;max-width:60%;padding:7px;border:1px solid #dce9d7;border-radius:9px;background:#f7fbf4;color:#476e55;font:inherit}.joystick-shell{display:flex;flex-direction:column;align-items:center;gap:5px}.joystick{position:relative;width:min(100%,132px);aspect-ratio:1;border:2px solid #c5dfc9;border-radius:50%;background:radial-gradient(circle,#f4faf0 25%,#e1f1e2 75%,#d6e9d8);box-shadow:inset 0 3px 9px #719e7830,0 4px #d7e8d7;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.joystick:focus-visible{outline:3px solid #d8996e;outline-offset:3px}.joystick:before{content:"";position:absolute;top:13%;right:13%;bottom:13%;left:13%;border:1px solid #b4d3b9;border-radius:50%;pointer-events:none}.joystick-arrow{position:absolute;color:#a2c4a5;font-size:9px;line-height:1;pointer-events:none}.joystick-arrow.up{top:8%;left:50%;transform:translate(-50%)}.joystick-arrow.down{bottom:8%;left:50%;transform:translate(-50%)}.joystick-arrow.left{left:8%;top:50%;transform:translateY(-50%)}.joystick-arrow.right{right:8%;top:50%;transform:translateY(-50%)}.joystick-knob{--joy-x: 0px;--joy-y: 0px;position:absolute;z-index:1;left:50%;top:50%;width:46%;aspect-ratio:1;display:grid;place-items:center;border:2px solid #f8fff5;border-radius:50%;background:linear-gradient(145deg,#b8ddbd,#8dc79c);box-shadow:0 3px 8px #547c6060,inset 0 2px 3px #ffffff90;color:#fffef4;font-size:22px;transform:translate(calc(-50% + var(--joy-x)),calc(-50% + var(--joy-y)));transition:transform .12s ease-out;pointer-events:none}.joystick.active .joystick-knob{transition:none;background:linear-gradient(145deg,#a6d8b1,#77b98a)}.joystick-caption{font-size:9px;font-weight:900;letter-spacing:.09em;color:#92b096}#game-container canvas,.profile-preview canvas{image-rendering:auto}#loading{z-index:5}.game-hud{position:absolute;z-index:2;top:0;left:0;right:0;display:flex;justify-content:space-between;gap:8px;padding:7px 12px;color:#f8fff6;background:#183b38eb;font-size:clamp(11px,3.1vw,13px);font-weight:800;line-height:1.2;pointer-events:none}.game-message,.game-catch-toast{position:absolute;z-index:3;left:50%;top:36px;transform:translate(-50%);max-width:90%;padding:7px 11px;border-radius:10px;background:#173d39ef;color:#fffef5;font-size:clamp(12px,3.2vw,14px);font-weight:700;line-height:1.3;text-align:center;pointer-events:none}.game-catch-toast{top:70px;background:#fff9e9f5;color:#365b46}.status-line{color:#567b60;font-size:12px}.help{color:#607f66;font-size:12px}.inventory-dialog{width:min(100%,440px);max-height:min(85dvh,660px);display:flex;flex-direction:column;padding:22px;border-radius:20px;background:#fffef8;color:#35584a;box-shadow:0 12px 36px #183c2f44}.inventory-dialog h2{margin:0;font-size:22px;line-height:1.2}.inventory-count{margin:7px 0 15px;font-size:14px;color:#618269}.inventory-empty{padding:18px;margin:0;border-radius:14px;background:#edf6e9;font-size:15px;line-height:1.5}.inventory-list{min-height:0;overflow:auto;display:grid;gap:8px}.inventory-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;background:#f1f7ec}.inventory-item img{width:48px;height:40px;object-fit:contain}.inventory-item strong,.inventory-item span{display:block}.inventory-item strong{font-size:15px}.inventory-item span{margin-top:3px;font-size:13px;color:#64826d}.inventory-dialog button{flex:none;min-height:46px;margin-top:16px;border:0;border-radius:12px;background:#70b389;color:#fff;font-weight:800}.game-reel-card{position:absolute;z-index:4;left:4%;right:4%;bottom:4%;padding:9px 12px;border:1px solid #9bc8a9;border-radius:12px;background:#173d39f2;color:#f5fff2;font-size:clamp(10px,2.8vw,13px);font-weight:700;line-height:1.2;box-shadow:0 3px 12px #143c3545;pointer-events:none}.game-reel-row{display:flex;justify-content:space-between;gap:8px}.game-reel-row+.game-reel-row{margin-top:7px}.game-reel-progress,.game-reel-force{position:relative;overflow:hidden;height:10px;margin-top:5px;border-radius:8px;background:#42665d}.game-reel-progress-fill,.game-reel-safe,.game-reel-danger,.game-reel-force-fill,.game-reel-marker{position:absolute;top:0;bottom:0}.game-reel-progress-fill{left:0;width:0;border-radius:8px;background:#a9e7b7}.game-reel-safe{background:#6cca8e}.game-reel-danger{background:#d77d70}.game-reel-force-fill{left:0;background:#ffffff40}.game-reel-marker{width:3px;background:#fff5c8;transform:translate(-50%)}.game-reel-guide{margin-top:7px;text-align:center;color:#e3f7e4}
