/* ============================================================
   MythicalPomsky — design tokens
   Matches Myth's actual Twitch offline-screen art: bright sky-blue
   sky with clouds and stars, navy "sticker card" panels with hard
   offset shadows, cream/gold star accents, bubbly rounded type.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Manrope:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --sky-top: #7dc4fb;
  --sky-bottom: #2f74d6;
  --sky-accent: #6fd3ff;
  --navy: #17223f;
  --navy-deep: #0e1830;
  --navy-hi: #1f2d54;
  --cream: #f7e2b6;
  --gold: #eac468;
  --text-hi: #fdf8ee;
  --text-lo: #b9c2de;
  --border: rgba(247, 226, 182, 0.28);

  --font-display: 'Baloo 2', 'Segoe UI Rounded', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --sticker-shadow: 5px 6px 0 var(--navy-deep);
  --sticker-shadow-sm: 3px 4px 0 var(--navy-deep);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text-hi);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--sky-bottom);
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px),
    radial-gradient(circle at 12% 15%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 90% 65%, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 25%),
    radial-gradient(circle at 8% 75%, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 24%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 60%);
  background-size: 40px 40px, 40px 40px, auto, auto, auto, auto, auto;
  background-attachment: fixed;
}

a { color: var(--sky-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Decorative stars/clouds ---------- */

.sky-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.9;
}

.star--cream { background: var(--cream); }
.star--sm { width: 14px; height: 14px; }
.star--md { width: 22px; height: 22px; }
.star--lg { width: 32px; height: 32px; }

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.85);
  transform: rotate(45deg);
  border-radius: 2px;
}

.dashed-ring {
  position: absolute;
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 50%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 24px 56px;
  text-align: center;
  overflow: hidden;
}

.hero-card {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 32px 34px;
  background: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--sticker-shadow);
  transform: rotate(-1.2deg);
  z-index: 1;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -14px;
  right: 26px;
  width: 26px;
  height: 38px;
  border: 4px solid var(--gold);
  border-radius: 12px;
  border-bottom: none;
  transform: rotate(18deg);
}

.hero-card__star {
  position: absolute;
  z-index: 2;
}

.hero-card__star--tl { top: -12px; left: 22px; }
.hero-card__star--br { bottom: -10px; right: 30px; }

.aura {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid var(--text-hi);
  overflow: hidden;
  background: var(--navy-deep);
  transition: box-shadow 0.4s ease;
}

.aura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aura[data-live="true"] {
  box-shadow: 0 0 0 6px rgba(234, 196, 104, 0.35), 0 0 32px 6px rgba(234, 196, 104, 0.5);
}

.hero-card h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 2.9rem);
  margin: 0 0 6px;
  color: var(--cream);
  text-shadow: 3px 4px 0 var(--navy-deep);
  letter-spacing: 0.5px;
}

.hero-card .tagline {
  color: var(--text-lo);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Live status pill ---------- */

.status {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: -22px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: var(--navy);
  box-shadow: var(--sticker-shadow-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-lo);
  z-index: 2;
}

.status__star {
  color: var(--cream);
  font-size: 0.8rem;
}

.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-lo);
}

.status[data-live="true"] {
  color: var(--gold);
}

.status[data-live="true"] .status__dot {
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(234, 196, 104, 0.6);
  animation: pulse-dot 1.6s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(234, 196, 104, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(234, 196, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 196, 104, 0); }
}

.status-detail {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--navy-deep);
  min-height: 1.4em;
  position: relative;
  z-index: 1;
}

.status-detail strong { color: var(--navy); }

.cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 22px;
  padding: 13px 32px;
  border-radius: 999px;
  border: 3px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--sticker-shadow-sm);
  transition: transform 0.15s ease;
}

.cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}

/* ---------- Sections ---------- */

section.panel {
  position: relative;
  margin: 0 auto 30px;
  max-width: 720px;
  padding: 30px 28px;
  background: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--sticker-shadow-sm);
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

.panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 14px;
  color: var(--text-hi);
}

.panel p {
  color: var(--text-lo);
  margin: 0;
}

/* ---------- Schedule ---------- */

.schedule-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.schedule-pill {
  flex: 1 1 140px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-hi);
  border: 2px solid var(--border);
}

.schedule-pill .day {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.schedule-pill .time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-hi);
}

.schedule-pill .note {
  font-size: 0.82rem;
  color: var(--text-lo);
  margin-top: 4px;
}

.schedule-empty {
  color: var(--text-lo);
  font-size: 0.92rem;
}

/* ---------- Socials + 18+ gate ---------- */

.socials-gate {
  text-align: center;
  padding: 18px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
}

.socials-gate p {
  margin: 0 0 14px;
}

.socials-gate .fine-print {
  font-size: 0.78rem;
  color: var(--text-lo);
  margin-top: 12px;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  font-size: 0.95rem;
}

.btn-secondary:hover { background: rgba(234, 196, 104, 0.1); }

.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.socials-grid[hidden] { display: none; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--navy-hi);
  border: 2px solid var(--border);
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
}

.social-link:hover {
  text-decoration: none;
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Credit card ---------- */

.credit-card-wrap {
  text-align: center;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}

.credit-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--sticker-shadow-sm);
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.credit-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  color: var(--text-hi);
}

.credit-card__star { color: var(--gold); font-size: 0.75rem; }

.credit-card__heart {
  color: var(--gold);
  display: inline-block;
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .credit-card__heart { animation: none; }
}

/* ---------- Warranty easter egg page ---------- */

.warranty-wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.warranty-doc {
  position: relative;
  background: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--sticker-shadow);
  padding: 40px 34px 34px;
}

.warranty-seal {
  position: absolute;
  top: -26px;
  right: -14px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  border: 3px dashed var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.15;
  transform: rotate(12deg);
  box-shadow: var(--sticker-shadow-sm);
  z-index: 2;
}

.warranty-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  text-align: center;
  color: var(--cream);
  text-shadow: 2px 3px 0 var(--navy-deep);
  margin: 4px 0 10px;
}

.warranty-sub {
  text-align: center;
  color: var(--text-lo);
  font-size: 0.85rem;
  margin: 0 0 30px;
  line-height: 1.7;
}

.warranty-section {
  margin-bottom: 26px;
}

.warranty-section h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
  margin: 0 0 12px;
}

.warranty-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.warranty-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--text-hi);
  font-size: 0.94rem;
}

.warranty-list--good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.warranty-list--bad li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--text-lo);
  font-weight: 700;
}

.warranty-fine-print {
  color: var(--text-lo);
  font-size: 0.85rem;
  line-height: 1.75;
  font-style: italic;
  margin: 0;
}

.warranty-void-stamp {
  text-align: center;
  border: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(-1.5deg);
  margin: 0 0 30px;
}

.warranty-payment {
  text-align: center;
  padding-top: 6px;
  border-top: 2px dashed var(--border);
}

.warranty-payment p {
  color: var(--text-lo);
  font-size: 0.92rem;
  margin: 0 0 8px;
}

.warranty-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.warranty-signature__paw {
  font-size: 1.8rem;
  transform: rotate(-15deg);
}

.warranty-signature__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-hi);
  font-size: 0.95rem;
}

.warranty-signature__title {
  color: var(--text-lo);
  font-size: 0.78rem;
}

.warranty-back {
  text-align: center;
  margin-top: 24px;
}

.warranty-back a {
  color: var(--navy-deep);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.warranty-back a:hover { color: var(--navy); }

/* ---------- Footer ---------- */

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 24px 60px;
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.85rem;
}

footer a { color: var(--navy-deep); }
footer a:hover { color: var(--navy); }

.footer-egg {
  margin-top: 6px;
  opacity: 0.35;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.footer-egg:hover { opacity: 0.9; }

.footer-egg a { text-decoration: none; }
