#tool-body {
  --fb-primary: #1aa7c4;
  --fb-primary-deep: #0e7a92;
  --fb-ink: #12343c;
  --fb-muted: #5a7a82;
  --fb-surface: #f3f8fa;
  --fb-panel: rgba(255, 255, 255, 0.12);
  --fb-line: rgba(255, 255, 255, 0.14);
  --fb-meta-title: #f2fbfe;
  --fb-meta-desc: rgba(242, 251, 254, 0.7);
  --fb-glow: rgba(26, 167, 196, 0.28);
  --fb-hero-from: #071820;
  --fb-hero-to: #0f3d4a;
  --fb-font-display: "Trebuchet MS", "Segoe UI", sans-serif;
  --fb-font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  color: var(--fb-ink);
  font-family: var(--fb-font-body);
}

.theme-dark-mode #tool-body {
  --fb-ink: #e8f4f7;
  --fb-muted: #9bb4bb;
  --fb-surface: #152226;
  --fb-panel: rgba(0, 0, 0, 0.28);
  --fb-line: rgba(232, 244, 247, 0.14);
  --fb-meta-title: #f2fbfe;
  --fb-meta-desc: rgba(242, 251, 254, 0.68);
  --fb-glow: rgba(26, 167, 196, 0.35);
  --fb-hero-from: #02080b;
  --fb-hero-to: #0a2c36;
}

#tool-body .fb-shell {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--fb-glow), transparent 55%),
    linear-gradient(145deg, var(--fb-hero-from) 0%, var(--fb-hero-to) 48%, #145566 100%);
  color: #f4fbfd;
  box-shadow: 0 18px 48px rgba(7, 24, 32, 0.28);
}

#tool-body .fb-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(7, 24, 32, 0.45) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 18px,
      rgba(255, 255, 255, 0.015) 18px,
      rgba(255, 255, 255, 0.015) 19px
    );
  pointer-events: none;
}

#tool-body .fb-ripple {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fb-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

#tool-body .fb-ripple::before,
#tool-body .fb-ripple::after {
  content: "";
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#tool-body .fb-ripple::after {
  inset: 96px;
}

@keyframes fb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

#tool-body .fb-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 48px 44px 44px;
  min-height: 520px;
  box-sizing: border-box;
}

#tool-body .fb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

#tool-body .fb-brand img {
  width: 42px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

#tool-body .fb-brand-text {
  font-family: var(--fb-font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 251, 253, 0.72);
}

#tool-body .fb-title {
  margin: 0 0 14px;
  font-family: var(--fb-font-display);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

#tool-body .fb-title span {
  color: #7ad7ea;
}

#tool-body .fb-desc {
  margin: 0 0 28px;
  max-width: 460px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(244, 251, 253, 0.78);
}

#tool-body .fb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

#tool-body .fb-start {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(180deg, #33c4de 0%, var(--fb-primary) 100%);
  color: #062029;
  font-family: var(--fb-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 12px 28px rgba(26, 167, 196, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#tool-body .fb-start:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 16px 32px rgba(26, 167, 196, 0.42);
}

#tool-body .fb-start:active {
  transform: translateY(0);
}

#tool-body .fb-hint {
  font-size: 13px;
  color: rgba(244, 251, 253, 0.55);
}

#tool-body .fb-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

#tool-body .fb-bowl {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 50% 55%, rgba(26, 167, 196, 0.35), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(10, 55, 68, 0.2), rgba(4, 20, 28, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 -30px 50px rgba(0, 0, 0, 0.28),
    0 20px 50px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

#tool-body .fb-bowl > img {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 78%;
  transform: translate(-50%, -50%);
  opacity: 0.92;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
  animation: fb-float 4.8s ease-in-out infinite;
}

#tool-body .fb-bowl > .fb-fish {
  position: absolute;
  left: 42%;
  top: 52%;
  width: 66px;
  height: auto;
  z-index: 2;
  transform-origin: center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  animation: fb-swim 5.6s ease-in-out infinite;
  pointer-events: none;
}

#tool-body .fb-bowl::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  height: 18%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(8px);
}

@keyframes fb-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50% { transform: translate(-48%, -54%) rotate(2deg); }
}

@keyframes fb-swim {
  0%, 100% { transform: translate(0, 0) scaleX(1); }
  35% { transform: translate(18px, -10px) scaleX(1); }
  50% { transform: translate(22px, -6px) scaleX(-1); }
  85% { transform: translate(-8px, 6px) scaleX(-1); }
}

#tool-body .fb-meta {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#tool-body .fb-meta-item {
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  backdrop-filter: blur(8px);
}

#tool-body .fb-meta-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--fb-font-display);
  font-size: 15px;
  color: var(--fb-meta-title);
}

#tool-body .fb-meta-item span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fb-meta-desc);
}

@media (max-width: 768px) {
  #tool-body .fb-inner {
    grid-template-columns: 1fr;
    padding: 36px 22px 28px;
    min-height: auto;
    gap: 18px;
  }

  #tool-body .fb-visual {
    order: -1;
    min-height: 220px;
  }

  #tool-body .fb-bowl {
    width: min(100%, 220px);
  }

  #tool-body .fb-meta {
    grid-template-columns: 1fr;
  }

  #tool-body .fb-desc {
    max-width: none;
  }
}