
:root {
  --desktop: #008080;
  --desktop-dark: #0b6b6b;
  --window: #c0c0c0;
  --window-light: #ffffff;
  --window-mid: #dfdfdf;
  --window-dark: #808080;
  --window-deep: #404040;
  --title-a: #000080;
  --title-b: #1084d0;
  --text: #111111;
  --muted: #444444;
  --button-face: #c0c0c0;
  --button-hover: #d8d8d8;
  --warm: #7a2f00;
}

:root {
  --cursor-arrow: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2716%27%20height%3D%2716%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27none%27/%3E%3Cpath%20d%3D%27M1%201h1v1H1zM2%202h1v1H2zM3%203h1v1H3zM4%204h1v1H4zM5%205h1v1H5zM6%206h1v1H6zM7%207h1v1H7zM8%208h1v1H8zM3%204h1v1H3zM3%205h1v1H3zM4%205h1v1H4zM4%206h1v1H4zM5%206h1v1H5zM5%207h1v1H5zM6%207h1v1H6zM6%208h1v1H6zM7%208h1v1H7zM7%209h1v1H7zM8%209h1v1H8zM4%208h1v1H4zM4%209h1v1H4zM4%2010h1v1H4zM5%2010h1v1H5zM5%2011h1v1H5zM6%2011h1v1H6zM6%2012h1v1H6zM7%2012h1v1H7z%27%20fill%3D%27%23000%27/%3E%3Cpath%20d%3D%27M2%201h1v1H2zM2%203h1v1H2zM3%202h1v1H3zM3%206h1v1H3zM4%203h1v1H4zM4%207h1v1H4zM5%204h1v1H5zM5%208h1v1H5zM6%205h1v1H6zM6%209h1v1H6zM7%206h1v1H7zM7%2010h1v1H7zM8%207h1v1H8zM8%2010h1v1H8zM5%209h1v1H5zM6%2010h1v1H6z%27%20fill%3D%27%23fff%27/%3E%3C/svg%3E") 0 0, default;
  --cursor-hand: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2716%27%20height%3D%2716%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27none%27/%3E%3Cpath%20d%3D%27M6%201h1v7H6zM8%202h1v6H8zM10%203h1v5h-1zM12%204h1v5h-1zM5%208h1v5H5zM6%208h7v5H6zM7%2013h5v1H7zM8%2014h3v1H8z%27%20fill%3D%27%23fff%27/%3E%3Cpath%20d%3D%27M5%201h1v7H5zM6%200h2v1H6zM8%201h2v1H8zM10%202h2v1h-2zM12%203h2v1h-2zM4%208h1v5H4zM5%207h8v1H5zM13%204h1v9h-1zM6%2013h1v1H6zM12%208h1v5h-1zM7%2014h1v1H7zM11%2014h1v1h-1zM8%2015h3v1H8z%27%20fill%3D%27%23000%27/%3E%3C/svg%3E") 5 0, pointer;
  --cursor-text: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2716%27%20height%3D%2716%27%20shape-rendering%3D%27crispEdges%27%3E%3Crect%20width%3D%2716%27%20height%3D%2716%27%20fill%3D%27none%27/%3E%3Cpath%20d%3D%27M6%201h4v1H6zM7%202h2v12H7zM6%2014h4v1H6z%27%20fill%3D%27%23000%27/%3E%3C/svg%3E") 8 8, text;
}

:root {
  --window: #c0c0c0;
  --window-light: #ffffff;
  --window-mid: #dfdfdf;
  --window-dark: #808080;
  --window-deep: #404040;
  --title-a: #000080;
  --title-b: #1084d0;
  --button-face: #c0c0c0;
  --button-hover: #d8d8d8;
}



html, body {
  cursor: var(--cursor-arrow);
}

a, button, .desktop-icon, .task-button, .title-button, .icon, summary, label[for], [role="button"], .start-btn, .task-btn, .win-button, .btn, .about-trigger {
  cursor: var(--cursor-hand);
}

input, textarea, [contenteditable="true"] {
  cursor: var(--cursor-text);
}
* { box-sizing: border-box; }
html { background: var(--desktop); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.08)),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(180deg, var(--desktop) 0%, var(--desktop-dark) 100%);
  background-size: auto, 24px 24px, 24px 24px, auto;
  padding-bottom: 38px;
}

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(155, 179, 199, 0.22); border-radius: 999px; }
.container { max-width: 1220px; margin: 0 auto; padding: 18px; }
.hero {
  position: relative; overflow: hidden; min-height: 340px; padding: 24px; border-radius: 26px; border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(76, 201, 240, 0.58) 0%, rgba(11, 110, 168, 0.72) 44%, rgba(8, 17, 31, 0.94) 100%),
    url("../ocean.png") center center / cover no-repeat;
  box-shadow: var(--shadow); margin-bottom: 16px; transition: background 0.4s ease, filter 0.3s ease, box-shadow 0.3s ease; backdrop-filter: blur(2px);
}
.sky-glow { position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.12), transparent 18%), radial-gradient(circle at 20% 10%, rgba(255,255,255,.07), transparent 24%); pointer-events: none; }
.weather-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; background: repeating-linear-gradient(110deg, rgba(255,255,255,0) 0px, rgba(255,255,255,0) 10px, rgba(255,255,255,.08) 11px, rgba(255,255,255,.08) 12px); transition: opacity .3s ease; }
.storm-flash { position: absolute; inset: 0; background: rgba(255,255,255,.88); opacity: 0; pointer-events: none; z-index: 6; }
.storm-flash.active { animation: stormFlash .28s ease-out; }
.wave-layer { position: absolute; left: -10%; width: 120%; height: 70px; border-radius: 50%; filter: blur(1px); pointer-events: none; opacity: .9; animation: waveDrift 8s linear infinite; z-index: 0; }
.wave-1 { bottom: 58px; background: var(--water-1); animation-duration: 7s; }
.wave-2 { bottom: 32px; background: var(--water-2); animation-duration: 10s; animation-direction: reverse; }
.wave-3 { bottom: 8px; background: rgba(2,132,199,.22); animation-duration: 12s; }
.bubble { position: absolute; bottom: 8px; width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); opacity: 0; animation: bubbleRise linear infinite; pointer-events: none; z-index: 0; }
.bubble.b1 { left: 16%; animation-duration: 6s; animation-delay: 1s; }
.bubble.b2 { left: 38%; animation-duration: 7.2s; animation-delay: 2.2s; width: 8px; height: 8px; }
.bubble.b3 { left: 62%; animation-duration: 5.5s; animation-delay: .4s; width: 12px; height: 12px; }
.bubble.b4 { left: 82%; animation-duration: 8s; animation-delay: 3s; width: 7px; height: 7px; }
.fish-silhouette { position: absolute; font-size: 28px; opacity: .14; bottom: 72px; pointer-events: none; animation: fishSwim linear infinite; z-index: 0; }
.fish-s1 { animation-duration: 11s; left: -10%; }
.fish-s2 { animation-duration: 14s; left: -15%; bottom: 108px; animation-delay: 3s; }
.fish-s3 { animation-duration: 17s; left: -20%; bottom: 150px; animation-delay: 6s; }
.hero-ui { position: relative; z-index: 5; max-width: 760px; padding-right: 320px; }
h1 { margin: 0 0 8px; font-size: 38px; letter-spacing: -0.03em; }
h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.made-by { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(7,17,31,.35); border: 1px solid rgba(255,255,255,.14); font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); color: #ffd76a; }
.top-badges, .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.hero-volume-controls { position: absolute; top: 24px; right: 24px; z-index: 6; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.hero-volume-controls .slider-wrap { min-width: 260px; justify-content: space-between; }
.hero-volume-controls .volume-slider { width: 120px; }
.badge, .pill, .zone-chip, .rarity-tag { background: rgba(7,17,31,.42); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 12px; font-size: 13px; backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 8px; }
.slider-wrap { display: inline-flex; align-items: center; gap: 8px; }
.volume-slider { width: 120px; accent-color: #4cc9f0; }
.map-wrap { position: relative; margin-top: 18px; z-index: 5; padding-bottom: 18px; }
.map-line { position: absolute; left: 32px; right: 32px; top: 20px; height: 4px; background: rgba(255,255,255,.14); border-radius: 999px; }
.map-points { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 0 28px; }
.map-point { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; cursor: pointer; }
.map-dot { width: 18px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.42); z-index: 1; transition: transform .25s ease, background .25s ease; }
.map-point.active .map-dot { transform: scale(1); background: transparent; border-color: transparent; box-shadow: none; }
.map-point.locked { opacity: .45; cursor: default; }
.boat { position: absolute; left: 0; bottom: 34px; font-size: 72px; z-index: 2; transition: left .65s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1); cursor: pointer; user-select: none; animation: boatBob 3.3s ease-in-out infinite; text-shadow: 0 10px 18px rgba(0,0,0,.25); }
.rod { position: absolute; right: 24px; bottom: 28px; font-size: 64px; z-index: 2; animation: rodBob 2.8s ease-in-out infinite; }
.cast-line { position: absolute; right: 72px; bottom: 108px; width: 2px; height: 0; background: rgba(255,255,255,.7); transform-origin: bottom center; z-index: 2; opacity: 0; transition: height .2s ease, opacity .2s ease; }
.splash { position: absolute; width: 28px; height: 28px; border: 3px solid rgba(255,255,255,.65); border-radius: 999px; bottom: 58px; right: 70px; opacity: 0; z-index: 2; pointer-events: none; }
.splash.active { animation: splash .7s ease-out; }
.catch-pop { position: absolute; left: 18px; bottom: 18px; transform: none; background: rgba(7,17,31,.84); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 10px 14px; font-weight: 800; backdrop-filter: blur(8px); opacity: 0; z-index: 8; pointer-events: none; max-width: min(360px, calc(100% - 36px)); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.catch-pop.show { animation: catchPopCorner 1.4s ease-out; }
.quick-panel { display: grid; grid-template-columns: 1.2fr .9fr; gap: 16px; margin-top: 18px; }

.fishing-mode-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.manual-stage {
  display: none;
  margin-top: 14px;
  padding: 14px;
  background: rgba(13, 26, 44, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.manual-stage.open { display: block; }
.manual-stage-controls { display: flex; gap: 10px; margin-bottom: 10px; }
.quick-card, .card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 18px; backdrop-filter: blur(8px); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 16px; }
.card { grid-column: span 12; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.bonus-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.stat, .bonus-pill { background: rgba(18,31,51,.9); border: 1px solid var(--border); border-radius: 18px; padding: 16px; min-height: 94px; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 800; margin-top: 4px; color: #ffffff; }
.env-detail { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.countdown-ring { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 10px; border-radius: 999px; background: rgba(7,17,31,.7); border: 2px solid rgba(125,211,252,.35); font-weight: 800; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }
.button {
  width: 100%;
  border-top: 2px solid var(--window-light);
  border-left: 2px solid var(--window-light);
  border-right: 2px solid var(--window-deep);
  border-bottom: 2px solid var(--window-deep);
  border-radius: 0;
  padding: 8px 12px;
  font-size: 15px;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-weight: 700;
  color: #000;
  background: var(--window);
  cursor: pointer;
  transition: none;
  box-shadow: none;
}
.button:hover { background: #d8d8d8; filter: none; transform: none; }
.button:active {
  border-top-color: var(--window-deep);
  border-left-color: var(--window-deep);
  border-right-color: var(--window-light);
  border-bottom-color: var(--window-light);
  transform: none;
}
.button:disabled { opacity: .55; cursor: not-allowed; filter: none; box-shadow:none; }

.button.secondary { background: var(--window); }

.button.outline { background: var(--window); border: 2px outset #c0c0c0; }

.button.danger { background: var(--window); }

.button.tiny-btn { width: auto; padding: 10px 14px; font-size: 14px; }
.progress { width: 100%; height: 16px; background: #08111d; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #67e8f9, #4cc9f0); transition: width .08s linear; }
.minigame { margin-top: 14px; padding: 14px; background: rgba(18,31,51,.94); border: 1px solid var(--border); border-radius: 18px; display: none; }
.minigame-track { position: relative; height: 18px; background: #08111d; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); margin: 12px 0; }
.minigame-target { position: absolute; top: 0; bottom: 0; background: rgba(34,197,94,.55); border-left: 2px solid rgba(255,255,255,.4); border-right: 2px solid rgba(255,255,255,.4); }
.minigame-marker { position: absolute; top: -3px; width: 10px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.45); }
.list { display: grid; gap: 10px; }
.scroll-list { max-height: 420px; overflow: auto; padding-right: 4px; }
.item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px; background: var(--card-2); border: 1px solid var(--border); border-radius: 18px; }
.small { font-size: 14px; }
.strong { font-weight: 800; }
.tiny { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.notice { background: rgba(20,51,84,.86); border: 1px solid rgba(223,239,255,.16); border-radius: 20px; padding: 14px; margin-bottom: 16px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.notice-event { background: rgba(23,60,102,.86); }
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mission-done { opacity: .72; }
.event-timer { color: #7dd3fc; font-weight: 800; }
.section-subtitle { margin: -6px 0 14px; color: var(--muted); font-size: 13px; }
@keyframes waveDrift { 0% { transform: translateX(-1%) scaleX(1); } 50% { transform: translateX(2%) scaleX(1.03); } 100% { transform: translateX(-1%) scaleX(1); } }
@keyframes bubbleRise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .6; } 85% { opacity: .26; } 100% { transform: translateY(-220px) scale(1.2); opacity: 0; } }
@keyframes fishSwim { 0% { transform: translateX(0) scaleX(-1); } 49% { transform: translateX(112vw) scaleX(-1); } 50% { transform: translateX(112vw) scaleX(1); } 100% { transform: translateX(0) scaleX(1); } }
@keyframes boatBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rodBob { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-4deg); } }
@keyframes splash { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.5); opacity: 0; } }
@keyframes catchPopCorner { 0% { transform: translateY(14px); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes stormFlash { 0% { opacity: 0; } 20% { opacity: .8; } 100% { opacity: 0; } }
@media (max-width: 980px) {
  .quick-panel, .stats, .bonus-grid { grid-template-columns: repeat(2, 1fr); }
  .span-4, .span-6, .span-12 { grid-column: span 12; }
  .hero-ui { padding-right: 0; }
  .hero-volume-controls { position: static; margin-top: 14px; align-items: stretch; }
  .hero-volume-controls .slider-wrap { min-width: 0; }
  .boat { left: 0; font-size: 56px; }
  .rod { font-size: 48px; }
  h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .quick-panel, .stats, .collection-grid, .bonus-grid, .fishing-mode-actions { grid-template-columns: 1fr; }
  .container { padding: 14px; }
  .hero { padding: 20px; min-height: 410px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-ui { max-width: none; }
  .boat { left: 0; bottom: 26px; font-size: 52px; }
  .rod { right: 14px; bottom: 24px; font-size: 40px; }
  .catch-pop { left: 12px; right: 12px; max-width: none; }
}


.manual-stage-head { display: grid; gap: 4px; margin-bottom: 10px; }
.manual-depth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.manual-stage-water {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 50% 8%, rgba(255,255,255,.08), transparent 26%),
    linear-gradient(180deg, rgba(111, 204, 255, 0.16) 0%, rgba(63, 148, 219, 0.2) 18%, rgba(19, 67, 118, 0.38) 45%, rgba(9, 20, 38, 0.94) 100%);
}
.manual-depth-grid {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0px, rgba(255,255,255,.06) 1px, transparent 1px, transparent 52px);
  pointer-events: none;
}

.manual-ground-band {
  position:absolute; left:0; right:0; top:0; height:70px;
  background: linear-gradient(180deg, #7c5a33 0%, #6a4b29 58%, #4f3922 100%);
  border-bottom: 2px solid rgba(255,255,255,.10);
  z-index: 0;
}

.manual-waterline {
  position: absolute;
  left: 0;
  right: 0;
  top: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  pointer-events: none;
}
.manual-rod-anchor {
  position: absolute;
  left: 42px;
  top: 34px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
  z-index: 5;
}
.manual-line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}
.manual-line-svg path {
  fill: none;
  stroke: rgba(255,255,255,.92);
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.22));
}
.manual-water-splash {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255,255,255,.68);
  border-radius: 999px;
  top: 8px;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.4);
  pointer-events: none;
  z-index: 5;
}
.manual-water-splash.active {
  animation: manualSplash .55s ease-out;
}
.manual-fish-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.manual-fish {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform .04s linear;
  font-size: 22px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.22));
  user-select: none;
}
.manual-hook {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 18px;
  height: 18px;
  border: 3px solid #f8fbff;
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(20deg);
  z-index: 6;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}
.manual-hook::before {
  content:"";
  position:absolute;
  width:3px;
  height:14px;
  background:#f8fbff;
  left:10px;
  top:-14px;
  border-radius:999px;
}
.manual-hook::after {
  content:"";
  position:absolute;
  width:6px;
  height:6px;
  border-right:3px solid #f8fbff;
  border-bottom:3px solid #f8fbff;
  right:-5px;
  bottom:-2px;
  transform: rotate(18deg);
  border-radius:0 0 8px 0;
}
.manual-fish.rare { font-size: 24px; }
.manual-fish.epic, .manual-fish.legendary, .manual-fish.mythic { font-size: 26px; }
.manual-stage.active .manual-stage-water {
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18), 0 14px 26px rgba(0,0,0,.18);
}
.manual-stage-water.aiming { cursor: crosshair; }
.manual-stage-water.hooked { box-shadow: inset 0 0 0 1px rgba(94,208,139,.28), 0 16px 30px rgba(50,158,88,.14); }
.manual-stage-water.reeling {
  background:
    linear-gradient(180deg, rgba(116, 224, 255, 0.18) 0%, rgba(70, 170, 239, 0.22) 18%, rgba(21, 78, 138, 0.38) 45%, rgba(9, 20, 38, 0.94) 100%);
}
.manual-stage-water::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 22%);
}
.manual-fish.biting { filter: drop-shadow(0 0 12px rgba(255,255,255,.22)); }
.manual-hook.hooked { animation: hookPulse 0.45s ease-in-out infinite alternate; }
@keyframes hookPulse { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes manualSplash { 0% { opacity: .85; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); } }

.toast-container {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.catch-toast {
  min-width: 220px;
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(10px);
  animation: catchToastIn 0.22s ease forwards, catchToastOut 0.28s ease 3.1s forwards;
}

.catch-toast .toast-rarity {
  opacity: 0.72;
  margin-left: 6px;
  font-size: 12px;
}

.catch-toast.unique {
  border-color: rgba(255, 215, 106, 0.45);
  box-shadow: 0 12px 28px rgba(255, 215, 106, 0.14);
}

.catch-toast.system {
  border-color: rgba(125, 211, 252, 0.28);
}

@keyframes catchToastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes catchToastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.manual-fish.biting { filter: drop-shadow(0 0 12px rgba(255,255,255,.22)); }
.manual-hook.hooked { animation: hookPulse 0.45s ease-in-out infinite alternate; }
.manual-stage-water::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 22%); }
@keyframes hookPulse { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.08); } }

.manual-hook { transition: filter .12s ease; }
.manual-hook.airborne { filter: drop-shadow(0 8px 12px rgba(255,255,255,.18)) drop-shadow(0 4px 10px rgba(0,0,0,.22)); }
.manual-hook.underwater { filter: drop-shadow(0 3px 7px rgba(0,0,0,.24)); }

.manual-stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.manual-line-svg,
.manual-fish-layer,
.manual-hook,
.manual-water-splash,
.manual-rod-anchor {
  opacity: 0;
  pointer-events: none;
}

.manual-stage.open .manual-line-svg,
.manual-stage.open .manual-fish-layer,
.manual-stage.open .manual-hook,
.manual-stage.open .manual-water-splash,
.manual-stage.open .manual-rod-anchor {
  opacity: 1;
}

.manual-fish-layer { display:none; }
.manual-hook { opacity:0; }


/* Windows 98 theme for game */
:root {
  --window: #c0c0c0;
  --window-mid: #dfdfdf;
  --window-light: #ffffff;
  --window-dark: #7f7f7f;
  --window-deep: #404040;
  --title-a: #0a2f9b;
  --title-b: #1084d0;
}

body {
  font-family: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  background: #008080 !important;
  color: #111;
}

.desktop-icons { position: fixed; top: 12px; left: 10px; display: grid; gap: 12px; z-index: 1; }
.desktop-icon { width: 78px; text-decoration: none; color: #fff; text-align: center; font-size: 12px; text-shadow: 1px 1px 0 #000; }
.icon-art { display:block; font-size: 28px; margin-bottom: 4px; }

.window-shell { max-width: 1220px; margin: 18px auto 0; padding: 0 14px 28px; position: relative; z-index: 2; }
.win-titlebar, .mini-titlebar {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  background: linear-gradient(90deg, var(--title-a), var(--title-b)); color:#fff; font-weight:700;
}
.win-titlebar { padding: 6px 8px; border-top:2px solid var(--window-light); border-left:2px solid var(--window-light); border-right:2px solid var(--window-deep); }
.inside-window {
  background: var(--window);
  border-top: 2px solid var(--window-light);
  border-left: 2px solid var(--window-light);
  border-right: 2px solid var(--window-deep);
  border-bottom: 2px solid var(--window-deep);
  box-shadow: 1px 1px 0 var(--window-dark);
  padding: 14px;
}
.title-left { display:flex; align-items:center; gap:8px; }
.title-icon { font-size: 14px; }
.title-buttons { display:flex; gap: 4px; }
.win-btn {
  display:inline-flex; align-items:center; justify-content:center; min-width: 20px; height:20px;
  border-top: 2px solid var(--window-light);
  border-left: 2px solid var(--window-light);
  border-right: 2px solid var(--window-deep);
  border-bottom: 2px solid var(--window-deep);
  background: var(--button-face); color:#000; font: inherit; cursor:pointer; text-decoration:none;
}
.hero {
  border-radius: 0;
  border-top: 2px solid var(--window-light);
  border-left: 2px solid var(--window-light);
  border-right: 2px solid var(--window-deep);
  border-bottom: 2px solid var(--window-deep);
  box-shadow: none;
}
.quick-card, .card, .notice, .bonus-pill, .stat, .item, .manual-fishing-panel, .manual-stage {
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.quick-card, .card, .notice {
  background: var(--window) !important;
  color: #000;
  border-top: 2px solid var(--window-light) !important;
  border-left: 2px solid var(--window-light) !important;
  border-right: 2px solid var(--window-deep) !important;
  border-bottom: 2px solid var(--window-deep) !important;
}
.quick-card p, .card p, .tiny, .muted, .stat-label, .section-subtitle, .env-detail { color: #333 !important; }
.stat, .bonus-pill, .item {
  background: var(--window-mid) !important;
  border-top: 2px solid var(--window-light) !important;
  border-left: 2px solid var(--window-light) !important;
  border-right: 2px solid var(--window-dark) !important;
  border-bottom: 2px solid var(--window-dark) !important;
}
.made-by, .badge, .pill, .zone-chip, .rarity-tag {
  background: var(--window-mid) !important;
  color: #000 !important;
  border-top: 2px solid var(--window-light) !important;
  border-left: 2px solid var(--window-light) !important;
  border-right: 2px solid var(--window-dark) !important;
  border-bottom: 2px solid var(--window-dark) !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}
.button {
  background: var(--window) !important;
  color: #000 !important;
  box-shadow: none !important;
  border-top: 2px solid var(--window-light) !important;
  border-left: 2px solid var(--window-light) !important;
  border-right: 2px solid var(--window-deep) !important;
  border-bottom: 2px solid var(--window-deep) !important;
  border-radius: 0 !important;
  padding: 10px 14px;
}
.button:active {
  border-top-color: var(--window-deep) !important;
  border-left-color: var(--window-deep) !important;
  border-right-color: var(--window-light) !important;
  border-bottom-color: var(--window-light) !important;
}
.button:hover { transform:none; filter:none; }
.progress {
  background: #fff !important;
  border-top: 2px solid var(--window-deep) !important;
  border-left: 2px solid var(--window-deep) !important;
  border-right: 2px solid var(--window-light) !important;
  border-bottom: 2px solid var(--window-light) !important;
  border-radius: 0 !important;
}
.progress-bar {
  background: repeating-linear-gradient(90deg, #000080 0 8px, #1084d0 8px 16px) !important;
}
.manual-stage-water, .manual-fishing-lane, .minigame, .minigame-track, .preview-area, .html-output {
  border-radius: 0 !important;
}
.manual-stage-water, .manual-fishing-lane, .minigame, .minigame-track {
  border-top: 2px solid var(--window-deep) !important;
  border-left: 2px solid var(--window-deep) !important;
  border-right: 2px solid var(--window-light) !important;
  border-bottom: 2px solid var(--window-light) !important;
}
.map-line {
  background: #7f7f7f !important;
  height: 2px;
}
.map-dot {
  background: var(--window) !important;
  border-top: 2px solid var(--window-light) !important;
  border-left: 2px solid var(--window-light) !important;
  border-right: 2px solid var(--window-deep) !important;
  border-bottom: 2px solid var(--window-deep) !important;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: var(--window);
  border-top: 2px solid var(--window-light);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  z-index: 30;
}

.start-btn,
.task-btn {
  min-height: 26px;
  padding: 0 12px;
  text-decoration: none;
  color: #000;
  background: var(--button-face);
  border-top: 2px solid var(--window-light);
  border-left: 2px solid var(--window-light);
  border-right: 2px solid var(--window-deep);
  border-bottom: 2px solid var(--window-deep);
  font: inherit;
  display: inline-flex;
  align-items: center;
}

.start-btn { font-weight: 700; }

.task-btn.active {
  box-shadow: inset 1px 1px 0 var(--window-dark);
  border-top-color: var(--window-deep);
  border-left-color: var(--window-deep);
  border-right-color: var(--window-light);
  border-bottom-color: var(--window-light);
}

.taskbar-clock {
  margin-left: auto;
  min-width: 64px;
  text-align: center;
  padding: 4px 8px;
  background: #dfdfdf;
  border-top: 2px solid var(--window-deep);
  border-left: 2px solid var(--window-deep);
  border-right: 2px solid var(--window-light);
  border-bottom: 2px solid var(--window-light);
  font-size: 12px;
}


.toast-container { bottom: 44px; }
.catch-toast {
  background: var(--window) !important;
  color: #000 !important;
  border-top: 2px solid var(--window-light) !important;
  border-left: 2px solid var(--window-light) !important;
  border-right: 2px solid var(--window-deep) !important;
  border-bottom: 2px solid var(--window-deep) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
@media (max-width: 980px) { .desktop-icons { display:none; } .window-shell { margin-top:10px; } }


/* Unified blog-like desktop/taskbar/button look */
.button,
.button.secondary,
.button.outline,
.button.danger,
.button.tiny-btn,
.hero-actions .button,
.fishing-mode-actions .button,
.manual-fishing-panel .button {
  background: var(--window) !important;
  color: #000 !important;
  border-top: 2px solid var(--window-light) !important;
  border-left: 2px solid var(--window-light) !important;
  border-right: 2px solid var(--window-deep) !important;
  border-bottom: 2px solid var(--window-deep) !important;
  box-shadow: 1px 1px 0 var(--window-dark) !important;
  border-radius: 0 !important;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif !important;
  font-weight: 400 !important;
}

.button:hover,
.button.secondary:hover,
.button.outline:hover,
.button.danger:hover,
.button.tiny-btn:hover {
  background: #d8d8d8 !important;
  filter: none !important;
  transform: none !important;
}

.button:active,
.button.secondary:active,
.button.outline:active,
.button.danger:active,
.button.tiny-btn:active {
  border-top-color: var(--window-deep) !important;
  border-left-color: var(--window-deep) !important;
  border-right-color: var(--window-light) !important;
  border-bottom-color: var(--window-light) !important;
  box-shadow: none !important;
  transform: none !important;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: var(--window);
  border-top: 2px solid var(--window-light);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  z-index: 30;
}

.start-btn,
.task-btn {
  min-height: 26px;
  padding: 0 12px;
  text-decoration: none;
  color: #000;
  background: var(--button-face);
  border-top: 2px solid var(--window-light);
  border-left: 2px solid var(--window-light);
  border-right: 2px solid var(--window-deep);
  border-bottom: 2px solid var(--window-deep);
  font: inherit;
  display: inline-flex;
  align-items: center;
}

.start-btn { font-weight: 700; }

.task-btn.active {
  box-shadow: inset 1px 1px 0 var(--window-dark);
  border-top-color: var(--window-deep);
  border-left-color: var(--window-deep);
  border-right-color: var(--window-light);
  border-bottom-color: var(--window-light);
}

.taskbar-clock {
  margin-left: auto;
  min-width: 64px;
  text-align: center;
  padding: 4px 8px;
  background: #dfdfdf;
  border-top: 2px solid var(--window-deep);
  border-left: 2px solid var(--window-deep);
  border-right: 2px solid var(--window-light);
  border-bottom: 2px solid var(--window-light);
  font-size: 12px;
}

/* blog-uniform-fix */
html {
  background: var(--desktop) !important;
}

body {
  background:
    linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.08)),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(180deg, var(--desktop) 0%, var(--desktop-dark) 100%) !important;
  background-size: auto, 24px 24px, 24px 24px, auto !important;
  padding-bottom: 38px !important;
}

.desktop-icons {
  position: fixed !important;
  top: 12px !important;
  left: 10px !important;
  display: grid !important;
  gap: 12px !important;
  z-index: 1 !important;
}

.desktop-icon {
  width: 78px !important;
  text-decoration: none !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 12px !important;
  text-shadow: 1px 1px 0 #000 !important;
}

.icon-art {
  display: block !important;
  font-size: 28px !important;
  margin-bottom: 4px !important;
}

.taskbar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 34px !important;
  background: var(--window) !important;
  border-top: 2px solid var(--window-light) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 6px !important;
  z-index: 30 !important;
}

.start-btn,
.task-btn {
  min-height: 26px !important;
  height: 26px !important;
  line-height: 1 !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  text-decoration: none !important;
  color: #000 !important;
  background: var(--button-face) !important;
  border-top: 2px solid var(--window-light) !important;
  border-left: 2px solid var(--window-light) !important;
  border-right: 2px solid var(--window-deep) !important;
  border-bottom: 2px solid var(--window-deep) !important;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.start-btn {
  min-width: 74px !important;
  font-weight: 700 !important;
}

.task-btn {
  min-width: 128px !important;
}

.task-btn.active {
  box-shadow: inset 1px 1px 0 var(--window-dark) !important;
  border-top-color: var(--window-deep) !important;
  border-left-color: var(--window-deep) !important;
  border-right-color: var(--window-light) !important;
  border-bottom-color: var(--window-light) !important;
}

.taskbar-clock {
  margin-left: auto !important;
  min-width: 64px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 8px !important;
  background: #dfdfdf !important;
  border-top: 2px solid var(--window-deep) !important;
  border-left: 2px solid var(--window-deep) !important;
  border-right: 2px solid var(--window-light) !important;
  border-bottom: 2px solid var(--window-light) !important;
  font-size: 12px !important;
}


/* persistent shell embedded mode */
body.embedded {
  padding-bottom: 0 !important;
}
body.embedded .desktop-icons,
body.embedded .taskbar,
body.embedded .start-menu,
body.embedded .shell-status {
  display: none !important;
}
body.embedded .window-shell,
body.embedded .blog-shell,
body.embedded .editor-shell,
body.embedded .container,
body.embedded .desktop-shell {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.embedded .inside-window { min-height: auto !important; }



/* embedded-app cleanup */
body.embedded,
body[data-app] {
  background: #c0c0c0 !important;
}

body.embedded {
  padding-bottom: 0 !important;
}

body.embedded .desktop-icons,
body.embedded .taskbar,
body.embedded .start-menu,
body.embedded .shell-status {
  display: none !important;
}

body.embedded .title-bar,
body.embedded .win-titlebar,
body.embedded .game-titlebar,
body.embedded .title-buttons,
body.embedded .title-btn,
body.embedded .win-btn {
  display: none !important;
}

body.embedded .window,
body.embedded .window-shell,
body.embedded .blog-shell,
body.embedded .editor-shell,
body.embedded .container,
body.embedded .desktop-shell,
body.embedded .inside-window {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: #c0c0c0 !important;
}

body.embedded .window-body,
body.embedded .inside-window {
  padding: 14px !important;
  background: #c0c0c0 !important;
  min-height: auto !important;
}



/* stronger embedded app viewport fix */
html.embedded-shell-app,
html.embedded-shell-app body,
html.embedded-shell-app body.embedded {
  background: #c0c0c0 !important;
  background-image: none !important;
}

html.embedded-shell-app body.embedded {
  min-height: 100vh !important;
}

html.embedded-shell-app body.embedded .inside-window,
html.embedded-shell-app body.embedded .window-body,
html.embedded-shell-app body.embedded .blog-layout,
html.embedded-shell-app body.embedded .editor-layout,
html.embedded-shell-app body.embedded .grid,
html.embedded-shell-app body.embedded .quick-panel {
  background-image: none !important;
}



/* embedded internal scroll fix */
html.embedded-shell-app,
html.embedded-shell-app body,
html.embedded-shell-app body.embedded {
  background: #c0c0c0 !important;
  background-image: none !important;
  overflow: auto !important;
  height: auto !important;
  min-height: 100% !important;
}

html.embedded-shell-app body.embedded .desktop-icons,
html.embedded-shell-app body.embedded .taskbar,
html.embedded-shell-app body.embedded .start-menu,
html.embedded-shell-app body.embedded .shell-status,
html.embedded-shell-app body.embedded .title-bar,
html.embedded-shell-app body.embedded .win-titlebar,
html.embedded-shell-app body.embedded .game-titlebar,
html.embedded-shell-app body.embedded .title-buttons,
html.embedded-shell-app body.embedded .title-btn,
html.embedded-shell-app body.embedded .win-btn {
  display: none !important;
}



/* V7 Fishing98 menu + command deck + fishdex */
.f98-title-menu-overlay{
  position:absolute !important;
  inset:0 !important;
  z-index:120 !important;
  padding:14px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
}
.f98-title-menu-overlay.hidden{display:none !important;}
.f98-title-menu{
  width:min(760px, calc(100vw - 28px));
  background:var(--window);
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-deep);
  border-bottom:2px solid var(--window-deep);
  box-shadow:2px 2px 0 rgba(0,0,0,.35);
}
.f98-title-bar{
  padding:6px 8px;
  background:linear-gradient(90deg,var(--title-a),var(--title-b));
  color:#fff;
  font-weight:700;
}
.f98-title-body{padding:14px;}
.f98-title-brand{
  display:grid;
  grid-template-columns:88px 1fr;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
}
.f98-title-logo{
  width:88px;height:88px;object-fit:contain;image-rendering:pixelated;
  background:#000080;
  border-top:2px solid var(--window-deep);
  border-left:2px solid var(--window-deep);
  border-right:2px solid var(--window-light);
  border-bottom:2px solid var(--window-light);
  padding:4px;
}
.f98-title-heading{font-size:34px;line-height:1;font-weight:900;margin-bottom:6px;}
.f98-title-sub{font-size:14px;color:#333;}
.f98-title-layout{display:grid;grid-template-columns:220px 1fr;gap:14px;}
.f98-title-actions{display:grid;gap:8px;}
.f98-title-panel{
  min-height:220px;
  padding:14px;
  background:var(--window-mid);
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-dark);
  border-bottom:2px solid var(--window-dark);
}
.f98-title-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.f98-command-deck{margin-bottom:12px;padding:12px 14px;}
.f98-command-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:10px;}
.f98-command-box{
  grid-column:span 3;
  padding:12px;
  background:var(--window-mid);
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-dark);
  border-bottom:2px solid var(--window-dark);
}
.f98-fishdex-layout{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr);
  gap:12px;
}
.fishdex-detail-panel{
  min-height:200px;
  padding:14px;
  background:var(--window-mid);
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-dark);
  border-bottom:2px solid var(--window-dark);
}
.fishdex-detail-hero{
  display:flex;align-items:center;gap:10px;margin-bottom:12px;
}
.fishdex-detail-emoji{font-size:36px;line-height:1;}
.fishdex-detail-meta{display:grid;gap:8px;margin-top:12px;}
.fishdex-detail-chip{
  padding:8px 10px;
  background:#efefef;
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-dark);
  border-bottom:2px solid var(--window-dark);
  font-size:13px;
}
.collection-grid .item{cursor:var(--cursor-hand);}
.collection-grid .item.selected{
  outline:2px dotted #000080;
  outline-offset:-4px;
  background:#d8e6ff;
}
@media (max-width: 900px){
  .f98-title-layout,.f98-fishdex-layout{grid-template-columns:1fr;}
  .f98-command-box{grid-column:span 6;}
}
@media (max-width: 640px){
  .f98-title-brand{grid-template-columns:1fr;justify-items:center;text-align:center;}
  .f98-command-box{grid-column:span 12;}
}



/* V7b stronger visible game program UI */
.inside-window{
  position: relative;
}
.f98-title-menu-overlay{
  position:absolute !important;
  inset:0 !important;
  z-index:120 !important;
  padding:14px;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
  overflow:auto;
}
.f98-title-menu{
  max-height: calc(100% - 12px);
  overflow:auto;
}
.f98-title-layout{
  align-items:start;
}
.f98-title-actions .button{
  width:100%;
  justify-content:flex-start;
}
.f98-title-panel{
  display:grid;
  align-content:start;
  gap:10px;
}
.f98-command-deck{
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.06)), var(--window);
  border:2px solid var(--window-deep);
  box-shadow: inset 1px 1px 0 var(--window-light);
}
.f98-command-box .tiny{
  display:block;
  margin-bottom:6px;
  color:#444;
}
.f98-command-box .strong{
  font-size:15px;
}
.f98-fishdex-layout{
  margin-top:8px;
}
.fishdex-detail-panel .strong{
  font-size:16px;
}
.fishdex-detail-empty{
  min-height:160px;
  display:grid;
  align-content:center;
  gap:8px;
}



/* V8 cozy board + silhouettes */
.cozy-box{
  background: linear-gradient(180deg, #f6edd9, #e5d3a1);
}
.quest-item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:center;
}
.quest-meta{
  margin-top:6px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.quest-chip{
  padding:3px 8px;
  background:#efefef;
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-dark);
  border-bottom:2px solid var(--window-dark);
  font-size:12px;
}
.collection-grid .item.unknown{
  opacity:.88;
  background: repeating-linear-gradient(
    45deg,
    #d5d5d5,
    #d5d5d5 8px,
    #c4c4c4 8px,
    #c4c4c4 16px
  );
}
.collection-grid .item.unknown .strong,
.collection-grid .item.unknown .tiny{
  color:#555;
}
.collection-grid .item.selected{
  background:#d9ecff;
}
.fishdex-detail-panel .mystery-big{
  font-size:44px;
  line-height:1;
  margin-bottom:10px;
}
.fishdex-detail-panel .cozy-note{
  margin-top:12px;
  padding:10px 12px;
  background:#f6edd9;
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-dark);
  border-bottom:2px solid var(--window-dark);
}
.f98-command-box .tiny{
  text-transform:uppercase;
  letter-spacing:.04em;
}



/* V9 dual loop board */
.f98-command-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:10px;
}
.f98-command-box{
  grid-column:span 2;
}
.streak-glow{
  box-shadow:0 0 0 2px rgba(255,255,255,.35) inset, 0 0 16px rgba(255,210,120,.18);
}
@media (max-width: 900px){
  .f98-command-grid{grid-template-columns:repeat(4,1fr);}
  .f98-command-box{grid-column:span 2;}
}
@media (max-width: 640px){
  .f98-command-grid{grid-template-columns:1fr;}
  .f98-command-box{grid-column:span 1;}
}



/* Compact Fishdex explorer */
.collection-card {
  min-height: 0;
}

.fishdex-explorer {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
}

.fishdex-sidebar {
  min-width: 0;
}

.fishdex-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.fishdex-toolbar .button.active {
  box-shadow: inset 1px 1px 0 var(--window-dark), inset -1px -1px 0 var(--window-light);
  background: #d7e8ff;
}

.collection-list.compact {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.collection-list.compact .item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: auto;
  padding: 10px 12px;
}

.collection-list.compact .item .meta-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.collection-list.compact .item .strong {
  font-size: 16px;
  line-height: 1.15;
}

.collection-list.compact .item .tiny {
  font-size: 12px;
  line-height: 1.2;
}

.collection-list.compact .zone-chip,
.collection-list.compact .rarity-tag {
  margin: 0;
}

.collection-list.compact .side-stats {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.collection-list.compact .side-stats .zone-chip {
  white-space: nowrap;
}

.collection-list.compact .item.unknown .meta-stack .strong {
  color: #666;
}

.fishdex-detail-panel {
  min-height: 520px;
  position: sticky;
  top: 10px;
}

@media (max-width: 980px) {
  .fishdex-explorer {
    grid-template-columns: 1fr;
  }

  .fishdex-detail-panel {
    min-height: 240px;
    position: static;
  }

  .collection-list.compact {
    max-height: 360px;
  }
}


/* Trophy update */
.fishdex-detail-chip strong{display:block;margin-bottom:2px;}


/* Trophy visual feedback pass */
.catch-pop-name{font-weight:800;}
.catch-pop-chip{
  display:inline-flex;align-items:center;
  margin-left:6px;padding:2px 7px;border-radius:999px;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);
  font-size:12px;font-weight:800;letter-spacing:.02em;
}
.catch-pop-chip.big{background:rgba(96,165,250,.2);border-color:rgba(96,165,250,.38);color:#dbeafe;}
.catch-pop-chip.trophy{background:rgba(250,204,21,.22);border-color:rgba(250,204,21,.5);color:#fde68a;}
.catch-pop-chip.gold{background:rgba(74,222,128,.18);border-color:rgba(74,222,128,.36);color:#dcfce7;}

.toast-rarity.big-chip{background:rgba(96,165,250,.18);border-color:rgba(96,165,250,.4);color:#dbeafe;}
.toast-rarity.trophy-chip{background:rgba(250,204,21,.18);border-color:rgba(250,204,21,.5);color:#fde68a;}
.catch-toast.big-catch-toast{box-shadow:0 0 0 1px rgba(96,165,250,.35) inset, var(--shadow);}
.catch-toast.trophy-toast,
.catch-toast.system.trophy-toast{box-shadow:0 0 0 1px rgba(250,204,21,.45) inset, 0 10px 30px rgba(0,0,0,.28);}
.zone-chip.chip-big,
.fishdex-detail-chip.chip-big{background:#dbeafe;color:#1e3a8a;}
.zone-chip.chip-trophy,
.fishdex-detail-chip.chip-trophy{background:#fef3c7;color:#92400e;}

.trophy-pulse{
  position:fixed;left:50%;top:88px;transform:translateX(-50%) scale(.86);
  z-index:160;pointer-events:none;opacity:0;
  padding:10px 16px;border-radius:999px;
  background:linear-gradient(180deg,#fff4bf,#f5c949);
  color:#5a3900;font-size:20px;font-weight:900;letter-spacing:.04em;
  border-top:2px solid #fff8d8;border-left:2px solid #fff8d8;
  border-right:2px solid #8a6200;border-bottom:2px solid #8a6200;
  box-shadow:0 8px 26px rgba(0,0,0,.28);
}
.trophy-pulse.show{animation:trophyPulsePop 2.2s ease forwards;}
@keyframes trophyPulsePop{
  0%{opacity:0;transform:translateX(-50%) scale(.75);}
  12%{opacity:1;transform:translateX(-50%) scale(1);}
  78%{opacity:1;transform:translateX(-50%) scale(1);}
  100%{opacity:0;transform:translateX(-50%) scale(.96);}
}

.bonus-gold-float{
  position:fixed;right:28px;top:116px;z-index:159;pointer-events:none;opacity:0;
  padding:8px 12px;border-radius:999px;
  background:rgba(22,163,74,.18);border:1px solid rgba(74,222,128,.4);
  color:#dcfce7;font-size:16px;font-weight:800;backdrop-filter:blur(4px);
}
.bonus-gold-float.trophy{
  background:rgba(250,204,21,.18);border-color:rgba(250,204,21,.42);color:#fde68a;
}
.bonus-gold-float.show{animation:bonusGoldRise 1.7s ease forwards;}
@keyframes bonusGoldRise{
  0%{opacity:0;transform:translateY(12px);}
  15%{opacity:1;transform:translateY(0);}
  85%{opacity:1;transform:translateY(-18px);}
  100%{opacity:0;transform:translateY(-28px);}
}


/* Manual fishing rework */
.manual-stage{
  background:linear-gradient(180deg, rgba(10,20,34,.86), rgba(7,18,31,.92));
}
.manual-stage-controls{
  align-items:center;
  justify-content:space-between;
}
.manual-cast-meter{
  min-width:120px;
  padding:8px 10px;
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-deep);
  border-bottom:2px solid var(--window-deep);
  background:var(--window);
  color:#000;
  display:grid;
  gap:2px;
}
.manual-stage-water{
  height:340px;
  border-radius:10px;
  border-top:2px solid rgba(255,255,255,.22);
  border-left:2px solid rgba(255,255,255,.22);
  border-right:2px solid rgba(0,0,0,.34);
  border-bottom:2px solid rgba(0,0,0,.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0 22%, transparent 22% 100%),
    linear-gradient(180deg, #82d7ff 0%, #4ca5df 18%, #1b4f88 52%, #081424 100%);
}
.manual-depth-grid{
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.07) 0px, rgba(255,255,255,.07) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 1px, transparent 1px, transparent 72px);
}
.manual-ground-band{
  height:78px;
  background:linear-gradient(180deg, #8f6b43 0%, #6f4f2f 56%, #50371d 100%);
}
.manual-waterline{
  top:90px;
  height:3px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
.manual-stage-water::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 14% 22%, rgba(255,255,255,.08), transparent 14%),
    radial-gradient(circle at 78% 34%, rgba(255,255,255,.06), transparent 16%);
}
.manual-stage-water.aiming{box-shadow: inset 0 0 0 2px rgba(125,211,252,.18), 0 18px 28px rgba(0,0,0,.18);}
.manual-stage-water.hooked{box-shadow: inset 0 0 0 2px rgba(74,222,128,.28), 0 18px 28px rgba(16,185,129,.15);}
.manual-stage-water.reeling{box-shadow: inset 0 0 0 2px rgba(250,204,21,.26), 0 18px 28px rgba(250,204,21,.12);}
.manual-hook{
  width:16px;height:16px;
}
.manual-stage-head .tiny,
.manual-depth-row .tiny{
  color:#b8c7d8;
}


/* Manual fishing second pass */
.manual-depth-row{
  gap:12px;
}
.manual-lane-readout{
  margin-left:auto;
  color:#c8d9ea;
}
.manual-stage-water{
  position:relative;
  height:360px;
}
.manual-depth-marker{
  position:absolute;
  left:0; right:0;
  height:2px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  pointer-events:none;
  z-index:3;
  opacity:.7;
}
.manual-cast-ring{
  position:absolute;
  width:34px; height:34px;
  border:2px dashed rgba(255,255,255,.55);
  border-radius:50%;
  transform:translate(-50%, -50%);
  pointer-events:none;
  z-index:7;
  opacity:.75;
}
.manual-cast-ring.show{
  animation: manualRingPulse .55s ease-out;
}
@keyframes manualRingPulse{
  0%{opacity:1; transform:translate(-50%, -50%) scale(.7);}
  100%{opacity:0; transform:translate(-50%, -50%) scale(1.4);}
}
.manual-stage-water.aiming .manual-cast-ring{
  border-color: rgba(125,211,252,.8);
}
.manual-stage-water.hooked .manual-cast-ring{
  border-color: rgba(74,222,128,.85);
}
.manual-stage-water.reeling .manual-cast-ring{
  border-color: rgba(250,204,21,.9);
}
.manual-stage-head{
  margin-bottom:12px;
}
.manual-stage-head .strong{
  font-size:18px;
}
.manual-stage::before{
  content:"";
  display:block;
  height:1px;
  margin:-4px 0 12px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.minigame{
  border-top:2px solid rgba(255,255,255,.18);
  border-left:2px solid rgba(255,255,255,.18);
  border-right:2px solid rgba(0,0,0,.32);
  border-bottom:2px solid rgba(0,0,0,.32);
}
.manual-stage-water canvas{
  opacity:.98;
}


/* Manual fishing third pass */
.manual-tension-readout{
  color:#f8e7a8;
}
.manual-stage-water.casting{
  box-shadow: inset 0 0 0 2px rgba(147,197,253,.24), 0 18px 30px rgba(59,130,246,.12);
}
.manual-stage-water.casting .manual-cast-ring{
  border-color: rgba(147,197,253,.88);
}
.manual-stage-water .manual-cast-ring{
  transition: left .08s linear, top .08s linear;
}
.manual-stage-water::after{
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.08), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 24%);
}
.manual-line-svg path{
  stroke-width: 1.9;
}
.manual-depth-marker{
  transition: top .08s linear;
}
.manual-cast-meter .strong{
  color:#0f172a;
}


/* Cast n Chill-inspired scenic pass */
.manual-stage{
  padding: 18px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #223148 0%, #121a27 100%);
  border-top: 2px solid rgba(255,255,255,.22);
  border-left: 2px solid rgba(255,255,255,.22);
  border-right: 2px solid rgba(0,0,0,.32);
  border-bottom: 2px solid rgba(0,0,0,.32);
}
.manual-stage-head{
  margin-bottom: 14px;
}
.manual-stage-head .strong{
  font-size: 28px;
  color: #f5efe4;
  text-shadow: 0 2px 0 rgba(0,0,0,.22);
}
.manual-stage-head .tiny{
  font-size: 15px;
  color: #d6d3c8;
}
.manual-stage-controls{
  margin-bottom: 14px;
}
.manual-stage-controls .button{
  width: 100%;
  max-width: none;
}
.manual-cast-meter{
  min-width: 190px;
  background: rgba(240, 233, 223, 0.95);
  border-radius: 0;
}
.manual-cast-meter .tiny{
  color: #665847;
  font-size: 13px;
}
.manual-cast-meter .strong{
  font-size: 24px;
}
.manual-depth-row{
  margin-bottom: 14px;
  color: #f3ede2;
}
.manual-depth-row .tiny,
.manual-depth-row .strong{
  color: #f3ede2;
}
.manual-lane-readout,
.manual-tension-readout{
  color: #d8d1c4;
}
.manual-stage-water{
  position: relative;
  height: 580px;
  border-radius: 0;
  overflow: hidden;
  border-top: 3px solid rgba(255,255,255,.18);
  border-left: 3px solid rgba(255,255,255,.18);
  border-right: 3px solid rgba(0,0,0,.4);
  border-bottom: 3px solid rgba(0,0,0,.4);
  background: linear-gradient(180deg, #8eb4d8 0%, #7fa3c8 20%, #5f86ab 33%, #2b5e93 34%, #244f7f 52%, #16385f 72%, #08203c 100%);
}
.manual-scene-sky{
  position: absolute;
  inset: 0 0 59% 0;
  background:
    radial-gradient(circle at 70% 22%, rgba(255,255,255,.38), transparent 12%),
    linear-gradient(180deg, #a7c8e7 0%, #95b9dc 45%, #86aad0 100%);
  z-index: 0;
}
.manual-scene-sun{
  position: absolute;
  width: 76px;
  height: 76px;
  right: 120px;
  top: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c6 0%, #f6dd95 48%, rgba(246,221,149,0) 72%);
  z-index: 1;
  opacity: .92;
}
.manual-scene-mountains{
  position: absolute;
  left: 0;
  right: 0;
  height: 180px;
  z-index: 1;
  clip-path: polygon(0% 100%, 0% 60%, 11% 42%, 22% 57%, 34% 30%, 46% 56%, 58% 34%, 69% 52%, 82% 22%, 100% 54%, 100% 100%);
}
.manual-scene-mountains.back{
  top: 104px;
  background: linear-gradient(180deg, #7087a4 0%, #546b86 100%);
  opacity: .95;
}
.manual-scene-mountains.front{
  top: 138px;
  background: linear-gradient(180deg, #60748c 0%, #405567 100%);
  clip-path: polygon(0% 100%, 0% 64%, 15% 48%, 28% 62%, 44% 34%, 58% 59%, 72% 38%, 84% 54%, 100% 28%, 100% 100%);
}
.manual-scene-treeline{
  position: absolute;
  left: 0;
  right: 0;
  top: 210px;
  height: 58px;
  z-index: 2;
  background:
    radial-gradient(circle at 3% 100%, #293b2b 0 18px, transparent 19px),
    radial-gradient(circle at 10% 100%, #233424 0 22px, transparent 23px),
    radial-gradient(circle at 18% 100%, #2a3b2a 0 20px, transparent 21px),
    radial-gradient(circle at 26% 100%, #233424 0 24px, transparent 25px),
    radial-gradient(circle at 34% 100%, #2d3e2d 0 18px, transparent 19px),
    radial-gradient(circle at 42% 100%, #243624 0 20px, transparent 21px),
    radial-gradient(circle at 50% 100%, #2a3b2a 0 25px, transparent 26px),
    radial-gradient(circle at 58% 100%, #233424 0 19px, transparent 20px),
    radial-gradient(circle at 66% 100%, #2d3e2d 0 24px, transparent 25px),
    radial-gradient(circle at 75% 100%, #233424 0 18px, transparent 19px),
    radial-gradient(circle at 84% 100%, #2d3e2d 0 24px, transparent 25px),
    radial-gradient(circle at 92% 100%, #233424 0 20px, transparent 21px);
}
.manual-ground-band{
  top: 0;
  height: 270px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #a98254 0%, #8d673f 42%, #6f4f2f 72%, #5e4228 100%);
  border-bottom: 2px solid rgba(245, 231, 199, 0.4);
  z-index: 2;
}
.manual-rod-silhouette{
  position: absolute;
  left: 82px;
  top: 48px;
  width: 6px;
  height: 140px;
  background: linear-gradient(180deg, #3f2d1b 0%, #2d1f12 100%);
  transform: rotate(-63deg);
  transform-origin: bottom left;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.manual-rod-anchor{
  left: 82px;
  top: 156px;
  width: 16px;
  height: 16px;
  background: #efe9de;
  box-shadow: 0 0 0 6px rgba(255,255,255,.12);
}
.manual-waterline{
  top: 270px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(239, 248, 255, 0.95), transparent);
  z-index: 5;
}
.manual-water-reflection{
  position: absolute;
  left: 0;
  right: 0;
  top: 274px;
  height: 60px;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.02)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px);
  opacity: .55;
}
.manual-depth-grid{
  inset: 274px 0 0 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0px, rgba(255,255,255,.08) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, transparent 1px, transparent 150px);
  z-index: 2;
}
.manual-depth-marker{
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
.manual-cast-ring{
  width: 44px;
  height: 44px;
  border: 3px dashed rgba(180, 235, 255, 0.85);
  opacity: .9;
  z-index: 8;
}
.manual-stage-water.aiming .manual-cast-ring,
.manual-stage-water.casting .manual-cast-ring{
  border-color: rgba(180, 235, 255, 0.95);
}
.manual-stage-water.hooked .manual-cast-ring{
  border-color: rgba(255, 214, 74, 0.95);
}
.manual-line-svg{
  z-index: 7;
}
.manual-line-svg path{
  stroke: rgba(255,255,255,.92);
  stroke-width: 2.2;
}
.manual-stage-canvas{
  position: absolute;
  inset: 0;
  z-index: 6;
}
.manual-hook{
  width: 20px;
  height: 20px;
  z-index: 9;
}
.manual-stage-water::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 30%),
    radial-gradient(circle at 24% 14%, rgba(255,255,255,.1), transparent 18%),
    radial-gradient(circle at 76% 18%, rgba(255,255,255,.08), transparent 16%);
  pointer-events: none;
  z-index: 3;
}
.manual-stage-water::after{
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 14%),
    linear-gradient(180deg, transparent 0%, transparent 62%, rgba(0,0,0,.12) 100%);
}
.manual-stage-water.aiming{
  box-shadow: inset 0 0 0 2px rgba(180,235,255,.15), 0 18px 34px rgba(0,0,0,.24);
}
.manual-stage-water.casting{
  box-shadow: inset 0 0 0 2px rgba(180,235,255,.22), 0 18px 34px rgba(0,0,0,.26);
}
.manual-stage-water.hooked{
  box-shadow: inset 0 0 0 2px rgba(255,214,74,.22), 0 18px 34px rgba(0,0,0,.26);
}
.manual-stage-water.reeling{
  box-shadow: inset 0 0 0 2px rgba(255,214,74,.28), 0 18px 34px rgba(0,0,0,.26);
}
.manual-cast-meter,
.manual-stage-controls .button{
  min-height: 70px;
}
.manual-stage-controls .button{
  font-size: 22px;
}
.manual-depth-row .strong{
  font-size: 22px;
}
.manual-lane-readout,
.manual-tension-readout{
  font-size: 14px;
}


/* manual clone correction pass */
.manual-stage,
.manual-stage *{
  image-rendering: pixelated;
}
.manual-stage-head .strong{
  letter-spacing: 0;
}
.manual-stage-head .tiny,
.manual-depth-row .tiny,
.manual-lane-readout,
.manual-tension-readout{
  color: #efe8da !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,.24);
}
.manual-stage-water{
  height: 560px;
  background:
    linear-gradient(180deg, #b0c9e0 0%, #9ab8d2 18%, #87a8c4 28%, #8b6b47 28.2%, #a07a4f 44%, #8a663f 60%, #3f7ab3 60.4%, #2d5f94 72%, #19406c 86%, #0b2342 100%);
}
.manual-scene-sky{
  background:
    linear-gradient(180deg, #bed5e7 0%, #a7c2d9 60%, #96b4cf 100%);
}
.manual-scene-sun{
  width: 58px;
  height: 58px;
  right: 124px;
  top: 58px;
  image-rendering: pixelated;
  border-radius: 0;
  background: radial-gradient(circle, #ffe8aa 0%, #f4d27b 52%, rgba(244,210,123,0) 68%);
}
.manual-scene-mountains.back,
.manual-scene-mountains.front,
.manual-scene-treeline,
.manual-ground-band,
.manual-water-reflection{
  image-rendering: pixelated;
}
.manual-ground-band{
  top: 0;
  height: 338px;
}
.manual-waterline{
  top: 338px;
}
.manual-water-reflection{
  top: 342px;
}
.manual-depth-grid{
  inset: 342px 0 0 0;
}
.manual-rod-anchor{
  left: 112px;
  top: 218px;
}
.manual-rod-silhouette{
  left: 108px;
  top: 112px;
}
.manual-cast-ring{
  border-style: solid;
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08) inset;
}
.manual-line-svg path{
  stroke: #f5f3ee;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.24));
}
.manual-hook{
  border-width: 4px;
}
.manual-stage-controls .button,
.manual-cast-meter{
  min-height: 62px;
}
.manual-stage-controls .button{
  font-size: 18px;
}
.manual-cast-meter .strong{
  font-size: 20px;
}


/* Cast n Chill rebuild pass - safe version */
.manual-rebuild{
  margin-top:16px;
  padding:22px;
  background: linear-gradient(180deg,#2b3c54 0%, #182333 100%);
  border-top:2px solid rgba(255,255,255,.22);
  border-left:2px solid rgba(255,255,255,.22);
  border-right:2px solid rgba(0,0,0,.36);
  border-bottom:2px solid rgba(0,0,0,.36);
  border-radius:0;
}
.manual-rebuild-head{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:18px;
  margin-bottom:16px;
  align-items:start;
}
.manual-rebuild-kicker{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#d9cfbe;
}
.manual-rebuild-title{
  font-size:54px;
  line-height:1;
  font-weight:800;
  color:#f2eadc;
  text-shadow:0 2px 0 rgba(0,0,0,.18);
}
.manual-rebuild-subtitle{
  margin-top:8px;
  font-size:18px;
  color:#ddd4c7;
}
.manual-rebuild-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(150px,1fr));
  gap:12px;
}
.manual-rebuild-stat{
  min-width:160px;
  padding:12px 14px;
  background:#ece6db;
  color:#11213a;
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-deep);
  border-bottom:2px solid var(--window-deep);
}
.manual-rebuild-stat .label{
  display:block;
  font-size:13px;
  color:#695e4e;
}
.manual-rebuild-stat .value{
  display:block;
  margin-top:2px;
  font-size:24px;
  font-weight:800;
}
.manual-rebuild-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,360px) 1fr;
  gap:14px;
  margin-bottom:16px;
  align-items:start;
}
.manual-cast-primary{
  min-height:62px;
  font-size:20px;
}
.manual-readout-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.manual-pill{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  background:rgba(255,255,255,.08);
  color:#efe7d9;
  border:1px solid rgba(255,255,255,.08);
}
.manual-pill-accent{
  color:#f6e19f;
  background:rgba(255,226,130,.10);
}
.manual-stage-water-rebuild{
  position:relative;
  height:620px !important;
  overflow:hidden;
  border-radius:0;
  border-top:3px solid rgba(255,255,255,.18);
  border-left:3px solid rgba(255,255,255,.18);
  border-right:3px solid rgba(0,0,0,.40);
  border-bottom:3px solid rgba(0,0,0,.40);
  background:linear-gradient(180deg,#bed3e4 0%,#a8bfd5 18%,#95aec8 29%,#8c6942 29.4%,#a57b4d 45%,#8b663e 54%,#4d7db0 54.4%,#2b5d91 68%,#173f6b 83%,#0a2444 100%);
}
.manual-scene-sky{
  position:absolute;
  inset:0 0 53% 0;
  background:linear-gradient(180deg,#c7dbeb 0%,#a8c0d8 64%,#99b2cc 100%);
  z-index:0;
}
.manual-scene-sun{
  position:absolute;
  width:52px;height:52px;
  right:150px; top:72px;
  background:#ffe09a;
  box-shadow:0 0 0 8px rgba(255,224,154,.12);
  z-index:1;
}
.manual-scene-cloud{
  position:absolute;
  height:18px;
  background:rgba(255,255,255,.52);
  z-index:1;
}
.manual-scene-cloud::before,.manual-scene-cloud::after{
  content:"";
  position:absolute;
  background:inherit;
  height:18px;
}
.cloud-a{ width:86px; left:180px; top:96px; }
.cloud-a::before{ width:28px; left:-18px; top:-8px; }
.cloud-a::after{ width:36px; right:8px; top:-10px; }
.cloud-b{ width:70px; right:280px; top:118px; opacity:.78; }
.cloud-b::before{ width:22px; left:-12px; top:-7px; }
.cloud-b::after{ width:28px; right:6px; top:-8px; }
.manual-scene-mountains{
  position:absolute;
  left:0; right:0; z-index:1;
}
.manual-scene-mountains.back{
  top:140px; height:130px;
  background:linear-gradient(180deg,#7488a0 0%,#5a7087 100%);
  clip-path:polygon(0 100%,0 70%,12% 48%,24% 62%,38% 38%,51% 58%,64% 32%,78% 54%,100% 30%,100% 100%);
}
.manual-scene-mountains.front{
  top:175px; height:115px;
  background:linear-gradient(180deg,#56697d 0%,#425362 100%);
  clip-path:polygon(0 100%,0 76%,14% 46%,28% 64%,42% 36%,56% 58%,73% 42%,86% 60%,100% 40%,100% 100%);
}
.manual-scene-treeline{
  position:absolute;
  left:0; right:0; top:242px;
  height:48px;
  background:linear-gradient(180deg,transparent 0%,transparent 55%,#253929 55%,#253929 100%);
  z-index:2;
}
.manual-ground-band{
  position:absolute;
  left:0; right:0; top:0;
  height:290px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0) 38%),
    linear-gradient(180deg,#aa8151 0%,#976f45 32%,#7e5d39 66%,#694b2f 100%);
  border-bottom:2px solid rgba(244,224,177,.4);
  z-index:2;
}
.manual-rod-silhouette{
  position:absolute;
  left:82px; top:170px;
  width:6px; height:122px;
  transform:rotate(-62deg);
  transform-origin:bottom left;
  background:#312215;
  z-index:6;
}
.manual-rod-anchor{
  position:absolute;
  left:104px; top:250px;
  width:16px; height:16px;
  background:#efe5d7;
  box-shadow:0 0 0 6px rgba(255,255,255,.08);
  z-index:7;
}
.manual-waterline{
  position:absolute;
  left:0; right:0; top:290px;
  height:4px;
  background:linear-gradient(90deg,transparent,rgba(239,248,255,.95),transparent);
  z-index:8;
}
.manual-water-reflection{
  position:absolute;
  left:0; right:0; top:294px;
  height:40px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 44px);
  opacity:.52;
  z-index:3;
}
.manual-depth-grid{
  position:absolute;
  inset:294px 0 0 0;
  background:
    repeating-linear-gradient(180deg,rgba(255,255,255,.08) 0px,rgba(255,255,255,.08) 1px,transparent 1px,transparent 74px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0px,rgba(255,255,255,.05) 1px,transparent 1px,transparent 150px);
  z-index:3;
}
.manual-depth-marker{
  position:absolute;
  left:0; right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  z-index:5;
}
.manual-line-svg{ position:absolute; inset:0; z-index:9; pointer-events:none; }
.manual-line-svg path{
  fill:none;
  stroke:#f5f3ee;
  stroke-width:2.2;
  filter:drop-shadow(0 1px 0 rgba(0,0,0,.22));
}
.manual-cast-ring{
  position:absolute;
  width:44px; height:44px;
  transform:translate(-50%,-50%);
  border:3px solid rgba(182,236,255,.95);
  z-index:10; pointer-events:none;
}
.manual-hook{
  position:absolute;
  width:20px; height:20px;
  border:4px solid #f8fbff;
  border-top-color:transparent;
  border-left-color:transparent;
  border-radius:50%;
  transform:translate(-50%,-50%) rotate(20deg);
  z-index:11;
}
.manual-hook::before{
  content:"";
  position:absolute;
  width:4px; height:16px;
  background:#f8fbff;
  left:10px; top:-16px;
}
.manual-hook::after{
  content:"";
  position:absolute;
  width:6px; height:6px;
  border-right:4px solid #f8fbff;
  border-bottom:4px solid #f8fbff;
  right:-6px; bottom:-2px;
  transform:rotate(20deg);
}
.manual-stage-canvas{ position:absolute; inset:0; z-index:6; }
.manual-rebuild-footer{
  margin-top:14px;
  display:grid;
  grid-template-columns:240px 1fr;
  gap:16px;
  align-items:start;
}
.manual-last-catch{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:0 14px;
  background:rgba(255,255,255,.06);
  color:#efe8da;
  border:1px solid rgba(255,255,255,.08);
}
.manual-minigame{ margin-top:0; }
.manual-stage-water.aiming{
  box-shadow: inset 0 0 0 2px rgba(182,236,255,.18), 0 18px 28px rgba(0,0,0,.22);
}
.manual-stage-water.casting{
  box-shadow: inset 0 0 0 2px rgba(182,236,255,.22), 0 18px 28px rgba(0,0,0,.22);
}
.manual-stage-water.hooked,
.manual-stage-water.reeling{
  box-shadow: inset 0 0 0 2px rgba(255,214,74,.26), 0 18px 28px rgba(0,0,0,.22);
}
@media (max-width:1100px){
  .manual-rebuild-head,.manual-rebuild-toolbar,.manual-rebuild-footer{ grid-template-columns:1fr; }
  .manual-stage-water-rebuild{ height:520px !important; }
  .manual-rebuild-title{ font-size:40px; }
}


/* Manual mode correction + pixel pass */
.manual-stage-water-rebuild,
.manual-stage-water-rebuild *{
  image-rendering: pixelated;
}

.manual-stage-water-rebuild{
  background:
    linear-gradient(180deg,
      #c5d8e8 0 7%,
      #b6ccdf 7% 14%,
      #a7bfd6 14% 21%,
      #98b3ce 21% 28%,
      #9b754a 28% 34%,
      #a57b4d 34% 40%,
      #926a42 40% 47%,
      #7e5b38 47% 54%,
      #5385b9 54% 60%,
      #4375ab 60% 68%,
      #2f5f92 68% 78%,
      #1e4b7b 78% 88%,
      #10345c 88% 100%);
}

.manual-scene-sun{
  border-radius: 0;
  box-shadow: none;
  outline: 4px solid rgba(255,224,154,.14);
}

.manual-scene-cloud,
.manual-scene-cloud::before,
.manual-scene-cloud::after{
  border-radius: 0 !important;
}

.manual-scene-mountains.back,
.manual-scene-mountains.front{
  image-rendering: pixelated;
  filter: saturate(.9) contrast(1.02);
}

.manual-stage-water-rebuild::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 32px, transparent 32px 64px),
    repeating-linear-gradient(180deg, rgba(255,255,255,.018) 0 32px, transparent 32px 64px);
  z-index: 2;
}

.manual-water-reflection{
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 22px, transparent 22px 44px);
}

.manual-cast-ring{
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(0,0,0,.08) inset;
}

.manual-stage-canvas{
  image-rendering: pixelated;
}

.manual-readout-group .manual-pill{
  font-weight: 700;
}

.manual-rebuild-title{
  letter-spacing: -0.02em;
}


/* Manual fishing rewrite */
.manual-rebuild{
  margin-top:16px;
  padding:22px;
  background: linear-gradient(180deg,#2b3c54 0%, #182333 100%);
  border-top:2px solid rgba(255,255,255,.22);
  border-left:2px solid rgba(255,255,255,.22);
  border-right:2px solid rgba(0,0,0,.36);
  border-bottom:2px solid rgba(0,0,0,.36);
  border-radius:0;
}
.manual-rebuild-head{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  margin-bottom:16px;
  align-items:start;
}
.manual-rebuild-kicker{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#d9cfbe;
}
.manual-rebuild-title{
  font-size:54px;
  line-height:1;
  font-weight:800;
  color:#f2eadc;
  text-shadow:0 2px 0 rgba(0,0,0,.18);
}
.manual-rebuild-subtitle{
  margin-top:8px;
  font-size:18px;
  color:#ddd4c7;
}
.manual-rebuild-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(150px,1fr));
  gap:12px;
}
.manual-rebuild-stat{
  min-width:160px;
  padding:12px 14px;
  background:#ece6db;
  color:#11213a;
  border-top:2px solid var(--window-light);
  border-left:2px solid var(--window-light);
  border-right:2px solid var(--window-deep);
  border-bottom:2px solid var(--window-deep);
}
.manual-rebuild-stat .label{
  display:block;
  font-size:13px;
  color:#695e4e;
}
.manual-rebuild-stat .value{
  display:block;
  margin-top:2px;
  font-size:24px;
  font-weight:800;
}
.manual-rebuild-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,360px) 1fr;
  gap:14px;
  margin-bottom:16px;
  align-items:start;
}
.manual-cast-primary{min-height:62px;font-size:20px;}
.manual-readout-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.manual-pill{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  background:rgba(255,255,255,.08);
  color:#efe7d9;
  border:1px solid rgba(255,255,255,.08);
  font-weight:700;
}
.manual-pill-accent{
  color:#f6e19f;
  background:rgba(255,226,130,.10);
}
.manual-stage-water-rebuild,
.manual-stage-water-rebuild *{
  image-rendering: pixelated;
}
.manual-stage-water-rebuild{
  position:relative;
  height:620px !important;
  overflow:hidden;
  border-radius:0;
  border-top:3px solid rgba(255,255,255,.18);
  border-left:3px solid rgba(255,255,255,.18);
  border-right:3px solid rgba(0,0,0,.40);
  border-bottom:3px solid rgba(0,0,0,.40);
  background:
    linear-gradient(180deg,
      #c5d8e8 0 7%,
      #b6ccdf 7% 14%,
      #a7bfd6 14% 21%,
      #98b3ce 21% 28%,
      #9b754a 28% 34%,
      #a57b4d 34% 40%,
      #926a42 40% 47%,
      #7e5b38 47% 54%,
      #5385b9 54% 60%,
      #4375ab 60% 68%,
      #2f5f92 68% 78%,
      #1e4b7b 78% 88%,
      #10345c 88% 100%);
}
.manual-scene-sky{
  position:absolute;
  inset:0 0 53% 0;
  background:
    linear-gradient(180deg,#c7dbeb 0 18%,#b7cee2 18% 42%,#a8c0d8 42% 70%,#99b2cc 70% 100%);
  z-index:0;
}
.manual-scene-sun{
  position:absolute;
  width:52px;height:52px;
  right:150px; top:72px;
  background:#ffe09a;
  border-radius:0;
  outline:4px solid rgba(255,224,154,.14);
  z-index:1;
}
.manual-scene-cloud{
  position:absolute;height:18px;background:rgba(255,255,255,.52);z-index:1;
}
.manual-scene-cloud::before,.manual-scene-cloud::after{
  content:"";position:absolute;background:inherit;height:18px;
}
.cloud-a{ width:86px; left:180px; top:96px; }
.cloud-a::before{ width:28px; left:-18px; top:-8px; }
.cloud-a::after{ width:36px; right:8px; top:-10px; }
.cloud-b{ width:70px; right:280px; top:118px; opacity:.78; }
.cloud-b::before{ width:22px; left:-12px; top:-7px; }
.cloud-b::after{ width:28px; right:6px; top:-8px; }
.manual-scene-mountains{position:absolute;left:0;right:0;z-index:1;}
.manual-scene-mountains.back{
  top:140px;height:130px;
  background:linear-gradient(180deg,#7488a0 0%,#5a7087 100%);
  clip-path:polygon(0 100%,0 70%,12% 48%,24% 62%,38% 38%,51% 58%,64% 32%,78% 54%,100% 30%,100% 100%);
}
.manual-scene-mountains.front{
  top:175px;height:115px;
  background:linear-gradient(180deg,#56697d 0%,#425362 100%);
  clip-path:polygon(0 100%,0 76%,14% 46%,28% 64%,42% 36%,56% 58%,73% 42%,86% 60%,100% 40%,100% 100%);
}
.manual-scene-treeline{
  position:absolute;left:0;right:0;top:242px;height:48px;
  background:linear-gradient(180deg,transparent 0%,transparent 55%,#253929 55%,#253929 100%);
  z-index:2;
}
.manual-ground-band{
  position:absolute;left:0;right:0;top:0;height:290px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,0) 38%),
    linear-gradient(180deg,#aa8151 0%,#976f45 32%,#7e5d39 66%,#694b2f 100%);
  border-bottom:2px solid rgba(244,224,177,.4);
  z-index:2;
}
.manual-waterline{
  position:absolute;left:0;right:0;top:290px;height:4px;
  background:linear-gradient(90deg,transparent,rgba(239,248,255,.95),transparent);
  z-index:8;
}
.manual-water-reflection{
  position:absolute;left:0;right:0;top:294px;height:40px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0)),
    repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 22px,transparent 22px 44px);
  opacity:.52;z-index:3;
}
.manual-rod-silhouette{
  position:absolute;left:82px;top:170px;width:6px;height:122px;
  transform:rotate(-62deg);transform-origin:bottom left;background:#312215;z-index:6;
}
.manual-rod-anchor{
  position:absolute;left:104px;top:250px;width:16px;height:16px;
  background:#efe5d7;box-shadow:0 0 0 6px rgba(255,255,255,.08);z-index:7;
}
.manual-depth-grid{
  position:absolute;
  inset:294px 0 0 0;
  background:
    repeating-linear-gradient(180deg,rgba(255,255,255,.08) 0px,rgba(255,255,255,.08) 1px,transparent 1px,transparent 74px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0px,rgba(255,255,255,.05) 1px,transparent 1px,transparent 150px);
  z-index:3;
}
.manual-depth-marker{
  position:absolute;left:0;right:0;height:2px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);
  z-index:5;
}
.manual-line-svg{position:absolute;inset:0;z-index:9;pointer-events:none;}
.manual-line-svg path{
  fill:none;stroke:#f5f3ee;stroke-width:2.2;filter:drop-shadow(0 1px 0 rgba(0,0,0,.22));
}
.manual-cast-ring{
  position:absolute;width:44px;height:44px;transform:translate(-50%,-50%);
  border:3px solid rgba(182,236,255,.95);box-shadow:0 0 0 3px rgba(0,0,0,.08) inset;z-index:10;pointer-events:none;
}
.manual-hook{
  position:absolute;width:20px;height:20px;border:4px solid #f8fbff;border-top-color:transparent;border-left-color:transparent;border-radius:50%;transform:translate(-50%,-50%) rotate(20deg);z-index:11;
}
.manual-hook::before{content:"";position:absolute;width:4px;height:16px;background:#f8fbff;left:10px;top:-16px;}
.manual-hook::after{content:"";position:absolute;width:6px;height:6px;border-right:4px solid #f8fbff;border-bottom:4px solid #f8fbff;right:-6px;bottom:-2px;transform:rotate(20deg);}
.manual-stage-canvas{position:absolute;inset:0;z-index:6;image-rendering:pixelated;}
.manual-rebuild-footer{
  margin-top:14px;display:grid;grid-template-columns:240px 1fr;gap:16px;align-items:start;
}
.manual-last-catch{
  display:flex;align-items:center;min-height:48px;padding:0 14px;background:rgba(255,255,255,.06);color:#efe8da;border:1px solid rgba(255,255,255,.08);
}
.manual-minigame{margin-top:0;}
.manual-stage-water.aiming{box-shadow:inset 0 0 0 2px rgba(182,236,255,.18),0 18px 28px rgba(0,0,0,.22);}
.manual-stage-water.casting{box-shadow:inset 0 0 0 2px rgba(182,236,255,.22),0 18px 28px rgba(0,0,0,.22);}
.manual-stage-water.hooked,.manual-stage-water.reeling{box-shadow:inset 0 0 0 2px rgba(255,214,74,.26),0 18px 28px rgba(0,0,0,.22);}
@media (max-width:1100px){
  .manual-rebuild-head,.manual-rebuild-toolbar,.manual-rebuild-footer{grid-template-columns:1fr;}
  .manual-stage-water-rebuild{height:520px !important;}
  .manual-rebuild-title{font-size:40px;}
}


/* 2026-04-02 manual rebuild override */
.manual-rebuild-clean .manual-scene-sky,
.manual-rebuild-clean .manual-scene-sun,
.manual-rebuild-clean .manual-scene-cloud,
.manual-rebuild-clean .manual-scene-mountains,
.manual-rebuild-clean .manual-scene-treeline,
.manual-rebuild-clean .manual-ground-band,
.manual-rebuild-clean .manual-waterline,
.manual-rebuild-clean .manual-water-reflection,
.manual-rebuild-clean .manual-rod-silhouette,
.manual-rebuild-clean .manual-rod-anchor,
.manual-rebuild-clean .manual-fish-layer,
.manual-rebuild-clean .manual-hook {
  display: none !important;
}
.manual-rebuild-clean .manual-stage-water-rebuild {
  background: #88aad0 !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 16px 28px rgba(0,0,0,.28);
}
.manual-rebuild-clean .manual-stage-canvas {
  opacity: 1 !important;
  image-rendering: pixelated;
}
.manual-rebuild-clean .manual-line-svg path {
  stroke: rgba(255,255,255,.92);
  stroke-width: 2.2;
}
.manual-rebuild-clean .manual-cast-ring {
  border-style: solid;
  border-width: 3px;
  border-color: #b7e4ff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
}
.manual-rebuild-clean .manual-water-splash {
  top: 320px;
}
