/* ==========================================================================
   MERONA WEDDING & COCOKI PROTOTYPE - MASTER STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel:wght@500;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fredoka:wght@500;600;700&family=Press+Start+2P&display=swap');

:root {
  /* Wedding Luxury Palette */
  --gold-primary: #C5A059;
  --gold-light: #F4E8C1;
  --gold-dark: #9A7B38;
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #EDC967 50%, #AA771C 100%);
  --bg-creamy: #FAF7F2;
  --bg-card: rgba(255, 255, 255, 0.92);
  --text-dark: #2C2825;
  --text-muted: #7A7269;
  --blush: #F5EBE6;

  /* Cocoki Game Palette */
  --game-sky: #CDECFE;
  --wood-top: #E29B52;
  --wood-mid: #BF7228;
  --wood-dark: #7A4213;
  --wood-slot: #69380E;
  --wood-gradient: linear-gradient(180deg, #E6A35C 0%, #BD6E26 60%, #854817 100%);
  --tray-gradient: linear-gradient(180deg, #CE843D 0%, #9F5419 100%);
  --card-shadow: 0 4px 0 #D0D4DA, 0 6px 12px rgba(0, 0, 0, 0.15);
  --covered-tint: rgba(30, 35, 45, 0.42);

  /* Fonts */
  --font-title: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-game: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: #1e2029;
  background: radial-gradient(circle at center, #2e3440 0%, #1a1c23 100%);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
}

/* Mobile Frame Container (App Viewport) */
.app-viewport {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--bg-creamy);
  position: relative;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 600px) {
  body {
    padding: 24px 0;
  }
  .app-viewport {
    min-height: 92vh;
    border-radius: 36px;
    border: 8px solid #2B2D3A;
  }
}

/* Floating Audio Player Button */
.floating-bgm-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-primary);
  color: var(--gold-dark);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
  transition: all 0.2s ease;
}

.floating-bgm-btn.playing {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

/* Layer Transition Logic */
.layer-section {
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hidden-layer {
  display: none !important;
  opacity: 0;
  transform: translateY(16px);
}

.active-layer {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   COCOKI GAME STYLES (Layer 1 & Layer 3)
   ========================================================================== */
.cocoki-container {
  min-height: 100vh;
  background-color: var(--game-sky);
  background-image: 
    radial-gradient(#b8e1fc 15%, transparent 16%),
    radial-gradient(#b8e1fc 15%, transparent 16%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 24px;
  position: relative;
  user-select: none;
}

/* Top Wooden Plaque Sign */
.cocoki-header-sign {
  margin-top: 6px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.wooden-plaque {
  background: var(--wood-gradient);
  border: 3px solid #FBE1AC;
  outline: 3px solid var(--wood-dark);
  border-radius: 20px;
  padding: 8px 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -3px 4px rgba(0, 0, 0, 0.3);
}

.plaque-title {
  font-family: var(--font-game);
  font-size: 18px;
  font-weight: 700;
  color: #FFFDF8;
  text-shadow: 0 2px 0 var(--wood-dark), 0 3px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.screw {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #E8B478;
  border: 1px solid #753E0F;
  border-radius: 50%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.screw.top-left { top: 6px; left: 8px; }
.screw.top-right { top: 6px; right: 8px; }
.screw.bottom-left { bottom: 6px; left: 8px; }
.screw.bottom-right { bottom: 6px; right: 8px; }

/* Subtitle / Player info on hard level */
.cocoki-subhead {
  font-size: 13px;
  font-weight: 700;
  color: #436380;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

/* The Board Area */
.cocoki-board-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.cocoki-board {
  width: 340px;
  height: 340px;
  position: relative;
  margin: 0 auto;
}

/* Cards on Board */
.cocoki-card {
  width: 54px;
  height: 64px;
  position: absolute;
  border-radius: 12px;
  border: 2px solid #E0E2E8;
  background: #FFF;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.12s ease, filter 0.2s ease, opacity 0.2s ease;
}

.cocoki-card .card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  pointer-events: none;
}

.cocoki-card .card-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.12));
}

.cocoki-card .card-label {
  font-size: 7.5px;
  font-weight: 700;
  color: #555;
  margin-top: 3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 48px;
  text-align: center;
}

/* Active vs Covered States */
.cocoki-card:not(.is-covered):hover {
  transform: scale(1.08) translateY(-2px);
  z-index: 100 !important;
}

.cocoki-card:not(.is-covered):active {
  transform: scale(0.96);
}

.cocoki-card.is-covered {
  cursor: not-allowed;
  filter: brightness(0.68) contrast(0.9);
}

.cocoki-card.is-covered::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--covered-tint);
  border-radius: 10px;
  pointer-events: none;
}

/* Shuffling & Matching Animations */
.cocoki-card.is-shuffling {
  animation: card-shake 0.35s ease;
}

@keyframes card-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.cocoki-card.is-matching {
  animation: match-burst 0.35s cubic-bezier(0.1, 0.8, 0.3, 1.4) forwards;
  z-index: 9999 !important;
}

@keyframes match-burst {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.3) rotate(12deg); filter: brightness(1.6) drop-shadow(0 0 10px #FFD700); }
  100% { transform: scale(0); opacity: 0; }
}

/* Staged Area for Remove 3 Booster */
.cocoki-staged-area {
  display: flex;
  gap: 6px;
  min-height: 48px;
  margin-top: 4px;
}

/* The Bottom Wooden Tray */
.cocoki-tray-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 10px;
}

.cocoki-tray-shadow {
  width: 350px;
  height: 12px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  filter: blur(4px);
  position: absolute;
  bottom: -4px;
}

.cocoki-tray {
  width: 360px;
  height: 82px;
  background: var(--tray-gradient);
  border: 4px solid #FEE5B3;
  outline: 3px solid #66320B;
  border-radius: 24px;
  position: relative;
  box-shadow: 
    inset 0 4px 6px rgba(255, 255, 255, 0.35),
    inset 0 -6px 8px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.tray-slots {
  position: absolute;
  inset: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  pointer-events: none;
}

.tray-slot-marker {
  width: 44px;
  height: 60px;
  background: rgba(85, 38, 7, 0.45);
  border: 1px dashed rgba(255, 230, 180, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.tray-cards-container {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 0 4px;
}

.tray-cards-container .cocoki-card {
  position: relative !important;
  width: 44px;
  height: 60px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  animation: pop-into-tray 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.tray-cards-container .cocoki-card .card-icon {
  font-size: 22px;
}

.tray-cards-container .cocoki-card .card-label {
  display: none;
}

@keyframes pop-into-tray {
  0% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Boosters Bar */
.cocoki-boosters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  width: 100%;
}

.booster-btn {
  background: linear-gradient(180deg, #A7E052 0%, #76B828 100%);
  border: 2px solid #E6FFBA;
  outline: 2px solid #4B850E;
  border-radius: 16px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 0 #3C6E09, 0 6px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease, filter 0.1s ease;
  min-width: 72px;
}

.booster-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #3C6E09, 0 3px 5px rgba(0, 0, 0, 0.2);
}

.booster-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #FF4757;
  border: 2px solid #FFF;
  color: #FFF;
  font-family: var(--font-game);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.booster-icon-box {
  font-size: 20px;
  line-height: 1;
}

.booster-label {
  font-family: var(--font-game);
  font-size: 11px;
  font-weight: 700;
  color: #FFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-top: 2px;
}

/* Skip / Lanjut Container (Appears after 10s on Layer 1) */
.layer1-skip-bar {
  display: none;
  margin-top: 12px;
  width: 100%;
  text-align: center;
  animation: slide-up-fade 0.4s ease forwards;
}

.layer1-skip-bar.visible {
  display: block;
}

.btn-skip-invitation {
  background: linear-gradient(135deg, #FF7675 0%, #D63031 100%);
  color: #FFF;
  border: 2px solid #FFEAA7;
  border-radius: 30px;
  padding: 10px 24px;
  font-family: var(--font-game);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(214, 48, 49, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.btn-skip-invitation:hover {
  transform: scale(1.04);
}

@keyframes slide-up-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Match Combo Floating Text */
.combo-banner {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #FFD700 0%, #FFA502 100%);
  color: #573300;
  font-family: var(--font-game);
  font-size: 20px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid #FFF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: pop-fade 0.7s forwards;
  pointer-events: none;
}

@keyframes pop-fade {
  0% { transform: translate(-50%, -30%) scale(0.6); opacity: 0; }
  40% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(0.9); opacity: 0; }
}

/* Top Back Button in Layer 3 */
.top-action-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
}

.btn-mini-back {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #CCC;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   LAYER 2: LUXURY WEDDING INVITATION STYLES
   ========================================================================== */
.invitation-container {
  background: var(--bg-creamy);
  color: var(--text-dark);
  min-height: 100vh;
  padding-bottom: 40px;
}

/* Hero Section */
.invite-hero {
  position: relative;
  text-align: center;
  padding: 50px 20px 40px;
  background: linear-gradient(180deg, #F5EBE6 0%, #FAF7F2 100%);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  overflow: hidden;
}

.hero-flower-top {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.invite-tagline {
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.couple-portrait-box {
  width: 170px;
  height: 220px;
  margin: 0 auto 20px;
  border-radius: 90px 90px 20px 20px;
  padding: 6px;
  background: var(--gold-gradient);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
}

.couple-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 84px 84px 16px 16px;
  background: #EAE3D9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-names .ampersand {
  font-family: var(--font-title);
  font-size: 28px;
  color: var(--gold-primary);
  display: inline-block;
  margin: 0 4px;
}

.hero-date {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

/* Quote Section */
.invite-quote-box {
  padding: 30px 24px;
  text-align: center;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: #5A534B;
  margin-bottom: 8px;
}

.quote-source {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

/* Section Dividers & Headings */
.section-heading {
  text-align: center;
  margin: 32px 0 20px;
  position: relative;
}

.section-heading h3 {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--text-dark);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-ornament {
  font-size: 14px;
  color: var(--gold-primary);
  margin-top: 4px;
}

/* Couple Profiles */
.couple-profiles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--gold-primary);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
  font-size: 38px;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.profile-parents {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.profile-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  padding: 4px 12px;
  background: rgba(197, 160, 89, 0.12);
  border-radius: 14px;
  transition: background 0.2s;
}

.profile-ig-link:hover {
  background: rgba(197, 160, 89, 0.25);
}

/* Countdown Card */
.countdown-container {
  margin: 28px 20px;
  background: linear-gradient(135deg, #302B26 0%, #1A1715 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 24px;
  padding: 24px 16px;
  text-align: center;
  color: #FFF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.countdown-title {
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cd-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  padding: 10px 8px;
  min-width: 62px;
}

.cd-num {
  font-family: var(--font-game);
  font-size: 26px;
  font-weight: 700;
  color: #FFD700;
  line-height: 1;
}

.cd-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: #DDD;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* Events (Akad & Resepsi) */
.event-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 20px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gold-gradient);
}

.event-type {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.event-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: #555;
}

.event-icon {
  font-size: 16px;
  color: var(--gold-dark);
  margin-top: 1px;
}

/* Maps Preview */
.maps-preview-box {
  margin: 18px 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: #FFF;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.maps-iframe-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
}

.maps-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.maps-action-bar {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF7F2;
}

.maps-location-text {
  font-size: 12.5px;
  color: #444;
}

.maps-location-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-dark);
}

.btn-open-gmaps {
  background: var(--gold-gradient);
  color: #FFF;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 8px rgba(197, 160, 89, 0.4);
}

/* Guestbook & Wishes Section */
.wishes-section {
  padding: 0 20px;
  margin-top: 10px;
}

.wishes-form {
  background: #FFF;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 4px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #DDD;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-dark);
  background: #FAFAFA;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold-primary);
  background: #FFF;
}

.btn-submit-wish {
  width: 100%;
  background: var(--gold-gradient);
  color: #FFF;
  border: none;
  border-radius: 14px;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
  transition: opacity 0.2s;
}

.btn-submit-wish:hover {
  opacity: 0.92;
}

.wishes-feed {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-item {
  background: #FFF;
  border: 1px solid #EFEAE3;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.wish-item.new-entry {
  animation: slide-down-highlight 0.4s ease;
}

@keyframes slide-down-highlight {
  from { background: #FFF9E6; transform: translateY(-8px); }
  to { background: #FFF; transform: translateY(0); }
}

.wish-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 13px;
}

.presence-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.badge-hadir {
  background: #E8F8F0;
  color: #27AE60;
}

.badge-absen {
  background: #FEECEB;
  color: #EB5757;
}

.wish-text {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.wish-time {
  font-size: 10px;
  color: #AAA;
  display: block;
  margin-top: 4px;
  text-align: right;
}

/* Digital Gift Box */
.gift-section {
  padding: 0 20px;
  margin-top: 24px;
}

.gift-card {
  background: #FFF;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF7F2;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 10px;
  font-size: 13px;
}

.btn-copy {
  background: #FFF;
  border: 1px solid var(--gold-primary);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy.copied {
  background: #27AE60;
  color: #FFF;
  border-color: #27AE60;
}

/* ==========================================================================
   BOTTOM CTA: LEVEL UP / DOORPRIZE BANNER (Layer 2 Bottom)
   ========================================================================== */
.gamification-cta-wrapper {
  margin: 36px 16px 20px;
  padding: 24px 20px;
  background: linear-gradient(145deg, #1F2430 0%, #0F1219 100%);
  border: 2px solid #F2C94C;
  border-radius: 28px;
  text-align: center;
  color: #FFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gamification-cta-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-trophy-badge {
  font-size: 40px;
  margin-bottom: 6px;
  animation: bounce-trophy 2s infinite;
}

@keyframes bounce-trophy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cta-heading {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #FEE5B3;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.cta-subtext {
  font-size: 13px;
  color: #DDD;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-level-up {
  width: 100%;
  background: linear-gradient(180deg, #FFD043 0%, #F39C12 100%);
  color: #522E00;
  border: 3px solid #FFF8E7;
  border-radius: 30px;
  padding: 14px 20px;
  font-family: var(--font-game);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 0 #A86400, 0 10px 20px rgba(243, 156, 18, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.1s ease;
}

.btn-level-up:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #A86400, 0 14px 24px rgba(243, 156, 18, 0.5);
}

.btn-level-up:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #A86400, 0 4px 10px rgba(243, 156, 18, 0.4);
}

/* ==========================================================================
   MODAL DIALOGS (Rules, Registration, Win, Lose)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
  animation: modal-fade-in 0.25s ease forwards;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #FFF;
  width: 100%;
  max-width: 380px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  animation: modal-pop 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes modal-pop {
  to { transform: scale(1); }
}

/* Rules Modal (Shopee Cocoki Style) */
.rules-modal-dialog {
  background: #FDF9F0;
  border: 4px solid #E6A35C;
}

.modal-header-wood {
  background: var(--wood-gradient);
  padding: 14px 20px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid #753E0F;
}

.modal-header-wood h3 {
  font-family: var(--font-game);
  font-size: 20px;
  color: #FFFDF8;
  text-shadow: 0 2px 0 #60330C;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: #FF4757;
  border: 2px solid #FFF;
  color: #FFF;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.rules-body {
  padding: 18px 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.rule-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.rule-number {
  background: #FF7675;
  color: #FFF;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-game);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.rule-content strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.rule-content p {
  font-size: 12.5px;
  color: #555;
  line-height: 1.4;
}

/* Prize Box in Rules */
.prizes-box {
  background: #FFF4D9;
  border: 2px dashed #E29B52;
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 10px;
}

.prizes-box-title {
  font-family: var(--font-game);
  font-size: 14px;
  font-weight: 700;
  color: #8C4E10;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prize-list {
  list-style: none;
  font-size: 12.5px;
  color: #4A3114;
}

.prize-list li {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-footer {
  padding: 14px 20px;
  background: #F8EFE0;
  border-top: 1px solid #E5D5C0;
  text-align: center;
}

.btn-primary-game {
  width: 100%;
  background: linear-gradient(180deg, #6BCB77 0%, #469F52 100%);
  border: 2px solid #C8F7CD;
  outline: 2px solid #2B6E34;
  color: #FFF;
  padding: 12px;
  border-radius: 24px;
  font-family: var(--font-game);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #205327, 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary-game:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #205327;
}

/* Guest Form Modal */
.guest-form-dialog {
  background: #FFF;
  padding: 24px 20px;
  text-align: center;
}

.guest-form-dialog h3 {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.guest-form-dialog p {
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
}

/* Win / Lose Popups */
.result-popup {
  padding: 26px 20px;
  text-align: center;
}

.result-badge-icon {
  font-size: 58px;
  margin-bottom: 8px;
  animation: bounce-trophy 1.8s infinite;
}

.result-title {
  font-family: var(--font-game);
  font-size: 24px;
  color: #27AE60;
  margin-bottom: 6px;
}

.result-title.lose {
  color: #EB5757;
}

.result-ticket-box {
  background: #F9F9F9;
  border: 2px dashed #DDD;
  border-radius: 14px;
  padding: 12px;
  margin: 16px 0;
  text-align: left;
  font-size: 13px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ticket-code {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-dark);
}

.btn-whatsapp-claim {
  background: #25D366;
  color: #FFF;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 24px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  margin-bottom: 10px;
}

.btn-secondary-link {
  background: none;
  border: none;
  color: #777;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 6px;
}

/* Defeat Modal Progress Bar */
.lose-progress-card {
  background: linear-gradient(145deg, #FFFDFB 0%, #FFF5ED 100%);
  border: 1.5px solid #F5D3C3;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0 16px 0;
  text-align: left;
  box-shadow: 0 4px 14px rgba(224, 86, 56, 0.08);
}

.lose-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lose-progress-title {
  font-size: 13px;
  font-weight: 700;
  color: #5C4A42;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lose-progress-icon {
  font-size: 15px;
}

.lose-progress-percent {
  font-family: var(--font-game, sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #E05638;
  letter-spacing: -0.5px;
}

.lose-progress-track {
  height: 14px;
  background: #EAE1DA;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.lose-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F2994A, #EB5757);
  border-radius: 20px;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  background-size: 20px 20px;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.25) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    transparent 75%,
    transparent
  );
  animation: progress-stripes 2s linear infinite;
}

@keyframes progress-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 0;
  }
}

.lose-progress-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: #7A685D;
  font-weight: 600;
}

.lose-progress-note {
  font-size: 11.5px;
  color: #9E5B32;
  background: rgba(242, 153, 74, 0.12);
  border: 1px dashed rgba(242, 153, 74, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
  line-height: 1.4;
}


/* Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* Celebration Overlay Screen */
.celebration-screen {
  position: fixed;
  inset: 0;
  background: rgba(253, 247, 240, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

.celebration-screen.fade-out {
  opacity: 0;
}

.celebration-card {
  text-align: center;
  padding: 24px;
}

.celebration-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: pulse-glow 1.2s infinite;
}

.celebration-card h2 {
  font-family: var(--font-title);
  font-size: 26px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.celebration-card p {
  font-size: 14px;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(197, 160, 89, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* In-App Toast Notification */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(30, 32, 40, 0.95);
  color: #FFF;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 100000;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.app-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   STYLE COMPARISON SWITCHER BAR (Untuk Membandingkan 1, 2, dan 3)
   ========================================================================== */
.style-compare-bar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 95vw;
  overflow-x: auto;
  scrollbar-width: none;
}

.style-compare-bar::-webkit-scrollbar {
  display: none;
}

.compare-btn {
  color: #94A3B8;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.compare-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
}

.compare-btn.active {
  background: #D4AF37;
  color: #1E2029;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.compare-btn-hub {
  background: #2563EB;
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.compare-btn-hub:hover {
  background: #1D4ED8 !important;
}

/* ==========================================================================
   STYLE 1: ZERO LAYER - PHOTOSTRIP (1.html)
   ========================================================================== */
.zero-layer-photostrip {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, #520F1C 0%, #2E070F 75%, #1C0308 100%);
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 55px 16px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.strip-subhead {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3.5px;
  color: #E2D1C3;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
  opacity: 0.95;
}

.strip-couple-name {
  font-family: 'Alex Brush', cursive;
  font-size: 56px;
  color: #FFFDF8;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
  margin-bottom: 20px;
}

/* Metallic Photobox Chute Machine */
.photobox-dispenser {
  width: 220px;
  height: 380px;
  background: #111418;
  border: 8px solid #8E939B;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 10px 20px rgba(0, 0, 0, 0.9),
    inset 0 -10px 20px rgba(0, 0, 0, 0.9),
    0 18px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dispenser-bevel {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  pointer-events: none;
  z-index: 10;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.15);
}

.dispenser-top-slot {
  width: 174px;
  height: 10px;
  background: #000000;
  border-radius: 5px;
  margin-top: 8px;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.9),
    0 2px 6px rgba(255, 255, 255, 0.12);
  z-index: 8;
  position: relative;
}

/* The Sliding Film Strip (Silky Smooth & Slower, motorized glide) */
.photostrip-film {
  width: 156px;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 10px 8px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translate3d(0, -90%, 0);
  animation: slideOutFilm 6.5s cubic-bezier(0.22, 0.85, 0.28, 1) 0.4s forwards;
  position: relative;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

@keyframes slideOutFilm {
  0% {
    transform: translate3d(0, -90%, 0);
  }
  15% {
    transform: translate3d(0, -72%, 0);
  }
  40% {
    transform: translate3d(0, -45%, 0);
  }
  70% {
    transform: translate3d(0, -18%, 0);
  }
  90% {
    transform: translate3d(0, -3%, 0);
  }
  100% {
    transform: translate3d(0, 0%, 0);
  }
}

.strip-frame {
  width: 100%;
  height: 98px;
  background: #1A1A1A;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.strip-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) sepia(15%) contrast(1.05);
  transition: transform 0.4s ease;
}

.strip-frame:hover img {
  transform: scale(1.05);
}

.strip-film-footer {
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 700;
  color: #444;
  letter-spacing: 1.5px;
  margin-top: 2px;
  text-align: center;
}

.strip-tap-cta {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 4px;
  font-weight: 700;
  color: #F8E3C6;
  text-transform: uppercase;
  animation: pulseOpacity 2s infinite ease-in-out;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.5; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* ==========================================================================
   STYLE 2: ZERO LAYER - ENVELOPE (RAPI & ELEGAN)
   A Love Letter from Ronald & Aprilia + 3D Opening Envelope
   ========================================================================== */
.zero-layer-envelope {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 28%, #560F1E 0%, #350711 65%, #180206 100%);
  color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 16px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.env-header-group {
  z-index: 10;
}

.env-subhead {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 4.5px;
  color: #F4D9C8;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.env-couple-name {
  font-family: 'Alex Brush', cursive;
  font-size: 54px;
  color: #FFFDF8;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
  line-height: 1.1;
  margin-bottom: 12px;
}

/* Envelope Container with Proper Geometry */
.envelope-wrapper {
  width: 318px;
  max-width: 90vw;
  height: 426px;
  position: relative;
  perspective: 1200px;
  margin: 0 auto;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.7));
}

.envelope-box {
  width: 100%;
  height: 100%;
  background: #4C0E1A;
  border-radius: 14px;
  position: relative;
  border: 1px solid rgba(240, 205, 175, 0.22);
  box-shadow: 
    inset 0 0 35px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(255, 255, 255, 0.15);
  overflow: visible;
}

/* The Letter Card inside envelope */
.envelope-letter-card {
  position: absolute;
  top: 45px;
  left: 18px;
  right: 18px;
  height: 275px;
  background: #FFFDF9;
  border-radius: 10px;
  border: 1px solid #DFD2BC;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  color: #2D2721;
  z-index: 5;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.envelope-wrapper.is-opened .envelope-letter-card {
  transform: translateY(-95px) scale(1.03);
}

.letter-crest {
  font-size: 26px;
  margin-bottom: 4px;
}

.letter-tag {
  font-family: var(--font-title);
  font-size: 9.5px;
  letter-spacing: 3px;
  color: #8C6D37;
  text-transform: uppercase;
  font-weight: 700;
}

.letter-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 6px 0 8px;
}

.letter-date-loc {
  font-size: 11px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
}

.letter-gold-rule {
  font-size: 10px;
  color: #C5A059;
  letter-spacing: 4px;
}

/* Lower Front Pocket of Envelope */
.envelope-pocket-front {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #420A14;
  clip-path: polygon(0 38%, 100% 38%, 100% 100%, 0 100%);
  z-index: 10;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.pocket-crease-left {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 62%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, transparent 60%);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.pocket-crease-right {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 62%;
  background: linear-gradient(-135deg, rgba(0, 0, 0, 0.25) 0%, transparent 60%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

/* 3D Folding V-Flap on Top */
.envelope-v-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 205px;
  transform-origin: top;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 25;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.flap-triangle {
  width: 100%;
  height: 100%;
  background: #55121F;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  position: relative;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  overflow: visible;
}

.flap-inner-bevel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.flap-lace-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.envelope-wrapper.is-opened .envelope-v-flap {
  transform: rotateX(180deg);
  z-index: 2;
}

/* Embossed Oval Ivory Wax Seal Stamp */
.envelope-wax-stamp {
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 122px;
  background: radial-gradient(circle at 35% 32%, #FFFDF8 0%, #EFE5D3 55%, #D4C1A7 100%);
  border-radius: 50% / 46%;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.55),
    inset 0 2px 4px rgba(255, 255, 255, 0.95),
    inset 0 -3px 5px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: opacity 0.35s ease, transform 0.35s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.wax-stamp-inner {
  border: 1.5px dashed #A38C6F;
  border-radius: 50% / 46%;
  width: 80px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.wax-flower-svg {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
  margin-bottom: 2px;
}

.wax-text {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 800;
  color: #755E45;
  letter-spacing: 2px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.envelope-wrapper.is-opened .envelope-wax-stamp {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px) scale(0.65);
}

/* Open Invitation CTA Text */
.env-tap-cta {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 4px;
  font-weight: 700;
  color: #F8E3C6;
  text-transform: uppercase;
  animation: pulseOpacity 2s infinite ease-in-out;
  margin-top: 14px;
  opacity: 0.9;
}


/* ==========================================================================
   STYLE 3: ZERO LAYER - COCOKI CASUAL GAME THEME (3.html)
   Senada & Selaras 100% dengan Layer 1 Gatekeeper Game
   ========================================================================== */
.zero-layer-cocoki {
  min-height: 100vh;
  background-color: var(--game-sky);
  background-image: 
    radial-gradient(#b8e1fc 15%, transparent 16%),
    radial-gradient(#b8e1fc 15%, transparent 16%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 55px 16px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* Grand Wooden Signboard (Shopee Cocoki Style) */
.cocoki-grand-sign {
  margin-top: 6px;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
  position: relative;
}

.cocoki-grand-sign::before,
.cocoki-grand-sign::after {
  content: '';
  position: absolute;
  top: -18px;
  width: 4px;
  height: 20px;
  background: #A36021;
  border-left: 1px solid #FFDE9E;
  z-index: 1;
}
.cocoki-grand-sign::before { left: 36px; }
.cocoki-grand-sign::after { right: 36px; }

.wooden-plaque-grand {
  background: var(--wood-gradient);
  border: 4px solid #FBE1AC;
  outline: 4px solid var(--wood-dark);
  border-radius: 24px;
  padding: 14px 28px;
  position: relative;
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.4), 
    inset 0 -4px 6px rgba(0, 0, 0, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.2);
}

.grand-plaque-tag {
  font-family: var(--font-game);
  font-size: 11px;
  font-weight: 700;
  color: #FFE699;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  margin-bottom: 2px;
}

.grand-plaque-title {
  font-family: var(--font-game);
  font-size: 23px;
  font-weight: 800;
  color: #FFFDF8;
  text-shadow: 0 3px 0 var(--wood-dark), 0 4px 6px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.5px;
}

.grand-plaque-sub {
  font-family: var(--font-game);
  font-size: 11px;
  color: #FFF8EA;
  margin-top: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Floating 3D Cocoki Cards Showcase */
.cocoki-cards-showcase {
  width: 100%;
  max-width: 320px;
  height: 220px;
  position: relative;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-game-card {
  width: 58px;
  height: 68px;
  position: absolute;
  border-radius: 12px;
  border: 2px solid #E0E2E8;
  background: #FFF;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: floatCard 3s infinite ease-in-out;
}

.floating-game-card .f-icon {
  font-size: 28px;
  line-height: 1;
}

.floating-game-card .f-label {
  font-size: 8px;
  font-weight: 700;
  color: #555;
  margin-top: 3px;
}

/* Positions of floating cards */
.f-card-1 { top: 20px; left: 24px; animation-delay: 0s; transform: rotate(-10deg); background-color: #FFF6E0; border-color: #F2C94C; }
.f-card-2 { top: 15px; right: 24px; animation-delay: 0.6s; transform: rotate(12deg); background-color: #FFE8EC; border-color: #FF8DA1; }
.f-card-3 { bottom: 25px; left: 40px; animation-delay: 1.2s; transform: rotate(8deg); background-color: #FFF0F5; border-color: #FFAFCC; }
.f-card-4 { bottom: 20px; right: 40px; animation-delay: 1.8s; transform: rotate(-8deg); background-color: #E8F8F5; border-color: #6FCF97; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); }
}
.f-card-1 { --rot: -10deg; }
.f-card-2 { --rot: 12deg; }
.f-card-3 { --rot: 8deg; }
.f-card-4 { --rot: -8deg; }

/* Central Couple Badge */
.cocoki-couple-center {
  width: 110px;
  height: 110px;
  background: #FFF;
  border: 4px solid #F2C94C;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 4px;
  position: relative;
}

.center-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.couple-gold-badge {
  position: absolute;
  bottom: -10px;
  background: linear-gradient(180deg, #FFE885 0%, #F39C12 100%);
  color: #5C3800;
  font-family: var(--font-game);
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1.5px solid #FFF;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Informational Bubble */
.cocoki-speech-bubble {
  background: #FFFFFF;
  border: 2px solid #C8D6E5;
  border-radius: 18px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  color: #334E68;
  max-width: 290px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Big Chunky Start Button (Shopee Cocoki Style) */
.btn-cocoki-start {
  background: linear-gradient(180deg, #9DE038 0%, #68B81B 100%);
  color: #FFFFFF;
  border: 3px solid #E8FFA6;
  outline: 3px solid #3B7A09;
  padding: 14px 44px;
  border-radius: 36px;
  font-family: var(--font-game);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 0 #336B07, 0 3px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  box-shadow: 0 7px 0 #2A5A05, 0 12px 20px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.1s ease, filter 0.1s ease;
  animation: pulseStart 2s infinite ease-in-out;
}

.btn-cocoki-start:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #2A5A05, 0 4px 8px rgba(0, 0, 0, 0.25);
}

@keyframes pulseStart {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.08) drop-shadow(0 0 12px rgba(157, 224, 56, 0.7)); }
}


