/* ─────────────────────────────────────────────────────────────
   duel-lobby.css — лобито на дуела на цял екран
   Три колони: твоят профил · голям център · класация.
   Зарежда се след duel.css и duel-mobile.css.
   ───────────────────────────────────────────────────────────── */

/* лобито излиза от тесния .stage и от страничните релси на кръга */
body.lobby-wide .duelwrap {
  grid-template-columns: minmax(0, 1fr);
}
body.lobby-wide .duelwrap > .rail {
  display: none;
}
body.lobby-wide .stage {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0 0 34px;
}

#screen-lobby {
  padding: 0;
  display: block;
  min-height: calc(100vh - 64px);
}

.lob {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 292px;
  gap: 22px;
  align-items: stretch;
  align-content: center;
  max-width: 1560px;
  margin: 0 auto;
  padding: 26px 26px 40px;
  min-height: calc(100vh - 64px);
}

/* ── релси ─────────────────────────────────────────────────── */
.lob-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.lr-card {
  background: linear-gradient(180deg, rgba(23, 30, 24, .92), rgba(16, 21, 17, .96));
  border: 1px solid rgba(201, 162, 39, .16);
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: 0 18px 40px -34px #000;
}

.lr-card .eyebrow {
  margin: 0 0 10px;
  font: 600 9.5px/1 system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8d8574;
}

/* ── моят профил ────────────────────────────────────────────── */
.lob-me {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.lob-ava {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  background-color: #2b332c;
  display: grid;
  place-items: center;
  font: 600 18px/1 Georgia, serif;
  color: #e8dfc8;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .35);
  flex: 0 0 auto;
}

.lob-who { min-width: 0; flex: 1 1 100px; }
.lob-who b {
  display: block;
  font: 600 15px/1.25 system-ui, sans-serif;
  color: #ece5d3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lob-elo {
  font: 400 10.5px/1.5 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8d8574;
}
.lob-elo b { color: #d8c88f; font-weight: 700; letter-spacing: .03em; }

.lob-div {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.lob-div span {
  font: 600 9.5px/1 system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c9a227;
  white-space: nowrap;
}
.lob-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.lob-bar b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a6d1f, #e0c063);
  transition: width .5s ease;
}

.lob-stats {
  flex: 1 1 100%;
  display: flex;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.lob-stats li {
  flex: 1;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.lob-stats b {
  display: block;
  font: 600 16px/1.1 Georgia, serif;
  color: #f0e6cc;
}
.lob-stats span {
  font: 400 9px/1.4 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7f7a6c;
}

/* ── как се играе ──────────────────────────────────────────── */
.lob-how ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lob-how li {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.lob-how b {
  font: 600 13px/1 Georgia, serif;
  color: #d8c88f;
  min-width: 52px;
}
.lob-how span {
  font: 400 12px/1.4 system-ui, sans-serif;
  color: #9a9384;
}

/* ── център ────────────────────────────────────────────────── */
.lob-main {
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(120% 80% at 50% -12%, rgba(201, 162, 39, .12), rgba(201, 162, 39, 0) 58%),
    linear-gradient(180deg, rgba(22, 29, 23, .96), rgba(14, 20, 15, .98));
  border: 1px solid rgba(201, 162, 39, .18);
  border-radius: 22px;
  padding: 42px 46px 34px;
  box-shadow: 0 40px 80px -60px #000, inset 0 1px 0 rgba(255, 255, 255, .03);
  overflow: hidden;
}

/* тънка месингова линия отгоре */
.lob-main::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .55), transparent);
}

.lob-main .display {
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.02;
  margin: 10px 0 14px;
}
.lob-main .lede {
  max-width: 46ch;
  margin: 0 0 26px;
  font: 400 15px/1.6 system-ui, sans-serif;
  color: #a9a294;
}

.lobby-actions {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  max-width: 720px;
}
.lobby-actions .btn-play {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 22px;
}
.lobby-actions .play-main {
  font: 600 18px/1.1 system-ui, sans-serif;
}
.lobby-actions .play-sub {
  font: 400 11.5px/1.3 system-ui, sans-serif;
  opacity: .72;
  letter-spacing: .02em;
}

.lob-main .pantheon-line {
  margin-top: 14px;
  max-width: 720px;
}

/* ── 10-те бога в редица ───────────────────────────────────── */
.lob-gods {
  display: flex;
  gap: 8px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 162, 39, .12);
  flex-wrap: wrap;
}
.lob-gods i {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #222a23;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  filter: grayscale(.7) brightness(.62);
  transition: filter .3s ease, transform .3s ease;
  position: relative;
}
.lob-gods i.beaten {
  filter: none;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .5), 0 6px 16px -12px #000;
}
.lob-gods i.open {
  filter: grayscale(.15) brightness(.92);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .3);
}
.lob-gods i:hover {
  transform: translateY(-3px);
  filter: none;
}

/* ── класация ──────────────────────────────────────────────── */
.lob-top {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: lt;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lob-top li {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 400 12.5px/1.3 system-ui, sans-serif;
  color: #cfc7b4;
}
.lob-top li::before {
  counter-increment: lt;
  content: counter(lt);
  font: 600 10px/1 system-ui, sans-serif;
  color: #6f6a5e;
  width: 12px;
  flex: 0 0 auto;
}
.lob-top .lb-ava {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background-size: cover;
  background-color: #2b332c;
  display: grid;
  place-items: center;
  font: 600 9px/1 system-ui;
  color: #cfc7b4;
  flex: 0 0 auto;
}
.lob-top .lb-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lob-top .lb-elo {
  font: 600 11.5px/1 system-ui, sans-serif;
  color: #d8c88f;
  font-variant-numeric: tabular-nums;
}
.lob-top li.me .lb-name { color: #f0e6cc; }
.lob-top li.muted { color: #6f6a5e; font-size: 12px; }
.lob-top li.muted::before { content: ""; }

.lob-fact p {
  margin: 0;
  font: 400 12.5px/1.55 system-ui, sans-serif;
  color: #9a9384;
}

/* ── среден екран ─────────────────────────────────────────── */
@media (max-width: 1240px) {
  .lob { grid-template-columns: 236px minmax(0, 1fr) 252px; gap: 16px; padding: 18px; }
  .lob-main { padding: 32px 30px 28px; }
}

/* ── таблет и телефон: една колона ────────────────────────── */
@media (max-width: 1000px) {
  .lob {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 12px 34px;
  }
  .lob-rail { position: static; }
  .lob-main { order: -1; padding: 26px 20px 24px; border-radius: 18px; }
  .lob-main .display { font-size: clamp(28px, 8vw, 40px); }
  .lobby-actions { grid-template-columns: 1fr; gap: 10px; }
  .lobby-actions .btn-play { min-height: 68px; }
  .lob-gods i { width: 38px; height: 38px; border-radius: 10px; }
  .lob-gods { gap: 6px; }
  .lr-left { order: 0; }
  .lr-right { order: 1; }
}

@media (max-width: 420px) {
  .lob-main { padding: 22px 15px 20px; }
  .lob-gods { gap: 3px; }
  .lob-gods i { width: 27px; height: 27px; border-radius: 7px; }
}

/* ── без движение ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lob-gods i, .lob-bar b { transition: none; }
  .lob-gods i:hover { transform: none; }
}

/* ── подпис под редицата с богове ─────────────────────────── */
.lob-gods-note {
  margin: 10px 0 0;
  font: 400 12px/1.5 system-ui, sans-serif;
  color: #8d8574;
  max-width: 62ch;
}
.lob-gods-note b { color: #d8c88f; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   ДУЕЛНА МАСА: мой лист · срещу · отсрещна страница
   ═══════════════════════════════════════════════════════════ */

.lob-table { align-items: center; text-align: center; }

.lob-table .display { margin-bottom: 6px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.lob-table .lede { max-width: 52ch; margin: 0 auto 18px; font-size: 13px; }
.lob-table .eyebrow { text-align: center; }

.dt {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 4px;
}

.dt-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.dt-label {
  margin: 0;
  font: 600 9px/1 system-ui, sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #8d8574;
}

.dt-card {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 6px;
  background: #171e18;
  border: 1px solid rgba(201, 162, 39, .45);
  box-shadow:
    0 0 0 5px #10150f,
    0 0 0 6px rgba(201, 162, 39, .22),
    0 18px 34px -26px #000;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dt-card.op.empty {
  border-style: dashed;
  border-color: rgba(201, 162, 39, .28);
  box-shadow: 0 0 0 5px #10150f, 0 0 0 6px rgba(201, 162, 39, .1);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 7px, transparent 7px 14px),
    #141a15;
}

.dt-face {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font: 600 40px/1 Georgia, serif;
  color: #5f5a4d;
}
.dt-face i { font-style: normal; }



.dt-name {
  font: 600 19px/1.2 Georgia, serif;
  color: #efe7d2;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-meta {
  font: 400 10.5px/1.4 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #948c7b;
}

.dt-vs {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 44px;
  color: #7f7a6c;
}
.dt-vs span {
  font: 600 9px/1 system-ui, sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.dt-vs::before, .dt-vs::after {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, transparent, rgba(201, 162, 39, .35), transparent);
}

/* ── редицата с гербовете ─────────────────────────────────── */
.dt-faces { width: 100%; max-width: 760px; margin: 18px auto 18px; }

.dt-faces-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(201, 162, 39, .16);
}
.dt-faces-head span {
  font: 600 9px/1 system-ui, sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #8d8574;
}
.dt-faces-head em {
  font: italic 400 11px/1 Georgia, serif;
  color: #7b7567;
}

.dt-faces-row {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
  padding-bottom: 15px;
}

.dt-face-btn {
  position: relative;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 4px;
  border: 1px solid rgba(201, 162, 39, .3);
  background: #171e18 center/cover no-repeat;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  filter: saturate(.85) brightness(.95);
}
.dt-face-btn:hover { transform: translateY(-3px); filter: none; }
.dt-face-btn[aria-selected="true"] {
  border-color: #d8b25a;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, .55), 0 10px 20px -14px #000;
  filter: none;
}
.dt-face-btn b {
  position: absolute;
  left: 0; right: 0; bottom: -15px;
  font: 400 9px/1 Georgia, serif;
  letter-spacing: .12em;
  white-space: nowrap;
  opacity: .8;
  color: #7b7567;
  text-align: center;
}

/* ── бутоните ─────────────────────────────────────────────── */
.lob-table .lobby-actions {
  grid-template-columns: 1fr 1fr;
  max-width: 520px;
  margin: 4px auto 0;
}
.lob-table .lobby-actions .btn-play { min-height: 56px; align-items: center; text-align: center; }
.lob-table .pantheon-line { margin: 16px auto 0; max-width: 520px; }

/* ── телефон ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .dt { grid-template-columns: 1fr auto 1fr; gap: 4px; }
  .dt-card { width: 104px; height: 104px; }
  .dt-name { font-size: 14px; max-width: 120px; }
  .dt-meta { font-size: 8.5px; letter-spacing: .1em; }
  .dt-vs { padding-top: 30px; }
  .dt-vs::before, .dt-vs::after { height: 16px; }
  .dt-faces-row {
    justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap;
    padding: 0 4px 22px; margin: 0 -4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .dt-faces-row::-webkit-scrollbar { display: none; }
  .dt-faces-head { align-items: flex-end; }
  .dt-faces-head em { text-align: right; max-width: 46%; }
  .dt-face-btn { width: 50px; height: 50px; flex: 0 0 auto; }
  .lob-table .lobby-actions { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ЛЯВАТА РЕЛСА: „твоят лист“ в стила на дуелната маса
   ═══════════════════════════════════════════════════════════ */
.lr-left .lob-me { padding: 14px 14px 12px; }

.lr-top {
  margin: 0 0 10px;
  font: 600 8.5px/1 system-ui, sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #8d8574;
}

.lr-id { display: flex; align-items: center; gap: 11px; }

.lob-me .lob-ava {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, .5);
  box-shadow: 0 0 0 3px #10150f, 0 0 0 4px rgba(201, 162, 39, .18);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font: 600 20px/1 Georgia, serif;
  color: #cfc6ae;
}

.lob-me .lob-who { min-width: 0; }
.lob-me .lob-who b {
  display: block;
  font: 600 15px/1.2 Georgia, serif;
  color: #efe7d2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lob-me .lob-elo {
  display: block;
  margin-top: 3px;
  font: 400 8.5px/1 system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #948c7b;
}
.lob-me .lob-elo b {
  font: 600 15px/1 Georgia, serif;
  letter-spacing: 0;
  color: #d8b25a;
  margin-left: 2px;
}

.lr-div-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 13px 0 6px;
}
.lr-div-row span {
  font: 600 9px/1 system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #d8b25a;
}
.lr-div-row em {
  font: italic 400 9.5px/1 Georgia, serif;
  color: #7f7a6c;
  font-style: italic;
}

.lob-me .lob-bar {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.lob-me .lob-bar b {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #7d6220, #e2c063 60%, #f4e2a8);
  box-shadow: 0 0 10px -2px rgba(201, 162, 39, .8);
  transition: width .5s ease;
}

.lob-me .lob-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.lob-me .lob-stats li {
  padding: 9px 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .05);
  text-align: center;
}
.lob-me .lob-stats b {
  display: block;
  font: 600 17px/1 Georgia, serif;
  color: #efe7d2;
}
.lob-me .lob-stats span {
  display: block;
  margin-top: 4px;
  font: 400 7.5px/1 system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8d8574;
}

@media (max-width: 760px) {
  .lob-me .lob-ava { width: 48px; height: 48px; flex-basis: 48px; }
  .lob-me .lob-who b { font-size: 14px; }
}

/* релсата е блокова, не flex — иначе етикетът застава до портрета */
.lr-left .lob-me { display: block; }
.lr-left .lob-div { display: block; flex: none; margin-top: 0; }
.lr-left .lob-bar { display: block; width: 100%; height: 5px; flex: none; }
.lr-left .lr-id { margin-top: 2px; }


/* без дясна релса лобито остава с две колони и центрирано */
.lob { grid-template-columns: 268px minmax(0, 1fr); }
@media (max-width: 1100px) { .lob { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   ЛОБИТО НА ЦЯЛ ЕКРАН — без карта, без странични отстъпи
   ═══════════════════════════════════════════════════════════ */
body.lobby-wide .duelwrap { padding: 64px 0 0; }
#screen-lobby { min-height: calc(100dvh - 64px); }

.lob {
  max-width: none;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  padding: 18px 34px 22px;
  min-height: calc(100dvh - 64px);
  align-items: center;
}

.lob-main.lob-table {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 6px 10px 0;
  max-width: none;
}

.lob-table .display { font-size: clamp(40px, 4.8vw, 68px); line-height: 1.02; }
.lob-table .lede { font-size: 14px; max-width: 62ch; margin-bottom: 26px; }

.dt { max-width: 760px; margin-bottom: 10px; }
.dt-card { width: 172px; height: 172px; }
.dt-name { font-size: 22px; max-width: 230px; }
.dt-meta { font-size: 11px; }
.dt-vs { padding-top: 52px; }
.dt-vs::before, .dt-vs::after { height: 34px; }

.dt-faces { max-width: 1040px; margin: 30px auto 26px; }
.dt-faces-row { gap: 6px; }
.dt-face-btn { width: 66px; height: 66px; }
.dt-face-btn b { font-size: 10px; bottom: -17px; }
.dt-faces-head { margin-bottom: 14px; }

.lob-table .lobby-actions { max-width: 660px; gap: 14px; margin-top: 30px; }
.lob-table .lobby-actions .btn-play { min-height: 68px; }
.lob-table .pantheon-line { max-width: 660px; margin-top: 18px; }

@media (max-width: 1180px) {
  .dt-face-btn { width: 54px; height: 54px; }
  .dt-faces { max-width: none; }
}

@media (max-width: 900px) {
  body.lobby-wide .duelwrap { padding: 64px 0 0; }
  .lob { grid-template-columns: 1fr; padding: 12px 16px 22px; gap: 18px; }
  .lob-table .display { font-size: clamp(30px, 8vw, 42px); }
  .dt-card { width: 118px; height: 118px; }
  .dt-name { font-size: 15px; max-width: 140px; }
  .dt-face-btn { width: 50px; height: 50px; }
  .lob-table .lobby-actions { grid-template-columns: 1fr; max-width: none; }
  .dt-faces-row { justify-content: flex-start; overflow-x: auto; }
  .dt-faces { margin: 20px auto 18px; }
}

/* прибираме вертикалния ритъм, за да се събере на един екран */
.lob { min-height: auto; padding-top: 10px; padding-bottom: 12px; }
.lob-table .display { margin-bottom: 2px; }
.lob-table .lede { margin-bottom: 16px; }
.dt { margin-bottom: 2px; }
.dt-card { width: 158px; height: 158px; }
.dt-vs { padding-top: 44px; }
.dt-faces { margin: 18px auto 14px; }
.lob-table .lobby-actions { margin-top: 16px; }
.lob-table .pantheon-line { margin-top: 12px; }

/* телефон: двата портрета се събират, нищо не се реже */
@media (max-width: 900px) {
  .lob { grid-template-columns: 1fr; }
  .lob-rail { position: static; }
  .lr-left { order: 2; }
  .lob-main.lob-table { order: 1; }

  .dt { grid-template-columns: 1fr 26px 1fr; gap: 0; max-width: 100%; overflow: hidden; }
  .dt-card { width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; }
  .dt-label { font-size: 7.5px; letter-spacing: .14em; text-align: center; }
  .dt-name { font-size: 13px; max-width: 100%; }
  .dt-meta { font-size: 8px; letter-spacing: .06em; text-align: center; }
  .dt-vs { padding-top: 30px; gap: 6px; }
  .dt-vs span { font-size: 7px; letter-spacing: .2em; }
  .dt-vs::before, .dt-vs::after { height: 14px; }

  .dt-faces-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .dt-faces-head em { font-size: 10px; text-align: left; max-width: none; }
  .dt-faces-row { gap: 5px; }
  .dt-face-btn { width: 46px; height: 46px; }
  .dt-face-btn b { font-size: 8px; bottom: -14px; }

  .lob-table .lobby-actions { margin-top: 22px; gap: 10px; }
  .lob-table .lobby-actions .btn-play { min-height: 56px; }
  .lob-table .pantheon-line { margin-top: 12px; }
}

/* без странични релси: една колона, центрирано */
.lob { grid-template-columns: minmax(0, 1fr); }
.lob-main.lob-table { max-width: 1180px; margin: 0 auto; width: 100%; }

/* без етикети над портретите */
.dt-label { display: none; }

/* ═══════════════════════════════════════════════════════════
   ЕКРАН „ТЪРСИМ ПРОТИВНИК“ — в новия дизайн, на цял екран
   ═══════════════════════════════════════════════════════════ */
#screen-quick {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100dvh - 64px);
  display: grid;
  place-items: center;
}
#screen-quick .fx-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#screen-quick .fx-bg i { position: absolute; display: block; }

#screen-quick .quick.panel {
  position: relative;
  z-index: 2;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: min(560px, 92vw);
  padding: 10px 20px 26px;
  text-align: center;
}

#screen-quick .eyebrow {
  letter-spacing: .3em;
  color: #8d8574;
  margin-bottom: 18px;
}

#screen-quick .qme {
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
#screen-quick .qva,
#screen-quick .qava {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, .5);
  box-shadow: 0 0 0 4px #10150f, 0 0 0 5px rgba(201, 162, 39, .2);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
#screen-quick .qwho { text-align: left; }
#screen-quick .qwho b { font: 600 17px/1.2 Georgia, serif; color: #efe7d2; }
#screen-quick .qelo {
  display: block;
  margin-top: 3px;
  font: 400 8.5px/1 system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #948c7b;
}
#screen-quick .qelo b { font: 600 15px/1 Georgia, serif; letter-spacing: 0; color: #d8b25a; }

#screen-quick .qclash {
  width: 170px;
  height: 170px;
  margin: 6px auto 14px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(201, 162, 39, .12), transparent 68%);
}
#screen-quick .qclash::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, .22);
  animation: qRing 3.4s ease-in-out infinite;
}
@keyframes qRing {
  0%, 100% { transform: scale(1); opacity: .5; }
  50% { transform: scale(1.06); opacity: .95; }
}
#screen-quick .qblade { filter: drop-shadow(0 0 10px rgba(201, 162, 39, .35)); }

#screen-quick .qtitle {
  font: 600 clamp(28px, 3.4vw, 40px)/1.08 Georgia, serif;
  color: #f6efdc;
  margin: 6px 0 10px;
  text-shadow: 0 0 18px rgba(201, 162, 39, .35), 0 0 46px rgba(201, 162, 39, .18);
}
#screen-quick .qtitle em { font-style: italic; color: #d8b25a; }

#screen-quick .quick-status {
  font: 400 10px/1.4 system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #948c7b;
  margin: 6px 0 10px;
}
#screen-quick .quick-status b { font: 600 17px/1 Georgia, serif; letter-spacing: 0; color: #d8b25a; }

#screen-quick .qhint {
  max-width: 42ch;
  margin: 0 auto 16px;
  font: italic 400 12px/1.6 Georgia, serif;
  color: #7f7a6c;
}

#screen-quick .link-quiet,
#screen-quick #quickCancel {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, .32);
  background: transparent;
  color: #cfc6ae;
  font: 400 13px/1 Georgia, serif;
  cursor: pointer;
}
#screen-quick #quickCancel:hover { border-color: #d8b25a; color: #f0e7cf; box-shadow: 0 0 22px -10px rgba(201, 162, 39, .8); }

@media (max-width: 760px) {
  #screen-quick .quick.panel { width: 100%; padding: 6px 14px 22px; }
  #screen-quick .qclash { width: 130px; height: 130px; }
  #screen-quick .qva, #screen-quick .qava { width: 58px; height: 58px; border-radius: 10px; }
  #screen-quick .qtitle { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════
   ЕКРАН ЗА ВЪПРОС — широк, чист, в новия дизайн
   ═══════════════════════════════════════════════════════════ */
body.lobby-wide #screen-round {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px clamp(16px, 3.4vw, 54px) 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: calc(100dvh - 64px);
}

/* резултат */
body.lobby-wide #screen-round .scoreboard {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 6px 10px;
  border-bottom: 1px solid rgba(201, 162, 39, .16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

body.lobby-wide #screen-round .scoreboard .p { display: flex; align-items: center; gap: 12px; }
body.lobby-wide #screen-round .scoreboard .p.side.b { flex-direction: row-reverse; text-align: right; }

body.lobby-wide #screen-round .scoreboard .avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, .45);
  box-shadow: 0 0 0 4px #10150f, 0 0 0 5px rgba(201, 162, 39, .16);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-size: 17px;
}

body.lobby-wide #screen-round .p-meta { display: grid; gap: 2px; }
body.lobby-wide #screen-round .p-name {
  font: 600 15px/1.2 Georgia, serif;
  color: #efe7d2;
  letter-spacing: .01em;
}
body.lobby-wide #screen-round .p-score {
  font: 600 26px/1 Georgia, serif;
  color: #d8b25a;
  text-shadow: 0 0 16px rgba(201, 162, 39, .35);
}
body.lobby-wide #screen-round .scoreboard .p-bar { display: none; }

body.lobby-wide #screen-round .sb-mid { text-align: center; display: grid; gap: 4px; }
body.lobby-wide #screen-round .sb-round {
  font: 600 9px/1 system-ui, sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #8d8574;
}
body.lobby-wide #screen-round .sb-q {
  font: italic 400 12px/1 Georgia, serif;
  color: #b9b19d;
}

/* лентата с кръга */
body.lobby-wide #screen-round .round-strip {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  text-align: center;
}
body.lobby-wide #screen-round .round-strip-text {
  font: 600 8.5px/1 system-ui, sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, .55);
}

/* картата на въпроса */
body.lobby-wide #screen-round .q-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 0 0;
}

body.lobby-wide #screen-round .q-head { align-items: flex-start; margin-bottom: 6px; }
body.lobby-wide #screen-round .q-badge {
  font: 600 8.5px/1 system-ui, sans-serif;
  letter-spacing: .26em;
  color: #8d8574;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 99px;
  padding: 7px 12px;
}

body.lobby-wide #screen-round .timer { width: 86px; height: 86px; }
body.lobby-wide #screen-round .timer-num {
  font: 600 27px/1 Georgia, serif;
  color: #f0e7cf;
  text-shadow: 0 0 16px rgba(201, 162, 39, .5);
}

body.lobby-wide #screen-round .q-text {
  font: 600 clamp(26px, 2.9vw, 42px)/1.18 Georgia, serif;
  color: #f6efdc;
  margin: 10px 0 22px;
  max-width: 26ch;
}

body.lobby-wide #screen-round .options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: none;
}

body.lobby-wide #screen-round .opt {
  min-height: 66px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, .22);
  background: rgba(255, 255, 255, .025);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
body.lobby-wide #screen-round .opt:hover {
  border-color: rgba(216, 178, 90, .7);
  background: rgba(201, 162, 39, .08);
  box-shadow: 0 0 24px -12px rgba(201, 162, 39, .9);
}
body.lobby-wide #screen-round .opt .key {
  border-radius: 7px;
  background: rgba(201, 162, 39, .12);
  border: 1px solid rgba(201, 162, 39, .3);
  color: #d8b25a;
}
body.lobby-wide #screen-round .opt .txt { font-size: 15px; color: #e8e1cf; }

/* долен ред */
body.lobby-wide #screen-round .round-foot { justify-content: flex-end; margin-top: 4px; }
body.lobby-wide #screen-round .surrender-btn {
  /* 44px цел за натискане; беше ~31px (padding 9px, шрифт 11.5px) */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #8d8574;
  background: transparent;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 11.5px;
  letter-spacing: .06em;
}
body.lobby-wide #screen-round .surrender-btn:hover { color: #d8b25a; border-color: rgba(201, 162, 39, .5); }

@media (max-width: 900px) {
  body.lobby-wide #screen-round { padding: 10px 12px 18px; gap: 12px; }
  body.lobby-wide #screen-round .scoreboard .avatar { width: 44px; height: 44px; border-radius: 10px; }
  body.lobby-wide #screen-round .p-score { font-size: 21px; }
  body.lobby-wide #screen-round .q-text { font-size: 22px; max-width: none; }
  body.lobby-wide #screen-round .options { grid-template-columns: 1fr; gap: 9px; }
  body.lobby-wide #screen-round .opt { min-height: 56px; }
  body.lobby-wide #screen-round .timer { width: 66px; height: 66px; }
  body.lobby-wide #screen-round .timer-num { font-size: 21px; }
}

/* запълва екрана вертикално и маха дублиращата се лента с кръга */
body.lobby-wide #screen-round { min-height: calc(100dvh - 64px) !important; }
body.lobby-wide #screen-round .round-strip { display: none; }

/* телефон: резултатът се събира, без застъпване */
@media (max-width: 900px) {
  body.lobby-wide #screen-round .sb-mid { display: none; }
  body.lobby-wide #screen-round .scoreboard { gap: 8px; padding: 0 2px 8px; }
  body.lobby-wide #screen-round .scoreboard .avatar { width: 38px; height: 38px; border-radius: 9px; }
  body.lobby-wide #screen-round .p-name { font-size: 12px; }
  body.lobby-wide #screen-round .p-score { font-size: 19px; }
  body.lobby-wide #screen-round .q-head { margin-bottom: 2px; }
  body.lobby-wide #screen-round .timer { width: 58px; height: 58px; flex: 0 0 58px; }
  body.lobby-wide #screen-round .timer-num { font-size: 18px; }
  body.lobby-wide #screen-round .q-text { font-size: 20px; margin: 6px 0 14px; }
  body.lobby-wide #screen-round .opt { min-height: 52px; }
  body.lobby-wide #screen-round .opt .txt { font-size: 13.5px; }
}

@media (max-width: 900px) {
  /* без средната колона остават две — всеки играч в своята */
  body.lobby-wide #screen-round .scoreboard {
    grid-template-columns: 1fr 1fr !important;
  }
  body.lobby-wide #screen-round .scoreboard .p.side.a { justify-self: start; }
  body.lobby-wide #screen-round .scoreboard .p.side.b { justify-self: end; }
  body.lobby-wide #screen-round .p-meta { min-width: 0; }
  body.lobby-wide #screen-round .p-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26vw; }

  body.lobby-wide #screen-round .timer {
    width: 60px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
    margin-left: auto;
  }
  body.lobby-wide #screen-round .q-head { align-items: center; }
}

/* ═══════════════════════════════════════════════════════════
   РЕДИЦАТА Е С ПРОТИВНИЦИТЕ — боговете от Пантеона
   ═══════════════════════════════════════════════════════════ */
.dt-faces-row { gap: 8px; }

.dt-god {
  position: relative;
  width: 62px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}

.dg-face {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 7px;
  border: 1px solid rgba(201, 162, 39, .32);
  background: #171e18 center/cover no-repeat;
  box-shadow: 0 0 0 3px #0f150f, 0 12px 20px -18px #000;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.dt-god:hover .dg-face {
  transform: translateY(-4px);
  border-color: #e2c063;
  box-shadow: 0 0 0 3px #0f150f, 0 0 20px -6px rgba(201, 162, 39, .65);
}

.dt-god .dg-name {
  display: block;
  margin-top: 6px;
  font: 400 9.5px/1.1 Georgia, serif;
  color: #b9b19d;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-god .dg-num {
  display: block;
  margin-top: 2px;
  font: 400 7.5px/1 Georgia, serif;
  letter-spacing: .18em;
  /* 3.43:1 → 7.14:1 на #101613; #a9a190 вече се ползва в слоя */
  color: #a9a190;
  text-align: center;
}

.dt-god.is-locked .dg-face { filter: grayscale(.65) brightness(.5); border-color: rgba(255, 255, 255, .08); }
/* заключените имена: 2.69:1 → 5.16:1, пак заглушено, но четимо */
.dt-god.is-locked .dg-name { color: #8d8574; }

.dt-god .dg-lock {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 15px;
  font-style: normal;
  filter: grayscale(1);
  opacity: .85;
}

.dt-god.is-beaten .dg-face {
  border-color: #c9a227;
  box-shadow: 0 0 0 3px #0f150f, 0 0 0 5px rgba(201, 162, 39, .3);
}

.dt-god .dg-seal {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 9.5px/1 system-ui, sans-serif;
  font-style: normal;
  color: #f4e8cf;
  background: radial-gradient(circle at 32% 28%, #a93529, #7d1f18 70%);
  box-shadow: 0 2px 6px -2px #000;
}

.dt-god .dg-daily {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 3px 4px;
  border-radius: 3px;
  font: 600 6.5px/1 system-ui, sans-serif;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0d1210;
  background: linear-gradient(180deg, #f0d68a, #c9a227);
  white-space: nowrap;
}

.dt-god.is-daily .dg-face {
  border-color: rgba(226, 192, 99, .9);
  box-shadow: 0 0 0 3px #0f150f, 0 0 0 5px rgba(201, 162, 39, .45), 0 0 26px -8px rgba(201, 162, 39, .6);
}

@media (max-width: 1180px) { .dt-god, .dg-face { width: 54px; } .dg-face { height: 54px; } }
@media (max-width: 900px) { .dt-god, .dg-face { width: 50px; } .dg-face { height: 50px; } .dt-god .dg-name { font-size: 8.5px; } }

/* ═══════════════════════════════════════════════════════════
   ПРОЗОРЧЕ „ГОТОВ ЛИ СИ ЗА ДУЕЛА?“
   ═══════════════════════════════════════════════════════════ */
.dg-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 6, .84);
  backdrop-filter: blur(4px);
  animation: dgIn .18s ease;
}
.dg-modal[hidden] { display: none; }
@keyframes dgIn { from { opacity: 0; } to { opacity: 1; } }

.dg-box {
  position: relative;
  width: min(460px, 94vw);
  max-height: 92vh;
  overflow: auto;
  padding: 24px 24px 18px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, .4);
  background: linear-gradient(180deg, #161d17, #10150f);
  box-shadow: 0 40px 80px -50px #000, 0 0 44px -22px rgba(201, 162, 39, .35);
  text-align: center;
  animation: dgUp .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes dgUp { from { transform: translateY(12px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }

.dg-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7f7a6c;
  font: 400 15px/1 system-ui, sans-serif;
  cursor: pointer;
}
.dg-close:hover { color: #f0e7cf; background: rgba(255, 255, 255, .05); }

.dg-eyebrow {
  margin: 0 0 12px;
  font: 600 8.5px/1 system-ui, sans-serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #8d8574;
}

.dg-portrait {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, .5);
  background: #171e18 center/cover no-repeat;
  box-shadow: 0 0 0 5px #10150f, 0 0 0 6px rgba(201, 162, 39, .22), 0 0 30px -12px rgba(201, 162, 39, .6);
}

.dg-title {
  margin: 0 0 4px;
  font: 600 24px/1.15 Georgia, serif;
  color: #f6efdc;
}
.dg-sub {
  margin: 0 0 14px;
  font: italic 400 13px/1.4 Georgia, serif;
  color: #b9b19d;
}
.dg-sub span { color: #7f7a6c; }

.dg-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dg-tag {
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid rgba(201, 162, 39, .35);
  font: 600 8.5px/1 system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d8b25a;
}
.dg-tag.solid { background: #c9a227; border-color: #c9a227; color: #0d1210; }
.dg-tag.gold { border-color: rgba(226, 192, 99, .8); color: #f0d68a; }

.dg-rules {
  list-style: none;
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 9px;
  text-align: left;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}
.dg-rules li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.dg-rules li:last-child { border-bottom: 0; }
.dg-rules span { font: 400 12px/1.3 system-ui, sans-serif; color: #a9a190; }
.dg-rules b { font: 600 12px/1.3 Georgia, serif; color: #efe7d2; text-align: right; }

.dg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dg-actions .btn { min-height: 50px; border-radius: 8px; }
.dg-actions .btn:disabled { opacity: .45; cursor: not-allowed; }

.dg-foot {
  margin: 12px 0 0;
  font: 400 11px/1.4 system-ui, sans-serif;
  color: #7f7a6c;
}

body.dg-modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .dg-box { padding: 20px 16px 14px; }
  .dg-title { font-size: 21px; }
  .dg-portrait { width: 80px; height: 80px; }
  .dg-actions { grid-template-columns: 1fr; }
}

/* когато няма снимка, аватарът е златен монограм, не голо парче текст */
body.lobby-wide #screen-round .scoreboard .avatar {
  background-image: radial-gradient(circle at 34% 26%, rgba(201,162,39,.22), rgba(23,30,24,.9) 70%);
  color: #d8b25a;
  font: 600 15px/1 Georgia, serif;
  letter-spacing: .02em;
  text-transform: none;
}

/* ═══════════════════════════════════════════════════════════
   КЛАСАЦИЯ ВДЯСНО (нов дизайн)
   ═══════════════════════════════════════════════════════════ */
.lob { grid-template-columns: minmax(0, 1fr) 316px; align-items: start; }

.lob-side { position: sticky; top: 18px; }

.lb-card {
  padding: 16px 15px 13px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, .22);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 162, 39, .08), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  box-shadow: 0 26px 54px -46px #000;
}

.lb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid rgba(201, 162, 39, .16); }
.lb-head {
  margin: 0;
  font: 600 9px/1 system-ui, sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #8d8574;
}
.lb-badge {
  font: 600 8px/1 system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0d1210;
  background: linear-gradient(180deg, #e2c063, #b98f24);
  padding: 4px 6px;
  border-radius: 4px;
}

.lb-list { counter-reset: lbr; list-style: none; margin: 8px 0 0; padding: 0; }
.lb-list li {
  counter-increment: lbr;
  display: grid;
  grid-template-columns: 16px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 7px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.lb-list li::before {
  content: counter(lbr);
  font: 600 11px/1 Georgia, serif;
  color: #6f6a5d;
  text-align: right;
}
.lb-list li:nth-child(1)::before { color: #f0d68a; }
.lb-list li:nth-child(2)::before { color: #cfc6ae; }
.lb-list li:nth-child(3)::before { color: #b98f24; }

.lb-list li.me {
  background: linear-gradient(90deg, rgba(201, 162, 39, .16), rgba(201, 162, 39, 0) 85%);
  border-color: rgba(201, 162, 39, .25);
  box-shadow: inset 2px 0 0 #c9a227;
}
.lb-list li.me::before { color: #f0d68a; }

.lb-ava {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #232b24 center/cover no-repeat;
  border: 1px solid rgba(201, 162, 39, .28);
  display: grid;
  place-items: center;
  font: 600 12px/1 Georgia, serif;
  color: #d8b25a;
}

.lb-name {
  font: 400 13px/1.2 system-ui, sans-serif;
  color: #e8e1cf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-elo { font: 600 13px/1 Georgia, serif; color: #d8b25a; }

.lb-list li.muted {
  display: block;
  padding: 10px 2px;
  font: italic 400 12px/1.5 Georgia, serif;
  color: #7f7a6c;
}
.lb-list li.muted::before { content: none; }

.lb-foot {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  font: italic 400 10.5px/1.5 Georgia, serif;
  color: #6f6a5d;
}

@media (max-width: 1080px) {
  .lob { grid-template-columns: minmax(0, 1fr); }
  .lob-side { position: static; order: 3; }
  .lb-card { max-width: none; }
}

/* класацията е най-вдясно и най-горе */
.lob { align-items: start; }
.lob-side { align-self: start; justify-self: end; position: sticky; top: 12px; margin-top: -6px; width: 316px; }
@media (max-width: 1080px) { .lob-side { justify-self: stretch; width: auto; margin-top: 14px; } }

/* „онлайн“ в горната лента на дуела */
.duel-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 14px;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(201, 162, 39, .3);
  background: rgba(201, 162, 39, .08);
  font: 400 11px/1 system-ui, sans-serif;
  color: #cfc6ae;
}
.duel-online[hidden] { display: none; }
.duel-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7a5;
  box-shadow: 0 0 8px rgba(110, 231, 165, .9);
  animation: onlinePulse 2.2s ease-in-out infinite;
}
.duel-online b { font: 600 12px/1 Georgia, serif; color: #d8b25a; }
@keyframes onlinePulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .duel-online i { animation: none; } }

/* „Играй веднага срещу бот“ — преди беше невидим (системен фон) */
.quick-bot {
  display: flex;                 /* беше block — 41px височина, под 44 */
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 13px 18px;
  border-radius: 3px;
  border: 1px solid rgba(201, 162, 39, .55);
  background: linear-gradient(180deg, rgba(201, 162, 39, .16), rgba(201, 162, 39, .06));
  color: #f0e7cf;
  font: 600 12.5px/1 Georgia, serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.quick-bot:hover {
  background: linear-gradient(180deg, rgba(201, 162, 39, .26), rgba(201, 162, 39, .1));
  border-color: #e2c063;
  box-shadow: 0 0 24px -14px rgba(201, 162, 39, .95);
}
.quick-bot:focus-visible { outline: 2px solid #e2c063; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .quick-bot { transition: none; } }

/* ── празен слот: силует на гръцки войн вместо „?“ ── */
.dt-card.op.empty .dt-face {
  background-image: url("assets/duel/hoplite.webp");
  background-size: auto 92%;
  background-position: 50% 58%;
  background-repeat: no-repeat;
  opacity: .82;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55));
}
.dt-card.op.empty .dt-face i { display: none; }
.dt-card.op.empty { background:
    radial-gradient(70% 60% at 50% 84%, rgba(201, 162, 39, .10), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 7px, transparent 7px 14px),
    #141a15; }

/* същият силует, когато аватарът липсва и в мача */
.scoreboard .avatar.is-empty,
.avatar.is-empty {
  background-image: url("assets/duel/hoplite.webp") !important;
  background-size: auto 94% !important;
  background-position: 50% 62% !important;
  background-repeat: no-repeat !important;
  color: transparent !important;
}

/* ── профил на играч от класацията ── */
.prof-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 10, 8, .72);
  backdrop-filter: blur(6px);
}
.prof-modal[hidden] { display: none; }

.prof-card {
  position: relative;
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  border-radius: 4px;
  border: 1px solid rgba(201, 162, 39, .4);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(201, 162, 39, .12), transparent 60%),
    linear-gradient(180deg, #161d17, #0d1210);
  box-shadow: 0 40px 90px -50px #000, inset 0 0 40px -32px rgba(201, 162, 39, .9);
}
.prof-x {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, .28);
  background: transparent;
  color: #a9a190;
  font-size: 13px;
  cursor: pointer;
}
.prof-x:hover { color: #f0e7cf; border-color: #e2c063; }

.prof-top { display: flex; align-items: center; gap: 14px; }
.prof-ava {
  width: 58px; height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, .45);
  background-size: cover;
  background-position: center;
  background-color: #1a211b;
  display: grid;
  place-items: center;
  font: 600 20px/1 Georgia, serif;
  color: #d8b25a;
  flex: 0 0 auto;
}
.prof-who { min-width: 0; flex: 1; }
.prof-who h3 {
  margin: 0;
  font: 600 19px/1.2 Georgia, serif;
  color: #f6efdc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prof-div {
  margin: 4px 0 0;
  font: 600 9px/1 system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8d8574;
}
.prof-elo { font: 600 26px/1 Georgia, serif; color: #d8b25a; }
.prof-elo::after { content: " ело"; font: 600 11px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8d8574; }

.prof-stats {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 162, 39, .16);
  font: 400 11px/1.2 system-ui, sans-serif;
  color: #a9a190;
}
.prof-stats b { display: block; font: 600 16px/1.2 Georgia, serif; color: #f0e7cf; margin-bottom: 3px; }

.prof-bar {
  height: 4px;
  margin-top: 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.prof-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #b98f24, #e2c063);
  transition: width .35s ease;
}
.prof-note {
  margin: 10px 0 0;
  font: italic 400 10.5px/1.5 Georgia, serif;
  color: #7f7a6c;
}

/* редовете в класацията се цъкат */
#lobTop li { cursor: pointer; transition: background .15s ease, border-color .15s ease; }
#lobTop li:hover, #lobTop li:focus-visible {
  background: rgba(201, 162, 39, .1);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .35);
}
#lobTop li:focus-visible { box-shadow: inset 0 0 0 2px #e2c063; }

/* втора карта в дясната колона */
.lb-card-pts { margin-top: 14px; }
.lb-card .lb-place {
  width: 16px;
  font: 600 11px/1 Georgia, serif;
  color: #8d8574;
  flex: 0 0 auto;
}

/* класацията по точки: номера от брояч, за да не се режат имената */
#lobPts { list-style: none; counter-reset: pts; }
#lobPts li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
#lobPts li::before {
  counter-increment: pts;
  content: counter(pts);
  font: 600 11px/1 Georgia, serif;
  color: #8d8574;
  text-align: right;
}
#lobPts li.me::before { color: #e2c063; }
#lobPts .lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* тайбрек в разкриването */
.ra-tb {
  color: #e2c063;
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: .2em;
  vertical-align: middle;
}

.prof-foot{margin-top:12px; display:flex; gap:8px}
.prof-add{
  padding:9px 16px; border-radius:3px; cursor:pointer;
  border:1px solid rgba(226,192,99,.75);
  background:linear-gradient(180deg,rgba(226,192,99,.18),rgba(185,143,36,.1));
  color:#e2c063; font:600 10.5px/1 system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase;
  transition:background .18s, color .18s
}
.prof-add:hover{background:linear-gradient(180deg,#e2c063,#b98f24); color:#1a1408}
.prof-add[disabled]{opacity:.55; cursor:default; background:transparent; color:#8d8574; border-color:rgba(201,162,39,.25)}

/* ═══════════════════════════════════════════════════════════
   ЗАЛОГ VT — избор в лобито, чип в мача, резултат на финала
   ═══════════════════════════════════════════════════════════ */
.stake-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 14px;
}
.stake-k {
  font: 600 9.5px/1 system-ui, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8d8574;
}
.stake-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.stake-btn {
  appearance: none;
  cursor: pointer;
  padding: 8px 13px;
  min-height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(201, 162, 39, .28);
  background: rgba(255, 255, 255, .02);
  color: #a9a190;
  font: 600 11px/1 system-ui, sans-serif;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s;
}
.stake-btn:hover { border-color: rgba(201, 162, 39, .6); color: #e2c063; }
.stake-btn.is-on {
  background: linear-gradient(180deg, rgba(226, 192, 99, .22), rgba(185, 143, 36, .12));
  border-color: rgba(226, 192, 99, .8);
  color: #f2dd9b;
}
.stake-btn:focus-visible { outline: 2px solid #e2c063; outline-offset: 2px; }

body.lobby-wide #screen-round .scoreboard .p { position: relative; }
body.lobby-wide #screen-round .p-meta {
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 1px;
}
body.lobby-wide #screen-round .p-name { grid-column: 1; grid-row: 1; min-width: 0; }
body.lobby-wide #screen-round .p-score { grid-column: 1 / -1; grid-row: 2; }
.stake-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(226, 192, 99, .35);
  background: rgba(226, 192, 99, .1);
  color: #e2c063;
  font: 600 9px/1.5 system-ui, sans-serif;
  letter-spacing: .06em;
  white-space: nowrap;
}
body.lobby-wide #screen-round .stake-chip { grid-column: 2; grid-row: 1; justify-self: start; }
body.lobby-wide #screen-round .p.side.b .stake-chip { justify-self: end; }

.stake-line {
  margin: 4px 0 0;
  font: 700 14px/1.2 system-ui, sans-serif;
  letter-spacing: .1em;
  color: #e2c063;
}
.stake-line.up { color: #8fd18f; text-shadow: 0 0 18px rgba(120, 220, 140, .25); }
.stake-line.down { color: #e08a7a; text-shadow: 0 0 18px rgba(224, 120, 100, .2); }
.stake-line.draw { color: #a9a190; }

/* ═══════════════════════════════════════════════════════════
   ЕМОДЖИТА В МАЧ — док в долния ъгъл + балонче над аватара
   ═══════════════════════════════════════════════════════════ */
.emoji-dock {
  position: fixed;
  left: max(10px, env(safe-area-inset-left));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(10, 14, 9, .8);
  border: 1px solid rgba(201, 162, 39, .24);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.emoji-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s, background .16s;
}
.emoji-btn:hover { transform: translateY(-2px) scale(1.08); background: rgba(226, 192, 99, .14); }
.emoji-btn:active { transform: scale(.92); }
.emoji-btn:focus-visible { outline: 2px solid #e2c063; outline-offset: 1px; }

.emoji-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 12px;
  z-index: 20;
  padding: 3px 9px;
  border-radius: 14px;
  background: rgba(16, 21, 15, .96);
  border: 1px solid rgba(226, 192, 99, .38);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  font-size: 18px;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(.75);
  transform-origin: 50% 100%;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1.3);
}
.emoji-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 12px;
  border: 5px solid transparent;
  border-top-color: rgba(226, 192, 99, .38);
}
.emoji-bubble.pop { opacity: 1; transform: translateY(0) scale(1); }
body.lobby-wide #screen-round .p.side.b .emoji-bubble { left: auto; right: 12px; }
body.lobby-wide #screen-round .p.side.b .emoji-bubble::after { left: auto; right: 12px; }

/* докът да не закрива последния ред на въпроса */
body.lobby-wide #screen-round { padding-bottom: 68px; }

@media (max-width: 900px) {
  body.lobby-wide #screen-round .p-meta {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  body.lobby-wide #screen-round .p.side.b .p-meta { justify-items: end; }
  body.lobby-wide #screen-round .p-name { grid-column: 1; grid-row: 1; max-width: 34vw; }
  body.lobby-wide #screen-round .stake-chip {
    grid-column: 1;
    grid-row: 2;
    font-size: 8px;
    padding: 1px 5px;
  }
  body.lobby-wide #screen-round .p.side.b .stake-chip { justify-self: end; }
  body.lobby-wide #screen-round .p-score { grid-column: 1; grid-row: 3; }

  .emoji-dock { gap: 2px; padding: 5px 6px; }
  .emoji-btn { width: 30px; height: 30px; font-size: 17px; }
  .emoji-bubble { font-size: 16px; bottom: calc(100% + 4px); }
  body.lobby-wide #screen-round { padding-bottom: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .emoji-bubble { transition: none; transform: none; }
  .emoji-btn { transition: none; }
}

/* телефон: аватар и име в един ред, резултатът под името */
@media (max-width: 900px) {
  body.lobby-wide #screen-round .scoreboard .p { flex-wrap: nowrap; }
  body.lobby-wide #screen-round .p-meta { min-width: 0; }
  body.lobby-wide #screen-round .p-name { max-width: 100%; }
}
