html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

.navbar-toggler {
  border: none;
}

tr {
  -webkit-appearance: none;
  appearance: none;
}

/* ---- World Cup 2026 standings ---- */
.wc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  /* border-bottom: 3px solid #6e0a8c; */
  padding-bottom: .5rem;
}

@media (min-width: 768px) {
  .wc-header {
    margin-bottom: 1.25rem;
  }
}

.wc-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  color: #1d1d1f;
}

.wc-sub {
  font-weight: 400;
  color: #6e0a8c;
}

.wc-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  color: #666;
}

.wc-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  color: #c0392b;
}

.wc-live .dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #e74c3c;
  animation: wc-pulse 1.2s infinite;
}

@keyframes wc-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .25;
  }
}

.wc-notice {
  background: #f7f7f9;
  border: 1px solid #e2e2e8;
  border-left: 4px solid #6e0a8c;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.wc-notice.wc-error {
  border-left-color: #c0392b;
  background: #fcf3f2;
}

.wc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.wc-group div.header {
  margin: 0 0 .4rem;
}

.wc-group div.header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #6e0a8c;
  display: inline-block;
  margin: 0;
}

.wc-group div.header h3 {
  font-size: 0.9rem;
  margin: auto 0.5rem;
  display: inline-block;
}

.wc-group div.header span.record {
  color: #888;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.wc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  border-radius: 8px;
  overflow: hidden;
}

.wc-table th,
.wc-table td {
  padding: .45rem .4rem;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .wc-table thead {
    line-height: 0.25rem;
  }

  .wc-table tfoot {
    line-height: 1rem;
  }
}

.wc-table thead th {
  background: #2c2c34;
  color: #fff;
  font-weight: 600;
  font-size: .75rem;
}

.wc-table th.team,
.wc-table td.team {
  width: 10rem;
  text-align: left;
}

.wc-table td.team:hover {
  cursor: pointer;
}

.wc-table td.team .qualified {
  color: #1e9e52;
}

.wc-table td.team .eliminated {
  color: #aaa;
  text-decoration: line-through;
}

.wc-table th.pos,
.wc-table td.pos {
  width: 1.6rem;
  color: #888;
}

.wc-table td>span.record {
  color: #888;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.wc-table td.pts {
  font-weight: 800;
}

.wc-table td.negative {
  color: #a00;
}

.wc-table tbody tr {
  border-top: 1px solid #eee;
}

.wc-table tr.contestant-total {
  background: #f0f0f3;
}

.wc-table tfoot tr.contestant-total td.pts {
  font-size: 1.2rem;
  font-weight: 700;
  color: #6e0a8c;
}

.wc-table tbody tr.qualify {
  background: #f0fbf3;
}

.wc-table tbody tr.qualify td.pos {
  color: #1e9e52;
  font-weight: 700;
}

.wc-table tbody tr.live>td:first-child {
  box-shadow: inset 3px 0 0 #e74c3c;
}

.wc-table .flag,
.wc-match .flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

.wc-table .name {
  font-weight: 600;
}

.wc-table .next {
  padding: 2px;
}

.wc-table .match:hover {
  cursor: pointer;
}

.wc-table .match .team {
  font-weight: 600;
}

.wc-table .match .time {
  font-weight: 400;
  font-size: 0.75rem;
}

.qstatus {
  display: inline-block;
  margin-left: .4rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e9e52;
}

.wc-stage {
  margin: 1em 0;
}

@media (max-width: 768px) {
  .wc-stage h3 {
    color: #6e0a8c;
    text-align: center;
    width: 100%;
  }
}

.wc-stage .wc-match {
  margin: 1em 0;
  border-radius: 5px;
  box-shadow: 1px 1px 2px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  background-size: 100%, 50%, 50%;
  background-position: center, left, right;
  background-repeat: no-repeat;
  position: relative;
  height: 4em;
}

.wc-stage .wc-match .wc-slot {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: space-around;
  justify-content: space-between;
  align-items: center;
}

.wc-stage .wc-match .wc-slot .wc-match-team {
  font-weight: 700;
  text-shadow: #fff 2px 2px;
  margin: auto 5px;
  width: 100%;
  font-size: 1.2em;
}

.wc-stage .wc-match .wc-slot .wc-match-score {
  font-weight: 700;
  text-shadow: #fff 2px 2px;
  margin: auto 5px;
  font-size: 2em;
}

.wc-stage .wc-match> :first-child {
  width: 50%;
  text-align: left;
}

.wc-stage .wc-match> :last-child {
  width: 50%;
  text-align: right;
}

.wc-stage .wc-match>* {
  flex-grow: 1;
}

.wc-stage .wc-match .wc-match-meta {
  width: 5em;
  margin: auto;
}

.wc-stage .wc-match .wc-match-meta span {
  font-size: 0.8em;
  font-weight: 700;
  display: block;
  text-align: center;
}

.wc-stage .wc-match .winner {
  color: #1e9352;
  font-weight: 700;
}

.wc-stage .wc-match .eliminated {
  color: #888;
}

.wc-stage .wc-match .wc-match-contestant {
  position: absolute;
  bottom: 2px;
  font-weight: 600;
  text-shadow: #fff 2px 2px;
  color: #44a;
}

.wc-stage .wc-match .wc-match-contestant.home {
  right: calc(50% + 3em);
}

.wc-stage .wc-match .wc-match-contestant.away {
  left: calc(50% + 3em);
}
