/* Konsep: aula walimah putih gading dalam ruangan. Marmer putih, lengkung iwan,
     kisi-kisi masyrabiyah emas lembut, dan tabir yang memisahkan area ikhwan dan akhwat.
     Avatar tanpa wajah, tanpa musik, foto bareng diganti Kartu Doa. Satu tema terang,
     jadi semua warna ditetapkan eksplisit. */
  :root {
    color-scheme: light;
    --bg: #f7f3ec; --ink: #2b2620; --ink-soft: #6d6457; --line: #b08a3e3d;
    --panel: #fffdf9eb; --panel-2: #f3ede3; --gold: #b08a3e; --gold-hi: #d6b46a; --gold-deep: #8a6a2a; --gold-lite: #e2c47e;
    --sage: #7d8c73; --on-gold: #2a1f0c; --field: #fffefb;
    --acc: #2f6b57; --acc-deep: #1f4c3e; --acc-soft: #d3e4db;
    --font-display: 'Cormorant Garamond', 'Garamond', 'Times New Roman', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'DM Mono', ui-monospace, Menlo, monospace;
    --font-ar: 'Amiri', 'Traditional Arabic', serif;
    --motif-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23b08a3e' stroke-opacity='.11' stroke-width='1'%3E%3Ccircle cx='26' cy='32' r='6'/%3E%3Ccircle cx='38' cy='32' r='6'/%3E%3Ccircle cx='32' cy='26' r='6'/%3E%3Ccircle cx='32' cy='38' r='6'/%3E%3Ccircle cx='32' cy='32' r='2.6'/%3E%3Cpath d='M0 32h14M50 32h14M32 0v14M32 50v14'/%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); outline-offset: 3px; }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; 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-deep); margin: 0; }
  .soft { color: var(--ink-soft); }

  .btn { appearance: none; border: 0; cursor: pointer; font: 700 0.9rem/1 var(--font-body); letter-spacing: 0.02em; padding: 15px 26px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-lite), var(--gold-hi)); color: var(--on-gold); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 10px 26px -14px #8a6a2a99, inset 0 1px 0 #fff8; }
  .btn.ghost { background: var(--field); color: var(--ink); border: 1px solid var(--gold); box-shadow: none; }
  .btn.sm { padding: 10px 16px; font-size: 0.82rem; }
  .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(--motif-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 50px -30px #5a4520aa; }
  .lux::before { content: ''; position: absolute; left: 50%; top: -10px; width: 30px; height: 18px; margin-left: -15px; background: var(--bg); border: 1px solid var(--gold); border-bottom: 0; border-radius: 30px 30px 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: var(--field); 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% 46%, #fbf8f2b3 0%, #f7f3ecdd 55%, #f7f3ecf5 100%); overflow-y: auto; }
  .start-card { width: 100%; max-width: 470px; text-align: center; display: flex; flex-direction: column; gap: 11px; align-items: center; animation: rise 1.6s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
  .basmalah { font: 400 clamp(1.5rem, 6vw, 2rem)/1.6 var(--font-ar); color: var(--gold-deep); direction: rtl; }
  .start h1 { font-size: clamp(3.2rem, 15vw, 5.2rem); font-style: italic; font-weight: 500; color: var(--ink); }
  .start h1 .amp { display: block; font-size: 0.42em; color: var(--gold); margin-block: 0.05em; }
  .orn { width: 180px; height: 26px; display: block; color: var(--gold); }
  .start .date { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
  .start .hijri { font: 500 0.74rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
  .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: 36ch; }
  .start .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
  .badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
  .badges span { font: 500 0.64rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); border: 1px solid #7d8c7366; border-radius: 99px; padding: 6px 10px; background: #ffffffaa; }
  .letterbox { position: fixed; left: 0; right: 0; height: 6vh; background: #f7f3ec; 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 ganti ---------- */
  .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: 2rem; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
  .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-hi); 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: var(--field); 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.15rem; line-height: 1.15; font-weight: 600; }
  .opt small { font-size: 0.74rem; line-height: 1.35; color: var(--ink-soft); }
  .opt[aria-pressed="true"] { border-color: var(--gold); background: #ffffff; 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: var(--field); border-radius: 999px; padding: 9px 14px; cursor: pointer; font: 700 0.82rem/1 var(--font-body); }
  .pills button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-hi); 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 #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; }
  .sw button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold); }
  .swname { color: var(--ink); }
  .info { font-size: 0.82rem; color: var(--ink-soft); border-left: 2px solid var(--sage); padding: 2px 0 2px 10px; }
  .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, #fffdf900, #fffdf9 30%); }
  .dress .go .btn { width: 100%; }
  .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: 70px; padding: 9px 10px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); 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-hi); 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: var(--panel-2); 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%, #ffffff, #efe7da); }
  .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); box-shadow: 0 0 0 2px var(--gold); }

  /* ---------- 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; }
  .hud-l { display: flex; gap: 6px; align-items: center; min-width: 0; }
  .pill { pointer-events: auto; border-radius: 999px; padding: 9px 13px; font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
  .pill::before { display: none; }
  .pill b { color: var(--gold-deep); font-weight: 500; }
  .pill.area { color: var(--sage); }
  .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; }
  .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: 9px; 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-deep); }

  .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, #ffffff66 40%, #fffdf9dd 72%); border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px #ffffff88, inset 0 0 0 7px var(--line), 0 10px 30px -18px #5a4520; }
  .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%, #f2dfaa, var(--gold-hi) 55%, var(--gold)); box-shadow: 0 8px 18px #5a452055, inset 0 -3px 6px #0002; }
  .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-deep); 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: #fffdf9e6; 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: 22%; 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.8rem; color: var(--gold-deep); 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: var(--field); 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(2rem, 7vw, 2.6rem); padding-right: 40px; }
  .ar { font-family: var(--font-ar); font-size: clamp(1.35rem, 5vw, 1.85rem); line-height: 2.1; direction: rtl; text-align: center; color: var(--ink); }
  cite { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); font-style: normal; }
  .lead { font-family: var(--font-display); font-size: 1.22rem; font-style: italic; line-height: 1.45; }
  .next { align-self: stretch; }
  .cta { align-self: stretch; padding-block: 17px; font-size: 0.98rem; }
  .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: 150px; border-radius: 999px 999px 14px 14px; border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px var(--field), 0 0 0 5px var(--line); background: var(--panel-2) var(--motif-bg); display: grid; place-items: center; }
  .arch span { font: italic 600 3.4rem/1 var(--font-display); color: var(--gold-deep); }
  .pair h3 { font-size: 1.35rem; overflow-wrap: anywhere; }
  .pair .role { font: 500 0.64rem/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
  .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: var(--field); }
  .tick output { display: block; font: 600 clamp(2rem, 8.5vw, 2.7rem)/1 var(--font-display); color: var(--gold-deep); 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: var(--field); }
  .event h3 { font-size: 1.65rem; }
  .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; }
  .note { border: 1px dashed var(--gold); border-radius: 14px; padding: 12px 14px; font-size: 0.92rem; background: #fffefbcc; }
  .adab { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .adab li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
  .adab li::before { content: ''; flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; border: 1.5px solid var(--gold); }
  .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: #fffdf9e6; 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.86rem/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--field); }
  .choice input:checked + span { background: var(--gold-hi); border-color: var(--gold); color: var(--on-gold); }
  .choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
  .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: var(--field); }
  .wishes b { display: block; }
  .gift { border: 1px solid var(--gold); border-radius: 18px; padding: 18px; display: grid; gap: 4px; background: linear-gradient(135deg, #fffefb, #f3ead8); }
  .gift .no { font: 500 1.4rem/1.3 var(--font-mono); letter-spacing: 0.05em; user-select: all; overflow-wrap: anywhere; color: var(--gold-deep); }

  /* ---------- kartu doa ---------- */
  .result { position: fixed; z-index: 34; inset: 0; background: #f7f3ecf5; display: grid; place-items: center; padding: 16px; overflow-y: auto; touch-action: pan-y; }
  .result-in { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
  .result img { width: 100%; max-height: 66vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 60px -26px #5a4520; -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: #f7f3ecee; 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: #f7f3ecf7; 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); }
  /* warna pendamping (palet) */
  .start h1 { color: var(--acc-deep); }
  .start .hijri, .eyebrow { color: var(--acc); }
  .badges span { color: var(--acc-deep); border-color: color-mix(in srgb, var(--acc) 45%, transparent); background: color-mix(in srgb, var(--acc-soft) 70%, #fff); }
  .seg button[aria-pressed="true"], .pills button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--acc-deep); border-color: var(--acc-deep); color: #fffaf0; }
  .opt[aria-pressed="true"] { border-color: var(--acc); background: color-mix(in srgb, var(--acc-soft) 55%, #fff); box-shadow: inset 0 0 0 1px var(--acc); }
  .preset[aria-pressed="true"] { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
  .chip::before { border-color: var(--acc); } .chip.done::before { background: var(--acc); } .chip.hl { border-color: var(--acc); color: var(--acc-deep); }
  .pill b { color: var(--acc-deep); } .pill.area { color: #fffaf0; background: var(--acc-deep); border-color: var(--acc-deep); }
  .sheet h2, .dress h2 { color: var(--acc-deep); }
  .tick { background: color-mix(in srgb, var(--acc-soft) 45%, #fff); } .tick output { color: var(--acc-deep); }
  .arch { background-color: var(--acc-soft); } .arch span { color: var(--acc-deep); }
  .event { border-left: 4px solid var(--acc); }
  .gift { background: linear-gradient(135deg, var(--acc-deep), var(--acc)); color: #fffaf0; border-color: var(--gold-hi); }
  .gift .eyebrow, .gift .soft { color: var(--gold-lite); } .gift .no { color: #fffaf0; }
  .gift .btn.ghost { background: transparent; color: #fffaf0; border-color: var(--gold-hi); }
  .choice input:checked + span { background: var(--acc-deep); border-color: var(--acc-deep); color: #fffaf0; }
  .adab li::before { border-color: var(--acc); }
  .note { border-color: var(--acc); }
  .joy { border-color: var(--acc); } .joy .t1 { border-bottom-color: var(--acc); } .joy .t2 { border-top-color: var(--acc); } .joy .t3 { border-right-color: var(--acc); } .joy .t4 { border-left-color: var(--acc); }
  .cam .view { border-color: var(--acc); } .cam .view svg { stroke: var(--acc-deep); }
  .lux::before { border-color: var(--acc); }
  .palpick { display: flex; gap: 8px; flex-wrap: wrap; }
  .palpick button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--field); border-radius: 999px; padding: 7px 12px 7px 7px; cursor: pointer; font: 700 0.8rem/1 var(--font-body); }
  .palpick button i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #b08a3e66; }
  .palpick button[aria-pressed="true"] { border-color: var(--acc-deep); box-shadow: 0 0 0 1px var(--acc-deep); }
  @media (prefers-reduced-motion: reduce) { .start-card { animation: none; } .sheet, .toast, .letterbox { transition: none; } }
