.tn-community-completion,
.tn-community-empty,
.tn-community-section {
  border: 1px solid rgba(145, 70, 255, .28);
  background: linear-gradient(135deg, rgba(31, 35, 42, .96), rgba(21, 24, 30, .96));
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}

.tn-community-completion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin: 18px 0;
}

.tn-community-completion__main { flex: 1; min-width: 180px; }
.tn-community-completion__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tn-community-completion__label { color: #fff; font-weight: 800; }
.tn-community-completion__hint { color: rgba(229, 231, 235, .72); font-size: 14px; }
.tn-community-progress { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.tn-community-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9146ff, #c084fc); box-shadow: 0 0 18px rgba(145, 70, 255, .6); }

.tn-community-open,
.tn-community-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: #9146ff;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(145, 70, 255, .32);
}

.tn-community-open:hover,
.tn-community-submit:hover { filter: brightness(1.08); }
.tn-community-open--small { padding: 9px 13px; }

.tn-community-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin: 18px 0;
}
.tn-community-empty h2 { margin: 0 0 4px; color: #fff; font-size: 20px; }
.tn-community-empty p { margin: 0; color: rgba(229, 231, 235, .76); }

.tn-community-section { padding: 18px; margin: 22px 0; }
.single-streamer .tn-community-section.tn-community-facts {
  border-color: rgba(255, 255, 255, .075) !important;
  background: #0e1625 !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .14) !important;
}
.tn-community-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tn-community-section__head h2 { margin: 0; color: #fff; font-size: 22px; }
.tn-community-link { border: 0; background: transparent; color: #c084fc; font-weight: 700; cursor: pointer; }

.tn-community-facts__list,
.tn-community-facts__list.is-carousel,
.tn-community-facts__list.is-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}
.tn-community-fact {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 174px;
  flex-direction: column;
  padding: 16px;
  border-radius: 12px;
  background: #111b2c;
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  scroll-snap-align: none;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.tn-community-fact:hover { transform: translateY(-2px); border-color: rgba(145, 70, 255, .34); }
.tn-community-fact.is-community { background: linear-gradient(145deg, rgba(145, 70, 255, .1), #111b2c 52%); }
.tn-community-fact.has-vote-error { border-color: rgba(248, 113, 113, .7); }
.tn-community-fact__badge {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(145, 70, 255, .13);
  color: #c9a7ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
}
.tn-community-fact__icon-modern { margin-bottom: 9px; font-size: 25px; line-height: 1; }
.tn-community-fact__content-modern { flex: 1; }
.tn-community-fact p { margin: 0 0 16px; color: #edf1f8; font-size: 14px; line-height: 1.55; }
.single-streamer .tn-community-facts .tn-community-votes {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}
.tn-community-votes button {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(4, 9, 17, .38);
  color: #b5becc;
  border-radius: 7px;
  padding: 6px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.tn-community-votes button:hover { color: #fff; border-color: rgba(145, 70, 255, .48); }
.tn-community-votes button[data-tn-fact-vote="1"].is-active { color: #75e0b3; border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .1); }
.tn-community-votes button[data-tn-fact-vote="-1"].is-active { color: #fda4af; border-color: rgba(251, 113, 133, .42); background: rgba(251, 113, 133, .1); }
.tn-community-votes button:disabled { cursor: wait; opacity: .58; }
.tn-community-votes button strong { color: currentColor; font-size: 12px; }
.tn-community-votes__score { margin-left: auto; color: #7f8b9e; font-size: 11px; white-space: nowrap; }
.tn-community-votes__score strong { color: #cbd3df; }

.info-tg-promo { margin: 14px 0; }
.tn-northweb-streamer-banner {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 104px;
  padding: 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: linear-gradient(120deg, #111827 0%, #101725 62%, #17122a 100%);
}
.tn-northweb-streamer-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -100px;
  width: 330px;
  height: 180px;
  border-radius: 50%;
  background: rgba(145, 70, 255, .12);
  filter: blur(25px);
}
.tn-northweb-streamer-banner > * { position: relative; z-index: 1; }
.tn-northweb-streamer-banner__eyebrow { display: grid; gap: 2px; margin-bottom: 8px; color: #8f9bb0; font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.25; text-transform: uppercase; }
.tn-northweb-streamer-banner__eyebrow span { display: block; }
.tn-northweb-streamer-banner__brand { color: #f7f8fc; font-size: 29px; font-weight: 900; letter-spacing: -.04em; }
.tn-northweb-streamer-banner__brand span { color: #a557ff; }
.tn-northweb-streamer-banner h2 { margin: 0 0 5px; color: #f7f8fc; font-size: 20px; line-height: 1.2; }
.tn-northweb-streamer-banner p { margin: 0; color: #9aa6b8; font-size: 13px; }
.tn-northweb-streamer-banner__cta { display: inline-flex; min-height: 42px; align-items: center; padding: 0 18px; border: 1px solid rgba(164, 91, 255, .62); border-radius: 9px; background: rgba(145, 70, 255, .16); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tn-northweb-streamer-banner__cta:hover { background: rgba(145, 70, 255, .25); color: #fff; }
.tn-northweb-streamer-banner__ad { position: absolute; top: 8px; right: 10px; color: #778297; font-size: 10px; }

.tn-community-tournaments__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tn-community-tournament { padding: 14px; border-radius: 8px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.tn-community-tournament h3 { margin: 0 0 10px; color: #fff; font-size: 17px; }
.tn-community-tournament dl { display: grid; gap: 7px; margin: 0; }
.tn-community-tournament dl div { display: flex; justify-content: space-between; gap: 12px; }
.tn-community-tournament dt { color: rgba(229, 231, 235, .62); }
.tn-community-tournament dd { margin: 0; color: #fff; text-align: right; }
.tn-community-tournament a { display: inline-block; margin-top: 10px; color: #c084fc; }
.tn-community-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tn-community-list li { display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: rgba(255, 255, 255, .045); color: #f3f4f6; }
.tn-community-list span { color: rgba(229, 231, 235, .72); }

.tn-community-modal[hidden] { display: none; }
.tn-community-modal {
  display: block;
  margin: 18px 0 24px;
  scroll-margin-top: 90px;
}
.tn-community-modal__dialog {
  position: relative;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(145, 70, 255, .35);
  background: linear-gradient(135deg, rgba(23, 26, 33, .98), rgba(18, 20, 26, .98));
  color: #fff;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32), 0 0 26px rgba(145, 70, 255, .12);
}
.tn-community-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.tn-community-modal h2 { margin: 0 38px 18px 0; font-size: 24px; }
.tn-community-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tn-community-choices button {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  text-align: left;
  padding: 12px;
  cursor: pointer;
}
.tn-community-choices button:hover { border-color: rgba(145, 70, 255, .65); background: rgba(145, 70, 255, .15); }
.tn-community-choices button.is-active { border-color: rgba(145, 70, 255, .9); background: rgba(145, 70, 255, .22); box-shadow: 0 0 0 1px rgba(145, 70, 255, .22) inset; }
.tn-community-form__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tn-community-form__head h2 { margin: 0; }
.tn-community-back { border: 0; background: transparent; color: #c084fc; cursor: pointer; padding: 0; }
.tn-community-fields,
.tn-community-form { display: grid; gap: 12px; }
.tn-community-fields-panel:not([hidden]) { display: grid; gap: 12px; }
.tn-community-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tn-community-fields-grid label:has(textarea) { grid-column: 1 / -1; }
.tn-community-fact-list { display: grid; gap: 12px; }
.tn-community-fact-row {
  display: grid;
  grid-template-columns: minmax(86px, 120px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
}
.tn-community-fact-row label:has(textarea) { align-self: stretch; }
.tn-community-add-fact,
.tn-community-remove-fact {
  border: 1px solid rgba(145, 70, 255, .4);
  border-radius: 8px;
  background: rgba(145, 70, 255, .12);
  color: #fff;
  font-weight: 800;
  padding: 10px 12px;
  cursor: pointer;
}
.tn-community-remove-fact {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .18);
  color: rgba(229, 231, 235, .78);
}
.tn-community-form label { display: grid; gap: 6px; color: rgba(229, 231, 235, .8); font-weight: 700; }
.tn-community-form input,
.tn-community-form select,
.tn-community-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(0, 0, 0, .24);
  color: #fff;
  padding: 11px 12px;
}
.tn-community-form textarea { resize: vertical; }
.tn-community-hp { position: absolute; left: -9999px; opacity: 0; }
.tn-community-message { min-height: 20px; margin: 0; color: #c4b5fd; }
.tn-community-current {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(229, 231, 235, .78);
}
.tn-community-current strong { color: #fff; }
.tn-community-current p { margin: 0; line-height: 1.45; }
.tn-community-form input[readonly],
.tn-community-form textarea[readonly] {
  color: rgba(229, 231, 235, .62);
  background: rgba(255, 255, 255, .035);
}
.tn-community-photo-note { margin: 0; color: rgba(229, 231, 235, .62); font-size: .88rem; line-height: 1.45; }

@media (max-width: 640px) {
  .tn-community-completion,
  .tn-community-empty { align-items: stretch; flex-direction: column; }
  .tn-community-choices { grid-template-columns: 1fr; }
  .tn-community-fields-grid { grid-template-columns: 1fr; }
  .tn-community-fact-row { grid-template-columns: 1fr; }
  .tn-community-open { width: 100%; }
  .tn-community-section { padding: 14px; }
  .tn-community-section__head { align-items: flex-start; }
  .tn-community-section__head h2 { font-size: 19px; }
  .tn-community-facts__list,
  .tn-community-facts__list.is-carousel,
  .tn-community-facts__list.is-grid { grid-template-columns: 1fr; }
  .tn-community-fact { min-height: 0; }
  .tn-northweb-streamer-banner { grid-template-columns: 1fr; gap: 12px; padding: 20px 18px; }
  .tn-northweb-streamer-banner__cta { justify-content: center; width: 100%; }
}

@media (min-width: 641px) and (max-width: 1050px) {
  .tn-community-facts__list,
  .tn-community-facts__list.is-carousel,
  .tn-community-facts__list.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-northweb-streamer-banner { grid-template-columns: 170px minmax(0, 1fr); }
  .tn-northweb-streamer-banner__cta { grid-column: 1 / -1; justify-self: start; }
}
