@import url('../event-kit.css');
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Permanent+Marker&display=swap');

/* =========================================================================
   Ulang Tahun Pop
   Arah: scrapbook remaja. Tinta marun di kertas hangat, coretan tangan
   (pita, topi pesta, kue, bola disko), selotip washi merah muda (motif
   identitas), bingkai foto bergerigi, strip kalender dan strip photobooth.
   Dial: ENERGY 3 / RHYTHM 3 / MOTION 2: tiap section komposisinya beda
   (angka besar miring, kalender tiga hari, dinding ucapan marun penuh, strip foto).
   Huruf: Permanent Marker (judul, seperti ditulis spidol di buku tempel),
   Patrick Hand (isi, tulisan tangan yang tetap terbaca di 17px).
   Kontras: marun #8E1B2A di kertas #F6F1EE 8.3:1; putih di marun 9.3:1.
   Merah muda (--secondary) hanya untuk selotip/bayangan, tidak untuk teks.
   ========================================================================= */

.ut {
    --ut-ink: var(--primary);
    --ut-tape: color-mix(in srgb, var(--secondary) 75%, transparent);
    --ut-display: 'Permanent Marker', cursive;
    font-size: 17px;
    line-height: 1.55;
}
.ut .ev-panel { background: var(--bg-color); }
.ut-page, .ut-gate { background: var(--bg-color); color: var(--text); }
.ut .ev-btn, .ut-btn {
    border-radius: 4px; background: var(--ut-ink); color: #fff; font-family: var(--boho-font-body), cursive; font-size: 18px;
    box-shadow: 3px 3px 0 var(--boho-dark);
}
.ut .ut-display, .ut .ev-title { font-family: var(--ut-display); font-weight: 400; font-size: clamp(32px, 10cqw, 44px); line-height: 1.1; color: var(--ut-ink); text-transform: uppercase; }
.ut-doodle { position: absolute; color: var(--ut-ink); pointer-events: none; }

/* Coretan tersebar (posisi tetap supaya komposisi terasa ditempel tangan) */
.ut-d1 { width: 46px; top: 5%; left: 7%; transform: rotate(-18deg); }
.ut-d2 { width: 40px; top: 62%; right: 6%; transform: rotate(14deg); }
.ut-d3 { width: 44px; bottom: 16%; left: 5%; transform: rotate(8deg); }
.ut-d4 { width: 22px; top: 12%; right: 16%; }
.ut-d5 { width: 18px; top: 46%; left: 8%; }
.ut-d6 { width: 24px; bottom: 9%; right: 12%; }
.ut-d7 { width: 22px; top: 36px; right: 30px; }
.ut-d8 { width: 44px; top: 30px; left: 24px; transform: rotate(-12deg); }

/* ---------- Bingkai bergerigi + selotip ---------- */
.ut-scallop { position: relative; aspect-ratio: 300 / 360; }
.ut-scallop-line { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ut-ink); z-index: 2; pointer-events: none; }
.ut-scallop-photo { position: absolute !important; inset: 6.5% 7.5%; z-index: 1; border-radius: 2px; background: color-mix(in srgb, var(--secondary) 30%, var(--bg-color)); }
.ut-scallop-photo .ev-photo-clip img { filter: saturate(.92); }
.ut-scallop::before { content: ''; position: absolute; z-index: 3; top: -12px; left: 50%; width: 42%; height: 26px; transform: translateX(-50%) rotate(-4deg); background: var(--ut-tape); }
.ut-hat { position: absolute; z-index: 4; width: 28%; top: -16%; left: -6%; transform: rotate(-22deg); color: var(--ut-ink); }

/* ---------- Sampul ---------- */
/* Sampul seperti referensi: judul spidol rata kiri di atas yang muncul huruf demi
   huruf, foto bergerigi bertopi pesta di tengah, tombol kecil di bawah. */
.ut-gate { text-align: center; }
.ut-gate-copy { position: relative; z-index: 2; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 36px 30px 44px; }
.ut-eyebrow { align-self: flex-start; font-size: 17px; }
.ut .ut-headline { align-self: stretch; font-family: var(--ut-display); font-weight: 400; font-size: clamp(38px, 12cqw, 54px); line-height: 1.12; letter-spacing: .03em; color: var(--ut-ink); text-align: left; text-transform: uppercase; overflow-wrap: anywhere; }
.ut-headline-2 { display: block; }
.ut-scallop-gate { width: min(54%, 210px); margin: 22px 0 6px; transform: rotate(-3deg); }
.ut-guest { margin: 6px 0 10px; font-size: 16px; }
.ut-guest-name { font-family: var(--ut-display); font-size: 24px; color: var(--ut-ink); }

/* ---------- Pembuka: angka umur raksasa ---------- */
.ut-hero .ev-inner { padding-top: 40px; }
.ut .ut-hero-kicker { font-size: clamp(26px, 8cqw, 34px); letter-spacing: .04em; }
.ut-hero-art { position: relative; height: clamp(450px, 126cqw, 540px); }
.ut-hero-art.no-age { height: clamp(360px, 98cqw, 420px); }
.ut-age { position: absolute; left: 50%; top: -6%; margin: 0; font-family: var(--ut-display); font-size: clamp(260px, 82cqw, 350px); line-height: 1; letter-spacing: -.04em; color: var(--ut-ink); text-shadow: 6px 6px 0 var(--secondary); transform: translateX(-50%) rotate(-4deg); white-space: nowrap; }
.ut-scallop-hero { position: absolute; left: 50%; top: 36%; width: 46%; transform: translateX(-50%) rotate(3deg); z-index: 2; }
.no-age .ut-scallop-hero { top: 2%; width: 58%; }
/* Kue coretan diisi warna kertas supaya menutupi bagian bawah foto (foto seolah di dalam kue). */
.ut-hero .ut-cake { width: 66%; left: 17%; bottom: 0; z-index: 3; fill: var(--bg-color); }
.ut .ut-name { margin-top: 20px !important; font-family: var(--boho-font-body), cursive; font-weight: 400; font-size: clamp(28px, 8.5cqw, 36px); line-height: 1.2; letter-spacing: .12em; color: var(--ut-ink); overflow-wrap: anywhere; }
.ut-squiggle { position: static; display: block; width: 120px; margin: 6px auto 0; }
.ut-note { max-width: 360px; margin: 14px auto 0 !important; white-space: pre-line; }
.ut-date-edit { margin-top: 16px; }
.ut-player { display: flex; align-items: center; gap: 12px; width: min(100%, 320px); margin: 26px auto 0; padding: 10px; border: 0; border-radius: 12px; background: #221619; color: #fff; text-align: left; }
.ut-player img { width: 54px; height: 54px; border-radius: 6px; object-fit: cover; }
.ut-player-text { flex: 1; display: grid; line-height: 1.3; }
.ut-player-text small { font-size: 14px; color: #E8DADC; }
.ut-player-bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: linear-gradient(#fff, #fff) left / var(--p, 0%) 100% no-repeat, rgba(255, 255, 255, .28); }
.ut-player-hint { margin-top: 8px !important; font-size: 14px; color: color-mix(in srgb, var(--text) 80%, transparent); }
.ut-player-state::after { content: 'Ketuk untuk memutar'; }
.ut-player.is-playing .ut-player-state::after { content: 'Sedang diputar'; }
.ut-player-icon { width: 44px; height: 44px; border-radius: 50%; background: #fff; position: relative; flex: none; }
.ut-player-icon::before { content: ''; position: absolute; left: 17px; top: 13px; border-left: 14px solid #221619; border-block: 9px solid transparent; }
.ut-player.is-playing .ut-player-icon::before { left: 15px; top: 14px; width: 5px; height: 16px; border: 0; background: #221619; box-shadow: 9px 0 0 #221619; }

/* ---------- Kutipan ---------- */
.ut-quote .ev-inner { padding-block: 40px 56px; }
.ut-quote-bow { position: static; display: block; width: 52px; margin: 0 auto 10px; }
.ut-quote-text { font-size: 19px; white-space: pre-line; }
.ut-quote-source { margin-top: 8px !important; font-size: 16px; }

/* ---------- Simpan tanggal: strip kalender tiga hari ---------- */
.ut-save { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ut-disco { position: static; width: 78px; flex: none; transform: rotate(-8deg); }
.ut .ut-save-title { max-width: 220px; text-align: left; transform: rotate(-3deg); }
.ut-calendar { display: grid; grid-template-columns: 1fr 1.25fr 1fr; margin: 30px -8px 0; border-block: 2.5px solid var(--ut-ink); transform: rotate(-3deg); }
.ut-cal-cell { padding: 8px 4px 16px; }
.ut-cal-cell + .ut-cal-cell { border-left: 2.5px solid var(--ut-ink); }
.ut-cal-dow { display: block; padding-bottom: 6px; border-bottom: 2.5px solid var(--ut-ink); font-size: 16px; }
.ut-cal-num { position: relative; display: inline-block; margin-top: 12px; font-family: var(--ut-display); font-size: 40px; line-height: 1; color: var(--ut-ink); }
.ut-cal-cell.is-day .ut-cal-num { font-size: 52px; }
.ut-ring { width: 240%; left: -70%; top: -6%; }
.ut-cal-note { display: block; margin-top: 6px; font-size: 15px; color: var(--ut-ink); transform: rotate(-4deg); }
.ut-cal-month { margin-top: 18px !important; font-size: 18px; }
.ut-event { margin-top: 26px; }
.ut-event + .ut-event { padding-top: 22px; border-top: 2px dashed color-mix(in srgb, var(--ut-ink) 40%, transparent); }
.ut .ut-event-title { font-family: var(--ut-display); font-weight: 400; font-size: 26px; color: var(--ut-ink); margin-bottom: 6px; }
.ut-event-place { margin-top: 8px !important; font-size: 19px; color: var(--ut-ink); }
.ut-event-addr { font-size: 16px; }
.ut-event .ev-btn { margin-top: 16px; }
.ut-link { display: inline-block; margin-top: 18px; padding: 10px 6px; color: var(--ut-ink); text-decoration: underline wavy; text-underline-offset: 5px; }

/* ---------- Kamu diundang: dinding ucapan marun ---------- */
.ut-invited { background: var(--ut-ink); color: #fff; }
.ut .ut-invited-title { color: #fff; font-size: clamp(34px, 11cqw, 46px); }
.ut-invited-note { margin-top: 8px !important; }
.ut-invited .ev-btn { background: #fff; color: var(--ut-ink); box-shadow: 3px 3px 0 var(--boho-dark); }
.ut-invited .ev-input { border: 0; border-radius: 4px; font-family: var(--boho-font-body), cursive; font-size: 17px; }
.ut-invited .ev-comment { background: rgba(255, 255, 255, .94); border-radius: 4px; transform: rotate(-.6deg); }
.ut-invited .ev-comment:nth-child(even) { transform: rotate(.6deg); }
.ut-invited .ev-empty { color: #fff; }
/* Pilihan kehadiran jadi ubin besar ✓ / × seperti referensi. */
.ut-invited .rsvp-radio-group { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
.ut-invited .rsvp-radio-option { position: relative; flex-direction: column; justify-content: center; gap: 4px !important; min-height: 92px; border: 1.5px solid rgba(255, 255, 255, .6) !important; border-radius: 6px !important; background: rgba(255, 255, 255, .1) !important; color: #fff !important; font-size: 16px !important; text-align: center; }
.ut-invited .rsvp-radio-option::before { font-size: 30px; line-height: 1; }
.ut-invited .rsvp-radio-option:nth-child(1)::before { content: '✓'; content: '✓' / ''; }
.ut-invited .rsvp-radio-option:nth-child(2)::before { content: '×'; content: '×' / ''; }
.ut-invited .rsvp-radio-option:nth-child(3) { grid-column: 1 / -1; min-height: 52px; flex-direction: row; }
.ut-invited .rsvp-radio-option input { position: absolute; opacity: 0; }
.ut-invited .rsvp-radio-option:has(input:checked) { background: #fff !important; color: var(--ut-ink) !important; font-weight: 700; }
.ut-invited .rsvp-radio-option:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.ut-invited .ev-rsvp-form :is(label, p) { color: #fff; }
.ut-invited .rsvp-fake-input, .ut-invited .rsvp-fake-textarea { color: #2b2b2b; }

/* ---------- Galeri: strip photobooth ---------- */
.ut-strips { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; margin-top: 26px; align-items: start; }
.ut-strip { position: relative; display: grid; gap: 7px; padding: 8px 8px 26px; background: var(--ut-ink); }
.ut-strip::before { content: ''; position: absolute; z-index: 2; top: -10px; left: 50%; width: 56%; height: 22px; transform: translateX(-50%) rotate(3deg); background: var(--ut-tape); }
.ut-strips .ut-strip:nth-child(odd) { transform: rotate(-3deg); }
.ut-strips .ut-strip:nth-child(even) { transform: rotate(3deg); margin-top: 26px; }
.ut-strip-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #2a1a1d; }
.ut-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Penutup ---------- */
.ut-closing .ev-inner { padding-bottom: 40px; }
.ut-closing-grid { display: grid; grid-template-columns: 1fr 34%; gap: 12px; align-items: center; text-align: left; }
.ut .ut-see { font-size: clamp(28px, 8.4cqw, 36px); }
.ut .ut-see-date { font-size: clamp(34px, 11cqw, 46px); }
.ut-countdown { display: flex; gap: 10px; margin-top: 10px; }
.ut .ut-countdown .ev-count strong { display: block; font-family: var(--ut-display); font-size: 30px; line-height: 1; color: var(--text); }
.ut .ut-countdown .ev-count span { font-size: 14px; }
.ut-strip-single { transform: rotate(5deg); }
.ut-closing-msg { margin-top: 28px !important; white-space: pre-line; }
.ut-sign { margin-top: 10px !important; font-family: var(--ut-display); font-size: 24px; color: var(--ut-ink); }
.ut-closing .ut-cake { position: static; display: block; width: 110px; margin: 18px auto 0; }

.ut .ev-gift-card { background: #fff; border: 2px solid var(--ut-ink); border-radius: 4px; }
.ut .ev-comment { font-size: 16px; }
.ut-gift { margin-top: 18px; }
.ut .ev-side-name { font-family: var(--ut-display); text-transform: uppercase; }
