:root{
  --bg0:#07162e;
  --bg1:#0b1f3f;
  --card:rgba(255,255,255,.08);
  --card2:rgba(255,255,255,.12);
  --stroke:rgba(255,255,255,.16);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --blue:#3b82f6;
  --blue2:#60a5fa;
  --cyan:#22d3ee;
  --success:#22c55e;
  --danger:#ef4444;
  --warning:#f59e0b;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(96,165,250,.28), transparent 55%),
    radial-gradient(700px 400px at 70% 20%, rgba(34,211,238,.22), transparent 55%),
    radial-gradient(900px 550px at 50% 100%, rgba(59,130,246,.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{color:inherit}
.container{max-width:1100px; margin:0 auto; padding:24px}

/* Landing: true full screen (hide chrome) */
body.landing .container{
  max-width:none;
  padding:0;
  min-height:100vh;
  display:grid;
}
body.landing .topbar,
body.landing .footer{display:none}
body.landing .flashwrap{margin:18px 18px 0}
body.landing .hero.fullscreen{
  min-height:100vh;
  padding:28px 18px;
}
body.landing .hero.fullscreen.comingsoon{
  place-items:center;
}
.comingsoon-card{
  width:min(1180px, 97vw);
  border-radius:30px;
  background:
    radial-gradient(700px 260px at 50% -10%, rgba(147,197,253,.24), transparent 65%),
    radial-gradient(900px 420px at 100% 100%, rgba(34,211,238,.10), transparent 65%),
    rgba(8, 28, 62, 0.62);
  border:1px solid rgba(191,219,254,.24);
  box-shadow: 0 26px 90px rgba(2,8,23,.55), inset 0 0 0 1px rgba(255,255,255,.06);
  padding:36px 28px;
}
.comingsoon-brand{
  display:grid;
  justify-items:center;
  gap:8px;
  margin-bottom:12px;
}
.comingsoon-brand img{
  width:90px;
  height:90px;
  object-fit:contain;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.08);
  box-shadow:0 12px 32px rgba(0,0,0,.35);
}
.comingsoon-school{
  font-size:clamp(20px, 3.1vw, 34px);
  font-weight:900;
  letter-spacing:.2px;
}
.comingsoon-theme{
  color:rgba(255,255,255,.74);
  font-size:13px;
  letter-spacing:.3px;
}
body.landing .comingsoon .countdown.big{
  margin-top:26px;
  max-width:900px;
}
body.landing .comingsoon .countdown.ring-countdown{
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap:30px;
  align-items:center;
  justify-items:center;
  margin-left:auto;
  margin-right:auto;
}
.ring-unit{
  position:relative;
  display:grid;
  place-items:center;
  min-height:200px;
  width:100%;
  max-width:210px;
  border-radius:22px;
  padding:14px 6px;
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.10);
}
.ring-svg{
  width:160px;
  height:160px;
  transform: rotate(-90deg);
}
.ring-bg{
  fill:none;
  stroke: rgba(255,255,255,.11);
  stroke-width: 7;
}
.ring-progress{
  fill:none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset .55s cubic-bezier(.2,.7,.2,1);
  filter: drop-shadow(0 0 10px rgba(96,165,250,.45));
}
.ring-c1{stroke:#1dd3c8}
.ring-c2{stroke:#2d8cff}
.ring-c3{stroke:#6d5efc}
.ring-c4{stroke:#c747f5}
.ring-value{
  position:absolute;
  top:44%;
  transform: translateY(-50%);
  font-size:46px;
  font-weight:700;
  letter-spacing:1px;
  text-shadow:none;
}
.ring-label{
  position:absolute;
  top:58%;
  width:100%;
  text-align:center;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.62);
}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border:1px solid var(--stroke);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.brand{display:flex; align-items:center; gap:12px; min-width:0}
.brand img{width:40px; height:40px; object-fit:contain; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid var(--stroke)}
.brand-title{display:flex; flex-direction:column; line-height:1.1; min-width:0}
.brand-title strong{font-size:14px; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.brand-title span{font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.nav{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.22)}
.btn.primary{
  border-color: rgba(96,165,250,.45);
  background: linear-gradient(135deg, rgba(59,130,246,.95), rgba(34,211,238,.75));
  box-shadow: 0 10px 30px rgba(59,130,246,.25);
}
.btn.primary:hover{transform:translateY(-1px) scale(1.01)}
.btn.danger{border-color:rgba(239,68,68,.4); background:rgba(239,68,68,.12)}
.btn.ghost{background:transparent}
.btn.small{padding:8px 10px; border-radius:10px; font-size:13px}

.hero{padding:44px 0 26px}
.hero.fullscreen{
  min-height: calc(100vh - 130px);
  display:grid;
  place-items:center;
  padding:26px 0 26px;
}
.hero-grid{display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; align-items:stretch}
@media (max-width: 920px){.hero-grid{grid-template-columns:1fr}}

.card{
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  background:rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.card.pad{padding:22px}
.card.center{text-align:center}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px;
  color:rgba(255,255,255,.78);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(96,165,250,.35);
  background:rgba(59,130,246,.12);
}
h1{margin:12px 0 10px; font-size:38px; line-height:1.08; letter-spacing:-.6px}
@media (max-width: 520px){h1{font-size:30px}}
.lead{margin:0; color:var(--muted); font-size:15px; line-height:1.6}
.student-shell{
  max-width:860px;
  margin:0 auto;
}
.student-panel{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 60px rgba(0,0,0,.28);
}
.student-panel-narrow{
  max-width:560px;
  margin:0 auto;
}
.student-section-label{
  display:inline-block;
  margin-bottom:8px;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.56);
}
.student-note{
  margin-top:12px;
  font-size:13px;
  color:rgba(255,255,255,.58);
}
.minimal-card{
  width:min(980px, 94vw);
  padding:44px 32px;
  border-radius:28px;
  background:rgba(7,20,43,.62);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 22px 80px rgba(0,0,0,.32);
}
.minimal-headline{
  margin:18px 0 8px;
  font-size:clamp(24px, 4vw, 36px);
  font-weight:700;
  letter-spacing:-.03em;
}
.minimal-subtle{
  margin-top:18px;
  font-size:13px;
  color:rgba(255,255,255,.56);
}

.countdown{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap:12px; margin-top:18px
}
.countdown.big{max-width: 820px; margin-left:auto; margin-right:auto}
.unit{
  padding:14px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--stroke);
  text-align:center;
}
.countdown.big .unit{padding:18px 12px; border-radius:18px}
.countdown.big .unit .num{font-size:34px}
.unit .num{font-size:28px; font-weight:800; letter-spacing:-.4px}
.unit .lbl{font-size:11px; color:var(--muted); margin-top:2px; letter-spacing:.3px; text-transform:uppercase}
.hint{margin-top:14px; color:rgba(255,255,255,.74); font-size:13px}

.form{
  display:grid; gap:12px; margin-top:10px
}
.field{display:grid; gap:6px}
.field label{font-size:12px; color:rgba(255,255,255,.78)}
.input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.12);
  color:var(--text);
  outline:none;
}
textarea{min-height:96px; resize:vertical}
.input:focus, select:focus, textarea:focus{border-color:rgba(96,165,250,.55); box-shadow:0 0 0 4px rgba(59,130,246,.16)}

.flashwrap{display:grid; gap:10px; margin:18px 0}
.flash{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
}
.flash.error{border-color:rgba(239,68,68,.35); background:rgba(239,68,68,.10)}
.flash.success{border-color:rgba(34,197,94,.35); background:rgba(34,197,94,.10)}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--stroke);
  border-radius:16px;
  background:rgba(255,255,255,.05);
}
.table th,.table td{padding:12px 12px; text-align:left; font-size:13px; border-bottom:1px solid rgba(255,255,255,.08)}
.table th{font-size:12px; text-transform:uppercase; letter-spacing:.3px; color:rgba(255,255,255,.75); background:rgba(255,255,255,.05)}
.table tr:last-child td{border-bottom:none}
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  font-size:12px;
}
.badge.success{border-color:rgba(34,197,94,.45); background:rgba(34,197,94,.12)}
.badge.danger{border-color:rgba(239,68,68,.45); background:rgba(239,68,68,.12)}
.badge.warning{border-color:rgba(245,158,11,.50); background:rgba(245,158,11,.14)}

.grid2{display:grid; grid-template-columns:1fr 1fr; gap:18px}
@media (max-width: 920px){.grid2{grid-template-columns:1fr}}
.muted{color:var(--muted)}
.footer{padding:28px 0 18px; color:rgba(255,255,255,.58); font-size:12px}

/* Box Kelulusan */
.box-stage{display:grid; place-items:center; padding:18px 0 8px}
.box-wrap{
  width:min(520px, 92vw);
  aspect-ratio: 16/11;
  position:relative;
  perspective: 1000px;
}
.box-wrap::before{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:6%;
  height:22%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent 70%);
  filter: blur(10px);
  transform: translateZ(-1px);
}
.box{
  width:100%; height:100%;
  position:absolute; inset:0;
  transform-style: preserve-3d;
  transform: rotateX(10deg);
}
.lid, .base{
  position:absolute; inset:0;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(900px 340px at 30% 30%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(135deg, rgba(59,130,246,.45), rgba(34,211,238,.22)),
    rgba(255,255,255,.06);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.base{
  z-index:1;
  transform: translateZ(-6px);
  clip-path: polygon(6% 34%, 94% 34%, 100% 100%, 0% 100%);
}
.base::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.18));
  opacity:.6;
  clip-path: inherit;
}
.lid{
  transform-origin: 50% 35%;
  z-index:3;
  transform: translateZ(6px);
  clip-path: polygon(0% 0%, 100% 0%, 94% 34%, 6% 34%);
  display:grid;
  place-items:center;
}
.lid::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
  background: radial-gradient(500px 180px at 50% 0%, rgba(255,255,255,.16), transparent 60%);
  clip-path: inherit;
  pointer-events:none;
}
.lid .lid-inner{
  width:86%;
  height:60%;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.16);
  display:grid;
  place-items:center;
}
.lid .tap{
  font-weight:700;
  letter-spacing:.2px;
  color:rgba(255,255,255,.90);
  text-align:center;
  padding:0 12px;
}
.lid .tap.big{
  font-size:28px;
  letter-spacing:1px;
  text-transform:uppercase;
  animation: pop .55s ease-out 1;
}
@keyframes pop{
  0%{transform: scale(.92); opacity:.2}
  55%{transform: scale(1.08); opacity:1}
  100%{transform: scale(1); opacity:1}
}
.spark{
  position:absolute; inset:-10% -10%;
  background:
    radial-gradient(280px 150px at 50% 30%, rgba(34,211,238,.26), transparent 55%),
    radial-gradient(220px 140px at 60% 40%, rgba(59,130,246,.26), transparent 62%);
  filter: blur(10px);
  opacity:.0;
  transition: opacity .35s ease;
  pointer-events:none;
}

.box-btn{
  width:100%;
  height:100%;
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
}

.opened .lid{animation: openLid 1.05s cubic-bezier(.2,.9,.15,1) forwards}
.opened .spark{opacity:1}
@keyframes openLid{
  0%{transform: translateZ(6px) rotateX(0deg)}
  60%{transform: translateZ(6px) rotateX(-74deg) translateY(-2%)}
  100%{transform: translateZ(6px) rotateX(-115deg) translateY(-4%)}
}

.result{
  margin-top:20px;
  padding:18px 18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}
.result.hidden{display:none}
.result-name{font-weight:700; font-size:16px; margin-bottom:10px}
.result-core{font-size:15px; line-height:1.7}
.result-after{margin-top:10px; color:rgba(255,255,255,.66); font-size:13px; line-height:1.7}

.shake{animation: shake .28s ease-in-out 2}
@keyframes shake{
  0%{transform: translateX(0)}
  35%{transform: translateX(-8px)}
  70%{transform: translateX(8px)}
  100%{transform: translateX(0)}
}

/* GIF Box */
.gifbox-wrap{
  width:min(520px, 92vw);
  aspect-ratio: 16/11;
  position:relative;
  display:grid;
  place-items:center;
}
.gifbox-btn{
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  width:100%;
  height:100%;
}
.gifbox-frame{
  width:100%;
  height:100%;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.05);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  overflow:hidden;
  position:relative;
}
.gifbox-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:
    radial-gradient(900px 420px at 30% 30%, rgba(255,255,255,.12), transparent 55%),
    linear-gradient(135deg, rgba(59,130,246,.22), rgba(34,211,238,.10));
}
.gifbox-overlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.gifbox-status{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:30px;
  opacity:0;
  transform: translateY(8px) scale(.98);
}
.gifbox-status.show{
  opacity:1;
  transform: translateY(0) scale(1);
  transition: opacity .22s ease, transform .22s ease;
}

/* Reveal (countdown 5 -> glow -> status) */
.reveal-wrap{
  width:min(520px, 92vw);
  aspect-ratio: 16/11;
  position:relative;
  display:grid;
  place-items:center;
}
.reveal-btn{
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  width:100%;
  height:100%;
}
.reveal-frame{
  width:100%;
  height:100%;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(800px 360px at 30% 25%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(135deg, rgba(59,130,246,.12), rgba(34,211,238,.05)),
    rgba(255,255,255,.04);
  box-shadow: 0 20px 60px rgba(0,0,0,.30);
  overflow:hidden;
  position:relative;
}
.reveal-peak-bg{
  position:absolute;
  inset:-12%;
  opacity:0;
  pointer-events:none;
  transition: opacity .35s ease;
}
.reveal-peak-bg span{
  position:absolute;
  inset:0;
  border-radius:50%;
  filter:blur(22px);
  transform:scale(.72);
  opacity:0;
}
.reveal-peak-bg span:nth-child(1){
  background:radial-gradient(circle at center, rgba(96,165,250,.38), transparent 62%);
}
.reveal-peak-bg span:nth-child(2){
  background:radial-gradient(circle at 35% 35%, rgba(34,211,238,.28), transparent 58%);
  animation-delay:.18s;
}
.reveal-peak-bg span:nth-child(3){
  background:radial-gradient(circle at 70% 40%, rgba(167,139,250,.24), transparent 60%);
  animation-delay:.34s;
}
.reveal-peak-bg.active{
  opacity:1;
}
.reveal-peak-bg.active span{
  animation: peakPulse 1.4s cubic-bezier(.2,.8,.24,1) infinite;
}
.reveal-peak-bg.done{
  opacity:.4;
}
@keyframes peakPulse{
  0%{transform:scale(.72); opacity:0}
  30%{opacity:.9}
  65%{transform:scale(1.02); opacity:.55}
  100%{transform:scale(1.22); opacity:0}
}
.reveal-frame.armed{
  border-color: rgba(147,197,253,.32);
  box-shadow: 0 20px 60px rgba(0,0,0,.30), 0 0 24px rgba(96,165,250,.16) inset;
}
.reveal-frame[data-tone="warning"].armed{
  border-color: rgba(245,158,11,.34);
  box-shadow: 0 20px 60px rgba(0,0,0,.30), 0 0 24px rgba(245,158,11,.14) inset;
}
.reveal-grid{
  position:absolute; inset:0;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(closest-side, rgba(0,0,0,.85), transparent 78%);
  opacity:.32;
}
.reveal-overlay{
  position:absolute; inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.hidden{display:none !important}
.reveal-switch{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px 10px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(11,20,38,.60);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,.26);
  pointer-events:auto;
}
.reveal-switch-track{
  width:58px;
  height:30px;
  border-radius:999px;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.2);
  position:relative;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
}
.reveal-switch-knob{
  width:24px;
  height:24px;
  border-radius:999px;
  position:absolute;
  top:2px;
  left:2px;
  background: linear-gradient(180deg, #ffffff, #dbeafe);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: transform .2s ease, background .2s ease;
}
.reveal-switch-label{
  padding:6px 8px;
  color: rgba(255,255,255,.76);
  font-size:14px;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
}
.reveal-switch.on{
  border-color: rgba(96,165,250,.5);
  background: rgba(37,99,235,.22);
}
.reveal-switch.on .reveal-switch-track{
  background: linear-gradient(135deg, rgba(59,130,246,.75), rgba(34,211,238,.6));
}
.reveal-switch.on .reveal-switch-knob{
  transform: translateX(26px);
  background: linear-gradient(180deg, #f8fafc, #bae6fd);
}
.reveal-switch.hide{
  opacity:0;
  transform:translate(-50%, -50%) scale(.92);
  transition: opacity .28s ease, transform .28s ease;
}
.reveal-count{
  font-weight:900;
  font-size:88px;
  letter-spacing:-2px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 14px 40px rgba(0,0,0,.34);
}
.reveal-count.pulse{animation: countPulse .28s ease-out 1}
@keyframes countPulse{
  0%{transform:scale(.92); opacity:.55}
  55%{transform:scale(1.06); opacity:1}
  100%{transform:scale(1); opacity:1}
}
.reveal-flash{
  position:absolute;
  inset:-20% -12%;
  border-radius:18px;
  background:
    radial-gradient(70% 55% at 50% 50%, rgba(255,255,255,.92), rgba(190,236,255,.58) 36%, rgba(90,200,255,.18) 58%, transparent 88%);
  opacity:0;
  filter: blur(4px);
  transform: scale(.82);
}
.reveal-flash.boom{
  animation: flashBoom .85s cubic-bezier(.2,.8,.24,1) 1;
}
@keyframes flashBoom{
  0%{opacity:0; transform:scale(.82)}
  20%{opacity:.95; transform:scale(1.02)}
  60%{opacity:.45; transform:scale(1.25)}
  100%{opacity:0; transform:scale(1.42)}
}
.reveal-glow{
  width:auto;
  min-height:0;
  border-radius:0;
  background:none;
  filter:none;
  box-shadow:
    0 0 70px rgba(34,211,238,.22),
    0 0 130px rgba(59,130,246,.18);
  display:grid;
  place-items:center;
  animation: glowIn .9s cubic-bezier(.2,.8,.24,1) 1, glowPulse 2.2s ease-in-out infinite;
}
.reveal-glow[data-tone="warning"]{
  box-shadow:
    0 0 60px rgba(245,158,11,.18),
    0 0 110px rgba(251,191,36,.12);
}
.reveal-glow.showtime .reveal-shockwave{
  animation:none;
}
.reveal-shockwave{
  display:none;
}
@keyframes glowIn{
  0%{transform:scale(.9) translateY(6px); opacity:.0}
  60%{transform:scale(1.02) translateY(0); opacity:1}
  100%{transform:scale(1); opacity:1}
}
@keyframes glowPulse{
  0%,100%{box-shadow: 0 0 70px rgba(34,211,238,.20), 0 0 130px rgba(59,130,246,.18)}
  50%{box-shadow: 0 0 95px rgba(34,211,238,.30), 0 0 180px rgba(59,130,246,.28)}
}
.reveal-rays{
  position:absolute;
  inset:-8%;
  border-radius:18px;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,.10),
    rgba(34,211,238,.07),
    rgba(255,255,255,.0),
    rgba(59,130,246,.08),
    rgba(255,255,255,.12),
    rgba(255,255,255,.0)
  );
  filter: blur(5px);
  animation: rotateRays 7s linear infinite;
}
@keyframes rotateRays{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}
.reveal-particles{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.reveal-particles span{
  position:absolute;
  width:6px;
  height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 16px rgba(255,255,255,.9), 0 0 30px rgba(34,211,238,.6);
  opacity:.0;
  animation: particleFly 1.6s cubic-bezier(.2,.78,.24,1) infinite;
}
.reveal-particles span:nth-child(1){top:46%; left:50%; animation-delay:.00s; --x:130px; --y:-20px}
.reveal-particles span:nth-child(2){top:50%; left:48%; animation-delay:.08s; --x:-140px; --y:-50px}
.reveal-particles span:nth-child(3){top:52%; left:52%; animation-delay:.16s; --x:160px; --y:40px}
.reveal-particles span:nth-child(4){top:48%; left:51%; animation-delay:.24s; --x:-110px; --y:90px}
.reveal-particles span:nth-child(5){top:51%; left:49%; animation-delay:.32s; --x:40px; --y:-130px}
.reveal-particles span:nth-child(6){top:47%; left:50%; animation-delay:.40s; --x:-30px; --y:145px}
.reveal-particles span:nth-child(7){top:50%; left:50%; animation-delay:.48s; --x:180px; --y:-90px}
.reveal-particles span:nth-child(8){top:50%; left:50%; animation-delay:.56s; --x:-180px; --y:65px}
.reveal-particles span:nth-child(9){top:49%; left:50%; animation-delay:.64s; --x:95px; --y:120px}
.reveal-particles span:nth-child(10){top:51%; left:50%; animation-delay:.72s; --x:-90px; --y:-125px}
@keyframes particleFly{
  0%{opacity:0; transform:translate(0,0) scale(.5)}
  20%{opacity:.9}
  100%{opacity:0; transform:translate(var(--x), var(--y)) scale(1.1)}
}
.reveal-status{
  padding:4px 8px;
  border:none;
  background:transparent;
  backdrop-filter:none;
  font-weight:1000;
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:48px;
  color:#eaf6ff;
  text-shadow: 0 0 12px rgba(255,255,255,.36), 0 0 24px rgba(56,189,248,.28);
  opacity:0;
  transform: translateY(14px) scale(.9);
}
.reveal-status[data-tone="warning"]{
  color:#fff4d6;
  text-shadow: 0 0 12px rgba(255,255,255,.22), 0 0 24px rgba(245,158,11,.24);
}
.reveal-status.show{
  animation:
    statusBlast .92s cubic-bezier(.16,.92,.22,1) forwards,
    statusShake .24s ease-in-out .25s 2,
    statusGlow 1.2s ease-in-out .95s infinite;
}
.reveal-glow[data-tone="warning"] .reveal-rays{
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,.06),
    rgba(251,191,36,.08),
    rgba(255,255,255,0),
    rgba(245,158,11,.10),
    rgba(255,255,255,.08),
    rgba(255,255,255,0)
  );
}
.reveal-glow[data-tone="warning"] .reveal-particles span{
  box-shadow: 0 0 14px rgba(255,248,220,.75), 0 0 26px rgba(245,158,11,.45);
  background: rgba(255,244,214,.95);
}
@keyframes statusBlast{
  0%{
    opacity:0;
    transform:translateY(22px) scale(.55) rotate(-3deg);
    filter: blur(6px) brightness(1.2);
    letter-spacing: 0px;
  }
  40%{
    opacity:1;
    transform:translateY(-6px) scale(1.22) rotate(1deg);
    filter: blur(0px) brightness(1.8);
    letter-spacing: 3px;
  }
  68%{
    transform:translateY(2px) scale(.96) rotate(-1deg);
    filter: brightness(1.25);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1) rotate(0deg);
    filter: brightness(1);
    letter-spacing: 2px;
  }
}
@keyframes statusShake{
  0%{transform:translateX(0)}
  25%{transform:translateX(-3px)}
  50%{transform:translateX(3px)}
  75%{transform:translateX(-2px)}
  100%{transform:translateX(0)}
}
@keyframes statusGlow{
  0%,100%{text-shadow: 0 0 22px rgba(255,255,255,.45), 0 0 44px rgba(34,211,238,.48), 0 0 70px rgba(59,130,246,.35)}
  50%{text-shadow: 0 0 34px rgba(255,255,255,.75), 0 0 78px rgba(34,211,238,.85), 0 0 120px rgba(59,130,246,.62)}
}
.reveal-flames{
  position:absolute;
  left:50%;
  top:62%;
  width:min(340px, 78vw);
  height:110px;
  transform:translateX(-50%);
  pointer-events:none;
  opacity:0;
}
.reveal-glow.showtime .reveal-flames{
  opacity:1;
}
.reveal-glow[data-tone="warning"] .reveal-flames{
  display:none;
}
.reveal-flames .flame{
  position:absolute;
  bottom:0;
  width:34px;
  height:72px;
  border-radius: 60% 60% 45% 45%;
  background:
    radial-gradient(55% 45% at 50% 82%, rgba(255,245,190,.95), rgba(255,205,95,.82) 46%, rgba(255,128,35,.56) 72%, rgba(255,90,26,0) 100%);
  filter: blur(.3px) drop-shadow(0 0 12px rgba(255,153,51,.42));
  transform-origin: 50% 100%;
  opacity:.86;
  animation: flameDance 1.15s ease-in-out infinite alternate;
}
.reveal-flames .f1{left:6%; animation-delay:.00s; height:62px}
.reveal-flames .f2{left:20%; animation-delay:.18s; height:78px}
.reveal-flames .f3{left:34%; animation-delay:.08s; height:66px}
.reveal-flames .f4{left:48%; animation-delay:.24s; height:84px; width:38px}
.reveal-flames .f5{left:62%; animation-delay:.12s; height:70px}
.reveal-flames .f6{left:76%; animation-delay:.22s; height:76px}
.reveal-flames .f7{left:90%; animation-delay:.05s; height:64px}
@keyframes flameDance{
  0%{transform:translateY(0) scale(1) rotate(-2deg); opacity:.78}
  45%{transform:translateY(-10px) scale(1.06) rotate(1deg); opacity:.95}
  100%{transform:translateY(-16px) scale(.92) rotate(-1deg); opacity:.68}
}
.reveal-fireworks{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.reveal-fireworks .fw{
  position:absolute;
  width:18px;
  height:18px;
  left:50%;
  top:50%;
  margin-left:-9px;
  margin-top:-9px;
  border-radius:999px;
  opacity:0;
}
.reveal-glow.showtime .reveal-fireworks .fw{animation: fireworkBurst 1.1s ease-out 0s 2}
.reveal-glow.showtime .reveal-fireworks .fw1{animation-delay:.00s; --x:-130px; --y:-90px; --h:185}
.reveal-glow.showtime .reveal-fireworks .fw2{animation-delay:.07s; --x:140px; --y:-120px; --h:320}
.reveal-glow.showtime .reveal-fireworks .fw3{animation-delay:.14s; --x:0px; --y:120px; --h:45}
.reveal-glow.showtime .reveal-fireworks .fw4{animation-delay:.03s; --x:-170px; --y:15px; --h:12}
.reveal-glow.showtime .reveal-fireworks .fw5{animation-delay:.09s; --x:178px; --y:18px; --h:210}
.reveal-glow.showtime .reveal-fireworks .fw6{animation-delay:.16s; --x:-80px; --y:-140px; --h:290}
.reveal-glow.showtime .reveal-fireworks .fw7{animation-delay:.22s; --x:90px; --y:145px; --h:130}
.reveal-glow.showtime .reveal-fireworks .fw8{animation-delay:.28s; --x:0px; --y:-160px; --h:355}
@keyframes fireworkBurst{
  0%{
    opacity:0;
    transform:translate(0,0) scale(.2);
    box-shadow:
      0 0 0 0 hsla(var(--h),100%,65%,0),
      0 0 0 0 hsla(var(--h),100%,65%,0),
      0 0 0 0 hsla(var(--h),100%,65%,0),
      0 0 0 0 hsla(var(--h),100%,65%,0);
  }
  15%{
    opacity:1;
    transform:translate(calc(var(--x) * .35), calc(var(--y) * .35)) scale(1);
  }
  100%{
    opacity:0;
    transform:translate(var(--x), var(--y)) scale(1.35);
    box-shadow:
      0 -34px 0 2px hsla(var(--h),100%,70%,.95),
      32px -12px 0 2px hsla(calc(var(--h) + 18),100%,72%,.92),
      -30px 14px 0 2px hsla(calc(var(--h) + 36),100%,74%,.90),
      12px 32px 0 2px hsla(calc(var(--h) + 54),100%,70%,.9),
      -14px -30px 0 2px hsla(calc(var(--h) + 72),100%,68%,.88),
      35px 18px 0 2px hsla(calc(var(--h) + 96),100%,72%,.9),
      -36px -6px 0 2px hsla(calc(var(--h) + 120),100%,72%,.9),
      0 0 26px 10px hsla(var(--h),100%,72%,.28);
  }
}
.reveal-confetti{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.reveal-confetti i{
  position:absolute;
  top:-8%;
  left:50%;
  width:6px;
  height:12px;
  border-radius:2px;
  opacity:0;
}
.reveal-glow.showtime .reveal-confetti i{
  animation: confettiDrop 1.4s cubic-bezier(.2,.8,.2,1) .05s 1 both;
}
.reveal-confetti i:nth-child(1){--dx:-180px;--rot:40deg;background:#22d3ee}
.reveal-confetti i:nth-child(2){--dx:-150px;--rot:-15deg;background:#60a5fa}
.reveal-confetti i:nth-child(3){--dx:-120px;--rot:70deg;background:#f472b6}
.reveal-confetti i:nth-child(4){--dx:-90px;--rot:-80deg;background:#fde047}
.reveal-confetti i:nth-child(5){--dx:-55px;--rot:22deg;background:#34d399}
.reveal-confetti i:nth-child(6){--dx:-20px;--rot:-25deg;background:#f97316}
.reveal-confetti i:nth-child(7){--dx:15px;--rot:65deg;background:#38bdf8}
.reveal-confetti i:nth-child(8){--dx:48px;--rot:-55deg;background:#fb7185}
.reveal-confetti i:nth-child(9){--dx:82px;--rot:30deg;background:#a78bfa}
.reveal-confetti i:nth-child(10){--dx:112px;--rot:-30deg;background:#22c55e}
.reveal-confetti i:nth-child(11){--dx:142px;--rot:18deg;background:#eab308}
.reveal-confetti i:nth-child(12){--dx:172px;--rot:-62deg;background:#06b6d4}
.reveal-confetti i:nth-child(13){--dx:-165px;--rot:78deg;background:#c084fc}
.reveal-confetti i:nth-child(14){--dx:-105px;--rot:-42deg;background:#14b8a6}
.reveal-confetti i:nth-child(15){--dx:98px;--rot:52deg;background:#f43f5e}
.reveal-confetti i:nth-child(16){--dx:160px;--rot:-12deg;background:#84cc16}
@keyframes confettiDrop{
  0%{opacity:0; transform:translate(0,-10px) rotate(0deg)}
  12%{opacity:1}
  100%{opacity:0; transform:translate(var(--dx), 220px) rotate(calc(var(--rot) * 6))}
}

/* Horror 404 for TIDAK LULUS */
.horror404{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  background:#020203;
  overflow:hidden;
}
.horror404.active{
  display:grid !important;
}
.horror-noise{
  position:absolute;
  inset:-30%;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
  opacity:.22;
  animation: noiseShift .18s steps(3) infinite;
}
@keyframes noiseShift{
  0%{transform:translate(0,0)}
  33%{transform:translate(-6px,4px)}
  66%{transform:translate(5px,-4px)}
  100%{transform:translate(0,0)}
}
.horror-content{
  position:relative;
  z-index:2;
  text-align:center;
  padding:26px 20px;
  opacity:0;
  transform: scale(.96);
  transition: opacity .35s ease, transform .35s ease;
}
.horror404.show-text{
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(220,38,38,.20), transparent 60%),
    radial-gradient(700px 400px at 50% 80%, rgba(127,29,29,.35), transparent 65%),
    #050506;
}
.horror404.show-text .horror-content{
  opacity:1;
  transform: scale(1);
}
.horror-code{
  font-size: clamp(42px, 10vw, 110px);
  font-weight:900;
  letter-spacing:2px;
  color:#fca5a5;
  text-shadow: 0 0 10px rgba(239,68,68,.5), 0 0 35px rgba(239,68,68,.35);
  opacity:0;
  transform: translateY(12px);
}
.horror404.show-text .horror-code{
  animation: codeAppear .5s ease-out forwards, horrorJitter .18s infinite .55s;
}
@keyframes codeAppear{
  0%{opacity:0; transform:translateY(12px) scale(.95)}
  70%{opacity:1; transform:translateY(-3px) scale(1.03)}
  100%{opacity:1; transform:translateY(0) scale(1)}
}
.glitch{
  position:relative;
}
.glitch::before,
.glitch::after{
  content: attr(data-text);
  position:absolute;
  left:0;
  top:0;
  width:100%;
  overflow:hidden;
}
.glitch::before{
  color:#ef4444;
  clip-path: inset(0 0 48% 0);
  transform: translate(-2px, -1px);
}
.glitch::after{
  color:#fef2f2;
  clip-path: inset(52% 0 0 0);
  transform: translate(2px, 1px);
}
@keyframes horrorJitter{
  0%,100%{transform:translate(0,0)}
  20%{transform:translate(-2px,1px)}
  40%{transform:translate(2px,-1px)}
  60%{transform:translate(-1px,-2px)}
  80%{transform:translate(2px,2px)}
}
.horror-sub{
  margin-top:10px;
  color:#fecaca;
  font-weight:700;
  letter-spacing:.8px;
  opacity:0;
}
.horror-msg{
  margin-top:8px;
  color:rgba(254,226,226,.75);
  font-size:14px;
  margin-bottom:16px;
  opacity:0;
}
.horror404.show-text .horror-sub{
  animation: fadeInText .4s ease forwards .5s;
}
.horror404.show-text .horror-msg{
  animation: fadeInText .45s ease forwards .65s;
}
.horror404.show-text .horror-content .btn{
  animation: fadeInText .45s ease forwards .8s;
}
@keyframes fadeInText{
  from{opacity:0; transform:translateY(8px)}
  to{opacity:1; transform:translateY(0)}
}

/* Mobile-friendly adjustments */
@media (max-width: 768px){
  .container{padding:14px}
  .topbar{padding:12px 14px; border-radius:18px}
  .brand img{width:34px; height:34px}
  .hero{padding:18px 0 12px}
  .card.pad{padding:16px}
  h1{font-size:28px; line-height:1.15}
  .lead{font-size:14px}
  .btn{padding:10px 12px}
  .result{padding:14px}
  .result-name{font-size:15px}
  .result-core{font-size:14px}
  .result-after{font-size:12px}
  .reveal-count{font-size:72px}
  .reveal-status{font-size:44px; letter-spacing:2px; padding:2px 6px}
  .reveal-flames{top:64%; width:min(300px, 84vw); height:96px}
  .reveal-flames .flame{width:28px}
  .reveal-switch{gap:10px; padding:10px 12px 10px 10px}
  .reveal-switch-track{width:50px; height:26px}
  .reveal-switch-knob{width:20px; height:20px}
  .reveal-switch.on .reveal-switch-knob{transform: translateX(22px)}
  .reveal-switch-label{font-size:14px; padding:4px 6px}
}
@media (max-width: 520px){
  .container{padding:10px}
  .topbar{gap:10px; padding:10px 12px}
  .brand-title strong{font-size:12px}
  .brand-title span{font-size:10px}
  .nav{gap:6px}
  .btn.small{padding:7px 8px; font-size:12px}
  .countdown{gap:8px}
  .countdown.big .unit{padding:12px 8px}
  .countdown.big .unit .num{font-size:24px}
  .unit .lbl{font-size:10px}
  .reveal-wrap{width:100%; aspect-ratio: 4 / 3}
  .reveal-frame{border-radius:18px}
  .reveal-count{font-size:58px}
  .reveal-glow{width:min(320px, 88%)}
  .reveal-particles span{width:6px; height:6px}
  .reveal-status{font-size:36px; padding:2px 4px}
  .reveal-flames{top:66%; width:min(250px, 86vw); height:82px}
  .reveal-flames .flame{width:22px; height:58px}
  .reveal-glow.showtime .reveal-fireworks .fw1{--x:-95px; --y:-75px}
  .reveal-glow.showtime .reveal-fireworks .fw2{--x:100px; --y:-88px}
  .reveal-glow.showtime .reveal-fireworks .fw3{--x:0px; --y:95px}
  .reveal-glow.showtime .reveal-fireworks .fw4{--x:-115px; --y:8px}
  .reveal-glow.showtime .reveal-fireworks .fw5{--x:122px; --y:12px}
  .reveal-glow.showtime .reveal-fireworks .fw6{--x:-60px; --y:-102px}
  .reveal-glow.showtime .reveal-fireworks .fw7{--x:66px; --y:106px}
  .reveal-glow.showtime .reveal-fireworks .fw8{--x:0px; --y:-112px}
}
@media (max-width: 768px){
  .comingsoon-card{width:min(97vw, 760px); padding:24px 14px}
  .comingsoon-brand img{width:74px; height:74px}
  .comingsoon-theme{font-size:12px}
  body.landing .comingsoon .countdown.ring-countdown{grid-template-columns: repeat(2, minmax(140px, 1fr)); gap:14px}
  .ring-unit{min-height:165px; max-width:none}
  .ring-svg{width:130px; height:130px}
  .ring-value{font-size:38px}
  .ring-label{top:60%; font-size:10px}
}
@media (max-width: 480px){
  .comingsoon-card{padding:20px 10px; border-radius:22px}
  body.landing .comingsoon .countdown.ring-countdown{gap:10px}
  .ring-unit{min-height:150px; border-radius:18px}
  .ring-svg{width:116px; height:116px}
  .ring-value{font-size:34px}
  .ring-label{top:62%}
}
