:root {
  /* Background */
  --bg: #1a1a1b;

  /* Text */
  --text: #eef0f4;
  --text-2: #c7ccd6;
  --muted: #aab1bd;
  --heading: #9c9ea2;

  /* Twitch Brand */
  --twitch: #9146FF;
  --twitch-2: #B69CFF;
  --twitch-rgb: 145, 70, 255;
  --twitch-2-rgb: 182, 156, 255;

  /* Focus ring */
  --focus: rgba(255,123,144,0.46);
}

/* -------- Base -------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: #101011;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

/* -------- Layout -------- */
.tbp {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 34px);
  isolation: isolate;
}

/* Hintergrund: modern, „premium", ohne Text-Overload */
.tbp__bg {
  position: fixed !important;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 18% 22%, rgba(var(--twitch-rgb), 0.26), transparent 55%),
    radial-gradient(900px 600px at 82% 28%, rgba(255,147,164,0.12), transparent 60%),
    radial-gradient(800px 520px at 50% 100%, rgba(74,184,226,0.08), transparent 55%),
    linear-gradient(180deg, #141415, var(--bg) 55%, #101011);
}

/* Subtiles Grid + Noise für Tiefe */
.tbp__grid {
  position: fixed !important;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(520px 420px at 50% 36%, #000 58%, transparent 100%);
  pointer-events: none;
}

.tbp__noise {
  position: fixed !important;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Floating accent shapes */
.tbp__orb {
  position: fixed !important;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  transform: translate3d(0,0,0);
  animation: tbpFloat 8s ease-in-out infinite;
}

.tbp__orb--a {
  width: 360px; height: 360px;
  left: -120px; top: 14%;
  background: radial-gradient(circle at 35% 35%, rgba(var(--twitch-rgb), 0.95), rgba(var(--twitch-rgb), 0.08) 60%, transparent 68%);
  animation-duration: 9s;
}

.tbp__orb--b {
  width: 320px; height: 320px;
  right: -140px; top: 18%;
  background: radial-gradient(circle at 45% 45%, rgba(var(--twitch-2-rgb), 0.55), rgba(var(--twitch-2-rgb), 0.06) 60%, transparent 70%);
  animation-duration: 11s;
  animation-delay: -2s;
}

.tbp__orb--c {
  width: 420px; height: 420px;
  left: 50%; bottom: -220px;
  translate: -50% 0;
  background: radial-gradient(circle at 50% 40%, rgba(74,184,226,0.25), rgba(74,184,226,0.04) 62%, transparent 72%);
  animation-duration: 10s;
  animation-delay: -4s;
}

@keyframes tbpFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.02); }
}

/* -------- Card -------- */
.tbp-card {
  width: min(520px, 100%);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,0,0,0.35) inset;
  overflow: hidden;
  position: relative;
}

/* Inner glass surface */
.tbp-card__inner {
  padding: clamp(18px, 3.2vw, 28px);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(var(--twitch-rgb), 0.18), transparent 55%),
    radial-gradient(700px 460px at 80% 0%, rgba(255,147,164,0.10), transparent 60%),
    linear-gradient(180deg, rgba(32,33,34,0.90), rgba(26,26,27,0.86));
  border-radius: 22px;
}

/* Top highlight border */
.tbp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02), rgba(var(--twitch-rgb), 0.14));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

/* -------- Header -------- */
.tbp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tbp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tbp-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 58%),
    linear-gradient(180deg, rgba(var(--twitch-rgb), 0.72), rgba(var(--twitch-rgb), 0.22));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 16px 40px rgba(var(--twitch-rgb), 0.18),
    0 0 0 1px rgba(0,0,0,0.35) inset;
  flex: 0 0 auto;
}

.tbp-mark svg {
  width: 22px;
  height: 22px;
  fill: var(--text);
  opacity: 0.95;
}

.tbp-brand__text {
  min-width: 0;
}

.tbp-brand__text strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbp-brand__text span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tbp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  color: var(--text-2);
  font-size: 12px;
  flex: 0 0 auto;
  user-select: none;
}

.tbp-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--twitch);
  box-shadow: 0 0 0 3px rgba(var(--twitch-rgb), 0.18);
}

/* -------- Content -------- */
.tbp-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.tbp-title em {
  font-style: normal;
  color: var(--twitch-2);
  text-shadow: 0 0 26px rgba(255,147,164,0.20);
}

.tbp-sub {
  margin: 10px 0 18px 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  max-width: 60ch;
}

/* -------- Button -------- */
.tbp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.16), transparent 56%),
    linear-gradient(180deg, rgba(var(--twitch-rgb), 0.82), rgba(var(--twitch-rgb), 0.34));
  box-shadow:
    0 18px 46px rgba(var(--twitch-rgb), 0.22),
    0 0 0 1px rgba(0,0,0,0.35) inset;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.tbp-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 24px 64px rgba(var(--twitch-rgb), 0.30),
    0 0 0 1px rgba(0,0,0,0.35) inset;
}

.tbp-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.tbp-btn:focus-visible {
  box-shadow:
    0 0 0 3px var(--focus),
    0 24px 64px rgba(var(--twitch-rgb), 0.30),
    0 0 0 1px rgba(0,0,0,0.35) inset;
}

.tbp-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.95;
}

.tbp-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 12px;
}

.tbp-foot__mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.12);
  color: var(--text-2);
}

.tbp-foot__link {
  color: inherit;
  text-decoration: none;
}

.tbp-foot__link:hover {
  opacity: 0.92;
}

.tbp-foot__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
  border-radius: 8px;
}

.tbp-foot__mini code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--text);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
  .tbp__orb { animation: none; }
  .tbp-btn { transition: none; }
}

