:root {
  --sky-top: #ffd99a;
  --sky-bottom: #fff0cf;
  --panel: rgba(255, 252, 240, 0.82);
  --ink: #3a2a19;
  --soft-ink: #7f6246;
  --accent: #e17e2a;
  --water-top: #7fd8eb;
  --water-mid: #49b1d8;
  --water-bottom: #1f79b7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: linear-gradient(175deg, var(--sky-top), var(--sky-bottom));
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 167, 68, 0.2), transparent 38%),
    radial-gradient(circle at 84% 14%, rgba(255, 236, 153, 0.26), transparent 30%),
    radial-gradient(circle at 72% 82%, rgba(91, 168, 214, 0.24), transparent 30%);
}

.game-shell {
  width: min(920px, 100%);
  background: var(--panel);
  border: 1px solid rgba(218, 188, 149, 0.55);
  border-radius: 28px;
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow:
    0 24px 44px rgba(73, 55, 23, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.85) inset;
  position: relative;
  z-index: 1;
}

.game-header h1 {
  margin: 8px 0 4px;
  font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
  font-size: clamp(2rem, 4.3vw, 3.2rem);
  letter-spacing: 0.04em;
}

.badge {
  margin: 0;
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(225, 126, 42, 0.13);
  color: #9b4b00;
  padding: 6px 10px;
  border-radius: 999px;
}

.subtitle {
  margin: 0;
  color: var(--soft-ink);
  font-size: 15px;
}

.status-row {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.status-row p {
  margin: 0;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(225, 181, 121, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
}

.status-row strong {
  font-size: 20px;
  margin-left: 6px;
  color: #8c3f00;
}

#start-btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: "Noto Sans SC", sans-serif;
  color: #fff;
  background: linear-gradient(145deg, #ff9a3d, #f06d29);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(209, 95, 13, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

#start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(209, 95, 13, 0.32);
}

#start-btn:active {
  transform: translateY(1px);
}

.stage {
  margin-top: 18px;
}

.cat-deck {
  height: 52px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 12px;
}

.cat {
  font-size: 34px;
  transform-origin: center bottom;
  animation: cat-bob 2.2s ease-in-out infinite;
}

.rod {
  font-size: 28px;
  transform: rotate(10deg);
}

.pond {
  margin-top: 8px;
  position: relative;
  height: clamp(300px, 48vh, 420px);
  border-radius: 26px;
  overflow: hidden;
  cursor: crosshair;
  border: 2px solid rgba(52, 140, 178, 0.45);
  background:
    radial-gradient(circle at 18% 28%, rgba(170, 238, 246, 0.55), transparent 35%),
    radial-gradient(circle at 74% 68%, rgba(124, 212, 241, 0.4), transparent 30%),
    linear-gradient(180deg, var(--water-top), var(--water-mid) 55%, var(--water-bottom));
  box-shadow:
    inset 0 14px 34px rgba(255, 255, 255, 0.22),
    inset 0 -36px 48px rgba(0, 60, 108, 0.2);
}

.water-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -28deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 11px,
    transparent 11px,
    transparent 26px
  );
  animation: water-drift 8.5s linear infinite;
}

.fish {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(2, 51, 86, 0.25));
}

.line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
  opacity: 0;
}

.hook {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -14px) scale(0.85);
  opacity: 0;
  font-size: 23px;
  filter: drop-shadow(0 4px 4px rgba(9, 68, 102, 0.35));
}

.pond.casting .line,
.pond.casting .hook {
  opacity: 1;
}

.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.86);
  transform: translate(-50%, -50%);
  animation: ripple 460ms ease-out forwards;
  pointer-events: none;
}

.hint {
  margin: 12px 0 0;
  text-align: center;
  color: #664c31;
  font-weight: 600;
  min-height: 26px;
}

.footnote {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: #7c6145;
}

.footnote a {
  color: #9c4f10;
  text-decoration-thickness: 1px;
}

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

@keyframes water-drift {
  from {
    transform: translateX(-42px);
  }
  to {
    transform: translateX(42px);
  }
}

@keyframes ripple {
  from {
    opacity: 0.9;
    width: 12px;
    height: 12px;
  }
  to {
    opacity: 0;
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 760px) {
  .game-shell {
    padding: 16px;
    border-radius: 22px;
  }

  .status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-row p,
  #start-btn {
    font-size: 14px;
  }

  .footnote {
    flex-direction: column;
    align-items: flex-start;
  }
}
