@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400;1,700&family=Roboto+Condensed:wght@700;800&display=swap");

.ttgp {
  --ttgp-bg: #f4f6f4;
  --ttgp-ink: #1b1e22;
  --ttgp-ink-soft: #2a2f35;
  --ttgp-gray: #8e8e9a;
  --ttgp-line: #e7e9e7;
  --ttgp-soft: #eef1ee;
  --ttgp-soft-2: #f8faf8;
  --ttgp-green: #239735;
  --ttgp-green-ink: #147a28;
  --ttgp-green-bright: #32d74b;
  --ttgp-shadow-sm: 0 2px 10px rgba(27, 30, 34, 0.06);
  --ttgp-shadow-md: 0 18px 38px rgba(27, 30, 34, 0.12);
  --ttgp-shadow-green: 0 16px 32px rgba(35, 151, 53, 0.22);
  --ttgp-ease: cubic-bezier(.2, .7, .2, 1);
  color: var(--ttgp-ink);
  font-family: "Roboto", system-ui, sans-serif;
}

.ttgp * {
  box-sizing: border-box;
}

.ttgp a {
  color: inherit;
  text-decoration: none;
}

.ttgp button,
.ttgp input,
.ttgp select,
.ttgp textarea {
  font-family: inherit;
}

.ttgp__header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ttgp-line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.ttgp__container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.ttgp__header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.ttgp__brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 21px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ttgp__brand img {
  width: 172px;
  height: auto;
}

.ttgp__nav {
  display: flex;
  gap: 20px;
}

.ttgp__nav a {
  color: var(--ttgp-ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.ttgp__nav a:hover,
.ttgp__user-link:hover {
  color: var(--ttgp-green);
}

.ttgp__spacer {
  flex: 1;
}

.ttgp__header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ttgp__user-link {
  color: var(--ttgp-gray);
  font-size: 14px;
  font-weight: 600;
}

.ttgp__ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--ttgp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ttgp-ink);
  font-size: 14px;
  font-weight: 700;
  transition: border-color .18s var(--ttgp-ease), transform .15s var(--ttgp-ease);
}

.ttgp__ghost-link:hover {
  border-color: var(--ttgp-ink);
  transform: translateY(-1px);
}

.ttgp__dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ttgp-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s var(--ttgp-ease), opacity .18s;
}

.ttgp__dark-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ttgp__page {
  padding: 28px 0 80px;
}

.ttgp__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  align-items: start;
}

.ttgp__sidebar {
  position: sticky;
  top: 104px;
}

.ttgp__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ttgp-card {
  border: 1px solid var(--ttgp-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--ttgp-shadow-sm);
}

.ttgp-card--padded {
  padding: 22px 24px;
}

.ttgp__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ttgp-gray);
  font-size: 13px;
}

.ttgp__crumbs-sep {
  opacity: 0.5;
}

.ttgp__crumbs a:hover {
  color: var(--ttgp-green);
}

.ttgp__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ttgp__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ttgp__badge--open {
  background: rgba(35, 151, 53, 0.12);
  color: var(--ttgp-green-ink);
}

.ttgp__badge--full {
  background: rgba(232, 116, 59, 0.14);
  color: #b8520f;
}

.ttgp__badge--closed {
  background: var(--ttgp-soft);
  color: var(--ttgp-gray);
}

.ttgp__badge--past {
  background: rgba(58, 90, 170, 0.12);
  color: #3a5aaa;
}

.ttgp__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ttgp__title {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.ttgp__title--info {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.ttgp__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}

.ttgp__count-big {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ttgp__count-small {
  color: var(--ttgp-gray);
  font-size: 14px;
  font-weight: 600;
}

.ttgp__fillbar {
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--ttgp-soft);
  overflow: hidden;
}

.ttgp__fillbar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ttgp-green), var(--ttgp-green-bright));
}

.ttgp__fillbar--full > span {
  background: linear-gradient(90deg, #e8743b, #f0964f);
}

.ttgp__info-card {
  overflow: hidden;
}

.ttgp__info-head {
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--ttgp-line);
}

.ttgp__info-mid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px 22px;
}

.ttgp__info-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ttgp__map {
  overflow: hidden;
  border: 1px solid var(--ttgp-line);
  border-radius: 16px;
  background: var(--ttgp-soft-2);
}

.ttgp__map--mid {
  min-height: 188px;
}

.ttgp__map-canvas {
  width: 100%;
  min-height: 188px;
  height: 100%;
}

.ttgp__map-fallback {
  padding: 18px;
  color: var(--ttgp-ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.ttgp__map-link {
  color: var(--ttgp-green-ink);
  font-weight: 700;
}

.ttgp__irow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ttgp__irow-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ttgp-soft);
  color: var(--ttgp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ttgp__irow-label {
  color: var(--ttgp-gray);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ttgp__irow-value {
  margin-top: 2px;
  color: var(--ttgp-ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
}

.ttgp__countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 22px 16px;
  padding: 9px 14px;
  border: 1px solid var(--ttgp-line);
  border-radius: 13px;
  background: var(--ttgp-soft);
}

.ttgp__countdown--warm {
  border-color: rgba(232, 116, 59, 0.25);
  background: rgba(232, 116, 59, 0.08);
}

.ttgp__countdown--past {
  background: var(--ttgp-soft);
}

.ttgp__countdown-label {
  max-width: 92px;
  color: var(--ttgp-gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ttgp__countdown-clock {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.ttgp__countdown-unit {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.ttgp__countdown-unit strong {
  color: var(--ttgp-ink);
  font-size: 19px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ttgp__countdown--warm .ttgp__countdown-unit strong {
  color: #b8520f;
}

.ttgp__countdown-unit span {
  color: var(--ttgp-gray);
  font-size: 10px;
  font-weight: 700;
}

.ttgp__countdown-message {
  display: none;
}

.ttgp__price-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(35, 151, 53, 0.18);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(35, 151, 53, 0.08), rgba(50, 215, 75, 0.05));
}

.ttgp__price-label {
  color: var(--ttgp-gray);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ttgp__price-meta {
  margin-top: 4px;
  color: var(--ttgp-ink-soft);
  font-size: 13.5px;
}

.ttgp__price-meta strong {
  color: var(--ttgp-ink);
}

.ttgp__price-value {
  color: var(--ttgp-green-ink);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: right;
}

.ttgp__price-value small {
  display: block;
  margin-top: 3px;
  color: var(--ttgp-gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ttgp__info-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--ttgp-line);
}

.ttgp__status-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ttgp-line);
  border-radius: 18px;
  background: var(--ttgp-soft-2);
}

.ttgp__status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.ttgp__status-box--in .ttgp__status-icon {
  background: var(--ttgp-green);
}

.ttgp__status-box--warn .ttgp__status-icon {
  background: #e8a33b;
}

.ttgp__status-title {
  color: var(--ttgp-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.ttgp__status-subtitle {
  margin-top: 2px;
  color: var(--ttgp-gray);
  font-size: 12.5px;
}

.ttgp__action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ttgp__action-stack form {
  width: 100%;
}

.ttgp__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--ttgp-green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--ttgp-shadow-green);
  transition: transform .15s var(--ttgp-ease), opacity .18s;
}

.ttgp__action-stack a.ttgp__action-btn:not(.ttgp__action-btn--ghost):not(.ttgp__action-btn--muted),
.ttgp__action-stack a.ttgp__action-btn:not(.ttgp__action-btn--ghost):not(.ttgp__action-btn--muted):visited {
  color: #fff;
}

.ttgp__action-stack .ttgp__action-btn {
  width: 100%;
}

.ttgp__action-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.ttgp__action-btn--ghost {
  background: #fff;
  color: var(--ttgp-ink);
  border: 1px solid var(--ttgp-line);
  box-shadow: none;
}

.ttgp__action-btn--danger {
  background: #d83a45;
  box-shadow: 0 14px 28px rgba(216, 58, 69, 0.18);
}

.ttgp__action-btn--muted {
  background: var(--ttgp-soft);
  color: var(--ttgp-gray);
  border: 1px solid var(--ttgp-line);
  box-shadow: none;
}

.ttgp__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ttgp__section-head h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ttgp__section-head p {
  margin: 5px 0 0;
  color: var(--ttgp-gray);
  font-size: 14px;
  line-height: 1.45;
}

.ttgp__fut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 11px;
  margin-top: 18px;
}

.ttgp__fut-grid--team {
  padding: 12px;
  margin: 0;
}

.ttgp__futc {
  container-type: inline-size;
  width: 100%;
}

.ttgp__fut {
  position: relative;
  width: 100%;
  aspect-ratio: 23 / 32;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9cqw 7cqw 7cqw;
  border-radius: 7cqw;
  color: #3c3211;
  box-shadow: 0 5px 14px rgba(27, 30, 34, 0.16);
  transition: transform .16s var(--ttgp-ease), box-shadow .2s var(--ttgp-ease);
}

.ttgp__fut:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(27, 30, 34, 0.22);
}

.ttgp__fut::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

.ttgp__fut[data-tier="special"] {
  background: linear-gradient(157deg, #fff6d6 2%, #f0d168 38%, #d9ad3c 72%, #b5862a);
}

.ttgp__fut[data-tier="gold"] {
  background: linear-gradient(157deg, #f7ecb6, #e3c468 60%, #cda94e);
}

.ttgp__fut[data-tier="silver"] {
  background: linear-gradient(157deg, #f1f4f7, #cdd5dd 60%, #aeb8c2);
  color: #2b3138;
}

.ttgp__fut[data-tier="bronze"] {
  background: linear-gradient(157deg, #f3dcc0, #d8a878 58%, #bd8350);
  color: #43290f;
}

.ttgp__fut--you {
  outline: 3px solid var(--ttgp-green-bright);
  outline-offset: 2px;
}

.ttgp__fut--team-a {
  box-shadow: 0 0 0 3px #239735, 0 5px 14px rgba(27, 30, 34, 0.18);
}

.ttgp__fut--team-b {
  box-shadow: 0 0 0 3px #2a2a36, 0 5px 14px rgba(27, 30, 34, 0.18);
}

.ttgp__fut--team-a:hover {
  box-shadow: 0 0 0 3px #239735, 0 12px 24px rgba(27, 30, 34, 0.24);
}

.ttgp__fut--team-b:hover {
  box-shadow: 0 0 0 3px #2a2a36, 0 12px 24px rgba(27, 30, 34, 0.24);
}

.ttgp__fut--mini.ttgp__fut--team-a {
  box-shadow: 0 0 0 2px #32d74b, 0 3px 9px rgba(0, 0, 0, 0.35);
}

.ttgp__fut--mini.ttgp__fut--team-b {
  box-shadow: 0 0 0 2px #cfd2dd, 0 3px 9px rgba(0, 0, 0, 0.35);
}

.ttgp__fut-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.ttgp__fut-tl {
  position: absolute;
  top: 8cqw;
  left: 8cqw;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.ttgp__fut-ovr {
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 24cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ttgp__fut-photo {
  align-self: flex-end;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 50%;
  aspect-ratio: 1;
  margin-top: 2cqw;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.ttgp__fut-photo img,
.ttgp__fut-photo span {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ttgp__fut-photo img {
  object-fit: cover;
}

.ttgp__fut-photo span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12cqw;
  font-weight: 900;
  line-height: 1;
}

.ttgp__fut-name {
  width: 100%;
  margin-top: auto;
  padding-top: 4cqw;
  border-top: max(1px, 1.6cqw) solid rgba(0, 0, 0, 0.16);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 14cqw;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  z-index: 2;
}

.ttgp__fut-stats {
  display: flex;
  justify-content: center;
  gap: 5cqw;
  width: 100%;
  margin-top: 4cqw;
  z-index: 2;
}

.ttgp__fut-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.ttgp__fut-stats b {
  font-size: 13cqw;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ttgp__fut-stats small {
  font-size: 8.5cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.72;
  text-transform: uppercase;
}

.ttgp__fut-cap {
  position: absolute;
  top: 7cqw;
  right: 7cqw;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22cqw;
  height: 22cqw;
  border-radius: 50%;
  background: #f5c518;
  color: #1b1e22;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.32);
  font-size: 13cqw;
  font-weight: 900;
}

.ttgp__fut > form {
  position: absolute;
  top: 7cqw;
  right: 7cqw;
  z-index: 5;
}

.ttgp__fut-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24cqw;
  height: 24cqw;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 30, 34, 0.5);
  color: #fff;
  opacity: 0;
  transition: opacity .15s var(--ttgp-ease), background .15s var(--ttgp-ease);
}

.ttgp__fut:hover .ttgp__fut-x {
  opacity: 1;
}

.ttgp__fut-x:hover {
  background: #d32f3f;
}

.ttgp__fut--empty {
  align-items: center;
  justify-content: center;
  background: var(--ttgp-soft-2);
  border: max(2px, 2cqw) dashed var(--ttgp-line);
  box-shadow: none;
  color: var(--ttgp-gray);
  cursor: default;
}

.ttgp__fut--empty::after {
  display: none;
}

.ttgp__fut--empty:hover {
  transform: none;
  box-shadow: none;
}

.ttgp__fut-emn {
  color: var(--ttgp-gray);
  opacity: 0.5;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 32cqw;
  font-weight: 900;
  line-height: 1;
}

.ttgp__fut-eml {
  margin-top: 6cqw;
  color: var(--ttgp-gray);
  opacity: 0.75;
  font-size: 10cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ttgp__share-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px;
  border: 1px solid rgba(35, 151, 53, 0.22);
  border-radius: 16px;
  background: rgba(35, 151, 53, 0.06);
}

.ttgp__share-panel-left {
  min-width: 0;
}

.ttgp__share-panel h3 {
  color: var(--ttgp-green-ink);
  font-size: 16px;
  font-weight: 800;
}

.ttgp__share-panel p {
  margin: 4px 0 0;
  color: var(--ttgp-ink-soft);
  font-size: 13.5px;
  max-width: 46ch;
}

.ttgp__share-url {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(35, 151, 53, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--ttgp-green-ink);
  font-size: 13px;
  font-weight: 700;
  word-break: break-all;
}

.ttgp__teams-setup {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ttgp-line);
  border-radius: 16px;
  background: var(--ttgp-soft-2);
}

.ttgp__teams-setup h3 {
  font-size: 16px;
  font-weight: 800;
}

.ttgp__teams-setup p {
  margin: 4px 0 0;
  color: var(--ttgp-gray);
  font-size: 13.5px;
}

.ttgp__teams-setup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ttgp__teams-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.ttgp__teams-actions form {
  display: inline-flex;
}

.ttgp__teams-actions--top-gap {
  margin-top: 14px;
}

.ttgp__teamcols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.ttgp__teamcol {
  overflow: hidden;
  border: 1px solid var(--ttgp-line);
  border-radius: 16px;
  background: #fff;
}

.ttgp__teamcol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  color: #fff;
}

.ttgp__teamcol--a .ttgp__teamcol-head {
  background: linear-gradient(120deg, #239735, #2bc043);
}

.ttgp__teamcol--b .ttgp__teamcol-head {
  background: linear-gradient(120deg, #1f1f29, #363645);
}

.ttgp__teamcol-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}

.ttgp__teamcol-count {
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.85;
}

.ttgp__jersey {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.ttgp__jersey--a {
  background: linear-gradient(135deg, #32d74b, #15832a);
}

.ttgp__jersey--b {
  background: linear-gradient(135deg, #5a5a72, #23232e);
}

.ttgp__bind-tabs {
  display: inline-flex;
  gap: 2px;
  margin-top: 4px;
  padding: 3px;
  border: 1px solid var(--ttgp-line);
  border-radius: 999px;
  background: var(--ttgp-soft);
}

.ttgp__bind-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ttgp-ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.ttgp__bind-tab svg {
  width: 17px;
  height: 17px;
}

.ttgp__bind-tab--active {
  background: #229ed9;
  color: #fff;
}

.ttgp__bind-tab[disabled] {
  opacity: 0.5;
  cursor: default;
}

.ttgp__bind-body {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed var(--ttgp-line);
  border-radius: 16px;
  background: var(--ttgp-soft);
}

.ttgp__bind-empty {
  color: var(--ttgp-gray);
  font-size: 14px;
}

.ttgp__token {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.ttgp__token code {
  padding: 9px 14px;
  border: 1px solid var(--ttgp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ttgp-ink);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ttgp__bind-command-wrap {
  margin-top: 16px;
}

.ttgp__bind-command-note {
  color: var(--ttgp-ink);
  font-size: 14px;
  line-height: 1.45;
}

.ttgp__bind-connected {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.ttgp__bind-connected-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}

.ttgp__bind-connected--tg .ttgp__bind-connected-icon {
  background: #229ed9;
}

.ttgp__bind-connected-title {
  color: var(--ttgp-ink);
  font-size: 14.5px;
  font-weight: 700;
}

.ttgp__bind-connected-sub {
  margin-top: 1px;
  color: var(--ttgp-gray);
  font-size: 12.5px;
}

.ttgp__slotrow {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 18px;
  padding-left: 2px;
  overflow-x: auto;
}

.ttgp__slot {
  width: 40px;
  height: 54px;
  margin-left: -18px;
  border-radius: 11px;
  flex: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttgp__slot:first-child {
  margin-left: 0;
}

.ttgp__slot--filled {
  background: #fff;
  border: 2px solid #e2e6e2;
  box-shadow: 0 2px 7px rgba(27, 30, 34, 0.16);
}

.ttgp__slot--empty,
.ttgp__slot--more {
  background: #e4e8e4;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(27, 30, 34, 0.1);
}

.ttgp__slot--more {
  width: auto;
  min-width: 40px;
  margin-left: 5px;
  padding: 0 11px;
  color: var(--ttgp-ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.ttgp__slot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9ded9;
}

.ttgp__slot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttgp__slot-avatar span {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.ttgp__share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(35, 151, 53, 0.2);
  border-radius: 20px;
  background: rgba(35, 151, 53, 0.06);
}

.ttgp__share h3 {
  color: var(--ttgp-green-ink);
  font-size: 16px;
  font-weight: 800;
}

.ttgp__share p {
  margin: 4px 0 0;
  color: var(--ttgp-ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 48ch;
}

.ttgp__share-link {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ttgp-green-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
  box-shadow: inset 0 0 0 1px rgba(35, 151, 53, 0.14);
}

.ttgp__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ttgp__pill--you {
  background: rgba(35, 151, 53, 0.12);
  color: var(--ttgp-green-ink);
}

.ttgp__pill--host {
  background: rgba(245, 197, 24, 0.16);
  color: #8d6800;
}

.ttgp__plist {
  margin-top: 18px;
  border: 1px solid var(--ttgp-line);
  border-radius: 16px;
  overflow: hidden;
}

.ttgp__prow {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--ttgp-line);
  background: #fff;
  transition: background .14s var(--ttgp-ease);
}

.ttgp__prow:last-child {
  border-bottom: 0;
}

.ttgp__prow:hover {
  background: var(--ttgp-soft-2);
}

.ttgp__prow-num {
  width: 22px;
  flex: none;
  color: var(--ttgp-gray);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.ttgp__avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ttgp-soft);
}

.ttgp__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttgp__avatar span {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}

.ttgp__prow-main {
  min-width: 0;
  flex: 1;
}

.ttgp__prow-link {
  display: block;
}

a.ttgp__prow-link:hover .ttgp__prow-name {
  color: var(--ttgp-green);
}

.ttgp__prow-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ttgp-ink);
  font-size: 15px;
  font-weight: 700;
}

.ttgp__prow-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttgp__prow-subtitle {
  margin-top: 1px;
  color: var(--ttgp-gray);
  font-size: 12.5px;
}

.ttgp__prow-note {
  margin-top: 4px;
  color: var(--ttgp-gray);
  font-size: 12px;
  line-height: 1.4;
}

.ttgp__pay {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: var(--ttgp-ink-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ttgp__pay--paid {
  color: var(--ttgp-green-ink);
}

.ttgp__pay--pending {
  color: #b8520f;
}

.ttgp__pay--neutral {
  color: var(--ttgp-gray);
}

.ttgp__kick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  background: rgba(232, 59, 79, 0.08);
  color: #d32f3f;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .14s var(--ttgp-ease);
}

.ttgp__kick-button:hover {
  background: rgba(232, 59, 79, 0.16);
}

.ttgp__empty-note {
  margin-top: 14px;
  color: var(--ttgp-gray);
  font-size: 14px;
}

.ttgp__teams-setup {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ttgp-line);
  border-radius: 20px;
  background: var(--ttgp-soft-2);
}

.ttgp__teams-setup h3 {
  font-size: 16px;
  font-weight: 800;
}

.ttgp__teams-setup p {
  margin: 4px 0 0;
  color: var(--ttgp-gray);
  font-size: 13.5px;
}

.ttgp__teams-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ttgp__teams-actions form {
  display: inline-flex;
}

.ttgp__team-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.ttgp__team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ttgp__team-card {
  overflow: hidden;
  border: 1px solid var(--ttgp-line);
  border-radius: 22px;
  background: #fff;
}

.ttgp__team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
}

.ttgp__team-card--a .ttgp__team-head {
  background: linear-gradient(120deg, #239735, #2bc043);
}

.ttgp__team-card--b .ttgp__team-head {
  background: linear-gradient(120deg, #1f1f29, #363645);
}

.ttgp__team-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}

.ttgp__team-chip {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.26);
}

.ttgp__team-count {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.88;
}

.ttgp__team-players {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 12px;
}

.ttgp__player-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 14px 12px;
  background: linear-gradient(160deg, #f8fbf8, #e9f5eb);
  box-shadow: 0 6px 18px rgba(27, 30, 34, 0.12);
}

.ttgp__player-card--a {
  box-shadow: inset 0 0 0 2px #239735, 0 6px 18px rgba(27, 30, 34, 0.12);
}

.ttgp__player-card--b {
  box-shadow: inset 0 0 0 2px #2a2a36, 0 6px 18px rgba(27, 30, 34, 0.12);
}

.ttgp__player-card--captain::after {
  content: "К";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f5c518;
  color: #1b1e22;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ttgp__player-card-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 7px rgba(27, 30, 34, 0.12);
}

.ttgp__player-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttgp__player-card-avatar span {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
}

.ttgp__player-card-name {
  margin-top: 12px;
  color: var(--ttgp-ink);
  font-family: "Roboto Condensed", "Roboto", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.ttgp__player-card-sub {
  margin-top: 5px;
  color: var(--ttgp-ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.ttgp__player-card-pay {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ttgp-ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.ttgp__pitch-wrap {
  margin-top: 18px;
}

.ttgp__pitch-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ttgp__pitch-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ttgp-ink);
  font-size: 13px;
  font-weight: 700;
}

.ttgp__pitch-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 5px;
}

.ttgp__pitch-legend-dot--a {
  background: #239735;
}

.ttgp__pitch-legend-dot--b {
  background: #2a2a36;
}

.ttgp__pitch {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  aspect-ratio: 7 / 11;
  border-radius: 24px;
  overflow: hidden;
  background: repeating-linear-gradient(0deg, #2f9e3e 0 10%, #2b9439 10% 20%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.18);
}

.ttgp__pitch::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.ttgp__pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ttgp__pitch-box,
.ttgp__pitch-box-small {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.44);
}

.ttgp__pitch-box {
  width: 54%;
  height: 11%;
}

.ttgp__pitch-box--top {
  top: 0;
  border-top: 0;
}

.ttgp__pitch-box--bottom {
  bottom: 0;
  border-bottom: 0;
}

.ttgp__pitch-box-small {
  width: 28%;
  height: 5%;
}

.ttgp__pitch-box-small--top {
  top: 0;
  border-top: 0;
}

.ttgp__pitch-box-small--bottom {
  bottom: 0;
  border-bottom: 0;
}

.ttgp__pchip {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 56px;
}

.ttgp__bind-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.ttgp__bind-step {
  display: flex;
  gap: 12px;
}

.ttgp__bind-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  background: #229ed9;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.ttgp__bind-step-body {
  color: var(--ttgp-ink);
  font-size: 14px;
  line-height: 1.45;
}

.ttgp__bind-step-body strong {
  font-weight: 800;
}

.ttgp__bind-command {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f5778;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
  box-shadow: inset 0 0 0 1px rgba(34, 158, 217, 0.18);
}

.ttgp__chat-list {
  margin-top: 18px;
  border: 1px solid var(--ttgp-line);
  border-radius: 18px;
  overflow: hidden;
}

.ttgp__chat-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ttgp-line);
  background: #fff;
}

.ttgp__chat-item:last-child {
  border-bottom: 0;
}

.ttgp__chat-title {
  color: var(--ttgp-ink);
  font-size: 14px;
  font-weight: 800;
}

.ttgp__chat-meta {
  margin-top: 4px;
  color: var(--ttgp-gray);
  font-size: 12px;
}

.ttgp__waitlist {
  margin-top: 18px;
  border: 1px solid var(--ttgp-line);
  border-radius: 18px;
  overflow: hidden;
}

.ttgp__waitlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ttgp-line);
}

.ttgp__waitlist-item:last-child {
  border-bottom: 0;
}

.ttgp__waitlist-name {
  color: var(--ttgp-ink);
  font-size: 14px;
  font-weight: 800;
}

.ttgp__waitlist-sub {
  margin-top: 2px;
  color: var(--ttgp-gray);
  font-size: 12px;
}

.ttgp__waitlist-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--ttgp-soft);
  color: var(--ttgp-ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.ttgp__description {
  margin-top: 16px;
  color: var(--ttgp-ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.ttgp__feedback-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  background: #eff6ff;
}

.ttgp__feedback-card h3 {
  color: #082f49;
  font-size: 18px;
  font-weight: 800;
}

.ttgp__feedback-card p {
  margin-top: 6px;
  color: #0c4a6e;
  font-size: 14px;
}

.ttrating-page {
  max-width: 1040px;
  margin: 0 auto;
}

.ttrating-shell,
.ttrating-results {
  --rating-bg: #f4f6f4;
  --rating-ink: #1b1e22;
  --rating-muted: #71777d;
  --rating-line: rgba(27, 30, 34, 0.1);
  --rating-green: #239735;
  --rating-green-bright: #32d74b;
  --rating-amber: #e0a322;
}

.ttrating-shell {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--rating-line);
  border-radius: 24px;
  background: var(--rating-bg);
  box-shadow: 0 24px 70px -36px rgba(27, 30, 34, 0.55);
}

.ttrating-topbar,
.ttrating-footer,
.ttrating-footer-actions,
.ttrating-taghead,
.ttrating-bars-title,
.ttrating-results-top,
.ttrating-group-title {
  display: flex;
  align-items: center;
}

.ttrating-topbar {
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--rating-line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
}

.ttrating-topbar h1,
.ttrating-copy h2,
.ttrating-empty-state h3,
.ttrating-section-head h3,
.ttrating-highlight-card h3 {
  margin: 0;
  color: var(--rating-ink);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.ttrating-topbar h1 {
  margin-top: 2px;
  font-size: clamp(19px, 3vw, 28px);
}

.ttrating-kicker {
  margin: 0;
  color: var(--rating-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ttrating-iconbtn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rating-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rating-ink);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}

.ttrating-status {
  margin-left: auto;
  white-space: nowrap;
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: var(--rating-ink);
  font-size: 12px;
  font-weight: 800;
}

.ttrating-step {
  padding: 18px;
}

.ttrating-progress {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.ttrating-progress span {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #dde2dd;
}

.ttrating-progress span.is-current {
  background: linear-gradient(90deg, var(--rating-green), var(--rating-green-bright));
}

.ttrating-copy {
  margin-bottom: 18px;
}

.ttrating-copy h2 {
  margin-top: 6px;
  font-size: clamp(24px, 4vw, 34px);
}

.ttrating-copy p:not(.ttrating-kicker),
.ttrating-empty-state p,
.ttrating-section-head p,
.ttrating-highlight-card span,
.ttrating-bars-empty {
  margin: 7px 0 0;
  color: var(--rating-muted);
  font-size: 14px;
  line-height: 1.45;
}

.ttrating-scoreboard,
.ttrating-tags,
.ttrating-bars-grid,
.ttrating-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ttrating-scoreboard {
  margin-top: 16px;
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--rating-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 30, 34, 0.05);
}

.ttrating-team {
  min-width: 0;
  padding: 16px;
}

.ttrating-team.is-a {
  border-right: 1px solid var(--rating-line);
  background: rgba(35, 151, 53, 0.055);
}

.ttrating-team.is-b {
  background: rgba(42, 42, 54, 0.035);
}

.ttrating-team-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.ttrating-team-head h3,
.ttrating-taghead h3,
.ttrating-bars-title h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
}

.ttrating-jersey {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(27, 30, 34, 0.18);
}

.ttrating-team.is-a .ttrating-jersey,
.ttrating-group-title span {
  background: linear-gradient(135deg, #239735, #32d74b);
}

.ttrating-team.is-b .ttrating-jersey,
.ttrating-group-title.is-b span {
  background: linear-gradient(135deg, #2a2a36, #4b4b62);
}

.ttrating-score-stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}

.ttrating-score-buttons {
  display: flex;
  gap: 8px;
}

.ttrating-score-stepper button {
  display: flex;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1.6px solid var(--rating-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rating-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.ttrating-score-stepper input {
  width: 64px;
  border: 0;
  background: transparent;
  color: var(--rating-ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ttrating-score-stepper input::-webkit-outer-spin-button,
.ttrating-score-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.ttrating-team-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rating-line);
}

.ttrating-mini-card,
.ttrating-mini-card .ttgp__futc {
  width: 100%;
  min-width: 0;
}

.ttrating-mini-card .ttgp__fut:hover {
  transform: none;
}

.ttrating-score-verdict {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(35, 151, 53, 0.11);
  padding: 11px 16px;
  color: #1f742d;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.ttrating-score-verdict--draw {
  background: #e7ebe7;
  color: #525960;
}

.ttrating-tagbox,
.ttrating-empty-state,
.ttrating-locked-state,
.ttrating-results-section,
.ttrating-highlight-card {
  min-width: 0;
  border: 1px solid var(--rating-line);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(27, 30, 34, 0.045);
}

.ttrating-locked-state {
  text-align: center;
}

.ttrating-locked-state p {
  margin: 0;
  color: var(--rating-green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ttrating-locked-state h2 {
  max-width: 560px;
  margin: 8px auto 0;
  color: var(--rating-ink);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 950;
  line-height: 1.08;
}

.ttrating-locked-state span,
.ttrating-locked-state em {
  display: block;
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--rating-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.ttrating-taghead,
.ttrating-bars-title {
  gap: 9px;
}

.ttrating-taghead > span,
.ttrating-bars-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--rating-green);
  color: #fff;
  font-weight: 900;
}

.ttrating-tagbox.is-better .ttrating-taghead > span,
.ttrating-bars.is-better .ttrating-bars-title span {
  background: var(--rating-amber);
}

.ttrating-taghead em {
  margin-left: auto;
  color: var(--rating-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.ttrating-chipgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.ttrating-chip {
  cursor: pointer;
}

.ttrating-chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid var(--rating-line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 14px;
  color: #343940;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.ttrating-chip i {
  display: none;
  font-style: normal;
}

.ttrating-chip input:checked + span {
  border-color: var(--rating-green);
  background: rgba(35, 151, 53, 0.12);
  color: #1f742d;
}

.ttrating-tagbox.is-better .ttrating-chip input:checked + span {
  border-color: var(--rating-amber);
  background: rgba(224, 163, 34, 0.15);
  color: #835d08;
}

.ttrating-chip input:checked + span i {
  display: inline;
}

.ttrating-tagbox textarea {
  width: 100%;
  min-height: 82px;
  margin-top: 13px;
  resize: vertical;
  border: 1px solid var(--rating-line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  color: var(--rating-ink);
  font: inherit;
  font-size: 14px;
}

.ttrating-player-list,
.ttrating-results-list,
.ttrating-results,
.ttrating-bar-list,
.ttrating-results-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ttrating-results {
  gap: 18px;
}

.ttrating-group-title {
  gap: 9px;
  margin: 12px 0 2px;
  color: #343940;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ttrating-group-title span {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.ttrating-group-title em {
  margin-left: auto;
  color: var(--rating-muted);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ttrating-player-row,
.ttrating-result-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--rating-line);
  border-radius: 16px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 4px 14px rgba(27, 30, 34, 0.035);
}

.ttrating-player-name {
  min-width: 0;
}

.ttrating-player-name strong,
.ttrating-player-name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ttrating-player-name strong {
  color: var(--rating-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}

.ttrating-player-name span {
  margin-top: 3px;
  color: var(--rating-muted);
  font-size: 12px;
  font-weight: 600;
}

.ttrating-stars {
  display: flex;
  gap: 1px;
}

.ttrating-stars button {
  border: 0;
  background: transparent;
  color: #d4d8d4;
  cursor: pointer;
  font-size: 29px;
  line-height: 1;
  padding: 2px;
}

.ttrating-stars button.text-amber-400 {
  color: #f5c518;
}

.ttrating-me {
  border-radius: 999px;
  background: rgba(35, 151, 53, 0.12);
  padding: 7px 11px;
  color: #1f742d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ttrating-footer {
  position: sticky;
  bottom: 0;
  justify-content: space-between;
  gap: 12px;
  margin: 20px -18px -18px;
  border-top: 1px solid var(--rating-line);
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 18px;
  backdrop-filter: blur(16px);
}

.ttrating-footer-actions {
  gap: 10px;
  margin-left: auto;
}

.ttrating-primary,
.ttrating-secondary,
.ttrating-link,
.ttrating-results-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.ttrating-primary,
.ttrating-results-cta {
  background: var(--rating-green);
  color: #fff;
}

.ttrating-inline-cta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 12px;
  background: var(--rating-green);
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.ttrating-secondary,
.ttrating-link {
  background: #e9ede9;
  color: #343940;
}

.ttrating-count {
  color: var(--rating-muted);
  font-size: 13px;
  font-weight: 800;
}

.ttrating-results-hero {
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(circle at 82% 24%, rgba(50, 215, 75, 0.55), transparent 28%), linear-gradient(135deg, #1f742d, #46b438);
  padding: 24px;
  color: #fff;
  box-shadow: 0 22px 54px -34px rgba(27, 30, 34, 0.62);
}

.ttrating-results-hero.is-pending {
  background: radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.16), transparent 26%), linear-gradient(135deg, #20202b, #2e2c38);
}

.ttrating-results-top {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ttrating-results-top p,
.ttrating-results-meta span,
.ttrating-results-badge {
  color: rgba(255, 255, 255, 0.76);
}

.ttrating-results-top p {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ttrating-results-top h2 {
  margin: 12px 0 0;
  font-size: clamp(46px, 11vw, 82px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.ttrating-results-top h2 span {
  opacity: 0.55;
  padding: 0 8px;
}

.ttrating-results-meta {
  gap: 5px;
  margin-top: 15px;
}

.ttrating-results-meta strong {
  font-size: 19px;
  font-weight: 950;
}

.ttrating-results-badge {
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
}

.ttrating-empty-state {
  text-align: center;
}

.ttrating-section-head {
  margin-bottom: 16px;
}

.ttrating-bars {
  min-width: 0;
  border: 1px solid var(--rating-line);
  border-radius: 18px;
  padding: 16px;
}

.ttrating-bars-title {
  margin-bottom: 14px;
}

.ttrating-bar-row {
  display: grid;
  grid-template-columns: minmax(94px, 1fr) minmax(80px, 1.1fr) 24px;
  align-items: center;
  gap: 10px;
}

.ttrating-bar-row strong {
  color: #343940;
  font-size: 13px;
  font-weight: 850;
}

.ttrating-bar-row div {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e7ebe7;
}

.ttrating-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rating-green), var(--rating-green-bright));
}

.ttrating-bars.is-better .ttrating-bar-row i {
  background: linear-gradient(90deg, #d89a1f, #f1c45a);
}

.ttrating-bar-row span,
.ttrating-result-rating span {
  color: var(--rating-muted);
  font-size: 12px;
  font-weight: 800;
}

.ttrating-highlight-card > p {
  margin: 0 0 14px;
  color: var(--rating-green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ttrating-result-rating {
  min-width: 82px;
  text-align: right;
}

.ttrating-rating-star {
  color: #f5c518;
}

.ttrating-result-rating .ttrating-rating-star,
.ttrating-highlight-card h3 .ttrating-rating-star {
  color: #f5c518;
}

.ttrating-result-rating strong {
  display: block;
  color: var(--rating-ink);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ttrating-shell {
    margin: -20px -16px 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .ttrating-status {
    display: none;
  }

  .ttrating-tags,
  .ttrating-bars-grid,
  .ttrating-summary-grid {
    grid-template-columns: 1fr;
  }

  .ttrating-team.is-a {
    border-right: 1px solid var(--rating-line);
    border-bottom: 0;
  }

  .ttrating-team {
    padding: 12px 8px;
  }

  .ttrating-team-head {
    gap: 6px;
  }

  .ttrating-team-head h3 {
    font-size: 13px;
  }

  .ttrating-jersey {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .ttrating-score-stepper {
    gap: 10px;
  }

  .ttrating-score-stepper button {
    width: 44px;
    height: 40px;
    border-radius: 12px;
    font-size: 24px;
  }

  .ttrating-score-stepper input {
    width: 64px;
    font-size: 46px;
  }

  .ttrating-team-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .ttrating-player-row,
  .ttrating-result-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .ttrating-stars,
  .ttrating-me,
  .ttrating-result-rating {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .ttrating-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ttrating-footer-actions,
  .ttrating-primary,
  .ttrating-secondary,
  .ttrating-link {
    width: 100%;
  }
}

@media (max-width: 1080px) {
  .ttgp__grid {
    grid-template-columns: 1fr;
  }

  .ttgp__sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  .ttgp__team-grid,
  .ttgp__teamcols,
  .ttgp__info-grid {
    grid-template-columns: 1fr;
  }

  .ttgp__info-mid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ttgp__nav {
    display: none;
  }

  .ttgp__header-row {
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 0;
  }

  .ttgp__header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .ttgp__section-head,
  .ttgp__share,
  .ttgp__share-panel,
  .ttgp__teams-setup-row,
  .ttgp__title-row,
  .ttgp__countdown,
  .ttgp__price-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .ttgp__countdown-clock {
    width: 100%;
    justify-content: space-between;
  }

  .ttgp__price-value {
    text-align: left;
  }

  .ttgp__team-players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ttgp__container {
    padding: 0 18px;
  }

  .ttgp__page {
    padding-top: 20px;
  }

  .ttgp__info-head,
  .ttgp__info-mid,
  .ttgp__info-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ttgp__countdown {
    margin-left: 18px;
    margin-right: 18px;
  }

  .ttgp__fut-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  }

  .ttgp__pchip {
    width: 50px;
  }
}

/* ===== TeamTeam — Player profile screen ===== */
.ttprofile-page {
  --ttprofile-bg: #f4f6f4;
  --ttprofile-green: #239735;
  --ttprofile-green-bright: #32d74b;
  --ttprofile-green-ink: #147a28;
  --ttprofile-ink: #1b1e22;
  --ttprofile-ink-soft: #2a2f35;
  --ttprofile-gray: #8e8e9a;
  --ttprofile-line: #e7e9e7;
  --ttprofile-bg-soft: #f4f6f4;
  --ttprofile-bg-mute: #eef1ee;
  --ttprofile-radius-lg: 24px;
  --ttprofile-shadow-sm: 0 2px 10px rgba(27, 30, 34, 0.06);
  --ttprofile-shadow-md: 0 12px 34px rgba(27, 30, 34, 0.10);
  --ttprofile-shadow-green: 0 14px 30px rgba(35, 151, 53, 0.28);
  --ttprofile-ease: cubic-bezier(.2, .7, .2, 1);
  margin: -32px calc(50% - 50vw) -40px;
  padding: 26px 0 80px;
  background: var(--ttprofile-bg);
  color: var(--ttprofile-ink);
}

.ttprofile-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.ttprofile-card {
  border: 1px solid var(--ttprofile-line);
  border-radius: var(--ttprofile-radius-lg);
  background: #fff;
  box-shadow: var(--ttprofile-shadow-sm);
}

.ttprofile-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ttprofile-gray);
  font-size: 13px;
}

.ttprofile-crumbs a:hover {
  color: var(--ttprofile-green);
}

.ttprofile-crumbs .sep {
  opacity: .5;
}

.ttprofile-hero {
  overflow: hidden;
  margin-bottom: 24px;
}

.ttprofile-hero-banner {
  position: relative;
  height: 128px;
  background: linear-gradient(120deg, #147a28, #239735 45%, #2bc043);
}

.ttprofile-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 85% -20%, rgba(255, 255, 255, 0.22), transparent 60%);
}

.ttprofile-hero-body {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: start;
  padding: 0 32px 30px;
}

.ttprofile-hero-card {
  width: 100%;
  margin-top: -92px;
}

.ttprofile-hero-card .ttgp__futc {
  filter: drop-shadow(0 16px 30px rgba(27, 30, 34, 0.28));
}

.ttprofile-hero-card .ttgp__fut:hover {
  transform: none;
}

.ttprofile-hero-id {
  min-width: 0;
  padding-top: 22px;
}

.ttprofile-hero-name {
  margin: 0;
  color: var(--ttprofile-ink);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.ttprofile-hero-user {
  margin-top: 4px;
  color: var(--ttprofile-gray);
  font-size: 15px;
  font-weight: 600;
}

.ttprofile-hero-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ttprofile-chip-soft {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--ttprofile-line);
  border-radius: 999px;
  background: var(--ttprofile-bg-soft);
  color: var(--ttprofile-ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.ttprofile-chip-soft svg {
  width: 15px;
  height: 15px;
  color: var(--ttprofile-green);
}

.ttprofile-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ttprofile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .15s var(--ttprofile-ease), box-shadow .2s var(--ttprofile-ease), background .2s, color .2s, border-color .2s;
}

.ttprofile-btn:active {
  transform: translateY(1px);
}

.ttprofile-btn-primary {
  background: var(--ttprofile-green);
  color: #fff;
}

.ttprofile-btn-primary:hover {
  background: var(--ttprofile-green-ink);
  box-shadow: var(--ttprofile-shadow-green);
}

.ttprofile-btn-ghost {
  border-color: var(--ttprofile-line);
  background: transparent;
  color: var(--ttprofile-ink);
}

.ttprofile-btn-ghost:hover {
  border-color: var(--ttprofile-ink);
}

.ttprofile-btn-pill {
  border-radius: 999px;
}

.ttprofile-sec {
  padding: 24px 26px;
}

.ttprofile-sec-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.ttprofile-sec-h h2 {
  margin: 0;
  color: var(--ttprofile-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ttprofile-sec-h .hint {
  color: var(--ttprofile-gray);
  font-size: 13px;
  font-weight: 600;
}

.ttprofile-tiles-full {
  grid-template-columns: repeat(5, 1fr);
}

.ttprofile-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.ttprofile-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wdl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 18px;
}

.wdl .wdl-i {
  padding: 13px 8px;
  border: 1px solid #e5e8e6;
  border-radius: 12px;
  text-align: center;
}

.wdl .wdl-i b {
  display: block;
  color: #1b1e22;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wdl .wdl-i span {
  display: block;
  margin-top: 5px;
  color: #8e8e9a;
  font-size: 12px;
  font-weight: 600;
}

.wdl .wdl-i.w b {
  color: #147a28;
}

.wdl .wdl-i.l b {
  color: #c33;
}

.stat-tile.loss .v {
  color: #c33;
}

.fpill.big {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
}

.attrbars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 26px;
}

.attrbar {
  display: flex;
  align-items: center;
  gap: 11px;
}

.attrbar .ab-k {
  width: 34px;
  flex: none;
  color: #2a2f35;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.attrbar .ab-v {
  width: 26px;
  flex: none;
  color: #1b1e22;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.attrbar .ab-track {
  overflow: hidden;
  flex: 1;
  height: 8px;
  border-radius: 8px;
  background: #eef1ee;
}

.attrbar .ab-fill {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #239735, #32d74b);
}

.rel-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rel-item .rel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.rel-item .rel-h .rl {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2a2f35;
  font-size: 13.5px;
  font-weight: 700;
}

.rel-item .rel-h .rl svg {
  width: 16px;
  height: 16px;
  color: #239735;
}

.rel-item .rel-h .rv {
  color: #1b1e22;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.rel-track {
  overflow: hidden;
  height: 9px;
  border-radius: 9px;
  background: #eef1ee;
}

.rel-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, #239735, #32d74b);
}

.rel-fill.pay {
  background: linear-gradient(90deg, #3a6ad4, #5b8df0);
}

.matches {
  overflow: hidden;
  border: 1px solid #e5e8e6;
  border-radius: 14px;
}

.mrow {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #e5e8e6;
}

.mrow:last-child {
  border-bottom: 0;
}

.mrow:hover {
  background: #f4f6f4;
}

.mrow .mres {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  color: #fff;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.mrow .mres.w {
  background: #239735;
}

.mrow .mres.d {
  background: #b9bcc3;
}

.mrow .mres.l {
  background: #d3452f;
}

.mrow .mmid {
  min-width: 0;
}

.mrow .mvenue {
  overflow: hidden;
  color: #1b1e22;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mrow .mdate {
  margin-top: 1px;
  color: #8e8e9a;
  font-size: 12px;
}

.mrow .mstat {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.mrow .mscore {
  color: #1b1e22;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mrow .mga {
  display: flex;
  gap: 9px;
}

.mrow .mga span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #2a2f35;
  font-size: 12.5px;
  font-weight: 700;
}

.mrow .mga span small {
  color: #8e8e9a;
  font-weight: 600;
}

.mrow .mrate {
  padding: 3px 8px;
  border-radius: 7px;
  background: #f4f6f4;
  color: #1b1e22;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.pos-played {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .ttprofile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ttprofile-hero-body {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
    padding: 0 20px 24px;
    text-align: center;
  }

  .ttprofile-hero-id {
    padding-top: 0;
  }

  .ttprofile-hero-chips,
  .ttprofile-hero-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .ttprofile-page {
    margin-top: -32px;
  }

  .ttprofile-container {
    padding: 0 18px;
  }

  .ttprofile-tiles-full {
    grid-template-columns: repeat(2, 1fr);
  }

  .ttprofile-hero-name {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .mrow .mga {
    display: none;
  }
}

@media (max-width: 480px) {
  .attrbars {
    grid-template-columns: 1fr;
  }
}

/* ===== TeamTeam — Player profile popup ===== */
.ttpop-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 15, 17, 0.6);
  backdrop-filter: blur(4px);
  color: #1b1e22;
}

.ttpop-dialog:not([open]) {
  display: none;
}

.ttpop-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.ttpop-dialog::backdrop {
  background: transparent;
}

.ttpop-dialog turbo-frame {
  display: flex;
  width: 100%;
  max-width: 440px;
  flex-direction: column;
}

.ttpop-sheet {
  position: relative;
  display: flex;
  width: 100%;
  max-height: 92vh;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.ttpop-sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #e5e8e6;
  transform: translateX(-50%);
}

.ttpop-x {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e8e6;
  border-radius: 50%;
  background: #f3f5f3;
  color: #1b1e22;
  cursor: pointer;
  transition: .15s;
}

.ttpop-x:hover {
  background: #e9ece9;
}

.ttpop-body {
  overflow: auto;
  padding: 30px 22px 18px;
  -webkit-overflow-scrolling: touch;
}

.ttpop-cardw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.ttpop-cardw .ttgp__futc {
  width: 150px;
}

.ttpop-cardw .ttgp__fut:hover {
  transform: none;
}

.ttpop-id {
  margin-top: 16px;
  text-align: center;
}

.ttpop-nm {
  color: #1b1e22;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.ttpop-uu {
  margin-top: 3px;
  color: #8e8e9a;
  font-size: 14px;
  font-weight: 600;
}

.ttpop-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ttpop-since {
  color: #8e8e9a;
  font-size: 12.5px;
  font-weight: 600;
}

.ttpop-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5e8e6;
}

.ttpop-block .formstreak {
  justify-content: flex-start;
}

.ttpop-foot {
  padding: 14px 22px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid #e5e8e6;
  border-radius: 0 0 24px 24px;
  background: #fff;
}

.ttpop-foot .btn {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #239735;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: .15s;
}

.ttpop-foot .btn:hover {
  background: #147a28;
}

.ttpop-empty {
  margin: 0;
  color: #8e8e9a;
  font-size: 14px;
  font-weight: 600;
}

.ttprofile-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ece9;
}

.ttprofile-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: ttprofile-shimmer 1.2s infinite;
  transform: translateX(-100%);
}

.ttprofile-skeleton-card {
  width: 150px;
  aspect-ratio: 23 / 32;
  border-radius: 18px;
}

.ttprofile-skeleton-tier {
  width: 82px;
  height: 21px;
}

.ttprofile-skeleton-name {
  width: 180px;
  height: 24px;
  margin: 0 auto;
}

.ttprofile-skeleton-user {
  width: 92px;
  height: 16px;
  margin: 9px auto 0;
}

@keyframes ttprofile-shimmer {
  to {
    transform: translateX(100%);
  }
}

.pos-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: #1b1e22;
  color: #fff;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.1;
  white-space: nowrap;
}

.pos-chip.gk {
  background: #e8a33b;
}

.pos-chip.def {
  background: #3a6ad4;
}

.pos-chip.mid {
  background: #239735;
}

.pos-chip.fwd {
  background: #d3452f;
}

.tier-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tier-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.tier-tag[data-tier="special"] {
  background: rgba(217, 173, 60, 0.18);
  color: #9a6b00;
}

.tier-tag[data-tier="gold"] {
  background: rgba(217, 173, 60, 0.16);
  color: #9a6b00;
}

.tier-tag[data-tier="silver"] {
  background: rgba(120, 135, 150, 0.16);
  color: #5b6470;
}

.tier-tag[data-tier="bronze"] {
  background: rgba(189, 131, 80, 0.18);
  color: #8a5a2b;
}

.stat-tiles {
  display: grid;
  gap: 11px;
}

.ttp-stats-compact {
  grid-template-columns: repeat(3, 1fr);
}

.stat-tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 14px 14px 13px;
  border: 1px solid #e5e8e6;
  border-radius: 14px;
  background: #fff;
}

.stat-tile .v {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #1b1e22;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-tile .v small {
  color: #8e8e9a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.stat-tile .k {
  margin-top: 5px;
  color: #8e8e9a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}

.stat-tile.win .v {
  color: #147a28;
}

.stat-tile.gold .v {
  color: #a9810f;
}

.stat-tile.hl {
  border-color: rgba(35, 151, 53, 0.24);
  background: linear-gradient(135deg, rgba(35, 151, 53, 0.1), rgba(50, 215, 75, 0.06));
}

.formstreak {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fpill {
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 8px;
  color: #fff;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.fpill.w {
  background: #239735;
}

.fpill.d {
  background: #b9bcc3;
}

.fpill.l {
  background: #d3452f;
}

.mini-h {
  margin-bottom: 11px;
  color: #8e8e9a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (min-width: 560px) {
  .ttpop-dialog[open] {
    justify-content: center;
    padding: 24px;
  }

  .ttpop-sheet {
    max-height: 90vh;
    border-radius: 24px;
  }

  .ttpop-sheet::before {
    display: none;
  }

  .ttpop-foot {
    border-radius: 0 0 24px 24px;
  }
}
