﻿/* Streamer, OBS and Mimic-only styles. Keep separated from the public website/dashboard CSS. */

/* =========================
   STREAMER AREA
========================= */

.streamer-page {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 79, 138, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(86, 122, 195, 0.14), transparent 28%),
    linear-gradient(180deg, #090c12 0%, #06080d 100%);
}

.streamer-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.streamer-hero-card {
  background:
    radial-gradient(circle at top right, rgba(255, 79, 138, 0.1), transparent 28%),
    linear-gradient(180deg, #111723 0%, #0b1119 100%);
  border: 1px solid rgba(122, 140, 184, 0.2);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.streamer-game-hero {
  border-color: color-mix(in srgb, var(--streamer-accent) 30%, rgba(122, 140, 184, 0.18));
}

.streamer-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.streamer-hero-top h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 0.94;
}

.streamer-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  padding: 10px 14px;
  background: rgba(14, 20, 31, 0.88);
  border: 1px solid rgba(122, 140, 184, 0.18);
  border-radius: 16px;
}

.streamer-user-pill img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.streamer-user-pill strong,
.streamer-mini-moderator-box strong,
.streamer-player-top strong {
  display: block;
  color: var(--text);
}

.streamer-user-pill span,
.streamer-mini-moderator-box span,
.streamer-player-top span {
  color: var(--muted);
  font-size: 14px;
}

.streamer-hero-actions,
.streamer-game-actions,
.streamer-round-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.streamer-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.streamer-game-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(122, 140, 184, 0.18);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--streamer-accent) 14%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(17, 23, 35, 0.98) 0%, rgba(9, 14, 22, 0.98) 100%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.streamer-game-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--streamer-accent) 36%, rgba(122, 140, 184, 0.18));
}

.streamer-game-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.streamer-game-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.025em;
}

.streamer-game-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.streamer-dashboard-hero {
  padding: 22px;
  background:
    radial-gradient(circle at 86% 0%, color-mix(in srgb, var(--streamer-accent) 18%, transparent), transparent 32%),
    radial-gradient(circle at 4% 0%, rgba(62, 240, 232, 0.08), transparent 24%),
    linear-gradient(180deg, #111723 0%, #080d15 100%);
}

.streamer-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.streamer-dashboard-hero .streamer-hero-actions {
  margin-top: 0;
}

.streamer-dashboard-stats div {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(122, 140, 184, 0.16);
  background: rgba(8, 13, 21, 0.68);
}

.streamer-dashboard-stats span,
.streamer-account-name span,
.streamer-camera-state {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.streamer-dashboard-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.streamer-game-card-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.streamer-game-logo-wrap {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  border: 1px solid rgba(122, 140, 184, 0.18);
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--streamer-accent) 18%, transparent), transparent 62%),
    rgba(8, 13, 21, 0.72);
}

.streamer-game-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.28));
}

.streamer-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.streamer-game-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  border-radius: 999px;
  background: rgba(8, 13, 21, 0.58);
  color: #c9d5ea;
  font-size: 13px;
  font-weight: 800;
}

.streamer-account-panel {
  --streamer-accent: #54c7ff;
}

.streamer-account-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.streamer-password-list {
  padding: 20px;
  border-color: rgba(122, 140, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(84, 199, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(17, 23, 35, 0.98), rgba(9, 14, 22, 0.98));
}

.streamer-password-list .section-header-inline {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(122, 140, 184, 0.12);
}

.streamer-password-list h2 {
  margin-bottom: 4px;
}

.streamer-account-table {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.streamer-password-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.8fr) 140px auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(122, 140, 184, 0.13);
  border-radius: 16px;
  background: rgba(8, 13, 21, 0.56);
}

.streamer-account-name strong {
  display: block;
  color: var(--text);
}

.streamer-account-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.streamer-account-avatar {
  display: inline-grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(79, 155, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79, 155, 255, 0.28), rgba(214, 76, 255, 0.18));
  color: #dbeafe;
  font-weight: 900;
  object-fit: cover;
}

.streamer-password-row code {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: #dbeafe;
  word-break: break-all;
}

.streamer-camera-state {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  font-weight: 800;
}

.streamer-vdo-mini {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.streamer-vdo-mini a {
  color: #9cc6ff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.streamer-vdo-mini small {
  color: #8ea7cf;
  font-size: 0.78rem;
  font-weight: 800;
  word-break: break-all;
}

.streamer-vdo-link-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(79, 155, 255, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(32, 223, 201, 0.1), transparent 34%),
    rgba(8, 13, 21, 0.62);
}

.streamer-vdo-link-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.streamer-vdo-link-card strong {
  color: #fff;
  font-size: 1.35rem;
}

.streamer-vdo-link-card code {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(122, 140, 184, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: #dbeafe;
  white-space: normal;
  word-break: break-all;
}

.streamer-camera-state.is-ready {
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(20, 184, 166, 0.1);
  color: #a7f3e9;
}

.streamer-secret-box {
  border-radius: 16px;
}

.streamer-mini-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
}

.streamer-mini-moderator,
.streamer-mini-players {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(11, 15, 24, 0.8);
}

.streamer-mini-moderator-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.streamer-mini-moderator-box img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
}

.streamer-mini-players {
  display: grid;
  gap: 10px;
}

.streamer-mini-player {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(19, 26, 40, 0.76);
}

.streamer-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 18px;
}

.streamer-stage-control {
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.85fr);
}

.streamer-stage-main,
.streamer-player-sidebar {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(122, 140, 184, 0.18);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--streamer-accent) 10%, transparent), transparent 28%),
    linear-gradient(180deg, #101620 0%, #0a0f17 100%);
}

.streamer-section-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.streamer-moderator-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 20px;
  align-items: stretch;
}

.streamer-moderator-video {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: 28px;
  border: 1px solid rgba(122, 140, 184, 0.16);
  background:
    linear-gradient(140deg, rgba(255, 79, 138, 0.18), rgba(86, 122, 195, 0.18)),
    linear-gradient(180deg, #151d29 0%, #0b1017 100%);
}

.streamer-moderator-video img {
  position: absolute;
  right: 26px;
  bottom: 0;
  width: min(42%, 240px);
  border-radius: 18px 18px 0 0;
  opacity: 0.92;
}

.streamer-video-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 54%;
  padding: 28px;
}

.streamer-video-overlay strong {
  font-size: 28px;
}

.streamer-video-overlay p {
  margin: 0;
  color: #d5def3;
  line-height: 1.6;
}

.streamer-round-panel,
.streamer-question-board {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(10, 14, 21, 0.82);
}

.streamer-round-label {
  color: var(--muted);
  font-size: 14px;
}

.streamer-active-name {
  margin: 8px 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: color-mix(in srgb, var(--streamer-accent) 40%, white);
}

.streamer-solution-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(20, 29, 45, 0.78);
  color: var(--muted);
}

.streamer-question-board {
  margin-top: 14px;
}

.streamer-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.streamer-flow-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(13, 18, 28, 0.78);
}

.streamer-flow-number {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: color-mix(in srgb, var(--streamer-accent) 54%, white);
  font-weight: 700;
}

.streamer-flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.streamer-player-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.streamer-player-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(12, 17, 25, 0.82);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.streamer-player-card.is-active {
  border-color: color-mix(in srgb, var(--streamer-accent) 58%, rgba(122, 140, 184, 0.18));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.streamer-player-card.is-eliminated {
  opacity: 0.65;
}

.streamer-player-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.streamer-hearts {
  display: flex;
  gap: 8px;
  margin: 12px 0 10px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 18px;
}

.streamer-heart {
  transition: transform 180ms ease, color 180ms ease;
}

.streamer-heart.is-full {
  color: #ff4f8a;
  transform: scale(1.04);
}

.streamer-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.streamer-heart-btn {
  min-height: 38px;
}

.streamer-config-card,
.streamer-slot-editor {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(10, 14, 21, 0.82);
}

.streamer-config-grid,
.streamer-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.streamer-config-field {
  display: grid;
  gap: 8px;
}

.streamer-config-field label,
.streamer-slot-editor label {
  color: var(--text);
  font-weight: 700;
}

.streamer-config-field input,
.streamer-config-field textarea,
.streamer-config-field select,
.streamer-slot-editor select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(122, 140, 184, 0.18);
  border-radius: 14px;
  background: rgba(17, 24, 36, 0.95);
  color: var(--text);
  outline: none;
}

.streamer-config-field textarea {
  resize: vertical;
  min-height: 72px;
}

.streamer-slot-editor strong {
  color: var(--text);
}

.streamer-slot-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
}

.streamer-player-actions form {
  margin: 0;
}

.streamer-obs-page {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 79, 138, 0.12), transparent 18%),
    radial-gradient(circle at 80% 30%, rgba(86, 122, 195, 0.14), transparent 20%),
    linear-gradient(180deg, #2b2d33 0%, #242830 100%);
}

.streamer-obs-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px 28px 34px;
}

.streamer-obs-floating {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(62, 240, 232, 0.3);
  background: rgba(14, 24, 33, 0.76);
  color: #3ef0e8;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(62, 240, 232, 0.18);
}

.streamer-obs-header {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.streamer-obs-logo-wrap {
  display: inline-flex;
  padding: 8px;
  border-radius: 28px;
  background: rgba(8, 13, 20, 0.5);
  box-shadow: 0 0 26px rgba(49, 219, 255, 0.18);
}

.streamer-obs-logo {
  padding: 14px 28px;
  border-radius: 20px;
  border: 2px solid rgba(49, 219, 255, 0.45);
  background: linear-gradient(180deg, #111823 0%, #090e16 100%);
  color: #fff74f;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(49, 219, 255, 0.34);
}

.streamer-obs-grid {
  display: block;
}

.streamer-obs-stage {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.streamer-obs-contestants {
  display: contents;
}

.streamer-obs-moderator-card,
.streamer-obs-player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(121, 140, 165, 0.24);
  background: linear-gradient(180deg, rgba(31, 35, 42, 0.95) 0%, rgba(21, 25, 31, 0.94) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.streamer-obs-stage-card {
  grid-column: span 2;
}

.streamer-obs-moderator-card {
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
}

.streamer-obs-dot,
.streamer-obs-player-dot {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #33e7b5;
  box-shadow: 0 0 18px rgba(51, 231, 181, 0.6);
}

.streamer-obs-player-dot {
  background: #ff5f8e;
  box-shadow: 0 0 18px rgba(255, 95, 142, 0.54);
}

.streamer-obs-label {
  position: absolute;
  left: 42px;
  top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.72);
  color: #fff;
  font-weight: 700;
}

.streamer-obs-avatar-wrap,
.streamer-obs-player-avatar {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.streamer-obs-avatar-wrap iframe,
.streamer-obs-player-avatar iframe,
.streamer-settings-preview-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #05070b;
}

.streamer-obs-avatar-wrap {
  width: 100%;
  height: 100%;
  margin-top: 0;
  border-radius: 28px;
}

.streamer-obs-avatar-wrap img,
.streamer-obs-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.streamer-obs-name,
.streamer-obs-player-name {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 27, 36, 0.92);
  border: 1px solid rgba(77, 255, 241, 0.28);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.streamer-obs-player-name {
  font-size: 18px;
}

.streamer-obs-player-card {
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
}

.streamer-obs-player-avatar {
  width: 100%;
  height: 100%;
  border-radius: 28px;
}

.streamer-obs-player-card.is-active {
  border-color: color-mix(in srgb, var(--streamer-accent) 64%, rgba(121, 140, 165, 0.24));
  animation: streamer-active-pulse 1.05s ease-in-out infinite;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--streamer-accent) 32%, transparent), 0 18px 40px rgba(0, 0, 0, 0.22);
}

@keyframes streamer-active-pulse {
  0%,
  100% {
    border-color: color-mix(in srgb, var(--streamer-accent) 86%, white 14%);
    box-shadow:
      0 0 0 2px color-mix(in srgb, var(--streamer-accent) 38%, transparent),
      0 0 24px color-mix(in srgb, var(--streamer-accent) 42%, transparent),
      0 18px 40px rgba(0, 0, 0, 0.22);
  }

  50% {
    border-color: rgba(255, 255, 255, 0.68);
    box-shadow:
      0 0 0 4px color-mix(in srgb, var(--streamer-accent) 64%, transparent),
      0 0 42px color-mix(in srgb, var(--streamer-accent) 72%, transparent),
      0 18px 40px rgba(0, 0, 0, 0.28);
  }
}

.streamer-obs-player-card.is-eliminated {
  filter: grayscale(0.25);
  opacity: 0.8;
}

.streamer-obs-player-top {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
}

.streamer-obs-hearts {
  display: inline-flex;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(48, 14, 24, 0.82);
  color: rgba(255, 255, 255, 0.2);
  font-size: 18px;
}

.mimic-team-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(9, 12, 18, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.streamer-obs-grid-count-1 .streamer-obs-stage {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.streamer-obs-grid-count-1 .streamer-obs-stage-card:first-child {
  grid-column: 2 / span 4;
}

.streamer-obs-grid-count-2 .streamer-obs-stage {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.streamer-obs-grid-count-2 .streamer-obs-stage-card {
  grid-column: span 2;
}

.streamer-obs-grid-count-3 .streamer-obs-stage {
  position: fixed;
  top: 46%;
  left: 50%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: calc(100vw - 16px);
  max-width: none;
  gap: 8px;
  margin: 0;
  transform: translate(-50%, -50%);
}

.streamer-obs-grid-count-3 .streamer-obs-stage-card {
  grid-column: span 1;
}

.streamer-obs-grid-count-4 .streamer-obs-stage {
  position: fixed;
  top: 46%;
  left: 50%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1680px, calc(100vw - 16px));
  max-width: none;
  gap: 8px;
  margin: 0;
  transform: translate(-50%, -50%);
}

.streamer-obs-grid-count-4 .streamer-obs-stage-card {
  grid-column: span 1;
}

.streamer-obs-grid-count-4 .streamer-obs-stage-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.streamer-obs-grid-count-4 .streamer-obs-stage-card:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.streamer-obs-grid-count-4 .streamer-obs-stage-card:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.streamer-obs-grid-count-4 .streamer-obs-stage-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.streamer-obs-grid-count-5 .streamer-obs-stage {
  position: fixed;
  top: 46%;
  left: 50%;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: calc(100vw - 16px);
  max-width: none;
  gap: 8px;
  margin: 0;
  transform: translate(-50%, -50%);
}

.streamer-obs-grid-count-5 .streamer-obs-stage-card {
  grid-column: span 4;
}

.streamer-obs-grid-count-5 .streamer-obs-stage-card:nth-last-child(2) {
  grid-column: 3 / span 4;
}

.streamer-obs-grid-count-5 .streamer-obs-stage-card:last-child {
  grid-column: 7 / span 4;
}

.streamer-obs-grid-count-6 .streamer-obs-stage {
  position: fixed;
  top: 46%;
  left: 50%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: calc(100vw - 16px);
  max-width: none;
  gap: 8px;
  margin: 0;
  transform: translate(-50%, -50%);
}

.streamer-obs-grid-count-7 .streamer-obs-stage-card:last-child {
  grid-column: 3 / span 2;
}

.streamer-obs-grid-count-8 .streamer-obs-stage-card:nth-last-child(2) {
  grid-column: 2 / span 2;
}

.streamer-obs-grid-count-8 .streamer-obs-stage-card:last-child {
  grid-column: 4 / span 2;
}

.streamer-obs-question-bar {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
  margin: 0;
  width: min(1240px, calc(100% - 32px));
  padding: 20px 28px;
  border-radius: 28px;
  border: 2px solid rgba(62, 240, 232, 0.34);
  background: rgba(22, 28, 35, 0.86);
  box-shadow: 0 0 28px rgba(62, 240, 232, 0.12);
}

.streamer-obs-question-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(62, 240, 232, 0.16);
  color: #3ef0e8;
  font-size: 26px;
  font-weight: 900;
}

.streamer-obs-question-text {
  color: #3ef0e8;
  font-size: clamp(24px, 2.2vw, 38px);
  font-weight: 800;
  text-align: center;
  width: 100%;
}

.streamer-settings-preview-card {
  overflow: hidden;
  min-height: 420px;
  border-radius: 26px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(10, 14, 21, 0.82);
}

.streamer-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.streamer-settings-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 79, 138, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(84, 199, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #111723 0%, #0b1119 100%);
}

.streamer-settings-form {
  display: grid;
  gap: 0;
}

.streamer-settings-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 280px;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background:
    radial-gradient(circle at top right, rgba(84, 199, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(20, 27, 40, 0.96), rgba(12, 17, 25, 0.92));
}

.streamer-settings-highlight-copy h2 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.streamer-settings-highlight-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.streamer-settings-highlight-meta {
  display: grid;
  gap: 12px;
}

.streamer-settings-meta-box,
.streamer-settings-status-box {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(11, 16, 24, 0.82);
}

.streamer-settings-meta-box span,
.streamer-settings-status-box span,
.streamer-settings-preview-top span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.streamer-settings-meta-box strong,
.streamer-settings-status-box strong,
.streamer-settings-preview-top strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
}

.streamer-settings-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.streamer-settings-sidebar {
  display: grid;
  align-content: start;
}

.streamer-settings-status-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.streamer-settings-preview-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.streamer-settings-preview-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}

.streamer-settings-status-grid {
  display: grid;
  gap: 10px;
}

.streamer-settings-preview-stage {
  display: grid;
  gap: 12px;
}

.streamer-settings-preview-badge {
  display: inline-flex;
  align-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(72, 208, 255, 0.12);
  border: 1px solid rgba(72, 208, 255, 0.2);
  color: #78d9ff;
  font-weight: 700;
}

.streamer-settings-preview-screen {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 22px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background:
    radial-gradient(circle at top, rgba(84, 199, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #121927 0%, #0a0f17 100%);
}

.streamer-settings-preview-screen iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  background: #05070b;
}

.streamer-settings-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  height: 100%;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.streamer-settings-empty img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
}

.settings-topbar {
  align-items: stretch;
}

.settings-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.settings-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(17, 24, 36, 0.82);
}

.settings-user-pill img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.settings-user-pill span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 18px;
  margin: 18px 20px 0;
}

.settings-card {
  display: grid;
  gap: 16px;
}

.settings-section-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-domain-card,
.settings-info-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(17, 24, 36, 0.82);
}

.settings-domain-card span,
.settings-info-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.settings-domain-card strong,
.settings-info-box strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  word-break: break-word;
}

.settings-domain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.settings-info-grid {
  display: grid;
  gap: 12px;
}

.settings-link-list {
  display: grid;
  gap: 12px;
}

.settings-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(122, 140, 184, 0.14);
  background: rgba(17, 24, 36, 0.82);
}

@media (max-width: 1160px) {
  .streamer-dashboard-grid,
  .streamer-stage,
  .streamer-moderator-panel,
  .streamer-flow-grid,
  .streamer-mini-layout,
  .streamer-config-grid,
  .streamer-slot-grid,
  .streamer-obs-grid,
  .module-feature-grid,
  .meeting-list-grid,
  .attendance-grid,
  .meeting-create-grid,
  .absence-create-grid,
  .kanban-grid {
    grid-template-columns: 1fr;
  }

  .streamer-settings-layout,
  .streamer-settings-highlight,
  .streamer-settings-input-wrap,
  .settings-grid,
  .settings-domain-grid {
    grid-template-columns: 1fr;
  }

  .settings-hero,
  .settings-link-item {
    flex-direction: column;
    align-items: stretch;
  }

  .streamer-player-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streamer-obs-stage {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .streamer-obs-stage-card,
  .streamer-obs-grid-count-7 .streamer-obs-stage-card:last-child,
  .streamer-obs-grid-count-6 .streamer-obs-stage-card:nth-last-child(2),
  .streamer-obs-grid-count-6 .streamer-obs-stage-card:last-child,
  .streamer-obs-grid-count-5 .streamer-obs-stage-card:nth-last-child(2),
  .streamer-obs-grid-count-5 .streamer-obs-stage-card:last-child {
    grid-column: auto;
  }

  .streamer-video-overlay {
    max-width: 100%;
    padding-right: 120px;
  }

  .streamer-obs-moderator-card {
    min-height: 380px;
  }

  .streamer-obs-avatar-wrap {
    height: 280px;
  }
}

@media (max-width: 760px) {
  .streamer-shell {
    width: min(100% - 24px, 1440px);
    padding-top: 20px;
  }

  .streamer-hero-card,
  .streamer-stage-main,
  .streamer-player-sidebar,
  .streamer-game-card {
    padding: 18px;
    border-radius: 24px;
  }

  .streamer-hero-top {
    flex-direction: column;
  }

  .streamer-user-pill {
    width: 100%;
    min-width: 0;
  }

  .streamer-moderator-video {
    min-height: 280px;
  }

  .streamer-moderator-video img {
    width: 44%;
    right: 12px;
  }

  .streamer-video-overlay {
    padding: 18px 18px 110px;
  }

  .streamer-video-overlay strong {
    font-size: 24px;
  }

.streamer-player-stack {
  grid-template-columns: 1fr;
}
}

.twitch-follower-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.twitch-follower-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  display: grid;
  gap: 10px;
  scrollbar-color: rgba(145, 70, 255, 0.48) rgba(12, 18, 28, 0.8);
  scrollbar-width: thin;
}

.twitch-follower-scroll::-webkit-scrollbar {
  width: 8px;
}

.twitch-follower-scroll::-webkit-scrollbar-track {
  background: rgba(12, 18, 28, 0.8);
  border-radius: 999px;
}

.twitch-follower-scroll::-webkit-scrollbar-thumb {
  background: rgba(145, 70, 255, 0.48);
  border-radius: 999px;
}

.follower-number-badge {
  min-width: 94px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.22), rgba(57, 94, 255, 0.14));
  border: 1px solid rgba(145, 70, 255, 0.28);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.twitch-follower-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.twitch-follower-meta span {
  color: rgba(203, 214, 235, 0.74);
  font-size: 0.86rem;
}

.twitch-follower-meta strong {
  color: #fff;
  font-size: 0.95rem;
}

.punishment-wheel-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.punishment-wheel-card {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.punishment-wheel-card::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(36, 214, 200, 0.18), transparent 58%),
    radial-gradient(circle at 70% 30%, rgba(255, 79, 138, 0.16), transparent 38%);
  filter: blur(22px);
  opacity: 0.9;
}

#punishmentWheel {
  position: relative;
  width: min(680px, 88vw);
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 26px 52px rgba(0, 0, 0, 0.36));
}

.punishment-wheel-pointer {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 34px solid #fff;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42));
}

.punishment-spin-btn {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  transform: translateX(-50%);
  min-width: 160px;
}

.punishment-control-card {
  display: grid;
  gap: 16px;
}

.punishment-result-box {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(36, 214, 200, 0.28);
  background: linear-gradient(135deg, rgba(36, 214, 200, 0.12), rgba(255, 79, 138, 0.09));
}

.punishment-result-box span,
.form-label {
  display: block;
  color: rgba(203, 214, 235, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.punishment-result-box strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 1.45rem;
}

.punishment-textarea {
  min-height: 300px;
  resize: vertical;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .punishment-wheel-layout {
    grid-template-columns: 1fr;
  }

  .punishment-wheel-card {
    min-height: 560px;
  }
}

/* =========================
   MIMIC SHADOW / STREAMER LOGINS
========================= */

.streamer-game-logo {
  width: min(320px, 80%);
  max-height: 190px;
  object-fit: contain;
  justify-self: start;
  filter: drop-shadow(0 16px 26px rgba(214, 76, 255, 0.2));
}

.streamer-account-form {
  display: grid;
  gap: 14px;
}

.streamer-password-list {
  margin-bottom: 30px;
}

.streamer-password-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, auto) minmax(120px, auto) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(122, 140, 184, 0.16);
  border-radius: 18px;
  background: rgba(12, 18, 28, 0.82);
}

.streamer-password-row + .streamer-password-row {
  margin-top: 10px;
}

.streamer-password-row strong,
.streamer-password-row span {
  display: block;
}

.streamer-password-row span {
  color: var(--muted);
}

.streamer-password-row code {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(214, 76, 255, 0.24);
  background: rgba(214, 76, 255, 0.09);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.streamer-auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 155, 255, 0.2), transparent 34%),
    radial-gradient(circle at 10% 92%, rgba(32, 223, 201, 0.1), transparent 26%);
}

.streamer-auth-card {
  position: relative;
  overflow: hidden;
  width: min(500px, 100%);
  padding: 34px;
  border: 1px solid rgba(79, 155, 255, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(79, 155, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(18, 28, 44, 0.98), rgba(8, 12, 19, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.streamer-auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #4f9bff, #20dfc9, #d64cff);
}

.streamer-auth-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(79, 155, 255, 0.34);
  border-radius: 999px;
  color: #9cc6ff;
  background: rgba(79, 155, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.streamer-auth-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 0.95;
}

.streamer-auth-card .empty-state {
  text-align: center;
  justify-content: center;
  margin-top: 18px;
  border-color: rgba(255, 107, 107, 0.34);
  color: #ffd4d4;
  background: rgba(255, 107, 107, 0.1);
}

.streamer-login-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.streamer-login-form .streamer-config-field input {
  min-height: 52px;
  font-size: 1rem;
}

.streamer-login-form .btn {
  min-height: 54px;
  width: 100%;
}

.streamer-auth-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(122, 140, 184, 0.16);
  color: #8ea7cf;
  font-size: 0.9rem;
  text-align: center;
}

.mimic-obs-page {
  background:
    radial-gradient(circle at 18% 22%, rgba(214, 76, 255, 0.18), transparent 23%),
    radial-gradient(circle at 82% 18%, rgba(255, 170, 93, 0.14), transparent 24%),
    linear-gradient(180deg, #1f2228 0%, #252932 58%, #20252c 100%);
}

.mimic-obs-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.mimic-obs-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: min(460px, 38vw);
  pointer-events: none;
}

.mimic-obs-header img {
  width: 100%;
  max-height: 116px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(214, 76, 255, 0.36))
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.36));
}

.mimic-explainer-card,
.mimic-cam-card {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(214, 76, 255, 0.72);
  border-radius: 18px;
  background: #020407;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 22px rgba(214, 76, 255, 0.22),
    0 24px 50px rgba(0, 0, 0, 0.35);
}

.mimic-explainer-card iframe,
.mimic-cam-card iframe,
.mimic-cam-card img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #020407;
}

.mimic-explainer-card {
  position: fixed;
  top: 122px;
  left: 50%;
  z-index: 4;
  width: min(680px, 48vw);
  aspect-ratio: 16 / 9;
  transform: translateX(-50%);
  border-color: rgba(255, 169, 86, 0.84);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 30px rgba(255, 169, 86, 0.32),
    0 26px 54px rgba(0, 0, 0, 0.38);
}

.mimic-camera-stage {
  position: fixed;
  left: 50%;
  bottom: 124px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 12px;
  width: min(1860px, calc(100vw - 26px));
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
}

.mimic-cam-card {
  aspect-ratio: 16 / 9;
  min-width: 0;
}

.mimic-moderator-card {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 28px rgba(255, 255, 255, 0.18),
    0 24px 50px rgba(0, 0, 0, 0.34);
}

.mimic-cam-card.is-active,
.mimic-explainer-card {
  animation: mimic-active-border 1.15s ease-in-out infinite;
}

@keyframes mimic-active-border {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 18px rgba(214, 76, 255, 0.32),
      0 24px 50px rgba(0, 0, 0, 0.34);
  }

  50% {
    box-shadow:
      0 0 0 3px rgba(214, 76, 255, 0.34),
      0 0 40px rgba(214, 76, 255, 0.62),
      0 24px 54px rgba(0, 0, 0, 0.42);
  }
}

.mimic-empty-cam {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  background:
    radial-gradient(circle at center, rgba(214, 76, 255, 0.12), transparent 38%),
    #020407;
}

.mimic-question-bar {
  bottom: 28px;
  border-color: rgba(214, 76, 255, 0.46);
  background:
    radial-gradient(circle at right, rgba(214, 76, 255, 0.18), transparent 30%),
    rgba(14, 18, 26, 0.9);
  box-shadow: 0 0 30px rgba(214, 76, 255, 0.16);
}

.mimic-question-bar .streamer-obs-question-text {
  color: #fff;
  text-shadow: 0 0 16px rgba(214, 76, 255, 0.36);
}

.mimic-count-1 {
  grid-template-columns: minmax(420px, 720px);
  width: min(760px, calc(100vw - 26px));
}

.mimic-count-2 {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  width: min(1180px, calc(100vw - 26px));
}

.mimic-count-3 {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  width: min(1500px, calc(100vw - 26px));
}

.mimic-count-4,
.mimic-count-5 {
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  width: min(1600px, calc(100vw - 26px));
}

.mimic-count-6,
.mimic-count-7,
.mimic-count-8 {
  grid-template-columns: repeat(5, minmax(190px, 1fr));
}

@media (max-width: 1200px) {
  .streamer-password-row {
    grid-template-columns: 1fr;
  }

  .mimic-camera-stage {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .mimic-explainer-card {
    width: min(620px, 70vw);
  }
}

/* Screenshot-nahe Mimic-Shadow OBS-Komposition */
.mimic-obs-page {
  background:
    radial-gradient(circle at 10% 42%, rgba(150, 46, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(0, 170, 255, 0.16), transparent 28%),
    linear-gradient(120deg, #160729 0%, #081a2c 58%, #072033 100%);
}

.mimic-obs-header {
  top: 150px;
  right: 48px;
  left: auto;
  width: min(330px, 16.2vw);
  aspect-ratio: 16 / 9;
  transform: none;
  align-items: center;
  padding: 18px;
  border-radius: 12px;
  background: rgba(1, 5, 12, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 26px rgba(214, 76, 255, 0.22);
}

.mimic-obs-header img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.mimic-explainer-card {
  top: 18px;
  width: min(830px, 58vw);
  border-radius: 12px;
  border-color: rgba(235, 54, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 22px rgba(235, 54, 255, 0.68),
    0 18px 44px rgba(0, 0, 0, 0.45);
}

.mimic-camera-stage {
  bottom: 20px;
  display: flex;
  width: calc(100vw - 8px);
  gap: 10px;
  align-items: stretch;
}

.mimic-cam-card {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  border-color: rgba(235, 54, 255, 0.78);
}

.mimic-moderator-card {
  border-color: rgba(32, 239, 223, 0.96);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(32, 239, 223, 0.55),
    0 18px 38px rgba(0, 0, 0, 0.42);
}

.mimic-cam-card .streamer-obs-player-name,
.mimic-explainer-card .streamer-obs-player-name {
  left: 12px;
  right: auto;
  top: 10px;
  bottom: auto;
  transform: none;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(4, 6, 10, 0.58);
  font-size: 14px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8);
}

.mimic-explainer-card .streamer-obs-player-name {
  font-size: 17px;
}

.mimic-cam-card .streamer-obs-label,
.mimic-explainer-card .streamer-obs-label,
.mimic-cam-card .streamer-obs-player-dot,
.mimic-explainer-card .streamer-obs-player-dot,
.mimic-moderator-card .streamer-obs-dot {
  display: none;
}

.mimic-cam-card iframe,
.mimic-explainer-card iframe,
.mimic-cam-card img {
  object-fit: cover;
}

.mimic-scoreboard {
  position: fixed;
  left: 48px;
  top: 150px;
  z-index: 7;
  width: 200px;
  display: grid;
  gap: 12px;
}

.mimic-side-title {
  margin: 0 0 10px 36px;
  color: rgba(210, 231, 255, 0.8);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(65, 184, 255, 0.45);
}

.mimic-score-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(132, 42, 221, 0.88), rgba(75, 22, 130, 0.72));
  box-shadow: 0 0 22px rgba(170, 72, 255, 0.34);
  color: #fff;
  font-weight: 900;
}

.mimic-score-row.is-active {
  background: linear-gradient(90deg, rgba(19, 219, 218, 0.9), rgba(17, 91, 116, 0.78));
  box-shadow: 0 0 24px rgba(19, 219, 218, 0.42);
}

.mimic-question-bar {
  display: none;
}

.streamer-obs-floating {
  display: none;
}

@media (max-width: 1200px) {
  .mimic-scoreboard {
    display: none;
  }

  .mimic-obs-header {
    display: none;
  }

  .mimic-explainer-card {
    width: min(900px, calc(100vw - 28px));
  }
}

@media (max-width: 980px) {
  .streamer-hero-top {
    flex-direction: column;
  }

  .streamer-user-pill {
    width: 100%;
  }

  .streamer-dashboard-grid,
  .streamer-dashboard-stats,
  .streamer-account-form {
    grid-template-columns: 1fr;
  }

  .streamer-password-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .streamer-password-row form,
  .streamer-password-row .ghost-btn,
  .streamer-account-form .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .streamer-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 10px;
  }

  .streamer-hero-card,
  .streamer-game-card,
  .streamer-password-list {
    border-radius: 18px;
    padding: 16px;
  }

  .streamer-game-card-body {
    grid-template-columns: 1fr;
  }

  .streamer-game-logo-wrap {
    width: 82px;
    height: 82px;
  }

  .streamer-game-logo {
    width: 62px;
    height: 62px;
  }
}

/* Final dashboard overrides: older Mimic rules below/above also touch these classes. */
.streamer-dashboard-grid .streamer-game-logo {
  width: 72px;
  height: 72px;
  max-height: none;
  justify-self: center;
  object-fit: contain;
}

.streamer-dashboard-grid .streamer-account-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.streamer-account-table .streamer-password-row {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.8fr) 140px auto;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8, 13, 21, 0.56);
}

.streamer-account-table .streamer-password-row + .streamer-password-row {
  margin-top: 0;
}

.streamer-account-table .streamer-password-row code {
  border-color: rgba(122, 140, 184, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: #dbeafe;
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .streamer-dashboard-grid .streamer-account-form,
  .streamer-account-table .streamer-password-row {
    grid-template-columns: 1fr;
  }

  .streamer-dashboard-grid .streamer-account-form .btn,
  .streamer-account-table .streamer-password-row form,
  .streamer-account-table .streamer-password-row .ghost-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .streamer-dashboard-grid .streamer-game-logo {
    width: 62px;
    height: 62px;
  }
}

/* Compact director view spacing. */
.streamer-game-hero .streamer-hero-actions {
  margin-top: 0;
}

.streamer-stage-control {
  gap: 14px;
}

.streamer-stage-control .streamer-stage-main,
.streamer-stage-control .streamer-player-sidebar {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 14px;
}

.streamer-stage-control .streamer-config-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.streamer-stage-control .streamer-section-label {
  margin-bottom: 0;
}

.streamer-stage-control .streamer-config-grid,
.streamer-stage-control .streamer-slot-grid {
  gap: 10px;
}

.streamer-stage-control .streamer-slot-editor {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
}

.streamer-stage-control .streamer-config-field {
  gap: 5px;
}

.streamer-stage-control .streamer-config-field input,
.streamer-stage-control .streamer-slot-editor select {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
}

.streamer-stage-control .streamer-slot-team-row {
  gap: 8px;
}

.streamer-stage-control .list-sub {
  line-height: 1.25;
}

.streamer-stage-control .streamer-inline-form {
  margin: 0;
}

.streamer-stage-control .streamer-inline-form .ghost-btn,
.streamer-stage-control .streamer-inline-form .btn {
  margin-top: 0;
}

.streamer-stage-control .streamer-player-stack {
  gap: 8px;
}

.streamer-stage-control .streamer-player-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
}

.streamer-stage-control .streamer-player-top {
  gap: 8px;
}

.streamer-stage-control .streamer-player-actions {
  gap: 0;
}

.streamer-stage-control .streamer-player-actions .ghost-btn {
  min-height: 36px;
  padding: 8px 12px;
}

.streamer-stage-control .streamer-team-card {
  position: relative;
  border-color: color-mix(in srgb, var(--team-color) 42%, rgba(122, 140, 184, 0.16));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--team-color) 18%, transparent), transparent 52%),
    rgba(10, 14, 21, 0.86);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--team-color) 86%, white 6%);
}

.streamer-stage-control .streamer-team-card .muted-chip {
  border-color: color-mix(in srgb, var(--team-color) 34%, rgba(122, 140, 184, 0.18));
  background: color-mix(in srgb, var(--team-color) 15%, rgba(16, 24, 36, 0.9));
}

.streamer-team-1 {
  --team-color: #4f9bff;
}

.streamer-team-2 {
  --team-color: #d64cff;
}

.streamer-team-3 {
  --team-color: #20dfc9;
}

@media (max-width: 980px) {
  .streamer-stage-control {
    grid-template-columns: 1fr;
  }
}

