.inset-menu[data-panel="river"] { --stamp: url("art/fish-crucian.png"); }
.rv-panel { container: riverpane / inline-size; color: #364a3e; font-size: 14px; line-height: 1.4; }
.rv-bar,.rv-spots,.rv-cost,.rv-command,.rv-recent,.rv-quick-sale,.rv-trade,.rv-trade button { display: flex; align-items: center; }
.rv-bar { gap: 6px; margin: 1px 0 6px; }
.rv-spots { gap: 1px; padding: 2px; border: 1px solid #b4ad86; background: #e9e4cc; border-radius: 6px; }
.rv-spots button,.rv-tab-link { padding: 4px 8px; min-height: 32px; white-space: nowrap; color: #526049; font-size: 13px; }
.rv-spots button { border: 0; border-radius: 4px; background: transparent; }
.rv-spots [aria-pressed="true"] { color: #fff4d6; background: #3b634f; box-shadow: inset 0 1px #78917a; }
.rv-spots button:disabled { cursor: default; }
.rv-tab-link {
  margin-left: auto; padding: 4px 7px; border: 1px solid #a9ad8a; border-radius: 4px;
  color: #384e3b; background: #eff0d9; box-shadow: inset 0 1px #fff9e5; font-weight: 650;
}
.rv-tab-link small { font: 650 11px var(--number); padding-left: 3px; }
.rv-book-total { margin-left: auto; font-size: 13px; color: #5e624d; }
.rv-book-total b { color: #36583e; }
.rv-tab-link:first-child { margin-left: 0; }
.rv-cost { gap: 2px; font: 500 12px var(--font); white-space: nowrap; color: #566348; }
.rv-cost b { font: 750 12px var(--number); color: #36583e; }
.rv-cost img,.rv-trade img,.rv-quick-sale img { width: 14px; height: 14px; object-fit: contain; image-rendering: pixelated; }

.rv-water { --rv-band-start: 38%; --rv-band-width: 28%; }
.rv-scene {
  position: relative; isolation: isolate; display: block; overflow: hidden;
  width: 100%; height: auto; aspect-ratio: 2.22; padding: 0;
  border: 1px solid #536f5e; border-radius: 6px;
  background: #69a5a0 center / cover no-repeat; image-rendering: pixelated;
  box-shadow: inset 0 0 0 1px #f5edc45e,0 1px 1px #41523830;
  color: #fff5d9; cursor: pointer; touch-action: manipulation;
}
.rv-scene[aria-disabled="true"] { cursor: default; }
.rv-scene:focus-visible { outline: 3px solid #875c2f; outline-offset: 1px; }
.rv-scene[aria-disabled="false"]:hover .rv-command { background: #234a3bef; }
.rv-scene[aria-disabled="false"]:active .rv-command { transform: translateY(1px); }
.rv-stream { background-image: url("art/river-stream.webp"); }
.rv-reeds { background-image: url("art/river-reeds.webp"); }
.rv-bridge { background-image: url("art/river-bridge.webp"); }
.rv-water-glints i {
  position: absolute; top: 66%; left: 22%; width: 8px; height: 1px; background: #d7efe3aa;
  box-shadow: -4px 2px #d7efe390, 7px -1px #e4f4ce66; animation: rv-glint 2.6s steps(3) infinite;
}
.rv-water-glints i:nth-child(2) { left: 73%; top: 81%; animation-delay: -1.4s; }
.rv-water-glints i:nth-child(3) { left: 44%; top: 47%; animation-delay: -.8s; }
.rv-line, .rv-rings, .rv-float, .rv-water[data-phase="idle"] :is(.rv-line,.rv-rings,.rv-float) { display: none; }
.rv-water[data-phase="bite"] .rv-float { animation: rv-bite .55s steps(2) infinite; }
.rv-water[data-phase="bite"] .rv-rings i { animation-duration: 1.1s; }
@keyframes rv-glint { 0%,100% { opacity: .35; } 45% { opacity: 1; transform: translateX(2px); } }
@keyframes rv-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes rv-bite { 0%,100% { transform: translateY(0) rotate(-5deg); } 52% { transform: translateY(3px) rotate(9deg); } }
@keyframes rv-ring { from { opacity: .9; transform: scale(.45); } to { opacity: 0; transform: scale(1.7); } }

.rv-command {
  position: absolute; right: 5px; bottom: 5px; gap: 3px; padding: 5px 8px;
  font-size: 13px; font-weight: 700; line-height: 1.2; border-radius: 4px;
  color: #fff4ce; background: #2a5142ed; border: 1px solid #e8db9f;
  box-shadow: 0 1px 2px #163d35a0;
}
.rv-command svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.rv-water[data-phase="waiting"] .rv-command,.rv-scene[aria-disabled="true"] .rv-command { background: #354c44dc; border-color: #cad3b2; }
.rv-water[data-phase="bite"] .rv-command { color: #412f1c; background: #f9d585; border-color: #fff2c5; }
.rv-water[data-phase="bite"] .rv-scene:hover .rv-command { color: #412f1c; background: #ffe49c; }
.rv-water[data-phase="bite"][data-perfect="true"] .rv-command { color: #193c28; background: #bce59e; border-color: #e6ffe4; }
.rv-gauge {
  display: none; position: absolute; left: 53%; bottom: calc(33% + 15px); transform: translateX(-50%);
  width: 36%; max-width: 115px; height: 10px; pointer-events: none;
  border: 2px solid #304d3f; border-radius: 3px; background: #d8c994;
  box-shadow: 0 0 0 1px #edecd7ce,0 2px 2px #244c4485;
}
.rv-water[data-phase="bite"] .rv-gauge { display: block; }
.rv-band {
  position: absolute; left: var(--rv-band-start); width: var(--rv-band-width); height: 100%; top: 0;
  border-inline: 1px solid #536e46; background: repeating-linear-gradient(135deg,#6f9956 0 3px,#90b674 3px 5px);
}
.rv-needle {
  position: absolute; top: -4px; bottom: -4px; width: 3px; left: 0; margin-left: -1px;
  background: #563822; border-radius: 1px; box-shadow: 1px 0 #fff8d5;
}
.rv-needle::before { content: ""; position: absolute; bottom: 100%; left: -2px; border-inline: 3.5px solid transparent; border-top: 4px solid #fff1bc; filter: drop-shadow(0 1px #624f32); }
.rv-guide { margin: 5px 1px; color: #475540; font-size: 12px; }
.rv-guide:empty { display: none; }
.rv-recent { gap: 6px; margin-top: 5px; padding: 6px 2px 1px; border-top: 1px dashed #c3b58d; }
.rv-fish { height: 40px; width: 52px; display: block; object-fit: contain; }
.rv-recent .rv-fish { width: 38px; height: 30px; }
.rv-recent small,.rv-recent strong { display: block; }
.rv-recent small { color: #716449; font-size: 11px; }
.rv-recent strong { color: #3d5038; font-size: 15px; }
.rv-recent strong span { font-size: 12px; color: #655d42; font-weight: 550; }
.rv-quick-sale { gap: 2px; align-self: center; margin-left: auto; min-height: 34px; padding: 4px 7px; white-space: nowrap;
  border: 1px solid #b5a273; border-radius: 4px; background: #f3e5bf; color: #544328; font-size: 12px; }
.rv-book { display: grid; gap: 5px; }
.rv-entry {
  display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 8px; align-items: center;
  background: #f7edd1; border: 1px solid #cebc94; border-radius: 4px; padding: 5px 7px 5px 5px;
}
.rv-specimen {
  position: relative; display: grid; place-items: center; align-self: stretch; min-height: 45px;
  border: 1px solid #b9c1a1; border-radius: 3px; overflow: hidden;
  background: repeating-linear-gradient(0deg,transparent 0 6px,#b2c5a455 6px 7px),linear-gradient(135deg,#e7ecd3,#d7e2c6);
}
.rv-specimen::after {
  content: ""; position: absolute; bottom: 2px; left: 4px; right: 4px; height: 3px;
  background: repeating-linear-gradient(90deg,#9cae8c 0 1px,transparent 1px 5px);
}
.rv-unknown .rv-fish { filter: grayscale(1) sepia(.65); opacity: .55; }
.rv-unknown .rv-specimen { background-color: #e9e3c8; border-color: #c9c2a6; }
.rv-entry-copy h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0;
  color: #394b37; font: 800 16px/1.2 var(--book);
}
.rv-entry-copy h3 small { font: 500 10px/1.3 var(--font); color: #78694c; }
.rv-entry-copy p { margin: 3px 0 0; color: #665f49; font-size: 11px; line-height: 1.4; }
.rv-entry-copy p b { color: #475a3f; font-weight: 650; }
.rv-entry-copy .rv-discovery { color: #716852; }
.rv-trade { justify-content: space-between; flex-wrap: wrap; gap: 2px 4px; color: #536243; margin-top: 3px; font-size: 11px; }
.rv-trade button { justify-content: center; gap: 3px; min-height: 27px; padding: 2px 5px; font-size: 11px; color: #58452b; border: 1px solid #ae9667; border-radius: 3px; background: #f2dfaa; }
.rv-trade button:disabled { color: #80775f; background: #e9e0c8; border-color: #cfc3a6; }
.rv-trade button:disabled img { opacity: .6; }


@media (pointer: coarse) {
  .rv-spots button,.rv-tab-link,.rv-quick-sale,.rv-trade button { min-height: 36px; }
}
@media (orientation: portrait) and (max-width: 650px) {
  .rv-scene { height: clamp(66px,12.5dvh,113px); aspect-ratio: auto; background-position: center 60%; }
  .rv-bar { margin-bottom: 4px; }
}
@media (orientation: portrait) and (max-height: 650px) {
  .rv-scene { height: 68px; }
  .rv-command { top: 4px; bottom: auto; }
  .rv-gauge { bottom: calc(33% + 8px); }
}
@container riverpane (max-width: 350px) {
  .rv-bar:has(.rv-spots) { display: grid; grid-template-columns: 1fr auto; }
  .rv-spots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .rv-spots button { padding-inline: 2px; min-height: 36px; }
}
@container riverpane (max-width: 235px) {
  .rv-bar { gap: 3px; flex-wrap: wrap; }
  .rv-spots button,.rv-tab-link { padding-inline: 4px; }

  .rv-cost { margin: 0; font-size: 11px; }
  .rv-scene { aspect-ratio: 1.85; }
  .rv-command { top: 4px; bottom: auto; font-size: 12px; padding: 3px 5px; }
  .rv-quick-sale { padding-inline: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-panel *, .rv-panel *::before, .rv-panel *::after { animation: none !important; }
  .rv-rings i + i { display: none; }
}
