/*
 * Kado Natal PIKET88 — gaya halaman.
 * Lapisan: dasar → HUD → popup → layar hadiah → tema hitam-emas PIKET88 → login 3D → popup 3D (Hubungi Kami,
 * Cara Bermain, Riwayat, Kembali ke Situs). Aturan di bawah sengaja menimpa yang di atas (urutan jangan diubah).
 */
:root {
  --teal: #244964;
  --deep: #0c1d2b;
  --ink: #10273a;
  --gold: #f6c453;
  --gold2: #e9a12a;
  --red: #bd3634;
  --green: #2f9a63;
  --cream: #fff7e8;
  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05));
  --line: rgba(255, 255, 255, 0.22);
  --muted: rgba(255, 255, 255, 0.72);
  --r: 22px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  font-family: Nunito, system-ui, sans-serif;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
input {
  font: inherit;
}
.hidden {
  display: none !important;
}
#scene {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.h {
  font-family: Unbounded, Nunito, sans-serif;
}
#fallback {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  background: var(--deep);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.glass.solid {
  background: linear-gradient(160deg, rgba(36, 73, 100, 0.93), rgba(16, 39, 58, 0.95));
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  font-family: Unbounded, sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    background 0.2s,
    opacity 0.2s;
  white-space: nowrap;
  overflow: visible;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: linear-gradient(180deg, #ffdf7e, #f2b03a 60%, #e39a22);
  color: #3b2405;
  box-shadow:
    0 8px 24px rgba(242, 176, 58, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
}
.btn-primary:hover {
  box-shadow:
    0 10px 34px rgba(242, 176, 58, 0.6),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  color: #fff;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.btn.wide {
  width: 100%;
}
.btn .spk {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  opacity: 0;
  font-style: normal;
}
.btn-primary:hover .spk,
.btn-primary.glow .spk {
  animation: spk 1.1s ease-out infinite;
}
.btn .spk:nth-child(2) {
  left: 8%;
  top: -6px;
  animation-delay: 0.1s !important;
}
.btn .spk:nth-child(3) {
  right: 10%;
  top: -8px;
  animation-delay: 0.35s !important;
}
.btn .spk:nth-child(4) {
  right: 22%;
  bottom: -8px;
  animation-delay: 0.6s !important;
}
.btn .spk:nth-child(5) {
  left: 22%;
  bottom: -6px;
  animation-delay: 0.8s !important;
}
@keyframes spk {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.2) rotate(90deg) translateY(-8px);
  }
}
.spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid rgba(59, 36, 5, 0.25);
  border-top-color: #3b2405;
  animation: rot 0.7s linear infinite;
}
@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.2s,
    transform 0.15s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.icon-btn:active {
  transform: scale(0.93);
}
.icon-btn svg {
  width: 21px;
  height: 21px;
}
.icon-btn.off {
  opacity: 0.55;
}

/* loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #2c5a7a, #0c1d2b 70%);
  transition: opacity 0.8s;
}
#loader .inner {
  text-align: center;
}
#loader .tree-ico {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}
#loader .bar {
  width: 220px;
  height: 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  margin: 16px auto 0;
}
#loader .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffdf7e, #e39a22);
  transition: width 0.3s;
}
#loader p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* tree logo */
.tlogo {
  display: inline-block;
  line-height: 0;
}
.tlogo svg,
.tlogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

/* HUD */
#hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.4s;
}
#hud > * {
  pointer-events: auto;
}
#header {
  position: absolute;
  top: var(--st);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  pointer-events: none;
}
#header > * {
  pointer-events: auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.logo .tlogo {
  width: 38px;
  height: 38px;
}
.logo b {
  display: block;
  font-family: Unbounded;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.logo small {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.hdr-right {
  display: flex;
  gap: 8px;
}

#player {
  position: absolute;
  top: calc(var(--st) + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
#player .who {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
#player .lbl {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 900;
}
#player .uid {
  font-family: Unbounded;
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
#player .trees {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
}
#player .big {
  position: relative;
  width: 46px;
  height: 46px;
}
#player .big .tlogo {
  width: 46px;
  height: 46px;
}
#player .cnt {
  position: absolute;
  right: -8px;
  bottom: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: Unbounded;
  font-weight: 800;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  border: 2px solid #10273a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
#player .row {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}
#player .row .tlogo {
  width: 20px;
  height: 20px;
}
#player .row .none {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 800;
}
#player.bump .big {
  animation: bump 0.7s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes bump {
  30% {
    transform: scale(1.35) rotate(-6deg);
  }
}

#bottombar {
  position: absolute;
  bottom: calc(var(--sb) + 22px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 24px);
}
#bottombar > * {
  pointer-events: auto;
}
#pickBtn {
  font-size: 1.02rem;
  padding: 1.1em 2.2em;
}
#pickBtn.nudge {
  animation: nudge 0.7s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes nudge {
  30% {
    transform: scale(1.12);
  }
  60% {
    transform: scale(0.96);
  }
}
#pickBtn .count-chip {
  background: rgba(59, 36, 5, 0.18);
  padding: 0.15em 0.65em;
  border-radius: 999px;
  font-size: 0.78rem;
}
#pickBtn.empty {
  background: linear-gradient(180deg, #8aa0b3, #5d7487);
  color: #fff;
  box-shadow: none;
}
.rule {
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  text-align: center;
}
.rule b {
  color: var(--gold);
}
.rule .x3 {
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(224, 65, 79, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.rule .x3 b {
  color: #fff;
}
.rule.hot {
  background: linear-gradient(160deg, rgba(224, 65, 79, 0.95), rgba(150, 24, 40, 0.95));
  border-color: rgba(255, 190, 120, 0.6);
  box-shadow: 0 0 30px rgba(224, 65, 79, 0.45);
}
.rule.hot b {
  color: #ffe08a;
}

#hint {
  position: absolute;
  top: calc(var(--st) + 86px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  max-width: calc(100vw - 24px);
  white-space: nowrap;
}
#hint .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(246, 196, 83, 0.7);
  animation: pulse 1.4s infinite;
  flex: none;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(246, 196, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(246, 196, 83, 0);
  }
}
#hint .btn {
  padding: 0.55em 1em;
  font-size: 0.72rem;
}
#hud.picking #bottombar,
#hud.busy #bottombar,
#hud.busy #hint {
  opacity: 0;
  pointer-events: none;
}
#hud.busy #header,
#hud.busy #player {
  opacity: 0.35;
  pointer-events: none;
}
#hud #bottombar,
#hud #header,
#hud #player,
#hud #hint {
  transition: opacity 0.3s;
}

#toasts {
  position: fixed;
  z-index: 80;
  left: 50%;
  top: calc(var(--st) + 90px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}
.toast {
  padding: 11px 18px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.92rem;
  animation: tin 0.35s ease-out;
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast .tlogo {
  width: 26px;
  height: 26px;
}
.toast.good {
  border-color: rgba(246, 196, 83, 0.6);
  box-shadow: 0 0 30px rgba(246, 196, 83, 0.35);
}
@keyframes tin {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}
#tip {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  padding: 7px 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(12, 29, 43, 0.88);
  border: 1px solid var(--line);
  transform: translate(-50%, -150%);
  white-space: nowrap;
}
#flash {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: radial-gradient(circle at 50% 50%, #fff, #ffe9a8 40%, rgba(255, 220, 120, 0) 75%);
  opacity: 0;
  pointer-events: none;
}
@keyframes flash {
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 15, 24, 0.5);
  animation: fin 0.25s;
}
@keyframes fin {
  from {
    opacity: 0;
  }
}
.mcard {
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 30px 26px 24px;
  position: relative;
  animation: pop 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
}
.mcard h2 {
  font-family: Unbounded;
  font-size: 1.3rem;
  margin: 0 0 6px;
  text-align: center;
}
.mcard .lead {
  color: var(--muted);
  text-align: center;
  margin: 0 0 18px;
  line-height: 1.45;
  font-size: 0.95rem;
}
.mclose {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}
.mclose svg {
  width: 16px;
  height: 16px;
}
.mcard.login {
  overflow: visible;
  text-align: center;
  padding-top: 34px;
}
.login .badge {
  width: 92px;
  height: 92px;
  margin: -78px auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #2d6a8f, #10273a);
  border: 3px solid var(--gold);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(246, 196, 83, 0.35);
}
.login .badge .tlogo {
  width: 70px;
  height: 70px;
}
.inp {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
  outline: 0;
  transition:
    border 0.2s,
    box-shadow 0.2s;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.06em;
}
.inp:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 196, 83, 0.15);
}
.inp::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.inp.shake {
  animation: shk 0.4s;
}
@keyframes shk {
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}
.err {
  color: #ff9aa4;
  font-size: 0.85rem;
  font-weight: 800;
  margin: 8px 0 12px;
  min-height: 1.2em;
}
.note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.note b {
  color: var(--gold);
}
.steps {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.steps div {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 11px 13px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
}
.steps i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: Unbounded;
  font-weight: 800;
  font-size: 0.8rem;
  background: var(--gold);
  color: #3b2405;
}
/* Syarat & Ketentuan (popup ⓘ) */
.mcard h2.sk-title {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 4px 38px 10px;
}
/* tabel syarat (Cara Main) */
.rnote {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  color: #e6dcb1;
}
.rnote li {
  position: relative;
  padding-left: 16px;
}
.rnote li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f6c453;
  box-shadow: 0 0 6px rgba(246, 196, 83, 0.8);
}
.rnote b {
  color: #ffd24a;
}
.rnote span {
  color: rgba(230, 220, 177, 0.7);
}
/* popup Cara Bermain */
.howto .lead {
  margin-bottom: 14px;
}
.howto .steps {
  gap: 8px;
  margin-bottom: 16px;
}
.howto .steps div {
  font-size: 0.84rem;
  padding: 10px 12px;
  align-items: flex-start;
}
.howto .steps i {
  width: 26px;
  height: 26px;
  font-size: 0.72rem;
  margin-top: 1px;
}
.tier {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(246, 196, 83, 0.32);
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.08), rgba(0, 0, 0, 0.22));
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
  margin: 0 0 12px;
}
.tier > div {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr;
  align-items: center;
  column-gap: 6px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
}
.tier > div + div {
  border-top: 1px solid rgba(246, 196, 83, 0.16);
}
.tier > div > span:not(:first-child) {
  text-align: center;
  white-space: nowrap;
}
.tier > div > span:first-child {
  white-space: nowrap;
  color: #ffe08a;
}
.tier .th {
  padding: 7px 12px;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 230, 180, 0.7);
  background: rgba(0, 0, 0, 0.25);
}
.tier b {
  font-family: Unbounded, sans-serif;
  font-size: 0.95rem;
  color: #ffd24a;
}
.tier .hot b {
  color: #ff7a4a;
}
.tier .th span.hot,
.tier .th span:last-child {
  color: #ff9a72;
}
.sublbl {
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 4px 0 10px;
  text-align: center;
}
.hist {
  display: grid;
  gap: 8px;
}
.hist div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
}
.hist span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.hist b {
  font-family: Unbounded;
  font-size: 0.9rem;
  color: var(--gold);
}
.hist b.z {
  color: #9fb3c8;
}
.empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 10px;
  font-weight: 700;
}

/* ===== prize reveal ===== */
#reveal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}
#reveal .bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 26, 0.96) 0%,
    rgba(18, 12, 40, 0.94) 45%,
    rgba(40, 22, 8, 0.95) 85%,
    rgba(70, 40, 10, 0.96) 100%
  );
  animation: fin 0.4s;
}
#reveal .fw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@keyframes rays {
  to {
    transform: rotate(360deg);
  }
}
#reveal .conf {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#reveal .conf i {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  opacity: 0.95;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot));
  }
}
#reveal .card {
  position: relative;
  width: 100%;
  max-width: 400px;
  text-align: center;
  padding: 0 22px 26px;
  border-radius: 28px;
  background: linear-gradient(170deg, rgba(54, 96, 128, 0.96), rgba(16, 39, 58, 0.97));
  border: 1px solid rgba(255, 225, 150, 0.45);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(246, 196, 83, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: cardIn 0.7s cubic-bezier(0.2, 1.4, 0.4, 1);
}
#reveal.zonk .card {
  border-color: rgba(160, 190, 220, 0.4);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(40px);
  }
}
#reveal .ribbon {
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 150px;
  height: 9px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(90deg, var(--red), #ff8b94, var(--red));
}
#reveal .giftbox {
  position: relative;
  width: 150px;
  height: 150px;
  margin: -70px auto 4px;
}
#reveal .giftbox svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}
#reveal .giftbox .lid {
  animation: lid 1s 0.25s cubic-bezier(0.3, 1.4, 0.5, 1) forwards;
  transform-origin: 75px 55px;
}
#reveal .giftbox .box {
  animation: boxShake 0.3s ease-in-out 2;
}
@keyframes lid {
  0% {
    transform: translate(0, 0) rotate(0);
  }
  100% {
    transform: translate(62px, -26px) rotate(28deg);
    opacity: 0.98;
  }
}
@keyframes boxShake {
  25% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(4deg);
  }
}
@keyframes gb {
  from {
    transform: scale(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  to {
    transform: scale(1.6);
    opacity: 0.55;
  }
}
#reveal .ey {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--gold);
  animation: up 0.5s 0.5s both;
}
#reveal .amt {
  font-family: Unbounded;
  font-weight: 800;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1.05;
  margin: 8px 0 6px;
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #fffbe8 10%, #ffd76a 55%, #e8961f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(246, 196, 83, 0.45));
  animation: amtIn 0.8s 0.55s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
#reveal .amt small {
  font-size: 0.42em;
  margin-right: 0.18em;
  vertical-align: 0.55em;
}
#reveal.zonk .amt {
  background: linear-gradient(180deg, #f2f7fb, #9fb3c8);
  -webkit-background-clip: text;
  background-clip: text;
  filter: none;
}
#reveal .amt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 2.4s 1.4s ease-in-out infinite;
  mix-blend-mode: overlay;
}
#reveal.zonk .amt::after {
  display: none;
}
@keyframes amtIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}
@keyframes shine {
  0% {
    background-position: 150% 0;
  }
  60%,
  100% {
    background-position: -50% 0;
  }
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
#reveal .sub {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 20px;
  animation: up 0.5s 0.8s both;
}
#reveal .sub b {
  color: #fff;
}
#reveal .acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: up 0.5s 1s both;
}
#reveal .acts .btn-primary {
  font-size: 1rem;
  padding: 1.1em 1.6em;
}
#reveal .ok {
  width: 84px;
  height: 84px;
  margin: -42px auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #5fe39a, #23995a);
  box-shadow:
    0 10px 30px rgba(35, 153, 90, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.5);
  animation: amtIn 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
#reveal .ok svg {
  width: 44px;
  height: 44px;
}
#reveal .code {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
#reveal .code b {
  color: #fff;
  font-family: Unbounded;
}

@media (max-width: 640px) {
  #header {
    padding: 10px 12px;
  }
  .hdr-right {
    gap: 6px;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  .icon-btn svg {
    width: 19px;
    height: 19px;
  }
  #player {
    top: calc(var(--st) + 62px);
    gap: 10px;
    padding: 6px 8px;
  }
  #player .who {
    gap: 8px;
    padding-right: 10px;
  }
  #player .uid {
    max-width: 110px;
    font-size: 0.85rem;
  }
  #player .row {
    display: none;
  }
  #hint {
    top: calc(var(--st) + 128px);
    font-size: 0.85rem;
  }
  #toasts {
    top: calc(var(--st) + 128px);
  }
  #pickBtn {
    font-size: 0.95rem;
  }
}
/* =====================================================================
   TEMA 3D — hitam-emas PIKET88 (menimpa gaya di atas)
   ===================================================================== */
:root {
  --gold: #f6c453;
  --goldD: #9a5a0c;
  --panel1: #2b160c;
  --panel2: #120806;
}
.glass,
.glass.solid {
  background:
    linear-gradient(180deg, var(--panel1), var(--panel2)) padding-box,
    linear-gradient(180deg, #fff2b0, #f2b53a 30%, #8a5410 55%, #f6c453 80%, #6b3d08) border-box;
  border: 2px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 5px 0 #4a2a06,
    0 14px 34px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 235, 170, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35);
}
/* tombol timbul */
.btn {
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    filter 0.2s;
}
.btn-primary {
  background: linear-gradient(180deg, #fff0a8 0%, #ffd45a 28%, #f2a826 62%, #d9861a 100%);
  color: #3b1d02;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  border: 1px solid #fff3c4;
  box-shadow:
    0 6px 0 var(--goldD),
    0 8px 0 #5c3205,
    0 14px 24px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 0 rgba(150, 80, 0, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.07);
  box-shadow:
    0 6px 0 var(--goldD),
    0 8px 0 #5c3205,
    0 14px 30px rgba(246, 196, 83, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.8),
    inset 0 -3px 0 rgba(150, 80, 0, 0.35);
}
.btn-primary:active {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 var(--goldD),
    0 3px 0 #5c3205,
    0 6px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}
.btn-secondary {
  background: linear-gradient(180deg, #a32a33, #6e121b);
  border: 1px solid #ceac5c;
  color: #ffe7a8;
  box-shadow:
    0 5px 0 #4a0a12,
    0 10px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 220, 150, 0.3);
}
.btn-secondary:hover {
  background: linear-gradient(180deg, #bd3634, #7e121d);
}
.btn-secondary:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #4a0a12,
    inset 0 1px 0 rgba(255, 220, 150, 0.3);
}
#pickBtn.empty {
  background: linear-gradient(180deg, #9aa6b0, #5f6b75);
  color: #fff;
  text-shadow: none;
  border-color: #c9d2da;
  box-shadow:
    0 6px 0 #3b434a,
    0 12px 20px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
#pickBtn .count-chip {
  background: #7a3d05;
  color: #ffe9a8;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.5);
}
.icon-btn {
  background: radial-gradient(circle at 50% 30%, #5a2f18, #1d0d06 70%);
  border: 2px solid #d9a441;
  box-shadow:
    0 4px 0 #5c3205,
    0 8px 14px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 220, 150, 0.35);
}
.icon-btn:hover {
  background: radial-gradient(circle at 50% 30%, #6c3a1e, #6e121b 70%);
}
.icon-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #5c3205,
    inset 0 2px 0 rgba(255, 220, 150, 0.35);
}
.icon-btn svg {
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}
.icon-btn svg * {
  stroke: #ffe1a0;
}
.icon-btn svg path[fill='#fff'] {
  fill: #ffe1a0;
}
.mclose {
  background: radial-gradient(circle at 50% 30%, #5a2f18, #1d0d06 70%);
  border: 2px solid #d9a441;
  box-shadow: 0 3px 0 #5c3205;
}
/* judul & teks timbul */
.mcard h2,
.h {
  color: #ffe7a0;
  text-shadow:
    0 1px 0 #f0b43a,
    0 2px 0 #d38f1d,
    0 3px 0 #a96a0f,
    0 4px 0 #7a4708,
    0 7px 12px rgba(0, 0, 0, 0.6);
}
.sublbl,
#reveal .ey {
  text-shadow:
    0 1px 0 #6b3d08,
    0 2px 4px rgba(0, 0, 0, 0.5);
}
.mcard .lead {
  color: rgba(255, 236, 200, 0.78);
}
/* input cekung */
.inp {
  background: linear-gradient(180deg, #0b0503, #1f0f08);
  border: 2px solid #8a5a1c;
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 220, 150, 0.25);
}
.inp:focus {
  border-color: #ffd45a;
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.7),
    0 0 0 4px rgba(246, 196, 83, 0.18);
}
/* langkah cara main */
.steps div {
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.1), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(246, 196, 83, 0.28);
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 230, 170, 0.15);
}
.steps i {
  background: linear-gradient(180deg, #fff0a8, #f2a826);
  box-shadow:
    0 3px 0 var(--goldD),
    inset 0 1px 0 #fff;
  color: #3b1d02;
}
.login .badge {
  background: radial-gradient(circle at 50% 35%, #6a3a1c, #1d0d06);
  border: 3px solid #ffd45a;
  box-shadow:
    0 6px 0 #6b3d08,
    0 14px 30px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(246, 196, 83, 0.35);
}
.rule {
  box-shadow:
    0 4px 0 #4a2a06,
    0 10px 20px rgba(0, 0, 0, 0.45);
}
.rule .x3 {
  box-shadow: 0 2px 0 #6e1018;
}
.rule.hot {
  background:
    linear-gradient(180deg, #bd3634, #8f1622) padding-box,
    linear-gradient(180deg, #fff2b0, #f2b53a 40%, #8a5410) border-box;
  box-shadow:
    0 4px 0 #5a0d14,
    0 0 30px rgba(224, 65, 79, 0.45);
}
.toast {
  box-shadow:
    0 4px 0 #4a2a06,
    0 12px 24px rgba(0, 0, 0, 0.5);
}
.hist div {
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.1), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(246, 196, 83, 0.22);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
#tip {
  background: linear-gradient(180deg, #2b160c, #120806);
  border: 1px solid #d9a441;
  box-shadow: 0 3px 0 #4a2a06;
}
/* HUD kiri atas: TEST 🎄7 */
#header {
  padding: 12px 14px;
}
#player {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border-radius: 999px;
}
#player .uid {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  text-shadow:
    0 1px 0 #c98a1a,
    0 2px 0 #7a4708,
    0 4px 6px rgba(0, 0, 0, 0.6);
}
#player .big {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 12px 3px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b0503, #241208);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 220, 150, 0.25);
}
#player .big .tlogo {
  width: 30px;
  height: 30px;
}
#player .cnt {
  position: static;
  min-width: 0;
  height: auto;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  display: inline;
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffe08a;
  text-shadow:
    0 1px 0 #d38f1d,
    0 2px 0 #8a5410,
    0 3px 0 #5c3205,
    0 5px 8px rgba(0, 0, 0, 0.6);
}
#player.zero .cnt {
  color: #c9d2da;
  text-shadow:
    0 2px 0 #5f6b75,
    0 4px 6px rgba(0, 0, 0, 0.5);
}
#player.bump .big {
  animation: bump 0.7s cubic-bezier(0.2, 1.6, 0.4, 1);
}
#hint {
  top: calc(var(--st) + 74px);
}
#toasts {
  top: calc(var(--st) + 74px);
}
@media (max-width: 640px) {
  #header {
    padding: 10px 10px;
  }
  #player {
    padding: 5px 6px 5px 12px;
    gap: 8px;
  }
  #player .uid {
    font-size: 0.88rem;
    max-width: 34vw;
  }
  #player .big .tlogo {
    width: 26px;
    height: 26px;
  }
  #player .cnt {
    font-size: 1.1rem;
  }
  #hint,
  #toasts {
    top: calc(var(--st) + 66px);
  }
  .hdr-right {
    gap: 5px;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
  }
  .icon-btn svg {
    width: 17px;
    height: 17px;
  }
}
/* loader logo */
#loader .brandlogo {
  display: block;
  width: min(240px, 62vw);
  margin: 0 auto 14px;
  filter: drop-shadow(0 4px 0 #5c3205) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}
#loader {
  background: radial-gradient(ellipse at 50% 40%, #3a1e0e, #0c0604 70%);
}
#loader .bar {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}
/* popup hadiah 3D */
#reveal .card {
  background:
    linear-gradient(180deg, #3a1d0e, #120806) padding-box,
    linear-gradient(180deg, #fff2b0, #f2b53a 30%, #8a5410 55%, #f6c453 80%, #6b3d08) border-box;
  border: 3px solid transparent;
  box-shadow:
    0 8px 0 #4a2a06,
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(246, 196, 83, 0.25),
    inset 0 2px 0 rgba(255, 235, 170, 0.35);
}
#reveal.zonk .card {
  background:
    linear-gradient(180deg, #2c3540, #11161c) padding-box,
    linear-gradient(180deg, #e9f0f6, #9fb3c8 40%, #4b5966) border-box;
  box-shadow:
    0 8px 0 #2a3138,
    0 30px 90px rgba(0, 0, 0, 0.6);
}
#reveal .amt {
  filter: drop-shadow(0 2px 0 #c27a12) drop-shadow(0 2px 0 #8a5008) drop-shadow(0 3px 0 #5c3205)
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
}
#reveal.zonk .amt {
  filter: drop-shadow(0 2px 0 #6c7c8c) drop-shadow(0 3px 0 #3b4550) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}
#reveal .ok {
  box-shadow:
    0 6px 0 #145c35,
    0 14px 30px rgba(35, 153, 90, 0.5),
    inset 0 3px 0 rgba(255, 255, 255, 0.5);
  border: 3px solid #c9ffd9;
}
#reveal .slip {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
  animation: up 0.5s 0.3s both;
}
#reveal .slip div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b0503, #221108);
  border: 1px solid rgba(246, 196, 83, 0.35);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 220, 150, 0.2);
}
#reveal .slip span {
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(255, 230, 180, 0.7);
}
#reveal .slip b {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  text-shadow:
    0 2px 0 #7a4708,
    0 4px 6px rgba(0, 0, 0, 0.5);
  word-break: break-all;
  text-align: right;
}
#reveal .slip b.gold {
  font-size: 1.4rem;
  color: #ffe08a;
  text-shadow:
    0 1px 0 #d38f1d,
    0 2px 0 #8a5410,
    0 3px 0 #5c3205,
    0 6px 10px rgba(0, 0, 0, 0.6);
}

/* ===== INTRO (video pembuka) ===== */
#intro {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: radial-gradient(ellipse at 50% 50%, #2a160a, #000 75%);
  opacity: 1;
  transition: opacity 0.8s;
}
#intro.bye {
  opacity: 0;
  pointer-events: none;
}
#intro video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
@media (max-aspect-ratio: 1/1) {
  /* HP tegak: video BESAR (setengah layar), digeser mengikuti adegan */
  #intro video {
    top: 50%;
    bottom: auto;
    height: var(--vh, 52vh);
    transform: translateY(-50%);
    object-fit: cover;
    object-position: var(--vx, 50%) 50%;
    transition: object-position 1.6s cubic-bezier(0.45, 0, 0.25, 1);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  }
}
#intro .ibar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--sb) + 16px);
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}
#intro .ibar .btn {
  pointer-events: auto;
  padding: 0.6em 1.15em;
  font-size: 0.74rem;
}
/* ===== layar hadiah: latar emas PIKET88 ===== */
#reveal.zonk .bg {
  background: radial-gradient(circle at 50% 42%, rgba(120, 150, 180, 0.45), rgba(20, 30, 45, 0.92) 60%, rgba(5, 8, 12, 0.98));
}
#reveal .twinkle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  animation: twk 2.4s ease-in-out infinite;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff, transparent), radial-gradient(3px 3px at 82% 22%, #ffe9a0, transparent),
    radial-gradient(2px 2px at 30% 78%, #fff, transparent), radial-gradient(2.5px 2.5px at 70% 70%, #ffe9a0, transparent),
    radial-gradient(2px 2px at 50% 10%, #fff, transparent), radial-gradient(3px 3px at 90% 85%, #fff, transparent),
    radial-gradient(2px 2px at 8% 60%, #ffe9a0, transparent);
  background-size: 100% 100%;
}
@keyframes twk {
  50% {
    opacity: 0.35;
  }
}
#reveal .coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#reveal .coin {
  position: absolute;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7c8, #ffd24a 35%, #d99a12 70%, #9a6208);
  box-shadow:
    inset 0 0 0 3px rgba(255, 240, 180, 0.7),
    inset 0 -3px 4px rgba(120, 60, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.35);
  animation-name: coinFall, coinFlip;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}
#reveal .coin::after {
  content: '88';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font:
    900 0.55em Unbounded,
    sans-serif;
  color: #8a5208;
  opacity: 0.85;
}
@keyframes coinFall {
  to {
    transform: translateY(115vh);
  }
}
@keyframes coinFlip {
  50% {
    scale: 0.15 1;
  }
}
#reveal .flake {
  position: absolute;
  top: -20px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
  animation: coinFall linear infinite;
}
#reveal .card .banner {
  position: relative;
  margin: -20px auto 4px;
  width: max-content;
  max-width: 92%;
  padding: 9px 30px;
  z-index: 3;
  background: linear-gradient(180deg, #ff5a64, #c8202f 60%, #9a1420);
  border: 2px solid #ffd76a;
  border-radius: 10px;
  box-shadow:
    0 5px 0 #6e0f18,
    0 10px 20px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
#reveal .card .banner::before,
#reveal .card .banner::after {
  content: '';
  position: absolute;
  top: 10px;
  width: 26px;
  height: 100%;
  background: #9a1420;
  z-index: -1;
  border: 2px solid #d4a446;
}
#reveal .card .banner::before {
  left: -18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%);
}
#reveal .card .banner::after {
  right: -18px;
  clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%);
}
#reveal .card .banner span {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 0 #6e0f18;
}
#reveal.zonk .card .banner {
  background: linear-gradient(180deg, #8fa3b6, #5d7487);
  border-color: #dbe6ef;
  box-shadow: 0 5px 0 #33424f;
}
#reveal.zonk .card .banner::before,
#reveal.zonk .card .banner::after {
  background: #4b5966;
  border-color: #9fb3c8;
}
#reveal .card {
  margin-top: calc(var(--st) + 9vh);
}
#reveal .giftbox {
  margin-top: 4px !important;
  z-index: 4;
}
#reveal .ok {
  background: radial-gradient(circle at 35% 30%, #fff7c8, #ffd24a 40%, #d99a12 75%, #9a6208) !important;
  border: 3px solid #fff3c4 !important;
  box-shadow:
    0 6px 0 #7a4708,
    0 0 40px rgba(255, 200, 90, 0.7),
    inset 0 3px 0 rgba(255, 255, 255, 0.6) !important;
  margin-top: 4px !important;
}
#reveal .ok svg path {
  stroke: #6b3d08;
}
/* Top 10: grid 3 kolom (peringkat | username | hadiah) — header & baris selalu lurus */
.lbm {
  --lbc: 32px fit-content(58%) minmax(0, 1fr);
}
.lbm .lbh {
  display: grid;
  grid-template-columns: var(--lbc);
  column-gap: 12px;
  align-items: end;
  padding: 0 14px 8px 10px;
  margin-top: 12px;
  font-weight: 900;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255, 230, 180, 0.7);
  border-bottom: 1px solid rgba(246, 196, 83, 0.25);
  margin-bottom: 8px;
}
.lbm .lbh span:first-child {
  grid-column: 2;
}
.lbm .lbh span:last-child {
  text-align: right;
}
.lbm .lbl {
  display: grid;
  gap: 6px;
}
.lbm .lbl div {
  display: grid;
  grid-template-columns: var(--lbc);
  column-gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 8px 14px 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.08), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(246, 196, 83, 0.2);
}
.lbm .lbl i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  background: #2b1d12;
  color: #f6c453;
  border: 2px solid rgba(246, 196, 83, 0.5);
}
.lbm .lbl .m1 i {
  background: linear-gradient(135deg, #fff2a8, #e0a419);
  color: #3b1d02;
  border-color: #fff3c4;
}
.lbm .lbl .m2 i {
  background: linear-gradient(135deg, #ffffff, #9aa6b2);
  color: #2a3138;
  border-color: #fff;
}
.lbm .lbl .m3 i {
  background: linear-gradient(135deg, #ffd2a8, #b5652a);
  color: #3b1d02;
  border-color: #ffe2c4;
}
.lbm .lbl b {
  min-width: 0;
  font-family: Unbounded, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lbm .lbl em {
  min-width: 0;
  font-style: normal;
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 0.74rem;
  line-height: 1.25;
  color: #ffe08a;
  text-align: right;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.lbm .lbl em.rp {
  white-space: nowrap;
  font-size: 0.78rem;
}
.lbm .lbl em.rp small {
  font-size: 0.66rem;
  opacity: 0.75;
  margin-right: 3px;
  font-weight: 700;
}
.lbm .note {
  text-align: center;
  font-size: 0.72rem;
}
/* HUD atas lebih ringkas */
#player .big {
  width: auto !important;
  height: auto !important;
  line-height: 1;
}
#player .big .tlogo {
  display: block;
}
#header {
  padding: 10px 12px;
}
#player {
  gap: 7px;
  padding: 4px 5px 4px 13px;
}
#player .uid {
  font-size: 0.82rem;
  text-shadow:
    0 1px 0 #7a4708,
    0 3px 5px rgba(0, 0, 0, 0.6);
}
#player .big {
  padding: 2px 9px 2px 4px;
}
#player .big .tlogo {
  width: 22px;
  height: 22px;
}
#player .cnt {
  font-size: 0.95rem;
  text-shadow:
    0 1px 0 #8a5410,
    0 2px 0 #5c3205,
    0 3px 6px rgba(0, 0, 0, 0.6);
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-width: 1.5px;
  box-shadow:
    0 3px 0 #5c3205,
    0 6px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 220, 150, 0.35);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.hdr-right {
  gap: 6px;
}
@media (max-width: 640px) {
  #header {
    padding: 8px 8px;
  }
  #player {
    gap: 6px;
    padding: 3px 4px 3px 10px;
  }
  #player .uid {
    font-size: 0.72rem;
    max-width: 30vw;
  }
  #player .big .tlogo {
    width: 18px;
    height: 18px;
  }
  #player .cnt {
    font-size: 0.82rem;
  }
  .icon-btn {
    width: 31px;
    height: 31px;
  }
  .icon-btn svg {
    width: 14px;
    height: 14px;
  }
  .hdr-right {
    gap: 4px;
  }
  #hint,
  #toasts {
    top: calc(var(--st) + 52px);
  }
}
/* popup pemenang (asli, realtime) */
#winFeed {
  position: fixed;
  left: 50%;
  top: calc(var(--st) + 58px);
  transform: translateX(-50%);
  z-index: 40;
  pointer-events: none;
  width: max-content;
  max-width: 94vw;
}
#winFeed .w {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
  background:
    linear-gradient(180deg, rgba(43, 22, 12, 0.95), rgba(18, 8, 6, 0.95)) padding-box,
    linear-gradient(180deg, #fff2b0, #f2b53a 40%, #8a5410) border-box;
  border: 1.5px solid transparent;
  box-shadow:
    0 3px 0 #4a2a06,
    0 10px 22px rgba(0, 0, 0, 0.5);
  animation: wIn 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
#winFeed .w.out {
  animation: wOut 0.4s ease-in forwards;
}
#winFeed .w i {
  font-style: normal;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff0a8, #f2a826);
  box-shadow: 0 2px 0 #9a5a0c;
  font-size: 0.8rem;
}
#winFeed .w b {
  color: #ffe08a;
  font-family: Unbounded, sans-serif;
  font-size: 0.76rem;
}
#winFeed .w span {
  color: rgba(255, 236, 200, 0.85);
}
#winFeed .w {
  max-width: 94vw;
}
#winFeed .w .who {
  color: #fff;
}
#winFeed .w .prz {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes wIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.9);
  }
}
@keyframes wOut {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}
body:not(.in-hud) #winFeed {
  display: none;
}
#hud.picking ~ #winFeed {
  opacity: 0.85;
}
@media (max-width: 640px) {
  #winFeed {
    top: calc(var(--st) + 48px);
  }
  #winFeed .w {
    font-size: 0.72rem;
    padding: 6px 12px 6px 6px;
  }
  #winFeed .w b {
    font-size: 0.7rem;
  }
}
/* latar halaman verifikasi (sebelum masuk): pohon natal belum terlihat */
#preBg {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: radial-gradient(ellipse at 50% 42%, #3a1e0e 0%, #140904 55%, #000 100%);
  transition: opacity 0.6s;
}
#preBg::before,
#preBg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent), radial-gradient(2px 2px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(2px 2px at 85% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent);
  background-size: 260px 260px;
  opacity: 0.6;
  animation: gsnow 10s linear infinite;
}
#preBg::after {
  background-size: 190px 190px;
  opacity: 0.35;
  animation-duration: 15s;
}
@keyframes gsnow {
  to {
    background-position: 40px 260px;
  }
}
#preBg.gone {
  opacity: 0;
  pointer-events: none;
}
#playIntro {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  padding: 1em 2.2em;
}
/* logo di kartu login */
.back {
  text-align: center;
}
.back .acts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.back a.btn {
  text-decoration: none;
}
.login .loginlogo,
.back .loginlogo {
  display: block;
  width: min(230px, 62vw);
  margin: 4px auto 2px;
  filter: drop-shadow(0 3px 0 #5c3205) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

/* PIKET88 hitam-emas + aksen Natal (merah #BD3634 • marun #7E121D • hijau #034F1B • krem #E6DCB1) */
.mcard .lead,
#reveal .sub,
.note {
  color: #e6dcb1 !important;
}
.mcard h2,
.h {
  color: #f4ecc8 !important;
}
#reveal .card .banner {
  background: linear-gradient(180deg, #d9504c, #bd3634 55%, #7e121d) !important;
}
#reveal .card .banner::before,
#reveal .card .banner::after {
  background: #7e121d !important;
}
/* pita Natal tipis (merah-emas-hijau) di atas kartu & popup */
.mcard::after,
#reveal .card::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 4px;
  border-radius: 0 0 6px 6px;
  pointer-events: none;
  background: linear-gradient(90deg, #bd3634 0 33%, #ceac5c 33% 67%, #1f7a3e 67% 100%);
  opacity: 0.9;
}
#player .big {
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.7),
    0 0 0 1.5px rgba(31, 122, 62, 0.55) !important;
}
.login .badge {
  box-shadow:
    0 6px 0 #6b3d08,
    0 14px 30px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(189, 54, 52, 0.55),
    0 0 40px rgba(246, 196, 83, 0.35) !important;
}

/* ===== halaman verifikasi: 3D & interaktif ===== */
#loginFx {
  position: fixed;
  inset: 0;
  z-index: 46;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.6s;
}
#modalRoot .modal:has(.mcard.login) {
  perspective: 1100px;
  background: transparent;
}
.mcard.login {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
  will-change: transform;
}
.mcard.login::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 236, 170, 0.2), rgba(255, 236, 170, 0) 45%);
  mix-blend-mode: screen;
}
.mcard.login .badge {
  transform: translateZ(60px);
  animation: swing 3.2s ease-in-out infinite;
}
.mcard.login .loginlogo {
  transform: translateZ(45px);
  position: relative;
}
.mcard.login h2 {
  transform: translateZ(30px);
}
.mcard.login .lead {
  transform: translateZ(18px);
}
.mcard.login form {
  transform: translateZ(35px);
}
@keyframes swing {
  50% {
    transform: translateZ(60px) rotate(-5deg) translateY(-3px);
  }
}
.mcard.login .loginlogo {
  -webkit-mask: linear-gradient(#000, #000);
  filter: drop-shadow(0 3px 0 #5c3205) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 14px rgba(255, 200, 90, 0.35));
}
.login .inp {
  transition:
    border 0.2s,
    box-shadow 0.3s,
    font-size 0.15s;
}
.login .inp:not(:placeholder-shown) {
  border-color: #ffd45a;
  box-shadow:
    inset 0 4px 10px rgba(0, 0, 0, 0.7),
    0 0 18px rgba(246, 196, 83, 0.35);
}
.login #uidBtn {
  overflow: hidden;
}
.login #uidBtn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: btnShine 2.8s ease-in-out infinite;
}
@keyframes btnShine {
  60%,
  100% {
    left: 130%;
  }
}
/* User ID panjang di HUD: huruf mengecil, tetap 1 baris */
#player .uid.long {
  font-size: 0.66rem !important;
  letter-spacing: 0;
}
#player .uid.xlong {
  font-size: 0.58rem !important;
  letter-spacing: 0;
}
#header {
  gap: 8px;
}
#player {
  min-width: 0;
  flex: 0 1 auto;
}
.hdr-right {
  flex: none;
}
#player .uid {
  max-width: max(72px, calc(100vw - 290px)) !important;
  min-width: 0;
}
@media (min-width: 641px) {
  #player .uid {
    max-width: 260px !important;
  }
}
/* nama tampil utuh: huruf yang mengecil (lihat fitName), bukan dipotong "…" */
#player .uid {
  text-overflow: clip !important;
  white-space: nowrap;
}
#player .uid.two {
  white-space: normal;
  word-break: break-all;
  line-height: 1.1;
  max-height: 2.25em;
  text-align: left;
}
#reveal .slip span {
  white-space: nowrap;
}

/* ===== 3D interaktif umum (login, kembali ke situs, hadiah) ===== */
@property --ea {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.modal:has(.tilt3d),
#reveal {
  perspective: 1100px;
}
.tilt3d {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 236, 170, 0.22), rgba(255, 236, 170, 0) 45%);
  mix-blend-mode: screen;
}
.tilt3d > *:not(.edge):not(.orn):not(.ogift):not(.csnow):not(.mclose) {
  transform: translateZ(28px);
}
.tilt3d .edge {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2.5px;
  pointer-events: none;
  z-index: 3;
  background: conic-gradient(from var(--ea), transparent 0 62%, #fff6cf 74%, #ffd45a 80%, #ff8b94 86%, transparent 96%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: edgeSpin 3.4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255, 212, 90, 0.9));
}
@keyframes edgeSpin {
  to {
    --ea: 360deg;
  }
}
/* hiasan bola natal & kado yang "keluar" dari kartu (3D) */
.tilt3d .orn {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0 6%, var(--c) 24%, var(--d) 78%);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.45),
    inset -4px -6px 10px rgba(0, 0, 0, 0.3);
  transform: translateZ(80px);
  animation: ornBob 3.6s ease-in-out infinite;
}
.tilt3d .orn::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 9px;
  margin-left: -6px;
  border-radius: 3px;
  background: linear-gradient(#fff2b0, #c58a1c);
}
.tilt3d .orn::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1.5px;
  height: 34px;
  margin: 0 0 7px -0.75px;
  background: linear-gradient(transparent, #e8c46a);
}
.tilt3d .o1 {
  --c: #e0414f;
  --d: #7e121d;
  left: -14px;
  top: 52px;
}
.tilt3d .o2 {
  --c: #ffd45a;
  --d: #9a6208;
  right: -12px;
  top: 96px;
  width: 34px;
  height: 34px;
  animation-delay: -1.2s;
}
.tilt3d .o3 {
  --c: #2fae5a;
  --d: #0d4a22;
  left: -6px;
  bottom: 70px;
  width: 30px;
  height: 30px;
  animation-delay: -2.1s;
}
.tilt3d .ogift {
  position: absolute;
  right: -16px;
  bottom: 44px;
  width: 46px;
  height: 40px;
  border-radius: 7px;
  z-index: 4;
  pointer-events: none;
  transform: translateZ(90px) rotate(10deg);
  background:
    linear-gradient(90deg, transparent 42%, #ffd45a 42% 58%, transparent 58%), linear-gradient(160deg, #e0414f, #7e121d);
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.45),
    inset 0 3px 0 rgba(255, 255, 255, 0.3);
  animation: giftBob 3s ease-in-out infinite;
}
.tilt3d .ogift::before {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  top: -8px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent 42%, #ffd45a 42% 58%, transparent 58%), linear-gradient(#ff5a64, #b02a37);
}
.tilt3d .ogift::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -20px;
  width: 26px;
  height: 14px;
  margin-left: -13px;
  border-radius: 50%;
  border: 4px solid #ffd45a;
  border-bottom-color: transparent;
}
@keyframes ornBob {
  50% {
    transform: translateZ(80px) translateY(-7px) rotate(8deg);
  }
}
@keyframes giftBob {
  50% {
    transform: translateZ(90px) rotate(2deg) translateY(-6px);
  }
}
.tapspark {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  z-index: 200;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px currentColor;
  animation: tapSpark 0.8s ease-out forwards;
}
@keyframes tapSpark {
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2);
    opacity: 0;
  }
}
/* pemberitahuan tunggal di tengah */
#notice {
  position: fixed;
  left: 50%;
  top: 44%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1);
  white-space: normal;
  width: max-content;
  max-width: min(88vw, 380px);
  background:
    linear-gradient(180deg, #2b160c, #120806) padding-box,
    linear-gradient(180deg, #fff2b0, #f2b53a 40%, #8a5410) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 6px 0 #4a2a06,
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(246, 196, 83, 0.35);
  font-weight: 800;
  font-size: 1rem;
  color: #f4ecc8;
}
#notice.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
#notice b {
  color: #ffd45a;
}
#notice i {
  font-style: normal;
  font-size: 1.4rem;
}
#notice i svg,
#notice i img {
  width: 34px;
  height: 34px;
  display: block;
}
#notice span {
  display: block;
  line-height: 1.3;
  text-align: left;
  min-width: 0;
}
#notice small {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(244, 236, 200, 0.78);
}
#notice .ndep {
  display: inline-block;
}
#notice.click {
  pointer-events: auto;
}
#notice .ndep {
  margin-top: 8px;
  align-self: flex-start;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #3b1d02;
  background: linear-gradient(180deg, #fff0a8, #f2a826);
  box-shadow:
    0 3px 0 #7a4708,
    inset 0 1px 0 #fff;
}
/* kartu "Pohon Natal habis" */
#notice.empty {
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(86vw, 320px);
  max-width: none;
  padding: 26px 20px 18px;
  border-radius: 22px;
  text-align: center;
  font-weight: 700;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(246, 196, 83, 0.16), transparent 60%) padding-box,
    linear-gradient(180deg, #24120a, #0d0604) padding-box,
    linear-gradient(180deg, #fff2b0, #f2b53a 35%, #8a5410 70%, #f6c453) border-box;
}
#notice.empty .ne-x {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 236, 200, 0.75);
  font-size: 1.15rem;
  line-height: 28px;
  cursor: pointer;
  padding: 0;
}
#notice.empty .ne-ic {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: radial-gradient(circle at 50% 35%, #3a2010, #140905);
  box-shadow:
    0 0 0 2px #f2b53a,
    0 0 0 5px rgba(242, 181, 58, 0.18),
    0 0 24px rgba(246, 196, 83, 0.35);
}
#notice.empty .ne-ic svg,
#notice.empty .ne-ic img {
  width: 38px;
  height: 38px;
  display: block;
}
#notice.empty .ne-ic em {
  position: absolute;
  right: -4px;
  bottom: -2px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  font: 800 0.8rem/24px Unbounded, sans-serif;
  font-style: normal;
  color: #fff;
  background: linear-gradient(180deg, #e0463f, #a3201c);
  box-shadow:
    0 0 0 2px #140905,
    0 2px 6px rgba(0, 0, 0, 0.5);
}
#notice.empty .ne-t {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.3;
  color: #fff7e8;
}
#notice.empty .ne-t b {
  color: #ffd45a;
}
#notice.empty .ne-s {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(244, 236, 200, 0.75);
}
#notice.empty .ne-s b {
  color: #ffd45a;
}
#notice.empty .ne-rule {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 14px 0 16px;
}
#notice.empty .ne-rule span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 6px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(244, 236, 200, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(246, 196, 83, 0.28);
  white-space: nowrap;
}
#notice.empty .ne-rule b {
  font-family: Unbounded, sans-serif;
  font-size: 0.82rem;
  color: #ffd45a;
}
#notice.empty .ne-rule .hot {
  border-color: rgba(224, 70, 63, 0.6);
  background: rgba(224, 70, 63, 0.12);
}
#notice.empty .ne-rule .hot b {
  color: #ff7a6e;
}
#notice.empty .ne-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.85em 1em;
  border-radius: 14px;
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #3b1d02;
  background: linear-gradient(180deg, #fff0a8, #f6c453 45%, #e9a12a);
  box-shadow:
    0 4px 0 #7a4708,
    0 8px 18px rgba(233, 161, 42, 0.35),
    inset 0 1px 0 #fff;
  transition: transform 0.12s;
}
#notice.empty .ne-btn:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 #7a4708,
    inset 0 1px 0 #fff;
}
#notice.empty .ne-btn svg {
  width: 16px;
  height: 16px;
}
.ann {
  text-align: center;
}
.ann .ann-ic {
  font-size: 2.4rem;
  line-height: 1;
  margin: -4px 0 4px;
}
.ann .ann-txt {
  margin: 6px 0 18px;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #fff;
  white-space: normal;
}
/* popup kembali ke situs */
.back {
  overflow: visible !important;
  padding-top: 26px !important;
}
.back .csnow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(2px 2px at 15% 20%, #fff, transparent), radial-gradient(2.5px 2.5px at 70% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, #fff, transparent), radial-gradient(2px 2px at 85% 75%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 25% 85%, #fff, transparent);
  background-size: 180px 180px;
  animation: gsnow 8s linear infinite;
}
/* layar hadiah: muat di semua layar, ID panjang mengecil */
#reveal {
  padding: 12px !important;
}
#reveal .card {
  max-width: min(400px, calc(100vw - 28px)) !important;
  overflow: visible;
}
#reveal .sub {
  overflow-wrap: anywhere;
}
#reveal .sub .rid {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.05rem;
  margin-top: 2px;
}
#reveal .slip div {
  min-width: 0;
}
#reveal .slip .rid {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-align: right;
  word-break: normal !important;
}
@media (max-height: 740px) {
  #reveal .card {
    margin-top: calc(var(--st) + 7vh) !important;
  }
}
#reveal .giftbox {
  animation: giftHop 2.4s 1.2s ease-in-out infinite;
}
@keyframes giftHop {
  0%,
  100% {
    transform: translateZ(40px);
  }
  50% {
    transform: translateZ(40px) translateY(-8px) rotate(-3deg);
  }
}

/* slip hadiah: label di atas, nilai besar 1 baris di bawah (angka tidak terpecah) */
#reveal .slip div {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px !important;
  padding: 12px 16px !important;
  text-align: left;
}
#reveal .slip .rid {
  text-align: center !important;
  font-size: 1.15rem;
  flex: none !important;
  display: block;
  width: 100%;
}
#reveal .slip b.gold.rid {
  font-size: 1.7rem !important;
}
/* emblem "hadiah diterima": kado terbuka + lencana centang hijau + kilau */
#reveal .okgift {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 6px auto 2px;
  animation:
    amtIn 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both,
    giftHop 2.4s 1s ease-in-out infinite;
}
#reveal .okgift svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(255, 210, 100, 0.35));
}
#reveal .okgift .lid {
  transform: translate(48px, -22px) rotate(26deg);
}
#reveal .okgift .badge {
  position: absolute;
  right: -6px;
  bottom: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #8ff5b4, #22a55a 60%, #0d6b33);
  border: 3px solid #fff3c4;
  box-shadow:
    0 4px 0 #0b4a24,
    0 8px 14px rgba(0, 0, 0, 0.4);
}
#reveal .okgift .badge svg {
  width: 22px;
  height: 22px;
  filter: none;
}
#reveal .okgift .sp {
  position: absolute;
  color: #ffe08a;
  font-size: 18px;
  text-shadow: 0 0 10px #ffd45a;
  animation: twk 1.6s ease-in-out infinite;
}
#reveal .okgift .s1 {
  left: -14px;
  top: 18px;
}
#reveal .okgift .s2 {
  right: 4px;
  top: -8px;
  animation-delay: -0.5s;
  font-size: 14px;
}
#reveal .okgift .s3 {
  left: 8px;
  bottom: -4px;
  animation-delay: -1s;
  font-size: 12px;
}
#reveal .card {
  margin-top: 0 !important;
}
#reveal .ey {
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
}
/* popup pemenang selalu di dalam layar */
#winFeed {
  max-width: calc(100vw - 20px) !important;
}
#winFeed .w {
  max-width: calc(100vw - 20px);
  overflow: hidden;
}
#winFeed .w .who {
  flex: none;
}
#reveal .ey {
  font-size: 0.82rem !important;
}
#reveal .amt {
  margin-top: 2px !important;
}

/* ===== kartu login baru ===== */
#preBg {
  background: radial-gradient(ellipse at 50% 30%, #4a260e 0%, #1a0b04 55%, #050201 100%);
}
#preBg::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: var(--bn, none) center/cover no-repeat;
  filter: blur(16px) brightness(0.38) saturate(1.2);
  opacity: 0.9;
}
#preBg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 200, 90, 0.3) 0 34px, transparent 36px),
    radial-gradient(circle at 84% 16%, rgba(255, 120, 80, 0.22) 0 46px, transparent 48px),
    radial-gradient(circle at 76% 72%, rgba(255, 215, 120, 0.22) 0 28px, transparent 30px),
    radial-gradient(circle at 20% 80%, rgba(120, 255, 170, 0.14) 0 40px, transparent 42px),
    radial-gradient(circle at 50% 8%, rgba(255, 240, 200, 0.18) 0 22px, transparent 24px),
    radial-gradient(circle at 92% 46%, rgba(255, 180, 90, 0.18) 0 18px, transparent 20px);
  filter: blur(6px);
  animation: bokeh 14s ease-in-out infinite alternate;
}
@keyframes bokeh {
  to {
    transform: translate3d(-18px, 14px, 0) scale(1.06);
    opacity: 0.75;
  }
}
.mcard.login {
  padding: 30px 24px 20px;
}
.mcard.login .loginlogo {
  -webkit-mask: none;
  width: min(210px, 56vw);
  margin: 2px auto 0;
  filter: drop-shadow(0 0 14px rgba(255, 200, 90, 0.35));
}
.ev-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.7rem;
  line-height: 1.05;
  margin: 2px 0 0;
  padding: 0 6px;
  background: linear-gradient(180deg, #fff7cf 0%, #f9d36a 45%, #c98a1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #5c3205) drop-shadow(0 0 14px rgba(255, 190, 80, 0.35));
  transform: translateZ(34px);
}
.ev-sub {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: #ffe7a0;
  margin-top: 2px;
  text-shadow: 0 2px 0 #5c3205;
  transform: translateZ(26px);
}
.evstat {
  margin: 14px 0 16px;
  min-height: 22px;
  transform: translateZ(22px);
}
.evstat .evl {
  font-weight: 900;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: #ffd24a;
}
.evstat .cd {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 8px;
}
.evstat .cd span {
  flex: 1;
  max-width: 66px;
  padding: 8px 2px 6px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 230, 180, 0.7);
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.16), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(246, 196, 83, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 200, 0.18),
    0 3px 0 rgba(0, 0, 0, 0.35);
}
.evstat .cd b {
  font-family: Unbounded, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0;
  text-shadow: 0 2px 0 #7a4708;
}
.evstat.live .evl,
.evstat.end .evl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55em 1.1em;
  border-radius: 999px;
}
.evstat.live .evl {
  background: rgba(40, 160, 80, 0.18);
  border: 1px solid rgba(120, 230, 150, 0.45);
  color: #9dffb8;
}
.evstat.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4dff88;
  box-shadow: 0 0 8px #4dff88;
  animation: blink 1.2s infinite;
}
.evstat.end .evl {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e6dcb1;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.flbl {
  display: block;
  font-weight: 800;
  font-size: 0.8rem;
  color: #e6dcb1;
  margin: 0 0 8px;
  transform: translateZ(16px);
}
.inpw {
  position: relative;
}
.inpw .ic {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.inpw .inp {
  padding-left: 44px !important;
}
.lfoot {
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(230, 220, 177, 0.75);
}
.lbsoon {
  margin: 22px 0 8px;
  padding: 34px 12px;
  border-radius: 18px;
  font-family: Unbounded, sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: #ffd76a;
  text-shadow: 0 3px 0 #5c3205;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 190, 80, 0.18), transparent 70%);
  border: 1px solid rgba(246, 196, 83, 0.35);
  text-align: center;
}

/* kartu login: diam & lurus (tanpa efek miring 3D) supaya teks rapi dan ringan */
.mcard.login.tilt3d {
  transform: none !important;
  transform-style: flat;
}
.mcard.login.tilt3d > *:not(.edge):not(.orn):not(.ogift):not(.csnow):not(.mclose),
.mcard.login .loginlogo,
.mcard.login .ev-title,
.mcard.login .ev-sub,
.mcard.login .evstat,
.mcard.login .flbl,
.mcard.login h2,
.mcard.login .lead {
  transform: none !important;
}
.mcard.login .ogift {
  transform: rotate(10deg) !important;
}
.mcard.login .inpw .inp {
  padding-right: 44px !important;
  text-align: center;
}
.evstat {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.evstat .evl {
  white-space: nowrap;
  letter-spacing: 0.06em !important;
  font-size: 0.62rem !important;
}
.evstat .cd {
  width: 100%;
}
.evstat .cd b {
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  display: block;
}

/* performa: tanpa blur di atas 3D (blur di atas kanvas yang bergerak sangat berat di HP/laptop) */
.icon-btn,
.glass,
.toast,
.modal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.icon-btn {
  background: rgba(30, 16, 8, 0.82);
}
#preBg::after {
  filter: none !important;
  animation: none !important;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 200, 90, 0.22), transparent 60px),
    radial-gradient(circle at 84% 16%, rgba(255, 120, 80, 0.16), transparent 80px),
    radial-gradient(circle at 76% 72%, rgba(255, 215, 120, 0.16), transparent 55px),
    radial-gradient(circle at 20% 80%, rgba(120, 255, 170, 0.1), transparent 70px);
}

#vig {
  display: none;
}
html.lite #vig {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(10, 4, 0, 0.55) 100%);
}

/* hiasan garland + pita di atas kartu login (pengganti lingkaran logo pohon) */
.mcard.login {
  padding-top: 46px !important;
}
.mcard.login .garl {
  position: absolute;
  left: -6px;
  right: -6px;
  top: -14px;
  width: calc(100% + 12px);
  height: auto;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  transform: none !important;
}
.mcard.login .garl g ellipse:first-of-type {
  animation: none;
}
.login .badge {
  display: none !important;
}
/* tidak ada blok biru saat teks ditekan lama / diseret */
html,
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input,
textarea,
[contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}
img,
svg,
canvas {
  -webkit-user-drag: none;
  user-drag: none;
}
::selection {
  background: rgba(246, 196, 83, 0.35);
  color: inherit;
}

.evstat.live .cd span {
  border-color: rgba(120, 230, 150, 0.4);
  background: linear-gradient(180deg, rgba(120, 230, 150, 0.14), rgba(0, 0, 0, 0.35));
}
.evstat.live .evl {
  padding: 0.45em 1em !important;
  margin-bottom: 2px;
}
.evstat.x3 .evl {
  background: rgba(255, 120, 40, 0.18) !important;
  border-color: rgba(255, 170, 80, 0.6) !important;
  color: #ffcf8a !important;
}
.evstat.x3 .evl i {
  background: #ff9a3c !important;
  box-shadow: 0 0 8px #ff9a3c !important;
}
.evstat.x3 .cd span {
  border-color: rgba(255, 170, 80, 0.45);
  background: linear-gradient(180deg, rgba(255, 150, 60, 0.16), rgba(0, 0, 0, 0.35));
}
.evstat.end {
  padding: 14px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(200, 40, 50, 0.28), rgba(80, 10, 16, 0.45));
  border: 1.5px solid rgba(246, 196, 83, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 150, 0.2),
    0 4px 0 rgba(0, 0, 0, 0.35);
}
.evstat .evbig {
  font-family: Unbounded, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #fff4d0;
  text-shadow:
    0 2px 0 #5c1a0a,
    0 0 14px rgba(255, 190, 80, 0.35);
}
.evstat .evsm {
  margin-top: 5px;
  font-weight: 800;
  font-size: 0.74rem;
  color: #ffd76a;
}

#csBtn.hidden {
  display: none;
}
.csm {
  text-align: center;
  max-width: 380px;
}
.csm .cs-ic {
  width: 62px;
  height: 62px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, #5a2f18, #1d0d06 70%);
  border: 2px solid #d9a441;
  box-shadow:
    0 4px 0 #5c3205,
    0 0 22px rgba(246, 196, 83, 0.35);
}
.csm .cs-ic svg {
  width: 30px;
  height: 30px;
}
.csm .cs-ic svg * {
  stroke: #ffe1a0;
}
.csm .lead {
  margin: 6px auto 0;
  max-width: 280px;
  line-height: 1.45;
}
.csm .lead b {
  color: #ffd45a;
}
.csl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px auto 4px;
  max-width: 330px;
  perspective: 600px;
}
.csl.n2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 230px;
}
.csl.n1 {
  grid-template-columns: 1fr;
  max-width: 130px;
}
.csi {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 4px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 7px 0 var(--sh),
    0 12px 18px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  animation: csIn 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both;
  animation-delay: var(--d);
}
@keyframes csIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.7) rotateX(40deg);
  }
}
.csi:hover {
  transform: translateY(-4px) rotateX(10deg);
  box-shadow:
    0 11px 0 var(--sh),
    0 18px 24px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.csi:active {
  transform: translateY(6px);
  box-shadow:
    0 1px 0 var(--sh),
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}
.csi::after {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: csShine 3.2s ease-in-out infinite;
  animation-delay: calc(var(--d) * 4 + 0.6s);
  pointer-events: none;
}
@keyframes csShine {
  0%,
  60% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.csi i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.25);
  animation: csBob 2.4s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes csBob {
  50% {
    transform: translateY(-4px) scale(1.05);
  }
}
.csi i svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}
.csi b {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: clamp(0.58rem, 2.9vw, 0.74rem);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.csi small {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.95;
  padding: 0.25em 0.9em;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}
.csi.wa {
  --sh: #0c6b33;
  background: linear-gradient(180deg, #3ee27c, #14a04c);
}
.csi.tg {
  --sh: #125c92;
  background: linear-gradient(180deg, #4fc1f7, #1a82c9);
}
.csi.lc {
  --sh: #9c3a12;
  background: linear-gradient(180deg, #ff9a4d, #dc5a1f);
}
.csm .cs-ic {
  animation: csBob 2.6s ease-in-out infinite;
}
#player .uid {
  max-width: max(84px, calc(100vw - 310px)) !important;
}
@media (max-width: 380px) {
  .hdr-right {
    gap: 5px !important;
  }
  .hdr-right .icon-btn {
    width: 30px !important;
    height: 30px !important;
  }
  .hdr-right .icon-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* =====================================================================
   v2 — popup tanpa scrollbar + 3D interaktif (Hubungi Kami, Cara Bermain, Riwayat, Keluar)
   ===================================================================== */
.modal {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  place-items: normal;
}
.modal > * {
  margin: auto;
}
.modal::-webkit-scrollbar,
.mcard::-webkit-scrollbar,
.mscroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.mcard {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
}
.mcard.tilt3d {
  overflow: visible !important;
  max-height: none;
}
.mscroll {
  position: relative;
  max-height: min(52dvh, 440px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  margin: 0 -8px;
  padding: 6px 8px 12px;
  -webkit-mask: linear-gradient(transparent, #000 12px, #000 calc(100% - 20px), transparent);
  mask: linear-gradient(transparent, #000 12px, #000 calc(100% - 20px), transparent);
}
/* kartu kecil yang miring mengikuti jari / kursor */
.t3 {
  --tx: 0;
  --ty: 0;
  transform: perspective(520px) rotateY(calc(var(--tx) * 16deg)) rotateX(calc(var(--ty) * -16deg)) translateZ(0);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s,
    filter 0.2s;
  will-change: transform;
}
.t3.on3 {
  transition:
    transform 0.08s linear,
    box-shadow 0.25s,
    filter 0.2s;
}
.t3 > .glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(
    circle at calc(50% + var(--tx) * 100%) calc(50% + var(--ty) * 100%),
    rgba(255, 255, 255, 0.38),
    rgba(255, 255, 255, 0) 55%
  );
  mix-blend-mode: overlay;
}
.t3.on3 > .glare {
  opacity: 1;
}
.tilt3d .mshead {
  transform: translateZ(48px) !important;
}
.tilt3d .mscroll {
  transform: translateZ(26px) !important;
}
.tilt3d .mfootbtn {
  transform: translateZ(40px) !important;
  margin-top: 10px;
}
@keyframes rise3 {
  from {
    opacity: 0;
    transform: perspective(520px) translateY(16px) rotateX(55deg) scale(0.9);
  }
}
@keyframes halo {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
@keyframes floaty {
  50% {
    transform: translateY(-5px);
  }
}
@keyframes pop3 {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.25) rotate(-6deg);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------- HUBUNGI KAMI ---------- */
.csm {
  max-width: 400px !important;
  padding: 26px 20px 20px !important;
}
.cs-hero {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
}
.cs-hero .cs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(246, 196, 83, 0.55);
  animation: ping 2.4s ease-out infinite;
}
.cs-hero .cs-ring.r2 {
  animation-delay: 1.2s;
}
.cs-hero .cs-halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 212, 90, 0.55),
    transparent 40%,
    rgba(255, 139, 148, 0.45),
    transparent 75%
  );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  animation: halo 4s linear infinite;
}
.csm .cs-ic {
  position: relative;
  width: 70px !important;
  height: 70px !important;
  margin: 0 !important;
  background: radial-gradient(circle at 40% 28%, #8a4c22, #2a1208 62%, #120804) !important;
  border: 2.5px solid #ffd45a !important;
  box-shadow:
    0 5px 0 #6b3d08,
    0 12px 22px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(246, 196, 83, 0.45),
    inset 0 3px 6px rgba(255, 230, 170, 0.35) !important;
}
.csm .cs-ic svg {
  width: 34px !important;
  height: 34px !important;
}
.cs-live {
  position: absolute;
  right: -18px;
  bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font:
    900 0.55rem Unbounded,
    sans-serif;
  letter-spacing: 0.08em;
  color: #08361a;
  background: linear-gradient(180deg, #9dffb8, #38d06e);
  border: 1.5px solid #e6ffe9;
  box-shadow:
    0 3px 0 #0f6b33,
    0 6px 10px rgba(0, 0, 0, 0.4);
}
.cs-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b6b2e;
  box-shadow: 0 0 0 0 rgba(11, 107, 46, 0.6);
  animation: pulse 1.4s infinite;
}
.csm h2.sk-title {
  margin: 6px 30px 4px !important;
  font-size: 1.25rem !important;
  letter-spacing: 0.04em;
}
.csm .lead {
  max-width: 300px !important;
  font-size: 0.9rem;
}
.csm .csl {
  gap: 12px !important;
  max-width: 340px !important;
  margin: 18px auto 6px !important;
  perspective: none;
}
.csm .csl.n2 {
  max-width: 240px !important;
}
.csm .csl.n1 {
  max-width: 150px !important;
}
.csm .csi {
  padding: 16px 4px 12px !important;
  border-radius: 22px !important;
  animation: rise3 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
  animation-delay: var(--d);
  transform: perspective(520px) rotateY(calc(var(--tx) * 18deg)) rotateX(calc(var(--ty) * -18deg)) translateY(0) !important;
  box-shadow:
    0 7px 0 var(--sh),
    0 9px 0 rgba(0, 0, 0, 0.35),
    0 16px 22px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18) !important;
}
.csm .csi:hover,
.csm .csi.on3 {
  transform: perspective(520px) rotateY(calc(var(--tx) * 18deg)) rotateX(calc(var(--ty) * -18deg)) translateY(-5px) !important;
  filter: brightness(1.06);
  box-shadow:
    0 12px 0 var(--sh),
    0 14px 0 rgba(0, 0, 0, 0.35),
    0 24px 30px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18) !important;
}
.csm .csi:active {
  transform: perspective(520px) translateY(6px) !important;
  box-shadow:
    0 1px 0 var(--sh),
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3) !important;
  transition-duration: 0.06s;
}
.csm .csi i {
  width: 52px !important;
  height: 52px !important;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.14) 60%) !important;
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 6px 12px rgba(0, 0, 0, 0.28) !important;
  transform: translateZ(0);
}
.csm .csi small {
  background: rgba(0, 0, 0, 0.24) !important;
  letter-spacing: 0.06em !important;
}
.csm .csi .tag {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eaffef;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 0 8px #fff;
  animation: blink 1.6s infinite;
}
.cs-foot {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.cs-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffe7a8;
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.12), rgba(0, 0, 0, 0.28));
  border: 1px solid rgba(246, 196, 83, 0.35);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.cs-foot span.ok {
  color: #9dffb8;
  border-color: rgba(120, 230, 150, 0.45);
}
.cs-foot span.ok i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4dff88;
  box-shadow: 0 0 8px #4dff88;
  animation: blink 1.2s infinite;
}

/* ---------- CARA BERMAIN ---------- */
.howto {
  max-width: 430px !important;
  padding: 24px 18px 18px !important;
}
.hw-badge,
.h3-ic {
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  transform: rotate(-6deg);
  background: linear-gradient(160deg, #ff6a74, #bd3634 55%, #7e121d);
  border: 2.5px solid #ffd45a;
  box-shadow:
    0 5px 0 #5a0d14,
    0 12px 20px rgba(0, 0, 0, 0.5),
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    0 0 26px rgba(224, 65, 79, 0.4);
  animation: floaty 3s ease-in-out infinite;
}
.howto h2.sk-title,
.hist3 h2.sk-title {
  margin: 8px 30px 2px !important;
  font-size: 1.3rem !important;
  letter-spacing: 0.05em;
}
.howto .lead,
.hist3 .lead {
  margin: 2px 0 10px !important;
  font-size: 0.9rem;
}
.hw-steps {
  display: grid;
  gap: 9px;
  margin: 0 0 12px;
  counter-reset: s;
}
.hw-step {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.12), rgba(0, 0, 0, 0.22));
  border: 1px solid rgba(246, 196, 83, 0.3);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 230, 170, 0.18);
  animation: rise3 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) backwards;
  animation-delay: var(--d);
}
.hw-step .hw-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font:
    800 0.78rem Unbounded,
    sans-serif;
  color: #3b1d02;
  background: linear-gradient(180deg, #fff0a8, #f2a826);
  box-shadow:
    0 3px 0 #9a5a0c,
    inset 0 1px 0 #fff;
}
.hw-step .hw-ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: radial-gradient(circle at 35% 28%, rgba(255, 240, 200, 0.25), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(246, 196, 83, 0.35);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.hw-step .hw-txt b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #ffe08a;
  letter-spacing: 0.01em;
}
.hw-step .hw-txt small {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.38;
  color: #efe5c4;
}
.hw-step .hw-txt small b {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  color: #fff;
}
.hw-step.act {
  border-color: #ffd45a;
  background: linear-gradient(180deg, rgba(255, 212, 90, 0.26), rgba(60, 25, 6, 0.45));
  box-shadow:
    0 6px 0 #6b3d08,
    0 0 0 1px rgba(255, 212, 90, 0.45),
    0 0 24px rgba(246, 196, 83, 0.35),
    inset 0 1px 0 rgba(255, 240, 200, 0.35);
}
.hw-step.act .hw-ic {
  animation: pop3 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.hw-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  bottom: -10px;
  width: 2px;
  height: 10px;
  background: linear-gradient(#f6c453, transparent);
  opacity: 0.6;
}
.hw-x3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
  background:
    linear-gradient(180deg, #bd3634, #7e121d) padding-box,
    linear-gradient(180deg, #fff2b0, #f2b53a 40%, #8a5410) border-box;
  border: 1.5px solid transparent;
  box-shadow:
    0 4px 0 #4a0a12,
    0 10px 18px rgba(0, 0, 0, 0.35);
}
.hw-x3 i {
  font-style: normal;
  font-size: 1.6rem;
  animation: floaty 1.6s ease-in-out infinite;
}
.hw-x3 b {
  display: block;
  font:
    800 0.76rem Unbounded,
    sans-serif;
  color: #fff4d0;
  letter-spacing: 0.02em;
}
.hw-x3 small {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffd9a8;
  margin-top: 2px;
}
.hw-x3.on {
  box-shadow:
    0 4px 0 #4a0a12,
    0 0 30px rgba(255, 120, 60, 0.6);
}
.howto .tier {
  margin-bottom: 12px;
}
.howto .tier.pA > div > span:nth-child(2),
.howto .tier.pB > div > span:nth-child(3) {
  background: rgba(255, 212, 90, 0.12);
}
.howto .tier.pA .th span:nth-child(2)::after,
.howto .tier.pB .th span:nth-child(3)::after {
  content: ' • SEKARANG';
  color: #7cfc9a;
}
.howto .tier > div {
  padding: 9px 10px !important;
}
.hw-calc {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b0503, #221108);
  border: 1px solid rgba(246, 196, 83, 0.4);
  box-shadow:
    inset 0 3px 8px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 220, 150, 0.2);
}
.hw-calc .hc-h {
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #ffd24a;
  text-align: center;
  margin-bottom: 8px;
}
.hw-amt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hw-amt button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font:
    800 1.1rem Unbounded,
    sans-serif;
  color: #3b1d02;
  background: linear-gradient(180deg, #fff0a8, #f2a826);
  box-shadow:
    0 3px 0 #9a5a0c,
    inset 0 1px 0 #fff;
  transition: transform 0.08s;
}
.hw-amt button:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 #9a5a0c;
}
.hw-amt output {
  min-width: 150px;
  text-align: center;
  font:
    800 1.05rem Unbounded,
    sans-serif;
  color: #fff;
  text-shadow: 0 2px 0 #7a4708;
}
.hw-calc input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 12px 0 10px;
  border-radius: 9px;
  outline: 0;
  background: linear-gradient(90deg, #ffd45a var(--p, 0%), rgba(255, 255, 255, 0.12) var(--p, 0%));
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6);
}
.hw-calc input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7c8, #ffd24a 45%, #c47f0e);
  border: 2px solid #fff3c4;
  box-shadow:
    0 3px 0 #7a4708,
    0 0 12px rgba(255, 200, 90, 0.6);
  cursor: pointer;
}
.hw-calc input[type='range']::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7c8, #ffd24a 45%, #c47f0e);
  border: 2px solid #fff3c4;
  cursor: pointer;
}
.hw-res {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hw-res div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 215, 140, 0.08);
  border: 1px solid rgba(246, 196, 83, 0.25);
}
.hw-res small {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: rgba(255, 230, 180, 0.75);
}
.hw-res b {
  font:
    800 1.6rem Unbounded,
    sans-serif;
  line-height: 1.15;
  color: #ffd24a;
  text-shadow:
    0 2px 0 #8a5410,
    0 4px 8px rgba(0, 0, 0, 0.5);
}
.hw-res b.bump {
  animation: pop3 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.hw-res span {
  font-size: 0.68rem;
  font-weight: 800;
  color: #e6dcb1;
}
.hw-res .hot {
  background: rgba(255, 100, 60, 0.12);
  border-color: rgba(255, 150, 90, 0.4);
}
.hw-res .hot b {
  color: #ff8a5a;
  text-shadow:
    0 2px 0 #7a1a08,
    0 4px 8px rgba(0, 0, 0, 0.5);
}

/* ---------- RIWAYAT KADO ---------- */
.hist3 {
  max-width: 420px !important;
  padding: 24px 18px 18px !important;
}
.h3-ic {
  background: linear-gradient(160deg, #ffe58a, #e9a12a 55%, #9a5a0c);
  box-shadow:
    0 5px 0 #6b3d08,
    0 12px 20px rgba(0, 0, 0, 0.5),
    inset 0 3px 0 rgba(255, 255, 255, 0.5),
    0 0 26px rgba(246, 196, 83, 0.45);
  transform: rotate(5deg);
}
.hist3 .lead b {
  color: #ffd45a;
}
.h3-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 8px;
}
.h3-stats > div {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px 9px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.16), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(246, 196, 83, 0.38);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 240, 200, 0.2);
  animation: rise3 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
  animation-delay: var(--d);
}
.h3-stats small {
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255, 230, 180, 0.75);
  white-space: nowrap;
}
.h3-stats b {
  font:
    800 0.86rem Unbounded,
    sans-serif;
  color: #ffe08a;
  white-space: nowrap;
  text-shadow: 0 2px 0 #7a4708;
}
.h3-stats > div:first-child b {
  font-size: 0.92rem;
  color: #fff4c8;
}
.h3-sub {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  color: rgba(255, 230, 180, 0.6);
  margin: 4px 0 2px;
}
.h3-list {
  display: grid;
  gap: 8px;
}
.h3-it {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 215, 140, 0.12), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(246, 196, 83, 0.26);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 230, 170, 0.16);
  animation: rise3 0.5s cubic-bezier(0.2, 1.35, 0.4, 1) backwards;
  animation-delay: var(--d);
}
.h3-it:hover,
.h3-it.on3 {
  border-color: rgba(255, 212, 90, 0.65);
  box-shadow:
    0 7px 0 rgba(0, 0, 0, 0.4),
    0 0 18px rgba(246, 196, 83, 0.25),
    inset 0 1px 0 rgba(255, 230, 170, 0.25);
}
.h3-gift {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
}
.h3-gift .bx {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 24px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 42%, var(--rb) 42% 58%, transparent 58%), linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.35);
}
.h3-gift .ld {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 7px;
  height: 9px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent 42%, var(--rb) 42% 58%, transparent 58%), linear-gradient(var(--c1), var(--c2));
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  transform-origin: 80% 100%;
  transition: transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.h3-gift .ld::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 9px;
  margin-left: -8px;
  border-radius: 50%;
  border: 3px solid var(--rb);
  border-bottom-color: transparent;
}
.h3-gift .sp {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 170, 0.65), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
}
.h3-it.open .h3-gift .ld,
.h3-it:hover .h3-gift .ld {
  transform: translate(8px, -9px) rotate(24deg);
}
.h3-it.open .h3-gift .sp,
.h3-it:hover .h3-gift .sp {
  opacity: 1;
}
.h3-when b {
  display: block;
  font:
    800 0.8rem Unbounded,
    sans-serif;
  color: #fff;
}
.h3-when small {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(230, 220, 177, 0.75);
}
.h3-amt {
  font:
    800 1rem Unbounded,
    sans-serif;
  color: #ffd24a;
  white-space: nowrap;
  text-shadow:
    0 1px 0 #d38f1d,
    0 2px 0 #8a5410,
    0 3px 0 #5c3205,
    0 5px 8px rgba(0, 0, 0, 0.55);
}
.h3-it.a1 {
  --c1: #4fb3ff;
  --c2: #1f5fa8;
  --rb: #ffe08a;
}
.h3-it.a2 {
  --c1: #4be08a;
  --c2: #17803f;
  --rb: #ffe08a;
}
.h3-it.a3 {
  --c1: #ff6a74;
  --c2: #a51d2b;
  --rb: #ffe08a;
}
.h3-it.a4 {
  --c1: #c98bff;
  --c2: #6b2bb0;
  --rb: #ffe08a;
}
.h3-it.a5 {
  --c1: #fff0a8;
  --c2: #d9861a;
  --rb: #bd3634;
}
.h3-it.a4 .h3-amt,
.h3-it.a5 .h3-amt {
  font-size: 1.08rem;
  color: #fff1b0;
}
.h3-it.best {
  border-color: rgba(255, 212, 90, 0.7);
  background: linear-gradient(180deg, rgba(255, 212, 90, 0.22), rgba(60, 25, 6, 0.4));
}
.h3-it.best::before {
  content: 'TERBESAR';
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font:
    900 0.5rem Unbounded,
    sans-serif;
  letter-spacing: 0.1em;
  color: #3b1d02;
  background: linear-gradient(180deg, #fff0a8, #f2a826);
  box-shadow: 0 2px 0 #9a5a0c;
}
.h3-it.z {
  --c1: #a9b8c6;
  --c2: #5d7487;
  --rb: #e6eef5;
  cursor: default;
}
.h3-it.z .h3-amt {
  color: #b9c8d6;
  text-shadow: 0 2px 0 #3b4550;
  font-size: 0.92rem;
}
.h3-it.z .h3-amt::before {
  content: '❄ ';
  font-size: 0.8em;
}
.h3-empty {
  text-align: center;
  padding: 18px 6px 6px;
}
.h3-empty .eg {
  font-size: 3rem;
  animation: floaty 2.4s ease-in-out infinite;
}
.h3-empty p {
  margin: 8px 0 16px;
  font-weight: 800;
  color: #e6dcb1;
}
.h3-skel {
  display: grid;
  gap: 8px;
  padding: 6px 0;
}
.h3-skel i {
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 215, 140, 0.06) 20%, rgba(255, 215, 140, 0.18) 50%, rgba(255, 215, 140, 0.06) 80%);
  background-size: 200% 100%;
  animation: skel 1.1s linear infinite;
}
@keyframes skel {
  to {
    background-position: -200% 0;
  }
}

/* ---------- KEMBALI KE SITUS ---------- */
.back {
  max-width: 380px !important;
  padding: 30px 22px 20px !important;
}
.bk-logo {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.bk-logo .bk-halo {
  position: absolute;
  width: 120%;
  height: 150%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 206, 100, 0.35), rgba(255, 206, 100, 0) 65%);
  animation: twk 2.6s ease-in-out infinite;
}
.back .loginlogo {
  position: relative;
  width: min(210px, 58vw) !important;
  transform: translateZ(0);
}
.tilt3d .bk-logo {
  transform: translateZ(60px) !important;
}
.back .acts .btn {
  font-size: 0.82rem;
}
/* tombol tutup selalu paling depan di kartu 3D (supaya tidak tertutup header) */
.tilt3d .mclose {
  transform: translateZ(80px) !important;
  z-index: 9;
}
.howto .ogift {
  bottom: -12px !important;
  right: -14px !important;
}
/* ---------- KEMBALI KE SITUS (ringkas & 3D) ---------- */
.back2 {
  max-width: 350px !important;
  padding: 34px 24px 24px !important;
  text-align: center;
  animation: bkIn 0.75s cubic-bezier(0.2, 1.25, 0.4, 1);
}
@keyframes bkIn {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(-38deg) translateY(36px) scale(0.88);
  }
}
.back2 .bk-logo {
  width: min(220px, 62vw);
  margin: 0 auto 4px;
  padding: 12px 0 6px;
}
.back2 .bk-logo img {
  position: relative;
  display: block;
  width: 100%;
  animation: floaty 3.2s ease-in-out infinite;
  filter: drop-shadow(0 3px 0 #5c3205) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(255, 200, 90, 0.45));
}
.back2 .bk-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  border-radius: 50%;
  opacity: 0.85;
  animation: halo 7s linear infinite;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 212, 90, 0.75),
    transparent 28%,
    rgba(255, 244, 210, 0.5),
    transparent 58%,
    rgba(255, 139, 148, 0.45),
    transparent 86%
  );
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 66%, transparent 68%);
  mask: radial-gradient(circle, transparent 60%, #000 62%, #000 66%, transparent 68%);
}
.bk-div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 72%;
  margin: 14px auto 18px;
}
.bk-div i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f6c453);
}
.bk-div i:last-child {
  background: linear-gradient(90deg, #f6c453, transparent);
}
.bk-div b {
  color: #ffd45a;
  font-size: 1rem;
  text-shadow: 0 0 10px #ffd45a;
  animation: twk 2s ease-in-out infinite;
}
.back2 .acts {
  gap: 13px !important;
  margin: 0 !important;
}
.tilt3d.back2 .acts {
  transform: translateZ(42px) !important;
}
.back2 .acts .btn {
  font-family: Unbounded, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 1.05em 1.4em;
}
/* judul popup keluar: gaya banner event (huruf sambung + serif emas berkilau) */
.back2 .bk-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.45;
  animation: halo 24s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 120, 0.5) 0deg 5deg, rgba(255, 214, 120, 0) 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 25%, transparent 68%);
  mask: radial-gradient(circle, #000 0, #000 25%, transparent 68%);
}
.back2 .bk-ring {
  opacity: 1 !important;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 224, 130, 0.95),
    transparent 28%,
    rgba(255, 250, 225, 0.7),
    transparent 58%,
    rgba(255, 170, 90, 0.7),
    transparent 86%
  ) !important;
}
.bk-title2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  line-height: 1;
}
.tilt3d .bk-title2 {
  transform: translateZ(56px) !important;
}
.bk-title2 .sc {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  font-size: clamp(2.4rem, 11.5vw, 3rem);
  line-height: 1.1;
  padding: 0 0.25em;
  background: linear-gradient(180deg, #fffbe0 0%, #ffe08a 38%, #e9a12a 72%, #fff0b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #7a4708) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 16px rgba(255, 200, 90, 0.4));
}
.bk-title2 .sf {
  margin-top: -4px;
  white-space: nowrap;
  font-family: Cinzel, 'Trajan Pro', 'Times New Roman', serif;
  font-weight: 900;
  font-size: min(1.36rem, 5.4vw);
  letter-spacing: 0.035em;
  background: linear-gradient(100deg, #a8650f 0%, #ffeaa8 16%, #c98a1d 30%, #fff8dc 46%, #d69a2a 60%, #ffe08a 78%, #8a5410 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldSweep 5s linear infinite;
  filter: drop-shadow(0 1px 0 #7a4708) drop-shadow(0 2px 0 #4a2a06) drop-shadow(0 7px 10px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 12px rgba(255, 190, 80, 0.35));
}
.bk-title2 .sf i {
  font-style: normal;
  font-size: 0.86em;
  margin: 0 0.06em;
}
@keyframes goldSweep {
  to {
    background-position: -220% 0;
  }
}
.bk-title2 .tw {
  position: absolute;
  font-style: normal;
  color: #fff3c0;
  text-shadow:
    0 0 8px #ffd45a,
    0 0 16px #ffb840;
  animation: twk 2.2s ease-in-out infinite;
  pointer-events: none;
}
.bk-title2 .t1 {
  left: 4%;
  top: 8%;
  font-size: 0.9rem;
}
.bk-title2 .t2 {
  right: 6%;
  top: 2%;
  font-size: 0.7rem;
  animation-delay: -0.8s;
}
.bk-title2 .t3 {
  right: 14%;
  bottom: -6px;
  font-size: 0.8rem;
  animation-delay: -1.5s;
}
.back2 .bk-div {
  margin: 12px auto 18px !important;
}

/* hadiah barang (versi demo: iPhone / motor / emas) di kartu hadiah */
#reveal .amt .itm {
  display: block;
  font-size: 0.5em;
  line-height: 1.15;
  white-space: normal;
  text-wrap: balance;
  padding: 0 6px;
}

/* ===== penyesuaian layar (HP kecil, HP miring, desktop) ===== */
/* petunjuk "Geser untuk berputar…": teks boleh 2 baris supaya tombol Batal tidak terpotong di HP kecil */
#hint {
  white-space: normal;
  width: max-content;
}
#hint > span {
  min-width: 0;
  line-height: 1.25;
}
#hint .btn {
  flex: none;
}
@media (max-width: 420px) {
  #hint {
    font-size: 0.78rem;
    gap: 8px;
    padding: 8px 8px 8px 14px;
    border-radius: 22px;
  }
}
/* popup pemenang tidak menumpuk dengan petunjuk saat memilih kado */
#hud.picking ~ #winFeed {
  opacity: 0;
}
