:root {
  --bg: #09090b;
  --surface: #121216;
  --surface-elevated: #1a1a20;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-strong: rgba(255, 255, 255, 0.2);
  --gold: #f5b942;
  --text: #ffffff;
  --text-secondary: #e4e4e7;
  --text-muted: #a1a1aa;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #050507;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mono, .serif-italic {
  font-family: var(--font-sans);
  font-style: normal;
}

/* Full-Bleed 100dvh Mobile Canvas */
.shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  max-height: 932px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

@media (min-width: 440px) {
  .shell {
    height: 95dvh;
    border-radius: 32px;
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
  }
}

/* Full-Screen Living Bali Video */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.88) contrast(1.04);
}

.bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 11, 0.42) 0%,
    rgba(9, 9, 11, 0.04) 34%,
    rgba(9, 9, 11, 0.72) 64%,
    rgba(9, 9, 11, 0.97) 100%
  );
}

/* Minimal Top Bar */
.top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 18px 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 9, 11, 0.68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hairline-strong);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.play-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: #09090b;
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 150ms ease-out;
}

.play-pill:active {
  transform: scale(0.96);
}

/* Spacious Bottom Content Stage */
.bottom-stage {
  position: relative;
  z-index: 10;
  padding: 0 18px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-headline {
  font-size: clamp(28px, 7.2vw, 33px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-headline .accent-line {
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

/* The 2-Wristband Rule Pill */
.ritual-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(18, 18, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: 14px;
  padding: 10px 13px;
  cursor: pointer;
}

.ritual-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ritual-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ritual-text {
  font-size: 12.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.ritual-arrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

/* 4 Clean Bali Spot Thumbnails */
.spots-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.spot-chip {
  position: relative;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  background: var(--surface);
  transition: transform 150ms ease-out, border-color 150ms ease-out;
}

.spot-chip:active {
  transform: scale(0.96);
  border-color: var(--gold);
}

.spot-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
}

.spot-chip span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Primary Action Row */
.cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.btn-primary {
  background: var(--gold);
  color: #09090b;
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  text-align: center;
  transition: transform 150ms ease-out;
}

.btn-secondary {
  background: rgba(24, 24, 32, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  padding: 15px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: transform 150ms ease-out;
}

.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}

/* Slide-Up Sheets */
.sheet-backdrop, .reel-modal {
  position: absolute;
  inset: 0;
  z-index: 900;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  justify-content: flex-end;
}

.sheet-backdrop.open, .reel-modal.open {
  display: flex;
}

.sheet-box {
  background: var(--surface);
  border-top: 1px solid var(--hairline-strong);
  border-radius: 26px 26px 0 0;
  padding: 16px 18px max(20px, env(safe-area-inset-bottom));
  max-height: 88dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 2px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.close-x {
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

.drawer-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.drawer-thumb {
  width: 68px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--gold);
  flex-shrink: 0;
}

.drawer-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}

.drawer-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.drawer-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.38;
  margin-top: 3px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-item {
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 9px 10px;
}

.detail-item b {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.detail-item span {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.sv-frame {
  width: 100%;
  height: 130px;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
}

.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.act-btn {
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-elevated);
  border: 1px solid var(--hairline-strong);
}

.act-btn.primary {
  background: var(--gold);
  color: #09090b;
  border-color: var(--gold);
}

.map-container {
  position: relative;
  width: 100%;
  height: 58dvh;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
}

#baliMap {
  width: 100%;
  height: 100%;
  background: #0c0c10;
}

.map-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.map-pill {
  background: var(--surface-elevated);
  border: 1px solid var(--hairline-strong);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.map-pill.active {
  background: var(--gold);
  color: #09090b;
  border-color: var(--gold);
  font-weight: 700;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px;
  border-radius: 9px;
  cursor: pointer;
}

.mode-btn.active {
  background: var(--surface-elevated);
  color: var(--gold);
  font-weight: 700;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inp {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font-sans);
  outline: none;
}

.inp:focus {
  border-color: var(--gold);
}

.reel-box {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.reel-box video {
  width: 100%;
  max-height: 85dvh;
  border-radius: 20px;
  border: 1px solid var(--hairline-strong);
  background: #000;
}

.close-pill {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 18px;
  z-index: 950;
  background: rgba(9, 9, 11, 0.85);
  color: var(--text);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
