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

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&family=Crimson+Text:ital@0;1&display=swap');

:root {
  --chrome-hi:   #e8f0f4;
  --chrome:      #9aaab8;
  --chrome-mid:  #6a7e8c;
  --chrome-lo:   #3a4855;
  --brass-hi:    #e8c97a;
  --brass:       #c9a84c;
  --brass-mid:   #a8882e;
  --brass-lo:    #7a5a20;
  --burgundy:    #8b1538;
  --panel-bg:    #d8cdb5;
  --panel-dark:  #b8aa90;
  --panel-ink:   #1a1612;
  --text-warm:   #e8dcc8;
  --text-dim:    #8a7e6e;
  --shadow:      rgba(0,0,0,0.75);
}

/* ─── Landing ────────────────────────────────────────────────────────────── */
html { height: 100%; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: #0e0e0e;
  height: 100%;
}

/* Full-viewport column — no scroll, everything above the fold */
.landing {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Photo fills all space above the tier bar */
.viewer-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.viewer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* ── Horizontal tier bar ─────────────────────────────────────────────────── */
.tier-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: linear-gradient(180deg, #8c1020 0%, #6a0c18 100%);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.tier-form {
  display: flex;
  border-right: 1px solid rgba(0,0,0,0.25);
}
.tier-form:first-child { border-left: 1px solid rgba(0,0,0,0.25); }

.tier-item {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 13px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: background 0.12s;
}
.tier-item:hover  { background: rgba(255,255,255,0.09); }
.tier-item:active { background: rgba(0,0,0,0.18); }

.tier-duration {
  font-family: 'Oswald', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.tier-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.tier-cta {
  font-family: 'Oswald', sans-serif;
  font-size: 0.44rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ── Bottom strip ────────────────────────────────────────────────────────── */
.landing-bottom {
  flex-shrink: 0;
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 16px 10px;
}

.landing-caption {
  font-family: 'Oswald', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.landing-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  transition: color 0.15s;
}
.footer-link:hover { color: rgba(255,255,255,0.55); }

.footer-dot {
  color: rgba(255,255,255,0.1);
  font-size: 0.48rem;
  line-height: 1;
  user-select: none;
}

/* ─── Modals ────────────────────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 100;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-backdrop.visible { display: block; }

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  width: min(560px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #d4c9b0 0%, #c0b498 100%);
  border-radius: 4px;
  padding: 36px 40px 32px;
  box-shadow:
    0 0 0 1px var(--brass-lo),
    0 0 0 3px rgba(0,0,0,0.5),
    0 32px 64px rgba(0,0,0,0.8);
}
.modal.visible { display: block; }

.modal h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--panel-ink);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.18);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 -1px 0 rgba(0,0,0,0.25);
}

.modal p {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(20,15,8,0.8);
  margin-bottom: 14px;
}
.modal p:last-child { margin-bottom: 0; }

.modal strong {
  font-weight: 600;
  color: rgba(20,15,8,0.95);
}

.modal a {
  color: var(--brass-lo);
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(0,0,0,0.3);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}
.modal-close:hover { color: rgba(0,0,0,0.7); }

/* ─── Cancel / Error ────────────────────────────────────────────────────── */
.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.page h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-warm);
  margin-bottom: 16px;
}

.page p {
  font-style: italic;
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-mid));
  color: #2a1800;
  border-radius: 3px;
  padding: 11px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--brass-lo), 0 5px 10px rgba(0,0,0,0.5);
  transition: filter 0.1s;
}
.btn:hover { filter: brightness(1.1); }

/* ─── Stream page ───────────────────────────────────────────────────────── */
.stream-page {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

#video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
  Each half-div covers exactly 50% of the screen so they physically cannot overlap.
  Circle centres expressed as % of each div's own width:
    left  circle at 28% of screen = 56% of left-half div
    right circle at 72% of screen = 44% of right-half div  (72-50)/50
*/
.bino-left,
.bino-right {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  z-index: 9;
}

.bino-left {
  left: 0;
  background: radial-gradient(circle 68vmin at 56% 50%,
    transparent 78%,
    rgba(0,0,0,0.18) 86%,
    #000 100%
  );
}

.bino-right {
  right: 0;
  background: radial-gradient(circle 68vmin at 44% 50%,
    transparent 78%,
    rgba(0,0,0,0.18) 86%,
    #000 100%
  );
}

/* Loading indicator */
.stream-loading {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.stream-loading.hidden { opacity: 0; }

.loading-text {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: loadpulse 1.6s ease-in-out infinite;
}
@keyframes loadpulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.15; }
}

/* HUD */
.stream-hud {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg,
    rgba(20,16,10,0.92) 0%, rgba(10,8,5,0.95) 100%);
  border: 1px solid var(--brass-lo);
  border-radius: 3px;
  padding: 7px 18px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 4px 16px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(200,168,76,0.15);
  white-space: nowrap;
}

.hud-live {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cc2020;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud-live::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cc2020;
  box-shadow: 0 0 6px #cc2020, 0 0 12px rgba(200,32,32,0.4);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hud-sep {
  width: 1px;
  height: 12px;
  background: var(--brass-lo);
  opacity: 0.5;
}

.hud-location {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-lo);
  text-shadow: 0 1px 0 rgba(255,220,100,0.15), 0 -1px 0 rgba(0,0,0,0.6);
}

.hud-countdown {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* Stream ended */
.stream-ended {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.88);
}
.stream-ended.visible { display: flex; }

.ended-plate {
  background: linear-gradient(160deg, #d4c9b0 0%, #c0b498 100%);
  border-radius: 6px;
  padding: 36px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  box-shadow:
    0 0 0 2px var(--brass-lo),
    0 0 0 4px var(--brass),
    0 24px 48px rgba(0,0,0,0.8);
}

.ended-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.45),
    0 -1px 0 rgba(0,0,0,0.35);
}

.ended-plate .coin-btn,
.ended-plate .btn {
  background: linear-gradient(180deg, #a01840 0%, #7a1030 50%, #9a1838 100%);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 11px 28px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 3px 0 #4a0818, 0 5px 10px rgba(0,0,0,0.5);
}
