/* FUJIFILM × Diwali — deep red, gold, obsidian glass */
@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --red-900: #4a0000; --red-800: #6b0000; --red: #8b0000; --red-600: #990000; --red-500: #b3121b;
  --gold: #ffd700; --gold-2: #f5c542; --amber: #ffb347; --gold-soft: rgba(255, 215, 0, .14);
  --ink: #120a08; --card: rgba(22, 10, 8, .62); --card-2: rgba(40, 16, 12, .55);
  --line: rgba(255, 215, 0, .18); --text: #fff7e6; --muted: rgba(255, 239, 214, .66); --faint: rgba(255, 239, 214, .42);
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171;
  --radius: 18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255, 179, 71, .22), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(179, 18, 27, .55), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(255, 215, 0, .10), transparent 60%),
    linear-gradient(160deg, #3a0204 0%, #1a0505 45%, #0d0605 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
/* faint rangoli dots */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255, 215, 0, .07) 1px, transparent 1.4px); background-size: 26px 26px; }
#fx, #sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sparkles { z-index: 1; } #fx { z-index: 60; }
.page { position: relative; z-index: 2; }
a { color: var(--gold); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.gold-text {
  background: linear-gradient(180deg, #fff6c8 0%, #ffd700 45%, #e2a400 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 196, 0, .35));
}
.glass {
  background: linear-gradient(160deg, rgba(60, 20, 14, .55), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 240, 200, .08);
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line);
  background: rgba(255, 240, 210, .06); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  transition: background .2s, transform .1s, border-color .2s; text-decoration: none; color: var(--text); white-space: nowrap; }
.btn:hover { background: rgba(255, 240, 210, .12); border-color: rgba(255, 215, 0, .4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: linear-gradient(180deg, #ffe066, #f5b700); color: #3a0a00; border-color: #ffd700; box-shadow: 0 6px 20px rgba(255, 190, 0, .3); }
.btn-gold:hover { background: linear-gradient(180deg, #fff08a, #ffc61a); }
.btn-danger { color: #ffd0d0; border-color: rgba(248, 113, 113, .4); }
.btn-ghost { background: none; border-color: transparent; }
.btn-sm { padding: 6px 10px; font-size: .82rem; border-radius: 9px; }

.input, select.input { width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 215, 0, .15); }
label.field { display: grid; gap: 6px; font-size: .84rem; color: var(--muted); font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(255, 215, 0, .25); }
.badge.ok { background: rgba(74, 222, 128, .12); color: var(--ok); border-color: rgba(74, 222, 128, .3); }
.badge.bad { background: rgba(248, 113, 113, .12); color: var(--bad); border-color: rgba(248, 113, 113, .3); }
.badge.muted { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: rgba(255, 255, 255, .1); }

/* Toasts */
#toasts { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { padding: 13px 16px; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  background: #2a0d09; border: 1px solid var(--line); animation: toast-in .35s cubic-bezier(.2, 1.4, .4, 1); display: flex; gap: 10px; align-items: flex-start; }
.toast.error { border-color: rgba(248, 113, 113, .55); background: #3a0b0b; }
.toast.success { border-color: rgba(74, 222, 128, .5); }
.toast.leave { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in { from { transform: translateY(20px) scale(.96); opacity: 0; } }
@keyframes toast-out { to { transform: translateX(30px); opacity: 0; } }

/* Diya flicker used in headers */
.diya { width: 34px; height: 34px; flex: none; }
.diya .flame { transform-origin: 50% 90%; animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 40% { transform: scale(1.08, .94) rotate(3deg); } 70% { transform: scale(.95, 1.06) rotate(-1deg); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }
