/* ============================================================
   LLM FISHING — golden-hour pond, hand-built pixel scene
   ============================================================ */

:root {
  /* golden hour sky → deep teal pond */
  --sky-hi: #ffd9a0;
  --sky-lo: #ff9a64;
  --sun: #fff3c4;
  --water-hi: #1d7a86;
  --water-md: #0f4d5c;
  --water-lo: #07303c;
  --tree: #2c4a32;
  --tree-dk: #1d3322;
  --wood: #7a4a26;
  --wood-hi: #a9742f;
  --wood-lo: #4a2c14;
  --wood-edge: #2c1a0a;
  --paper: #f7ecd3;
  --ink: #4a2e14;
  --gold: #ffd166;
  --gold-dk: #c9941f;
  --cream: #f7ecd3;

  --bronze: #cd7f32;
  --silver: #cfd6de;
  --goldq: #ffd700;
  --iridium: #c29cff;
  --legendary: #ff5eb5;

  --beat-period: 1600ms;
}

@property --sky-hi { syntax: "<color>"; inherits: true; initial-value: #ffd9a0; }
@property --sky-lo { syntax: "<color>"; inherits: true; initial-value: #ff9a64; }
@property --water-hi { syntax: "<color>"; inherits: true; initial-value: #1d7a86; }
@property --water-md { syntax: "<color>"; inherits: true; initial-value: #0f4d5c; }
@property --water-lo { syntax: "<color>"; inherits: true; initial-value: #07303c; }

* { box-sizing: border-box; }

html { background: #20140a; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pixelify Sans", "VT323", monospace;
  font-size: 19px;
  color: var(--cream);
  background:
    repeating-conic-gradient(#241608 0% 25%, #20140a 0% 50%) 0 0 / 6px 6px;
  image-rendering: pixelated;
  overflow-x: hidden;
}

#app {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 22px 56px;
}

/* ---------------- masthead ---------------- */

.masthead {
  position: relative;
  text-align: center;
  margin-bottom: 14px;
  animation: drop-in .7s cubic-bezier(.2, 1.6, .4, 1) both;
}

.mute-btn {
  position: absolute;
  right: 0;
  top: 6px;
  font-family: "Press Start 2P", monospace;
  font-size: .5rem;
  padding: 8px 10px;
  color: var(--gold);
  background: var(--wood);
  border: 3px solid var(--wood-edge);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--wood-hi), 0 3px 0 var(--wood-edge);
  cursor: pointer;
}

.mute-btn.off { color: #8a6a44; filter: saturate(.5); }

.mute-btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--wood-hi); }

h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1.1rem, 4vw, 1.9rem);
  margin: 0;
  color: var(--gold);
  text-shadow: 0 3px 0 var(--gold-dk), 0 6px 0 var(--wood-edge), 0 8px 14px rgba(0,0,0,.6);
  letter-spacing: 2px;
}

.title-fish {
  display: inline-block;
  width: .9em; height: .9em;
  margin-right: .45em;
  vertical-align: -10%;
  background: var(--gold);
  clip-path: polygon(0% 50%, 28% 18%, 62% 18%, 78% 38%, 100% 8%, 100% 92%, 78% 62%, 62% 82%, 28% 82%);
  animation: title-fish-wiggle 2.4s ease-in-out infinite;
}

@keyframes title-fish-wiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(8deg) translateY(-2px); }
}

.tagline {
  margin: 10px 0 0;
  font-size: 1.05rem;
  color: #d9b88a;
  letter-spacing: .5px;
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-26px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- layout ---------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 170px); /* game fills the first screenful */
}

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
}

/* ============================================================
   THE SCENE
   ============================================================ */

.scene {
  position: relative;
  min-height: clamp(440px, calc(100vh - 190px), 760px);
  overflow: hidden;
  border: 4px solid var(--wood-edge);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--wood-hi), 0 10px 0 -4px var(--wood-edge), 0 18px 30px rgba(0,0,0,.5);
  background: linear-gradient(180deg, var(--sky-hi) 0%, var(--sky-lo) 46%, var(--water-hi) 52%, var(--water-md) 72%, var(--water-lo) 100%);
  animation: drop-in .7s .1s cubic-bezier(.2, 1.6, .4, 1) both, sky-cycle 140s ease-in-out infinite;
}

@keyframes sky-cycle {
  0%, 100% {
    --sky-hi: #ffd9a0;
    --sky-lo: #ff9a64;
    --water-hi: #1d7a86;
    --water-md: #0f4d5c;
    --water-lo: #07303c;
  }
  25% {
    --sky-hi: #fff4c8;
    --sky-lo: #ffc878;
    --water-hi: #228a96;
    --water-md: #115a68;
    --water-lo: #083848;
  }
  50% {
    --sky-hi: #ffb888;
    --sky-lo: #e86a4a;
    --water-hi: #1a6e7a;
    --water-md: #0c4552;
    --water-lo: #062a34;
  }
  75% {
    --sky-hi: #8a9ac8;
    --sky-lo: #4a5a88;
    --water-hi: #143e4a;
    --water-md: #0a2830;
    --water-lo: #041820;
  }
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
  animation: time-tint 140s ease-in-out infinite;
}

@keyframes time-tint {
  0%, 100% { background: rgba(255, 190, 100, .06); }
  25% { background: rgba(255, 255, 180, .04); }
  50% { background: rgba(220, 90, 50, .14); }
  75% { background: rgba(30, 45, 90, .32); }
}

.scene-dither {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-conic-gradient(rgba(0,0,0,.05) 0% 25%, transparent 0% 50%) 0 0 / 4px 4px;
  mix-blend-mode: multiply;
}

.sun {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 64px; height: 64px;
  margin-left: -32px;
  background: var(--sun);
  box-shadow: 0 0 0 6px rgba(255, 243, 196, .45), 0 0 0 14px rgba(255, 243, 196, .18), 0 0 60px 20px rgba(255, 220, 130, .55);
  border-radius: 2px;
  z-index: 1;
  animation: sun-pulse 5s ease-in-out infinite, sun-arc 140s ease-in-out infinite;
}

@keyframes sun-arc {
  0%, 100% { transform: translateX(-38%) translateY(10px); opacity: 1; }
  25% { transform: translateX(-5%) translateY(0); opacity: 1; }
  50% { transform: translateX(34%) translateY(14px); opacity: .95; }
  75% { transform: translateX(40%) translateY(36px); opacity: .45; filter: brightness(.75); }
}

@keyframes sun-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255,243,196,.45), 0 0 0 14px rgba(255,243,196,.18), 0 0 60px 20px rgba(255,220,130,.55); }
  50% { box-shadow: 0 0 0 8px rgba(255,243,196,.5), 0 0 0 18px rgba(255,243,196,.22), 0 0 70px 26px rgba(255,220,130,.65); }
}

/* pixel clouds — sprite painted by JS box-shadow onto .px.
   Drift via transform (GPU-composited) — animating `left` re-layouts the
   box-shadow sprite every frame and flickers. */
.cloud {
  position: absolute;
  left: -140px;
  opacity: .9;
  will-change: transform;
  backface-visibility: hidden;
}
.cloud .px { display: block; image-rendering: pixelated; }
.cloud-1 { top: 12%; animation: cloud-drift 70s linear infinite, cloud-bob 9s ease-in-out infinite; }
.cloud-2 { top: 26%; animation: cloud-drift 95s -22s linear infinite, cloud-bob 11s -3s ease-in-out infinite; }
.cloud-3 { top: 5%; animation: cloud-drift 110s -64s linear infinite, cloud-bob 8s -1s ease-in-out infinite; }

@keyframes cloud-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: 6px; }
}

@keyframes cloud-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(100vw + 180px), 0, 0); }
}

.treeline {
  position: absolute;
  left: 0; right: 0;
  top: 52%;
  height: 64px;
  transform: translateY(-100%);
  background:
    radial-gradient(34px 42px at 8% 100%, var(--tree-dk) 60%, transparent 61%),
    radial-gradient(46px 60px at 20% 100%, var(--tree) 60%, transparent 61%),
    radial-gradient(36px 44px at 33% 100%, var(--tree-dk) 60%, transparent 61%),
    radial-gradient(52px 64px at 49% 100%, var(--tree) 60%, transparent 61%),
    radial-gradient(38px 46px at 63% 100%, var(--tree-dk) 60%, transparent 61%),
    radial-gradient(50px 58px at 78% 100%, var(--tree) 60%, transparent 61%),
    radial-gradient(40px 50px at 93% 100%, var(--tree-dk) 60%, transparent 61%);
}

.water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: 52%;
  overflow: hidden;
}

.shimmer {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.10) 0 2px, transparent 2px 13px);
  animation: shimmer-roll 7s linear infinite;
  opacity: .5;
}

@keyframes shimmer-roll {
  from { background-position: 0 0; }
  to { background-position: 0 26px; }
}

.sun-glints {
  position: absolute;
  top: 0; bottom: 30%;
  right: 8%; width: 22%;
  background:
    repeating-linear-gradient(180deg, rgba(255, 214, 140, .45) 0 3px, transparent 3px 16px);
  filter: blur(.4px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent);
  animation: glint-wobble 3.4s ease-in-out infinite;
}

@keyframes glint-wobble {
  0%, 100% { transform: skewX(-3deg); opacity: .8; }
  50% { transform: skewX(4deg); opacity: 1; }
}

.reeds-right {
  position: absolute;
  right: -6px; bottom: -4px;
  width: 90px; height: 110px;
  z-index: 3;
  background:
    linear-gradient(80deg, transparent 47%, #214a2a 47% 53%, transparent 53%),
    linear-gradient(100deg, transparent 47%, #2c5e36 47% 53%, transparent 53%),
    linear-gradient(88deg, transparent 48%, #1a3a21 48% 52%, transparent 52%);
  transform-origin: bottom center;
  animation: reed-sway 4.5s ease-in-out infinite;
}

.reeds-left {
  position: absolute;
  left: 34%; bottom: -2px;
  width: 70px; height: 88px;
  z-index: 3;
  opacity: .85;
  background:
    linear-gradient(100deg, transparent 47%, #214a2a 47% 53%, transparent 53%),
    linear-gradient(78deg, transparent 47%, #2c5e36 47% 53%, transparent 53%);
  transform-origin: bottom center;
  animation: reed-sway 5.2s -1.2s ease-in-out infinite reverse;
}

/* -------- pond ambience -------- */

.pond-life {
  position: absolute;
  left: 0; right: 0;
  top: 54%; bottom: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.pond-fish {
  position: absolute;
  width: 22px; height: 10px;
  border-radius: 50% 40% 40% 50%;
  background: rgba(20, 55, 65, .55);
  box-shadow: inset -3px 0 0 rgba(255,255,255,.12);
  opacity: .7;
}

.pond-fish::after {
  content: "";
  position: absolute;
  right: -7px; top: 1px;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid rgba(20, 55, 65, .55);
}

.pf-1 { top: 18%; animation: pond-swim 22s linear infinite; }
.pf-2 { top: 42%; width: 16px; height: 8px; opacity: .5; animation: pond-swim 31s -8s linear infinite reverse; }
.pf-3 { top: 62%; width: 26px; height: 11px; opacity: .45; animation: pond-swim 38s -14s linear infinite; }
.pf-4 { top: 28%; width: 14px; height: 7px; opacity: .55; animation: pond-swim 26s -20s linear infinite reverse; }

@keyframes pond-swim {
  0% { transform: translateX(-40px) translateY(0); }
  25% { transform: translateX(28vw) translateY(3px); }
  50% { transform: translateX(58vw) translateY(-2px); }
  75% { transform: translateX(82vw) translateY(2px); }
  100% { transform: translateX(calc(100% + 60px)) translateY(0); }
}

.fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  animation: firefly-phase 140s ease-in-out infinite;
}

@keyframes firefly-phase {
  0%, 58%, 100% { opacity: 0; }
  72%, 88% { opacity: 1; }
}

.fireflies i {
  position: absolute;
  width: 4px; height: 4px;
  background: #e8ff9a;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(220, 255, 140, .8);
  animation: firefly-blink 2.4s ease-in-out infinite;
}

.fireflies i:nth-child(1) { left: 22%; top: 58%; animation-delay: 0s; }
.fireflies i:nth-child(2) { left: 48%; top: 66%; animation-delay: .6s; }
.fireflies i:nth-child(3) { left: 71%; top: 60%; animation-delay: 1.1s; }
.fireflies i:nth-child(4) { left: 36%; top: 72%; animation-delay: 1.8s; }
.fireflies i:nth-child(5) { left: 84%; top: 68%; animation-delay: .3s; }
.fireflies i:nth-child(6) { left: 58%; top: 78%; animation-delay: 2.1s; }

@keyframes firefly-blink {
  0%, 100% { opacity: .15; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* bait prep — visible while image models render */
.bait-prep {
  position: absolute;
  left: 19%;
  top: calc(52% - 58px);
  width: 48px; height: 48px;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity .35s;
}

.scene.is-rigging .bait-prep {
  opacity: 1;
  animation: prep-bob 1.1s ease-in-out infinite;
}

.scene.is-rigging:not(.is-casting) .angler-wrap {
  animation: angler-rummage .85s ease-in-out infinite alternate;
}

@keyframes angler-rummage {
  from { transform: translateY(-100%) translateX(0) rotate(0); }
  to { transform: translateY(-100%) translateX(-4px) rotate(-3deg); }
}

@keyframes prep-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.prep-spark {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--gold);
  animation: prep-spark 1.2s ease-in-out infinite;
}

.prep-spark:nth-child(1) { left: 6px; top: 8px; }
.prep-spark:nth-child(2) { left: 22px; top: 2px; animation-delay: .35s; }
.prep-spark:nth-child(3) { left: 34px; top: 16px; animation-delay: .7s; }

@keyframes prep-spark {
  0%, 100% { opacity: .2; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.1); }
}

.scene.is-rigging .shimmer { animation-duration: 4s; opacity: .65; }
.scene.is-rigging .pond-fish { animation-duration: 14s; opacity: .85; }

@keyframes reed-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(3deg); }
}

/* -------- dock -------- */

.dock {
  position: absolute;
  left: 0;
  top: calc(52% - 14px);
  width: 38%;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, #8a5a2e 0 26px, #7a4a24 26px 28px),
    #8a5a2e;
  border-top: 3px solid #a9742f;
  border-bottom: 4px solid #3a2410;
  box-shadow: 0 6px 8px rgba(0,0,0,.35);
}

.dock-post {
  position: absolute;
  top: 12px;
  width: 12px; height: 64px;
  background: linear-gradient(90deg, #6b3f1d, #4a2c14);
  border: 2px solid #2c1a0a;
}
.dock-post-1 { left: 18%; }
.dock-post-2 { left: 86%; }

/* -------- angler (pixel sprite painted by JS) -------- */

.angler-wrap {
  position: absolute;
  left: 24%;
  top: calc(52% - 14px);
  transform: translateY(-100%);
  width: 0; height: 0;
}

.angler-wrap .px {
  position: absolute;
  bottom: 0; left: 0;
  image-rendering: pixelated;
}

.rod {
  position: absolute;
  left: 44px;
  bottom: 38px;
  width: 4px;
  height: 78px;
  background: linear-gradient(180deg, #d9b88a, #6b3f1d);
  border-radius: 2px;
  transform-origin: bottom left;
  transform: rotate(52deg);
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
  box-shadow: 1px 0 0 rgba(0,0,0,.4);
}

.scene.is-casting .rod { animation: rod-cast 1s ease-in-out; }
.scene.is-waiting .rod, .scene.is-fishon .rod { transform: rotate(58deg); }
.scene.is-fishon .rod { animation: rod-strain .5s ease-in-out infinite alternate; }

@keyframes rod-cast {
  0% { transform: rotate(52deg); }
  30% { transform: rotate(-18deg); }
  62% { transform: rotate(74deg); }
  100% { transform: rotate(58deg); }
}

@keyframes rod-strain {
  from { transform: rotate(56deg); }
  to { transform: rotate(66deg); }
}

.scene.is-casting .angler-wrap { animation: angler-lean 1s ease-in-out; }

@keyframes angler-lean {
  0%, 100% { transform: translateY(-100%) translateX(0); }
  30% { transform: translateY(-100%) translateX(-5px); }
  62% { transform: translateY(-100%) translateX(6px); }
}

/* -------- line & bobber -------- */

.fline {
  position: absolute;
  left: calc(24% + 105px);
  top: calc(52% - 95px);
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
  transform-origin: top center;
  transition: height .5s ease .35s;
}

.scene.is-waiting .fline, .scene.is-bite .fline { height: 95px; animation: line-sway 2.6s ease-in-out infinite; }
.scene.is-fishon .fline { height: 100px; animation: line-tense .35s ease-in-out infinite alternate; }

@keyframes line-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

@keyframes line-tense {
  from { transform: rotate(-3deg) scaleY(.99); }
  to { transform: rotate(3deg) scaleY(1.01); }
}

.bobber {
  position: absolute;
  left: calc(24% + 105px - 7px);
  top: calc(52% - 6px);
  width: 16px; height: 16px;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #e84d3d 0 52%, #fdf6e3 52%);
  border: 2px solid #5c1813;
  opacity: 0;
  transform: translateY(-90px) scale(.6);
}

.scene.is-waiting .bobber, .scene.is-bite .bobber {
  opacity: 1;
  transform: none;
  transition: transform .5s cubic-bezier(.5, 1.8, .6, 1) .3s, opacity .2s .3s;
  animation: bobber-bob 2.2s ease-in-out .9s infinite;
}

.scene.is-bite .bobber { animation: bobber-yank .5s ease-in-out infinite; }

@keyframes bobber-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px) rotate(-4deg); }
}

@keyframes bobber-yank {
  0%, 100% { transform: translateY(2px); }
  50% { transform: translateY(13px) rotate(8deg); }
}

/* -------- bait sprite -------- */

.bait-sprite {
  position: absolute;
  left: calc(24% + 105px - 26px);
  top: calc(52% + 10px);
  width: 56px; height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
  filter: brightness(.8) saturate(.85);
}

.scene.is-waiting .bait-sprite.visible, .scene.is-bite .bait-sprite.visible {
  opacity: .92;
  animation: bait-dunk 1s cubic-bezier(.4, 1.5, .6, 1) both;
}

/* bait stays hooked through the whole fight, tugged by the fish */
.scene.is-fishon .bait-sprite.visible {
  opacity: .92;
  animation: bait-tug .5s ease-in-out infinite alternate;
}

@keyframes bait-tug {
  from { transform: translate(-2px, 0) rotate(-4deg); }
  to { transform: translate(3px, 4px) rotate(5deg); }
}

@keyframes bait-dunk {
  0% { transform: translateY(-110px) scale(.4) rotate(-20deg); opacity: 0; }
  55% { transform: translateY(4px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: .92; }
}

/* bait rejected — bounces off the water */
.scene.is-reject .bait-sprite.visible {
  opacity: 1;
  filter: none;
  animation: bait-bounce 1.3s cubic-bezier(.5, -.3, .6, 1.4) both;
}

@keyframes bait-bounce {
  0% { transform: translateY(-110px) rotate(0); opacity: 0; }
  40% { transform: translateY(0) rotate(14deg); opacity: 1; }
  70% { transform: translateY(-46px) rotate(160deg); }
  100% { transform: translateY(-6px) rotate(355deg) scale(.9); opacity: 0; }
}

/* -------- bite ! -------- */

.exclaim {
  position: absolute;
  left: calc(24% + 105px - 18px);
  top: calc(52% - 86px);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  font-family: "Press Start 2P", monospace;
  font-size: 22px;
  color: #fff;
  background: #e84d3d;
  border: 3px solid #5c1813;
  border-radius: 8px 8px 8px 2px;
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  z-index: 5;
}

.scene.is-bite .exclaim {
  animation: exclaim-pop .45s cubic-bezier(.2, 2.2, .4, 1) both, exclaim-buzz .2s .45s linear 4;
  opacity: 1;
}

@keyframes exclaim-pop {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes exclaim-buzz {
  0%, 100% { transform: scale(1) translateX(0); }
  25% { transform: scale(1.05) translateX(-2px); }
  75% { transform: scale(1.05) translateX(2px); }
}

.scene.is-bite { animation: scene-shake .4s linear 2; }

@keyframes scene-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, -1px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 2px); }
}

/* -------- fish window (reel phase) -------- */

.fish-window {
  position: absolute;
  right: 7%;
  bottom: 6%;
  width: clamp(180px, 28%, 270px);
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 230, 170, .5);
  box-shadow: 0 0 0 4px rgba(7, 48, 60, .8), 0 0 40px rgba(0,0,0,.5), inset 0 0 30px rgba(0, 20, 30, .6);
  opacity: 0;
  transform: scale(.3);
  pointer-events: none;
  z-index: 4;
}

.fish-window img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.32);
  image-rendering: pixelated;
  animation: fish-thrash 1.1s ease-in-out infinite;
}

.scene.is-fishon .fish-window {
  opacity: 1;
  transform: scale(1);
  transition: transform .55s cubic-bezier(.2, 1.8, .4, 1), opacity .3s;
}

@keyframes fish-thrash {
  0%, 100% { transform: scale(1.32) translate(0, 0) rotate(0); }
  25% { transform: scale(1.32) translate(-7px, 3px) rotate(-3deg); }
  60% { transform: scale(1.32) translate(8px, -4px) rotate(3deg); }
  80% { transform: scale(1.32) translate(-3px, -2px) rotate(-1deg); }
}

/* -------- catch / lose moments -------- */

.catch-fish {
  position: absolute;
  left: calc(24% + 80px);
  top: 52%;
  width: 90px; height: 90px;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

.scene.is-caught .catch-fish {
  animation: catch-arc 1.5s cubic-bezier(.3, .1, .6, 1) both;
}

@keyframes catch-arc {
  0% { transform: translate(0, 10px) rotate(0) scale(.5); opacity: 0; }
  18% { opacity: 1; }
  45% { transform: translate(-50px, -150px) rotate(-160deg) scale(1.1); }
  75% { transform: translate(-110px, -90px) rotate(-320deg); opacity: 1; }
  100% { transform: translate(-120px, -70px) rotate(-360deg) scale(1); opacity: 1; }
}

.splash {
  position: absolute;
  left: calc(24% + 105px);
  top: 52%;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 5;
}

.splash i {
  position: absolute;
  width: 7px; height: 7px;
  background: #cfeef5;
  border-radius: 1px;
  opacity: 0;
}

.splash.go i {
  animation: splash-fly .8s cubic-bezier(.2, .6, .6, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes splash-fly {
  0% { transform: translate(0, 0) scale(1); opacity: .95; }
  100% { transform: translate(var(--dx, 0px), var(--dy, -60px)) scale(.3); opacity: 0; }
}

.ripples {
  position: absolute;
  left: calc(24% + 105px);
  top: calc(52% + 2px);
  pointer-events: none;
}

.ripples i {
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 8px;
  margin: -4px 0 0 -10px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
  opacity: 0;
}

.ripples.go i { animation: ripple-grow 1.6s ease-out both; }
.ripples.go i:nth-child(2) { animation-delay: .35s; }
.ripples.go i:nth-child(3) { animation-delay: .7s; }

@keyframes ripple-grow {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(5); opacity: 0; }
}

/* ============================================================
   CONTROL PANELS — chunky stardew wood
   ============================================================ */

.controls { display: flex; flex-direction: column; min-width: 0; }

.panel {
  display: none;
  flex: 1;
  padding: 18px 16px 16px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 220, 160, .12), transparent 60%),
    var(--wood);
  border: 4px solid var(--wood-edge);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--wood-hi), inset 0 0 0 6px var(--wood-lo), 0 10px 0 -4px var(--wood-edge), 0 18px 30px rgba(0,0,0,.5);
  animation: panel-in .45s cubic-bezier(.2, 1.5, .4, 1) both;
}

body.phase-bait #bait-panel,
body.phase-reel #reel-panel,
body.phase-result #result-panel { display: block; }

@keyframes panel-in {
  from { opacity: 0; transform: translateX(26px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.panel-title {
  font-family: "Press Start 2P", monospace;
  font-size: .8rem;
  margin: 0 0 14px;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--wood-edge);
}

.dialogue {
  background: var(--paper);
  border: 3px solid var(--wood-edge);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #e3d2ad, inset 0 4px 10px rgba(0,0,0,.08);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.message-log {
  height: 9.5em;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--wood-hi) transparent;
}

.message-log::-webkit-scrollbar { width: 8px; }
.message-log::-webkit-scrollbar-thumb {
  background: var(--wood-hi);
  border-radius: 4px;
}

.message-entry {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(74, 52, 32, .22);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
}

.message-entry:first-child {
  margin-top: 0;
}

.message-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.message-entry.flavor {
  color: #5a4a32;
  font-style: italic;
}

.message-entry.typing::after {
  content: "▌";
  animation: caret .8s steps(1) infinite;
}

.message {
  margin: 0;
  min-height: 4.2em;
  max-height: 9.5em;
  overflow-y: auto;
  padding-right: 6px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: var(--wood-hi) transparent;
}

.message::-webkit-scrollbar { width: 8px; }
.message::-webkit-scrollbar-thumb {
  background: var(--wood-hi);
  border-radius: 4px;
}

.message.typing::after {
  content: "▌";
  animation: caret .8s steps(1) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.input-row { display: flex; gap: 8px; }

input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--wood-edge);
  border-radius: 4px;
  box-shadow: inset 0 3px 0 rgba(0,0,0,.12);
}

input[type="text"]:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

.btn {
  font-family: "Press Start 2P", monospace;
  font-size: .62rem;
  padding: 12px 16px;
  color: #3a2410;
  background: linear-gradient(180deg, #ffe29a, var(--gold) 55%, #f0b53e);
  border: 3px solid var(--wood-edge);
  border-radius: 4px;
  box-shadow: 0 4px 0 var(--wood-edge), inset 0 2px 0 rgba(255,255,255,.5);
  cursor: pointer;
  transition: filter .1s;
}

.btn:hover { filter: brightness(1.08); }

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--wood-edge), inset 0 2px 0 rgba(255,255,255,.5);
}

.btn:disabled {
  filter: grayscale(.7) brightness(.8);
  cursor: progress;
  animation: btn-think 1s ease-in-out infinite;
}

@keyframes btn-think {
  0%, 100% { opacity: .75; }
  50% { opacity: 1; }
}

.btn-reel { background: linear-gradient(180deg, #ffb09a, #e8704d 55%, #c9502e); color: #fff; text-shadow: 0 2px 0 #5c1813; }
.btn-wide { width: 100%; margin-top: 12px; }

.char-count {
  margin-top: 6px;
  font-size: .92rem;
  color: #d9b88a;
  text-align: right;
}

.char-count.warn { color: #ff9a7a; }

/* -------- fish card -------- */

.fish-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--wood-edge);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #e3d2ad;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.fish-card img {
  width: 76px; height: 76px;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.28);
  image-rendering: pixelated;
  border: 3px solid var(--wood-edge);
  border-radius: 50%;
  background: var(--water-md);
  animation: thumb-wobble 2s ease-in-out infinite;
}

@keyframes thumb-wobble {
  0%, 100% { transform: scale(1.28) rotate(-2deg); }
  50% { transform: scale(1.28) rotate(3deg); }
}

.fish-card-info { min-width: 0; color: var(--ink); }

.fish-name {
  font-family: "Press Start 2P", monospace;
  font-size: .68rem;
  margin-bottom: 6px;
  color: #6b3f1d;
}

.fish-meta { font-weight: 700; font-size: 1rem; text-transform: capitalize; }

.fish-bait-link {
  margin-top: 4px;
  font-size: .9rem;
  font-weight: 700;
  color: #8a5a28;
  line-height: 1.3;
}

.fish-desc {
  margin-top: 5px;
  font-size: .92rem;
  line-height: 1.35;
  color: #5a4028;
}

.fish-behavior {
  margin-top: 4px;
  font-size: .9rem;
  font-style: italic;
  color: #7a5a34;
  line-height: 1.3;
}

.quality-star {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
  background: var(--q, var(--bronze));
  clip-path: polygon(50% 0%, 63% 35%, 100% 38%, 71% 60%, 82% 100%, 50% 76%, 18% 100%, 29% 60%, 0% 38%, 37% 35%);
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
}

/* -------- rhythm bar -------- */

.rhythm-label {
  font-size: .98rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
}

.rhythm-hint { font-weight: 400; color: #d9b88a; font-size: .9rem; }

.rhythm {
  position: relative;
  height: 30px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #0a2a34, #11404e);
  border: 3px solid var(--wood-edge);
  border-radius: 15px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.5);
  overflow: hidden;
}

.strike-good {
  position: absolute;
  top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(120, 200, 140, .28), rgba(80, 160, 110, .12));
  border-left: 2px solid rgba(140, 220, 160, .55);
  border-right: 2px solid rgba(140, 220, 160, .55);
}

.strike-perfect {
  position: absolute;
  top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255, 209, 102, .55), rgba(255, 209, 102, .22));
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  animation: window-glow 1.2s ease-in-out infinite;
  box-shadow: inset 0 0 10px rgba(255, 209, 102, .35);
}

.strike-perfect.hit { animation: window-flash .5s ease-out; }

.skill-line {
  min-height: 1.2em;
  margin: 4px 0 10px;
  font-size: .88rem;
  font-weight: 700;
  color: #b8e8c8;
  letter-spacing: .02em;
}

.skill-line.result-skill {
  margin-top: 8px;
  color: #d4c4a0;
}

.skill-line.perfect { color: #ffe566; }
.skill-line.good { color: #9fd4a8; }
.skill-line.miss { color: #e8a090; }

.rhythm.hit-good .strike-good { animation: good-flash .45s ease-out; }

@keyframes good-flash {
  0% { background: rgba(180, 255, 200, .55); }
  100% { background: linear-gradient(180deg, rgba(120, 200, 140, .28), rgba(80, 160, 110, .12)); }
}

@keyframes window-glow {
  0%, 100% { box-shadow: inset 0 0 8px rgba(255, 209, 102, .3); }
  50% { box-shadow: inset 0 0 16px rgba(255, 209, 102, .7); }
}

.pulse {
  position: absolute;
  top: 3px; bottom: 3px;
  left: 0;
  width: 18px;
  border-radius: 9px;
  background: radial-gradient(circle at 35% 30%, #fff5d6, #ffd166 55%, #e8964d);
  box-shadow: 0 0 10px rgba(255, 209, 102, .9);
  will-change: transform;
}

@keyframes window-flash {
  0% { background: rgba(255, 245, 214, .95); }
  100% { background: linear-gradient(180deg, rgba(255, 209, 102, .55), rgba(255, 209, 102, .22)); }
}

/* -------- result -------- */

.catch-banner {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background:
    radial-gradient(140% 100% at 50% 0%, rgba(255, 230, 150, .35), transparent 70%),
    linear-gradient(180deg, #2c5e36, #1d3322);
  border: 3px solid var(--wood-edge);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px #4a8a56;
}

.catch-banner.show { display: flex; animation: banner-pop .5s cubic-bezier(.2, 1.8, .4, 1) both; }

@keyframes banner-pop {
  from { transform: scale(.7); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.catch-banner img {
  width: 84px; height: 84px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.5));
  animation: trophy-sway 2.4s ease-in-out infinite;
}

@keyframes trophy-sway {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-4px); }
}

.banner-text {
  font-family: "Press Start 2P", monospace;
  font-size: .66rem;
  line-height: 1.7;
  color: #ffe9b0;
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
}

/* ============================================================
   AQUARIUM
   ============================================================ */

.aquarium {
  margin-top: 56px; /* sits below the fold — scroll down to visit your fish */
  animation: drop-in .7s .25s cubic-bezier(.2, 1.6, .4, 1) both;
}

.aquarium-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 6px;
}

.aquarium-tools {
  display: flex;
  gap: 8px;
  margin-right: 14px;
}

.aqua-btn {
  font-family: "Press Start 2P", monospace;
  font-size: .52rem;
  letter-spacing: .02em;
  color: #ffe9b0;
  background: var(--wood);
  border: 3px solid var(--wood-edge);
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--wood-hi), 0 4px 0 -2px var(--wood-edge);
  padding: 8px 10px;
  cursor: pointer;
}

.aqua-btn:hover { filter: brightness(1.08); }
.aqua-btn:active { transform: translateY(1px); }
.aqua-btn:disabled { opacity: .55; cursor: wait; }

.aquarium-status {
  min-height: 1.2em;
  margin: 0 14px 8px;
  font-size: .92rem;
  font-weight: 600;
  color: #d9b88a;
}

.aquarium-plaque {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: .72rem;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--wood-edge);
  background: var(--wood);
  border: 4px solid var(--wood-edge);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 0 0 3px var(--wood-hi);
  padding: 10px 18px 8px;
  margin-left: 14px;
}

.fish-tally { color: #d9b88a; margin-left: 6px; }

.tank {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(180deg, #16505e 0%, #0d3a47 55%, #082630 100%);
  border: 4px solid var(--wood-edge);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--wood-hi), 0 10px 0 -4px var(--wood-edge), 0 18px 30px rgba(0,0,0,.5);
}

.tank-light {
  position: absolute;
  top: -10%; left: 12%;
  width: 30%; height: 130%;
  background: linear-gradient(180deg, rgba(200, 240, 255, .22), transparent 75%);
  transform: skewX(-14deg);
  animation: tank-light-sway 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tank-light-sway {
  0%, 100% { transform: skewX(-14deg) translateX(0); opacity: .8; }
  50% { transform: skewX(-9deg) translateX(60px); opacity: 1; }
}

.sand {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  background:
    radial-gradient(8px 5px at 12% 30%, #c9a05c 50%, transparent 51%),
    radial-gradient(10px 6px at 34% 60%, #b88f4e 50%, transparent 51%),
    radial-gradient(9px 5px at 58% 35%, #c9a05c 50%, transparent 51%),
    radial-gradient(11px 6px at 81% 55%, #b88f4e 50%, transparent 51%),
    linear-gradient(180deg, #d9b56c, #a87f42);
  border-top: 3px solid #e8cb8a;
}

.pebbles {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 16px;
  background:
    radial-gradient(9px 8px at 9% 80%, #7a8a92 60%, transparent 61%),
    radial-gradient(7px 6px at 26% 90%, #5c6b73 60%, transparent 61%),
    radial-gradient(10px 9px at 52% 85%, #7a8a92 60%, transparent 61%),
    radial-gradient(8px 7px at 72% 95%, #5c6b73 60%, transparent 61%),
    radial-gradient(9px 8px at 91% 82%, #7a8a92 60%, transparent 61%);
}

.plant {
  position: absolute;
  bottom: 16px;
  width: 38px; height: 86px;
  background:
    radial-gradient(12px 44px at 30% 100%, #2c7a4a 60%, transparent 61%),
    radial-gradient(12px 56px at 55% 100%, #3a9a5e 60%, transparent 61%),
    radial-gradient(12px 40px at 78% 100%, #237a42 60%, transparent 61%);
  transform-origin: bottom center;
  animation: plant-sway 5s ease-in-out infinite;
}

.plant-1 { left: 6%; }
.plant-2 { left: 48%; height: 64px; animation-delay: 1.2s; }
.plant-3 { right: 8%; animation-delay: 2.1s; }

@keyframes plant-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}

.bubbles { position: absolute; inset: 0; pointer-events: none; }

.bubbles span {
  position: absolute;
  bottom: -12px;
  width: 9px; height: 9px;
  border: 2px solid rgba(220, 245, 255, .55);
  border-radius: 50%;
  animation: bubble-rise 4.5s ease-in infinite;
}

@keyframes bubble-rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translateY(-220px) translateX(8px); opacity: 0; }
}

.tank-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(220, 240, 245, .5);
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: .5px;
}

.tank-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, transparent 18%, transparent 70%, rgba(255,255,255,.06) 100%);
}

/* swimming fish */
.swimmer {
  position: absolute;
  left: 0;
  width: var(--w, 64px);
  height: var(--w, 64px);
  bottom: var(--lane, 30%);
  animation: swim-x var(--dur, 14s) linear var(--delay, 0s) infinite;
  cursor: help;
  z-index: 1;
}

.fish-wrap {
  width: 100%;
  height: 100%;
  animation: swim-face var(--dur, 14s) linear var(--delay, 0s) infinite;
}

.swimmer img {
  width: 100%; height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.35));
  animation: swim-bob calc(var(--dur, 14s) / 6) ease-in-out infinite;
}

.swimmer.new .fish-wrap {
  animation: swim-face var(--dur, 14s) linear var(--delay, 0s) infinite;
}

.swimmer.new img {
  animation: swim-bob calc(var(--dur, 14s) / 6) ease-in-out infinite, new-glow 2.5s ease-out;
}

.swimmer:hover {
  animation-play-state: paused;
  z-index: 5;
}

.swimmer:hover .fish-wrap {
  animation-play-state: paused;
}

.swimmer:hover img {
  animation: swim-wiggle 0.45s ease-in-out infinite;
}

@keyframes swim-wiggle {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-5px) rotate(4deg); }
}

@keyframes new-glow {
  0% { filter: drop-shadow(0 0 18px var(--gold)) brightness(1.6); }
  100% { filter: none; }
}

@keyframes swim-x {
  0% { transform: translateX(-90px); }
  49.9% { transform: translateX(calc(var(--tank-w, 1000px))); }
  50% { transform: translateX(calc(var(--tank-w, 1000px))); }
  99.9% { transform: translateX(-90px); }
  100% { transform: translateX(-90px); }
}

@keyframes swim-face {
  0%, 49.9% { transform: scaleX(-1); }
  50%, 100% { transform: scaleX(1); }
}

@keyframes swim-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

.swimmer .plate {
  position: absolute;
  left: 50%; top: -34px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 700;
  color: var(--cream);
  background: rgba(20, 14, 6, .9);
  border: 2px solid var(--wood-hi);
  border-radius: 4px;
  padding: 3px 8px;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
  z-index: 2;
}

.swimmer:hover .plate { opacity: 1; }

/* ============================================================
   GOALS
   ============================================================ */

.goals {
  margin-top: 28px;
  margin-bottom: 48px;
  animation: drop-in .7s .35s cubic-bezier(.2, 1.6, .4, 1) both;
}

.goals-plaque {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: .68rem;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--wood-edge);
  background: var(--wood);
  border: 4px solid var(--wood-edge);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 0 0 3px var(--wood-hi);
  padding: 10px 18px 8px;
  margin-left: 14px;
}

.goals-board {
  background: linear-gradient(180deg, #2a4a38 0%, #1a3028 100%);
  border: 4px solid var(--wood-edge);
  border-radius: 6px;
  box-shadow: inset 0 0 0 3px var(--wood-hi), 0 10px 0 -4px var(--wood-edge);
  padding: 16px 14px 18px;
}

.goals-active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 720px) {
  .goals-active { grid-template-columns: 1fr; }
}

.goal-card {
  background: linear-gradient(180deg, #f8e8c8 0%, #e8d4a8 100%);
  border: 3px solid var(--wood-edge);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #fff8e8, 0 4px 0 var(--wood-edge);
  padding: 14px 12px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2a1c10;
  transition: transform .2s, opacity .35s, filter .35s;
}

.goal-card.just-done {
  animation: goal-pop .55s cubic-bezier(.2, 1.6, .4, 1);
}

@keyframes goal-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.goal-card.done {
  background: linear-gradient(180deg, #9a9a8a 0%, #7a7a6e 100%);
  color: #4a4a42;
  box-shadow: inset 0 0 0 2px #b0b0a4, 0 2px 0 #5a5a52;
  filter: grayscale(0.85);
  opacity: 0.75;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.goals-completed-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed rgba(255, 230, 180, .25);
}

.goals-completed-wrap:empty,
.goals-completed-wrap:not(:has(.goal-card)) {
  display: none;
}

.goals-completed-label {
  font-family: "Press Start 2P", monospace;
  font-size: .5rem;
  color: #8ab89a;
  margin-bottom: 10px;
  letter-spacing: .04em;
}

.goals-completed {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.goals-completed .goal-card {
  min-height: auto;
  padding: 8px 12px;
  font-size: .82rem;
  flex: 0 1 auto;
  max-width: 100%;
}

/* float text (perfect! / scores) */
.floatie {
  position: fixed;
  z-index: 50;
  font-family: "Press Start 2P", monospace;
  font-size: .7rem;
  color: var(--gold);
  text-shadow: 0 2px 0 var(--wood-edge);
  pointer-events: none;
  animation: floatie-up 1.1s ease-out both;
}

@keyframes floatie-up {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-48px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
