/* Общи детайли: бутони, значки за ниво, прогрес, таблици, полета, празни състояния. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-ctl);
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.btn-play {
  background: var(--cyan);
  color: #031317;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.6),
    0 8px 30px rgba(0, 229, 255, 0.26);
}
.btn-play:hover {
  background: #5bf0ff;
  color: #031317;
  box-shadow:
    0 0 0 1px #5bf0ff,
    0 10px 40px rgba(0, 229, 255, 0.45);
}
.btn-play:active {
  transform: translateY(1px);
}
.btn-ghost {
  background: rgba(15, 22, 29, 0.6);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: #fff;
}
.btn-quiet {
  background: var(--panel-2);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-quiet:hover {
  border-color: var(--cyan);
  color: #fff;
}
.btn-sm {
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  font-size: 0.95rem;
}
.btn-lg {
  min-height: 3.5rem;
  padding: 0.7rem 1.75rem;
  font-size: 1.15rem;
}
.ico {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-fill {
  fill: currentColor;
  stroke: none;
  width: 1.1rem;
  height: 1.1rem;
}
.btn .ico:not(.ico-fill) {
  width: 1.25rem;
  height: 1.25rem;
}

.copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.copy[hidden] {
  display: none;
}
.copy:hover {
  border-color: var(--cyan);
}
.copy .ico {
  width: 1.1rem;
  height: 1.1rem;
}

/* Нивото: шестоъгълник; цветът расте на 10 нива (наш знак, не ранг на Valve). */
.lvl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.3rem;
  flex: none;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lv-1 {
  background: #26394a;
  color: var(--text);
}
.lv-2 {
  background: var(--cyan);
  color: #031317;
}
.lv-3 {
  background: var(--amber);
  color: #1a1004;
}
.lv-4 {
  background: linear-gradient(135deg, #fff1c9, var(--amber) 55%, var(--ember));
  color: #1a1004;
}

progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 0.55rem;
  border: 0;
  border-radius: 99px;
  background: var(--panel-2);
  color: var(--amber);
  vertical-align: middle;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--panel-2);
}
progress::-webkit-progress-value {
  background: var(--amber);
  border-radius: 99px;
}
progress::-moz-progress-bar {
  background: var(--amber);
  border-radius: 99px;
}

.cat {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 99px;
  background: var(--panel-2);
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.cat-cheating {
  color: var(--ember-text);
  background: rgba(255, 107, 87, 0.12);
}
.is-permanent {
  color: var(--ember-text);
  font-weight: 700;
}

.empty {
  padding: 1.25rem 1.4rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-card);
  color: var(--muted);
}

/* Празна класация = покана */
.invite {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem;
  border: 1px solid rgba(255, 181, 71, 0.4);
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 181, 71, 0.14), transparent 60%), var(--panel);
}
.invite-medal {
  display: grid;
  place-items: center;
  flex: none;
  width: 4rem;
  height: 3.5rem;
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  background: var(--amber);
  color: #1a1004;
}
.invite-medal .ico {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
  stroke: none;
}
.invite h3 {
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}
.invite p {
  max-width: 34rem;
  color: #c4d2db;
}
.invite-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0;
  font-weight: 700;
}
@media (max-width: 760px) {
  .invite {
    flex-direction: column;
  }
}
