/* =========================================================
   Kapaljudi · Link Social Media Resmi
   ========================================================= */

:root {
  --bg: #5A54A0;
  --panel: #8A84DC;
  --panel-edge: #6A63BF;
  --panel-inner: #6F68C6;
  --card: #D4D0FA;
  --card-edge: #A49DEA;
  --ink: #1E1950;
  --ink-soft: #3F3990;
  --navy: #2B2566;
  --navy-soft: #352E72;
  --light: #F4F2FF;
  --light-soft: #EDEBFF;
  --live: #3BE38A;
  --shadow: rgba(20, 15, 66, .65);

  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-display: 'Anton', Impact, sans-serif;
  --font-script: 'Yellowtail', cursive;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  background: var(--bg);
}

body {
  min-height: 100vh;
  padding: 40px 16px 56px;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
}

h1, h2, p {
  margin: 0;
}

img {
  display: block;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--light);
  outline-offset: 3px;
}

.lift {
  transition: transform .18s ease;
}

.lift:active {
  transform: translateY(1px);
}

/* ---------- Layout ---------- */
.container {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel {
  position: relative;
  background: var(--panel);
  border-radius: 44px;
  box-shadow:
    0 26px 44px -16px var(--shadow),
    0 7px 0 var(--panel-edge),
    inset 0 2px 0 rgba(255, 255, 255, .3);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-pill {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow:
    0 18px 30px -14px var(--shadow),
    0 5px 0 var(--panel-edge),
    inset 0 2px 0 rgba(255, 255, 255, .3);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--panel-inner);
  border: 1.5px solid rgba(244, 242, 255, .55);
  color: var(--light);
}

.topbar-verif {
  flex: none;
  height: 26px;
  width: auto;
}

.topbar-inner svg {
  flex: none;
}

.topbar-text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 64px;
  padding: 4px 6px;
  border-radius: 20px;
  background: var(--navy);
  border: 2px solid var(--card);
  box-shadow: 0 14px 22px -10px rgba(20, 15, 66, .75);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Hero ---------- */
.hero {
  padding: 36px clamp(20px, 4vw, 40px) 32px;
}

.hero-mascot {
  position: absolute;
  top: -24px;
  right: -24px;
  z-index: 2;
  width: clamp(110px, 18vw, 170px);
  height: auto;
  filter: drop-shadow(0 18px 20px rgba(20, 15, 66, .55));
  pointer-events: none;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: stretch;
}

.hero-intro {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  padding-right: 88px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.title-wrap {
  position: relative;
  align-self: flex-start;
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 14vw, 100px);
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #120E3A 0%, #2E2780 55%, #4D45AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 242, 255, .6);
}

.title-script {
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-50%, -42%) rotate(-9deg);
  font-family: var(--font-script);
  font-size: clamp(40px, 7vw, 66px);
  line-height: 1;
  color: var(--light);
  text-shadow: 0 3px 0 var(--navy), 0 8px 16px rgba(20, 15, 66, .55);
  white-space: nowrap;
  pointer-events: none;
}

.subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 16px -8px rgba(20, 15, 66, .7), inset 0 2px 0 rgba(255, 255, 255, .85);
}

.hero-side {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-card {
  position: relative;
  flex: 1 1 auto;
  padding: 26px 26px 30px;
  border-radius: 28px;
  background: var(--navy-soft);
  border: 1.5px solid rgba(212, 208, 250, .4);
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, .35), 0 3px 0 rgba(255, 255, 255, .22);
  color: var(--light-soft);
}

.about-title {
  margin-bottom: 12px;
  padding-right: 110px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--light);
}

.about-text {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--card);
  border: 2.5px solid var(--navy);
  color: var(--navy);
  box-shadow: 0 12px 18px -8px rgba(20, 15, 66, .75), inset 0 2px 0 rgba(255, 255, 255, .85);
}

/* ---------- Notifikasi mail ---------- */
.mail-btn {
  position: absolute;
  right: -26px;
  bottom: -30px;
  z-index: 3;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: none;
  cursor: pointer;
}

.mail-btn img {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 10px rgba(20, 15, 66, .55)) drop-shadow(0 0 10px rgba(212, 208, 250, .7));
  transition: transform .18s ease;
}

.mail-btn img.ring {
  animation: mailring 1.6s ease-in-out infinite;
  transform-origin: 50% 20%;
  filter: drop-shadow(0 10px 10px rgba(20, 15, 66, .55)) drop-shadow(0 0 12px rgba(255, 70, 90, .85));
}

/* badge merah "!" — tanda pesan penting belum dibaca */
.mail-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #FF3B4E;
  border: 2.5px solid #fff;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px -2px rgba(255, 40, 60, .8);
  animation: mailbadge 1s ease-in-out infinite;
}

.mail-btn.read .mail-badge,
.mail-btn.read .mail-ping {
  display: none;
}

.mail-btn:focus-visible {
  outline: 3px solid var(--light);
  outline-offset: 2px;
}

.mail-ping {
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: rgba(255, 70, 90, .55);
  animation: mailping 1.4s ease-out infinite;
}

.mail-ping.p2 {
  animation-delay: .7s;
}

.mail-pop {
  position: absolute;
  right: -8px;
  bottom: 56px;
  z-index: 4;
  width: min(280px, calc(100vw - 64px));
  padding: 14px 16px 16px;
  border-radius: 20px;
  background: var(--light);
  border: 2px solid var(--navy);
  box-shadow: 0 22px 34px -14px rgba(20, 15, 66, .8), inset 0 2px 0 #fff;
  transform-origin: calc(100% - 30px) 100%;
  animation: mailpop .32s cubic-bezier(.2, 1.4, .4, 1) both;
}

.mail-pop[hidden] {
  display: none;
}

.mail-pop::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: var(--light);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
}

.mail-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mail-pop-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink);
}

.mail-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 9px;
  border: 2px solid var(--navy);
  background: var(--light);
  color: var(--navy);
  cursor: pointer;
}

.mail-pop-text {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--navy-soft);
  white-space: pre-line;
}

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 24px;
}

.section-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: .01em;
}

.section-desc {
  font-size: 14px;
  font-weight: 600;
}

.section-badge {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  background: rgba(244, 242, 255, .25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Kartu link (dipakai kanal & layanan) ---------- */
.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  min-height: 78px;
  border-radius: 24px;
  background: var(--card);
  box-shadow:
    0 12px 20px -10px rgba(20, 15, 66, .6),
    0 4px 0 var(--card-edge),
    inset 0 2px 0 rgba(255, 255, 255, .75);
}

.card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
}

.card-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.card-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--light);
  border: 2px solid var(--navy);
  color: var(--navy);
}

/* ---------- Kanal sosial media ---------- */
.channels {
  padding: 56px clamp(18px, 3.5vw, 30px) 34px;
}

.channels .section-head {
  padding-left: clamp(78px, 13vw, 112px);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.channel-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
}

.channel-logo img {
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(20, 15, 66, .45));
}

.channel-logo--sm img {
  width: 62px;
  height: 62px;
}

.channel-logo--lg img {
  width: 82px;
  height: 82px;
}

/* ---------- Prediksi & RTP ---------- */
.predictions {
  padding: 56px clamp(18px, 3.5vw, 30px) 34px;
}

.predictions .section-head {
  padding-left: clamp(84px, 14vw, 122px);
}

.pred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px;
}

/* banner ilustrasi — gaya sama dengan .media */
.pred-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 18%, rgba(138, 132, 220, .55), transparent 55%),
    radial-gradient(circle at 12% 100%, rgba(59, 227, 138, .18), transparent 50%),
    linear-gradient(160deg, #3B3483, var(--navy) 70%);
  color: var(--light);
  box-shadow: 0 10px 18px -10px rgba(20, 15, 66, .7);
}

.pred-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(212, 208, 250, .16) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  box-shadow: inset 0 0 0 1.5px rgba(212, 208, 250, .4);
  pointer-events: none;
}

.pred-visual::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  z-index: 3;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left .8s ease;
}

.lift:focus-visible .pred-visual::after {
  left: 130%;
}

/* bola */
.pred-glyph {
  position: absolute;
  right: -22px;
  bottom: -26px;
  opacity: .2;
  transform: rotate(-18deg);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.pred-vs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pred-vs b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: .04em;
  text-shadow: 0 4px 0 rgba(20, 15, 66, .6);
}

.pred-team {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--light);
  border: 2px solid var(--card-edge);
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .5), inset 0 -3px 0 var(--card);
}

/* togel */
.pred-balls {
  position: relative;
  display: flex;
  gap: 8px;
}

.pred-balls b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff, var(--card) 60%, var(--card-edge));
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 8px 12px -5px rgba(0, 0, 0, .55);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}

.pred-balls b:nth-child(even) {
  transform: translateY(6px);
}

/* rtp */
.pred-bars {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 62%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.pred-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--live), rgba(43, 199, 116, .12));
  opacity: .55;
  transform-origin: bottom;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.pred-rtp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 16px 8px;
  border-radius: 16px;
  background: rgba(20, 15, 66, .72);
  border: 1px solid rgba(212, 208, 250, .5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .6);
}

.pred-rtp b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--live);
}

/* ---------- Layanan resmi ---------- */
.services {
  padding: 32px clamp(18px, 3.5vw, 30px) 34px;
}

.services .section-head {
  padding-right: clamp(72px, 11vw, 104px);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.services-col {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border-radius: 28px;
}

.service-card--tall {
  flex: 1.25 1 320px;
  min-width: 0;
  border-radius: 30px;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 6px;
}

.service-card--tall .service-meta {
  padding: 4px 4px 4px 6px;
}

.service-card--tall .card-title {
  font-size: 18px;
}

.service-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--navy-soft);
  color: var(--light);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .35);
}

.dl-btn {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--navy-soft);
  border: 3px solid var(--light);
  color: var(--light);
  box-shadow: 0 12px 20px -8px rgba(20, 15, 66, .75);
}

.dl-btn::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 3px solid rgba(244, 242, 255, .7);
  animation: mailping 2s ease-out infinite;
  pointer-events: none;
}

/* banner gambar */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--navy);
  box-shadow: 0 10px 18px -10px rgba(20, 15, 66, .7);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(212, 208, 250, .4);
  background: linear-gradient(180deg, rgba(20, 15, 66, 0) 70%, rgba(20, 15, 66, .3));
  pointer-events: none;
}

.media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  z-index: 1;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left .8s ease;
}

.lift:focus-visible .media img {
  transform: scale(1.045);
}

.lift:focus-visible .media::after {
  left: 130%;
}

.media-wide {
  aspect-ratio: 2 / 1;
}

.media-tall {
  flex: 1 1 auto;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
}

.media-tall img {
  object-position: center top;
}

.media-tag {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(20, 15, 66, .65);
  border: 1px solid rgba(212, 208, 250, .5);
  color: var(--light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.media-tag--left {
  left: 12px;
}

.media-tag--right {
  right: 12px;
}

.live-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--live);
  animation: mailping 1.6s ease-out infinite;
}

/* ---------- Elemen 3D melayang ---------- */
.floater {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.floater img {
  position: relative;
  width: 100%;
  height: auto;
}

.floater--ufo {
  top: -62px;
  left: -28px;
  width: clamp(112px, 17vw, 150px);
}

.floater--box {
  top: -28px;
  left: -42px;
  width: clamp(116px, 14vw, 144px);
}

.floater--sat {
  top: -48px;
  right: -22px;
  width: clamp(100px, 15vw, 136px);
}

.floater--horn {
  bottom: -80px;
  right: -26px;
  width: clamp(120px, 18vw, 160px);
}

.halo {
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  filter: blur(18px);
  animation: halo 3.2s ease-in-out infinite;
}

.halo--ufo {
  background: radial-gradient(circle, rgba(196, 182, 255, .9), rgba(138, 132, 220, 0) 70%);
}

.halo--box {
  background: radial-gradient(circle, rgba(255, 184, 90, .85), rgba(255, 184, 90, 0) 70%);
}

.halo--sat {
  background: radial-gradient(circle, rgba(150, 170, 255, .85), rgba(150, 170, 255, 0) 70%);
}

.halo--horn {
  background: radial-gradient(circle, rgba(214, 140, 255, .9), rgba(255, 120, 200, .35) 45%, rgba(138, 132, 220, 0) 70%);
}

.ufo-tilt {
  position: relative;
  animation: ufo 4.6s ease-in-out infinite;
}

.ufo-tilt img {
  filter: drop-shadow(0 16px 16px rgba(20, 15, 66, .55)) drop-shadow(0 0 14px rgba(196, 182, 255, .65));
}

.ufo-beam {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 78%;
  height: 95%;
  transform: translateX(-50%);
  clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 206, 110, .85) 0%, rgba(255, 206, 110, .35) 45%, rgba(255, 206, 110, 0) 100%);
  filter: blur(1.5px);
  transform-origin: top center;
  animation: beam 2.4s ease-in-out infinite;
}

.sat-tilt {
  position: relative;
  animation: sat 6s ease-in-out infinite;
}

.sat-tilt img {
  filter: drop-shadow(0 16px 16px rgba(20, 15, 66, .55)) drop-shadow(0 0 12px rgba(150, 170, 255, .6));
}

.signal {
  position: absolute;
  left: 52%;
  top: 6%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(255, 214, 140, .9);
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;
  animation: signal 2.4s ease-out infinite;
}

.signal.s2 { animation-delay: .8s; }
.signal.s3 { animation-delay: 1.6s; }

.box-tilt {
  position: relative;
  animation: box 5.2s ease-in-out infinite;
}

.box-tilt img {
  filter: drop-shadow(0 18px 16px rgba(20, 15, 66, .6)) drop-shadow(0 0 16px rgba(255, 170, 70, .55));
}

.spark {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #FFD27A;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: spark 2.2s ease-in-out infinite;
}

.spark--1 { top: 4%; left: 6%; }
.spark--2 { top: 18%; right: 0; width: 10px; height: 10px; animation-delay: .7s; }
.spark--3 { bottom: 10%; left: 0; width: 9px; height: 9px; animation-delay: 1.4s; }

/* megafon: "teriak" berkala + gelombang suara dari corong */
.horn-tilt {
  position: relative;
  animation: horn 3.6s ease-in-out infinite;
  transform-origin: 70% 70%;
}

.horn-tilt img {
  filter: drop-shadow(0 16px 16px rgba(20, 15, 66, .55)) drop-shadow(0 0 14px rgba(214, 140, 255, .6));
}

.shout {
  position: absolute;
  left: 48%;
  top: 52%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 3px solid transparent;
  border-left-color: rgba(255, 214, 140, .95);
  border-top-color: rgba(255, 214, 140, .5);
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  animation: shout 1.8s ease-out infinite;
}

.shout.s2 { animation-delay: .6s; border-left-color: rgba(255, 150, 220, .9); border-top-color: rgba(255, 150, 220, .45); }
.shout.s3 { animation-delay: 1.2s; border-left-color: rgba(150, 230, 255, .9); border-top-color: rgba(150, 230, 255, .45); }

.spark--h1 { top: 0; right: 10%; background: #FF9FE0; }
.spark--h2 { bottom: 14%; left: 2%; width: 10px; height: 10px; animation-delay: .8s; }
.spark--h3 { top: 34%; right: -4%; width: 9px; height: 9px; background: #9FE8FF; animation-delay: 1.5s; }

/* hentikan animasi dekorasi saat di luar layar (diatur oleh script.js) */
.paused .halo,
.paused .ufo-tilt,
.paused .ufo-beam,
.paused .sat-tilt,
.paused .signal,
.paused .box-tilt,
.paused .horn-tilt,
.paused .shout,
.paused .spark {
  animation-play-state: paused;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  text-align: center;
  color: var(--light);
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-note svg {
  flex: none;
}

.footer-copy {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--light-soft);
}

/* ---------- Keyframes ---------- */
@keyframes mailring {
  0%, 60%, 100% { transform: translateY(0) rotate(0); }
  64% { transform: translateY(-6px) rotate(-14deg); }
  68% { transform: translateY(-6px) rotate(12deg); }
  72% { transform: translateY(-4px) rotate(-10deg); }
  76% { transform: translateY(-2px) rotate(6deg); }
  80% { transform: translateY(0) rotate(0); }
}

@keyframes mailbadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes mailping {
  0% { opacity: .9; transform: scale(.6); }
  100% { opacity: 0; transform: scale(1.6); }
}

@keyframes mailpop {
  0% { opacity: 0; transform: translateY(10px) scale(.6); }
  100% { opacity: 1; transform: none; }
}

@keyframes ufo {
  0%, 100% { transform: translateY(0) rotate(-14deg); }
  50% { transform: translateY(-10px) rotate(-8deg); }
}

@keyframes beam {
  0%, 100% { opacity: .55; transform: translateX(-50%) scaleY(.9); }
  50% { opacity: 1; transform: translateX(-50%) scaleY(1.05); }
}

@keyframes sat {
  0%, 100% { transform: translate(0, 0) rotate(16deg); }
  50% { transform: translate(-6px, -9px) rotate(22deg); }
}

@keyframes signal {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
}

@keyframes box {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

@keyframes horn {
  0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); }
  40% { transform: translateY(-9px) rotate(-2deg) scale(1); }
  52% { transform: translateY(-9px) rotate(-10deg) scale(1.08); }
  58% { transform: translateY(-7px) rotate(-4deg) scale(.98); }
  64% { transform: translateY(-8px) rotate(-8deg) scale(1.04); }
  72% { transform: translateY(-6px) rotate(-5deg) scale(1); }
}

@keyframes shout {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

@keyframes halo {
  0%, 100% { opacity: .55; transform: scale(.92); }
  50% { opacity: .95; transform: scale(1.05); }
}

@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* ---------- Media queries ---------- */

/* hover hanya untuk perangkat ber-mouse — di HP efek hover "nyangkut" setelah tap */
@media (hover: hover) {
  a:hover { color: #352E72; }
  .lift:hover { transform: translateY(-3px); }
  .mail-btn:hover img { transform: scale(1.08); }
  .lift:hover .media img { transform: scale(1.045); }
  .lift:hover .media::after { left: 130%; }
  .lift:hover .pred-visual::after { left: 130%; }
  .lift:hover .pred-glyph { transform: rotate(160deg) scale(1.08); }
  .lift:hover .pred-balls b { transform: translateY(-5px); }
  .lift:hover .pred-balls b:nth-child(even) { transform: translateY(1px); }
  .lift:hover .pred-bars i { transform: scaleY(1.12); }
}

@media (min-width: 740px) {
  .media-tall {
    aspect-ratio: auto;
    min-height: 300px;
  }
}

/* HP: kurangi efek GPU yang berat (blur, backdrop-filter, filter berlapis) agar scroll tetap mulus */
@media (max-width: 600px) {
  .halo { filter: blur(10px); }
  .ufo-beam { filter: none; }
  .ufo-tilt img,
  .sat-tilt img,
  .box-tilt img,
  .horn-tilt img { filter: drop-shadow(0 10px 10px rgba(20, 15, 66, .5)); }
  .mail-btn img { filter: drop-shadow(0 8px 8px rgba(20, 15, 66, .5)); }
  .mail-badge { width: 21px; height: 21px; font-size: 12px; }
  .media-tag {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(20, 15, 66, .82);
  }
  .signal.s3,
  .shout.s3,
  .spark--3,
  .spark--h3 { display: none; }
  .topbar-text { font-size: 12.5px; }
  .topbar-verif { height: 20px; }
  .mail-btn { width: 60px; height: 60px; right: -14px; bottom: -24px; }
  .mail-pop { bottom: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift { transition: none; }
  .lift:hover { transform: none; }
  .halo, .ufo-tilt, .ufo-beam, .sat-tilt, .signal, .box-tilt, .horn-tilt, .shout, .spark,
  .mail-btn img.ring, .mail-ping, .mail-badge, .mail-pop, .live-dot::after, .dl-btn::before {
    animation: none;
  }
  .media img, .media::after { transition: none; }
  .lift:hover .media img { transform: none; }
  .media::after { display: none; }
  .pred-visual::after { display: none; }
  .pred-glyph, .pred-balls b, .pred-bars i { transition: none; }
  .ufo-tilt { transform: rotate(-14deg); }
  .sat-tilt { transform: rotate(16deg); }
  .box-tilt { transform: rotate(-8deg); }
  .horn-tilt { transform: rotate(-6deg); }
  .spark { opacity: .8; }
}
