/* Random picker & group divider styling - Underwater Cartoon Theme */

.random-modal,
.group-modal,
.portfolio-modal,
.student-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.random-modal.open,
.group-modal.open,
.portfolio-modal.open,
.student-modal.open {
  display: flex;
}

.random-modal-backdrop,
.group-modal-backdrop,
.portfolio-modal-backdrop,
.student-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 14, 34, 0.82);
  backdrop-filter: blur(12px);
}

.group-modal-content,
.portfolio-modal-content,
.student-modal-content {
  position: relative;
  z-index: 1;
  width: min(90vw, 520px);
  max-height: 90vh;
  overflow: auto;
  background: rgba(4, 25, 54, 0.96);
  border: 3px solid #00b4d8;
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 30, 60, 0.4);
}

/* Modal Random Siswa: Bebas Melayang Tanpa Kotak Card */
.random-modal-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  max-height: 90vh;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.random-modal-header,
.group-modal-header {
  text-align: center;
  padding: 1.5rem 1.5rem 0.75rem;
}

.random-modal-header h3,
.group-modal-header h3 {
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: 1.5rem;
  color: #ffe838;
  text-shadow: 2px 2px 0 #053b75;
  margin-bottom: 0.3rem;
}

.random-modal-header p,
.group-modal-header p {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  color: #b8e2f8;
  font-size: 0.95rem;
}

.random-dice-icon,
.group-icon-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.random-dice-icon {
  background: linear-gradient(135deg, #ff758f, #ff477e);
  box-shadow: 0 10px 25px rgba(255, 71, 126, 0.5);
}

.group-icon-wrap {
  background: linear-gradient(135deg, #ffea00, #ffbe0b);
  box-shadow: 0 10px 25px rgba(255, 190, 11, 0.5);
  color: #042444;
}

.random-dice-icon i,
.group-icon-wrap i {
  font-size: 2.2rem;
}

.random-dice-icon i {
  color: #fff;
}

.group-icon-wrap i {
  color: #042444;
}

/* ==================== FIREWORKS CANVAS ==================== */
.random-fireworks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  border-radius: 28px;
}

/* Close Button (Melayang Bersih di Pojok Kanan Atas) */
.random-modal-close {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 40;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.random-modal-close:hover {
  background: #ff477e;
  border-color: #ffffff;
  transform: scale(1.12) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 71, 126, 0.6);
}

/* ==================== GIFT BOX STAGE (KOTAK BERGOYANG BEBAS TANPA CARD) ==================== */
.gift-box-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1.8rem;
  text-align: center;
  width: 100%;
  position: relative;
}

/* Wadah kartu siswa berkumpul di atas kotak */
.cards-vortex-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: visible;
}

/* Kartu Siswa Mini: Berkumpul di Atas Kotak lalu Menukik Masuk ke Kotak */
.flying-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 88px;
  background: #09121d;
  border: 1.5px solid #00b4d8;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75), 0 0 14px rgba(0, 180, 216, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px 3px 2px;
  pointer-events: none;
  overflow: hidden;
  will-change: transform, opacity;
  animation: cardGatherAndDrop 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.flying-card-photo {
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: center bottom;
  margin-top: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.flying-card-placeholder {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Titan One', sans-serif;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #0077b6, #023e8a);
  border-radius: 4px;
}

.flying-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.48rem;
  font-weight: 900;
  color: #ffe600;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 2px;
}

/* Animasi: Muncul di ATAS kotak, melayang mengumpul, lalu meluncur masuk ke kotak */
@keyframes cardGatherAndDrop {
  0% {
    /* Turun dari atas viewport menuju posisi kumpul di atas kotak */
    transform: translate(var(--gather-x), calc(var(--gather-y) - 75px)) scale(0.65) rotate(calc(var(--gather-rot) * 1.4));
    opacity: 0;
  }
  25% {
    /* Berkumpul melayang di atas kotak */
    transform: translate(var(--gather-x), var(--gather-y)) scale(1) rotate(var(--gather-rot));
    opacity: 1;
  }
  50% {
    /* Tetap melayang di atas kotak dengan sedikit ayunan */
    transform: translate(var(--gather-x), calc(var(--gather-y) + 6px)) scale(1.03) rotate(calc(var(--gather-rot) * 0.9));
    opacity: 1;
  }
  75% {
    /* Menukik turun mengarah ke mulut kotak */
    transform: translate(calc(var(--gather-x) * 0.3), -22px) scale(0.65) rotate(calc(var(--gather-rot) * 0.3));
    opacity: 0.95;
  }
  100% {
    /* Masuk dan lenyap ke dalam kotak */
    transform: translate(0, 15px) scale(0.12) rotate(0deg);
    opacity: 0;
  }
}

.gift-box-wrapper {
  position: relative;
  width: 220px;
  height: 190px;
  margin: 2.2rem auto 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gift-box-wrapper.shaking .gift-box {
  animation: giftWobble 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  transform-origin: center bottom;
}

.gift-box-wrapper.shaking .gift-floor-shadow {
  animation: shadowPulse 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

@keyframes giftWobble {
  0%, 100% {
    transform: rotate(0deg) scale(1, 1);
  }
  15% {
    transform: rotate(-16deg) scale(1.18, 0.86);
  }
  30% {
    transform: rotate(16deg) scale(0.86, 1.18);
  }
  45% {
    transform: rotate(-12deg) scale(1.14, 0.88);
  }
  60% {
    transform: rotate(12deg) scale(0.88, 1.14);
  }
  75% {
    transform: rotate(-7deg) scale(1.08, 0.95);
  }
  90% {
    transform: rotate(6deg) scale(0.96, 1.04);
  }
}

@keyframes shadowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  20%, 50% {
    transform: scale(1.25, 0.8);
    opacity: 0.8;
  }
  35%, 65% {
    transform: scale(0.8, 1.1);
    opacity: 0.45;
  }
}

.gift-box {
  position: relative;
  width: 140px;
  height: 118px;
  z-index: 2;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* State: Collecting Cards (Tutup Terbuka & Efek Sedot Kartu) */
.gift-box.collecting .gift-lid {
  transform: translateY(-56px) rotate(-16deg);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.gift-box.collecting {
  animation: boxSuckGlow 0.5s ease-in-out infinite alternate;
}

@keyframes boxSuckGlow {
  0% {
    transform: scale(0.98);
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(0, 180, 216, 0.4));
  }
  100% {
    transform: scale(1.04);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 24px rgba(255, 230, 0, 0.65));
  }
}

/* State: Slam Shut (Membanting Tertutup sebelum Dikocok) */
.gift-box.slam-shut .gift-lid {
  transform: translateY(0) rotate(0deg);
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Floor Shadow di bawah kotak */
.gift-floor-shadow {
  width: 140px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 75%);
  margin-top: 6px;
  z-index: 1;
}

/* Lid (Tutup Kotak) */
.gift-lid {
  position: absolute;
  top: -18px;
  left: -9px;
  width: 158px;
  height: 34px;
  background: linear-gradient(135deg, #ff477e, #c9184a);
  border: 4px solid #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  z-index: 3;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: left bottom;
}

.gift-box.opened .gift-lid {
  transform: translateY(-95px) rotate(-38deg) scale(1.15);
  opacity: 0;
}

/* Bow Ribbon on Lid */
.gift-bow {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 32px;
}

.bow-knot {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: #ffe600;
  border: 2.5px solid #b38600;
  border-radius: 50%;
  z-index: 4;
}

.bow-loop-left,
.bow-loop-right {
  position: absolute;
  top: 2px;
  width: 28px;
  height: 22px;
  background: #ffe838;
  border: 3px solid #b38600;
  border-radius: 50% 50% 12% 50%;
}

.bow-loop-left {
  left: 2px;
  transform: rotate(-32deg);
}

.bow-loop-right {
  right: 2px;
  transform: rotate(32deg) scaleX(-1);
}

/* Box Body */
.gift-body {
  position: relative;
  width: 140px;
  height: 105px;
  background: linear-gradient(135deg, #ff758f, #e63946);
  border: 4px solid #ffffff;
  border-radius: 6px 6px 22px 22px;
  overflow: hidden;
  z-index: 2;
}

.gift-ribbon-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  background: #ffe600;
  border-left: 2.5px solid #b38600;
  border-right: 2.5px solid #b38600;
}

.gift-ribbon-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  height: 24px;
  background: #ffe600;
  border-top: 2.5px solid #b38600;
  border-bottom: 2.5px solid #b38600;
}

/* Sparkles */
.gift-sparkles {
  position: absolute;
  inset: -25px;
  pointer-events: none;
}

.gift-sparkles .sparkle {
  position: absolute;
  font-size: 1.6rem;
  animation: sparkleTwinkle 1.2s ease-in-out infinite alternate;
}

.sparkle.s1 { top: -5px; left: -5px; animation-delay: 0s; }
.sparkle.s2 { top: 5px; right: -5px; animation-delay: 0.3s; }
.sparkle.s3 { bottom: 15px; left: -10px; animation-delay: 0.6s; }
.sparkle.s4 { bottom: -5px; right: 0; animation-delay: 0.9s; }

@keyframes sparkleTwinkle {
  0% { transform: scale(0.6) rotate(0deg); opacity: 0.4; }
  100% { transform: scale(1.3) rotate(25deg); opacity: 1; }
}

/* Status Text & Cycling Names */
.gift-status-text h3 {
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: 1.7rem;
  color: #ffe600;
  text-shadow: 2px 2px 0 #053b75, 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.35rem;
}

.gift-status-text p {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  color: #b8e2f8;
  font-weight: 500;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.gift-cycling-name {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  background: rgba(2, 28, 60, 0.65);
  backdrop-filter: blur(6px);
  border: 2px dashed #ffe600;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: cyclingPulse 0.4s ease-in-out infinite alternate;
}

@keyframes cyclingPulse {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.03); border-color: #ffbe0b; }
}

/* ==================== WINNER REVEAL STAGE (PHOTOCARD TICKET) ==================== */
.random-winner-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100%;
  position: relative;
  z-index: 5;
  animation: winnerBurstRise 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes winnerBurstRise {
  0% {
    transform: translateY(60px) scale(0.65);
    opacity: 0;
    filter: blur(6px);
  }
  65% {
    transform: translateY(-10px) scale(1.03);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

/* Floating Golden Congrats Badge */
.winner-congrats-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #ffe600 0%, #ff9e00 100%);
  color: #07192d;
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: clamp(0.82rem, 3.2vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 28px rgba(255, 200, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.15rem;
  animation: winnerPillFloat 2.2s ease-in-out infinite alternate;
  user-select: none;
}

.winner-congrats-pill i {
  color: #07192d;
  font-size: 0.9em;
}

@keyframes winnerPillFloat {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 34px rgba(255, 200, 0, 0.65), 0 6px 14px rgba(0, 0, 0, 0.45);
  }
}

/* Wrapper for Winner Photocard with Aura */
.winner-photocard-wrapper {
  position: relative;
  width: clamp(240px, 72vw, 275px);
  aspect-ratio: 9 / 15.2;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Aura glowing backdrop */
.winner-photocard-wrapper::after {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 36px;
  background: radial-gradient(circle, rgba(255, 230, 0, 0.32) 0%, rgba(0, 180, 216, 0.2) 45%, transparent 70%);
  z-index: -1;
  filter: blur(18px);
  animation: winnerAuraPulse 2.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes winnerAuraPulse {
  0% { transform: scale(0.95); opacity: 0.65; }
  100% { transform: scale(1.06); opacity: 1; }
}

/* Photocard Specifics for Winner */
.winner-photocard {
  width: 100%;
  height: 100%;
  border: 2.5px solid #ffe600 !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 230, 0, 0.5), 0 0 15px rgba(0, 180, 216, 0.4) !important;
  cursor: pointer;
}

/* Shimmering Hologram Effect continuously running on Winner Card */
.winner-holo {
  opacity: 1 !important;
  animation: winnerHoloSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

@keyframes winnerHoloSweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  30% {
    opacity: 0.85;
  }
  70% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Winner Bottom Pill Tag */
.winner-bottom-tag {
  background: linear-gradient(135deg, #ffe600, #ff9e00) !important;
  border-top: 2px solid #ffffff !important;
  border-left: 2px solid #ffffff !important;
}

.winner-bottom-tag .pc-role-pill {
  color: #07192d !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Winner Actions Container */
.winner-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 10;
}

.winner-actions .random-again-btn {
  flex: 1;
  margin: 0 !important;
  width: auto !important;
  background: linear-gradient(135deg, #ffe600, #ffbe0b);
  color: #061e38;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.winner-actions .random-again-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.65);
}

.winner-actions .winner-detail-btn {
  flex: 1;
  margin: 0 !important;
  width: auto !important;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.winner-actions .winner-detail-btn:hover {
  background: rgba(0, 180, 216, 0.35);
  border-color: #00b4d8;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 180, 216, 0.4);
  color: #ffffff;
}

.student-modal-photo-wrap,
.portfolio-avatar-wrap {
  width: 180px;
  aspect-ratio: 4 / 5;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(0, 180, 216, 0.1);
  display: grid;
  place-items: center;
  border: 3px solid #48cae4;
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.3);
}

.student-modal-photo-wrap img,
.portfolio-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.random-modal-placeholder,
.student-modal-placeholder,
.portfolio-avatar-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  font-size: 2.4rem;
  color: #fff;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  font-family: 'Titan One', cursive;
}

.random-modal-info,
.student-modal-info,
.portfolio-info {
  text-align: center;
  padding: 0 1.5rem 1rem;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.random-modal-number,
.student-modal-number,
.portfolio-number {
  display: inline-block;
  min-height: 1.1em;
  margin-bottom: 0.35rem;
  color: #ffe838;
  font-family: 'Fredoka', cursive;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.random-modal-name,
.student-modal-name,
.portfolio-name {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 2px 2px 0 #053b75;
  letter-spacing: 0.02em;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin-bottom: 0.2rem;
}

.random-modal-role,
.student-modal-role {
  min-height: 1.2em;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #72efdd;
}

.random-again-btn,
.group-generate-btn,
.group-copy-btn,
.group-export-png,
.group-export-pdf,
.group-shuffle-again,
.group-back-btn,
.portfolio-tab-btn,
.mode-btn,
.split-mode-btn,
.stepper-btn,
.page-btn,
.filter-btn,
.btn-random-picker,
.btn-group-picker {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.random-again-btn {
  width: calc(100% - 2rem);
  margin: 0 1rem 1.4rem;
}

.group-modal-content {
  width: min(92vw, 980px);
  padding-bottom: 1rem;
}

.group-config,
.group-results {
  padding: 0 1.2rem 0.8rem;
}

.group-config {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.group-config-section-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffe838;
}

.group-split-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.split-mode-btn,
.mode-btn {
  background: rgba(0, 180, 216, 0.1);
  border: 2px solid rgba(0, 180, 216, 0.3);
  color: #fff;
  border-radius: 18px;
  padding: 0.85rem 0.75rem;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
}

.split-mode-btn:hover,
.mode-btn:hover {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.15);
  transform: translateY(-2px);
}

.split-mode-btn.active,
.mode-btn.active {
  border-color: #ffe838;
  background: rgba(255, 232, 56, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.group-config-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(0, 180, 216, 0.08);
  border: 2px solid rgba(0, 180, 216, 0.25);
  border-radius: 18px;
}

.group-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.group-config-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d0efff;
}

.group-config-label i {
  color: #ffe838;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #48cae4;
  background: rgba(0, 180, 216, 0.25);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.stepper-btn:hover {
  background: #ff477e;
  border-color: #ffffff;
  transform: scale(1.1);
}

.group-stepper {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.stepper-val {
  min-width: 2.5ch;
  text-align: center;
  font-family: 'Titan One', cursive;
  font-size: 1.3rem;
  color: #ffe838;
  font-weight: 700;
}

.group-gen-btn,
.group-generate-btn {
  width: 100%;
}

.group-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-top: 0.5rem;
}

.group-results-label {
  color: #ffe838;
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.group-shuffle-again {
  background: rgba(0, 180, 216, 0.2);
  border: 2px solid #48cae4;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.1rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.group-shuffle-again:hover {
  background: #ff477e;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 71, 126, 0.4);
}

.groups-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.group-card {
  background: rgba(6, 30, 64, 0.85);
  border: 2.5px solid rgba(0, 180, 216, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.group-card-header {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: #fff;
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.4) 0%, rgba(0, 119, 182, 0.6) 100%);
  border-bottom: 2px solid rgba(0, 180, 216, 0.3);
}

.group-card-title {
  flex: 1;
}

.group-card-count {
  font-size: 0.8rem;
  color: #ffe838;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
}

.group-card-members {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-member-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #d0efff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}

.group-member-num {
  color: #ffe838;
  font-family: 'Fredoka', cursive;
  font-weight: 700;
  font-size: 0.8rem;
}

.group-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.group-results-actions .btn {
  flex: 1 1 120px;
}

.portfolio-modal-content {
  width: min(92vw, 700px);
}

.portfolio-hero {
  height: 160px;
  background: linear-gradient(135deg, #0077b6 0%, #00b4d8 50%, #72efdd 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-hero-deco {
  position: absolute;
  inset: auto auto 1rem 1rem;
  font-family: 'Titan One', cursive;
  font-size: 4.5rem;
  font-weight: 800;
  color: #ffe838;
  opacity: 0.3;
}

.portfolio-avatar-wrap {
  position: relative;
  margin-top: -50px;
  width: 120px;
  height: 120px;
  border: 4px solid #00b4d8;
  border-radius: 26px;
  background: rgba(4, 25, 54, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.2);
  border: 1.5px solid #ffd166;
  color: #ffe838;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
}

.portfolio-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1rem 0;
  flex-wrap: wrap;
}

.portfolio-tab-btn {
  border: 2px solid rgba(0, 180, 216, 0.3);
  background: rgba(0, 180, 216, 0.1);
  color: #d0efff;
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.portfolio-tab-btn:hover {
  border-color: #ffd166;
  color: #ffe838;
}

.portfolio-tab-btn.active {
  background: #ffe838;
  color: #042444;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 232, 56, 0.4);
}

.portfolio-tab-content {
  display: none;
  padding: 1rem;
}

.portfolio-tab-content.active {
  display: block;
}

.portfolio-bio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.portfolio-bio-item,
.portfolio-bio-about {
  background: rgba(0, 180, 216, 0.08);
  border: 2px solid rgba(0, 180, 216, 0.2);
  border-radius: 18px;
  padding: 0.9rem;
}

.portfolio-bio-item.portfolio-bio-full,
.portfolio-bio-about.portfolio-bio-full {
  grid-column: 1 / -1;
}

.portfolio-bio-label,
.portfolio-bio-about-label {
  color: #ffe838;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.portfolio-skills-list,
.portfolio-achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.portfolio-skill-tag {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 180, 216, 0.18);
  border: 1.5px solid #48cae4;
  color: #72efdd;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
}

.portfolio-achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(0, 180, 216, 0.08);
  border: 2px solid rgba(0, 180, 216, 0.2);
}

.portfolio-achievement-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff758f, #ff477e);
  color: #fff;
  border: 2px solid #fff;
}

.portfolio-empty {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(0, 180, 216, 0.05);
  border: 2px dashed rgba(0, 180, 216, 0.3);
  font-family: 'Fredoka', sans-serif;
  color: var(--clr-text-muted);
}

@media (max-width: 640px) {
  .group-split-mode,
  .portfolio-bio-grid {
    grid-template-columns: 1fr;
  }

  .group-results-header,
  .group-config-row,
  .group-results-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   HERO SECTION — BIKINI BOTTOM LAYOUT (INSPIRASI PERSIS GAMBAR)
   ============================================================ */
.hero {
  position: relative !important;
  width: 100% !important;
  min-height: 100vh !important;
  padding: 110px 1.5rem 130px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: 
    linear-gradient(180deg, rgba(2, 22, 44, 0.78) 0%, rgba(3, 34, 64, 0.72) 40%, rgba(1, 18, 38, 0.88) 100%),
    url("../image/bg.jpg") center center / cover no-repeat !important;
  overflow: hidden !important;
}

[data-theme="light"] .hero {
  background: 
    linear-gradient(180deg, rgba(235, 248, 255, 0.72) 0%, rgba(195, 230, 252, 0.68) 40%, rgba(160, 215, 250, 0.8) 100%),
    url("../image/bg.jpg") center center / cover no-repeat !important;
}

.hero::after {
  display: none !important;
}

.hero .parallax-layer {
  display: none !important;
}

/* Sinar Matahari Dihapus */
.hero-sun-rays {
  display: none !important;
}

/* Gelembung Udara Melayang */
.hero-ambient-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ab-bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85) 0%, rgba(144, 224, 239, 0.4) 40%, rgba(0, 119, 182, 0.2) 80%, rgba(255, 255, 255, 0.6) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3), inset 0 -2px 5px rgba(0, 119, 182, 0.4);
  animation: ab-float-up linear infinite;
}

.ab-1 { width: 32px; height: 32px; left: 12%; animation-duration: 9s; animation-delay: 0s; }
.ab-2 { width: 22px; height: 22px; left: 28%; animation-duration: 12s; animation-delay: 2s; }
.ab-3 { width: 42px; height: 42px; left: 45%; animation-duration: 14s; animation-delay: 4s; }
.ab-4 { width: 18px; height: 18px; left: 68%; animation-duration: 10s; animation-delay: 1s; }
.ab-5 { width: 36px; height: 36px; left: 82%; animation-duration: 11s; animation-delay: 3s; }
.ab-6 { width: 26px; height: 26px; left: 92%; animation-duration: 13s; animation-delay: 5s; }

@keyframes ab-float-up {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

/* Siluet Ikan Berenang */
.hero-fish-school {
  position: absolute;
  color: rgba(2, 62, 138, 0.35);
  display: flex;
  gap: 1.4rem;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.school-left {
  top: 22%;
  left: 6%;
  animation: fish-swim-left 18s ease-in-out infinite alternate;
}

.school-right {
  top: 36%;
  right: 12%;
  animation: fish-swim-right 16s ease-in-out infinite alternate;
}

@keyframes fish-swim-left {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(60px) translateY(-15px); }
}

@keyframes fish-swim-right {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50px) translateY(12px); }
}

/* Container Utama Hero Layout */
.hero-layout-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

/* 2 Koin / Piringan Spons Kuning di Kiri Atas */
.sponge-discs-wrap {
  position: absolute;
  top: -30px;
  left: 6%;
  display: flex;
  gap: 12px;
  z-index: 6;
  pointer-events: none;
}

.sponge-disc {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe600 0%, #ffbe0b 65%, #d49b00 100%);
  border: 3.5px solid #ffffff;
  box-shadow: 0 10px 24px rgba(0, 25, 55, 0.35), inset 0 -3px 6px rgba(180, 110, 0, 0.5);
  position: relative;
  animation: sponge-bob 4s ease-in-out infinite alternate;
}

.disc-1 {
  width: 54px;
  height: 54px;
}

.disc-2 {
  width: 44px;
  height: 44px;
  margin-top: 14px;
  animation-delay: -2s;
}

.disc-pore {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 100, 0, 0.4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.disc-1 .p-1 { width: 8px; height: 8px; top: 12px; left: 14px; }
.disc-1 .p-2 { width: 10px; height: 10px; bottom: 12px; right: 14px; }
.disc-1 .p-3 { width: 6px; height: 6px; top: 18px; right: 12px; }
.disc-1 .p-4 { width: 5px; height: 5px; bottom: 14px; left: 16px; }

.disc-2 .p-1 { width: 7px; height: 7px; top: 10px; left: 12px; }
.disc-2 .p-2 { width: 9px; height: 9px; bottom: 10px; right: 10px; }
.disc-2 .p-3 { width: 5px; height: 5px; top: 16px; right: 12px; }

@keyframes sponge-bob {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(8deg); }
}

/* ==================== CENTER CLOUD SIGNBOARD ==================== */
.hero-signboard-wrapper {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 1.5rem auto 1.8rem;
}

.hero-signboard {
  position: relative;
  background: linear-gradient(145deg, #18b3d6 0%, #0096c7 45%, #0077b6 100%);
  border: 5.5px solid #005466;
  border-radius: 65px 85px 75px 80px / 52px 75px 60px 75px;
  padding: 2.2rem 2.8rem 2.4rem;
  box-shadow: 
    0 25px 65px rgba(0, 20, 50, 0.45),
    inset 0 6px 16px rgba(255, 255, 255, 0.45),
    inset 0 -8px 0 rgba(0, 60, 90, 0.4);
  animation: signboard-float 5s ease-in-out infinite alternate;
  backdrop-filter: blur(8px);
}

@keyframes signboard-float {
  0% { transform: translateY(0) rotate(-0.3deg); }
  100% { transform: translateY(-8px) rotate(0.4deg); }
}

/* Hawaiian Flower Watermark inside Signboard */
.signboard-flower {
  position: absolute;
  top: 14px;
  right: 28px;
  width: 65px;
  height: 65px;
  pointer-events: none;
  opacity: 0.22;
  border: 3.5px dashed #ffffff;
  border-radius: 50%;
}

/* Top Angled Text ("EXPLORING THE VAST") */
.signboard-top-text {
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
  display: inline-block;
  margin-bottom: 0.35rem;
  text-shadow: 
    0 3.5px 0 #004558,
    0 7px 14px rgba(0, 20, 40, 0.45);
}

/* Huge Main 3D SpongeBob Yellow Title */
.signboard-main-title {
  margin: 0;
  line-height: 1;
}

.signboard-main-title .title-word {
  display: inline-block;
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: clamp(3.6rem, 9.5vw, 6.2rem);
  font-weight: 900;
  color: #ffe600;
  letter-spacing: 0.035em;
  -webkit-text-stroke: 3.5px #013a4a;
  text-shadow: 
    0 4px 0 #013a4a,
    0 8px 0 #002733,
    0 12px 0 #001922,
    0 18px 28px rgba(0, 15, 30, 0.55);
}

/* Bottom Tagline Ribbon */
.signboard-bottom-text {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(0.78rem, 1.6vw, 1.05rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.65rem;
  text-shadow: 
    0 2px 0 #013a4a,
    0 4px 10px rgba(0, 20, 40, 0.5);
}

/* ==================== MAGNIFYING GLASS (RIGHT FLANK) ==================== */
.hero-magnifier {
  position: absolute;
  right: -36px;
  bottom: -28px;
  z-index: 7;
  pointer-events: none;
  animation: magnifier-hover 4s ease-in-out infinite alternate;
}

@keyframes magnifier-hover {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(-3deg); }
}

.mag-rim {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  border: 9px solid #f1a208;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.8) 0%, rgba(72, 202, 228, 0.5) 50%, rgba(0, 119, 182, 0.7) 100%);
  box-shadow: 
    0 14px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 14px rgba(2, 62, 138, 0.5),
    0 0 0 3px #ffe600;
  position: relative;
  overflow: hidden;
}

.mag-lens {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mag-reflection {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 38px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(-35deg);
  filter: blur(1px);
}

.mag-target-text {
  font-family: 'Titan One', sans-serif;
  color: rgba(2, 62, 138, 0.4);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.mag-handle {
  position: absolute;
  width: 16px;
  height: 72px;
  background: linear-gradient(90deg, #873e00, #b85400 40%, #683000);
  border: 2.5px solid #f1a208;
  border-radius: 6px;
  bottom: -54px;
  right: 2px;
  transform: rotate(45deg);
  transform-origin: top center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

/* ==================== HERO ACTIONS (BUTTONS) ==================== */
.hero-actions {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-bubble);
  font-weight: 800;
  font-size: 0.98rem;
  color: #012a5e;
  background: linear-gradient(135deg, #ffe600, #ffbe0b);
  border: 3.5px solid #ffffff;
  box-shadow: 0 8px 22px rgba(0, 20, 50, 0.3), 0 3px 0 #cc8800;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 20, 50, 0.4), 0 3px 0 #b37700;
  color: #012a5e;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-bubble);
  font-weight: 800;
  font-size: 0.98rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 3px solid #ffffff;
  box-shadow: 0 8px 22px rgba(0, 20, 50, 0.25);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
}

.btn-hero-secondary:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* ==================== HERO STATS ROW ==================== */
.hero-stats-row {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.95);
  color: #012a5e;
  border: 3px solid #72efdd;
  border-radius: 20px;
  padding: 0.75rem 1.7rem;
  min-width: 125px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 25, 60, 0.2), 0 3px 0 #0096c7;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-stat-card:hover {
  transform: translateY(-5px) scale(1.06);
  border-color: #ffe600;
  box-shadow: 0 12px 26px rgba(0, 25, 60, 0.3), 0 3px 0 #ffaa00;
}

.hero-stat-card .stat-number {
  display: block;
  font-family: 'Titan One', cursive, sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  color: #0077b6;
  line-height: 1.1;
}

.hero-stat-card .stat-label {
  font-family: var(--font-bubble);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ff477e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==================== BOTTOM CORAL REEF & SEAFLOOR ==================== */
.hero-seafloor-corals {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

/* Seafloor Bed (Sand Dunes) */
.seafloor-bed {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, #d4a343 0%, #ba8a2d 100%);
  border-top: 4px solid #f4d06f;
  clip-path: ellipse(75% 100% at 50% 100%);
  z-index: 1;
}

/* Left Reef Group */
.reef-group {
  position: relative;
  z-index: 2;
  height: 100px;
  width: 180px;
}

.reef-left {
  margin-left: 2%;
}

.coral-brain {
  position: absolute;
  bottom: 12px;
  left: 30px;
  width: 65px;
  height: 52px;
  background: radial-gradient(circle at 40% 40%, #b5179e 0%, #7209b7 70%, #480ca8 100%);
  border-radius: 50% 50% 30% 30%;
  border: 3px solid #ff70a6;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.4), 0 6px 15px rgba(0, 0, 0, 0.3);
}

.coral-pink {
  position: absolute;
  bottom: 25px;
  left: 10px;
  width: 45px;
  height: 60px;
  background: linear-gradient(180deg, #ff4d6d 0%, #c9184a 100%);
  clip-path: polygon(30% 0%, 50% 20%, 70% 0%, 85% 45%, 65% 70%, 75% 100%, 25% 100%, 35% 65%, 15% 40%);
  border-radius: 6px;
}

.coral-orange {
  position: absolute;
  bottom: 20px;
  left: 85px;
  width: 40px;
  height: 55px;
  background: linear-gradient(180deg, #ff758f 0%, #e01e37 100%);
  clip-path: polygon(50% 0%, 75% 30%, 60% 60%, 80% 100%, 20% 100%, 40% 55%, 25% 25%);
}

.sea-rock {
  position: absolute;
  border-radius: 40% 50% 30% 40%;
  background: linear-gradient(135deg, #6c757d 0%, #495057 60%, #343a40 100%);
  border: 2px solid #adb5bd;
}

.rock-1 { width: 48px; height: 32px; bottom: 8px; left: 0; }
.rock-2 { width: 55px; height: 38px; bottom: 6px; left: 75px; }

/* Right Reef Group */
.reef-right {
  margin-right: 2%;
}

.coral-purple {
  position: absolute;
  bottom: 24px;
  right: 25px;
  width: 55px;
  height: 70px;
  background: linear-gradient(180deg, #7b2cbf 0%, #3c096c 100%);
  clip-path: polygon(50% 0%, 80% 25%, 65% 55%, 85% 100%, 15% 100%, 35% 60%, 20% 25%);
}

.coral-yellow {
  position: absolute;
  bottom: 18px;
  right: 75px;
  width: 25px;
  height: 50px;
  background: linear-gradient(180deg, #ffd166 0%, #f77f00 100%);
  border-radius: 12px 12px 4px 4px;
  border: 2px solid #ffffff;
}

.rock-3 { width: 52px; height: 34px; bottom: 8px; right: 8px; }
.rock-4 { width: 44px; height: 30px; bottom: 6px; right: 65px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 95px 1rem 90px !important;
  }
  .hero-signboard {
    padding: 1.8rem 1.4rem 2rem;
    border-radius: 45px 55px 50px 55px;
  }
  .hero-magnifier {
    right: -10px;
    bottom: -20px;
    transform: scale(0.75);
  }
  .sponge-discs-wrap {
    top: -20px;
    left: 2%;
    transform: scale(0.8);
  }
  .reef-group {
    display: none;
  }
}

/* ============================================================
   CUSTOM PENCIL CURSOR (ALAT TULIS PENSIL)
   ============================================================ */
html,
body,
body * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M22,17 L24,19 C26,21 26,23.5 24.5,25 C23,26.5 20.5,26.5 18.5,24.5 L16,23 Z' fill='%23ff758f'/%3E%3Cpolygon points='19,14 22,17 16,23 13,20' fill='%2394a3b8'/%3E%3Cline x1='20.5' y1='15.5' x2='14.5' y2='21.5' stroke='%23475569' stroke-width='0.8'/%3E%3Cpolygon points='9,4 19,14 16,17 6,7' fill='%23fde047'/%3E%3Cpolygon points='6,7 16,17 13,20 4,9' fill='%23f59e0b'/%3E%3Cpolygon points='1,1 9,4 6,7' fill='%23fed7aa'/%3E%3Cpolygon points='1,1 6,7 4,9' fill='%23fdba74'/%3E%3Cpolygon points='1,1 4,2 2,4' fill='%230f172a'/%3E%3Cpath d='M1,1 L9,4 L19,14 L22,17 L24,19 C26,21 26,23.5 24.5,25 C23,26.5 20.5,26.5 18.5,24.5 L16,23 L13,20 L4,9 Z' fill='none' stroke='%230f172a' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 1 1, auto !important;
}

/* Pointer cursor dengan kilau pensil saat mengarahkan ke link & tombol */
a,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
select,
label,
[role="button"],
.btn,
.nav-link,
.card,
.clickable,
.filter-btn,
.tab-btn,
.theme-toggle,
.social-link,
.gallery-item,
.student-card {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M22,17 L24,19 C26,21 26,23.5 24.5,25 C23,26.5 20.5,26.5 18.5,24.5 L16,23 Z' fill='%23ff758f'/%3E%3Cpolygon points='19,14 22,17 16,23 13,20' fill='%2394a3b8'/%3E%3Cline x1='20.5' y1='15.5' x2='14.5' y2='21.5' stroke='%23475569' stroke-width='0.8'/%3E%3Cpolygon points='9,4 19,14 16,17 6,7' fill='%23fde047'/%3E%3Cpolygon points='6,7 16,17 13,20 4,9' fill='%23f59e0b'/%3E%3Cpolygon points='1,1 9,4 6,7' fill='%23fed7aa'/%3E%3Cpolygon points='1,1 6,7 4,9' fill='%23fdba74'/%3E%3Cpolygon points='1,1 4,2 2,4' fill='%230f172a'/%3E%3Cpath d='M1,1 L9,4 L19,14 L22,17 L24,19 C26,21 26,23.5 24.5,25 C23,26.5 20.5,26.5 18.5,24.5 L16,23 L13,20 L4,9 Z' fill='none' stroke='%230f172a' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M0,7 Q3,7 3,4 Q3,7 6,7 Q3,7 3,10 Q3,7 0,7' fill='%23ffe600' stroke='%23d97706' stroke-width='0.6'/%3E%3Ccircle cx='8' cy='1' r='1' fill='%2338bdf8'/%3E%3C/svg%3E") 1 1, pointer !important;
}

/* Mode menulis untuk input text */
input[type="text"],
input[type="search"],
input[type="number"],
textarea {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M22,17 L24,19 C26,21 26,23.5 24.5,25 C23,26.5 20.5,26.5 18.5,24.5 L16,23 Z' fill='%23ff758f'/%3E%3Cpolygon points='19,14 22,17 16,23 13,20' fill='%2394a3b8'/%3E%3Cline x1='20.5' y1='15.5' x2='14.5' y2='21.5' stroke='%23475569' stroke-width='0.8'/%3E%3Cpolygon points='9,4 19,14 16,17 6,7' fill='%23fde047'/%3E%3Cpolygon points='6,7 16,17 13,20 4,9' fill='%23f59e0b'/%3E%3Cpolygon points='1,1 9,4 6,7' fill='%23fed7aa'/%3E%3Cpolygon points='1,1 6,7 4,9' fill='%23fdba74'/%3E%3Cpolygon points='1,1 4,2 2,4' fill='%230f172a'/%3E%3Cpath d='M1,1 L9,4 L19,14 L22,17 L24,19 C26,21 26,23.5 24.5,25 C23,26.5 20.5,26.5 18.5,24.5 L16,23 L13,20 L4,9 Z' fill='none' stroke='%230f172a' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 1 1, text !important;
}

/* ============================================================
   SCROLL BUBBLES EFFECT (GELEMBUNG SAAT DISCROLL)
   ============================================================ */
#scrollBubbleContainer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.scroll-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(224, 247, 255, 0.65) 25%,
    rgba(72, 202, 228, 0.35) 55%,
    rgba(0, 119, 182, 0.22) 80%,
    rgba(255, 255, 255, 0.75) 100%
  );
  border: 1.5px solid rgba(255, 255, 255, 0.68);
  box-shadow: 
    0 4px 15px rgba(0, 180, 216, 0.35),
    inset 0 -3px 6px rgba(0, 119, 182, 0.4),
    inset 0 3px 6px rgba(255, 255, 255, 0.8);
  animation: 
    scrollBubbleRise var(--duration, 3.2s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
    scrollBubbleSway var(--sway-duration, 1.6s) ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.scroll-bubble::before {
  content: '';
  position: absolute;
  top: 16%;
  left: 20%;
  width: 28%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: rotate(-35deg);
  filter: blur(0.4px);
}

@keyframes scrollBubbleRise {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: 0.88;
    transform: translateY(-50px) scale(1);
  }
  80% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(calc(-100vh - 100px)) translateX(var(--drift-x, 25px)) scale(1.15);
    opacity: 0;
  }
}

@keyframes scrollBubbleSway {
  0% {
    margin-left: -14px;
  }
  100% {
    margin-left: 14px;
  }
}


/* ==================== SPONGEBOB SQUAREPANTS HERO TITLE LOGO ==================== */
.hero-spongebob-logo-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 1.2rem auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.spongebob-hero-logo-box {
  position: relative;
  width: 100%;
  max-width: 760px;
  animation: spongebob-hero-float 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 20px 45px rgba(0, 25, 55, 0.45));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spongebob-hero-logo-box:hover {
  transform: scale(1.035) rotate(-0.5deg);
  filter: drop-shadow(0 28px 60px rgba(0, 35, 75, 0.55));
}

.spongebob-hero-logo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes spongebob-hero-float {
  0% {
    transform: translateY(0px) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.6deg);
  }
  100% {
    transform: translateY(-3px) rotate(-0.3deg);
  }
}

@media (max-width: 768px) {
  .hero-spongebob-logo-wrapper {
    max-width: 95%;
    margin: 0.8rem auto 1.5rem;
  }
}
