/* Portrait mobile game HUD. Keep the aquarium visible and controls thumb-friendly. */
html,body{background:#041d35;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input{font-family:inherit}button{min-height:44px}.brand{font-family:ui-monospace,monospace;letter-spacing:2px;filter:drop-shadow(0 2px 2px #043855)}.brand span{font-size:11px}.brand b{font-size:24px;line-height:1.2}.brand small{font-family:inherit;letter-spacing:2px;font-size:7px;color:#d7f8e6}.round{min-height:38px;width:38px;border:2px solid #9fdac2;background:#0e4569d9;box-shadow:0 3px #062d4d}.resources{top:95px;height:44px;left:15px;right:15px;box-shadow:0 3px #073250a0,inset 0 0 0 2px #fff9e0}.resources b{font-family:ui-monospace,monospace;font-weight:900;font-size:18px}.resources small{font-size:8px;letter-spacing:1px}.resources button{padding:0 7px;min-height:33px;display:grid;place-items:center}.resources canvas{width:27px;height:27px;image-rendering:pixelated}.rail{top:174px;gap:13px}.rail.left{left:9px}.rail.right{right:9px}.rail button{width:50px;min-height:51px;font-size:9px;font-weight:700;text-shadow:0 1px 3px #002849,1px 1px #003655;gap:3px;letter-spacing:.1px}.rail span{height:39px;width:41px;border-radius:10px;background:linear-gradient(#f7e2aa,#d7af66);border:2px solid #ffe8b9;box-shadow:0 3px #564e44bb,inset 0 0 0 1px #ac884f}.rail.right span{background:linear-gradient(#b6e5dc,#609baf);border-color:#d2f3df}.rail canvas{width:30px;height:30px;image-rendering:pixelated}.rail.right button:nth-child(5){display:none}.rail.left button:nth-child(5){display:none}#help{display:none}#pondCount{position:absolute;top:149px;width:100%;text-align:center;font-size:8px;letter-spacing:2px;color:#cce9e2;text-shadow:0 2px 3px #003a61;font-weight:700}#pondCount b{color:#fff3be}#location{bottom:192px;font-size:9px;letter-spacing:2px;color:#edf3dc;text-shadow:0 2px 4px #002b4b}#location span{font-size:7px;color:#c1dbce;letter-spacing:2px}.pondbar{bottom:94px;height:71px;border-radius:16px;border-color:#ba935d;background:linear-gradient(#fff7df,#f2e0b9);padding:8px 9px;gap:8px;box-shadow:0 5px #073c5899,inset 0 0 0 2px #fff8e4}.pondbar>div b{font-size:12px;color:#526f50}.pondbar>div small{font-size:8px;max-width:145px;line-height:1.5;opacity:.7}.pondbar #feed{width:67px;min-height:48px;font-size:10px;font-weight:700;display:flex;align-items:center;flex-direction:column}.pondbar #feed span{height:28px;line-height:28px}.pondbar #feed canvas{width:27px;height:27px}.pondbar #collect{width:75px;height:75px;flex-shrink:0;top:-15px;border:3px solid #fff7d5;box-shadow:0 0 0 2px #ab8752,0 5px #846d43;gap:0}.pondbar #collect span{height:22px}.pondbar #collect canvas{height:23px;width:23px}.pondbar #collect b{font-family:ui-monospace,monospace;font-weight:900;font-size:15px}.pondbar #collect small{font-size:7px;letter-spacing:.2px}nav{height:80px;padding:5px 4px max(env(safe-area-inset-bottom),5px);border-top:2px solid #a59164;border-radius:23px 23px 0 0;background:linear-gradient(#fff7e1,#ecddba);box-shadow:0 -3px 15px #032e4e55}nav button{font-size:9px;gap:3px;font-weight:700;color:#897451;letter-spacing:0;min-width:0}nav span{width:29px;height:29px;line-height:29px}nav canvas{height:29px;width:29px}nav .primary{margin:-13px 2px -5px;flex:1.12;border-radius:21px 21px 11px 11px;background:linear-gradient(#6fc8d2,#217b9f);border-color:#c9e3d3;box-shadow:0 -3px #e9d5a8,0 3px #457a87;color:#fff8d8}nav .primary span{width:38px;height:38px}nav .primary canvas{width:38px;height:38px}.sheethead{padding:18px 18px 14px;border-bottom:1px solid #d2b98a;background:linear-gradient(#fff5db,#f2e4c5);flex-shrink:0}.sheethead small{font-size:8px;font-weight:800;letter-spacing:1.4px;color:#507f85}.sheethead h1{font-size:21px;font-weight:850;letter-spacing:-.5px}.sheethead button{min-height:38px;width:38px;height:38px;border:1px solid #ae8d59;box-shadow:0 3px #d0b789;color:#a17251;border-radius:10px}#modal{padding:clamp(35px,7dvh,66px) 0 0;background:#02314f88;backdrop-filter:blur(4px)}#sheet{border-radius:24px 24px 0 0;border:2px solid #b69a6e;border-bottom:0;box-shadow:0 -3px 0 #fff3cd88,0 -15px 60px #012b4b88;background:#f7ecd3}#content{padding:16px 16px max(25px,env(safe-area-inset-bottom));scrollbar-width:none}p{font-size:13px;line-height:1.6;color:#817051}p.muted{font-size:11px}.tabs{gap:6px;position:sticky;top:-16px;background:#f7ecd3;padding:5px 0 12px;z-index:2;margin:0 0 2px}.tabs button{min-height:42px;border:1px solid #c5ac7c;background:#ecddbb;border-radius:10px;font-size:11px;font-weight:700;color:#8e7b55}.tabs button.active{background:linear-gradient(#5c9caa,#3d7a8b);border-color:#477d86;color:#fff5d5;box-shadow:0 3px #b9c4a9}.grid{gap:12px}.card{border:1px solid #c5ac7d;border-radius:14px;background:#fff8e8;box-shadow:0 3px #ddcba5;padding-bottom:11px}.card .art{height:116px;border-bottom:1px solid #a9c5bc;background:radial-gradient(ellipse at 50% 60%,#b7e8df 0,#6bb7cd 60%,#3c88ac 100%);margin-bottom:8px}.card .art:before{content:'';position:absolute;inset:0;background:linear-gradient(125deg,#ffffff26,transparent 50%);pointer-events:none}.card b{font-size:12px;min-height:15px;margin:7px 4px 3px;color:#584d35;letter-spacing:-.2px}.card small{font-size:10px;margin:6px 4px;color:#9a8c6d}.tag{font-size:8px;top:7px;left:7px;z-index:1;border:1px solid #fff6d999;background:#fff4d0eb;padding:4px 6px;border-radius:6px;color:#8b754d;font-weight:800}.card.undiscovered .art{filter:saturate(.45);opacity:.7}.card.discovered{border-color:#86ad99}.card .action{border:1px solid #987d4a;border-radius:9px;font-size:11px;min-height:38px;margin-top:9px;padding:9px 4px;box-shadow:0 2px #c3ac76}.action{border-radius:11px;min-height:46px;font-size:12px;border-width:1px;box-shadow:0 3px #c1a36b;padding:13px 9px}.action.blue{background:linear-gradient(#8dcdd3,#3d8eaa);border-color:#487f91;box-shadow:0 3px #b7c9bb}.action.green{background:linear-gradient(#99bd78,#689769);border-color:#6b9164}.notice{font-size:11px;border-radius:11px;line-height:1.6;padding:13px}.line{padding:14px 0;font-size:13px}.line small{font-size:10px}.line .action{min-height:42px}.heroart{height:180px;position:relative;overflow:hidden;background:radial-gradient(#b1e5d9,#4a9bb5);border:1px solid #9cb9ab;border-radius:16px}.heroart canvas{object-fit:contain}.slots button{min-height:72px;border-radius:12px;font-size:11px;font-weight:600}.fishpick button{min-height:44px;font-size:11px;border-radius:9px}.statrow{border-radius:12px;padding:16px 7px;font-size:11px;background:#ecdfbb}.statrow b{font-size:21px;color:#4b8a92}.resultcard h2{font-size:23px;letter-spacing:-.5px}.resultcard h3{font-size:18px;color:#6f613e}.resultcard .art{height:180px;position:relative;overflow:hidden}.resultcard canvas{object-fit:contain}.resultcard small{font-size:10px;font-weight:800;letter-spacing:2px}#result .resultcard{border-radius:24px;border-width:2px;padding:22px;box-shadow:inset 0 0 0 3px #fff5da,0 20px 100px #012b49aa}#toast{border-radius:13px;font-size:12px;padding:13px 17px;box-shadow:0 5px 25px #032d4f66;background:#063e59f2;max-width:85%;min-width:230px}.fishingBottom{width:76%;bottom:max(32px,env(safe-area-inset-bottom))}#reel{border-radius:16px;min-height:64px;font-size:14px;letter-spacing:.5px}.fishhead button{min-height:40px;width:40px;border-radius:10px}.fishhead small{font-size:8px}.fishhead b{font-size:14px}#fishInstruction{font-size:12px;bottom:145px;padding:0 20px}.fishhead>span{font-size:12px;border-radius:10px;padding:10px}.battle{border-radius:15px}.skillrow button{min-height:64px;border-radius:12px;font-size:12px}.battleLabel{font-size:10px}
@media(max-height:740px){header{top:10px}.brand b{font-size:22px}.brand small{font-size:6px}.resources{top:78px;height:40px}#pondCount{top:127px;font-size:7px}.rail{top:148px;gap:10px}.rail span{width:37px;height:35px}.rail canvas{width:27px;height:27px}.rail button{min-height:45px;font-size:8px;gap:2px}.pondbar{bottom:84px;height:65px}#location{bottom:174px}nav{height:72px}}
@media(max-width:360px){.resources b{font-size:16px}.resources small{font-size:7px}.rail.left{left:5px}.rail.right{right:5px}.grid{gap:9px}#content{padding-left:12px;padding-right:12px}.card b{font-size:11px}.pondbar>div b{font-size:11px}.pondbar>div small{font-size:7px}.pondbar #collect{width:65px;height:65px}nav button{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.card.undiscovered .art{filter:saturate(.85);opacity:.9}.tag[data-rarity="Hiếm"]{background:#d8f1ef;color:#3f828f;border-color:#9dcac9}.tag[data-rarity="Sử thi"]{background:#eee0fa;color:#9572aa;border-color:#c2a3d8}.tag[data-rarity="Huyền thoại"]{background:#ffe5a3;color:#ac7938;border-color:#e5bd72}.sheethead button{min-height:44px;height:44px;width:44px}
.habitat-preview{margin-top:18px;padding:13px 0 0;border-top:1px solid #d4bf94}.habitat-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:13px;color:#5f786b}.habitat-heading small{font-size:10px;color:#9c8967}.species-strip{display:flex;overflow-x:auto;gap:9px;padding:3px 0 11px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}.mini-fish{min-width:102px;width:102px;scroll-snap-align:start;text-align:center;background:#fff6df;border:1px solid #ceb993;border-radius:11px;overflow:hidden;padding-bottom:8px}.mini-fish .art{height:69px;position:relative;background:radial-gradient(#b8e7dc,#669fb9);overflow:hidden}.mini-fish canvas{width:100%;height:100%;object-fit:contain}.mini-fish b{font-size:10px;display:block;margin:6px 5px;line-height:1.25;min-height:25px}.mini-fish small{font-size:9px;color:#a08b69}
/* Detailed 48px HUD miniatures, sized for thumb controls. */
.rail span{width:44px;height:43px;background:linear-gradient(#fff1c9,#ddb778);border-color:#fff0c8;box-shadow:0 3px #48606b99,inset 0 0 0 1px #c69d61}.rail.right span{background:linear-gradient(#d7f3df,#91c2c4);border-color:#e1f5de}.rail canvas{width:38px;height:38px;filter:drop-shadow(0 1px #4d625d44)}nav span,nav canvas{width:34px;height:34px}nav .primary span,nav .primary canvas{width:44px;height:44px}.resources canvas{width:32px;height:32px}.pondbar #feed canvas{width:32px;height:32px}.pondbar #feed span{height:31px}.pondbar #collect span{height:25px}.pondbar #collect canvas{width:28px;height:28px}@media(max-height:740px){.rail{gap:7px}.rail span{height:39px;width:40px}.rail canvas{height:34px;width:34px}}
.shop-balance{display:flex;align-items:center;justify-content:space-between;background:#e7d9b6;border:1px solid #d4bf90;padding:10px 12px;border-radius:12px;margin-bottom:10px}.shop-balance span{font-size:13px;color:#56818a;font-weight:800}.shop-balance small{font-size:9px;color:#968162}.shop-tabs{top:-17px;z-index:4}.shop-tabs button{font-size:10px;line-height:1.2;padding:8px 2px}.shop-card .art{height:125px}.shop-card small{line-height:1.5;min-height:28px;margin:5px 8px}.shop-card b{min-height:29px;line-height:1.3;margin:8px 7px 2px}.shop-card .action{width:calc(100% - 16px);margin:8px 8px 0;min-height:42px}.owned-badge{position:absolute;top:7px;right:7px;border-radius:5px;background:#f5f1dce8;padding:4px 6px;font-size:8px;font-weight:bold;color:#60826d}.background-card .art{height:145px}.background-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 65%;image-rendering:pixelated}.background-art canvas{object-fit:cover!important}.skin-art{background:radial-gradient(#daead5,#7faab7)!important}.pack-art{background:radial-gradient(#d7dbbb,#6ca7be)!important}.evolution-info{border:1px solid #d8bf91;background:#e9ddbb;border-radius:12px;padding:12px;margin:12px 0}.evolution-info b{display:block;font-size:12px;color:#708060}.evolution-info small{display:block;margin-top:5px;font-size:11px;color:#9a835d}
.location-art{height:137px!important;position:relative}.location-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 60%;image-rendering:pixelated}.location-chip{position:absolute;left:7px;top:7px;padding:4px 7px;border-radius:6px;background:#f9f0d7e8;color:#657d7c;font-size:9px;font-weight:800}#fishingScene[data-habitat="lake"] .fishhead div,#fishingScene[data-habitat="deep"] .fishhead div{background:#e4e5d9e8}#fishingScene[data-habitat="lake"] #reel{background:linear-gradient(#928cbd,#655f9c);box-shadow:0 5px #474578}#fishingScene[data-habitat="sea"] #reel{background:linear-gradient(#6bbdca,#388ba8);box-shadow:0 5px #326780}#fishingScene[data-habitat="deep"] #reel{background:linear-gradient(#628bb3,#3f5a8f);box-shadow:0 5px #293d6e}
.inspect-art{position:absolute;inset:0;width:100%;height:100%;border:0;background:none;padding:0;cursor:zoom-in}.inspect-art:focus-visible{outline:3px solid #fff1b6;outline-offset:-4px}.owned-badge{pointer-events:none}.decor-large{height:260px;border-radius:17px;background:radial-gradient(#d4eee1,#7ab2c0);border:1px solid #a9c0ab;overflow:hidden}.decor-large canvas{width:100%;height:100%;object-fit:contain}.decor-caption{text-align:center;padding:15px 5px}.decor-caption b{font-size:19px;color:#6c5b3c}.decor-caption p{margin:8px 0;font-size:13px}.decor-caption small{font-size:11px;color:#9a8156}.evolution-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px}.compare-card{overflow:hidden;border:1px solid #c6af80;border-radius:14px;background:#fff5df;text-align:center;padding-bottom:14px}.compare-card .art{height:150px;background:radial-gradient(#b7e4d9,#5b9fb7);overflow:hidden}.compare-card canvas{width:100%;height:100%;object-fit:contain}.compare-card b{display:block;font-size:12px;margin:12px 4px 5px;color:#5f7f79}.compare-card small{display:block;font-size:10px;line-height:1.5;margin:0 8px;color:#a0865e}
.mythic-lore{padding:12px 14px;border:1px solid #c4b4d3;background:#eee4f4;border-radius:12px;font-size:12px;color:#90739f}.mini-fish small{font-size:8px;line-height:1.5;min-height:22px}
/* Hand-bound sea journal: shared popup frame and habitat accents. */
#sheet{--ink:#376c78;--edge:#9a8056;--wash:#e0ece3;border-color:var(--edge);background-color:#faf0d7;background-image:repeating-linear-gradient(0deg,transparent 0 5px,#b99a6510 5px 6px);box-shadow:inset 5px 0 #fff8e4,inset -5px 0 #e3cfa5,0 -4px #ecd7a7,0 -16px 55px #01283b99}
#sheet[data-theme=market]{--ink:#98664a;--edge:#a57c50;--wash:#efd9b5}
#sheet[data-theme=journal]{--ink:#58775f;--edge:#8b9872;--wash:#e0e8cf}
#sheet[data-theme=voyage]{--ink:#397f91;--edge:#6b9998;--wash:#d0e9e5}
.sheethead{position:relative;isolation:isolate;min-height:93px;padding:20px 20px 20px 28px;background:linear-gradient(100deg,#fff6de 30%,var(--wash));border-bottom:3px double var(--edge);box-shadow:0 3px #ccb17d25}
.sheethead:before{content:'';position:absolute;left:10px;top:20px;bottom:20px;width:4px;background:var(--ink);box-shadow:3px 4px #c5ab73;opacity:.65}
.sheethead:after{content:'✦';position:absolute;right:83px;bottom:6px;font-size:37px;color:var(--ink);opacity:.12;z-index:-1}
.sheethead small{color:var(--ink);letter-spacing:1.5px;font-size:8px}.sheethead h1{color:#514531;font-size:22px;letter-spacing:-.6px;line-height:1.25;margin-top:7px}.sheethead button{background:#fff3d3;border:2px solid var(--edge);border-radius:9px;box-shadow:2px 3px #c4ac7b;font-size:25px;flex-shrink:0;margin-left:10px}
#content>p:first-child{border-left:2px solid #bca473;padding:4px 11px;font-size:12px;font-style:italic;color:var(--ink)}
.shop-balance{background:#ead9b4;border:1px dashed #ba965e;box-shadow:inset 0 0 0 3px #f5e9cd;border-radius:6px}.shop-balance small{font-style:italic}.shop-tabs{background:#faf0d7}.shop-tabs button{border-radius:6px 6px 12px 12px}.shop-tabs button.active{background:linear-gradient(#5f9e9c,#397b83);box-shadow:0 3px #c9af7a}.shop-card{border-radius:9px 9px 15px 15px}.shop-card b{color:#665035}.shop-card .art{background:radial-gradient(ellipse at 50% 85%,#dce9cc,#85bebc 70%,#669dba)}
#toast{border:2px solid #b9cda3;background:#174c59;color:#fff2d2;box-shadow:3px 4px #082e40;border-radius:9px}
@media(max-width:360px){.sheethead h1{font-size:19px}.sheethead{padding-left:23px}.shop-balance small{font-size:9px}}
/* Sea story typography: readable small copy, engraved headings, paper labels. */
.sheethead h1{font-family:Georgia,'Times New Roman',serif;font-weight:800;letter-spacing:-.35px;text-shadow:0 1px #fffbed,1px 2px #b99d6020;font-size:25px;line-height:1.22}.sheethead small{display:inline-block;border-bottom:1px solid #a6895d66;padding-bottom:5px;line-height:1.5;letter-spacing:1.25px}.sheethead:after{content:'✧ · ✦';font-size:23px;right:76px;bottom:9px;letter-spacing:5px;opacity:.2}
#content{color:#574b37}#content p{line-height:1.75;color:#78684d}#content .card b{font-family:Georgia,'Times New Roman',serif;font-size:15px;font-weight:800;line-height:1.4;letter-spacing:0;margin:8px 7px 4px}#content .card small{font-size:11px;line-height:1.6;color:#887451}.tag{letter-spacing:.25px;box-shadow:1px 2px #3b666524}.statrow{border:1px solid #c8b27c;background:linear-gradient(#f3e8c9,#e8d9b2);box-shadow:inset 0 0 0 3px #fff5da}.statrow b{font-family:Georgia,serif;font-size:25px;text-shadow:0 1px #fff8df}.notice{border:1px dashed #b69c6b;background:#eee1c2;color:#716045}.action{font-weight:800;letter-spacing:.25px;text-shadow:0 1px #ffffff33}.line b{color:#625139}.line small{line-height:1.6}.decor-caption>b{font-family:Georgia,serif;font-size:23px}.resultcard h2,.resultcard h3{font-family:Georgia,serif;text-shadow:0 2px #fff2cc}.resultcard p{line-height:1.7}.mythic-lore{border-left:3px solid #9982ad;font-style:italic}
@media(max-width:360px){.sheethead h1{font-size:22px}#content .card b{font-size:13px}}
/* Aquarium HUD: carved shell framing with quiet translucent labels. */
.resources{box-shadow:inset 0 0 0 2px #fff9df,inset 0 -5px #d4bb8955,0 4px #124d58,0 6px #062b3644}.brand b{text-shadow:2px 3px #164f58,0 -1px #fff7d1}.rail span{box-shadow:inset 0 0 0 2px #fff3cc,inset 0 -5px #ac885044,2px 4px #164d52;border-radius:10px}.rail button{color:#fff6d8;letter-spacing:.15px}.rail.right span{box-shadow:inset 0 0 0 2px #daf0d4,inset 0 -5px #367d7944,2px 4px #164d52}#location{left:25%;width:50%;padding:7px 3px;border-top:1px solid #c6e4bf55;border-bottom:1px solid #c6e4bf33;background:linear-gradient(90deg,transparent,#104d5c88,transparent);font-size:10px;letter-spacing:1.5px}#location span{font-size:7px;letter-spacing:2px}.pondbar{box-shadow:inset 0 0 0 2px #fff7dc,0 4px #426d62,0 7px #052b4044}.pondbar small{color:#887754}nav{box-shadow:inset 0 3px #fff9e4,0 -4px #b6a16c,0 -9px #0f455d44}
/* Mobile game panels: compact inventory, metal corners, tactile controls. */
#modal{padding: max(18px,env(safe-area-inset-top)) 7px max(9px,env(safe-area-inset-bottom));background:#02283cb8;backdrop-filter:blur(5px)}
#sheet{border:3px solid #a58b57;border-radius:17px;box-shadow:inset 0 0 0 2px #fff2c9,0 5px #4b5146,0 12px 36px #001e35b0;background:#f3e6c7}
.sheethead{min-height:79px;padding:15px 16px 15px 24px;background:linear-gradient(100deg,#14566a,#277c81);border-bottom:3px solid #b89a5c;box-shadow:inset 0 2px #a3d1bb55,0 3px #b49a6322}
#sheet[data-theme=market] .sheethead{background:linear-gradient(110deg,#5c493b,#8b7050)}#sheet[data-theme=journal] .sheethead{background:linear-gradient(110deg,#345c53,#618471)}
.sheethead h1{font-family:system-ui,-apple-system,sans-serif;color:#fff0c6;font-size:22px;line-height:1.22;font-weight:900;text-shadow:0 2px #163d42;letter-spacing:-.5px}.sheethead small{color:#c6e7d6;font-size:8px;border:0;padding:0;letter-spacing:1.5px}.sheethead:before{background:#efcf85;box-shadow:2px 2px #163b48;left:10px;top:18px;bottom:18px}.sheethead:after{color:#e3eed2;opacity:.18;bottom:3px}.sheethead button{background:linear-gradient(#f8df9d,#b88b4c);border-color:#fff0bd;color:#674634;box-shadow:0 3px #123c45;border-radius:9px;width:44px;height:44px;font-weight:900}
#content{padding:12px 12px max(18px,env(safe-area-inset-bottom));background-image:radial-gradient(#ae955f16 1px,transparent 1px);background-size:7px 7px}.tabs{top:-12px;background:#f3e6c7;padding:3px 0 10px;gap:5px}.tabs button{min-height:44px;border-radius:8px;border:2px solid #b39a68;background:linear-gradient(#f8edcd,#ded0a7);font-size:11px;box-shadow:inset 0 1px #fff9e2}.tabs button.active{background:linear-gradient(#4a9ba3,#226577);border-color:#e1c887;box-shadow:0 3px #9a865a;color:#fff6d5}
.grid{gap:10px}.card,.shop-card{border:2px solid #b29a65;border-radius:10px;box-shadow:0 3px #b8a276,inset 0 0 0 2px #fff8df;background:#fff2d4}.card .art{border-bottom:2px solid #b6a476;background:radial-gradient(ellipse at 50% 65%,#acdad1,#448eaa);height:125px}.card .art:after{content:'';position:absolute;inset:5px;border:1px solid #e1f4d92b;pointer-events:none}.card canvas{position:relative;z-index:1}#content .card b{font-family:system-ui,sans-serif;font-size:13px;font-weight:850;margin:6px 5px 2px}#content .card small{font-size:10px;line-height:1.45;margin:5px}.action,.card .action{border:2px solid #f6e7b6;border-radius:9px;background:linear-gradient(#eed083,#bc8e43);box-shadow:0 3px #8d6b40,inset 0 1px #fff5c7;min-height:44px;font-weight:900;color:#594328}.action.blue{background:linear-gradient(#62b7c4,#27778f);border-color:#c6e6d4;color:#fff4ce;box-shadow:0 3px #315564,inset 0 1px #b3e4de}.action.green{background:linear-gradient(#97bc6a,#4d875f);border-color:#e0edbc;color:#fff8dd;box-shadow:0 3px #4c6349}button:disabled{opacity:1;filter:saturate(.25);color:#8b9388!important;box-shadow:0 2px #a7a58d!important}
.heroart,.decor-large{border:3px solid #b29b68;border-radius:12px;box-shadow:inset 0 0 0 2px #d8ecd1,0 3px #c5b080}.statrow{margin:12px 0;padding:12px 6px;border:2px solid #c4ab73;border-radius:10px}.statrow b{font-family:system-ui,sans-serif;font-size:23px;font-weight:900}.slots{gap:5px}.slots button{border:2px solid #baa06a;background:#fff2d4;box-shadow:0 3px #c6af7c}.slots button.selected{border-color:#468e92;background:#d7e9d0}.shop-balance{border:2px solid #c0a46c;border-radius:8px;padding:10px}.resultcard{border-color:#d2b779!important;background:linear-gradient(#fff4d5,#e8d4a5)}
@media(max-width:360px){.sheethead h1{font-size:19px}.grid{gap:7px}#content{padding:10px}.card .art{height:110px}}
/* Disabled actions keep prices legible; availability is conveyed by the muted frame. */
button.action:disabled,.card button.action:disabled{opacity:1;filter:none;background:linear-gradient(#dbe2de,#b9c9c8)!important;color:#314f59!important;border-color:#edf0da!important;text-shadow:none!important;box-shadow:0 3px #7c9293,inset 0 1px #f7faeb!important;font-weight:900;font-size:13px;font-variant-numeric:tabular-nums;letter-spacing:.3px;cursor:default}
.currency-icon{display:inline-block;width:22px;height:22px;object-fit:contain;vertical-align:middle;image-rendering:pixelated;flex-shrink:0;margin-right:3px}.action .currency-icon{width:21px;height:21px}.shop-balance>span{display:flex;align-items:center}.resources{background:#eddfb7;border:2px solid #9e8351;border-radius:12px;box-shadow:inset 0 2px #fff3ce,0 3px #345451}.resources small{display:none}.resources b{font-family:ui-monospace,monospace;font-size:19px;font-weight:900;letter-spacing:-.5px;color:#344d4b}.resources span{gap:4px}.brand{letter-spacing:1px}.brand small{display:none}.brand b{font-size:27px}.rail span,.rail.right span{border-radius:6px;background:#d8bb80;border:2px solid #fff0c2;box-shadow:2px 3px #48584d,inset -2px -2px #a58a59}.rail.right span{background:#87b7a7}.rail button{font-family:system-ui,sans-serif;font-weight:800;font-size:10px}.action,.card .action{background:#d9b56c;box-shadow:0 3px #856a3e;border-radius:6px;text-shadow:none}.action.blue{background:#357f91;box-shadow:0 3px #204e61}.action.green{background:#679363;box-shadow:0 3px #395a44}.tabs button{background:#e3d2a6;border-radius:5px;box-shadow:none}.tabs button.active{background:#397d84;box-shadow:0 2px #9c8859}.sheethead h1{font-family:ui-monospace,'Courier New',monospace;font-size:21px;font-weight:900;letter-spacing:-.8px}.sheethead button{background:#e4bf76;border-radius:6px}.card,.shop-card{border-radius:7px;box-shadow:0 3px #b9a477}.pondbar{background:#e9dbb5;border-radius:12px}.pondbar #collect{border-radius:12px;background:#dfbc70;box-shadow:0 0 0 2px #8e754b,0 4px #485749}.pondbar small{font-size:8px}nav{background:#e6d7b1;border-radius:12px 12px 0 0}nav .primary{background:#358c9c;border-radius:10px 10px 5px 5px}#sheet{border-radius:10px}.sheethead{background:#235e6b}#sheet[data-theme=market] .sheethead{background:#715b40}#sheet[data-theme=journal] .sheethead{background:#466b58}
.exchange-box{padding:14px;margin:12px 0;border:2px solid #b59b64;border-radius:8px;background:#f9edce}.exchange-box>b{font-size:15px;color:#4c685f}.exchange-box p{margin:6px 0;font-weight:800}.exchange-box label,.exchange-box small{display:block;font-size:11px;margin:7px 0;color:#716246}.exchange-box input{width:100%;min-height:46px;border:2px solid #9aaf9c;border-radius:6px;background:#fff9e7;color:#294f59;padding:8px 12px;font-size:20px;font-weight:800}.exchange-actions{display:flex;gap:10px}.exchange-actions .action{flex:1;width:auto;margin:7px 0 0}
.reward-fx{position:absolute;inset:0;z-index:40;pointer-events:none;overflow:hidden}.reward-particle{position:absolute;display:block;width:22px;height:22px;opacity:0;will-change:transform,opacity}.reward-particle img{width:100%;height:100%;image-rendering:pixelated;filter:drop-shadow(1px 2px 0 #173c52)}.reward-particle.food{width:5px;height:5px;background:#e9bd76;border:1px solid #986d3e;box-shadow:1px 1px #fff0ba}.reward-particle.heart{color:#f3a6ad;font-size:20px;text-shadow:1px 2px #96576e}.reward-particle.spark{color:#ffe5a3;font-size:20px;text-shadow:1px 2px #6b977f}
@media(prefers-reduced-motion:reduce){.reward-particle{will-change:opacity}}
#sheet[data-panel=fusion] #content{background:#163d50;color:#f5e6bf;background-image:radial-gradient(#73b6b52b 1px,transparent 1px);background-size:12px 12px}#sheet[data-panel=fusion] #content>p{color:#c7dcd0;border:0;font-style:normal;text-align:center;font-size:11px;margin:0 0 10px}.fusion-stage{height:clamp(155px,25dvh,230px);border:3px solid #bdad72;background:radial-gradient(ellipse,#4b949b,#163c57 74%);position:relative;isolation:isolate;overflow:hidden}.fusion-stage:before{content:'';position:absolute;width:135px;height:55px;border:3px double #c4dfb7;border-radius:50%;bottom:12px;left:50%;transform:translateX(-50%);box-shadow:0 0 0 5px #609c9c44,inset 0 0 24px #98cba35c;z-index:-1}.fusion-stage:after{content:'✦    ✧    ✦';position:absolute;bottom:27px;left:0;right:0;text-align:center;color:#e7dc9a;font-size:19px;letter-spacing:13px;z-index:-1}.fusion-stage canvas{position:relative;z-index:1}#sheet[data-panel=fusion] .slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:14px 0}#sheet[data-panel=fusion] .slots button{min-width:0;min-height:103px;padding:5px 2px;border:2px solid #718b83;border-radius:7px;background:#284f5d;color:#e7e4bf;box-shadow:0 3px #0c293a;overflow:hidden}#sheet[data-panel=fusion] .slots button.selected{background:#356d72;border-color:#dbc181}.part-label{font-size:10px;font-weight:900;color:#ffe5a5}.part-art{height:47px;width:100%;overflow:hidden}.part-art canvas{width:100%;height:100%;object-fit:contain}.part-empty{display:grid;place-items:center;height:47px;font-size:28px;color:#8eb7ab}.slots button small{display:block;font-size:8px;line-height:1.3;min-height:22px}.fishpick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.fishpick button{background:#27576a;border:2px solid #78a39c;color:#f2e7c9;padding:4px;border-radius:7px;min-width:0}.pick-art{height:57px;overflow:hidden}.pick-art canvas{object-fit:contain}.fishpick span{font-size:10px}.is-fusing canvas{animation:fusion-pulse 1.5s ease-in-out both}.is-fusing:before{animation:fusion-ring 1.5s ease-in both}.is-fusing:after{animation:fusion-stars .4s steps(3) infinite}@keyframes fusion-pulse{0%{transform:scale(1)}35%{transform:scale(.65) rotate(-5deg);filter:brightness(1.8)}75%{transform:scale(.2) rotate(15deg);filter:brightness(4)}90%{transform:scale(1.3);filter:brightness(5)}100%{transform:scale(1)}}@keyframes fusion-ring{to{transform:translateX(-50%) scale(3);opacity:0}}@keyframes fusion-stars{50%{opacity:.3;transform:translateY(-40px)}}
/* Override legacy 29% button width: every component fills its mobile inventory slot. */
#sheet[data-panel=fusion] .slots{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;align-items:stretch}
#sheet[data-panel=fusion] .slots button{grid-column:span 2;width:100%;height:auto;min-height:114px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:8px 5px;border-style:solid}
#sheet[data-panel=fusion] .slots button:nth-child(4){grid-column:2/span 2}
#sheet[data-panel=fusion] .slots button:nth-child(5){grid-column:4/span 2}
#sheet[data-panel=fusion] .part-label{font-size:12px;line-height:1.3;white-space:nowrap}
#sheet[data-panel=fusion] .part-art{height:56px;min-height:56px;width:100%;position:relative}
#sheet[data-panel=fusion] .part-art canvas{width:150%;max-width:none;height:100%;margin-left:-25%;object-fit:contain}
#sheet[data-panel=fusion] .slots button small{font-size:10px;line-height:1.35;min-height:27px;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:center;width:100%;color:#e0eddb}
#sheet[data-panel=fusion] .fishpick button{width:100%;height:auto;min-height:100px;display:flex;flex-direction:column;align-items:center;padding:6px;gap:5px}
#sheet[data-panel=fusion] .pick-art{width:100%;height:65px;flex-shrink:0}
#sheet[data-panel=fusion] .pick-art canvas{width:130%;max-width:none;margin-left:-15%;height:100%;object-fit:contain}
#sheet[data-panel=fusion] .fishpick span{font-size:11px;line-height:1.35;white-space:normal;word-break:normal}
#sheet[data-panel=arena] #content{background:#102f44;background-image:radial-gradient(#507d7d22 1px,transparent 1px);background-size:10px 10px;color:#f0e4c1}#sheet[data-panel=arena] .sheethead{background:#234758}#sheet[data-panel=arena] .battle{border:2px solid #7b9a94;border-radius:10px;overflow:hidden;margin:10px 0 0;box-shadow:0 3px #071f30;height:auto;aspect-ratio:6/5}#sheet[data-panel=arena] .battle canvas{height:100%;width:100%}.arena-hud{display:grid;grid-template-columns:1fr 48px 1fr;align-items:center;gap:6px;padding:4px 0}.team-health{position:relative;min-width:0;padding:9px;background:#204b57;border:2px solid #649c8b;border-radius:8px}.team-health.enemy{background:#503e52;border-color:#ae7d86;text-align:right}.team-health small{display:block;font-size:9px;font-weight:800;color:#d5e7d3}.team-health b{font-size:22px;color:#f8edc5;line-height:1.5}.team-health>span{display:block;font-size:9px;color:#adc5bd;margin-top:4px}.hp-track{height:11px;background:#0d2635;border:1px solid #849786;padding:2px;border-radius:3px}.hp-track i{display:block;height:100%;background:#8fc783;transition:width .4s ease}.enemy .hp-track i{background:#de8e91}.arena-vs{text-align:center;font-size:22px;font-weight:900;color:#e7c67c;text-shadow:1px 2px #051e2e}.arena-vs small{display:block;font-size:8px;color:#c2d7ca;margin-top:6px;white-space:nowrap}.arena-energy{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 5px 4px}.arena-energy>span,.arena-energy>b{font-size:9px;color:#c9dece}.arena-energy>div{display:flex;gap:5px}.arena-energy i{width:15px;height:15px;border:2px solid #76969a;background:#183c51;transform:rotate(45deg);border-radius:2px}.arena-energy i.charged{background:#e4c375;border-color:#fff0b4;box-shadow:0 0 7px #e5cb6577}#sheet[data-panel=arena] #battleLog{color:#c9dcd3;min-height:34px;font-size:11px;text-align:center;margin:10px 0;line-height:1.6}#sheet[data-panel=arena] .skillrow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:sticky;bottom:-12px;background:#102f44;padding:8px 0 15px;z-index:2}#sheet[data-panel=arena] .skillrow button{width:100%;min-height:95px;border:2px solid #a7c9bc;border-radius:9px;background:#2c7289;color:#fff0c7;box-shadow:0 4px #081e30;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:9px 3px}#sheet[data-panel=arena] .skillrow button:nth-child(2){background:#795878;border-color:#c6acd0}#sheet[data-panel=arena] .skillrow button:nth-child(3){background:#41775d;border-color:#accb9c}.skill-icon{font-size:27px;line-height:1;text-shadow:2px 2px #102d40}.skillrow b{font-size:12px}.skillrow small{font-size:8px}#sheet[data-panel=arena] .skillrow button:disabled{background:#2c4351!important;border-color:#607880!important;color:#b0bdb9!important;filter:none;opacity:1;box-shadow:0 3px #081e30!important}#sheet[data-panel=arena] #content>p,#sheet[data-panel=arena] .notice{color:#d2dfd2}#sheet[data-panel=arena] .notice{background:#284958;border-color:#63847e}
.team-health small{min-height:24px;line-height:1.4;overflow-wrap:break-word}.battle-result{text-align:center;animation:battle-reveal .55s cubic-bezier(.2,.9,.3,1.25) both}.battle-emblem{font-size:84px;line-height:1.2;color:#e9c774;text-shadow:3px 4px #82613b;animation:emblem-glow 1.8s ease-in-out infinite}.battle-result.defeat .battle-emblem{color:#8baebe;text-shadow:3px 4px #406378}.battle-prizes{display:flex;justify-content:center;gap:25px;background:#e2ce9d;padding:17px;margin:15px 0;border:2px solid #bca064;border-radius:8px;font-weight:900;font-size:20px}.battle-prizes span{display:flex;align-items:center}.battle-result h2{font-size:24px;color:#705534}.battle-result.defeat h2{color:#4c6d7e}@keyframes battle-reveal{from{opacity:0;transform:translateY(35px) scale(.65)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes emblem-glow{50%{transform:translateY(-7px);filter:brightness(1.2)}}
.ad-gift{padding:16px;margin:12px 0;background:#245767;border:2px solid #c9ad70;border-radius:9px;text-align:center}.ad-gift>b{color:#ffe6aa;font-size:16px}.ad-gift p{color:#e1edda!important;margin:8px 0}.ad-gift small{display:block;color:#bdd6cf;font-size:10px;margin-top:8px}
#sheet[data-panel=wallet] #content{background:#183c4d;color:#f5e7c3}.wallet-balances{display:flex;gap:10px;margin-bottom:15px}.wallet-balances>div{flex:1;display:grid;grid-template-columns:32px 1fr;align-items:center;gap:3px 8px;padding:12px;background:#244f5c;border:2px solid #73958b;border-radius:8px}.wallet-balances img{width:32px;height:32px;grid-row:span 2;image-rendering:pixelated}.wallet-balances b{font-size:21px;font-variant-numeric:tabular-nums}.wallet-balances small{font-size:8px;letter-spacing:1px;color:#adc8bc}.wallet-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.wallet-items>div{text-align:center;background:#2b5360;border:2px solid #8caa96;border-radius:8px;padding:9px 5px;display:flex;flex-direction:column;align-items:center}.inventory-symbol{display:grid;place-items:center;background:#163c4e;border:1px solid #658b89;border-radius:6px;width:48px;height:48px;font-size:30px;color:#ead08b}.wallet-items b{font-size:20px;margin:6px 0 2px}.wallet-items small{font-size:10px;color:#c7dbce}.wallet-items .action{width:100%;font-size:10px;min-height:40px;padding:7px 1px}.wallet-items .currency-icon{width:16px;height:16px;margin:0}.wallet-ad{display:grid;grid-template-columns:70px 1fr;align-items:center;text-align:left;gap:12px;padding:12px;margin:15px 0}.ad-reward-icon{display:flex;flex-direction:column;align-items:center;color:#fff0ba;font-size:21px}.ad-reward-icon img{width:46px;height:46px;image-rendering:pixelated}.wallet-ad .action{margin:9px 0 0;padding:9px 4px;font-size:11px}.wallet-ad small{font-size:10px}.wallet-ad b{color:#ffe5ad}.exchange-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.exchange-heading span{font-size:10px;color:#6d7155}.exchange-stepper{display:flex;align-items:center;gap:12px;margin:12px 0}.exchange-stepper>.action{width:46px;min-width:46px;font-size:23px;margin:0;padding:3px}.exchange-stepper label{display:flex;align-items:center;justify-content:center;gap:4px;margin:0;flex:1;min-width:0;background:#fff8e2;border:2px solid #92a892;border-radius:7px}.exchange-stepper input{width:70px;text-align:center;border:0!important;background:transparent!important;padding:7px 2px!important;-moz-appearance:textfield}.exchange-stepper input::-webkit-inner-spin-button{display:none}.exchange-box>small{text-align:center}.wallet-tools{margin:15px 0 4px;border-top:1px solid #709084;padding-top:14px}.wallet-tools summary{font-size:11px;color:#bed3c5;min-height:32px;cursor:pointer}.wallet-tools>div{padding:5px}.wallet-tools .action{display:block;text-align:center;font-size:11px}#sheet[data-panel=wallet] .exchange-box{margin-bottom:10px}
.wardrobe-grid{gap:12px}.outfit-card{--outfit:#668fa4;--outfit-dark:#24465b;background:#f1e3bd;border:2px solid #a79465;position:relative}.outfit-card[data-outfit=ranger]{--outfit:#83a477;--outfit-dark:#304f49}.outfit-card[data-outfit=pirate]{--outfit:#ae7c73;--outfit-dark:#533e51}.outfit-card[data-outfit=diver]{--outfit:#6ab8bb;--outfit-dark:#215362}.outfit-card[data-outfit=mage]{--outfit:#ab92c5;--outfit-dark:#403c64}.outfit-card[data-outfit=angler]{--outfit:#c0aa77;--outfit-dark:#4c5b50}.outfit-card[data-outfit=explorer]{--outfit:#af9a73;--outfit-dark:#46554c}.outfit-card[data-outfit=royal]{--outfit:#c7a963;--outfit-dark:#534566}.outfit-card .skin-art{height:170px;background:radial-gradient(ellipse at 50% 45%,var(--outfit),var(--outfit-dark) 85%);border-bottom:3px solid #b79c61;isolation:isolate;overflow:hidden}.outfit-card .skin-art:before{inset:auto 12% 7px;height:19px;background:#173847;border:2px solid var(--outfit);box-shadow:0 5px #102d3b;transform:skewX(-12deg);z-index:-1}.outfit-card .skin-art:after{inset:7px;border:1px solid #e9e3b955;border-bottom:0}.outfit-card .skin-art canvas{width:100%;height:100%;object-fit:contain;position:relative;transform:translateY(-5px)}.outfit-crest{position:absolute;top:11px;left:10px;font-size:22px;color:#e8d494;text-shadow:1px 2px #29414c}.outfit-card .owned-badge{font-size:7px;letter-spacing:.3px;top:auto;bottom:5px;right:5px;background:#e1e7c7;color:#36594b;border:1px solid #9fb18b;padding:4px 5px}.outfit-card.equipped{border-color:#e6c77b;box-shadow:0 0 0 1px #799a7e,0 4px #b29b62}.outfit-card.equipped .skin-art{border-bottom-color:#e3c477}.outfit-card.equipped .owned-badge{background:#f1d28a;color:#574b2d}#content .outfit-card>b{font-size:13px;margin:9px 4px 3px;min-height:18px}#content .outfit-card>small{font-size:9px;min-height:27px;margin:5px 7px;line-height:1.5}.outfit-card .action{width:calc(100% - 14px);margin:6px 7px 0;font-size:11px;min-height:42px}.outfit-card .action:disabled{background:#dce1c8!important;color:#526a57!important;border-color:#b5bd92!important}@media(max-width:360px){.outfit-card .skin-art{height:147px}.outfit-card .owned-badge{font-size:6px}.wardrobe-grid{gap:8px}}
.arena-pass{display:grid;grid-template-columns:1fr auto;gap:7px;padding:12px;margin-bottom:12px;background:#295461;border:2px solid #bca873;border-radius:8px}.arena-pass>b{color:#ffe4a9;font-size:14px}.arena-pass>small{color:#c2dbce;font-size:10px;align-self:center}.arena-pass .action{grid-column:1/-1;margin:4px 0 0;font-size:12px}
