:root {
  --bg: #0e1016; --panel: #171a22; --panel2: #222632; --line: #2f3443; --text: #f4f5fa; --muted: #9ea2b8;
  --accent: #00c7b3; --gold: #ffe36b; --heart: #ff4d8d; --thumb: #4696ff; --theme: #338cff;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.phone { max-width: 480px; margin: 0 auto; padding: 18px 16px 40px; }
.top { display: flex; align-items: baseline; justify-content: space-between; }
h1 { font-size: 30px; letter-spacing: .02em; margin: 6px 0 14px; font-weight: 800; }
h2 { font-size: 26px; margin: 4px 0 6px; font-weight: 800; }
h3 { font-size: 17px; margin: 22px 0 10px; font-weight: 700; }
.me { color: var(--muted); font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.muted { color: var(--muted); } .small { font-size: 13px; } .hidden { display: none !important; }
.error { color: #ff7a8a; min-height: 1em; font-size: 14px; }
.okmsg { color: #4df2b0; }
.card { background: var(--panel); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 10px 0; }
.now { border-color: var(--theme); background: color-mix(in srgb, var(--theme) 22%, var(--panel)); }
.onair { color: var(--gold); font-size: 13px; letter-spacing: .06em; margin: 0; }
.artist { margin: 0; color: #d2d6f0; font-size: 15px; }
.about p { margin: 8px 0 0; font-size: 15px; line-height: 1.4; }
.banner { background: #3a2a10; border: 1px solid #8a6a2a; color: var(--gold); border-radius: 12px; padding: 10px 14px; margin: 6px 0; font-size: 14px; }
button { font: inherit; color: inherit; cursor: pointer; }
.link { background: none; border: 0; color: var(--muted); padding: 0; text-decoration: underline; }
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab { flex: 1; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.tab.on { border-color: var(--accent); }
label { display: block; font-size: 14px; color: var(--muted); margin: 8px 0; }
input { width: 100%; margin-top: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); font-size: 16px; }
input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.primary { width: 100%; margin-top: 10px; background: var(--accent); color: #031210; border: 0; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 16px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; padding: 0; }
.swatch.on { border-color: #fff; }
.votes { display: grid; gap: 8px; }
.vote { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: left; }
.vote .bar { position: absolute; inset: 0 auto 0 0; background: #3b6fd8; opacity: .38; z-index: 0; transition: width .4s; }
.vote span { position: relative; z-index: 1; }
.vote.mine { border-color: var(--accent); }
.msg { display: flex; gap: 8px; }
.msg input { margin: 0; }
.send { background: var(--accent); color: #031210; border: 0; border-radius: 12px; padding: 0 18px; font-weight: 700; }
.reacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.react { display: flex; align-items: center; gap: 12px; background: var(--panel2); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.react img { width: 34px; height: 34px; }
.react span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; min-width: 0; }
.react small { color: var(--muted); font-size: 13px; }
.react b { font-size: 19px; font-variant-numeric: tabular-nums; }
.react:active { transform: scale(.97); border-color: #fff; }
.wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wall li { background: var(--panel); border-radius: 12px; padding: 10px 12px; font-family: "Chalkboard SE", "Comic Neue", "Segoe Print", sans-serif; }
.wall b { color: #8cd9ff; font-weight: 700; margin-right: 6px; }
footer { margin-top: 26px; text-align: center; }
.fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.fly { position: absolute; width: 34px; height: 34px; animation: fly 1.6s ease-out forwards; }
@keyframes fly {
  0% { transform: translate(0, 0) scale(.6); opacity: 1; }
  100% { transform: translate(var(--dx), -320px) scale(1.2) rotate(var(--rot)); opacity: 0; }
}
