:root {
  color-scheme: light;
  --peach: #ffb083;
  --sun: #ffd966;
  --sky: #8fd6ff;
  --mint: #9ef0c4;
  --berry: #ff6fa7;
  --shadow: rgba(22, 32, 82, 0.12);
  --card: #ffffff;
  --ink: #1a1c32;
  --muted: #5c5f7a;
  --success: #23b574;
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.4), transparent 50%),
    linear-gradient(135deg, #f8f5ff 0%, #e5f9ff 45%, #fff1eb 100%);
  color: var(--ink);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.aura {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(255, 224, 156, 0.55), transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(169, 232, 255, 0.5), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(255, 167, 214, 0.45), transparent 40%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

h1 {
  margin: 0;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.subtitle {
  margin: 0.75rem auto 1.5rem;
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.65rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--berry), var(--peach));
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 127, 171, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 28, 50, 0.1);
  color: var(--ink);
}

.btn:focus-visible {
  outline: 3px solid rgba(36, 164, 255, 0.6);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .content {
    grid-template-columns: 1fr;
  }
}

.board-card,
.tips-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  padding: 1.75rem;
  box-shadow: 0 25px 60px var(--shadow);
  position: relative;
}

.board-card::after {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  border: 2px dashed rgba(255, 165, 87, 0.35);
  pointer-events: none;
}

.board-card__header {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-value {
  margin: 0.35rem 0 0;
  font-size: 1.9rem;
  font-weight: 700;
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.bingo-card {
  --accent: var(--sun);
  border: none;
  border-radius: 22px;
  padding: 1.1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  min-height: 135px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(36, 57, 102, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  transform-style: preserve-3d;
}

.bingo-card::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0turn, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.8) 60deg, rgba(255, 255, 255, 0) 180deg);
  mix-blend-mode: screen;
  opacity: 0;
  transform: rotate(0deg);
  pointer-events: none;
}

.bingo-card p {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.bingo-card span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bingo-card span::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.bingo-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 2px dashed rgba(26, 28, 50, 0.08);
  transition: opacity 200ms ease;
}

.bingo-card:focus-visible {
  outline: 3px solid #6ad8ff;
  outline-offset: 2px;
}

.bingo-card.completed {
  background: linear-gradient(135deg, var(--mint), var(--sun));
  color: var(--ink);
  box-shadow: 0 15px 35px rgba(70, 215, 167, 0.35);
}

.bingo-card.completed::after {
  border-color: rgba(26, 28, 50, 0.18);
}

.bingo-card.completed .checkmark {
  opacity: 1;
  transform: scale(1);
}

.checkmark {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 28, 50, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease;
}

.bingo-card.completed .checkmark {
  background: rgba(26, 28, 50, 0.65);
}

.bingo-grid {
  perspective: 1600px;
}

.bingo-card.highlight {
  animation: flip-card 1.1s ease;
  box-shadow: 0 25px 55px rgba(36, 57, 102, 0.25);
}

.bingo-card.highlight::before {
  animation: sweep 1s ease;
}

@keyframes flip-card {
  0% {
    transform: rotateY(0deg) scale(1);
  }
  25% {
    transform: rotateY(140deg) scale(1.08);
  }
  45% {
    transform: rotateY(360deg) scale(1.02);
  }
  70% {
    transform: rotateY(470deg) scale(0.96);
  }
  100% {
    transform: rotateY(540deg) scale(1);
  }
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: rotate(0deg) scale(1);
  }
  20% {
    opacity: 1;
  }
  70% {
    opacity: 0.4;
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: rotate(360deg) scale(1.2);
  }
}

.tips-card h2 {
  font-family: 'Fredoka', sans-serif;
  margin-top: 0;
}

.tips-card ul {
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.5;
}

.tip {
  margin: 1rem 0 0;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(200%);
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(26, 28, 50, 0.35);
  transition: transform 300ms ease;
  pointer-events: none;
  font-weight: 600;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
