/* Canvas owns only the game scene. App layout and settlement stay with the caller. */
.fishing-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fishing-canvas-ready > .scene-art {
  opacity: 0;
}

.fishing-canvas-ready > .scene-tint,
.fishing-canvas-ready > .swimming-fish,
.fishing-motion-enabled > .bobber,
.fishing-motion-enabled > .fishing-ripple,
.fishing-motion-enabled > .fishing-motion-layer {
  display: none;
}

.fishing-motion-enabled .cast-progress i {
  animation: none !important;
  transform: scaleX(var(--fishing-progress, 0));
  transform-origin: left;
  transition: none;
}

.fishing-motion-enabled.motion-playing .cast-message-icon {
  animation: none !important;
}

.fishing-motion-hud {
  position: absolute;
  top: 195px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 126px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #d9ffff88;
  border-radius: 13px;
  background: #f1ffffec;
  box-shadow: 0 4px 0 #125f9418, 0 8px 22px #0e5c9622;
  color: #245977;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, visibility .2s;
}

.fishing-motion-hud.visible {
  opacity: 1;
  visibility: visible;
}

.fm-tension-label {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}

.fm-tension-track {
  flex: 1 1 auto;
  min-width: 0;
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #d8ecec;
}

.fm-tension-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #46cda7, #a5d85d, #ffc469);
  transform: scaleX(.2);
  transform-origin: left;
}

.fishing-motion-enabled[data-motion-phase="reel"] .cast-message {
  border-color: #abf2d6;
}

@media (max-height: 700px) {
  .fishing-motion-hud {
    top: 164px;
    left: 12px;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fishing-motion-hud,
  .fishing-canvas {
    transition: none !important;
    animation: none !important;
  }

  .fishing-motion-enabled .swimming-fish {
    animation: none !important;
  }
}
