/* ═══════════════════════════════════════════════
   Dog Show — Shared Styles
   est. 2026
   ═══════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1a1035;
  --bg-card: #241a45;
  --bg-warm: #2d1b4e;
  --accent: #7B68EE;
  --accent-dark: #6a5acd;
  --text-bright: #e0d8f0;
  --text-mid: #9B8FD0;
  --text-dim: #7B6BA0;
  --text-faint: #5a4d80;
  --border: #3d2d6b;
  --curtain: #4a2d8b;
  --curtain-light: #6a4dbb;
  --curtain-dark: #2d1560;
  --white: #f0ecff;
  --live-dot: #7B68EE;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── LANDING PAGE ─────────────────────────────── */

.landing-body {
  background: #0f0a22;
  color: #fff;
  font-family: var(--font-system);
  min-height: 100vh;
}

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.landing-presenting {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
}

.landing-title {
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 200;
  letter-spacing: -1px;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-tagline {
  color: var(--accent-dark);
  font-size: 15px;
  margin: 0 0 48px 0;
  font-weight: 300;
}

.landing-enter {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.landing-enter:hover {
  background: #8b7cf0;
  transform: scale(1.03);
}

.landing-enter.premium {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.landing-enter.premium:hover {
  background: rgba(123, 104, 238, 0.15);
}

/* Tier cards */
.landing-tiers {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.landing-tier {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.landing-tier.tier-premium {
  border-color: var(--accent);
  background: rgba(123, 104, 238, 0.08);
}

.landing-tier-badge {
  position: absolute;
  top: -10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
}

.landing-tier-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.landing-tier-price {
  font-size: 32px;
  font-weight: 200;
  color: #fff;
}

.landing-tier-perks {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

.landing-features {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  color: var(--text-faint);
  font-size: 12px;
}

.landing-features .dot,
.landing-trust .dot {
  color: var(--text-faint);
}

.landing-trust {
  position: fixed;
  bottom: 24px;
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  gap: 12px;
}

/* ─── CURTAIN REVEAL ───────────────────────────── */

.curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0f0a22;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.curtain-overlay.active {
  display: flex;
}

.curtain-rod {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  z-index: 1002;
}

.curtain-left,
.curtain-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 1001;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.curtain-left {
  left: 0;
  background: linear-gradient(90deg, var(--curtain) 0%, var(--curtain-light) 60%, var(--curtain-dark) 100%);
  box-shadow: inset -20px 0 40px rgba(0,0,0,0.4);
}

.curtain-right {
  right: 0;
  background: linear-gradient(270deg, var(--curtain) 0%, var(--curtain-light) 60%, var(--curtain-dark) 100%);
  box-shadow: inset 20px 0 40px rgba(0,0,0,0.4);
}

.curtain-left.open,
.curtain-right.open {
  width: 0%;
}

.curtain-text {
  text-align: center;
  font-family: var(--font-serif);
  color: #ccc;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1000;
}

.curtain-text.visible {
  opacity: 1;
}

.curtain-welcome { font-size: 24px; margin-bottom: 8px; }
.curtain-show-name { font-size: 48px; font-weight: bold; color: var(--accent); }
.curtain-enjoy { font-size: 16px; margin-top: 12px; color: var(--text-dim); }

/* ─── SHOW PAGE ────────────────────────────────── */

.show-body {
  background: var(--bg);
  font-family: var(--font-serif);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.show-header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.show-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.show-header-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-bright);
}

.show-header-est {
  font-size: 11px;
  color: var(--text-dim);
}

.show-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-badge {
  font-size: 12px;
  color: var(--live-dot);
}

.btn-vip {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 5px 14px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: bold;
  border-radius: 4px;
}

.btn-upload {
  background: var(--curtain-light);
  color: var(--white);
  border: none;
  padding: 5px 14px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: bold;
  border-radius: 4px;
}

.btn-lifetime {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border: none;
  padding: 5px 14px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: bold;
  border-radius: 4px;
}

/* Sponsor banner */
.sponsor-banner {
  background: var(--bg-card);
  color: var(--accent);
  text-align: center;
  padding: 6px;
  font-size: 12px;
  font-style: italic;
  overflow: hidden;
  white-space: nowrap;
  display: none;
}

.sponsor-banner.visible {
  display: block;
}

/* Main layout */
.show-main {
  flex: 1;
  display: flex;
  flex-direction: row;
  min-height: 0;
}

/* Dog display area */
.dog-stage {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* Mini curtain frame */
.dog-frame {
  position: relative;
  border: 3px solid var(--curtain);
  padding: 4px;
  background: #0f0a22;
  max-width: 480px;
  width: 100%;
}

.dog-frame-drape {
  height: 24px;
  background: linear-gradient(180deg, var(--curtain), var(--curtain-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.dog-frame-drape-inner {
  width: 60%;
  height: 12px;
  border-radius: 0 0 50% 50%;
  background: radial-gradient(ellipse at center, var(--curtain-light), var(--curtain));
}

.dog-viewport {
  position: relative;
  width: 100%;
  padding-bottom: 66%;
  background: #0a0618;
  overflow: hidden;
}

.dog-viewport img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dog-viewport img.loaded {
  opacity: 1;
}

.dog-frame-footer {
  height: 6px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
}

/* Dog name plate */
.dog-nameplate {
  margin-top: 12px;
  padding: 6px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-bright);
  font-style: italic;
  text-align: center;
}

.community-count {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

/* Bone reaction */
.bone-area {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.bone-btn {
  font-size: 14px;
  font-family: var(--font-serif);
  font-weight: bold;
  background: var(--bg-card);
  border: 2px solid #D4AF37;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.08);
}

.bone-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: #E0C04A;
}

.bone-btn:active {
  transform: scale(1.25);
}

.bone-count {
  font-size: 16px;
  font-weight: bold;
  color: #D4AF37;
  font-family: var(--font-serif);
  min-width: 30px;
}

.bone-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.bone-float {
  position: absolute;
  font-size: 24px;
  animation: boneUp 1.2s ease-out forwards;
  pointer-events: none;
}

@keyframes boneUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-180px) scale(0.5) rotate(30deg);
  }
}

/* Streak counter */
.bone-streak {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-system);
  min-width: 60px;
  transition: color 0.2s ease;
}

.bone-streak.hot {
  color: #D4AF37;
}

.bone-streak.fire {
  color: #FF6B35;
}

/* Bone Frenzy */
.bone-frenzy {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.bone-frenzy.active {
  display: flex;
  animation: frenzyPulse 0.6s ease-in-out infinite;
}

.bone-frenzy-text {
  font-size: 14px;
  font-weight: bold;
  font-family: var(--font-system);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #D4AF37;
}

.bone-frenzy-multi {
  font-size: 18px;
  font-weight: bold;
  font-family: var(--font-system);
  color: #FF6B35;
}

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

/* Frenzy mode — dog frame glow */
.dog-frame.frenzy {
  border-color: #D4AF37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3), 0 0 40px rgba(212, 175, 55, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dog-frame.frenzy .dog-frame-footer {
  background: linear-gradient(90deg, #D4AF37, #FF6B35, #D4AF37);
}

/* Intermission overlay */
.intermission-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.intermission-overlay.active {
  display: flex;
}

.intermission-card {
  border: 4px double var(--border);
  padding: 36px 48px;
  background: var(--bg-card);
  text-align: center;
  font-family: var(--font-serif);
  max-width: 90%;
}

.intermission-label {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.intermission-title {
  font-size: 24px;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.intermission-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-style: italic;
}

.intermission-divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 18px;
}

.intermission-sponsor {
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 10px 16px;
  background: var(--bg-warm);
  font-style: italic;
}

.intermission-sponsor strong {
  color: var(--text-mid);
}

.intermission-music {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-faint);
  font-style: italic;
}

/* ─── CHAT PANEL ───────────────────────────────── */

.chat-panel {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border);
  background: var(--bg-card);
}

.chat-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}

.chat-header-intermission {
  color: var(--accent);
  font-weight: normal;
  font-style: italic;
  display: none;
}

.chat-header-intermission.active {
  display: inline;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  max-height: calc(100vh - 180px);
}

.chat-msg {
  font-size: 13px;
  line-height: 1.4;
  padding: 2px 0;
}

.chat-msg.vip {
  padding: 2px 6px;
}

.chat-msg-user {
  font-weight: bold;
  font-size: 12px;
}

.chat-msg-user.me {
  color: var(--accent);
}

.chat-msg-text {
  color: var(--text-bright);
}

.chat-input-area {
  padding: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
}

.chat-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  font-family: var(--font-serif);
  font-size: 13px;
  outline: none;
  color: var(--text-bright);
}

.chat-send {
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-serif);
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
}

/* ─── MOBILE ───────────────────────────────────── */

@media (max-width: 700px) {
  .landing-tiers {
    flex-direction: column;
    gap: 16px;
  }

  .landing-tier {
    width: 100%;
    max-width: 280px;
  }

  .show-main {
    flex-direction: column;
  }

  .chat-panel {
    flex: 0 0 250px;
    border-left: none;
    border-top: 2px solid var(--border);
  }

  .chat-messages {
    max-height: 200px;
  }

  .dog-frame {
    max-width: 100%;
  }

  .landing-trust {
    position: relative;
    bottom: auto;
    margin-top: 48px;
  }
}

/* ─── ANIMATIONS ───────────────────────────────── */

@keyframes spin {
  to { transform: rotate(360deg); }
}
