:root {
    --bg: #1848CC;
    --card: #1848CC;
    --muted: #7f9be6;
    --text: #F2D6AF;
    --acc: #36a1ff;
    --ok: #2ecc71;
    --warn: #f39c12;
    --b: #1848CC;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Lexend Deca", sans-serif;
}

.vhdr {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 16px 20px;
/*    border-bottom: 1px solid var(--b)*/
}

.vhdr h1 {
    margin: 0;
    font-size: 22px;
    opacity: .9
}

.clock {
    font-size: 54px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 2px
}

.status {
    font-size: 20px;
    color: var(--muted);
    text-align: left
}

.grid {
    display: flex;
    gap: 16px;
    padding: 16px;
    grid-template-columns: 2fr 1fr
}

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

.card.parem{
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}
.card {
/*
    background: var(--card);
    border: 1px solid var(--b);
*/
    border-radius: 16px;
    padding: 16px;
    
}

.card h2 {
    margin: 20px 0;
    font-size: 22px;
    color: #d8e5ff
}

.card.big {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 65%;
}

.current .when {
    font-size: 18px;
    color: var(--muted)
}

.current .teams {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    align-items: center;
justify-content: center;
    gap: 30px;
}

.current .meta {
    font-size: 18px;
    color: var(--muted);
    margin-top: 6px
}

.timer {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 10px;
    position: relative;
    justify-content: flex-start;
}

.timer .label {
    font-size: 38px;
    color: var(--muted);
/*
    position: absolute;
    bottom: 0;
*/
}

.timer .value {
    font-size: 17vw;
    font-weight: 800;
    line-height: 0.6;
}

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

.item {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--b);
    border-radius: 12px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.08);
}

.item .t {
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    min-width: 88px;
    text-align: center;
    border-right: 1px solid var(--b);
    padding-right: 12px
}

.item .g {
    font-size: 14px;
    color: var(--muted)
}

.item .vs {
font-size: 22px;
font-weight: 600;
/* display: inline-block; */
display: flex;
align-items: center;
gap: 20px;
}

.item.done {
    opacity: .6
}


.badge {
    display: inline-block;
    border: 1px solid var(--ok);
    color: var(--ok);
    border-radius: 999px;
    font-size: 12px;
    padding: 2px 8px;
    margin-left: 8px
}

.vft {
    padding: 10px 16px;
    color: var(--muted);
    border-top: 1px solid var(--b);
    margin-top: -30px;
}

.dim {
    color: var(--muted)
}

.warn {
    color: var(--warn)
}

.ok {
    color: var(--ok)
}
.logo {
    z-index: 1000;
width: 300px;
}

/* Countdown värvid vastavalt olekule */

.tcolor-active {
    color: #2ecc71;
}


/* erkroheline – mäng käib */

.tcolor-pause {
    color: var(--muted)
}


/* türkiis – paus/vaheaeg */

.tcolor-idle {
    color: #e8d5b5;
}


/* Eelmiste mängude rida ja skoori märgis */

.item .score {
    margin-left: 8px;
    padding: 2px 8px;
    border: 1px solid var(--b);
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    font-size: 18px;
    color: #d5def0;
}

.item.loss {
    opacity: .85
}

.standings {
    margin-top: 1.5em;
/* max-width: 40%; */
display: flex;
flex-direction: row;
}
.standings div {
/*   width: 100%; */
    padding: 20px 40px;;
}
.standings h3 {
    margin: 0.5em 0;
    font-size: 1.2em;
    color: #f4f4f4;
}

.standings table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2em;
    font-weight: 400;
}

.standings th,
.standings td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.standings th {
    color: #bbb;
    font-weight: 500;
}

.standings td.name {
    font-weight: 600;
}

.standings td.pf {
    color: #2ecc71;
}

.standings td.pa {
    color: #e67e22;
}

.matchup {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6em;
  text-align: center;
}
#finished .wrap , #upcoming  .wrap{
  text-align: center;  
} 
#finished .team, #upcoming .team {
  display: flex;
  align-items: center;
  gap: 0.3em;
  background: rgba(255,255,255,0.05);
  padding: 0.3em 0.6em;
  border-radius: 0.5em;
flex-direction: column;
    font-size: 16px;
}
.team {
  display: flex;
  align-items: center;
  gap: 0.3em;
  background: rgba(255,255,255,0.05);
  padding: 0.3em 0.6em;
  border-radius: 0.5em;
flex-direction: column;
}

.team span {
  display: inline-block;
  font-weight: 500;
}

.team .sep {
  color: #999;
  font-weight: 300;
}


#sponsorCarousel {
  overflow: hidden;
  width: 70%;
  height: 120px;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
}

#sponsorCarousel .track {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: nowrap;
  white-space: nowrap;
  will-change: transform;
}

#sponsorCarousel img {
  height: 120px;
  width: auto;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}
#sponsorCarousel img:hover {
  filter: brightness(1.2);
}

