/* Дуэль 1×1: лобби (.dl-), поединок (.dm-) и тост-вызов (.dt-).
   Табло на двоих: клетки раундов, цены-очки, красная «кнопка» VS как в студии. */

/* ================= лобби ================= */

.dl-hero { display: flex; flex-direction: column; gap: 22px; min-height: 100%; }
.dl-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.dl-hero-txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dl-hero-txt .lead { margin: 0; }
.dl-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .32em; }
.dl-x { color: var(--orange); white-space: nowrap; }
.dl-x i { font-style: normal; font-size: .72em; color: var(--orange-2); margin: 0 .02em; }
.dl-rules { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 700 13px/1.2 var(--font-ui);
  color: var(--muted);
}
.dl-rule .price { min-width: 2.1em; }
.dl-rule .price.lg { font-size: 22px; }
.dl-rule > span:last-child { max-width: 9ch; }
.dl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); animation: dm-blink 1.6s ease-in-out infinite; }

/* постер «ты против ???» */
.dl-vs { display: flex; align-items: center; padding: 6px 4px 0; }
.dl-vs-p { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 116px; min-width: 0; }
.dl-vs-ava {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 196, 107, .2), rgba(255, 157, 28, .04) 62%, transparent 72%);
}
.dl-vs-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 14px/1.2 var(--font-ui); }
.dl-vs-nm[data-vs-opp] { color: var(--muted); }
.dl-vs-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 62px;
  height: 62px;
  margin: -26px -14px 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #FF7158 0%, var(--red) 42%, var(--red-deep) 74%, #860E06 100%);
  color: #fff;
  font: 400 19px/1 var(--font-logo);
  letter-spacing: -.04em;
  text-shadow: 0 2px 0 rgba(90, 0, 0, .5);
  box-shadow: inset 0 -6px 10px rgba(70, 0, 0, .5), inset 0 3px 2px rgba(255, 210, 190, .35), 0 0 0 4px #170A06, 0 0 0 6px rgba(255, 196, 107, .34), 0 6px 0 4px #0B0503, 0 0 40px 6px rgba(224, 48, 30, .35);
  transform: rotate(-8deg);
}
.dl-mystery {
  --bg: #0A4613;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 196, 107, .55);
  background: var(--bg);
  color: var(--orange);
  font: 400 44px/1 var(--font-logo);
  text-shadow: 0 0 18px rgba(255, 157, 28, .55);
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .4);
}
.dl-mystery .emo { font-size: 54px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
.dl-hero.searching .dl-mystery { border-style: solid; border-color: var(--orange); box-shadow: inset 0 0 20px rgba(0, 0, 0, .25), 0 0 26px rgba(255, 157, 28, .45); }

/* три большие кнопки: клетки табло, главная — горит оранжевым */
.dl-acts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.dl-acts[hidden] { display: none; }
.dl-act {
  --face: var(--cell-face);
  --edge: var(--cell-edge);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 92px;
  padding: 14px 16px 14px 14px;
  border: 0;
  border-radius: 20px;
  background: var(--face);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--cell-bevel), 0 5px 0 var(--edge), 0 14px 24px rgba(0, 0, 0, .24);
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.dl-act:hover { filter: brightness(1.1); }
.dl-act:active { transform: translateY(4px); box-shadow: var(--cell-bevel), 0 1px 0 var(--edge), 0 4px 10px rgba(0, 0, 0, .25); }
.dl-act:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.dl-act.main {
  --face: var(--lit-face);
  --edge: var(--orange-edge);
  color: var(--orange-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 5px 0 var(--edge), 0 14px 24px rgba(0, 0, 0, .24), 0 0 34px rgba(255, 157, 28, .35);
}
.dl-act-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(0, 0, 0, .24);
  color: var(--orange);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}
.dl-act.main .dl-act-ico {
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #FF7158 0%, var(--red) 45%, var(--red-deep) 100%);
  color: #fff;
  box-shadow: inset 0 2px 1px rgba(255, 210, 190, .35), inset 0 -4px 8px rgba(70, 0, 0, .45), 0 0 0 3px rgba(42, 22, 0, .55), 0 3px 0 3px rgba(42, 22, 0, .35);
}
.dl-act-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dl-act-txt b { font: 400 15px/1.15 var(--font-logo); letter-spacing: .01em; word-spacing: -.32em; text-transform: uppercase; }
.dl-act-txt small { font: 600 13px/1.3 var(--font-ui); opacity: .8; }

/* поиск соперника */
.dl-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 20px;
  background: radial-gradient(80% 140% at 0 50%, rgba(255, 157, 28, .16), transparent 70%), rgba(0, 0, 0, .24);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 107, .35);
  animation: dm-rise .3s var(--ease-out) both;
}
.dl-search[hidden] { display: none; }
.dl-radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--lit-face);
  color: var(--orange-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 24px rgba(255, 157, 28, .45);
}
.dl-radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); opacity: 0; animation: dl-ping 1.8s ease-out infinite; }
.dl-radar i:nth-child(2) { animation-delay: .6s; }
.dl-radar i:nth-child(3) { animation-delay: 1.2s; }
.dl-search-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dl-search-t .muted { font-weight: 600; font-variant-numeric: tabular-nums; }
.dl-search-hint { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.dl-search-hint .btn.link { padding: 0 2px; font-size: 12px; }

/* гость: мягкая подсказка, не стена */
.dl-guest {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.dl-guest > svg { flex: none; color: var(--orange); }
.dl-guest > span { flex: 1; min-width: 0; }
.dl-guest .btn { flex: none; }

/* недоигранная дуэль */
.dl-back { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.dl-back[hidden] { display: none; }
.dl-back-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red-face); color: #fff; box-shadow: 0 3px 0 var(--red-edge), 0 0 22px rgba(224, 48, 30, .45); animation: dm-pulse 1s ease-in-out infinite alternate; }
.dl-back-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-back-t b { font: 400 16px/1.2 var(--font-logo); text-transform: uppercase; word-spacing: -.3em; }
.dl-back-t small { color: var(--muted); font-size: 14px; }

/* правая колонка */
.dl-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dl-side > .card { flex: 1 1 auto; }
.dl-side > .dl-me { flex: none; }
.dl-me-in { display: flex; align-items: center; gap: 12px; }
.dl-me-r { flex: none; min-width: 3.3em; }
.dl-me-cells { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dl-me-note { flex: 1; min-width: 0; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.dl-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 7px; border-radius: 12px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--line); }
.dl-cell b { font: 400 16px/1 var(--font-logo); color: var(--orange); }
.dl-cell small { font: 800 9.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dl-inv.lit { border-color: rgba(255, 157, 28, .55); box-shadow: inset 0 1px 0 rgba(255, 220, 160, .14), 0 12px 30px rgba(0, 0, 0, .22), 0 0 36px rgba(255, 157, 28, .16); }
.dl-inv-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px var(--line); animation: dm-rise .3s var(--ease-out) both; }
.dl-inv-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-inv-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-inv-t small { color: var(--muted); font-size: 12.5px; }
.dl-none { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.dl-none > svg { flex: none; color: var(--dim); }
.dl-skel { height: 56px; border-radius: 16px; }

.dl-live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.dl-live-row:hover { background: var(--card-3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.dl-lr-p { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dl-lr-p.r { justify-content: flex-end; }
.dl-lr-p b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.dl-lr-sc { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 3px 4px; max-width: 110px; }
.dl-lr-sc > b, .dl-lr-sc > i { font: 400 14px/1 var(--font-logo); color: var(--orange); font-style: normal; }
.dl-lr-sc > i { color: var(--dim); }
.dl-lr-sc small { flex-basis: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: 700 10px/1.2 var(--font-ui); letter-spacing: .1em; color: var(--muted); }
.dl-lr-sc small svg { color: var(--orange-2); }

/* вызвать друга */
.dl-friends { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: calc(var(--head-h) + 12px); }
.dl-friends.flash { animation: dl-flash 1.1s ease; }
.dl-name { display: flex; gap: 10px; }
.dl-name .field { flex: 1; min-width: 0; }
.dl-friends .form-err { margin: -4px 0 0; }
.dl-online { max-height: 440px; overflow-y: auto; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; }
.dl-on { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; border-radius: 16px; background: rgba(0, 0, 0, .16); box-shadow: inset 0 0 0 1px var(--line); }
.dl-on.busy { opacity: .7; }
.dl-on-who { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); text-decoration: none; }
.dl-on-who:hover { color: var(--orange-2); }
.dl-on-who > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-on-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-on-who small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.dl-on-who small .tier { transform: scale(.9); transform-origin: left center; }

/* последние дуэли: победитель слева или справа — светится оранжевым */
.dl-recent { display: flex; flex-direction: column; gap: 10px; }
.dl-seg > button { min-height: 32px; padding: 0 14px; font-size: 11.5px; }
.dl-ms { display: flex; flex-direction: column; gap: 8px; }
.dl-m {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .16);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dl-m-p { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dl-m-p.r { flex-direction: row-reverse; text-align: right; }
.dl-m-nm { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-m-p.r .dl-m-nm { align-items: flex-end; }
.dl-m-n1 { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.dl-m-p.r .dl-m-n1 { flex-direction: row-reverse; }
.dl-m-n1 a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 700; text-decoration: none; }
.dl-m-n1 a:hover { color: var(--orange-2); }
.dl-m-p.win .dl-m-n1 a { color: var(--orange-2); }
.dl-crown { flex: none; display: grid; color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 210, 63, .55)); }
.dl-m-nm small { display: flex; align-items: center; gap: 6px; }
.dl-m-sc { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dl-m-sc > span { display: inline-flex; align-items: baseline; gap: 6px; font: 400 18px/1 var(--font-logo); color: var(--orange); word-spacing: -.35em; text-shadow: 0 0 14px rgba(255, 157, 28, .45); }
.dl-m-sc > span i { font-style: normal; color: var(--dim); text-shadow: none; }
.dl-m-sc small { font: 700 10px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* изменения рейтинга и опыта — маленькие клетки-цены */
.dl-d { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 7px; font: 400 10px/1 var(--font-logo); word-spacing: -.3em; letter-spacing: .02em; white-space: nowrap; }
.dl-d.up { color: #04250E; background: linear-gradient(180deg, #6BF08F, var(--good)); }
.dl-d.down { color: #fff; background: var(--red-face); }
.dl-d.zero { color: var(--muted); background: rgba(0, 0, 0, .28); }
.dl-d.xp { color: var(--orange-ink); background: var(--lit-face); }
.dl-fled { font: 800 10px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--bad); }

/* ================= тост-вызов (на любой странице) ================= */

.toast.duel-toast {
  position: relative;
  align-items: flex-start;
  gap: 12px;
  width: min(420px, 100%);
  padding: 12px 42px 12px 12px;
  border-color: rgba(255, 157, 28, .55);
  background:
    radial-gradient(120% 90% at 0 0, rgba(255, 157, 28, .2), transparent 60%),
    linear-gradient(180deg, #144E1E, #082C10);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 157, 28, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
  cursor: default;
}
.toast.duel-toast.hot {
  border-color: rgba(255, 93, 77, .7);
  background:
    radial-gradient(120% 90% at 0 0, rgba(224, 48, 30, .3), transparent 60%),
    linear-gradient(180deg, #144E1E, #082C10);
}
.dt-pic { position: relative; flex: none; padding-top: 2px; }
.dt-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red-face); color: #fff; box-shadow: 0 3px 0 var(--red-edge); }
.dt-vs { position: absolute; right: -8px; bottom: -4px; padding: 3px 4px 2px; border-radius: 6px; background: var(--red-face); color: #fff; font: 400 9px/1 var(--font-logo); box-shadow: 0 2px 0 var(--red-edge); transform: rotate(-8deg); }
.dt-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dt-eye { font: 800 10px/1.2 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--orange-2); }
.dt-text { font-size: 15px; font-weight: 600; line-height: 1.3; }
.dt-text b { color: var(--orange-2); font-weight: 800; }
.dt-sub { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.dt-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dt-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 9px; background: rgba(0, 0, 0, .25); color: var(--muted); cursor: pointer; }
.dt-x:hover { color: var(--text); background: rgba(0, 0, 0, .4); }

/* ================= поединок ================= */

.dm {
  --dm-w: 760px;
  position: relative;
  width: 100%;
  max-width: calc(var(--dm-w) + 40px);
  margin: 0 auto;
  padding: 14px 20px calc(48px + var(--safe-b));
}
.dm::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -40px;
  z-index: -1;
  width: min(1000px, 100vw);
  height: 560px;
  transform: translateX(-50%);
  background:
    radial-gradient(50% 60% at 50% 20%, rgba(255, 214, 140, .10), transparent 70%),
    radial-gradient(60% 70% at 50% 0, rgba(150, 240, 110, .10), transparent 75%);
  pointer-events: none;
}

.dm-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 4px 0 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dm-top-l { display: flex; gap: 10px; }
.dm-ib { width: 44px; height: 44px; }
.dm-ib.dm-flag { background: var(--red-face); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 var(--red-edge); }
.dm-brand { display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; }
.dm-brand-row { display: inline-flex; align-items: center; gap: 9px; }
.dm-brand .logo-mark { width: 34px; height: 34px; }
.dm-brand .logo-word { font-size: 23px; }
.dm-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  font: 800 10.5px/1.2 var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-label::before, .dm-label::after { content: ''; flex: none; width: 16px; height: 1px; background: rgba(255, 196, 107, .45); }
.dm-top-r { justify-self: end; display: flex; align-items: center; gap: 8px; }
.dm-eyes b { font-weight: 800; }

.dm-conn {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 14px;
  background: var(--red-face);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--red-edge), var(--shadow);
  transform: translateX(-50%);
  animation: toast-in .3s var(--ease-pop) both;
}
.dm-conn[hidden] { display: none; }
.dm-conn svg { animation: spin 1s linear infinite; }

/* табло на двоих */
.dm-board { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.dm-board[hidden] { display: none; }
.dm-plates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.dm-vs { font: 400 17px/1 var(--font-logo); color: var(--orange); text-shadow: 0 0 16px rgba(255, 157, 28, .55); }
.dm-pl {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'ava txt sc';
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: radial-gradient(120% 90px at 50% 0, rgba(190, 255, 170, .06), transparent), var(--felt), var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 26px rgba(0, 0, 0, .24);
  transition: border-color .2s, box-shadow .2s, opacity .2s;
}
.dm-pl.r { grid-template-areas: 'sc txt ava'; padding: 10px 10px 10px 12px; text-align: right; }
.dm-pl.r { grid-template-columns: auto minmax(0, 1fr) auto; }
.dm-pl-ava { grid-area: ava; position: relative; display: grid; }
.dm-pl-txt { grid-area: txt; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dm-pl.r .dm-pl-txt { align-items: flex-end; }
.dm-pl-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 16px/1.2 var(--font-ui); }
.dm-pl.me .dm-pl-nm { color: var(--orange-2); }
.dm-pl-sc { grid-area: sc; min-width: 2.5em; }
.dm-pl-sc.bump { animation: dm-bump .5s var(--ease-pop); }
.dm-pl.lead .dm-pl-sc { background: var(--lit-face); color: var(--orange-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--orange-edge), 0 0 20px rgba(255, 157, 28, .4); }
.dm-pl-ok {
  position: absolute;
  right: -5px;
  bottom: -5px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6BF08F, var(--good));
  color: #04250E;
  box-shadow: 0 0 0 3px var(--card), 0 0 14px rgba(61, 220, 106, .6);
  transform: scale(0);
  transition: transform .28s var(--ease-pop);
}
.dm-pl.answered { border-color: rgba(61, 220, 106, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(61, 220, 106, .2), 0 0 26px rgba(61, 220, 106, .14), 0 12px 26px rgba(0, 0, 0, .24); }
.dm-pl.answered .dm-pl-ok { transform: scale(1); }
.dm-pl.off { opacity: .62; }
.dm-pl.off .ava { filter: grayscale(.9); }
.dm-pl.empty { border-style: dashed; background: rgba(0, 0, 0, .14); box-shadow: none; }
.dm-pl.empty .dm-pl-nm { color: var(--muted); }
.dm-q {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 196, 107, .55);
  color: var(--orange);
  font: 400 24px/1 var(--font-logo);
  animation: dl-throb 1.4s ease-in-out infinite;
}
.dm-st { display: inline-flex; align-items: center; gap: 4px; font: 800 11px/1.2 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dm-st.ok { color: var(--good); }
.dm-st.bad, .dm-st.off { color: var(--bad); }
.dm-st.think i { font-style: normal; animation: dm-dots 1.2s infinite; }
.dm-st.think i:nth-child(2) { animation-delay: .2s; }
.dm-st.think i:nth-child(3) { animation-delay: .4s; }
.dm-fly { position: absolute; left: 50%; top: 4px; width: 0; height: 0; pointer-events: none; }
.dm-fly-n {
  position: absolute;
  left: 0;
  top: 0;
  font: 400 24px/1 var(--font-logo);
  color: var(--good);
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(61, 220, 106, .75), 0 2px 0 rgba(0, 0, 0, .45);
  transform: translate(-50%, 0);
  animation: dm-fly 1.5s var(--ease-out) forwards;
}

/* клетки раундов: номер и две лампочки — кто угадал */
.dm-rounds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dm-rounds[hidden] { display: none; }
.dm-rc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 46px;
  border-radius: 12px;
  background: var(--cell-face);
  color: var(--orange);
  font: 400 13px/1 var(--font-logo);
  box-shadow: var(--cell-bevel), 0 3px 0 var(--cell-edge);
}
.dm-rc.next { background: var(--cell-used); color: rgba(255, 157, 28, .3); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .35); }
.dm-rc.past { background: var(--cell-used); color: rgba(255, 157, 28, .5); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .3); }
.dm-rc.cur { background: var(--lit-face); color: var(--orange-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--orange-edge), 0 0 22px rgba(255, 157, 28, .45); }
.dm-rc-d { display: flex; gap: 5px; }
.dm-rc-d i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .3); }
.dm-rc-d i.ok { background: var(--good); box-shadow: 0 0 7px var(--good); }
.dm-rc-d i.bad { background: var(--bad); box-shadow: 0 0 6px rgba(255, 93, 77, .7); }
.dm-rc-d i.miss { background: #4F6E4C; }

/* тело экрана */
.dm-body { display: flex; flex-direction: column; gap: 14px; }
.dm-body.dm-in > * { animation: dm-rise .32s var(--ease-out) both; }
.dm-body.dm-in > *:nth-child(2) { animation-delay: .04s; }
.dm-body.dm-in > *:nth-child(3) { animation-delay: .08s; }
.dm-body.dm-in > *:nth-child(4) { animation-delay: .12s; }
.dm-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 0; }
.dm-loading .spin { width: 30px; height: 30px; }

/* ожидание */
.dm-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.dm-wait-txt { max-width: 50ch; margin: 0; }
.dm-code { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0; }
.dm-code .price { min-width: 1.75em; }
.dm-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; width: 100%; max-width: 640px; }
.dm-link .field { font-size: 14px; text-overflow: ellipsis; }
.dm-warn { display: flex; align-items: flex-start; gap: 8px; max-width: 560px; color: var(--orange-2); font-size: 13px; text-align: left; }
.dm-warn > svg { flex: none; margin-top: 1px; }
.dm-wait-st { margin: 2px 0; font-weight: 700; text-align: center; text-wrap: balance; }
.dm-wait-dot { display: inline-block; width: 10px; height: 10px; margin: 0 9px 1px 0; vertical-align: middle; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: dm-blink 1s ease-in-out infinite; }
.dm-wait-dot.go { background: var(--good); box-shadow: 0 0 10px var(--good); }
.dm-wait-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding-top: 6px; border-top: 1px solid var(--line); }

/* отсчёт */
.dm-count { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 20px 50px; text-align: center; }
.dm-count .eyebrow { color: var(--orange-2); font-size: 12px; }
.dm-count-n.price.xl { min-width: 1.9em; padding: .26em .5em .2em; border-radius: 28px; font-size: clamp(68px, 13vw, 112px); }
.dm-count-n.pop { animation: dm-pop .45s var(--ease-pop); }
.dm-count-sub { max-width: 36ch; color: var(--muted); font: 700 15px/1.35 var(--font-ui); }

/* таймер до дедлайна */
.dm-timer { display: flex; align-items: center; gap: 12px; }
.dm-timer-bar { position: relative; flex: 1; height: 14px; border-radius: 99px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .45); overflow: hidden; }
.dm-timer-bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-edge), var(--orange) 55%, var(--orange-2));
  box-shadow: 0 0 14px rgba(255, 157, 28, .6);
  transform-origin: left center;
}
.dm-timer.crit .dm-timer-bar i { background: linear-gradient(90deg, var(--red-deep), var(--red), #FF7158); box-shadow: 0 0 14px rgba(224, 48, 30, .6); }
.dm-timer.next .dm-timer-bar i { background: linear-gradient(90deg, #17803A, var(--good)); box-shadow: 0 0 12px rgba(61, 220, 106, .45); }
.dm-timer-n {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 40px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--cell-face);
  color: var(--orange);
  font: 400 20px/1 var(--font-logo);
  box-shadow: var(--cell-bevel), 0 3px 0 var(--cell-edge);
}
.dm-timer.crit .dm-timer-n { background: var(--red-face); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 var(--red-edge); animation: dm-pulse .5s ease-in-out infinite alternate; }
.dm-timer.next .dm-timer-n { color: var(--good); }

/* карточка вопроса — то же сукно, что в квизе */
.dm-card {
  --rc: var(--orange);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 16px 20px 24px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background:
    radial-gradient(90% 160px at 50% 0, rgba(255, 236, 190, .09), transparent 75%),
    radial-gradient(70% 120px at 50% 100%, rgba(0, 0, 0, .22), transparent 80%),
    var(--felt),
    linear-gradient(180deg, #0F5019 0%, #0B4114 60%, #093610 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 6px rgba(0, 0, 0, .08), inset 0 0 0 7px rgba(190, 255, 170, .05), 0 18px 40px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.dm-card::before {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--rc), transparent);
  box-shadow: 0 0 18px var(--rc);
  opacity: .8;
}
.dm-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 32px; }
.dm-card-r { margin-left: auto; font: 400 12px/1 var(--font-logo); color: var(--muted); word-spacing: -.3em; }
.dm-diff { display: inline-flex; align-items: center; margin-left: 4px; }
.dm-rub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  padding: 3px 12px 3px 4px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rc) 16%, rgba(0, 0, 0, .3));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent);
  font: 700 13px/1.1 var(--font-ui);
}
.dm-rub-ico { flex: none; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: color-mix(in srgb, var(--rc) 55%, #0A3A12); font-size: 15px; line-height: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.dm-rub-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-adult { display: inline-grid; place-items: center; min-width: 36px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--red-face); color: #fff; font: 400 11px/1 var(--font-logo); box-shadow: 0 2px 0 var(--red-edge); }
.dm-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 4px 0; text-align: center; }
.dm-prompt { margin: 0; font: 800 12px/1.3 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-2); }
.dm-text { max-width: 36ch; margin: 0; font: 700 clamp(19px, 2.4vw, 24px)/1.35 var(--font-ui); text-wrap: balance; }
.dm-text.long { max-width: 46ch; font-size: clamp(16.5px, 2vw, 19px); line-height: 1.45; }
.dm-emoji { font-size: clamp(44px, 7vw, 64px); line-height: 1.15; letter-spacing: .06em; }
.dm-img { margin: 0; max-width: 100%; }
.dm-img img { display: block; max-width: 100%; max-height: 300px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }

/* варианты: клетки табло, клавиши 1–4 */
.dm-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dm-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px 12px 12px;
  border: 0;
  border-radius: 18px;
  background: var(--cell-face);
  color: var(--text);
  font: 700 16.5px/1.3 var(--font-ui);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--cell-bevel), 0 4px 0 var(--cell-edge), 0 10px 20px rgba(0, 0, 0, .2);
  transition: transform .08s, box-shadow .08s, background .15s, opacity .2s, filter .2s;
}
.dm-opt:hover:not(:disabled) { background: linear-gradient(180deg, #179A31 0%, var(--cell-hi) 55%, #0F7022 100%); }
.dm-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: var(--cell-bevel), 0 1px 0 var(--cell-edge); }
.dm-opt:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dm-opt:disabled { cursor: default; }
.dm-opts.watch .dm-opt:disabled { opacity: 1; }
.dm-opt-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dm-key { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(0, 0, 0, .28); color: var(--orange); font: 400 13px/1 var(--font-logo); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.dm-who { display: flex; flex: none; }
.dm-who:empty { display: none; }
.dm-who .ava + .ava { margin-left: -8px; }
.dm-who .ava { box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); border-radius: 50%; animation: pop .3s var(--ease-pop) both; }
.dm-opt.is-pick { background: var(--lit-face); color: var(--orange-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--orange-edge), 0 0 24px rgba(255, 157, 28, .45); }
.dm-opt.is-pick .dm-key { color: var(--orange-ink); background: rgba(255, 255, 255, .3); }
.dm-opt.is-ok { background: linear-gradient(180deg, #6BF08F 0%, var(--good) 55%, #2CC257 100%); color: #04250E; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 0 #17803A, 0 0 30px rgba(61, 220, 106, .55); animation: dm-pop .35s var(--ease-pop); }
.dm-opt.is-ok .dm-key { background: rgba(255, 255, 255, .35); color: #04250E; }
.dm-opt.is-bad { background: var(--red-face); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 0 var(--red-edge), 0 0 26px rgba(224, 48, 30, .45); animation: dm-shake .4s ease-in-out; }
.dm-opt.is-bad .dm-key { background: rgba(0, 0, 0, .25); color: #FFD7CF; }
.dm-opt.is-dim { opacity: .45; filter: saturate(.6); }

.dm-note { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; text-wrap: balance; }
.dm-note > svg { display: inline-block; margin-right: 7px; vertical-align: -3px; color: var(--orange); }
.dm-note b { color: var(--text); }
.dm-note.ok { color: var(--good); }
.dm-note.ok > svg { color: var(--good); }
.dm-note.bad { color: #FF8A7D; }
.dm-note.bad > svg { color: var(--bad); }
.dm-hint-t { display: none; }
@media (hover: none) and (pointer: coarse) {
  .dm-hint-k { display: none; }
  .dm-hint-t { display: inline; }
}
.dm-note kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--cell-face); box-shadow: 0 2px 0 var(--cell-edge); color: var(--text); font: 800 12px/1 var(--font-ui); }

/* место под ставки монетами (волна C) */
.dm-bets {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px dashed rgba(255, 210, 63, .38);
  border-radius: 20px;
  background: repeating-linear-gradient(135deg, rgba(255, 210, 63, .045) 0 10px, transparent 10px 20px), rgba(0, 0, 0, .12);
}
.dm-bets-ico { font-size: 30px; line-height: 1; filter: saturate(.8); }
.dm-bets-t { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dm-bets-t b { font: 400 14px/1.2 var(--font-logo); text-transform: uppercase; word-spacing: -.3em; color: var(--gold); }
.dm-bets-t small { color: var(--muted); font-size: 13px; }

/* итоги */
.dm-res { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.dm-res-t { margin-top: 2px; }
.dm-res.win .dm-res-t { color: var(--orange-2); }
.dm-res.lose .dm-res-t { color: #FFD2C9; text-shadow: 0 0 24px rgba(224, 48, 30, .5), 0 3px 0 rgba(0, 0, 0, .35); }
.dm-res-line { margin: 0; max-width: 46ch; }
.dm-res-duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; width: 100%; max-width: 640px; margin: 18px 0 4px; }
.dm-res-p { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; }
.dm-res-ava { position: relative; display: grid; }
.dm-res-p.win .dm-res-ava::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .35), transparent 70%); z-index: -1; }
.dm-res-crown { position: absolute; top: -27px; left: 50%; z-index: 2; color: var(--gold); filter: drop-shadow(0 0 10px rgba(255, 210, 63, .7)); transform: translateX(-50%) rotate(-8deg); animation: pop .5s .2s var(--ease-pop) both; }
.dm-res-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 17px/1.2 var(--font-ui); }
.dm-res-p.me .dm-res-nm { color: var(--orange-2); }
.dm-res-chips { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dm-res-chips .dl-d { height: 22px; font-size: 10.5px; }
.dm-res-sc { display: inline-flex; align-items: baseline; gap: 8px; font: 400 clamp(30px, 5vw, 46px)/1 var(--font-logo); color: var(--orange); word-spacing: -.35em; text-shadow: 0 0 22px rgba(255, 157, 28, .5), 0 3px 0 rgba(0, 0, 0, .35); }
.dm-res-sc i { font-style: normal; color: var(--dim); text-shadow: none; }
.dm-res-ach { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dm-res-ach .row { justify-content: center; }
.dm-res-act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 6px; }
.dm-rm-note { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; margin: -2px 0 0; color: var(--orange-2); font-weight: 700; font-size: 14px; }
.dm-pulse { animation: dm-glow 1s ease-in-out infinite alternate; }
.dm-res .dl-guest { width: 100%; max-width: 640px; text-align: left; }
/* почему без наград: дуэль с гостем или дневной лимит */
.dm-res-why { display: flex; align-items: center; gap: 8px; max-width: 52ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; text-align: left; }
.dm-res-why svg { flex: none; color: var(--orange); }
.bet-empty.bet-off { display: flex; align-items: center; gap: 8px; }
.bet-empty.bet-off > svg { flex: none; color: var(--gold); }

.dm-hist { display: flex; flex-direction: column; gap: 6px; }
.dm-h-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 78px 78px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .16); }
.dm-h-row.head { padding-top: 0; padding-bottom: 2px; background: none; font: 800 10px/1.2 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dm-h-n { text-align: center; color: var(--orange); font: 400 13px/1 var(--font-logo); }
.dm-h-a { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.dm-h-p { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: 400 12px/1 var(--font-logo); word-spacing: -.3em; }
.dm-h-p.ok { color: var(--good); }
.dm-h-p.bad { color: var(--bad); }
.dm-h-p.miss { color: var(--dim); }

/* отмена, ошибки, вход по ссылке */
.dm-end { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 28px 36px; text-align: center; }
.dm-end .lead { margin: 0; }
.dm-end-act { justify-content: center; }
.dm-join .btn.buzzer { margin: 10px 0 14px; }

/* ================= анимации ================= */

@keyframes dl-ping { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes dl-throb { 50% { transform: scale(1.05); } }
@keyframes dl-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 157, 28, .7); } 100% { box-shadow: 0 0 0 18px rgba(255, 157, 28, 0); } }
@keyframes dm-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes dm-pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes dm-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes dm-fly { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -46px) scale(1); } }
@keyframes dm-dots { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes dm-blink { 50% { opacity: .35; } }
@keyframes dm-pulse { to { transform: scale(1.07); } }
@keyframes dm-glow { to { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 5px 0 var(--orange-edge), 0 0 44px rgba(255, 157, 28, .8); } }
@keyframes dm-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

@media (prefers-reduced-motion: reduce) {
  .dl-radar i, .dl-dot, .dl-back-ico, .dm-q, .dm-st.think i, .dm-wait-dot, .dm-timer.crit .dm-timer-n, .dm-pulse, .dm-conn svg { animation: none !important; }
  .dm-body.dm-in > *, .dl-search, .dl-inv-row, .dm-opt.is-ok, .dm-opt.is-bad, .dm-count-n.pop, .dm-pl-sc.bump { animation: none !important; }
  .dm-fly-n { animation-duration: .01s; }
}

/* ================= планшет и телефон ================= */

@media (max-width: 1100px) {
  .dl-acts { grid-template-columns: minmax(0, 1fr); }
  .dl-act { min-height: 74px; }
}

@media (max-width: 899px) {
  .dl-hero { gap: 18px; }
  .dl-hero-in { grid-template-columns: minmax(0, 1fr); }
  .dl-vs { order: -1; justify-content: center; padding: 0; }
  .dl-vs-p { width: 104px; }
  .dl-vs-ava { width: 96px; height: 96px; }
  .dl-vs-ava .ava { --s: 80px !important; }
  .dl-mystery { width: 80px; height: 80px; font-size: 34px; }
  .dl-mystery .emo { font-size: 42px; }
  .dl-vs-badge { width: 52px; height: 52px; margin: -24px -12px 0; font-size: 16px; }
  .dl-online { max-height: none; }
}

@media (max-width: 640px) {
  .dl-rules { gap: 8px; }
  .dl-rule { flex: 1 1 0; flex-direction: column; gap: 6px; padding: 10px 6px 8px; text-align: center; font-size: 12px; }
  .dl-rule .price.lg { font-size: 20px; }
  .dl-act { min-height: 68px; padding: 10px 12px 10px 10px; border-radius: 18px; gap: 12px; }
  .dl-act-ico { width: 44px; height: 44px; border-radius: 13px; }
  .dl-act-txt b { font-size: 13.5px; }
  .dl-act-txt small { font-size: 12.5px; }
  .dl-search { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 12px; }
  .dl-search > .btn { grid-column: 1 / -1; }
  .dl-radar { width: 52px; height: 52px; }
  .dl-guest { flex-wrap: wrap; }
  .dl-guest .btn { margin-left: auto; }
  /* на телефоне три колонки не влезают: игроки — в строку, счёт и подпись — строкой ниже */
  .dl-m { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; row-gap: 6px; padding: 8px; }
  .dl-m-p { grid-row: 1; gap: 7px; }
  .dl-m-p.r { grid-column: 2; }
  .dl-m-sc { grid-row: 2; grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 10px; }
  .dl-m-p .ava { --s: 32px !important; }
  .dl-m-n1 a { font-size: 14px; }
  .dl-m-sc > span { font-size: 15px; gap: 4px; }
  .dl-m-sc small { font-size: 9px; letter-spacing: .08em; }
  .dl-on .btn svg { display: none; }
  .toast.duel-toast { padding-right: 40px; }

  .dm { padding: 8px 16px calc(36px + var(--safe-b)); }
  .dm-top { gap: 8px; padding-bottom: 12px; margin-bottom: 12px; }
  .dm-ib { width: 40px; height: 40px; }
  .dm-ib svg { width: 18px; height: 18px; }
  .dm-brand .logo-mark { width: 26px; height: 26px; }
  .dm-brand .logo-word { font-size: 17px; }
  .dm-brand-row { gap: 6px; }
  .dm-label { max-width: 150px; gap: 5px; font-size: 9px; letter-spacing: .14em; }
  .dm-label::before, .dm-label::after { width: 8px; }
  .dm-role-t { display: none; }
  .dm-board { gap: 10px; margin-bottom: 12px; }
  .dm-plates { gap: 6px; }
  .dm-vs { font-size: 12px; }
  .dm-pl { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'ava sc' 'txt txt'; gap: 8px; padding: 10px; border-radius: 18px; }
  .dm-pl.r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'sc ava' 'txt txt'; padding: 10px; }
  .dm-pl .ava { --s: 44px !important; }
  .dm-pl-sc { justify-self: end; }
  .dm-pl.r .dm-pl-sc { justify-self: start; }
  .dm-pl-sc.price.lg { font-size: 19px; }
  .dm-pl-nm { font-size: 14px; }
  .dm-st { font-size: 10px; letter-spacing: .05em; }
  .dm-q { width: 44px; height: 44px; font-size: 18px; }
  .dm-rounds { gap: 4px; }
  .dm-rc { height: 38px; gap: 4px; border-radius: 10px; font-size: 11px; }
  .dm-rc-d i { width: 6px; height: 6px; }
  .dm-body { gap: 12px; }
  .dm-timer-n { min-width: 44px; height: 36px; font-size: 17px; }
  .dm-timer-bar { height: 12px; }
  .dm-card { min-height: 170px; padding: 14px 14px 20px; border-radius: 20px; }
  .dm-content { padding-top: 14px; }
  .dm-text { font-size: 18.5px; }
  .dm-text.long { font-size: 16px; }
  .dm-img img { max-height: 220px; }
  .dm-opts { gap: 8px; }
  .dm-opt { min-height: 66px; padding: 10px 10px 10px 9px; border-radius: 16px; gap: 9px; font-size: 15px; }
  .dm-key { width: 27px; height: 27px; font-size: 11px; }
  .dm-note { font-size: 13px; }
  .dm-wait { padding: 26px 18px; }
  .dm-wait-foot { justify-content: center; }
  .dm-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dm-link .field { grid-column: 1 / -1; }
  .dm-code { gap: 6px; }
  .dm-code .price.lg { font-size: 21px; }
  .dm-count { padding: 30px 12px 40px; }
  .dm-res { padding: 28px 16px 24px; }
  .dm-res-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'sc sc' 'a b'; gap: 40px 10px; margin-top: 8px; }
  .dm-res-duo > .dm-res-p:first-child { grid-area: a; }
  .dm-res-duo > .dm-res-p:last-child { grid-area: b; }
  .dm-res-duo > .dm-res-sc { grid-area: sc; justify-self: center; }
  .dm-res-p .ava { --s: 64px !important; }
  .dm-res-nm { font-size: 15px; }
  .dm-res-sc { font-size: 34px; gap: 6px; }
  .dm-res-act { width: 100%; }
  .dm-res-act .btn.lg { flex: 1 1 auto; padding: 0 18px; }
  .dm-res-act .btn.icon { flex: none; }
  .dm-hist { padding: 16px; }
  .dm-h-row { grid-template-columns: 22px minmax(0, 1fr) 58px 58px; gap: 6px; padding: 8px 6px; font-size: 14px; }
  .dm-end { padding: 32px 18px 28px; }
  .dm-bets { padding: 12px; gap: 10px; }
}

@media (max-width: 380px) {
  .dm-brand .logo-word { display: none; }
  .dl-act-txt small { display: none; }
}
