*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#041b2c;color:#4a361e;font-family:ui-monospace,'Courier New',monospace}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:default}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}#game{height:100dvh;width:100%;max-width:500px;position:relative;margin:auto;overflow:hidden;background:#0b6585;isolation:isolate}canvas{width:100%;height:100%;display:block;image-rendering:pixelated}#world{position:absolute;inset:0;z-index:-1}header{position:absolute;top:max(env(safe-area-inset-top),14px);left:20px;right:20px;display:flex;justify-content:space-between;align-items:center}.brand{color:#fff0cb;text-shadow:2px 3px #053b50;display:flex;flex-direction:column;line-height:1.02;letter-spacing:3px}.brand span{font-size:14px;font-weight:900}.brand b{font-size:28px}.brand small{font-size:8px;letter-spacing:2px;margin-top:6px;color:#99e3e4}.round{border:1px solid #80c3be;border-radius:50%;width:36px;height:36px;background:#083e54bb;color:#e3ecd0;font-size:22px}.resources{position:absolute;top:102px;left:17px;right:17px;height:47px;background:linear-gradient(#fff7dc,#efd6a6);border:2px solid #a57c45;border-radius:26px;box-shadow:0 4px #07364a77, inset 0 0 0 3px #fff0ce;display:flex;align-items:center;justify-content:space-around;font-weight:bold;color:#387991}.resources span{display:flex;gap:6px;align-items:center}.resources span:nth-of-type(2){color:#668a45}.resources small{font-size:9px}.resources b{font-size:17px}.resources i{height:22px;width:1px;background:#bea57e}.resources button{border:0;border-left:1px solid #cfb286;background:transparent;font-size:20px;padding:4px 8px}.rail{position:absolute;top:175px;display:flex;flex-direction:column;gap:13px}.rail.left{left:10px}.rail.right{right:10px}.rail button{border:0;background:none;color:#e5f5e5;text-shadow:1px 2px #082d42;font-size:9px;font-weight:bold;display:flex;align-items:center;flex-direction:column;gap:3px;padding:0;width:50px}.rail span{display:grid;place-items:center;height:37px;width:38px;font-size:26px;background:linear-gradient(#d7ab60,#92704a);color:#fff1bc;border:2px solid #f4d48d;box-shadow:2px 3px #143e4d,-2px -1px #46665b;border-radius:8px;text-shadow:2px 2px #765a39}.rail.right span{background:linear-gradient(#7ec3be,#377f8b);border-color:#9ddcd0;color:#fff0b7;text-shadow:2px 2px #346672}#location{position:absolute;bottom:174px;text-align:center;width:100%;font-size:11px;color:#b7ded2;letter-spacing:2px;text-shadow:1px 2px #083748}#location span{display:block;font-size:8px;letter-spacing:3px;color:#78b0b0;margin-top:5px}.pondbar{position:absolute;bottom:86px;left:13px;right:13px;height:68px;border:2px solid #a47b46;background:linear-gradient(#fff5d7,#efdbb1);border-radius:15px;display:flex;align-items:center;padding:8px;gap:10px;box-shadow:0 5px #06324480}.pondbar>div{flex:1;text-align:right}.pondbar>div b{font-size:13px;color:#537b4c}.pondbar small{display:block;font-size:8px;margin-top:5px}.pondbar #feed{background:none;border:0;font-size:10px;color:#6e623c}.pondbar #feed span{color:#a97a3b;font-size:25px;display:block;line-height:20px}.pondbar #collect{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;width:70px;height:70px;top:-15px;background:linear-gradient(#f6d883,#bd8b3b);border:3px solid #fff1c5;border-radius:50%;box-shadow:0 0 0 2px #917546,0 4px #998255;color:#4f492e}.pondbar #collect span{color:#fff4bd;font-size:17px}.pondbar #collect b{font-size:14px}.pondbar #collect small{font-size:7px;margin:0}nav{position:absolute;bottom:0;left:0;right:0;height:73px;padding-bottom:env(safe-area-inset-bottom,0);background:linear-gradient(#fcf0d6,#e4d6b3);border-top:3px solid #a18a58;border-radius:20px 20px 0 0;display:flex;align-items:stretch;justify-content:space-around}nav button{background:none;border:0;color:#7b6f4c;flex:1;font-size:9px;font-weight:bold;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}nav span{font-size:24px;color:#658886}nav .primary{background:linear-gradient(#77c7cf,#3589a0);color:#f5f0cc;border:2px solid #b2d6c0;border-radius:18px 18px 0 0;margin-top:-9px;box-shadow:0 -3px #e8d7a8}nav .primary span{color:#ffdc8d;font-size:30px}#modal{position:absolute;inset:0;z-index:10;background:#06283f88;backdrop-filter:blur(3px);padding:70px 12px 83px;display:flex}#sheet{width:100%;background:#f4e7c8;border:3px solid #a67d49;box-shadow:inset 0 0 0 3px #fdf5df,0 8px 25px #052b40aa;border-radius:15px;display:flex;flex-direction:column;overflow:hidden}.sheethead{display:flex;justify-content:space-between;align-items:center;padding:18px 17px 12px;border-bottom:1px solid #d2b78a}.sheethead small{font-size:8px;letter-spacing:2px;color:#4e8790}h1{font-size:20px;margin:5px 0 0;line-height:1.1}.sheethead button,.fishhead button{background:#ffefca;border:2px solid #97774f;color:#af625b;box-shadow:0 3px #cbb58d;border-radius:6px;font-size:26px;line-height:24px;width:33px;height:33px}#content{padding:14px;overflow:auto;flex:1;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b39666 transparent}p{font-size:12px;line-height:1.6;margin:7px 0 14px}small.muted,.muted{font-size:10px;color:#95866b;line-height:1.5}.tabs{display:flex;gap:5px;margin-bottom:13px}.tabs button{flex:1;padding:9px 2px;border:2px solid #b28b55;background:#e9d6ac;border-radius:6px;font-size:10px;color:#7c6747}.tabs button.active{background:#84613e;color:#fff1cc}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{background:#fff5dd;border:2px solid #b79865;border-radius:11px;overflow:hidden;text-align:center;position:relative;padding-bottom:10px;box-shadow:0 3px #d8c299}.card .art{height:106px;background:linear-gradient(#83c6d6,#36869f);position:relative;display:grid;place-items:center;margin-bottom:8px}.card canvas{width:100%;height:100%}.card b{font-size:12px;display:block;margin:5px 3px}.card small{display:block;font-size:9px;color:#8d8067;margin:5px}.tag{position:absolute;top:6px;left:6px;background:#ffefd0dd;font-size:8px;padding:3px 5px;border-radius:4px;color:#816237}.action{display:block;border:2px solid #9c7a47;background:linear-gradient(#f9db8c,#e9b85a);box-shadow:0 3px #b7955b;color:#5d4c2e;border-radius:7px;padding:11px 8px;font-size:11px;font-weight:bold;text-align:center;width:100%;margin:8px 0 3px}.action.blue{background:linear-gradient(#8ed3db,#4b9bb4);color:#effbdf;border-color:#467e8e;box-shadow:0 3px #bdd0b8}.action.green{background:linear-gradient(#a5ce85,#6a9b69);color:#fff7dc}.card .action{width:calc(100% - 14px);margin:8px 7px 0;padding:8px 3px;font-size:10px}.line{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid #d7c6a3;font-size:12px}.line small{display:block;font-size:9px;color:#99886b;margin-top:4px}.line .action{width:auto;min-width:82px;margin:0;padding:8px}.statrow{display:flex;justify-content:space-around;background:#e5d8b5;padding:12px 6px;border-radius:8px;margin:10px 0;font-size:11px}.statrow b{display:block;font-size:17px;color:#477d86;margin-bottom:5px}.heroart{height:150px;background:linear-gradient(#9fdce0,#267a97);border-radius:9px;margin-bottom:14px}.heroart canvas{height:100%;width:100%}.notice{padding:10px;border:1px dashed #b5986d;border-radius:7px;font-size:10px;line-height:1.6;color:#827253;background:#eaddbd;margin:10px 0}.slots{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin:12px 0}.slots button{width:29%;height:60px;border:2px dashed #b69c72;background:#e7d8b5;border-radius:8px;color:#7f7259;font-size:10px}.slots button.selected{border-style:solid;background:#cee0cb}.fishpick{display:flex;gap:6px;flex-wrap:wrap}.fishpick button{font-size:10px;padding:10px;background:#d6e8d5;border:1px solid #80a08b;border-radius:5px}.rarity{color:#a57b3a!important}input{width:100%;padding:13px;border:2px solid #b69a6d;background:#fff7e3;border-radius:7px;color:#5a4930;margin:8px 0;font-size:14px}#toast{position:absolute;z-index:50;bottom:170px;left:50%;transform:translateX(-50%);background:#073a4aee;color:#fff3cb;padding:12px 17px;border:1px solid #7ca99d;border-radius:10px;font-size:12px;text-align:center;min-width:200px;pointer-events:none;opacity:0;transition:opacity .2s}#toast.show{opacity:1}#fishingScene{position:absolute;inset:0;z-index:20;background:#60a367}#river{position:absolute;inset:0}.fishhead{position:absolute;top:max(20px,env(safe-area-inset-top));left:14px;right:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}.fishhead div{text-align:center;background:#f7eacbdb;border:1px solid #9c855c;padding:7px 13px;border-radius:8px}.fishhead small{display:block;font-size:8px;letter-spacing:2px;color:#588c84}.fishhead b{font-size:13px}.fishhead>span{background:#f7eacb;border:2px solid #9c855c;border-radius:6px;padding:8px;font-size:12px}.fishingBottom{position:absolute;bottom:max(28px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:70%}#reel{border:3px solid #e8f2c6;border-radius:10px;background:linear-gradient(#50cba3,#199b81);color:#fff9dc;padding:19px 12px;font-weight:bold;width:100%;box-shadow:0 5px #426c52;font-size:14px;touch-action:none}progress{width:100%;height:14px;margin-bottom:12px;accent-color:#f8d46d}#fishInstruction{position:absolute;bottom:147px;width:100%;text-align:center;color:#fcf5d6;text-shadow:1px 2px #2d7155;font-size:12px;font-weight:bold}#catchBar{position:absolute;right:25px;top:21%;height:47%;width:28px;background:#f5edcd;border:4px solid #9a8558;border-radius:8px;overflow:hidden}#safeBand{position:absolute;background:#72cf90aa;bottom:40%;height:27%;width:100%;border:1px solid #3ca977}#fishMarker{position:absolute;bottom:45%;left:1px;width:18px;height:14px;background:#cf8a4f;border:2px solid #fff0be;border-radius:5px}#hookMarker{position:absolute;left:0;bottom:50%;height:3px;background:#25666c;width:100%}#result{position:absolute;inset:0;z-index:30;background:#032e44bb;display:grid;place-items:center;padding:30px}#result .resultcard{background:#f8e8c4;border:3px solid #b7965e;border-radius:20px;padding:20px;text-align:center;width:100%;box-shadow:0 15px 70px #03263b}.resultcard h2{margin:8px;font-size:22px}.resultcard .art{height:175px;background:radial-gradient(#b3e1d2,#4d9ab2);border-radius:12px}.battle{height:275px;position:relative;background:linear-gradient(#9fd7da,#287b9c);border:2px solid #8eaa9a;border-radius:10px}.battle canvas{height:100%}.battleLabel{position:absolute;top:8px;left:10px;right:10px;display:flex;justify-content:space-between;font-size:10px;color:#fff7cf;text-shadow:1px 2px #23596c}.skillrow{display:flex;gap:8px}.skillrow button{flex:1;padding:17px 4px;border:2px solid #9a8052;border-radius:9px;color:#fff3cd;background:linear-gradient(#388dad,#1b567a);font-size:11px}.skillrow button:nth-child(2){background:linear-gradient(#be8963,#8f5a52)}.skillrow button:nth-child(3){background:linear-gradient(#8aad76,#4e7b66)}@media(min-width:600px){#game{box-shadow:0 0 100px #0d658766;border-left:1px solid #296a7e;border-right:1px solid #296a7e}}@media(max-height:700px){header{top:8px}.brand b{font-size:22px}.resources{top:76px;height:40px}.rail{top:136px;gap:8px}.rail span{height:30px;width:32px;font-size:22px}.rail button{font-size:8px}.pondbar{bottom:76px;height:58px}nav{height:65px}#location{bottom:147px}#modal{padding-top:48px;padding-bottom:73px}}
/* Keep portrait decoration canvases inside their thumbnail; never cover buttons. */
.card .art{overflow:hidden;min-height:0}.card .art canvas{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover}
