/* CRAFID — template Nikahan Sunda 3D. Satu tema senja; semua warna ditetapkan eksplisit. */
  /* Konsep: senja keemasan di dataran tinggi Priangan. Tamu dijemput lewat gapura awi
     yang terbuka sendiri (Buka Pintu), menjelajah bale Julang Ngapak, sawah terasering,
     dan curug, lalu nyawer dan foto bareng pangantén bersiger emas. Panel giok tua
     bermotif mega mendung; satu tema, jadi semua warna ditetapkan eksplisit. */
  :root {
    color-scheme: dark;
    --bg: #0b1a16; --ink: #f7f0e2; --ink-soft: #c9c0a8; --line: #d9b25e45;
    --panel: #0f231ee8; --panel-2: #163029; --gold: #d9b25e; --gold-hi: #f4dc97;
    --rose: #c9506a; --mega: #3d77a8; --on-gold: #1f1606;
    --font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', Georgia, serif;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'DM Mono', ui-monospace, Menlo, monospace;
    --font-ar: 'Amiri', 'Traditional Arabic', serif;
    --font-su: 'Noto Sans Sundanese', sans-serif;
    --mega-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='70' viewBox='0 0 120 70'%3E%3Cg fill='none' stroke='%23d9b25e' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M10 50c0-10 12-14 18-8 2-10 18-12 22-2 6-6 18-2 16 8 8 0 10 10 2 12H14c-6 0-8-6-4-10z'/%3E%3Cpath d='M18 50c0-6 8-9 12-5 2-6 12-7 14-1 4-3 11-1 10 5 5 0 6 6 1 7H21c-4 0-5-3-3-6z'/%3E%3Cpath d='M72 22c0-8 10-11 14-6 2-8 14-9 17-2 5-4 14-1 12 6 6 0 8 8 2 9H75c-5 0-6-4-3-7z'/%3E%3C/g%3E%3C/svg%3E");
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html, body { height: 100%; }
  body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-body); overflow: hidden; touch-action: none; -webkit-tap-highlight-color: transparent; }
  #gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
  p { margin: 0; }
  .eyebrow { font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0; }
  .soft { color: var(--ink-soft); }
  .su { font-family: var(--font-su); color: var(--gold); letter-spacing: 0.05em; }

  .btn { appearance: none; border: 0; cursor: pointer; font: 700 0.92rem/1 var(--font-body); letter-spacing: 0.02em; padding: 15px 26px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--on-gold); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 10px 30px -12px #d9b25e99, inset 0 1px 0 #fff6; }
  .btn.ghost { background: #0b1a1699; color: var(--ink); border: 1px solid var(--gold); box-shadow: none; }
  .btn.sm { padding: 10px 16px; font-size: 0.84rem; }
  .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .btn:disabled { opacity: 0.6; cursor: default; }

  .lux { position: relative; border: 1px solid var(--line); background: var(--panel); background-image: var(--mega-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .lux::before { content: ''; position: absolute; left: 50%; top: -9px; width: 34px; height: 16px; margin-left: -17px; background: var(--bg); border: 1px solid var(--gold); border-bottom: 0; border-radius: 34px 34px 0 0; }

  label, legend { font: 500 0.7rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
  input[type=text], textarea { width: 100%; margin-top: 6px; font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: #0b1a16; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
  textarea { min-height: 76px; resize: vertical; }

  /* ---------- layar pembuka ---------- */
  .start { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 50%, #0b1a1699 0%, #0b1a16b8 55%, #0b1a16ee 100%); }
  .start-card { width: 100%; max-width: 470px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; animation: rise 1.6s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { transform: translateY(20px); } to { transform: none; } }
  .start .su { font-size: 1.2rem; }
  .start h1 { font-size: clamp(3.2rem, 15vw, 5.4rem); font-style: italic; text-shadow: 0 4px 30px #000c; }
  .start h1 .amp { display: block; font-size: 0.42em; color: var(--gold); margin-block: 0.06em; }
  .siger { width: 180px; height: 34px; display: block; }
  .start .date { font-family: var(--font-display); font-size: 1.25rem; }
  .start .guest { font-size: 0.92rem; color: var(--ink-soft); }
  .start .guest b { color: var(--ink); }
  .start .hint { font-size: 0.88rem; color: var(--ink-soft); max-width: 34ch; }
  .start .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
  .letterbox { position: fixed; left: 0; right: 0; height: 7vh; background: #000; z-index: 29; pointer-events: none; transition: transform 1.2s ease; }
  .letterbox.t { top: 0; } .letterbox.b { bottom: 0; }
  .letterbox.off.t { transform: translateY(-100%); } .letterbox.off.b { transform: translateY(100%); }

  /* ---------- ruang busana ---------- */
  .dress { position: fixed; z-index: 26; left: 0; right: 0; bottom: 0; max-height: 58vh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; border-radius: 26px 26px 0 0; border-bottom: 0; padding: 22px clamp(16px, 5vw, 32px) 0; }
  .dress-in { max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
  .dress h2 { font-size: 1.9rem; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: #0b1a16; border: 1px solid var(--line); }
  .seg.three { grid-template-columns: repeat(3, 1fr); }
  .seg button { border: 0; background: transparent; padding: 10px 8px; border-radius: 999px; cursor: pointer; font: 700 0.84rem/1.1 var(--font-body); color: var(--ink-soft); }
  .seg button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }
  .grp { display: flex; flex-direction: column; gap: 8px; }
  .grp > .eyebrow { color: var(--ink-soft); }
  .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
  .opt { text-align: left; border: 1px solid var(--line); background: #0b1a16aa; border-radius: 16px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .opt b { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; font-weight: 500; }
  .opt small { font-size: 0.74rem; line-height: 1.35; color: var(--ink-soft); }
  .opt[aria-pressed="true"] { border-color: var(--gold); background: #d9b25e1f; box-shadow: inset 0 0 0 1px var(--gold); }
  .pills { display: flex; gap: 8px; flex-wrap: wrap; }
  .pills button { border: 1px solid var(--line); background: #0b1a16aa; border-radius: 999px; padding: 9px 14px; cursor: pointer; font: 700 0.84rem/1 var(--font-body); }
  .pills button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
  .sw { display: flex; gap: 10px; flex-wrap: wrap; }
  .sw button { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 2px solid #0b1a16; box-shadow: 0 0 0 1px var(--line); padding: 0; }
  .sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold-hi); }
  .swname { color: var(--ink); }
  .facebox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .facebox .file { position: relative; overflow: hidden; }
  .facebox .file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .facebox small { color: var(--ink-soft); font-size: 0.8rem; flex: 1 1 200px; }
  .dress .go { position: sticky; bottom: 0; margin-inline: calc(-1 * clamp(16px, 5vw, 32px)); padding: 14px clamp(16px, 5vw, 32px) calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(180deg, #0f231e00, #0f231e 30%); }
  .dress .go .btn { width: 100%; }

  /* ---------- HUD ---------- */
  .hud { position: fixed; z-index: 10; inset: 0 0 auto 0; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
  .hud-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .pill { pointer-events: auto; border-radius: 999px; padding: 9px 14px; font: 500 0.76rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
  .pill::before { display: none; }
  .pill b { color: var(--gold-hi); font-weight: 500; }
  .tools { display: flex; gap: 8px; pointer-events: auto; }
  .round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0; }
  .round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .round.on { color: var(--gold-hi); border-color: var(--gold); }
  .chips { display: flex; gap: 8px; overflow-x: auto; pointer-events: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 700 0.78rem/1 var(--font-body); cursor: pointer; backdrop-filter: blur(10px); display: flex; gap: 7px; align-items: center; }
  .chip::before { content: ''; width: 8px; height: 8px; border-radius: 50% 50% 0 0; border: 1.5px solid var(--gold); }
  .chip.done::before { background: var(--gold); }
  .chip.hl { border-color: var(--gold); color: var(--gold-hi); }

  .ctl { position: fixed; z-index: 10; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .joy { left: 18px; width: 132px; height: 132px; border-radius: 50%; touch-action: none; background: radial-gradient(circle, #0f231e55 40%, #0f231ecc 72%); border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px #0b1a1666, inset 0 0 0 7px var(--line); }
  .joy .tri { position: absolute; width: 0; height: 0; border: 6px solid transparent; }
  .joy .t1 { left: 50%; top: 9px; margin-left: -6px; border-bottom-color: var(--gold); }
  .joy .t2 { left: 50%; bottom: 9px; margin-left: -6px; border-top-color: var(--gold); }
  .joy .t3 { top: 50%; left: 9px; margin-top: -6px; border-right-color: var(--gold); }
  .joy .t4 { top: 50%; right: 9px; margin-top: -6px; border-left-color: var(--gold); }
  .joy i { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, #8a6a20); box-shadow: 0 8px 20px #000a, inset 0 -3px 6px #0004; }
  .cam { right: 18px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
  .cam .view { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--gold); background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 0 6px; align-content: center; }
  .cam .view svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .cam .view span { font: 500 0.58rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }
  .cam .zoom { display: flex; flex-direction: column; gap: 8px; }
  .help { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(170px + env(safe-area-inset-bottom, 0px)); font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; background: #0b1a16cc; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; pointer-events: none; text-align: center; width: max-content; max-width: calc(100% - 32px); transition: opacity 0.6s; }
  .help.hide { opacity: 0; }
  .toast { position: fixed; z-index: 25; left: 50%; top: 24%; transform: translate(-50%, -12px); opacity: 0; border-radius: 20px; padding: 18px 24px; text-align: center; width: max-content; max-width: calc(100% - 32px); transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }
  .toast h3 { font-size: 1.7rem; color: var(--gold-hi); font-style: italic; }

  /* ---------- lembar isi ---------- */
  .sheet { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; border-radius: 26px 26px 0 0; border-bottom: 0; padding: 26px clamp(16px, 5vw, 32px) calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); visibility: hidden; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), visibility 0s 0.5s; }
  .sheet.open { transform: none; visibility: visible; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1); }
  .sheet-in { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }
  .sheet-x { position: sticky; top: 0; align-self: flex-end; margin: -10px -8px -36px 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #0b1a16dd; font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 2; }
  #sheetBody { display: flex; flex-direction: column; gap: 14px; }
  .sheet h2 { font-size: clamp(1.9rem, 7vw, 2.5rem); padding-right: 40px; }
  .sheet .su { font-size: 1.05rem; }
  .ar { font-family: var(--font-ar); font-size: clamp(1.35rem, 5vw, 1.85rem); line-height: 2.1; direction: rtl; text-align: center; }
  cite { font: 500 0.74rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-style: normal; }
  .lemes { font-family: var(--font-display); font-size: 1.12rem; font-style: italic; line-height: 1.45; }
  .next { align-self: stretch; }
  .cta { align-self: stretch; padding-block: 17px; font-size: 1rem; }
  .duo-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pair figure { margin: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; min-width: 0; }
  .arch { aspect-ratio: 3 / 4; width: 100%; max-width: 170px; border-radius: 999px 999px 16px 16px; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 4px #0b1a16, 0 0 0 5px var(--line); background: var(--panel-2); }
  .arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pair h3 { font-size: 1.25rem; overflow-wrap: anywhere; }
  .pair .role { font: 500 0.66rem/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
  .pair small { color: var(--ink-soft); font-size: 0.84rem; line-height: 1.4; }
  .pair small b { color: var(--ink); display: block; font-weight: 500; }
  .count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .tick { border: 1px solid var(--line); border-radius: 16px; padding: 14px 4px 10px; text-align: center; background: #0b1a1699; }
  .tick output { display: block; font: 500 clamp(1.9rem, 8.5vw, 2.6rem)/1 var(--font-display); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
  .tick span { font: 500 0.62rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
  .event { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: #0b1a1699; }
  .event h3 { font-size: 1.55rem; }
  .event .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
  .event ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.9rem; }
  .dresscode { border: 1px dashed var(--gold); border-radius: 14px; padding: 12px 14px; font-size: 0.92rem; }
  .thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 5; background: var(--panel-2); position: relative; }
  .thumbs img, .thumbs video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .thumbs .vb { position: absolute; left: 6px; bottom: 6px; font: 500 0.58rem/1 var(--font-mono); letter-spacing: 0.1em; background: #0b1a16dd; padding: 4px 6px; border-radius: 99px; text-transform: uppercase; }
  form { display: grid; gap: 12px; }
  fieldset { border: 0; padding: 0; margin: 0; }
  .choices { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
  .choice { flex: 1 1 130px; position: relative; }
  .choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
  .choice span { display: block; text-align: center; padding: 11px; border-radius: 12px; border: 1px solid var(--line); font: 700 0.88rem/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); background: #0b1a16; }
  .choice input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
  .choice input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
  .note { border: 1px dashed var(--gold); border-radius: 14px; padding: 12px 14px; }
  .wishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .wishes li { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: #0b1a1699; }
  .wishes b { display: block; }
  .gift { border: 1px solid var(--gold); border-radius: 18px; padding: 18px; display: grid; gap: 4px; background: linear-gradient(135deg, #163029, #0b1a16); }
  .gift .no { font: 500 1.4rem/1.3 var(--font-mono); letter-spacing: 0.05em; user-select: all; overflow-wrap: anywhere; color: var(--gold-hi); }

  /* ---------- mode foto ---------- */
  .shoot { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; max-height: 52vh; overflow-y: auto; touch-action: pan-y; border-radius: 26px 26px 0 0; border-bottom: 0; padding: 20px clamp(16px, 5vw, 32px) calc(16px + env(safe-area-inset-bottom, 0px)); }
  .shoot-in { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 11px; }
  .shoot h2 { font-size: 1.6rem; }
  .shoot .row { display: flex; gap: 10px; align-items: center; }
  .shoot .row .btn { flex: 1; padding-inline: 12px; }
  .shutter { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--gold-hi); background: radial-gradient(circle, var(--gold-hi) 0 54%, transparent 56%); cursor: pointer; flex: none !important; padding: 0; box-shadow: 0 0 0 5px #0b1a16, 0 0 28px #d9b25e88; }
  .viewfinder { position: fixed; z-index: 21; pointer-events: none; border: 1px solid #f4dc97cc; border-radius: 6px; box-shadow: 0 0 0 9999px #040a0866; }
  .viewfinder::before, .viewfinder::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold-hi); }
  .viewfinder::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
  .viewfinder::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
  .countdown { position: fixed; z-index: 35; inset: 0; display: grid; place-items: center; pointer-events: none; font: italic 500 9rem/1 var(--font-display); color: var(--gold-hi); text-shadow: 0 6px 40px #000c; }
  .flash { position: fixed; z-index: 36; inset: 0; background: #fff8e8; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
  .flash.on { opacity: 1; transition: none; }
  .result { position: fixed; z-index: 34; inset: 0; background: #040a08f0; display: grid; place-items: center; padding: 16px; overflow-y: auto; touch-action: pan-y; }
  .result-in { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
  .result img { width: 100%; max-height: 64vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px -20px #000; -webkit-touch-callout: default; }
  .result .acts { display: flex; gap: 8px; flex-wrap: wrap; }
  .result .acts .btn { flex: 1 1 140px; }
  .panel { position: fixed; z-index: 28; inset: 0; background: #040a08e8; display: grid; place-items: center; padding: 16px; }
  .panel-in { width: 100%; max-width: 420px; border-radius: 22px; padding: 24px; display: grid; gap: 14px; max-height: 90vh; overflow-y: auto; touch-action: pan-y; }
  .panel-in input[type=file] { margin-top: 6px; width: 100%; color: var(--ink-soft); font-size: 0.85rem; }
  .lb { position: fixed; inset: 0; z-index: 40; background: #040a08f2; display: grid; place-items: center; padding: 20px; }
  .lb-body img, .lb-body video { max-width: min(92vw, 900px); max-height: 84vh; border-radius: 14px; display: block; border: 1px solid var(--gold); }
  .lb-x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: var(--panel); font-size: 1.4rem; cursor: pointer; }
  .nogl { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--bg); }
  /* ruang ganti bertab */
  .dress-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
  .tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 9px 10px 8px; border-radius: 14px; border: 1px solid var(--line); background: #0b1a16aa; cursor: pointer; font: 700 0.74rem/1 var(--font-body); color: var(--ink-soft); }
  .tabs button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
  .tabp { display: flex; flex-direction: column; gap: 14px; }
  .presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .preset { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #163029; cursor: pointer; display: flex; flex-direction: column; }
  .preset img, .preset .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: radial-gradient(circle at 50% 40%, #234a40, #163029); }
  .preset span { font: 700 0.74rem/1.2 var(--font-body); padding: 7px 4px 8px; color: var(--ink); text-align: center; }
  .preset[aria-pressed="true"] { border-color: var(--gold-hi); box-shadow: 0 0 0 2px var(--gold-hi); }
  .resThumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .resThumbs button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0b1a16; cursor: pointer; display: flex; flex-direction: column; }
  .resThumbs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
  .resThumbs span { font: 700 0.72rem/1 var(--font-body); padding: 6px 0 7px; }
  .resThumbs button[aria-pressed="true"] { border-color: var(--gold-hi); box-shadow: 0 0 0 2px var(--gold-hi); }
  .spont { position: fixed; z-index: 35; left: 50%; top: 18%; transform: translateX(-50%); font: italic 500 2rem/1 var(--font-display); color: var(--gold-hi); text-shadow: 0 4px 24px #000c; pointer-events: none; }
  @media (prefers-reduced-motion: reduce) { .start-card { animation: none; } .sheet, .toast, .flash, .letterbox { transition: none; } }
