/* =========================================================
   摸鱼背单词 · 极简版
   深色池塘 / 四个席位 / 一张单词卡
   ========================================================= */

* { box-sizing: border-box; }

:root {
  --bg-0: #041217;
  --bg-1: #071c22;
  --panel: rgba(8, 31, 37, 0.66);
  --panel-solid: #082028;
  --line: rgba(151, 222, 218, 0.14);
  --line-strong: rgba(151, 222, 218, 0.28);
  --ink: #e8f8f4;
  --muted: #8fb0b2;
  --mint: #63e6be;
  --mint-deep: #2dd4bf;
  --amber: #ffd166;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --radius: 16px;
}

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 12% -12%, rgba(24, 122, 112, 0.28), transparent 62%),
    radial-gradient(760px 520px at 96% -4%, rgba(28, 92, 148, 0.2), transparent 60%),
    linear-gradient(180deg, #06191f 0%, #041116 55%, #030c10 100%);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.35;
  z-index: 0;
}

button { font-family: inherit; }

.app {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: 100dvh;
  margin: 0 auto;
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: linear-gradient(145deg, rgba(99, 230, 190, 0.2), rgba(56, 189, 248, 0.07));
  border: 1px solid rgba(99, 230, 190, 0.26);
  box-shadow: 0 10px 26px -10px rgba(99, 230, 190, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.brand-text h1 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.brand-text p {
  margin: 2px 0 0;
  font-size: 10.5px;
  letter-spacing: 2.5px;
  color: var(--muted);
}

.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 7px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  justify-self: center;
  transition: border-color 0.25s, background 0.25s;
}

.identity.occupied {
  border-color: rgba(99, 230, 190, 0.28);
  background: rgba(99, 230, 190, 0.055);
}

.identity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(160, 190, 190, 0.5);
  flex: none;
}

.identity.occupied .identity-dot {
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.identity-text b { color: var(--ink); font-weight: 700; }
.identity-text .sep { opacity: 0.4; margin: 0 5px; }

.switch-btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(99, 230, 190, 0.12);
  color: var(--mint);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.switch-btn:hover { background: rgba(99, 230, 190, 0.2); }
.switch-btn:active { transform: scale(0.96); }

.top-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.off { opacity: 0.55; }

.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 9px 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.book-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }

.badge {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(99, 230, 190, 0.16);
  color: var(--mint);
  font-size: 10.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 排行榜 ---------------- */
.boards {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  flex: 0 0 auto;
}

.board {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.board h2 {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  white-space: nowrap;
}

.board-list {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11.5px;
  white-space: nowrap;
}

.board-list .rank {
  width: 13px;
  flex: none;
  text-align: center;
  font-size: 9.5px;
  color: rgba(160, 190, 190, 0.6);
}

.board-list li.top1 .rank { color: var(--amber); font-weight: 800; }

.board-list .dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--seat);
  box-shadow: 0 0 7px var(--seat);
}

.board-list .name {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c9e3e0;
}

.board-list li.mine .name { color: var(--mint); font-weight: 700; }

.board-list .num {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pat-king {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  background: rgba(255, 209, 102, 0.055);
  color: #f2d792;
  font-size: 10.5px;
  white-space: nowrap;
}

/* ---------------- 池塘 ---------------- */
.pond {
  position: relative;
  flex: 1;
  min-height: 300px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(130, 235, 225, 0.17);
  background: radial-gradient(130% 90% at 50% 0%, #0d3742 0%, #082a33 44%, #061a20 100%);
  box-shadow:
    inset 0 -50px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 70px -40px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

.stars {
  position: absolute;
  inset: 0 0 46% 0;
  background-image:
    radial-gradient(1px 1px at 8% 22%, rgba(255, 255, 255, 0.75), transparent 65%),
    radial-gradient(1px 1px at 19% 58%, rgba(255, 255, 255, 0.5), transparent 65%),
    radial-gradient(1.4px 1.4px at 31% 14%, rgba(200, 255, 245, 0.75), transparent 65%),
    radial-gradient(1px 1px at 44% 42%, rgba(255, 255, 255, 0.45), transparent 65%),
    radial-gradient(1px 1px at 56% 18%, rgba(255, 255, 255, 0.7), transparent 65%),
    radial-gradient(1.6px 1.6px at 68% 36%, rgba(255, 255, 255, 0.55), transparent 65%),
    radial-gradient(1px 1px at 79% 12%, rgba(190, 240, 255, 0.7), transparent 65%),
    radial-gradient(1px 1px at 88% 48%, rgba(255, 255, 255, 0.5), transparent 65%),
    radial-gradient(1px 1px at 37% 70%, rgba(255, 255, 255, 0.3), transparent 65%),
    radial-gradient(1px 1px at 73% 64%, rgba(255, 255, 255, 0.28), transparent 65%);
  opacity: 0.8;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.moon {
  position: absolute;
  top: 26px;
  right: 38px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fffdf2 0%, #ffeebd 38%, #e9c980 72%, rgba(233, 201, 128, 0) 74%);
  box-shadow: 0 0 34px 8px rgba(255, 235, 180, 0.22), 0 0 90px 30px rgba(255, 235, 180, 0.08);
  opacity: 0.9;
}

.water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56%;
  background: linear-gradient(180deg, #0b3a44 0%, #082a32 38%, #051a20 100%);
  z-index: 1;
}

.wave {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 74px;
  top: -36px;
  display: block;
}

.wave-1 {
  fill: #0f4a55;
  opacity: 0.55;
  animation: waveShift 9s ease-in-out infinite alternate;
}

.wave-2 {
  fill: #0d3f49;
  opacity: 0.8;
  top: -24px;
  animation: waveShift 7s ease-in-out infinite alternate-reverse;
}

.wave-3 {
  fill: #0a333c;
  top: -12px;
  animation: waveShift 5.5s ease-in-out infinite alternate;
}

.water-shimmer {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    100deg,
    transparent 0 46px,
    rgba(150, 245, 230, 0.035) 46px 47px,
    transparent 47px 96px
  );
  animation: shimmer 12s linear infinite;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 60%);
}

.ambient { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.swim {
  position: absolute;
  opacity: 0.16;
  filter: blur(0.3px);
  animation: swim linear infinite;
}

.s1 { top: 60%; left: -8%; font-size: 21px; animation-duration: 36s; animation-delay: -4s; }
.s2 { top: 74%; left: -8%; font-size: 16px; animation-duration: 48s; animation-delay: -22s; animation-direction: reverse; }
.s3 { top: 84%; left: -8%; font-size: 26px; animation-duration: 56s; animation-delay: -12s; }
.s4 { top: 66%; left: -8%; font-size: 15px; animation-duration: 42s; animation-delay: -30s; animation-direction: reverse; }

.lily {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #25705f 0%, #14473f 55%, #0b2f2b 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(140, 220, 190, 0.08);
  opacity: 0.65;
}

.lily::after {
  content: "";
  position: absolute;
  right: -4%;
  top: 44%;
  width: 30%;
  height: 34%;
  background: #0a2b31;
  transform: rotate(18deg);
  border-radius: 40% 60% 50% 50%;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.lily-1 { width: 104px; height: 38px; left: 6%; bottom: 15%; transform: rotate(-9deg); }
.lily-2 { width: 70px; height: 27px; right: 9%; bottom: 10%; transform: rotate(7deg); opacity: 0.5; }

.pond-center {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  text-align: center;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}

.pond.is-casting .pond-center,
.pond.has-card .pond-center {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.pond-kicker {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 4.5px;
  color: rgba(158, 226, 220, 0.42);
}

.pond-title {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 4px 34px rgba(99, 230, 190, 0.22);
}

.pond-hint {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.cast-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #8bf5ce 0%, #2dd4bf 52%, #14b8a6 100%);
  color: #032621;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 3px;
  cursor: pointer;
  box-shadow:
    0 18px 44px -14px rgba(45, 212, 191, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s;
}

.cast-btn::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  border: 1px solid rgba(99, 230, 190, 0.34);
  animation: pulseRing 2.6s ease-out infinite;
  pointer-events: none;
}

.cast-btn:hover { transform: translateY(-2px) scale(1.015); }
.cast-btn:active { transform: scale(0.98); }
.cast-btn:focus-visible { outline: 3px solid rgba(99, 230, 190, 0.5); outline-offset: 4px; }

.cast-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 1.5px;
  padding: 12px 28px;
  box-shadow: none;
  border-color: var(--line-strong);
}

.cast-btn.secondary::after { display: none; }

.cast-emoji { font-size: 22px; }

.cast-tip {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(160, 200, 198, 0.42);
}

/* ---------------- 抛竿动画 ---------------- */
.casting {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
  pointer-events: none;
}

.pond.is-casting .casting { display: block; }

.fishing-line {
  position: absolute;
  left: 50%;
  top: -12px;
  width: 1.5px;
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.42));
  transform-origin: top center;
  animation: lineFly 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.bobber {
  position: absolute;
  left: calc(50% - 7px);
  top: 50%;
  width: 14px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6b6b 0 50%, #f8fafc 50% 100%);
  box-shadow: 0 0 16px rgba(255, 107, 107, 0.55);
  animation:
    bobberDrop 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both,
    bobberBob 1.7s 1s ease-in-out infinite;
}

.bobber span {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
}

.ripple {
  position: absolute;
  left: 50%;
  top: 59%;
  width: 64px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(140, 240, 220, 0.5);
  transform: translate(-50%, -50%);
  animation: rippleOut 2.1s ease-out infinite;
  opacity: 0;
}

.r2 { animation-delay: 0.55s; }
.r3 { animation-delay: 1.1s; }

.casting-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19%;
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #c9fff2;
  text-shadow: 0 0 30px rgba(99, 230, 190, 0.4);
}

.casting-sub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15%;
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}

.cast-progress {
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 170px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.cast-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #63e6be, #38bdf8);
  animation: castProgress 3s linear forwards;
}

/* ---------------- 单词卡 ---------------- */
.card-layer {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.catch-card {
  position: relative;
  pointer-events: auto;
  width: min(530px, 95%);
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 24px 18px;
  border-radius: 22px;
  border: 1px solid rgba(130, 235, 220, 0.25);
  background: linear-gradient(165deg, rgba(13, 45, 52, 0.985), rgba(6, 24, 29, 0.995));
  box-shadow:
    0 34px 90px -22px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: cardRise 0.55s cubic-bezier(0.18, 0.9, 0.28, 1.12) both;
  scrollbar-width: thin;
}

.catch-card::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -60%;
  width: 140%;
  height: 120%;
  background: radial-gradient(58% 58% at 50% 0%, rgba(99, 230, 190, 0.16), transparent 70%);
  pointer-events: none;
}

.catch-card.rare {
  border-color: rgba(139, 184, 255, 0.42);
  box-shadow:
    0 34px 90px -22px rgba(0, 0, 0, 0.95),
    0 0 46px -12px rgba(99, 150, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.catch-card.epic {
  border-color: rgba(255, 212, 121, 0.55);
  box-shadow:
    0 34px 90px -22px rgba(0, 0, 0, 0.95),
    0 0 56px -10px rgba(255, 190, 80, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.catch-card.epic::before {
  background: radial-gradient(58% 58% at 50% 0%, rgba(255, 204, 110, 0.2), transparent 70%);
}

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.fish-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 0 14px currentColor);
  animation: fishBounce 2.4s ease-in-out infinite;
}

.fish-name {
  font-size: 13px;
  font-weight: 700;
  color: #dcf8f1;
}

.source-tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(139, 184, 255, 0.28);
  background: rgba(139, 184, 255, 0.1);
  color: #a9c8ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

.rarity-tag {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--r-color, #9fe8d2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.word-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.word {
  margin: 0;
  font-family: "Segoe UI", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(34px, 4.3vw, 46px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: #f2fffc;
  text-shadow: 0 0 34px rgba(99, 230, 190, 0.2);
  overflow-wrap: anywhere;
}

.speak {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 230, 190, 0.28);
  background: rgba(99, 230, 190, 0.1);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.speak:hover { background: rgba(99, 230, 190, 0.2); }
.speak:active { transform: scale(0.92); }

.phon-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  font-size: 13.5px;
  color: #9fc4c4;
}

.phon { letter-spacing: 0.3px; }

.pos {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(99, 230, 190, 0.12);
  color: var(--mint);
  font-size: 10.5px;
  font-weight: 700;
}

.meaning {
  font-size: 15px;
  font-weight: 700;
  color: #eafff9;
}

.example {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #dff5f0;
}

.example em {
  font-style: normal;
  color: var(--amber);
  background: linear-gradient(transparent 62%, rgba(255, 209, 102, 0.18) 62%);
  padding: 0 1px;
}

.example-zh {
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.flavor {
  position: relative;
  z-index: 1;
  margin-top: 11px;
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 2px solid rgba(99, 230, 190, 0.45);
  background: rgba(99, 230, 190, 0.055);
  font-size: 12.5px;
  font-style: italic;
  color: #b9ded8;
}

.card-hotkey {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: rgba(160, 200, 198, 0.42);
}

.card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.catch-btn {
  flex: 1;
  padding: 13px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #8bf5ce, #2dd4bf);
  color: #032621;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 4px;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(45, 212, 191, 0.7);
  transition: transform 0.15s, filter 0.15s;
}

.catch-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.catch-btn:active { transform: scale(0.99); }
.catch-btn:disabled { filter: saturate(0.5) brightness(0.75); cursor: wait; transform: none; }

.catch-btn.soft {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.junk-title {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
}

.catch-card.junk .fish-icon { animation: wobble 2.2s ease-in-out infinite; }
.catch-card.junk .flavor { font-style: normal; }

/* ---------------- 别人的鱼：蹭摸 ---------------- */
.hooks {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(330px, 78%);
}

.hook {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px 8px 11px;
  border-radius: 12px;
  border: 1px solid rgba(130, 235, 220, 0.2);
  background: rgba(5, 23, 28, 0.92);
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  animation: hookIn 0.32s ease-out both;
}

.hook-fish { font-size: 20px; flex: none; }

.hook-text {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

.hook-text b { color: #eafff9; }
.hook-word { color: var(--amber); font-weight: 800; font-size: 11.5px; }

.pat-mini {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(99, 230, 190, 0.4);
  background: rgba(99, 230, 190, 0.1);
  color: var(--mint);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.pat-mini:hover { background: rgba(99, 230, 190, 0.2); }

.hook-close {
  flex: none;
  border: 0;
  background: none;
  color: rgba(160, 200, 198, 0.5);
  font-size: 11px;
  padding: 2px 1px;
  cursor: pointer;
}

.splash-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #d6fff4 0%, #63e6be 70%);
  box-shadow: 0 0 8px rgba(99, 230, 190, 0.8);
  animation: sparkFly 0.8s ease-out forwards;
}

.pond-caption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 5;
  display: flex;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: rgba(150, 195, 192, 0.46);
  pointer-events: none;
}

#connText { color: rgba(150, 195, 192, 0.6); }
#connText.live { color: #6ee7b7; }
#connText.dead { color: #fca5a5; }

/* ---------------- 席位 ---------------- */
.seats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 0 0 auto;
}

.seat {
  position: relative;
  min-height: 100px;
  padding: 10px 14px 9px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.013));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s;
}

.seat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--seat), transparent);
  opacity: 0.7;
}

.seat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--seat) 55%, transparent);
  box-shadow: 0 16px 34px -20px var(--seat);
}

.seat:active { transform: translateY(-1px) scale(0.995); }

.seat.mine {
  border-color: var(--seat);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--seat) 15%, transparent), rgba(255, 255, 255, 0.015));
  box-shadow:
    0 0 0 1px var(--seat),
    0 18px 40px -22px var(--seat);
}

.seat:focus-visible { outline: 2px solid var(--seat); outline-offset: 3px; }

.seat-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.seat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seat);
  box-shadow: 0 0 8px var(--seat);
  flex: none;
}

.seat-online {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  letter-spacing: 0.5px;
  color: #7fd8b4;
  opacity: 0;
  transition: opacity 0.2s;
}

.seat.is-online .seat-online { opacity: 1; }

.seat-online::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.seat-name {
  margin-top: 1px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.seat-stats {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 3px;
}

.seat-stats .stat { display: flex; align-items: baseline; gap: 4px; }

.seat-stats .k {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.seat-stats b {
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.seat-cta {
  position: absolute;
  right: 12px;
  bottom: 9px;
  font-size: 8.5px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.26);
  transition: color 0.2s;
}

.seat.mine .seat-cta { color: var(--seat); }

.seat.picking { animation: seatPulse 1.1s ease-in-out infinite; }

.seat.patted { animation: seatWobble 0.6s ease-in-out; }

.seat.bump .seat-stats b { animation: countBump 0.55s cubic-bezier(0.2, 1.4, 0.4, 1); }

.pat-bubble {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #bff5e4;
  text-shadow: 0 0 10px rgba(99, 230, 190, 0.6);
  pointer-events: none;
  animation: patFloat 1.2s ease-out forwards;
}

/* ---------------- 脚注 ---------------- */
.foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-bottom: 1px;
  font-size: 9.5px;
  letter-spacing: 0.6px;
  color: rgba(150, 190, 188, 0.4);
}

.foot-dot { opacity: 0.45; }

/* ---------------- 单词本抽屉 ---------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 8, 10, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  background: linear-gradient(180deg, #082028 0%, #05161b 100%);
  border-left: 1px solid rgba(130, 235, 220, 0.18);
  box-shadow: -34px 0 90px rgba(0, 0, 0, 0.65);
  transform: translateX(104%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer.open { transform: none; }

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0;
  font-size: 9px;
  letter-spacing: 4px;
  color: rgba(99, 230, 190, 0.55);
}

.drawer-head h2 {
  margin: 5px 0 0;
  font-size: 23px;
  letter-spacing: 1px;
}

.drawer-seat {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.close-btn { width: 34px; height: 34px; font-size: 14px; }

.book-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  flex: 0 0 auto;
}

.book-stats .stat {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.book-stats b {
  display: block;
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--mint);
}

.book-stats span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: 1px;
  color: var(--muted);
}

.book-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 12px -4px 0;
  padding: 0 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 230, 190, 0.3) transparent;
}

.book-list::-webkit-scrollbar { width: 5px; }
.book-list::-webkit-scrollbar-thumb { background: rgba(99, 230, 190, 0.25); border-radius: 99px; }

.book-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 10px;
  padding: 11px 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.075);
}

.book-item .w {
  grid-column: 1;
  font-size: 17px;
  font-weight: 800;
  color: #f0fffb;
  letter-spacing: -0.2px;
  overflow-wrap: anywhere;
}

.book-item .t {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 9.5px;
  color: rgba(160, 195, 192, 0.45);
  white-space: nowrap;
}

.book-item .m {
  grid-column: 1 / -1;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
}

.book-empty {
  padding: 46px 10px;
  text-align: center;
  color: var(--muted);
}

.book-empty .big { font-size: 38px; opacity: 0.5; }
.book-empty p { margin: 10px 0 0; font-size: 12px; line-height: 1.7; }

.drawer-foot {
  flex: 0 0 auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.export-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(99, 230, 190, 0.3);
  background: linear-gradient(135deg, rgba(99, 230, 190, 0.2), rgba(45, 212, 191, 0.1));
  color: var(--mint);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
}

.export-btn:hover { background: linear-gradient(135deg, rgba(99, 230, 190, 0.3), rgba(45, 212, 191, 0.16)); }
.export-btn:disabled { opacity: 0.4; cursor: default; }

.drawer-foot p {
  margin: 7px 0 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.4px;
  color: rgba(150, 190, 188, 0.42);
}

/* ---------------- toast ---------------- */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 118px;
  z-index: 100;
  width: min(92vw, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  max-width: 100%;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(130, 235, 220, 0.26);
  background: rgba(4, 20, 24, 0.95);
  color: #e8fff9;
  font-size: 12.5px;
  text-align: center;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  animation: toastIn 0.3s ease-out both;
}

.toast.out { animation: toastOut 0.3s ease-in both; }

/* ---------------- 动画 ---------------- */
@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 0.9; }
}

@keyframes waveShift {
  from { transform: translateX(-0.8%); }
  to { transform: translateX(0.8%); }
}

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

@keyframes swim {
  from { transform: translateX(0) scale(1); }
  to { transform: translateX(116vw) scale(0.9); }
}

@keyframes pulseRing {
  0% { transform: scale(0.97); opacity: 0.75; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

@keyframes lineFly {
  0% { transform: rotate(14deg) scaleY(0.15); opacity: 0; }
  45% { transform: rotate(-4deg) scaleY(1); opacity: 1; }
  100% { transform: rotate(0deg) scaleY(1); opacity: 1; }
}

@keyframes bobberDrop {
  0% { transform: translateY(-220px) scale(0.7); opacity: 0; }
  60% { transform: translateY(6px) scale(1); opacity: 1; }
  75% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes bobberBob {
  0%, 100% { top: 50%; }
  50% { top: 51.6%; }
}

@keyframes castProgress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes rippleOut {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(44px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes wobble {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(8deg); }
}

@keyframes sparkFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.15); }
}

@keyframes hookIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes seatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 230, 190, 0.0); }
  50% { box-shadow: 0 0 0 4px rgba(99, 230, 190, 0.2); }
}

@keyframes seatWobble {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px) rotate(-0.6deg); }
  75% { transform: translateX(3px) rotate(0.6deg); }
}

@keyframes countBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); color: var(--mint); }
  100% { transform: scale(1); }
}

@keyframes patFloat {
  0% { opacity: 0; transform: translateY(4px) scale(0.9); }
  25% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-26px) scale(1.05); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

/* ---------------- 适配 ---------------- */
@media (max-width: 1000px) {
  .pat-king { display: none; }
  .boards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { overflow: auto; }

  .app {
    height: auto;
    min-height: 100dvh;
    padding: 12px 12px 18px;
    gap: 10px;
  }

  .topbar { grid-template-columns: 1fr auto; }
  .identity {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    padding: 7px 8px 7px 14px;
  }
  .top-actions { grid-column: 2; grid-row: 1; }
  .book-label { display: none; }

  .boards { grid-template-columns: 1fr; gap: 8px; }
  .board { padding: 8px 11px; }
  .board h2 { font-size: 9.5px; letter-spacing: 1px; }
  .board-list li { font-size: 10.5px; }
  .board-list .name { max-width: 70px; }

  .pond { min-height: 430px; flex: none; }
  .pond-center { padding: 18px 16px; }

  .seats { grid-template-columns: repeat(2, 1fr); }
  .seat { min-height: 88px; padding: 9px 12px 8px; }
  .seat-name { font-size: 18px; }
  .seat-stats b { font-size: 18px; }
  .seat-stats { gap: 12px; }

  .foot { flex-wrap: wrap; gap: 4px 7px; }

  .toasts { bottom: 16px; }
  .drawer { width: 100%; }
}

@media (max-width: 520px) {
  .brand-text p { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 20px; }
  .brand-text h1 { font-size: 17px; }

  .pond { min-height: 400px; }
  .pond-title { font-size: 23px; letter-spacing: 2px; }
  .pond-kicker { letter-spacing: 3px; font-size: 8px; }
  .pond-hint { font-size: 11.5px; }
  .cast-btn { padding: 13px 30px; font-size: 18px; letter-spacing: 2px; }
  .cast-tip { font-size: 9px; }

  .catch-card { padding: 15px 17px 15px; border-radius: 18px; }
  .word { font-size: 32px; }
  .speak { width: 34px; height: 34px; font-size: 14px; }
  .phon-row { font-size: 12px; gap: 6px; }
  .meaning { font-size: 13.5px; }
  .example { font-size: 13px; }
  .example-zh { font-size: 11px; }
  .flavor { font-size: 11.5px; }
  .catch-btn { font-size: 14px; letter-spacing: 3px; }

  .hooks { width: calc(100% - 28px); }
  .pond-caption { display: none; }

  .board-list .name { max-width: 54px; }
  .board-list { gap: 3px; }
}

@media (max-height: 780px) and (min-width: 901px) {
  .app { padding-top: 10px; padding-bottom: 8px; gap: 9px; }
  .brand-mark { width: 40px; height: 40px; font-size: 20px; }
  .brand-text h1 { font-size: 17px; }
  .seat { min-height: 88px; }
  .seat-name { font-size: 18px; }
  .seat-stats b { font-size: 18px; }
  .pond { min-height: 270px; }
  .catch-card { padding: 14px 20px 14px; }
  .word { font-size: 36px; }
  .example { margin-top: 9px; }
  .flavor { margin-top: 8px; }
  .card-actions { margin-top: 12px; }
  .catch-btn { padding: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
