:root {
  --gold: #D4A017;
  --gold-light: #F0C850;
  --gold-pale: #FFF3C0;
  --bg-main: #FFFDE7;
  --bg-card: #FFF59D;
  --bg-overlay: rgba(255, 245, 157, 0.9);
  --red-melayu: #8B1A1A;
  --red-bright: #C0392B;
  --text-main: #5D4037;
  --text-light: #795548;
  --accent-white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Lora', Georgia, serif;
  overflow-x: hidden;
  cursor: default;
}

/* ── CHEERFUL BG ── */
#cheerful-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at top, #FFF9C4 0%, var(--bg-main) 100%);
}

/* ── LAYOUT ── */
.page { 
  position: relative; 
  z-index: 1; 
  transition: opacity 1s ease 0.3s, filter 1s ease 0.3s;
}

body.locked .page {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}

section { padding: 60px 20px; max-width: 680px; margin: 0 auto; }

/* ── GOLD ORNAMENT DIVIDER ── */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament-divider span {
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── SONGKET BORDER ── */
.songket-frame {
  border: 2px solid var(--gold);
  border-radius: 4px;
  position: relative;
  padding: 2px;
}
.songket-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212,160,23,0.4);
  border-radius: 2px;
  pointer-events: none;
}
.songket-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold-light);
  border-style: solid;
}
.songket-corner.tl { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.songket-corner.tr { top: -1px; right: -1px; border-width: 3px 3px 0 0; }
.songket-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 3px 3px; }
.songket-corner.br { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 0 20px rgba(212,160,23,0.3), inset 0 0 15px rgba(212,160,23,0.1);
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(212,160,23,0.3), inset 0 0 15px rgba(212,160,23,0.1); }
  50% { box-shadow: 0 0 35px rgba(212,160,23,0.6), inset 0 0 20px rgba(212,160,23,0.2); }
}
.logo-circle img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
}
.logo-placeholder {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.sun {
  font-size: 50px;
  animation: spinSun 10s linear infinite;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 15px rgba(255,200,50,0.8));
}
@keyframes spinSun {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-subtitle-top {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-light); font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(22px, 5vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  color: transparent;
  background: linear-gradient(135deg, #8B1A1A 0%, #C0392B 30%, #E74C3C 50%, #C0392B 70%, #8B1A1A 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s linear infinite, fadeUp 0.8s ease forwards 0.5s;
  opacity: 0;
  text-shadow: none;
  margin-bottom: 8px;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-title-sub {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(14px, 3vw, 22px);
  font-weight: 400;
  font-weight: 700; color: var(--text-main);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
  margin-bottom: 20px;
}

.angkatan-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--red-melayu), #A0251F);
  border: 1px solid var(--gold);
  border-radius: 99px;
  padding: 8px 24px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(139,26,26,0.4);
}

/* ── MASKOT SECTION ── */
.maskot-hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  margin: 16px 0 0;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.1s;
  position: relative;
}

.maskot-img-wrap {
  position: relative;
  width: 240px;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.maskot-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(212,160,23,0.35));
  animation: floatChar 4s ease-in-out infinite;
}
.maskot-img-wrap:nth-child(2) img {
  animation-delay: -2s;
}

@keyframes floatChar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* PLACEHOLDER untuk maskot sebelum ada asset gambar */
.maskot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.maskot-svg {
  width: 200px;
  height: 250px;
  filter: drop-shadow(0 8px 24px rgba(212,160,23,0.35));
  animation: floatChar 4s ease-in-out infinite;
}
.maskot-svg:nth-of-type(2) { animation-delay: -2s; }

.maskot-stars {
  position: absolute;
  pointer-events: none;
}
.maskot-star {
  position: absolute;
  font-size: 14px;
  animation: sparkleStar 2s ease-in-out infinite;
}
@keyframes sparkleStar {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

/* ── ASSET GUIDE NOTICE ── */
.asset-notice {
  background: rgba(212,160,23,0.08);
  border: 1px dashed rgba(212,160,23,0.4);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: rgba(255,243,192,0.7);
  text-align: center;
  margin-top: 12px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

/* ── FADE ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── INFO ACARA ── */
#info { padding-top: 0; }

.info-card {
  background: linear-gradient(135deg, rgba(255, 245, 157, 0.95) 0%, rgba(255, 253, 231, 0.95) 100%);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.info-card:hover {
  box-shadow: 0 0 40px rgba(212,160,23,0.25), 0 0 80px rgba(212,160,23,0.1);
}
.info-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(90deg, rgba(212,160,23,0.03) 0px, rgba(212,160,23,0.03) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg, rgba(212,160,23,0.03) 0px, rgba(212,160,23,0.03) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}

.info-header {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(212,160,23,0.15);
}
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-item:first-of-type { padding-top: 0; }

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(212,160,23,0.12);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.info-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.info-value {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

/* ── MASKOT INFO ── */
.maskot-info {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  position: relative;
}

.maskot-info-img {
  width: 200px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(212,160,23,0.3));
  animation: floatChar 5s ease-in-out infinite;
}

.maskot-info-placeholder {
  display: flex;
  align-items: center;
  gap: -20px;
}

/* ── COUNTDOWN ── */
#countdown { text-align: center; }

.countdown-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.countdown-unit {
  background: linear-gradient(160deg, rgba(255, 245, 157, 0.95), rgba(255, 253, 231, 0.95));
  border: 1px solid rgba(212,160,23,0.4);
  border-radius: 8px;
  padding: 20px 8px 16px;
  position: relative;
  overflow: hidden;
}
.countdown-unit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.countdown-num {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  color: var(--red-melayu);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(139,26,26,0.2);
}

.countdown-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.countdown-done {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 20px;
  color: var(--gold);
  padding: 20px;
}

/* ── QUOTE / PESAN ── */
#pesan { text-align: center; }

.quote-wrap {
  position: relative;
  padding: 40px 32px;
  background: linear-gradient(135deg, rgba(255, 245, 157, 0.8), rgba(255, 253, 231, 0.9));
  border-radius: 8px;
  border: 1px solid rgba(212,160,23,0.3);
  overflow: hidden;
}
.quote-wrap::before, .quote-wrap::after {
  content: '❝';
  position: absolute;
  font-size: 80px;
  color: rgba(212,160,23,0.2);
  font-family: Georgia, serif;
  line-height: 1;
}
.quote-wrap::before { top: 10px; left: 16px; }
.quote-wrap::after { content: '❞'; bottom: 10px; right: 16px; }

.quote-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: clamp(16px, 3.5vw, 22px);
  line-height: 1.7;
  color: var(--text-main);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.quote-attr {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--red-melayu);
  text-transform: uppercase;
}

/* ── MASKOT QUOTE ── */
.maskot-quote {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
  gap: 16px;
}

.maskot-quote-img {
  width: 120px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(212,160,23,0.25));
  animation: floatChar 4.5s ease-in-out infinite;
  flex-shrink: 0;
}

.maskot-quote-img.right {
  animation-delay: -2.25s;
  transform: scaleX(-1);
}

.invite-text {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main); font-weight: 500;
  text-align: center;
  flex: 1;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 48px 24px 60px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(212,160,23,0.15);
  max-width: 680px;
  margin: 0 auto;
}

.footer-logo-text {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.footer-sub {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .maskot-img-wrap { width: 180px; height: 240px; }
  .maskot-svg { width: 150px; height: 190px; }
  .info-card { padding: 24px 20px; }
  .countdown-grid { gap: 8px; }
  .maskot-quote-img { width: 90px; height: 110px; }
  .quote-wrap { padding: 32px 20px; }
}

/* ── COVER OVERLAY ── */
#cover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(255, 253, 231, 0.8) 0%, rgba(255, 245, 157, 0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
}

#cover.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-content {
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 40px 20px;
  max-width: 360px;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  position: relative;
  box-shadow: 0 0 30px rgba(212, 160, 23, 0.15);
  animation: fadeUp 1s ease forwards;
}

.cover-content::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 6px;
  pointer-events: none;
}

.cover-logo {
  margin: 0 auto 24px;
  width: 70px;
  height: 70px;
}
.cover-logo img {
  width: 50px; height: 50px;
}

.cover-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 24px; font-weight: 700;
  color: var(--red-melayu);
  margin-bottom: 8px;
}
.cover-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 14px; font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.1em;
}

.cover-moto {
  font-weight: 700;
  color: var(--red-melayu);
  margin-top: 8px;
}

.cover-guest-section {
  margin-bottom: 32px;
}
.cover-guest-section p {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.cover-guest-section .guest-apology {
  font-size: 11px; color: var(--text-light);
  opacity: 0.8;
  margin-bottom: 0;
  font-style: italic;
}
#guest-name {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(212, 160, 23, 0.3);
}

/* TOMBOL BERDENYUT (PULSING GLOW) */
#btn-open-invitation {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212,160,23, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 25px 10px rgba(212,160,23, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212,160,23, 0); }
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #B8860B 100%);
  color: var(--navy);
  border: none;
  padding: 12px 32px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.6);
}
.btn-icon {
  font-size: 18px;
}

body.locked {
  overflow: hidden;
}

/* ── MUSIC CONTROL ── */
.music-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.2);
  transition: all 0.3s ease;
}

.music-control:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

.music-control.playing {
  animation: spinSlow 4s linear infinite;
}

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

.music-control.playing:hover {
  animation-play-state: paused;
}

/* ── PARADE BINTANG KECIL ── */
#parade { text-align: center; }

.parade-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red-melayu);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 16px;
  width: 120px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.marquee-item:hover {
  transform: scale(1.1);
}

.marquee-item img {
  width: 200px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
  margin-bottom: 12px;
  animation: floatCharMarquee 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatCharMarquee {
  0%, 100% { transform: scale(1.4) translateY(5px); }
  50% { transform: scale(1.4) translateY(-5px); }
}


.marquee-item:nth-child(even) img {
  animation-delay: -1.5s;
}

.marquee-name {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--gold);
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(212,160,23,0.2);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 480px) {
  .marquee-item { width: 110px; margin: 0 16px; }
  .marquee-item img { height: 186px; }
  .marquee-name { font-size: 12px; padding: 4px 12px; }
}

/* ── GALERI TOGA ── */
#galeri-toga { text-align: center; }

.toga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  justify-items: center;
}

.toga-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.3s ease;
  background: var(--bg-card);
  padding-top: 24px;
  border-radius: 16px;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 15px rgba(212,160,23,0.15);
  width: 100%;
  overflow: hidden;
}

.toga-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(212,160,23,0.25);
}

/* ── INTERAKTIF: LINGKARAN AJAIB BERPUTAR ── */
.toga-card::before {
  content: '';
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,245,157,0.4));
  border: 2px dashed rgba(212,160,23,0.6);
  border-radius: 50%;
  z-index: 0;
  animation: spinMagicCircle 15s linear infinite;
  transition: box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

@keyframes spinMagicCircle {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

.toga-card:hover::before {
  box-shadow: 0 0 25px rgba(212,160,23,0.8), inset 0 0 15px rgba(212,160,23,0.4);
  background: linear-gradient(135deg, rgba(255,245,157,0.9), rgba(255,213,79,0.7));
  border-color: var(--gold);
}

/* ── INTERAKTIF: BINTANG EMAS (SPARKLES) ── */
.toga-card::after {
  content: '✦';
  position: absolute;
  color: transparent; /* Sembunyikan bintang asli di tengah */
  font-size: 16px;
  top: 40%;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.toga-card:hover::after {
  animation: sparkle-burst 1s ease-out infinite;
}

@keyframes sparkle-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    text-shadow: 
      -20px 0px 0 var(--gold),
      20px 20px 0 #FFF,
      -15px 30px 0 var(--gold),
      30px -10px 0 var(--gold);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5) rotate(90deg);
    text-shadow: 
      -60px -50px 0 var(--gold),
      50px 60px 0 #FFF,
      -40px 80px 0 var(--gold),
      70px -30px 0 var(--gold);
  }
}

.toga-img {
  width: 220px;
  /* height: 180px; */
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 -4px 10px rgba(0,0,0,0.05));
  z-index: 1;
  /* Scale foto dan geser turun agar bagian bawah bersembunyi di balik nama */
  transform: scale(1.4) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── INTERAKTIF: KARAKTER MELOMPAT ── */
.toga-card:hover .toga-img {
  transform: scale(1.5) translateY(2px);
}

.toga-name {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--bg-main);
  background: var(--red-melayu);
  width: 100%;
  padding: 10px 5px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  z-index: 2;
  position: relative;
  text-align: center;
}

@media (max-width: 480px) {
  .toga-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .toga-card { padding-top: 16px; }
  .toga-card::before { width: 100px; height: 100px; bottom: 45px; }
  .toga-img { height: 150px; transform: scale(1.4) translateY(8px); }
  .toga-name { font-size: 13px; padding: 8px 5px; }
}

/* ── ANIMASI BACKGROUND BINTANG KECIL ── */
#cheerful-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-star {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(212,160,23,0.8));
  animation: twinkleFloat 8s linear infinite;
}

@keyframes twinkleFloat {
  0% { transform: translateY(100vh) scale(0.5) rotate(0deg); opacity: 0; }
  20% { opacity: 0.8; }
  50% { transform: translateY(50vh) scale(1.2) rotate(180deg); opacity: 0.3; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-20vh) scale(0.5) rotate(360deg); opacity: 0; }
}

/* Pengaturan posisi dan kecepatan tiap bintang secara acak */
.star-1 { left: 10%; font-size: 20px; animation-duration: 10s; animation-delay: 0s; }
.star-2 { left: 25%; font-size: 14px; animation-duration: 12s; animation-delay: 2s; }
.star-3 { left: 40%; font-size: 24px; animation-duration: 15s; animation-delay: 1s; }
.star-4 { left: 60%; font-size: 16px; animation-duration: 11s; animation-delay: 4s; }
.star-5 { left: 80%; font-size: 22px; animation-duration: 14s; animation-delay: 3s; }
.star-6 { left: 15%; font-size: 18px; animation-duration: 13s; animation-delay: 6s; }
.star-7 { left: 35%; font-size: 12px; animation-duration: 9s; animation-delay: 5s; }
.star-8 { left: 55%; font-size: 26px; animation-duration: 16s; animation-delay: 8s; }
.star-9 { left: 75%; font-size: 14px; animation-duration: 10s; animation-delay: 7s; }
.star-10 { left: 90%; font-size: 20px; animation-duration: 12s; animation-delay: 9s; }