:root {
  --bg: #0f0e0d;
  --surface: #1a1816;
  --surface-2: #24211e;
  --line: #34302b;
  --text: #f3ede4;
  --muted: #a39a8e;
  --accent: #ff7a45;
  --accent-2: #ffb35c;
  --accent-ink: #1a0f08;
  --danger: #ff5d5d;
  --ok: #6fd39a;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand b { font-family: var(--serif); font-size: 20px; }
.brand b span { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 600;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #4a443d; background: #2c2824; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger:hover { color: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 13px; }

.muted { color: var(--muted); }
.stars { color: var(--accent-2); letter-spacing: 2px; }
.stars .off { color: #4a443d; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--surface-2); border: 1px solid var(--line); padding: 10px 18px;
  border-radius: 999px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: var(--danger); }

/* Universal design */
html { -webkit-text-size-adjust: 100%; }
.btn { min-height: 44px; }
.btn.sm { min-height: 36px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.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; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; }
.notice h2 { font-size: 20px; margin-bottom: 6px; }
.notice p { margin: 0; }
