body.ui-skin {
  --ui-ground: #100e0c;
  --ui-header-height: 2.5rem;
  --ui-panel: #1c1713;
  --ui-inset: #14110e;
  --ui-raised: #292019;
  --ui-text: #fff4e7;
  --ui-muted: #cbb298;
  --ui-dim: #a78e77;
  --ui-orange: #f7931a;
  --ui-bright: #ffa63e;
  --ui-line: #e3b47d26;
  --ui-edge: #f7931a55;
  --ui-glass: linear-gradient(145deg, #382619d9, #1c1713ed 65%);
  --ui-glass-quiet: linear-gradient(165deg, #2c231cdb, #171310f2);
  --ui-shadow: 0 14px 40px #0004, inset 0 1px #ffe4bd0d;
  --ui-pop-shadow: 0 18px 55px #0007, 0 0 0 1px #0002, inset 0 1px #ffd29d18;
  --ui-blur: blur(22px) saturate(1.2);
  --ui-button-edge: #f7931a29;
  --ui-button-glow: 0 0 2px #f7931a29, inset 0 0 2px #f7931a29;
  --ui-button-glow-hover: 0 0 3px #f7931a33, inset 0 0 2px #f7931a29;
  --ui-button-rest: linear-gradient(#f7931a12, #f7931a12);
  --ui-button-hover: linear-gradient(#f7931a24, #f7931a24);
  --ui-button-active: linear-gradient(#f7931a33, #f7931a33);
  background: radial-gradient(ellipse at 12% 0%, #bd581018, transparent 48%), var(--ui-ground);
}

body.ui-skin > header,
body.ui-skin #content > header {
  position: relative;
  background: linear-gradient(100deg, #2b2018e8, #171310eb 72%);
  border-bottom: 1px solid var(--ui-edge);
  box-shadow: 0 3px 18px #0002, inset 0 1px #ffe4bd08;
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
}

body.ui-skin .logo {
  color: var(--ui-bright);
  font-weight: 800;
  letter-spacing: -.05em;
  text-shadow: 0 0 22px #f7931a26;
  text-decoration: none;
}

body.ui-skin > header nav,
body.ui-skin #content > header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

body.ui-skin > header nav a,
body.ui-skin #content > header nav a {
  display: inline-flex;
  align-items: center;
  margin-right: 0;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ui-muted);
  font-weight: 550;
  text-decoration: none;
  transition: color .16s, background .16s, border-color .16s;
}

body.ui-skin > header nav a:hover,
body.ui-skin #content > header nav a:hover,
body.ui-skin nav a[aria-current="page"] {
  background: #f7931a10;
  border-color: var(--ui-line);
  color: var(--ui-bright);
}

body.ui-skin .logo:focus-visible,
body.ui-skin nav a:focus-visible {
  outline: 2px solid var(--ui-bright);
  outline-offset: 3px;
}

body.ui-stream #content > header,
body.ui-skin #chat-header {
  height: var(--ui-header-height);
  min-height: var(--ui-header-height);
  padding-block: 0;
}

body.ui-stream #content > header .logo {
  flex-shrink: 0;
  line-height: 1;
}

body.ui-stream #content > header nav {
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

body.ui-stream #content > header nav a {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

body.ui-skin #main-area {
  background: radial-gradient(ellipse at top left, #f7931a08, transparent 52%);
}

.ui-stream .main-stream,
.ui-stream .featured {
  border-radius: 14px;
  background: linear-gradient(155deg, #2a201b8c, #171310e6);
  box-shadow: 0 0 0 1px var(--ui-line), 0 8px 25px #0002;
}

.ui-stream .main-stream > h2,
.ui-stream .featured > h2 {
  padding-top: 4px;
  color: var(--ui-muted);
  font-weight: 700;
  letter-spacing: .1em;
}

.ui-stream #main-section > h2 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 34px;
  margin: -4px -12px 10px;
  padding: 4px 18px;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid #f7931a45;
  background: radial-gradient(ellipse at 15% 0%, #ffad4724, transparent 60%), linear-gradient(115deg, #42271585, #201811b8 60%, #f7931a12);
  box-shadow: inset 0 1px #ffdba32e, 0 4px 20px #0002;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: .035em;
}

.ui-stream #main-section > h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffb454aa 25%, #ffe5bcdd 50%, #f7931a88 75%, transparent);
  pointer-events: none;
}

.ui-stream #main-section .stream-head-name {
  flex: 1 1 440px;
  flex-wrap: wrap;
  gap: 5px 10px;
  overflow: visible;
  white-space: normal;
  line-height: 1.5;
}

.ui-stream #main-section .stream-head-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd49a;
  font-weight: 850;
  letter-spacing: .09em;
  white-space: nowrap;
  text-shadow: 0 0 16px #f7931a30;
}

.ui-stream #main-section .stream-head-channel {
  color: #d8b9ff;
  text-decoration: none;
  text-transform: none;
  font-weight: 750;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.ui-stream #main-section a.stream-head-channel:hover,
.ui-stream #main-section a.stream-head-channel:focus-visible {
  color: #eddfff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ui-stream #main-section .stream-head-playing {
  color: var(--ui-muted);
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
}

.ui-stream #main-section .stream-head-game {
  color: var(--ui-bright);
  text-transform: none;
  font-weight: 700;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.ui-stream #main-section #stream-title {
  align-self: center;
  inset-block-start: -.05em;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 0 0 0 16px;
  border-left: 2px solid #f7931a70;
  color: #ffe2b5;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.025em;
  text-align: left;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.ui-stream #stream-title {
  position: relative;
  background-image: linear-gradient(100deg, #bc682a, #e8e1d8 25%, #dc8b3f 50%, #e8e1d8 75%, #bc682a);
  background-size: 200% 100%;
  background-repeat: repeat-x;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  contain: paint;
}

.stream-title-sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ui-stream .stream-head-separator {
  color: var(--ui-muted);
  font: inherit;
  letter-spacing: 0;
}

.ui-stream .stream-status-twitch {
  color: var(--twitch);
  font: inherit;
  text-decoration: none;
}

.ui-stream .stream-status-twitch:hover,
.ui-stream .stream-status-twitch:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ui-stream #main-section .stream-head-spacer {
  display: none;
}

@media (max-width: 700px) {
  .ui-stream #main-section > h2 {
    gap: 10px;
    padding: 8px 14px;
  }

  .ui-stream #main-section #stream-title {
    flex-basis: 100%;
    padding-left: 12px;
  }
}

.ui-stream .section-header {
  gap: 10px;
  margin-bottom: 13px;
}

.ui-stream .section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  margin-left: 3px;
  background: linear-gradient(90deg, var(--ui-edge), transparent);
}

.ui-stream .section-title {
  color: var(--ui-bright);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ui-stream .grid {
  gap: 14px;
}

.ui-stream .card,
.ui-stream .featured-card {
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: linear-gradient(135deg, #39271966, #1c1713d9 70%);
  box-shadow: inset 0 1px #ffe4bd0a, 0 5px 18px #0002;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.ui-stream .card:hover,
.ui-stream .featured-card:hover {
  border-color: var(--ui-edge);
  background: linear-gradient(135deg, #55351c66, #231a14ed 70%);
  box-shadow: 0 8px 25px #0004, inset 0 1px #ffe4bd14;
}

.ui-stream .card.offline {
  opacity: .72;
  background: linear-gradient(145deg, #231d1880, #171310b3);
}

.ui-stream .card.offline:hover {
  opacity: 1;
}

.ui-stream .card-name,
.ui-stream .featured-name {
  color: var(--ui-text);
  font-weight: 650;
  letter-spacing: -.015em;
}

.ui-stream .card-status,
.ui-stream .featured-status,
.ui-stream .featured-empty {
  color: var(--ui-dim);
}
