/* A draggable dragon boat on a quiet strip of water. Native document scrolling underneath. */
.river-scroll[hidden] { display: none; }
html.river-scroll-active { scrollbar-width: none; }
html.river-scroll-active::-webkit-scrollbar { width: 0; }
.river-scroll { position: fixed; inset: 12px 2px 12px auto; width: 44px; z-index: 40; user-select: none; }
.river-scroll__track { position: relative; height: 100%; cursor: pointer; touch-action: none; }
.river-scroll__water { position: absolute; inset: 0 19px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.river-scroll__water::after { content: ''; position: absolute; inset: 0 2px; background: color-mix(in srgb, var(--accent) 38%, transparent); border-radius: inherit; }
.river-scroll__boat { position: absolute; top: 0; width: 44px; height: 144px; cursor: grab; touch-action: none; border-radius: 22px; }
.river-scroll__boat:focus { outline: none; background: transparent; }
/* Keyboard focus follows the hull itself, never a bubble around the boat. */
.river-scroll__boat:focus-visible:not(.is-dragging) .river-scroll__hull { stroke: var(--blue); stroke-width: 2.5; }
.river-scroll__boat.is-dragging { cursor: grabbing; }
.river-scroll__vessel { display: block; width: 44px; height: 144px; overflow: visible; filter: drop-shadow(0 2px 2px rgb(11 31 58 / .2)); }
.river-scroll__boat.is-down .river-scroll__vessel { rotate: 180deg; }
.river-scroll__hull { fill: var(--accent); stroke: var(--ink); stroke-width: 1; }
.river-scroll__deck { fill: var(--ink); }
.river-scroll__bench { fill: none; stroke: var(--accent); stroke-width: 2; }
.river-scroll__drum { fill: var(--ground); stroke: var(--ink); stroke-width: 1; }
.river-scroll__paddle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.river-scroll__wake { color: var(--blue); opacity: 0; transition: opacity 160ms; }
.river-scroll__boat.is-rowing .river-scroll__wake { opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .river-scroll__boat.is-rowing .river-scroll__paddle--left { animation: paddle-left 520ms ease-in-out infinite; animation-delay: calc(var(--row) * -35ms); }
  .river-scroll__boat.is-rowing .river-scroll__paddle--right { animation: paddle-right 520ms ease-in-out infinite; animation-delay: calc(var(--row) * -35ms); }
  @keyframes paddle-left { 0%,100% { transform: rotate(-24deg); } 50% { transform: rotate(25deg); } }
  @keyframes paddle-right { 0%,100% { transform: rotate(24deg); } 50% { transform: rotate(-25deg); } }
}
@media (max-width: 63.99em) {
  .river-scroll { width: 22px; right: 0; }
  .river-scroll__water { inset-inline: 10px; }
  .river-scroll__boat { width: 22px; height: 108px; }
  .river-scroll__vessel { width: 22px; height: 108px; }
}
@media print { .river-scroll { display: none; } }
@media (forced-colors: active) { .river-scroll { display: none; } html.river-scroll-active { scrollbar-width: auto; } }
