.tt-public {
  --tt-blue: #123f76;
  --tt-blue-2: #1e5c9d;
  --tt-blue-dark: #0f2d52;
  --tt-gold: #f0b323;
  --tt-gold-soft: #fff4cf;
  --tt-ink: #102033;
  --tt-muted: #64748b;
  --tt-line: #d8e2ef;
  --tt-line-soft: #e7edf5;
  --tt-soft: #f5f8fc;
  --tt-soft-2: #fbfdff;
  --tt-card: #ffffff;
  --tt-shadow: 0 14px 34px rgba(16,32,51,.08);
  color: var(--tt-ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  max-width: 1100px;
  margin: 0 auto 36px;
}
.tt-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
.tt-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--tt-blue), #0f2d52);
  color: #fff;
  border-radius: 8px;
  border-left: 6px solid var(--tt-gold);
}
.tt-kicker {
  color: #ffe8a3;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tt-hero h2 { margin: 4px 0 8px; color: #fff; font-size: 1.75rem; }
.tt-hero p { margin: 0; color: rgba(255,255,255,.9); }
.tt-hero-badge {
  background: var(--tt-gold);
  color: #172033;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  white-space: nowrap;
}
.tt-section {
  margin-top: 24px;
}
.tt-section h3,
.tt-form-wrap h2,
.tt-scoring h2 {
  color: var(--tt-blue);
  font-size: 1.2rem;
  margin: 0 0 12px;
}
.tt-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  gap: 20px;
  align-items: start;
}
.tt-two-col > div {
  container-type: inline-size;
}
.tt-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.tt-team-card,
.tt-match,
.tt-awards > div,
.tt-form,
.tt-score-row,
.tt-group-card {
  background: var(--tt-card);
  border: 1px solid var(--tt-line);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16,32,51,.06);
}
.tt-team-card { padding: 12px 14px; font-weight: 800; }
.tt-groups {
  display: grid;
  gap: 20px;
}
.tt-group-card {
  overflow: hidden;
  box-shadow: var(--tt-shadow);
}
.tt-group-card h4 {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--tt-line);
  background: linear-gradient(90deg, var(--tt-blue), var(--tt-blue-dark));
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}
.tt-match-list { display: grid; gap: 8px; }
.tt-match {
  display: grid;
  grid-template-columns: 110px minmax(0,1fr) 54px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.tt-match span { color: var(--tt-muted); font-size: .83rem; }
.tt-match b {
  text-align: center;
  color: var(--tt-blue);
  font-size: 1rem;
}
.tt-standings-wrap {
  width: 100%;
  overflow-x: visible;
}
.tt-standings {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.tt-standings th {
  background: #f8fafc;
  color: var(--tt-muted);
  font-size: .72rem;
  font-weight: 850;
  padding: 10px 8px;
  text-align: left;
  text-transform: uppercase;
}
.tt-standings td {
  padding: 10px 8px;
  border-top: 1px solid var(--tt-line);
  background: #fff;
}
.tt-standings th:not(:nth-child(2)),
.tt-standings td:not(:nth-child(2)) {
  text-align: center;
  white-space: nowrap;
}
.tt-standings th:nth-child(2),
.tt-standings td:nth-child(2) {
  min-width: 130px;
}
.tt-team-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: var(--tt-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-align: left;
}
.tt-team-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tt-team-link:hover span:last-child,
.tt-team-link:focus span:last-child {
  color: var(--tt-blue-2);
  text-decoration: underline;
}
.tt-team-mark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 2px solid var(--tt-gold);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px var(--tt-gold-soft);
}
.tt-form-chips {
  display: inline-flex;
  gap: 4px;
  justify-content: center;
}
.tt-form-chip {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
}
.tt-form-chip-s { background: #15946c; }
.tt-form-chip-u { background: #7a8794; }
.tt-form-chip-n { background: #c23d3d; }
.tt-form-empty {
  color: var(--tt-muted);
  font-weight: 800;
}
@container (max-width: 560px) {
  .tt-standings-wrap {
    overflow-x: visible;
  }
  .tt-standings {
    table-layout: fixed;
    min-width: 0;
    font-size: .84rem;
  }
  .tt-standings th {
    padding: 7px 5px;
    font-size: .68rem;
  }
  .tt-standings td {
    padding: 8px 5px;
    vertical-align: middle;
  }
  .tt-standings th:nth-child(1),
  .tt-standings td:nth-child(1) {
    width: 28px;
  }
  .tt-standings th:nth-child(2),
  .tt-standings td:nth-child(2) {
    min-width: 0;
    width: auto;
  }
  .tt-standings th:nth-child(3),
  .tt-standings td:nth-child(3) {
    width: 32px;
  }
  .tt-standings th:nth-child(7),
  .tt-standings td:nth-child(7) {
    width: 42px;
  }
  .tt-standings th:nth-child(8),
  .tt-standings td:nth-child(8) {
    width: 36px;
  }
  .tt-standings th:nth-child(9),
  .tt-standings td:nth-child(9) {
    width: 34px;
  }
  .tt-standings th:nth-child(4),
  .tt-standings th:nth-child(5),
  .tt-standings th:nth-child(6),
  .tt-standings th:nth-child(10),
  .tt-standings td:nth-child(4),
  .tt-standings td:nth-child(5),
  .tt-standings td:nth-child(6),
  .tt-standings td:nth-child(10) {
    display: none !important;
  }
  .tt-standings td:nth-child(1) {
    background: var(--tt-blue);
    color: #fff;
    font-weight: 800;
  }
  .tt-standings td:nth-child(2) {
    text-align: left;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }
  .tt-standings td:nth-child(3),
  .tt-standings td:nth-child(7),
  .tt-standings td:nth-child(9) {
    font-weight: 800;
  }
}
.tt-group-fixtures {
  padding: 15px 18px 18px;
  background: var(--tt-soft-2);
  border-top: 1px solid var(--tt-line);
}
.tt-group-fixtures h5 {
  margin: 0 0 10px;
  color: var(--tt-ink);
  font-size: .86rem;
  text-transform: uppercase;
}
.tt-fixture-list {
  display: grid;
  gap: 7px;
}
.tt-fixture {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 54px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--tt-line-soft);
  border-radius: 7px;
  background: #fff;
}
.tt-fixture span,
.tt-fixture em {
  color: var(--tt-muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 750;
}
.tt-fixture span {
  color: var(--tt-blue);
}
.tt-fixture em {
  justify-self: end;
  border: 1px solid var(--tt-line);
  border-radius: 999px;
  background: var(--tt-soft);
  padding: 3px 8px;
  color: #52647a;
  font-size: .72rem;
  line-height: 1.2;
}
.tt-fixture strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}
.tt-fixture b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  background: var(--tt-blue);
  color: #fff;
  font-weight: 900;
  text-align: center;
}
.tt-match b {
  color: var(--tt-blue);
  text-align: center;
}
.tt-team-modal[hidden] {
  display: none;
}
.tt-team-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}
.tt-team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 24, 42, .62);
}
.tt-team-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(680px, 86vh);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 24, 42, .28);
  border: 1px solid rgba(255,255,255,.25);
  padding: 0;
}
.tt-team-modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px 54px 16px 20px;
  border-bottom: 1px solid var(--tt-line);
  background: linear-gradient(135deg, var(--tt-blue), var(--tt-blue-dark));
  color: #fff;
}
.tt-team-modal__head .tt-kicker {
  color: var(--tt-gold-soft);
}
.tt-team-modal__dialog h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.25;
}
.tt-team-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.tt-team-modal__close:hover,
.tt-team-modal__close:focus {
  background: #fff;
  color: var(--tt-blue);
}
.tt-team-modal__matches {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--tt-soft-2);
}
.tt-team-modal__match {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 54px 74px 28px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--tt-line-soft);
  border-radius: 7px;
  background: #fff;
}
.tt-team-modal__match span,
.tt-team-modal__match em {
  color: var(--tt-muted);
  font-size: .78rem;
  font-style: normal;
}
.tt-team-modal__match span {
  color: var(--tt-blue);
  font-weight: 800;
}
.tt-team-modal__match strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-team-modal__match b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 6px;
  background: var(--tt-blue);
  color: #fff;
  font-weight: 900;
  text-align: center;
}
.tt-team-modal__match em {
  justify-self: end;
  border: 1px solid var(--tt-line);
  border-radius: 999px;
  background: var(--tt-soft);
  padding: 3px 8px;
  color: #52647a;
  font-size: .72rem;
  line-height: 1.2;
}
.tt-modal-open {
  overflow: hidden;
}
.tt-awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.tt-awards > div { padding: 14px; }
.tt-awards span { display: block; color: var(--tt-muted); font-size: .85rem; }
.tt-awards strong { color: var(--tt-blue); font-size: 1.05rem; }
.tt-muted { color: var(--tt-muted); }
.tt-qr-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--tt-line);
  border-left: 6px solid var(--tt-gold);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16,32,51,.06);
  padding: 16px;
}
.tt-qr-frame {
  background: #fff;
  border: 1px solid var(--tt-line);
  border-radius: 8px;
  padding: 10px;
}
.tt-qr-frame img {
  display: block;
  width: 126px;
  height: 126px;
}
.tt-qr-copy span {
  display: block;
  color: var(--tt-gold);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.tt-qr-copy strong {
  display: block;
  color: var(--tt-blue);
  font-size: 1.1rem;
}
.tt-qr-copy p {
  margin: 5px 0;
  color: var(--tt-muted);
}
.tt-qr-copy a {
  display: block;
  overflow-wrap: anywhere;
}
.tt-qr-download {
  margin-top: 8px;
  font-weight: 800;
}
.tt-action-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: var(--tt-soft);
  border: 1px solid var(--tt-line);
  border-left: 6px solid var(--tt-gold);
  border-radius: 8px;
  padding: 16px;
}
.tt-action-strip p {
  margin: 0;
  color: var(--tt-muted);
}
.tt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  background: var(--tt-blue);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.tt-button:hover,
.tt-button:focus {
  color: #fff;
  background: var(--tt-blue-2);
}
.tt-form-wrap,
.tt-scoring { max-width: 780px; }
.tt-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.tt-form label {
  display: grid;
  gap: 5px;
  font-weight: 750;
}
.tt-form .tt-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.35;
}
.tt-form .tt-check input {
  width: auto;
  margin-top: 2px;
}
.tt-form input,
.tt-form textarea,
.tt-score-row input,
.tt-score-unlock input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--tt-line);
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
}
.tt-form input:focus,
.tt-form textarea:focus,
.tt-score-row input:focus,
.tt-score-unlock input:focus {
  outline: 2px solid rgba(30,92,157,.18);
  border-color: var(--tt-blue-2);
}
.tt-form button,
.tt-score-row button,
.tt-score-unlock button {
  border: 0;
  border-radius: 6px;
  background: var(--tt-blue);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.tt-message {
  margin: 0 0 12px;
  border: 1px solid #b9d7ff;
  background: #eef6ff;
  color: #17406e;
  border-radius: 8px;
  padding: 11px 13px;
}
.tt-score-session {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 8px;
  padding: 11px 13px;
  font-weight: 700;
}
.tt-score-unlock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--tt-line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}
.tt-score-unlock label {
  display: grid;
  gap: 5px;
  font-weight: 750;
}
.tt-score-row {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr) 54px 18px 54px minmax(0,1fr) 90px 96px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
}
.tt-score-row-unlocked {
  grid-template-columns: 96px minmax(0,1fr) 54px 18px 54px minmax(0,1fr) 96px 82px;
}
.tt-score-group {
  border: 1px solid var(--tt-line);
  border-radius: 8px;
  background: #fff;
  margin: 12px 0;
  overflow: hidden;
}
.tt-score-group summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--tt-blue);
  font-weight: 850;
  padding: 12px 14px;
}
.tt-score-group summary span {
  color: var(--tt-muted);
  font-size: .8rem;
}
.tt-score-group .tt-score-row {
  border-top: 1px solid var(--tt-line);
  margin: 0;
}
.tt-score-row-unlocked.is-finished {
  background: #f8fbff;
}
.tt-score-row-unlocked em {
  justify-self: end;
  color: var(--tt-muted);
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.tt-score-row input { padding: 8px; }
.tt-score-row span { color: var(--tt-muted); font-size: .85rem; }
.tt-score-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-score-row-disabled {
  background: #fbfdff;
  opacity: 1;
}
.tt-score-row-disabled em {
  justify-self: end;
  border: 1px solid var(--tt-line);
  border-radius: 999px;
  background: var(--tt-soft);
  color: #52647a;
  font-style: normal;
  font-weight: 700;
  padding: 3px 8px;
  font-size: .72rem;
  line-height: 1.2;
}
.tt-message-center {
  scroll-margin-top: 24px;
}
.tt-message-center h3 {
  margin-bottom: 6px;
}
.tt-message-center > p {
  color: var(--tt-muted);
  margin-top: 0;
}
.tt-thread {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.tt-thread-item {
  border: 1px solid var(--tt-line);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fff;
}
.tt-thread-item span {
  display: block;
  color: var(--tt-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.tt-thread-item p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}
.tt-thread-admin {
  border-left: 4px solid var(--tt-yellow);
}
.tt-thread-team {
  border-left: 4px solid var(--tt-blue);
  background: #f8fbff;
}
.tt-message-form {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .tt-hero,
  .tt-two-col,
  .tt-action-strip { display: block; }
  .tt-hero-badge { display: inline-block; margin-top: 12px; }
  .tt-button { margin-top: 12px; width: 100%; box-sizing: border-box; }
  .tt-qr-card {
    grid-template-columns: 1fr;
  }
  .tt-qr-frame {
    width: 148px;
  }
  .tt-match { grid-template-columns: 1fr 42px 1fr; }
  .tt-match span { grid-column: 1 / -1; }
  .tt-fixture {
    grid-template-columns: minmax(0, 1fr) 50px minmax(0, 1fr);
  }
  .tt-fixture span,
  .tt-fixture em {
    grid-column: 1 / -1;
  }
  .tt-fixture em {
    justify-self: start;
  }
  .tt-team-modal__dialog {
    max-height: 88vh;
  }
  .tt-team-modal__head {
    padding: 16px 52px 14px 16px;
  }
  .tt-team-modal__match {
    grid-template-columns: minmax(0, 1fr) 50px 30px;
  }
  .tt-team-modal__match span,
  .tt-team-modal__match em {
    grid-column: 1 / -1;
  }
  .tt-team-modal__match em {
    justify-self: start;
  }
  .tt-score-unlock,
  .tt-score-row,
  .tt-score-row-unlocked {
    grid-template-columns: 1fr 48px 16px 48px;
  }
  .tt-score-unlock label,
  .tt-score-unlock button {
    grid-column: 1 / -1;
  }
  .tt-score-row span,
  .tt-score-row strong:nth-of-type(1),
  .tt-score-row strong:nth-of-type(2),
  .tt-score-row input[name="pin"],
  .tt-score-row button {
    grid-column: 1 / -1;
  }
  .tt-score-row-unlocked em {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
