:root {
  --honey: #f0a83c;
  --honey-deep: #d9821f;
  --amber: #c9701a;
  --cream: #fffaf0;
  --cream-deep: #fdf1dc;
  --blush: #f2698a;
  --blush-soft: #f9a8bf;
  --ink: #3a2e1f;
  --ink-soft: #7a6a52;
  --shadow: rgba(139, 91, 21, 0.18);

  --font-display: "Fraunces", serif;
  --font-body: "Quicksand", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  position: relative;
}

/* ---------- background texture ---------- */

.honeycomb-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(242, 168, 60, 0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(242, 105, 138, 0.08), transparent 45%),
    linear-gradient(30deg, rgba(201, 112, 26, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(201, 112, 26, 0.06) 87.5%, rgba(201, 112, 26, 0.06)),
    linear-gradient(150deg, rgba(201, 112, 26, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(201, 112, 26, 0.06) 87.5%, rgba(201, 112, 26, 0.06)),
    linear-gradient(30deg, rgba(201, 112, 26, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(201, 112, 26, 0.06) 87.5%, rgba(201, 112, 26, 0.06)),
    linear-gradient(150deg, rgba(201, 112, 26, 0.06) 12%, transparent 12.5%, transparent 87%, rgba(201, 112, 26, 0.06) 87.5%, rgba(201, 112, 26, 0.06)),
    linear-gradient(60deg, rgba(201, 112, 26, 0.045) 25%, transparent 25.5%, transparent 75%, rgba(201, 112, 26, 0.045) 75%, rgba(201, 112, 26, 0.045)),
    linear-gradient(60deg, rgba(201, 112, 26, 0.045) 25%, transparent 25.5%, transparent 75%, rgba(201, 112, 26, 0.045) 75%, rgba(201, 112, 26, 0.045));
  background-size: 100% 100%, 100% 100%, 44px 76px, 44px 76px, 44px 76px, 44px 76px, 44px 76px, 44px 76px;
  background-position: 0 0, 0 0, 0 0, 0 0, 22px 38px, 22px 38px, 0 0, 22px 38px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.bee-orbit {
  position: relative;
  width: 220px;
  height: 90px;
  margin-bottom: 0.5rem;
}

.bee {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 2.1rem;
  filter: drop-shadow(0 4px 10px var(--shadow));
  animation: orbit 7s ease-in-out infinite;
  transform-origin: center;
}

.bee-a {
  animation-delay: 0s;
}

.bee-b {
  animation-delay: -3.5s;
}

@keyframes orbit {
  0%   { transform: translate(-50%, -50%) rotate(0deg) translateX(70px) rotate(0deg); }
  50%  { transform: translate(-50%, -50%) rotate(180deg) translateX(70px) rotate(-180deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(70px) rotate(-360deg); }
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--honey-deep);
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.15s;
}

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fade-up 0.9s ease forwards 0.35s;
}

.word-two {
  color: var(--ink);
}

.word-bees {
  background: linear-gradient(120deg, var(--honey-deep), var(--honey) 45%, var(--blush) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 1.1rem 0 0.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--ink);
  opacity: 0;
  animation: fade-up 0.9s ease forwards 0.55s;
}

.amp {
  color: var(--blush);
  font-style: normal;
}

.subtagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  opacity: 0;
  animation: fade-up 0.9s ease forwards 0.72s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hint {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-in-slow 1.4s ease forwards 2s;
  transition: color 0.2s ease;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.hint:hover {
  color: var(--honey-deep);
}

.hint:hover .hint-dot {
  box-shadow: 0 0 0 6px rgba(240, 168, 60, 0.18);
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--honey);
  transition: box-shadow 0.2s ease;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes fade-in-slow {
  from { opacity: 0; }
  to   { opacity: 0.75; }
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem 2rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* ---------- easter egg overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(58, 46, 31, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay.hidden {
  display: none;
}

.overlay-panel {
  position: relative;
  width: min(520px, 100%);
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-deep) 100%);
  border-radius: 28px;
  padding: 2rem 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(58, 46, 31, 0.35), 0 0 0 1px rgba(240, 168, 60, 0.25);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.overlay.visible .overlay-panel {
  transform: scale(1) translateY(0);
}

.close-btn {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(201, 112, 26, 0.1);
  color: var(--amber);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.close-btn:hover {
  background: rgba(201, 112, 26, 0.2);
  transform: rotate(90deg);
}

.game-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blush);
}

.game-title {
  margin: 0.2rem 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--ink);
}

.game-sub {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

#game-canvas {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(58, 46, 31, 0.25), inset 0 0 0 1px rgba(240, 168, 60, 0.3);
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.game-hud {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.game-hud strong {
  color: var(--honey-deep);
  font-size: 1.05rem;
}

.game-controls {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* ---------- responsive ---------- */

@media (max-width: 420px) {
  .overlay-panel {
    padding: 1.5rem 1.25rem 1.4rem;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bee, .eyebrow, .wordmark, .tagline, .subtagline, .hint, .hint-dot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
