*{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;height:100%;overflow:hidden;font-family:"Press Start 2P",monospace;touch-action:manipulation;-webkit-tap-highlight-color:transparent}#aquarium{position:fixed;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#0a3d6b,#0d5e8a,#126e8a 60%,#1a8a7a);overflow:hidden}#ground{position:absolute;bottom:0;left:0;right:0;height:60px;background:linear-gradient(180deg,#3d6b35,#2d4a28);border-top:3px solid #5a8a4a}#ground:before{content:"";position:absolute;top:-15px;left:0;right:0;height:15px;background:repeating-linear-gradient(90deg,transparent 0px,transparent 20px,#4a7a3a 20px,#4a7a3a 22px);opacity:.5}#bubbles{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.bubble{position:absolute;bottom:-10px;border-radius:50%;background:#ffffff26;border:1px solid rgba(255,255,255,.25);animation:rise linear infinite}@keyframes rise{0%{transform:translateY(0) translate(0);opacity:.7}50%{transform:translateY(-50vh) translate(10px);opacity:.5}to{transform:translateY(-110vh) translate(-5px);opacity:0}}#fish-container{position:absolute;top:0;right:0;left:0;bottom:60px;pointer-events:none}.aquarium-fish{position:absolute;display:flex;flex-direction:column;align-items:center;pointer-events:auto;cursor:pointer;animation:swim linear infinite}.aquarium-fish .fish-sprite{font-size:2rem;transition:transform .3s}.aquarium-fish .fish-sprite-img,.aquarium-fish .fish-sprite-sheet{image-rendering:auto}.aquarium-fish .fish-sprite-img{width:48px;height:48px;object-fit:contain;filter:drop-shadow(1px 1px 2px rgba(0,0,0,.4))}.aquarium-fish .fish-sprite-img.fish-sprite-small{width:32px;height:32px;image-rendering:pixelated;image-rendering:crisp-edges}.aquarium-fish .fish-sprite-sheet{width:48px;height:48px}.aquarium-fish .fish-label{font-size:.4rem;color:#ffffffd9;text-shadow:1px 1px 2px rgba(0,0,0,.7);margin-top:2px;white-space:nowrap;max-width:100px;overflow:hidden;text-overflow:ellipsis}@keyframes swim{0%,to{transform:translateY(0) translate(0)}25%{transform:translateY(-8px) translate(15px)}50%{transform:translateY(3px) translate(30px)}75%{transform:translateY(-5px) translate(15px)}}#leaderboard-sidebar{position:fixed;top:0;right:0;width:240px;height:100%;background:#000f1ed9;border-left:2px solid rgba(78,205,196,.3);padding:16px 14px;overflow-y:auto;z-index:20;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}#leaderboard-sidebar h2{font-size:.7rem;color:gold;margin-bottom:14px;text-align:center;text-shadow:1px 1px 0 #000}#leaderboard-content{display:flex;flex-direction:column;gap:16px}.lb-section h3{font-size:.55rem;color:#4ecdc4;margin-bottom:8px}.lb-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0;font-size:.45rem;color:#ffffffe6}.lb-rank{color:gold;min-width:18px}.lb-name{flex:1;margin:0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lb-value{color:#4ecdc4;white-space:nowrap}.lb-detail{font-size:.38rem;color:#ffffff80;padding-left:18px;margin-bottom:4px}.lb-empty{font-size:.4rem;color:#fff6}@media(max-width:600px){#leaderboard-sidebar{width:100%;height:auto;max-height:45vh;top:auto;bottom:0;left:0;right:0;border-left:none;border-top:2px solid rgba(78,205,196,.3);transform:translateY(calc(100% - 40px));transition:transform .3s ease}#leaderboard-sidebar.expanded{transform:translateY(0)}#leaderboard-sidebar h2{cursor:pointer;padding:6px 0;font-size:.6rem}}#ui-overlay{position:fixed;top:0;left:0;right:240px;bottom:0;display:flex;flex-direction:column;justify-content:space-between;padding:14px;pointer-events:none;z-index:10}@media(max-width:600px){#ui-overlay{right:0;bottom:40px}}#ui-overlay>*{pointer-events:auto}#header{display:flex;justify-content:space-between;align-items:center;gap:12px}#header h1{font-size:.8rem;color:#fff;text-shadow:2px 2px 0 #000}#header-right{display:flex;align-items:center;gap:10px}#money-box{background:#0009;border:2px solid #ffd700;border-radius:8px;padding:8px 14px}#money-display{font-size:.8rem;color:gold;text-shadow:1px 1px 0 #000}.header-btn{font-family:"Press Start 2P",monospace;font-size:.6rem;padding:10px 16px;background:linear-gradient(180deg,#6c5ce7,#4834d4);border:2px solid #3621a5;border-radius:8px;color:#fff;text-shadow:1px 1px 0 #000;cursor:pointer;box-shadow:0 3px #2c1a8a}.header-btn:active{transform:translateY(2px);box-shadow:0 1px #2c1a8a}#cast-button-container{display:flex;justify-content:center;padding-bottom:30px}#cast-button{font-family:"Press Start 2P",monospace;font-size:.9rem;padding:18px 36px;background:linear-gradient(180deg,#4ecdc4,#2ba89e);border:3px solid #1a7a72;border-radius:10px;color:#fff;text-shadow:1px 1px 0 #000;cursor:pointer;box-shadow:0 5px #1a6a62,0 8px 16px #0000004d;transition:transform .1s,box-shadow .1s}#cast-button:active{transform:translateY(4px);box-shadow:0 1px #1a6a62,0 2px 6px #0000004d}#toast-container{position:fixed;top:60px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:6px;z-index:100;pointer-events:none;width:85%;max-width:320px}.toast{font-size:.45rem;background:#000c;color:#fff;padding:8px 12px;border-radius:6px;text-align:center;animation:toastIn .3s ease,toastOut .3s ease 2.7s forwards}@keyframes toastIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes toastOut{0%{opacity:1}to{opacity:0;transform:translateY(-10px)}}#fishing-game{position:fixed;top:0;right:0;bottom:0;left:0;background:#001428eb;z-index:50;display:flex;align-items:center;justify-content:center;touch-action:none}#fishing-game-inner{display:flex;flex-direction:column;align-items:center;gap:16px}#fishing-rod-scene{position:relative;width:80px;height:400px;max-height:60vh}#water-surface{position:absolute;top:0;left:-40px;right:-40px;height:30px;background:linear-gradient(180deg,rgba(78,205,196,.3) 0%,transparent 100%);border-bottom:2px dashed rgba(78,205,196,.4)}#reel-bar-container{position:relative;width:50px;height:100%;margin:0 auto;display:flex;gap:8px}#reel-bar{position:relative;width:36px;height:100%;background:#ffffff1a;border:2px solid rgba(255,255,255,.3);border-radius:18px;overflow:hidden}#fish-target{position:absolute;width:28px;height:28px;left:50%;transform:translate(-50%);background:#ff6b6b;border-radius:50%;border:2px solid #fff;display:flex;align-items:center;justify-content:center;font-size:1rem;transition:top .1s linear}#fish-target:after{content:"🐟"}#catch-zone{position:absolute;width:28px;height:80px;left:50%;transform:translate(-50%);background:#4ecdc480;border:2px solid #4ecdc4;border-radius:14px;bottom:20px;transition:bottom .05s linear}#progress-bar-container{width:10px;height:100%;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:5px;overflow:hidden;display:flex;flex-direction:column-reverse}#progress-bar{width:100%;background:linear-gradient(180deg,#4ecdc4,#2ba89e);border-radius:5px;transition:height .1s linear;height:0%}#fishing-instruction{font-size:.5rem;color:#ffffffb3;text-align:center}#catch-prompt{position:fixed;top:0;right:0;bottom:0;left:0;background:#001428f2;z-index:60;display:flex;align-items:center;justify-content:center;overflow-y:auto}#catch-prompt-inner{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px;max-width:320px;text-align:center}#catch-prompt-inner h2{font-size:.65rem;color:#4ecdc4;text-shadow:1px 1px 0 #000}#caught-fish-preview{display:flex;align-items:center;justify-content:center;min-height:80px;animation:bounce .6s ease infinite alternate}#caught-fish-preview img,#caught-fish-preview div{max-width:80px;max-height:80px;object-fit:contain;filter:drop-shadow(2px 2px 4px rgba(0,0,0,.5))}@keyframes bounce{0%{transform:translateY(0)}to{transform:translateY(-8px)}}#catch-stats{font-size:.5rem;color:#fffc;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}#caught-info{font-size:.4rem;color:#fff9;line-height:1.6;max-width:280px;font-family:sans-serif;text-align:center}#catch-actions{display:flex;flex-direction:column;gap:16px;width:100%}#aquarium-option,#sell-option{display:flex;flex-direction:column;align-items:center;gap:8px}#aquarium-option label,#sell-option p{font-size:.45rem;color:#ffffffb3}#fish-name-input,#player-name-input{font-family:"Press Start 2P",monospace;font-size:.55rem;padding:8px 12px;border:2px solid #4ecdc4;border-radius:6px;background:#00000080;color:#fff;text-align:center;width:100%;max-width:240px;outline:none}#fish-name-input:focus,#player-name-input:focus{border-color:#7fdbca;box-shadow:0 0 8px #4ecdc466}#confirm-aquarium-button,#confirm-sell-button,#player-name-confirm{font-family:"Press Start 2P",monospace;font-size:.55rem;padding:12px 18px;border:2px solid #1a7a72;border-radius:6px;color:#fff;cursor:pointer;text-shadow:1px 1px 0 #000}#confirm-aquarium-button{background:linear-gradient(180deg,#4ecdc4,#2ba89e)}#confirm-sell-button{background:linear-gradient(180deg,#f9ca24,#f0932b);border-color:#c0730a}#sell-option{border-top:1px solid rgba(255,255,255,.15);padding-top:12px}#sell-price{color:gold;font-size:.7rem}#player-setup{position:fixed;top:0;right:0;bottom:0;left:0;background:#001428f7;z-index:70;display:flex;align-items:center;justify-content:center}#player-setup-inner{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px;text-align:center}#player-setup-inner h2{font-size:.9rem;color:#4ecdc4;text-shadow:1px 1px 0 #000}#player-setup-inner p{font-size:.55rem;color:#ffffffb3}#shop-panel{position:fixed;top:0;bottom:0;left:0;right:240px;background:#001428f7;z-index:65;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:20px}@media(max-width:600px){#shop-panel{right:0}}#shop-panel-inner{width:100%;max-width:400px}#shop-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}#shop-header h2{font-size:.8rem;color:#4ecdc4;text-shadow:1px 1px 0 #000}.close-btn{width:36px;height:36px;background:#ffffff1a;border:2px solid rgba(255,255,255,.3);border-radius:6px;color:#fff;font-size:1.1rem;cursor:pointer}#shop-items{display:flex;flex-direction:column;gap:10px}.shop-item{background:#ffffff0d;border:2px solid rgba(255,255,255,.15);border-radius:8px;padding:14px}.shop-item.affordable{border-color:#4ecdc4}.shop-item.maxed{opacity:.5}.shop-item-header{display:flex;align-items:center;gap:10px;margin-bottom:5px}.shop-item-emoji{font-size:1.4rem}.shop-item-name{font-size:.55rem;color:#fff}.shop-item-desc{font-size:.4rem;color:#ffffffb3;margin-bottom:3px}.shop-item-effect{font-size:.35rem;color:#7fdbca;margin-bottom:10px}.shop-item-footer{display:flex;justify-content:space-between;align-items:center}.shop-item-level{font-size:.4rem;color:#fff9}.shop-buy-btn{font-family:"Press Start 2P",monospace;font-size:.45rem;padding:8px 14px;background:linear-gradient(180deg,#4ecdc4,#2ba89e);border:2px solid #1a7a72;border-radius:4px;color:#fff;cursor:pointer}.shop-buy-btn:disabled{background:#ffffff1a;border-color:#fff3;color:#fff6;cursor:default}.hidden{display:none!important}
