/* Tema Pixel Arcade: game 8-bit. Layar arcade gelap bergaris CRT, bintang piksel, hati piksel berdetak,
   tombol PRESS START berkedip, kotak dialog RPG, bar nyawa, sudut kotak bertangga.
   Gambar: pixel/*.svg (digambar sendiri, piksel tajam). Warna utama = warna aksen pilihan pelanggan. */
:root{--page-bg:#07051a;--bg:#120e2e;--surface:#1d1747;--ink:#f4f0ff;--muted:#a59ccf;--accent:#ff4d7e;--accent-ink:#fff;--line:#3a3176;--radius:0;
--px-kuning:#ffd23f;--px-hijau:#3ce68a;--px-biru:#4fc3ff;
--px-hati:url(pixel/hati.svg);--px-bintang:url(pixel/bintang.svg);--px-koin:url(pixel/koin.svg);--px-panah:url(pixel/panah.svg);--px-cincin:url(pixel/cincin.svg);
/* sudut bertangga ala piksel */
--px-tangga:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px));
--px-bingkai:0 0 0 4px #fff,0 0 0 8px #000;
--px-langit:radial-gradient(2px 2px at 10% 20%,#fff 99%,transparent),radial-gradient(2px 2px at 80% 10%,#fff 99%,transparent),radial-gradient(2px 2px at 60% 40%,var(--px-kuning) 99%,transparent),radial-gradient(2px 2px at 30% 70%,#fff 99%,transparent),radial-gradient(2px 2px at 90% 80%,var(--px-biru) 99%,transparent),radial-gradient(2px 2px at 45% 90%,#fff 99%,transparent);
--cover-bg:var(--px-langit),linear-gradient(180deg,#120e2e,#2a1a5e)}
.theme-pixel{font-size:20px}
.theme-pixel .nk-main{position:relative;overflow:hidden;padding-bottom:90px;background:var(--px-langit) 0 0/300px 300px,var(--bg);image-rendering:pixelated}
.theme-pixel .nk-main::after,.theme-pixel .nk-cover::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:30;background:repeating-linear-gradient(0deg,rgba(0,0,0,.22) 0 1px,transparent 1px 3px)}
.theme-pixel .nk-section{padding:46px 22px}

/* Huruf */
.theme-pixel .nk-text{font-size:1.15rem;line-height:1.3;color:var(--ink)}
.theme-pixel .nk-script{font-weight:700;color:#fff;text-shadow:3px 3px 0 var(--accent),6px 6px 0 #000;letter-spacing:.02em;line-height:1.1}
.theme-pixel .nk-script span{color:var(--px-kuning);text-shadow:3px 3px 0 #000;opacity:1}
.theme-pixel .nk-eyebrow{font:400 .5rem/1.6 var(--font-display);letter-spacing:.1em;color:var(--px-kuning)}
.theme-pixel .nk-heading{font:400 .95rem/1.5 var(--font-display);color:#fff;text-shadow:3px 3px 0 var(--accent);margin-bottom:28px}
.theme-pixel .nk-heading::before{content:"";display:block;width:28px;height:28px;margin:0 auto 12px;background:var(--px-kuning);-webkit-mask:var(--px-bintang) center/contain no-repeat;mask:var(--px-bintang) center/contain no-repeat;animation:px-kedip 1s steps(2) infinite}

/* Tombol: kotak piksel */
.theme-pixel .nk-btn{border-radius:0;clip-path:var(--px-tangga);background:var(--accent);color:var(--accent-ink);font:400 .62rem/1.4 var(--font-display);letter-spacing:.06em;padding:14px 20px;box-shadow:inset -4px -4px 0 rgba(0,0,0,.35),inset 4px 4px 0 rgba(255,255,255,.3);text-transform:uppercase}
.theme-pixel .nk-btn:active{box-shadow:inset 4px 4px 0 rgba(0,0,0,.35);transform:translateY(2px)}
.theme-pixel .nk-btn-ghost{background:var(--px-biru);color:#0a0a22}

/* Sampul: layar judul game */
.theme-pixel .nk-cover{overflow:hidden}
.theme-pixel .nk-cover::before{content:"";position:absolute;left:0;right:0;bottom:0;height:64px;background:linear-gradient(var(--px-hijau) 0 12px,#1d8a52 12px 16px,#6b3f22 16px) 0 0/32px 64px;box-shadow:inset 0 4px 0 #000}
.theme-pixel .nk-cover-inner{position:relative;z-index:1;width:100%}
.theme-pixel .nk-cover-inner::before{content:"PLAYER 1  \2665  PLAYER 2";display:block;white-space:pre;font:400 .55rem/1 var(--font-display);color:var(--px-biru);margin-bottom:22px}
.theme-pixel .nk-cover h1{font-size:2.6rem;margin:14px 0}
.theme-pixel .nk-cover h1 span{display:block;width:44px;height:40px;margin:10px auto;font-size:0;background:var(--accent);-webkit-mask:var(--px-hati) center/contain no-repeat;mask:var(--px-hati) center/contain no-repeat;animation:px-detak .8s steps(2) infinite}
.theme-pixel .nk-date{font:400 .6rem/1.6 var(--font-display);color:#fff;letter-spacing:.04em;margin-bottom:24px}
.theme-pixel .nk-to{border:0;background:#000;box-shadow:var(--px-bingkai);margin:0 8px 30px;padding:12px}
.theme-pixel .nk-to p{font-size:1rem;color:var(--muted)}
.theme-pixel .nk-to .nk-guest{font:400 .75rem/1.6 var(--font-display);color:var(--px-kuning)}
.theme-pixel #openBtn{font-size:0;padding:0;background:none;box-shadow:none;clip-path:none}
.theme-pixel #openBtn::before{content:"> PRESS START <";white-space:pre;font:400 .8rem/1 var(--font-display);color:#fff;text-shadow:3px 3px 0 var(--accent);animation:px-kedip 1s steps(2) infinite}
.theme-pixel #openBtn::after{content:"tekan untuk membuka undangan";display:block;margin-top:10px;font:400 1rem/1 var(--font-body);color:var(--muted)}

/* Beranda: HUD game */
.theme-pixel .nk-hero{position:relative}
.theme-pixel .nk-hero::before{content:"STAGE 1: HARI BAHAGIA";display:block;font:400 .55rem/1 var(--font-display);color:var(--px-hijau);margin-bottom:22px}
.theme-pixel .nk-hero-photo{width:220px;height:220px;border-radius:0;border:0;box-shadow:var(--px-bingkai),12px 12px 0 8px var(--accent);margin-bottom:34px;image-rendering:auto}
.theme-pixel .nk-hero:not(:has(.nk-hero-photo)) .nk-eyebrow::before{content:"";display:block;width:120px;height:110px;margin:0 auto 22px;background:var(--accent);-webkit-mask:var(--px-hati) center/contain no-repeat;mask:var(--px-hati) center/contain no-repeat;animation:px-detak .8s steps(2) infinite}
.theme-pixel .nk-big{font-size:2.4rem;margin:12px 0}
.theme-pixel .nk-countdown{gap:10px;margin-top:22px}
.theme-pixel .nk-countdown div{background:#000;border:0;border-radius:0;box-shadow:0 0 0 3px #fff,0 0 0 6px #000;width:68px;padding:10px 0}
.theme-pixel .nk-countdown b{font:400 1rem/1.4 var(--font-display);color:var(--px-kuning)}
.theme-pixel .nk-countdown small{font:400 .9rem/1 var(--font-body);color:var(--muted)}
/* bar nyawa */
.theme-pixel .nk-countdown::after{content:"";position:absolute;left:50%;translate:-50% 0;margin-top:96px;width:170px;height:22px;background:var(--accent);-webkit-mask:var(--px-hati) 0 0/22px 22px repeat-x;mask:var(--px-hati) 0 0/22px 22px repeat-x;width:154px}
.theme-pixel .nk-countdown{position:relative;padding-bottom:44px}

/* Save the date: kotak dialog */
.theme-pixel .nk-bunting{width:100%;height:24px;margin-bottom:14px;background:var(--px-kuning);-webkit-mask:var(--px-koin) 0 0/24px 24px repeat-x;mask:var(--px-koin) 0 0/30px 24px repeat-x;animation:px-koin 1.2s steps(4) infinite}
.theme-pixel .nk-calendar,.theme-pixel .nk-card,.theme-pixel .nk-person,.theme-pixel .nk-msg{background:#0b0920;border:0;border-radius:0;box-shadow:var(--px-bingkai);color:var(--ink)}
.theme-pixel .nk-calendar{max-width:320px;margin:0 auto;padding:16px 12px}
.theme-pixel .nk-cal-month{font:400 .7rem/1.6 var(--font-display);color:var(--px-kuning);margin:0 0 10px}
.theme-pixel .nk-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0;font-size:1.25rem}
.theme-pixel .nk-cal-grid b{font:400 .5rem/2.6 var(--font-display);color:var(--muted)}
.theme-pixel .nk-cal-grid b:not(:first-child){font-size:0}
.theme-pixel .nk-cal-grid b::first-letter{font-size:.5rem}
.theme-pixel .nk-cal-grid span{line-height:30px;position:relative;z-index:0}
.theme-pixel .nk-cal-sun{color:var(--accent)}
.theme-pixel .nk-cal-day{color:#fff!important}
.theme-pixel .nk-cal-day::before{content:"";position:absolute;left:50%;top:50%;width:36px;height:34px;translate:-50% -50%;z-index:-1;background:var(--accent);-webkit-mask:var(--px-hati) center/contain no-repeat;mask:var(--px-hati) center/contain no-repeat;animation:px-detak .8s steps(2) infinite}

/* Mempelai: kartu pemain */
.theme-pixel .nk-ornament{width:150px;height:30px;background:var(--px-kuning);-webkit-mask:var(--px-koin) 0 0/30px 30px repeat-x;mask:var(--px-koin) 0 0/30px 30px repeat-x}
.theme-pixel .nk-couple{gap:26px;margin-top:34px}
.theme-pixel .nk-person{position:relative;padding:28px 16px 20px}
.theme-pixel .nk-person::before{content:"P1";position:absolute;top:-14px;left:12px;background:var(--px-biru);color:#000;font:400 .55rem/1 var(--font-display);padding:6px 8px}
.theme-pixel .nk-person:last-child::before{content:"P2";background:var(--accent);color:#fff}
.theme-pixel .nk-person h3{font-size:1.5rem;text-shadow:2px 2px 0 var(--accent)}
.theme-pixel .nk-person p{color:var(--muted);font-size:1.1rem}
.theme-pixel .nk-amp{font-size:0;height:50px;background:var(--px-kuning);-webkit-mask:var(--px-cincin) center/contain no-repeat;mask:var(--px-cincin) center/contain no-repeat;animation:px-lompat 1s steps(2) infinite}

/* Acara: dialog RPG dengan panah berkedip */
.theme-pixel .nk-card{position:relative;padding:22px 16px 34px;margin-bottom:30px;text-align:left}
.theme-pixel .nk-card::after{content:"";position:absolute;right:14px;bottom:10px;width:14px;height:12px;background:#fff;-webkit-mask:var(--px-panah) center/contain no-repeat;mask:var(--px-panah) center/contain no-repeat;animation:px-kedip .8s steps(2) infinite}
.theme-pixel .nk-card h3{font:400 .78rem/1.5 var(--font-display);color:var(--px-kuning);margin-bottom:12px}
.theme-pixel .nk-card p{font-size:1.15rem;line-height:1.25}
.theme-pixel .nk-card .nk-actions{justify-content:flex-start}
.theme-pixel .nk-number{font:400 .9rem/1.6 var(--font-display)!important;color:var(--px-hijau)}
.theme-pixel .nk-gift{text-align:center}
.theme-pixel .nk-gift::before{content:"";display:block;width:34px;height:34px;margin:0 auto 10px;background:var(--px-kuning);-webkit-mask:var(--px-koin) center/contain no-repeat;mask:var(--px-koin) center/contain no-repeat;animation:px-koin 1.2s steps(4) infinite}
.theme-pixel .nk-gift .nk-actions,.theme-pixel .nk-gift{justify-content:center}

/* Galeri */
.theme-pixel .nk-gallery{gap:14px;padding:8px}
.theme-pixel .nk-photo{border-radius:0;box-shadow:0 0 0 3px #fff,0 0 0 6px #000}
.theme-pixel .nk-yt{border-radius:0;box-shadow:var(--px-bingkai)}

/* Form & ucapan */
.theme-pixel .nk-form input,.theme-pixel .nk-form select,.theme-pixel .nk-form textarea{border-radius:0;border:0;background:#000;color:#fff;box-shadow:0 0 0 3px #fff;font-size:1.15rem}
.theme-pixel .nk-form input:focus,.theme-pixel .nk-form select:focus,.theme-pixel .nk-form textarea:focus{outline:0;box-shadow:0 0 0 3px var(--px-kuning)}
.theme-pixel .nk-msg{margin-bottom:16px;padding:12px}
.theme-pixel .nk-msg p{font-size:1.1rem}
.theme-pixel .nk-msg .nk-strong{color:var(--px-biru)}
.theme-pixel .nk-msg small{color:var(--px-hijau);font-size:.9rem}

/* Penutup: GAME CLEAR */
.theme-pixel .nk-closing{padding-bottom:110px;position:relative}
.theme-pixel .nk-closing::before{content:"GAME CLEAR!";display:block;font:400 .8rem/1 var(--font-display);color:var(--px-kuning);text-shadow:3px 3px 0 #000;margin-bottom:24px;animation:px-kedip 1.2s steps(2) infinite}
.theme-pixel .nk-closing::after{content:"";position:absolute;left:0;right:0;bottom:0;height:56px;background:linear-gradient(var(--px-hijau) 0 12px,#1d8a52 12px 16px,#6b3f22 16px) 0 0/32px 56px;box-shadow:inset 0 4px 0 #000}
.theme-pixel .nk-footer{font-size:1rem}
.theme-pixel .nk-footer a{color:var(--px-kuning)}

/* Pemutar lagu: kaset game */
.theme-pixel .nk-player{display:flex;align-items:center;gap:12px;width:100%;max-width:300px;margin:28px auto 0;padding:10px 12px;cursor:pointer;text-align:left;background:#000;border:0;box-shadow:var(--px-bingkai);color:#fff;font:inherit}
.theme-pixel .nk-player-icon{flex:none;width:40px;height:40px;background:var(--accent);clip-path:var(--px-tangga);position:relative}
.theme-pixel .nk-player-icon::before{content:"";position:absolute;left:14px;top:10px;border-style:solid;border-width:10px 0 10px 14px;border-color:transparent transparent transparent #fff}
.theme-pixel:has(.nk-music.nk-playing) .nk-player-icon::before{left:12px;top:12px;width:6px;height:16px;border:0;background:#fff;box-shadow:10px 0 0 #fff}
.theme-pixel .nk-player-text{flex:1;display:flex;flex-direction:column}
.theme-pixel .nk-player-text b{font:400 .6rem/1.6 var(--font-display);color:var(--px-kuning)}
.theme-pixel .nk-player-text small{font-size:.95rem;color:var(--muted)}
.theme-pixel .nk-player-wave{display:flex;align-items:flex-end;gap:2px;height:24px}
.theme-pixel .nk-player-wave i{width:6px;height:12px;background:var(--px-hijau)}
.theme-pixel:has(.nk-music.nk-playing) .nk-player-wave i{animation:px-eq .5s steps(3) infinite alternate}
.theme-pixel .nk-player-wave i:nth-child(2){height:20px;animation-delay:.2s!important}.theme-pixel .nk-player-wave i:nth-child(3){height:8px;animation-delay:.4s!important}.theme-pixel .nk-player-wave i:nth-child(4){height:16px;animation-delay:.1s!important}

/* Musik & menu */
.theme-pixel .nk-music{border-radius:0;clip-path:var(--px-tangga);bottom:90px}
.theme-pixel:not(.nk-locked) .nk-nav{display:flex}
.theme-pixel .nk-nav{border-radius:0;background:#000;border:0;box-shadow:0 0 0 3px #fff,0 0 0 6px #000;bottom:16px}
.theme-pixel .nk-nav a{border-radius:0;font:400 .9rem/1 var(--font-body);color:var(--muted)}
.theme-pixel .nk-nav a:hover,.theme-pixel .nk-nav a:focus-visible{background:var(--accent);color:#fff}

/* Animasi muncul ala game: patah-patah */
.theme-pixel .nk-reveal{transition:opacity .4s steps(4),transform .4s steps(4)}
@keyframes px-kedip{50%{opacity:0}}
@keyframes px-detak{50%{scale:1.15}}
@keyframes px-lompat{50%{translate:0 -6px}}
@keyframes px-koin{50%{scale:.4 1}}
@keyframes px-eq{from{scale:1 .3}to{scale:1 1}}
@media (prefers-reduced-motion:reduce){.theme-pixel *,.theme-pixel *::before,.theme-pixel *::after{animation:none!important}}
