:root {
  --forest: #102d27;
  --forest-light: #24463a;
  --gold: #d9bd82;
  --gold-deep: #a3824f;
  --cream: #fff3d8;
  --paper: #fff8e8;
  --ink: #332c24;
  --muted: #6d6251;
  --burgundy: #7d293c;
  --line: #cdbb99;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--sans); color: var(--cream); background: var(--forest); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #e8c46f; outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Gerbang */
.cover {
  position: fixed; inset: 0; z-index: 10; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center; color: var(--cream);
  background: linear-gradient(180deg, rgba(3,18,17,.52), rgba(3,18,17,.08) 46%, rgba(3,18,17,.68)), var(--cover-image) center/cover no-repeat;
  transition: opacity .65s ease, visibility .65s ease;
}
.cover.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.cover::after {
  content: ""; position: absolute; inset: 15px; pointer-events: none;
  border: 1px solid rgba(230,205,151,.5); box-shadow: inset 0 0 0 5px rgba(11,39,33,.17);
}
.corner { position: absolute; z-index: 1; color: var(--gold); font-family: var(--serif); font-size: 18px; line-height: 1; opacity: .75; }
.corner.tl { top: 7px; left: 23px; } .corner.tr { top: 7px; right: 23px; }
.corner.bl { bottom: 7px; left: 23px; } .corner.br { bottom: 7px; right: 23px; }
.cover-heading { position: relative; z-index: 2; padding: clamp(62px, 10vh, 112px) 20px 0; text-shadow: 0 3px 24px rgba(0,0,0,.65); }
.cover h1 { font-family: var(--serif); font-size: clamp(58px, 7vw, 92px); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; margin: 23px 0 15px; }
.cover h1 span { font-size: .58em; font-style: italic; font-weight: 400; }
.cover-subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2.3vw, 26px); margin: 0; }
.cover-card {
  position: relative; z-index: 2; width: min(440px, calc(100% - 44px)); margin: 24px auto;
  padding: 24px 26px 25px; color: var(--cream); background: rgba(10,39,32,.88);
  border: 1px solid var(--gold); outline: 4px solid rgba(10,39,32,.58);
  backdrop-filter: blur(9px);
}
.card-label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #ead7a7; }
.guest-name { font-family: var(--serif); font-size: clamp(29px, 5vw, 39px); line-height: 1.1; margin: 8px 0 18px; }
.gold-button {
  width: 100%; min-height: 54px; border: 1px solid #f8e4b3; color: #2f3329;
  background: linear-gradient(#eedaa8, #c9a96d); box-shadow: 0 5px 0 #8d7549;
  font-size: 14px; font-weight: 700; letter-spacing: .03em; transition: transform .18s ease, filter .18s ease;
}
.gold-button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.cover-date { margin: 17px 0 0; font-size: 12px; letter-spacing: .04em; color: #f5e7c6; }
.cover-foot { position: relative; z-index: 2; padding: 0 20px 36px; font-size: 13px; letter-spacing: .04em; text-shadow: 0 2px 12px #000; }

/* Ruang jelajah */
.experience { position: fixed; inset: 0; background: #142f27; }
.viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.world-map {
  position: absolute; width: 1600px; height: 900px; transform-origin: top left;
  background: var(--hall-image) center/100% 100% no-repeat;
  will-change: transform;
}
.world-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 95px 25px rgba(5,23,19,.25); }
.scene-label {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  padding: 9px 15px; border: 2px solid #846744; background: rgba(255,247,222,.95);
  box-shadow: 0 4px 0 #53402c, 0 10px 20px #0004; color: #3c3025;
  font-size: 15px; font-weight: 700; white-space: nowrap; transition: transform .18s ease, background .18s ease;
}
.scene-label:hover, .scene-label.is-near { transform: translate(-50%, -57%); background: #ffe7ad; }
.scene-label::before, .scene-label::after { content: "✦"; color: #735737; margin: 0 7px; font-size: 12px; }
.scene-label[data-panel="pengantin"] { left: 50%; top: 30%; }
.scene-label[data-panel="majlis"] { left: 76%; top: 44%; }
.scene-label[data-panel="lokasi"] { left: 74%; top: 70%; }
.scene-label[data-panel="hubungi"] { left: 12%; top: 53%; }
.scene-label[data-panel="hadiah"] { left: 19.4%; top: 27%; }
.scene-label[data-panel="rsvp"] { left: 26%; top: 70%; }
.parents-host {
  position: absolute; z-index: 3; top: 520px; width: 100px; height: 140px;
  padding: 0; border: 0; background: transparent; transform: translate(-50%, -80%);
  color: #3c3025; overflow: visible;
}
.parents-host--host { left: 710px; }
.parents-host--other { left: 890px; }
.parents-host img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 5px #071a16aa); }
.parents-host:hover img, .parents-host.is-near img { filter: drop-shadow(0 0 9px #f8dc9a) drop-shadow(0 7px 5px #071a16aa); }
.parents-speech {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: 132px; padding: 7px 6px;
  border: 2px solid #846744; background: #fff3d8f2; box-shadow: 0 4px 0 #53402c;
  font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center;
}
.player { position: absolute; z-index: 4; width: 92px; height: 145px; pointer-events: none; transform: translate(-50%, -83%); }
.player::before { content: ""; position: absolute; width: 61px; height: 17px; bottom: 14px; left: 15px; background: #13261c99; border-radius: 50%; filter: blur(3px); transform-origin: 50% 50%; }
/* Watak tetamu: gambar sama dilapis tiga (badan, kaki kiri, kaki kanan) supaya kaki boleh melangkah.
   --split: aras pinggang/kaki dalam kotak 92×145; --mid: garis tengah antara kaki. */
.walker { position: absolute; inset: 0; transform-origin: 50% 92%; filter: drop-shadow(0 5px 2px #0006); animation: breathe 2.6s ease-in-out infinite; }
.walker[data-character="lelaki"] { --split: 72.5%; --mid: 51.6%; }
.walker[data-character="perempuan"] { --split: 85.5%; --mid: 50.4%; }
.walker img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.walker-body { clip-path: inset(0 0 calc(100% - var(--split)) 0); }
.walker-leg { transform-origin: var(--mid) var(--split); }
.walker-leg--l { clip-path: inset(calc(var(--split) - 3%) calc(100% - var(--mid)) 0 0); }
.walker-leg--r { clip-path: inset(calc(var(--split) - 3%) 0 0 var(--mid)); }
.player.face-left .walker { scale: -1 1; }
.player.is-moving .walker { animation: walk-bob .46s ease-in-out infinite; }
.player.is-moving .walker-leg--l { animation: step .46s ease-in-out infinite; }
.player.is-moving .walker-leg--r { animation: step .46s ease-in-out -.23s infinite; }
.player.is-moving::before { animation: shadow-pulse .23s ease-in-out infinite alternate; }
@keyframes step {
  0%, 50%, 100% { transform: none; }
  25% { transform: translateY(-1px) scaleY(.88) rotate(-2deg); }
}
@keyframes walk-bob {
  0%, 50%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-3px) rotate(-1.6deg); }
  75% { transform: translateY(-3px) rotate(1.6deg); }
}
@keyframes breathe { 50% { transform: scaleY(1.012); } }
@keyframes shadow-pulse { to { transform: scaleX(.9); opacity: .8; } }
.you-label { position: absolute; left: 50%; top: -9px; transform: translate(-50%, -100%); padding: 4px 8px; border: 2px solid #d7bf8a; border-radius: 4px; background: #164039; color: #fff5dc; font-weight: 700; font-size: 12px; white-space: nowrap; text-shadow: none; }
.world-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #10251b50, transparent 18%, transparent 75%, #0b241c55); }
.brand-plaque {
  position: absolute; top: 20px; left: 20px; z-index: 6; padding: 10px 17px 9px;
  border: 2px solid #745c3e; outline: 3px solid #f7dfac;
  background: #fff1d2; box-shadow: 0 4px 13px #0006; color: #372f25;
}
.brand-plaque b { display: block; font: 500 26px/.9 var(--serif); }
.brand-plaque small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
/* Pilihan tema dewan (demo sahaja) */
.hall-picker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.hall-picker select {
  min-height: 36px; padding: 0 30px 0 12px; border: 1px solid #c9ae7b; border-radius: 20px; appearance: none;
  background: #102d27e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23d9bd82' stroke-width='1.6'/%3E%3C/svg%3E") right 12px center no-repeat;
  color: #fff1d2; font-size: 13px; font-weight: 700;
}
.hall-picker--cover { justify-content: center; margin-top: 14px; color: #ead7a7; letter-spacing: .04em; }
.hall-picker--map { position: absolute; top: 92px; left: 20px; z-index: 6; }
.hall-picker--map span { padding: 3px 8px; border-radius: 4px; background: #fff1d2; color: #372f25; box-shadow: 0 2px 8px #0005; }
.top-tools { position: absolute; top: 18px; right: 19px; z-index: 6; display: flex; gap: 8px; }
.tool-button {
  min-height: 43px; padding: 0 15px; border: 1px solid #c9ae7b; border-radius: 24px;
  background: #102d27e8; color: #fff1d2; font-size: 13px; font-weight: 700;
}
.tool-button:hover { background: #315346; }
.help-icon { display: none; }
.music-button { position: relative; width: 44px; min-width: 44px; padding: 0; font-size: 22px; line-height: 1; }
.music-button[aria-pressed="true"] { background: #ead39f; border-color: #f7e3b2; color: #17382e; }
.music-button[aria-pressed="false"]::after {
  content: ""; position: absolute; top: 7px; left: 50%; height: 26px;
  border-left: 2px solid currentColor; transform: rotate(-40deg);
}
.guide {
  position: absolute; left: 50%; top: 92px; z-index: 7; transform: translateX(-50%);
  width: min(460px, calc(100% - 28px)); padding: 12px 42px 12px 16px;
  border: 2px solid #a98c5e; border-radius: 6px; background: #fff1d9; color: #423727;
  box-shadow: 0 9px 25px #0006; font-size: 13px; line-height: 1.45; text-align: center;
}
.guide button { position: absolute; top: 5px; right: 9px; border: 0; background: none; color: #594a33; font-size: 23px; }
.joystick {
  position: absolute; bottom: 25px; left: 22px; z-index: 6; width: 108px; height: 108px;
  padding: 0; border: 2px solid #ead29ba8; border-radius: 50%; touch-action: none;
  background: rgba(20, 64, 52, .34); backdrop-filter: blur(2px);
  box-shadow: inset 0 2px 7px #061b1666, 0 5px 14px #0005;
}
.joystick::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid #ead29b77; border-radius: 50%;
}
.joystick-thumb {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border: 2px solid #f7e4b8cc;
  border-radius: 50%; transform: translate(calc(-50% + var(--stick-x, 0px)), calc(-50% + var(--stick-y, 0px)));
  background: radial-gradient(circle at 38% 30%, #fff1cab8, #d7b87988 72%);
  box-shadow: 0 3px 7px #071b1677; pointer-events: none;
}
.joystick:active .joystick-thumb { background: radial-gradient(circle at 38% 30%, #fff8dacc, #e4c98eaa 72%); }
.near-action {
  position: absolute; right: 22px; bottom: 28px; z-index: 6; max-width: 235px;
  padding: 12px 16px; border: 2px solid #ccb581; border-radius: 9px; background: #173e34ed;
  color: #fff1d2; font-weight: 700; box-shadow: 0 8px 22px #0007;
}
.near-action:hover { background: #315346; }
.dock {
  position: absolute; left: 50%; bottom: 24px; z-index: 7; transform: translateX(-50%);
  display: flex; gap: 2px; width: min(660px, calc(100% - 320px)); min-width: 440px;
  padding: 6px; border: 3px solid #806647; outline: 3px solid #f5ddb0;
  border-radius: 15px; background: #fff0cf; box-shadow: 0 12px 30px #0007;
}
.dock button { flex: 1; min-width: 0; min-height: 66px; border: 0; border-radius: 8px; color: #3d3328; background: transparent; font-size: 11px; font-weight: 700; }
.dock button:hover { background: #e9d9af; }
.dock .mark { display: block; margin-bottom: 5px; font: 28px/1 var(--serif); color: #7c5b3c; }

/* Ucapan ibu bapa dalam ruang jelajah */
.npc-chat-dialog {
  position: fixed; inset: auto 16px max(20px, env(safe-area-inset-bottom)) 16px;
  width: min(1180px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  margin: 0 auto; padding: 23px 26px 24px; overflow-y: auto;
  border: 4px solid #5c422e; border-radius: 16px;
  background: #fff0d3; color: #3b3028;
  box-shadow: 0 0 0 5px #ead3aa, 0 16px 40px #071b1688;
}
.npc-chat-dialog::backdrop { background: rgba(6,29,23,.18); backdrop-filter: none; }
.npc-chat-body { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 24px; align-items: start; }
.npc-chat-portrait { width: 92px; height: 118px; border: 1px solid #ab9064; background: #e9d7b5; object-fit: contain; }
.npc-chat-copy h2 { margin: 0 36px 14px 0; font: 500 clamp(27px, 2.8vw, 37px)/1.15 var(--serif); }
.npc-chat-copy p { max-width: 940px; margin: 0; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; }
.npc-chat-copy .npc-chat-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: -6px 0 12px; font-size: 12px; letter-spacing: .06em; line-height: 1.4; color: #6d5a43; }
.npc-chat-names strong { font-weight: 700; }
.npc-chat-names span { color: var(--burgundy); font: italic 15px var(--serif); letter-spacing: 0; }
.npc-chat-close { position: absolute; top: 13px; right: 19px; border: 0; background: transparent; color: #4b3527; font-size: 27px; line-height: 1; }
.npc-chat-close:hover { color: var(--burgundy); }
.npc-chat-next { width: min(290px, 100%); margin: 23px 0 0 auto; }
.primary-button.npc-chat-next { display: block; }

/* Dialog */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog:focus, .dialog-card:focus { outline: none; }
dialog::backdrop { background: rgba(6,29,23,.74); backdrop-filter: blur(6px); }
.dialog-card {
  position: relative; width: min(520px, calc(100vw - 28px)); max-height: min(82dvh, 800px); overflow-y: auto;
  border: 3px solid #a58254; border-radius: 10px; padding: 30px;
  background: var(--cream); box-shadow: 0 0 0 4px #fff1d3, 0 24px 90px #0009;
}
.dialog-card.wide { width: min(680px, calc(100vw - 28px)); }
.dialog-kicker { margin: 0 0 7px; color: #775f43; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.dialog-card h2 { margin: 0 30px 14px 0; font: 500 clamp(35px, 6vw, 47px)/.98 var(--serif); }
.dialog-card h3 { font: 600 25px/1.1 var(--serif); margin: 17px 0 4px; }
.dialog-card p { font-size: 14px; line-height: 1.6; }
.arabic { margin: 7px 0; font-family: "Noto Naskh Arabic", "Geeza Pro", serif; font-size: 22px !important; line-height: 1.9 !important; text-align: center; }
/* Panel pengantin */
.panel-couple { text-align: center; }
.panel-couple h2 { margin-right: 0; }
.couple-photo {
  position: relative; width: min(240px, 70%); aspect-ratio: 4 / 5; margin: 4px auto 20px; padding: 8px;
  background: #fffaf0; border: 1px solid var(--line); box-shadow: 0 10px 26px #3a2a1a2e; transform: rotate(-1.5deg);
}
.couple-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.couple-photo.is-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, #e9dcc0 14px 15px),
    linear-gradient(#f7eedc, #efe2c6);
  background-clip: content-box; color: #8a6d48;
}
.couple-initials { font: 500 46px/1 var(--serif); letter-spacing: .02em; }
.couple-initials i { margin: 0 6px; font-size: .6em; color: var(--burgundy); }
.couple-photo figcaption { max-width: 80%; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }
.couple-message { position: relative; margin: 18px 0; padding: 18px 20px 16px; background: #fff7e3; border-left: 3px solid var(--gold-deep); text-align: left; }
.couple-message p { margin: 0 0 8px; font: italic 17px/1.55 var(--serif); color: #4a3d2d; }
.couple-message cite { font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #775f43; }
.couple-message cite::before { content: "— "; }
.invitation-parents, .couple-names { text-align: center; }
.invitation-parents strong, .couple-names strong { display: block; font: 600 clamp(23px, 5vw, 31px)/1.12 var(--serif); overflow-wrap: anywhere; }
.invitation-parents span, .couple-names span { display: block; margin: 8px 0; color: var(--burgundy); font: italic 22px var(--serif); }
.invitation-address { font-style: normal; line-height: 1.6; }
.close-button { position: absolute; top: 13px; right: 16px; border: 0; background: none; color: #4c3a2a; font: 28px/1 var(--sans); }
.close-button:hover { color: var(--burgundy); }
.small-rule { width: 85px; height: 1px; margin: 18px auto; background: var(--gold-deep); }
.character-intro { text-align: center; }
.character-intro h2 { margin-right: 0; }
.character-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin: 22px 0 18px; }
.character-option {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 223px;
  padding: 10px; border: 2px solid #c7b38e; border-radius: 8px; background: #f3e7c9;
}
.character-option[aria-pressed="true"] { background: #e3e3c4; border-color: #29473b; box-shadow: inset 0 0 0 2px #29473b; }
.character-option:hover { filter: brightness(1.035); }
.character-option img { height: 149px; width: 115px; object-fit: contain; }
.character-option strong { font: 600 25px/1 var(--serif); }
.character-option small { margin-top: 3px; font-size: 11px; }
label.form-label { display: block; margin: 13px 0 6px; font-size: 12px; font-weight: 700; }
.field {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b8a781;
  border-radius: 4px; background: #fffaf0; color: var(--ink);
}
textarea.field { min-height: 86px; resize: vertical; }
.primary-button {
  display: inline-block; min-height: 45px; padding: 10px 18px; border: 1px solid #274a3e; border-radius: 4px;
  background: var(--forest); color: var(--cream); font-weight: 700; text-align: center; text-decoration: none;
}
.primary-button:hover { background: #325949; }
.secondary-button {
  display: inline-block; min-height: 43px; padding: 10px 16px; border: 1px solid #8e7651; border-radius: 4px;
  background: transparent; color: #3c3428; font-weight: 700; text-align: center; text-decoration: none;
}
.secondary-button:hover { background: #eddfbf; }
.music-dialog-button { width: 100%; margin-top: 10px; }
.full { width: 100%; }
.muted { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.detail-box { padding: 14px; border: 1px solid #dbcaa7; background: #fff9e9; }
.detail-box small, .fact small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7f6a4e; }
.detail-box strong { display: block; margin-top: 5px; font: 600 27px/1.05 var(--serif); }
.fact { padding: 14px 0; border-bottom: 1px solid #d9c9aa; }
.fact strong { display: block; margin-top: 5px; font: 600 25px/1.05 var(--serif); }
.fact span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; }
.notice { padding: 10px 12px; border: 1px solid #d7c49e; background: #f2e7cf; font-size: 12px !important; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-grid figure { margin: 0; background: #e9daba; border: 1px solid #c7b38e; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-grid figcaption { padding: 9px; text-align: center; font: 600 19px var(--serif); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { margin-top: 9px; color: #765e43; font-size: 12px !important; }
.form-result { margin: 13px 0 0; padding: 11px 12px; background: #dce8d7; border: 1px solid #9bb393; font-size: 13px; }
.guestbook { margin-top: 25px; padding-top: 14px; border-top: 1px solid #cbb993; }
.entry { padding: 11px 0; border-bottom: 1px solid #d9c9aa; font-size: 13px; }
.entry b { color: var(--burgundy); }
.entry p { margin: 5px 0 0; }
.inline-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-top: 12px; }
.inline-form .field { min-width: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-result.is-error { background: #f3dcd8; border-color: #c99a92; }
.text-button {
  display: block; width: 100%; min-height: 44px; margin-top: 8px; border: 0; background: none;
  color: #f5e7c6; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.text-button:hover { color: #fff; }
.cover-countdown { margin: 6px 0 0; font: italic 15px var(--serif); color: var(--gold); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px 0 6px; }
.countdown div { padding: 12px 4px; border: 1px solid #dbcaa7; background: #fff9e9; text-align: center; }
.countdown strong { display: block; font: 600 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown small { display: block; margin-top: 5px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7f6a4e; }
.countdown-note { margin: 18px 0 6px; padding: 12px 14px; border: 1px solid #dbcaa7; background: #fff9e9; font: italic 18px/1.4 var(--serif) !important; text-align: center; }
.noscript { position: fixed; inset: 20px; z-index: 99; padding: 20px; background: var(--cream); }

@media (max-width: 760px) {
  .cover-heading { padding-top: clamp(95px, 12vh, 130px); }
  .cover h1 { font-size: clamp(43px, 11vw, 72px); margin-top: 15px; }
  .cover-subtitle { font-size: 17px; }
  .cover-card { margin-top: 15px; }
  .cover-foot { padding-bottom: 27px; }
  .brand-plaque { top: 13px; left: 13px; padding: 9px 12px; }
  .hall-picker--map { top: 86px; left: 13px; }
  .brand-plaque b { font-size: 22px; }
  .top-tools { top: 14px; right: 13px; }
  .tool-button { padding: 0 12px; min-height: 44px; }
  .music-button { padding: 0; }
  .guide { top: 86px; font-size: 12px; }
  .joystick { width: 96px; height: 96px; bottom: 102px; left: 12px; }
  .joystick-thumb { width: 42px; height: 42px; }
  .near-action { bottom: 124px; right: 12px; max-width: 180px; font-size: 12px; }
  .dock { left: 10px; right: 10px; bottom: 12px; transform: none; width: auto; min-width: 0; gap: 0; outline-width: 2px; }
  .dock button { min-height: 63px; font-size: 11px; }
  .dock .mark { font-size: 23px; }
  .dialog-card { padding: 24px 19px; }
  .character-option { min-height: 190px; }
  .character-option img { height: 120px; width: 100px; }
  .parents-speech { font-size: 16px; }
  .npc-chat-dialog { inset: auto 12px max(14px, env(safe-area-inset-bottom)) 12px; width: calc(100vw - 24px); padding: 17px 16px 18px; }
  .npc-chat-body { grid-template-columns: 66px minmax(0, 1fr); gap: 13px; }
  .npc-chat-portrait { width: 66px; height: 86px; }
  .npc-chat-copy h2 { margin: 0 26px 9px 0; font-size: 25px; }
  .npc-chat-copy p { font-size: 14px; line-height: 1.55; }
  .npc-chat-close { top: 9px; right: 11px; }
  .npc-chat-next { width: 100%; margin-top: 17px; }
}
@media (max-width: 420px) {
  .cover-heading { padding-top: 86px; }
  .cover h1 { font-size: clamp(38px, 11.5vw, 48px); }
  .cover-card { padding: 20px 18px; }
  .cover-foot { font-size: 12px; }
  .help-button { width: 44px; padding: 0; font-size: 21px; }
  .help-text { display: none; }
  .help-icon { display: inline; }
  .dialog-card { max-height: 88dvh; }
  .detail-grid, .form-row { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .inline-form button { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Tambahan templat */
.contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid #d9c9aa; }
.contact strong { display: block; font: 600 22px/1.15 var(--serif); }
.contact span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.contact .secondary-button { flex: none; }
.cta-strip { margin-top: 22px; padding: 13px 15px; border: 1px dashed var(--gold-deep); background: #fff9e9; font-size: 13px !important; }
.cta-strip a { color: var(--burgundy); font-weight: 700; }
.cover-foot a { color: var(--gold); font-weight: 700; }
.fallback-link { display: inline-block; margin-top: 8px; color: var(--burgundy); font-weight: 700; }
.cf-turnstile { margin-top: 12px; }

/* Hadiah (salam kaut) */
.gift-card { margin: 18px 0 6px; padding: 4px 16px; border: 1px solid #dbcaa7; background: #fff9e9; }
.gift-row { padding: 11px 0; border-bottom: 1px solid #e6d8bb; }
.gift-row:last-child { border-bottom: 0; }
.gift-row small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7f6a4e; }
.gift-row strong { display: block; margin-top: 4px; font: 600 22px/1.15 var(--serif); overflow-wrap: anywhere; }
.gift-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gift-account strong { letter-spacing: .04em; }
.gift-account .secondary-button { flex: none; }
.gift-qr { margin: 16px auto 4px; max-width: 260px; text-align: center; }
.gift-qr img { display: block; width: 100%; height: auto; border: 1px solid #dbcaa7; background: #fff; }
.gift-qr figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.gift-hint { margin: 18px 0 0; padding: 10px 12px; border-left: 3px solid #c9a35a; background: #fbf3df; font-size: 13px !important; }
.link-button { padding: 0; border: 0; background: none; color: #1f4d40; font-weight: 700; text-decoration: underline; cursor: pointer; }
.gift-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0 4px; }
.gift-item { display: flex; flex-direction: column; align-items: center; padding: 10px 10px 12px; border: 1px solid #dbcaa7; background: #fff9e9; text-align: center; }
.gift-item img { width: 100%; max-width: 140px; height: auto; aspect-ratio: 1; object-fit: contain; }
.gift-item strong { margin-top: 4px; font: 600 17px/1.2 var(--serif); }
.gift-item span { margin: 3px 0 9px; color: #7f6a4e; font-size: 15px; font-weight: 700; }
.gift-item .secondary-button { min-height: 38px; padding: 0 14px; font-size: 13px; }
.gift-item-note { padding: 9px 11px; border-left: 3px solid #c9a35a; background: #fbf3df; }
@media (min-width: 620px) { .gift-items { grid-template-columns: repeat(4, 1fr); } }
