:root {
  color-scheme: light dark;
  --bg: #111416;
  --bg-soft: #1d302c;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.13);
  --text: #f5f2ec;
  --muted: #c8c2b8;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #83c5be;
  --accent-2: #f4a261;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(131, 197, 190, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(244, 162, 97, 0.2), transparent 24%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
main {
  width: min(1100px, calc(100% - 1.5rem));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2rem 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1 {
  margin: 0;
  line-height: 0.95;
}
.hero-title {
  font-size: 4.8rem;
  line-height: 0.92;
  font-weight: 900;
  color: var(--text);
  text-wrap: balance;
}
.hero-title span {
  display: block;
  color: var(--accent);
}
h2 {
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
p { color: var(--muted); line-height: 1.6; }
.actions, .provider-grid {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.login-panel {
  display: grid;
  align-content: center;
  gap: 1rem;
  background:
    linear-gradient(145deg, rgba(131, 197, 190, 0.16), transparent 46%),
    var(--surface);
}
.login-copy {
  margin: 0;
  max-width: 26rem;
}
.provider-grid {
  display: grid;
  gap: 0.75rem;
}
.provider-button {
  min-height: 3.25rem;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0 0.95rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}
.provider-mark {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.provider-text {
  display: grid;
  gap: 0.1rem;
  text-align: left;
}
.provider-label {
  font-size: 0.95rem;
  line-height: 1.1;
}
.provider-hint {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  line-height: 1.1;
}
.button-secondary .provider-hint {
  color: rgba(255, 255, 255, 0.76);
}
.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 1rem;
  background: var(--accent);
  color: #10201d;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
}
.button:hover,
.button:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.provider-twitch {
  background:
    linear-gradient(135deg, #9146ff, #772ce8);
  color: #ffffff;
  border-color: rgba(190, 160, 255, 0.58);
}
.provider-twitch:hover,
.provider-twitch:focus {
  background:
    linear-gradient(135deg, #a970ff, #9146ff);
  border-color: rgba(217, 198, 255, 0.72);
}
.provider-discord {
  background:
    linear-gradient(135deg, #5865f2, #4752c4);
  color: #ffffff;
  border-color: rgba(169, 176, 255, 0.58);
}
.provider-discord:hover,
.provider-discord:focus {
  border-color: rgba(202, 206, 255, 0.72);
  background:
    linear-gradient(135deg, #6f7af5, #5865f2);
}
.button[aria-disabled="true"] {
  opacity: 0.48;
  pointer-events: none;
}
.tree-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.tree-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-strong);
}
.note { font-size: 0.9rem; }
.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus {
  color: var(--text);
  text-decoration: underline;
}
code { color: var(--text); }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-title {
    max-width: 12ch;
    font-size: 3.2rem;
    line-height: 0.96;
  }
}