@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Syne:wght@400;500;600;700&display=swap");

:root {
  --void: #07040a;
  --ink: #0c0812;
  --ember: #c45a32;
  --amber: #e0a86a;
  --honey: #f0d0b0;
  --rose: #a84860;
  --moon: #f6eee6;
  --moon-dim: rgba(246, 238, 230, 0.78);
  --smoke: rgba(240, 208, 176, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Syne", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--moon);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--amber);
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.live-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 70% 8%, rgba(196, 90, 50, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 12% 88%, rgba(168, 72, 96, 0.22), transparent 50%),
    linear-gradient(165deg, #07040a 0%, #100a14 45%, #0a0810 100%);
  animation: breath 16s ease-in-out infinite;
}

@keyframes breath {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
}

.live-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.live-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.live-nav__mark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--honey);
}

.live-nav a,
.live-nav button.linkish {
  background: none;
  border: none;
  color: var(--moon-dim);
  cursor: pointer;
  font-size: 0.85rem;
}

.hero-live {
  min-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-live__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 12vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--moon);
}

.hero-live__line {
  margin: 0;
  max-width: 22rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--moon-dim);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--ember), var(--rose));
  color: var(--moon);
  font-weight: 600;
}

.btn--ghost {
  background: transparent;
  border-color: var(--smoke);
  color: var(--honey);
}

.btn--danger {
  background: rgba(168, 72, 96, 0.25);
  border-color: rgba(168, 72, 96, 0.5);
}

.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--smoke);
  border-radius: 2px;
  padding: 0.7rem 0.85rem;
}

.dial {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.dial__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moon-dim);
}

.status {
  font-size: 0.9rem;
  color: var(--amber);
  min-height: 1.2em;
}

.status--err {
  color: #e08070;
}

.panel {
  display: none;
  animation: rise 0.6s var(--ease) both;
}

.panel.is-active {
  display: block;
}

.stage {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--smoke);
  overflow: hidden;
  margin: 1rem 0;
}

.stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.stage__self {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 28%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: #111;
}

.stage__self video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pulse-ring {
  width: 7rem;
  height: 7rem;
  margin: 2rem auto;
  border-radius: 50%;
  border: 2px solid rgba(196, 90, 50, 0.45);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(196, 90, 50, 0.35);
  }
  50% {
    transform: scale(1);
    box-shadow: 0 0 0 18px rgba(196, 90, 50, 0);
  }
}

.wait-copy {
  text-align: center;
  color: var(--moon-dim);
}

.tip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tip-chip {
  background: rgba(224, 168, 106, 0.12);
  border: 1px solid rgba(224, 168, 106, 0.35);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  border-radius: 2px;
  font-size: 0.85rem;
}

.tip-chip:hover {
  background: rgba(224, 168, 106, 0.22);
}

.toy-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--honey);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.toy-flag.is-hot {
  opacity: 1;
  animation: hot 0.6s ease;
}

@keyframes hot {
  from {
    transform: scale(1.08);
  }
  to {
    transform: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(5, 3, 8, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
  animation: rise 0.35s var(--ease);
}

.lightbox img {
  max-width: min(92vw, 520px);
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

/* Mina console */
.mina-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  position: relative;
  z-index: 1;
}

.mina-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .mina-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.card-soft {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--smoke);
  padding: 1rem 1.1rem 1.2rem;
}

.card-soft h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--smoke);
  font-size: 0.9rem;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.intensity {
  width: 100%;
  accent-color: var(--ember);
}

.feed {
  max-height: 180px;
  overflow: auto;
  font-size: 0.85rem;
  color: var(--moon-dim);
}

.feed div {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.timer {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--amber);
}

.toy-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  margin: 1rem 0;
}

.toy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--smoke);
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
}

.toy-card.is-on {
  border-color: rgba(196, 90, 50, 0.65);
  background: rgba(196, 90, 50, 0.12);
}

.toy-card__label {
  font-size: 0.8rem;
  color: var(--honey);
}

.toy-card__tag {
  font-size: 0.65rem;
  color: var(--moon-dim);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
}

.sub-context {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--moon-dim);
  line-height: 1.45;
}

.sub-context .rhys-whisper {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(232, 220, 200, 0.72);
  font-style: italic;
}

.sub-context strong {
  color: var(--honey);
  font-weight: 500;
}

.feed .tip-toast {
  color: var(--amber);
}

.feed .safe-toast {
  color: #e08070;
}

.hidden {
  display: none !important;
}

