/* ── Temos kintamieji ─────────────────────────────────────────────────────── */

[data-theme="dark"] {
  --bg:         #0d0d0d;
  --panel:      #1a1a1a;
  --panel2:     #222;
  --text:       #e0e0e0;
  --text-dim:   #888;
  --text-label: #aaa;
  --border:     #333;
  --status-bg:  #2d2d2d;
  --metric-bg:  rgba(0,0,0,0.30);
  --metric-card-bg: #0b0b0b;
  --table-head: #2d2d2d;
  --table-row-hover: rgba(255,255,255,0.04);
  --select-bg:  #1a1a1a;
  --toggle-bg:  #333;
  --toggle-fg:  #e0e0e0;
  --metric-border: #333;
  --metric-label: #aaa;
  --toggle-icon: "☀️";
  --toggle-text: "Light";
}

[data-theme="light"] {
  /* Aplinka – šviesi, kaip buvo iš pradžių */
  --bg:         #f4f4f5;
  --panel:      #ffffff;
  --panel2:     #f0f0f0;
  --text:       #111;
  --text-dim:   #666;
  --text-label: #444;
  --border:     #ddd;
  --status-bg:  #e8e8e8;
  --metric-bg:  rgba(0,0,0,0.30); /* toks pats kaip dark – LAIKAS / GREIČIAI kortelės visada tamsiai pilkos */
  --metric-card-bg: #0b0b0b;
  --table-head: #e8e8e8;
  --table-row-hover: rgba(0,0,0,0.03);
  --select-bg:  #fff;
  --toggle-bg:  #e0e0e0;
  --toggle-fg:  #111;
  --metric-border: #333;
  --metric-label: #aaa;
  --toggle-icon: "🌙";
  --toggle-text: "Dark";
}

/* ── Bazė ─────────────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.25s, color 0.25s;
}

/* ── Antraštė ─────────────────────────────────────────────────────────────── */

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem;
}

.header { margin-bottom: 1.5rem; }

.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
}

.header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

.subtitle {
  margin: 0.25rem 0 0;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-dim);
}

/* ── Įrankių juosta (tema + kalba) ───────────────────────────────────────── */

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.toolbar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.4rem 0.7rem;
  background: var(--toggle-bg);
  color: var(--toggle-fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle:hover { opacity: 0.85; }

/* ── Slide navigacijos meniu (drawer) ─────────────────────────────────────── */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 300px;
  max-width: 85vw;
  background: var(--panel);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1rem;
  overflow-y: auto;
}

.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.drawer-close:hover { background: var(--toggle-bg); }

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-section .lang-toggle,
.drawer-section .theme-toggle,
.drawer-section .data-toggle {
  width: 100%;
  justify-content: flex-start;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.drawer-group h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-dot-live { background: #2e9e44; }
.nav-dot-paused { background: #b80; }
.nav-dot-archive { background: #777; }

.drawer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.nav-item:hover { background: var(--toggle-bg); }

.nav-item.current {
  background: var(--panel2);
  border-color: var(--border);
  font-weight: 700;
}

.nav-empty {
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  background: var(--toggle-bg);
  color: var(--toggle-fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle:hover { opacity: 0.8; }

/* ── Temos mygtukas ───────────────────────────────────────────────────────── */

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: var(--toggle-bg);
  color: var(--toggle-fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover { opacity: 0.8; }

/* ── Duomenų rodymo mygtukas ──────────────────────────────────────────────── */

.data-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: var(--toggle-bg);
  color: var(--toggle-fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.data-toggle:hover { opacity: 0.8; }

/* ── Gyvas blokas ─────────────────────────────────────────────────────────── */

.live-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  margin-bottom: 2rem;
  transition: background 0.25s, border-color 0.25s;
}

.live-block.is-hidden,
.live-block.status-hidden {
  display: none;
}

.live-block.is-hidden + .tables-section,
.live-block.status-hidden + .tables-section {
  margin-top: 0;
}

.status-bar {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  text-align: center;
}

.participant-line {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.65rem;
  min-height: 1.5em;
  color: var(--text-dim);
}

.participant-line.visible { color: var(--text); }

/* ── Metrikų tinklelis ────────────────────────────────────────────────────── */

.metrics {
  display: grid;
  grid-template-columns: 0.78fr 1.45fr 1.45fr 0.72fr;
  gap: 0.65rem;
}

.metric {
  text-align: center;
  padding: 0.5rem 0.55rem;
  background: var(--metric-card-bg);
  border-radius: 6px;
  border: 1px solid var(--metric-border);
  transition: background 0.25s, border-color 0.25s;
}

.metric .label {
  display: block;
  font-size: clamp(0.65rem, 1.2vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--metric-label);
  margin-bottom: 0.2rem;
}

.metric .value {
  font-size: clamp(1.6rem, 4.2vw, 2.9rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.02;
}

#actualSpeed,
#averageSpeed {
  white-space: nowrap;
}

/* ── Puslapių skiltys (tabs) ──────────────────────────────────────────────── */

.page-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.page-tab {
  appearance: none;
  background: transparent;
  color: var(--text-dim);
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.page-tab:hover {
  color: var(--text);
}

.page-tab.active {
  color: var(--text);
  border-bottom-color: #00c853;
}

.page-tab.is-hidden {
  display: none;
}

.page-panel {
  display: none;
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.page-panel.active {
  display: block;
}

.sub-page-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sub-page-tabs.is-hidden {
  display: none;
}

.sub-page-tab {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.team-points-panel {
  display: none;
}

.team-points-panel.active {
  display: block;
}

/* ── Klasių lentelės ──────────────────────────────────────────────────────── */

.tables-section { margin-top: 0; }

.tables-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1rem 0.75rem;
}

.tables-section.is-hidden {
  display: none !important;
}

.tables-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.class-select-wrap { margin-bottom: 1rem; }

.class-select-wrap label {
  margin-right: 0.5rem;
  color: var(--text-label);
  font-weight: 600;
}

.custom-select-wrap {
  position: relative;
  display: inline-block;
  min-width: 200px;
  font-size: 1rem;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--select-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: background 0.25s, color 0.25s, border-color 0.15s;
}

.custom-select-trigger:hover,
.custom-select-trigger:focus {
  outline: none;
  border-color: rgba(0, 200, 83, 0.5);
}

.custom-select-arrow {
  font-size: 0.8rem;
  opacity: 0.55;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.custom-select-wrap.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
}

.custom-select-wrap.open .custom-select-list {
  display: block;
}

.custom-select-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
}

.custom-select-item:hover {
  background: var(--table-row-hover);
}

.custom-select-item.selected-item {
  font-weight: 600;
}

.custom-select-placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.custom-select-item.active-class {
  background: rgba(0, 200, 83, 0.12);
  outline: 1px solid rgba(0, 200, 83, 0.45);
  font-weight: 700;
}

.table-wrap { overflow-x: auto; }
.table-wrap {
  -webkit-overflow-scrolling: touch;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
}

.results-table th,
.results-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.results-table th {
  background: var(--table-head);
  font-weight: 700;
  color: var(--text-label);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.results-table tbody tr:hover {
  background: var(--table-row-hover);
}

.results-table tbody tr.active-participant {
  background: rgba(0, 200, 83, 0.32);
  box-shadow: inset 5px 0 0 #00e676;
  outline: 2px solid rgba(0, 230, 118, 0.85);
  outline-offset: -2px;
}

.results-table tbody tr.active-participant td {
  font-weight: 700;
  color: var(--text);
}

[data-theme="light"] .results-table tbody tr.active-participant {
  background: rgba(0, 150, 60, 0.2);
  box-shadow: inset 5px 0 0 #00a844;
  outline: 2px solid #00a844;
}

[data-theme="light"] .results-table tbody tr.active-participant td {
  color: #0a3d1a;
}

.results-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.results-table .pos {
  color: var(--text-dim);
  font-size: 0.8em;
  min-width: 2rem;
}

.results-table th:nth-child(1),
.results-table td:nth-child(1),
.results-table th:nth-child(2),
.results-table td:nth-child(2) {
  text-align: center !important;
}

.results-table .bold { font-weight: 700; }

.results-table .dim { color: var(--text-dim); font-size: 0.85em; }

.results-table .flag-cell {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", "Segoe UI", sans-serif;
  text-align: center;
}

.results-table .flag-emoji {
  display: inline-block;
  min-width: 1.25em;
  text-align: center;
  font-size: 1.15em;
  line-height: 1;
}

.results-table .flag-img {
  width: 1.35em;
  height: 1em;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: -0.12em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
}

.results-table .dns {
  color: #e57373;
  font-weight: 600;
  font-size: 0.85em;
}

.results-table .diskval {
  color: #e57373;
  font-weight: 600;
  font-size: 0.85em;
}

.results-table .result-best {
  font-weight: 700;
  color: var(--text);
}

.results-table .team-points-cell {
  line-height: 1.25;
  white-space: nowrap;
}

.results-legend {
  margin: 0.65rem 0 0.25rem;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.results-legend[hidden] {
  display: none;
}

/* ── Responsyvi ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .container {
    padding: 0.75rem;
  }

  .header {
    margin-bottom: 1rem;
  }

  .live-block {
    padding: 0.7rem;
    margin-bottom: 1.2rem;
  }

  .status-bar {
    margin-bottom: 0.5rem;
  }

  .participant-line {
    margin-bottom: 0.5rem;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .metric {
    padding: 0.45rem 0.45rem;
  }

  .metric .value {
    font-size: clamp(1.35rem, 6.2vw, 2rem);
  }

  .class-select-wrap {
    display: block;
  }

  .class-select-wrap label {
    display: inline-block;
    margin-bottom: 0.22rem;
    font-size: 0.78rem;
  }

  .custom-select-wrap {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .custom-select-trigger {
    width: 100%;
    padding: 0.32rem 0.48rem;
    font-size: 0.76rem;
  }

  .results-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.52rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.16rem 0.17rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .results-table th {
    font-size: 0.45rem;
    letter-spacing: 0.015em;
  }

  .results-table th:nth-child(1),
  .results-table td:nth-child(1) {
    width: 4%;
  }

  .results-table th:nth-child(2),
  .results-table td:nth-child(2) {
    width: 6%;
  }

  .results-table th:nth-child(3),
  .results-table td:nth-child(3),
  .results-table th:nth-child(4),
  .results-table td:nth-child(4) {
    width: 12%;
  }

  .tables-section h2 {
    font-size: 0.98rem;
    margin-bottom: 0.45rem;
  }

  .page-tabs {
    margin-top: 0.75rem;
    gap: 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page-tab {
    padding: 0.4rem 0.55rem;
    font-size: 0.72rem;
    border-bottom-width: 2px;
  }

  .class-select-wrap {
    margin-bottom: 0.45rem;
  }
}

@media (max-width: 600px) {
  .live-block {
    padding: 0.36rem;
    margin-bottom: 0.55rem;
  }

  .header-top {
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
  }

  .menu-toggle {
    padding: 0.35rem 0.6rem;
    font-size: 1.15rem;
  }

  .drawer-section .lang-toggle,
  .drawer-section .theme-toggle,
  .drawer-section .data-toggle {
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
  }

  .status-bar {
    font-size: clamp(0.56rem, 2.4vw, 0.68rem);
    padding: 0.16rem 0.22rem;
    margin-bottom: 0.14rem;
  }

  .participant-line {
    font-size: clamp(0.54rem, 2.6vw, 0.64rem);
    min-height: 1em;
    margin-bottom: 0.14rem;
    padding: 0.06rem 0.1rem;
  }

  .metrics {
    gap: 0.18rem;
  }

  .metric {
    padding: 0.12rem 0.1rem;
    border-radius: 3px;
  }

  .metric .label {
    font-size: clamp(0.32rem, 1.45vw, 0.4rem);
    margin-bottom: 0.02rem;
    letter-spacing: 0.03em;
  }

  .metric .value {
    font-size: clamp(0.9rem, 5.2vw, 1.25rem);
    line-height: 1.01;
  }

  #actualSpeed,
  #averageSpeed {
    white-space: normal;
  }

  .tables-section {
    margin-top: 0.45rem;
  }

  .tables-section h2 {
    font-size: 0.68rem;
    margin-bottom: 0.16rem;
  }

  .page-tabs {
    margin-top: 0.35rem;
  }

  .page-tab {
    padding: 0.28rem 0.38rem;
    font-size: 0.58rem;
  }

  .class-select-wrap {
    margin-bottom: 0.25rem;
  }

  .class-select-wrap label {
    font-size: 0.58rem;
    margin-bottom: 0.1rem;
  }

  .custom-select-trigger {
    padding: 0.12rem 0.2rem;
    font-size: 0.56rem;
    border-radius: 4px;
  }

  .custom-select-list {
    top: calc(100% + 2px);
    border-radius: 4px;
    max-height: 180px;
  }

  .custom-select-item {
    padding: 0.2rem 0.3rem;
    font-size: 0.56rem;
    line-height: 1.2;
  }

  .custom-select-placeholder {
    font-size: 0.54rem;
  }

  .results-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.34rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.07rem 0.07rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .results-table th {
    font-size: 0.3rem;
    letter-spacing: 0.01em;
  }

  .results-table th:nth-child(1),
  .results-table td:nth-child(1) {
    width: 3%;
  }

  .results-table th:nth-child(2),
  .results-table td:nth-child(2) {
    width: 5%;
  }

  .results-table th:nth-child(3),
  .results-table td:nth-child(3),
  .results-table th:nth-child(4),
  .results-table td:nth-child(4) {
    width: 11%;
  }

  .results-table .pos {
    min-width: 0.9rem;
    font-size: 0.66em;
  }

  .results-table .flag-img {
    width: 12px;
    height: 9px;
  }

  .results-table .dim {
    font-size: 0.64em;
  }

  #resultsTable td:nth-child(6),
  #resultsTable td:nth-child(7),
  #resultsTable td:nth-child(8),
  #resultsTable td:nth-child(9) {
    font-size: 0.78em;
    line-height: 1.12;
  }

  .results-table .dns,
  .results-table .diskval {
    font-size: 0.64em;
  }
}

@media (max-width: 430px) {
  .container {
    padding: 0.35rem;
  }

  .menu-toggle {
    padding: 0.3rem 0.5rem;
    font-size: 1.05rem;
  }

  .live-block {
    padding: 0.2rem;
    border-radius: 6px;
  }

  .status-bar {
    font-size: 0.5rem;
    padding: 0.1rem 0.14rem;
  }

  .participant-line {
    font-size: 0.48rem;
    padding: 0.04rem 0.07rem;
  }

  .metric {
    padding: 0.08rem 0.06rem;
  }

  .metric .label {
    font-size: 0.26rem;
    margin-bottom: 0.01rem;
  }

  .metric .value {
    font-size: 0.78rem;
  }

  .tables-section h2 {
    font-size: 0.62rem;
    margin-bottom: 0.1rem;
  }

  .class-select-wrap label {
    font-size: 0.5rem;
    margin-bottom: 0.06rem;
  }

  .custom-select-trigger {
    padding: 0.08rem 0.14rem;
    font-size: 0.46rem;
    border-radius: 3px;
  }

  .custom-select-list {
    max-height: 140px;
    border-radius: 3px;
  }

  .custom-select-item {
    padding: 0.14rem 0.2rem;
    font-size: 0.46rem;
    line-height: 1.15;
  }

  .custom-select-placeholder {
    font-size: 0.44rem;
  }

  .results-table {
    font-size: 0.29rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.04rem 0.04rem;
  }

  .results-table th {
    font-size: 0.24rem;
  }

  .results-table .pos {
    min-width: 0.72rem;
  }

  .results-table .flag-img {
    width: 10px;
    height: 7px;
  }

  #resultsTable td:nth-child(6),
  #resultsTable td:nth-child(7),
  #resultsTable td:nth-child(8),
  #resultsTable td:nth-child(9) {
    font-size: 0.74em;
    line-height: 1.1;
  }
}

@media (max-width: 380px) {
  .menu-toggle {
    font-size: 1rem;
  }
}

/* Komandinių taškų lentelė (mobilus) – visi stulpeliai vienodo pločio ir šrifto */
@media (max-width: 900px) {
  #teamPointsSpeedTable,
  #teamPointsPointsTable {
    table-layout: fixed;
  }

  #teamPointsSpeedTable th,
  #teamPointsSpeedTable td,
  #teamPointsPointsTable th,
  #teamPointsPointsTable td {
    width: 1% !important;
    font-size: inherit !important;
    line-height: 1.2;
    padding: 0.1rem 0.08rem;
  }

  #teamPointsSpeedTable th,
  #teamPointsPointsTable th {
    letter-spacing: 0;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  #teamPointsSpeedTable .team-points-cell,
  #teamPointsPointsTable .team-points-cell {
    white-space: normal;
    font-size: inherit !important;
  }
}
