/* ========================================= */
/* 1. GLOBAL SETTINGS                        */
/* ========================================= */

body {
  margin: 0;
  background: #191919;
  cursor: default;
  font-family: 'Mate', serif;
  overflow: hidden;
}






.frame {
  width: 100vw;
  height: 100vh;
  background: #191919;
  position: absolute; 
  top: 0;
  left: 0;
  overflow: hidden;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ========================================= */
/* 2. INTRO SCREEN                           */
/* ========================================= */

.title {
  position: absolute;
  top: 360px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 80px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  padding-right: 20px; 
  padding-left: 20px;  
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.1s;
}




.start-btn {
  width: 81px;
  height: 81px;
  position: absolute;
  top: 566px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.4s;
}

.start-btn span {
  color: black;
  font-size: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 3;
}

/* --- WATER RINGS (Automatic Pulse) --- */
.start-btn::before,
.start-btn::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 95px; height: 95px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  
  /* CHANGED: Set Opacity to 1 so they are visible immediately */
  opacity: 1;
  z-index: 1;
  
  /* CHANGED: Animation runs constantly, not just on hover */
  animation: waterPulseSmall 4s infinite ease-in-out;
}

/* Style for Ring 1 */
.start-btn::before {
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 0 12px rgba(0, 0, 0, 0.30),
    0 0 0 24px rgba(255, 255, 255, 0.25),
    0 0 0 36px rgba(0, 0, 0, 0.20);
}

/* Style for Ring 2 (Delayed slightly for ripple effect) */
.start-btn::after {
  border: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 15px rgba(255, 255, 255, 0.30),
    0 0 0 30px rgba(0, 0, 0, 0.25),
    0 0 0 45px rgba(255, 255, 255, 0.18);
    
  /* Offset animation so they don't pulse at exact same time */
  animation-delay: 0.7s; 
}

/* (Delete the old .start-btn:hover::before/after block completely) */

@keyframes waterPulseSmall {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.25; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
}

.start-btn.expand-rings::before,
.start-btn.expand-rings::after {
  opacity: 1;
  animation: expandCircle 0.7s forwards ease-out;
}

@keyframes expandCircle {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  60% { transform: translate(-50%, -50%) scale(6); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(12); opacity: 0; }
}

.author {
  position: absolute;
  top: 732px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.8s;
}


/* ========================================= */
/* 3. COTTAGE SCREEN (Main UI)               */
/* ========================================= */

.cottage-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.cottage-header {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
 /* CHANGE: Asymmetric padding to balance the "About" text */
  /* Left is 50px (to push the text inward) */
  /* Right is 35px (standard spacing for icons) */
  padding-left: 45px;
  padding-right: 25px;
  
  box-sizing: border-box;
  z-index: 60;
  pointer-events: none;
}

.cottage-title {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 48px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}


/* ========================================= */
/* 4. HEADER BUTTONS                         */
/* ========================================= */

.toggle-wrapper {
  position: relative;
  cursor: pointer;
  z-index: 60; 
  /* Hit area size */
  width: 44px; 
  height: 44px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 0.3s ease;
}

/* HOVER: Just Scale */
.toggle-wrapper:hover {
  transform: scale(1.15);
}

.open-state {
  position: absolute;
  transition: opacity 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

/* --- ABOUT TEXT (Kept Big) --- */
.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; 
  font-weight: 600; 
  font-size: 28px;
  color: #FFFFFF;
  white-space: nowrap;
}

/* --- TEXT ICON (Bigger) --- */
.icon-text {
  /* INCREASED: From 30px to 36px */
  width: 36px; 
  height: auto;
  filter: brightness(0) invert(1); 
}

/* --- THE "X" --- */
.close-state {
  position: absolute;
  /* Adjusted to match new icon size */
  width: 30px; 
  height: 30px;
  
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-state::before,
.close-state::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; 
  height: 2px;
  background-color: white;
  border-radius: 2px;
}
.close-state::before { transform: translate(-50%, -50%) rotate(45deg); }
.close-state::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.toggle-wrapper.active .open-state {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}
.toggle-wrapper.active .close-state {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}


/* ========================================= */
/* 5. SOUND ICON (Adjusted: 32px)            */
/* ========================================= */

.icon-sound {
  position: relative;
  /* CHANGED: Reduced from 36px to 32px */
  width: 32px; 
  height: 32px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* HOVER: Just Scale */
.icon-sound:hover {
  transform: scale(1.15);
}

/* The Play Triangle */
.sound-dot {
  width: 0; height: 0;
  background: transparent;
  
  /* Adjusted triangle size for 32px container */
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid white; 
  
  border-radius: 0;
  transition: all 0.3s ease;
  transform: translateX(1.5px); 
  z-index: 3;
}

/* The Ring */
.sound-ring {
  position: absolute;
  top: 50%; left: 50%;
  
  /* Matches container size (32px) */
  width: 32px; 
  height: 32px;
  
  border-radius: 50%;
  border: 1.5px solid white; 
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 1; 
  transition: opacity 0.3s;
}

/* Active State (Dot) */
.icon-sound.sound-on .sound-dot {
  width: 6px; 
  height: 6px;
  background: white;
  border: none; border-radius: 50%; 
  transform: translateX(0); 
}

.icon-sound.sound-on .sound-ring {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.9); 
  animation: ringPulse 2.8s infinite ease-out;
}

@keyframes ringPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ========================================= */
/* 6. SLIDE-OUT PANELS (No Shadows)          */
/* ========================================= */

.text-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  background: #1C1C1C;
  z-index: 50;
  
  /* FIX: No Box Shadow on the screen edge */
  box-shadow: none; 
  
  transform: translateX(100%); 
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-panel.visible {
  transform: translateX(0);
}

.about-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 380px;
  background: #1C1C1C;
  z-index: 58; 
  
  /* FIX: No Box Shadow on the screen edge */
  box-shadow: none; 
  
  transform: translateX(-100%); 
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-panel.visible {
  transform: translateX(0);
}

/* ========================================= */
/* 6. CHAPTER VISIBILITY (The Logic to Hide) */
/* ========================================= */

/* 1. Hide ALL chapters by default */
.chapter-block {
  display: none;
  opacity: 0;
}

/* 2. Show ONLY the one with the 'active' class */
.chapter-block.active {
  display: block;
  opacity: 1;
  /* Optional: Fade in animation */
  animation: fadeContentIn 0.6s ease-out forwards;
}

@keyframes fadeContentIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ========================================= */
/* 7. PANEL CONTENT                          */
/* ========================================= */

.frame-image {
  position: absolute;
  inset: 15px; 
  z-index: 10;
  pointer-events: none;
}
.frame-image img {
  width: 100%; height: 100%; object-fit: fill; display: block;
}

.text-panel-inner, 
.about-panel-inner {
  position: absolute; 
  top: 80px; bottom: 80px;
  left: 30px; right: 30px;
  
  /* CHANGE: Removed top/bottom padding so Sticky works */
  padding: 0  20px;
  
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: none;
  
  display: block; /* Changed from flex to block for better sticky behavior */
  
  z-index: 20; 
}
.text-panel-inner::-webkit-scrollbar,
.about-panel-inner::-webkit-scrollbar { display: none; }

.text-panel-title {
  color: #F4F1F3 !important;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-style: italic;
  font-size: 24px; 
  
  border-top: 1px solid rgba(255, 255, 255, 0.3); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  
  text-align: left;
  width: 100%;

  /* --- STICKY LOGIC --- */
  position: sticky;
  top: 0;
  background-color: #1C1C1C; /* Hides text scrolling behind */
  z-index: 10;
  
  /* Added padding here to replace the container padding */
  padding: 20px 0; 
  margin-top: 0;
  margin-bottom: 20px; 
}

.text-panel-inner p,
.about-panel-inner p {
  color: #F4F1F3 !important;
  font-family: 'Mate', serif;
  font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  white-space: pre-line; 
  text-align: left;
  margin: 0;
  width: 100%;
}

/* ABOUT SPECIFICS */
/* --- ABOUT SPECIFICS --- */

.about-content {
  /* Remove flex centering that breaks sticky */
  display: block; 
  text-align: center; 
  width: 100%;
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 36px; line-height: 1.1;
  color: #F4F1F3; 
  text-transform: uppercase; letter-spacing: 0.05em;

  /* --- STICKY LOGIC --- */
  position: sticky;
  top: 0;
  background-color: #1C1C1C;
  z-index: 10;
  
  /* Spacing */
  margin: 0;
  padding-top: 5px;
  padding-bottom: 5px;
  width: 100%;
}
.separator {
  width: 100px; height: 1px;
  background-color: rgba(244, 241, 243, 0.4);
  margin: 10px auto;
}
.about-description { text-align: center !important; }
.credits {
  display: flex; flex-direction: column;
  gap: 20px; margin-top: 40px;
}
.credit-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 18px; color: #F4F1F3; 
  text-transform: uppercase; letter-spacing: 0.1em; margin: 0;
}
.credit-role {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-weight: 400; font-size: 16px; color: rgba(244, 241, 243, 0.6); 
}
.about-footer {
  margin-top: 30px;
  font-family: 'Cormorant Garamond', serif; 
  font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(244, 241, 243, 0.3);
}

/* STORY FORMAT */
.narrative { margin-bottom: 20px; }
.dialogue {
  margin: 20px 0 20px 15px;
  padding-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.4); 
  font-style: italic;
  color: rgba(244, 241, 243, 0.85);
}
.chant {
  text-align: center; margin: 30px 0;
  font-family: 'Cormorant Garamond', serif; 
  font-weight: 700; font-style: italic;
  font-size: 20px; line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}


/* ========================================= */
/* 7. MAIN NAVIGATION (BOTTOM ARROWS)        */
/* ========================================= */

.main-nav {
  position: absolute;
  bottom: 40px; 
  left: 50%;
  transform: translateX(-50%); 
  
  display: flex;
  align-items: center;
  gap: 50px; 
  
  z-index: 40; 
  pointer-events: auto;
}

/* --- THE ARROWS --- */
.nav-btn {
  width: 28px; 
  height: 28px;
  
  cursor: pointer;
  opacity: 1; 
  transition: transform 0.3s ease; /* Only animate transform now */
  
  /* Static White Color + Subtle Shadow */
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

.nav-btn:hover {
  /* ONLY Scale Up */
  transform: scale(1.2);
}

/* --- THE CENTRAL STAR (MENU) --- */
.nav-menu-btn {
  width: 30px; 
  height: 30px;
  
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease; /* Only animate transform now */
  
  /* Static White Color + Subtle Shadow */
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
}

.nav-menu-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-menu-btn:hover {
  /* ONLY Scale Up */
  transform: scale(1.15);
}


/* ========================================= */
/* 8. MENU OVERLAY (CSS-Only Shapes)         */
/* ========================================= */

.frame-menu {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 200;
  background: #191919;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.frame-menu.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- CLOSE BUTTON --- */
.close-menu-btn {
  position: fixed;
  top: 25px; right: 40px;
  z-index: 210;
  width: 44px; height: 44px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-menu-btn::before,
.close-menu-btn::after {
  content: ''; position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
}
.close-menu-btn::before { transform: translate(-50%, -50%) rotate(45deg); }
.close-menu-btn::after { transform: translate(-50%, -50%) rotate(-45deg); }

.close-menu-btn:hover { transform: scale(1.15); }


/* --- THE GRID (Responsive Scale) --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 30px;
  
  /* 1. HEIGHT PRIORITY */
  /* Use 85% of the screen height. This ensures it always fits vertically. */
  height: 85vh; 
  
  /* 2. WIDTH based on HEIGHT */
  /* This ratio (1.1 width to 1 height) keeps the grid shape correct. 
     If height shrinks, width shrinks. If height grows, width grows. */
  aspect-ratio: 1.08 / 1;
  
  /* 3. SAFETY LIMITS */
  /* Don't get wider than the screen width */
  max-width: 90vw; 
  /* Don't get absolutely massive on huge monitors */
  max-height: 900px; 
  
  /* Center it */
  margin: auto;
  align-content: center;
}

/* --- THE CARD (Outer Shape / White Border) --- */
.menu-card {
  position: relative;
  width: 100%;
  aspect-ratio: 256 / 370;
  cursor: pointer;
  
  /* 1. This creates the White Border Color */
  background-color: #FFFFFF; 
  
  /* 2. This cuts the Outer Shape */
  --r: 25px; /* Radius of the curve */
  -webkit-mask: 
    radial-gradient(circle var(--r) at 0 0, transparent 98%, black 100%) top left,
    radial-gradient(circle var(--r) at 100% 0, transparent 98%, black 100%) top right,
    radial-gradient(circle var(--r) at 100% 100%, transparent 98%, black 100%) bottom right,
    radial-gradient(circle var(--r) at 0 100%, transparent 98%, black 100%) bottom left;
  -webkit-mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;
  mask: 
    radial-gradient(circle var(--r) at 0 0, transparent 98%, black 100%) top left,
    radial-gradient(circle var(--r) at 100% 0, transparent 98%, black 100%) top right,
    radial-gradient(circle var(--r) at 100% 100%, transparent 98%, black 100%) bottom right,
    radial-gradient(circle var(--r) at 0 100%, transparent 98%, black 100%) bottom left;
  mask-size: 51% 51%;
  mask-repeat: no-repeat;

  /* Animation Setup */
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
}

/* --- THE INNER CONTENT (Black Background + Video) --- */
.card-inner {
  position: absolute;
  /* This creates the 1px Border (Gap between outer white and inner black) */
  top: 1px; left: 1px; right: 1px; bottom: 1px;
  
  background-color: #000;
  
  /* Must repeat the mask so the inner content curves too */
  -webkit-mask: 
    radial-gradient(circle var(--r) at 0 0, transparent 98%, black 100%) top left,
    radial-gradient(circle var(--r) at 100% 0, transparent 98%, black 100%) top right,
    radial-gradient(circle var(--r) at 100% 100%, transparent 98%, black 100%) bottom right,
    radial-gradient(circle var(--r) at 0 100%, transparent 98%, black 100%) bottom left;
  -webkit-mask-size: 51% 51%;
  -webkit-mask-repeat: no-repeat;
  mask: 
    radial-gradient(circle var(--r) at 0 0, transparent 98%, black 100%) top left,
    radial-gradient(circle var(--r) at 100% 0, transparent 98%, black 100%) top right,
    radial-gradient(circle var(--r) at 100% 100%, transparent 98%, black 100%) bottom right,
    radial-gradient(circle var(--r) at 0 100%, transparent 98%, black 100%) bottom left;
  mask-size: 51% 51%;
  mask-repeat: no-repeat;
  
  overflow: hidden;
}

.card-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.01); /* Slight scale to prevent pixel gaps */
  transition: transform 0.6s ease;
}

/* --- OVERLAY (The Darkness) --- */
.card-overlay {
  position: absolute;
  inset: 0;
  
  /* CHANGED: Increased from 0.6 to 0.85 (Very Dark) */
  background: rgba(0, 0, 0, 0.75); 
  
  transition: background 0.4s ease;
  z-index: 2;
}

.card-title {
  position: absolute;
  bottom: 15px; left: 0; width: 100%;
  text-align: center;
  z-index: 10;
  
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 700; font-size: 20px;
  color: #F4F1F3;
  text-shadow: 0 2px 8px rgba(0,0,0,1);
  
  /* Dimmed by default */
  opacity: 0.7; 
  transition: all 0.4s ease;
}

/* --- ANIMATION (Entrance) --- */
@keyframes dealCards {
  to { opacity: 1; transform: translateY(0); }
}

.frame-menu.active .menu-card {
  animation: dealCards 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.frame-menu.active .menu-card:nth-child(1) { animation-delay: 0.1s; }
.frame-menu.active .menu-card:nth-child(2) { animation-delay: 0.2s; }
.frame-menu.active .menu-card:nth-child(3) { animation-delay: 0.3s; }
.frame-menu.active .menu-card:nth-child(4) { animation-delay: 0.4s; }
.frame-menu.active .menu-card:nth-child(5) { animation-delay: 0.5s; }
.frame-menu.active .menu-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================= */
/* MENU: ACTIVE CHAPTER STATE                */
/* ========================================= */

/* 1. The Container Glow */
.menu-card.active-chapter {
  /* Make the white border glow */
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  z-index: 5; /* Sit slightly above others */
}

/* 2. The Video (Brighter) */
.menu-card.active-chapter .card-overlay {
  /* Remove the dark tint so it looks "active" */
  background: rgba(0,0,0,0) !important;
}

/* Add the North Star above the text (SVG version) */
.menu-card.active-chapter .card-title::before {
  content: ""; /* No text, just image */
  display: block;
  
  /* Center it */
  margin: 0 auto 8px auto; 
  
  /* Size */
  width: 24px;
  height: 24px;
  
  /* The Exact Curved Star Shape (Encoded SVG) */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 C13.5 8.5 15.5 10.5 22 12 C15.5 13.5 13.5 15.5 12 22 C10.5 15.5 8.5 13.5 2 12 C8.5 10.5 10.5 8.5 12 2 Z' fill='white'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  
  /* Animation */
  animation: spinSlow 6s infinite linear;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* --- HOVER EFFECTS (Focus) --- */

/* 1. Hovering the GRID: Dim everyone else */
.menu-grid:hover .menu-card {
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

/* 2. Hovering the CARD: Light up and Zoom */
.menu-grid .menu-card:hover {
  opacity: 1;
  z-index: 50;
  transform: scale(1.05); /* Slight pop up */
}

.menu-card:hover .card-overlay {
  background: rgba(0,0,0,0); /* Remove tint (Bright) */
}

.menu-card:hover .card-video {
  transform: scale(1.1); /* Zoom video inside */
}

.menu-card:hover .card-title {
  opacity: 1;
  transform: translateY(-5px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* ========================================= */
/* DECORATION: CORNER STARS (Bigger)         */
/* ========================================= */

.corner-star {
  position: absolute;
  /* CHANGED: Increased from 32px to 42px */
  width: 42px; 
  height: 42px;
  
  z-index: 15; 
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
  animation: starSpin 12s infinite linear;
}

.corner-star svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- POSITIONING --- */
/* Adjusted to 22px to keep the bigger star centered on the curve line */

/* Text Panel: Top-Left & Bottom-Right */
.star-tl {
  top: 10px;
  left: 30px;
}
.star-br {
  bottom: 10px;
  right: 30px;
}

/* About Panel: Top-Right & Bottom-Left */
.star-tr {
  top: 10px;
  right: 30px;
}
.star-bl {
  bottom: 10px;
  left: 30px;
}

/* Animation */
@keyframes starSpin {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}


/* ========================================= */
/* 11. TEXT REVEAL EFFECT (Ultra Smooth)     */
/* ========================================= */

/* 1. Initial State (Hidden & Underwater) */
.text-panel .chapter-block.active > *,
.about-panel .about-content > * {
  opacity: 0;
  /* Reduced distance for a gentle float */
  transform: translateY(20px); 
  /* Softer blur */
  filter: blur(8px); 
  
  /* Slower, liquid transition */
  transition: 
    opacity 1.2s ease-out, 
    transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), /* "easeOutCubic" */
    filter 1.2s ease-out;
}

/* 2. Visible State (Surfaced) */
.text-panel.visible .chapter-block.active > *,
.about-panel.visible .about-content > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* 3. Staggered Delays (Liquid Flow) */
/* Slightly increased gaps for a ripple effect */

/* Title */
.text-panel.visible .chapter-block.active > *:nth-child(1),
.about-panel.visible .about-content > *:nth-child(1) { 
  transition-delay: 0.4s; 
}

/* First Element */
.text-panel.visible .chapter-block.active > *:nth-child(2),
.about-panel.visible .about-content > *:nth-child(2) { 
  transition-delay: 0.5s; 
}

/* Second Element */
.text-panel.visible .chapter-block.active > *:nth-child(3),
.about-panel.visible .about-content > *:nth-child(3) { 
  transition-delay: 0.6s; 
}

/* Third Element */
.text-panel.visible .chapter-block.active > *:nth-child(4),
.about-panel.visible .about-content > *:nth-child(4) { 
  transition-delay: 0.7s; 
}

/* Fourth Element */
.text-panel.visible .chapter-block.active > *:nth-child(5),
.about-panel.visible .about-content > *:nth-child(5) { 
  transition-delay: 0.8s; 
}

/* Fifth Element */
.text-panel.visible .chapter-block.active > *:nth-child(6),
.about-panel.visible .about-content > *:nth-child(6) { 
  transition-delay: 0.9s; 
}

/* Everything else */
.text-panel.visible .chapter-block.active > *:nth-child(n+7),
.about-panel.visible .about-content > *:nth-child(n+7) { 
  transition-delay: 1.0s; 
}


/* ========================================= */
/* 11. DEVICE RESTRICTION (Phone/Tablet)     */
/* ========================================= */

/* 1. Default State: The Blocker is Hidden */
#desktop-only-message {
  display: none;
}

/* 2. THE FIX: Changed from 1024px to 900px */
/* This blocks Phones & Portrait Tablets, but lets 13" Laptops through */
@media only screen and (max-width: 900px) {
  
  /* A. Show the Blocker */
  #desktop-only-message {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #191919;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-sizing: border-box;
  }
  
  /* B. Hide the Actual Website */
  .frame, .frame-intro, .frame-cottage {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* C. Styling the Message */
  .message-content svg {
    width: 60px; height: 60px;
    margin-bottom: 0px;
    opacity: 0.8;
  }
  
  .message-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 32px;
    color: #F4F1F3;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .message-content p {
    font-family: 'Mate', serif;
    font-size: 18px;
    color: rgba(244, 241, 243, 0.8);
    line-height: 1.6;
    margin: 0;
  }
  
  .sub-text {
    margin-top: 20px !important;
    font-size: 14px !important;
    color: rgba(244, 241, 243, 0.5) !important;
    font-family: 'Mate', serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}



/* ========================================= */
/* MENU VIDEO POSITIONING (Fine Tuning)      */
/* ========================================= */

/* Syntax: object-position: horizontal% vertical%; */
/* 50% 50% = Center */
/* 50% 0%  = Show Top */
/* 50% 100% = Show Bottom */

/* --- CHAPTER 2: THE COTTAGE --- */
.menu-card:nth-child(2) .card-video {
  /* Adjust the 2nd number (Vertical) to move the house up or down */
  /* Try 30% to show more top, or 70% to show more bottom */
  object-position: 15% 70%; 
}

/* --- CHAPTER 3: THE CASTLE (If needed) --- */
.menu-card:nth-child(3) .card-video {
  object-position: 50% 50%;
}

/* --- CHAPTER 4: THE EMPEROR (If needed) --- */
.menu-card:nth-child(4) .card-video {
  object-position: 50% 50%;
}

/* --- CHAPTER 5: THE POPE (If needed) --- */
.menu-card:nth-child(5) .card-video {
  object-position: 15% 70%;
}

/* --- CHAPTER 6: THE RETURN (If needed) --- */
.menu-card:nth-child(6) .card-video {
  object-position: 15% 70%;
}






