:root {
  --bg: #0d0f13;
  --card: rgba(22, 24, 30, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ec;
  --muted: #a7a39c;
  --accent: #ff7a2f;
  --accent-grad: linear-gradient(135deg, #ff9a3c 0%, #ff5a2f 100%);
  --twitch: #9146ff;
  --good: #3ddc84;
  --bad: #ff5a5f;
  --font: 'Segoe UI Variable Display', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: var(--font); color: var(--text); background: var(--bg); }
body {
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(145, 70, 255, .28), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(255, 122, 47, .22), transparent 60%),
    linear-gradient(180deg, #12151b 0%, #0b0d10 100%);
  background-attachment: fixed;
}
a { color: #c9a7ff; }
.hidden { display: none !important; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 28px 20px 60px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.brand { font-size: 26px; font-weight: 800; letter-spacing: -.5px; text-decoration: none; color: var(--text); }
.brand span { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 6px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.who img, .avatar { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--twitch); background: var(--twitch); object-fit: cover; }

.hero { text-align: center; padding: 30px 0 46px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: .95; margin: 0 0 18px; font-weight: 900; letter-spacing: -2px; }
.hero h1 span { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.55; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.card h2 { margin: 0 0 8px; font-size: 22px; }
.card h3 { margin: 0 0 12px; font-size: 16px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.card p { color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.icon-big { font-size: 34px; margin-bottom: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 12px; border: 0;
  font: 700 15px var(--font); color: #fff; cursor: pointer; text-decoration: none; background: rgba(255,255,255,.1); transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn.twitch { background: var(--twitch); }
.btn.accent { background: var(--accent-grad); }
.btn.big { padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 46px; }
.step { padding: 18px; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }
.step b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.step .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 8px; }

label.f { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
input.f { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.35); color: var(--text); font: 15px var(--font); outline: none; }
input.f:focus { border-color: var(--twitch); }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 90px; }

.linkbox { display: flex; gap: 8px; align-items: center; background: rgba(145,70,255,.12); border: 1px solid rgba(145,70,255,.45); border-radius: 14px; padding: 8px 8px 8px 16px; }
.linkbox code { flex: 1; font-size: 16px; color: #e3d4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { flex: 1; min-width: 120px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.stat b { font-size: 22px; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); }
td .avatar { width: 26px; height: 26px; border-radius: 8px; vertical-align: middle; margin-right: 8px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #555; margin-right: 6px; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(61,220,132,.2); }
.empty { text-align: center; color: var(--muted); padding: 22px; }

.notice { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; line-height: 1.5; }
.notice.dev { background: rgba(255,210,122,.1); border: 1px solid rgba(255,210,122,.4); color: #ffd27a; }
.notice.err { background: rgba(255,90,95,.1); border: 1px solid rgba(255,90,95,.4); color: #ffb3b5; }
.notice.ok { background: rgba(61,220,132,.1); border: 1px solid rgba(61,220,132,.35); color: #a6f0c6; }

.join { max-width: 520px; margin: 30px auto 0; text-align: center; }
.join .streamer-avatar { width: 96px; height: 96px; border-radius: 26px; border: 3px solid var(--twitch); background: var(--twitch); object-fit: cover; margin-bottom: 14px; }
.join h1 { font-size: 34px; margin: 0 0 8px; }
.join p { color: var(--muted); line-height: 1.55; }
.rewards { display: flex; justify-content: center; gap: 14px; margin: 20px 0 26px; font-size: 18px; font-weight: 700; }
.rewards span { background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 8px 14px; border-radius: 12px; }
footer { text-align: center; color: #6f6b65; font-size: 12px; margin-top: 50px; }
