:root {

  color-scheme: dark;

  --bg:        #000000;
  --card:      #21201F;
  --row:       #2B2A28;
  --hero:      #FFEC42;
  --action:    #FFCC00;
  --action-2:  #FFDB4D;
  --success:   #00A046;
  --success-t: #3FBF74;
  --danger:    #FF3333;
  --ink:       #21201F;

  --t1: #FFFFFF;
  --t2: rgba(255,255,255,.62);
  --t3: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);

  --gap: 10px;

  --gap-head: 30px;

  --tb-back-size: 44px;
  --tb-back-bottom: 6px;

  --r-card: 22px;
  --r-row: 16px;
  --r-btn: 14px;
  --r-pill: 9999px;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --safe-top: 0px;
  --safe-bottom: 0px;

  --tb-side: 116px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html, body {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, [contenteditable], .selectable,

.login-code, .card-desc, a[href] {
  -webkit-user-select: text; user-select: text;
  -webkit-touch-callout: default;
}

html, body {
  height: 100%;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

  overflow: hidden;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--action); text-decoration: none; }

#root { position: relative; display: flex; flex-direction: column; height: var(--app-h, 100%); }

@media (min-width: 560px) {
  body {
    display: flex; align-items: center; justify-content: center;
    background: #0E0E0E;
  }
  #root {

    width: min(420px, calc((var(--app-h, 100vh) - 32px) / 2.1));

    height: min(var(--app-h, 100%) - 32px, 880px);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  }
}

#topbar {
  position: relative;
  display: flex; align-items: center; justify-content: center;

  padding-top: calc(3px + max(env(safe-area-inset-top, 0px), var(--safe-top)));
  padding-right: var(--tb-side); padding-bottom: 17px; padding-left: var(--tb-side);

  flex: none;
}

.tb-back {
  position: absolute; left: 6px; bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; background: none; color: var(--text); cursor: pointer;
  border-radius: 50%;
}
.tb-back:active { background: var(--line); }
.tb-back svg { width: 22px; height: 22px; }

.tb-title {
  font-size: 18px; font-weight: 600; letter-spacing: -.01em; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.logo-img { display: block; width: auto; object-fit: contain; }

.ava-img {
  display: block; width: calc(100% + 2px); height: calc(100% + 2px);
  margin: -1px; object-fit: cover; border-radius: 50%;
}

.empty-icon .logo-img { width: 62%; height: auto; position: relative; }

[data-ini] { color: #fff !important; }

.opp-ava { display: flex; align-items: center; justify-content: center;
  font: 600 18px/1 var(--sans); color: rgba(33,32,31,.55); overflow: hidden; }
.prof-ava { display: flex; align-items: center; justify-content: center;
  font: 600 26px/1 var(--sans); color: var(--t2); overflow: hidden; }

#screen { position: relative; flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 14px 16px 20px;

  overscroll-behavior: contain;

  transition: transform .2s ease-out; }
#screen::-webkit-scrollbar { display: none; }
#screen.flush { padding: 0; }

.stack { display: flex; flex-direction: column; gap: var(--gap); }

.stack--even { gap: 10px; }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 16px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--t3);

  margin-top: calc(var(--gap-head) - var(--gap));
}

.sec-head .link { color: var(--action); text-transform: uppercase; letter-spacing: .06em;
  font-size: 16px; font-weight: 500; }

.card {
  background: var(--card); border-radius: var(--r-card); padding: 16px;
  display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left;
  border: 1px solid transparent; transition: border-color .15s, transform .1s;
}
.card:active { transform: scale(.99); }

.card--choice {

  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-color: rgba(255, 255, 255, .14);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
  padding: 18px;
}
.card--choice:active { background: rgba(255, 255, 255, .11); }

.card--choice:active { transform: scale(.985); }

.card--choice .card-title { font-size: 19px; }
.card--choice .card-meta { color: var(--t2); }

.linkish {
  align-self: flex-start; padding: 0;
  font-size: 17px; font-weight: 500; color: var(--action);
  text-decoration: underline dashed; text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 204, 0, .55);
}
.linkish:active { opacity: .6; }

.link-edit {
  align-self: center; padding: 4px 0;
  font-size: 17px; font-weight: 500; color: var(--danger);
  text-decoration: none;
}
.link-edit:active { opacity: .6; }

.card--photo { padding-top: 0; }
.card-photo {
  display: block;

  width: calc(100% + 34px); margin: -1px -17px 0;
  height: 132px; object-fit: cover;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--row);
}
.card--live { border-color: rgba(255,51,51,.4); }
.card--accent { background: var(--hero); color: var(--ink); }

.card-top { display: flex; align-items: flex-start; gap: 10px; }

.card-top--mid { align-items: center; }
.card-title { flex: 1; font-size: 20px; font-weight: 600; line-height: 1.25;
  letter-spacing: -.01em; min-width: 0; }

.card-meta { display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 12px; font-size: 17px; color: var(--t2); }
.card--accent .card-meta { color: rgba(33,32,31,.62); }
.card-meta b { color: var(--t1); font-weight: 500; }
.card--accent .card-meta b { color: var(--ink); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); font-size: 16px; font-weight: 500; flex: none;
}

.card-side { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex: none; }
.card-side > .badge { align-self: flex-start; }

.card--qr { display: block; }
.card--qr > * { margin-bottom: 12px; }
.card--qr > *:last-child { margin-bottom: 0; }

.card--qr > .card-side {
  float: right; margin: 0 0 0 12px;
  width: 42%; min-width: 118px; max-width: 190px;
}

.card--qr > .card-meta { display: block; }

.card--qr > .card-meta--chips {
  display: flex; flex-wrap: wrap; gap: 6px; overflow: hidden;
}
.card--qr > .card-meta > * { margin-right: 12px; }
.card--qr > .card-meta--dots > span + span { margin-left: 0; }

.card-qr-mid {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px; padding: 12px;
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.card-qr-mid .card-qr {
  width: 124px; min-width: 0; flex: none;
  padding: 8px; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.card-qr-note { flex: 1; min-width: 0; }
.card-qr-head { font: 600 17px/1.25 var(--sans); color: var(--t1); }
.card-qr-text { margin-top: 5px; font: 400 15px/1.35 var(--sans); color: var(--t2); }

@media (max-width: 360px) {
  .card-qr-mid { flex-direction: column; text-align: center; }
  .card-qr-mid .card-qr { width: 150px; }
}

.card-qr {

  width: 0; min-width: 100%; aspect-ratio: 1;
  background: #fff; border-radius: 8px; padding: 4px; display: block;
}
.badge--live   { background: var(--danger); color: #fff; }

.badge--open   { background: rgba(0,160,70,.18); color: var(--success-t); }

.badge--mine   { background: var(--row); color: var(--success-t); }

.badge--role   { background: var(--row); color: var(--t2); gap: 5px;
  height: 30px; padding: 0 12px; font-size: 15px; }
.badge--role .org-star { width: 15px; height: 15px; }

.badge-mark { color: var(--action); font-weight: 600; }

.plr .plr-name { overflow-wrap: normal; word-break: normal; }

.badge--challenge { background: var(--action); color: var(--ink); font-weight: 600; }
.badge--closed { background: var(--row); color: var(--t2); }
.badge--done   { background: rgba(0,160,70,.18); color: var(--success-t); }
.badge--draft  { background: var(--row); color: var(--t3); border: 1px dashed var(--line-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .5 } }

.tc { display: inline-flex; align-items: center; height: 28px; padding: 0 9px;
  border-radius: 8px; background: var(--row); color: var(--t1);

  font: 500 16px/1 var(--mono); letter-spacing: -.01em; flex: none;
  white-space: nowrap; }
.card--accent .tc { background: rgba(33,32,31,.1); color: var(--ink); }

.kind { display: inline-flex; align-items: center; height: 28px; padding: 0 8px;
  border-radius: 8px; background: var(--row); color: var(--t2);
  font: 500 15px/1 var(--sans); flex: none; }

.card-meta--dots span + span::before {
  content: '·'; color: var(--t3); margin-right: 12px;
}

.card-desc { display: block; line-height: 1.45; white-space: pre-line; }
.card-meta--dots { gap: 6px 8px; }

.photo-view {
  position: fixed; inset: 0; z-index: 250;

  display: flex; align-items: flex-start; justify-content: center; padding: 20px;

  background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  transition: background .32s ease, backdrop-filter .32s ease,
              -webkit-backdrop-filter .32s ease;
  cursor: zoom-out;
}
.photo-view.is-open {
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.photo-view-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 18px; display: block;

  transition: transform .34s cubic-bezier(.2, .8, .2, 1),
              border-radius .34s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.prof-ava:has(img) { cursor: zoom-in; }

@keyframes qr-in-scrim { from { opacity: 0 } to { opacity: 1 } }
@keyframes qr-in-card {
  from { opacity: 0; transform: scale(.94) }
  to   { opacity: 1; transform: none }
}
.qr-wrap { animation: qr-in-scrim 140ms ease-out both; }
.qr-card { animation: qr-in-card 260ms cubic-bezier(.2, .8, .2, 1) both; }

.qr-wrap {
  position: fixed; inset: 0; z-index: 200; display: flex;
  align-items: center; justify-content: center; padding: 24px;

  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.qr-card {
  background: rgba(28, 28, 30, .62);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
  border-radius: 22px; padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 340px; width: 100%;
}

.qr-card .btn--ghost {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .18);
}
.qr-title { font: 600 19px/1.25 var(--sans); text-align: center; }

.qr-img { width: 100%; max-width: 260px; border-radius: 12px; background: #fff;
  padding: 10px; }
.qr-note { font-size: 16px; line-height: 1.4; color: var(--t2); text-align: center; }

.qr-wrap--full { padding: 0; }
.qr-card--full {
  max-width: none; width: 100%; height: 100%; border-radius: 0;
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom));
  justify-content: flex-start; gap: 16px;
}
.qr-head { width: 100%; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.qr-card--full .qr-title { font-size: 20px; }

.qr-frame {
  flex: 1; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
}

.qr-frame--wait { aspect-ratio: 1; width: 100%; max-width: 260px; flex: none; }
.qr-card--code .qr-frame--wait { max-width: 380px; }

@keyframes qr-img-in { from { opacity: 0 } to { opacity: 1 } }
.qr-img { animation: qr-img-in 180ms ease-out both; }
.qr-card--full .qr-img {

  cursor: pointer;

  width: 100%; height: auto; aspect-ratio: 1; max-height: 100%;

  max-width: none;
  border-radius: 16px; padding: 12px;
}

.qr-card--full .qr-foot {
  margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 10px;
}
.qr-card--full .qr-foot .rowlink { width: 100%; }

.btn--tables {
  flex-direction: column; gap: 5px; padding: 18px 16px; min-height: 78px;
  border-radius: var(--r-row); line-height: 1.3;
  background: var(--card); border: 1px solid var(--line-2);
  color: var(--t1); font-size: 21px;
}
.btn--tables .row-hint {
  margin-top: 0; font-weight: 400; font-size: 16px; color: var(--success-t);
}
.btn--tables-warn .row-hint { color: var(--action); }

.gap-before { margin-top: calc(var(--gap-head) - var(--gap)); }

.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pick {
  min-width: 56px; height: 52px; padding: 0 14px; border-radius: var(--r-btn);
  background: var(--row); color: var(--t1); font: 600 20px/1 var(--sans);
  border: 1px solid var(--line);
}
.pick--on { background: var(--action); color: var(--ink); border-color: transparent; }
.pick:active { transform: scale(.97); }

.card-meta--note span { color: var(--t3); }

.act {
  display: block; width: 100%;
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
}
.act-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px; padding: 16px;
}

.act-glow, .act-grid { position: absolute; pointer-events: none; }
.act-glow { inset: 0;
  background: radial-gradient(at 88% 30%, rgba(255, 204, 0, .18), transparent 74%); }

.act-grid {
  left: 33%; right: 0; top: 0; bottom: 0; opacity: .07;
  background-image: repeating-conic-gradient(#fff 0% 25%, transparent 0% 50%);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 62%);
  mask-image: linear-gradient(to right, transparent 0, #000 62%);
}
.act-timer {
  position: relative; flex: none; width: 58px; height: 58px; border-radius: 18px;
  background: #0B0B0B; border: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}

.act-timer b { font: 700 19px/1 var(--sans); font-variant-numeric: tabular-nums;
  letter-spacing: .02em; color: var(--t1); }
.act-timer i { font: 500 9px/1 var(--sans); font-style: normal;
  letter-spacing: .08em; color: var(--t2); }
.act-mid { position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px; }
.act-title { font: 600 17px/1.2 var(--sans); color: var(--t1); }
.act-sub { font: 400 13px/1.4 var(--sans); color: var(--t2); text-wrap: pretty; }
.act-go { position: relative; font: 400 20px/1 var(--sans); color: var(--t3); }

.btn[disabled] { opacity: .38; }
.btn-soon { font: 400 13px/1 var(--sans); opacity: .8; margin-left: 8px; }

.row-hint { display: block; font-size: 15px; line-height: 1.35; color: var(--t3);
  margin-top: 3px; }
.sw {
  flex: none; width: 52px; height: 31px; border-radius: 9999px;
  background: var(--row); position: relative; transition: background .18s;
}
.sw i {
  position: absolute; top: 3px; left: 3px; width: 25px; height: 25px;
  border-radius: 50%; background: #fff; transition: transform .18s;
}
.sw--on { background: var(--success); }
.sw--on i { transform: translateX(21px); }

.btn-write {
  flex: none; background: var(--action); color: var(--ink);
  border-radius: var(--r-btn); padding: 11px 18px; font: 600 17px/1 var(--sans);
}
.btn-write:active { opacity: .85; }

.btn-write--wide { display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px; font-size: 19px; border-radius: var(--r-btn); }

.plr[data-go] { text-align: left; cursor: pointer; }
.plr[data-go]:active { transform: scale(.99); }

.histg {

  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-row); padding: 10px 12px;
  width: 100%; text-align: left;
}

.hg-tc {
  flex: none; width: 50px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 3px;
}

.hg-tc-min { font: 600 15px/1 var(--sans); white-space: nowrap; color: var(--t1); }

.hg-date { font: 500 12px/1.2 var(--sans); white-space: nowrap; color: #C9A64B;

  max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.hg-sides { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hg-side { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hg-ava {
  flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--sans); color: var(--t2); background: var(--row);
}

.hg-name {
  flex: 0 1 auto; min-width: 0; font: 600 18px/1.2 var(--sans);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.hg-rate {
  flex: none; font: 400 13px/1 var(--sans); color: var(--t3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hg-delta { font-weight: 600; }
.hg-delta.up { color: var(--success-t); }
.hg-delta.down { color: #FF6B6B; }

.hg-side .pawn { margin-right: 0; }
.hg-side .pawn--w { color: #EDEDED; }
.hg-side .pawn--b { color: #8A8783; }

.hg-side .pawn--w svg { transform: scale(.88); transform-origin: center; }

.hg-name--black { color: var(--t2); }

.hg-score {
  margin-left: auto; flex: none; width: 16px; text-align: center;
  font: 700 17px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.hg-score--win { color: var(--success-t); }
.hg-score--loss { color: #FF6B6B; }
.hg-score--draw { color: var(--t3); }

.gs-card { display: flex; flex-direction: column; gap: 10px; }
.gs-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gs-total { font-size: 26px; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }

.gs-rate { font-size: 15px; color: var(--t2); white-space: nowrap; }

.gs-bar {
  display: flex; height: 10px; border-radius: 5px; overflow: hidden;
  background: var(--row);
}
.gs-part { display: block; height: 100%; }
.gs-part--w { background: var(--success-t); }
.gs-part--d { background: var(--t3); }
.gs-part--l { background: #FF6B6B; }

.gs-legend {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: 14px; color: var(--t2);
}
.gs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gs-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gs-dot--w { background: var(--success-t); }
.gs-dot--d { background: var(--t3); }
.gs-dot--l { background: #FF6B6B; }

.gs-note { display: block; font-size: 13px; color: var(--t3); }
.gs-up { color: var(--success-t); }
.gs-down { color: #FF6B6B; }

.plr {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-row); padding: 12px 14px;
}
.plr-ava {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--row); display: flex; align-items: center; justify-content: center;
  font: 600 17px/1 var(--sans); color: var(--t2);
}

.plr-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  text-align: left; padding: 0;
}
.plr-open:active { opacity: .7; }

.plr-mid { flex: 1; min-width: 0; }
.plr-name { font: 600 19px/1.25 var(--sans); overflow-wrap: anywhere; }
.plr-sub { font-size: 17px; color: var(--t2); margin-top: 2px; }

.plr--org { flex-wrap: wrap; row-gap: 0; }
.org-about {
  flex-basis: 100%; text-align: left;
  margin-top: 8px; font: 400 15px/1.35 var(--sans); color: var(--t2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.plr-pick {
  flex: none; background: var(--action); color: var(--ink);
  border-radius: var(--r-btn); padding: 11px 20px; font: 600 18px/1 var(--sans);
}
.plr-pick:active { transform: scale(.98); }

.plr-pick--off { background: var(--row); color: var(--t2);
  border: 1px solid var(--line); font-size: 16px; padding: 10px 16px; }

.table-wait {
  text-align: center; padding: 14px 12px; border-radius: var(--r-row);
  background: rgba(255, 204, 0, .12); border: 1px solid rgba(255, 204, 0, .4);
  color: var(--action); font: 600 22px/1.2 var(--sans);
  letter-spacing: .02em; text-transform: uppercase;
}

.duel-table { color: var(--t1); font-weight: 700; }

.pawn { display: inline-block; width: 13px; height: 13px; margin-right: 7px;
  vertical-align: -1px; }
.pawn svg { width: 100%; height: 100%; display: block; }

.pair-names .pawn--w { color: #fff; }
.pair-names .pawn--b { color: rgba(255, 255, 255, .38); }

.plr--tap, .hist--tap { text-align: left; width: 100%; }

.locs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px; }
.locs::-webkit-scrollbar { display: none; }

.loc {
  flex: none; padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); color: var(--t2);
  font: 500 15px/1.2 var(--sans); white-space: nowrap;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

.loc--on {
  background: rgba(0, 160, 70, .16);
  border-color: rgba(63, 191, 116, .45);
  color: var(--success-t);
}
.loc:active { opacity: .85; }

.pl-rating { flex: none; font: 600 18px/1 var(--sans);
  font-variant-numeric: tabular-nums; color: var(--t1); }
.hist--tap:active { opacity: .7; }
.plr--tap:active { opacity: .7; }

.guest-mark { color: var(--t3); font-weight: 400; font-size: 15px; margin-left: 6px; }

.duel {
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.duel-top { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; }

.duel-lbl { font: 500 14px/1.2 var(--sans); letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.5); }
.duel-table { white-space: nowrap; }

.duel-top--tour {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 6px;
}

.duel-top--tour .duel-lbl {
  justify-self: start;
  display: inline-flex; align-items: center; height: 30px; padding: 0 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .72);
  font: 500 16px/1 var(--sans);
  letter-spacing: 0; text-transform: none;

  white-space: nowrap;
}
.duel-top--tour .duel-live { justify-self: end; }
.duel-table-big {
  justify-self: center; white-space: nowrap;

  font: 700 clamp(16px, 4.8vw, 21px)/1 var(--sans);
  letter-spacing: -.01em; color: #fff; text-align: center;
}
.duel-live {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); background: rgba(255,51,51,.16); color: #FF6B6B;
  font: 500 16px/1 var(--sans);
}

.duel-live--done { background: rgba(63,191,116,.16); color: var(--success-t); }

.duel-out {
  font: 600 15px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
}
.duel-out--win  { color: var(--success-t); }
.duel-out--loss { color: #FF6B6B; }
.duel-out--draw { color: rgba(255,255,255,.55); }

.duel-dot { width: 5px; height: 5px; border-radius: 50%; background: #FF3333;
  animation: duel-pulse 2s ease-in-out infinite; }
@keyframes duel-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }

.duel-row { display: flex; align-items: flex-start; gap: 8px; }
.duel-side { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 0; }

.duel-ava {
  width: 64px; height: 64px; border-radius: 50%; background: var(--row); flex: none;
  display: flex; align-items: center; justify-content: center;
  font: 600 32px/1 var(--sans);
  overflow: hidden;
}

.duel-ava--mine { box-shadow: 0 0 0 2px var(--action); }
.duel-name { text-align: center; min-width: 0; }
.duel-nm { font: 600 19px/1.25 var(--sans); overflow-wrap: anywhere; }
.duel-role { font: 400 17px/1.3 var(--sans); color: rgba(255,255,255,.45); margin-top: 2px; }
.duel-vs { display: flex; flex-direction: column; align-items: center; padding-top: 20px;
  font: 600 17px/1 var(--sans); color: rgba(255,255,255,.32); letter-spacing: .04em; }

.duel-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: var(--r-pill); font: 600 17px/1 var(--sans); flex: none;
}
.duel-chip svg { width: 15px; height: 15px; flex: none; }

.duel-chip--w, .duel-chip--b {
  background: var(--row); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12);
}

.duel-chip--w svg { color: #EDEDED; }
.duel-chip--b svg { color: #000; }

.duel-chip--w svg { transform: scale(.88); transform-origin: center; }

.conf-ring {
  --p: 0%;

  margin: 34px 0 18px;
  position: relative; width: 172px; height: 172px; align-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--action) var(--p), rgba(255,255,255,.1) 0);
  transition: background .3s linear;
}
.conf-ring--done { background: var(--success); }
.conf-ring-in {
  position: absolute; inset: 10px; border-radius: 50%; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.conf-num { font: 600 40px/1 var(--sans); font-variant-numeric: tabular-nums; }
.conf-sub { font-size: 14px; color: var(--t3); }
.conf-head { font: 600 21px/1.3 var(--sans); text-align: center; }
.conf-note { font-size: 17px; line-height: 1.5; color: var(--t2); text-align: center;
  max-width: 320px; align-self: center; }

.hero {
  background: var(--hero); color: var(--ink); border-radius: var(--r-card);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}

.hero--calm { background: #D9D7D2; }
.hero--calm .hero-lbl { color: rgba(33,32,31,.6); }

.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-lbl { font-size: 16px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(33,32,31,.55); }
.hero-table { font-size: 72px; font-weight: 600; line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; margin-top: 6px; }
.hero-color { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; }

.chip { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none; }
.chip svg { width: 60%; height: 60%; display: block; }
.chip--w { background: #fff; color: #21201F; }
.chip--b { background: #0D0D0D; color: #fff; }
.hero-color b { font-size: 18px; font-weight: 600; }

.opp {
  display: flex; align-items: center; gap: 12px;
  background: rgba(33,32,31,.08); border-radius: var(--r-row); padding: 11px 13px;
}
.opp-ava { width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: rgba(33,32,31,.12); display: flex; align-items: center;
  justify-content: center; font-size: 21px; overflow: hidden; }
.opp-name { font-size: 18px; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opp-sub { font-size: 16px; color: rgba(33,32,31,.6); }

.seg--rounds {
  max-width: 100%; overflow-x: auto; scrollbar-width: none;

  align-self: stretch;
}
.seg--rounds::-webkit-scrollbar { display: none; }

.seg-btn--future { color: var(--t3); opacity: .45; }
.seg-btn:disabled { cursor: default; }

.seg-btn--on:disabled { color: #fff; }

.plr--left { opacity: .5; }

.ava-edit { display: flex; align-items: center; gap: 14px; }
.ava-edit-круг {
  width: 72px; height: 72px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--row); display: flex; align-items: center; justify-content: center;
  font: 600 24px/1 var(--sans); color: var(--t2);
}

.ava-edit-btns { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.ava-edit-btns > .btn:not(.btn--icon) { flex: 1; min-width: 0; }

.crop {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .82);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.crop-box {
  width: 100%; max-width: 360px; background: var(--card); border-radius: 20px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.crop-head { font: 600 19px/1.2 var(--sans); text-align: center; }
.crop-hint { font: 400 15px/1.3 var(--sans); color: var(--t2); text-align: center; }

.crop-view {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden;
  border-radius: 14px; background: #000; touch-action: none; cursor: grab;
}

.crop-view img {
  position: absolute; left: 50%; top: 50%; max-width: none;
  user-select: none; -webkit-user-drag: none;
}

.crop-mask {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35) inset;
  border-radius: 50%;
}
.crop-btns { display: flex; gap: 10px; }
.crop-btns .btn { flex: 1; }
#crop-zoom { width: 100%; accent-color: var(--action); }

.pair {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: var(--r-row); border: 1px solid transparent;
}
.pair.mine { background: rgba(255,204,0,.1); border-color: rgba(255,204,0,.35); }

.pair--tap { background: var(--card); cursor: pointer; }
.pair--tap:active { background: rgba(255,255,255,.08); }

.pair-no {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--row); border: 1px solid var(--line);
  font-size: 16px; font-weight: 600; color: var(--t2);
  font-variant-numeric: tabular-nums;
}

.pair.mine .pair-no { background: var(--action); border-color: var(--action);

  color: var(--ink); }

.pair-no--none { background: none; border-style: dashed; color: var(--t3); }

.mr-row {
  display: grid; grid-template-columns: 30px 1fr 42px 92px;
  gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: var(--r-row);
}
.mr-name { font-size: 18px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.mr-games, .mr-score { font-size: 15px; color: var(--t2); text-align: right;
  font-variant-numeric: tabular-nums; }
.mr-row--head { padding-top: 0; padding-bottom: 4px; }
.mr-row--head span {
  font: 500 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--t3); text-align: right;
}

.mr-row--head span:nth-child(2) { text-align: left; }

.wait-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 6px;
}
.wait-head { font: 600 20px/1.2 var(--sans); letter-spacing: -.01em; }
.wait-text { font: 400 16px/1.35 var(--sans); color: var(--t2); }

.wait-left { font: 500 15px/1 var(--sans); color: var(--t1); }

#c-close { margin-top: 14px; }

.pair--head { padding-top: 0; padding-bottom: 4px; }
.pair--head span {
  font: 500 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--t3); background: none; border: 0; height: auto;
}

.pair--head .pair-names { padding-left: 20px; }

.pair-ava {
  width: 34px; height: 34px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--row); display: flex; align-items: center; justify-content: center;
}

.pair-ava { font: 600 15px/1 var(--sans); color: var(--t2); }

.pair-names { flex: 1; font-size: 18px; line-height: 1.4; min-width: 0; }
.pair-names span { color: var(--t2); }
.pair-res { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums;
  color: var(--t3); flex: none; }
.pair-res.set { color: var(--t1); }

.tbl { display: flex; flex-direction: column; }
.tbl-head, .tbl-row {
  display: grid; grid-template-columns: 32px 1fr 52px 52px; gap: 8px;
  align-items: center; padding: 10px 12px;
}
.tbl-head { font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--t3); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.tbl-row { border-radius: var(--r-row); border: 1px solid transparent; }
.tbl-row.me { background: rgba(255,204,0,.1); border-color: rgba(255,204,0,.35); }
.tbl-rank { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--t2); }
.tbl-row.me .tbl-rank { color: var(--action); }
.tbl-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 18px; }
.tbl-pts { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tbl-bh { text-align: right; font-size: 17px; color: var(--t3);
  font-variant-numeric: tabular-nums; }

.res-opts { display: flex; flex-direction: column; gap: var(--gap); }

.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.res-grid .res-btn { font-size: 17px; padding: 13px 12px; gap: 8px;
  justify-content: center; text-align: center; }
.res-grid .res-btn .k { width: auto; font-size: 15px; }

.res-grid--three { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.res-grid--three .res-btn {
  flex-direction: column; justify-content: center; text-align: center;
  gap: 4px; padding: 12px 6px; min-height: 0;
  font-size: clamp(14px, 4.6vw, 18px); line-height: 1.15; hyphens: auto;
}
.res-grid--three .res-btn .k { width: auto; font-size: clamp(12px, 3.8vw, 15px); }
.res-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--card); border-radius: var(--r-row); padding: 15px 16px;
  border: 1px solid var(--line); font-size: 19px; font-weight: 500; text-align: left;
}
.res-btn:active { transform: scale(.99); }
.res-btn .k { font: 600 18px/1 var(--mono); color: var(--t3); flex: none; width: 34px; }

.res-btn--win,
.res-btn--draw,
.res-btn--loss { border-color: var(--line-2); }
.res-btn--nos  { border-color: rgba(255,51,51,.3); color: var(--t2); }

.res-btn--win.tapped {
  background: rgba(63, 191, 116, .22); border-color: var(--success-t);
}
.res-btn--draw.tapped {
  background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45);
}
.res-btn--loss.tapped,
.res-btn--nos.tapped {
  background: rgba(255, 51, 51, .20); border-color: #FF6B6B;
}

.res-btn.tapped { filter: none; }

.wait {
  display: flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid rgba(255,204,0,.35); border-radius: var(--r-row); padding: 12px 14px;
}
.wait-ring { position: relative; width: 34px; height: 34px; flex: none; }
.wait-ring i { position: absolute; inset: 0; border-radius: 50%; }
.wait-ring i:last-child { inset: 4px; background: var(--card); }

.wait--tap { cursor: pointer; }
.wait--tap:active { opacity: .75; }
.wait-txt { flex: 1; font-size: 17px; line-height: 1.35; color: var(--t2); }
.wait-txt b { color: var(--t1); font-weight: 600; font-variant-numeric: tabular-nums; }

.prof-head { display: flex; align-items: center; gap: 14px; }
.prof-ava { width: 64px; height: 64px; border-radius: 50%; background: var(--row);
  display: flex; align-items: center; justify-content: center; font-size: 32px; flex: none;
  overflow: hidden; }
.prof-name { font-size: 23px; font-weight: 600; letter-spacing: -.01em; }
.prof-sub { font-size: 17px; color: var(--t2); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.stat { background: var(--card); border-radius: var(--r-row); padding: 14px; }
.stat b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }
.stat span { font-size: 16px; color: var(--t2); }

.stat--tap { text-align: left; width: 100%; }
.stat--tap:active { opacity: .75; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 16px; color: var(--t2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input, .field textarea, .field select {
  width: 100%; max-width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; color: var(--t1);
  font-family: inherit; font-size: 19px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--line-2); }
.field textarea { resize: vertical; min-height: 80px; }

.field select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff88' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px; }
.field select option { background: #21201F; color: #fff; }

.field input[type="datetime-local"], .field input[type="date"] {
  font-size: 18px;
  -webkit-appearance: none; appearance: none;
  min-height: 52px;
}
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); opacity: .45;
}
.field input[type="datetime-local"]::-webkit-date-and-time-value,
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }

#dm-badge {

  position: absolute; right: 10px; z-index: 3; margin: 0;
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  background: rgba(20, 20, 20, .78); border: 1px solid rgba(255, 204, 0, .45);
  color: var(--action); font: 600 13px/1 var(--mono);
  letter-spacing: .02em; opacity: .85;
}
#dm-badge:active { opacity: 1; }

#dm-badge .dm-scr { font: 500 12px/1 var(--sans); color: var(--t2); }

.rowlink {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--card); border-radius: var(--r-row); padding: 14px 16px;
  font-size: 19px; text-align: left;
}

.rowlink--static { color: var(--t2); }
.rowlink .chev { color: var(--t3); font-size: 23px; }
.rowlink span.val { color: var(--t2); font-size: 18px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 32px 12px; }

.empty-icon { width: 96px; height: 96px; border-radius: 50%;
  position: relative; background: #100F0E;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  color: var(--t3); box-shadow: 0 0 22px 12px rgba(0, 0, 0, .85); }

.empty-icon::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 260%; height: 260%; transform: translate(-50%, -50%);
  border-radius: 999px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side,
    rgba(255, 204, 0, .09) 0%, rgba(255, 204, 0, .035) 45%, rgba(255, 204, 0, 0) 100%);
}
.empty h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }

.empty p { font-size: 18px; color: var(--t2); max-width: 340px;
  overflow-wrap: break-word; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; border-radius: var(--r-btn); font-size: 19px; font-weight: 600;
  width: 100%;
}
.btn:active { transform: scale(.99); }
.btn--primary { background: var(--action); color: var(--ink); }
.btn--ghost { background: var(--card); color: var(--t1); border: 1px solid var(--line); }

.btn--accent { color: var(--action); }
.btn--danger { background: transparent; color: var(--danger);
  border: 1px solid rgba(255,51,51,.3); }

.btn--icon {
  flex: none; width: 52px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn--icon svg { width: 22px; height: 22px; }

#mainbtn-wrap {
  position: fixed; left: 0; right: 0; z-index: 40;
  bottom: var(--mainbtn-bottom, 0px);

  padding: 8px 10px 10px;
  pointer-events: none;
}
#mainbtn-wrap > * { pointer-events: auto; }

#root.has-mainbtn #screen:not(.flush) {
  padding-bottom: calc(var(--tabs-h) + 90px);
}
#mainbtn { display: flex; align-items: center; justify-content: center;
  width: 100%; height: 54px; border-radius: var(--r-btn);
  background: var(--action); color: var(--ink); font-size: 19px; font-weight: 600; }
#mainbtn:disabled { opacity: .5; }

#mainbtn.mainbtn--quiet { background: var(--card); color: var(--t1);
  border: 1px solid var(--line-2); }

#tabs {
  display: flex; flex: none; border-top: 1px solid var(--line);

  padding: 8px
           4px
           max(12px, calc(6px + max(env(safe-area-inset-bottom, 0px), var(--safe-bottom)) * .25));
  min-height: 64px;
  background: var(--bg);
}

.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 2px 0 0; color: var(--t3); }
.tab svg { width: 19px; height: 19px; }

.tab .tab-label { font: 500 12px/1.1 var(--sans); white-space: nowrap; }
.tab.on { color: var(--action); }

.tab[data-tab="games"] .tab-ic svg { width: 20px; height: 20px; }

.tab-ic { position: relative; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; }
.tab-ic svg { width: 26px; height: 26px; }

.tab-ic-rank {
  display: block; width: 24px; height: 24px; background: currentColor;
  -webkit-mask: url(icons/rank.svg?b=93fe0a8e71) center / contain no-repeat;
  mask: url(icons/rank.svg?b=93fe0a8e71) center / contain no-repeat;
}

.tab-ava {
  width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--row); color: #fff;
  font: 600 12px/1 var(--sans); text-transform: uppercase;
}
.tab-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tab.on .tab-ava { box-shadow: 0 0 0 1px var(--action); }

.tab-badge {
  position: absolute; top: -4px; right: -7px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 8px; background: #FF3B30; color: #fff;
  font: 600 11px/16px var(--sans); text-align: center; font-style: normal;

}

#clockhost { flex: 1; min-height: 0; background: var(--bg); }

#clockhost[hidden] {
  display: flex !important;
  visibility: hidden; pointer-events: none;
  position: absolute; inset: 0;
}
#clockframe {
  width: 100%; height: 100%; border: 0; display: block;
  background: var(--bg); color-scheme: dark;
}

.loader { display: flex; gap: 6px; justify-content: center; padding: 23px 0 48px; }
.loader span { width: 8px; height: 8px; border-radius: 50%; background: var(--t3);
  animation: bounce 1.2s ease-in-out infinite; }
.loader span:nth-child(2) { animation-delay: .15s }
.loader span:nth-child(3) { animation-delay: .3s }
@keyframes bounce { 0%,80%,100% { opacity: .3; transform: translateY(0) }
                    40% { opacity: 1; transform: translateY(-5px) } }

#pull-refresh {
  position: absolute; left: 0; right: 0;

  top: calc(var(--topbar-h) + 6px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease-out;
}

.skel { height: 14px; border-radius: 7px; background: var(--row); }

.city-list { display: flex; flex-direction: column; gap: var(--gap); }
.city-item { display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border-radius: 12px; padding: 14px 16px;
  font-size: 19px; width: 100%; text-align: left; }
.city-item.on { border: 1px solid var(--action); }

#toast {
  position: fixed;

  left: 8px; right: 8px;
  top: calc(8px + var(--toast-top, 56px));

  z-index: 300;

  display: flex; align-items: center; justify-content: center;
  min-height: 68px;
  background: rgba(28, 28, 30, .62);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .10);
  padding: 16px 20px; border-radius: 22px;
  font-size: 19px; font-weight: 500; line-height: 1.3; text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}
#toast-msg { overflow-wrap: anywhere;
  pointer-events: none;

  animation: toast-in .34s cubic-bezier(.2, .9, .2, 1.06);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-140%) }
  to   { opacity: 1; transform: translateY(0) }
}

#toast.toast--out { animation: toast-out .30s cubic-bezier(.4, 0, .75, .35) forwards; }
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) }
  to   { opacity: 0; transform: translateY(-140%) }
}

.err { color: var(--danger); font-size: 18px; text-align: center; padding: 24px 0; }

.tour-photo {
  display: block; width: 100%; max-height: 220px; object-fit: cover;
  border-radius: var(--r-card); background: var(--card);
}

.tour-photo-wrap { position: relative; }

.card-photo-wrap {
  position: relative;
  width: calc(100% + 34px); margin: -1px -17px 0;
}
.card-photo-wrap .card-photo { width: 100%; margin: 0; }
.tour-photo-badge { position: absolute; top: 10px; right: 10px; }

.tour-photo-badge {
  background: rgba(18, 18, 18, .88);
  border-radius: var(--r-pill);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.photo-box { display: flex; flex-direction: column; gap: var(--gap); }
.photo-empty {
  display: flex; align-items: center; justify-content: center;
  height: 120px; border-radius: var(--r-card);
  background: var(--card); border: 1px dashed var(--line-2);
  color: var(--t3); font-size: 16px;
}

.pair--set { cursor: pointer; }
.pair--set:active { background: rgba(255, 255, 255, .06); }
.pair--set .pair-res::after { content: ' ›'; color: var(--t3); }

.score-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.score-opt {

  display: flex; flex-wrap: wrap; align-items: center; width: 100%;
  column-gap: 10px; row-gap: 0;
  padding: 13px 14px; border-radius: var(--r-btn); text-align: left;
  background: var(--row); border: 1px solid var(--line); color: var(--t1);
  font: 600 17px/1.25 var(--sans);
}
.score-opt:active { opacity: .85; }

.score-ico {
  flex: none; width: 16px; display: inline-flex; justify-content: center;
  vertical-align: -.12em; margin-right: 8px;
}
.score-ico .pawn { width: 16px; height: 16px; margin: 0; }
.score-ico .pawn--w { color: #fff; }
.score-ico .pawn--b { color: rgba(255, 255, 255, .45); }
.score-txt { flex: 1; min-width: 0; }

.score-mark { flex-basis: 100%; margin-top: 2px;
  font: 400 14px/1.2 var(--sans); color: var(--t2); }

.score-opt--on { border-width: 2px; padding: 12px 13px; }
.score-opt--mine { border-color: var(--action); }
.score-opt--mine .score-mark { color: var(--action); }
.score-opt--players { border-color: var(--success-t); }
.score-opt--players .score-mark { color: var(--success-t); }
.score-opt--pending { border-color: rgba(255, 204, 0, .5); background: rgba(255, 204, 0, .08); }

.qr-wrap--score {
  padding: 14px;
  background: rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.qr-card--score .score-list { gap: 16px; }

.qr-card--score .score-opt {
  min-height: 60px; padding: 10px 16px; column-gap: 14px; row-gap: 0;
  font-size: 19px;
}

.qr-card--score .score-opt--on { padding: 11px 15px; }

.qr-card--score .score-opt.tapped { background-color: rgba(255, 255, 255, .10); }
.qr-card--score .score-ico { width: 22px; }
.qr-card--score .score-ico .pawn { width: 22px; height: 22px; }
.qr-card--score .score-ico .draw-ico { width: 22px; height: 22px; }

.draw-ico { display: block; width: 16px; height: 16px; color: var(--t2); }
.draw-ico svg { width: 100%; height: 100%; display: block; }
.qr-card--score .score-mark { font-size: 15px; margin-top: 2px; }

.qr-card--score .btn--danger { height: auto; min-height: 60px; font-size: 19px; }

.qr-wrap--std { padding: 14px; }

.qr-card--std {
  max-width: 460px;

  padding: 22px 16px 16px; gap: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.qr-card--std .qr-title { font-size: 22px; font-weight: 600; }
.qr-card--std .score-list { gap: 10px; width: 100%; }
.qr-card--std .score-opt {
  min-height: 60px; padding: 0 16px; column-gap: 10px; row-gap: 0;
  border-radius: 14px; background: transparent; border: 1px solid #4a4541;
  color: #f5f4f2; font-size: 19px; font-weight: 600; justify-content: center;
}
.qr-card--std .score-txt { flex: 0 1 auto; text-align: center; }

.qr-card--std .score-mark { text-align: center; }

.qr-card--std .score-opt--danger {
  background: rgba(255, 90, 90, .12); border-color: rgba(255, 90, 90, .28);
  color: #ff8a8a;
}

.qr-card--std .qr-title { color: #fff; margin-bottom: 0; }

.qr-card--std .ask-text {
  color: #b6b3b0; font: 400 18px/1.4 var(--sans); text-align: center;
}

.btn--std,
.qr-card--std .btn { height: auto; min-height: 60px; border-radius: 14px;
  padding: 0 16px; font-size: 19px; font-weight: 600; }
.btn--std.btn--primary,
.qr-card--std .btn--primary { background: #f2c230; color: #211f1d; border: 0; }

.btn--std.btn--ghost,
.qr-card--std .btn--ghost {
  background: transparent; border: 1px solid #4a4541; color: #b6b3b0;
}

.btn--std.btn--danger {
  background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 90, 90, .28);
  color: #ff8a8a;
}

.res-grid--std .res-btn {
  min-height: 60px; border-radius: 14px; padding: 8px 6px;
  background: transparent; border: 1px solid #4a4541; color: #f5f4f2;
  font-weight: 600;
}
.res-grid--std .res-btn .k { color: #b6b3b0; }

.qr-card--code { max-width: 460px; }

.qr-card--code .qr-img { max-width: 380px; }

.op-wrap {

  position: fixed; left: 0; right: 0; top: 0; height: var(--app-h, 100%);
  z-index: 200;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex;

  animation: qr-in-scrim 140ms ease-out both;
}

.op-card { animation: qr-in-sheet 260ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes qr-in-sheet {
  from { opacity: 0; transform: translateY(10px) }
  to   { opacity: 1; transform: none }
}
.op-card {

  position: relative; flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  background: #000;
}

.op-bar {
  position: absolute; left: 14px; right: 14px; z-index: 3;

  top: calc(14px + max(var(--safe-top, 0px), var(--tgtop, 0px)));
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none;
}
.op-bar > * { pointer-events: auto; }

.op-bar-title {
  position: absolute; left: 0; right: 0; margin: 0;
  font: 600 20px/1.2 var(--sans); color: #f5f4f2; text-align: center;
  pointer-events: none;
}

.op-bar-btn, .op-bar-x {
  flex: none; min-height: 52px; border: 0; color: #f5f4f2;
  background: rgba(37, 37, 37, .62);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  font: 600 17px/1.15 var(--sans); cursor: pointer;
}
.op-bar-btn { max-width: 40%; padding: 0 22px; border-radius: 999px; }
.op-bar-x {
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.op-bar-x svg { width: 30px; height: 30px; }
.op-bar-btn:active, .op-bar-x:active { opacity: .8; }

.op-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;

  padding: calc(74px + max(var(--safe-top, 0px), var(--tgtop, 0px))) 16px
           calc(96px + env(safe-area-inset-bottom, 0px));
}

.op-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 96px;
  pointer-events: none; z-index: 2;
  background: linear-gradient(0deg, #000 10%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, 0) 100%);
}

.op-search-box {
  position: relative; flex: none; display: flex; align-items: center;
  height: 46px; border-radius: 999px; background: rgba(118, 118, 128, .24);
}
.op-search-box:focus-within { background: rgba(118, 118, 128, .32); }
.op-search {
  width: 100%; height: 100%; padding: 0 16px; border: 0; background: none;
  color: #f5f4f2; font: 400 17px/1 var(--sans); text-align: center;
}
.op-search:focus { outline: none; }

.op-search:not(:placeholder-shown) { text-align: left; }
.op-search:focus ~ .op-ph, .op-search:not(:placeholder-shown) ~ .op-ph { opacity: 0; }

.op-ph {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; gap: 8px; pointer-events: none; color: #8e8e93;
  font: 400 17px/1 var(--sans); transition: opacity .12s ease-out;
}
.op-ph b { font-weight: 400; }
.op-ph svg { width: 23px; height: 23px; }

.op-invite {
  flex: none; display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 8px 2px;
  background: none; border: 0; color: var(--action);
  font: 500 17px/1.2 var(--sans); text-align: left; cursor: pointer;
}
.op-invite:active { opacity: .6; }
.op-invite-ic { flex: none; width: 46px; display: flex; justify-content: center; }
.op-invite-ic svg { width: 28px; height: 28px; }

.op-list { display: flex; flex-direction: column; }
.op-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 62px; padding: 8px 12px 8px 2px;
  background: none; border: 0; color: var(--t1);
  font: 500 18px/1.25 var(--sans); text-align: left; cursor: pointer;
}
.op-item:active { background: rgba(255, 255, 255, .05); }

.op-item + .op-item::before {
  content: ''; position: absolute; left: 60px; right: 12px; top: 0; height: 1px;
  background: rgba(255, 255, 255, .09);
}
.op-ava {
  flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font: 600 17px/1 var(--sans); color: #fff;
}
.op-ava img { width: 100%; height: 100%; object-fit: cover; }
.op-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.op-mid b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-mid i { color: var(--t2); font: 400 16px/1.2 var(--sans); font-style: normal; }
.op-item u { flex: none; text-decoration: none; color: var(--t2);
  font: 500 16px/1 var(--sans); font-variant-numeric: tabular-nums; }

.op-item--busy { opacity: .5; }

.op-busy {
  flex: none; margin-left: 10px; min-height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14);
  color: var(--t2); font: 500 16px/1 var(--sans);
}

.op-pick {
  flex: none; margin-left: 10px; min-height: 40px; padding: 0 20px;
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--action); color: var(--ink); font: 600 17px/1 var(--sans);
}

.op-now { color: var(--action) !important; font-weight: 600 !important;
  white-space: nowrap; }

.op-drop {
  flex: none; margin-left: 8px; min-height: 40px; padding: 0 16px;
  display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(255, 69, 58, .16); border: 1px solid rgba(255, 69, 58, .38);
  color: #ff6b61; font: 600 16px/1 var(--sans); text-align: center;
}

.op-note {

  margin: 10px 0;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
  color: var(--t2); font: 400 16px/1.35 var(--sans);
}

.op-head {
  color: var(--t2); font: 600 13px/1 var(--sans); letter-spacing: .06em;
  text-transform: uppercase; padding: 18px 2px 8px;
}
.op-head:first-child { padding-top: 0; }
.op-empty { color: var(--t2); font-size: 18px; line-height: 1.4;
  text-align: center; padding: 24px 6px; }

.pair--off { opacity: .55; }

.pair-when .by-admin { color: var(--action); font-weight: 500; }

.pair-names .pair-when {
  display: block; margin-top: 3px; padding-left: 20px;
  font-size: 13px; color: var(--t3); letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
}

.menu-list { display: flex; flex-direction: column; gap: 16px; width: 100%; }

.plr--tap:active { opacity: .7; }

.link-quiet {
  display: block; width: 100%; padding: 2px 0 4px; background: none; border: 0;
  font: 400 18px/1.35 var(--sans); color: var(--t3); text-align: center;
}
.link-quiet:active { color: var(--t2); }

.link-quiet--go { color: var(--success-t); }
.link-quiet--go:active { color: var(--success); }

.login {
  min-height: 100%; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; gap: 14px; padding: 24px 4px;
}
.login-logo {
  width: 84px; height: 84px; border-radius: 50%; background: var(--card);
  display: flex; align-items: center; justify-content: center; margin-bottom: 2px;
}
.login-logo img { width: 52px; height: 52px; object-fit: contain; }
.login-head { font: 600 24px/1.2 var(--sans); letter-spacing: -.01em; }
.login-text { font-size: 18px; line-height: 1.45; color: var(--t2); max-width: 320px; }

.btn-tg-wide {
  width: 100%; margin-top: 6px; gap: 10px;
  background: #2AABEE; color: #fff; border: 0;
}
.btn-tg-wide:active { opacity: .88; }

.login-wait { width: 100%; display: flex; flex-direction: column; gap: var(--gap); }

.login-code {
  font: 700 38px/1.15 var(--mono); letter-spacing: .18em; text-align: center;
  color: var(--action); margin: 16px 0 10px; padding-left: .18em;
}
.login-status { color: var(--t2); }

.onb-step { font: 500 15px/1 var(--sans); color: var(--t3); letter-spacing: .04em;
  text-transform: uppercase; }
.onb-head { font: 600 24px/1.2 var(--sans); letter-spacing: -.01em; }
.onb-hint { font-size: 17px; line-height: 1.45; color: var(--t2); }

.org-card {
  display: flex; align-items: stretch;
  background: var(--card); border-radius: var(--r-row); padding: 18px 16px;
}
.org-half { flex: 1; min-width: 0; }
.org-half b {
  display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.org-half span { font-size: 16px; color: var(--t2); }

.org-sep { width: 1px; background: var(--line, rgba(255,255,255,.08)); margin: 0 16px; }
.org-mark { display: flex; align-items: center; gap: 6px; }
.org-mark b { display: inline-block; }
.org-star { width: 20px; height: 20px; flex: none; fill: var(--action); }

.inst-bar {
  position: fixed; left: 8px; right: 8px; z-index: 60;
  bottom: 60px;
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: 10px 12px;
  background: var(--card); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);

  transform: translateY(140%); opacity: 0;
  transition: transform .22s ease-out, opacity .22s ease-out;
}
.inst-bar--on { transform: translateY(0); opacity: 1; }
.inst-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.inst-ico .logo-img { width: 36px; height: 36px; }
.inst-txt { min-width: 0; }

.inst-acts { grid-column: 1 / -1; }
.inst-txt b { display: block; font-size: 16px; font-weight: 600; }
.inst-txt span { display: block; font-size: 13px; color: var(--t2); margin-top: 2px; }

.inst-acts { display: flex; gap: 8px; width: 100%; }
.inst-acts .btn { height: 40px; font-size: 15px; }
.inst-acts .inst-yes { flex: 2; }
.inst-acts .inst-no { flex: 1; }

.faces {
  position: relative; width: 100%; aspect-ratio: 390 / 307;
  margin-bottom: -6px; overflow: hidden; pointer-events: none;

  -webkit-mask-image: none;
}
.faces::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;

  background: radial-gradient(26% 26% at 50% 50%,
    rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 58%, rgba(0, 0, 0, 0) 100%);
}

.face {
  position: absolute; aspect-ratio: 1; border-radius: 999px;
  background: var(--bg); box-shadow: 0 0 0 3px var(--bg);
}
.face img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 999px; object-fit: cover;
}

.face-mid {
  position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1;
  transform: translate(-50%, -50%); z-index: 1;
  border-radius: 999px;

  background: #100F0E;

  box-shadow: 0 0 22px 12px rgba(0, 0, 0, .85);
  display: flex; align-items: center; justify-content: center;
}

.face-mid::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 260%; height: 260%; transform: translate(-50%, -50%);
  border-radius: 999px; z-index: -1; pointer-events: none;

  background: radial-gradient(closest-side,
    rgba(255,204,0,.07) 0%, rgba(255,204,0,.03) 45%, rgba(255,204,0,0) 100%);
}
.face-mid .logo-img { width: 62%; height: auto; position: relative; }

@keyframes vcOrb {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(6px, -5px); }
  50%  { transform: translate(0, -9px); }
  75%  { transform: translate(-6px, -4px); }
  100% { transform: translate(0, 0); }
}
@keyframes vcOrb2 {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-5px, 5px); }
  50%  { transform: translate(2px, 9px); }
  75%  { transform: translate(6px, 3px); }
  100% { transform: translate(0, 0); }
}
@keyframes vcSwapA { 0%, 42% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes vcSwapB { 0%, 42% { opacity: 0; } 58%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {

  .qr-card, .op-card { animation-name: qr-in-scrim; }
  .face, .face img { animation: none !important; }
  .face img + img { opacity: 0; }
}

.org-mark--row { display: flex; flex-direction: column; align-items: flex-end;
  gap: 1px; flex: none; }
.org-mark--row .org-mark-top { display: flex; align-items: center; gap: 5px; }
.org-mark--row b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.org-mark--row .org-star { width: 15px; height: 15px; }
.org-mark--row i {
  font-style: normal; font-size: 13px; color: var(--t3); white-space: nowrap;
}

.linkish--inline {
  display: inline; align-self: auto; font-size: inherit;
  font-weight: inherit; line-height: inherit;
}

.org-card { flex-direction: column; }
.org-row { display: flex; align-items: stretch; }
.org-row .org-half { flex: 1; min-width: 0; }

.org-row--under {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line, rgba(255,255,255,.08));
}

.prof-sub--adm { font-size: 14px; color: var(--t3); margin-top: 2px; }

.stack--people { gap: var(--gap); }

.ios-steps { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 14px; }
.ios-step { display: grid; grid-template-columns: 22px 26px 1fr; align-items: center;
  gap: 10px; text-align: left; }
.ios-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--row); color: var(--t2); font: 600 13px/1 var(--sans); }
.ios-ic { color: var(--action); display: grid; place-items: center; }
.ios-ic svg { width: 24px; height: 24px; }
.ios-txt { font-size: 16px; line-height: 1.3; }
.ios-note { font-size: 14px; color: var(--t3); text-align: left; margin-bottom: 14px; }

.card-join {
  display: block; flex: none; padding: 10px 14px;
  border-radius: var(--r-btn); background: var(--action); color: var(--ink);

  font: 600 16px/1 var(--sans); text-align: center; white-space: nowrap;
}
.card-join:active { opacity: .8; }

.card-bottom { display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; }

.card-faces { display: flex; align-items: center; margin-right: auto; min-width: 0; overflow: hidden; }

.card-face {

  width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--row);
  margin-left: calc(var(--шаг, 36px) - 40px);
  display: flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--sans); font-style: normal; color: #fff;
}
.card-face:first-child { margin-left: 0; }

.card-face--cut { display: none; }

.card-face:not(:last-child) {
  -webkit-mask-image: radial-gradient(circle 23px at calc(var(--шаг, 36px) + 20px) 50%,
    rgba(0, 0, 0, 0) 98%, #000 100%);
  mask-image: radial-gradient(circle 23px at calc(var(--шаг, 36px) + 20px) 50%,
    rgba(0, 0, 0, 0) 98%, #000 100%);
}
.card-face img { width: 100%; height: 100%; object-fit: cover; }

.card-face--more { background: var(--row); color: #fff; position: relative; }
.more-ava {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;

  filter: blur(7px) saturate(1.5); transform: scale(1.35);
}
.more-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

.more-n {
  position: relative; z-index: 1; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

.card-face--ghost {
  background: rgba(255, 255, 255, .18); background-image: none;

  border: 1px solid transparent; background-clip: padding-box;
}

.card-join--off {
  background: var(--row); color: var(--t2); border: 1px solid var(--line);
}

.card--tap { display: block; width: 100%; text-align: left; cursor: pointer; }
.card--tap:active { transform: scale(.995); }

.chart { width: 100%; height: auto; display: block; }

.chart-line { fill: none; stroke: var(--action); stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.chart-fill { fill: var(--action); opacity: .14; stroke: none; }
.chart-dot { fill: var(--action); }
.chart-ax { fill: var(--t3); font: 400 11px var(--sans); }

.h2h { align-items: center; gap: 4px; text-align: center; }
.h2h-score { font: 700 44px/1.1 var(--sans); font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; }
.h2h-sub { font-size: 16px; color: var(--t2); }

.inv-btns { display: flex; gap: 8px; width: 100%; }
.inv-btns .btn { flex: 1; }

.duel--agree { gap: 12px; }

.duel--agree .duel-story,
.duel--agree .duel-row { margin-bottom: 12px; }

.duel--agree .inv-btns { gap: 16px; }

.duel-live--wait { background: var(--row); color: var(--t2); }
.duel-chip--win  { background: rgba(63,191,116,.18); color: var(--success-t); }
.duel-chip--loss { background: rgba(255,107,107,.16); color: #FF8A8A; }
.duel-chip--draw { background: rgba(255,255,255,.10); color: rgba(255,255,255,.65); }

.duel-story { font: 400 17px/1.4 var(--sans); color: var(--t2); }

.duel-wait { font: 400 17px/1.4 var(--sans); color: rgba(255,255,255,.55);
  text-align: center; }

.card,
.duel,
.plr,
.histg,
.stat,
.rowlink,
.city-item,
.org-card,
.wait-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
}
.card { border-radius: var(--r-card); }
.card:active { background: rgba(255, 255, 255, .11); }

.card { overflow: hidden; }

.plr-ava:not([style*="background"]),
.duel-ava:not([style*="background"]) { background: rgba(255, 255, 255, .10); }

.people-list { gap: 0; }

.people-list .sec-head { margin-bottom: 10px; }
.people-list .plr {
  position: relative;
  background: none; border: 0; box-shadow: none; border-radius: 0;
  padding: 9px 2px; gap: 12px;
}
.people-list .plr:active { background: rgba(255, 255, 255, .05); }

.people-list { --sep-left: 58px; }
.people-list--ranked { --sep-left: 100px; }
.people-list .plr + .plr::before {
  content: ''; position: absolute; left: var(--sep-left); right: 0; top: 0;
  height: 1px; background: rgba(255, 255, 255, .09);
}

.people-list .pair-no {

  width: 30px; height: auto; border: 0; background: none; border-radius: 0;
  font-size: 19px; font-weight: 500; color: var(--t2);
}
.people-list .plr-ava { width: 46px; height: 46px; }
.people-list .plr-name { font: 500 19px/1.3 var(--sans); }
.people-list .plr-sub { font-size: 15px; margin-top: 1px; }
.people-list .pl-rating { font-size: 17px; color: var(--t2); }

.loc:not(.loc--on) { position: relative; border-color: transparent; }
.loc:not(.loc--on)::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;

  padding: .5px; pointer-events: none;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, .24) 0%,
    rgba(255, 255, 255, .05) 45%,
    rgba(255, 255, 255, .03) 70%,
    rgba(255, 255, 255, .12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.stack--menu {
  gap: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
}
.stack--menu .rowlink {
  background: none; border: 0; box-shadow: none; border-radius: 0;
  position: relative;
}
.stack--menu .rowlink:active { background: rgba(255, 255, 255, .06); }

.stack--menu .rowlink + .rowlink::before {
  content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 1px;
  background: rgba(255, 255, 255, .09);
}

.h2h-open {
  display: block; width: 100%; background: none; border: 0; padding: 0;
  color: inherit; text-align: center; font: inherit;
}
.h2h-open:active { opacity: .7; }
.h2h-invite { margin-top: 16px; }

:root { --tabs-h: 64px; }

#tabs {
  position: absolute; z-index: 30;
  left: 10px; right: 10px;
  bottom: max(10px, calc(6px + max(env(safe-area-inset-bottom, 0px), var(--safe-bottom)) * .25));

  border: 0; border-radius: 999px;

  padding: 8px 4px;
  align-items: center;

  background: rgba(50, 50, 52, .40);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  backdrop-filter: blur(36px) saturate(180%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .40);
}

#screen:not(.flush) { padding-bottom: calc(var(--tabs-h) + 26px); }

#tabs .tab { color: rgba(255, 255, 255, .95); }
#tabs .tab.on, #tabs .tab.on .tab-label { color: var(--action); }
.tab {

  border-radius: 999px; padding: 0;
}

.tab { position: relative; color: rgba(255, 255, 255, .95); }
.tab.on { color: #fff; }

#tab-pill {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .10);
  z-index: 0; pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform .32s cubic-bezier(.22, .8, .2, 1),
              width .32s cubic-bezier(.22, .8, .2, 1);
}

#tabs.dragging #tab-pill { transition: none; }

#tab-pill::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: .5px; pointer-events: none;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .06) 45%,
    rgba(255, 255, 255, .04) 70%, rgba(255, 255, 255, .16) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.tab > * { position: relative; z-index: 1; }

.card-meta--joined { justify-content: center; text-align: center; }
.card-meta--joined span { color: var(--success-t); }

.people-invite {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 8px 2px;
  background: none; border: 0; text-align: left;
  color: var(--action); font: 500 19px/1.25 var(--sans);
}
.people-invite:active { opacity: .6; }
.people-invite-ic {
  flex: none; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
}
.people-invite-ic svg { width: 28px; height: 28px; }

.people-invite + .sec-head { margin-top: 6px; }

.feed-create { margin-top: var(--gap); }

@media (min-width: 560px) {
  #mainbtn-wrap { position: absolute; }
}

:root { --topbar-h: calc(50px + max(env(safe-area-inset-top, 0px), var(--safe-top, 0px))); }

#topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 20;
  min-height: var(--topbar-h);

  background: linear-gradient(180deg,
    rgba(0, 0, 0, .82) 0, rgba(0, 0, 0, .82) 14px,
    rgba(0, 0, 0, .3) 60%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
#topbar > * { pointer-events: auto; }
#tb-title { text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }

.tb-blur { position: absolute; inset: 0 0 -12px 0; }
#topbar > .tb-blur { pointer-events: none; }
.tb-blur i {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: block;
}
.tb-blur i:nth-child(1) {
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.tb-blur i:nth-child(2) {
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 75%);
}
.tb-blur i:nth-child(3) {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 18%, transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 18%, transparent 55%);
}
.tb-blur i:nth-child(4) {
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 8%, transparent 38%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 8%, transparent 38%);
}

#screen:not(.flush) { padding-top: calc(var(--topbar-h) + 6px); }

@media (min-width: 560px) {
  #toast { position: absolute; }
}

.tb-title {
  padding: 7px 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9);

  position: relative; z-index: 1;
}

.tb-back {

  width: var(--tb-back-size); height: var(--tb-back-size);
  top: auto; bottom: var(--tb-back-bottom); left: 10px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(22px) saturate(220%);
  backdrop-filter: blur(22px) saturate(220%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  color: #f5f4f2;

  will-change: transform;
  transition: transform .18s ease-out, background .18s ease-out;
}
.tb-back.is-pressed {
  transform: scale(1.32);
  background: rgba(255, 255, 255, .4);
}

button, .row, .card--tap, [data-tap], .op-item {
  transition: filter .16s ease-out, transform .16s ease-out;
}
.tapped {
  filter: brightness(1.35);

  transform: scale(.97);
  transition: none;
}

.row.tapped, .op-item.tapped, .card--tap.tapped {
  background-color: rgba(255, 255, 255, .10);
}

.btn.tapped, .op-pick.tapped, .op-drop.tapped, .res-btn.tapped {
  transform: scale(.965);
}

.qr-card--score .tapped, .menu-card .tapped { transform: none; }

.is-busy { animation: пульс 1s ease-in-out infinite; }
@keyframes пульс {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .is-busy { animation: none; filter: brightness(1.2); }
  button, .row, .card--tap, [data-tap], .op-item { transition: none; }
  .btn.tapped, .op-pick.tapped, .op-drop.tapped, .res-btn.tapped { transform: none; }
}

.tb-title:empty { display: none; }

.own-back #topbar { align-items: flex-end; padding-bottom: var(--tb-back-bottom); }
.own-back .tb-title {
  display: flex; align-items: center; justify-content: center;
  height: var(--tb-back-size);
}

.qr-note--big { font-size: 18px; line-height: 1.45; }

.btn--tg {
  background: #2AABEE; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn--tg:active { background: #2098d4; }

.card--off {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}
.card--off .card-title { color: var(--t2); }

#clockhost { padding-top: 0; }
#root.clock-full #clockhost { padding-top: 0; }

.duel--inline {
  background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0;
}

.card-cut {
  height: 1px; background: rgba(255, 255, 255, .10);
  margin: 4px -16px 4px; flex: none;
}

.card--duel:active { transform: none; background: rgba(255, 255, 255, .07); }

.card-meta > .card-meta--dots {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
}

.duel-row { align-items: stretch; }
.duel-chip { margin-top: auto; }

.card-meta--split { justify-content: space-between; }
.card-meta--split > .card-meta--dots {
  flex-wrap: nowrap; white-space: nowrap; margin-left: auto;
}

.card--duel .tc, .tc--pill {
  height: 34px; padding: 0 15px; border-radius: var(--r-pill);

  font-family: var(--sans); letter-spacing: 0;
}

.card-top > .duel-live { flex: none; }

.ins-hero {
  display: flex; align-items: center; gap: 16px; padding: 4px 2px 2px;
}
.ins-app-icon {
  width: 76px; height: 76px; flex: none; border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .10);
}
.ins-hero-text { min-width: 0; }
.ins-hero-title { font-size: 22px; font-weight: 700; line-height: 1.2; }

.ins-hero-sub {
  margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--t2);
}

.sec-head--ins { align-items: center; justify-content: flex-start; gap: 8px; }

.sec-head--tight { margin-top: 0; }
.ins-plat { display: inline-flex; width: 19px; height: 19px; color: var(--action); }
.ins-plat svg { width: 100%; height: 100%; display: block; }

.ins-ico {
  width: 1.25em; height: 1.25em; vertical-align: -.28em;
  margin: 0 .1em; color: var(--t1);
}

.ins-steps {
  margin: 0; padding-left: 22px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 17px; line-height: 1.4; color: var(--t1);
}
.ins-steps li::marker { color: var(--action); font-weight: 600; }
.ins-steps b { font-weight: 600; }

.ins-note {
  font-size: 15px; line-height: 1.4; color: var(--t2);
  padding: 0 2px;
}

.inst-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px; border-radius: var(--r-card); text-align: left;
  font-family: inherit; color: var(--t1);

  background: linear-gradient(180deg, rgba(242, 194, 48, .10), rgba(242, 194, 48, .04));
  border: 1px solid rgba(242, 194, 48, .26);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
  transition: transform .1s;
}
.inst-card:active { transform: scale(.99); }

.inst-icon {
  width: 52px; height: 52px; flex: none; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .40), 0 0 0 1px rgba(255, 255, 255, .10);
}
.inst-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.inst-title { font-size: 18px; font-weight: 600; line-height: 1.2; }

.inst-sub { font-size: 14px; line-height: 1.35; color: var(--t2); }

.sp-lead { margin: 0; text-align: center; color: var(--t2);
  font: 400 17px/1.45 var(--sans); }

.sp-intro .btn--primary { margin-top: 6px; }

.btn--warm { background: #3DDC6B; color: #10240F; border: 0; }

.sp-note { color: var(--t2); }

.sp-play { min-height: 100%; display: grid;

  grid-template-rows: var(--sp-top, 1fr) auto 1fr; }

.sp-measure { grid-template-rows: auto auto auto; align-content: start; }
.sp-measure .sp-head .sp-clockwrap,
.sp-measure .sp-skip { margin-top: 0; margin-bottom: 0; }
.sp-head, .sp-foot {
  min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 16px; text-align: center;
}

.sp-head {

  position: relative; gap: 0; justify-content: flex-start;

  padding-top: var(--topbar-h); padding-bottom: 12px;
}

.sp-foot { gap: 8px; justify-content: flex-start; padding: 12px 16px 0; }

.sp-skip {
  background: none; border: 0; padding: 8px 16px;
  display: inline-flex; align-items: center; gap: 8px;

  color: var(--t2); font: 500 18px/1 var(--sans); cursor: pointer;

  margin-top: auto; margin-bottom: 40px;
}

.sp-skip svg { width: 18px; height: 18px; flex: none; }

.sp-clock {
  font: 700 clamp(44px, 13vw, 56px)/1 var(--sans); font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: #fff; text-align: center; transition: color .2s ease-out;
}
.sp-clock--warn { color: #FFB020; }
.sp-clock--danger { color: #FF4D4F; }

.sp-clockwrap { position: relative; display: inline-block; }

.sp-head .sp-clockwrap { margin: auto 0; }
.sp-head .sp-task { margin-top: 17px; }

.sp-shake { animation: sp-shake .22s ease-in-out; }
@keyframes sp-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.sp-step { color: var(--t2); font: 400 18px/1.3 var(--sans);
  font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.sp-fly {
  position: absolute; left: calc(100% + 8px);
  font: 700 27px/1 var(--sans); font-variant-numeric: tabular-nums;
  pointer-events: none; white-space: nowrap;
  animation: sp-fly 1s ease-out forwards;
}
.sp-fly--ok { top: 0; color: #3DDC6B; }
.sp-fly--bad { bottom: 0; color: #FF4D4F; }
@keyframes sp-fly {
  0%   { opacity: 0; transform: scale(.7); }
  14%  { opacity: 1; transform: scale(1); }
  75%  { opacity: 1; }
  100% { opacity: 0; }
}

.sp-board {

  width: min(100%, var(--sp-board, 100%)); margin-inline: auto;
  aspect-ratio: 1 / 1; touch-action: manipulation;

  position: relative;
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);

  border-top: 1px solid #2A2A30; border-bottom: 1px solid #2A2A30;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.sp-sq {
  position: relative; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;

  touch-action: manipulation;
}

.sp-sq--l { background: #efd9a6; }
.sp-sq--d { background: #a4703f; }
.sp-pc {
  width: 90%; height: 90%; pointer-events: none; user-select: none;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .4));

  position: relative; z-index: 3;
}

.sp-pc--fly {
  position: fixed; z-index: 300; pointer-events: none;

  transform: scale(2);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
}

.sp-hover {
  position: absolute; z-index: 2; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .18);

  transition: left .12s ease-out, top .12s ease-out;
}

.sp-sq--last::before, .sp-sq--sel::before,
.sp-sq--good::before, .sp-sq--bad::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
}
.sp-sq--last::before { background: rgba(255, 213, 79, .35); }

.sp-sq--sel::before { background: rgba(0, 0, 0, .26); }

.sp-sq--good::before { background: rgba(87, 169, 106, .55); }
.sp-sq--bad::before { background: rgba(199, 95, 92, .55); }

.sp-sq--move::after, .sp-sq--take::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
}
.sp-sq--move::after {
  background: radial-gradient(circle at 50% 50%,
    rgba(0, 0, 0, .21) 0 19.5%, transparent 20%);
}

.sp-sq--take::after {
  background:
    linear-gradient(to bottom right, rgba(0, 0, 0, .30) 0 18%, transparent 18.5%) left    top    / 50% 50% no-repeat,
    linear-gradient(to bottom left,  rgba(0, 0, 0, .30) 0 18%, transparent 18.5%) right   top    / 50% 50% no-repeat,
    linear-gradient(to top right,    rgba(0, 0, 0, .30) 0 18%, transparent 18.5%) left    bottom / 50% 50% no-repeat,
    linear-gradient(to top left,     rgba(0, 0, 0, .30) 0 18%, transparent 18.5%) right   bottom / 50% 50% no-repeat;
}

.sp-mark {
  position: absolute; top: -13%; right: -13%; z-index: 4;
  width: 47%; height: 47%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;

  box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
  animation: sp-mark .18s ease-out;
}

.sp-mark svg { width: 68%; height: 68%; }

.sp-mark--ok svg { width: 71%; height: 71%; }

.sp-board > .sp-sq:nth-child(-n+8) .sp-mark { top: 0; }
.sp-board > .sp-sq:nth-child(8n) .sp-mark { right: 0; }

.sp-mark--ok { background: #57A96A; }
.sp-mark--bad { background: #C75F5C; }
@keyframes sp-mark {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

.sp-sq.tapped { filter: none; transform: none; background-color: revert; }

.sp-task { text-align: center; }

.sp-turn { margin-top: 4px; color: var(--t2); font: 400 18px/1.3 var(--sans);
  display: flex; align-items: center; justify-content: center; gap: 7px; }

.sp-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.sp-dot--w { background: #fff; }
.sp-dot--b { background: #17181C; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .32); }

.sp-goal { text-transform: uppercase; margin-top: 0; font: 600 clamp(20px, 5.8vw, 24px)/1.2 var(--sans); color: #fff; }

@media (max-height: 740px) {
  .sp-head { padding-bottom: 8px; }
  .sp-foot { padding-top: 8px; }
  .sp-clock { font-size: clamp(38px, 11vw, 44px); }
  .sp-goal { font-size: clamp(18px, 5vw, 21px); }
  .sp-turn { margin-top: 4px; font-size: 16px; }
  .sp-step { font-size: 16px; }
  .sp-skip { margin-bottom: 20px; font-size: 16px; }
}

.sp-peek { position: relative; border-radius: 14px; overflow: hidden; }
.sp-peek-board {

  display: grid; grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr); aspect-ratio: 1 / 1;
  filter: blur(2px) brightness(.45) saturate(.6);
  pointer-events: none;
}
.sp-peek-over {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; padding: 0 18px;
}
.sp-peek-over .btn { width: 100%; max-width: 320px; }
.sp-peek-cap {
  color: rgba(255, 255, 255, .82); font: 500 15px/1.2 var(--sans);
  letter-spacing: .08em; text-transform: uppercase; text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.sp-over {
  position: fixed; inset: 0; z-index: 210;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.sp-over[hidden] { display: none; }
.sp-over-title { font: 700 40px/1 var(--sans); color: #fff; letter-spacing: .02em; }
.sp-over-sub { color: var(--t2); font: 500 18px/1.3 var(--sans);
  font-variant-numeric: tabular-nums; }
.sp-over .btn { max-width: 340px; }

.seg {
  position: relative;
  display: inline-flex; align-self: flex-start; gap: 0;

  padding: 3px;
  border-radius: 999px;

  background: rgba(255, 255, 255, .07);
  border: 0;
}

.seg-pill {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .10);
  z-index: 0; pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform .32s cubic-bezier(.22, .8, .2, 1),
              width .32s cubic-bezier(.22, .8, .2, 1);
}

.seg-pill::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: .5px; pointer-events: none;
  background: linear-gradient(145deg,
    rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .06) 45%,
    rgba(255, 255, 255, .04) 70%, rgba(255, 255, 255, .16) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.seg-btn {
  position: relative; z-index: 1;
  border: 0; background: none; cursor: pointer;
  padding: 7px 18px; border-radius: 999px;
  color: var(--t2); font: 500 15px/1.2 var(--sans); white-space: nowrap;
  transition: color .2s;
}

.seg-btn--on { color: #fff; }

.shr-card { max-width: 380px; }
.shr-img {
  width: 100%; max-height: 46vh; object-fit: contain;
  border-radius: 16px; background: #0b0b0c;
}

a.btn { display: flex; align-items: center; justify-content: center;
  text-decoration: none; }

.sp-combo { color: var(--action); font-weight: 600; }

.sp-how { display: inline-block; margin: 10px auto 0; font-size: 15px;
  text-align: center; }

.qr-card--std .sp-score-rules { text-align: left; }
.sp-score-rules p { margin: 0 0 10px; }
.sp-score-rules ul { margin: 0 0 10px; padding: 0; list-style: none; }
.sp-score-rules li { margin: 4px 0; padding-left: 16px; position: relative; }
.sp-score-rules li::before {
  content: '·'; position: absolute; left: 4px; top: -1px;
  color: var(--t3); font-weight: 700;
}

.sp-report {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-card);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--t2); font: 400 16px/1.5 var(--sans); text-wrap: pretty;
}

.sp-tempo { margin-top: 4px; }
.sp-tempo-head { color: var(--t2); font: 600 13px/1 var(--sans);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }

.sp-bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 120px;
}
.sp-bar {
  flex: 1 1 0; min-width: 0; border-radius: 4px 4px 2px 2px;
  background: var(--action);
}

.sp-bar--bad { background: #C75F5C; }
.sp-bar--skip { background: rgba(255, 255, 255, .16); }

.sp-review { margin-top: 18px; }
.card.sp-rows { display: block; padding: 0; overflow: hidden; }
.sp-row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 46px 1fr auto 22px 40px;
  padding: 14px 16px;
}

.sp-row + .sp-row { border-top: 1px solid var(--line); }

.sp-row--head { padding-top: 10px; padding-bottom: 10px; }
.sp-row--head span { color: var(--t2); font: 500 13px/1 var(--sans);
  letter-spacing: .06em; text-transform: uppercase; }
.sp-row-no { color: var(--t2); font: 500 16px/1 var(--sans);
  font-variant-numeric: tabular-nums; }
.sp-row-name { font: 500 17px/1.2 var(--sans); color: var(--t1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;

  text-transform: none; }
.sp-row-time { color: var(--t2); font: 400 16px/1 var(--sans);
  font-variant-numeric: tabular-nums; }
.sp-row-ico { display: flex; }
.sp-row-ico svg { width: 20px; height: 20px; }
.sp-row-ico--skip { color: var(--t2); }
.sp-row-try { color: var(--t2); font: 400 15px/1 var(--sans);
  text-align: right; font-variant-numeric: tabular-nums; }

.card.sp-run { display: flex; flex-direction: row; align-items: center;
  gap: 14px; cursor: pointer; }
.sp-run-score { font: 700 30px/1 var(--sans); font-variant-numeric: tabular-nums;
  color: var(--action); min-width: 62px; }
.sp-run-mid { flex: 1; min-width: 0; }
.sp-run-when { font: 600 17px/1.2 var(--sans); color: var(--t1); }
.sp-run-when--big { text-align: center; color: var(--t2);
  font: 500 16px/1.2 var(--sans); }
.sp-run-sub { margin-top: 4px; color: var(--t2); font: 400 15px/1.3 var(--sans); }
.sp-run-go { color: var(--t2); font-size: 22px; flex: none; }

.sp-total { text-align: center; padding: 12px 0 4px; }
.sp-total b { display: block; font: 700 68px/1 var(--sans);
  font-variant-numeric: tabular-nums; color: var(--action); }
.sp-total i { color: var(--t2); font: 600 13px/1 var(--sans); font-style: normal;
  letter-spacing: .08em; }

.sp-card { display: flex; flex-direction: column; gap: 10px;
  width: 100%; text-align: left; padding: 14px; }
.sp-card-top { display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; }
.sp-card-top b { font: 700 17px/1.2 var(--sans); color: #fff; }
.sp-card-best { color: var(--t2); font: 500 15px/1.2 var(--sans);
  font-variant-numeric: tabular-nums; }

.sp-card-nom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sp-card-nom .sp-nom-ico { width: 20px; height: 20px; flex: none; }
.sp-card-nom-name { font: 700 14px/1.2 var(--sans); letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-card-nom-rare { margin-left: auto; flex: none; color: var(--t2);
  font: 400 14px/1.2 var(--sans); }

.sp-nom { display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px; padding: 16px; }
.sp-nom-ico { flex: none; width: 30px; height: 30px; color: var(--t2); }
.sp-nom-ico svg { width: 100%; height: 100%; display: block; }
.sp-nom-body { min-width: 0; }
.sp-nom-name { font: 700 17px/1.2 var(--sans); letter-spacing: .05em;
  text-transform: uppercase; color: #fff; }
.sp-nom-desc { margin-top: 4px; color: var(--t2); font: 400 15px/1.35 var(--sans); }

.sp-nom-rare { margin-top: 8px; color: #fff; font: 500 15px/1.3 var(--sans); }

.sp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp-tile {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 12px 10px; min-height: 74px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.sp-tile i { color: var(--t2); font: 500 12px/1.2 var(--sans); font-style: normal;
  letter-spacing: .03em; text-transform: uppercase; }
.sp-tile b { font: 700 21px/1 var(--sans); font-variant-numeric: tabular-nums; color: #fff; }

.sp-sync { text-align: center; color: var(--t3); font: 400 14px/1.3 var(--sans); }
.sp-sync--off { color: #FFB020; }

@media (prefers-reduced-transparency: reduce) {

  #tabs, #toast, .qr-card, .qr-wrap, .op-wrap, .op-bar-btn, .op-bar-x,
  .seg, .seg-btn--on, .loc, .tb-back, .card--choice, .sp-over, .photo-view {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  #tabs, .qr-card, .op-bar-btn, .op-bar-x, .seg, .loc, .tb-back, .card--choice {
    background: var(--card);
  }
  .seg-btn--on { background: var(--row); }
  #toast, .sp-over { background: var(--card); }

  .qr-wrap, .op-wrap, .photo-view { background: rgba(0, 0, 0, .96); }

  .tb-blur { display: none; }
  #topbar { background: var(--bg); }
}

@media (prefers-contrast: more) {

  .card, .row, .plr, .duel, .stat, .stack--menu, .qr-card, #tabs, .seg, .loc,
  .tb-back, .sp-over, .sp-nom, #toast {
    background: var(--card);
    border: 1px solid var(--line-2);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }

  :root { --t2: rgba(255, 255, 255, .82); --t3: rgba(255, 255, 255, .68); }
}

.cr-head { display: flex; flex-direction: column; gap: 6px; }

.cr-title { font: 600 28px/1.15 var(--sans); letter-spacing: -.02em; }
.cr-sub { font: 400 17px/1.4 var(--sans); color: var(--t2); }

.card--fmt {
  position: relative; overflow: hidden;
  flex-direction: row; align-items: flex-start; gap: 13px;
  padding: 15px 14px;
}

.fmt-glyph {

  position: absolute; right: -14px; bottom: -10px;
  width: 128px; height: 128px;

  opacity: .07; filter: blur(2.5px);
  pointer-events: none; user-select: none;
}
.fmt-body {
  position: relative; flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.card--fmt .card-title { font-size: 19px; line-height: 1.25; }

.fmt-desc { font: 400 16px/1.4 var(--sans); color: var(--t2); }
.fmt-foot { display: flex; align-items: center; gap: 8px; padding-top: 5px;
  flex-wrap: wrap; }

.fmt-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 27px; padding: 0 10px 0 8px; border-radius: 9px;
  background: rgba(255, 204, 0, .13); color: var(--action);
  font: 600 15px/1 var(--sans); white-space: nowrap;
}
.fmt-note { font: 400 15px/1 var(--sans); color: var(--t3); }

.fmt-go {
  position: relative; flex: none; align-self: center;
  color: var(--t3); font-size: 26px; line-height: 1;
}

.empty--lead { padding: 18px 12px 4px; gap: 10px; }
.empty--lead .empty-icon { width: 96px; height: 96px; }

.qr-wrap--code {
  align-items: flex-start;
  padding-top: calc(max(env(safe-area-inset-top, 0px), var(--safe-top)) + 56px);
}

.btn-vk-wide {
  width: 100%; margin-top: 10px; gap: 10px;
  background: #0077FF; color: #fff; border: 0;
}
.btn-vk-wide:active { opacity: .88; }
.login-note {
  margin: 10px 0 0; text-align: center;
  font: 400 14px/1.4 var(--sans); color: var(--t3);
}
