.icon { width:26px;height:26px;flex:none;vertical-align:middle; }
.in-game > .landing,.in-game > .topbar,.in-game > .footer,.in-game > .ocean { display:none; }
.game-root { height:100svh;min-height:100svh;display:flex;flex-direction:column;position:relative;isolation:isolate; }
.menu-canvas { position:fixed;inset:0;width:100%;height:100%;z-index:-1; }
.game-hud { flex:none;display:flex;justify-content:space-between;align-items:flex-start;padding:20px 24px;gap:15px;position:relative;z-index:2; }
.player-chip { display:flex;align-items:center;gap:12px;color:white;border:1px solid #66dbea75;background:#03384ecc;border-radius:18px;padding:7px 22px 7px 7px;min-width:244px;text-align:left;box-shadow:inset 0 2px #85e6e423,0 3px #0044584d; }
.player-chip img { width:68px;height:68px;border:3px solid #e5faf6;border-radius:50%;object-fit:cover;box-shadow:0 2px 0 #012d44; }
.player-chip strong { display:block;font-size:19px;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.player-chip small { color:#ffe298;display:block;font-size:11px;margin:3px 0; }
.level-line { display:flex;gap:10px;align-items:center;font-weight:bold;font-size:12px; }
progress { appearance:none;-webkit-appearance:none;border:0;border-radius:12px;overflow:hidden;height:10px;background:#00273e; }
progress::-webkit-progress-bar { background:#00273e; }
progress::-webkit-progress-value { background:linear-gradient(#25c7ff,#008ee3);border-radius:10px; }
progress::-moz-progress-bar { background:#14b6f5; }
.level-line progress { width:110px; }
.hud-right { display:flex;align-items:center;gap:10px; }
.wallet { display:flex;gap:11px;align-items:center;background:#033b54d9;border:1px solid #38bdd08c;border-radius:13px;padding:9px 15px;min-height:50px;font-size:20px;box-shadow:0 3px #004b5e66; }
.wallet .icon { width:32px;height:32px; }.coin-wallet .icon { color:#ffd159;fill:#d99318; }.diamond-wallet .icon { color:#b2f8ff;fill:#04adf6; }
.hud-button { background:#003e54c9;border:1px solid #66dbea55;border-radius:13px;width:50px;height:50px;display:grid;place-items:center;color:white; }.hud-button[hidden]{display:none;}
.game-menu { flex:1;min-height:0;position:relative; }
.game-nav { position:absolute;left:24px;top:14px;display:flex;flex-direction:column;gap:6px;background:#024056df;border:1px solid #6fdef13d;border-radius:20px;padding:10px 8px;box-shadow:0 5px 0 #00657d33; }
.game-nav button { background:none;border:0;border-radius:12px;color:#e7fcff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:12px 8px;min-width:86px;min-height:73px;font-size:12px;font-weight:bold; }
.game-nav button:hover { background:#088bb49c; }.game-nav .icon { width:34px;height:34px;stroke-width:1.8; }.game-nav button:nth-child(2) .icon {color:#ffd358;fill:#c9972033;}.game-nav button:nth-child(4) .icon{color:#ffce85;}.game-nav button:nth-child(5) .icon{color:#eabc72;}
.menu-brand { position:absolute;left:16%;top:clamp(65px,10vh,120px);text-align:center;max-width:42%; }
.menu-brand .logo h1 { font-size:clamp(50px,6vw,88px); }.menu-brand .logo {margin-top:0;}.menu-brand .logo>:is(img,.logo-mascot){width:140px;top:-86px;right:32px;}.menu-brand .hero-tags{font-size:12px;letter-spacing:1px;}.menu-brand .hero-message{font-size:25px;max-width:340px;margin-top:26px;text-shadow:0 2px #005a6e25;}
.ocean-note { position:absolute;right:25px;top:16px;width:300px;background:linear-gradient(130deg,#006f9bdd,#034161ed);border:1px solid #46d1f399;border-radius:18px;display:flex;gap:13px;padding:18px;box-shadow:0 5px #04617740; }.ocean-note .note-icon {align-self:center;color:#ffdf80;}.ocean-note .icon{width:42px;height:42px;}.ocean-note b{font-size:17px;}.ocean-note p{font-size:12px;line-height:1.6;margin:7px 0 0;color:#c3e9f6;}
.wood-sign { position:absolute;left:21px;bottom:30px;max-width:170px;padding:20px 14px;background:repeating-linear-gradient(0deg,#a9611930 0 2px,transparent 3px 28px),linear-gradient(115deg,#ffcf76,#d39141);border:4px solid #925825;border-radius:8px;color:#67391b;font-size:21px;line-height:1.3;font-weight:bold;font-style:italic;transform:rotate(-8deg);box-shadow:0 6px #07556140; }
.main-actions { position:absolute;bottom:52px;left:25%;right:16%;display:grid;grid-template-columns:1fr 1.5fr 1fr;align-items:end;gap:18px; }.main-actions button{border:3px solid #006695;border-radius:30px;padding:18px 12px 15px;background:linear-gradient(#08b5e9,#006aa8);color:white;box-shadow:inset 0 2px #76edff,0 7px #014565,0 13px 20px #00545f40;min-height:142px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;}.main-actions button:hover{translate:0 -4px;filter:brightness(1.08);}.main-actions button:active{translate:0 3px;}.main-actions .icon{width:56px;height:56px;color:#dffcff;filter:drop-shadow(0 3px #005985);}.main-actions strong{font-size:clamp(15px,1.55vw,22px);text-shadow:0 3px #06384f;white-space:nowrap;}.main-actions span{font-size:12px;color:#d2f4ff;}.main-actions .fish-action{border-color:#955521;background:repeating-linear-gradient(0deg,#9e511e1c 0 3px,transparent 3px 33px),linear-gradient(#fcb348,#d77a20);box-shadow:inset 0 3px #ffdb86,0 7px #774015,0 13px 20px #00545f40;min-height:158px;}.fish-action .icon{height:64px;width:64px;color:#fff6df;filter:drop-shadow(0 3px #713816);}.fish-action strong{text-shadow:0 3px #713816;font-size:clamp(19px,2vw,29px);}.fish-action span{color:#fff0d1;}.menu-credit{position:absolute;bottom:16px;right:26px;font-size:10px;letter-spacing:3px;color:#d3fff0b3;}
.game-toast {position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:5;background:#043b52;border:1px solid #b3edee;border-radius:13px;padding:15px 22px;text-align:center;max-width:90%;}.game-dialog,.confirm-dialog{color:#eafbff;background:linear-gradient(145deg,#075675,#023449);border:2px solid #55cbdf;border-radius:22px;box-shadow:0 22px 80px #00263577;padding:0;width:min(760px,94vw);max-height:90svh;overflow:auto;}.game-dialog::backdrop,.confirm-dialog::backdrop{background:#002c4687;}.game-dialog.wide-dialog{width:min(900px,94vw);}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:17px 25px;border-bottom:1px solid #77c5db4a;position:sticky;top:0;z-index:1;background:#06465eeF;}.dialog-head h2{margin:0;font-size:25px;}.close-button{display:grid;place-items:center;min-width:44px;min-height:44px;background:#09374f;border:1px solid #5393a8;border-radius:12px;color:white;}.dialog-body{padding:25px;}.dialog-notice{margin:17px 25px 0;background:#aa69212c;border:1px solid #cdaf69;border-radius:9px;padding:12px 15px;color:#ffdf9c;font-size:13px;line-height:1.5;}.dialog-notice.success{background:#1a856143;border-color:#4ed5a2;color:#b9ffce;}.profile-layout{display:grid;grid-template-columns:230px 1fr;gap:28px;}.profile-identity{text-align:center;border-right:1px solid #66b6c64a;padding-right:25px;}.portrait{width:135px;height:135px;border-radius:50%;border:4px solid #a5e4ec;object-fit:cover;}.profile-identity h3{margin:14px 0 7px;font-size:23px;overflow-wrap:anywhere;}.profile-identity p{font-size:14px;color:#9dcada;margin:0 0 17px;}.earned-title{display:inline-flex;gap:6px;align-items:center;color:#ffdf8c;background:#8761244d;border:1px solid #cba13e88;border-radius:30px;padding:7px 13px;font-size:12px;}.earned-title .icon{width:16px;height:16px;fill:#ffd368;}.profile-details h3{margin:5px 0 20px;color:#d7f9ff;font-size:18px;}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 15px;}.info-item span{display:block;font-size:11px;color:#9ec8d7;margin-bottom:7px;}.info-item strong{font-size:16px;overflow-wrap:anywhere;}.exp-card{margin-top:24px;background:#002d4166;border:1px solid #3790a36b;border-radius:12px;padding:16px;font-size:12px;}.exp-card b{float:right;color:#88deff;font-size:11px;}.exp-card progress{width:100%;margin:12px 0;}.exp-card small{display:block;color:#93c4d2;line-height:1.6;}.text-button{display:block;color:#a5e9ff;background:none;border:0;text-decoration:underline;text-underline-offset:3px;margin:12px auto 0;padding:8px;min-height:44px;font-size:13px;}.dialog-intro,.quiet-note{font-size:12px;color:#afd5e2;line-height:1.7;}.dialog-intro b{color:#ffdb81;float:right;}.title-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0;}.title-card{display:flex;align-items:center;flex-direction:column;gap:12px;background:#073d56;border:1px solid #4baac0;border-radius:16px;padding:23px 10px;color:#edfcff;}.title-card span{background:#ae7d234d;padding:14px;border-radius:50%;}.title-card .icon{color:#ffdc65;fill:#e4ab3299;width:33px;height:33px;}.title-card.selected{border:2px solid #62e6fa;box-shadow:inset 0 0 18px #24bbd026;}.title-card small{font-size:11px;color:#a2d8e7;}.settings-tabs{display:flex;gap:7px;background:#002a4077;border-radius:12px;padding:5px;margin-bottom:25px;}.settings-tabs button{flex:1;border:0;border-radius:8px;color:#c1dfec;background:none;font-weight:bold;}.settings-tabs button.active{background:linear-gradient(#11b7f2,#0086d2);color:white;box-shadow:inset 0 1px #64ddfa;}.settings-form{max-width:600px;margin:auto;}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}select{font:inherit;width:100%;display:block;background:#033347;color:#e1f6ff;border:1px solid #428397;border-radius:10px;min-height:47px;padding:10px 12px;margin-top:8px;}select:focus-visible{outline:2px solid #ffe184;outline-offset:2px;}.volume-row{margin:6px 0 22px;}.volume-row>label{font-size:13px;font-weight:bold;display:flex;justify-content:space-between;}.volume-row output{color:#8de4ff;}.volume-row>div{display:flex;align-items:center;gap:15px;margin-top:7px;}.volume-row input{flex:1;min-width:0;accent-color:#25caff;height:32px;}.preview-sound{width:44px;height:44px;display:grid;place-items:center;background:#006589;border:1px solid #318ca9;border-radius:10px;color:#d3f7ff;}.preview-sound .icon{width:22px;height:22px;}.settings-footer{display:flex;gap:15px;border-top:1px solid #5494aa66;padding-top:15px;margin-top:25px;}.settings-footer button{margin-top:0;}.danger{color:#ffc0ae;border-color:#a26e65;}.avatar-editor{display:flex;gap:25px;align-items:center;padding-bottom:22px;border-bottom:1px solid #4489a064;}.avatar-editor>img{width:112px;height:112px;border:3px solid #9adce8;border-radius:50%;object-fit:cover;}.avatar-editor h3{font-size:17px;margin:0 0 7px;}.avatar-editor p{font-size:12px;color:#b1d3df;line-height:1.5;}.avatar-editor>div{flex:1;min-width:0;}#avatar-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}#avatar-form .secondary{width:auto;margin:0;font-size:12px;}.upload-label{font-size:12px;color:#c9eaf4;}.upload-label input{display:block;margin-top:7px;max-width:100%;font-size:11px;min-height:30px;}.avatar-editor .text-button{margin:5px 0 0;}.account-fields,.security-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:20px;}.account-fields h3,.security-layout h3{font-size:16px;display:flex;justify-content:space-between;align-items:center;gap:7px;margin:5px 0 22px;}.account-fields form+form,.security-layout form+form{border-left:1px solid #5495ad55;padding-left:27px;}.free-badge{color:#baffc8;font-size:10px;background:#297e6540;border:1px solid #3eaa7f;border-radius:15px;padding:5px 9px;}.cost-badge{display:inline-flex;align-items:center;gap:4px;color:#a5eaff;font-size:12px;}.cost-badge .icon{width:20px;height:20px;fill:#1494dd;}.account-fields .quiet-note{display:block;margin-top:12px;}.confirm-dialog{padding:25px;width:min(440px,90vw);border-color:#efbb68;}.confirm-dialog h2{font-size:21px;margin:0 0 15px;color:#ffe2a0;}.confirm-dialog p{color:#bddfe9;font-size:14px;line-height:1.7;white-space:pre-line;}.confirm-dialog>div{display:flex;gap:13px;margin-top:24px;}.confirm-dialog .secondary{margin:0;}.confirm-dialog .primary{font-size:14px;}.codes-count{color:#7adefa;font-size:13px;}.recovery-result textarea{width:100%;font:13px/1.8 monospace;background:#002a3e;color:#d7ffe9;border:1px solid #65b4c3;border-radius:10px;padding:15px;resize:vertical;}.recovery-result p{font-size:14px;line-height:1.7;color:#ffdf99;}.coming-soon{text-align:center;padding:10px 30px 20px;}.coming-soon>.icon{width:80px;height:80px;color:#77d8e9;}.coming-soon h3{color:#ffe296;font-size:25px;}.coming-soon p{color:#c0dfe7;font-size:14px;line-height:1.8;}.coming-soon button{max-width:280px;margin:25px auto 0;}.connection-overlay{margin:0;border:0;width:100%;height:100%;max-width:none;max-height:none;color:inherit;position:fixed;inset:0;background:#002d47c9;display:grid;place-items:center;z-index:20;}.connection-overlay>div{text-align:center;border:1px solid #62d5e2;border-radius:20px;background:#06475d;padding:30px;max-width:90vw;}.connection-overlay .spinner{display:inline-block;}.connection-overlay h2{font-size:22px;}.connection-overlay p{font-size:13px;color:#bde4e9;}
@media(min-width:1800px){.menu-brand{left:22%;top:17vh;}.main-actions{left:29%;right:22%;bottom:8vh;}.game-nav{top:8vh;}.game-nav button{min-height:85px;}.ocean-note{right:4vw;}.menu-brand .hero-message{max-width:400px;}.game-hud{padding:25px 35px;}}
@media(max-width:1100px){.game-hud{padding:14px;}.player-chip{min-width:200px;}.player-chip img{width:54px;height:54px;}.player-chip strong{font-size:16px;}.wallet{font-size:16px;padding:8px 12px;}.game-nav{left:14px;top:15px;padding:7px 4px;}.game-nav button{min-width:69px;min-height:65px;padding:8px 5px;font-size:10px;}.game-nav .icon{width:28px;height:28px;}.menu-brand{left:17%;top:90px;}.menu-brand .logo h1{font-size:58px;}.menu-brand .logo>:is(img,.logo-mascot){width:108px;top:-66px;}.menu-brand .hero-message{font-size:20px;max-width:280px;}.menu-brand .hero-tags{font-size:10px;}.ocean-note{right:15px;width:250px;padding:13px;}.ocean-note b{font-size:14px;}.ocean-note p{font-size:11px;}.main-actions{left:22%;right:8%;gap:13px;bottom:40px;}.main-actions strong{font-size:16px;}.main-actions .fish-action strong{font-size:22px;}.wood-sign{display:none;}}
@media(max-height:650px) and (orientation:landscape){.game-hud{padding:10px 14px;}.player-chip img{width:46px;height:46px;}.player-chip{padding:5px 12px 5px 5px;}.player-chip strong{font-size:14px;}.player-chip small{font-size:10px;}.level-line{font-size:10px;}.hud-button{height:42px;min-height:42px;width:42px;}.wallet{min-height:42px;height:42px;}.wallet .icon{width:25px;height:25px;}.game-nav{top:2px;gap:0;padding:4px;}.game-nav button{min-height:43px;min-width:65px;padding:5px;gap:3px;font-size:9px;}.game-nav .icon{width:20px;height:20px;}.menu-brand{left:18%;top:37px;}.menu-brand .logo h1{font-size:45px;}.menu-brand .logo>:is(img,.logo-mascot){width:73px;top:-45px;}.menu-brand .logo-wave{font-size:44px;}.menu-brand .hero-tags{font-size:9px;margin-top:15px;}.menu-brand .hero-message{display:none;}.ocean-note{top:3px;width:226px;}.main-actions{left:29%;right:9%;bottom:28px;gap:12px;}.main-actions button{min-height:98px;padding:8px;border-radius:22px;}.main-actions .fish-action{min-height:108px;}.main-actions .icon{width:36px;height:36px;}.main-actions strong{font-size:12px;}.main-actions .fish-action strong{font-size:17px;}.main-actions span{font-size:10px;}.menu-credit{font-size:8px;bottom:7px;}.game-dialog{max-height:93svh;}.dialog-head{padding:10px 20px;}.dialog-head h2{font-size:20px;}}
@media(max-width:650px) and (orientation:portrait){.game-root{height:auto;min-height:100svh;}.game-hud{padding:14px 12px;align-items:flex-start;gap:8px;flex-wrap:wrap;}.player-chip{min-width:0;max-width:58%;padding:5px 9px 5px 5px;gap:7px;}.player-chip img{width:46px;height:46px;}.player-chip strong{font-size:13px;max-width:130px;}.player-chip small{font-size:9px;}.level-line{font-size:10px;gap:6px;}.level-line progress{width:63px;height:7px;}.hud-right{display:grid;grid-template-columns:auto auto;gap:6px;}.wallet{padding:5px 8px;gap:5px;min-height:32px;font-size:12px;border-radius:9px;}.wallet .icon{width:22px;height:22px;}.hud-button{width:44px;height:44px;min-height:44px;justify-self:end;border-radius:9px;}.hud-button .icon{width:21px;height:21px;}.game-menu{flex:none;min-height:790px;}.game-nav{position:relative;top:auto;left:auto;flex-direction:row;margin:0 12px;justify-content:space-around;gap:1px;border-radius:15px;padding:4px;}.game-nav button{min-width:0;width:16%;min-height:57px;padding:5px 2px;font-size:8px;gap:5px;}.game-nav .icon{width:24px;height:24px;}.menu-brand{position:relative;left:auto;top:auto;max-width:none;margin:95px auto 0;}.menu-brand .logo h1{font-size:56px;}.menu-brand .logo>:is(img,.logo-mascot){width:110px;top:-70px;}.menu-brand .hero-tags{font-size:10px;}.menu-brand .hero-message{font-size:19px;max-width:270px;}.ocean-note{position:relative;top:auto;right:auto;width:calc(100% - 54px);margin:30px auto 20px;}.ocean-note .note-icon .icon{width:30px;height:30px;}.ocean-note p{font-size:11px;}.main-actions{position:relative;left:auto;right:auto;bottom:auto;margin:28px 17px 0;gap:8px;grid-template-columns:1fr 1.25fr 1fr;}.main-actions button{border-radius:20px;min-height:108px;padding:10px 4px;}.main-actions .fish-action{min-height:124px;}.main-actions .icon{width:36px;height:36px;}.main-actions strong{font-size:10px;}.main-actions .fish-action strong{font-size:13px;}.main-actions span{font-size:9px;}.menu-credit{position:relative;display:block;text-align:center;bottom:auto;right:auto;margin:28px auto 0;}.dialog-body{padding:20px;}.dialog-head{padding:12px 16px;}.dialog-head h2{font-size:21px;}.profile-layout{grid-template-columns:1fr;gap:23px;}.profile-identity{border-right:0;border-bottom:1px solid #5495ad55;padding:0 0 20px;}.profile-identity .secondary{max-width:250px;margin:15px auto 0;}.portrait{width:100px;height:100px;}.profile-details h3{font-size:16px;}.info-grid{gap:20px;}.settings-grid,.account-fields,.security-layout{grid-template-columns:1fr;gap:16px;}.account-fields form+form,.security-layout form+form{border-left:0;border-top:1px solid #5495ad55;padding:23px 0 0;margin-top:8px;}.avatar-editor{gap:14px;align-items:flex-start;}.avatar-editor>img{width:70px;height:70px;}.avatar-editor h3{font-size:15px;}.avatar-editor p{font-size:11px;}#avatar-form{display:block;}#avatar-form .secondary{margin:8px 0;}.upload-label input{max-width:170px;}.settings-tabs{gap:2px;padding:3px;}.settings-tabs button{font-size:12px;}.title-grid{grid-template-columns:1fr 1fr;}.dialog-intro b{float:none;display:block;margin-top:7px;}.confirm-dialog>div{gap:8px;}.coming-soon{padding:10px 0;}.recovery-result textarea{font-size:11px;padding:10px;}}

@media(max-height:450px) and (orientation:landscape){.menu-brand .hero-tags{display:none;}}

.game-menu,.game-hud{user-select:none;-webkit-user-select:none;}

.upload-label input::file-selector-button{font:inherit;color:#daf6ff;background:#096889;border:1px solid #51aabe;border-radius:7px;padding:7px 9px;margin-right:8px;cursor:pointer;}
.map-dialog { width:min(1200px,95vw);max-width:1200px; }
.map-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.map-card { padding:0;overflow:hidden;border-radius:22px;background:#063e55;border:2px solid #39bad1;text-align:left;color:#fff;box-shadow:0 4px 0 #002c40; }
.map-card:not(:disabled):hover,.map-card:not(:disabled):focus-visible { border-color:#cafffb;box-shadow:0 0 16px #56ffff;transform:translateY(-2px); }
.map-card canvas { display:block;width:100%;aspect-ratio:1.75; }
.map-card>span { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px; }
.map-card strong { font-size:17px; }.map-card small { color:#9eeada;font-size:11px; }
.map-card.locked { filter:saturate(.55);opacity:.6; }
.exploring { overflow:hidden;height:100svh!important;min-height:0!important;touch-action:none; }
.exploring .game-menu { position:absolute;inset:0;min-height:0!important;pointer-events:none;overflow:hidden; }
.exploring .game-menu button,.joystick { pointer-events:auto; }
.explore-top { position:absolute;top:122px;left:24px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;max-width:65%; }
.explore-top strong { display:block;width:100%;font-size:18px;text-shadow:0 2px #003d50; }
.explore-top button { width:auto;background:#03455dcc;display:flex;gap:8px;align-items:center;margin:0;padding:10px 16px; }
.navigation-help { position:absolute;bottom:30px;left:50%;transform:translateX(-50%);font-size:12px;padding:12px 18px;border-radius:14px;background:#034052aa;text-align:center;max-width:45%; }
.save-state { display:block;color:#adebce;margin-top:6px; }
.joystick { position:absolute;width:160px;height:160px;bottom:32px;left:32px;border:5px solid #a8d9e4;border-radius:50%;background:#07455da8;box-shadow:0 0 0 8px #07476073,inset 0 0 0 5px #247b9c;touch-action:none;user-select:none; }
.joystick i { position:absolute;left:calc(50% - 30px);top:calc(50% - 30px);width:60px;height:60px;border:5px solid #c0f3ff;border-radius:50%;background:linear-gradient(#a5d9f3,#3d93c6);box-shadow:0 4px 0 #164b76;transform:translate(var(--jx,0px),var(--jy,0px)); }
.joystick span,.joystick b { position:absolute;left:calc(50% - 8px);color:#daf9ff; }.joystick span{top:8px}.joystick b{bottom:8px}
.cast-button { position:absolute;bottom:30px;right:30px;width:156px;height:156px;border-radius:50%;border:6px solid #bce4ef;background:linear-gradient(#079aca,#044460);box-shadow:0 0 0 8px #08547488,inset 0 0 0 4px #28badd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:white; }
.cast-button .icon{width:62px;height:62px}.cast-button strong{font-size:22px}.cast-button small{font-size:10px}
.rotate-overlay { display:none; }
@media(max-width:900px){.map-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-card>span{padding:9px;flex-direction:column;align-items:flex-start}.explore-top{top:94px;left:15px}.explore-top strong{font-size:14px}.joystick{width:116px;height:116px;left:22px;bottom:22px}.cast-button{width:120px;height:120px;right:20px;bottom:20px}.cast-button .icon{width:40px;height:40px}.navigation-help{bottom:14px;font-size:10px;padding:8px;max-width:42%}.exploring .game-hud{padding:10px 14px}.exploring .player-chip{min-width:0}.exploring .player-chip img{width:42px;height:42px}.exploring .player-chip strong{font-size:13px}}
@media(max-width:900px) and (orientation:portrait){.exploring .rotate-overlay{position:absolute;inset:0;background:#043c52ee;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:24px;padding:40px;pointer-events:auto;z-index:5}.exploring .game-hud{z-index:6}.map-grid{grid-template-columns:1fr 1fr}}
.fishing-panel { position:absolute;bottom:24px;left:50%;transform:translateX(-50%);width:min(410px,46vw);border:1px solid #55cddd77;border-radius:18px;padding:12px 18px;color:#f0fbff;background:#034359e8;text-align:center;box-shadow:0 4px 0 #002f4744; }
.fishing-message { font-size:13px;line-height:1.5; }.fishing-meters,.fishing-cancel { display:none; }
.fishing-loadout { display:flex;justify-content:center;gap:14px;font-size:11px;margin-top:9px;color:#adecf0;align-items:center; }.fishing-loadout .icon{width:16px;height:16px}
.is-active .fishing-cancel { display:inline-block;pointer-events:auto;margin:6px 0 0;min-height:28px;padding:3px;font-size:11px; }
.is-reeling .fishing-meters { display:block;margin:10px 0; }.fishing-meters label{display:block;text-align:left;font-size:11px;margin:8px 0}.fishing-meters strong{float:right}.fishing-meters progress{display:block;width:100%;height:14px;margin-top:5px}.fishing-meters small{font-size:10px;color:#c0edf1}
.line-tension::-webkit-progress-value{background:linear-gradient(90deg,#f9cf59,#ff9762)}.line-tension.danger::-webkit-progress-value{background:#ff5e67}.line-tension::-moz-progress-bar{background:#ffb24a}
.exploring .navigation-help { display:none; }.fishing-mode .joystick{opacity:.3;pointer-events:none}.bite-now{color:#ffe47d;font-weight:bold}.bite-button{box-shadow:0 0 22px #ffdd67,inset 0 0 0 4px #fbeabb!important}
.catch-result{text-align:center}.catch-art{background:radial-gradient(ellipse,#52d4e766,transparent 65%);padding:12px}.catch-art img{width:210px;height:130px;object-fit:contain;filter:drop-shadow(0 10px 8px #001e3888)}.catch-result h3{font-size:28px;margin:12px 0 4px}.catch-rarity{font-weight:bold;letter-spacing:2px;font-size:12px}.catch-rewards{display:flex;justify-content:center;gap:24px;padding:14px;color:#a6ffcd}.catch-result>small{display:block;color:#b0dfe9;line-height:1.6;max-width:380px;margin:0 auto 18px}.catch-list article{display:flex;gap:14px;align-items:center;border-bottom:1px solid #79cdda33;padding:14px 0}.catch-list img{width:70px;height:42px}.catch-list div{flex:1}.catch-list small{display:block;color:#acd9e5;margin-top:6px;font-size:11px}.catch-list>article>strong{color:#c5fca2;font-size:12px}
@media(max-width:900px){.fishing-panel{bottom:12px;padding:8px 12px;width:42vw}.fishing-message{font-size:10px}.fishing-loadout{font-size:9px;gap:7px;margin-top:4px}.fishing-meters label{font-size:10px;margin:5px 0}.fishing-meters progress{height:10px}.fishing-meters small{display:none}.is-active .fishing-cancel{font-size:10px;margin:0}.cast-button strong{font-size:18px}.catch-art img{height:100px}.explore-top{max-width:67%}.explore-top button{font-size:10px;padding:7px 10px}}
.game-dialog.storage-dialog {width:min(1380px,96vw);max-width:1380px}.storage-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}.storage-tabs button{border:1px solid #65bedb88;background:#1c647d;color:white;border-radius:18px;padding:8px 14px;min-height:38px;font-size:12px}.storage-tabs button.active{background:linear-gradient(#12b5f9,#007bdb);box-shadow:0 0 10px #41ddec;border-color:#c5f8ff}.storage-tools{display:flex;gap:12px;margin:12px 0 18px}.storage-tools input{flex:1;min-width:0}.storage-tools select{max-width:190px}.storage-tools input,.storage-tools select{border:1px solid #3b9fb4;border-radius:13px;padding:10px 14px;background:#043f55;color:white;font:inherit;font-size:12px}.storage-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px}.storage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.storage-card{position:relative;border:1px solid #389fae;border-radius:17px;background:linear-gradient(140deg,#126d7caa,#074159);overflow:hidden;min-width:0}.storage-card.selected{border:2px solid #c0fcff;box-shadow:0 0 12px #23cdf1}.storage-card[data-rarity=epic]{border-color:#ae69df}.storage-card[data-rarity=legendary]{border-color:#e4b447;background:linear-gradient(#80632699,#164e62)}.storage-card[data-rarity=mythic]{border-color:#fd6c79}.storage-card>input{position:absolute;z-index:2;right:8px;top:10px;width:19px;height:19px;accent-color:#1ccdf9;cursor:pointer}.item-open{border:0;background:none;color:white;width:100%;padding:12px;text-align:center;min-height:180px}.rarity-label{display:block;text-align:left;font-size:10px;color:#bee6f1;margin-bottom:4px}.item-art{position:relative;height:73px;display:grid;place-items:center;margin:6px 0}.item-art img{max-width:105px;width:100%;height:70px;object-fit:contain}.item-art .icon{width:54px;height:54px;color:#b5e1e6}.item-open>strong{display:block;font-size:13px;overflow-wrap:anywhere}.item-open>small{display:block;color:#c7e6ed;font-size:11px;margin-top:6px}.item-location{display:block;font-size:9px;color:#96d8db;margin-top:10px}.unknown img{filter:brightness(0);opacity:.3}.item-art>b,.detail-art>b{position:absolute;color:#87afc0;font-size:35px;top:12px;left:calc(50% - 10px)}.storage-detail{background:#023b50;border:1px solid #29aec7;border-radius:18px;padding:18px;align-self:start}.detail-art{position:relative;display:grid;place-items:center;height:110px;background:radial-gradient(ellipse,#289da960,transparent)}.detail-art img{max-width:170px;max-height:105px}.storage-detail h3{font-size:23px;margin:12px 0}.storage-detail p{font-size:12px;line-height:1.6}.storage-detail small{display:block;font-size:11px;line-height:1.6;color:#b2d7e2}.storage-detail .secondary{margin-top:14px;font-size:12px}.storage-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:11px}.storage-detail dd{margin:0;text-align:right;color:#b4f0f6}.storage-detail h4{font-size:12px;margin-bottom:0}.map-link{display:flex;align-items:center;gap:8px;text-align:left}.map-link .icon{width:19px;height:19px}.storage-pages{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:16px;font-size:11px}.storage-pages .secondary{width:40px;margin:0}.storage-empty{padding:30px;grid-column:1/-1;color:#afdae4;text-align:center}.storage-footer{padding:15px;background:#02374ae0;border-radius:16px;margin-top:18px;font-size:12px}.storage-footer progress{display:block;width:100%;margin:12px 0}.storage-footer>small{display:block;color:#abd6df;line-height:1.5;margin-top:10px}.capacity-line,.sale-actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.capacity-line{margin-bottom:12px}.storage-footer button{width:auto;margin:0;font-size:12px;min-height:36px}.sale-actions .primary{margin-left:auto}.habitat-map{outline:3px solid #ffe19b;outline-offset:3px}.confirm-message{white-space:pre-line;max-height:45vh;overflow:auto}
@media(max-width:1100px){.storage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.storage-layout{grid-template-columns:minmax(0,1fr) 240px}}
@media(max-width:700px){.storage-layout{grid-template-columns:1fr}.storage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.storage-tools{flex-wrap:wrap}.storage-tools input{flex-basis:100%}.storage-tools select{width:calc(50% - 6px);max-width:none}.storage-tabs{gap:6px}.storage-tabs button{font-size:10px;padding:6px 10px}.storage-detail{padding:15px}.item-open{min-height:175px}.sale-actions{gap:10px}.sale-actions .primary{margin-left:0}.capacity-line{gap:10px}}

@media(min-width:1000px){.storage-dialog .dialog-body{padding:18px 24px}.storage-tabs{margin-bottom:8px}.storage-tools{margin:8px 0 12px}.storage-tools select{margin-top:0}.storage-tools input,.storage-tools select{font-size:14px}.item-open{min-height:142px;padding:9px 12px}.item-art{height:54px;margin:3px 0}.item-art img{height:54px}.item-open>strong{font-size:16px}.item-open>small{font-size:12px;margin-top:3px}.item-location{font-size:11px;margin-top:5px}.storage-detail{font-size:14px}}
.game-dialog.shop-dialog{width:min(1420px,96vw);max-width:1420px}.shop-banner{display:flex;align-items:center;justify-content:space-between;border:2px solid #ddaa60;border-radius:17px;padding:16px 25px;margin-bottom:18px;background:repeating-linear-gradient(0deg,#9a57181a 0 3px,transparent 3px 32px),linear-gradient(110deg,#d79038,#a25c23);box-shadow:inset 0 2px #ffd38a;color:#fff7e4}.shop-banner span{font-size:11px;letter-spacing:2px}.shop-banner h3{font-size:clamp(20px,2vw,30px);margin:6px 0;text-shadow:0 2px #81431f}.shop-banner p{margin:0;font-size:13px}.shop-banner>.icon{width:76px;height:76px;margin-left:15px;color:#ffe7b1}.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-content:start}.shop-card{border:1px solid #30aac2;border-radius:17px;background:#064056;overflow:hidden;min-width:0;display:flex;flex-direction:column}.shop-card.upgrade-card{border-color:#d2a456}.shop-art{height:145px;background:radial-gradient(ellipse at 50% 85%,#1ebfe677,#085476);position:relative;display:grid;place-items:center}.upgrade-card .shop-art{background:radial-gradient(ellipse at 50% 85%,#c6a34599,#67582666)}.shop-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 3px #002c4677)}.shop-card-body{padding:14px;display:flex;flex:1;flex-direction:column}.shop-card h3{font-size:18px;margin:0 0 8px;color:#f5fcff}.shop-card p{font-size:12px;margin:6px 0;color:#b5dfe8}.shop-card small{color:#9dcede;font-size:11px;line-height:1.5}.shop-card .primary{font-size:12px;margin-top:10px}.shop-price{display:block;color:#ffe2a1;font-size:15px;margin-top:auto;padding-top:14px}.upgrade-level{font-size:19px!important;color:#ffdc96!important}.upgrade-level span{margin:0 10px}.shop-effect{line-height:1.6}.quantity-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;margin:8px 0;color:#bce7ef}.quantity-row input{width:72px;min-height:38px;padding:5px 8px;margin:0;background:#00324c;color:white;border:1px solid #4f93a8;border-radius:8px}.shop-loadout{align-self:start;padding:18px;border:1px solid #42bfd3;border-radius:17px;background:#023349}.shop-loadout h3{font-size:20px;margin:0 0 15px}.shop-loadout h4{font-size:14px;color:#95e8f7;margin:22px 0 12px}.equipped-gear{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.9}.equipped-gear img{width:80px;height:65px}.shop-loadout dl{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:11px;color:#bedeea}.shop-loadout dd{margin:0;color:#d4f6a8;font-weight:bold}.bait-choice{display:flex;align-items:center;gap:7px;border:1px solid #38869b77;border-radius:12px;padding:7px;margin:8px 0}.bait-choice.equipped{border-color:#78e5b8;background:#167d6644}.bait-choice img{width:42px;height:42px}.bait-choice>div{flex:1;min-width:0}.bait-choice strong{font-size:11px;display:block}.bait-choice small{font-size:10px;color:#9cc6d4;display:block;margin-top:5px}.bait-choice button{width:auto;min-height:35px;margin:0;padding:5px 8px;font-size:10px}.shop-note{font-size:12px;line-height:1.7;color:#acd1de;margin:17px 0 0}.promo-badge{position:absolute;top:10px;right:0;background:#ff626c;padding:6px 12px;color:#fff;font-size:12px;font-weight:bold;border-radius:10px 0 0 10px}.purchase-retry{border:1px solid #f7ce77;border-radius:12px;padding:16px;margin-top:15px;font-size:13px;background:#916a2522}.purchase-retry button{width:auto;min-width:200px}.shop-tabs button:disabled{opacity:.6}.shop-card button:disabled{opacity:.5;cursor:default}
@media(max-width:1100px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-layout{grid-template-columns:minmax(0,1fr) 250px}.shop-banner>.icon{width:55px;height:55px}}
@media(max-width:700px){.shop-layout{grid-template-columns:1fr}.shop-loadout{grid-row:2}.shop-grid{gap:10px}.shop-art{height:110px}.shop-card-body{padding:11px}.shop-card h3{font-size:15px}.shop-banner{padding:14px}.shop-banner p{font-size:11px}.shop-banner>.icon{display:none}.shop-dialog .dialog-body{padding:15px}.shop-card .primary{font-size:11px;padding:8px}.shop-price{font-size:13px}}

.shop-art{flex:0 0 145px;overflow:hidden}.shop-art img{height:130px;max-height:130px;width:100%;max-width:100%}@media(max-width:700px){.shop-art{flex-basis:110px}.shop-art img{height:100px;max-height:100px}}
.presence-hud{position:absolute;right:24px;top:216px;width:180px;padding:10px 12px;border:1px solid #61c8dc66;border-radius:13px;background:#034157e8;color:#daf4f6;pointer-events:auto;font-size:11px;z-index:2}.room-badge{display:block;font-size:12px;font-weight:bold;color:#ffe49a}.presence-roster summary{cursor:pointer;min-height:28px;line-height:28px;user-select:none}.presence-players{list-style:none;margin:6px 0;padding:0;max-height:130px;overflow:auto}.presence-players li{display:flex;align-items:center;gap:7px;padding:6px 0;overflow-wrap:anywhere;line-height:1.5}.angler-color{width:9px;height:9px;flex:0 0 9px;border-radius:50%;border:1px solid #def6ff}.presence-roster small{font-size:10px;line-height:1.6;color:#a6d5df}.presence-hud[data-status=offline] .room-badge,.presence-hud[data-status=expired] .room-badge{color:#ffc4a3}@media(max-width:900px){.presence-hud{left:20px;right:auto;top:186px;width:216px;padding:6px 10px;font-size:10px}.room-badge{font-size:10px}.presence-roster summary{min-height:24px;line-height:24px}.presence-players{max-height:85px}}

@media(max-width:900px) and (max-height:360px){.presence-hud{left:50%;right:auto;top:170px;transform:translateX(-50%)}}

.progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.progress-card{padding:20px;border:1px solid #248caf;border-radius:18px;background:linear-gradient(145deg,#08627b,#04334e);display:flex;flex-direction:column;gap:8px}.progress-card h3,.progress-card p{margin:0}.progress-card progress{width:100%;accent-color:#36d489}.progress-card button{margin-top:auto}.progress-card.claimed{border-color:#43cba1}.progress-reward{color:#ffe497}.progress-table{overflow:auto}.progress-table table{width:100%;border-collapse:collapse;min-width:550px}.progress-table th,.progress-table td{text-align:left;padding:12px;border-bottom:1px solid #207494}.progress-table tr.self{background:#147394}.progress-table tr:nth-child(-n+3){color:#ffe8a1}.game-nav{max-height:70vh;overflow-y:auto}

.custom-menu-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}.exploring .custom-menu-art{display:none}.live-event{position:absolute;right:3%;top:18%;width:250px;padding:18px;border-radius:20px;border:1px solid #66d7e2;background:#063c59ee}.live-event p{font-size:13px}@media(max-width:700px){.live-event{display:none}}
/* Phase 10: tactile ocean panels and restrained, accessible motion. */
.game-root button{transition:filter .18s,box-shadow .18s,transform .18s}
.game-root button:focus-visible{outline:3px solid #fff1a5;outline-offset:4px}
@media(hover:hover){.game-root button:not(:disabled):hover{filter:brightness(1.12)}.main-actions button:hover{transform:translateY(-5px)}.storage-card:hover,.shop-card:hover{box-shadow:0 5px 20px #001f4455}}
.game-root button:not(:disabled):active{transform:translateY(2px)}
.game-dialog{box-shadow:0 18px 60px #002f6099,inset 0 0 0 2px #80e9f033;background:radial-gradient(ellipse at 15% 0,#0e7997,#04334e 75%)}
.game-dialog[open]{animation:panel-arrive .2s ease-out}
.game-dialog::backdrop{background:#00283b73;backdrop-filter:blur(5px)}
.game-dialog .dialog-head{background:linear-gradient(100deg,#9a571e,#dd9848 45%,#ae6528);border-bottom:3px solid #713e24;box-shadow:inset 0 2px #ffd494,inset 0 -2px #edb665}
.game-dialog .dialog-head h2{color:#fff9e6;text-shadow:0 2px #633718;font-weight:900;letter-spacing:.02em}
.game-dialog .close-button{background:#6a3c2666;border-color:#ffe0a766}
.storage-card{background:radial-gradient(ellipse at 50% 15%,#16899d88,#064259 75%);box-shadow:inset 0 1px #8ae9eb33;transition:box-shadow .2s}
.storage-card[data-rarity=uncommon]{border-color:#41ca88;background:radial-gradient(ellipse at 50% 15%,#168f7688,#064259 75%)}
.storage-card[data-rarity=rare]{border-color:#38bbf3;background:radial-gradient(ellipse at 50% 15%,#168cce88,#064259 75%)}
.storage-card[data-rarity=epic]{border-color:#ad72ef;background:radial-gradient(ellipse at 50% 15%,#9450ba99,#163c65 75%)}
.storage-card[data-rarity=legendary]{border-color:#f7bf4a;background:radial-gradient(ellipse at 50% 15%,#c8913799,#574b35 75%)}
.storage-card[data-rarity=mythic]{border-color:#ff7aaa;background:radial-gradient(ellipse at 50% 15%,#d7479799,#573450 75%)}
.storage-card.selected{outline:2px solid #e3ffff;outline-offset:-3px;box-shadow:0 0 14px #64f9ff99,inset 0 0 14px #64f9ff55}
.item-art img,.detail-art img{filter:drop-shadow(0 7px 3px #00283b66)}
.rarity-label{border-radius:20px;background:#76aec455;padding:5px 10px}
.storage-detail{background:linear-gradient(160deg,#086487,#023149);border:1px solid #46c6e0;box-shadow:inset 0 0 0 4px #023b5488;border-radius:20px}
.detail-art{background:radial-gradient(ellipse,#20a5bd66,transparent 70%)}
.progress-table table{border-collapse:separate;border-spacing:0 5px}
.progress-table th{background:#0873a1;color:#e2faff}
.progress-table tbody tr{background:#033a55}
.progress-table tbody tr:nth-child(1){background:linear-gradient(90deg,#96782f99,#5c513c99)}
.progress-table tbody tr:nth-child(2){background:linear-gradient(90deg,#527d9299,#21425b99)}
.progress-table tbody tr:nth-child(3){background:linear-gradient(90deg,#94613399,#453e3d99)}
.progress-table tbody td:first-child{border-radius:12px 0 0 12px;font-size:20px;font-weight:900;color:#ffe6a0}
.progress-table tbody td:last-child{border-radius:0 12px 12px 0}
.map-card{box-shadow:0 6px 12px #00263b55,inset 0 1px #80faff55;transition:box-shadow .2s,transform .2s}
.map-card:not(:disabled):hover,.map-card:focus-visible{box-shadow:0 0 15px #42f7ff99;outline:3px solid #c5ffff}
.map-card.locked canvas{filter:saturate(.6) brightness(.65)}
.cast-button.has-bite{animation:bite-ring .8s ease-in-out infinite;box-shadow:0 0 0 4px #ffdd70,0 0 28px #ffc94799}
.catch-art{position:relative;background:radial-gradient(ellipse,#6cecff66,transparent 68%)}
.catch-result .catch-art img{animation:catch-arrive .6s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 12px 8px #002b4c88)}
.catch-rewards strong{border:1px solid #ffd98166;border-radius:14px;padding:10px;background:#16778566}
@keyframes panel-arrive{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes catch-arrive{from{opacity:0;transform:translateY(25px) scale(.65) rotate(-12deg)}to{opacity:1;transform:none}}
@keyframes bite-ring{50%{filter:brightness(1.25)}}
@media(prefers-reduced-motion:reduce){.game-root *,.game-root *::before,.game-root *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.game-dialog::backdrop{backdrop-filter:none}}
.game-root[data-quality=low] *{animation:none!important;transition:none!important}
.game-root[data-quality=low] .game-dialog::backdrop{backdrop-filter:none}
@media(min-width:701px) and (min-height:651px){.item-art{height:100px}.item-art img{max-width:210px;height:100px}.game-nav{max-height:calc(100svh - 285px);z-index:2}.game-nav button{min-height:60px;padding:8px}.game-nav .icon{width:28px;height:28px}}
@media(min-width:1101px) and (min-height:750px){.wood-sign{max-width:160px;bottom:20px;font-size:17px;padding:14px}}
@media(max-width:700px){.item-art img{max-width:150px}}
.custom-icon{object-fit:contain;flex-shrink:0}.category-icon{width:25px;height:25px;object-fit:contain;vertical-align:middle;margin-right:7px}.menu-brand .logo h1{overflow-wrap:anywhere}.menu-brand .logo h1 span,.menu-brand .logo h1 strong{max-width:100%}
/* Compact HUD and focused fishing layout. */
.game-root:not(.exploring) .game-menu :not(.logo):not(.logo *):not(.game-nav button>span):not(.main-actions strong),.game-hud :not(.tcg-menu-button small){text-shadow:none!important}
.game-hud{padding:14px 18px;gap:8px}.hud-right{gap:6px}.wallet{min-height:38px;padding:5px 9px;gap:6px;font-size:15px;border-radius:10px}.wallet .icon{width:24px;height:24px}.hud-button{width:40px;height:40px;border-radius:10px}.hud-button .icon{width:23px;height:23px}
.game-nav{left:auto;right:18px;top:0;flex-direction:row;gap:3px;padding:4px;border-radius:13px}.game-nav button{min-width:52px;width:auto;min-height:62px;padding:7px 5px;font-size:10px;gap:4px}.game-nav .icon{width:27px;height:27px}.game-nav button span{max-width:76px;transition:opacity .25s}.compact-menu-labels .game-nav button{min-height:44px}.compact-menu-labels .game-nav button span{display:none}
.ocean-note{top:78px;right:20px}.ocean-note[hidden]{display:none}.wood-sign{max-width:120px;padding:10px;border-width:3px;font-size:15px;bottom:27px}
.main-actions{left:50%;right:auto;transform:translateX(-50%);width:min(650px,70vw);bottom:30px;gap:12px}.main-actions button{min-height:105px;padding:12px 8px;border-radius:22px}.main-actions .fish-action{min-height:116px}.main-actions .icon,.fish-action .icon{width:40px;height:40px}.main-actions strong,.main-actions .fish-action strong{font-size:clamp(12px,1.3vw,19px);white-space:normal}
.exploring .player-chip{padding:9px 12px;min-width:170px;border-radius:12px}.exploring .player-chip strong{font-size:16px}.exploring .level-line{margin-top:4px}.exploring .presence-hud{top:82px;left:19px;right:auto;padding:0;width:auto;border:0;background:none;box-shadow:none;transform:none}.exploring .room-badge{font-size:12px}.map-information{position:absolute;left:204px;top:24px}
.cast-button{transition:opacity .22s;touch-action:none}.cast-button.moving-hidden{opacity:0;pointer-events:none!important}.fishing-panel{width:min(660px,calc(100vw - 400px));bottom:22px;padding:0;border:0;background:none;box-shadow:none;pointer-events:none}.fishing-panel button{pointer-events:auto}
.fishing-message{font-size:15px;font-weight:bold;margin-bottom:9px;text-shadow:none}.fishing-message:empty{display:none}.fishing-loadout{gap:9px;margin:12px 0 0}.loadout-slot{position:relative;width:62px;height:62px;background:linear-gradient(#075c73e8,#023345ed);border:1px solid #76dbe9;border-radius:12px;color:#e3fbff;box-shadow:inset 0 2px #9febed44,0 3px #002d40;display:grid;place-items:center;padding:5px}.loadout-slot img{width:40px;height:36px;object-fit:contain}.loadout-slot small{font-size:10px;line-height:1}.loadout-slot .icon{width:32px;height:32px}
.zone-game{display:none}.is-reeling .zone-game{display:block}.zone-track{position:relative;height:42px;border:3px solid #d4f9fa;border-radius:26px;background:#073b47;box-shadow:0 0 0 4px #00384e,inset 0 3px 8px #0006;overflow:visible}.zone-track:before,.zone-track:after{content:'';position:absolute;top:3px;bottom:3px;width:16%;background:linear-gradient(#ff8784,#ff3b4e);z-index:0}.zone-track:before{left:3px;border-radius:20px 0 0 20px}.zone-track:after{right:3px;border-radius:0 20px 20px 0}.green-zone{position:absolute;top:3px;bottom:3px;border-radius:18px;background:linear-gradient(#8dff70,#17d958);box-shadow:0 0 16px #4cff5288,inset 0 2px #d6ffb7;width:30%;left:35%;will-change:left}.zone-cursor{position:absolute;z-index:1;top:-7px;bottom:-7px;width:15px;left:50%;transform:translateX(-50%);border:2px solid #002536;border-radius:9px;background:#f4ffff;box-shadow:0 0 0 2px #dcffea;will-change:left}.zone-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 4px;font-size:12px}.zone-caption strong{font-size:15px}.zone-caption .fishing-cancel{margin:0;padding:0 5px;min-height:32px;font-weight:bold;color:#ddff66;text-decoration:none}.zone-caption .zone-status{display:flex;justify-content:space-between;gap:20px;border-radius:0 0 12px 12px;background:#024157c9;padding:7px 12px;flex:1}.zone-game.outside .zone-status{color:#ffcd93}.fishing-panel>.fishing-cancel{margin:2px auto;display:none}.fishing-panel.is-active:not(.is-reeling)>.fishing-cancel{display:block}.loadout-collection{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px}.loadout-collection article{padding:16px;border:1px solid #51bbc7;border-radius:15px;background:#023b50;text-align:center}.loadout-collection img{width:90px;height:80px;object-fit:contain}.loadout-collection small{display:block;margin:8px}.loadout-collection .secondary{font-size:12px}
@media(max-width:900px){.game-hud{padding:10px 12px}.hud-right{gap:4px}.wallet{min-height:34px;font-size:12px;padding:5px 7px}.wallet .icon{width:20px;height:20px}.hud-button{width:36px;height:36px}.game-nav{right:12px;left:auto;top:0;bottom:auto;width:auto;gap:1px}.game-nav button{width:auto;min-width:43px;min-height:55px;font-size:8px;padding:5px 3px}.game-nav .icon{width:24px;height:24px}.compact-menu-labels .game-nav button{min-height:40px}.main-actions{position:absolute;left:50%;right:auto;bottom:22px;margin:0;width:min(590px,76vw);gap:9px}.main-actions button{min-height:88px;padding:8px 6px}.main-actions .fish-action{min-height:96px}.main-actions strong,.main-actions .fish-action strong{font-size:12px}.main-actions .icon{width:33px;height:33px}.wood-sign{max-width:93px;font-size:12px;padding:8px;left:12px}.ocean-note{position:absolute;right:14px;top:65px;width:235px;margin:0;padding:12px}.exploring .player-chip{min-width:135px;padding:7px 10px}.exploring .player-chip strong{font-size:13px}.exploring .level-line progress{width:72px}.exploring .presence-hud{left:15px;top:69px;right:auto;width:auto;padding:0;transform:none}.map-information{left:164px;top:17px}.fishing-panel{bottom:13px;width:calc(100vw - 310px)}.fishing-message{font-size:12px;margin-bottom:8px}.zone-track{height:32px}.zone-caption{padding:4px 0;font-size:10px;gap:6px}.zone-caption strong{font-size:12px}.zone-caption .zone-status{gap:8px;padding:5px 8px}.zone-caption .fishing-cancel{font-size:11px}.loadout-slot{width:49px;height:49px;border-radius:10px}.loadout-slot img{width:32px;height:28px}.loadout-slot small{font-size:9px}.fishing-loadout{gap:7px;margin-top:6px}}
@media(max-width:700px) and (orientation:portrait){.game-root:not(.exploring){height:100svh;min-height:650px}.game-hud{flex-wrap:wrap}.hud-right{margin-left:auto}.game-nav{top:4px;right:12px}.menu-brand{position:absolute;left:50%;top:120px;transform:translateX(-50%);margin:0;width:90%;max-width:none}.menu-brand .hero-message{margin:18px auto;font-size:19px}.main-actions{width:94vw;bottom:35px}.wood-sign{display:none}.ocean-note{top:70px;right:12px;width:230px}.menu-credit{position:absolute;bottom:5px;margin:0;right:12px}.game-menu{min-height:480px}}
@media(max-height:450px) and (orientation:landscape){.menu-brand{left:10%;top:44px;max-width:48%}.menu-brand .logo h1{font-size:45px}.menu-brand .logo>:is(img,.logo-mascot){width:80px;top:-51px}.menu-brand .hero-message{font-size:15px;margin:12px auto}.main-actions{bottom:16px;width:55vw;left:52%}.main-actions button{min-height:66px}.main-actions .fish-action{min-height:74px}.main-actions .icon{width:26px;height:26px}.main-actions strong,.main-actions .fish-action strong{font-size:10px}.ocean-note{top:55px;width:225px}.wood-sign{bottom:20px;max-width:80px;font-size:10px}.fishing-panel{bottom:10px}.fishing-message{font-size:11px}.zone-track{height:28px}.joystick{width:102px;height:102px}.cast-button{width:102px;height:102px}.cast-button .icon{width:32px;height:32px}.cast-button strong{font-size:15px}}

.zone-caption .fishing-cancel{border:0;background:none;font-size:14px;letter-spacing:1px;text-transform:uppercase}.zone-caption .fishing-cancel:hover{color:white}.zone-caption .fishing-cancel:focus-visible{outline:2px solid #ddff66}

@media(max-width:700px) and (orientation:portrait){.game-root:not(.exploring) .game-menu{flex:1;min-height:480px}.game-nav{position:absolute;margin:0;justify-content:flex-end}.game-root:not(.exploring) .hero-message{display:block;max-width:300px}.game-root:not(.exploring) .hud-right{display:flex;flex-wrap:wrap;max-width:48%;justify-content:flex-end}.game-root:not(.exploring) .hud-button{min-height:36px}.game-root:not(.exploring) .main-actions{bottom:38px}}

.wood-sign{display:block}@media(max-width:700px) and (orientation:portrait){.wood-sign{left:16px;bottom:160px;max-width:95px;font-size:12px;padding:8px}}
/* Font and composition refinements. Preserve button hit areas while removing their frames. */
.menu-brand .logo h1{font-family:ManiaTitle,sans-serif;font-weight:400}
.game-hud{pointer-events:none}.game-hud>*{pointer-events:auto}
.hud-button,.hud-button:hover,.hud-button:active{background:none!important;border:0!important;box-shadow:none!important}.hud-button .icon{width:29px;height:29px}.exploring .hud-button .icon{width:32px;height:32px}
.game-nav{top:-13px}.game-nav .icon{width:33px;height:33px}.game-nav button{position:relative}.game-nav button .icon{margin:-3px 0}
.main-actions button{position:relative;justify-content:flex-end}.main-actions .icon,.main-actions .fish-action .icon{position:absolute;width:88px;height:88px;top:-5px;left:50%;transform:translateX(-50%);pointer-events:none}.main-actions strong,.main-actions .fish-action strong{position:relative;z-index:1;font-family:ManiaAction,sans-serif;font-weight:400;font-size:23px;-webkit-text-stroke:2px #071d25;paint-order:stroke fill;line-height:1.1}
.exploring .room-badge{font-size:10px;opacity:.5}.exploring .presence-hud{top:76px}.map-information{left:193px;top:22px;z-index:3;width:30px;height:30px}.map-information .icon{width:19px!important;height:19px!important}
.fishing-panel{width:min(470px,calc(100vw - 400px))}.zone-track{height:27px;border-width:2px;box-shadow:0 0 0 3px #00384e,inset 0 2px 5px #0006}.zone-cursor{width:12px;top:-5px;bottom:-5px}.fishing-message{font-size:12px}.zone-caption{font-size:11px;padding:4px 2px}.zone-caption strong{font-size:12px}.zone-caption .fishing-cancel{font-size:11px}.zone-caption .zone-status{padding:5px 10px}
.catch-dialog{width:min(420px,92vw)!important;max-height:94svh}.catch-dialog .dialog-head{padding:10px 15px}.catch-dialog .dialog-head h2{font-size:19px}.catch-dialog .dialog-body{padding:10px 18px 15px}.catch-dialog .catch-art{margin:0}.catch-dialog .catch-art img{height:85px;max-width:160px}.catch-dialog .catch-result h3{font-size:21px;margin:5px 0}.catch-dialog .catch-result p{font-size:12px;margin:6px 0}.catch-dialog .catch-result small{font-size:10px}.catch-dialog .catch-rarity{font-size:10px;letter-spacing:1px}.catch-dialog .catch-rewards{gap:8px;margin:7px 0}.catch-dialog .catch-rewards strong{font-size:12px;padding:7px 10px}.catch-actions{display:flex;align-items:stretch;gap:9px;margin-top:12px}.catch-actions .primary{margin:0;flex:1;padding:10px;font-size:13px;min-height:42px}.catch-actions .catch-inventory{width:44px;min-width:44px;margin:0;padding:8px;display:grid;place-items:center}.catch-actions .icon{width:23px;height:23px}
@media(max-width:900px){.game-nav{top:-9px}.game-nav .icon{width:29px;height:29px}.main-actions .icon,.main-actions .fish-action .icon{width:70px;height:70px;top:-3px}.main-actions strong,.main-actions .fish-action strong{font-size:17px;-webkit-text-stroke:1.5px #071d25}.exploring .presence-hud{top:63px}.exploring .room-badge{font-size:9px}.map-information{left:151px;top:17px}.fishing-panel{width:min(390px,calc(100vw - 310px))}.zone-track{height:23px}.fishing-message{font-size:10px}.zone-caption{font-size:9px}.zone-caption strong{font-size:11px}.zone-caption .fishing-cancel{font-size:10px}}
@media(max-height:450px) and (orientation:landscape){.main-actions .icon,.main-actions .fish-action .icon{width:58px;height:58px;top:-6px}.main-actions strong,.main-actions .fish-action strong{font-size:15px}.catch-dialog{width:min(460px,92vw)!important}.catch-dialog .dialog-head{padding:5px 12px}.catch-dialog .dialog-head h2{font-size:16px}.catch-dialog .close-button{min-height:30px;min-width:30px}.catch-dialog .dialog-body{padding:5px 14px 9px}.catch-dialog .catch-art img{height:49px}.catch-dialog .catch-result h3{font-size:18px;margin:2px}.catch-dialog .catch-result p{margin:3px 0;font-size:11px}.catch-dialog .catch-rewards{margin:4px 0}.catch-dialog .catch-rewards strong{padding:3px 7px}.catch-dialog .catch-result>small{display:none}.catch-actions{margin-top:7px}.catch-actions .primary{min-height:36px;padding:6px}.catch-actions .catch-inventory{min-height:36px;padding:5px}}
@media(max-width:700px) and (orientation:portrait){.game-nav{top:-6px}.main-actions strong,.main-actions .fish-action strong{font-size:15px}.main-actions .icon,.main-actions .fish-action .icon{width:74px;height:74px}}

.settings-footer [data-action=full]{background:none;border:0;box-shadow:none;flex:none;width:44px;min-width:44px;padding:8px}
/* September refinement: compact HUD, larger navigation, centered action art. */
.menu-brand .logo h1{letter-spacing:.5px}
.game-nav .icon{width:42px;height:42px}.game-nav button{min-width:62px}.compact-menu-labels .game-nav button{min-height:52px}
.main-actions{width:min(600px,66vw)}.main-actions .icon,.main-actions .fish-action .icon{top:50%;transform:translate(-50%,-50%)}
.main-actions strong,.main-actions .fish-action strong{font-size:25px;-webkit-text-stroke:2.7px #000}
.game-root .wallet{height:auto;min-height:28px;padding:3px 7px;gap:4px;font-size:13px}.game-root .wallet .icon{width:19px;height:19px}
.game-root [data-action=full] .icon,.game-root [data-action=settings] .icon{width:25px;height:25px}
.exploring .presence-hud{left:27px}
.fishing-panel{width:min(380px,calc(100vw - 400px))}.zone-track{height:21px}.zone-cursor{width:10px;top:-4px;bottom:-4px}
.cast-button.is-waiting{background:radial-gradient(circle at 40% 30%,#f66c60,#bc2437 65%,#6f172b);border-color:#ffb8aa;box-shadow:0 0 0 5px #641b35,0 6px 18px #001e3b66}
.fishing-panel.is-active:not(.is-reeling)>.fishing-cancel{display:none}
.joystick span{position:absolute;font-size:10px;line-height:1;width:12px;height:12px;z-index:2;pointer-events:none}
.joystick .pad-up{top:-5px;bottom:auto;left:50%;right:auto;transform:translateX(-50%)}
.joystick .pad-down{bottom:-5px;top:auto;left:50%;right:auto;transform:translateX(-50%)}
.joystick .pad-left{left:-5px;right:auto;top:50%;bottom:auto;transform:translateY(-50%)}
.joystick .pad-right{right:-5px;left:auto;top:50%;bottom:auto;transform:translateY(-50%)}
@media(max-width:900px){.game-nav .icon{width:37px;height:37px}.game-nav button{min-width:52px}.compact-menu-labels .game-nav button{min-height:48px}.main-actions{width:min(545px,72vw)}.main-actions strong,.main-actions .fish-action strong{font-size:19px;-webkit-text-stroke:2.2px #000}.game-root .wallet{min-height:25px;padding:2px 6px;font-size:11px}.game-root .wallet .icon{width:17px;height:17px}.game-root [data-action=full] .icon,.game-root [data-action=settings] .icon{width:23px;height:23px}.exploring .presence-hud{left:23px}.fishing-panel{width:min(320px,calc(100vw - 310px))}.zone-track{height:18px}}
@media(max-height:450px) and (orientation:landscape){.main-actions{width:52vw}.main-actions strong,.main-actions .fish-action strong{font-size:17px}}
@media(max-width:700px) and (orientation:portrait){.main-actions{width:90vw}.main-actions strong,.main-actions .fish-action strong{font-size:17px}}
/* Separate desktop/mobile navigation and focused map controls. */
.game-nav{background:transparent;border-color:transparent;box-shadow:none;top:35px;right:24px;flex-direction:column;max-height:none;gap:6px}.game-nav button{background:transparent;border-color:transparent;box-shadow:none}.game-nav button .icon{transition:transform .16s}.game-nav button:hover .icon,.game-nav button:active .icon{transform:scale(1.12)}
.main-actions strong{translate:0 5px}.menu-brand .logo{translate:0 12px}
.game-root .ocean-note{position:fixed;top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(360px,86vw);z-index:16;margin:0}
.exploring .game-toast{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);z-index:40}
.exploring .room-badge{opacity:.85}
.zone-caption{padding-top:0;gap:7px}.zone-caption .zone-status{flex:0 1 220px;padding:5px 9px}.zone-track{margin-bottom:0}.zone-caption .fishing-cancel{min-height:24px}
.loadout-circle{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:50%;border:1px solid #76dbe9;background:linear-gradient(#075c73e8,#023345ed);color:#e3fbff;box-shadow:inset 0 2px #9febed44,0 3px #002d40;padding:8px}.loadout-circle .icon{width:28px;height:28px}.fishing-loadout{align-items:center}
.play-rotate-overlay{display:none}
@media(max-width:900px){.game-nav{display:grid;grid-template-columns:repeat(3,52px);right:12px;top:0;gap:5px}.game-nav button{min-height:44px;padding:5px}.menu-brand .logo{translate:0 9px}.loadout-circle{width:38px;height:38px;padding:7px}.loadout-circle .icon{width:23px;height:23px}.zone-caption .zone-status{flex-basis:185px}}
@media(max-width:900px) and (orientation:portrait){.game-root .play-rotate-overlay{display:flex;position:fixed;inset:0;z-index:150;background:#022f46f7;align-items:center;justify-content:center;text-align:center;padding:35px;color:#f3fbff;font-weight:bold;font-size:20px}.game-root .rotate-overlay{display:none}}
.zone-caption{position:relative;justify-content:center}.zone-caption .zone-status{flex:0 1 220px;transform:translateX(-4px)}.zone-caption .fishing-cancel{position:absolute;right:100%;white-space:nowrap;margin-right:8px}
.map-categories{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.map-categories button{padding:9px 18px;border:1px solid #55b9d4;border-radius:12px;background:#064664;color:white}.map-categories .active{background:#009ee6}.player-dying .joystick,.player-dying .cast-button,.player-dying .fishing-panel{visibility:hidden;pointer-events:none}

/* Menu, map browser and collection refinement. */
.logo-mascot{overflow:visible}.logo-mascot [data-logo-pupil]{transition:transform 2.2s ease-in-out}
.game-hud>.hud-quest{margin-right:auto;align-self:center;background:none;border:0;box-shadow:none;padding:4px}.hud-quest .icon{width:42px;height:42px;color:#ffd451;filter:drop-shadow(0 2px 2px #002836)}.hud-quest.all-claimed .icon{filter:grayscale(1);opacity:.5}
.game-root .game-nav{display:flex;flex-direction:column;gap:7px;right:22px;top:8px}.game-root .game-nav button{min-width:60px;min-height:52px}.game-root .game-nav .icon{width:42px;height:42px}
.main-actions .fish-action .icon{width:78%;height:60px;max-width:none;aspect-ratio:auto;object-fit:fill}
.settings-actions{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin-top:18px}.settings-actions button{width:100%;margin:0}.settings-actions button:disabled,#avatar-form button:disabled{opacity:.4;cursor:default}
.avatar-editor>img{object-fit:cover;border-radius:50%}.avatar-crop-dialog{width:min(420px,94vw);max-height:96svh;overflow:auto;border:2px solid #4fcae1;border-radius:22px;background:#053f55;color:white;padding:20px}.avatar-crop-dialog::backdrop{background:#001421bb}.avatar-crop-dialog h2{margin:0 0 10px;font-size:22px}.avatar-crop-dialog p{font-size:13px;color:#c3edf5}.avatar-crop-dialog canvas{display:block;width:min(100%,320px);height:auto;margin:auto;touch-action:none;cursor:grab;border-radius:12px}.avatar-crop-dialog label{display:block;margin-top:15px;font-size:13px}.avatar-crop-dialog input{display:block;width:100%;accent-color:#35d8eb}.avatar-crop-dialog>div{display:flex;gap:12px;margin-top:16px}.avatar-crop-dialog button{flex:1;margin:0}
.game-dialog:not(.map-dialog) .map-categories{display:none}.game-dialog.map-dialog{width:min(1280px,96vw);max-width:1280px}.map-dialog .dialog-head{gap:20px;align-items:center}.map-dialog .dialog-head h2{flex:none;max-width:27%;font-size:clamp(15px,2vw,24px)}.map-dialog .map-categories{display:flex;flex:1;flex-wrap:nowrap;min-width:0;overflow-x:auto;gap:8px;margin:0;padding:3px}.map-dialog .map-categories button{flex:0 0 100px;width:100px;min-height:38px;padding:8px 6px;font-size:12px;overflow-wrap:anywhere}.map-dialog .close-button{flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:9px;border-radius:50%;margin-left:0}.game-dialog.map-dialog .map-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.map-card>span{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.map-card>span>strong{flex:1;text-align:left}.map-rarities{display:flex;align-items:center;gap:7px}.map-rarities i{display:block;width:13px;height:13px;flex-shrink:0;border-radius:50%;background:var(--rarity-color);box-shadow:inset 0 2px 2px #ffffff55,0 0 7px color-mix(in srgb,var(--rarity-color) 45%,transparent);border:1px solid #ffffff77}
.game-dialog.collection-dialog.storage-dialog{width:min(1480px,97vw);max-width:1480px;border:2px solid #48c9e5;background:linear-gradient(130deg,#096c85ee,#034456f5);box-shadow:0 14px 60px #00253299,inset 0 1px #99ecff55}.collection-dialog.storage-dialog .dialog-body{padding:16px}.collection-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:16px}.collection-toolbar .storage-tabs{display:flex;flex:1;gap:7px;flex-wrap:wrap;margin:0}.collection-toolbar .storage-tools{flex:0 1 245px;margin:0}.collection-toolbar input{width:100%;font-size:13px;background:#02394eea;border:1px solid #2399b6;min-height:43px}.collection-dialog.storage-dialog [data-rarity]{--r:#9aafc0}.collection-dialog.storage-dialog [data-rarity=uncommon]{--r:#31d580}.collection-dialog.storage-dialog [data-rarity=rare]{--r:#13bafa}.collection-dialog.storage-dialog [data-rarity=epic]{--r:#bd6aff}.collection-dialog.storage-dialog [data-rarity=legendary]{--r:#ffc341}.collection-dialog.storage-dialog [data-rarity=mythic]{--r:#ff526c}.collection-toolbar button{display:flex;align-items:center;gap:6px;border-radius:23px;padding:8px 12px;min-height:40px;border-color:color-mix(in srgb,var(--r) 65%,#006881);background:linear-gradient(120deg,color-mix(in srgb,var(--r) 32%,#054359),#06475f);font-weight:bold;font-size:12px}.collection-toolbar button i{width:11px;height:11px;border-radius:50%;background:var(--r);box-shadow:inset 0 2px #ffffff66}.collection-toolbar button.active{background:linear-gradient(#12c3ff,#0084ed);border-color:#b0efff;box-shadow:0 0 12px #48d7ff55}.collection-toolbar small{font:inherit}
.collection-dialog.storage-dialog .storage-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.collection-list{min-width:0}.collection-dialog.storage-dialog .storage-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}.collection-dialog.storage-dialog .storage-card{border:1px solid color-mix(in srgb,var(--r) 65%,#03758a);border-radius:15px;background:radial-gradient(ellipse at 75% 0%,color-mix(in srgb,var(--r) 35%,transparent),transparent 75%),linear-gradient(135deg,#076b81,#033c53);box-shadow:inset 0 1px #83dfe32b}.collection-dialog.storage-dialog .storage-card.selected{border-color:#e5ffff;outline:2px solid #c9ffff;box-shadow:0 0 13px #5beeff,inset 0 0 13px #4acbff66}.collection-dialog.storage-dialog .item-open{min-height:158px;padding:10px;color:white}.collection-dialog.storage-dialog .rarity-label{display:inline-flex;align-items:center;gap:6px;border-radius:20px;background:color-mix(in srgb,var(--r) 62%,#125071);color:white;padding:5px 9px;font-size:11px;font-weight:bold;margin:0;float:left}.collection-dialog.storage-dialog .rarity-label:before{content:'';width:9px;height:9px;border-radius:50%;background:var(--r);box-shadow:inset 0 2px #fff8}.collection-dialog.storage-dialog .item-art{clear:both;height:77px;margin:4px 0}.collection-dialog.storage-dialog .item-art img{max-width:100%;width:100%;height:76px;filter:drop-shadow(0 7px 4px #00253970)}.collection-dialog.storage-dialog .item-open>strong{font-size:15px;line-height:1.15}.collection-dialog.storage-dialog .item-open>small{font-size:12px;color:#b8f4ff}.collection-dialog.storage-dialog .unknown{background:linear-gradient(135deg,#164658,#083247);border-color:#527e90}.collection-dialog.storage-dialog .unknown .rarity-label{visibility:hidden}.collection-dialog.storage-dialog .unknown img{filter:brightness(0);opacity:.35}.collection-dialog.storage-dialog .unknown .item-art>b{font-size:44px;top:8px}.collection-dialog.storage-dialog .storage-detail{padding:0;overflow:hidden;border:2px solid #32c2df;background:#03364bed;border-radius:20px;position:sticky;top:0;box-shadow:inset 0 0 0 4px #003146}.collection-hero{position:relative;padding:13px 13px 0;background:radial-gradient(circle at 13% 40%,#57e5f344 0 6px,transparent 7px),radial-gradient(circle at 20% 51%,#57e5f344 0 3px,transparent 4px),linear-gradient(135deg,#087c9c,#03506d)}.collection-hero .detail-art{clear:both;height:160px;background:radial-gradient(ellipse,#30b4cf44,transparent 70%)}.collection-hero .detail-art img{width:100%;max-width:265px;max-height:145px}.species-number{float:right;color:#b7e9f4;font-size:13px;font-weight:bold}.collection-description{padding:0 16px 18px}.collection-description h3{font-size:28px;margin:14px 0 4px}.collection-length{color:#80e1f2;font-size:18px}.collection-description p{font-size:14px;line-height:1.55}.collection-description dl{display:grid;grid-template-columns:1fr 1fr;gap:0;font-size:12px}.collection-description dt,.collection-description dd{padding:11px 0;border-bottom:1px solid #27708866;align-content:center}.collection-description dt{display:flex;align-items:center;gap:8px}.collection-description dt .icon{width:20px;height:20px;color:#ffc43d;flex-shrink:0}.collection-description dd{color:#d5f8ff}.collection-description .map-link{margin-top:12px;width:100%;justify-content:center;border-radius:15px;font-size:15px;text-align:center}.collection-description .map-link .icon{width:26px;height:26px}.collection-description .map-link small{font-size:10px;color:#d9faff}.collection-dialog.storage-dialog .storage-detail>.unknown,.collection-dialog.storage-dialog .storage-detail>h3,.collection-dialog.storage-dialog .storage-detail>p{margin:18px}.collection-dialog.storage-dialog .storage-footer{display:grid;grid-template-columns:1fr 210px;gap:18px;background:none;padding:0;font-size:12px}.collection-dialog.storage-dialog .storage-footer>div,.collection-dialog.storage-dialog .storage-footer>p{margin:0;padding:14px;border:1px solid #32a9bf;border-radius:16px;background:#023d51}.collection-meter{display:flex;align-items:center;gap:14px}.collection-meter progress{flex:1;min-width:0;height:13px;accent-color:#2dd968}.collection-meter b{white-space:nowrap;font-size:12px}.collection-dialog.storage-dialog .storage-footer>p{display:flex;align-items:center;gap:12px;color:#d6f9ff;font-size:11px;line-height:1.5}.collection-dialog.storage-dialog .storage-footer .icon{width:34px;height:34px;color:#ffcf48;flex-shrink:0}
@media(max-width:1100px){.collection-toolbar{align-items:flex-start}.collection-toolbar .storage-tools{flex-basis:180px}.collection-dialog.storage-dialog .storage-layout{grid-template-columns:minmax(0,1fr) 235px;gap:12px}.collection-dialog.storage-dialog .storage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.collection-dialog.storage-dialog .storage-footer{grid-template-columns:1fr}.collection-dialog.storage-dialog .storage-footer>p{display:none}.collection-description{padding:0 12px 14px}.collection-description h3{font-size:23px}.collection-hero .detail-art{height:125px}}
@media(max-width:900px){.game-root .game-nav{right:10px;gap:2px;top:0}.game-root .game-nav button{min-height:40px;padding:4px;min-width:48px}.game-root .game-nav .icon{width:32px;height:32px}.game-hud>.hud-quest{margin-left:0;padding:0}.hud-quest .icon{width:32px;height:32px}.main-actions .fish-action .icon{width:76%;height:42px}.map-dialog .dialog-head{gap:10px;padding:12px}.map-dialog .map-categories{gap:6px}.map-dialog .map-categories button{flex-basis:82px;width:82px;min-height:32px;font-size:11px}.game-dialog.map-dialog .map-grid{gap:10px}.map-card>span{padding:9px}.map-card>span>strong{font-size:13px}.map-rarities i{width:10px;height:10px}.map-rarities{gap:5px}.collection-dialog.storage-dialog .dialog-body{padding:12px}.collection-toolbar{gap:10px}.collection-toolbar button{padding:6px 10px;font-size:10px;min-height:31px}.collection-toolbar .storage-tools{flex-basis:155px}.collection-dialog.storage-dialog .item-open{min-height:140px;padding:8px}.collection-dialog.storage-dialog .item-art{height:62px}.collection-dialog.storage-dialog .item-art img{height:60px}.collection-dialog.storage-dialog .item-open>strong{font-size:12px}.collection-dialog.storage-dialog .rarity-label{font-size:9px;padding:4px 7px}.collection-description p{font-size:12px}.collection-description dl{font-size:10px}.collection-dialog.storage-dialog .storage-detail{position:static}.collection-hero .detail-art img{max-height:110px}}
@media(max-width:600px){.collection-toolbar{flex-direction:column}.collection-toolbar .storage-tools{flex:auto;width:100%}.collection-dialog.storage-dialog .storage-layout{grid-template-columns:1fr}.collection-dialog.storage-dialog .storage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.collection-dialog.storage-dialog .storage-detail{position:static}.map-dialog .dialog-head h2{max-width:22%;font-size:12px}.map-dialog .map-categories button{flex-basis:70px;width:70px}.map-dialog .close-button{flex-basis:32px;width:32px;height:32px;min-height:32px}.map-card>span>strong{font-size:11px}.map-card>span{padding:6px}.map-dialog .map-grid{gap:6px}}
@media(prefers-reduced-motion:reduce){.logo-mascot [data-logo-pupil]{transition:none}}

.collection-dialog.storage-dialog .dialog-head{background:linear-gradient(100deg,#075c76,#064052);border-bottom:1px solid #52cde077;padding:14px 22px}.collection-dialog.storage-dialog .dialog-head h2{color:#edfcff;font-size:25px}.collection-dialog.storage-dialog .map-link.primary{background:linear-gradient(#16c2fb,#007be8);border:1px solid #7ee9ff;color:white;box-shadow:inset 0 2px #ffffff44,0 3px #013252}.collection-dialog.storage-dialog progress::-webkit-progress-value{background:linear-gradient(#54ec65,#18bc4c)}.collection-dialog.storage-dialog progress::-moz-progress-bar{background:linear-gradient(#54ec65,#18bc4c)}.collection-dialog.storage-dialog .storage-pages button{min-height:32px;height:32px;padding:4px}.collection-dialog.storage-dialog .storage-pages{margin-top:12px}.collection-dialog.storage-dialog .item-open{min-height:146px}.collection-dialog.storage-dialog .item-art,.collection-dialog.storage-dialog .item-art img{height:67px}.collection-dialog.storage-dialog .storage-footer{margin-top:12px}.collection-dialog.storage-dialog .storage-footer>div,.collection-dialog.storage-dialog .storage-footer>p{padding:11px}.avatar-crop-dialog canvas{width:min(320px,44svh,100%)}

/* Compact collection header and consistent map cards. */
.main-actions .fish-action .icon{height:100%;width:78%;object-fit:fill}
.collection-header-search{display:none}.game-dialog:not(.collection-dialog) .collection-header-search{display:none}
.collection-dialog.storage-dialog .dialog-head{padding:7px 18px;min-height:0;gap:12px}.collection-dialog.storage-dialog .dialog-head h2{font-size:21px;margin:0}.collection-dialog.storage-dialog .close-button{width:32px;height:32px;min-width:32px;min-height:32px;padding:6px}
.game-dialog.map-dialog{height:min(780px,90svh)}.map-dialog .dialog-body{flex:1;min-height:0}.map-dialog .close-button{border-radius:9px}
.game-dialog.map-dialog .map-card{position:relative}.game-dialog.map-dialog .map-card>span{display:flex;flex-flow:row nowrap;align-items:center;gap:6px}.game-dialog.map-dialog .map-card>span>strong{min-width:0;overflow-wrap:anywhere}.game-dialog.map-dialog .map-rarities{flex:none;flex-wrap:nowrap}.map-card .map-lock{position:absolute;top:35%;left:50%;transform:translate(-50%,-50%);width:40px;height:40px;color:rgb(188,188,188);filter:drop-shadow(0 2px 5px #001d35)}
/* Inventory body shares the collection palette; its header remains unchanged. */
.storage-dialog:not(.collection-dialog) .dialog-body{background:linear-gradient(130deg,#096c85ee,#034456f5)}
.storage-dialog:not(.collection-dialog) [data-rarity]{--r:#9aafc0}.storage-dialog:not(.collection-dialog) [data-rarity=uncommon]{--r:#31d580}.storage-dialog:not(.collection-dialog) [data-rarity=rare]{--r:#13bafa}.storage-dialog:not(.collection-dialog) [data-rarity=epic]{--r:#bd6aff}.storage-dialog:not(.collection-dialog) [data-rarity=legendary]{--r:#ffc341}.storage-dialog:not(.collection-dialog) [data-rarity=mythic]{--r:#ff526c}
.storage-dialog:not(.collection-dialog) .storage-card{border-radius:15px;border:1px solid color-mix(in srgb,var(--r) 65%,#03758a);background:radial-gradient(ellipse at 75% 0%,color-mix(in srgb,var(--r) 35%,transparent),transparent 75%),linear-gradient(135deg,#076b81,#033c53);box-shadow:inset 0 1px #83dfe32b}.storage-dialog:not(.collection-dialog) .storage-card.selected{border-color:#e5ffff;outline:2px solid #c9ffff;box-shadow:0 0 13px #5beeff}.storage-dialog:not(.collection-dialog) .rarity-label{border-radius:20px;background:color-mix(in srgb,var(--r) 62%,#125071);padding:5px 9px;color:white}.storage-dialog:not(.collection-dialog) .storage-detail{border:2px solid #32c2df;background:#03364bed;border-radius:20px}.storage-dialog:not(.collection-dialog) .detail-art{background:radial-gradient(ellipse,#30b4cf44,transparent 70%);border-radius:15px}.storage-dialog:not(.collection-dialog) .item-art img{filter:drop-shadow(0 7px 4px #00253970)}.storage-dialog:not(.collection-dialog) .storage-tabs button{border-radius:23px;background:linear-gradient(#076d87,#06475f)}.storage-dialog:not(.collection-dialog) .storage-tabs button.active{background:linear-gradient(#12c3ff,#0084ed);border-color:#b0efff}.storage-dialog:not(.collection-dialog) .storage-footer{border:1px solid #32a9bf;border-radius:16px;background:#023d51}
@media(max-width:900px){
 .collection-dialog.storage-dialog .dialog-head,.map-dialog .dialog-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;padding:6px 10px}
 .collection-dialog.storage-dialog .dialog-head h2,.map-dialog .dialog-head h2{grid-column:2;grid-row:1;max-width:none;text-align:center;font-size:16px;margin:0}
 .collection-dialog.storage-dialog .close-button,.map-dialog .close-button{grid-column:3;grid-row:1;justify-self:end;margin:0}
 .collection-dialog.storage-dialog .collection-header-search{display:block;grid-column:1;grid-row:1;min-width:0;margin:0}.collection-header-search input{width:100%;min-width:0;min-height:30px;height:30px;padding:4px 8px;font-size:12px;margin:0;background:#02394e;color:white;border:1px solid #2399b6;border-radius:10px}
 .collection-dialog .collection-toolbar .storage-tools{display:none}.collection-toolbar{margin-bottom:10px}
 .map-dialog .map-categories{grid-column:1;grid-row:1;width:100%;gap:4px;padding:0}.map-dialog .map-categories button{flex:0 0 65px;width:65px;font-size:10px;padding:4px 2px;min-height:30px}
 .map-card .map-lock{width:29px;height:29px}.game-root .game-nav{gap:1px}.game-root .game-nav button{min-height:36px}
}

/* Stable icon boxes and themed scrolling across fullscreen transitions. */
.logo-mascot [data-logo-pupil]{transition:transform .8s ease-in-out}
.game-root button:disabled,.admin-workspace button:disabled{cursor:default}
.game-root .close-button{flex-shrink:0;aspect-ratio:1;width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;max-height:36px;display:grid;place-items:center}.game-root .close-button .icon{width:22px;height:22px;aspect-ratio:1;flex:none}
.game-root .loadout-circle{flex:0 0 42px;width:42px;height:42px;min-width:42px;min-height:42px;max-width:42px;max-height:42px;aspect-ratio:1}.game-root .loadout-circle .icon{width:26px;height:26px;flex:none;aspect-ratio:1}
.game-root *{scrollbar-width:thin;scrollbar-color:#28b4c9 #033b50}.game-root ::-webkit-scrollbar{width:9px;height:9px}.game-root ::-webkit-scrollbar-track{background:#033b50;border-radius:8px}.game-root ::-webkit-scrollbar-thumb{background:linear-gradient(#4bd7df,#138ab0);border:2px solid #033b50;border-radius:8px}
.quantity-stepper{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0}.quantity-stepper button{width:36px;height:36px;min-height:36px;padding:4px;touch-action:none;user-select:none}.quantity-stepper output{font-weight:bold;font-size:18px;min-width:45px;text-align:center}.game-dialog:focus,.confirm-dialog:focus{outline:none}
.gadget-info{text-align:center}.gadget-info .icon{width:70px;height:70px;color:#ffcf42}.gadget-slot{color:#ffe46a;position:relative}.gadget-slot small{position:absolute;bottom:-14px;font-size:10px;white-space:nowrap}

@media(prefers-reduced-motion:reduce){.logo-mascot [data-logo-pupil]{transition:none}}

/* Revision 001: bounded popup surfaces, shared profile cosmetics, and touch controls. */
.ui-hidden{display:none!important}.fa-icon{display:inline-block;flex:none;background:currentColor;mask:center/contain no-repeat;-webkit-mask:center/contain no-repeat}.fa-minus{mask-image:url('../vendor/fontawesome/minus.svg');-webkit-mask-image:url('../vendor/fontawesome/minus.svg')}.fa-plus{mask-image:url('../vendor/fontawesome/plus.svg');-webkit-mask-image:url('../vendor/fontawesome/plus.svg')}.fa-close{color:#cf3801;mask-image:url('../vendor/fontawesome/circle-xmark.svg');-webkit-mask-image:url('../vendor/fontawesome/circle-xmark.svg')}.fa-bell{color:#ffb500;mask-image:url('../vendor/fontawesome/bell.svg');-webkit-mask-image:url('../vendor/fontawesome/bell.svg')}
.game-root dialog{box-sizing:border-box}.game-root .game-dialog[open]{display:flex;flex-direction:column;height:min(820px,92dvh);max-height:92dvh;overflow:hidden}.game-root .game-dialog.catch-dialog[open]{height:auto}.game-root .dialog-head{flex:none;position:relative;z-index:5}.game-root .dialog-head h2:focus,.game-root dialog [autofocus]:focus{outline:none;box-shadow:none}.game-root .dialog-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;box-sizing:border-box}.game-root .dialog-head .close-button{display:grid;place-items:center;padding:4px;width:34px;height:34px;min-width:34px;min-height:34px;aspect-ratio:1}.game-root .close-button .icon{width:26px;height:26px;transform:none}.game-root *::-webkit-scrollbar{width:7px;height:7px}.game-root *::-webkit-scrollbar-track{background:#023e50;border-radius:9px;margin-block:8px}.game-root *::-webkit-scrollbar-thumb{background:linear-gradient(#5be9e1,#098fa9);border:1px solid #085368;border-radius:9px}
.avatar-frame{--frame:#fff;display:inline-grid;position:relative;isolation:isolate;place-items:center;width:58px;height:58px;aspect-ratio:1;flex:none;border-radius:50%;padding:4px;overflow:hidden;box-sizing:border-box;background:#fff;vertical-align:middle}.avatar-frame:before{content:'';position:absolute;inset:-35%;background:var(--frame);z-index:-1}.game-root .avatar-frame>img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;border:0;border-radius:50%;margin:0;background:#064459}.frame-1{--frame:conic-gradient(#d8ffe0,#13a859,#7cffb1,#088141,#d8ffe0)}.frame-2{--frame:conic-gradient(#c7fbff,#0581ee,#49dfff,#003b9a,#c7fbff)}.frame-3,.frame-4,.frame-5{--frame:conic-gradient(#f2d9ff,#932fe2,#e28aff,#551caf,#f2d9ff)}.frame-6,.frame-7{--frame:conic-gradient(#fffac0,#d78600,#ffe762,#ae6700,#fffac0)}.frame-8{--frame:conic-gradient(#ffefb9,#f62a43,#ff8173,#8a0927,#ffefb9)}.frame-9{--frame:conic-gradient(#a545ef,#f5cf45,#ee2444,#ba62ff,#ffdf78,#a545ef)}.avatar-frame:is(.frame-4,.frame-5,.frame-6,.frame-7,.frame-8,.frame-9):after{content:'';pointer-events:none;position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 50% 4%,white 0 1px,transparent 3px),radial-gradient(circle at 7% 62%,#fffed0 0 1px,transparent 3px),radial-gradient(circle at 91% 76%,white 0 1px,transparent 3px)}.avatar-frame:is(.frame-5,.frame-7,.frame-8,.frame-9):before{animation:frame-turn 7s linear infinite}.avatar-frame:is(.frame-5,.frame-7,.frame-8,.frame-9):after{animation:frame-shimmer 2.8s ease-in-out infinite}.profile-portrait{width:110px;height:110px}.avatar-editor>.avatar-frame{width:90px;height:90px}.friend-bell{border:0;background:none;width:30px;min-height:30px;padding:3px;align-self:center;margin-right:auto}.friend-bell[hidden]{display:none}.friend-bell .icon{width:24px;height:24px}.game-hud .hud-right{margin-left:auto}@keyframes frame-turn{to{transform:rotate(360deg)}}@keyframes frame-shimmer{50%{opacity:.35}}
.game-root .shop-dialog .dialog-body{padding:0 0 15px}.shop-dialog .shop-banner{position:relative;isolation:isolate;border-radius:0;width:100%;box-sizing:border-box;margin:0 0 15px;overflow:hidden;min-height:105px;padding:16px 24px}.shop-banner-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:.7}.shop-dialog .shop-tabs,.shop-dialog .shop-layout{margin-left:18px;margin-right:18px}.game-root .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-content:start}.shop-card{min-width:0}.shop-card h3{overflow-wrap:anywhere}.quantity-stepper .icon{width:15px;height:15px}.quantity-stepper button{display:grid;place-items:center}.shop-card [data-shop-buy]{min-height:42px;white-space:normal}.shop-card [data-shop-buy]:disabled{opacity:.6}.shop-banner>div{position:relative}
.game-root .storage-dialog .dialog-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}.game-root .storage-dialog .dialog-head h2{grid-column:2;grid-row:1;text-align:center}.game-root .storage-dialog .dialog-head .close-button{grid-column:3;grid-row:1;justify-self:end}.game-root .storage-dialog .collection-header-search{display:block;grid-column:1;grid-row:1;margin:0;width:min(145px,100%)}.game-root .storage-dialog .collection-header-search input{width:100%;box-sizing:border-box;font:12px Arial,sans-serif}.game-root .storage-dialog .dialog-body [data-storage-search]{display:none}.storage-card{isolation:isolate}.game-root .storage-card>input[type=checkbox]{appearance:none;width:21px;height:21px;right:9px;top:9px;border:2px solid #97e5ef;border-radius:6px;background:#07465f;display:grid;place-items:center;z-index:2;box-shadow:0 2px 4px #001f33aa}.game-root .storage-card>input:checked{background:#13c6cb;border-color:#d5ffff}.game-root .storage-card>input:checked:after{content:'';width:9px;height:5px;border:solid #fff;border-width:0 0 2px 2px;transform:rotate(-45deg) translateY(-1px)}.item-quantity{display:block;margin-top:6px;color:#baf8f0;font-size:11px}.storage-dialog .storage-tools{position:relative;z-index:3;justify-content:flex-end}
.game-dropdown{position:relative;min-width:120px;max-width:230px;flex:1}.dropdown-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:8px 12px;border:1px solid #38a7bb;border-radius:10px;background:#06465f;color:#e1fcff;text-align:left;font:inherit;font-size:12px}.dropdown-toggle:after{content:'';border:solid #94e9f4;border-width:0 2px 2px 0;width:6px;height:6px;transform:rotate(45deg);margin-top:-4px}.dropdown-options{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:150px;overflow:auto;z-index:25;border:1px solid #4ed0df;border-radius:10px;padding:4px;background:#034053;box-shadow:0 8px 20px #001d35cc}.dropdown-options[hidden]{display:none}.dropdown-options button{display:block;width:100%;text-align:left;background:none;color:white;border:0;border-radius:6px;padding:9px;font:inherit;font-size:12px}.dropdown-options button:hover,.dropdown-options [aria-selected=true]{background:#0a91ad}.game-root select[hidden]{display:none!important}
.gadget-slot{position:relative;touch-action:none;user-select:none}.gadget-slot.cooldown>.icon{opacity:.3}.scanner-countdown{position:absolute;inset:0;display:grid;place-items:center;color:white;font-size:17px;font-weight:bold;text-shadow:0 2px 4px #002432;pointer-events:none}.scanner-countdown:empty{display:none}.analog-cancel{display:none;position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:62%;height:62%;border-radius:50%;border:2px solid #ffc5ad;background:radial-gradient(#e85030,#a72319);color:white;font-weight:bold;font-size:clamp(10px,1.5vw,17px);padding:0;min-height:0}.fishing-mode .analog-cancel{display:block}.fishing-mode .joystick{pointer-events:auto!important;opacity:1!important}.fishing-mode .joystick>i{visibility:hidden}.game-root .fishing-panel .fishing-cancel{display:none}.game-root .zone-caption{justify-content:center}.cast-button.is-waiting{opacity:.5}
.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.board-toolbar>.storage-tabs{margin:0;flex-wrap:nowrap}.board-toolbar>small{font-size:10px;color:#a9dbe6;max-width:320px;line-height:1.5}.leader-avatar{background:none;border:0;padding:0;margin-right:10px;float:left}.leader-avatar .avatar-frame{width:42px;height:42px;padding:3px}.progress-table tr[data-rank="1"]{background:linear-gradient(90deg,#85671baa,#293c50)}.progress-table tr[data-rank="2"]{background:linear-gradient(90deg,#748e9caa,#293c50)}.progress-table tr[data-rank="3"]{background:linear-gradient(90deg,#bdc8ce99,#526978aa);box-shadow:inset 0 1px #ecf6ff66,inset 0 -1px #ecf6ff44}.social-popover,.habitat-dialog{color:#e9ffff;border:1px solid #44ced9;background:linear-gradient(145deg,#08677d,#032e46);border-radius:20px;padding:22px;width:min(320px,88vw);max-height:80dvh;overflow:auto;box-shadow:0 18px 70px #00152dcc}.social-popover::backdrop,.habitat-dialog::backdrop{background:#00192b88}.social-popover{text-align:center}.social-popover .avatar-frame{width:80px;height:80px}.social-popover h3{margin:13px 0 6px}.social-popover p{font-size:13px;color:#a9e4ef}.social-popover .primary{margin-top:14px;min-height:38px}.rare-totals{display:flex;justify-content:center;gap:9px;margin:20px 0}.rare-totals span{min-width:48px;border-radius:10px;padding:8px;background:#963fde;box-shadow:inset 0 1px #ffffff55;color:white;font-weight:bold}.rare-totals [data-rarity=legendary]{background:#c18d17}.rare-totals [data-rarity=mythic]{background:#d83656}.friend-requests article{padding:13px 0;border-bottom:1px solid #398797}.friend-requests small{display:block;margin-top:5px}.friend-requests article>div{display:flex;gap:10px;align-items:center;margin-top:10px}.friend-requests button{flex:1;margin:0!important}.habitat-dialog h2{font-size:20px;margin:0 0 18px}.habitat-dialog>div{display:grid;gap:9px}
@media(max-width:1000px){.shop-dialog .shop-layout{grid-template-columns:1fr}.shop-dialog .shop-loadout{margin-top:14px}.game-root .shop-card-body{padding:9px}.game-root .shop-card h3{font-size:12px}.game-root .shop-card p,.game-root .shop-card small,.game-root .shop-card button{font-size:10px}.game-root .shop-art{height:85px}.game-root .shop-art img{height:75px}.game-root .shop-price{font-size:12px}.shop-dialog .shop-tabs,.shop-dialog .shop-layout{margin-left:10px;margin-right:10px}.shop-dialog .shop-banner{min-height:85px;padding:10px 15px}.shop-banner h3{font-size:17px}.shop-banner p{font-size:10px}.board-toolbar{gap:10px}.board-toolbar>small{font-size:8px;max-width:200px}.board-toolbar .storage-tabs button{padding:6px 9px;font-size:10px}.avatar-frame{width:44px;height:44px;padding:3px}.profile-portrait{width:90px;height:90px}.friend-bell{width:24px;padding:0}.friend-bell .icon{width:21px;height:21px}.game-root .storage-dialog .collection-header-search{width:min(130px,100%)}.game-root .storage-dialog .dialog-head{gap:8px}.leader-avatar .avatar-frame{width:34px;height:34px}.game-root .storage-dialog .collection-header-search input{font-size:11px;padding:4px 6px}.game-dropdown{min-width:100px}}
@media(prefers-reduced-motion:reduce){.avatar-frame:before,.avatar-frame:after{animation:none!important}}

.game-root .quantity-stepper{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0}.game-root .quantity-stepper button{border:1px solid #65d2e8;border-radius:10px;background:linear-gradient(#137b9c,#07516f);color:#e9fdff;width:34px;height:34px;min-height:34px;padding:8px;box-shadow:inset 0 1px #b6f2ff44,0 2px 4px #00324899;touch-action:none}.game-root .quantity-stepper button:hover:not(:disabled){background:#0e9fbe}.game-root .quantity-stepper button:disabled{opacity:.35;cursor:default}.game-root .quantity-stepper output{font-size:15px;font-weight:bold}.game-root .storage-dialog .collection-header-search input{height:30px;min-height:30px;padding:5px 9px;background:#05435a;color:#d9fbff;border:1px solid #67bfcf;border-radius:9px;outline-offset:2px}.game-root .storage-dialog .collection-header-search input::placeholder{color:#a3d1df}.game-root .storage-dialog .collection-header-search{max-width:145px}.game-root .game-dialog:not(.storage-dialog) .collection-header-search{display:none}

/* Revision 002 */
.game-root.cursor-idle,.game-root.cursor-idle *{cursor:none!important}.game-root img,.game-root svg{-webkit-touch-callout:none;user-select:none;-webkit-user-drag:none}.game-root .dialog-head .close-button{background:none!important;border:0!important;box-shadow:none!important;padding:0;border-radius:0}.game-root .close-button .fa-close{color:#fff}.game-root .close-button:hover{opacity:.8}
.collection-dialog .collection-toolbar{min-width:0}.game-root .collection-dialog .storage-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;min-width:0;gap:6px;scrollbar-width:thin;overscroll-behavior-x:contain}.collection-dialog .storage-tabs button{flex:none;white-space:nowrap}.game-root .storage-pages{display:flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap}.page-buttons{display:flex;gap:5px;align-items:center}.game-root .storage-pages .secondary{width:30px;height:30px;min-height:30px;padding:2px;border-radius:7px;font-size:12px}.game-root .storage-pages .active{background:#12a8ca;border-color:#d3ffff;box-shadow:0 0 6px #0cbdcf}.game-root .storage-pages>span{font-size:11px}
.inventory-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px;min-width:0;position:relative;z-index:4}.inventory-toolbar .storage-tabs{flex:1;min-width:0;display:flex;flex-wrap:nowrap;overflow-x:auto;margin:0;gap:6px}.inventory-toolbar .storage-tabs button{white-space:nowrap;flex:none}.inventory-toolbar .storage-tools{flex:none;display:flex;margin:0;gap:7px}.inventory-toolbar .game-dropdown{min-width:100px;max-width:155px}.game-root .inventory-toolbar [data-storage-search]{display:none}.inventory-toolbar .dropdown-options{z-index:30}
.game-root .catch-dialog{--catch:#29b1dd}.game-root .game-dialog.catch-dialog[open]{width:min(320px,78dvh,84vw)!important;height:min(320px,78dvh,84vw)!important;min-height:0;max-width:none;max-height:none;aspect-ratio:1;border:2px solid color-mix(in srgb,var(--catch) 65%,white);background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--catch) 75%,#062e4c),#052e46 90%);box-shadow:0 0 25px color-mix(in srgb,var(--catch) 30%,transparent),0 20px 65px #001c36b0;border-radius:19px;padding:0;overflow:hidden}.game-root .catch-dialog[data-catch-rarity=common]{--catch:#a6bacb}.game-root .catch-dialog[data-catch-rarity=uncommon]{--catch:#38c975}.game-root .catch-dialog[data-catch-rarity=rare]{--catch:#0aa7ed}.game-root .catch-dialog[data-catch-rarity=epic]{--catch:#a253ec}.game-root .catch-dialog[data-catch-rarity=legendary]{--catch:#efb832}.game-root .catch-dialog[data-catch-rarity=mythic]{--catch:#ed365a}.game-root .catch-dialog .dialog-head{display:flex;justify-content:center;padding:8px 10px 2px;min-height:0;border:0;background:none;box-shadow:none}.game-root .catch-dialog .dialog-head h2{margin:0;text-align:center;font-size:19px;color:white}.game-root .catch-dialog .close-button{display:none!important}.game-root .catch-dialog .dialog-body{display:flex;flex-direction:column;padding:2px 14px 12px;overflow:hidden;scrollbar-gutter:auto}.game-root .catch-result{display:flex;flex-direction:column;align-items:center;gap:5px;height:100%;min-height:0;padding:0;width:100%}.game-root .catch-result .catch-art{flex:1;min-height:30px;height:auto;width:100%;margin:0}.game-root .catch-art img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 6px 6px #001c3480)}.game-root .catch-result h3{margin:0;font-size:19px;line-height:1.12;max-width:100%;text-align:center;overflow-wrap:anywhere}.game-root .catch-result p{margin:0;font-size:11px;line-height:1.2}.game-root .catch-result .catch-rewards{margin:0;display:flex;justify-content:center;gap:8px;font-size:11px}.game-root .catch-result .catch-actions{display:flex;width:100%;gap:8px;margin:4px 0 0;flex:none}.game-root .catch-actions button{min-height:34px;height:34px;margin:0;padding:5px 9px;font-size:12px}.game-root .catch-actions .catch-inventory{width:38px;flex:none}.game-root .catch-actions .primary{flex:1}.game-root .catch-inventory .icon{width:22px;height:22px}
.game-root .item-art img{width:100%;max-width:100%;height:100%;max-height:100%;object-fit:contain}.game-root .shop-art img{width:95%;max-width:100%;height:95%;max-height:100%;object-fit:contain}.game-root .detail-art img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.game-root .loadout-collection article img{max-width:100%;object-fit:contain}.game-root .loadout-slot img{object-fit:contain;max-width:100%}
@media(max-width:900px){.game-root .game-dialog.catch-dialog[open]{width:min(280px,82dvh,84vw)!important;height:min(280px,82dvh,84vw)!important}.game-root .catch-dialog .dialog-head h2{font-size:16px}.game-root .catch-result h3{font-size:16px}.game-root .catch-result{gap:4px}.inventory-toolbar{gap:8px}.inventory-toolbar .game-dropdown{min-width:96px;width:96px}.inventory-toolbar .storage-tabs button{font-size:10px;padding:7px 9px}.inventory-toolbar .dropdown-toggle{font-size:10px;padding:6px}.game-root .storage-pages{gap:9px}.game-root .storage-pages .secondary{width:27px;height:27px;min-height:27px}}

.game-root .catch-dialog .catch-result .catch-art{padding:0;position:relative}.game-root .catch-dialog .catch-result .catch-art img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.game-root .catch-dialog .catch-result .catch-rewards{padding:4px 0}.game-root .catch-dialog .catch-result .catch-rewards strong{padding:3px 8px}

/* Revision 003: compact collection, inventory and cargo workflow. */
.logo-mascot [data-logo-pupil]{transition:transform .35s ease-in-out}
@media(prefers-reduced-motion:reduce){.logo-mascot [data-logo-pupil]{transition:none}}
.game-root .collection-toolbar .storage-tabs{display:flex;flex-wrap:nowrap;overflow:visible;gap:5px;width:100%;min-width:0}.game-root .collection-toolbar .storage-tabs button{flex:1 1 0;min-width:0;white-space:nowrap;padding:6px 3px;font-size:clamp(8px,1vw,12px);gap:3px}.game-root .collection-toolbar .storage-tabs button i{width:7px;height:7px;flex:none}.game-root .collection-toolbar .storage-tabs small{font-size:.85em}.game-root .collection-toolbar{width:100%;min-width:0}
.game-root .collection-dialog .storage-card .item-art{height:100px;position:relative}.game-root .collection-dialog .storage-card .item-art img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.game-root .collection-description>p{font-size:12px;line-height:1.45}.collection-description .icon-clock,.collection-description .icon-shrimp,.collection-description .icon-weight-hanging{color:#ffd43b}.icon-bucket{color:#cfcfcf}
.game-root .storage-dialog:not(.collection-dialog) .item-art img{transform:translateY(-4px)}.game-root .storage-dialog .dropdown-toggle,.game-root .storage-dialog .dropdown-options button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.game-root .storage-dialog:not(.collection-dialog) .storage-tabs button{border-radius:8px}.game-root .storage-pages [data-storage-page]{font-weight:900;font-size:22px;-webkit-text-stroke:.7px currentColor}
.inventory-sidebar{min-width:0;display:flex;flex-direction:column;gap:12px}.game-root .inventory-sidebar .storage-footer{display:block;padding:12px;margin:0;font-size:12px}.inventory-sidebar .storage-footer>strong{display:block;margin-bottom:9px}.game-root .inventory-sidebar .sale-actions{display:flex;gap:7px;flex-wrap:nowrap;justify-content:stretch}.inventory-sidebar .sale-actions button{flex:1;min-width:0;padding:7px 4px;font-size:11px}.inventory-sidebar hr{border:0;border-top:1px solid #57c1d366;margin:12px 0}.inventory-sidebar p{margin:0}.game-root .sale-actions .all-selected{color:#07cf00}.game-root .inventory-sidebar .storage-detail{position:static;min-width:0}
.cargo-bucket{position:relative}.game-root .cargo-bucket .icon{width:80%;height:80%;color:#cfcfcf}.game-root .cargo-bucket .cargo-count{position:absolute;top:52%;left:50%;transform:translate(-50%,-50%);font-size:10px;font-weight:900;color:#073346;text-shadow:0 1px 1px #fff;white-space:nowrap;pointer-events:none;background:none;padding:0;bottom:auto}
.cargo-dock{position:absolute;z-index:25;top:90px;left:50%;transform:translateX(-50%);width:min(420px,72vw);box-sizing:border-box;padding:13px 18px;border:1px solid #68e7f4;border-radius:13px;background:linear-gradient(#075875f5,#02394ef5);box-shadow:0 12px 30px #002a4166;text-align:center}.cargo-dock p{font-size:13px;margin:0 0 10px}.cargo-dock>div{display:flex;gap:8px;justify-content:center}.cargo-dock button{padding:8px 14px;min-height:32px;font-size:12px}.cargo-dock button:disabled{background:#697782;box-shadow:none;border-color:#86939b;color:#bfc6cb}.cargo-exit{width:min(460px,86vw);max-height:86dvh;overflow:auto}.cargo-exit p{font-size:14px;line-height:1.5}
.game-root .game-toast{position:fixed;inset:18px auto auto 50%;transform:translateX(-50%);margin:0;z-index:9999;width:max-content;max-width:min(550px,88vw);box-sizing:border-box;padding:13px 22px;border:1px solid #67d9ef;border-radius:13px;background:linear-gradient(#0e607e,#04364e);color:#f1fcff;box-shadow:0 10px 30px #001c3880;animation:toast-drop .22s ease-out;text-align:center;font-size:13px;pointer-events:none}.game-root .game-toast.success{border-color:#88efa6;background:linear-gradient(#167766,#074a47)}.game-toast::backdrop{display:none}@keyframes toast-drop{from{opacity:0;translate:0 -20px}to{opacity:1;translate:0 0}}
.game-root .shop-layout{display:block}.game-root .shop-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px}.game-root .shop-card{aspect-ratio:1;display:flex;flex-direction:column;overflow:hidden;height:auto;min-height:0}.game-root .shop-card .shop-art{height:28%;min-height:0;flex:none}.game-root .shop-card .shop-card-body{flex:1;min-height:0;overflow:auto;padding:7px;display:flex;flex-direction:column;gap:4px}.game-root .shop-card h3{font-size:13px;margin:0}.game-root .shop-card p,.game-root .shop-card small{font-size:10px;line-height:1.2;margin:0}.game-root .shop-card .shop-price{font-size:12px;margin:0}.game-root .shop-card [data-shop-buy]{font-size:10px;padding:5px;min-height:27px;margin:0}.game-root .shop-card .quantity-stepper{margin:0;min-height:25px}.game-root .shop-card .quantity-stepper button{min-height:23px;height:23px;width:27px;padding:3px}.game-root .shop-loadout{margin-top:14px}.game-root .leader-avatar{margin-left:-4px;margin-right:12px;flex-shrink:0}.game-root .leader-avatar img{width:40px;height:40px}.game-root .progress-card.in-progress progress::-webkit-progress-value{background:#ded300}.game-root .progress-card.in-progress progress::-moz-progress-bar{background:#ded300}
@media(max-width:900px){.game-root .collection-toolbar .storage-tabs{gap:3px}.game-root .collection-toolbar .storage-tabs button{font-size:8px;padding:5px 2px;gap:2px;min-height:27px}.game-root .collection-dialog .storage-card .item-art{height:88px}.game-root .collection-description>p{font-size:10px}.game-root .inventory-sidebar .storage-footer{padding:8px;font-size:10px}.inventory-sidebar .sale-actions button{font-size:9px;padding:5px 2px}.cargo-dock{top:72px;padding:10px;max-width:360px}.cargo-dock p{font-size:11px}.cargo-dock button{font-size:10px;min-height:27px;padding:6px 10px}.game-root .shop-grid{gap:7px}.game-root .shop-card h3{font-size:10px}.game-root .shop-card p,.game-root .shop-card small{font-size:8px}.game-root .shop-card .shop-price{font-size:10px}.game-root .shop-card [data-shop-buy]{font-size:8px;min-height:23px}.game-root .shop-card .shop-card-body{padding:4px;gap:3px}}

.upgrade-actions{display:flex;gap:4px;align-items:stretch}.game-root .upgrade-actions>button{min-height:27px;padding:3px 6px;font-weight:800}.upgrade-actions>[data-upgrade-step]{flex:0 0 26px}.upgrade-actions>[data-shop-buy]{flex:1;min-width:0}

.game-root .shop-card .shop-art{position:relative}.game-root .shop-card .shop-art img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.game-root .storage-card .item-art{position:relative;height:100px}.game-root .storage-card .item-art img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.game-root .shop-card .shop-price{padding-top:2px}.game-root .shop-card .upgrade-level{font-size:14px!important}.game-root .shop-card .upgrade-level span{margin:0 3px}.game-root .shop-card .upgrade-actions{margin-top:auto}.game-root .shop-card .shop-card-body>[data-shop-buy]{margin-top:auto}@media(max-width:900px){.game-root .collection-toolbar .storage-tabs button{font-size:clamp(6px,.95vw,9px)}.game-root .storage-card .item-art{height:88px}.game-root .shop-card .upgrade-level{font-size:10px!important}}

.game-root .shop-card .shop-art{height:40%}

/* Revision 004: stable artwork bounds, complete shop cards and unified cargo buttons. */
.game-root .storage-dialog .storage-card .item-art,.game-root .storage-dialog .storage-detail .detail-art{position:relative;display:block;overflow:hidden;isolation:isolate;flex:none;min-height:0;box-sizing:border-box}
.game-root .storage-dialog .storage-card .item-art{height:100px}
.game-root .storage-dialog .storage-detail .detail-art{height:160px;width:100%;margin:0;clear:both}
.game-root .storage-dialog .storage-card .item-art>img,.game-root .storage-dialog .storage-detail .detail-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;margin:0;box-sizing:border-box;object-fit:contain;object-position:center;transform:none;float:none}
.game-root .storage-dialog:not(.collection-dialog) .item-art img{transform:none}.game-root .storage-dialog:not(.collection-dialog) .item-art{translate:0 -3px}
.game-root .storage-dialog .item-art>img.art-trimmed,.game-root .storage-dialog .detail-art>img.art-trimmed{object-fit:fill}
.game-root .storage-dialog .item-art>b,.game-root .storage-dialog .detail-art>b{z-index:1}
.game-root .shop-grid{align-items:stretch}.game-root .shop-card{aspect-ratio:auto;height:auto;min-height:clamp(240px,24vw,325px);overflow:hidden}
.game-root .shop-card .shop-art{height:clamp(75px,8vw,115px);flex:0 0 clamp(75px,8vw,115px)}
.game-root .shop-card .shop-card-body{overflow:visible;min-height:auto;height:auto;flex:1 0 auto;gap:7px;padding:10px;box-sizing:border-box}
.game-root .shop-card .shop-card-body>*,.game-root .shop-card .upgrade-actions{flex-shrink:0}
.game-root .shop-card .upgrade-actions,.game-root .shop-card .shop-card-body>[data-shop-buy]{margin-top:auto;padding-top:0}
.game-root .shop-card [data-shop-buy]{white-space:normal;overflow-wrap:anywhere;min-height:34px;height:auto;line-height:1.25}
.game-root .shop-card .upgrade-actions{align-items:stretch}.game-root .shop-card .upgrade-actions>[data-upgrade-step]{height:auto;min-height:34px}
.game-root .cargo-dock>div,.game-root .cargo-exit>div{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.game-root .cargo-dock .cargo-action,.game-root .cargo-exit .cargo-action{--cargo-color:#168dcc;display:flex;align-items:center;justify-content:center;flex:0 0 120px;width:120px;min-width:120px;max-width:120px;height:40px;min-height:40px;max-height:40px;box-sizing:border-box;margin:0;padding:4px 8px;border:1px solid #c2ecff66;border-radius:8px;background:linear-gradient(color-mix(in srgb,var(--cargo-color) 88%,white),var(--cargo-color));box-shadow:inset 0 1px #fff3,0 3px #00283f99;font-family:inherit;font-size:12px;font-weight:700;line-height:1.15;letter-spacing:0;text-align:center;color:white;text-shadow:0 1px #00283f66;white-space:normal}
.game-root .cargo-action[data-cargo=later]{--cargo-color:#516878}.game-root .cargo-action[data-cargo=leave]{--cargo-color:#cb861f}.game-root .cargo-action[data-exit-mode=pay]{--cargo-color:#13856a}.game-root .cargo-action[data-exit-mode=discard]{--cargo-color:#ba424c}
.game-root .cargo-dock .cargo-action:disabled,.game-root .cargo-exit .cargo-action:disabled{--cargo-color:#6b7780;color:#d5dce0;opacity:.7}
.game-root .leader-player-cell{padding-left:4px}.leader-player{display:flex;align-items:center;gap:16px;min-width:0}.leader-player-label{min-width:0}.leader-player-label strong,.leader-player-label small{display:block}.leader-player-label strong{overflow-wrap:anywhere}.leader-player-label small{margin-top:4px}
.game-root .leader-player .leader-avatar{display:block;float:none;flex:0 0 46px;width:46px;height:46px;min-height:46px;min-width:46px;padding:0;margin:0;border:0;border-radius:50%;background:none;line-height:0;box-shadow:none}
.game-root .leader-player .leader-avatar .avatar-frame{display:block;position:relative;width:46px;height:46px;min-width:46px;padding:0;overflow:hidden;box-sizing:border-box}
.game-root .leader-player .leader-avatar .avatar-frame>img{position:absolute;inset:3px;display:block;width:calc(100% - 6px);height:calc(100% - 6px);max-width:none;max-height:none;object-fit:cover;object-position:center;margin:0;padding:0;border:0;border-radius:50%;float:none;transform:none}
@media(max-width:900px){.game-root .storage-dialog .storage-card .item-art{height:88px}.game-root .storage-dialog .storage-detail .detail-art{height:135px}.game-root .shop-card{min-height:235px}.game-root .shop-card .shop-art{height:75px;flex-basis:75px}.game-root .shop-card .shop-card-body{padding:6px;gap:6px}.game-root .shop-card [data-shop-buy]{min-height:32px;font-size:9px}.game-root .cargo-dock .cargo-action,.game-root .cargo-exit .cargo-action{width:100px;min-width:100px;max-width:100px;flex-basis:100px;height:36px;min-height:36px;max-height:36px;font-size:10px}.game-root .leader-player{gap:13px}.game-root .leader-player .leader-avatar,.game-root .leader-player .leader-avatar .avatar-frame{width:42px;height:42px;min-width:42px;min-height:42px;flex-basis:42px}}

/* Revision 005: loading gate, boat storage, dock and consistent tab corners. */
.asset-loading[open]{position:fixed;inset:0;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;color:white;background:#087083 center/cover no-repeat;z-index:2147483647;overflow:hidden}.asset-loading::backdrop{background:#053d56}.asset-loading-shade{position:absolute;inset:0;background:linear-gradient(transparent 35%,#001e36e6)}.asset-loading>section{position:absolute;bottom:7%;left:15%;width:70%;text-align:center}.asset-loading strong{display:block;font-size:clamp(18px,3vw,30px);margin-bottom:18px}.asset-loading progress{display:block;width:100%;height:22px;border:2px solid #acefff;border-radius:9px;overflow:hidden;background:#032f46}.asset-loading progress::-webkit-progress-bar{background:#032f46}.asset-loading progress::-webkit-progress-value{background:linear-gradient(90deg,#13d982,#aaff61);transition:width .2s}.asset-loading progress::-moz-progress-bar{background:#39ef84}.asset-loading b{display:block;margin-top:8px;font-size:21px}.asset-loading button{background:#10a8eb;color:white;padding:10px 28px;border:1px solid #b8f3ff;border-radius:8px}.asset-loading button[hidden]{display:none}
.game-root .storage-tabs button,.game-root .shop-tabs button,.game-root [data-shop-category]{border-radius:8px!important}.game-root .progress-card{display:flex;flex-direction:column}.game-root .progress-card h3{min-height:3.6em;line-height:1.2;margin-bottom:12px}.game-root .progress-card progress{flex:none;margin-top:auto}.game-root .progress-card .progress-reward{min-height:2.6em}.game-root .cargo-dock [data-cargo=store]{--cargo-color:#14ff4b;background:#14ff4b;color:#033d23;text-shadow:none}.game-root .cargo-dock [data-cargo=later]{--cargo-color:#19b2ff;background:#19b2ff}.game-root .cargo-bucket{position:relative;overflow:hidden;isolation:isolate;--cargo-fill:0%}.game-root .cargo-bucket .cargo-liquid{position:absolute;bottom:0;left:0;width:100%;height:var(--cargo-fill);border-top:2px solid #9fffbd;background:linear-gradient(#36ff75,#0c9b4f);transition:height .75s ease;z-index:0;pointer-events:none}.game-root .cargo-bucket .cargo-count{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;z-index:1;color:white;background:none;margin:0;padding:0;font-size:12px;font-weight:900;text-shadow:0 1px 2px #002513,1px 0 #002513,-1px 0 #002513;pointer-events:none}.game-root .boat-dialog .dialog-body{display:flex;flex-direction:column}.boat-tabs{flex:none}.boat-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:14px;min-height:min(510px,62dvh)}.boat-layout.boat-equipment{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(170px,1fr)}.boat-list{display:flex;flex-direction:column;min-width:0}.boat-list>small,.boat-baits>small{display:block;min-height:22px;color:#b5e9f4}.boat-rows{display:flex;flex-direction:column;gap:5px;flex:1}.game-root .boat-row{width:100%;min-height:40px;padding:4px 9px;display:grid;grid-template-columns:65px minmax(0,1fr) 36px;gap:10px;align-items:center;text-align:left;background:linear-gradient(120deg,#085773,#06364f);border:1px solid #309cba;border-radius:8px;color:#ecfcff;overflow:hidden}.game-root .boat-row.selected{border-color:#9effff;box-shadow:inset 0 0 9px #27daee77}.boat-row>span:not(.boat-art){min-width:0}.boat-row strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.boat-row small{display:block;font-size:11px;color:#a7dbeb}.boat-row>b{font-size:12px;text-align:right}.boat-art{display:block;position:relative;width:100%;height:34px;overflow:hidden}.boat-art img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;transform:none!important}.boat-preview{min-width:0;background:linear-gradient(140deg,#086782,#032c47);border:1px solid #33b2cd;border-radius:13px;padding:14px}.boat-preview>.boat-art{height:160px}.boat-preview h3{font-size:22px}.boat-preview p{font-size:13px}.boat-preview>small{display:block;color:#b4e9ed}.boat-preview button{width:100%;margin-top:12px}.boat-baits{min-width:0}.boat-baits .boat-row{margin-bottom:5px;grid-template-columns:38px minmax(0,1fr) 33px}.boat-list>footer{display:flex;justify-content:center;align-items:center;gap:15px;padding-top:10px;font-size:12px}.game-root .boat-list>footer button{padding:2px;width:30px;height:28px;min-height:28px}.treasure-dialog[open]{padding:0;border:3px solid #d8bf8b;border-radius:0;background:#063c4d;width:min(760px,85vw,120dvh);max-height:86dvh;overflow:hidden}.treasure-dialog canvas{display:block;width:100%;height:auto;max-height:85dvh;object-fit:contain}.treasure-dialog::backdrop{background:#001c30c4}
@media(max-width:900px){.boat-layout{gap:8px;min-height:240px;grid-template-columns:minmax(0,2fr) minmax(145px,1fr)}.boat-layout.boat-equipment{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(135px,1fr);gap:6px}.game-root .boat-row{min-height:27px;grid-template-columns:38px minmax(0,1fr) 25px;padding:2px 5px;gap:5px}.boat-row strong,.boat-row>b{font-size:9px}.boat-row small{font-size:8px}.boat-art{height:24px}.boat-baits .boat-row{grid-template-columns:24px minmax(0,1fr) 26px}.boat-preview{padding:8px}.boat-preview>.boat-art{height:94px}.boat-preview h3{font-size:15px}.boat-preview p,.boat-preview small{font-size:9px}.boat-preview button{font-size:10px;min-height:27px;padding:5px}.boat-list>small,.boat-baits>small{font-size:9px;min-height:18px}.game-root .cargo-bucket .cargo-count{font-size:10px}.boat-rows{gap:3px}}

@supports(grid-template-rows:subgrid){.game-root .progress-card{display:grid;grid-template-rows:subgrid;grid-row:span 7;row-gap:7px}.game-root .progress-card h3{margin:0;min-height:2.4em}.game-root .progress-card progress{margin:0;align-self:center}.game-root .progress-card>p{margin:0}.game-root .progress-card>button{align-self:end}}

/* Revision 006 */
@media(max-width:900px){:fullscreen .game-root:not(.exploring) .main-actions{translate:0 -6px}}
.game-root .collection-toolbar .storage-tabs button{position:relative;text-align:center;justify-content:center;padding-left:12px;padding-right:4px;overflow:hidden}.game-root .collection-toolbar .storage-tabs button i{position:absolute;left:4px;top:50%;transform:translateY(-50%);margin:0}.rarity-tab-text{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.game-root .cargo-bucket .cargo-count{inset:0;transform:none;width:100%;height:100%;line-height:1;white-space:nowrap}.game-root .map-card strong .map-level{display:inline;position:static;color:#b2ecff;font-size:.8em;white-space:nowrap}.game-root .shop-grid[hidden],.game-root .shop-loadout[hidden]{display:none!important}.game-root .shop-tabs .equipment-tab{background:linear-gradient(#aa6bcd,#59337f);border-color:#d5a8ef}.game-root .shop-tabs .equipment-tab.active{background:linear-gradient(#d49afa,#8b48bd)}.game-root .shop-card{cursor:pointer}.game-root .shop-card.is-selected{border-color:#b8ffff;box-shadow:0 0 9px #24d5f9,inset 0 0 8px #57e3ff44}.game-root .shop-card:not(.is-selected) button{pointer-events:none}.game-root .shop-card button:disabled{background:#5d6b76!important;border-color:#81909a!important;box-shadow:none;opacity:1;color:#ddd}.game-root .shop-card [data-shop-buy],.game-root .shop-card .upgrade-actions>button{height:34px;min-height:34px;max-height:34px;box-sizing:border-box}.game-root .shop-card .upgrade-actions>[data-upgrade-step]{border-radius:5px;padding:5px}.fa-arrow-up{mask-image:url('../vendor/fontawesome/arrow-up.svg');-webkit-mask-image:url('../vendor/fontawesome/arrow-up.svg')}.fa-arrow-down{mask-image:url('../vendor/fontawesome/arrow-down.svg');-webkit-mask-image:url('../vendor/fontawesome/arrow-down.svg')}.game-root .upgrade-actions .fa-icon{display:inline-block;width:14px;height:14px;background:currentColor;mask-size:contain;mask-position:center;mask-repeat:no-repeat}.boat-info-title{margin:0 0 10px;color:#b3ecfa;font-size:13px}.game-root .leader-player{gap:10px;transform:translateX(-7px)}.game-root .progress-table tr[data-rank="1"]{background:linear-gradient(90deg,#a51f36,#4b172d 65%,#102e46)}.game-root .progress-table tr[data-rank="2"]{background:linear-gradient(90deg,#997319,#614b22 65%,#102e46)}.game-root .progress-table tr[data-rank="3"]{background:linear-gradient(90deg,#753baf,#482765 65%,#102e46);box-shadow:none}
@media(max-width:900px){.game-root .shop-card [data-shop-buy],.game-root .shop-card .upgrade-actions>button{height:32px;min-height:32px;max-height:32px}.game-root .collection-toolbar .storage-tabs button{padding-left:11px;padding-right:3px}.boat-info-title{font-size:10px}}

.game-root .gadget-slot>img{width:65%;height:65%;object-fit:contain}.game-root .boat-info-title{flex:none}

.game-root .collection-toolbar .storage-tabs button{padding-inline:12px}

@media(max-width:900px){.game-root .shop-card .upgrade-actions>[data-upgrade-step]{height:32px;min-height:32px;max-height:32px}}

/* Revision 007: availability, compact dock and aligned price controls. */
.game-root .gadget-slot>img{width:80%;height:80%;max-width:80%;max-height:80%;object-fit:contain}.game-root .gadget-slot>img.gadget-unavailable{filter:grayscale(1);opacity:.48}
.game-root .cargo-dock{top:84px;width:min(400px,72vw);padding:11px 16px}.game-root .cargo-dock .cargo-action{width:112px;min-width:112px;max-width:112px;flex-basis:112px;height:37px;min-height:37px;max-height:37px}.game-root .cargo-dock [data-cargo=store]:disabled{background:#64756e;color:#eef9f2}
.game-root .shop-card .upgrade-actions{display:grid;grid-template-columns:28px 28px minmax(0,1fr);align-items:center;gap:4px;width:calc(100% - 8px);margin-inline:auto}.game-root .shop-card .upgrade-actions>button{width:100%;min-width:0;margin:0;align-self:center;display:flex;align-items:center;justify-content:center;line-height:1;padding:3px}.game-root .shop-card [data-shop-buy]{display:flex;align-items:center;justify-content:center;gap:6px;color:#071317;font-weight:900;text-shadow:none;letter-spacing:0;padding:3px 5px}.purchase-cost{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0}.purchase-cost b{color:#071317;font-size:12px;font-weight:900;line-height:1}.game-root .purchase-cost .icon{width:20px;height:20px;min-width:20px;flex:none}.purchase-cost.coins .icon{color:#ffdc35;fill:#ffbc00;filter:drop-shadow(0 1px 1px #503500)}.purchase-cost.diamonds .icon{color:#d6fcff;fill:#00d4ef;filter:drop-shadow(0 1px 1px #004363)}.shop-max-level{margin-top:auto;padding:8px 5px;text-align:center;color:#ffe992;border:1px solid #dfbd50;border-radius:6px;background:linear-gradient(#66561e,#403518);font-weight:800}.game-root .shop-card .shop-description{line-height:1.35}
@media(max-width:900px){.game-root .cargo-dock{top:66px;max-width:342px;padding:8px}.game-root .cargo-dock .cargo-action{width:94px;min-width:94px;max-width:94px;flex-basis:94px;height:33px;min-height:33px;max-height:33px}.game-root .shop-card .upgrade-actions{grid-template-columns:24px 24px minmax(0,1fr);gap:3px;width:calc(100% - 6px)}.purchase-cost b{font-size:10px}.game-root .purchase-cost .icon{width:16px;height:16px;min-width:16px}.purchase-cost{gap:2px}.shop-max-level{font-size:10px}}

@media(max-width:900px) and (max-height:520px){.game-root .shop-dialog .dialog-head{min-height:36px;height:36px;padding:4px 15px}.game-root .shop-dialog .dialog-head h2{font-size:17px}.game-root .shop-dialog .dialog-head .close-button{width:25px;height:25px;min-height:25px}.game-root .shop-dialog .shop-banner{min-height:36px;height:36px;padding:4px 14px;margin-bottom:6px}.game-root .shop-banner span,.game-root .shop-banner p{display:none}.game-root .shop-banner h3{font-size:13px;margin:0}.game-root .shop-banner>.icon{width:26px;height:26px}.game-root .shop-dialog .shop-tabs{margin-bottom:7px;gap:5px}.game-root .shop-dialog .shop-tabs button{min-height:28px;padding:4px 9px}.game-root .shop-card{min-height:210px}.game-root .shop-card .shop-art{height:48px;flex-basis:48px}.game-root .shop-card .shop-card-body{gap:4px;padding:5px}.game-root .shop-card h3{margin-bottom:2px}.game-root .shop-card p{margin:2px 0}.game-root .shop-dialog .dialog-body{padding-bottom:7px}.game-root .shop-dialog .shop-note{margin-top:5px;font-size:8px}}

/* Revision 008 */
.game-root .bait-dialog{width:min(630px,90vw);max-width:630px}.game-root .bait-dialog .dialog-body{padding:10px}.game-root .bait-dialog .loadout-collection{display:flex;flex-direction:column;gap:6px;max-height:274px;overflow-y:auto}.game-root .bait-dialog .loadout-collection article{display:grid;grid-template-columns:42px minmax(0,1fr) 45px 85px;align-items:center;gap:10px;box-sizing:border-box;min-height:50px;height:50px;flex:none;padding:4px 10px;border:1px solid var(--rarity-color);background:linear-gradient(100deg,color-mix(in srgb,var(--rarity-color) 42%,#023344),#023344);border-radius:7px;text-align:left}.game-root .bait-dialog .loadout-collection article img{width:40px;height:38px;object-fit:contain}.game-root .bait-dialog .loadout-collection article h3{font-size:13px;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-root .bait-dialog .loadout-collection article small{font-size:11px}.game-root .bait-dialog .loadout-collection article button{min-height:30px;padding:4px 8px;margin:0;font-size:11px}.bait-reminder{width:min(360px,80vw);border:1px solid #72dceb;border-radius:12px;background:#06435c;color:white;padding:18px;text-align:center}.bait-reminder p{font-size:14px;line-height:1.5}.game-root .gadget-slot{position:relative;overflow:hidden}.game-root .gadget-slot>img{position:absolute;inset:0;margin:auto;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.game-root .gadget-slot>img.art-trimmed{inset:auto;margin:0}.game-root .gadget-slot .scanner-countdown{z-index:2;pointer-events:none}.game-root .shop-card{border-color:var(--rarity-color,#309fba);background:linear-gradient(125deg,color-mix(in srgb,var(--rarity-color,#309fba) 25%,#034056),#033345)}.game-root .shop-max-level{border:0;background:none;box-shadow:none;padding:5px 0;border-radius:0}.game-root .quantity-stepper[hidden],.game-root .quantity-stepper button[hidden]{display:none!important}.game-root .shop-card:not(.is-selected) .upgrade-actions{display:block}.game-root .shop-card:not(.is-selected) .upgrade-actions button{display:none}.game-root .shop-unselected-price{margin-top:auto;min-height:32px;display:flex;align-items:center;justify-content:center;color:#ffe4a3;font-weight:800;font-size:12px;text-align:center}.game-root .shop-card .quantity-stepper{min-height:25px}.game-root .quantity-stepper>[data-quantity-step="-1"][hidden]+output{margin-left:auto}
@media(max-width:900px){.game-root .bait-dialog .loadout-collection{max-height:224px}.game-root .bait-dialog .loadout-collection article{height:40px;min-height:40px;grid-template-columns:34px minmax(0,1fr) 32px 65px;gap:7px}.game-root .bait-dialog .loadout-collection article img{width:32px;height:30px}.game-root .bait-dialog .loadout-collection article h3{font-size:11px}.game-root .shop-unselected-price{font-size:10px}}

.game-root .bait-dialog .loadout-collection article small{margin:0;white-space:nowrap;text-align:right}.game-root .bait-dialog .dialog-head{min-height:42px;padding:6px 18px}.game-root .bait-dialog .dialog-head h2{font-size:19px}

.game-root .game-dialog.bait-dialog[open]{height:fit-content;min-height:0}.game-root .bait-dialog .dialog-body{flex:none;min-height:0}

/* Revision 009 */
.game-root .bait-dialog{width:min(480px,88vw);max-width:480px}.game-root .boat-dialog{width:min(950px,92vw);max-width:950px}.boat-preview-column{min-width:0;display:flex;flex-direction:column}.boat-info-heading{display:block;min-height:22px;color:#b5e9f4;font-size:12px}.boat-preview-column .boat-preview{flex:1}.game-root .shop-card .purchase-cost .icon{width:15px;height:15px;min-width:15px}.game-root .shop-card .quantity-stepper{display:grid;grid-template-columns:28px minmax(25px,1fr) 28px;align-items:center}.game-root .quantity-stepper>[data-quantity-step="-1"][hidden]{display:block!important;visibility:hidden}.game-root .quantity-stepper output{margin:0!important;text-align:center;justify-self:center}.game-root .shop-card:has(button:active){transform:none!important;animation:none!important;filter:none!important}.game-root .shop-card .shop-art{background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--rarity-color,#168eb5) 70%,#093044),#07384c);height:153px;flex-basis:153px}.gadget-stock{text-align:center;font-weight:800}.game-root .storage-detail{background:linear-gradient(145deg,color-mix(in srgb,var(--detail-rarity,#309ab1) 32%,#04405a),#032a40)}.game-root .storage-detail .collection-hero,.game-root .storage-detail>.detail-art{background:radial-gradient(ellipse at 50% 35%,color-mix(in srgb,var(--detail-rarity,#309ab1) 60%,#07485e),#043347)}
.game-root .play-rotate-overlay,.game-root .rotate-overlay{display:none!important}.orientation-block[open]{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;border:0;padding:35px;background:#023348;color:white;display:flex;align-items:center;justify-content:center;text-align:center;font-size:22px;font-weight:800}.orientation-block::backdrop{background:#023348}
@media(max-width:900px){.game-root .shop-card .shop-art{height:83px;flex-basis:83px}.game-root .shop-card .purchase-cost .icon{width:12px;height:12px;min-width:12px}.game-root .collection-toolbar .storage-tabs{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:5px}.game-root .collection-toolbar .storage-tabs button{flex:0 0 auto;width:auto;min-width:0;max-width:none;padding:5px 10px 5px 19px}.game-root .rarity-tab-text{max-width:none;overflow:visible;text-overflow:clip}.game-root .boat-dialog{width:min(740px,92vw)}.boat-info-heading{font-size:10px}}
@media(max-width:900px) and (max-height:520px){.game-root .shop-card .shop-art{height:55px;flex-basis:55px}}
@media(max-width:900px) and (orientation:portrait){body[data-portrait-allowed=true] .game-root{min-height:100dvh;height:100dvh}body[data-portrait-allowed=true] .collection-dialog .storage-layout{grid-template-columns:1fr}body[data-portrait-allowed=true] .collection-dialog .storage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-portrait-allowed=true] .collection-dialog .storage-detail{min-height:0}body[data-portrait-allowed=true] .progress-table{font-size:9px}body[data-portrait-allowed=true] .leader-player{gap:4px;transform:none}body[data-portrait-allowed=true] .leader-player strong,body[data-portrait-allowed=true] .leader-player b{white-space:nowrap;font-size:9px}body[data-portrait-allowed=true] .leader-avatar,body[data-portrait-allowed=true] .leader-avatar .avatar-frame{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important}}

@media(max-width:900px) and (orientation:portrait){
 body[data-portrait-allowed=true] .collection-toolbar .storage-tabs button{font-size:10px;min-height:32px;padding:6px 9px 6px 21px}
 body[data-portrait-allowed=true] .collection-dialog .storage-card .item-open{min-height:145px}
 body[data-portrait-allowed=true] .progress-table table{min-width:0;font-size:9px}
 body[data-portrait-allowed=true] .progress-table th,body[data-portrait-allowed=true] .progress-table td{padding:5px 3px}
 body[data-portrait-allowed=true] .progress-table tbody td:first-child{font-size:12px}
 body[data-portrait-allowed=true] .leader-player{min-width:0;gap:4px}
 body[data-portrait-allowed=true] .leader-player .leader-avatar{flex-basis:26px!important}
}

/* Revision 010 */
.game-root .game-hud .avatar-frame{display:block;position:relative;box-sizing:border-box;line-height:0;overflow:hidden;flex-shrink:0}
.game-root .game-hud .avatar-frame>img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);max-width:none;max-height:none;margin:0;object-fit:cover;border-radius:50%;transform:none;display:block}
.admin-table [data-admin-edit].record-modified{color:#ff971f}
.game-root .collection-toolbar .storage-tabs{display:flex;flex-wrap:wrap;overflow:visible}
.game-root .collection-toolbar .storage-tabs button{flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important}
.game-root .collection-toolbar .storage-tabs .rarity-tab-text{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;max-width:none!important;min-width:max-content!important}
.game-root .shop-unselected-price{gap:12px;color:white;font-weight:800}
.game-root .shop-unselected-price .purchase-cost,.game-root .shop-unselected-price .purchase-cost b{color:white!important;font-weight:800}
.game-root .shop-card [data-shop-buy]{display:flex;justify-content:center;align-items:center;gap:12px}
.game-root .shop-card [data-shop-buy] .purchase-cost b{color:#111;font-weight:800}
.game-root .shop-card,.game-root .shop-card *{-webkit-tap-highlight-color:transparent}
.game-root .shop-card:active,.game-root .shop-card:focus-within{transform:none!important;filter:none!important;animation:none!important}
.game-root .shop-card{transition:border-color .15s,box-shadow .15s}
.game-root .boat-row{border-color:var(--row-rarity,#3299aa);background:linear-gradient(110deg,color-mix(in srgb,var(--row-rarity,#3299aa) 32%,#063a50),#043247)}
.collection-new{position:absolute;right:7px;top:7px;z-index:2;background:#ffcc30;color:#153344;padding:3px 6px;border-radius:5px;font-weight:800;font-size:10px;pointer-events:none}
.game-root.aiming-mode .joystick .analog-cancel,.game-root.auto-fishing .joystick .analog-cancel{display:block}
.game-root.aiming-mode .joystick>i,.game-root.aiming-mode .joystick>span,.game-root.auto-fishing .joystick>i,.game-root.auto-fishing .joystick>span{visibility:hidden}

.game-root.keyboard-aim,.game-root.keyboard-aim *{cursor:none!important}
.game-root.auto-fishing .cast-button{width:115px;height:115px;background:#42ee65;border-color:#aaff9b;color:#c41717;opacity:1;right:36px;bottom:36px}
.game-root.auto-fishing .cast-button strong{color:#cf1717;text-shadow:none}
.game-root.auto-fishing .cast-button .icon{width:40px;height:40px}
.game-root.auto-fishing .joystick{background:#c82b31;border-color:#ffaaa5}
.game-root.auto-fishing .analog-cancel{background:#c82b31;color:white}
.game-root.aiming-mode .joystick[hidden],.game-root.auto-fishing .joystick[hidden]{display:block!important}
@media(max-width:900px){.game-root.auto-fishing .cast-button{width:85px;height:85px;right:20px;bottom:20px}.game-root.auto-fishing .cast-button strong{font-size:17px}}

/* Revisi 011: consistent compact panels and explicit locked states. */
.game-root .avatar-frame>img{box-shadow:none!important;filter:none!important}
.game-root .catch-art{position:relative;overflow:hidden}.game-root .catch-art img.art-trimmed{position:absolute;object-fit:fill}
.game-root .catch-actions>button{flex:1;min-width:0}
.game-root.auto-fishing .cast-button{width:57.5px;height:57.5px;opacity:.55;padding:3px;right:36px;bottom:36px;min-height:0;gap:0}
.game-root.auto-fishing .cast-button .icon{width:20px;height:20px}.game-root.auto-fishing .cast-button strong{font-size:12px}
.game-root.auto-fishing .joystick{transform:scale(.5);transform-origin:bottom left;opacity:.55}
.game-root .shop-card.shop-locked{filter:grayscale(1);opacity:.64;cursor:default}.game-root .shop-locked-label{font-weight:800;color:#fff;text-align:center;padding:10px 0;margin-top:auto}
.game-root .shop-locked button,.game-root .shop-locked .quantity-stepper{display:none!important}
.game-root .boat-dialog{width:min(860px,90vw);max-width:860px;height:min(610px,90dvh)}
.game-root .boat-dialog .dialog-body{min-height:0;display:flex;flex-direction:column;overflow:hidden}.game-root .boat-layout,.game-root .boat-layout.boat-equipment{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) minmax(190px,.68fr);height:100%}
.game-root .boat-layout.boat-equipment{grid-template-columns:minmax(0,1fr) minmax(0,.9fr) minmax(190px,.68fr)}
.game-root .boat-preview-column{height:100%;min-height:0}.game-root .boat-preview{height:100%;min-height:0;overflow:auto;box-sizing:border-box}.game-root .boat-preview>.boat-art{height:110px;min-height:110px;flex:none}
.game-root .boat-list,.game-root .boat-baits{min-height:0;overflow:auto}
.game-root .game-dialog.settings-dialog{width:min(760px,92vw)!important;height:min(590px,94dvh)!important;max-height:94dvh;overflow:hidden;display:flex;flex-direction:column}
.game-root .settings-dialog:not([open]){display:none}.game-root .settings-dialog .dialog-body{min-height:0;flex:1;overflow:hidden;padding:14px 20px}
.game-root .settings-dialog .dialog-head{flex:none;padding:10px 20px}.game-root .settings-dialog .dialog-head h2{font-size:22px}
.game-root .settings-dialog .settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}.game-root .settings-dialog .volume-row{margin:0}.game-root .settings-dialog .settings-actions{margin-top:20px}
.game-root .settings-dialog .account-fields,.game-root .settings-dialog .security-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.game-root .delete-account-link{display:block;color:#ff9898;margin-top:8px;padding:0;border:0;background:none;min-height:0;box-shadow:none}
.delete-account-dialog{padding:20px}.delete-account-dialog .delete-error{color:#ffa2a2}.delete-account-dialog .danger{background:#a52d39}
.admin-table .modified-key{color:#ffdf45;font-weight:700}.admin-table [data-admin-edit] .pencil-icon{display:inline-block;transform:scale(1.2)}
.measurement-input{display:flex;gap:8px;min-width:0}.measurement-input input{min-width:0;flex:1}.measurement-input select{width:145px;flex:none}
@media(max-width:900px),(max-height:600px){
 .game-root.auto-fishing .cast-button{width:42.5px;height:42.5px;right:20px;bottom:20px}.game-root.auto-fishing .cast-button .icon{width:16px;height:16px}.game-root.auto-fishing .cast-button strong{font-size:10px}
 .game-root .game-dialog.settings-dialog{width:min(700px,92vw)!important;height:min(430px,94dvh)!important}
 .game-root .settings-dialog .dialog-head{padding:5px 12px}.game-root .settings-dialog .dialog-head h2{font-size:17px}.game-root .settings-dialog .close-button{min-height:28px;min-width:28px;width:28px;height:28px;padding:4px}
 .game-root .settings-dialog .dialog-body{padding:6px 12px}.game-root .settings-dialog .settings-tabs{margin:0 0 7px}.game-root .settings-dialog .settings-tabs button{padding:5px;font-size:11px;min-height:25px}
 .game-root .settings-dialog .settings-grid{gap:7px 12px}.game-root .settings-dialog .field{font-size:11px;gap:3px;margin:4px 0}.game-root .settings-dialog input:not([type=range]),.game-root .settings-dialog select{height:28px;padding:4px 7px;font-size:11px;min-width:0}.game-root .settings-dialog .dropdown-toggle{min-height:28px;padding:4px 7px;font-size:11px}
 .game-root .settings-dialog h3{font-size:13px;margin:3px 0}.game-root .settings-dialog p,.game-root .settings-dialog small{font-size:10px;line-height:1.25;margin:4px 0}.game-root .settings-dialog button.primary,.game-root .settings-dialog button.secondary{min-height:28px;padding:5px 10px;font-size:11px}
 .game-root .settings-dialog .avatar-editor{gap:9px;margin:0 0 8px;padding:0 0 6px;display:flex}.game-root .settings-dialog .avatar-editor>.avatar-frame{width:48px;height:48px}.game-root .settings-dialog #avatar-form{display:flex;align-items:center;gap:6px}.game-root .settings-dialog #avatar-form .secondary{margin:0}.game-root .settings-dialog .upload-label{font-size:10px}.game-root .settings-dialog .upload-label input{width:165px}
 .game-root .settings-dialog .account-fields,.game-root .settings-dialog .security-layout{gap:12px}.game-root .settings-dialog .settings-actions{margin-top:12px}.game-root .settings-dialog .volume-row label{font-size:11px;margin:3px 0}.game-root .settings-dialog .preview-sound{width:25px;height:25px;min-height:25px;padding:3px}
 .game-root .settings-dialog .delete-account-link{font-size:11px;margin-top:7px}.game-root .boat-dialog{width:min(740px,92vw);height:90dvh}.game-root .boat-layout,.game-root .boat-layout.boat-equipment{grid-template-columns:minmax(0,1fr) minmax(145px,.65fr)}.game-root .boat-layout.boat-equipment{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(145px,.65fr)}.game-root .boat-preview>.boat-art{height:65px;min-height:65px}
}

.game-root .settings-dialog .settings-tabs{margin-bottom:12px}.game-root .settings-dialog .avatar-editor{padding-bottom:10px;gap:14px}.game-root .settings-dialog .account-fields,.game-root .settings-dialog .security-layout{margin-top:10px}.game-root .settings-dialog .account-fields h3,.game-root .settings-dialog .security-layout h3{margin:4px 0 8px}.game-root .settings-dialog .field{margin:8px 0}.game-root .settings-dialog .account-fields form+form,.game-root .settings-dialog .security-layout form+form{border-top:0;margin-top:0;padding-top:0;padding-left:12px;border-left:1px solid #5495ad55}
@media(max-width:900px),(max-height:600px){.game-root .settings-dialog .settings-tabs{margin-bottom:7px}.game-root .settings-dialog .avatar-editor{padding-bottom:5px}.game-root .settings-dialog .field{margin:4px 0}.game-root .settings-dialog .account-fields,.game-root .settings-dialog .security-layout{margin-top:6px}.game-root .settings-dialog .account-fields h3,.game-root .settings-dialog .security-layout h3{margin:3px 0 5px}}

.game-root .boat-layout{grid-template-columns:minmax(0,1fr) 220px}.game-root .boat-layout.boat-equipment{grid-template-columns:minmax(0,1fr) minmax(0,.9fr) 220px}
@media(max-width:900px),(max-height:600px){.game-root .boat-layout{grid-template-columns:minmax(0,1fr) 165px}.game-root .boat-layout.boat-equipment{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 165px}}

@media(max-width:900px),(max-height:600px){.game-root .settings-dialog .avatar-editor p{display:none}.game-root .settings-dialog .avatar-editor .text-button{font-size:10px;padding:0;min-height:0}.game-root .settings-dialog .account-fields form>h3{font-size:12px}.game-root .settings-dialog .account-fields .quiet-note{margin-top:4px}.game-root .settings-dialog .account-fields .field{margin:3px 0}.game-root .settings-dialog .account-fields .field input{height:25px}.game-root .settings-dialog .account-fields .free-badge,.game-root .settings-dialog .account-fields .cost-badge{font-size:10px;padding:2px 5px}}

@media(max-width:900px),(max-height:600px){.game-root .settings-dialog input:not([type=range]),.game-root .settings-dialog select{min-height:0}.game-root .settings-dialog .security-layout .field{margin:4px 0}}

.game-root .boat-preview.storage-detail{border-color:var(--detail-rarity,#3299aa);background:linear-gradient(145deg,color-mix(in srgb,var(--detail-rarity,#3299aa) 28%,#06405a),#032b40)}.leader-avatar:disabled{opacity:1;filter:none}

.map-rarities .public-rarity-blend{background:radial-gradient(circle at 15% 20%,#c1cbdcff,transparent 65%),radial-gradient(circle at 85% 20%,#ffcc42ff,transparent 65%),radial-gradient(circle at 80% 85%,#fc595fff,transparent 65%),radial-gradient(circle at 30% 75%,#ad54ffff,transparent 70%),radial-gradient(circle at 50% 40%,#24df75,transparent 60%),#1899ff}

/* Revisi Versi 001 */
.game-root .game-dialog.settings-dialog{height:min(615px,96dvh)!important;max-height:96dvh}
.game-root .settings-dialog .dialog-body{display:flex;flex-direction:column}
.game-root .settings-dialog #preferences-form{display:flex;flex-direction:column;flex:1;width:100%;min-height:0}
.game-root .settings-dialog #preferences-form .settings-actions{margin-top:auto;padding-top:12px;padding-bottom:80px}
.game-root .settings-dialog .delete-account-link{flex-shrink:0;margin-bottom:0}
.game-root .shop-note{text-align:center}
.game-root .shop-maximum{filter:none;opacity:1}
.game-root .collection-dialog .storage-detail.find-detail{height:100%;min-height:0;overflow:auto;padding-bottom:15px}
.game-root .find-detail>.detail-art{height:145px;min-height:100px;flex:none}
.game-root .find-story{font-size:12px;line-height:1.5;margin:10px 0;overflow-wrap:anywhere}
.game-root .find-story p{white-space:pre-line;margin:6px 0}
.game-root .find-detail>small{display:block;line-height:1.4;padding-bottom:8px}
.cast-button.has-cast-custom>.icon{visibility:hidden}.cast-button>.cast-custom{position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none;max-height:none;object-fit:contain;pointer-events:none;z-index:0}.cast-button.has-cast-custom>strong,.cast-button.has-cast-custom>small{position:relative;z-index:1}
.game-root .joystick{opacity:var(--ui-opacity-navigation,1)}
.game-root .cast-button{opacity:var(--ui-opacity-cast,1)}
.game-root .player-chip{opacity:var(--ui-opacity-profile,1);background:color-mix(in srgb,var(--player-frame,#02394d) calc(var(--player-frame_opacity,.87)*100%),transparent)}
.game-root .player-chip #nickname{color:var(--player-name,#f1fdff)}.game-root .player-chip>span>small{color:var(--player-title,#e8be00)}
.game-root .wallet{opacity:var(--ui-opacity-currency,1)}
.game-root .game-menu>nav,.game-root .main-actions,.game-root .hud-button{opacity:var(--ui-opacity-menu_buttons,1)}
.game-root .game-dialog,.game-root .confirm-dialog{opacity:var(--ui-opacity-dialogs,1)}
.game-root .fishing-panel,.game-root .cargo-panel{opacity:var(--ui-opacity-panels,1)}
.game-root .gadget-control,.game-root .gadget-button,.game-root .gadget-slot{opacity:var(--ui-opacity-gadgets,1)}
@media(max-width:900px),(max-height:600px){.game-root .game-dialog.settings-dialog{height:min(450px,96dvh)!important}.game-root .settings-dialog #preferences-form .settings-actions{padding-top:6px;padding-bottom:60px}.game-root .find-detail>.detail-art{height:95px;min-height:75px}.game-root .find-story{font-size:10px;margin:5px 0}}

@media(max-height:380px){.game-root .settings-dialog .avatar-editor{padding:0;margin:0;gap:7px}.game-root .settings-dialog .avatar-editor>.avatar-frame{width:38px;height:38px}.game-root .settings-dialog .avatar-editor h3{font-size:11px}.game-root .settings-dialog #avatar-form{flex-wrap:nowrap}.game-root .settings-dialog .upload-label input{width:130px;height:23px}.game-root .settings-dialog .account-fields{margin-top:3px}.game-root .settings-dialog .account-fields .field{margin:2px 0}.game-root .settings-dialog .account-fields button.secondary{margin-top:5px}.game-root .settings-dialog #preferences-form .settings-actions{padding-bottom:8px}}

.game-root .collection-dialog .storage-layout:has(.find-detail){height:calc(92dvh - 145px);align-items:stretch}
.game-root .collection-dialog .storage-detail.find-detail{display:flex;flex-direction:column;align-self:stretch;position:static;height:100%;min-height:0;padding:0;overflow:hidden}
.game-root .storage-dialog .storage-detail.find-detail>.detail-art{height:145px;min-height:0}
.find-description{display:flex;flex-direction:column;min-height:0;flex:1;padding:12px 16px}
.game-root .find-description>h3{font-size:23px;margin:0 0 8px}.game-root .find-description>p{margin:3px 0;font-size:12px}
.game-root .find-description .find-story{flex:1;min-height:0;overflow:auto;margin:10px 0;scrollbar-width:thin}
.game-root .find-description>small{flex:none;margin-top:auto;padding-top:7px;font-size:11px}
@media(max-width:900px),(max-height:600px){.game-root .collection-dialog .storage-layout:has(.find-detail){height:calc(92dvh - 110px)}.game-root .storage-dialog .storage-detail.find-detail>.detail-art{height:70px}.find-description{padding:8px 10px}.game-root .find-description>h3{font-size:17px;margin-bottom:3px}.game-root .find-description>p,.game-root .find-description>small{font-size:10px;line-height:1.3}.game-root .find-description .find-story{margin:6px 0;font-size:10px;line-height:1.35}}
@media(orientation:portrait){body[data-portrait-allowed=true] .collection-dialog .storage-layout:has(.find-detail){height:auto}body[data-portrait-allowed=true] .collection-dialog .storage-detail.find-detail{height:400px}}


/* Boat Storage: keep the existing popup dimensions; fit its contents inside. */
.game-root .boat-dialog .dialog-head{justify-content:flex-start;gap:12px}
.game-root .boat-dialog .dialog-head h2{flex:none}
.game-root .boat-dialog .dialog-head .boat-tabs{flex:1;min-width:0;margin:0;gap:5px;display:flex;flex-wrap:nowrap;overflow-x:auto}
.game-root .boat-dialog .boat-tabs button{flex:none;min-height:30px;padding:6px 10px;font-size:12px;white-space:nowrap}
.game-root .game-dialog:not(.boat-dialog) .boat-tabs{display:none}
.game-root .boat-dialog .dialog-head .close-button{flex:none;margin-left:auto}
.game-root .boat-dialog .boat-layout{gap:10px}
.game-root .boat-dialog .boat-preview-column{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.game-root .boat-dialog .boat-info-heading{flex:none;min-height:22px}
.game-root .boat-dialog .boat-preview{flex:1;height:0;min-height:0;position:static;border-radius:6px;overflow:auto}
.game-root .boat-dialog .boat-grid-layout .boat-list{overflow:hidden}
.game-root .boat-dialog .boat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;min-height:0;flex:0 1 auto;aspect-ratio:5/2;width:100%}
.game-root .boat-dialog .boat-grid-inventory .boat-grid{grid-template-rows:repeat(5,minmax(0,1fr));aspect-ratio:1}
.game-root .boat-dialog .boat-grid .boat-row{position:relative;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;min-height:0;height:100%;padding:5px;border-radius:5px;text-align:center;box-sizing:border-box}
.game-root .boat-dialog .boat-grid .boat-art{flex:1;min-height:0;height:0;width:100%}
.game-root .boat-dialog .boat-grid .boat-row>span:not(.boat-art){flex:none;width:100%}
.game-root .boat-dialog .boat-grid .boat-row strong{font-size:10px;line-height:1.2}
.game-root .boat-dialog .boat-grid .boat-row small{display:none}
.game-root .boat-dialog .boat-grid .boat-row>b{position:absolute;top:3px;right:4px;font-size:10px;line-height:1.2;background:#032b40cc;border-radius:3px;padding:1px 3px}
.game-root .boat-dialog .boat-empty-slot{min-width:0;min-height:0;border:1px solid #26748b66;border-radius:5px;background:#03364b55}
.game-root .boat-dialog .boat-list>footer{flex:none;margin-top:auto}
.game-root .boat-dialog .boat-row.unavailable{filter:grayscale(1);background:#39474e;border-color:#64727a;color:#aab4b9;opacity:.65;box-shadow:none;cursor:default}
@media(max-width:900px),(max-height:600px){
 .game-root .boat-dialog .dialog-head{gap:7px}
 .game-root .boat-dialog .dialog-head h2{font-size:17px}
 .game-root .boat-dialog .boat-tabs button{font-size:10px;min-height:25px;padding:4px 7px}
 .game-root .boat-dialog .boat-grid{gap:4px}
 .game-root .boat-dialog .boat-grid .boat-row{padding:3px;gap:2px}
 .game-root .boat-dialog .boat-grid .boat-row strong{font-size:8px}
 .game-root .boat-dialog .boat-grid-inventory .boat-row>span:not(.boat-art){display:none}
 .game-root .boat-dialog .boat-info-heading{min-height:18px;font-size:10px}
}
@media(max-width:600px){
 .game-root .boat-dialog .dialog-head{display:flex;gap:5px;padding-left:10px;padding-right:10px}
 .game-root .boat-dialog .dialog-head h2{font-size:13px;position:static;transform:none;width:auto;order:1}
 .game-root .boat-dialog .dialog-head .boat-tabs{max-width:none;width:auto;order:0}
 .game-root .boat-dialog .dialog-head .close-button{order:2}
 .game-root .boat-dialog .boat-tabs button{font-size:9px;padding:4px}
 .game-root .boat-dialog .boat-layout{grid-template-columns:minmax(0,1fr) 110px;gap:6px}
 .game-root .boat-dialog .boat-layout.boat-equipment{grid-template-columns:minmax(0,1fr) minmax(0,.8fr) 110px}
 .game-root .boat-dialog .boat-grid .boat-row>span:not(.boat-art){display:none}
}

/* Shared item/detail area; pagination occupies its own row below both. */
.game-root .boat-dialog .boat-layout{grid-template-rows:22px minmax(0,1fr) 38px;row-gap:0;max-height:360px}
.game-root .boat-dialog .boat-list{display:contents}
.game-root .boat-dialog .boat-list>small{grid-column:1;grid-row:1}
.game-root .boat-dialog .boat-rows{grid-column:1;grid-row:2;min-height:0;overflow:auto}
.game-root .boat-dialog .boat-list>footer{grid-column:1;grid-row:3;margin:0}
.game-root .boat-dialog .boat-grid{aspect-ratio:auto;height:100%;overflow:hidden}
.game-root .boat-dialog .boat-baits{grid-column:2;grid-row:1 / 3}
.game-root .boat-dialog .boat-preview-column{grid-column:-2 / -1;grid-row:1 / 3;width:100%;height:100%;align-self:stretch}
.game-root .boat-dialog .boat-preview{display:flex;flex-direction:column;align-self:stretch;width:100%;max-width:none;min-width:0;margin:0;padding:10px;gap:3px;overflow:hidden;border-radius:5px}
.game-root .boat-dialog .boat-preview>.boat-art{flex:0 1 110px;height:110px;min-height:0}
.game-root .boat-dialog .boat-preview h3{flex:none;font-size:17px;line-height:1.15;margin:0;overflow-wrap:anywhere}
.game-root .boat-dialog .boat-preview p,.game-root .boat-dialog .boat-preview>small{flex:none;font-size:11px;line-height:1.2;margin:0;overflow-wrap:anywhere}
.game-root .boat-dialog .boat-preview p:empty{display:none}
.game-root .boat-dialog .boat-preview>button{flex:none;box-sizing:border-box;width:100%;height:28px;min-height:28px;max-height:28px;margin:3px 0 0;padding:2px 4px;font-size:11px;line-height:1.1;border-radius:4px}
@media(max-width:900px),(max-height:600px){
 .game-root .boat-dialog .boat-layout{grid-template-rows:18px minmax(0,1fr) 38px;max-height:300px}
 .game-root .boat-dialog .boat-preview{padding:6px;gap:2px}
 .game-root .boat-dialog .boat-preview>.boat-art{flex-basis:65px;height:65px;min-height:0}
 .game-root .boat-dialog .boat-preview h3{font-size:12px;line-height:1.1}
 .game-root .boat-dialog .boat-preview p,.game-root .boat-dialog .boat-preview>small{font-size:9px;line-height:1.15}
 .game-root .boat-dialog .boat-preview>button{height:22px;min-height:22px;max-height:22px;font-size:9px;border-radius:3px;margin-top:2px}
}

/* Actions stay inside the bottom edge; extra Bucket rows are desktop-only. */
.game-root .boat-dialog .boat-preview>button{margin-top:auto}
.game-root .boat-dialog.boat-desktop .boat-layout{max-height:none}
.game-root .boat-dialog.boat-desktop .boat-grid-bucket .boat-grid{grid-template-rows:repeat(4,minmax(0,1fr))}

/* Keep Bucket totals in the header without changing the popup bounds. */
.game-root .boat-dialog .boat-list-heading{display:flex;align-items:center;gap:20%;min-width:0}
.game-root .boat-dialog .boat-list-heading>span:first-child{flex:none;max-width:100%}
.game-root .boat-dialog .boat-total-value{font-size:11px;line-height:1.15;min-width:0}
.game-root .boat-dialog .boat-total-value>span{display:inline-block}
.game-root .social-popover .rare-totals{margin:12px 0 0;gap:9px}
.game-root .social-popover .rare-totals span{display:grid;place-items:center;min-height:0;height:28px;box-sizing:border-box;padding:2px 8px;line-height:1;border-radius:5px}
.game-root .social-popover .last-online{margin:14px 0 0;font-size:11px;line-height:1.4}
@media(max-width:900px),(max-height:600px){.game-root .boat-dialog .boat-total-value{font-size:9px}}
@media(max-width:600px){
 .game-root .boat-dialog .boat-list-heading{gap:8%;align-items:flex-start}
 .game-root .boat-dialog .boat-total-value{font-size:8px}
 .game-root .boat-dialog .boat-layout{grid-template-rows:32px minmax(0,1fr) 38px}
 .game-root .boat-dialog .boat-info-heading,.game-root .boat-dialog .boat-baits>small{min-height:32px}
}
.asset-message{max-width:min(420px,85vw);border:1px solid #587783;border-radius:8px;background:#102e40;color:#f3faff;padding:22px}.asset-message::backdrop{background:#00111a99}.asset-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}.asset-message small{font-size:11px;color:#bad1dd}

/* Shop balance and collection order control. */
.shop-wallet{display:none}.shop-dialog .shop-wallet{display:flex;align-items:center;gap:8px;grid-column:1;grid-row:1;min-width:0;flex-wrap:wrap}
.shop-dialog .dialog-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px}
.shop-dialog .dialog-head h2{grid-column:2;grid-row:1;text-align:center}.shop-dialog .dialog-head .close-button{grid-column:3;grid-row:1;justify-self:end}
.game-root .collection-sort{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-height:28px;padding:3px;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#fff}
.collection-sort .fa-sort{display:block;width:16px;height:20px;background:currentColor;mask:url('../vendor/fontawesome/sort.svg') center/contain no-repeat;-webkit-mask:url('../vendor/fontawesome/sort.svg') center/contain no-repeat}
.collection-dialog .storage-tools{align-items:center}.collection-dialog .storage-tools input{min-width:0}
@media(max-width:900px){.collection-dialog.storage-dialog .collection-header-search{display:flex;align-items:center;gap:4px}.collection-dialog .collection-header-search input{min-width:0;flex:1;width:0}.shop-dialog .dialog-head{padding-left:10px;padding-right:10px;gap:5px}.shop-dialog .shop-wallet{gap:3px}.shop-dialog .dialog-head h2{font-size:18px}}

/* Use the existing header search at every viewport; hide its body copy. */
.game-root .storage-dialog.collection-dialog .collection-header-search{display:flex;align-items:center;gap:4px;width:min(190px,100%);max-width:190px}
.game-root .storage-dialog.collection-dialog .collection-header-search input{min-width:0;flex:1;width:0}
.game-root .collection-dialog .collection-toolbar .storage-tools{display:none}

/* Player-owned control layout editor: inert blue preview, no map session. */
.controller-settings>div{display:flex;gap:12px;max-width:420px}.controller-settings>div button{flex:1;margin:0}
.game-root .controller-editor{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:#087ead;color:white;overflow:hidden;touch-action:none;box-sizing:border-box}
.controller-editor::backdrop{background:#087ead}.controller-editor-top{position:absolute;top:max(10px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;gap:10px;z-index:5}
.controller-editor-top button,.controller-editor-close{border:1px solid #b7eaff;border-radius:6px;background:#06465e;color:white;min-height:34px;padding:6px 20px;font-weight:bold}
.controller-editor-close{position:absolute;top:max(10px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:6;padding:3px 12px;font-size:23px}
.controller-editor-help{position:absolute;top:48px;left:22%;right:22%;text-align:center;font-size:12px;pointer-events:none;margin:8px 0}
.controller-piece{position:absolute;touch-action:none;user-select:none;cursor:grab;z-index:2;outline:1px dashed #a1e6ff;border-radius:8px}.controller-piece.selected{outline:2px solid #ffde7b}.controller-piece>b{position:absolute;top:100%;left:0;width:100%;text-align:center;font:11px sans-serif;pointer-events:none;color:#fff}
.game-root .controller-editor .controller-piece>.joystick,.game-root .controller-editor .controller-piece>.cast-button{position:relative!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;margin:0!important;transform:none!important;display:flex!important;visibility:visible!important;pointer-events:none}
.game-root .controller-editor .controller-piece>.joystick{display:block!important}
.controller-mini{width:128px;height:88px;background:#06465ebf;border:2px solid #d2f3ff;display:grid;place-items:center;color:#ffdf45}.controller-mini span{font-size:18px}
.controller-opacity{position:absolute;z-index:5;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(240px,44%);padding:8px 12px;background:#043f55e8;border-radius:8px;font-size:12px;text-align:center}.controller-opacity input{display:block;width:100%;margin:5px 0 0;touch-action:auto}.controller-editor-status{position:absolute;top:85px;left:20%;right:20%;text-align:center;color:#ffdc80;z-index:5}
@media(max-width:900px){.controller-mini{width:104px;height:72px}.controller-editor-help{font-size:10px}.controller-editor-top button{min-height:30px;padding:5px 14px}}

.game-root .joystick[data-custom-position],.game-root .cast-button[data-custom-position]{opacity:var(--player-control-opacity,1)!important}
.game-root.auto-fishing .joystick[data-custom-position],.game-root.auto-fishing .cast-button[data-custom-position]{opacity:calc(var(--player-control-opacity,1)*.55)!important}
.game-root .cast-button.moving-hidden[data-custom-position]{opacity:0!important}
/* Pirate Bay controls reuse the saved Cast/Analog controller positions. */
.pvp-badge{display:inline-block;margin-left:7px;padding:2px 5px;background:#9d2635;color:white;border-radius:3px;font-size:10px;vertical-align:middle}
.pvp-war .cast-button{touch-action:none}
.pvp-war .cast-button>span{display:grid;place-items:center}
.pvp-war .cast-button .icon,.gadget-slot [data-war-icon] .icon{width:28px;height:28px}
.gadget-slot [data-war-icon]{display:grid;place-items:center;color:#ffe4a0}
.gadget-slot[aria-pressed=true]{border-color:#ff7c53;background:#833523}
.gadget-slot [data-war-icon]+small{font-size:8px;line-height:1}
.pvp-feed{position:absolute;top:102px;left:18px;max-width:55vw;white-space:pre-line;pointer-events:none;color:#fff1d1;text-shadow:0 1px 3px #000;font-size:11px;line-height:1.6}
.pvp-status{position:absolute;top:65px;left:20px;color:#ffd1c8;text-shadow:0 1px 3px #000;font-size:12px;pointer-events:none}
.pvp-dead>.game-hud,.pvp-dead>.game-menu,.pvp-dead>.pvp-status{visibility:hidden;pointer-events:none}
.pvp-countdown{position:absolute;top:44%;left:50%;transform:translateX(-50%);padding:18px 24px;max-width:90%;width:max-content;background:#172a3ed9;color:#fff;border:1px solid #ffffff40;border-radius:5px;text-align:center;font-size:clamp(13px,2vw,20px);pointer-events:none}
.pvp-loot{color:white;background:#143749;border:1px solid #64889a;border-radius:6px;padding:16px;width:min(380px,85vw);max-height:65vh;overflow:auto}
.pvp-loot::backdrop{background:#00182433}
.pvp-loot h3{margin:0}.pvp-loot p{font-size:11px}.pvp-loot>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;padding:5px 0}
.pvp-loot button{font-size:11px;padding:5px 10px;border-radius:3px}.pvp-loot>[data-loot-close]{margin-top:12px}
@media(max-width:900px){.pvp-feed{top:84px;left:12px;font-size:9px}.pvp-status{top:45px;left:12px;font-size:10px}}

/* Room-only public chat, beneath the player profile. */
.public-chat{position:absolute;left:16px;z-index:12;width:min(300px,42vw);color:#e4e7eb;background:#101318de;border:1px solid #ffffff22;border-radius:7px;padding:7px;font:12px/1.4 sans-serif;pointer-events:auto;box-shadow:0 3px 14px #0003}
.public-chat button{background:none;color:#d4d9e1;border:0;box-shadow:none;padding:0;border-radius:3px}
.public-chat svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}
.public-chat .chat-toggle{display:flex;align-items:center;gap:7px;width:100%;font:11px sans-serif;min-height:22px;text-align:left}
.chat-chevron{margin-left:auto}.chat-messages{height:112px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px 2px;overflow-wrap:anywhere}
.chat-messages>div{margin-bottom:3px}.chat-messages b{font-weight:500}
.public-chat form{display:flex;align-items:center;padding:0;gap:0;border:1px solid #ffffff35;border-radius:5px;margin-top:5px}
.public-chat input{min-height:0;background:transparent;border:0;color:#fff;min-width:0;width:100%;height:30px;padding:5px 7px;font:11px sans-serif;box-shadow:none}
.public-chat input:focus{outline:1px solid #ffffff60;outline-offset:-2px}
.public-chat form button{min-height:0;flex:0 0 30px;display:grid;place-items:center;height:30px}
.public-chat button:disabled{opacity:.4}.chat-status{display:block;color:#ffcf9c;font-size:10px}.chat-status:empty{display:none}
.public-chat.chat-collapsed{width:88px}.public-chat [hidden]{display:none!important}

.game-root:has(.public-chat) .pvp-status{top:calc(var(--public-chat-bottom,220px) + 20px)}
.game-root:has(.public-chat) .pvp-feed{top:calc(var(--public-chat-bottom,220px) + 38px)}
.pvp-dead>.public-chat{display:none}
@media(max-width:900px){.public-chat{left:10px;width:min(250px,43vw);padding:5px;font-size:10px}.chat-messages{height:64px}.public-chat input{height:26px;font-size:10px}.public-chat form button{height:26px}.public-chat.chat-collapsed{width:80px}}

/* Room labels stay in the lower-left corner on every gameplay map. */
.game-root.exploring .presence-hud{top:auto;right:auto;left:max(12px,env(safe-area-inset-left));bottom:max(5px,env(safe-area-inset-bottom));width:auto;max-width:65vw;transform:none;pointer-events:none}
.game-root.exploring .room-badge{font-size:8px;line-height:1.2;opacity:.65}
.public-chat.chat-collapsed{background:var(--chat-profile-bg,#02394dde);border-color:var(--chat-profile-border,#ffffff22)}
.public-chat.chat-collapsed.chat-moving{opacity:.1}
.public-chat{transition:background-color .1s}
.game-root.chat-keyboard .player-chip{visibility:hidden;pointer-events:none}
.game-root.chat-keyboard .public-chat{z-index:30}

@media(max-width:900px){.game-root.exploring .room-badge{font-size:7px}}



.public-chat input,.public-chat input::placeholder{font-size:12px}
@media(max-width:900px){.public-chat input,.public-chat input::placeholder{font-size:10px}}

.graphics-sleep-settings{display:grid;gap:16px;align-content:start}.sleep-help{font-size:10px;line-height:1.4;color:#b0d4df;font-weight:normal}.screen-sleep-overlay{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;box-sizing:border-box;background:rgba(0,0,0,.85);color:#aaa;font:12px sans-serif;z-index:2147483647;display:grid;place-items:center;touch-action:none}.screen-sleep-overlay::backdrop{background:transparent}

.game-root .settings-dialog .volume-row>label{justify-content:flex-start;gap:6px;align-items:baseline}.game-root .settings-dialog .preview-sound .icon{width:14px;height:14px}.preview-sound[aria-pressed="true"]{background:#a52e39;border-color:#e6646e;color:#fff}.game-root .settings-dialog .security-layout .field{font-size:11px}.settings-sr-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.game-root .settings-dialog .avatar-editor{display:block}.game-root .settings-dialog #avatar-form{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:10px;align-items:center}.game-root .settings-dialog #avatar-form .avatar-frame{width:64px;height:64px}.game-root .settings-dialog #avatar-form .upload-label{min-width:0}.game-root .settings-dialog #avatar-form .upload-label input{width:100%;max-width:100%;min-width:0}.game-root .settings-dialog #avatar-form .secondary{font-size:11px;padding:8px;white-space:nowrap}.game-root .settings-dialog .avatar-editor>.text-button{margin:4px 0 0}.controller-settings>.field{display:block;margin-bottom:16px}.avatar-editor>.text-button:disabled{opacity:.4;cursor:default}@media(max-width:500px){.game-root .settings-dialog #avatar-form{grid-template-columns:40px minmax(0,1fr) auto;gap:6px}.game-root .settings-dialog #avatar-form .avatar-frame{width:40px;height:40px}.game-root .settings-dialog #avatar-form .secondary{font-size:10px;padding:5px}}

.game-root .settings-dialog .settings-grid>*{min-width:0}.game-root .settings-dialog .volume-row>div{width:100%;box-sizing:border-box;gap:8px}.game-root .settings-dialog .volume-row input{width:0;min-width:0;margin:0;flex:1 1 0}.game-root .settings-dialog .preview-sound{flex-shrink:0}.game-root .settings-dialog .cost-badge .icon{width:13px;height:13px}.game-root .settings-dialog .account-fields h3{font-size:12px;min-height:30px;margin-bottom:12px}.game-root .settings-dialog .cost-badge{font-size:10px;flex-shrink:0}.game-root .settings-dialog .security-layout .field,.game-root .settings-dialog .security-layout input,.game-root .settings-dialog .security-layout input::placeholder{font-size:10px}.game-root .earned-title{font-size:10px;padding:4px 8px;gap:4px;border-radius:7px}.game-root .earned-title .icon{width:13px;height:13px}.game-root .profile-identity [data-action="titles"]{width:auto;max-width:170px;margin:10px auto 0;min-height:30px;padding:6px 14px;font-size:11px;border-radius:7px}.game-root .profile-details .info-grid{gap:12px}.game-root .profile-details .info-item span{font-size:10px;margin-bottom:4px}.game-root .profile-details .info-item strong{font-size:12px}.game-root .profile-details .exp-card{margin-top:14px;padding:10px}.game-root .title-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.game-root .title-card{display:flex;flex-direction:row;justify-content:flex-start;gap:10px;padding:12px;border-radius:6px;text-align:left;min-width:0}.game-root .title-card strong{font-size:12px;overflow-wrap:anywhere}.game-root .title-card>.icon{width:23px;height:23px;flex-shrink:0;color:#ffda66;fill:#ffc840}.game-root .title-card.selected{background:linear-gradient(135deg,#725016,#d2a442);border-color:#ffdc7b;color:#fff9db;box-shadow:0 0 9px #ffc34a55}

.public-chat.chat-collapsed.chat-unread .chat-chevron{color:#45bf2c}.storage-tabs button[data-storage-category="trade"]:disabled{opacity:.4;cursor:default}

.game-root .game-nav-left{left:24px;right:auto;top:8px}.game-root .game-nav-right{left:auto}.game-root .progress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.game-root .progress-card{min-width:0;padding:12px;overflow-wrap:anywhere}.game-root .progress-card button{min-width:0;width:100%;white-space:normal}.inventory-value-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.inventory-value-summary p{margin:5px 0}.inventory-value-summary>button{width:auto;min-width:65px;flex-shrink:0}.storage-header-tools.collection-header-search{display:flex;align-items:center;gap:8px;min-width:0}.storage-header-tools>input{width:140px;min-width:60px}.storage-wallet{display:flex;gap:6px;align-items:center;min-width:0}.storage-wallet .wallet{font-size:12px;padding:4px 7px;gap:4px;min-height:28px;white-space:nowrap}.storage-wallet .wallet .icon{width:22px;height:22px}.storage-dialog:not(.collection-dialog) .dialog-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.storage-dialog:not(.collection-dialog) .dialog-head h2{position:static;transform:none;margin:0 auto}.storage-dialog:not(.collection-dialog) .storage-header-tools{position:static;flex:none;max-width:100%}.collection-unread-dot{position:absolute;right:4px;top:4px;width:9px;height:9px;border-radius:50%;background:#ff303f;box-shadow:0 0 0 2px #fff6;z-index:4;pointer-events:none;animation:collection-dot-pulse 1.1s ease-in-out infinite}.collection-new{right:17px}.new-title-notice{position:fixed;inset:18px 0 auto;margin:0 auto;width:max-content;max-width:85vw;padding:11px 22px;border:1px solid #ffe299;border-radius:8px;background:linear-gradient(120deg,#725013,#d8a747);color:#fff5d4;box-shadow:0 4px 20px #22150066;text-align:center;pointer-events:none;z-index:1000}.new-title-notice span{display:block;font-size:12px;font-weight:400}.new-title-notice strong{display:block;margin-top:4px;font-size:15px;overflow-wrap:anywhere}.new-title-notice::backdrop{background:transparent;pointer-events:none}@keyframes collection-dot-pulse{50%{opacity:.4;transform:scale(.8)}}@media(prefers-reduced-motion:reduce){.collection-unread-dot{animation:none}}@media(max-width:900px){.game-root .game-nav-left{left:14px;right:auto}.game-root .progress-grid{gap:6px}.game-root .progress-card{padding:8px}.game-root .progress-card h3{font-size:12px}.game-root .progress-card p,.game-root .progress-card small,.game-root .progress-card button{font-size:10px}.storage-header-tools>input{width:100px}.storage-wallet .wallet{font-size:10px;padding:3px 5px}.storage-wallet .wallet .icon{width:18px;height:18px}}@media(max-width:450px){.game-root .game-nav-left{left:12px;right:auto}.storage-dialog:not(.collection-dialog) .storage-header-tools{flex-basis:100%;width:100%}.storage-header-tools>input{flex:1;width:0}.storage-wallet{gap:3px}}

.game-root .storage-dialog:not(.collection-dialog) .storage-header-tools{width:auto;max-width:100%}.game-root .storage-dialog:not(.collection-dialog) .storage-header-tools>input{flex:none;width:120px}@media(max-width:450px){.game-root .storage-dialog:not(.collection-dialog) .storage-header-tools{width:100%;flex-basis:100%}.game-root .storage-dialog:not(.collection-dialog) .storage-header-tools>input{flex:1;width:0;min-width:55px}}
.game-root .storage-dialog:not(.collection-dialog) .storage-header-tools{display:flex;align-items:center;gap:8px}
@media(max-width:600px){.game-root .storage-dialog .inventory-toolbar{flex-wrap:wrap}.game-root .storage-dialog .inventory-toolbar>.storage-tabs{flex:1 0 100%;min-width:0;flex-wrap:wrap}.game-root .storage-dialog .inventory-toolbar>.storage-tools{flex:1 1 100%;min-width:0}}

/* Market trading: same-size two-by-two actions and bounded storefront grids. */
.game-root .sale-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.game-root .sale-actions>button{width:100%;min-width:0;margin:0;font-size:11px;padding:8px 5px;border-radius:7px;min-height:36px}.game-root .sale-actions>.select-all{border-color:#f25d65}.game-root .sale-actions>.fast-sale{background:linear-gradient(#299d64,#14613e);border-color:#75dba7}.trade-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.my-store-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:12px;align-items:start}.my-store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.trade-card,.trade-preview{min-width:0;border:1px solid #389fae;background:linear-gradient(140deg,#126d7caa,#074159);border-radius:7px;padding:10px;text-align:center;overflow-wrap:anywhere}.trade-card[data-rarity=legendary]{border-color:#e4b447}.trade-card p,.trade-preview p{font-size:11px;margin:7px 0}.trade-card strong,.trade-preview strong{font-size:13px}.trade-art{height:85px;display:grid;place-items:center}.trade-art img{width:100%;height:100%;max-height:85px;object-fit:contain}.trade-preview-button{display:block;width:100%;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;color:inherit}.trade-empty{min-height:170px;display:grid;place-items:center;opacity:.6;font-size:12px}.trade-price,.trade-buy,.trade-price-input{display:flex;align-items:center;justify-content:center;gap:6px}.game-root .trade-buy{width:100%;min-width:0;padding:7px 4px;font-size:12px;border-radius:6px}.trade-buy .icon,.trade-price .icon,.trade-price-input .icon{width:18px;height:18px;flex-shrink:0}.trade-pages{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:15px}.trade-status,.trade-error{font-size:12px;color:#ffca82}.game-root .trade-offer-dialog{width:min(440px,92vw);border-radius:10px}.trade-offer-dialog form{display:grid;gap:10px}.trade-offer-dialog h2{font-size:18px;margin:0}.trade-offer-dialog p{font-size:12px}.trade-offer-items article{padding:10px;background:#034354;border-radius:7px}.trade-offer-items label{display:block;font-size:12px}.trade-price-input{justify-content:flex-start;margin-top:6px}.trade-price-input input{width:100%;min-width:0;padding:8px;border:1px solid #55a8ba;border-radius:5px;background:#082f41;color:white}.trade-offer-dialog footer{display:flex;gap:10px;justify-content:flex-end}.trade-offer-dialog footer button{font-size:12px;padding:8px 14px}.game-root .collection-toolbar .rarity-unread{animation:rarity-unread-outline 1.2s ease-in-out infinite}.collection-new{right:4px}@keyframes rarity-unread-outline{50%{outline:2px solid #ff6570;outline-offset:2px;box-shadow:0 0 9px #ff6570}}@media(prefers-reduced-motion:reduce){.game-root .collection-toolbar .rarity-unread{animation:none;outline:2px solid #ff6570}}@media(max-width:900px){.trade-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.my-store-layout{gap:7px}.trade-card,.trade-preview{padding:6px}.trade-card p,.trade-preview p{font-size:9px}.trade-card strong,.trade-preview strong{font-size:10px}.trade-art{height:60px}.trade-art img{max-height:60px}.trade-empty{min-height:130px;font-size:9px}.game-root .trade-preview button{font-size:9px;padding:5px;min-width:0;width:100%}.trade-card .rarity-label{font-size:9px}.game-root .trade-buy{font-size:10px}.trade-buy .icon{width:14px;height:14px}}

.game-root .trade-card .rarity-label,.game-root .trade-preview .rarity-label{font-size:9px;letter-spacing:0;white-space:nowrap;max-width:100%;box-sizing:border-box;padding:3px 4px;overflow:hidden;text-overflow:ellipsis}

/* Market visual revision: override the older sidebar flex rule explicitly. */
.game-root .inventory-sidebar .sale-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
.game-root .inventory-sidebar .sale-actions>button{box-sizing:border-box;width:100%;min-width:0;min-height:34px;margin:0;padding:7px 5px;font-size:11px;line-height:1.2;white-space:normal;border-radius:7px}
.game-root .inventory-sidebar .sale-actions>.fast-sale{background:#3fed00;color:#000;border-color:#3fed00;text-shadow:none}
.game-root .storage-dialog .trade-market-card{display:flex;flex-direction:column;padding:0;min-width:0}
.game-root .storage-dialog .trade-market-content{display:block;min-height:0;padding:12px 12px 8px;box-sizing:border-box;flex:1;cursor:default}
.game-root .storage-dialog .trade-market-content .rarity-label{font-size:10px;padding:5px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-root .storage-dialog .trade-market-content>strong{display:block;font-size:13px;line-height:1.3}
.game-root .storage-dialog .trade-market-content>small{display:block;font-size:11px;margin-top:6px}
.trade-market-content .trade-seller{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#b5dce7;margin-top:7px}
.game-root .storage-dialog .trade-market-card>.trade-buy{align-self:center;flex:none;width:calc(100% - 24px);max-width:120px;height:28px;min-height:28px;max-height:28px;margin:0 12px 12px;padding:3px 10px;font-size:11px;line-height:1;gap:5px;border-radius:6px;box-sizing:border-box}
.game-root .storage-dialog .trade-market-card>.trade-buy .icon{width:14px;height:14px;min-width:14px}
.trade-market-card .trade-card-status{font-size:9px;padding:0 10px 10px;text-align:center;color:#ffcf87}
@media(max-width:900px){.game-root .inventory-sidebar .sale-actions>button{font-size:9px;min-height:30px;padding:6px 3px}.game-root .storage-dialog .trade-market-content{padding:8px 8px 7px}.game-root .storage-dialog .trade-market-content>strong{font-size:11px}.game-root .storage-dialog .trade-market-content>small{font-size:10px}.trade-market-content .trade-seller{font-size:9px}.game-root .storage-dialog .trade-market-card>.trade-buy{width:calc(100% - 16px);height:26px;min-height:26px;max-height:26px;font-size:10px;margin:0 8px 8px;padding:3px 6px}}

/* My Store uses bounded artwork and normal document flow for every text row. */
.game-root .storage-dialog .my-store-layout{align-items:stretch;gap:10px}
.game-root .storage-dialog .my-store-grid{align-content:start;align-items:stretch}
.game-root .storage-dialog .my-store-card{padding:0;display:flex;min-width:0}
.game-root .storage-dialog .my-store-card .trade-preview-button{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:7px;width:100%;height:auto;max-height:none;min-height:0;box-sizing:border-box;padding:12px!important;white-space:normal;text-align:center;line-height:1.35;border-radius:inherit}
.game-root .storage-dialog .my-store-layout .trade-art{display:block;position:relative;isolation:isolate;overflow:hidden;height:100px;min-height:100px;max-height:100px;width:100%;flex:none;margin:0;box-sizing:border-box}
.game-root .storage-dialog .my-store-layout .trade-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;max-width:100%;max-height:100%;margin:0;object-fit:contain;object-position:center;transform:none;filter:drop-shadow(0 6px 4px #00253970)}
.game-root .storage-dialog .my-store-layout strong{display:block;font-size:13px;line-height:1.35;overflow-wrap:anywhere;white-space:normal}
.game-root .storage-dialog .my-store-layout p{display:block;margin:0;font-size:11px;line-height:1.4;white-space:normal}
.game-root .storage-dialog .my-store-layout .rarity-label{display:block;flex:none;margin:0;line-height:1.25;font-size:10px;padding:5px 7px}
.game-root .storage-dialog .my-store-layout .trade-preview{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:12px;box-sizing:border-box;align-self:start}
.game-root .storage-dialog .my-store-layout .trade-price{display:flex;align-items:center;justify-content:center;gap:5px;margin:3px 0}
.game-root .storage-dialog .my-store-layout [data-trade-cancel]{height:auto;min-height:28px;max-height:none;padding:6px;line-height:1.25;font-size:10px;border-radius:6px;white-space:normal;width:100%;min-width:0;margin:3px 0 0}
.game-root .storage-dialog .my-store-layout .trade-empty{border:1px dashed #68acba;border-radius:15px;background:linear-gradient(145deg,#08586b,#043d50);min-height:200px;opacity:.7}
.game-root .inventory-sidebar .storage-footer:has(.sale-actions){width:min(100%,220px);box-sizing:border-box;align-self:center;padding:10px}
@media(max-width:900px){.game-root .storage-dialog .my-store-layout{gap:7px}.game-root .storage-dialog .my-store-card .trade-preview-button{padding:7px!important;gap:6px}.game-root .storage-dialog .my-store-layout .trade-preview{padding:7px;gap:6px}.game-root .storage-dialog .my-store-layout .trade-art{height:70px;min-height:70px;max-height:70px}.game-root .storage-dialog .my-store-layout strong{font-size:10px}.game-root .storage-dialog .my-store-layout p{font-size:9px}.game-root .storage-dialog .my-store-layout .rarity-label{font-size:8px;padding:4px}.game-root .storage-dialog .my-store-layout .trade-empty{min-height:160px}.game-root .inventory-sidebar .storage-footer:has(.sale-actions){width:min(100%,200px);padding:8px}}

/* Square storefront tiles, consistent sidebar widths and market selection. */
.game-root .inventory-sidebar:has(.sale-actions)>.storage-detail{width:min(100%,220px);box-sizing:border-box;align-self:center}
.game-root .storage-dialog .my-store-card,.game-root .storage-dialog .my-store-layout .trade-preview,.game-root .storage-dialog .my-store-layout .trade-empty{aspect-ratio:1;min-height:0;height:auto;box-sizing:border-box;position:relative;container-type:inline-size}
.game-root .storage-dialog .my-store-card,.game-root .storage-dialog .my-store-layout .trade-preview{background:linear-gradient(145deg,color-mix(in srgb,var(--r) 65%,#073347),color-mix(in srgb,var(--r) 25%,#043449) 62%,#03364b);border-color:var(--r)}
.game-root .storage-dialog .my-store-card .trade-preview-button,.game-root .storage-dialog .store-preview-inner{position:absolute;inset:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(1px,2cqw,7px);padding:clamp(3px,4cqw,12px)!important;box-sizing:border-box;min-height:0;overflow:hidden}
.game-root .storage-dialog .my-store-layout .trade-art{height:auto;min-height:0;max-height:none;flex:1;overflow:hidden}
.game-root .storage-dialog .my-store-layout strong{font-size:clamp(7px,5cqw,13px);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}
.game-root .storage-dialog .my-store-layout p{font-size:clamp(6px,4cqw,11px);line-height:1.2;flex:none;margin:0}
.game-root .storage-dialog .my-store-layout .rarity-label{font-size:clamp(6px,3.8cqw,10px);line-height:1.1;padding:clamp(2px,2cqw,5px);flex:none}
.game-root .storage-dialog .my-store-layout .trade-price .icon{width:clamp(8px,6cqw,15px);height:clamp(8px,6cqw,15px);min-width:0}
.game-root .storage-dialog .my-store-layout [data-trade-cancel]{min-height:0;height:auto;max-height:none;flex:none;font-size:clamp(6px,3.8cqw,10px);padding:clamp(2px,2cqw,6px);margin:0;line-height:1.15}
.game-root .storage-dialog .storage-tabs .trade-refresh-tab{margin-left:auto;background:#fff;color:#000;border-color:#fff;text-shadow:none;box-shadow:none}
.game-root .storage-dialog .trade-market-card{cursor:pointer;outline:0;outline-offset:-2px}
.game-root .storage-dialog .trade-market-card.trade-selected,.game-root .storage-dialog .trade-market-card:focus-within{outline:3px solid #fff;border-color:#fff}
.trade-idle-price{display:flex;justify-content:center;align-items:center;gap:5px;align-self:center;width:calc(100% - 24px);max-width:120px;height:28px;box-sizing:border-box;margin:0 12px 12px;border-radius:6px;background:#fff;color:#162937;font-size:11px}
.trade-idle-price .icon{width:14px;height:14px}
.game-root .storage-dialog .trade-market-card>.trade-buy{display:none}
.game-root .storage-dialog .trade-market-card.trade-selected>.trade-buy,.game-root .storage-dialog .trade-market-card:focus-within>.trade-buy{display:flex}
.trade-market-card.trade-selected>.trade-idle-price,.trade-market-card:focus-within>.trade-idle-price{display:none}
@media(hover:hover){.game-root .storage-dialog .trade-market-card:hover{outline:3px solid #fff;border-color:#fff}.game-root .storage-dialog .trade-market-card:hover>.trade-buy{display:flex}.trade-market-card:hover>.trade-idle-price{display:none}}
.trade-log-table{overflow-x:auto}.trade-log-table table{width:100%;border-collapse:collapse;font-size:12px}.trade-log-table th,.trade-log-table td{padding:10px;text-align:left;border-bottom:1px solid #ffffff26}.trade-log-table th{color:#a7e3f2}.trade-log-table .trade-price{justify-content:flex-start;white-space:nowrap}.trade-log-table td:last-child{white-space:nowrap}
@media(max-width:900px){.game-root .inventory-sidebar:has(.sale-actions)>.storage-detail{width:min(100%,200px)}.trade-idle-price{height:26px;margin:0 8px 8px;width:calc(100% - 16px);font-size:10px}.trade-log-table table{font-size:10px}.trade-log-table th,.trade-log-table td{padding:7px}}

.game-root .storage-dialog .storage-tabs:has(>[data-storage-category="trade-log"]){flex-wrap:nowrap;overflow-x:auto;max-width:100%;min-width:0}.game-root .storage-dialog .storage-tabs:has(>[data-storage-category="trade-log"])>button{flex-shrink:0}

/* Market consistency: fixed tab metrics, centered title, connected sale panel. */
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .storage-tabs>button,.game-root .storage-dialog:has([data-storage-category="trade-log"]) .storage-tabs>button.active{box-sizing:border-box;flex:0 0 auto;height:36px;min-height:36px;padding:7px 11px;font-size:11px;line-height:20px;border-width:1px;letter-spacing:0;transform:none;white-space:nowrap}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head h2{grid-column:2;grid-row:1;position:static;margin:0;text-align:center;transform:none}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head .storage-header-tools{grid-column:1;grid-row:1;justify-self:start;width:auto;max-width:100%;min-width:0}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head .close-button{grid-column:3;grid-row:1;justify-self:end}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .inventory-sidebar{gap:0}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .inventory-sidebar>.storage-tools{align-self:center;width:min(100%,220px);box-sizing:border-box;flex:none;margin:0 0 12px;display:block;z-index:auto}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .inventory-sidebar>.storage-tools select{width:100%;max-width:none;box-sizing:border-box}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .inventory-sidebar>.storage-footer{border:2px solid #32c2df;border-radius:16px 16px 0 0;background:#03364bed}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .inventory-sidebar>.storage-footer>p{text-align:center}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .inventory-sidebar>.storage-detail{border-radius:0 0 20px 20px;border-top:0}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .my-store-card,.game-root .storage-dialog:has([data-storage-category="trade-log"]) .my-store-layout .trade-preview{background:linear-gradient(to bottom left,color-mix(in srgb,var(--r) 70%,#073347),color-mix(in srgb,var(--r) 30%,#043449) 62%,#03364b)}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .trade-market-card{background:radial-gradient(ellipse at 100% 0%,color-mix(in srgb,var(--r) 65%,transparent),transparent 85%),linear-gradient(135deg,#076b81,#033c53)}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .my-store-layout .trade-art>img{inset:8%;width:84%;height:84%;max-width:84%;max-height:84%}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .my-store-layout .trade-price{font-size:clamp(9px,6cqw,17px);font-weight:800}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .my-store-layout [data-trade-cancel]{font-size:clamp(7px,4.6cqw,12px);padding:clamp(3px,3cqw,8px);font-weight:600}
@media(max-width:900px){.game-root .storage-dialog:has([data-storage-category="trade-log"]) .storage-tabs>button,.game-root .storage-dialog:has([data-storage-category="trade-log"]) .storage-tabs>button.active{height:32px;min-height:32px;padding:5px 9px;font-size:10px}.game-root .storage-dialog:has([data-storage-category="trade-log"]) .inventory-sidebar>.storage-tools{width:min(100%,200px)}}
@media(max-width:600px){.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head{grid-template-columns:minmax(0,1fr) auto;row-gap:9px}.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head .storage-header-tools{grid-column:1;grid-row:1;width:100%;max-width:100%}.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head h2{grid-column:1/-1;grid-row:2;justify-self:center}.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head .close-button{grid-column:2;grid-row:1}.game-root .storage-dialog:has([data-storage-category="trade-log"]) .dialog-head .storage-header-tools>input{flex:1;width:0;min-width:40px}}

/* Equal four-column squares; keep the preview action comfortably inside. */
.game-root .storage-dialog .my-store-layout{grid-template-columns:repeat(4,minmax(0,1fr))}
.game-root .storage-dialog .my-store-grid{display:contents}
.game-root .storage-dialog .my-store-layout .trade-preview{grid-column:4;grid-row:1}
.game-root .storage-dialog .store-preview-inner{padding-bottom:clamp(6px,6cqw,18px)!important}
.game-root .storage-dialog .store-preview-inner .trade-art{flex:.85;min-height:0}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .storage-wallet .wallet{box-shadow:none;background:#075064;filter:none;text-shadow:none}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .storage-wallet .wallet::before,.game-root .storage-dialog:has([data-storage-category="trade-log"]) .storage-wallet .wallet::after{display:none}
.game-root .collection-toolbar .rarity-unread{animation:rarity-unread-gentle 3.8s ease-in-out infinite}
@keyframes rarity-unread-gentle{0%,100%{outline:1px solid transparent;outline-offset:1px;box-shadow:0 0 0 transparent}50%{outline:1px solid #ff8994aa;outline-offset:1px;box-shadow:0 0 5px #ff657044}}
@media(prefers-reduced-motion:reduce){.game-root .collection-toolbar .rarity-unread{animation:none;outline:1px solid #ff8994aa}}

/* Scoped revision: Inventory panels and My Store action only. */
.game-root .storage-dialog .store-preview-inner{padding-bottom:clamp(3px,4cqw,12px)!important}
.game-root .storage-dialog .store-preview-inner .trade-art{flex:1;min-height:0}
.game-root .storage-dialog .my-store-layout [data-trade-cancel]{margin-top:auto;min-height:clamp(20px,12cqw,38px);padding:clamp(4px,3cqw,8px);width:100%;flex:none}
.game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px}
.game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head h2{grid-column:2;grid-row:1;margin:0;text-align:center}
.game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head .storage-header-tools{grid-column:1;grid-row:1;width:auto;max-width:100%;min-width:0;display:flex}
.game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head .close-button{grid-column:3;grid-row:1;justify-self:end}
.game-root .storage-dialog[data-storage-kind="inventory"] .inventory-sidebar>:is(.storage-tools,.storage-footer,.storage-detail){width:100%;max-width:none;min-width:0;box-sizing:border-box;align-self:stretch}
.game-root .storage-dialog[data-storage-kind="inventory"] .inventory-sidebar>.storage-tools{display:block;margin:0}
.game-root .storage-dialog[data-storage-kind="inventory"] .storage-tools select{display:block;width:100%;max-width:none;margin:0;box-sizing:border-box}
.game-root .storage-dialog[data-storage-kind="inventory"] .empty-item-detail{border-radius:8px}
.game-root .storage-dialog[data-storage-kind="inventory"] .inventory-event-empty{min-height:min(570px,max(150px,calc(85dvh - 220px)));align-content:start}
.game-root .trade-rejected{color:#ff626e;font-weight:700}
@media(max-width:600px){
 .game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head{grid-template-columns:minmax(0,1fr) auto;row-gap:8px}
 .game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head h2{grid-column:1/-1;grid-row:2;justify-self:center}
 .game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head .close-button{grid-column:2;grid-row:1}
 .game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head .storage-header-tools{width:100%}
 .game-root .storage-dialog[data-storage-kind="inventory"] .dialog-head .storage-header-tools>input{flex:1;width:0;min-width:40px}
}

/* Market review timers and toolbar alignment; no global viewport overrides. */
.game-root .storage-dialog:not(.collection-dialog) .inventory-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:center}
.game-root .storage-dialog:not(.collection-dialog) .inventory-toolbar>.storage-tabs{min-width:0;flex-wrap:nowrap;margin:0;overflow-x:auto}
.game-root .storage-dialog:not(.collection-dialog) .inventory-toolbar>.storage-tools{display:block;width:100%;min-width:0;max-width:none;margin:0;box-sizing:border-box;justify-self:center}
.game-root .storage-dialog:not(.collection-dialog) .inventory-toolbar select{width:100%;max-width:none;margin:0;box-sizing:border-box}
.game-root .storage-dialog[data-storage-kind="market"] .inventory-toolbar>.storage-tools{max-width:220px}
.trade-card-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;min-width:0;flex:none;font-size:10px}
.trade-card-heading .rarity-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;flex:1}
.trade-countdown{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}
.trade-card-heading .trade-countdown{color:#111;background:#fff;border-radius:4px;padding:3px 4px;font-size:inherit;line-height:1.1;flex:none}
.trade-ban-label{color:#ff303b;font-weight:800;white-space:nowrap;font-size:inherit;line-height:1.1;flex:none}
.game-root .storage-dialog .my-store-layout .trade-card-heading{font-size:clamp(6px,3.8cqw,10px);gap:2px}
.game-root .storage-dialog .my-store-layout .trade-card-heading .trade-countdown{padding:clamp(2px,2cqw,5px) 3px}
.game-root .trade-log-table .review-countdown{color:#ffe450;background:none}.game-root .trade-log-table .payout-countdown{color:#50e381;background:none}
.game-root .storage-dialog .trade-market-card .item-art{height:82px;min-height:0}
.game-root .storage-dialog .trade-market-card .item-art img{height:100%;max-height:100%;object-fit:contain}
.game-root .storage-dialog .trade-market-card>.trade-buy,.game-root .storage-dialog .trade-market-card>.trade-idle-price{margin-bottom:16px}
.game-root .storage-dialog .trade-market-card.trade-under-review>.trade-idle-price{display:flex!important;visibility:visible!important;opacity:1!important}
.game-root .storage-dialog .trade-under-review{cursor:default}
@media(max-width:900px){
 .game-root .storage-dialog:not(.collection-dialog) .inventory-toolbar{grid-template-columns:minmax(0,1fr) 240px;gap:12px}
 .game-root .storage-dialog[data-storage-kind="market"] .inventory-toolbar>.storage-tools{max-width:200px}
 .game-root .storage-dialog .trade-market-card .item-art{height:65px}
 .trade-card-heading{font-size:8px}
}
@media(max-width:600px){.game-root .storage-dialog:not(.collection-dialog) .inventory-toolbar{grid-template-columns:minmax(0,1fr)}.game-root .storage-dialog:not(.collection-dialog) .inventory-toolbar>.storage-tools{justify-self:end}.game-root .storage-dialog[data-storage-kind="market"] .inventory-toolbar>.storage-tools{justify-self:center}}

.game-root .storage-dialog .trade-market-card.trade-under-review>.trade-idle-price{background:none;border:0;box-shadow:none;color:#fff}

/* Market item controls and compact boat inventory; no changes to the parent layout. */
.game-root .storage-dialog .my-store-headings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:8px 0 5px;align-items:center;font-size:10px;line-height:1.2}
.my-store-headings>span:first-child{grid-column:span 3;font-size:9px}
.my-store-headings>span:last-child{text-align:center}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .my-store-layout .store-preview-inner .trade-art>img{inset:20%;width:60%;height:60%;max-width:60%;max-height:60%}
.trade-card-heading .trade-ban-label{background:#fff;border-radius:4px;padding:3px 4px}
.game-root .storage-dialog .my-store-layout .trade-card-heading .trade-ban-label{padding:clamp(2px,2cqw,5px) 3px}
.game-root .storage-dialog [data-storage-protect]{align-self:center;width:auto;max-width:100%;min-height:0;padding:5px 8px;font-size:10px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.game-root .storage-dialog [data-storage-protect] .icon{width:13px;height:13px;min-width:13px}
.game-root .storage-dialog [data-storage-protect].is-protected .icon{color:#ffd24b;fill:#ffd24b;filter:drop-shadow(0 0 3px #ffc328a0)}
.game-root .boat-dialog:not(.boat-desktop) .boat-grid-inventory .boat-grid{grid-template-rows:repeat(4,minmax(0,1fr));aspect-ratio:5/4}
@media(max-width:900px){.game-root .storage-dialog .my-store-headings{gap:7px}.my-store-headings>span:first-child{font-size:8px}}

.game-root .cast-button.is-waiting:not(.moving-hidden){opacity:.5!important}

/* Preview-only artwork and readable copy; storefront cards retain their own sizing. */
.game-root .storage-dialog .my-store-layout .trade-preview{border:3px solid #925825}
.game-root .storage-dialog .my-store-layout .store-preview-inner>strong{font-size:12px;line-height:1.2}
.game-root .storage-dialog .my-store-layout .store-preview-inner>p{font-size:10px;line-height:1.2}
.game-root .storage-dialog .my-store-layout .store-preview-inner>[data-trade-cancel]{font-size:10px;line-height:1.2}
.game-root .storage-dialog:has([data-storage-category="trade-log"]) .my-store-layout .store-preview-inner .trade-art>img{inset:0;margin:auto;width:45%;height:70%;max-width:64px;max-height:48px}
.game-root .storage-dialog [data-storage-protect]{display:flex;margin:10px auto 0}
/* Shared column geometry aligns both edges of Sort and the sidebar underneath. */
.game-root .storage-dialog[data-storage-kind="inventory"]{--storage-side:270px;--storage-gap:20px}
.game-root .storage-dialog[data-storage-kind="market"]{--storage-side:220px;--storage-gap:20px}
.game-root .storage-dialog:is([data-storage-kind="inventory"],[data-storage-kind="market"]) :is(.inventory-toolbar,.storage-layout){grid-template-columns:minmax(0,1fr) var(--storage-side);gap:var(--storage-gap)}
.game-root .storage-dialog:is([data-storage-kind="inventory"],[data-storage-kind="market"]) .inventory-toolbar>.storage-tools{width:100%;max-width:none;justify-self:stretch}
.game-root .storage-dialog:is([data-storage-kind="inventory"],[data-storage-kind="market"]) .inventory-sidebar>:is(.storage-footer,.storage-detail){width:100%;max-width:none;align-self:stretch;box-sizing:border-box}
.game-root .shop-dialog .shop-wallet .wallet,.game-root .storage-dialog[data-storage-kind="inventory"] .storage-wallet .wallet{box-shadow:none;background:#075064;filter:none;text-shadow:none}
.game-root .shop-dialog .shop-wallet .wallet::before,.game-root .shop-dialog .shop-wallet .wallet::after,.game-root .storage-dialog[data-storage-kind="inventory"] .storage-wallet .wallet::before,.game-root .storage-dialog[data-storage-kind="inventory"] .storage-wallet .wallet::after{display:none}
.game-root button.wood-sign{cursor:pointer;text-align:left;font-family:inherit;z-index:2}
@media(max-width:1100px){.game-root .storage-dialog[data-storage-kind="inventory"]{--storage-side:240px}}
@media(max-width:900px){.game-root .storage-dialog[data-storage-kind="market"]{--storage-side:200px}.game-root .storage-dialog:is([data-storage-kind="inventory"],[data-storage-kind="market"]){--storage-gap:12px}.game-root .storage-dialog:has([data-storage-category="trade-log"]) .my-store-layout .store-preview-inner .trade-art>img{max-width:48px;max-height:32px}}
@media(max-width:700px){.game-root .storage-dialog:is([data-storage-kind="inventory"],[data-storage-kind="market"]) :is(.inventory-toolbar,.storage-layout){grid-template-columns:minmax(0,1fr)}}

/* Single-item price dialog: compact two-column summary, shared action geometry. */
.game-root .game-dialog.trade-offer-dialog{--offer-rarity:#96afc1;position:fixed;inset:0;margin:auto;width:min(400px,calc(100vw - 24px));height:fit-content;min-height:0;max-width:none;max-height:calc(100dvh - 24px);padding:16px;box-sizing:border-box;border:2px solid var(--offer-rarity);border-radius:10px;background:linear-gradient(225deg,color-mix(in srgb,var(--offer-rarity) 46%,#103849),#073747 80%);overflow:auto}
.game-root .trade-offer-dialog[data-rarity=uncommon]{--offer-rarity:#31ce7c}.game-root .trade-offer-dialog[data-rarity=rare]{--offer-rarity:#28aef0}.game-root .trade-offer-dialog[data-rarity=epic]{--offer-rarity:#b06aeb}.game-root .trade-offer-dialog[data-rarity=legendary]{--offer-rarity:#edb83c}.game-root .trade-offer-dialog[data-rarity=mythic]{--offer-rarity:#ef556c}.game-root .trade-offer-dialog[data-rarity=junk]{--offer-rarity:#b7a27b}
.game-root .trade-offer-dialog form{display:grid;gap:12px;margin:0;padding:0;min-height:0;width:100%}
.game-root .trade-offer-dialog h2{text-align:center;font-size:18px;line-height:1.2;margin:0;color:#fff}
.game-root .trade-offer-items article{background:none;padding:0;margin:0}
.game-root .trade-offer-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:center;margin-bottom:12px}
.game-root .trade-offer-summary .trade-art{height:104px;min-height:0;display:grid;place-items:center}
.game-root .trade-offer-summary .trade-art img{position:static;width:100%;height:100%;max-width:100%;max-height:104px;object-fit:contain}
.game-root .trade-offer-info{display:flex;flex-direction:column;gap:5px;min-width:0;text-align:left}
.game-root .trade-offer-info .rarity-label{margin:0;color:var(--offer-rarity);font-size:10px}
.game-root .trade-offer-info strong{font-size:14px;line-height:1.2;overflow-wrap:anywhere}
.game-root .trade-offer-info p{display:flex;align-items:center;gap:4px;font-size:11px;line-height:1.2;margin:0}
.game-root .trade-offer-info .icon{width:10px;height:10px;flex:none}
.game-root .trade-offer-dialog .trade-price-range{display:block;font-size:11px;line-height:1.3;color:#e7f3fa;margin:0 0 5px}
.game-root .trade-offer-dialog .trade-price-input{margin:0;gap:0;border:1px solid #55a8ba;background:#082f41;border-radius:5px;overflow:hidden}
.game-root .trade-offer-dialog .trade-price-input input{height:38px;min-height:0;min-width:0;flex:1;width:0;padding:7px 10px 7px 0;font-size:16px;border:0;border-radius:0;background:transparent;outline:0;box-shadow:none;box-sizing:border-box}
.game-root .trade-offer-dialog .trade-error{margin:0;line-height:1.2;font-size:11px;overflow-wrap:anywhere}
.game-root .trade-offer-dialog .trade-error:empty{display:none}
.game-root .trade-offer-dialog footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0}
.game-root .trade-offer-dialog footer button{display:flex;align-items:center;justify-content:center;width:100%;height:38px;min-height:38px;min-width:0;margin:0;padding:7px 10px;border:1px solid #8ba9b6;border-radius:5px;background:#244d60;color:#fff;font:600 12px/1.2 Arial,sans-serif;box-shadow:none;text-shadow:none;box-sizing:border-box}
.game-root .trade-offer-dialog footer button[type=submit]{background:#26874e;border-color:#70c68f}
@media(max-height:430px){.game-root .game-dialog.trade-offer-dialog{padding:12px;max-height:calc(100dvh - 16px)}.game-root .trade-offer-dialog form{gap:8px}.game-root .trade-offer-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:8px}.game-root .trade-offer-summary .trade-art,.game-root .trade-offer-summary .trade-art img{height:84px;max-height:84px}.game-root .trade-offer-dialog footer button{height:34px;min-height:34px}.game-root .trade-offer-dialog .trade-price-input input{height:34px}}

.game-root .trade-offer-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:5px}
.game-root .trade-offer-heading .rarity-label{font-size:10px;color:var(--offer-rarity);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-root .trade-offer-heading h2{grid-column:2;outline:none}
.game-root .trade-offer-dialog .trade-price-input>.icon{width:16px;height:16px;padding:0 9px;box-sizing:content-box;flex:0 0 16px}
.game-root .trade-offer-dialog .trade-price-input:focus-within{outline:2px solid #63d8f2;outline-offset:1px}
.game-root .trade-offer-dialog.offer-short-viewport form{gap:6px}
.game-root .trade-offer-dialog.offer-short-viewport .trade-offer-summary{margin-bottom:6px}
.game-root .trade-offer-dialog.offer-short-viewport .trade-art,.game-root .trade-offer-dialog.offer-short-viewport .trade-art img{height:54px;max-height:54px}
.game-root .trade-offer-dialog.offer-short-viewport .trade-offer-info{gap:3px}
.game-root .trade-offer-dialog.offer-short-viewport footer button{height:32px;min-height:32px}
.game-root .game-dialog.trade-offer-dialog{animation:none}

/* Active event: centered, dismissible without activating menus underneath. */
.game-root .live-event-overlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:16px;background:#001b302e;pointer-events:auto}
.game-root .live-event-overlay .live-event{display:block;position:relative;inset:auto;width:min(360px,100%);max-height:calc(100svh - 32px);overflow:auto;margin:0;border-radius:12px;overflow-wrap:anywhere}
.game-root .live-event-overlay .live-event p{white-space:pre-wrap}
.game-root.exploring .live-event-overlay{display:none}
/* Skill Tree: two independent branches, scoped to its own popup. */
.game-root .skill-tree-dialog{width:min(620px,92vw);height:fit-content;max-height:88svh;padding:0;border:2px solid #5bc0cb;border-radius:10px;color:#e9fbff;background:linear-gradient(145deg,#064d64,#052b40);box-shadow:0 14px 50px #00162388;overflow:auto}.skill-tree-dialog::backdrop{background:#00152199}.skill-tree-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;border-bottom:1px solid #5bc0cb55;position:sticky;top:0;background:#064359;z-index:2}.skill-tree-dialog h2{margin:0;font-size:20px}.skill-tree-dialog header button{width:30px;height:30px;min-height:30px;padding:5px;border:0;background:#ffffff12;color:white;border-radius:5px}.skill-tree-dialog .icon{width:24px;height:24px}.skill-tree-body{padding:14px 20px}.skill-intro{font-size:12px;text-align:center;color:#b9dce5;margin:0 0 15px}.skill-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.skill-branch{min-width:0}.skill-branch h3{display:flex;align-items:center;justify-content:center;gap:10px;margin:0;background:linear-gradient(120deg,#127791,#08526c);border:1px solid #4ba4b8;border-radius:6px;padding:12px;font-size:15px}.skill-nodes{position:relative;display:flex;flex-direction:column;align-items:center;gap:22px;padding:18px 0}.skill-nodes:before{content:'';position:absolute;top:0;bottom:55px;width:2px;background:#488b9b}.skill-node{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;max-width:100%;text-align:center}.skill-node strong{font-size:13px;background:#06384c;padding:2px 6px}.skill-tree-dialog .skill-node-icon{position:relative;display:grid;place-items:center;width:76px;height:76px;min-height:0;padding:12px;border:2px solid #538492;border-radius:8px;color:#b8d5dc;background:linear-gradient(145deg,#1e586b,#082c40);box-shadow:0 4px 10px #001c3255}.skill-node-icon .icon,.skill-node-icon img{width:44px;height:44px;object-fit:contain}.skill-node-icon span{position:absolute;right:-7px;bottom:-7px;background:#173c50;border:1px solid #668f97;border-radius:4px;padding:2px 5px;font-size:10px}.is-unlocked .skill-node-icon{border-color:#e9c65b;color:#ffe69b;background:linear-gradient(145deg,#987628,#3c392b)}.skill-node-icon:hover{filter:brightness(1.15);outline:1px solid white}.skill-stage-dots{display:flex;gap:5px;background:#06384c;padding:2px 6px}.skill-stage-dots i{width:6px;height:6px;border-radius:50%;background:#608391}.skill-stage-dots .earned{background:#ffd45a}.skill-back{font-size:11px;min-height:28px;padding:4px 8px;background:#ffffff12;border:1px solid #5a94a7;color:#fff;border-radius:4px}.skill-detail{max-width:380px;margin:8px auto;text-align:center}.skill-detail-icon .icon,.skill-detail-icon img{width:56px;height:56px;object-fit:contain;color:#ffe49b}.skill-detail h3{font-size:18px;margin:8px 0}.skill-detail p{font-size:12px;line-height:1.5}.skill-detail>small{font-size:11px}.skill-requirements{border:1px solid #438092;border-radius:5px;margin:14px 0;padding:10px 14px;background:#00283e66}.skill-requirements>div{display:flex;gap:12px;align-items:center;justify-content:space-between;text-align:left;padding:7px 0;font-size:13px}.skill-requirements small{display:block;font-size:10px}.skill-requirements strong{white-space:nowrap}.skill-requirements .met{color:#87e59d}.skill-requirements .missing,.skill-error{color:#ff9387}.skill-cost-note{color:#a6c5d0}.skill-tree-dialog .skill-unlock{width:100%;min-height:36px;border:1px solid #ffe499;background:linear-gradient(#ebca76,#bf9235);color:#2c260e;font-weight:bold;border-radius:5px;font-size:13px}.skill-tree-dialog button:disabled{opacity:.5}.game-root [data-action=skills][hidden]{display:none!important}.game-root .catch-dialog.double-catch-dialog{width:min(720px,92vw)}.double-catch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.double-catch-grid .catch-result{min-width:0;padding:12px;border:1px solid #62a9b8;border-radius:7px}.double-catch-grid .catch-art{height:90px}.double-catch-grid .catch-art img{max-height:90px;max-width:100%;object-fit:contain}.double-catch-grid h3{font-size:16px}.double-catch-grid p{font-size:12px}.double-catch-grid .catch-actions button{font-size:11px;padding:5px;min-height:30px}.double-catch-grid .catch-rewards{font-size:11px}@media(max-height:450px){.skill-tree-body{padding:10px 16px}.skill-nodes{gap:12px;padding:12px 0}.skill-tree-dialog .skill-node-icon{width:54px;height:54px;padding:8px}.skill-node-icon .icon,.skill-node-icon img{width:32px;height:32px}.skill-branch h3{padding:7px;font-size:13px}.skill-node strong{font-size:11px}.skill-intro{margin-bottom:9px;font-size:11px}.double-catch-grid .catch-art,.double-catch-grid .catch-art img{height:60px;max-height:60px}}

.game-root .game-dialog.catch-dialog.double-catch-dialog[open]{width:min(620px,92vw)!important;height:fit-content!important;max-height:92svh;aspect-ratio:auto;border-radius:10px;overflow:auto}.game-root .double-catch-dialog .dialog-body{flex:none;overflow:visible;padding:10px 14px 14px}.game-root .double-catch-grid .catch-result{height:auto;padding:10px;background:#04384f55}.game-root .double-catch-grid .catch-result .catch-art{height:90px;flex:none}.game-root .double-catch-grid .catch-result>small{display:block}.game-root .double-catch-grid .catch-result h3{font-size:16px}.game-root .double-catch-grid .catch-actions button{width:100%;border-radius:5px;font-size:11px}.game-root .double-catch-grid .catch-rewards{flex-wrap:wrap;gap:4px}.game-root .double-catch-grid .catch-rewards strong{font-size:10px;padding:3px 5px}.game-root .double-catch-continue{font-size:12px;min-height:32px;border-radius:5px;padding:7px;margin-top:10px}@media(max-height:450px){.game-root .double-catch-grid .catch-result .catch-art{height:65px}.game-root .double-catch-grid .catch-result{gap:3px;padding:7px}.game-root .double-catch-dialog .dialog-body{padding:6px 12px 10px}}
/* Workshop: compact branch labels, full artwork and an independent requirements popup. */
.game-root .workshop-dialog>header{justify-content:center;min-height:52px;padding:12px 48px}.game-root .workshop-dialog>header h2{text-align:center}.game-root .workshop-dialog [data-skill-close]{position:absolute;right:12px;top:10px;color:#fff;background:transparent;border:0;box-shadow:none;padding:4px}.game-root .workshop-dialog [data-skill-close] .icon{color:#fff;width:24px;height:24px}.workshop-dialog .skill-branch h3{width:min(170px,100%);margin:0 auto;padding:9px 10px}.game-root .workshop-dialog .skill-node-icon{padding:0;overflow:visible}.workshop-dialog .skill-node-icon>img,.workshop-dialog .skill-node-icon>.icon{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;border-radius:5px}.workshop-dialog .skill-node-icon>.icon{padding:4px}.workshop-dialog .is-inactive .skill-node-icon{filter:saturate(.2);opacity:1}.workshop-state{font-size:10px;color:#bcdce1;background:#06384c;padding:1px 5px}.workshop-dialog .skill-node{gap:5px}.game-root .workshop-requirement{width:min(360px,90vw);height:fit-content;max-height:88svh;overflow:auto;border:1px solid #70b5c5;border-radius:8px;background:linear-gradient(140deg,#07536c,#052e43);color:#eefaff;padding:18px}.workshop-requirement::backdrop{background:#001b3280}.workshop-requirement h2{text-align:center;font-size:19px;margin:0 0 12px}.workshop-upgrade-name{text-align:center;font-size:14px;margin:0}.workshop-upgrade-name>small{display:block;font-size:11px;margin-top:4px;color:#adced7}.workshop-requirement .skill-cost-note{font-size:11px;line-height:1.4}.workshop-requirement .skill-error{font-size:12px}.workshop-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.game-root .workshop-actions button{min-height:35px;padding:7px;border:1px solid #68a8bc;border-radius:5px;background:#165b75;color:white;font-size:12px;font-weight:bold}.game-root .workshop-actions [data-workshop-activate]{background:#d6b35e;border-color:#ffe39b;color:#30280f}.workshop-dialog button{touch-action:manipulation;-webkit-touch-callout:none;user-select:none}.game-root .workshop-dialog .skill-node-icon:disabled{cursor:wait}@media(max-height:450px){.game-root .workshop-dialog>header{min-height:44px;padding:9px 42px}.workshop-dialog .skill-nodes{gap:9px;padding:10px 0}.workshop-dialog .skill-branch h3{font-size:12px;padding:6px}.game-root .workshop-requirement{padding:12px 16px}.workshop-requirement .skill-requirements{margin:9px 0}}

/* Workshop labels stay attached to opaque upgrade tiles. */
.workshop-dialog .skill-node{gap:2px}
.workshop-dialog .skill-node>strong{border-radius:4px;margin-top:-2px;position:relative;z-index:1}
.workshop-dialog .skill-stage-dots{margin-top:0}

.game-root .storage-space-warning{width:min(390px,90vw);max-height:85svh;padding:18px;border-radius:8px}.storage-space-warning h2{font-size:18px;text-align:center}.storage-space-warning p{font-size:13px;line-height:1.5}

/* Compact map profile; preserve its existing width. */
.game-root.exploring .player-chip{padding-top:4px;padding-bottom:4px;min-height:0}
.game-root.exploring .player-chip strong{line-height:1.15}
.game-root.exploring .player-chip .level-line{margin-top:2px;line-height:1.1}

/* Map profile matches the voice toolbar corners. */
.game-root.exploring .player-chip{border-radius:6px}

/* Closed room chat shares a compact row with Voice. */
.game-root .public-chat.chat-collapsed{width:72px;height:var(--chat-closed-height,35px);box-sizing:border-box;padding:4px}
.game-root .public-chat.chat-collapsed .chat-toggle{height:100%;min-height:0;padding:0;gap:3px;font-size:11px}
.game-root .public-chat.chat-collapsed .chat-toggle svg{width:15px;height:15px}
.game-root.exploring .player-chip strong{transform:scale(.90);transform-origin:left center}

/* Monster combat stays inside the current map HUD. */
.monster-mode{position:absolute;z-index:28;width:40px;height:40px;padding:0;border-radius:50%;font-size:10px;color:#fff;background:#123e56;border:1px solid #70acbf}.monster-mode[aria-pressed=true]{background:#8a3920;border-color:#ffc36b}
.monster-health{position:absolute;top:28px;left:50%;transform:translateX(-50%);width:min(290px,35vw);display:grid;gap:3px;z-index:20;pointer-events:none}.monster-hp,.monster-player-hp{position:relative;height:16px;border:1px solid #e3b481;background:#152738;border-radius:3px;overflow:hidden}.monster-hp i,.monster-player-hp i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#147b45,#6dce54);transition:width .2s linear}.monster-hp span,.monster-player-hp span{position:absolute;inset:0;text-align:center;font-size:10px;line-height:14px;color:#fff;text-shadow:0 1px 2px #000}.monster-player-hp{position:absolute;z-index:22;pointer-events:none;min-width:100px}.monster-player-hp i{background:linear-gradient(90deg,#147b45,#6dce54)}.monster-player-dead .cast-button,.monster-player-dead .joystick,.monster-player-dead .fishing-loadout,.monster-player-dead .fishing-cancel{visibility:hidden!important}.monster-spectate{position:absolute;z-index:32;left:50%;bottom:28px;transform:translateX(-50%);display:grid;gap:8px;padding:12px;background:#092d43e8;border:1px solid #659eb0;border-radius:6px;text-align:center;color:#fff;min-width:240px;font-size:12px}.monster-spectate div{display:flex;align-items:center;justify-content:space-between;gap:12px}.monster-spectate button{padding:6px 12px;font-size:11px;border-radius:4px;background:#1c526b;color:#fff;border:1px solid #74a5b5}.monster-spectate strong{font-size:13px}

.monster-mode{min-width:40px;min-height:40px;aspect-ratio:1}

.game-root.monster-attack-mode .cast-button{color:#ffdf36;border-color:#ffdf36}.game-root.monster-attack-mode .cast-button .icon{color:#ffdf36}.game-root.monster-attack-mode .cast-button .cast-custom{display:none!important}.game-root.monster-attack-mode .cast-button [data-monster-icon]{display:grid;place-items:center}.game-root.monster-attack-mode .cast-button [data-monster-icon] .icon{display:block;width:32px;height:32px}.monster-mode[hidden]{display:none!important}.monster-reward-dialog{width:min(540px,90vw);max-height:85vh;box-sizing:border-box;padding:20px;background:linear-gradient(145deg,#164b61,#062a3d);color:#fff;border:2px solid #dcb86b;border-radius:8px;text-align:center}.monster-reward-dialog::backdrop{background:#00121bcc}.monster-reward-dialog h3{margin:0 0 14px}.monster-reward-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:55vh;overflow-y:auto}.monster-reward-grid article{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;padding:10px 5px;border:1px solid var(--reward-color,#d5b876);border-radius:5px;background:#082d42}.monster-reward-grid img,.monster-reward-grid .icon{width:54px;height:48px;object-fit:contain}.monster-reward-grid strong{font-size:12px;overflow-wrap:anywhere}.monster-reward-grid small{font-size:10px}.monster-reward-dialog button{background:#e8ba56;color:#172c38;border:0;border-radius:5px;min-height:36px;padding:8px 26px;font-weight:bold}.monster-reward-dialog p{font-size:12px;color:#ffb7a1}

@media(max-height:500px){.monster-reward-dialog{padding:12px 16px;max-height:92vh}.monster-reward-dialog h3{font-size:16px;margin:0 0 8px}.monster-reward-grid article{padding:6px 4px;gap:2px}.monster-reward-grid img,.monster-reward-grid .icon{width:40px;height:32px}.monster-reward-grid strong{font-size:11px}.monster-reward-grid small{font-size:9px}.monster-reward-dialog p{margin:5px 0}.monster-reward-dialog button{min-height:32px;padding:6px 20px}}

.monster-reward-grid article{aspect-ratio:1;box-sizing:border-box;overflow:hidden}.monster-reward-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}.monster-reward-grid img,.monster-reward-grid .icon{height:40%;max-height:48px;width:55%;flex-shrink:1}.monster-reward-grid strong{font-size:11px}.monster-claim-toast{position:absolute;z-index:110;top:25%;left:50%;transform:translateX(-50%);background:#123f4e;border:1px solid #e3c06e;border-radius:6px;color:#fff;padding:10px 18px;font-size:13px;pointer-events:none}@media(max-width:500px){.monster-reward-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Compact Monster reward and battle dialogs; independent of game layout. */
.monster-reward-dialog{width:min(430px,92vw);max-height:94vh;padding:14px 18px;overflow:hidden}.monster-reward-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:none;overflow:visible;gap:7px}.monster-reward-grid article{padding:7px 5px;background:linear-gradient(225deg,color-mix(in srgb,var(--reward-color,#fff) 65%,#173748),#072738 85%);border-color:var(--reward-color,#fff);gap:2px}.monster-reward-grid article img,.monster-reward-grid article .icon{height:38%;max-height:36px;width:55%}.monster-reward-grid article strong{margin-top:5px;line-height:1.15;font-size:10px}.monster-reward-grid article small{font-size:10px;line-height:1.1}.monster-reward-grid .reward-currency{--reward-color:#fff}.monster-reward-grid .reward-currency strong{font-size:13px}.reward-pages{display:flex;justify-content:center;align-items:center;gap:12px;margin:7px 0;font-size:11px}.reward-pages[hidden]{display:none}.monster-reward-dialog .reward-pages button{min-height:22px;height:22px;padding:0 10px;font-size:16px}.monster-reward-dialog [role=alert]:empty{margin:4px 0}.monster-reward-dialog [data-claim]{margin-top:6px}.monster-exit-dialog,.monster-game-over{width:min(340px,85vw);padding:22px;color:#fff;text-align:center;border:1px solid #d5b475;border-radius:8px;background:linear-gradient(145deg,#16465a,#092938)}.monster-game-over::backdrop{background:#00141bba}.monster-game-over h3{margin:0 0 14px}.monster-game-over p,.monster-exit-dialog p{font-size:13px}.monster-game-over button,.monster-exit-dialog [data-leave]{display:block;min-width:140px;min-height:36px;margin:18px auto 0;padding:8px 24px;color:#fff;font-weight:700;border:1px solid #efbd80;border-radius:5px;background:linear-gradient(#bf583b,#803629)}
@media(max-width:500px){.monster-reward-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.monster-reward-dialog{width:min(340px,92vw)}}
@media(max-height:420px){.monster-reward-dialog{width:min(370px,92vw);padding:10px 14px}.monster-reward-dialog h3{font-size:14px}.monster-reward-dialog [data-claim]{min-height:28px;padding:5px 20px}.monster-reward-grid article{padding:5px 4px}.monster-reward-grid article strong{margin-top:3px}}

/* Solo respawn: keep the world canvas and a single countdown/exit overlay. */
.monster-solo-respawn>:not(canvas):not(.monster-respawn-wait){visibility:hidden!important;pointer-events:none!important}.monster-respawn-wait{position:absolute;z-index:100;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:12px;color:white;text-align:center;text-shadow:0 1px 4px #001823;max-width:85%;width:320px}.monster-respawn-wait strong{font-size:16px;font-weight:600}.monster-respawn-wait button{min-width:90px;padding:6px 18px;font-size:11px;color:white;border:1px solid #cda775;border-radius:4px;background:linear-gradient(#8f4632,#592e28)}.monster-respawn-wait small{font-size:11px;color:#ffd0c5}

.monster-reward-grid .reward-item{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 12px 11px;align-items:center;justify-items:center;gap:2px}.monster-reward-grid .reward-item img{width:95%;height:100%;max-height:none;min-height:0;object-fit:contain}.monster-reward-grid .reward-item strong{display:block;width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;line-height:12px;margin:0;font-size:10px}.monster-reward-grid .reward-item small{margin:0;line-height:11px}.monster-reward-grid .reward-currency{position:relative}.monster-reward-grid .reward-currency strong{position:relative;top:3px}.monster-claim-toast{max-width:85%;text-align:center;white-space:normal}
.monster-attack-mode [data-action=boat-storage],.monster-attack-mode .loadout-slot,.monster-attack-mode .gadget-slot,[data-monster-locked]{pointer-events:none!important;filter:grayscale(1);opacity:.45!important}
.game-root.map-moving .public-chat,.game-root.map-moving .public-chat.chat-collapsed.chat-moving,.game-root.map-moving .voice-widget{opacity:.3!important}.game-root:not(.map-moving) .public-chat,.game-root:not(.map-moving) .voice-widget{opacity:1}.public-chat,.voice-widget{transition:opacity .18s ease}

/* Reward fish art gets its own sizing; other reward types retain their layout. */
.monster-reward-grid .reward-fish{padding:2px 2px 7px;gap:1px}.monster-reward-grid .reward-fish img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform:scale(1.15);transform-origin:center 40%}.monster-spectate{left:12px;bottom:12px;transform:none;min-width:0;width:220px;max-width:calc(100% - 24px);box-sizing:border-box;padding:8px;gap:5px}.monster-spectate [data-watch-prev],.monster-spectate [data-watch-next]{width:26px;height:26px;min-width:0;min-height:0;box-sizing:border-box;aspect-ratio:1;padding:0;flex-shrink:0;color:#fff;font-size:17px;font-weight:700}.monster-spectate [data-monster-leave]{justify-self:center;min-height:0;padding:4px 12px;font-size:10px}.monster-spectate span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.monster-reward-grid .reward-fish{position:relative;display:flex;justify-content:flex-end;padding:2px;gap:0}.monster-reward-grid .reward-fish img{position:absolute;inset:1px 0 23px;width:100%;height:calc(100% - 24px);object-fit:contain;transform:none}.monster-reward-grid .reward-fish strong,.monster-reward-grid .reward-fish small{position:relative;z-index:1}.monster-reward-grid .reward-exp .icon,.monster-reward-grid .reward-exp img{width:78%;height:65%;max-height:none}.monster-attack-mode .cast-button.attack-cooldown{opacity:.45;cursor:wait}.monster-heal-number{position:absolute;z-index:35;text-align:center;pointer-events:none;color:#55ff79;font-size:15px;font-weight:bold;animation:monster-gain 1s both}.monster-regenerating{box-shadow:0 0 13px #4aff67,inset 0 0 9px #5aff87}.monster-regenerating i{filter:brightness(1.5);background:linear-gradient(90deg,#168743,#63ff85)}@keyframes monster-gain{0%{opacity:0;margin-top:-10px}20%{opacity:1}70%{opacity:1}100%{opacity:0;margin-top:-26px}}

/* Currency reward quantities share one baseline regardless of icon dimensions. */
.monster-reward-grid .reward-currency strong{position:absolute;top:auto;bottom:10px;left:0;right:0;margin:0;text-align:center}.monster-reward-grid .reward-currency .icon,.monster-reward-grid .reward-currency img{position:absolute;top:8px}.monster-reward-grid .reward-exp .icon,.monster-reward-grid .reward-exp img{top:0}

/* Room invitations: compact, independent of world/canvas scaling. */
.game-root .social-popover .player-online{color:#4ee36b;text-align:center;font-weight:700}
.social-profile-actions{display:flex;align-items:center;justify-content:center;gap:8px}.social-profile-actions>button,.social-profile-actions>[data-join-slot]{flex:1;min-width:0}.social-profile-actions [data-join-slot]:empty{display:none}.social-profile-actions [data-join-slot] button{width:100%}.social-profile-actions .join-full{display:block;color:#ff5151;margin-top:14px}
.room-join-notice{position:absolute;z-index:110;top:10px;left:50%;transform:translateX(-50%);width:min(290px,80%);padding:10px 12px;border:1px solid #5dbdc6;border-radius:7px;background:linear-gradient(135deg,#08445af5,#092c3ef5);box-shadow:0 4px 16px #00182266;color:white;text-align:center;font-size:12px}.room-join-notice>div{display:flex;gap:8px;margin-top:8px}.room-join-notice button{flex:1;min-height:30px;padding:5px 10px;font-size:12px;border-radius:5px}
.room-join-loading{position:absolute;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:#032f45;color:white}.room-join-loading progress{width:min(280px,70%);accent-color:#55d5df}.room-join-loading small{font-size:12px}
.social-profile-actions{margin-top:14px;align-items:stretch}.social-popover .social-profile-actions .primary{margin:0;height:100%;min-height:38px}.social-profile-actions .join-full{margin:0;display:grid;place-items:center;height:100%}
.social-profile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.social-popover .social-profile-actions .primary{box-sizing:border-box;width:100%;height:38px;padding:6px;font-size:12px;line-height:1.2;white-space:nowrap}.social-profile-actions:has([data-join-slot]:empty){grid-template-columns:1fr}.room-join-notice button.primary,.room-join-notice button.secondary{box-sizing:border-box;height:34px;min-height:34px;padding:5px 10px;font-size:12px;line-height:1.2;align-self:stretch}

/* Leaderboard menus only; existing table, portraits and rank styling are retained. */
.leaderboard-categories{display:none!important}
.game-dialog:has(.board-toolbar) .dialog-head{display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(140px,1fr);align-items:center;gap:8px}
.game-dialog:has(.board-toolbar) #game-dialog-title{text-align:center;justify-self:center;margin:0}
.game-dialog:has(.board-toolbar) .dialog-head>.close-button{justify-self:end}
.game-dialog:has(.board-toolbar) .leaderboard-categories{display:flex!important;justify-self:start;margin:0;gap:6px}
.leaderboard-categories button{min-height:30px;padding:5px 10px;font-size:12px}
.board-toolbar>.storage-tabs{overflow-x:auto;max-width:100%;gap:6px;padding-bottom:4px}
.board-toolbar>.storage-tabs button{white-space:nowrap;flex-shrink:0}
@media(max-width:600px){.game-dialog:has(.board-toolbar) .dialog-head{grid-template-columns:minmax(110px,1fr) auto minmax(28px,1fr)}.leaderboard-categories button{font-size:10px;padding:5px 6px}.game-dialog:has(.board-toolbar) #game-dialog-title{font-size:16px}}

/* Join approval actions share exactly one style; only their text colors differ. */
.room-join-notice [data-allow]{width:0;flex:1 1 0;box-sizing:border-box;height:34px;min-height:34px;margin:0;padding:5px 10px;font-size:12px;font-weight:700;line-height:1.2;border-radius:5px}
.room-join-notice [data-allow="false"]{color:#ff4141}
.room-join-notice [data-allow="true"]{color:#3fed00}

/* Settings tabs stay outside the scrolling content on short mobile screens. */
.game-root .settings-dialog .dialog-body{overflow:hidden;min-height:0}
.game-root .settings-dialog .settings-tabs{flex:0 0 auto;min-height:35px}
.game-root .settings-dialog .settings-tabs button{min-width:0;white-space:nowrap}
.game-root .settings-dialog .settings-content{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain}
.game-root .settings-dialog .settings-content #preferences-form{min-height:100%;height:auto}
/* Voice remains available while waiting for a Boss respawn. */
.monster-solo-respawn>.voice-widget{visibility:visible!important;pointer-events:auto!important}

.last-online .friend-map-name{color:#fff;font-weight:400}
.controller-adjustments{position:absolute;z-index:5;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(360px,48%);display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 12px;background:#043f55e8;border-radius:8px}
.controller-adjustments .controller-opacity,.controller-adjustments .controller-size{position:static;transform:none;width:auto;padding:0;background:none;font-size:11px;text-align:center;min-width:0}
.controller-adjustments input{display:block;width:100%;margin:5px 0 0;touch-action:auto}

.skill-requirements .skill-locked-count{color:#ffe45c}
.blueprint-protected-confirm>p{font-size:13px;line-height:1.6}
.game-root .blueprint-protected-confirm [data-protected-yes]{background:#d6b35e;border-color:#ffe39b;color:#30280f}

.collection-preview-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:5px;padding:0 12px 12px}
.game-root .collection-preview-actions button{align-self:stretch;width:100%;max-width:100%;min-width:0;min-height:30px;box-sizing:border-box;padding:5px 8px;font-size:10px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #68a8bc;background:#165b75;color:#fff}
.collection-preview-actions .icon{width:13px;height:13px}
.collection-habitats{border-radius:8px;padding:14px}.collection-habitats header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.collection-habitats h2{margin:0;font-size:16px}.collection-habitats header button{background:none;border:0;color:white;font-size:22px;padding:0 5px}.collection-habitats [data-visit-map]{border:0;border-bottom:1px solid #559aaa55;background:none;color:#ecffff;text-align:left;font-size:13px;min-height:32px;padding:6px 2px;border-radius:0}.collection-habitats [data-visit-map]:disabled{opacity:.45}.collection-habitats small{font-size:10px}

/* Scoped on-demand asset feedback; cached pages do not flash a loader. */
.lazy-assets-host{position:relative}.lazy-panel-loading{position:absolute;inset:0;z-index:8;background:#073547ed;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:8px;font-size:13px}.lazy-panel-loading .spinner{width:22px;height:22px}.map-assets-loading{width:min(280px,80vw);padding:22px;border:1px solid #60bdd1;border-radius:10px;background:#08394b;color:white;text-align:center}.map-assets-loading::backdrop{background:#001923aa}.map-assets-loading .spinner{display:inline-block;width:24px;height:24px}.map-assets-loading p{font-size:14px;margin:10px 0 0}

.game-hud .menu-refresh{color:#fff}.game-hud .menu-refresh:hover{color:#9ee8f2}

.game-root .live-event-overlay{overflow-y:auto;align-content:safe center;gap:12px}

.game-root .tcg-menu-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}.game-root .tcg-menu-button small{font-size:8px;line-height:1}

/* Main menu accessories: keep map HUD unchanged. */
.game-root:not(.exploring) .game-hud>.tcg-menu-button{margin-right:auto;align-self:center;flex-shrink:0}
.game-root:not(.exploring) .hud-right>.friend-bell{margin:0 4px 0 0;flex-shrink:0}
.game-root:not(.exploring) .game-hud>.menu-refresh{position:fixed;right:18px;bottom:16px;margin:0;width:32px;height:32px;z-index:5}
.game-root:not(.exploring) .menu-brand .logo{left:12px;position:relative}
.hud-quest{position:relative}
.hud-quest.quest-reward-ready::after{content:"";position:absolute;right:8px;top:6px;width:6px;height:6px;border-radius:50%;background:#ff3535;pointer-events:none}

/* TCG shortcut uses the navigation icon/label scale. */
.game-root:not(.exploring) .game-hud>.tcg-menu-button{width:auto;height:auto;min-width:60px;min-height:52px;padding:7px 5px;gap:4px;margin-left:8px;color:#e7fcff;font-size:10px;font-weight:bold}
.game-root .tcg-menu-button .icon{width:42px;height:42px;margin:-3px 0;transition:transform .16s}
.game-root .tcg-menu-button small{font:inherit;line-height:normal;max-width:76px}
.game-root .tcg-menu-button:hover .icon,.game-root .tcg-menu-button:active .icon{transform:scale(1.12)}
@media(max-width:900px){
 .game-root:not(.exploring) .game-hud>.tcg-menu-button{min-width:48px;min-height:40px;padding:4px;font-size:8px}
 .game-root .tcg-menu-button .icon{width:32px;height:32px}
}

.game-root .tcg-menu-button .icon{width:48px;height:48px}
@media(max-width:900px){.game-root .tcg-menu-button .icon{width:37px;height:37px}}

.game-root:not(.exploring) .game-nav button,.game-root:not(.exploring) .tcg-menu-button small,.game-root:not(.exploring) .main-actions strong{text-shadow:0 1px 2px #00243288}
.game-root:not(.exploring) .game-hud>.tcg-menu-button{margin-left:12px}
.game-root:not(.exploring) .menu-brand .logo{left:18px}

/* Apply to the label itself: existing label rules override inherited shadows. */
.game-root:not(.exploring) .game-nav button>span,.game-root:not(.exploring) .tcg-menu-button small,.game-root:not(.exploring) .main-actions strong{text-shadow:0 1px 2px #001b2dcc}
.game-root:not(.exploring) .game-hud>.tcg-menu-button{margin-left:18px}

.game-root:not(.exploring) .game-hud:has(.card-shop-menu-button)>.tcg-menu-button:not(.card-shop-menu-button){margin-right:0}
.game-root:not(.exploring) .game-hud>.card-shop-menu-button{margin-left:4px}

/* Keep the third leaderboard category beside Boss on narrow screens. */
.game-dialog:has(.board-toolbar) .leaderboard-categories{flex-wrap:nowrap}
.leaderboard-categories button{white-space:nowrap;flex-shrink:0}
@media(max-width:600px){.game-dialog:has(.board-toolbar) .dialog-head{grid-template-columns:max-content minmax(0,1fr) auto;gap:6px}.game-dialog:has(.board-toolbar) #game-dialog-title{font-size:clamp(11px,3.5vw,16px)}}

.game-root:not(.exploring) .game-hud>.battleship-menu-button{margin-left:4px;margin-right:0}
.game-root:not(.exploring) .game-hud:has(.battleship-menu-button)>.card-shop-menu-button{margin-right:0}

/* Oxygen upgrades use the current tank rarity, rather than the gear gold theme. */
.shop-card.upgrade-card[data-product="oxygen_tank"]{border-color:var(--rarity-color,#48c774)}
.shop-card.upgrade-card[data-product="oxygen_tank"] .shop-art{background:radial-gradient(ellipse at 50% 85%,color-mix(in srgb,var(--rarity-color,#48c774) 60%,transparent),color-mix(in srgb,var(--rarity-color,#48c774) 20%,#073247))}
.shop-card.upgrade-card[data-product="oxygen_tank"] .upgrade-level{color:var(--rarity-color,#48c774)!important}

.cast-button.shore-unavailable{filter:grayscale(1);opacity:.38;cursor:not-allowed;}

.cast-button .dig-shovel{display:none}
.cast-button.calm-dig-mode{scale:.82;filter:none;opacity:1}
.cast-button.calm-dig-mode>svg:not(.dig-shovel),.cast-button.calm-dig-mode>.cast-custom{display:none!important}
.cast-button.calm-dig-mode .dig-shovel{display:block;width:30px;height:30px;margin:0 auto 3px}
.cast-button.calm-dig-mode:disabled{filter:grayscale(1);opacity:.5}
.calm-bait-reward{position:absolute;z-index:30;left:calc(50% - 85px);top:105px;width:170px;display:flex;align-items:center;flex-direction:column;gap:5px;touch-action:none;user-select:none;pointer-events:auto;text-align:center}
.calm-bait-reward.hidden{display:none}
.calm-bait-reward img{display:block;max-width:130px;max-height:90px;object-fit:contain;filter:drop-shadow(0 0 10px var(--catch-glow));pointer-events:none}
.calm-bait-reward strong{color:#fff;font-size:15px;text-shadow:0 2px 4px #001522;pointer-events:none}

.cast-button.calm-dig-mode strong{position:absolute;top:50%;left:0;width:100%;transform:translateY(-50%);font-size:18px}
.cast-button.calm-dig-mode .dig-shovel{position:absolute;top:calc(50% + 16px);left:calc(50% - 13px);width:26px;height:26px;margin:0}
.cast-button.calm-dig-mode small{position:absolute;top:calc(50% - 29px);left:0;width:100%;text-align:center}
.calm-bait-reward{top:max(8px,env(safe-area-inset-top));left:calc(50% - 55px);width:110px;gap:3px}
.calm-bait-reward img{max-width:75px;max-height:52px}
.calm-bait-reward strong{font-size:12px}

/* Four leaderboard categories remain readable on compact screens. */
@media(max-width:700px){
 .game-dialog:has(.board-toolbar) .dialog-head{grid-template-columns:minmax(0,1fr) auto}
 .game-dialog:has(.board-toolbar) #game-dialog-title{grid-row:1;grid-column:1;justify-self:start}
 .game-dialog:has(.board-toolbar) .dialog-head>.close-button{grid-row:1;grid-column:2}
 .game-dialog:has(.board-toolbar) .leaderboard-categories{grid-row:2;grid-column:1/-1;max-width:100%;overflow-x:auto;justify-self:stretch}
}

/* Map chat header must not depend on a cached, lazily loaded voice stylesheet. */
.game-root .public-chat>.map-chat-heading{display:flex;position:relative;align-items:center;gap:10px;width:100%;min-width:0;box-sizing:border-box;overflow:hidden}
.game-root .public-chat .map-chat-heading>.chat-toggle{position:static;display:flex;width:auto;flex:0 0 auto;margin:0;padding:0}
.game-root .public-chat .map-chat-heading>.team-chat-tab{position:static;display:block;flex:0 1 auto;min-width:0;min-height:22px;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#ffab23;font:600 11px/1.3 system-ui,sans-serif;white-space:nowrap}
.game-root .public-chat .map-chat-heading .chat-chevron{display:none}
.game-root .public-chat.chat-collapsed .map-chat-heading>.team-chat-tab{display:none}

/* Right-aligned team link and centered collapsed map-chat launcher. */
.game-root .public-chat:not(.chat-collapsed) .map-chat-heading>.team-chat-tab{margin-left:auto;margin-right:6px}
.game-root .public-chat.chat-collapsed>.map-chat-heading{height:100%;justify-content:center;gap:0}
.game-root .public-chat.chat-collapsed .map-chat-heading>.chat-toggle{width:100%;height:100%;justify-content:center;align-items:center;gap:4px}
