/* Fishing owns its shell; shared button faces and navigation remain unchanged.
   Full-screen layout (build 81, docs/workorders/FISHING_FULLSCREEN.md §3): the scene canvas fills the whole view, under the
   status bar and the home indicator, and the HUD floats over it in zones inside the safe area. The --fs-* variables and the
   data-fishing-zone / data-fishing-slot hooks are the contract the HUD controls build on (8 px grid, safe insets used once).
   z-order, back to front: scene 0; reserved rails and centre 1; top zone 2; bottom zones 3; gauge 4; Back (#tabs) 7; the
   bait overlay canvas 10; dialogs in the top layer. */
#online.fishing-view{--fs-safe-top:var(--safe-top,env(safe-area-inset-top,0px));--fs-safe-bottom:var(--safe-bottom,env(safe-area-inset-bottom,0px));
 --fs-gutter:8px;--fs-gap:8px;--fs-top:calc(var(--fs-safe-top) + 8px);--fs-bottom:calc(var(--fs-safe-bottom) + 8px);
 --fs-head-h:92px;--fs-row-h:48px;--fs-top-h:calc(var(--fs-head-h) + 2 * var(--fs-row-h) + 2 * var(--fs-gap));
 --fs-back-w:54px;--fs-cast-h:64px;--fs-action-w:calc(50% - 12px);--fs-slot-h:76px;--fs-fight-reach:24px;--fs-dial-max:184px;
 --fs-ink:var(--vs-ink);--fs-panel:#2c263dd1;--fs-panel-line:#8d7183;
 position:relative;padding:0;overflow:hidden;background:#2c263d}
#online.fishing-view #content{position:absolute;inset:0;padding:0;overflow:hidden}
#online.fishing-view #tabs{position:absolute;left:0;right:auto;bottom:0;z-index:7;padding:0 0 var(--fs-bottom) var(--fs-gutter);background:none;border:0;pointer-events:none}
#online.fishing-view #tabs>*{pointer-events:auto;margin:0}
.fishing-screen{position:absolute;inset:0;color:var(--cream-200);isolation:isolate}
.fishing-zone{position:absolute;min-width:0}
.fishing-zone:empty{pointer-events:none}
.fishing-zone-top{z-index:2;top:var(--fs-top);left:var(--fs-gutter);right:var(--fs-gutter);display:flex;flex-direction:column;gap:var(--fs-gap)}
.fishing-zone-left,.fishing-zone-right{z-index:1;top:calc(var(--fs-top) + var(--fs-top-h) + var(--fs-gap));width:64px}
.fishing-zone-left{left:var(--fs-gutter)}.fishing-zone-right{right:var(--fs-gutter)}
.fishing-zone-center{z-index:1;top:calc(var(--fs-top) + var(--fs-top-h) + var(--fs-gap));left:var(--fs-gutter);right:var(--fs-gutter);display:flex;flex-direction:column;align-items:center;gap:var(--fs-gap);pointer-events:none}
.fishing-zone-action{z-index:3;right:var(--fs-gutter);bottom:calc(var(--fs-bottom) + var(--fs-cast-h) + var(--fs-gap));width:var(--fs-action-w);height:var(--fs-slot-h)}
.fishing-zone-bottom{z-index:3;left:calc(var(--fs-gutter) + var(--fs-back-w) + var(--fs-gap));right:var(--fs-gutter);bottom:var(--fs-bottom);height:var(--fs-cast-h);display:flex;align-items:stretch}
.fishing-zone-gauge{z-index:4;right:var(--fs-gutter);width:var(--fs-action-w);bottom:calc(var(--fs-bottom) + var(--fs-cast-h) + var(--fs-gap));display:flex;flex-direction:column;align-items:center;pointer-events:none}
.fishing-heading{display:flex;flex-direction:column;gap:4px;height:var(--fs-head-h);flex:none}
.fishing-heading-row{display:flex;align-items:center;justify-content:space-between;gap:8px;height:44px;min-width:0}
#online.fishing-view .fishing-heading h1{font:28px/1.1 Lucky;color:var(--cream-250);margin:0 0 3px;-webkit-text-stroke:5px var(--fs-ink);paint-order:stroke fill;filter:drop-shadow(0 2px 0 var(--fs-ink));white-space:nowrap}
.fishing-heading small{display:inline-block;font:700 12px/1.3 system-ui;color:var(--cream-200);background:var(--fs-panel);border-radius:999px;padding:1px 8px}
.fishing-wallet{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:6px;height:var(--fs-row-h);flex:none}
.fishing-wallet>span,.fishing-wallet>button{display:grid;grid-template-columns:28px 1fr;column-gap:8px;align-items:center;background:var(--fs-panel);border:1px solid var(--fs-panel-line);border-radius:var(--vs-radius);padding:5px 7px;color:var(--cream-350);min-height:48px;text-align:left}
.fishing-wallet img{width:28px;height:34px;object-fit:contain;grid-row:1/3}
.fishing-wallet b{font:20px/1 Lucky}.fishing-wallet small{font:10px/1.1 system-ui;white-space:normal}
.fishing-scene{position:absolute;inset:0;z-index:0;overflow:hidden;background:#397c79}
#fishing-canvas{display:block;width:100%;height:100%;position:absolute;inset:0}
#fishing-scene-note{align-self:stretch;color:var(--cream-250);background:#2a273dd9;border-radius:var(--vs-radius);text-align:center;font:700 14px/1.3 system-ui;padding:7px;pointer-events:none}
#fishing-scene-note:empty{visibility:hidden}
/* AC500: the event-ended status: the state, then the Market's remaining time on its own short line. */
#fishing-scene-note>b,#fishing-scene-note>small{display:block}
#fishing-scene-note>small{font:600 12px/1.3 system-ui;color:#f3e3bd;margin-top:1px}
/* Aim gauge (build 81 full screen, FISHING_FULLSCREEN.md §5): a semicircular dial in our outline ink, centred on the gauge
   zone's bottom above the Cast; the zone key sits over it and the grade stamp pops over the needle. The dial box keeps its
   200 x 106 viewBox aspect at the zone's width (at most --fs-dial-max), its pivot (100, 100) at 94% of its height. */
.fishing-aim{position:relative;width:min(var(--fs-dial-max),100%);display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none}
.fishing-aim[hidden]{display:none}
.fishing-aim-arc{position:relative;width:100%;aspect-ratio:200/106;transform-origin:50% 94%}
.fishing-aim-dial{display:block;width:100%;height:100%;overflow:visible}
.fishing-aim-dial .dial-bowl{fill:#2c263d8c}
.fishing-aim-dial .dial-drop{fill:var(--fs-ink);transform:translateY(3px)}
.fishing-aim-dial .dial-band{fill:var(--cream-250)}
.fishing-aim-dial .dial-gloss{fill:#ffffff5c}
.fishing-aim-dial .zone-great{fill:#8ccf86;stroke:var(--fs-ink);stroke-width:1.8;stroke-linejoin:round}
.fishing-aim-dial .zone-perfect{fill:#f7c94f;stroke:var(--fs-ink);stroke-width:2.2;stroke-linejoin:round}
.fishing-aim-dial .dial-ink{fill:none;stroke:var(--fs-ink);stroke-width:3;stroke-linejoin:round}
.fishing-aim-dial .dial-ticks{stroke:var(--fs-ink);stroke-width:2.2;stroke-linecap:round;opacity:.5}
.fishing-aim-dial .dial-needle{transform-box:view-box;transform-origin:100px 100px}
.fishing-aim-dial .needle-rim{fill:var(--cream-200);stroke:var(--fs-ink);stroke-width:1.6;stroke-linejoin:round}
.fishing-aim-dial .needle-body{fill:#6b4a3a}
.fishing-aim-dial .dial-hub{fill:#c08a52;stroke:var(--fs-ink);stroke-width:2.5}
.fishing-aim-dial .dial-hub-dot{fill:#ffe7b0}
/* The zone under the needle brightens; normal motion adds a soft glow. */
.fishing-aim[data-zone=perfect] .zone-perfect{fill:var(--honey-300);filter:drop-shadow(0 0 3px #ffd65a)}
.fishing-aim[data-zone=great] .zone-great{fill:#a9e6a1;filter:drop-shadow(0 0 3px #c4f7b6)}
@media(prefers-reduced-motion:reduce){.fishing-aim[data-zone] .zone-perfect,.fishing-aim[data-zone] .zone-great{filter:none}}
.fishing-stamp{position:absolute;left:0;right:0;bottom:30%;text-align:center;font:26px/1 Lucky;color:var(--gold-50);white-space:nowrap;opacity:0;-webkit-text-stroke:5px #4b3045;paint-order:stroke fill;filter:drop-shadow(0 2px 0 #4b3045);transform-origin:50% 60%}
.fishing-stamp.is-perfect{color:#ffd659}
.fishing-aim-spark{position:absolute;width:46px;height:46px;margin:-23px 0 0 -23px;background:url('/art/fishing-event-v1/vfx/sparkles.png') 0 0/400% 100% no-repeat;opacity:0;pointer-events:none}.fishing-aim-spark.is-perfect{width:62px;height:62px;margin:-31px 0 0 -31px}.fishing-aim-spark.is-great{background-position:33.333% 0}
.fishing-hud{display:flex;flex-direction:column;gap:var(--fs-gap)}
.fishing-ready-tools{display:flex;align-items:center;justify-content:center;gap:7px}.fishing-ready-tools>.secondary{flex:1;min-width:0;margin:0}.fishing-multipliers{display:flex;gap:6px}.fishing-multipliers button{min-width:44px;min-height:44px;border:2px solid #937581;background:#473a51;border-radius:10px;color:var(--cream-350);font:19px Lucky}.fishing-multipliers button[aria-pressed=true]{background:#e4b566;color:#443342}
#online.fishing-view .fishing-main{min-height:var(--fs-cast-h);height:var(--fs-cast-h);flex:none;margin:0;width:100%}.fishing-main.fishing-hold{touch-action:none;user-select:none}
.fishing-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;flex:none}.fishing-tools button{height:var(--fs-row-h);background:var(--fs-panel)!important;min-width:44px;border:1px solid #9b7e8c;border-radius:var(--vs-radius);background:#45364c;color:var(--cream-250);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:16px/1.1 Lucky;white-space:nowrap}.fishing-tools img{height:25px;width:29px;object-fit:contain}
.fishing-fight{display:flex;flex-direction:column;gap:5px}.fishing-state{display:flex;align-items:center;gap:8px;font:16px/1.1 Lucky;min-height:27px}.fishing-state strong{margin-left:auto}.fishing-state .is-warning{color:#ffc177}
#fishing-face{font:700 18px/1 system-ui;background:#b4d6a3;color:#2e4435;border:2px solid var(--shine-100);border-radius:50%;width:34px;height:30px;text-align:center;display:grid;place-items:center}#fishing-face[data-state=red]{background-color:#f3aaa0}#fishing-face[data-state=yellow]{background-color:#e9d58e}
.fishing-tension,.fishing-progress{height:26px;border:2px solid #cfb690;background:repeating-linear-gradient(90deg,#423749 0 9%,#6c5b69 9% 10%);border-radius:9px;position:relative;overflow:hidden}.fishing-tension>i,.fishing-progress>i{position:absolute;inset:0;transform-origin:left;background:linear-gradient(90deg,#9ec984 0 60%,#e6bf73 60% 85%,#e28f87 85%);transform:scaleX(0)}.fishing-tension>b{position:relative;display:block;width:max-content;max-width:calc(100% - 20px);margin:2px auto 0;padding:0 6px;background:#342c3fb0;border-radius:8px;white-space:nowrap;text-align:center;font:700 12px/18px system-ui;color:var(--cream-250);text-shadow:none}.fishing-floor{position:absolute;top:0;bottom:0;width:3px;margin-left:-1.5px;z-index:3}.fishing-tension.is-danger{outline:3px solid #f6bc80;outline-offset:1px}.fishing-progress{height:12px;overflow:visible}.fishing-progress>i{background:#c2dfa1;border-radius:5px}.fishing-progress>img{position:absolute;right:0;top:-10px;height:27px;width:27px}
/* One HUD slot (P1): fight rows and ready tools share grid cell 1/1 and are always laid out, so the
   slot keeps one height and the scene never resizes. They swap by opacity/transform only. */
.fishing-hud-slot{display:grid;flex:none;height:var(--fs-slot-h);align-items:end}.fishing-hud-slot>.fishing-fight,.fishing-hud-slot>.fishing-ready-tools{grid-area:1/1;min-width:0}
.fishing-hud-slot>.fishing-ready-tools{align-self:center;transition:opacity var(--fishing-slide) var(--fishing-slide-ease),transform var(--fishing-slide) var(--fishing-slide-ease),visibility 0s}
.fishing-screen:not([data-phase=ready]) .fishing-ready-tools,.fishing-screen.is-tools-held .fishing-ready-tools,.fishing-screen.is-closing .fishing-ready-tools{visibility:hidden;opacity:0;transform:translateY(12px);transition:opacity var(--fishing-fade) linear,transform 0s linear var(--fishing-fade),visibility 0s linear var(--fishing-fade)}
.fishing-hud-slot>.fishing-fight{visibility:hidden;opacity:0;transform:translateY(12px);transition:opacity var(--fishing-fade) linear,transform 0s linear var(--fishing-fade),visibility 0s linear var(--fishing-fade)}
.fishing-screen.is-fighting .fishing-hud-slot>.fishing-fight{visibility:visible;opacity:1;transform:none;transition:opacity var(--fishing-slide) var(--fishing-slide-ease),transform var(--fishing-slide) var(--fishing-slide-ease),visibility 0s}
/* Market days: casting controls keep their space but are not shown; the Market tab stays. */
#online .fishing-screen.is-closing .fishing-main{visibility:hidden}
.fishing-hint{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:0;gap:14px;color:var(--cream-200);text-align:center;padding:12px}.fishing-hint>img{width:min(48%,180px);height:auto;object-fit:contain}.fishing-hint h1{font:28px/1.1 Lucky}.fishing-hint p{font:17px/1.4 system-ui;max-width:330px}.fishing-hint small{font:14px/1.4 system-ui}
.fishing-sheet,.fishing-meeting{display:flex;flex-direction:column;gap:12px}.fishing-sheet h1,.fishing-meeting h1{margin:0;font:28px/1.1 Lucky}.fishing-sheet>p{margin:0;font:16px/1.35 system-ui}.fishing-sheet>small{font:13px/1.35 system-ui}.fishing-list-row{display:flex;align-items:center;gap:9px;background:var(--cream-200);border:2px solid #c7a873;border-radius:13px;padding:8px;min-height:72px}.fishing-list-row>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.fishing-list-row>img,.fishing-offer-art{width:44px;height:50px;object-fit:contain;flex:none}.fishing-offer-art img{width:100%;height:100%;object-fit:contain}.fishing-list-row b{font:16px/1.15 Lucky}.fishing-list-row small{font:12px/1.25 system-ui}.fishing-list-row>button{width:142px;min-width:142px;flex:none;margin:0}
.fishing-row-rewards{display:flex;gap:8px;align-items:center}.fishing-row-rewards>span{display:flex;gap:3px;align-items:center}.fishing-row-rewards img{width:26px;height:26px;object-fit:contain}.fishing-basket{display:flex;justify-content:space-around;font:13px/1.2 system-ui}
.fishing-book-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.fishing-book-grid article{display:flex;flex-direction:column;text-align:center;gap:6px;font:14px/1.2 system-ui}.fishing-book-grid img{width:100%;aspect-ratio:1;object-fit:contain}.fishing-book-grid b{font:17px/1.2 Lucky}
.fishing-odds-table{border:2px solid #bba174;border-radius:var(--vs-radius);overflow:hidden}.fishing-odds-table>div{display:flex;justify-content:space-between;gap:10px;padding:10px;background:var(--cream-200);font:15px/1.3 system-ui}.fishing-odds-table>div:nth-child(even){background:#e9dbc1}.fishing-odds-table b{font-weight:600}
.fishing-source{padding:10px;border:1px solid #c6ab7d;border-radius:var(--vs-radius);display:flex;flex-direction:column;gap:7px}.fishing-source p{margin:0}.fishing-source button{margin:0}.fishing-quantity{display:flex;align-items:center;justify-content:center;gap:12px}.fishing-quantity>button{min-width:64px;flex:1}.fishing-buy>img,.fishing-buy>span>img{width:90px;height:90px;object-fit:contain;align-self:center}
.fishing-meeting>img{width:125px;height:125px;object-fit:contain;align-self:center}.fishing-meeting>p{min-height:90px;font:18px/1.4 system-ui;margin:0}
.fishing-catch{text-align:center}.fishing-catch h1{font:30px/1.1 Lucky;margin:0 0 12px}.fishing-catch-boxes{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.fishing-catch-item{width:100%;display:grid;grid-template-columns:92px 1fr;align-items:center;text-align:left;border:2px solid #c3a77b;border-radius:14px;background:#fff0d3;padding:6px;position:relative}.fishing-catch-item>img{width:90px;height:90px;object-fit:contain;grid-row:1/5}.fishing-catch-item b{font:21px/1.15 Lucky}.fishing-catch-item strong{font:22px/1 Lucky}.fishing-catch-item small{font:13px/1.3 system-ui}.fishing-catch-item em{font:14px/1.1 Lucky;color:#a46427}.fishing-catch-boxes>img{width:130px;height:130px;object-fit:contain}.fishing-catch-rewards{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.fishing-catch-rewards>span{display:flex;align-items:center;gap:3px}.fishing-catch-rewards img{width:30px;height:30px;object-fit:contain}.fishing-catch>small{display:block;margin-top:10px}.fishing-catch>p{font:14px/1.3 system-ui}
.fishing-catch-boxes:has(.fishing-catch-item:nth-child(4)) .fishing-catch-item{width:calc(50% - 4px);grid-template-columns:48px 1fr;padding:4px}.fishing-catch-boxes:has(.fishing-catch-item:nth-child(4)) .fishing-catch-item>img{width:46px;height:46px}.fishing-catch-boxes:has(.fishing-catch-item:nth-child(4)) .fishing-catch-item b{font-size:14px}.fishing-catch-boxes:has(.fishing-catch-item:nth-child(4)) .fishing-catch-item strong{font-size:16px}.fishing-catch-boxes:has(.fishing-catch-item:nth-child(4)) .fishing-catch-item small,.fishing-catch-boxes:has(.fishing-catch-item:nth-child(4)) .fishing-catch-item em{font-size:10px}
.event-card.event-fishing{background-image:linear-gradient(90deg,#263c3de8,#263c3d55),url('/art/fishing-event-v1/key-art.png');background-size:cover;background-position:center}.event-fishing .event-card-art img{width:52px;height:52px;object-fit:contain}
#modal .settings-rows>.settings-vibration{grid-column:1/-1}
/* Reserve the legal footer at Compact height without changing control sizes. */
@media(max-height:700px){
 #modal:has(.settings-vibration) .settings-rows{margin-top:6px;gap:6px}
 #modal .settings-vibration{padding:4px 8px 6px}
}
@media(max-height:730px){.fishing-sheet,.fishing-meeting{gap:9px}.fishing-list-row{min-height:64px;padding:6px}.fishing-catch-item>img{height:72px;width:72px}.fishing-catch-item{grid-template-columns:74px 1fr}}
@media(prefers-reduced-motion:reduce){.fishing-screen *,.fishing-catch *{animation:none!important;transition:none!important}}
.fishing-catch.is-win .fishing-catch-item{animation:fishing-cascade var(--fishing-arc) var(--fishing-ease) both;animation-delay:calc(var(--i)*var(--fishing-cascade))}
.fishing-catch-item em{position:absolute;top:30px;right:-6px;z-index:2;padding:3px 8px 2px;border:3px solid #c0563b;border-radius:9px;background:var(--paper);color:#c0563b;font:18px/1.1 Lucky;white-space:nowrap;transform:rotate(-10deg);box-shadow:0 2px 0 #c0563b33;animation:fishing-stamp-slam var(--fishing-stamp) var(--fishing-ease) var(--fishing-stamp-delay) both}
.fishing-catch-item em::before{content:'';position:absolute;inset:-20px -28px;z-index:-1;pointer-events:none;opacity:0;background:radial-gradient(circle at 5% 52%,#bfa078 0 9px,#bfa07800 10px),radial-gradient(circle at 95% 44%,#bfa078 0 9px,#bfa07800 10px),radial-gradient(circle at 20% 10%,#cdb38f 0 8px,#cdb38f00 9px),radial-gradient(circle at 80% 92%,#cdb38f 0 8px,#cdb38f00 9px),radial-gradient(circle at 34% 94%,#bfa078 0 6px,#bfa07800 7px),radial-gradient(circle at 66% 6%,#bfa078 0 6px,#bfa07800 7px);animation:fishing-stamp-dust var(--fishing-puff) ease-out calc(var(--fishing-stamp-delay) + var(--fishing-stamp) * .7) both}
@keyframes fishing-stamp-dust{from{transform:scale(.6);opacity:.8}to{transform:scale(1.5);opacity:0}}
.fishing-tier-ribbon{justify-self:start;margin:2px 0;padding:3px 10px 2px;border:2px solid #0000002e;border-radius:999px;background:#8fcf8a;color:#fff;font:14px/1.1 Lucky;white-space:nowrap;-webkit-text-stroke:2px #3d2a26;paint-order:stroke fill;text-shadow:none;animation:fishing-ribbon-pop var(--fishing-ribbon-pop) cubic-bezier(.34,1.4,.64,1) var(--fishing-ribbon-at) both}
.fishing-tier-ribbon.tier-r{background:#6c9fc2}.fishing-tier-ribbon.tier-l{background:#e2b04f;border-color:#7a4f12}
.fishing-catch-fly{z-index:4;object-fit:contain;pointer-events:none;will-change:transform}
@keyframes fishing-ribbon-pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.fishing-catch-shine{position:absolute;inset:0;border-radius:var(--vs-radius);overflow:hidden;pointer-events:none}.fishing-catch-shine::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,#ffd35a00 32%,#ffc73cb3 44%,var(--card-face) 50%,#ffc73cb3 56%,#ffd35a00 68%);transform:translateX(-120%);animation:fishing-catch-sweep var(--fishing-sweep) linear calc(var(--fishing-card) + var(--fishing-ribbon-at)) 1 both}
.rarity-rare .fishing-catch-shine::after{background:linear-gradient(105deg,#7fb6e600 32%,#7fb6e6b3 44%,#f2f9ff 50%,#7fb6e6b3 56%,#7fb6e600 68%)}
@keyframes fishing-catch-sweep{from{transform:translateX(-120%)}to{transform:translateX(120%)}}
.fishing-catch-item.rarity-legendary::before{content:'';position:absolute;inset:-3px;border-radius:16px;pointer-events:none;box-shadow:0 0 22px 7px #ffd35a,inset 0 0 14px var(--gold-100);opacity:0;animation:fishing-catch-glow var(--fishing-glow) ease-in-out var(--fishing-card) 2 both}
@keyframes fishing-catch-glow{0%,100%{opacity:0}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.fishing-catch-shine::after,.fishing-catch-item::before,.fishing-catch-item em::before{animation:none!important}}
.fishing-catch.tier-l .fishing-catch-item{border-color:#d9ac4c;box-shadow:inset 0 0 20px #ffe6a777,0 0 18px #f6cf6f44}
.fishing-catch.tier-r .fishing-catch-item{border-color:#6c9fc2;box-shadow:inset 0 0 18px #b7def777}
@keyframes fishing-cascade{from{transform:translateY(45px) scale(.7);opacity:0}to{transform:none;opacity:1}}
.fishing-haul{display:flex;width:100%;justify-content:space-around;gap:8px;padding:8px 0}.fishing-haul>span{display:flex;flex-direction:column;gap:4px;font:14px system-ui}.fishing-haul b{font:20px Lucky}
#fishing-face{background-size:contain;background-position:center;background-repeat:no-repeat}
.event-fishing .event-card-art{animation:fishing-float var(--fishing-float) ease-in-out infinite}
#fishing-face[data-state=red]{animation:fishing-face-shake var(--fishing-red) ease-in-out infinite alternate}
@keyframes fishing-float{50%{transform:translateY(-3px)}}
@keyframes fishing-danger{to{opacity:.65}}
@keyframes fishing-face-shake{from{transform:translateX(calc(-1 * var(--fishing-face-shake)))}to{transform:translateX(var(--fishing-face-shake))}}
@media(prefers-reduced-motion:reduce){.event-fishing .event-card-art{animation:none!important}}
.fishing-screen.is-last-day .fishing-heading small{color:#ffc177}
.fishing-gift-rod{display:inline-block;position:relative;animation:fishing-gift var(--fishing-gift) ease-out both}.fishing-gift-rod>i{position:absolute;left:50%;top:50%;width:5px;height:5px;background:var(--gold-100);animation:fishing-gift-spark var(--fishing-spark) ease-out both;transform:rotate(var(--a)) translateX(24px)}
@keyframes fishing-gift{from{transform:translate(80px,-60px) rotate(-360deg) scale(.5);opacity:0}to{transform:none;opacity:1}}
@keyframes fishing-gift-spark{from{opacity:1;transform:rotate(var(--a)) translateX(8px)}to{opacity:0;transform:rotate(var(--a)) translateX(65px)}}
@media(prefers-reduced-motion:reduce){.fishing-gift-rod,.fishing-gift-rod>i{animation:none!important}.fishing-gift-rod>i{display:none}}
#modal .fishing-buy-action{--price-face-pad:7.5px;flex-direction:column;min-height:82px}.fishing-buy-action .gemstone-price img{width:22px;height:22px;object-fit:contain}
/* The painted nine-slice rims surround the functional, accessible meter fills. */
.fishing-tension::after,.fishing-progress::after{content:"";position:absolute;inset:-2px;pointer-events:none;border:8px solid transparent;border-image:url('/art/fishing-event-v1/tension-frame.png') 44 56 44 56 fill stretch;z-index:2}
.fishing-progress::after{border-width:5px 10px;border-image-source:url('/art/fishing-event-v1/catch-frame.png');border-image-slice:30 64 30 64 fill}
.fishing-tension>b,.fishing-progress>img{z-index:3}
.fishing-gift-rod>i{background:url('/art/fishing-event-v1/vfx/sparkle-gold.png') center/contain no-repeat;width:16px;height:16px}
.fishing-ceremony{position:relative;align-self:stretch;z-index:3;pointer-events:none}.fishing-ceremony[hidden]{display:none}.fishing-ceremony>div{will-change:transform,opacity;position:relative;display:flex;flex-direction:column;gap:5px;text-align:center;background:#fff0d7ed;border:2px solid #d4ad64;border-radius:14px;padding:8px;color:#553a36}.fishing-ceremony b{font:22px/1.1 Lucky}.fishing-ceremony small{font:13px/1.2 system-ui}
.fishing-unlock{position:relative;animation:fishing-unlock-brighten var(--fishing-brighten) ease-out both}.fishing-list-row>.fishing-unlock-lock{position:absolute;left:10px;top:12px;width:32px;height:38px;animation:fishing-unlock-lock var(--fishing-unlock) ease-in both;pointer-events:none}
@keyframes fishing-unlock-lock{0%,30%,60%{transform:rotate(-6deg)}15%,45%,75%{transform:rotate(6deg)}to{transform:translateY(-35px) scale(1.3);opacity:0}}@keyframes fishing-unlock-brighten{from{filter:grayscale(1);opacity:.5}to{filter:none;opacity:1}}
.fishing-book-grid article{position:relative}.fishing-book-new em{position:absolute;top:-4px;right:-4px;padding:2px 5px 1px;border:2px solid #c0563b;border-radius:7px;background:var(--paper);color:#c0563b;font:13px/1.1 Lucky;white-space:nowrap;transform:rotate(-10deg)}.fishing-screen.is-guaranteed .fishing-wallet>button{box-shadow:0 0 12px #ffdb8d;animation:fishing-danger var(--fishing-danger) ease-in-out infinite alternate}
.event-fishing .event-card-art{position:relative}.event-fishing .event-card-art::after{content:"";position:absolute;inset:10px;border:2px solid #f5e6bc;border-radius:50%;animation:fishing-event-ring 3s ease-out infinite;pointer-events:none}@keyframes fishing-event-ring{0%,60%{transform:scale(.5);opacity:0}65%{opacity:.6}to{transform:scale(1.7);opacity:0}}
@media(prefers-reduced-motion:reduce){.fishing-unlock,.fishing-unlock-lock,.event-fishing .event-card-art::after{animation:none!important}}
#online.fishing-view .fishing-main{flex-direction:row;gap:12px}.fishing-cast-price{display:inline-flex;align-items:center;gap:5px;font:24px/1 Lucky;color:inherit}.fishing-cast-price img{width:22px;height:22px;object-fit:contain}.fishing-cast-price[hidden]{display:none}
#fishing-overlay-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:10}
/* Waiting stays visibly disabled (saturate .3); only a highlight layer breathes in opacity. */
.fishing-screen[data-phase=wait] .fishing-main::after{content:'';position:absolute;inset:0;border-radius:inherit;background:#fff;opacity:0;pointer-events:none;animation:fishing-wait var(--fishing-wait-pulse) ease-in-out infinite}@keyframes fishing-wait{50%{opacity:.18}}
@media(prefers-reduced-motion:reduce){.fishing-screen[data-phase=wait] .fishing-main::after{animation:none}.fishing-hud-slot>*{transition:none!important}}
/* AC293 reserves the cutout above the painted plate, inside the safe dialog box. */
#modal.discovery-modal:has([data-discovery-id="fishing"]){isolation:isolate;padding:0 18px 18px;border:0;background:transparent;box-shadow:none;overflow:visible}
#modal.discovery-modal:has([data-discovery-id="fishing"])::before{content:"";position:absolute;inset:110px 0 0;z-index:-1;border:3px solid #d6af68;border-radius:27px;background:radial-gradient(ellipse at 50% 15%,var(--card-face),var(--cream-300) 60%,#eacb94);box-shadow:0 7px #8c6546,0 22px 60px #0007;pointer-events:none}
[data-discovery-id="fishing"] .discovery-art{order:-1;width:100%;height:220px;margin-bottom:-10px}
/* AC414: fade before the box edge, including the inherited 1.04 breathe peak. */
[data-discovery-id="fishing"] .discovery-art:before{inset:0;border-radius:0;background:radial-gradient(ellipse closest-side,#fff3ad 7%,#ffce687a 38%,transparent 94%)}
[data-discovery-id="fishing"] .discovery-art img{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 5px 3px #4b374066)}
[data-discovery-id="fishing"] .discovery-rays{inset:auto;width:180px;height:180px}
/* AC294: a calm, bounded welcome with the same characters breaking its plate edge. */
.fishing-hint{justify-content:flex-start;gap:10px;padding:6px 0 12px}
.fishing-hint>header{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;flex:none}
.fishing-hint>header .eyebrow{line-height:1.3}
.fishing-welcome{display:flex;flex-direction:column;align-items:center;position:relative;width:100%;max-width:390px;margin:auto 0}
.fishing-welcome-art{position:relative;z-index:1;width:100%;height:clamp(190px,29dvh,280px);margin-bottom:-24px;pointer-events:none}
.fishing-welcome-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 3px #17122266)}
.fishing-welcome-card{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;padding:30px 14px 16px;border:3px solid #d6af68;border-radius:24px;background:radial-gradient(ellipse at top,var(--card-face),var(--cream-300) 65%,#eacb94);box-shadow:0 6px #8c6546;color:#2e4051}
.fishing-hint .fishing-welcome-card h1{margin:0;font:28px/1.1 Lucky;color:#2e4051;filter:drop-shadow(0 2px #fff9de)}
.fishing-hint .fishing-welcome-card p{margin:0;max-width:100%;padding:5px 14px;border-radius:999px;background:#dfc59588;color:#6d5137;font:700 15px/1.3 system-ui}
.fishing-welcome-card>button{width:100%;margin:0}
@media(max-height:730px){#modal.discovery-modal:has([data-discovery-id="fishing"]){padding:0 15px 15px}#modal.discovery-modal:has([data-discovery-id="fishing"])::before{top:90px}[data-discovery-id="fishing"] .discovery-art{height:180px;margin-bottom:-6px}.fishing-welcome-card{gap:10px;padding-top:26px}}
/* AC226 uses the shared help disc beside bounded sheet headings. */
.fishing-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.fishing-sheet-heading h1{flex:1;min-width:0}.fishing-hint{position:relative}.fishing-hint>.help-button{position:absolute;top:10px;right:10px}
/* AC296: match the established navigation face; Close remains a separate action. */
/* AC461: the Market exchange and Gem bait confirmations share the same lavender Back arrow beside their action. */
#modal:has(.fishing-help,.fishing-ranking-help,.fishing-reward-detail,.event-item-detail,.fishing-buy)>.equipment-actions{grid-template-columns:54px minmax(0,1fr);align-items:center}
#modal:has(.fishing-help,.fishing-ranking-help,.fishing-reward-detail,.event-item-detail,.fishing-buy)>.equipment-actions>.back-arrow{display:grid;place-items:center;width:54px;height:var(--tier-full-h);min-height:44px;margin:0;padding:3px;border:2px solid var(--ink-plum-2);border-radius:15px;background:linear-gradient(145deg,#aaa2b8,#857d99 70%,#79718b);box-shadow:inset 0 2px 0 #d9d0e1,inset 2px 0 0 #bcb2c9,inset -2px -3px 0 #6c637d,0 3px 0 var(--panel-night)}
#modal:has(.fishing-help,.fishing-ranking-help,.fishing-reward-detail,.event-item-detail,.fishing-buy)>.equipment-actions>.back-arrow svg{width:43px;height:32px;overflow:visible}
/* Fight HUD (P4). The zones and their patterns sit on a fixed full-width fill; a translucent cover (45% of the zone
   colour shows through) slides off it with translateX, so the colour at the tip is always the zone's own colour.
   Only the red segment pulses, and only in danger. The floor is two 6px notches; the label is a pill above them. */
.fishing-tension>i{transform:none;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#342c3f59 calc(10% - 1px) 10%),repeating-linear-gradient(135deg,transparent 0 6px,#ffffff2b 6px 8px) 80% 0/25% 100% no-repeat,linear-gradient(90deg,#9ec984 0 60%,#e6bf73 60% 85%,transparent 85%)}
.fishing-tension>i::after{content:"";position:absolute;top:0;bottom:0;left:85%;right:0;background:repeating-linear-gradient(135deg,transparent 0 3px,#ffffff3d 3px 5px),#e28f87}
.fishing-tension.is-danger>i::after{animation:fishing-danger var(--fishing-danger) ease-in-out infinite alternate}
.fishing-tension-cover{position:absolute;inset:0;background:#241d2d8c;box-shadow:inset 2px 0 var(--cream-250);transform:translateX(0);will-change:transform}
.fishing-floor::before,.fishing-floor::after{content:"";position:absolute;left:0;width:3px;height:6px;background:var(--cream-250);box-shadow:0 0 0 1px #342c3f99}
.fishing-floor::before{top:0;border-radius:0 0 2px 2px}.fishing-floor::after{bottom:0;border-radius:2px 2px 0 0}
#fishing-face{position:relative}
#fishing-face::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid #ef7772;opacity:0;pointer-events:none}
#fishing-face.is-danger::after{opacity:1;border-width:3px;border-color:#f6bc80}
#fishing-face[data-state=red]::after{opacity:1;border-color:#ef7772;animation:fishing-ring var(--fishing-danger) ease-in-out infinite alternate}
@keyframes fishing-ring{to{opacity:.3}}
#fishing-distance{padding:0 4px;border-radius:6px}
.fishing-state #fishing-distance.is-danger{color:#ef7772;outline:1px solid #ef7772}
.fishing-progress>i{overflow:hidden}
.fishing-screen.is-fighting .fishing-progress>i::before{content:"";position:absolute;top:0;bottom:0;left:0;width:50%;background:linear-gradient(90deg,transparent,#ffffffa6,transparent);transform:translateX(-100%);animation:fishing-shine 2500ms linear infinite}
@keyframes fishing-shine{0%{transform:translateX(-100%)}36%,100%{transform:translateX(200%)}}
.fishing-progress-head{position:absolute;inset:0;pointer-events:none;z-index:3;will-change:transform}
.fishing-progress-fish{position:absolute;left:-10px;top:-6px;width:20px;height:20px;object-fit:contain}
@media(prefers-reduced-motion:reduce){#fishing-face[data-state=red],#fishing-face::after,.fishing-tension.is-danger>i::after,.fishing-screen .fishing-progress>i::before{animation:none!important}}
/* AC300: overlapping event editions share one bounded UTC week. */
#modal .moonleaf-calendar.multiple-events .moonleaf-calendar-event{display:grid;gap:8px}
#modal .moonleaf-calendar.multiple-events .moonleaf-calendar-event>.event-card{margin:0}

/* AC312: gesture guards belong to Fishing controls, never to the document or other views. */
.fishing-screen,.fishing-hint,.fishing-sheet,.fishing-reward-detail{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.fishing-screen button,.fishing-hint button,.fishing-sheet button,.fishing-reward-detail button{touch-action:manipulation}
.fishing-main.fishing-hold{touch-action:none}
.fishing-list-row.is-selected{border-color:var(--fs-ink,#241925);background:color-mix(in srgb,var(--active-top) 40%,var(--row-face));box-shadow:0 2px 0 var(--fs-ink,#241925)}
.fishing-spot-selected{display:inline-flex;align-items:center;gap:4px;flex:none;padding:4px 7px;border:1px solid var(--fs-ink,#241925);border-radius:999px;background:var(--active-shine);color:var(--text-on-cream);font:700 13px/1.2 system-ui;white-space:nowrap}
/* AC317: only the complete reward list scrolls; title, progress, Claim all and Close stay fixed. */
#modal:has(.fishing-track-sheet){display:flex;flex-direction:column;overflow:visible}
.fishing-track-sheet{min-height:0;max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 132px);gap:9px}
.fishing-track-sheet>.fishing-sheet-heading,.fishing-track-sheet>p,.fishing-track-sheet>button{flex:none}
/* AC770 (build 170, owner: "Zazwyczaj claim jest mniej więcej szerokości tekstu"): the Rewards sheet's Claim all
   hugs its label like the shared .bar-claim-all (24px of face a side, never under --claim-hug-min), centred. */
#modal .fishing-track-sheet>[data-action="fishing-track-all"]{align-self:center;width:auto;min-width:min(var(--claim-hug-min,152px),100%);max-width:100%;padding-inline:24px;white-space:nowrap}
.fishing-track-list{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:8px;padding:2px 3px 5px 1px;scrollbar-width:thin}
.fishing-track-list>.fishing-list-row{flex:none;min-height:96px}
.fishing-track-list .fishing-row-rewards{flex-wrap:wrap;gap:7px}
.fishing-track-list .fishing-row-rewards>.backpack-slot{width:54px;height:54px;min-width:54px;min-height:54px;margin:0;padding:0;flex:none}
.fishing-track-list .fishing-row-rewards>.backpack-slot img{width:78%;height:78%;object-fit:contain}
.fishing-track-list .fishing-list-row>button{width:120px;min-width:120px}
.fishing-gem-wallet{display:flex;align-items:center;gap:5px;background:#44384e;color:var(--cream-200);border:1px solid #886a77;border-radius:11px;padding:5px 9px;white-space:nowrap;font:21px/1 Lucky}
.fishing-gem-wallet img{width:25px;height:28px;object-fit:contain}
.fishing-source button:has(.ad-badge){display:flex;align-items:center;justify-content:center;gap:12px}
.fishing-source button>.ad-badge{flex:none}
/* AC378: the standard price row sits inline inside this 56px source face. */
#modal .fishing-source button[data-action="fishing-buy"]{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;height:auto;min-height:56px}
#modal .fishing-source button[data-action="fishing-buy"]>.gemstone-price{flex:none;margin:0;white-space:nowrap}

.fishing-reward-detail>small{display:block;font:13px/1.3 system-ui;text-align:center}

/* The v2 Market spends one server-projected token wallet. */
.fishing-token-wallet{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0;font:20px/1.2 Lucky;color:#4d3827}
.fishing-token-wallet b{font-size:24px}.fishing-token-gain{color:#6d4d21}

.fishing-token-wallet>img{width:32px;height:32px;object-fit:contain}

/* AC305: three compact art-led source cards; the sheet shell never scrolls. */
.fishing-bait-sources{display:flex;flex-direction:column;gap:9px}
.fishing-bait-sources .fishing-source{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:6px 10px;padding:9px;background:var(--cream-200);border:2px solid #c7a873}
.fishing-source-art{width:52px;height:52px;display:flex;align-items:center;justify-content:center}
.fishing-source-art img{width:100%;height:100%;object-fit:contain}
.fishing-source>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.fishing-source>div>b{font:18px/1.15 Lucky}
.fishing-source>div>span{font:15px/1.25 system-ui}
.fishing-source>div>small{font:13px/1.25 system-ui}
.fishing-source>button{grid-column:1/-1;width:100%;min-height:52px}
/* AC472: today's Gem bait allowance, one centred line under Buy; at 0 the limit and its reset. */
.fishing-source>.fishing-bait-allowance{grid-column:1/-1;margin:2px 0 0;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;font:600 14px/1.25 system-ui}
.fishing-source>.fishing-bait-allowance>b{font:700 15px/1.25 system-ui}
.fishing-source>.fishing-bait-allowance>small{font:13px/1.25 system-ui}
.fishing-source-price{display:flex;align-items:center;gap:5px}
.fishing-source-price img{width:25px;height:25px;object-fit:contain}
.fishing-heading-tools{display:flex;align-items:center;gap:4px;flex:none}
.fishing-ranking-shortcut{padding:2px;margin:0;width:44px;height:44px;min-height:44px;background:none;border:0;box-shadow:none}
.fishing-ranking-shortcut img{width:40px;height:40px;object-fit:contain}
.fishing-heading>div:first-child{min-width:0}
/* AC306: deterministic timing windows disclose weight bonuses, never species odds. */
.fishing-aim-zone-key{position:relative;display:flex;align-items:center;gap:6px;white-space:nowrap}
.fishing-aim-zone-key>b{padding:3px 7px;border:2px solid var(--fs-ink);border-radius:10px;font:17px/1 Lucky;color:#3a2a22;background:#f7c94f;box-shadow:0 2px 0 var(--fs-ink)}.fishing-aim-zone-key>b.is-great{background:#8ccf86}
/* AC307/322: reserve a full grid row for the stamp instead of covering the weight. */
.fishing-catch-item{row-gap:5px;column-gap:8px;padding:10px;grid-template-columns:92px minmax(0,1fr)}
.fishing-catch-item>img{grid-row:1/7}.fishing-catch-item>b{overflow-wrap:anywhere}
.fishing-catch-item em{position:relative;top:auto;right:auto;grid-column:2;justify-self:start;margin:3px 0 1px;padding:3px 7px;transform:rotate(-5deg)}
.fishing-catch-item>.fishing-tier-ribbon{margin:0}.fishing-catch-rewards{width:100%;margin-top:7px;gap:8px}.fishing-catch-rewards>.backpack-slot{width:58px;height:58px;flex:none}
@media(max-height:730px){.fishing-catch-item{padding:8px;row-gap:4px;grid-template-columns:72px minmax(0,1fr)}.fishing-catch-item>img{width:70px;height:70px}.fishing-catch h1{margin-bottom:8px}}

/* The stamp owns its bottom row across both columns, clear of the tier ribbon. */
.fishing-catch-item{grid-template-areas:"art name" "art weight" "art tier" "art bonus" "stamp stamp";grid-template-rows:auto auto auto auto auto}
.fishing-catch-item>img{grid-area:art;align-self:center}.fishing-catch-item>b{grid-area:name}.fishing-catch-item>strong{grid-area:weight}.fishing-catch-item>.fishing-tier-ribbon{grid-area:tier}.fishing-catch-item>small{grid-area:bonus}
.fishing-catch-item>em{grid-area:stamp;justify-self:center;margin:8px 0 5px}
#modal.passive-receipt .fishing-catch{padding:8px 4px}
.fishing-catch>small+small{margin-top:4px}
.fishing-catch-item:not(:has(>small)){grid-template-areas:"art name" "art weight" "art tier" "stamp stamp"}
.fishing-catch-item>em{justify-self:start;margin:8px 0 4px;animation-name:fishing-catch-stamp-inline}
.fishing-catch-boxes:has(.fishing-catch-item:nth-child(3)):not(:has(.fishing-catch-item:nth-child(4))) .fishing-catch-item{grid-template-columns:72px minmax(0,1fr)}
.fishing-catch-boxes:has(.fishing-catch-item:nth-child(3)):not(:has(.fishing-catch-item:nth-child(4))) .fishing-catch-item>img{width:70px;height:70px}
@keyframes fishing-catch-stamp-inline{0%{transform:rotate(-5deg) scale(1.4);opacity:0}70%{transform:rotate(-5deg) scale(.96);opacity:1}to{transform:rotate(-5deg) scale(1);opacity:1}}
@media(max-height:730px){.fishing-catch-item{padding:6px 8px;row-gap:3px}.fishing-catch-item>em{margin:6px 0 2px}#modal.passive-receipt .fishing-catch{padding:4px 4px}.fishing-catch-boxes{gap:5px}.fishing-catch>small{margin-top:5px}}

/* Full-screen zones (FISHING_FULLSCREEN.md §3): the fight rows sit on a translucent panel over the water; the spot button
   (a compact 44 px utility with a 17 px label) shares the heading's second row with the clock and hides with the ready
   tools while a cast runs. */
/* The fight rows fit the --fs-slot-h slot (24 + 24 + 12 rows, 4 px gaps, 3 px padding, 1 px border = 76 px) and reach
   --fs-fight-reach further left than the column, still clear of either panda while it fights, so the longest state word
   and the longest distance ("Zmęczona" + "148,8 m") share one line on the 176 px column. */
.fishing-zone-action .fishing-fight{margin-left:calc(-1 * var(--fs-fight-reach));gap:4px;background:var(--fs-panel);border:1px solid var(--fs-panel-line);border-radius:var(--vs-radius);padding:3px 8px}
.fishing-zone-action .fishing-state{min-height:24px;font-size:15px}.fishing-zone-action #fishing-face{height:24px}.fishing-zone-action .fishing-tension{height:24px}
.fishing-zone-action .fishing-state>b,.fishing-zone-action #fishing-distance{white-space:nowrap}
.fishing-zone-action .fishing-hud-slot{height:100%}
.fishing-spot-banner{flex:none;min-width:0}
#online.fishing-view .fishing-spot-banner>.secondary{flex:none;min-width:112px;min-height:44px;height:44px;margin:0;padding:4px 14px;font-size:17px}

/* Build 81 HUD: the scene is the screen. Rails stay above the actor envelopes (§3.4);
   the gauge and fight slot retain their baseline geometry. Safe insets are used once. */
#online.fishing-view{--fs-head-h:84px;--fs-row-h:44px;--fs-top-h:136px;--fs-rail-w:70px;--fs-rail-row:48px;--fs-ink:var(--vs-ink,#241925);--fs-drop:var(--vs-drop-y,3px)}
.fishing-zone-top{gap:var(--fs-gap)}
.fishing-heading{gap:var(--fs-gap)}
.fishing-heading-row:first-child{height:32px}
#online.fishing-view .fishing-heading h1{font-size:26px;line-height:32px;margin:0}
.fishing-heading-tools{height:44px;margin-left:auto;gap:var(--fs-gap)}
.fishing-camera-slot{display:flex;align-items:center;height:44px}
.fishing-heading-row:last-child{height:44px}
.fishing-heading small{font:700 12px/20px system-ui;padding:0 8px;border:2px solid var(--fs-ink);box-shadow:0 2px 0 var(--fs-ink)}
.fishing-wallet{height:44px;grid-template-columns:1fr 1fr 1.3fr;gap:8px;align-items:center}
.fishing-wallet>span,.fishing-wallet>button{min-height:32px;grid-template-columns:24px 1fr;gap:0 4px;border:2px solid var(--fs-ink);border-radius:16px;padding:2px 6px;box-shadow:0 2px 0 var(--fs-ink)}
.fishing-wallet>button{min-height:44px}
.fishing-wallet img{width:24px;height:28px}
.fishing-wallet b{font-size:18px;white-space:nowrap}.fishing-wallet small{font-size:10px;white-space:nowrap}
.fishing-camera-control{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;min-height:44px;max-height:44px;min-width:104px;flex:none;margin:0;padding:4px 8px;font:16px/1 Lucky;color:var(--cream-200);background:var(--fs-panel);border:2px solid var(--fs-ink);border-radius:var(--vs-radius);box-shadow:0 var(--vs-drop-y,3px) 0 var(--fs-ink);white-space:nowrap}
.fishing-camera-icon{display:block;width:26px;height:26px;flex:none;object-fit:contain}
.fishing-zone-left,.fishing-zone-right{top:calc(var(--fs-top) + var(--fs-top-h) + var(--fs-gap));width:var(--fs-rail-w);z-index:2}
.fishing-ranking-column{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;height:auto;min-height:44px;padding:0 4px 4px;margin:0;border:0;border-radius:var(--vs-radius);background:#2c263d80;color:var(--cream-200);box-shadow:none}
.fishing-ranking-caption{font:16px/20px Lucky;white-space:nowrap;-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill;filter:drop-shadow(0 2px 0 var(--fs-ink))}
.fishing-ranking-mini-row{display:flex;flex-direction:column;align-items:center;gap:4px;height:52px;width:100%;flex:none}
.fishing-ranking-mini-avatar{position:relative;display:block;width:36px;height:36px}.fishing-ranking-mini-avatar .avatar-frame{width:36px;height:36px}
.fishing-ranking-mini-avatar .rank-medal{position:absolute;right:-8px;bottom:-2px;background:#f6c65b;border:2px solid var(--fs-ink);border-radius:8px;min-width:20px;height:20px;font:14px/16px Lucky;color:var(--text-on-cream);box-shadow:0 2px 0 var(--fs-ink)}
.fishing-ranking-mini-caption{font:12px/12px Lucky;white-space:nowrap;-webkit-text-stroke:2px var(--fs-ink);paint-order:stroke fill}
.fishing-ranking-vacant{display:grid;place-items:center;width:36px;height:36px;border:2px dashed var(--row-inset);border-radius:var(--vs-radius);color:var(--row-inset);font:20px Lucky}
.fishing-ranking-mini-row.is-me{background:#f5c96233;border-radius:10px}
.fishing-tools{display:flex;flex-direction:column;gap:8px}
.fishing-tools button{height:56px;min-height:44px;width:100%;border:2px solid var(--fs-ink);border-radius:var(--vs-radius);box-shadow:0 var(--fs-drop) 0 var(--fs-ink);background:linear-gradient(160deg,#ffffff20 0 18%,#ffffff00 19%),var(--fs-panel)!important;padding:2px 4px;margin:0;gap:2px;color:var(--card-face);font:14px/18px Lucky;-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill;text-shadow:none}
.fishing-tools img{width:28px;height:24px;filter:drop-shadow(0 2px 0 color-mix(in srgb,var(--vs-ink) 50.2%,transparent))}
.fishing-tools button[data-action=fishing-track]{display:flex;flex-direction:column;height:80px;gap:2px;padding:2px 4px}
.fishing-tools button[data-action=fishing-track]>img{width:28px;height:24px}.fishing-tools small{font:9px/16px Lucky;white-space:nowrap;-webkit-text-stroke:1.5px var(--fs-ink)}
.fishing-tools button[data-action=fishing-track]>small,.fishing-tools button[data-action=fishing-track]>.fishing-track-progress{grid-column:1/-1}
.fishing-track-progress{width:100%;height:8px;border:1px solid var(--fs-ink);background:#191628;border-radius:8px;overflow:hidden}.fishing-track-progress>i{display:block;width:100%;height:100%;transform-origin:left;background:#a8d68a;border-radius:inherit}
/* A larger reel uses the lane left of the unchanged gauge/fight column. Its utility dock
   shares the rim's level; the action/gauge anchors still use the original 64px cast slot. */
#online.fishing-view{--fs-reel-d:88px;--fs-reel-label-w:120px;--fs-reel-dock-h:96px}
.fishing-zone-bottom{display:grid;grid-template-columns:var(--fs-reel-label-w) minmax(0,1fr);grid-template-rows:44px 44px;align-items:end;gap:8px;height:var(--fs-reel-dock-h)}
#online.fishing-view .fishing-spot-banner{grid-column:2;grid-row:2;width:100%;min-width:0;max-width:168px}
#online.fishing-view .fishing-spot-banner>.secondary{display:flex;justify-content:center;align-items:center;gap:4px;width:100%;min-width:44px;padding:4px 8px;font-size:17px;height:44px;border:0;border-radius:var(--vs-radius);background:none;box-shadow:none;color:var(--paper);text-shadow:none}
#online.fishing-view .fishing-spot-banner>.secondary:before{inset:0;border:2px solid var(--fs-ink);border-radius:10px;background:linear-gradient(160deg,#ffffff20 0 18%,#fff0 19%),linear-gradient(#aaa0bd,#827491);box-shadow:inset 0 2px 0 #e5dcef,inset 0 -3px 0 #62576e}
.fishing-spot-banner i{font:24px/1 Lucky;font-style:normal;flex:none}
#online.fishing-view .fishing-main{position:relative;grid-column:1;grid-row:1/3;justify-self:start;align-self:end;width:var(--fs-reel-d);min-width:var(--fs-reel-d);min-height:var(--fs-reel-d);height:var(--fs-reel-d);margin:0 0 0 8px;flex:none;border:3px solid var(--fs-ink);border-radius:50%;padding:0;background:linear-gradient(160deg,#ffffff4d 0 18%,#fff0 19%),linear-gradient(var(--bt-top),var(--bt-face) 65%,var(--bt-low));box-shadow:var(--button-shadow);display:flex;align-items:center;justify-content:center;isolation:isolate}
#online.fishing-view .fishing-main:before{content:'';position:absolute;width:16px;height:8px;left:15px;top:9px;border:0;border-radius:50%;background:#fff9dfb3;box-shadow:none;transform:rotate(-28deg);z-index:0}
#online.fishing-view .fishing-main>.button-label{position:absolute;top:44px;bottom:auto;left:50%;right:auto;width:max-content;min-width:64px;max-width:var(--fs-reel-label-w);height:28px;margin:0;padding:3px 5px;border:2px solid var(--fs-ink);border-radius:var(--vs-radius);background:linear-gradient(var(--bt-face),var(--bt-low));box-shadow:0 2px 0 var(--fs-ink);font:17px/18px Lucky;white-space:nowrap;translate:-50% 0;transform:none;text-align:center}
#online.fishing-view .fishing-main>.fishing-cast-price{position:absolute;top:17px;height:27px;gap:4px;transform:none;font:19px/1 Lucky;pointer-events:none}.fishing-cast-price img{width:23px;height:25px}
#online.fishing-view .fishing-main.fishing-hold{--bt-top:#ffd67b;--bt-face:#ffad45;--bt-low:#ed872e}
#online.fishing-view .fishing-main[aria-pressed=true]{transform:translateY(var(--press-depth));box-shadow:var(--button-shadow-down)}
.fishing-reel-choices{grid-column:2;grid-row:1;justify-content:start;align-self:end;min-width:0;margin-left:calc(var(--fs-reel-d) + var(--fs-gap) - var(--fs-reel-label-w))}
.fishing-multipliers{display:flex;gap:0;border:2px solid var(--fs-ink);border-radius:var(--vs-radius);background:var(--fs-panel);box-shadow:0 var(--fs-drop) 0 var(--fs-ink)}
.fishing-multipliers button{height:44px;min-height:44px;width:44px;min-width:44px;flex:none;padding:0;margin:0;border:0;border-right:1px solid var(--fs-ink);border-radius:0;background:linear-gradient(#80728e,#544762);box-shadow:none}
.fishing-multipliers button:first-child{border-radius:10px 0 0 10px}.fishing-multipliers button:last-child{border-right:0;border-radius:0 10px 10px 0}
.fishing-multipliers button[aria-pressed=true]{background:linear-gradient(var(--honey-300),#e4a44f);color:#443342}
@media(max-height:700px){#online.fishing-view{--fs-reel-d:80px}.fishing-main>.button-label{top:40px!important}}
.fishing-screen:not([data-phase=ready]) .fishing-spot-banner{visibility:visible;opacity:1;transform:none}
.fishing-screen.is-tools-held .fishing-spot-banner{visibility:visible;opacity:1;transform:none}
@media(max-height:700px){.fishing-ranking-mini-row{height:44px;gap:2px}.fishing-ranking-mini-avatar,.fishing-ranking-mini-avatar .avatar-frame,.fishing-ranking-vacant{width:30px;height:30px}.fishing-ranking-mini-row:nth-child(4){display:none}.fishing-ranking-column{gap:4px}}
/* Owner 2026-10-08: Market joins Rewards as one contained scroll region. */
#modal:has(.fishing-market-sheet){display:flex;flex-direction:column;overflow:visible}
.fishing-market-sheet,.fishing-track-sheet{min-height:0;max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 132px);gap:8px}
.fishing-market-sheet>.fishing-sheet-heading,.fishing-market-sheet>.fishing-token-wallet{flex:none}
.fishing-market-list,.fishing-track-list{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:8px;padding:2px 4px 8px;scrollbar-width:thin;background:#bd9f7a;border-radius:10px}
.fishing-market-list>.fishing-list-row,.fishing-track-list>.fishing-list-row{flex:none;min-height:64px;padding:6px 8px;gap:8px;border:2px solid var(--fs-ink);border-radius:8px;background:var(--row-face);box-shadow:0 var(--vs-drop-y,3px) 0 var(--fs-ink);color:var(--text-on-cream)}
.fishing-track-list .fishing-list-row>div{display:grid;grid-template-columns:minmax(44px,1fr) auto;align-items:center;gap:8px}.fishing-track-list .fishing-list-row>div>b{align-self:start;padding-top:4px}
.fishing-track-list .fishing-row-rewards{gap:8px;flex-wrap:nowrap}
.fishing-track-list .fishing-row-rewards>.backpack-slot,.fishing-market-list .backpack-slot{width:48px;height:48px;min-width:48px;min-height:48px;padding:0;margin:0;flex:none}
.fishing-market-list .backpack-slot img,.fishing-track-list .backpack-slot img{width:78%;height:78%;object-fit:contain}
#modal .fishing-track-list .fishing-list-row>button,#modal .fishing-market-list .fishing-list-row>button:not(.backpack-slot){width:96px;min-width:96px;min-height:44px;padding:4px 8px}
.fishing-market-list .fishing-list-row>b{font:16px/18px Lucky}
.fishing-market-cost{display:flex;align-items:center;gap:4px;color:var(--vs-good,#23702c);font-weight:700!important;white-space:nowrap}.fishing-market-cost img{width:18px;height:18px;object-fit:contain}
.fishing-token-wallet{margin:0}
.fishing-bait-sources .fishing-source{align-items:start;border-color:var(--fs-ink,#241925);border-radius:8px;background:var(--row-face);box-shadow:0 var(--vs-drop-y,3px) 0 var(--fs-ink,#241925)}
.fishing-source button>.ad-badge{position:static;transform:none;align-self:center;margin:0;top:auto;bottom:auto}
.fishing-source button>.button-label{transform:none!important}
/* New fish is a corner sticker over the art; it never adds a grid track. */
.fishing-catch-item,.fishing-catch-item:not(:has(>small)){grid-template-areas:'art name' 'art weight' 'art tier' 'art bonus';grid-template-rows:auto auto auto auto;grid-template-columns:92px minmax(0,1fr);min-height:112px;padding:8px;row-gap:4px;column-gap:12px;border-color:var(--fs-ink,#241925);border-radius:var(--vs-radius);box-shadow:0 var(--vs-drop-y,3px) 0 var(--fs-ink,#241925)}
.fishing-catch-item>img{width:90px;height:90px;grid-area:art}
.fishing-catch-item>em{position:absolute;grid-area:auto;top:-8px;left:-5px;right:auto;margin:0;padding:3px 5px;font:16px/18px Lucky;border-width:2px;transform:rotate(-8deg);animation-name:fishing-stamp-slam}
/* Three full-width fish rows keep the translated New fish stamp clear of names. */
.fishing-catch-boxes:has(.fishing-catch-item:nth-child(3)):not(:has(.fishing-catch-item:nth-child(4))) .fishing-catch-item>em.is-new{padding-inline:2px}
.fishing-catch-item>em:not(.is-new){top:auto;bottom:-4px}
.fishing-catch-item em::before{display:none}
.fishing-catch-boxes{padding-top:8px}
@keyframes fishing-stamp-slam{0%{transform:rotate(-8deg) scale(1.4);opacity:0}70%{transform:rotate(-8deg) scale(.96);opacity:1}to{transform:rotate(-8deg) scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.fishing-camera-control,.fishing-main,.fishing-spot-banner,.fishing-ranking-column{transition:none!important;animation:none!important}}
/* Framed avatars outside the global header use the same portrait/rim anatomy. */
.fishing-ranking-mini-avatar .avatar-framed{position:relative;display:block;width:100%;height:100%;border-radius:7%;background:none}
.fishing-ranking-mini-avatar .avatar-framed>img{position:absolute;display:block;border:0;background:none;padding:0;margin:0;box-shadow:none}
.fishing-ranking-mini-avatar .avatar-portrait{inset:var(--avatar-inset);width:calc(100% - 2 * var(--avatar-inset));height:calc(100% - 2 * var(--avatar-inset));object-fit:contain}
.fishing-ranking-mini-avatar .avatar-frame{inset:0;width:100%;height:100%}
.fishing-ranking-mini-avatar .rank-medal{left:50%;right:auto;bottom:-2px;top:auto;transform:translateX(-50%);font:14px/16px Lucky;color:var(--text-on-cream);-webkit-text-stroke:0;text-shadow:none}
.fishing-ranking-column .fishing-ranking-vacant{display:grid;place-items:center;width:100%;height:100%;border:2px dashed var(--row-inset);border-radius:8px;font:20px/1 Lucky}

.fishing-sheet,.fishing-catch{--fs-ink:var(--vs-ink,#241925)}
@media(max-height:700px){.fishing-tools button{height:44px}.fishing-tools button[data-action=fishing-track]{height:56px}}
.fishing-ranking-mini-row.is-vacant{height:40px}
.fishing-screen:not([data-phase=ready]) .fishing-ranking-column{justify-content:center}
.fishing-screen:not([data-phase=ready]) .fishing-ranking-mini-row{display:none}
@media(max-height:700px){.fishing-zone-right{width:var(--fs-rail-w)}.fishing-tools button{gap:0;padding:0 2px}.fishing-tools img{width:24px;height:20px}.fishing-tools button[data-action=fishing-track]{display:flex;flex-direction:column;height:48px;gap:0;padding:0 2px}.fishing-tools button[data-action=fishing-track]>img{width:12px;height:12px}.fishing-tools button[data-action=fishing-track]>span:first-of-type{line-height:16px}.fishing-tools small{line-height:12px}.fishing-track-progress{height:4px;flex:none}.fishing-ranking-mini-row.is-vacant{height:34px}}
/* The first-person over-head swing passes beside the top banner; the ranking
   entry yields for that short acting beat and returns at rest. */
.fishing-screen[data-camera=first][data-phase=cast] .fishing-ranking-column{visibility:hidden}
.fishing-screen[data-camera=first][data-phase=reveal] .fishing-ranking-column{visibility:hidden}

/* The outline and hard drop use the shared ink; the rare and legendary tier glow stays inside the box. */
.fishing-catch:is(.tier-r,.tier-l) .fishing-catch-item{border-color:var(--fs-ink,#241925)}
.fishing-catch.tier-r .fishing-catch-item{box-shadow:inset 0 0 18px #b7def777,0 var(--vs-drop-y,3px) 0 var(--fs-ink,#241925)}
.fishing-catch.tier-l .fishing-catch-item{box-shadow:inset 0 0 20px #ffe6a777,0 0 18px #f6cf6f44,0 var(--vs-drop-y,3px) 0 var(--fs-ink,#241925)}

/* Quality pass (2026-10-09, docs/qa/fishing-cast-motion-b81/REPORT.md → Quality pass). One plate language for every HUD
   group (2px ink outline, 12px radius, 3px hard drop, the translucent panel under the 160° gloss band) on the 8px rhythm.
   Banner: the title and (?) share the 32px row; the timer chip and the camera share the 44px row; the three wallet
   chips are one 36px height (the Golden Lantern keeps its 44px target around its plate). Rails: the ranking column wears
   the tool plate and in ready matches the right stack's height (Mini, Pro, Max); the tool art grows and the label
   overlaps its foot. Bottom: the reel is centred in its 120px lane between Back and the choice column (16px each side,
   Compact 20px; the fight rows' reach keeps clear of it), so the widest state ribbon keeps 7.5px from both; the
   ×1/×5/×10 plate and the spot banner share that column's edges, out to the right gutter. The centre zone (scene note,
   rod ceremony) stays between the rails. */
#online.fishing-view{--fs-plate:linear-gradient(160deg,#ffffff20 0 18%,#fff0 19%),var(--fs-panel);--fs-chip-h:36px;--fs-rail-h:calc(3 * 56px + 80px + 3 * var(--fs-gap));--fs-reel-lane:120px;--fs-reel-label-w:112px}
.fishing-heading small{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px 0 8px;border:2px solid var(--fs-ink);border-radius:16px;background:var(--fs-plate);box-shadow:0 var(--fs-drop) 0 var(--fs-ink);font:15px/1 Lucky;color:var(--cream-200);-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill;white-space:nowrap}
.fishing-heading small::before{content:'';flex:none;width:16px;height:16px;border:2px solid currentColor;border-radius:50%;background:linear-gradient(currentColor,currentColor) 5px 2px/2px 5px no-repeat,linear-gradient(currentColor,currentColor) 5px 5px/4px 2px no-repeat;box-shadow:0 0 0 1.5px var(--fs-ink),inset 0 0 0 1px var(--fs-ink)}
.fishing-camera-control{background:var(--fs-plate)}
/* (?) shares the title's 32px row; its 34px disc sits 1px high so it keeps 8px from the camera row below. */
.fishing-heading-row:first-child>.fishing-heading-tools{translate:0 -1px}
.fishing-wallet>span,.fishing-wallet>button{position:relative;height:var(--fs-chip-h);min-height:var(--fs-chip-h);grid-template-columns:26px minmax(0,1fr);align-content:center;row-gap:0;column-gap:4px;padding:0 8px 0 4px;border-radius:18px;background:var(--fs-plate);box-shadow:0 var(--fs-drop) 0 var(--fs-ink);color:var(--cream-200)}
.fishing-wallet>button{height:44px;min-height:44px;padding-left:6px;border:0;background:none;box-shadow:none;isolation:isolate}
.fishing-wallet>button::before{content:'';position:absolute;inset:calc((44px - var(--fs-chip-h)) / 2) 0;z-index:-1;border:2px solid var(--fs-ink);border-radius:18px;background:var(--fs-plate);box-shadow:0 var(--fs-drop) 0 var(--fs-ink)}
.fishing-screen.is-guaranteed .fishing-wallet>button{box-shadow:none}
.fishing-screen.is-guaranteed .fishing-wallet>button::before{box-shadow:0 0 12px #ffdb8d,0 var(--fs-drop) 0 var(--fs-ink)}
.fishing-wallet img{width:26px;height:30px}
.fishing-wallet b{font:18px/18px Lucky;-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill;color:var(--cream-200)}
.fishing-wallet small{font:10px/12px system-ui;color:var(--cream-300)}
.fishing-ranking-column{padding:4px;border:0;background:none;box-shadow:none}
.fishing-screen[data-phase=ready] .fishing-ranking-column{height:var(--fs-rail-h);justify-content:center}
.fishing-ranking-mini-row.is-vacant{height:52px;justify-content:center}
.fishing-ranking-mini-row.is-me{background:#f5c96240;border-radius:8px}
.fishing-tools button{gap:0;padding:2px 4px 3px}
.fishing-tools button>img{position:relative;z-index:0;width:36px;height:32px;margin:0 0 -6px}
.fishing-tools button>span:not(.fishing-track-progress,.attention-badge){position:relative;z-index:1}
.fishing-tools button[data-action=fishing-track]{gap:0;padding:2px 4px 4px}
.fishing-tools button[data-action=fishing-track]>img{width:32px;height:28px;margin-bottom:-6px}
.fishing-tools button[data-action=fishing-track]>small{margin-top:1px}
.fishing-tools button[data-action=fishing-track]>.fishing-track-progress{flex:none;margin-top:3px}
.fishing-tools .attention-badge{top:-7px;right:-3px}
.fishing-zone-bottom{left:calc(var(--fs-gutter) + var(--fs-back-w));grid-template-columns:var(--fs-reel-lane) minmax(0,1fr);column-gap:0}
#online.fishing-view .fishing-main{justify-self:center;margin:0;background:radial-gradient(circle closest-side,#fff0 calc(100% - 9px),#fff6d466 calc(100% - 8px) calc(100% - 6px),#fff0 calc(100% - 5px)),linear-gradient(160deg,#ffffff4d 0 18%,#fff0 19%),linear-gradient(var(--bt-top),var(--bt-face) 65%,var(--bt-low))}
.fishing-reel-choices{margin-left:0}
.fishing-reel-choices>.fishing-multipliers{flex:1;min-width:0}
.fishing-multipliers button{flex:1 1 0;width:auto;color:var(--cream-200);-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill}
.fishing-multipliers button[aria-pressed=true]{background:linear-gradient(var(--active-top,#ffdf75),var(--active-bottom,#ffc342));box-shadow:inset 0 2px var(--active-shine,#fff3bd),inset 0 -3px var(--active-lip,#c48f3c);color:var(--active-ink,#fffaf1)}
#online.fishing-view .fishing-spot-banner{max-width:none}
.fishing-zone-center{left:calc(var(--fs-gutter) + var(--fs-rail-w) + var(--fs-gap));right:calc(var(--fs-gutter) + var(--fs-rail-w) + var(--fs-gap))}
/* The gauge pops up from its hub when the aim starts (the arc's opacity stays free for the cast's fade afterwards). */
.fishing-aim:not([hidden]) .fishing-aim-arc{animation:fishing-gauge-in 220ms var(--ease-out) backwards}
.fishing-aim:not([hidden]) .fishing-aim-zone-key{animation:fishing-gauge-in 240ms var(--ease-out) 50ms backwards}
@keyframes fishing-gauge-in{from{opacity:0;transform:translateY(10px) scale(.84)}}
@media(max-height:700px){
 .fishing-screen[data-phase=ready] .fishing-ranking-column{height:auto}
 .fishing-ranking-column{padding:2px 4px}
 .fishing-ranking-mini-row.is-vacant{height:44px}
 .fishing-tools button{padding:1px 2px 2px}
 .fishing-tools button>img{width:28px;height:24px;margin-bottom:-5px}
 .fishing-tools button[data-action=fishing-track]{padding:1px 2px 2px}
 .fishing-tools button[data-action=fishing-track]>img{display:none}
 .fishing-tools button[data-action=fishing-track]>small{margin-top:0}
 .fishing-tools button[data-action=fishing-track]>.fishing-track-progress{margin-top:2px}
 .fishing-zone-center{right:calc(var(--fs-gutter) + 80px + var(--fs-gap))}
}
/* Quality pass, sheets: the Rewards weight sits on its row's centre line with the tiles and Claim; the exchange and bait
   quantity dialogs centre their art, amount, stepper, cost and stock on one axis (the cost keeps its catch-token art);
   a chosen quantity, spot or choice shows the shared honey selected face instead of a grey "unavailable" one; each
   spot row carries its own plate; the book names tiers with the catch card's tier colours; the empty ranking line
   keeps body contrast on the cream sheet (#65543e, at least 5.1:1 across the sheet's gradient). */
.fishing-track-list .fishing-list-row>div>b{align-self:center;padding-top:0}
#modal .fishing-buy{text-align:center;align-items:stretch}
#modal .fishing-buy>p,#modal .fishing-buy>small{margin:0;text-align:center}
#modal .fishing-buy>p.fishing-market-cost{display:flex;justify-content:center;font:700 16px/1.2 system-ui}
#modal .fishing-buy>p.fishing-market-cost img{width:22px;height:22px}
#modal .fishing-quantity>b{min-width:44px;font:26px/1 Lucky;color:var(--text-on-cream);text-align:center}
#modal .fishing-quantity>button.secondary[aria-pressed=true]:disabled{--small-top:var(--active-top);--small-bottom:var(--active-bottom);--small-edge:var(--active-edge);--small-lip:var(--active-lip);--small-shine:var(--active-shine);outline:0;filter:none;color:var(--active-ink);-webkit-text-stroke-width:var(--active-stroke)}
#modal .fishing-buy>.fishing-sheet-heading>h1{text-align:left}
/* The spot's own far plate over a sky wash, with a water band where its lake or river begins (plate row 923). */
.fishing-spot-thumb{flex:none;width:48px;height:48px;border:2px solid var(--fs-ink,#241925);border-radius:8px;overflow:hidden;box-shadow:0 2px 0 var(--fs-ink,#241925);background-color:#a9d9ef;background-repeat:no-repeat;background-size:100% 100%,cover,100% 100%;background-position:0 0,50% 34%,0 0}
.fishing-track-list .backpack-slot>.fishing-spot-thumb{display:block;width:100%;height:100%;border:0;border-radius:inherit;box-shadow:none}
.fishing-tier-pill{justify-self:center;align-self:center;padding:2px 10px 1px;border:2px solid #0000002e;border-radius:999px;background:#8fcf8a;color:#fff;font:14px/1.15 Lucky;white-space:nowrap;-webkit-text-stroke:3px #3d2a26;paint-order:stroke fill}
.fishing-tier-pill.tier-r{background:#6c9fc2}.fishing-tier-pill.tier-l{background:#e2b04f;border-color:#7a4f12}
.fishing-book-grid .is-unknown .fishing-tier-pill{filter:saturate(.35)}
#modal .fishing-ranking .rank-empty{color:#65543e}
/* The ceremony title and the scene note wrap evenly in the space between the rails. */
.fishing-ceremony b,#fishing-scene-note{text-wrap:balance}

/* F1: one circular count face, pressed like Story speed inside a stationary target. */
#online.fishing-view .fishing-reel-choices>.fishing-multipliers{flex:none;display:block;border:0;background:none;box-shadow:none}
#online.fishing-view .fishing-multipliers>.fishing-count-toggle{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:none;box-shadow:none;transform:none;transition:none}
#online.fishing-view .fishing-count-toggle::before{inset:0;border-radius:50%;transition:transform .12s ease-out}
#online.fishing-view .fishing-count-toggle>.button-label{font:19px/1 Lucky;transform:translateY(-1px);transition:scale var(--tap-t,.12s ease-out)}
#online.fishing-view .fishing-count-toggle:not(:disabled):is(:active,.is-pressed)::before{transform:scale(.94)}
#online.fishing-view .fishing-count-toggle:not(:disabled):is(:active,.is-pressed)>.button-label{scale:.94}
@media(prefers-reduced-motion:reduce){#online.fishing-view .fishing-count-toggle::before,#online.fishing-view .fishing-count-toggle>.button-label{transition:none}}

/* F2: unavailable selections are passive lock states, never action faces. */
.fishing-locked-state{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;padding:3px 5px;border:1px solid var(--fs-ink,#241925);border-radius:999px;background:#e4dccb;color:#695e4e;font:600 12px/16px system-ui;white-space:nowrap}
.fishing-locked-state>img{width:14px;height:16px;object-fit:contain}

/* F3: both the text line and the drawn chevron share the banner's centre. */
#online.fishing-view .fishing-spot-banner .button-label{transform:none}
.fishing-spot-chevron{display:block;flex:none;width:10px;height:14px;overflow:visible;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 0 var(--fs-ink))}
/* F5: the state is lettering on the reel disc, sharing its face and press depth. */
#online.fishing-view .fishing-main>.button-label{border:0;border-radius:0;background:none;box-shadow:none;min-width:0;height:24px;max-width:var(--fs-reel-label-w);padding:3px 0;font:17px/18px Lucky;color:inherit;text-shadow:none}
/* F6: catch art centres in its art cell; reward tiles retain the shared count anchor. */
.fishing-catch-item>img{justify-self:center;align-self:center}
.fishing-catch-rewards>.backpack-slot{display:grid;place-items:center}

/* r2 M3: short state copy stays inside the reel's inner outline chord.
   Compact uses the legible 16px action step; neither label nor bait is clipped. */
#online.fishing-view .fishing-main>.button-label{top:40px;max-width:calc(var(--fs-reel-d) - 24px)}
#online.fishing-view .fishing-main>.fishing-cast-price{top:11px}
@media(max-height:700px){#online.fishing-view .fishing-main>.button-label{top:34px!important;font:16px/18px Lucky}#online.fishing-view .fishing-main>.fishing-cast-price{top:9px}}

/* r2 M2: the count leaves immediately when the gauge enters its shared lane. */
.fishing-screen:not([data-phase=ready]) .fishing-count-toggle{visibility:hidden;transition:none}

/* F12: the count target stays next to the reel, 8px from its rim. */
.fishing-reel-choices{grid-row:1/3;align-self:center;margin-left:-8px}
/* F13: full-width bottom bar; the reel lane sits above it and keeps Back clear. */
#online.fishing-view .fishing-zone-bottom{left:var(--fs-gutter);height:148px;grid-template-columns:calc(var(--fs-back-w) + var(--fs-reel-lane)) minmax(0,1fr);grid-template-rows:96px 44px;gap:8px 0}
#online.fishing-view .fishing-main{grid-row:1;justify-self:end;margin-right:16px}
#online.fishing-view .fishing-reel-choices{grid-row:1;grid-column:2;align-self:center;margin-left:-8px}
#online.fishing-view .event-spot-bar{grid-row:2;grid-column:1/3;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px;min-height:44px;border:2px solid var(--fs-ink);border-radius:var(--vs-radius);background:var(--fs-plate);box-shadow:0 3px 0 var(--fs-ink);color:var(--cream-200)}
#online.fishing-view .event-spot-bar>.secondary{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;margin:-2px 0;border:0;font:28px/1 Lucky;box-shadow:none}
#online.fishing-view .event-spot-bar .route-arrow-art{display:block;width:32px;height:28px;overflow:visible}
#online.fishing-view .event-spot-bar .route-arrow-art.left{transform:scaleX(-1)}
#online.fishing-view .event-spot-bar>button:disabled:not([data-busy-lock]){opacity:1;filter:none;color:#8a8594;-webkit-text-stroke:1px #8a8594;text-shadow:none}
#online.fishing-view .event-spot-bar>button:disabled:not([data-busy-lock]):before{background:#595261;box-shadow:inset 0 2px 0 #77707f,inset 0 -3px 0 #47414e}
#online.fishing-view .event-spot-bar>button:disabled .route-arrow-art{filter:grayscale(1) brightness(.65)}
.event-spot-caption{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;text-align:center}
.event-spot-caption>.fishing-spot-thumb{width:36px;height:36px;object-fit:contain;border:0;background:none;border-radius:0;flex:none}
.event-spot-caption>span{display:flex;flex-direction:column;gap:2px;min-width:0}.event-spot-caption b{font:17px/1.1 Lucky;white-space:nowrap;color:var(--cream-200);-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill;filter:drop-shadow(0 2px 0 var(--fs-ink))}
.event-spot-caption small{display:flex;align-items:center;justify-content:center;gap:4px;font:12px/1.1 system-ui;color:var(--cream-200)}.event-spot-caption small img{width:12px;height:14px;object-fit:contain}
#online.fishing-view .event-spot-bar.is-new-area{position:relative;border-color:var(--honey-300);box-shadow:0 3px 0 var(--fs-ink),inset 0 0 0 1px var(--honey-300)}
/* F14 motion stage: the ring on the highlighted bar's edge that flares once when the area reveal closes
   (fishingAreaBarPop); invisible at rest and under reduced motion. The area reveal itself is the shared unlock reveal
   (story-ui.css). */
#online.fishing-view .event-spot-ring{position:absolute;inset:-2px;border:3px solid var(--honey-300);border-radius:var(--vs-radius);box-shadow:0 0 14px 3px #ffd25c99,inset 0 0 10px #ffdf7566;opacity:0;pointer-events:none}
@media(max-height:700px){#online.fishing-view .fishing-zone-bottom{height:132px;grid-template-rows:80px 44px}}
#online.fishing-view #tabs{bottom:52px}
/* F18: Fishing supplies data to the shared ranking rows, with fixed rail geometry. */
#online.fishing-view .event-ranking-column{width:100%;height:var(--fs-rail-h);background:none;border:0;box-shadow:none;padding:4px 0;gap:3px}
/* AC374: the scene shows between independent wells; no column slab. */
.fishing-zone-left .event-ranking-label{color:var(--cream-200);-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill;filter:drop-shadow(0 2px 0 var(--fs-ink))}
.fishing-zone-left .event-ranking-mini{grid-template-columns:max-content 30px;grid-template-rows:30px auto;padding:0 2px 2px;column-gap:2px}
.fishing-zone-left .event-ranking-mini .event-ranking-place{font-size:11px}
.fishing-zone-left .event-ranking-mini .avatar-framed{width:30px;height:30px}
.fishing-zone-left .event-ranking-metric{font-size:10px}
.fishing-zone-left .event-ranking-metric.fishing-ranking-metric-small{font-size:9px}
.fishing-zone-left .event-ranking-mini:not(:has(.event-ranking-vacant)){border:2px solid var(--fs-ink);border-radius:8px;background:#40384c;box-shadow:0 2px 0 var(--fs-ink)}
.fishing-zone-left .event-ranking-mini.is-you{border-color:var(--honey-300)}
.fishing-zone-left .event-ranking-mini:has(.event-ranking-vacant){background:none;-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill;filter:drop-shadow(0 2px 0 var(--fs-ink))}
.fishing-screen:not([data-phase=ready]) .event-ranking-entry,.fishing-screen.is-tools-held .event-ranking-entry{display:none}
.fishing-screen:not([data-phase=ready]) .event-ranking-column,.fishing-screen.is-tools-held .event-ranking-column{height:44px!important}
@media(max-height:700px){.fishing-zone-left .event-ranking-mini:nth-child(4){display:none}.fishing-zone-left .event-ranking-mini{min-height:44px;grid-template-rows:30px auto}.fishing-zone-left .event-ranking-mini .avatar-framed{width:30px;height:30px}.fishing-zone-left .event-ranking-column{gap:2px;font-size:14px}}
/* F13 fit: the full-width bar stays inside the safe edge, leaving a clear reel lane above. */
#online.fishing-view{--fs-reel-d:88px;--fs-spot-face-h:44px}
#online.fishing-view .fishing-zone-bottom{bottom:calc(var(--fs-bottom) - 8px);height:148px;grid-template-rows:96px 44px}
#online.fishing-view .event-spot-bar{box-sizing:border-box;height:var(--fs-spot-face-h);min-height:var(--fs-spot-face-h);align-self:end;grid-template-rows:minmax(0,1fr)}
/* Shorter painted bars retain bottom-aligned 44px arrow targets inside the safe area. */
#online.fishing-view .event-spot-bar>.secondary{margin:calc(var(--fs-spot-face-h) - 46px) 0 -2px}
/* Paint only inside the bar; the target's extra height remains transparent above it. */
#online.fishing-view .event-spot-bar>.secondary:before{inset:calc(44px - var(--fs-spot-face-h)) 0 0}
#online.fishing-view .event-spot-bar>button>span{transform:translateY(calc((44px - var(--fs-spot-face-h)) / 2))}
#online.fishing-view #tabs{bottom:44px}
@media(max-height:700px){#online.fishing-view .fishing-zone-bottom{height:132px;grid-template-rows:80px 44px}}
#online.fishing-view .fishing-main{margin-bottom:2px;--press-depth:2px}
#online.fishing-view .fishing-main[aria-pressed=true]{transform:translateY(2px)}
#online.fishing-view .fishing-main>.button-label{top:32px}
#online.fishing-view .fishing-main>.fishing-cast-price{top:9px;height:23px;font-size:18px;gap:1px;transform:translateX(-1.5px)}
#online.fishing-view .fishing-cast-price img{width:20px;height:23px}
#online.fishing-view .fishing-reel-choices{position:relative;top:2px}
@media(max-height:700px){#online.fishing-view .fishing-main>.button-label{top:28px!important}#online.fishing-view .fishing-main>.fishing-cast-price{top:7px;height:22px}#online.fishing-view .fishing-reel-choices{top:-6px}}
/* The Compact rail clears the rear camera's idle and return-to-ready panda. */
@media(max-height:700px){#online.fishing-view{--fs-rail-h:196px}#online.fishing-view .event-ranking-column{height:196px}}
@media(max-height:700px){.fishing-zone-left .event-ranking-mini.is-you{min-height:64px}}
/* Mini retains its 76px reel below the casting panda. A 39px painted bar and
   visible 3px lip provide 4px clearance without moving its 44px arrow targets. */
@media(min-height:701px) and (max-height:830px){#online.fishing-view{--fs-reel-d:76px;--fs-spot-face-h:39px}#online.fishing-view .fishing-zone-bottom{height:140px;grid-template-rows:88px 44px}#online.fishing-view .fishing-main{margin-bottom:-6px;--button-shadow:0 3px 0 #171a29,inset 0 3px 0 #fff7d4a8,inset 0 -6px 0 var(--bt-edge)}#online.fishing-view .fishing-main>.button-label{top:24px;max-width:calc(var(--fs-reel-d) - 20px)}#online.fishing-view .fishing-reel-choices{top:12px}}
/* Pro keeps its 80px reel below the cast-foot envelope; only the painted bar
   moves down 4px. Its arrow targets remain 44px tall at the safe edge. */
@media(min-height:831px) and (max-height:900px){#online.fishing-view{--fs-reel-d:80px;--fs-spot-face-h:40px}#online.fishing-view .fishing-zone-bottom{height:140px;grid-template-rows:88px 44px}#online.fishing-view .fishing-main{margin-bottom:-2px}#online.fishing-view .fishing-reel-choices{top:6px}}

/* F11: spot names in Book and Odds use the same supplied icons as the HUD. */
.fishing-sheet .fishing-spot-heading{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;margin:8px 0}
.fishing-spot-heading .fishing-spot-thumb{width:36px;height:36px;flex:none}
/* AC377: one existing Book cutout straddles the plate in a reserved safe header. */
#modal:has(.fishing-book-sheet){isolation:isolate;border-color:transparent;background:none;box-shadow:none;padding-top:104px;max-height:calc(100dvh - var(--safe-top,0px) - var(--safe-bottom,0px) - 24px)}
#modal:has(.fishing-book-sheet)::before{content:'';position:absolute;inset:48px 0 0;z-index:-1;pointer-events:none;border:3px solid #bd9a5d;border-radius:23px;background:linear-gradient(var(--cream-200),#e7cda0);box-shadow:0 6px 24px #0006}
.fishing-book-sheet>.fishing-book-header-art{position:absolute;top:0;left:50%;translate:-50% 0;width:96px;height:96px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 0 var(--vs-ink))}
.fishing-book-sheet{gap:8px}
.fishing-book-sheet .fishing-spot-heading{align-self:center;margin:0;gap:6px;padding:2px 10px;border:2px solid var(--vs-ink);border-radius:10px;background:#40384c;box-shadow:0 3px 0 var(--vs-ink);color:var(--cream-200);font:17px/1.1 Lucky;-webkit-text-stroke:3px var(--vs-ink);paint-order:stroke fill;text-shadow:none;white-space:nowrap}
/* Supplied spot icons already include their frame; scene-thumbnail chrome is obsolete on images. */
:is(#online,#modal) img.fishing-spot-thumb{border:0;border-radius:0;padding:0;background:none;box-shadow:none}

/* Catch/loss acting starts immediately; its reaction must not run under a fading fight plate. */
.fishing-screen:is([data-phase=loss],[data-phase=reveal]) .fishing-hud-slot>.fishing-fight{visibility:hidden;opacity:0;transition:none}

/* AC409: guard WebKit's page-level long press while the Fishing view owns the screen. */
html:has(#fishing-screen),html:has(#fishing-screen) body,#online.fishing-view{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html:has(#fishing-screen) :is(input,textarea,[contenteditable]){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
/* Keep the reel's bottom anchor and 4px lip clearance; grow toward the scene. */
#online.fishing-view{--fs-reel-d:96px}
#online.fishing-view .fishing-main>.button-label{top:34.91px}
#online.fishing-view .fishing-main>.fishing-cast-price{top:9.82px}
@media(max-height:700px){#online.fishing-view{--fs-reel-d:96px}#online.fishing-view .fishing-main>.button-label{top:30.55px!important}#online.fishing-view .fishing-main>.fishing-cast-price{top:7.64px}}
@media(min-height:701px) and (max-height:830px){#online.fishing-view{--fs-reel-d:84px}#online.fishing-view .fishing-main>.button-label{top:26.53px}#online.fishing-view .fishing-main>.fishing-cast-price{top:9.95px}}
@media(min-height:831px) and (max-height:900px){#online.fishing-view{--fs-reel-d:85px}#online.fishing-view .fishing-main>.button-label{top:34px}#online.fishing-view .fishing-main>.fishing-cast-price{top:9.56px}}

/* Pro: shift the enlarged reel/count pair 10px within the clear bottom lane. */
@media(min-height:831px) and (max-height:900px){#online.fishing-view .fishing-main,#online.fishing-view .fishing-reel-choices{left:10px}}

/* AC411: touch opening has no WebKit ring; keyboard scrolling keeps visible focus. */
:root:not([data-input-modality=keyboard]) #modal .fishing-track-list:focus{outline:none}
:root[data-input-modality=keyboard] #modal .fishing-track-list:focus-visible{outline:2px solid #b67939;outline-offset:2px}

/* AC406: content-sized ranking rows; spare rail height never stretches the Me block. */
.fishing-zone-left .event-ranking-mini{padding:3px 2px 2px;row-gap:0;grid-auto-rows:max-content;align-content:start;min-height:52px;flex-shrink:0}
.fishing-zone-left .event-ranking-mini.is-you{min-height:0;grid-template-rows:30px max-content max-content}
/* The Lucky name's line box reserves 3px below its ink; close only that optical gap. */
.fishing-zone-left .event-ranking-mini.is-you:has(.event-ranking-metric:not(:empty)) .event-ranking-person{margin-bottom:-3px}

/* AC408: standard bounded confirm dialog; both actions share one target size. */
.fishing-buyback-sheet{text-align:center}
.fishing-buyback-sheet h1{margin:0}
.fishing-buyback-status{display:block;margin-top:12px;color:var(--text-on-cream);font:14px/1.3 system-ui}
#modal:has(.fishing-buyback-sheet) .equipment-actions{margin-top:16px}
#modal:has(.fishing-buyback-sheet) .equipment-actions>button{min-width:0;width:100%;min-height:72px;font-size:24px}

/* AC410: split the existing closed chest at its seam only while it opens; the lid
   drops shut again, so the still and reduced-motion state is the whole closed art.
   Retain the 130px art slot. */
.fishing-catch.is-chest{--tier:var(--chest-rarity);--amp:.4}
.fishing-catch.is-chest .fishing-catch-boxes{position:relative;isolation:isolate}
.fishing-catch.is-chest .fishing-catch-boxes::before,.fishing-catch.is-chest .fishing-catch-boxes::after{content:'';position:absolute;inset:-12px 0;z-index:-1;pointer-events:none;border-radius:50%}
.fishing-catch.is-chest .fishing-catch-boxes::before{background:radial-gradient(ellipse,color-mix(in srgb,var(--chest-rarity) 32%,transparent),transparent 70%)}
.fishing-catch.is-chest .fishing-catch-boxes::after{background:repeating-conic-gradient(from 0deg,var(--chest-rarity) 0deg 9deg,transparent 9deg 30deg);mask-image:radial-gradient(ellipse,#0003,transparent 67%);opacity:.14}
.fishing-chest-art{position:relative;display:block;width:130px;height:130px;flex:none;pointer-events:none}
.fishing-chest-drop,.fishing-chest-shake{position:absolute;inset:0;transform-origin:50% 85%}
.fishing-chest-shake::before{content:"";position:absolute;left:10%;top:45%;width:80%;height:12%;border-radius:50%;background:var(--vs-ink-text);opacity:0}
.fishing-chest-shake>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.fishing-chest-shake>.co-body{clip-path:inset(51% 0 0)}
.fishing-chest-shake>.co-lid{clip-path:inset(0 0 48%);transform-origin:50% 24%}
.fishing-chest-leak{position:absolute;left:12%;top:47%;width:76%;height:7%;filter:blur(3px);border-radius:50%;background:radial-gradient(ellipse,var(--cream-250),color-mix(in srgb,var(--chest-rarity) 70%,#fff) 40%,transparent 72%);opacity:0}
.fishing-chest-flash{position:absolute;left:50%;top:48%;width:180px;height:180px;margin:-90px;pointer-events:none;background:radial-gradient(circle,#fffbe8cc,color-mix(in srgb,var(--chest-rarity) 35%,transparent) 35%,transparent 65%);opacity:0}
.fishing-chest-sparks{position:absolute;left:50%;top:48%;width:0;height:0;pointer-events:none}
.fishing-chest-sparks>i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;background:#fff6d1;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:0}
.fishing-catch.is-chest.is-opening .fishing-chest-drop{animation:fishing-chest-drop 220ms ease-out both}
.fishing-catch.is-chest.is-opening .fishing-chest-shake{animation:co-shake 480ms ease-in 220ms both,co-open-pop 320ms ease-out 700ms forwards}
.fishing-catch.is-chest.is-opening .co-lid{animation:co-lid-hinge 340ms ease-in 680ms both,fishing-chest-lid-shut 240ms cubic-bezier(.4,0,.6,1.5) 1080ms forwards}
.fishing-catch.is-chest.is-opening .fishing-chest-leak{animation:co-leak 340ms ease-in 680ms both,fishing-chest-fade 200ms ease-in 1080ms forwards}
.fishing-catch.is-chest.is-opening .fishing-chest-shake::before{animation:fishing-chest-inside 640ms linear 680ms both}
.fishing-catch.is-chest.is-opening .fishing-chest-flash{animation:co-flash 420ms ease-out 900ms both}
.fishing-catch.is-chest.is-opening .fishing-chest-sparks>i{animation:co-spark 430ms ease-out 870ms both}
.fishing-catch.is-chest.is-opening .fishing-catch-boxes::after{animation:ac640-light-in 400ms ease-out 900ms both,co-rays-spin 24s linear 1300ms infinite}
@keyframes fishing-chest-drop{from{opacity:0;transform:translateY(-18px) scale(.86)}to{opacity:1;transform:none}}
@keyframes fishing-chest-lid-shut{from{transform:perspective(300px) rotateX(46deg)}to{transform:none}}
@keyframes fishing-chest-fade{from{opacity:1;transform:scale(1.1,1.6)}to{opacity:0;transform:scale(.8,.4)}}
@keyframes fishing-chest-inside{0%{opacity:0}8%,62%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.fishing-catch.is-chest *,.fishing-catch.is-chest .fishing-catch-boxes::after{animation:none!important}}

/* Owner revision (2026-10-11): centered reel and vertically centered label/bait group. */
#online.fishing-view .fishing-main{grid-column:1/-1;justify-self:center;margin:0 0 4px;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#online.fishing-view .fishing-main>.button-label,#online.fishing-view .fishing-main>.fishing-cast-price{position:static;top:auto!important;left:auto;right:auto;bottom:auto;translate:none;transform:none;flex:none}
#online.fishing-view .fishing-reel-choices{grid-column:1/-1;justify-self:center;margin-left:calc(var(--fs-reel-d) + 60px);margin-right:0;left:0}
#online.fishing-view .fishing-zone-gauge,#online.fishing-view .fishing-zone-action{bottom:calc(var(--fs-bottom) + 160px)}
/* AC431: caption, rows and own position share one visibility state. */
.fishing-screen:not([data-phase=ready]) .event-ranking-column,.fishing-screen.is-tools-held .event-ranking-column{visibility:hidden;pointer-events:none}
.fishing-book-completion{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:6px;border:2px solid #c8b2c3;border-radius:var(--vs-radius)}
.fishing-book-completion>div{display:flex;gap:4px}.fishing-book-completion .backpack-slot{width:36px;height:36px}
.fishing-book-completion>small{flex-basis:100%;text-align:center;font:12px/1.2 system-ui}
.fishing-book-completion.is-complete{border-color:#68a568}.fishing-book-all{display:flex;align-items:center;justify-content:center;gap:4px;font:12px/1.2 system-ui}
.fishing-book-all img{width:18px;height:18px;object-fit:contain}

/* Owner b96: one compact resource/camera row and a small live header countdown. */
#online.fishing-view{--fs-head-h:44px;--fs-top-h:96px;--fs-rail-gap:24px}
#online.fishing-view .fishing-zone-left,#online.fishing-view .fishing-zone-right{top:calc(var(--fs-top) + var(--fs-top-h) + var(--fs-rail-gap))}
#online.fishing-view .fishing-heading{height:44px}
#online.fishing-view .fishing-heading-row{height:44px;gap:6px}
#online.fishing-view .fishing-heading h1{font-size:22px;line-height:23px;white-space:normal;min-width:0;flex:1}
#online.fishing-view .fishing-heading small{height:24px;padding:0 5px;font:700 10px/1 system-ui;-webkit-text-stroke:0;box-shadow:none;gap:0;flex:none;font-variant-numeric:tabular-nums}
#online.fishing-view .fishing-heading small::before{display:none}
#online.fishing-view .fishing-heading-tools{margin-left:0}
#online.fishing-view .fishing-wallet{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#online.fishing-view .fishing-wallet>span:not(.fishing-camera-slot),#online.fishing-view .fishing-wallet>button{padding:0 4px;grid-template-columns:20px minmax(0,1fr);column-gap:2px}
#online.fishing-view .fishing-wallet img{width:20px;height:26px}
#online.fishing-view .fishing-wallet small{font-size:9px;line-height:10px;white-space:normal}
#online.fishing-view .fishing-wallet b{font-size:16px}
#online.fishing-view .fishing-wallet>.fishing-camera-slot{display:flex;padding:0;border:0;box-shadow:none;background:none;height:44px;min-height:44px}
#online.fishing-view .fishing-camera-control{min-width:0;width:100%;padding:2px 5px;gap:3px;font-size:14px;white-space:normal;line-height:15px}
#online.fishing-view .fishing-camera-icon{width:20px;height:20px}

/* Inventory-style rewards are square touch targets and always open item details. */
#modal .fishing-book-completion .backpack-slot,#modal .fishing-book-all .backpack-slot{width:44px;height:44px;min-width:44px;min-height:44px;box-sizing:border-box;padding:0;flex:none}
#modal .fishing-book-all .backpack-slot img{width:32px;height:32px}
#modal .fishing-catch-rewards>.backpack-slot{width:58px;height:58px;min-width:58px;min-height:58px;box-sizing:border-box;padding:0;flex:none}
@media(max-height:700px){
 #modal:has(.fishing-book-sheet){padding-top:88px}
 #modal .fishing-book-sheet .fishing-book-grid img{width:72px;height:72px}
 #modal .fishing-book-completion{gap:6px}
 #modal .fishing-book-completion>small{flex:1;min-width:100px}
}
@media(max-height:700px){
 #modal:has(.fishing-book-sheet){padding-top:88px}
 .fishing-book-sheet{gap:6px}
 .fishing-book-sheet>.fishing-book-header-art{width:80px;height:80px}
 .fishing-book-sheet .fishing-book-grid img{width:72px;height:72px;align-self:center}
 .fishing-book-sheet .fishing-book-grid article{gap:4px}
}

/* Owner b96: equal header faces; camera paint matches the wallet chips inside its 44px target. */
#online.fishing-view .fishing-wallet{grid-template-columns:repeat(3,minmax(0,1fr))}
#online.fishing-view .fishing-camera-control{position:relative;height:44px;min-height:44px;padding:0 4px;border:0;background:none;box-shadow:none;isolation:isolate;font:12px/13px Lucky}
#online.fishing-view .fishing-camera-control::before{content:'';position:absolute;inset:calc((44px - var(--fs-chip-h)) / 2) 0;z-index:-1;border:2px solid var(--fs-ink);border-radius:18px;background:var(--fs-plate);box-shadow:0 var(--fs-drop) 0 var(--fs-ink)}
#online.fishing-view .fishing-camera-control .fishing-camera-icon{width:20px;height:26px;flex:none}
/* The compact portrait rail shows all three places and the player's name, as in the owner's reference. */
#online.fishing-view .fishing-zone-left .event-ranking-column{height:272px;gap:5px;justify-content:flex-start;padding-top:4px}
#online.fishing-view .fishing-zone-left .event-ranking-mini{position:relative;display:grid;grid-template-columns:1fr;grid-template-rows:34px 16px;justify-items:center;align-content:start;gap:0;min-height:54px;height:54px;padding:3px 2px 0;flex:none}
#online.fishing-view .fishing-zone-left .event-ranking-mini .event-ranking-avatar{grid-column:1;grid-row:1}
#online.fishing-view .fishing-zone-left .event-ranking-mini :is(.avatar-framed,.event-ranking-vacant){width:34px;height:34px}
#online.fishing-view .fishing-zone-left .event-ranking-mini .event-ranking-place{position:absolute;top:1px;left:16px;z-index:1;display:grid;place-items:center;min-width:16px;height:16px;padding:0 2px;border:1px solid var(--fs-ink);border-radius:5px;background:#e9c566;color:var(--fs-ink);font:11px/1 Lucky;-webkit-text-stroke:0;text-shadow:none}
#online.fishing-view .fishing-zone-left .event-ranking-mini .event-ranking-person{display:block;grid-column:1;grid-row:2;margin:0;max-width:100%;font:11px/16px Lucky;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#online.fishing-view .fishing-zone-left .event-ranking-mini .event-ranking-person>b{font:inherit}
#online.fishing-view .fishing-zone-left .event-ranking-mini .event-ranking-metric{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#online.fishing-view .fishing-zone-left .event-ranking-mini.is-you{margin-top:4px}
#online.fishing-view .fishing-screen:not([data-phase=ready]) .event-ranking-mini,#online.fishing-view .fishing-screen.is-tools-held .event-ranking-mini{display:none}
/* Fish state and metres follow the fish; the central tension bar keeps its accessible numeric value. */
.fishing-fish-status{position:absolute;z-index:5;display:flex;align-items:center;gap:4px;transform:translate(-50%,-100%);pointer-events:none;white-space:nowrap;color:var(--cream-200);font:15px/24px Lucky;-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill}
.fishing-fish-status[hidden]{display:none}
.fishing-fish-status #fishing-face{width:24px;height:24px;flex:none;border:2px solid var(--fs-ink);border-radius:7px;background-size:contain;background-repeat:no-repeat;background-position:center}
.fishing-fish-status #fishing-face[data-state=green]{background-color:#73bc6b}.fishing-fish-status #fishing-face[data-state=yellow]{background-color:#e5c35b}.fishing-fish-status #fishing-face[data-state=red]{background-color:#df746f}
/* Owner 2026-11-17 ("usuń czarną ramkę"): the state tile has no ink frame, only its state colour and face. The danger and
   red ring hugs the tile's own rounded square, flush outside it (the legacy ring was a circle drawn for the old round
   face and cut across the tile's corners). */
.fishing-fish-status #fishing-face{border:0}
.fishing-fish-status #fishing-face::after{inset:-2px;border-radius:9px}.fishing-fish-status #fishing-face.is-danger::after{inset:-3px;border-radius:10px}
.fishing-fish-status .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#online.fishing-view .fishing-zone-action{left:50%;right:auto;transform:translateX(-50%);width:min(200px,52vw)}
#online.fishing-view .fishing-zone-action .fishing-fight{margin-left:0;padding:4px 7px}

#online.fishing-view .fishing-wallet{grid-template-columns:repeat(3,minmax(0,1fr))}


/* Owner 2026-10-11: compact fish and two framed, manually claimed book rewards. */
#modal .fishing-book-sheet .fishing-book-grid article>img{width:80px;height:80px;max-width:100%;object-fit:contain;align-self:center}
#modal .fishing-book-sheet .fishing-book-grid article>b{min-height:2.4em;display:grid;place-items:center}
#modal .fishing-book-sheet .fishing-spot-heading{background:none;border:0;box-shadow:none;color:#59403e;-webkit-text-stroke:0;text-shadow:none;margin:4px 0 10px;gap:6px}
#modal .fishing-book-sheet .fishing-spot-heading .fishing-spot-thumb{width:28px;height:28px}
#modal .fishing-book-completion{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px;padding:6px 8px;margin-top:8px;min-height:58px;border:2px solid #c8b2a4;border-radius:var(--vs-radius);background:var(--row-face);box-shadow:0 2px 0 #b69c89}
#modal .fishing-book-completion.is-complete{border-color:#82a76a}
#modal .fishing-book-completion>b{font-size:12px;line-height:15px;text-align:left;color:#59403e}
#modal .fishing-book-completion>.fishing-book-rewards{display:flex;gap:4px}
#modal .fishing-book-completion>button{width:90px;min-width:90px;min-height:44px;margin:0}
@media(max-height:700px){#modal .fishing-book-sheet .fishing-book-grid article>img{width:64px;height:64px}#modal .fishing-book-grid{gap:4px}#modal .fishing-book-completion{margin-top:6px;padding:4px 6px;gap:4px;min-height:54px}}

#online.fishing-view .fishing-main>.fishing-cast-price{transform:translateX(-1.5px)}
#online.fishing-view #tabs{right:0;display:flex;justify-content:space-between;align-items:flex-end;padding-right:var(--fs-gutter)}
#online.fishing-view #tabs .fishing-bottom-tools{flex:none;width:68px;gap:8px;pointer-events:none}
#online.fishing-view #tabs .fishing-bottom-tools>button{flex:none;width:68px;max-width:68px;height:48px;min-height:48px;pointer-events:auto}
#online.fishing-view #tabs .event-gift-pack-nav{background:#244452ed}
#online.fishing-view:has(#fishing-screen:not([data-phase="ready"])) #tabs .fishing-bottom-tools{display:none}

/* AC451: Fishing titles share the horizontal profile badge and have no copy count. */
#modal .fishing-title-reward{display:flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;width:auto;height:auto;margin:0;padding:4px 6px;border:0;border-radius:0;background:none;box-shadow:none;color:inherit}
#modal .fishing-title-reward .inbox-title-badge{--badge-h:28px;padding:0 10px}
#modal .fishing-title-reward .title-badge-text{font-size:12px}
/* AC523: keep the title, item, weight and action on the same vertical centre. */
.fishing-track-list>.is-claimed{opacity:.6}
#modal .fishing-track-list .has-title-reward{gap:6px;padding-inline:6px}
#modal .fishing-track-list .has-title-reward>div{grid-template-columns:minmax(0,1fr) auto;gap:6px}
#modal .fishing-track-list .has-title-reward .fishing-row-rewards{flex-wrap:nowrap;gap:6px}
#modal .fishing-track-list .has-title-reward>button{width:auto;min-width:76px;padding-inline:4px}
#modal .fishing-track-list .has-title-reward .fishing-title-reward{padding-inline:0}

/* Preserve the centered stack while clearing the painted label drop from the reel rim. */
#online.fishing-view .fishing-main>.button-label{translate:0 1px}

/* AC462 (build 105 feedback): the daily bait task uses the standard event task row
   (Moonleaf / Tasks): name, meter, n/goal, reward pill and one compact Go / Claim /
   Claimed face inside a stationary 88x44 target. It sits in the cream source card. */
#modal .fishing-bait-sources .fishing-task-card{display:grid;gap:2px;padding:7px 10px 6px;border:2px solid var(--fs-ink,#241925);border-radius:8px;background:var(--row-face);box-shadow:0 var(--vs-drop-y,3px) 0 var(--fs-ink,#241925)}
#modal .fishing-task-heading{display:flex;align-items:center;gap:6px;margin:0;font:18px/1.15 Lucky,sans-serif;color:#283543;text-align:left}
#modal .fishing-task-heading img{width:24px;height:24px;object-fit:contain}
#modal .fishing-task-list{list-style:none;margin:0;padding:0}
#modal .fishing-task{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:4px 0;text-align:left}
#modal .fishing-task strong{display:block;font:700 14px/1.25 system-ui;color:#3a2d2c}
#modal .fishing-task-meter{display:block;height:10px;margin:5px 0 3px;border:1.5px solid #b09b6d;border-radius:6px;background:#eadfc2;box-shadow:inset 0 1.5px 2px #7a603333;overflow:hidden}
#modal .fishing-task-meter i{display:block;height:100%;border-radius:4px;background:linear-gradient(#ffe39a,#e2b441);box-shadow:inset 0 1px #fff7}
#modal .fishing-task.is-ready .fishing-task-meter i{background:linear-gradient(#b8e38a,#78b04a)}
#modal .fishing-task.is-claimed .fishing-task-meter i{background:linear-gradient(#d6dcc4,#b1bb98)}
#modal .fishing-task small{display:flex;align-items:center;justify-content:space-between;gap:6px;font:12px/1.2 system-ui;color:#53645a}
#modal .fishing-task-count{font-weight:800;color:#3f4c42}
#modal .fishing-task-reward{display:inline-flex;align-items:center;gap:1px;padding:0 6px 0 2px;border-radius:999px;background:#f1e3bb;font-weight:800;color:#5e4a2a}
#modal .fishing-task-reward img{width:18px;height:18px;object-fit:contain}
#modal .fishing-task.is-claimed strong,#modal .fishing-task.is-claimed .fishing-task-count{color:#7b7f6d}
#modal .fishing-task>.secondary.fishing-task-action{box-sizing:border-box;width:88px;min-width:88px;max-width:88px;height:44px;min-height:44px;max-height:44px;margin:0;padding:4px 6px;display:flex;align-items:center;justify-content:center;font-size:16px}
#modal .fishing-task>.secondary.fishing-task-action.is-done{opacity:1;--small-top:#e4edcb;--small-bottom:#c2d39a;--small-lip:#8ea561;--small-edge:#4b5e2a;color:#fbfff0}
#modal .fishing-task-note{display:block;padding-top:4px;border-top:1px solid var(--row-inset);font:11px/1.2 system-ui;color:#6d5a45;text-align:left}
@media(max-height:730px){#modal .fishing-bait-sources .fishing-task-card{padding:5px 8px 4px}#modal .fishing-task-heading{font-size:16px}#modal .fishing-task{padding:2px 0}#modal .fishing-task-meter{margin:3px 0 2px}}
/* AC476: several daily tasks share the card. Each row keeps its name on the first line and puts the
   meter, n/goal and bait pill on the second, beside the unchanged 88x44 action, with Moonleaf's dashed
   divider, so the task card, the Gem bait card and Rods fit Compact in every locale. */
#modal .fishing-task-card.has-several .fishing-task{padding:4px 0}
#modal .fishing-task-card.has-several .fishing-task+.fishing-task{border-top:1px dashed #d3bd8a}
#modal .fishing-task-card.has-several .fishing-task>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 6px}
#modal .fishing-task-card.has-several .fishing-task strong{grid-column:1/-1}
#modal .fishing-task-card.has-several .fishing-task-meter{margin:0}
#modal .fishing-task-card.has-several .fishing-task-count{min-width:5ch;text-align:right}
#modal .fishing-task-card.has-several .fishing-task small{font-variant-numeric:tabular-nums}
/* Compact heights: rows keep only their 44px action target; gaps, the Gem bait card padding and both icons
   tighten, so even the two-line daily-limit state (AC472) fits beside four tasks in Polish. */
@media(max-height:730px){#modal .fishing-task-card.has-several .fishing-task{padding:0}
 #modal .fishing-task-card.has-several .fishing-task-heading img{width:20px;height:20px}
 #modal .fishing-sheet:has(.fishing-task-card.has-several),#modal .fishing-bait-sources:has(.fishing-task-card.has-several){gap:6px}
 #modal .fishing-bait-sources:has(.fishing-task-card.has-several) .fishing-source{grid-template-columns:32px minmax(0,1fr);padding:6px 9px}
 #modal .fishing-bait-sources:has(.fishing-task-card.has-several) .fishing-source-art{width:32px;height:32px}}
/* AC476: the reset countdown shares the heading line (it wraps under the heading only if both cannot fit). */
#modal .fishing-task-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 10px}
#modal .fishing-task-top>.fishing-task-note{margin-left:auto;padding:0;border:0;text-align:right}
/* AC476: with several daily tasks the Bait sheet may use the safe viewport minus 12px margins, the cap of
   the account and AFK modals, wherever that exceeds the default 90dvh (Compact), so Rods and Close stay in. */
#modal:has(.fishing-task-card.has-several){max-height:max(90dvh,calc(100dvh - var(--safe-top,env(safe-area-inset-top,0px)) - var(--safe-bottom,env(safe-area-inset-bottom,0px)) - 24px))}

/* Mini (701-830px tall, 84px reel): a 2px stack gap keeps the label lettering 2px inside the inner rim. */
@media(min-height:701px) and (max-height:830px){#online.fishing-view .fishing-main{gap:2px}}

/* AC516: ended status shares the rails' row and dark rounded plate family. */
#online.fishing-view .is-closing .fishing-zone-center{top:calc(var(--fs-top) + var(--fs-top-h) + var(--fs-rail-gap));left:calc(var(--fs-gutter) + var(--fs-rail-w) + var(--fs-gap));right:calc(var(--fs-gutter) + var(--fs-rail-w) + var(--fs-gap))}
#online.fishing-view .is-closing .event-ranking-column{padding-top:0}
.is-closing #fishing-scene-note{box-sizing:border-box;border:2px solid var(--fs-ink);border-radius:var(--vs-radius);background:var(--fs-panel);box-shadow:0 var(--fs-drop) 0 var(--fs-ink);padding:7px 6px}

/* AC531: offer and Daily tasks use the same inline heading geometry. Rods use
   the separate inventory list row, not this offer component. */
#modal .fishing-bait-sources .fishing-source{grid-template-columns:minmax(0,1fr)}
#modal .fishing-source>.fishing-task-heading{display:flex;grid-column:1/-1;flex-wrap:wrap;gap:6px}
#modal .fishing-heading-icon{position:relative;display:inline-block;width:24px;height:24px;flex:none;overflow:hidden}
#modal .fishing-heading-icon img{width:100%;height:100%;object-fit:contain}
/* Match opaque artwork, not the worm PNG's transparent canvas. */
#modal .fishing-heading-icon img[data-fishing-art]{position:absolute;width:128%;height:128%;max-width:none;left:-13%;top:-21%}
#modal .fishing-source>.fishing-task-heading>b{font:inherit}
#modal .fishing-source>.fishing-task-heading>:is(span,small):not(.fishing-heading-icon){flex-basis:100%;font:13px/1.25 system-ui}
@media(max-height:730px){#modal .fishing-bait-sources:has(.fishing-task-card.has-several) .fishing-heading-icon{width:20px;height:20px}}

/* QA-03 (b127): the Book's Close is a fixed footer. The page body is the dialog's
   flexible part: it fits Compact through the tighter header and spacing below and,
   only if a locale still overflows, scrolls inside the dialog with a soft edge fade
   (a sticky shadow driven by the body's scroll timeline, so the header art that
   straddles the plate is never masked; with no overflow the timeline is inactive). */
#modal[open]:has(.fishing-book-sheet){display:flex;flex-direction:column;gap:0}
#modal:has(.fishing-book-sheet)>.fishing-book-sheet{--book-gap:8px;gap:var(--book-gap);flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#modal:has(.fishing-book-sheet)>.fishing-book-sheet~button{flex:none}
@supports (animation-timeline:scroll()){
 #modal:has(.fishing-book-sheet)>.fishing-book-sheet::after{content:'';position:sticky;bottom:0;flex:none;height:0;margin-top:calc(-1 * var(--book-gap));opacity:0;pointer-events:none;box-shadow:0 -10px 14px 8px var(--row-inset);animation:fishing-book-fade linear both;animation-timeline:scroll(nearest block)}
}
@keyframes fishing-book-fade{from{opacity:1}92%{opacity:1}to{opacity:0}}
/* Compact and Mini (Mini's safe areas leave a shorter plate than Compact's). */
@media(max-height:830px){
 #modal:has(.fishing-book-sheet){padding-top:80px}
 #modal:has(.fishing-book-sheet)::before{inset:42px 0 0}
 #modal:has(.fishing-book-sheet)>.fishing-book-sheet{--book-gap:5px}
 #modal .fishing-book-sheet>.fishing-book-header-art{width:72px;height:72px}
 #modal .fishing-book-sheet .fishing-spot-heading{margin:0 0 6px}
 #modal .fishing-book-completion{margin-top:2px}
 #modal:has(.fishing-book-sheet)>.fishing-book-sheet~button{margin-top:6px}
}

/* AC640: no light ahead of the dropping/shaking chest. */
.fishing-catch.is-chest.is-opening .fishing-catch-boxes::before{animation:ac640-light-in 400ms ease-out 900ms both}
.fishing-catch.is-chest.is-opening .fishing-catch-boxes::after{--ac640-opacity:.14}

.fishing-catch.is-chest .fishing-catch-boxes::before,.fishing-catch.is-chest .fishing-catch-boxes::after{inset:auto;left:50%;top:65px;width:230px;height:180px;translate:-50% -50%}
/* Visual polish (bugs lane, AC651): a frame reward tile shows the player's portrait inside the frame (transparent centre). */
.backpack-slot>.avatar-framed.reward-frame-preview{position:relative;display:block;flex:none;width:80%;height:auto;aspect-ratio:1;background:none;border-radius:7%;pointer-events:none}
.backpack-slot>.avatar-framed.reward-frame-preview>img{position:absolute;display:block;margin:0;padding:0;border:0;box-shadow:none;background:none;filter:none;pointer-events:none}
.backpack-slot>.avatar-framed.reward-frame-preview>.avatar-portrait{inset:var(--avatar-inset);width:calc(100% - 2*var(--avatar-inset));height:calc(100% - 2*var(--avatar-inset));object-fit:cover;border-radius:4%}
.backpack-slot>.avatar-framed.reward-frame-preview.is-default>.avatar-portrait{object-fit:contain;object-position:50% 85%}
.backpack-slot>.avatar-framed.reward-frame-preview>.avatar-frame{inset:0;width:100%;height:100%;border-radius:0}
/* Rod pack rows (owner 2026-11-17): the pack's contents as item tiles with counts; the price button buys at once. */
.fishing-pack-items{display:flex;align-items:flex-start;gap:8px;margin:2px 0 3px}
.fishing-pack-item{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:44px}
.fishing-pack-item>.eq-slot-icon{display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;padding:4px;border-radius:10px;border:1.5px solid color-mix(in srgb,var(--tier,var(--rarity-standard)) 65%,#5e4630);background:radial-gradient(circle at 50% 42%,color-mix(in srgb,var(--tier,var(--rarity-standard)) 22%,var(--cream-200)) 0 35%,color-mix(in srgb,var(--tier-accent,var(--tier,var(--rarity-standard))) 50%,#cdb68c) 100%);box-shadow:inset 0 1px #fffb}
.fishing-pack-item>.eq-slot-icon>img{width:100%;height:100%;object-fit:contain}
.fishing-pack-item>b{font:700 12px/1 system-ui;font-variant-numeric:tabular-nums;color:var(--text-on-cream)}
@media(max-height:730px){.fishing-pack-item>.eq-slot-icon{width:38px;height:38px}.fishing-pack-item{min-width:38px}}

/* HUD skin (owner 2026-11-17, "UI dojebane"; docs/workorders/FISHING_JUICE.md §5). Looks only: every box keeps its measured
   place and size (FISHING_FULLSCREEN.md §16.1). The tool tiles (Book, Market, Rewards, Bait, Gift Pack) and the camera
   button take the Home tabs' plump cream plate (lit rim, lower lip, top gloss and glint, ink outline, hard drop) with a
   larger icon that breaks out over the plate's top and the outlined label over its foot; the bait and weight counters
   are solid dark capsules with the art overlapping their left end. Disabled plates stay solid: greyed, never faded. */
#online.fishing-view{--fs-tab-ink:#3f302a;--fs-tab-face:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='3'%3E%3Crect width='8' height='3' rx='1.5' fill='%23ffffffb3'/%3E%3C/svg%3E") no-repeat 7px 5px/8px 3px,linear-gradient(#ffebbc,#d5ad71 90%);--fs-tab:linear-gradient(#ffffff1f 0 45%,#fff0 45%),var(--fs-tab-face);--fs-tab-rim:inset 0 2px 0 #fff8df,inset 0 -3px 0 #9f7448}
#online.fishing-view .fishing-tools button{background:var(--fs-tab)!important;border:2px solid var(--fs-tab-ink);border-radius:14px;box-shadow:var(--fs-tab-rim),0 var(--fs-drop) 0 var(--fs-ink);color:#fffaf0;-webkit-text-stroke:2.5px var(--fs-tab-ink);paint-order:stroke fill;overflow:visible}
#online.fishing-view .fishing-tools button{padding:2px 3px 5px;justify-content:flex-end}
#online.fishing-view .fishing-tools button>img{width:46px;height:40px;margin:-12px 0 -5px;flex:none;filter:drop-shadow(0 2px 0 #29253080)}
#online.fishing-view #tabs .fishing-bottom-tools>button>img{width:42px;height:36px;margin:-13px 0 -6px}
#online.fishing-view .fishing-tools button>span:not(.fishing-track-progress):not(.attention-badge){position:relative;z-index:1}
#online.fishing-view .fishing-tools button[data-action=fishing-track]{padding:2px 3px 6px;gap:1px}
#online.fishing-view .fishing-tools button[data-action=fishing-track]>img{width:42px;height:36px;margin:-10px 0 -5px}
#online.fishing-view .fishing-tools small{font:10px/12px Lucky;color:#5a3d28;-webkit-text-stroke:0}
#online.fishing-view .fishing-track-progress{height:9px;border:1.5px solid var(--fs-tab-ink);background:#5b4334;box-shadow:inset 0 1px 0 #0005}
#online.fishing-view .fishing-track-progress>i{background:linear-gradient(#d4f7a6,#7fc95a)}
#online.fishing-view .fishing-tools button:disabled,#online.fishing-view .fishing-camera-control:disabled{opacity:1;filter:grayscale(.7) brightness(.7)}
/* The camera button keeps its chip (the counters' height, AC matched heights) and only changes its face. */
#online.fishing-view .fishing-camera-control{padding-bottom:3px;color:#fffaf0;-webkit-text-stroke:2px var(--fs-tab-ink);paint-order:stroke fill}
/* Owner 2026-11-17 ("te pół/pół cienie na 3 kartach z góry"): the bait, weight and camera boxes are one smooth face each,
   without the gloss that cut them into a light and a dark half. */
#online.fishing-view .fishing-camera-control::before{background:var(--fs-tab-face);border-color:var(--fs-tab-ink);box-shadow:var(--fs-tab-rim),0 var(--fs-drop) 0 var(--fs-ink)}
#online.fishing-view .fishing-camera-control .fishing-camera-icon{width:24px;height:28px;filter:drop-shadow(0 2px 0 #29253080)}
#online.fishing-view .fishing-wallet>span:not(.fishing-camera-slot){grid-template-columns:30px 1fr;gap:0 3px;padding:0 8px 0 4px;background:linear-gradient(#3c3154,#2a2140);border:2px solid var(--fs-ink);border-radius:18px;box-shadow:0 2px 0 var(--fs-ink)}
#online.fishing-view .fishing-wallet>span:not(.fishing-camera-slot)>img{width:40px;height:42px;margin:-5px 0 -5px -12px;filter:drop-shadow(0 2px 0 #24192599)}
#online.fishing-view .fishing-wallet>span:not(.fishing-camera-slot)>b{font:20px/19px Lucky;color:#fff6dc;-webkit-text-stroke:3px var(--fs-ink);paint-order:stroke fill}
#online.fishing-view .fishing-wallet>span:not(.fishing-camera-slot)>small{font:700 10px/11px system-ui;color:#dccfe8}
/* Compact (the 44 px rail tiles): a smaller breakout so an icon never reaches the tile above; the Rewards tile keeps its
   small inline icon, its two lines and a thinner bar. */
@media(max-height:700px){
 #online.fishing-view .fishing-tools button{padding:0 2px 4px}
 #online.fishing-view .fishing-zone-right .fishing-tools button>img{width:34px;height:30px;margin:-6px 0 -6px}
 #online.fishing-view .fishing-tools button[data-action=fishing-track]{padding:0 2px 5px;gap:0}
 #online.fishing-view .fishing-zone-right .fishing-tools button[data-action=fishing-track]>img{width:12px;height:12px;margin:0}
 #online.fishing-view .fishing-track-progress{height:6px}
}
/* Fish catch card (owner 2026-11-17: "za wysoka, bardziej kompaktowa z tymi nagrodami", then "zrób ładniej";
   docs/workorders/FISHING_JUICE.md §3d). The chest card keeps its opening layout. The title is a ribbon in the lead
   tier's colour that breaks out over the card's top; each fish pops out of a lit tile in its own tier's colour beside
   its name, a large outlined weight with the tier ribbon and the cast bonus chip; the reward tiles share one tray with
   the haul and token lines. */
/* The title is the shared title ribbon (story-ui.css, --rb-art) in the lead tier's drawing; legendary keeps the gold. */
.fishing-catch.tier-c:not(.is-chest)>h1{--rb-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='174' viewBox='0 0 120 58'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23b4eaa4'/%3E%3Cstop offset='.52' stop-color='%236cc468'/%3E%3Cstop offset='1' stop-color='%234aa858'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2346a257'/%3E%3Cstop offset='1' stop-color='%232f7d45'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' gradientUnits='userSpaceOnUse' x1='14' y1='0' x2='31' y2='0'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1' stop-opacity='.22'/%3E%3C/linearGradient%3E%3CclipPath id='c'%3E%3Crect x='31' y='3' width='58' height='49' rx='6'/%3E%3C/clipPath%3E%3Cpath id='l' d='M31 6.5L1.5 12 11.5 33 1.5 54 31 48.5Z'/%3E%3C/defs%3E%3Cg id='e'%3E%3Cuse href='%23l' fill='url(%23t)'/%3E%3Cuse href='%23l' fill='url(%23s)'/%3E%3Cuse href='%23l' fill='none' stroke='%233a2414' stroke-width='3' stroke-linejoin='round'/%3E%3C/g%3E%3Cuse href='%23e' transform='matrix(-1 0 0 1 120 0)'/%3E%3Crect x='28' width='64' height='58' rx='9' fill='%233a2414'/%3E%3Cg clip-path='url(%23c)'%3E%3Crect x='31' y='3' width='58' height='49' fill='url(%23p)'/%3E%3Crect x='31' y='3' width='58' height='3' fill='%23dcf7cf'/%3E%3Crect x='31' y='48' width='58' height='4' fill='%233a8f4b'/%3E%3C/g%3E%3C/svg%3E")}
.fishing-catch.tier-r:not(.is-chest)>h1{--rb-art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='174' viewBox='0 0 120 58'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23b1dcff'/%3E%3Cstop offset='.52' stop-color='%235ea6e8'/%3E%3Cstop offset='1' stop-color='%233f88d6'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%233d84cf'/%3E%3Cstop offset='1' stop-color='%232a62a8'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' gradientUnits='userSpaceOnUse' x1='14' y1='0' x2='31' y2='0'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1' stop-opacity='.22'/%3E%3C/linearGradient%3E%3CclipPath id='c'%3E%3Crect x='31' y='3' width='58' height='49' rx='6'/%3E%3C/clipPath%3E%3Cpath id='l' d='M31 6.5L1.5 12 11.5 33 1.5 54 31 48.5Z'/%3E%3C/defs%3E%3Cg id='e'%3E%3Cuse href='%23l' fill='url(%23t)'/%3E%3Cuse href='%23l' fill='url(%23s)'/%3E%3Cuse href='%23l' fill='none' stroke='%233a2414' stroke-width='3' stroke-linejoin='round'/%3E%3C/g%3E%3Cuse href='%23e' transform='matrix(-1 0 0 1 120 0)'/%3E%3Crect x='28' width='64' height='58' rx='9' fill='%233a2414'/%3E%3Cg clip-path='url(%23c)'%3E%3Crect x='31' y='3' width='58' height='49' fill='url(%23p)'/%3E%3Crect x='31' y='3' width='58' height='3' fill='%23dceeff'/%3E%3Crect x='31' y='48' width='58' height='4' fill='%232f6fbb'/%3E%3C/g%3E%3C/svg%3E")}
#modal.passive-receipt .fishing-catch:not(.is-chest){gap:10px}
#modal .fishing-catch:not(.is-chest)>h1{--rb-out:24px;width:max-content;max-width:calc(100% - 124px);margin:-38px auto 0;padding:6px 18px 8px;color:#fffaf0;font:24px/1.05 Lucky,system-ui;white-space:nowrap;-webkit-text-stroke:4px var(--fs-ink);paint-order:stroke fill}
/* 16 px under the ribbon: the first box starts below the dialog's close glyph. */
.fishing-catch:not(.is-chest) .fishing-catch-boxes{gap:8px;padding-top:16px}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item{--t0:#f6fff2;--t1:#aee9cf;--t2:#4fb3a4;--cc-art:80px;grid-template-areas:'art name name' 'art weight tier' 'art bonus bonus';grid-template-columns:calc(var(--cc-art) + 8px) auto minmax(0,1fr);grid-template-rows:auto auto auto;align-content:center;min-height:0;padding:8px 10px 8px 8px;row-gap:3px;column-gap:10px;background:linear-gradient(100deg,color-mix(in srgb,var(--t1) 34%,#fff3dc) 0,#fff3dc 64%)}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item:not(:has(>small)){grid-template-areas:'art name name' 'art weight tier'}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item.rarity-rare{--t0:#f1f9ff;--t1:#a6d4f7;--t2:#4a8bd4}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item.rarity-legendary{--t0:#fffbe2;--t1:#ffdf85;--t2:#eea02f}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item::after{content:'';position:absolute;left:12px;top:50%;width:var(--cc-art);height:var(--cc-art);margin-top:calc(var(--cc-art)/-2);box-sizing:border-box;border:2px solid var(--fs-ink);border-radius:16px;background:repeating-conic-gradient(from 5deg at 50% 55%,#ffffff47 0 10deg,#fff0 10deg 30deg),radial-gradient(circle at 50% 45%,var(--t0) 0,var(--t1) 55%,var(--t2));box-shadow:inset 0 2px 0 #ffffffb3,inset 0 -3px 0 #00000024;pointer-events:none}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item>img{position:relative;z-index:1;width:calc(var(--cc-art) + 16px);height:calc(var(--cc-art) + 16px);margin:-4px;filter:drop-shadow(0 3px 0 #24192547)}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item>b{font:20px/1.1 Lucky;color:var(--fs-ink)}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item>strong{padding:2px 0 3px;font:30px/1 Lucky;color:#fffaf0;-webkit-text-stroke:5px var(--fs-ink);paint-order:stroke fill;filter:drop-shadow(0 2px 0 var(--fs-ink))}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item>.fishing-tier-ribbon{justify-self:start;align-self:center}
#modal .fishing-catch:not(.is-chest) .fishing-catch-item>small{justify-self:start;padding:2px 8px;border-radius:999px;background:#2419251a;color:#4a3424;font:700 12px/16px system-ui}
/* The New fish! stamp stays over the art tile and never reaches the name. */
#modal .fishing-catch:not(.is-chest) .fishing-catch-item>em.is-new{font:13px/15px Lucky;padding:2px 4px}
/* Two or three fish, and short screens: a smaller tile so the card stays compact. */
#modal .fishing-catch:not(.is-chest) .fishing-catch-boxes:has(.fishing-catch-item:nth-child(2)) .fishing-catch-item{--cc-art:60px;padding-block:6px}
#modal .fishing-catch:not(.is-chest) .fishing-catch-boxes:has(.fishing-catch-item:nth-child(2)) .fishing-catch-item>strong{font-size:24px;-webkit-text-stroke-width:4px}
@media(max-height:730px){#modal .fishing-catch:not(.is-chest) .fishing-catch-item{--cc-art:64px;padding-block:6px}#modal .fishing-catch:not(.is-chest) .fishing-catch-item>strong{font-size:26px}#modal .fishing-catch:not(.is-chest) .fishing-catch-boxes:has(.fishing-catch-item:nth-child(2)) .fishing-catch-item{--cc-art:52px}}
.fishing-catch-foot{width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 12px;padding:6px 10px;border-radius:14px;background:#7a552414;box-shadow:inset 0 2px 0 #7a552424}
.fishing-catch-foot>.fishing-catch-rewards{width:auto;margin:0;gap:6px}
#modal .fishing-catch-foot>.fishing-catch-rewards>.backpack-slot{width:48px;height:48px;min-width:48px;min-height:48px}
.fishing-catch-sum{display:grid;gap:3px;text-align:left}
.fishing-catch-sum>small{display:flex;align-items:center;gap:6px;font:700 14px/18px system-ui;color:#4a3424}
.fishing-catch-sum>small>img{width:22px;height:22px;object-fit:contain;flex:none}
