:root {
  --bg-ink: #071320;
  --card-shell: rgba(255, 255, 255, 0.9);
  --text-main: #0f2030;
  --text-soft: #355169;
  --edge: rgba(255, 255, 255, 0.7);
  --btn-tools: #00a8c7;
  --btn-deals: #ea3bd5;
  --btn-donate: #ff9a3d;
  --btn-discord: #5b7bff;
  --good: #0f9d58;
  --warn: #d96b00;
  --bad: #c7392f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(1200px 1000px at 10% 8%, #173853 0%, #0d1f34 40%, var(--bg-ink) 100%);
  overflow-x: hidden;
}

.bg-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.7;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-a {
  width: 340px;
  height: 340px;
  background: #3ef0ff;
  top: -70px;
  left: -80px;
}

.orb-b {
  width: 380px;
  height: 380px;
  background: #ffd164;
  right: -95px;
  top: 14%;
  animation-duration: 21s;
}

.orb-c {
  width: 400px;
  height: 400px;
  background: #5d89ff;
  left: 16%;
  bottom: -190px;
  animation-duration: 24s;
}

.orb-d {
  width: 320px;
  height: 320px;
  background: #ff8aa8;
  right: 12%;
  bottom: -120px;
  animation-duration: 19s;
}

.mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.14), transparent 32%),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.08), transparent 28%);
}

.site-header {
  width: min(1100px, 92vw);
  margin: 1.2rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.site-url {
  margin: 0;
  color: #d7eeff;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.back-home {
  margin-left: auto;
  color: #dff3ff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.site-nav-row {
  width: min(1100px, 92vw);
  margin: 0.65rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav-row a {
  text-decoration: none;
  color: #e7f4ff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.44rem 0.82rem;
  font-weight: 600;
  transition: background 160ms ease, transform 160ms ease;
}

.site-nav-row a:hover {
  background: rgba(255, 255, 255, 0.19);
  transform: translateY(-1px);
}

.site-nav-row a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.27);
}

.home-main,
.tools-main {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  padding: 1.4rem 0 2.4rem;
}

.hero-card,
.tool-shell {
  width: min(940px, 92vw);
  background: var(--card-shell);
  border: 1px solid var(--edge);
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(2, 12, 25, 0.42);
  backdrop-filter: blur(12px);
}

.hero-card {
  padding: clamp(1.2rem, 2.2vw, 2.2rem);
  text-align: center;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
  flex-wrap: wrap;
}

.brand-tpcd {
  width: clamp(160px, 21vw, 245px);
  filter: drop-shadow(0 10px 20px rgba(26, 43, 69, 0.2));
}

.brand-main {
  width: clamp(120px, 18vw, 185px);
  filter: drop-shadow(0 10px 20px rgba(26, 43, 69, 0.2));
}

.hero-card h1,
.tool-shell h1 {
  font-family: "Bungee", "Trebuchet MS", sans-serif;
  margin: 0.9rem 0 0.5rem;
  line-height: 1.18;
  letter-spacing: 0.015em;
}

.hero-card h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-card p {
  margin: 0.35rem auto;
  max-width: 720px;
  color: var(--text-soft);
  line-height: 1.62;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.btn {
  text-decoration: none;
  border: 0;
  border-radius: 14px;
  padding: 0.72rem 1.2rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, filter 160ms ease;
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-tools {
  background: linear-gradient(135deg, #00c3dd, var(--btn-tools));
}

.btn-deals {
  background: linear-gradient(135deg, #ff7fdb, var(--btn-deals));
}

.btn-donate {
  background: linear-gradient(135deg, #ffbf5f, var(--btn-donate));
}

.btn-discord {
  background: linear-gradient(135deg, #8aa5ff, var(--btn-discord));
}

.donate-panel {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23, 43, 63, 0.1);
  border-radius: 18px;
  padding: 1rem;
}

.duck-mini {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
  text-align: left;
}

.duck-mini-copy,
.duck-mini-game {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 43, 63, 0.12);
  padding: 1rem;
}

.duck-mini-copy h2 {
  margin: 0;
}

.duck-mini-tip {
  font-size: 0.86rem;
  color: #4b6a84;
  margin-bottom: 0;
}

.duck-mini-game {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  overflow: hidden;
}

.duck-tap-btn {
  width: min(220px, 100%);
  min-height: 96px;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  font-family: "Bungee", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: linear-gradient(145deg, #f7a200, #ffcc44 70%, #ffe08a);
  box-shadow: 0 14px 28px rgba(153, 89, 0, 0.3);
  transition: transform 120ms ease, filter 120ms ease;
}

.duck-tap-btn:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.03);
}

.duck-tap-btn:active {
  transform: scale(0.98);
}

.duck-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 0.5rem;
  text-align: center;
}

.duck-stats p {
  margin: 0;
  background: rgba(241, 247, 255, 0.8);
  border: 1px solid rgba(36, 67, 99, 0.18);
  border-radius: 10px;
  padding: 0.45rem;
  font-weight: 700;
  color: #21405b;
}

.duck-burst-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.duck-burst {
  position: absolute;
  color: #066b93;
  font-weight: 800;
  animation: duckBurstUp 550ms ease forwards;
}

.duck-reset {
  margin-top: 0.2rem;
}

@keyframes duckBurstUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.08);
  }
}

.donate-panel h2 {
  margin: 0;
  font-size: 1.15rem;
}

.mini-link {
  color: #0b699b;
  font-weight: 700;
}

.site-footer {
  text-align: center;
  color: #daecff;
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
}

.tool-shell {
  padding: clamp(1rem, 2vw, 2rem);
}

.tools-hub-shell {
  max-width: 980px;
}

.tool-hub-header {
  margin-bottom: 0.35rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.hub-card {
  border-radius: 18px;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.66);
  color: #f7fbff;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: space-between;
  box-shadow: 0 14px 32px rgba(7, 25, 44, 0.28);
}

.hub-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.9;
}

.hub-card h2 {
  margin: 0;
  font-size: 1.15rem;
  font-family: "Bungee", "Trebuchet MS", sans-serif;
  line-height: 1.2;
}

.hub-card p {
  margin: 0;
  line-height: 1.5;
}

.hub-budget {
  background: linear-gradient(145deg, #08b3d0, #0a95b8 68%, #61d3ea);
}

.hub-deals {
  background: linear-gradient(145deg, #ff7fdb, #ea3bd5 68%, #b346e8);
}

.hub-duck {
  background: linear-gradient(145deg, #5b7bff, #3359e8 68%, #00b8d8);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.tool-logo {
  width: 85px;
  height: auto;
}

.eyebrow {
  margin: 0;
  color: #5e7691;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.tool-subtext {
  margin: 0.2rem 0 0;
  color: #4d667e;
}

.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.budget-grid label {
  font-weight: 600;
  color: #22384f;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.budget-grid input {
  border: 1px solid rgba(26, 49, 74, 0.2);
  border-radius: 12px;
  padding: 0.64rem 0.7rem;
  font: inherit;
  color: #1e3143;
  background: #fbfdff;
}

.tool-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.result-card {
  margin-top: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 43, 63, 0.12);
  padding: 1rem;
}

.result-card h2 {
  margin-top: 0;
}

.result-line {
  margin: 0.42rem 0;
}

.result-status span {
  font-weight: 700;
}

.deal-logo {
  width: 120px;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.deal-col {
  border: 1px solid rgba(31, 56, 84, 0.14);
  border-radius: 16px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.68);
}

.deal-col h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.deal-col label {
  font-weight: 600;
  color: #22384f;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 0.7rem;
}

.deal-col input {
  border: 1px solid rgba(26, 49, 74, 0.2);
  border-radius: 12px;
  padding: 0.64rem 0.7rem;
  font: inherit;
  color: #1e3143;
  background: #fbfdff;
}

.deal-actions {
  grid-column: 1 / -1;
}

.deal-sources {
  margin-top: 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 43, 63, 0.12);
  padding: 1rem;
}

.deal-sources h2 {
  margin: 0;
}

.source-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.75rem;
}

.classic-title {
  margin: 1rem 0 0.2rem;
  color: #22384f;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.source-grid-classic {
  margin-top: 0.6rem;
}

.source-card {
  text-decoration: none;
  border-radius: 16px;
  padding: 0.8rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 24px rgba(13, 21, 34, 0.24);
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-height: 138px;
  justify-content: center;
  transition: transform 170ms ease, filter 170ms ease;
}

.source-card:hover {
  transform: translateY(-4px) scale(1.01);
  filter: brightness(1.05);
}

.source-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.93;
}

.source-card strong {
  font-size: 1.04rem;
}

.source-hint {
  font-size: 0.83rem;
  opacity: 0.95;
}

.source-tech {
  background: linear-gradient(145deg, #0c5efc, #18a7ff 68%, #62d8ff);
}

.source-coupons {
  background: linear-gradient(145deg, #a640ff, #ff4fa7 68%, #ff8bd4);
}

.source-book {
  background: linear-gradient(145deg, #2f8b3c, #54b857 68%, #9be67b);
}

.source-market {
  background: linear-gradient(145deg, #f06a00, #ff9b2f 68%, #ffd17d);
}

.source-style {
  background: linear-gradient(145deg, #d33675, #ff5f8b 68%, #ff97b3);
}

.source-general {
  background: linear-gradient(145deg, #38465d, #4d678b 68%, #7f9dc4);
}

.source-textbook {
  background: linear-gradient(145deg, #3f7f58, #58a87b 68%, #99dcb7);
}

.source-gaming {
  background: linear-gradient(145deg, #6a2cff, #9954ff 68%, #c5a0ff);
}

@keyframes drift {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(18px) scale(1.06);
  }
}

@media (max-width: 760px) {
  .site-header {
    margin-top: 0.8rem;
  }

  .hero-card,
  .tool-shell {
    border-radius: 22px;
  }

  .budget-grid {
    grid-template-columns: 1fr;
  }

  .deal-grid {
    grid-template-columns: 1fr;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .duck-mini {
    grid-template-columns: 1fr;
  }

  .duck-stats {
    grid-template-columns: 1fr;
  }
}
