/* ==========================================================================
   RACHEL'S PALM BEACH & ORLANDO - HERO VIEWPORT & TABLE PROPS
   ========================================================================== */

/* FULL VIEWPORT CONTAINER (LOCKED AT HERO & STORY CANVAS VIEWPOINT) */
.stage-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic mobile viewport height */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #060709;
}

/* BACKGROUND SEAMLESS VIDEOS (RESPONSIVE: MOBILE vs DESKTOP) */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
  will-change: filter, transform;
  transform-origin: center center;
}

.bg-video.is-loaded {
  opacity: 1;
}

.bg-video-mobile {
  display: block;
}

.bg-video-desktop {
  display: none;
}

@media (min-width: 769px) {
  .bg-video-mobile {
    display: none;
  }
  .bg-video-desktop {
    display: block;
  }
}

/* HIGH-EXPOSURE LIGHT BLEED OVERLAY */
.light-bleed-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.98) 0%, #FFFFFF 75%);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
  will-change: opacity;
}

/* ==========================================================================
   AUTHENTIC 3D A-FRAME TABLE TENT (RIGHT FOREGROUND TABLETOP PLACEMENT)
   ========================================================================== */
.table-tent-anchor {
  position: absolute;
  right: 36px;
  bottom: 205px; /* Pushed back onto the table, well behind the glass and clear of the bottom buttons */
  width: 90px;
  height: 130px;
  z-index: 45;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 480px) {
  .table-tent-anchor {
    right: 48px;
    bottom: 215px;
    width: 98px;
    height: 140px;
  }
}

@media (min-width: 769px) {
  .table-tent-anchor {
    right: max(260px, 31vw);
    bottom: 135px; /* Moved down with new space */
    width: 130px;
    height: 175px;
  }
}

@media (min-width: 1200px) {
  .table-tent-anchor {
    right: max(320px, 32.5vw);
    bottom: 140px; /* Moved down with new space */
    width: 138px;
    height: 185px;
  }
}

/* Soft Elliptical Contact Shadow on the Tablecloth */
.tent-ground-shadow {
  position: absolute;
  bottom: -10px;
  left: -8%;
  width: 142%;
  height: 24px;
  background: radial-gradient(ellipse 68% 52% at 46% 48%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 42%, rgba(0, 0, 0, 0.2) 68%, transparent 82%);
  filter: blur(4.5px);
  transform: rotateX(68deg) rotateZ(-3deg);
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
}

/* 3D Folded Paper Assembly */
.tent-3d-rig {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateY(-18deg) rotateX(10deg) rotateZ(-1deg);
  transform-origin: center bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.table-tent-anchor:hover .tent-3d-rig {
  transform: rotateY(-13deg) rotateX(6deg) rotateZ(0deg) translateY(-5px);
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.75));
}

.table-tent-anchor:hover .tent-ground-shadow {
  transform: rotateX(68deg) rotateZ(-3deg) scale(1.1);
  opacity: 0.75;
  filter: blur(6.5px);
}

.table-tent-anchor:active .tent-3d-rig {
  transform: rotateY(-18deg) rotateX(12deg) scale(0.97);
}

/* Front Menu Card Face */
.tent-front-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(172deg, #181a1f 0%, #101115 45%, #08090b 100%);
  border: 1px solid rgba(230, 0, 46, 0.45);
  border-radius: 4px 4px 1px 1px;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    inset 0 0 16px rgba(0, 0, 0, 0.92),
    3px 8px 24px rgba(0, 0, 0, 0.75);
  padding: 7px 5px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  backface-visibility: hidden;
}

/* Authentic Tabletop Event Flyer Image & Frame */
.tent-front-face.tent-flyer-face {
  padding: 0;
  background: #08090b;
  border: 1px solid rgba(230, 0, 46, 0.45);
}

.tent-flyer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 3px;
  pointer-events: none;
}

/* Top Apex Crease Highlight */
.tent-top-crease {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0%, rgba(230, 0, 46, 0.28) 60%, transparent 100%);
  border-radius: 4px 4px 0 0;
  pointer-events: none;
}

/* Ambient Gold Shimmer Across Face */
.tent-sheen {
  position: absolute;
  top: 0;
  left: 10%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), rgba(230, 0, 46, 0.08), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

/* Triangular White Paper Side Profile (Matching A-Frame Reference) */
.tent-side-fold {
  position: absolute;
  top: 0;
  right: -22px;
  width: 24px;
  height: 100%;
  transform-origin: left bottom;
  transform: rotateY(68deg) skewY(-6deg);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  background: linear-gradient(145deg, #ffffff 0%, #edeae3 35%, #bfb9ac 75%, #6a665e 100%);
  box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Tent Typography & Graphics */
.tent-inner-border {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(230, 0, 46, 0.22);
  border-radius: 2px;
  padding: 5px 3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background: radial-gradient(ellipse at center, rgba(230, 0, 46, 0.04) 0%, transparent 80%);
}

.tent-header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.tent-crest {
  font-size: 6px;
  letter-spacing: 1.5px;
  color: #E6002E;
  line-height: 1;
  margin-bottom: 1px;
}

.tent-brand-name {
  font-family: var(--font-display);
  font-size: clamp(7.5px, 1.6vw, 9px);
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #FAF9F6;
  line-height: 1.1;
  text-transform: uppercase;
}

.tent-sub-brand {
  font-family: var(--font-primary);
  font-size: clamp(5px, 1.1vw, 6px);
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #E6002E;
  text-transform: uppercase;
}

.tent-gold-divider {
  width: 75%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 0, 46, 0.65), transparent);
  margin: 1px 0;
}

.tent-specials-tag {
  font-family: var(--font-display);
  font-size: clamp(7px, 1.4vw, 8.5px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #FF4D6D;
  text-shadow: 0 0 8px rgba(230, 0, 46, 0.45);
  line-height: 1.1;
  text-transform: uppercase;
}

.tent-items-list {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  width: 100%;
  padding: 0 1px;
}

.tent-item-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tent-item-title {
  font-family: var(--font-primary);
  font-size: clamp(6px, 1.2vw, 7.2px);
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #FAF9F6;
  text-transform: uppercase;
  line-height: 1.1;
}

.tent-item-sub {
  font-family: var(--font-mono);
  font-size: clamp(4.8px, 0.95vw, 5.8px);
  font-weight: 500;
  color: rgba(230, 0, 46, 0.9);
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.tent-footer-ornament {
  font-size: 5.5px;
  letter-spacing: 1.5px;
  color: rgba(230, 0, 46, 0.6);
  line-height: 1;
  margin-top: 1px;
}

/* ==========================================================================
   AUTHENTIC PLAIN BLACK LEATHER MENU BOOK (LAYING FLAT ON TABLETOP)
   ========================================================================== */
.plain-leather-menu-anchor {
  position: absolute;
  left: 14px;
  bottom: 140px;
  width: 110px;
  height: 165px;
  z-index: 40;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  opacity: 1;
  visibility: visible;
}

@media (max-width: 375px) {
  .plain-leather-menu-anchor {
    left: 8px;
    bottom: 135px;
    width: 95px;
    height: 142px;
  }
}

@media (min-width: 480px) {
  .plain-leather-menu-anchor {
    left: 20px;
    bottom: 145px;
    width: 125px;
    height: 188px;
  }
}

@media (min-width: 769px) {
  .plain-leather-menu-anchor {
    left: calc(max(180px, 22vw) + 100px);
    bottom: 125px; /* Moved down 10px */
    width: 215px;
    height: 250px;
    perspective: 900px;
  }

  .plain-leather-menu-anchor .plain-book-3d-rig {
    transform: rotateY(8deg) rotateX(8deg) rotateZ(0.4deg);
    transform-origin: center bottom;
  }

  .plain-leather-menu-anchor .plain-book-img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 2px rgba(10, 8, 6, 0.8));
  }

  .plain-leather-menu-anchor .plain-menu-ground-shadow {
    position: absolute;
    bottom: -4px;
    left: 2%;
    width: 96%;
    height: 14px;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 80%);
    filter: blur(3px);
    transform: rotateX(68deg) rotateZ(0.4deg);
    opacity: 0.95;
  }
}

@media (min-width: 1200px) {
  .plain-leather-menu-anchor {
    left: calc(max(210px, 24vw) + 100px);
    bottom: 130px; /* Moved down 10px */
    width: 235px;
    height: 265px;
    perspective: 950px;
  }

  .plain-leather-menu-anchor .plain-book-3d-rig {
    transform: rotateY(8deg) rotateX(8deg) rotateZ(0.4deg);
    transform-origin: center bottom;
  }

  .plain-leather-menu-anchor .plain-book-img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 2px rgba(10, 8, 6, 0.8));
  }

  .plain-leather-menu-anchor .plain-menu-ground-shadow {
    bottom: -4px;
    left: 2%;
    width: 96%;
    height: 14px;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 80%);
    filter: blur(3px);
    transform: rotateX(68deg) rotateZ(0.4deg);
    opacity: 0.95;
  }
}

/* Tablecloth Contact Shadow Beneath Leather Menu */
.plain-menu-ground-shadow {
  position: absolute;
  bottom: -6px;
  left: 2%;
  width: 96%;
  height: 32%;
  background: radial-gradient(ellipse at 50% 50%, rgba(8, 6, 4, 0.85) 0%, rgba(18, 14, 10, 0.45) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(7px);
  transform: rotateX(42deg);
  pointer-events: none;
}

/* 3D Flat Tabletop Plane Rig (Straight / Parallel with Glass) */
.plain-book-3d-rig {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateX(38deg);
  transform-origin: center center;
}

/* Photographic Plain Leather Menu Book Image */
.plain-book-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.92)) drop-shadow(0 2px 4px rgba(20, 15, 10, 0.6));
  pointer-events: none;
}

/* ==========================================================================
   LUXURY GLASSMORPHIC DOCK & CONTROLS (SECTION 0 HERO)
   ========================================================================== */
.table-dock {
  position: relative;
  z-index: 60;
  padding: 0 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mode-switcher {
  display: flex;
  width: 100%;
  padding: 5px;
  background: rgba(12, 14, 20, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.6),
    0 20px 45px -10px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  position: relative;
  gap: 6px;
  animation: heroPropsIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mode-tab {
  flex: 1;
  min-width: 0;
  padding: 11px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-primary);
  font-size: clamp(0.64rem, 2.4vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.mode-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.mode-tab:active {
  transform: scale(0.97);
}

/* ACTIVE GLASS STATE - LUMINOUS FROSTED CRYSTAL PILL */
.mode-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 243, 248, 0.92) 100%);
  color: #060709;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 4px 22px rgba(255, 255, 255, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px #FFFFFF,
    inset 0 -1px 2px rgba(0, 0, 0, 0.12);
}

.mode-tab.active .tab-icon {
  color: #060709;
  opacity: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

/* SUBTLE GLASS SHEEN SPECULAR SWEEP */
.mode-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
}

.mode-tab:hover::before {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

/* BESPOKE REDESIGNED SVG ICONS */
.tab-icon {
  width: 17px;
  height: 17px;
  color: currentColor;
  flex-shrink: 0;
  opacity: 0.88;
  transition: all 0.25s ease;
  display: inline-block;
  vertical-align: middle;
}

.tab-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.dock-status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: clamp(0.78rem, 2.6vw, 0.86rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 14px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  animation: cinematicStatusIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s both;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: 2;
}

.dock-status-line .status-sep {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

@media (min-width: 520px) {
  .mode-tab {
    padding: 13px 18px;
    gap: 9px;
    font-size: 0.84rem;
  }
  .tab-icon {
    width: 18px;
    height: 18px;
  }
  .dock-status-line {
    font-size: 0.90rem;
    gap: 12px;
    margin-top: 15px;
  }
}

@media (min-width: 769px) {
  .table-dock {
    max-width: 600px;
    padding-bottom: 24px;
  }
  .dock-status-line {
    font-size: 0.98rem;
    gap: 14px;
    margin-top: 12px;
  }
  .mode-tab {
    font-size: 0.85rem;
    padding: 13px 22px;
  }
  .tab-icon {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   SYNCHRONIZED HERO ENTRANCE KEYFRAMES
   ========================================================================== */
@keyframes heroPropsIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes cinematicBrandIn {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cinematicCardIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotateX(12deg) rotateY(-8deg) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) rotateY(0deg) scale(1);
  }
}

@keyframes cinematicDockIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematicStatusIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video,
  .brand-block,
  .rewards-card-btn,
  .mode-switcher,
  .dock-status-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
