/* ===== UNTUK PIKA — neobrutalism ===== */
:root {
  --ink: #111111;
  --paper: #fff4d6;
  --white: #ffffff;
  --yellow: #ffd93d;
  --pink: #ff6b9d;
  --blue: #4d96ff;
  --mint: #6bcb77;
  --orange: #ff8c42;
  --purple: #b388ff;
  --bw: 4px;
  --sh: 8px 8px 0 var(--ink);
  --font-d: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-b: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-b);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(17, 17, 17, 0.2) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  overflow-x: hidden;
}

a { color: inherit; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; }

/* ---------- shell ---------- */
.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px clamp(14px, 3vw, 40px);
  background: var(--white);
  border-bottom: var(--bw) solid var(--ink);
}

.brand {
  font-family: var(--font-d);
  font-size: clamp(15px, 1.8vw, 22px);
  text-transform: uppercase;
  text-decoration: none;
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 4px 12px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
  white-space: nowrap;
}

.steps { display: flex; gap: 8px; }

.step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.step b { font-family: var(--font-d); }
.step:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.step.on { background: var(--pink); }

.marquee {
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  border-top: var(--bw) solid var(--ink);
  font-family: var(--font-d);
  text-transform: uppercase;
  font-size: clamp(14px, 1.5vw, 20px);
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  padding-left: 28px;
  animation: slide 30s linear infinite;
  will-change: transform;
}
.marquee-track .dot { color: var(--pink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- stage ---------- */
.stage {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(28px, 4vw, 64px) clamp(18px, 4vw, 72px);
}
.two { grid-template-columns: 1.05fr 0.95fr; }
.two.deck-layout { grid-template-columns: 0.8fr 1.2fr; }

@media (max-width: 900px) {
  .two, .two.deck-layout { grid-template-columns: 1fr; }
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-d);
  text-transform: uppercase;
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--yellow);
  padding: 7px 14px;
  transform: rotate(-2deg);
  margin-bottom: 22px;
}

.mega {
  font-family: var(--font-d);
  text-transform: uppercase;
  font-size: clamp(52px, 8.4vw, 136px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.mega.md { font-size: clamp(42px, 6.4vw, 104px); }
.mega.sm { font-size: clamp(38px, 4.4vw, 76px); }

.hl {
  display: inline-block;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 0 0.14em;
  transform: rotate(-2deg);
  margin-top: 8px;
}
.hl.pink { background: var(--pink); }
.hl.blue { background: var(--blue); color: var(--white); }
.hl.mint { background: var(--mint); }

.lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.45;
  font-weight: 600;
}
.lead b { background: var(--yellow); padding: 0 5px; }

.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 16px);
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.chip:nth-child(2) { background: var(--mint); }
.chip:nth-child(3) { background: var(--blue); color: var(--white); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-d);
  text-transform: uppercase;
  font-size: clamp(15px, 1.6vw, 21px);
  color: var(--ink);
  text-decoration: none;
  background: var(--yellow);
  border: var(--bw) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 15px 26px;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn.pink { background: var(--pink); }
.btn.mint { background: var(--mint); }
.btn.blue { background: var(--blue); color: var(--white); }
.btn.white { background: var(--white); }
.btn.sq { padding: 15px 20px; min-width: 64px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: 6px 6px 0 var(--ink); }
.btn[hidden] { display: none; }

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--sh);
  padding: clamp(18px, 2.4vw, 32px);
}

/* ---------- stickers ---------- */
.sticker {
  position: absolute;
  z-index: 20;
  font-family: var(--font-d);
  text-transform: uppercase;
  font-size: clamp(12px, 1.2vw, 17px);
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 8px 14px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  translate: var(--dx, 0) var(--dy, 0);
  animation: bob 4.5s ease-in-out infinite;
}
.sticker.drag { cursor: grabbing; animation-play-state: paused; z-index: 30; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.burst {
  width: clamp(84px, 9vw, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(5px 5px 0 var(--ink)); }
.burst span { position: relative; text-align: center; line-height: 1; font-size: clamp(14px, 1.6vw, 22px); pointer-events: none; }

@media (max-width: 700px) { .sticker.hide-sm { display: none; } }

/* ---------- envelope ---------- */
.env-wrap { padding-top: clamp(40px, 12vw, 120px); display: grid; justify-items: center; gap: 22px; }
.env {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  perspective: 1400px;
  -webkit-tap-highlight-color: transparent;
}
.env > * { position: absolute; }
.env svg { width: 100%; height: 100%; display: block; overflow: visible; }
.env svg polygon, .env svg rect { stroke: var(--ink); stroke-width: 4; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.env-back { inset: 0; z-index: 0; filter: drop-shadow(8px 8px 0 var(--ink)); }
.env-letter {
  left: 7%; right: 7%; top: 8%; height: 84%;
  z-index: 2;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  padding: clamp(14px, 2.4vw, 26px);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.7s cubic-bezier(0.3, 1.35, 0.5, 1);
}
.env-letter small { font-weight: 700; letter-spacing: 0.16em; font-size: clamp(11px, 1.1vw, 14px); }
.env-letter h3 { font-family: var(--font-d); text-transform: uppercase; font-size: clamp(26px, 4.2vw, 54px); line-height: 1; }
.env-letter p { font-weight: 600; font-size: clamp(13px, 1.4vw, 18px); line-height: 1.35; margin-top: 4px; }
.env-front { inset: 0; z-index: 3; pointer-events: none; }
.env-flap {
  left: 0; top: 0; width: 100%; height: 55%;
  z-index: 4;
  transform-origin: top center;
  transition: transform 0.6s ease, z-index 0s 0.3s;
}
.env-seal {
  left: 50%; top: 55%;
  width: clamp(48px, 7vw, 76px); aspect-ratio: 1;
  z-index: 5;
  translate: -50% -50%;
  display: grid; place-items: center;
  font-size: clamp(22px, 3.2vw, 36px);
  background: var(--pink);
  border: var(--bw) solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.35s, opacity 0.35s;
  animation: beat 1.6s ease-in-out infinite;
}
@keyframes beat { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
.env.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env.open .env-letter { transform: translateY(-58%) rotate(-2deg); }
.env.open .env-seal { opacity: 0; transform: scale(0.2); pointer-events: none; animation: none; }
.hint { font-weight: 700; font-size: 15px; background: var(--white); border: 3px solid var(--ink); padding: 4px 12px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- deck (ungkapan) ---------- */
.counter {
  margin-top: 26px;
  font-family: var(--font-d);
  font-size: clamp(88px, 15vw, 250px);
  line-height: 0.85;
  color: var(--white);
  -webkit-text-stroke: 4px var(--ink);
  text-shadow: 8px 8px 0 var(--ink);
  display: flex; align-items: flex-end; gap: 10px;
}
.counter small { font-size: clamp(22px, 3vw, 48px); -webkit-text-stroke: 0; color: var(--ink); text-shadow: none; padding-bottom: 8px; }
.tip { margin-top: 26px; font-weight: 600; font-size: clamp(14px, 1.2vw, 17px); max-width: 24em; }

.deck { display: grid; position: relative; padding: 0 36px 52px 0; cursor: pointer; }
.slide {
  grid-area: 1 / 1;
  background: var(--c, var(--yellow));
  border: var(--bw) solid var(--ink);
  box-shadow: var(--sh);
  padding: clamp(22px, 3.2vw, 52px);
  min-height: clamp(340px, 48vh, 520px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  opacity: 0; pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.2, 1.1, 0.3, 1), opacity 0.35s;
}
.slide[data-pos="0"] { opacity: 1; pointer-events: auto; z-index: 5; }
.slide[data-pos="1"] { opacity: 1; z-index: 4; transform: translate(18px, 18px) rotate(2deg); }
.slide[data-pos="2"] { opacity: 1; z-index: 3; transform: translate(34px, 34px) rotate(-2deg); }
.slide[data-pos="far"] { transform: translate(34px, 34px); }
.slide[data-pos="gone"] { transform: translateX(-115%) rotate(-12deg); opacity: 0; }
.slide .num { font-family: var(--font-d); font-size: clamp(13px, 1.2vw, 17px); text-transform: uppercase; letter-spacing: 0.04em; background: var(--ink); color: var(--white); align-self: flex-start; padding: 6px 12px; }
.slide h2 { font-family: var(--font-d); text-transform: uppercase; font-size: clamp(28px, 4.2vw, 68px); line-height: 1; }
.slide p { font-size: clamp(18px, 1.9vw, 30px); line-height: 1.35; font-weight: 600; }

.deck-ctrl { display: grid; gap: 22px; margin-top: 8px; }
.bars { display: flex; gap: 8px; }
.bar { flex: 1; height: 16px; background: var(--white); border: 3px solid var(--ink); transition: background 0.2s; }
.bar.done { background: var(--ink); }
.bar.on { background: var(--pink); }
.nav { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- penutup ---------- */
.ask h3 { font-family: var(--font-d); text-transform: uppercase; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.05; }
.ask .actions { margin-top: 20px; }
.reply {
  margin-top: 22px; display: none;
  background: var(--mint); border: var(--bw) solid var(--ink); padding: 14px 18px;
  font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.35;
}
.reply.show { display: block; animation: pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.reply.soft { background: var(--blue); color: var(--white); }
@keyframes pop { from { transform: scale(0.8) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }

.label-wrap { position: relative; display: grid; place-items: center; padding: 12px 0; }
.label {
  width: min(100%, 540px);
  background: var(--white);
  border: var(--bw) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.8deg);
  position: relative;
}
.label .row { padding: clamp(14px, 2vw, 26px); border-bottom: var(--bw) solid var(--ink); }
.label small { display: block; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.label .name { font-family: var(--font-d); text-transform: uppercase; font-size: clamp(34px, 5vw, 76px); line-height: 1; }
.label .from { background: var(--blue); color: var(--white); }
.label .to { background: var(--pink); }
.label .mid { background: var(--yellow); display: grid; place-items: center; padding: 8px; font-family: var(--font-d); font-size: clamp(26px, 3vw, 42px); }
.label .code { padding: 16px clamp(14px, 2vw, 26px); border: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; }
.barcode { flex: 1; height: 54px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 7px, var(--ink) 7px 8px, transparent 8px 13px, var(--ink) 13px 18px, transparent 18px 22px); }
.stamp { position: absolute; top: -34px; right: -26px; width: clamp(92px, 11vw, 132px); z-index: 5; animation: spin 14s linear infinite; filter: drop-shadow(4px 4px 0 var(--ink)); }
@keyframes spin { to { transform: rotate(360deg); } }
.again { margin-top: 26px; display: inline-block; font-weight: 700; }

/* ---------- page wipe + confetti ---------- */
.wipe {
  position: fixed; inset: 0; z-index: 300;
  background: var(--pink);
  border-left: 8px solid var(--ink); border-right: 8px solid var(--ink);
  transform: translateX(100%);
  pointer-events: none;
}
.wipe.enter { animation: wipeOut 0.6s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
.wipe.leave { animation: wipeIn 0.42s cubic-bezier(0.7, 0, 0.2, 1) forwards; pointer-events: auto; }
@keyframes wipeOut { from { transform: translateX(0); } to { transform: translateX(-105%); } }
@keyframes wipeIn { from { transform: translateX(105%); } to { transform: translateX(0); } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 250; }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  .step span { display: none; }
  .step { padding: 6px 12px; }
  .env.open .env-letter { transform: translateY(-52%) rotate(-2deg); }
  .deck { padding: 0 24px 28px 0; }
  .slide[data-pos="1"] { transform: translate(12px, 12px) rotate(2deg); }
  .slide[data-pos="2"] { transform: translate(22px, 22px) rotate(-2deg); }
  .counter { margin-top: 16px; text-shadow: 5px 5px 0 var(--ink); -webkit-text-stroke-width: 3px; }
  .tip { display: none; }
  .stamp { right: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
