:root {
  --ink: #16324f;
  --mist: rgba(255, 255, 255, 0.75);
  --panel: rgba(255, 255, 255, 0.74);
  --line: rgba(22, 50, 79, 0.09);
}

.bg-ink { background-color: #16324f !important; }
.bg-mango { background-color: #ffb84c !important; }
.bg-mint { background-color: #76d7c4 !important; }
.bg-sky { background-color: #5fc7ff !important; }
.bg-plum { background-color: #7a5cff !important; }
.bg-coral { background-color: #ff7a59 !important; }
.text-ink { color: #16324f !important; }
.text-white { color: #ffffff !important; }
.border-white { border-color: rgba(255, 255, 255, 0.96) !important; }

.bg-mint\/25 { background-color: rgba(118, 215, 196, 0.25) !important; }
.bg-mango\/20 { background-color: rgba(255, 184, 76, 0.2) !important; }
.bg-sky\/20 { background-color: rgba(95, 199, 255, 0.2) !important; }
.bg-coral\/15 { background-color: rgba(255, 122, 89, 0.15) !important; }
.bg-coral\/10 { background-color: rgba(255, 122, 89, 0.1) !important; }
.bg-mint\/20 { background-color: rgba(118, 215, 196, 0.2) !important; }
.bg-sky\/10 { background-color: rgba(95, 199, 255, 0.1) !important; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8) !important; }
.bg-white\/85 { background-color: rgba(255, 255, 255, 0.85) !important; }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9) !important; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95) !important; }

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 212, 90, 0.24), transparent 32%),
    radial-gradient(circle at top right, rgba(122, 92, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #effbff 0%, #eef4ff 48%, #fef9ef 100%);
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--panel);
  box-shadow:
    0 22px 60px rgba(18, 40, 66, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
}

.brand-stamp {
  position: relative;
  font-family: "Baloo 2", cursive;
  font-weight: 800;
  color: var(--ink);
}

.brand-stamp::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px dashed rgba(22, 50, 79, 0.12);
  border-radius: 2rem;
}

.aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(25px);
  opacity: 0.9;
}

.aurora-a {
  top: 8%;
  left: -4%;
  height: 280px;
  width: 280px;
  background: rgba(255, 184, 76, 0.3);
  animation: drift 14s ease-in-out infinite;
}

.aurora-b {
  right: -8%;
  top: 18%;
  height: 360px;
  width: 360px;
  background: rgba(122, 92, 255, 0.18);
  animation: drift 18s ease-in-out infinite reverse;
}

.aurora-c {
  bottom: -6%;
  left: 35%;
  height: 260px;
  width: 260px;
  background: rgba(95, 199, 255, 0.2);
  animation: drift 15s ease-in-out infinite;
}

.letter-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.letter-rain span {
  position: absolute;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.25rem, 2vw, 2.2rem);
  color: rgba(22, 50, 79, 0.16);
  animation: floatLetter 14s linear infinite;
}

.letter-rain span:nth-child(1) { left: 10%; top: 18%; animation-delay: 0s; }
.letter-rain span:nth-child(2) { left: 25%; top: 72%; animation-delay: -2s; }
.letter-rain span:nth-child(3) { left: 38%; top: 10%; animation-delay: -5s; }
.letter-rain span:nth-child(4) { left: 52%; top: 82%; animation-delay: -1.5s; }
.letter-rain span:nth-child(5) { left: 65%; top: 22%; animation-delay: -8s; }
.letter-rain span:nth-child(6) { left: 76%; top: 68%; animation-delay: -11s; }
.letter-rain span:nth-child(7) { left: 84%; top: 14%; animation-delay: -7s; }
.letter-rain span:nth-child(8) { left: 90%; top: 78%; animation-delay: -10s; }

.map-board {
  position: relative;
  overflow: hidden;
}

.map-board::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.85), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.75), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(247, 251, 255, 0.6));
  border: 1px solid rgba(22, 50, 79, 0.06);
}

.map-river {
  position: absolute;
  inset: 6.75rem 1.5rem 1.5rem;
  border: 10px solid rgba(255, 255, 255, 0.62);
  border-radius: 2rem;
  box-shadow: inset 0 0 0 8px rgba(95, 199, 255, 0.16);
  opacity: 0.9;
}

.map-river::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 1.5rem;
  border: 4px dashed rgba(22, 50, 79, 0.12);
}

.map-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.grade-node {
  position: relative;
  width: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.grade-node:hover {
  transform: translateY(-6px);
}

.map-card {
  height: 100%;
  border-radius: 2rem;
  border: 5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(22, 50, 79, 0.14);
}

.badge-squish {
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(22, 50, 79, 0.08);
}

.choice-card,
.letter-tile {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.choice-card:hover,
.letter-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(22, 50, 79, 0.14);
}

.letter-track {
  position: relative;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,250,255,0.88));
  border: 1px solid rgba(22, 50, 79, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hud-bar {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 50, 79, 0.08);
}

.hud-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #76d7c4 0%, #5fc7ff 50%, #7a5cff 100%);
  transition: width 120ms linear;
}

.word-slot {
  display: inline-flex;
  min-width: 0.9em;
  justify-content: center;
  border-bottom: 4px solid rgba(22, 50, 79, 0.12);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 26, 42, 0.48);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.result-burst {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95), rgba(255,255,255,0.6) 46%, rgba(255,255,255,0.05) 72%),
    linear-gradient(135deg, rgba(255, 184, 76, 0.22), rgba(122, 92, 255, 0.18));
}

.mini-table-row + .mini-table-row {
  border-top: 1px dashed rgba(22, 50, 79, 0.12);
}

.ad-chip {
  background:
    linear-gradient(120deg, rgba(255, 184, 76, 0.18), rgba(255, 95, 143, 0.16)),
    rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(22, 50, 79, 0.14);
}

.btn-strong,
.btn-soft,
.btn-accent,
.btn-plum {
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(22, 50, 79, 0.12);
}

.btn-strong {
  background: #16324f;
  color: #ffffff;
}

.btn-soft {
  background: rgba(255, 255, 255, 0.96);
  color: #16324f;
}

.btn-accent {
  background: #ffb84c;
  color: #16324f;
}

.btn-plum {
  background: #7a5cff;
  color: #ffffff;
}

.feature-story-shell {
  border-radius: 1.7rem;
  background: linear-gradient(145deg, #16324f 0%, #234d78 100%);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(22, 50, 79, 0.18);
}

.feature-story-shell p,
.feature-story-shell div,
.feature-story-shell span {
  color: inherit;
}

.feature-story-kicker {
  color: rgba(255, 255, 255, 0.68);
}

.feature-story-copy {
  color: rgba(255, 255, 255, 0.9);
}

.base-preview {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 35%),
    linear-gradient(160deg, rgba(95, 199, 255, 0.22), rgba(255, 212, 90, 0.16), rgba(122, 92, 255, 0.14));
  border: 1px solid rgba(22, 50, 79, 0.08);
}

.base-preview-large {
  min-height: 320px;
}

.base-room-item,
.base-pet {
  position: absolute;
  font-size: clamp(2rem, 4vw, 3.2rem);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.base-room-item {
  left: 1.25rem;
  top: 1rem;
}

.base-pet {
  right: 1.25rem;
  bottom: 1rem;
}

.base-avatar {
  position: absolute;
  left: 50%;
  top: 52%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
}

.base-hat {
  margin-bottom: -0.3rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.base-face {
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1;
}

.base-outfit {
  margin-top: -0.2rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.word-hunt-preview {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.8), transparent 20%),
    linear-gradient(135deg, rgba(118, 215, 196, 0.24), rgba(95, 199, 255, 0.2), rgba(122, 92, 255, 0.14));
  border: 1px solid rgba(22, 50, 79, 0.08);
}

.hunt-chip {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 14px 24px rgba(22, 50, 79, 0.12);
}

.hunt-chip-a { left: 10%; top: 16%; transform: rotate(-5deg); }
.hunt-chip-b { right: 12%; top: 18%; transform: rotate(4deg); }
.hunt-chip-c { left: 18%; bottom: 18%; transform: rotate(2deg); }
.hunt-chip-d { right: 18%; bottom: 24%; transform: rotate(-7deg); }
.hunt-chip-e { left: 42%; top: 42%; transform: rotate(-1deg); }

.hunt-scene {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(22, 50, 79, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hunt-theme-1 {
  background: linear-gradient(180deg, rgba(255, 212, 90, 0.18), rgba(255, 184, 76, 0.14), rgba(255, 255, 255, 0.9));
}

.hunt-theme-2 {
  background: linear-gradient(180deg, rgba(139, 227, 155, 0.24), rgba(95, 199, 255, 0.14), rgba(255, 255, 255, 0.92));
}

.hunt-theme-3 {
  background: linear-gradient(180deg, rgba(160, 215, 255, 0.24), rgba(95, 141, 255, 0.14), rgba(255, 255, 255, 0.92));
}

.hunt-theme-4 {
  background: linear-gradient(180deg, rgba(255, 209, 236, 0.3), rgba(255, 95, 143, 0.12), rgba(255, 255, 255, 0.92));
}

.hunt-theme-5 {
  background: linear-gradient(180deg, rgba(222, 199, 255, 0.28), rgba(122, 92, 255, 0.14), rgba(255, 255, 255, 0.92));
}

.hunt-theme-6 {
  background: linear-gradient(180deg, rgba(255, 224, 183, 0.28), rgba(255, 138, 76, 0.14), rgba(255, 255, 255, 0.92));
}

.hunt-scene-title {
  position: absolute;
  left: 1.5rem;
  top: 1.25rem;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.7rem 1rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(22, 50, 79, 0.12);
}

.hunt-scene-decor {
  position: absolute;
  border-radius: 999px;
  opacity: 0.55;
  filter: blur(8px);
}

.hunt-scene-decor-a {
  left: 8%;
  top: 22%;
  height: 120px;
  width: 120px;
  background: rgba(255, 184, 76, 0.28);
}

.hunt-scene-decor-b {
  right: 12%;
  top: 34%;
  height: 150px;
  width: 150px;
  background: rgba(95, 199, 255, 0.22);
}

.hunt-scene-decor-c {
  left: 42%;
  bottom: 8%;
  height: 140px;
  width: 140px;
  background: rgba(122, 92, 255, 0.18);
}

.hunt-label {
  position: absolute;
  z-index: 2;
  border-radius: 1.1rem;
  border: 4px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 0.95rem;
  text-align: center;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 18px 32px rgba(22, 50, 79, 0.15);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hunt-label:hover {
  transform: scale(1.03);
  box-shadow: 0 22px 36px rgba(22, 50, 79, 0.18);
}

.hunt-label-wrong::after {
  content: "!";
  position: absolute;
  right: -10px;
  top: -10px;
  display: flex;
  height: 28px;
  width: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ff7a59;
  color: white;
  font-weight: 800;
}

.hunt-label-found {
  background: rgba(118, 215, 196, 0.35);
  color: #0e4f41;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(16px, -14px, 0) scale(1.08); }
}

@keyframes floatLetter {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
  50% { transform: translateY(-18px) rotate(8deg); opacity: 0.2; }
  100% { transform: translateY(0) rotate(0deg); opacity: 0.08; }
}

@media (max-width: 1024px) {
  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .map-river {
    inset: 8rem 1rem 1rem;
  }

  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .grade-node:hover {
    transform: translateY(-4px);
  }

  .hunt-scene {
    min-height: 460px;
  }
}
