/* Entry Page — Return To Sauce
   Immersive initiation experience.
   Pure CSS + JS. No frameworks.
*/

:root {
  --bg: #0a0a12;
  --bg-deep: #05050a;
  --accent: #c5a26f;       /* Warm gold / parchment */
  --accent-bright: #e8d5a3;
  --text: #e8e0d0;
  --text-dim: #9a8f7a;
  --sauce-red: #9c2d2d;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  overflow: hidden;
  height: 100%;
  cursor: default;
}

#entry {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 40%, #1a1625 0%, var(--bg-deep) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  user-select: none;
}

/* Subtle animated starfield */
#stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: 
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 40% 70%, #c5a26f, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(1px 1px at 85% 55%, #e8d5a3, transparent),
    radial-gradient(1px 1px at 15% 85%, #fff, transparent);
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite alternate;
  opacity: 0.6;
}

@keyframes twinkle {
  from { opacity: 0.4; }
  to { opacity: 0.75; }
}

/* Main content */
.content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 680px;
  padding: 0 2rem;
}

.pre-title {
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.main-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -1.5px;
  margin: 0 0 1.25rem;
  color: var(--accent-bright);
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 420px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  line-height: 1.4;
}

.cta {
  display: inline-block;
  background: transparent;
  color: var(--accent-bright);
  border: 1px solid var(--accent);
  padding: 1rem 2.75rem;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cta:hover {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent-bright);
}

.progress {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  background: rgba(10, 10, 18, 0.6);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(197, 162, 111, 0.2);
}

.progress .count {
  color: var(--accent);
  font-weight: 600;
}

/* Solo Vino — Entry Page version (pixel + charming) */
.solo-vino {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 30;
  width: 92px;
  height: 92px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.solo-vino:hover {
  transform: translateY(-4px) scale(1.03);
}

.solo-vino:active {
  transform: scale(0.95);
}

/* Wisdom bubble */
.wisdom-bubble {
  position: fixed;
  bottom: 7.5rem;
  right: 4.5rem;
  max-width: 240px;
  background: #1f1a2e;
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.35;
  border-radius: 4px;
  z-index: 40;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.wisdom-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

.wisdom-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 28px;
  border: 8px solid transparent;
  border-top-color: #1f1a2e;
  border-bottom: 0;
}

/* Hidden interactive elements */
.goji-star {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #c5a26f;
  border-radius: 50%;
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 0 8px #e8d5a3;
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.goji-star.found {
  opacity: 0.15;
  pointer-events: none;
  transform: scale(0.6);
}

.nouns-bottle {
  position: absolute;
  width: 28px;
  height: 38px;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.15s ease;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.nouns-bottle.found {
  opacity: 0.3;
  pointer-events: none;
}

/* Void click zone (for the 10-click glitch egg) */
.void-zone {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: crosshair;
}

/* Konami hint (very subtle) */
.konami-hint {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  color: rgba(232, 224, 208, 0.25);
  z-index: 1;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 640px) {
  .main-title {
    font-size: 2.8rem;
  }
  .solo-vino {
    width: 68px;
    height: 68px;
    bottom: 2rem;
    right: 1.5rem;
  }
  .wisdom-bubble {
    max-width: 180px;
    font-size: 0.85rem;
    bottom: 5.5rem;
    right: 1.5rem;
  }
}
