/* ============================================================
   MY GIRL DAY — coklat #d9c3a0, tipografi ala LANY (Fraunces / Inter / Space Mono)
   Setiap menu = 1 halaman penuh, tanpa scroll.
   ============================================================ */
:root {
  --accent: #d9c3a0;
  --accent-2: #e8d8bc;
  --accent-soft: #f0e4cd;
  --accent-deep: #1b2a4a;
  --bg: #0b1426;
  --bg-2: #14213d;
  --plum: #0f1a30;
  --blush: #f3e8d6;
  --text: #f6eedf;
  --kraft: #ccb48b;
  --ink: #1b2a4a;
  --paper: #e4ddd0;
  --line: rgba(246, 238, 223, .12);

  --f-display: "Fraunces", "Iowan Old Style", serif;
  --f-body: "Inter", -apple-system, sans-serif;
  --f-mono: "Space Mono", monospace;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-hand: "Caveat", "Segoe Script", cursive;
  --f-poster: "Anton", "Impact", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

em {
  font-style: italic;
  font-family: var(--f-display);
  color: var(--accent-2);
}

/* ---------- tipografi header ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #c79529;
  margin-bottom: 16px;
}

.eyebrow--sm {
  font-size: 10px;
  letter-spacing: .2em;
  margin: 0 0 6px;
}

.h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 6.4vw, 3.1rem);
  line-height: 1.12;
  color: #ffffff;
}

.h--xl {
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  line-height: 1.06;
}

.sub {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 238, 223, .62);
  max-width: 340px;
  margin-top: 14px;
}

.head {
  margin-bottom: 30px;
}

/* fade header: muncul pelan tiap halaman dibuka */
@keyframes headFade {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.page.is-active .eyebrow:not(.eyebrow--sm) {
  animation: headFade 1s cubic-bezier(.22, .61, .25, 1) .15s both;
}

.page.is-active .h {
  animation: headFade 1.1s cubic-bezier(.22, .61, .25, 1) .35s both;
}

.pill {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 40px;
  background: var(--accent);
  color: #0f1a30;
  box-shadow: 0 0 24px rgba(217, 195, 160, .45);
  transition: transform .2s;
}

.pill:hover {
  transform: translateY(-2px);
}

/* ---------- latar ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.bg i {
  position: absolute;
  display: block;
}

.bg i:nth-child(1) {
  top: -8%;
  left: -25%;
  width: 95%;
  height: 62%;
  background: var(--accent);
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 0 82%);
}

.bg i:nth-child(2) {
  right: -30%;
  bottom: -10%;
  width: 110%;
  height: 60%;
  background: var(--accent-2);
  opacity: .95;
  clip-path: polygon(100% 0, 100% 100%, 15% 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- stamp + tiket + patch ---------- */
.stamp {
  --hole: 8px;
  --gap: 24px;
  --pad: 18px;
  display: block;
  position: relative;
  padding: var(--pad);
  background: var(--accent);
  -webkit-mask:
    radial-gradient(circle var(--hole) at 50% 0, #0000 96%, #000) center top / var(--gap) 100% repeat-x,
    radial-gradient(circle var(--hole) at 50% 100%, #0000 96%, #000) center bottom / var(--gap) 100% repeat-x,
    radial-gradient(circle var(--hole) at 0 50%, #0000 96%, #000) left center / 100% var(--gap) repeat-y,
    radial-gradient(circle var(--hole) at 100% 50%, #0000 96%, #000) right center / 100% var(--gap) repeat-y;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle var(--hole) at 50% 0, #0000 96%, #000) center top / var(--gap) 100% repeat-x,
    radial-gradient(circle var(--hole) at 50% 100%, #0000 96%, #000) center bottom / var(--gap) 100% repeat-x,
    radial-gradient(circle var(--hole) at 0 50%, #0000 96%, #000) left center / 100% var(--gap) repeat-y,
    radial-gradient(circle var(--hole) at 100% 50%, #0000 96%, #000) right center / 100% var(--gap) repeat-y;
  mask-composite: intersect;
}

.stamp__in {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blush);
}

.stamp__in--dark {
  background: var(--plum);
}

/* ---------- tiket kraft ---------- */
.ticket {
  position: absolute;
  z-index: 4;
  width: 210px;
  padding: 14px 34px 12px 16px;
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--f-type);
  transform: rotate(-11deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35));
  background-image: linear-gradient(90deg, transparent calc(100% - 26px), rgba(27, 42, 74, .35) calc(100% - 26px), rgba(27, 42, 74, .35) calc(100% - 25px), transparent calc(100% - 25px));
}

.ticket__no {
  position: absolute;
  right: 4px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  font-size: .78rem;
  letter-spacing: .12em;
}

.ticket__big {
  font-family: var(--f-display);
  font-size: 1.9rem;
  letter-spacing: .14em;
  line-height: 1.1;
}

.ticket__sub {
  font-size: .8rem;
}

.ticket__admit {
  font-size: .7rem;
  letter-spacing: .18em;
  margin-top: 6px;
  opacity: .75;
}

/* ---------- patch hati ---------- */
.patch {
  position: absolute;
  z-index: 5;
  width: 84px;
  height: 78px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4));
  transform: rotate(14deg);
}

.patch path {
  fill: var(--accent-2);
  stroke: #f0e4cd;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  paint-order: stroke;
}


/* ---------- gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 55%, #1f3158 0%, var(--bg) 65%);
  transition: transform 1s cubic-bezier(.7, 0, .2, 1), opacity .8s;
  padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom);
}

.gate.is-open {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.gate .eyebrow {
  margin-bottom: 12px;
}

.gate__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 6.4vw, 2rem);
  line-height: 1.4;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.gate__title span {
  color: var(--text);
}

.gate__bouquet {
  width: min(290px, 62vw, 40svh);
  animation: sway 5s ease-in-out infinite;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 0 40px rgba(217, 195, 160, .35));
  transition: transform .9s cubic-bezier(.6, 0, .2, 1), opacity .8s;
}

.gate__bouquet img {
  width: 100%;
  height: auto;
}

.gate.is-open .gate__bouquet {
  transform: scale(1.35) translateY(-8%);
  opacity: 0;
  animation: none;
}

.gate__hint {
  margin-top: 14px;
  font-size: 13px;
  font-style: italic;
  color: rgba(246, 238, 223, .55);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes sway {

  0%,
  100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: .45;
  }

  50% {
    opacity: 1;
  }
}

/* ---------- halaman (tanpa scroll) ---------- */
.album {
  position: fixed;
  inset: 0;
  z-index: 3;
}

.page {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(60px + env(safe-area-inset-top)) 22px calc(82px + env(safe-area-inset-bottom));
}

.page.is-active {
  display: flex;
  animation: pageIn .6s cubic-bezier(.22, .61, .25, 1) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.fit {
  width: 100%;
  max-width: 1080px;
  text-align: center;
  transform: scale(var(--s, 1));
  transform-origin: center center;
  flex: none;
  position: relative;
  z-index: 2;
}

.back {
  position: absolute;
  z-index: 6;
  top: calc(22px + env(safe-area-inset-top));
  left: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 0;
}

.back:hover {
  color: var(--text);
}

/* ---------- birthday ---------- */
.bday {
  display: grid;
  gap: 26px;
  justify-items: center;
}

.bday__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bday__next {
  margin-top: 22px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .6s, transform .6s;
}

.bday__next.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.page>.ticket {
  top: calc(6px + env(safe-area-inset-top));
  left: -12px;
  width: 168px;
  transform: rotate(-11deg) scale(.66);
  transform-origin: top left;
}

.vertical {
  position: absolute;
  z-index: 0;
  right: -6px;
  top: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  font-family: var(--f-poster);
  font-size: clamp(88px, 24vw, 190px);
  line-height: .9;
  color: rgba(217, 195, 160, .2);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .bday {
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 48px;
    text-align: left;
    padding: 0 30px;
  }

  .bday__text {
    align-items: flex-start;
  }

  .bday .sub {
    max-width: 380px;
  }

  .page>.ticket {
    left: 40px;
    top: 36px;
    width: 190px;
    transform: rotate(-11deg);
  }
}

.printer {
  position: relative;
  z-index: 2;
  width: min(270px, 68vw);
}

.printer__body {
  position: relative;
  z-index: 3;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2a4d, #070d1a);
  border: 1px solid rgba(232, 216, 188, .45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .55), 0 0 22px rgba(217, 195, 160, .25);
}

.printer__slot {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 8px;
  height: 9px;
  border-radius: 5px;
  background: #000;
  box-shadow: inset 0 -1px 0 rgba(232, 216, 188, .35);
}

.printer__mask {
  position: relative;
  z-index: 2;
  width: 88%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 0 40px;
  margin-bottom: -20px;
}

.polaroid {
  background: #faf5ea;
  padding: 14px 14px 58px;
  position: relative;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .5);
  transform: translateY(-104%);
  transition: transform 3.2s cubic-bezier(.3, .7, .25, 1);
}

.printer.is-printed .polaroid {
  transform: translateY(0) rotate(1.5deg);
}

.polaroid__photo {
  aspect-ratio: 1 / 1;
  background: var(--blush);
  overflow: hidden;
}

.polaroid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: .02em;
  transform: rotate(-2deg);
  white-space: nowrap;
  text-align: center;
}

/* ---------- menu ---------- */
.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
  width: min(360px, 100%);
  margin: 30px auto 0;
}

@media (min-width: 900px) {
  .menu__grid {
    grid-template-columns: repeat(4, 1fr);
    width: min(900px, 100%);
    gap: 30px;
  }
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  transition: transform .25s ease;
}

.menu-card:nth-child(1) {
  transform: rotate(-3deg);
}

.menu-card:nth-child(2) {
  transform: translateY(10px) rotate(2deg);
}

.menu-card:nth-child(3) {
  transform: rotate(2.5deg);
}

.menu-card:nth-child(4) {
  transform: translateY(10px) rotate(-2deg);
}

.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-6px) rotate(0);
}

.menu-card .stamp {
  --hole: 5px;
  --gap: 16px;
  --pad: 11px;
  width: 100%;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4));
}

.menu-card .stamp__in {
  border-radius: 8px;
  padding: 6px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.menu-card b {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--text);
}

.menu-card small {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent-2);
  line-height: 1.2;
}

/* ---------- music ---------- */
.music__grid {
  display: grid;
  gap: 22px;
  justify-items: center;
}

@media (min-width: 900px) {
  .music__grid {
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
  }

  .music__stage {
    justify-self: end;
  }

  .music__side {
    justify-self: start;
  }
}

.music__stage {
  position: relative;
  width: min(330px, 84vw);
}

.music__stage .ticket {
  top: -34px;
  left: -46px;
  width: 150px;
  transform: rotate(-9deg);
  padding: 10px 30px 8px 12px;
}

#music .head {
  margin-bottom: 46px;
}

@media (min-width: 900px) {
  .music__stage .ticket {
    top: -46px;
    left: -34px;
    width: 176px;
    padding: 14px 34px 12px 16px;
  }

  #music .head {
    margin-bottom: 30px;
  }
}

.music__stage .ticket__big {
  font-size: 1.3rem;
  letter-spacing: .06em;
}

.music__stage .ticket__sub {
  font-size: .68rem;
}

.music__stage .patch {
  right: -28px;
  bottom: -22px;
}

.stamp--player {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .5));
}

.stamp--player .stamp__in {
  padding: 26px 22px 18px;
}

.vinyl {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #070d1a 0 2px, #14213d 2px 4px);
  box-shadow: 0 0 0 5px #1a2744, 0 10px 24px rgba(0, 0, 0, .6);
  animation: spin 7s linear infinite;
  animation-play-state: paused;
}

.vinyl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, .09) 25%, transparent 32% 70%, rgba(255, 255, 255, .07) 76%, transparent 84%);
}

.vinyl.is-spinning {
  animation-play-state: running;
}

.vinyl__label {
  position: absolute;
  z-index: 2;
  inset: 33%;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28);
}

.vinyl__label svg {
  width: 46%;
  fill: #0f1a30;
}

.vinyl__label::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--plum);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.player__eyebrow {
  font-family: var(--f-hand);
  font-size: 1.3rem;
  color: var(--accent-2);
  line-height: 1;
}

.player__song {
  font-family: var(--f-type);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 4px 0 2px;
}

.player__artist {
  font-size: .9rem;
  opacity: .75;
}

.player__bar {
  height: 22px;
  margin-top: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.player__bar::before {
  content: "";
  position: absolute;
}

.player__bar {
  position: relative;
}

.player__bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .16);
}

.player__fill {
  position: relative;
  z-index: 1;
  height: 4px;
  width: 0;
  border-radius: 4px;
  background: var(--accent);
}

.player__time {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  opacity: .7;
}

.player__ctrl {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 10px;
}

.player__ctrl button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.player__ctrl svg {
  width: 22px;
  height: 22px;
  fill: var(--text);
}

#heartBtn.is-active svg {
  fill: var(--accent);
}

.player__ctrl .player__play {
  width: 60px;
  height: 60px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(217, 195, 160, .55);
}

.player__ctrl .player__play svg {
  width: 28px;
  height: 28px;
  fill: #0f1a30;
}

.i-pause {
  display: none;
}

.is-playing .i-play {
  display: none;
}

.is-playing .i-pause {
  display: block;
}

.i-play,
.i-pause {
  pointer-events: none;
}


.player__song {
  font-family: var(--f-display) !important;
}

.player__artist {
  font-size: .85rem;
  opacity: .7;
}

.player__eyebrow {
  display: none;
}

.music__side {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.music__side .receipt {
  order: 2;
}

.cassette-wrap {
  order: 1;
  --cs: .56;
  flex: none;
  width: calc(290px * var(--cs));
  height: calc(184px * var(--cs));
  margin-right: -6px;
  margin-bottom: 4px;
}

.cassette-wrap .cassette {
  transform: rotate(-5deg) scale(var(--cs));
  transform-origin: top left;
}

@media (min-width: 900px) {
  .music__side {
    flex-direction: column;
    align-items: flex-start;
    width: auto;
  }

  .music__side .receipt {
    order: 1;
    z-index: 2;
    margin-left: 70px;
  }

  .cassette-wrap {
    order: 2;
    --cs: .9;
    margin: -14px 0 0 -6px;
  }
}

.cassette {
  position: relative;
  flex: none;
  width: 290px;
  height: 184px;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #22345d 0 58%, #c2ae8c 58%);
  border: 2px solid #070d1a;
  box-shadow: 0 16px 26px rgba(0, 0, 0, .5);
  transform: rotate(-5deg);
}

.cassette__label {
  background: #f3e8d6;
  color: var(--accent-deep);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  transform: rotate(-1deg);
  background-image: repeating-linear-gradient(transparent 0 24px, rgba(217, 195, 160, .25) 24px 25px);
}

.cassette__window {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 72%;
  height: 64px;
  border-radius: 34px;
  background: #0a1222;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  border: 2px solid #1a2744;
}

.reel {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #0a1222 0 8px, transparent 8px), repeating-conic-gradient(#e8d8bc 0 20deg, #0a1222 20deg 60deg);
  animation: spin 2.4s linear infinite;
  animation-play-state: paused;
}

.is-playing .reel {
  animation-play-state: running;
}

.receipt {
  flex: none;
  width: 200px;
  padding: 20px 16px 22px;
  background: var(--paper);
  color: #2b2b2b;
  font-size: .72rem;
  text-align: left;
  transform: rotate(3deg);
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45));
  --z: 7px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--z) * 2) 51% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--z) * 2) 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--z) * 2) 51% repeat-x;
}

@media (min-width: 900px) {
  .receipt {
    width: 250px;
    font-size: .82rem;
    padding: 22px 20px 26px;
  }
}

.receipt h4 {
  font-weight: 400;
  text-align: center;
  font-size: 1.05rem;
}

.receipt .r-sub {
  text-align: center;
  margin-bottom: 10px;
}

.receipt hr {
  border: 0;
  border-top: 1px dashed #777;
  margin: 10px 0;
}

.receipt .r-date {
  display: flex;
  justify-content: space-between;
}

.receipt ol {
  list-style: none;
}

.receipt li {
  margin: 4px 0;
}

.receipt .r-thanks {
  text-align: center;
  margin-top: 12px;
  letter-spacing: .1em;
}

.receipt .r-bars {
  height: 42px;
  margin-top: 8px;
  background: repeating-linear-gradient(90deg, #222 0 2px, transparent 2px 4px, #222 4px 5px, transparent 5px 9px, #222 9px 12px, transparent 12px 14px, #222 14px 15px, transparent 15px 18px);
}


.receipt .r-bars {
  height: 30px;
}

/* ---------- letter ---------- */
.envelope {
  position: relative;
  width: min(300px, 74vw);
  transition: transform .5s cubic-bezier(.3, .7, .25, 1);
}

.envelope img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45));
}

.envelope__hint {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  font-family: var(--f-hand);
  font-size: 1.7rem;
  color: var(--accent-2);
  white-space: nowrap;
  animation: pulse 2s ease-in-out infinite;
}

.envelope:hover {
  transform: rotate(-2deg) scale(1.02);
}

.envelope.is-hidden {
  display: none;
}

.letter-card {
  position: relative;
  text-align: left;
  color: var(--ink);
  width: min(500px, 100%);
  margin: 0 auto;
  padding: 24px 26px 22px;
  background: #f8f0e0 repeating-linear-gradient(transparent 0 27px, rgba(217, 195, 160, .16) 27px 28px);
  border-radius: 4px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .4);
  animation: letterIn .7s cubic-bezier(.3, .7, .25, 1) both;
}

.letter-card[hidden] {
  display: none;
}

@keyframes letterIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(.9) rotate(-2deg);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.letter-card__date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.letter-card__date:empty {
  display: none;
}

.letter-card__body p {
  font-size: .88rem;
  line-height: 28px;
  margin-bottom: 28px;
}

.letter-card__body p:first-child {
  font-family: var(--f-hand);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-deep);
  line-height: 28px;
}

.letter-card__body p:last-child {
  font-family: var(--f-hand);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 0;
}

.tw-rest {
  visibility: hidden;
}

.tw-caret {
  display: inline-block;
  position: relative;
  width: 0;
}

.tw-caret::after {
  content: "";
  position: absolute;
  left: 1px;
  top: .1em;
  width: 2px;
  height: 1em;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.letter-card__close {
  display: block;
  margin: 16px 0 0 auto;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7a3b36;
}

/* ---------- split (wishes + camera) ---------- */
.split {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.split__img {
  display: none;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
    padding: 0 30px;
  }

  .split__l {
    justify-self: end;
    max-width: 400px;
  }

  .split__l .sub {
    max-width: 320px;
  }

  .split__img {
    display: block;
    width: 230px;
    margin-top: 10px;
  }

  .split .tracklist,
  .split .film {
    justify-self: start;
  }
}

.split .head .sub {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .split .head .sub {
    margin-left: 0;
  }
}

.tracklist {
  width: min(560px, 100%);
  text-align: left;
  border-top: 1px solid var(--line);
}

.track {
  border-bottom: 1px solid var(--line);
}

.track__row {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 14px 4px;
  text-align: left;
}

.track__no {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent-soft);
}

.track__title {
  font-family: var(--f-display);
  font-size: 1.12rem;
  line-height: 1.25;
}

.track__sub {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  color: rgba(246, 238, 223, .4);
  margin-top: 3px;
}

.track__chev {
  width: 16px;
  height: 16px;
  stroke: var(--accent-2);
  fill: none;
  stroke-width: 2.2;
  transition: transform .3s;
}

.track.is-open .track__chev {
  transform: rotate(180deg);
}

.track__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}

.track.is-open .track__panel {
  grid-template-rows: 1fr;
}

.track__panel>div {
  overflow: hidden;
}

.track__note {
  padding: 0 4px 16px 40px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--blush);
}

/* ---------- camera roll 2 × 3 ---------- */
.film {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
  width: min(350px, 100%);
  margin: 0 auto;
}

.frame {
  position: relative;
  cursor: pointer;
}

.frame:nth-child(odd) {
  transform: rotate(-1.6deg);
}

.frame:nth-child(even) {
  transform: rotate(1.4deg) translateY(6px);
}

.frame .stamp {
  --hole: 4px;
  --gap: 13px;
  --pad: 10px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45));
  transition: transform .25s;
}

.frame:hover .stamp {
  transform: scale(1.03);
}

.frame .stamp__in {
  aspect-ratio: 1 / 1;
  border-radius: 7px;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame .patch {
  right: -18px;
  top: -16px;
  width: 56px;
  height: 52px;
}

/* ---------- mini player ---------- */
.mini {
  position: fixed;
  z-index: 30;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: 40px;
  background: rgba(11, 20, 38, .88);
  border: 1px solid rgba(232, 216, 188, .55);
  backdrop-filter: blur(8px);
  transform: translateY(140%);
  transition: transform .6s cubic-bezier(.3, .7, .25, 1) .4s;
}

.mini.is-shown {
  transform: none;
}

.mini__disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 30%, #070d1a 31%), repeating-radial-gradient(circle, #070d1a 0 2px, #14213d 2px 4px);
  animation: spin 5s linear infinite;
  animation-play-state: paused;
}

.is-playing .mini__disc {
  animation-play-state: running;
}

.mini__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  max-width: 150px;
}

.mini__meta b {
  font-weight: 400;
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini__meta small {
  font-size: .68rem;
  opacity: .65;
}

.mini__btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}

.mini__btn svg {
  width: 18px;
  height: 18px;
  fill: #0f1a30;
}

@media (max-width: 400px) {
  .mini__meta {
    display: none;
  }
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  width: min(330px, 88vw);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--plum);
  border: 1px solid var(--accent);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
  transition: .35s;
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- modal foto ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal__back {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, .82);
}

.modal__card {
  position: relative;
  width: min(420px, 92vw);
  background: #faf5ea;
  padding: 14px 14px 20px;
  color: var(--accent-deep);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  transform: rotate(-1.5deg);
}

.modal__card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.modal__card figcaption {
  font-family: var(--f-hand);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.2;
  margin-top: 14px;
}

.modal__x {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0f1a30;
  font-size: 1.5rem;
  line-height: 1;
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .polaroid {
    transform: none;
  }
}

/* ============================================================
   SECRET GIFT — tombol di menu, game, achievements, award, voucher, did you know
   ============================================================ */
.gift {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 12px 22px;
  border-radius: 40px;
  border: 1.5px dashed var(--accent-2);
  background: rgba(217, 195, 160, .08);
  animation: giftGlow 2.6s ease-in-out infinite;
  transition: background .25s, color .25s, transform .25s;
}

.gift svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gift:hover,
.gift:focus-visible {
  background: var(--accent);
  color: #0f1a30;
  transform: translateY(-2px);
}

@keyframes giftGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 195, 160, 0);
  }

  50% {
    box-shadow: 0 0 22px 2px rgba(217, 195, 160, .35);
  }
}

.btnrow {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.btnrow [hidden] {
  display: none;
}

.pill--ghost {
  background: transparent;
  border: 1.5px solid var(--accent-2);
  box-shadow: none;
  color: var(--accent-soft);
}

/* ---------- game boy ---------- */
.split--game .head {
  margin-bottom: 20px;
}

@media (max-width: 899px) {
  #gameSub {
    display: none;
  }

  .split--game .head {
    margin-bottom: 14px;
  }
}

@media (min-width: 900px) {
  .split--game .split__l {
    max-width: 380px;
  }

  .split--game .gb {
    justify-self: start;
  }
}

.gb {
  --cell: 30px;
  --dark: #14213d;
  --lcd: #e4d5b6;
  --lcd2: #a89270;
  --brick: #a8574f;
  position: relative;
  width: max-content;
  margin: 0 auto;
  padding: 16px 18px 20px;
  text-align: left;
  background: linear-gradient(160deg, #3a4f7a 0%, #24365e 100%);
  border: 2px solid #1b2a4a;
  border-radius: 14px 14px 56px 14px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -4px 0 rgba(0, 0, 0, .18);
}

.gb__bezel {
  background: var(--dark);
  border-radius: 8px 8px 30px 8px;
  padding: 8px 14px 14px;
}

.gb__led {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 7px;
  letter-spacing: .22em;
  color: var(--lcd2);
  margin-bottom: 6px;
}

.gb__led i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brick);
  box-shadow: 0 0 6px 1px rgba(168, 87, 79, .8);
}

.gb__screen {
  position: relative;
  width: calc(9 * var(--cell));
  overflow: hidden;
  border-radius: 3px;
  background: var(--lcd);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.gb__hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: var(--dark);
  color: var(--lcd);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  border-bottom: 1px solid #2c4070;
}

.gb__sky {
  position: relative;
  height: 46px;
  overflow: hidden;
  background: #d9c9a6;
}

.gb__sky::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f0e4cd;
  box-shadow: 0 0 0 2px #c2ae8c;
}

.gb__sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15px;
  background: radial-gradient(circle at 18% 100%, var(--lcd2) 0 13px, transparent 14px), radial-gradient(circle at 58% 100%, #8d7b5c 0 17px, transparent 18px), radial-gradient(circle at 92% 100%, var(--lcd2) 0 12px, transparent 13px);
}

.cloud {
  position: absolute;
  left: -50px;
  width: 30px;
  height: 9px;
  border-radius: 9px;
  background: #f6eedf;
  animation: drift 28s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: #f6eedf;
}

.cloud::before {
  left: 5px;
  width: 13px;
  height: 11px;
}

.cloud::after {
  left: 14px;
  width: 10px;
  height: 9px;
}

.cloud.c1 {
  top: 8px;
}

.cloud.c2 {
  top: 22px;
  animation-duration: 40s;
  animation-delay: -14s;
  transform: scale(.8);
}

.cloud.c3 {
  top: 14px;
  animation-duration: 54s;
  animation-delay: -32s;
  transform: scale(.65);
}

@keyframes drift {
  to {
    left: 290px;
  }
}

.bird {
  position: absolute;
  left: -20px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 10px;
  color: var(--dark);
  animation: drift 17s linear infinite, bob .6s ease-in-out infinite alternate;
}

.bird.b1 {
  top: 12px;
}

.bird.b2 {
  top: 20px;
  animation-delay: -6s, 0s;
  font-size: 8px;
}

@keyframes bob {
  to {
    margin-top: 3px;
  }
}

.plane {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: -70px;
  width: 58px;
  height: 26px;
  padding: 0;
  animation: fly 11s linear infinite;
  cursor: pointer;
}

.plane svg {
  width: 100%;
  height: 100%;
  fill: var(--dark);
  display: block;
}

.plane .trail {
  stroke: var(--dark);
  stroke-width: 1.6;
  stroke-dasharray: 3 3;
  fill: none;
}

.plane::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.plane.is-hit svg {
  animation: tumble .9s ease;
}

@keyframes fly {
  0% {
    left: -70px;
    top: 14px;
  }

  50% {
    top: 6px;
  }

  100% {
    left: 280px;
    top: 14px;
  }
}

@keyframes tumble {
  to {
    transform: rotate(360deg);
  }
}

.gb__maze {
  position: relative;
  --cols: 9;
  --rows: 11;
  width: calc(var(--cols) * var(--cell));
  height: calc(var(--rows) * var(--cell));
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  background: var(--lcd);
}

.cell {
  position: relative;
  display: block;
  width: var(--cell);
  height: var(--cell);
  box-sizing: border-box;
}

.cell.wn {
  border-top: 3px solid #1b2a4a;
}

.cell.ww {
  border-left: 3px solid #1b2a4a;
}

.cell.ws {
  border-bottom: 3px solid #1b2a4a;
}

.cell.we {
  border-right: 3px solid #1b2a4a;
}

.cell.d1::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--lcd2);
  box-shadow: 7px 4px 0 var(--lcd2), -2px 8px 0 var(--lcd2);
}

.cell.d2::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brick);
  box-shadow: -4px 0 0 #e8d8bc, 4px 0 0 #e8d8bc, 0 -4px 0 #e8d8bc, 0 4px 0 #e8d8bc;
}

.cell.d3::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 11px;
  height: 11px;
  background: linear-gradient(var(--lcd2), var(--lcd2)) center / 2px 11px no-repeat, linear-gradient(var(--lcd2), var(--lcd2)) center / 11px 2px no-repeat;
}

.ent {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cell);
  height: var(--cell);
  transform: translate(calc(var(--x) * var(--cell)), calc(var(--y) * var(--cell)));
  pointer-events: none;
}

.ent>svg {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
}

.boy {
  z-index: 6;
  transition: transform .12s linear;
}

.boy>svg {
  transition: transform .1s;
}

.boy.face-l>svg {
  transform: scaleX(-1);
}

.boy.bump {
  animation: bump .18s;
}

@keyframes bump {
  25% {
    margin-left: -3px;
  }

  75% {
    margin-left: 3px;
  }
}

.carry {
  position: absolute;
  right: -7px;
  top: 3px;
  width: 17px;
  height: 17px;
  display: none;
  animation: bob2 .7s ease-in-out infinite alternate;
}

.has-bouquet .carry {
  display: block;
}

.carry svg {
  width: 100%;
  height: 100%;
}

@keyframes bob2 {
  to {
    transform: translateY(-2px) rotate(8deg);
  }
}

.house {
  z-index: 2;
  width: calc(var(--cell) * 1.25);
  height: calc(var(--cell) * 1.55);
  margin: calc(var(--cell) * -.6) 0 0 calc(var(--cell) * -.12);
}

.house>svg {
  padding: 0;
}

.girl {
  z-index: 3;
}

.girl>svg {
  width: 78%;
  height: 78%;
  margin: 22% 0 0 20%;
  padding: 0;
  transition: transform .4s;
}

.win .girl>svg {
  transform: translateX(14%);
}

.win .boy>svg {
  transform: translateX(-34%);
}

.item>svg {
  padding: 6px;
  animation: pulse2 1s ease-in-out infinite alternate;
}

.item.flower>svg {
  padding: 3px;
  animation-name: bob2;
}

@keyframes pulse2 {
  to {
    transform: scale(1.18);
  }
}

.item.is-got {
  animation: got .35s forwards;
}

@keyframes got {
  to {
    transform: translate(calc(var(--x) * var(--cell)), calc(var(--y) * var(--cell) - 14px)) scale(1.5);
    opacity: 0;
  }
}

.pop {
  position: absolute;
  z-index: 8;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
  color: var(--brick);
  pointer-events: none;
  animation: rise 1.1s ease-out forwards;
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-26px);
  }
}

.burst {
  position: absolute;
  z-index: 10;
  bottom: -22px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  animation: burstUp 2.4s ease-in forwards;
}

.burst svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes burstUp {
  to {
    transform: translateY(-420px) rotate(40deg);
    opacity: 0;
  }
}

.gb__over {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background: rgba(11, 20, 38, .8);
  color: var(--text);
  animation: pageIn .5s both;
}

.gb__over[hidden] {
  display: none;
}

.gb__over-t {
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.gb__brand {
  margin: 12px 0 2px 6px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .03em;
  color: var(--dark);
  line-height: 1;
}

.gb__brand i {
  font-style: italic;
  color: #7a3b36;
  font-family: var(--f-display);
}

.gb__brand small {
  display: block;
  margin-top: 3px;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(43, 26, 16, .65);
}

.gb__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px 0 4px;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 38px);
  grid-template-rows: repeat(3, 38px);
  touch-action: none;
}

.dpad span {
  grid-area: 2 / 2;
  background: var(--dark);
}

.dpad button {
  display: grid;
  place-items: center;
  background: var(--dark);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.dpad button:active {
  background: #000;
}

.dpad button[data-d="up"] {
  grid-area: 1 / 2;
  border-radius: 6px 6px 0 0;
}

.dpad button[data-d="left"] {
  grid-area: 2 / 1;
  border-radius: 6px 0 0 6px;
}

.dpad button[data-d="right"] {
  grid-area: 2 / 3;
  border-radius: 0 6px 6px 0;
}

.dpad button[data-d="down"] {
  grid-area: 3 / 2;
  border-radius: 0 0 6px 6px;
}

.dpad i {
  display: block;
  width: 13px;
  height: 12px;
  background: var(--lcd2);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  pointer-events: none;
}

.dpad [data-d="right"] i {
  transform: rotate(90deg);
}

.dpad [data-d="down"] i {
  transform: rotate(180deg);
}

.dpad [data-d="left"] i {
  transform: rotate(-90deg);
}

.ab {
  display: flex;
  gap: 14px;
  transform: rotate(-24deg);
  padding-right: 4px;
}

.ab button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #5c3340;
  color: #e8d8bc;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 #33202b, inset 0 2px 0 rgba(255, 255, 255, .2);
  -webkit-tap-highlight-color: transparent;
}

.ab button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #33202b;
}

.ab__a {
  margin-top: -2px;
}

.ab__b {
  margin-top: 12px;
}

.gb__pills {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 7px;
  letter-spacing: .22em;
  color: rgba(43, 26, 16, .7);
}

/* ---------- achievements ---------- */
.ach {
  width: min(440px, 100%);
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--line);
}

.ach__row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  animation: achIn .55s cubic-bezier(.22, .61, .25, 1) both;
  animation-delay: calc(var(--i) * .14s + .15s);
}

@keyframes achIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.ach__ic {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #0f1a30;
  box-shadow: 0 0 18px rgba(217, 195, 160, .35);
}

.ach__ic svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ach__t b {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.2;
}

.ach__t small {
  display: block;
  margin-top: 2px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .03em;
  color: rgba(246, 238, 223, .55);
}

.ach__st {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.ach__row.is-off {
  opacity: .5;
}

.ach__row.is-off .ach__ic {
  background: transparent;
  border: 1.5px dashed var(--accent-2);
  color: var(--accent-soft);
  box-shadow: none;
}

.ach__row.is-off .ach__st {
  color: rgba(246, 238, 223, .5);
}

/* ---------- award + vouchers ---------- */
.rewards {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(420px, 100%);
  margin: 0 auto;
}

.award {
  position: relative;
  width: 100%;
  color: #1b2a4a;
  text-align: center;
  padding: 14px 16px 10px;
  background: linear-gradient(170deg, #f3e8d6, #e4d5b6);
  border: 2px solid #1b2a4a;
  border-radius: 6px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .5);
  transform: rotate(-1.2deg);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
}

.award::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed var(--accent-deep);
  border-radius: 3px;
  pointer-events: none;
}

.award__medal {
  width: 42px;
  height: 50px;
  display: block;
}

.award__body {
  text-align: left;
}

.award__k,
.voucher__k {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.award__t {
  font-family: var(--f-poster);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: .06em;
  line-height: 1.05;
  margin: 2px 0;
}

.award__s {
  font-family: var(--f-display);
  font-style: italic;
  font-size: .92rem;
  color: var(--accent-deep);
  line-height: 1.2;
}

.award__to {
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .05em;
}

.award em {
  color: var(--accent-deep);
  font-size: 1.05rem;
}

.award__f {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
}

.vouchers {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.voucher {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 118px;
  padding: 12px 15px 11px;
  text-align: left;
  color: #1b2a4a;
  background: var(--kraft);
  transform: rotate(var(--r, 0deg));
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .45));
  -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 8px at 0 50%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 96%, #000) right / 51% 100% no-repeat;
}

.voucher::before {
  content: "";
  position: absolute;
  inset: 6px 10px;
  border: 1.5px dashed rgba(27, 42, 74, .42);
  pointer-events: none;
}

.voucher__k b {
  font-weight: 700;
}

.voucher {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), filter .25s;
}

@media (hover: hover) {
  .voucher:hover {
    transform: rotate(0deg) translateY(-4px) scale(1.03);
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5));
  }
}

.voucher:active {
  transform: rotate(var(--r, 0deg)) scale(.95);
}

.voucher.is-wiggle {
  animation: vWiggle .55s ease both;
}

@keyframes vWiggle {
  0% {
    transform: rotate(var(--r, 0deg)) scale(.95);
  }

  20% {
    transform: rotate(calc(var(--r, 0deg) + 4deg)) scale(1.04);
  }

  40% {
    transform: rotate(calc(var(--r, 0deg) - 3.5deg)) scale(1.03);
  }

  60% {
    transform: rotate(calc(var(--r, 0deg) + 2.5deg)) scale(1.02);
  }

  80% {
    transform: rotate(calc(var(--r, 0deg) - 1.5deg)) scale(1.01);
  }

  100% {
    transform: rotate(var(--r, 0deg)) scale(1);
  }
}

.voucher__claim {
  display: block;
  margin-top: 7px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  opacity: .75;
  animation: pulse 2s ease-in-out infinite;
}

.voucher__stamp {
  position: absolute;
  right: 16px;
  top: 50%;
  padding: 3px 9px;
  border: 2px solid #a8574f;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #a8574f;
  background: rgba(243, 232, 214, .6);
  opacity: 0;
  transform: translateY(-50%) rotate(-12deg) scale(2.2);
  pointer-events: none;
}

.voucher.is-claimed .voucher__stamp {
  opacity: .92;
  transform: translateY(-50%) rotate(-12deg) scale(1);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s;
}

.voucher.is-claimed .voucher__claim {
  animation: none;
  opacity: .55;
}

.love-p {
  position: fixed;
  z-index: 90;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}

.love-p svg {
  display: block;
  width: 100%;
  height: 100%;
}

.voucher__t {
  font-family: var(--f-poster);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: .04em;
  line-height: 1.12;
  margin: 5px 0 5px;
  text-transform: uppercase;
}

.voucher__d {
  font-size: .45rem;
  line-height: 1.4;
}

.vouchers[data-n="1"] {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .rewards {
    grid-template-columns: 280px minmax(0, 500px);
    width: min(840px, 100%);
    gap: 56px;
    align-items: center;
  }

  .award {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 20px 14px;
    transform: rotate(-2deg);
  }

  .award__medal {
    width: 52px;
    height: 62px;
    margin: 0 auto 6px;
  }

  .award__body {
    text-align: center;
  }

  .award__t {
    font-size: 2rem;
  }

  .award__s {
    font-size: 1rem;
  }

  .award__f {
    margin-top: 12px;
  }

  .voucher {
    min-height: 140px;
    padding: 16px 20px 14px;
  }

  .voucher__t {
    font-size: 1.3rem;
  }

  .voucher__d {
    font-size: .8rem;
  }
}

/* ---------- did you know (kartu catatan + like) ---------- */
.dyk-title {
  position: relative;
  margin-bottom: 22px;
  font-family: "Archivo Black", var(--f-poster), "Impact", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 15vw, 4.4rem);
  line-height: .92;
  letter-spacing: .01em;
}

.dyk-title span {
  display: block;
  color: var(--text);
}

.dyk-title .dyk-title__k {
  color: var(--accent-2);
}

.dyk-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(-4deg);
  padding: 4px 12px;
  border-radius: 4px;
  background: #5c3340;
  color: #fff;
  font-style: normal;
  font-family: "Poppins", var(--f-body), sans-serif;
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .04em;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.page.is-active .dyk-title {
  animation: headFade 1.1s cubic-bezier(.22, .61, .25, 1) .35s both;
}

.dyk {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 22px 24px 14px;
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #1b2a4a;
  background: #f3e8d6;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .5);
}

.dyk__t {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(27, 42, 74, .25);
  text-align: center;
  font-family: "Archivo Black", var(--f-poster), "Impact", sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #14213d;
}

.dyk__text {
  min-height: 6.6em;
  padding: 16px 0 20px;
  font-family: "Poppins", var(--f-body), sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: #1b2a4a;
}

.dyk__t.is-in,
.dyk__text.is-in {
  animation: fadeUp .6s cubic-bezier(.22, .61, .25, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.dyk__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(27, 42, 74, .25);
}

.dyk__like {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.dyk__like svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #5c3340;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill .2s, stroke .2s;
}

.dyk__like.is-on svg {
  fill: #a8574f;
  stroke: #a8574f;
}

.dyk__like.is-pop svg {
  animation: likePop .45s cubic-bezier(.3, 1.8, .5, 1);
}

@keyframes likePop {
  0% {
    transform: scale(.6);
  }

  60% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.dyk__tag {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: rgba(27, 42, 74, .4);
  stroke-width: 1.6;
  stroke-linejoin: round;
  transform: rotate(8deg);
}

.dyk__tag circle {
  fill: rgba(27, 42, 74, .4);
  stroke: none;
}

.dyk__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(420px, 100%);
  margin: 24px auto 0;
  padding: 0 22px;
}

.dyk__arrow {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3e8d6;
  box-shadow: 0 5px 0 #5c3340, 0 12px 18px rgba(0, 0, 0, .4);
  transition: transform .12s, box-shadow .12s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}

.dyk__arrow svg {
  width: 20px;
  height: 20px;
  fill: #14213d;
}

.dyk__arrow:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5c3340, 0 6px 10px rgba(0, 0, 0, .4);
}

.dyk__arrow:disabled {
  opacity: .35;
  cursor: default;
}

.dyk__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dyk__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(246, 238, 223, .35);
  transition: background .3s, transform .3s;
}

.dyk__dots i.on {
  background: #a8574f;
  box-shadow: 0 0 0 2px var(--text);
  transform: scale(1.3);
}

/* ============================================================
   REVISI: warna header, nama gerbang, bg mobile, flip cards
   ============================================================ */
:root {
  --em-dark: #c9a05a;
  /* warna <em> di header (lebih gelap) */
  --name-luna: #c9a05a;
  /* warna "Luna" di gerbang */
  --name-faiz: #b9806a;
  /* warna "Faiz" di gerbang */
}

.h em {
  color: var(--em-dark);
}

.gate__title #fromName {
  color: var(--name-luna);
}

.gate__title #toName {
  color: var(--name-faiz);
}

/* mobile: segitiga cream atas & bawah digeser sedikit keluar */
@media (max-width: 600px) {
  .bg i:nth-child(1) {
    top: -11%;
    left: -28%;
  }

  .bg i:nth-child(2) {
    right: -33%;
    bottom: -13%;
  }
}

/* ---------- 6 things: flip cards ---------- */
.flip {
  position: relative;
  aspect-ratio: 1 / 1.25;
  perspective: 900px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flip:nth-child(odd) {
  transform: rotate(-1.4deg);
}

.flip:nth-child(even) {
  transform: rotate(1.2deg) translateY(5px);
}

.flip__in {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.4, .2, .2, 1);
}

.flip.is-flipped .flip__in {
  transform: rotateY(180deg);
}

.flip__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 14px rgba(0, 0, 0, .4);
}

.flip__front {
  background: #fffaf0;
  color: #3f5a3a;
  outline: 1px dashed rgba(107, 74, 58, .35);
  outline-offset: -7px;
}

.flip__back {
  background: #566992;
  color: var(--blush);
  border: 1.5px dashed var(--accent);
  transform: rotateY(180deg);
}

.flip__no {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  opacity: .7;
}

.flip__icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  line-height: 1;
  background: radial-gradient(circle, rgba(246, 196, 69, .35) 0%, rgba(246, 196, 69, 0) 68%);
}

.flip__icon img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.flip__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: .92rem;
  line-height: 1.2;
}

.flip__back {
  padding: 10px 9px;
  overflow-y: auto;
  scrollbar-width: none;
}

.flip__back::-webkit-scrollbar {
  display: none;
}

.flip__cap {
  font-family: var(--f-display);
  font-style: italic;
  font-size: .72rem;
  line-height: 1.42;
  margin: auto 0;
}

@media (min-width: 900px) {
  .flip {
    aspect-ratio: 1 / 1.15;
  }

  .flip__cap {
    font-size: .8rem;
  }

  .film {
    grid-template-columns: repeat(3, 1fr);
    width: min(660px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flip__in {
    transition-duration: .01s;
  }
}


/* ---------- 6 things: layout full layar (judul di atas, kartu besar) ---------- */
.things {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.things .head {
  margin-bottom: 18px;
}

.things .h {
  font-size: clamp(1.6rem, 5.2vw, 2.6rem);
}

.things .head .sub {
  max-width: none;
  margin: 8px auto 0;
}

.things .film {
  width: 100%;
  gap: 12px;
}

.things .flip {
  aspect-ratio: 1 / 1.15;
}

.things .flip__icon {
  width: 104px;
  height: 104px;
}

.things .flip__icon img {
  width: 100px;
  height: 100px;
}

.things .flip__cap {
  font-size: .74rem;
}

@media (max-width: 899px) {
  #camera.page {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 900px) {
  .things .film {
    width: min(940px, 100%);
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .things .flip {
    aspect-ratio: 1.1 / 1;
  }

  .things .flip__icon {
    width: 130px;
    height: 130px;
  }

  .things .flip__icon img {
    width: 124px;
    height: 124px;
  }

  .things .flip__title {
    font-size: 1.15rem;
  }

  .things .flip__cap {
    font-size: .92rem;
  }

  .things .flip__back {
    padding: 18px 20px;
  }
}