:root {
  --bg0: #1c0608; --bg1: #2a0a0e; --red: #e11d48; --red2: #be123c;
  --gold: #f5c542; --gold2: #d4a017; --cream: #fff7ed; --muted: #e7c9b0;
  --line: rgba(245, 197, 66, 0.35); --glass: rgba(40, 10, 14, 0.78);
  --ok: #4ade80; --bad: #fb7185;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg0); color: var(--cream); font-family: "Outfit", sans-serif; -webkit-tap-highlight-color: transparent; }
body {
  background:
    radial-gradient(100% 70% at 50% -10%, rgba(225, 29, 72, 0.45), transparent 55%),
    radial-gradient(80% 50% at 100% 40%, rgba(245, 197, 66, 0.18), transparent 50%),
    linear-gradient(165deg, #1c0608 0%, #2a0a0e 50%, #140406 100%);
  background-attachment: fixed;
}
#salon { max-width: 480px; margin: 0 auto; min-height: 100dvh; padding: calc(12px + var(--safe-t)) 16px calc(150px + var(--safe-b)); position: relative; }
.marquee { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: inherit; padding: 0; cursor: pointer; text-align: left; }
.brand img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.55)); }
.brand em { display: block; font-family: "Bebas Neue", sans-serif; font-style: normal; font-size: 1.55rem; line-height: 1;
  background: linear-gradient(90deg, #fff7ed, #f5c542, #e11d48); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand strong { display: block; font-weight: 600; font-size: 0.78rem; color: var(--muted); }
.gear { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); padding: 7px; cursor: pointer; }
.gear img { width: 100%; height: 100%; object-fit: contain; }
.pane { animation: rise 0.28s ease; }
.pane.off { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 0 0 4px; font-size: 0.72rem; text-transform: uppercase; color: var(--gold); font-weight: 600; }
h1 { margin: 0 0 8px; font-family: "Bebas Neue", sans-serif; font-size: 2.2rem; line-height: 1; color: var(--cream); }
.lede { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.leader-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.4), rgba(245, 197, 66, 0.18));
  border: 1px solid rgba(245, 197, 66, 0.45); box-shadow: 0 0 28px rgba(225, 29, 72, 0.25); }
.leader-card.soft { background: linear-gradient(135deg, rgba(245, 197, 66, 0.2), rgba(225, 29, 72, 0.2)); }
.leader-card img, .leader-crown { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.5)); animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.leader-card small { color: var(--muted); font-size: 0.75rem; }
.leader-card b { display: block; font-family: "Bebas Neue", sans-serif; font-size: 1.6rem; margin: 2px 0 4px; }
.meta { font-size: 0.8rem; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.chip-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); text-align: center; }
.chip-stat img { width: 36px; height: 36px; object-fit: contain; }
.chip-stat small { color: var(--muted); font-size: 0.68rem; }
.chip-stat b { display: block; font-family: "Bebas Neue", sans-serif; font-size: 1.35rem; }
.gold-btn, .ghost, .back { font: inherit; cursor: pointer; border-radius: 14px; padding: 12px 16px; }
.gold-btn { border: 0; color: #1c0608; font-weight: 700; background: linear-gradient(120deg, #f5c542, #fff7ed 40%, #e11d48 90%); background-size: 180% 180%; box-shadow: 0 0 18px rgba(245, 197, 66, 0.45); margin-bottom: 14px; animation: sheen 5s ease infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ghost { border: 1px solid var(--line); background: transparent; color: var(--cream); }
.ghost.danger { border-color: rgba(251, 113, 133, 0.5); color: var(--bad); margin-top: 12px; }
.back { border: 0; background: transparent; color: var(--gold); padding: 0 0 12px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.8rem; }
.field em { font-style: normal; opacity: 0.7; }
.field input, .field select, .field textarea, .filter-row select { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: rgba(20, 4, 6, 0.9); color: var(--cream); padding: 12px 14px; font: inherit; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.2); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.row-actions .gold-btn { margin-bottom: 0; }
.filter-row { margin-bottom: 12px; }
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.card { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%; }
.card:active { transform: scale(0.99); }
.card .title { font-weight: 600; }
.card .amt { font-family: "Bebas Neue", sans-serif; font-size: 1.2rem; color: var(--gold); }
.card .sub { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; }
.card .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.card .bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.vote-stack { display: flex; flex-direction: column; gap: 12px; }
.vote-card { padding: 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.vote-card h3 { margin: 0 0 4px; font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; font-weight: 400; }
.vote-card p { margin: 0 0 12px; color: var(--muted); font-size: 0.85rem; }
.vote-actions { display: flex; gap: 10px; }
.vote-actions button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--cream); font: inherit; font-weight: 600; padding: 12px; cursor: pointer; }
.vote-actions button img { width: 28px; height: 28px; object-fit: contain; }
.vote-actions button.on-like { border-color: rgba(74, 222, 128, 0.55); box-shadow: 0 0 14px rgba(74, 222, 128, 0.25); }
.vote-actions button.on-dislike { border-color: rgba(251, 113, 133, 0.55); box-shadow: 0 0 14px rgba(251, 113, 133, 0.25); }
.settings-card { margin-top: 8px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.settings-card p { margin: 0 0 6px; font-weight: 600; }
.settings-card small { color: var(--muted); display: block; margin-bottom: 8px; }
.empty { padding: 22px 14px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.wheel { position: fixed; z-index: 50; left: 50%; bottom: calc(10px + var(--safe-b)); width: 280px; height: 140px; transform: translateX(-50%); pointer-events: none; }
.wheel-chip, .fab { pointer-events: auto; position: absolute; border: 0; cursor: pointer; color: var(--cream); font: inherit; }
.wheel-chip { width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a1016, #1c0608 70%); border: 2px solid var(--gold2); box-shadow: 0 0 12px rgba(245, 197, 66, 0.35), inset 0 0 10px rgba(225, 29, 72, 0.25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; left: 50%; bottom: 18px; --angle: calc(-90deg + (var(--i) * 36deg)); transform: translate(-50%, 0) rotate(var(--angle)) translateY(-88px) rotate(calc(-1 * var(--angle))); }
.wheel-chip img { width: 22px; height: 22px; object-fit: contain; }
.wheel-chip span { font-size: 0.52rem; font-weight: 600; color: var(--gold); text-transform: uppercase; }
.wheel-chip.active { border-color: var(--gold); box-shadow: 0 0 18px rgba(225, 29, 72, 0.55), 0 0 10px rgba(245, 197, 66, 0.5); background: radial-gradient(circle at 35% 30%, #be123c, #1c0608 75%); }
.fab { left: 50%; bottom: 8px; transform: translateX(-50%); width: 68px; height: 68px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7ed, #f5c542 40%, #e11d48 100%); box-shadow: 0 0 0 4px rgba(28, 6, 8, 0.9), 0 0 24px rgba(245, 197, 66, 0.7), 0 0 36px rgba(225, 29, 72, 0.45); display: flex; align-items: center; justify-content: center; animation: orb 2.6s ease-in-out infinite; }
.fab img { width: 34px; height: 34px; object-fit: contain; opacity: 0.9; }
.fab span { position: absolute; font-size: 1.6rem; font-weight: 700; color: #1c0608; }
@keyframes orb { 0%, 100% { box-shadow: 0 0 0 4px rgba(28, 6, 8, 0.9), 0 0 24px rgba(245, 197, 66, 0.7), 0 0 36px rgba(225, 29, 72, 0.45); } 50% { box-shadow: 0 0 0 4px rgba(28, 6, 8, 0.9), 0 0 32px rgba(245, 197, 66, 0.9), 0 0 48px rgba(225, 29, 72, 0.6); } }
@media (max-width: 380px) {
  h1 { font-size: 1.9rem; }
  .wheel { width: 260px; }
  .wheel-chip { width: 52px; height: 52px; transform: translate(-50%, 0) rotate(var(--angle)) translateY(-80px) rotate(calc(-1 * var(--angle))); }
}
