.sea-work-panel { width: min(940px, 96vw); padding: 20px; background: linear-gradient(145deg,#162b30,#111e24 60%,#253136); border: 1px solid #557273; color: #e5e8da; }
.sea-work-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.sea-work-eyebrow { color:#9dc6c4; font-size:11px; letter-spacing:.22em; }
.sea-work-panel h2 { background:none; color:#f0dfb9; text-shadow:none; padding:0; margin:3px 0; box-shadow:none; border:0; }
.sea-work-stage,.fish-stage { position:relative; overflow:hidden; border:1px solid #60828166; border-radius:8px; background:#183d47; }
.sea-work-stage { height:320px; }
.sea-work-scene { position:absolute; inset:0; }
.sea-work-canvas { display:block; width:100%; height:100%; }
.sea-work-caption { position:absolute; bottom:0; left:0; right:0; padding:35px 18px 14px; background:linear-gradient(transparent,#0a1c24e8); pointer-events:none; }
.sea-work-caption span { display:block; font-size:23px; color:#f4dfac; font-weight:700; }
.sea-work-caption small { color:#afc9ca; }
.sea-work-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:15px 0 12px; font-size:12px; }
.sea-work-steps span { padding:6px 0; color:#849da0; border-bottom:2px solid #3c5257; }
.sea-work-steps .active { color:#ffda8e; border-color:#e9b559; }
.sea-work-steps .done { color:#9de1ca; border-color:#57b498; }
.sea-work-meter { display:flex; gap:12px; align-items:center; }
.sea-work-meter>b { min-width:40px; text-align:right; font-variant-numeric:tabular-nums; color:#f4d494; }
.sea-work-progress { height:10px; flex:1; background:#091a20; border:1px solid #456269; border-radius:6px; overflow:hidden; }
.sea-work-progress i { display:block; height:100%; width:0; background:linear-gradient(90deg,#61b0b7,#d9cb8b); box-shadow:0 0 12px #6edbc3; }
.sea-work-controls { display:flex; align-items:center; gap:9px; margin-top:12px; flex-wrap:wrap; }
.sea-work-controls span { margin-right:auto; color:#b4c7c8; font-size:13px; font-variant-numeric:tabular-nums; }
.sea-work-note { color:#94a7ab; font-size:12px; }
.sea-work-done { display:block; margin:15px auto 0; }
.sea-work-fallback { padding:70px 30px; text-align:center; color:#dcceae; }
.work-finished .sea-work-stage { height:230px; }
.work-finished .sea-work-note { display:none; }
.harvest-result { --loot:#9fddce; position:relative; isolation:isolate; overflow:hidden; margin-top:14px; padding:18px; border:1px solid #83c8b766; border-radius:8px; background:linear-gradient(150deg,#1a3438,#101e24); animation:harvest-reveal .55s cubic-bezier(.2,.9,.3,1.2) both; }
.harvest-result.rank-1 { --loot:#ffd484; border-color:#d7ac59; }
.harvest-result.rank-2 { --loot:#dfb5ff; border-color:#b086d8; }
.sea-work-panel .harvest-result:not(.empty) { animation-delay:.3s; }
.harvest-result.rank-1::after,.harvest-result.rank-2::after { content:''; position:absolute; width:420px; height:420px; top:-190px; left:calc(50% - 210px); pointer-events:none; z-index:-1; border-radius:50%; background:repeating-conic-gradient(from 20deg,transparent 0deg 16deg,var(--loot) 18deg 19deg,transparent 21deg 36deg); mask-image:radial-gradient(black,transparent 68%); opacity:.13; }
.harvest-glow { position:absolute; inset:-120px; z-index:-1; opacity:.2; background:radial-gradient(ellipse at 50% 20%,var(--loot),transparent 60%); animation:harvest-glow 1.2s ease-out both; }
.harvest-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.harvest-heading>span { color:var(--loot); font-size:11px; letter-spacing:.1em; border:1px solid currentColor; border-radius:3px; padding:2px 7px; }
.harvest-heading>strong { font-size:21px; color:#f5ecd8; }
.harvest-first { margin-left:auto; padding:3px 8px; border:1px solid #d1a96e; color:#ffd58b; transform:rotate(-4deg); font-size:12px; }
.harvest-items { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.harvest-item { display:flex; align-items:center; gap:8px; background:#081b2299; border:1px solid #ffffff18; border-radius:5px; padding:9px 12px; animation:harvest-reveal .4s both; animation-delay:var(--delay); }
.harvest-item img { width:26px; height:26px; object-fit:contain; }
.harvest-item svg { width:26px; height:26px; color:var(--loot); }
.harvest-item span { font-size:13px; color:#c2d3d2; }
.harvest-item b { color:var(--loot); font-size:23px; font-variant-numeric:tabular-nums; }
.harvest-result .harvest-detail { font-size:12px; color:#a9babb; margin:12px 0 0; line-height:1.6; }
.harvest-rare { color:#ffdc9b; font-size:14px; }
.harvest-result .harvest-event { color:#ffd3b0; border-left:3px solid #d88b63; padding:6px 10px; background:#7c351e33; }
.harvest-status { color:var(--loot); font-size:12px; margin-top:10px; text-align:right; }
.harvest-fish { display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; padding-top:8px; }
.harvest-fish img { width:150px; height:70px; object-fit:contain; filter:drop-shadow(0 6px 7px #0008); }
.harvest-fish b { font-size:20px; color:#f2e4c8; }
.harvest-fish span { color:var(--loot); font-size:18px; }
.harvest-fly { position:fixed; z-index:100; pointer-events:none; padding:5px 10px; background:#193c3fee; color:#dbffeb; border:1px solid #9bdecb; border-radius:20px; white-space:nowrap; font-weight:700; }
.harvest-fly svg { width:18px; height:18px; margin-right:5px; vertical-align:middle; }
.harvest-result.empty { --loot:#a1b1b6; border-color:#62747d; animation:none; }
.harvest-result.empty .harvest-glow { display:none; }
.harvest-equipment { display:grid; gap:10px; margin-top:14px; }
.harvest-gear { --quality:#a59b8e; position:relative; display:flex; align-items:center; gap:14px; padding:12px; border:1px solid var(--quality); border-left-width:4px; border-radius:6px; background:linear-gradient(115deg,#15292d,#0c1c22); overflow:hidden; animation:harvest-reveal .55s both; animation-delay:var(--delay); }
.harvest-gear.quality-1,.harvest-gear.quality-2 { box-shadow:inset 0 0 24px color-mix(in srgb,var(--quality) 15%,transparent); }
.harvest-gear.quality-1::after,.harvest-gear.quality-2::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(115deg,transparent 30%,#ffffff26 50%,transparent 70%); transform:translateX(-150%); animation:gear-glint 1.2s .7s both; }
.harvest-gear>img { width:126px; height:105px; object-fit:contain; filter:drop-shadow(0 5px 6px #0007); }
.harvest-gear-info { flex:1; min-width:0; }
.harvest-gear-info>small,.gear-stored { color:var(--quality); font-size:11px; }
.harvest-gear-info>strong { display:block; color:#f4e9d1; font-size:20px; margin:4px 0 9px; }
.harvest-gear-info>p { font-size:12px; line-height:1.7; color:#b4c7c7; margin:6px 0; }
.gear-quality { display:flex; align-items:center; gap:12px; color:var(--quality); }
.gear-quality>b { font-size:19px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.gear-quality b small { font-size:11px; opacity:.7; }
.gear-quality-meter { display:block; flex:1; max-width:190px; height:6px; background:#ffffff12; border-radius:3px; overflow:hidden; }
.gear-quality-meter i { display:block; height:100%; background:var(--quality); animation:gear-quality-fill .9s .5s both; transform-origin:left; }
.gear-stock { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:8px; margin:10px 0; }
.gear-stock-card { display:flex; gap:8px; align-items:center; padding:8px; border:1px solid var(--quality); border-radius:5px; background:#1a2526; color:#eee4ce; }
.gear-stock-card img { width:68px; height:70px; object-fit:contain; }
.gear-stock-card>div { min-width:0; }
.gear-stock-card b,.gear-stock-card span,.gear-stock-card small { display:block; }
.gear-stock-card span { color:var(--quality); font-size:12px; margin:4px 0; }
.gear-stock-card small { color:#b9c3bf; font-size:11px; line-height:1.6; }
.gear-stock-standard { padding:8px; }
.gear-table-scroll { overflow-x:auto; }
.gear-table-scroll select { max-width:220px; }
@keyframes gear-glint { to { transform:translateX(150%); } }
@keyframes gear-quality-fill { from { transform:scaleX(0); } to { transform:scaleX(1); } }
.fish-stage { aspect-ratio:16/9; }
.fish-stage #fish-canvas { position:absolute; inset:0; z-index:1; border:0; box-shadow:none; background:transparent; }
.fish-stage .sea-work-scene { z-index:0; }
.fish-operation-meter { display:flex; align-items:center; gap:10px; margin:10px 0 0; color:#d9c39b; font-size:12px; }
.fish-operation-meter>span { min-width:80px; }
.fish-operation-meter>b { min-width:55px; text-align:right; }
.fish-operation-meter progress { flex:1; width:40px; height:8px; accent-color:#83ccb9; }
.fish-stage-hint { position:absolute; right:12px; bottom:12px; z-index:2; color:#e3dfce; font-size:12px; background:#102b35ce; padding:5px 10px; border-radius:4px; pointer-events:none; }
.fish-panel:has(.harvest-result) .fish-stage { aspect-ratio:20/7; }
body:has(.sea-work-panel) #hint-card, body:has(.fish-panel) #hint-card { display:none; }
body:has(#hint-card:not([hidden])) #screen > :is(.sea-work-panel,.fish-panel) { max-height:92vh; margin-bottom:0; }
@keyframes harvest-reveal { from { opacity:0; transform:translateY(18px) scale(.96); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes harvest-glow { from { opacity:.7; transform:scale(.5); } to { opacity:.2; transform:scale(1); } }
@media(max-width:600px) {
  .harvest-gear { gap:8px; padding:9px; }
  .harvest-gear>img { width:76px; height:92px; }
  .harvest-gear-info>strong { font-size:16px; }
  .gear-quality { gap:8px; }
  .sea-work-panel { padding:12px; }
  .sea-work-stage { height:270px; }
  .sea-work-steps { gap:5px; font-size:11px; }
  .sea-work-caption span { font-size:20px; }
  .harvest-result { padding:12px; }
  .harvest-heading>strong { font-size:18px; }
  .harvest-item { flex:1 1 120px; padding:7px 9px; }
  .harvest-fish img { width:110px; height:50px; }
  .fish-stage { aspect-ratio:1.2; }
  .fish-panel:has(.harvest-result) .fish-stage { aspect-ratio:1.7; }
}
@media(prefers-reduced-motion:reduce) { .harvest-result,.harvest-item,.harvest-glow,.harvest-gear,.harvest-gear::after,.gear-quality-meter i { animation:none; } .harvest-first { transform:none; } }

/* Anchored campaign work and loot; the map and time controls stay interactive. */
.sea-work-bubble { position:absolute; z-index:18; box-sizing:border-box; width:min(260px,calc(100% - 16px)); padding:10px; color:#e5e8da; background:#102c32f5; border:1px solid #87b5ac; border-radius:12px; box-shadow:0 6px 22px #0007; pointer-events:auto; }
.sea-work-bubble[hidden] { display:none; }
.sea-work-bubble::after { content:''; position:absolute; bottom:-8px; left:calc(50% - 7px); width:14px; height:14px; background:#102c32; border-right:1px solid #87b5ac; border-bottom:1px solid #87b5ac; transform:rotate(45deg); }
.sea-work-bubble>header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.sea-work-bubble>header strong { font-size:13px; color:#f0dfb9; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sea-work-bubble button { padding:3px 8px; font-size:12px; white-space:nowrap; }
.sea-work-bubble .sea-work-stage { height:112px; }
.sea-work-bubble [data-work-phase] { position:absolute; bottom:0; left:0; right:0; padding:4px 8px; font-size:12px; background:#0a1c24ba; }
.sea-work-bubble .sea-work-meter { margin:8px 0 4px; gap:6px; font-size:12px; }
.sea-work-bubble .sea-work-progress { height:7px; }
.sea-work-bubble [data-work-time] { display:block; font-size:11px; color:#afc9ca; }
.sea-work-bubble .sea-work-fallback { padding:20px 8px; font-size:12px; }
.sea-work-bubble.work-finished { width:min(300px,calc(100% - 16px)); }
.sea-work-bubble.work-finished :is(.sea-work-stage,.sea-work-meter,[data-work-time]) { display:none; }
.sea-work-bubble [data-work-rewards] { max-height:min(340px,45vh); overflow:auto; overscroll-behavior:contain; }
.sea-work-bubble .harvest-result { margin:0; padding:8px; border:0; background:transparent; }
.sea-work-bubble .harvest-heading>strong { font-size:14px; }
.sea-work-bubble .harvest-heading>span,.sea-work-bubble .harvest-detail,.sea-work-bubble .gear-stored { display:none; }
.sea-work-bubble .harvest-items { margin-top:8px; gap:4px; }
.sea-work-bubble .harvest-item { flex:0 1 auto; padding:4px 6px; gap:4px; }
.sea-work-bubble .harvest-item b { font-size:16px; }
.sea-work-bubble .harvest-item :is(svg,img) { width:18px; height:18px; }
.sea-work-bubble .harvest-item span { font-size:11px; }
.sea-work-bubble .harvest-equipment { margin-top:8px; gap:6px; }
.sea-work-bubble .harvest-gear { padding:6px; gap:6px; }
.sea-work-bubble .harvest-gear>img { width:48px; height:56px; }
.sea-work-bubble .harvest-gear-info>strong { font-size:13px; margin:3px 0; }
.sea-work-bubble .gear-quality>b { font-size:13px; }
.sea-work-bubble .harvest-gear-info>p { font-size:11px; }
.sea-work-bubble .harvest-event,.sea-work-bubble .harvest-rare { font-size:12px; }
body:has(.sea-work-bubble:not([hidden])) #hint-card { display:none; }
@media(max-width:600px) {
  body:has(.sea-work-bubble:not([hidden])) #hud-side { display:none; }
}
.shipwreck-guide{position:absolute;top:158px;left:18px;z-index:4;width:min(300px,calc(100vw - 36px));padding:14px 16px;background:#102e35ed;border:1px solid #879a79;border-left:3px solid #dbbc78;color:#e7e7d6;cursor:default;box-shadow:0 6px 25px #0004}
.shipwreck-guide[hidden]{display:none}
.shipwreck-guide small{display:block;color:#a8c6b9;font-size:10px;letter-spacing:2px}
.shipwreck-guide strong{display:block;margin-top:6px;color:#f0d7a1;font-size:16px}
.shipwreck-guide p{font-size:12px;line-height:1.7;margin:8px 0 10px}
.shipwreck-guide button{font-size:12px;width:100%;padding:7px;background:#37564c;color:#f5e6c3;border:1px solid #8eaa80;cursor:pointer}
.shipwreck-guide button:disabled{opacity:.6;cursor:default}
@media(max-width:600px){.shipwreck-guide{top:185px;left:10px;width:min(275px,calc(100vw - 20px));padding:10px 12px}.shipwreck-guide strong{font-size:14px}.shipwreck-guide p{font-size:11px}}
