#anapa-tournament {
  margin: 0;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 16px 16px;
  color: #f8eef9;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: linear-gradient(160deg, #4a0f4e 0%, #270326 100%);
  border: 1px solid rgba(222, 39, 215, 0.35);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(39, 3, 38, 0.28);
}

#anapa-tournament[hidden] {
  display: none !important;
}

#anapa-tournament .anapa-tourn-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
}

#anapa-tournament h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff8ef8;
}

#anapa-tournament .anapa-tourn-meta {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Countdown to results (tournament panel + hero tile) */
.anapa-cd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 142, 248, 0.25);
}

.anapa-cd:empty {
  display: none;
}

.anapa-cd__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4b8d8;
}

.anapa-cd__units {
  display: flex;
  gap: 6px;
}

.anapa-cd__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 5px 4px 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(222, 39, 215, 0.35), rgba(119, 37, 116, 0.35));
}

.anapa-cd__unit b {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.anapa-cd__unit small {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #e9c4ea;
}

.anapa-cd--hero {
  margin: 2px 0 10px;
}

@media (max-width: 420px) {
  .anapa-cd {
    justify-content: center;
  }
  .anapa-cd__label {
    width: 100%;
    text-align: center;
  }
  .anapa-cd__unit {
    min-width: 54px;
  }
}

#anapa-tournament .anapa-tourn-prizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

@media (min-width: 720px) {
  #anapa-tournament .anapa-tourn-prizes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#anapa-tournament .anapa-tourn-prize {
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
}

#anapa-tournament .anapa-tourn-prize span {
  display: block;
  opacity: 0.85;
  margin-bottom: 2px;
}

#anapa-tournament .anapa-tourn-prize b {
  font-size: 12px;
}

#anapa-tournament .anapa-tourn-prize--1 {
  background: linear-gradient(180deg, #93d394, #18a11b);
  color: #071008;
}

#anapa-tournament .anapa-tourn-prize--2 {
  background: #de27d7;
  color: #fff;
}

#anapa-tournament .anapa-tourn-prize--3 {
  background: #772574;
  color: #fff;
}

#anapa-tournament .anapa-tourn-prize--rest {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(222, 39, 215, 0.28);
  color: #f8eef9;
}

#anapa-tournament .anapa-tourn-when {
  margin: 0 0 10px;
  font-size: 12px;
  color: #d4b8d8;
}

#anapa-tournament table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

#anapa-tournament th,
#anapa-tournament td {
  padding: 0.45rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#anapa-tournament th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

#anapa-tournament td.place {
  width: 2.2rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

#anapa-tournament td.player {
  min-width: 0;
}

#anapa-tournament .anapa-tourn-name {
  display: block;
  font-weight: 700;
  color: #f8eef9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#anapa-tournament .anapa-tourn-login {
  display: none !important;
}

#anapa-tournament td.prize {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: #ffd6fb;
  white-space: nowrap;
}

#anapa-tournament td.bet {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #d8ffd9;
}

#anapa-tournament .anapa-tourn-empty {
  margin: 0.5rem 0 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

#anapa-tournament tr.anapa-tourn-row--me td {
  background: rgba(26, 127, 78, 0.22);
}

#anapa-tournament .anapa-tourn-name em {
  font-style: normal;
  font-weight: 600;
  color: #c9a227;
  font-size: 0.85em;
}

#anapa-tournament .anapa-tourn-you {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(26, 127, 78, 0.2);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: #c9a227;
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  #anapa-tournament .anapa-tourn-prizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #anapa-tournament {
    padding: 12px;
  }
}
