/* ==========================================================================
   MOBILE-FIRST DESIGN TOKENS & CORE VARIABLES
   ========================================================================== */
:root {
  /* Apple & Crimson Palette */
  --color-primary: #0066cc;
  --color-crimson: #d31238;
  --color-crimson-deep: #9e0e29;
  --color-crimson-light: #ff4766;
  --color-crimson-glow: rgba(211, 18, 56, 0.4);
  --color-rose-velvet: #1a080c;
  --color-rose-gold: #e8a598;

  /* Surface & Canvas Tokens */
  --color-canvas: #0c0809;
  --color-canvas-parchment: #f5f5f7;
  --color-surface-card: rgba(30, 26, 28, 0.78);
  --color-surface-tile-1: #1d1d1f;
  --color-surface-tile-2: #272729;
  --color-surface-black: #000000;
  
  /* Text & Ink Tokens */
  --color-ink: #1d1d1f;
  --color-ink-muted: #86868b;
  --color-text-on-dark: #f5f5f7;
  --color-text-muted-dark: #a1a1a6;

  /* Typography Font Stacks */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(211, 18, 56, 0.2);
  --shadow-dock: 0 -8px 30px rgba(0, 0, 0, 0.6);
  --shadow-header: 0 8px 25px rgba(0, 0, 0, 0.4);
  --shadow-wax-seal: 0 6px 18px rgba(211, 18, 56, 0.5);
}

/* ==========================================================================
   RESET & MOBILE BASE HYGIENE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  position: fixed;
  background-color: var(--color-canvas);
  color: var(--color-text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.47;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   INTERACTIVE CANVAS (FALLING ROSE PETALS)
   ========================================================================== */
.petal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

/* ==========================================================================
   STORY PROGRESS HEADER (TOP BAR)
   ========================================================================== */
.story-progress-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(16, 12, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: max(8px, env(safe-area-inset-top, 0px)) 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.progress-bar-container {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
}

.progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.progress-segment .fill {
  width: 0%;
  height: 100%;
  background: var(--color-crimson-light);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-segment.active .fill {
  width: 100%;
  background: var(--color-crimson);
}

.progress-segment.completed .fill {
  width: 100%;
  background: var(--color-rose-gold);
}

.story-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.story-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-crimson);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-crimson);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.story-chapter-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-rose-gold);
  letter-spacing: -0.01em;
}

/* Audio Toggle Chip */
.audio-toggle-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  min-height: 32px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.audio-toggle-chip:hover {
  background: var(--color-crimson);
}

.audio-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.audio-mini-bars span {
  width: 2px;
  height: 3px;
  background: #ffffff;
  border-radius: 1px;
}

.audio-playing .audio-mini-bars span:nth-child(1) { animation: barPlay 0.6s infinite alternate; }
.audio-playing .audio-mini-bars span:nth-child(2) { animation: barPlay 0.8s infinite alternate 0.2s; }
.audio-playing .audio-mini-bars span:nth-child(3) { animation: barPlay 0.5s infinite alternate 0.1s; }

@keyframes barPlay {
  0% { height: 3px; }
  100% { height: 10px; }
}

/* ==========================================================================
   STORY VIEWPORT & LIVELY TRANSITION ANIMATIONS
   ========================================================================== */
.story-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.story-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: none;
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
  overflow: hidden;
}

.story-slide.active {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 10;
}

/* Lively slide enter/exit animations */
.story-slide.enter-right {
  display: block;
  animation: slideEnterRight 0.5s cubic-bezier(0.34, 1.25, 0.64, 1) forwards;
}

.story-slide.enter-left {
  display: block;
  animation: slideEnterLeft 0.5s cubic-bezier(0.34, 1.25, 0.64, 1) forwards;
}

.story-slide.exit-left {
  display: block;
  animation: slideExitLeft 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.story-slide.exit-right {
  display: block;
  animation: slideExitRight 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideEnterRight {
  0% { opacity: 0; transform: translateX(60%) scale(0.88) rotate(3deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); }
}

@keyframes slideEnterLeft {
  0% { opacity: 0; transform: translateX(-60%) scale(0.88) rotate(-3deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); }
}

@keyframes slideExitLeft {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.85) rotate(-3deg); }
}

@keyframes slideExitRight {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(50%) scale(0.85) rotate(3deg); }
}

/* Scrollable Container Inside Each Slide */
.slide-scrollable {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-top: calc(max(10px, env(safe-area-inset-top, 0px)) + 80px);
  padding-bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 74px);
  padding-left: 16px;
  padding-right: 16px;
}

.slide-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-content.text-center {
  text-align: center;
}

/* ==========================================================================
   STORY HEADINGS & BADGES
   ========================================================================== */
.hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-rose-gold);
  margin-bottom: 8px;
  line-height: 1.2;
}

.story-headline {
  font-family: var(--font-display);
  font-size: clamp(23px, 5.4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: #ffffff;
}

.text-crimson { color: var(--color-crimson); }
.text-crimson-light { color: var(--color-crimson-light); }
.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.story-subhead {
  font-size: 14px;
  color: var(--color-text-muted-dark);
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 440px;
}

.slide-header {
  margin-bottom: 20px;
  width: 100%;
}

.section-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-crimson);
  margin-bottom: 6px;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 6px;
}

.slide-subtitle {
  font-size: 14px;
  color: var(--color-text-muted-dark);
}

/* ==========================================================================
   CHAPTER 1: COUNTDOWN & HERO MEDIA TILE
   ========================================================================== */
.hero-media-tile {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 16px;
}

.hero-frame-wrapper {
  position: relative;
  background: #ffffff;
  padding: 10px 10px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(211, 18, 56, 0.3);
  transform: rotate(-1.5deg);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-frame-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.frame-tape-top {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  z-index: 3;
}

.live-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  z-index: 3;
}

.hero-live-img {
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.frame-caption {
  margin-top: 8px;
  text-align: center;
  color: var(--color-ink);
}

.caption-date {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 600;
  color: var(--color-crimson);
  line-height: 1.2;
}

.caption-note {
  font-size: 11px;
  color: #6e6e73;
  margin-top: 2px;
  display: block;
}

/* Countdown Card */
.countdown-container {
  background: rgba(30, 26, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-card);
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-rose-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.countdown-unit {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-text-muted-dark);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ==========================================================================
   CHAPTER 2: PHOTOBOOTH STRIPS (CAROUSEL & CARDS)
   ========================================================================== */
.filter-chips-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-rose-gold);
}

.filter-chips-row {
  display: flex;
  gap: 6px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-text-on-dark);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.filter-chip.active {
  background: var(--color-crimson);
  border-color: var(--color-crimson-light);
  color: #ffffff;
}

/* Filter Effects */
body.filter-rose img, body.filter-rose video { filter: contrast(1.05) saturate(1.25) sepia(0.18) hue-rotate(-12deg); }
body.filter-warmth img, body.filter-warmth video { filter: sepia(0.28) saturate(1.3) brightness(1.04); }
body.filter-noir img, body.filter-noir video { filter: grayscale(1) contrast(1.15) brightness(0.96); }
body.filter-dreamy img, body.filter-dreamy video { filter: brightness(1.06) contrast(0.94) saturate(1.18); }

.mobile-strips-carousel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Gallery View Mode Switcher Tabs */
.gallery-view-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
  width: 100%;
  max-width: 440px;
}

.view-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted-dark);
  border-radius: var(--radius-pill);
  text-align: center;
  transition: all 0.2s ease;
  background: transparent;
}

.view-tab-btn.active {
  background: var(--color-crimson);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(211, 18, 56, 0.4);
}

.strip-card-mobile {
  background: rgba(26, 20, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 16px;
  color: #ffffff;
  box-shadow: var(--shadow-card);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.strip-card-mobile:hover, .strip-card-mobile:active {
  transform: translateY(-2px);
  border-color: rgba(211, 18, 56, 0.5);
}

.strip-pin {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 16px;
  z-index: 3;
}

.strip-img-box {
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.strip-img-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.strip-meta {
  padding-top: 14px;
}

.strip-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.strip-desc {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.strip-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-hint {
  font-size: 12px;
  color: var(--color-crimson-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-save-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}

.btn-save-chip:hover {
  background: var(--color-crimson);
}

/* ==========================================================================
   CHAPTER 3: BTS CINEMA VIDEO STACK
   ========================================================================== */
.mobile-videos-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.video-cinema-card {
  background: rgba(30, 26, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.cinema-header {
  margin-bottom: 12px;
}

.cinema-badge {
  background: var(--color-crimson);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 6px;
}

.cinema-card-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-rose-gold);
  display: block;
}

.cinema-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.cinema-player-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  margin-bottom: 10px;
}

.cinema-video {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.cinema-caption {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--color-rose-gold);
}

/* ==========================================================================
   CHAPTER 4: PORTRAIT GALLERY MOSAIC
   ========================================================================== */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.mosaic-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: #000000;
  aspect-ratio: 3/4;
}

.mosaic-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.mosaic-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 10px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
}

.overlay-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  color: #ffffff;
}

/* ==========================================================================
   CHAPTER 5: ROSE GARDEN OF REASONS (FLIP CARDS)
   ========================================================================== */
.reasons-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.reason-card {
  perspective: 1000px;
  min-height: 190px;
  cursor: pointer;
}

.reason-front, .reason-back {
  width: 100%;
  height: 100%;
  min-height: 190px;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.reason-front {
  background: rgba(30, 26, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.rose-icon-wrap {
  font-size: 30px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 6px var(--color-crimson));
}

.reason-num {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-crimson-light);
  font-weight: 700;
  margin-bottom: 4px;
}

.reason-heading {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.card-prompt {
  font-size: 11px;
  color: var(--color-text-muted-dark);
}

.reason-back {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--color-crimson-deep) 0%, var(--color-rose-velvet) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: rotateY(180deg);
  box-shadow: 0 15px 40px rgba(211, 18, 56, 0.4);
}

.reason-quote {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  color: #ffffff;
}

.reason-card.is-flipped .reason-front { transform: rotateY(-180deg); }
.reason-card.is-flipped .reason-back { transform: rotateY(0deg); }

/* ==========================================================================
   CHAPTER 6: WAX-SEALED SPECIAL LETTER
   ========================================================================== */
.envelope-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.envelope-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.envelope-front {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, #ffffff 0%, var(--color-canvas-parchment) 100%);
}

.wax-seal {
  width: 84px;
  height: 84px;
  background: radial-gradient(circle, #e61940 0%, #9e0e29 75%, #6a091b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-wax-seal);
  cursor: pointer;
  margin-bottom: 20px;
  transition: transform 0.25s ease;
  animation: pulseSeal 2.5s infinite ease-in-out;
}

@keyframes pulseSeal {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 8px 24px rgba(211, 18, 56, 0.7); }
}

.seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.seal-initial { font-size: 24px; }
.seal-text { font-size: 8px; font-weight: 700; letter-spacing: 0.1em; margin-top: 2px; }

.address-to {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--color-ink);
  display: block;
}

.address-date {
  font-size: 13px;
  color: #86868b;
  margin-top: 4px;
  display: block;
}

/* Unfolded Letter Sheet */
.letter-sheet {
  display: none;
  padding: 36px 20px;
  background: #ffffff;
  color: var(--color-ink);
  animation: unfoldLetter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes unfoldLetter {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.envelope-card.is-opened .envelope-front { display: none; }
.envelope-card.is-opened .letter-sheet { display: block; }

.letter-decor-top { text-align: center; color: var(--color-crimson); font-size: 16px; margin-bottom: 16px; }
.letter-salutation { font-family: var(--font-serif); font-size: 26px; font-style: italic; font-weight: 600; color: var(--color-crimson-deep); margin-bottom: 12px; }
.letter-body { font-size: 16px; line-height: 1.7; color: #333336; }
.letter-body p { margin-bottom: 12px; }
.letter-signature { margin-top: 20px; padding-top: 12px; border-top: 1px solid #e5e5ea; }
.sig-closing { font-family: var(--font-serif); font-size: 19px; font-style: italic; color: #6e6e73; }
.sig-name { font-family: var(--font-serif); font-size: 22px; font-style: italic; font-weight: 600; color: var(--color-crimson); margin-top: 2px; }

/* ==========================================================================
   CHAPTER 7: MAKE A WISH & INTERACTIVE CAKE
   ========================================================================== */
.cake-interactive-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cake-canvas-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.cake-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 220px;
}

.candles-row {
  display: flex;
  gap: 24px;
  margin-bottom: -4px;
  z-index: 5;
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.candle-stick {
  width: 8px;
  height: 34px;
  background: repeating-linear-gradient(45deg, #ffffff, #ffffff 4px, var(--color-crimson) 4px, var(--color-crimson) 8px);
  border-radius: 3px;
}

.flame {
  width: 12px;
  height: 20px;
  background: radial-gradient(ellipse at bottom, #ffffff 0%, #ffdf00 30%, #ff5e00 70%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.9), 0 0 30px rgba(255, 70, 0, 0.6);
  animation: flickerFlame 0.8s infinite alternate ease-in-out;
  margin-bottom: 2px;
}

@keyframes flickerFlame {
  0% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.15, 0.95) rotate(3deg); }
  100% { transform: scale(0.95, 1.1) rotate(-1deg); }
}

.candle:not(.active) .flame { display: none; }

.cake-top-layer { width: 140px; height: 50px; background: #fcedd8; border-radius: 10px 10px 0 0; position: relative; }
.frosting-drops { position: absolute; bottom: -5px; left: 0; width: 100%; display: flex; justify-content: space-around; }
.frosting-drops span { width: 14px; height: 10px; background: #d31238; border-radius: 0 0 50% 50%; }
.cake-middle-layer { width: 175px; height: 42px; background: #f5d4af; border-top: 3px solid var(--color-crimson); }
.cake-bottom-layer { width: 210px; height: 50px; background: #fcedd8; border-top: 3px solid var(--color-crimson); border-radius: 0 0 8px 8px; }
.cake-plate { width: 240px; height: 10px; background: #ffffff; border-radius: var(--radius-pill); margin-top: 3px; }

.btn-blow-candles {
  background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-crimson-deep) 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 25px var(--color-crimson-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  animation: pulseNext 2.5s infinite ease-in-out;
}

.celebration-message {
  display: none;
  text-align: center;
  padding: 16px;
  animation: popCelebration 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popCelebration {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.celebration-badge {
  background: var(--color-crimson);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 8px;
}

.celebration-title { font-size: 24px; font-weight: 700; color: #ffffff; margin-bottom: 4px; }
.celebration-sub { font-size: 15px; color: var(--color-text-muted-dark); margin-bottom: 14px; }
.btn-relight {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
}

.final-sweet-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.final-quote {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--color-rose-gold);
}

.final-date {
  font-size: 12px;
  color: var(--color-text-muted-dark);
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   BOTTOM FLOATING NAVIGATION DOCK
   ========================================================================== */
.story-navigation-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(16, 12, 14, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 16px max(10px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.dock-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.btn-prev {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-prev:active { transform: scale(0.95); }

.btn-next {
  background: linear-gradient(135deg, var(--color-crimson) 0%, var(--color-crimson-deep) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--color-crimson-glow);
  animation: pulseNext 2.5s infinite ease-in-out;
}

.btn-next:active { transform: scale(0.95); }

@keyframes pulseNext {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px var(--color-crimson-glow); }
  50% { transform: scale(1.03); box-shadow: 0 6px 24px rgba(211, 18, 56, 0.6); }
}

.dock-arrow {
  font-size: 18px;
  line-height: 1;
}

.dock-center-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
}

.dock-page-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dock-page-dot.active {
  width: 14px;
  height: 6px;
  background: var(--color-crimson);
  border-radius: 4px;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.is-active { display: flex; }
.lightbox-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); backdrop-filter: blur(20px); }
.lightbox-container { position: relative; z-index: 2; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-close { position: absolute; top: -44px; right: -8px; color: #ffffff; font-size: 34px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.lightbox-media-wrapper { max-width: 100%; max-height: 76vh; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.lightbox-img { max-width: 100%; max-height: 76vh; object-fit: contain; }
.lightbox-caption { color: var(--color-rose-gold); font-family: var(--font-serif); font-size: 16px; font-style: italic; margin-top: 10px; text-align: center; }

/* ==========================================================================
   INTRO SCREEN & PRELOADER (WORKS WHEEL SHOWCASE - LIKE MIHATECHNOLOGIES)
   ========================================================================== */
.intro-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 200;
  background: radial-gradient(circle at 50% 40%, #1a080f 0%, #0c0809 70%, #060405 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s ease;
  user-select: none;
  -webkit-user-select: none;
}

.intro-screen.is-exiting {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Header inside Intro */
.intro-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 24px 10px;
  z-index: 20;
  width: 100%;
  flex-shrink: 0;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.badge-heart-pulse {
  display: inline-block;
  font-size: 13px;
  animation: miniHeartBeat 1.8s infinite ease-in-out;
}

@keyframes miniHeartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1.05); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

.badge-text {
  font-size: 12px;
  font-weight: 500;
  color: #f5f5f7;
  letter-spacing: -0.01em;
}

.intro-counter-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-rose-gold);
  background: rgba(232, 165, 152, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232, 165, 152, 0.2);
}

/* Wheel Mount Area */
.intro-wheel-container {
  flex: 1;
  width: 100%;
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Works Wheel 3D Core Structure */
.works-wheel-root {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.works-wheel-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.works-wheel-viewport:active {
  cursor: grabbing;
}

.works-wheel-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.works-wheel-pivot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.works-wheel-card {
  position: absolute;
  backface-visibility: hidden;
  will-change: transform, opacity;
  cursor: pointer;
}

.works-wheel-card-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(26, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(211, 18, 56, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.works-wheel-card:hover .works-wheel-card-inner,
.works-wheel-card.is-drum-active .works-wheel-card-inner {
  border-color: rgba(255, 71, 102, 0.8);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.95), 0 0 32px rgba(255, 71, 102, 0.45);
}

.card-photo-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(104%) brightness(101%);
}

.card-scrim-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 8, 9, 0.82) 0%, rgba(12, 8, 9, 0.2) 45%, transparent 100%);
  pointer-events: none;
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(12, 8, 9, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.card-footer-meta {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.card-footer-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer-sub {
  font-size: 11px;
  color: var(--color-rose-gold);
  font-family: var(--font-serif);
  font-style: italic;
}

/* Center Title in Flat Ring Mode */
.works-wheel-center-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.25s ease;
  width: 90%;
  max-width: 480px;
  z-index: 5;
}

.wheel-center-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-rose-gold);
  margin-bottom: 8px;
}

.wheel-center-heading {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6.2vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.wheel-center-sub {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.5vw, 22px);
  font-style: italic;
  color: #ff4766;
  margin-top: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Left-Side Caption in 3D Drum Mode */
.works-wheel-active-info {
  position: absolute;
  top: 50%;
  left: max(24px, 7vw);
  transform: translateY(-50%);
  max-width: 320px;
  z-index: 20;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.25s ease;
}

.active-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-rose-gold);
  margin-bottom: 6px;
}

.active-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
}

.active-subtitle {
  font-size: 13px;
  color: var(--color-ink-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* Right-Side Memory Index List */
.works-wheel-index-container {
  position: absolute;
  top: 50%;
  right: max(16px, 4vw);
  transform: translateY(-50%);
  max-height: 65vh;
  overflow-y: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.works-wheel-index-container::-webkit-scrollbar {
  display: none;
}

.index-header-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-ink-muted);
  margin-bottom: 10px;
}

.works-wheel-index-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.works-wheel-index-item {
  display: block;
}

.index-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: right;
  border: 1px solid transparent;
}

.works-wheel-index-item.active .index-item-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 71, 102, 0.3);
  font-weight: 600;
}

.works-wheel-index-item.active .index-item-num {
  color: #ff4766;
  font-weight: 700;
}

.index-item-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Quick Action Controls */
.works-wheel-quick-actions {
  position: absolute;
  bottom: 12px;
  right: max(16px, 4vw);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 25;
}

.wheel-action-chip {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wheel-action-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 71, 102, 0.4);
  transform: translateY(-1px);
}

.wheel-action-chip:active {
  transform: scale(0.96);
}

/* Intro Bottom Bar */
.intro-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 20px max(24px, env(safe-area-inset-bottom));
  z-index: 25;
  width: 100%;
  flex-shrink: 0;
}

.intro-hint-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-ink-muted);
  text-align: center;
}

.hint-icon {
  font-size: 13px;
}

/* ==========================================================================
   HEARTBEAT EFFECT BUTTON (21ST.DEV SPECIFICATION)
   ========================================================================== */
.btn-heartbeat-effect {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #e11d48 0%, #be123c 60%, #9f1239 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: heartbeatEffect 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  outline: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-heartbeat-effect:focus-visible {
  outline: 2px solid #ff4766;
  outline-offset: 3px;
}

.btn-heartbeat-effect:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 60%, #be123c 100%);
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(244, 63, 94, 0.55), 0 0 20px rgba(244, 63, 94, 0.4);
}

.btn-heartbeat-effect:active {
  transform: scale(0.96);
}

.heartbeat-btn-icon {
  font-size: 18px;
  line-height: 1;
}

.heartbeat-btn-sparkle {
  font-size: 15px;
  line-height: 1;
}

@keyframes heartbeatEffect {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.75), 0 8px 24px rgba(225, 29, 72, 0.4);
  }
  14% {
    transform: scale(1.07);
    box-shadow: 0 0 0 10px rgba(225, 29, 72, 0.3), 0 10px 28px rgba(225, 29, 72, 0.5);
  }
  28% {
    transform: scale(1.02);
    box-shadow: 0 0 0 16px rgba(225, 29, 72, 0), 0 8px 24px rgba(225, 29, 72, 0.4);
  }
  42% {
    transform: scale(1.09);
    box-shadow: 0 0 0 22px rgba(225, 29, 72, 0), 0 12px 30px rgba(225, 29, 72, 0.55);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0), 0 8px 24px rgba(225, 29, 72, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0), 0 8px 24px rgba(225, 29, 72, 0.4);
  }
}

/* Also apply heartbeat effect to blow candles & primary next buttons */
.btn-blow-candles {
  animation: heartbeatEffect 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Header Re-Open Wheel Chip */
.wheel-toggle-chip {
  min-height: 44px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wheel-toggle-chip:hover {
  background: rgba(255, 71, 102, 0.2);
  border-color: rgba(255, 71, 102, 0.5);
}

/* ==========================================================================
   OUR DATE PHOTOS GRID (50 PHOTOS GALLERY SECTION)
   ========================================================================== */
.gallery-together-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-bottom: 30px;
}

@media (min-width: 600px) {
  .gallery-together-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 900px) {
  .gallery-together-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.together-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(28, 22, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.together-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 71, 102, 0.5);
  box-shadow: 0 8px 24px rgba(211, 18, 56, 0.35);
}

.together-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.together-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.together-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 8, 9, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.together-item:hover .together-overlay,
.together-item:active .together-overlay {
  opacity: 1;
}

.together-caption {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Mobile Responsive Optimizations for Works Wheel */
@media (max-width: 767px) {
  .works-wheel-index-container {
    display: none; /* Hide vertical list on small mobile to give full room to 3D cards */
  }

  .works-wheel-active-info {
    left: 16px;
    right: 16px;
    max-width: 100%;
    top: auto;
    bottom: 60px;
    transform: none;
    text-align: center;
  }

  .works-wheel-quick-actions {
    bottom: 8px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .intro-top-bar {
    padding: max(10px, env(safe-area-inset-top)) 16px 6px;
    gap: 8px;
  }

  .intro-badge {
    padding: 4px 10px;
  }

  .badge-text {
    font-size: 11px;
  }

  .intro-counter-tag {
    font-size: 10px;
    padding: 4px 8px;
    white-space: nowrap;
  }

  .btn-heartbeat-effect {
    padding: 12px 26px;
    font-size: 15px;
    min-height: 46px;
  }
}


