:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg-deep: #1a1442;
  --bg-mid: #2d1b69;
  --accent-cyan: #22d3ee;
  --accent-orange: #fb923c;
  --accent-pink: #f472b6;
  --accent-green: #4ade80;
  --accent-purple: #a78bfa;
  --card-bg: rgba(30, 23, 70, 0.72);
  --card-border: rgba(255, 255, 255, 0.14);
  color: #f5f3ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.22), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(244, 114, 182, 0.2), transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(74, 222, 128, 0.16), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(251, 146, 60, 0.16), transparent 45%),
    linear-gradient(160deg, #1a1442 0%, #2d1b69 55%, #1e1b4b 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.shell {
  width: min(1000px, 92vw);
  margin: 40px auto;
  position: relative;
  z-index: 1;
}

.card {
  padding: 48px;
  border: 2px solid var(--card-border);
  border-radius: 28px;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(8, 5, 30, 0.45);
}

.hidden { display: none; }

.eyebrow {
  letter-spacing: .16em;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-cyan);
}

h1 { font-size: clamp(44px, 7.5vw, 84px); margin: 12px 0; line-height: 1.06; }
h2 { font-size: clamp(30px, 5vw, 56px); }
.lead { font-size: 22px; opacity: .92; line-height: 1.4; }

button {
  margin-top: 24px;
  padding: 18px 30px;
  border: 0;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  color: #1a1442;
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.45);
}

button:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}

button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; transform: none; }

.privacy {
  margin: 28px 0;
  padding: 24px;
  border-radius: 18px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 20px;
  line-height: 1.5;
}

.lesson {
  margin: 28px 0;
  padding: 24px;
  border-radius: 18px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.32);
  font-size: 20px;
  line-height: 1.5;
}

.tips {
  margin: 28px 0;
  padding: 24px;
  border-radius: 18px;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.32);
  font-size: 20px;
  line-height: 1.5;
}

.tips ul {
  margin: 12px 0;
  padding-left: 22px;
}

.tips li {
  margin: 10px 0;
}

audio { width: 100%; margin: 24px 0; border-radius: 12px; }

footer {
  text-align: center;
  padding: 24px;
  opacity: .8;
  font-size: 13px;
}

footer a {
  color: var(--accent-cyan);
  opacity: 1;
  font-weight: 700;
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* --- Home hub --- */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.hub-card {
  --accent: var(--accent-cyan);
  display: block;
  padding: 32px;
  border: 2px solid var(--card-border);
  border-radius: 24px;
  background: var(--card-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 36px rgba(8, 5, 30, 0.4);
}

.hub-card .eyebrow { color: var(--accent); }

.hub-card h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 8px 0 12px;
}

.hub-card p:last-child {
  font-size: 16px;
  opacity: .85;
  margin: 0;
}

.hub-card.accent-cyan { --accent: var(--accent-cyan); }
.hub-card.accent-orange { --accent: var(--accent-orange); }
.hub-card.accent-pink { --accent: var(--accent-pink); }
.hub-card.accent-green { --accent: var(--accent-green); }

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

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

/* --- Which Is Fake? game --- */

.clip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}

.clip-choice {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
}

.clip-name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent-pink);
}

.clip-media video,
.clip-media img {
  width: 100%;
  border-radius: 14px;
  display: block;
  background: #0b0d12;
}

.clip-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guess-btn {
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(120deg, var(--accent-green), var(--accent-cyan));
  color: #0b1f14;
}

#feedback {
  margin-top: 16px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.32);
}

#feedbackVerdict {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--accent-purple);
}

#noRoundsNote {
  margin-top: 20px;
  opacity: .8;
}

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

/* --- Motion & polish --- */

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card:not(.hidden) {
  animation: cardIn .45s cubic-bezier(.16, 1, .3, 1);
}

.round-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.round-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background .2s ease, transform .2s ease;
}

.round-dot.done { background: var(--accent-green); }

.round-dot.current {
  background: var(--accent-cyan);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25);
}

.difficulty-pill {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  vertical-align: middle;
}

.difficulty-pill.pill-easy {
  background: rgba(74, 222, 128, 0.18);
  color: var(--accent-green);
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.difficulty-pill.pill-medium {
  background: rgba(251, 146, 60, 0.18);
  color: var(--accent-orange);
  border: 1px solid rgba(251, 146, 60, 0.4);
}

.difficulty-pill.pill-hard {
  background: rgba(244, 114, 182, 0.18);
  color: var(--accent-pink);
  border: 1px solid rgba(244, 114, 182, 0.4);
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
}

/* --- Homepage mascot & countdown --- */

.mascot {
  display: block;
  margin: 0 auto 4px;
  animation: mascotBounce 3.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 22px rgba(34, 211, 238, .35));
}

@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.floaty-icons {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floaty-icon {
  position: absolute;
  bottom: -60px;
  font-size: 26px;
  opacity: 0;
  animation-name: floatUp;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8% { opacity: .16; }
  92% { opacity: .16; }
  100% { transform: translateY(-125vh) translateX(24px) rotate(24deg); opacity: 0; }
}
