/* Shared design tokens for Kynlee's Party Reel.
   Colors are overridden at runtime from /api/settings, but these are the
   dark-purple / pink / gold defaults so nothing flashes unstyled. */
:root {
  --bg: #1a0d22;
  --bg-2: #120817;
  --purple: #7c2fb0;
  --pink: #e85aa0;
  --gold: #f4c15a;
  --text: #f3ecf7;
  --muted: #b7a6c6;
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 255, 255, 0.05);
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* The hidden attribute must win over explicit display rules (flex/grid). */
[hidden] { display: none !important; }

/* Visually-hidden file input. NOT display:none, because iOS Safari refuses to
   open the photo picker for a display:none input. The wrapping <label> triggers it. */
.filepick {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); border: 0; opacity: 0;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* HARD RULE: never any side-to-side movement on mobile. No horizontal scroll or
   overscroll on any page, ever. Anything that bleeds past the edge gets clipped. */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
}

a { color: inherit; }

.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;
}

/* Focus visibility for keyboard users (admin + add pages) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
