:root {
  --bg: #101418;
  --accent: #ffb703;
  --text: #f5f5f5;
  --text-dim: #b8b8b8;
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}
#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0);
}

/* --- Video screen --- */
#video-screen {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#player-wrap {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: black;
}
#player-wrap iframe { width: 100%; height: 100%; }
#player-wrap:fullscreen,
#player-wrap:-webkit-full-screen {
  max-width: none;
  width: 100vw;
  height: 100vh;
}

#tap-to-start {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
#tap-to-start .btn {
  background: var(--accent);
  color: #101418;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 999px;
  border: none;
}
#tap-to-start.hidden { display: none; }

/* --- Quotes screen --- */
#quote-screen {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#quote-screen.visible { display: flex; opacity: 1; }

#quote-weather-line {
  font-size: 1.4rem;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 600;
}
#quote-text {
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 600px;
}
#quote-date {
  margin-top: 36px;
  color: var(--text-dim);
  font-size: 1rem;
}
#quote-streak {
  margin-top: 14px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}
#quote-streak.hidden { display: none; }
#replay-btn {
  margin-top: 40px;
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 1rem;
}

/* --- Location prompt (consent) --- */
#geo-consent {
  margin-top: 24px;
  max-width: 420px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#geo-consent .geo-title {
  color: var(--text);
  font-weight: 600;
}
#geo-consent .geo-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
#geo-consent button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--text);
}
#geo-consent #geo-yes {
  background: var(--accent);
  color: #101418;
  border: none;
  font-weight: 600;
}
#geo-consent.hidden { display: none; }

#geo-reactivate {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 6px;
}
#geo-reactivate.hidden { display: none; }
