/* Раздел «Неделя» — «трансляция»: шапка с каруселью лиг и бегущей лентой,
   слева личная карточка/задания/кланы, справа подиум с таблицей.
   На телефоне та же разметка складывается в одну колонку: aside и content
   становятся display:contents, а порядок блоков задаётся order. */

.wk-hero { --league: var(--accent); }

.wk-hero-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 320px at 50% 0%, color-mix(in srgb, var(--league) 48%, transparent), transparent 70%),
    radial-gradient(420px 260px at 50% 42%, color-mix(in srgb, var(--league) 28%, transparent), transparent 70%),
    linear-gradient(180deg, #0d1210, var(--bg));
  border-bottom: 1px solid var(--border);
}
/* Водяной знак: значок выбранной лиги во всю высоту шапки слева, под
   содержимым. Гаснет вправо, чтобы не спорить с каруселью. */
.wk-hero-mark {
  position: absolute; left: -4%; top: 50%; height: 150%; aspect-ratio: 1; object-fit: contain;
  transform: translateY(-50%) rotate(-8deg); opacity: 0.16; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 30%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 30%, transparent 100%);
  filter: saturate(1.2) blur(0.5px);
  transition: opacity 0.4s;
}
.wk-hero-box > *:not(.wk-hero-mark):not(.wk-hero-grid) { position: relative; z-index: 1; }
.wk-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}
.wk-hero-top {
  position: relative;
  max-width: 1180px; margin: 0 auto; padding: 14px 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.wk-hero-crumb, .wk-hero-dates {
  font-size: 11.5px; color: var(--text-faint);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.wk-live {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 82, 60, 0.12); border: 1px solid rgba(255, 82, 60, 0.4);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ff7d6b;
}
.wk-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff523c; box-shadow: 0 0 8px rgba(255, 82, 60, 0.9);
  animation: wkPulse 1.2s ease-in-out infinite;
}
@keyframes wkPulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.35 } }

/* --- карусель лиг --- */
.wk-carousel {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding: 18px 24px 0; display: flex; align-items: center;
}
.wk-carousel-track {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  gap: 18px; padding: 0 20px; min-width: 0;
}
.wk-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04);
  color: var(--text); font-size: 18px; cursor: pointer;
}
.wk-arrow:hover { background: rgba(255, 255, 255, 0.1); }
.wk-league-pick {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 0; background: transparent; padding: 0; cursor: pointer;
  color: var(--text); font: inherit;
  transform-origin: bottom center; transition: transform 0.25s, opacity 0.25s;
}
.wk-badge { position: relative; display: flex; align-items: center; justify-content: center; }
.wk-hex-lg { width: 96px; height: 108px; }
.wk-badge-art { width: 100%; height: 100%; object-fit: contain; transition: filter 0.3s; }
/* Светится только выбранная лига; соседние в карусели стоят без ореола. */
.wk-league-pick.is-on .wk-badge-art { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--hex) 70%, transparent)) drop-shadow(0 0 34px color-mix(in srgb, var(--hex) 45%, transparent)); }
/* Пока картинки значка нет, показываем гексагон в цвет лиги. */
.wk-badge .wk-hex-fill, .wk-badge .wk-hex-inner, .wk-badge .wk-hex-glyph { display: none; }
.wk-badge.is-fallback .wk-hex-fill, .wk-badge.is-fallback .wk-hex-inner { display: block; }
.wk-badge.is-fallback .wk-hex-glyph { display: block; }
.wk-hex-fill, .wk-hex-inner {
  position: absolute; inset: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.wk-hex-fill { background: linear-gradient(160deg, var(--hex), rgba(255, 255, 255, 0.05)); box-shadow: 0 0 40px color-mix(in srgb, var(--hex) 35%, transparent); }
.wk-hex-inner { inset: 4px; background: #0d1210; }
.wk-hex-glyph { position: relative; font-size: 30px; line-height: 1; }
.wk-hex-label {
  font: 700 13px/1 Oswald, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
}
.wk-dots { display: none; }

.wk-hero-name { position: relative; text-align: center; padding: 14px 24px 22px; }
.wk-hero-big {
  margin: 0; font: 700 42px/1 Oswald, sans-serif;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.wk-hero-note { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.wk-hero-note b { color: var(--text); }
.wk-hero-title-row { max-width: 1180px; margin: 0 auto; padding: 24px; }

/* Полоса «к себе»: видна, когда смотришь чужую лигу. */
.wk-tome {
  position: relative; z-index: 1; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 24px; border: 0; border-top: 1px solid rgba(73, 243, 214, 0.3);
  background: linear-gradient(90deg, rgba(73, 243, 214, 0.16), rgba(73, 243, 214, 0.04));
  color: var(--text); font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
.wk-tome b { color: var(--cyan); }
.wk-tome-go { font: 700 11px Oswald, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }

/* «Ты здесь» под своей лигой в карусели. */
.wk-pick-mine {
  display: block; margin-top: 5px; padding: 3px 6px; border-radius: 3px;
  background: var(--cyan); color: #1a1200;
  font: 700 9px/1 Oswald, sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
}

/* --- бегущая лента моментов --- */
.wk-ticker {
  position: relative; height: 34px; display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid rgba(255, 201, 77, 0.25); background: rgba(255, 201, 77, 0.06);
}
.wk-ticker-tag {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  padding: 0 14px; display: flex; align-items: center;
  background: var(--accent); color: var(--accent-ink);
  font: 700 11px Oswald, sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.wk-ticker-line {
  display: flex; gap: 48px; white-space: nowrap; padding-left: 130px;
  font-size: 12.5px; color: var(--text);
  animation: wkTicker 48s linear infinite;
}
.wk-ticker-line b { color: var(--accent); font-family: Oswald, sans-serif; letter-spacing: 0.04em; }
.wk-ticker-line i { color: var(--text-faint); font-style: normal; }
.wk-ticker:hover .wk-ticker-line { animation-play-state: paused; }
@keyframes wkTicker { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }



/* ---- Заглушка до старта сезона ----
   Содержимое остаётся на месте, но размыто и не кликается: человек видит, что
   раздел настоящий, и при этом не принимает прошедшую неделю за сезон. */
.wk-main { position: relative; }
.wk-main.is-locked > *:not(#wkGate) {
  filter: blur(5px) saturate(0.85);
  pointer-events: none;
  user-select: none;
}
#wkGate {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
}
.wk-gate {
  position: sticky; top: 90px;
  width: min(620px, 100%); padding: 26px 26px 24px; text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--lg) 16%, transparent), transparent 45%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--lg) 45%, var(--border));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.wk-gate .wk-card-tag { color: var(--lg); }
.wk-gate-title { margin: 6px 0 0; font: 700 26px Oswald, sans-serif; letter-spacing: 0.02em; }
.wk-gate-timer { margin-top: 14px; }
.wk-gate-timer b {
  display: block; font: 600 44px/1 Oswald, sans-serif; color: var(--accent);
  text-shadow: 0 0 26px rgba(255, 201, 77, 0.35);
}
.wk-gate-timer span { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.wk-gate-league {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 18px auto 0; padding: 12px 16px; max-width: 420px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03);
  border: 1px solid color-mix(in srgb, var(--lg) 35%, transparent); text-align: left;
}
.wk-gate-league img {
  width: 64px; height: 72px; object-fit: contain; flex: none;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--lg) 55%, transparent));
}
.wk-gate-league i { display: block; font-style: normal; font: 700 10px Oswald, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.wk-gate-league b { display: block; margin: 2px 0 3px; font: 700 20px Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.wk-gate-league em { font-style: normal; font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.wk-gate-text { margin: 16px auto 0; max-width: 460px; font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.wk-gate-note { margin: 10px 0 0; font-size: 11.5px; color: var(--text-faint); }
.wk-gate .wk-btn { margin-top: 16px; }

@media (max-width: 900px) {
  #wkGate { padding: 16px 10px; }
  .wk-gate { top: 70px; padding: 18px 16px 16px; }
  .wk-gate-title { font-size: 20px; }
  .wk-gate-timer b { font-size: 34px; }
  .wk-gate-league { flex-direction: column; text-align: center; gap: 8px; }
}

/* Предпоказ: до понедельника таблицы показывают прошедшую неделю. */
.wk-live.is-preseason {
  background: rgba(255, 201, 77, 0.12); border-color: rgba(255, 201, 77, 0.4); color: var(--accent);
}
.wk-live.is-preseason i { background: var(--accent); box-shadow: 0 0 8px rgba(255, 201, 77, 0.9); }
.wk-preseason {
  padding: 9px 20px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 201, 77, 0.07);
  font-size: 12px; color: var(--text-dim);
}

/* ---- Старт сезона: полоса отсчёта и окно-приветствие ---- */
.wk-countdown {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 24px; border-top: 1px solid color-mix(in srgb, var(--league) 40%, transparent);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--league) 16%, transparent), transparent);
  font-size: 12.5px; color: var(--text-dim);
}
.wk-countdown-tag {
  font: 700 10.5px Oswald, sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--league);
}
.wk-countdown-text b { color: var(--text); font-family: Oswald, sans-serif; font-size: 14px; }

body.wk-modal-open { overflow: hidden; }
.wk-modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(6, 9, 7, 0.78); backdrop-filter: blur(2px); }
.wk-modal {
  position: fixed; z-index: 91; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--lg) 14%, transparent), transparent 38%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--lg) 40%, var(--border));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.wk-modal-x {
  position: absolute; right: 10px; top: 8px; width: 30px; height: 30px;
  border: 0; background: none; color: var(--text-faint); font-size: 22px; line-height: 1; cursor: pointer;
}
.wk-modal-x:hover { color: var(--text); }
.wk-modal-head h2 { margin: 6px 0 0; font: 700 24px Oswald, sans-serif; letter-spacing: 0.02em; }
.wk-modal-timer { margin-top: 6px; font-size: 12.5px; color: var(--text-dim); }
.wk-modal-timer b { color: var(--accent); font: 600 15px Oswald, sans-serif; }
.wk-modal-league {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03);
  border: 1px solid color-mix(in srgb, var(--lg) 35%, transparent);
}
.wk-modal-league img {
  width: 76px; height: 84px; object-fit: contain; flex: none;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--lg) 60%, transparent));
}
.wk-modal-league-tag { font: 700 10px Oswald, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.wk-modal-league-name { font: 700 22px Oswald, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; margin: 2px 0 3px; }
.wk-modal-league-note { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.wk-modal-note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-dim); }
.wk-modal-guide {
  display: grid; gap: 8px; margin-top: 16px;
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
}
.wk-modal-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.wk-modal-foot .wk-btn { margin-top: 0; }

@media (max-width: 560px) {
  .wk-modal { padding: 16px; width: calc(100vw - 16px); }
  .wk-modal-head h2 { font-size: 19px; }
  .wk-modal-league img { width: 58px; height: 64px; }
  .wk-modal-league-name { font-size: 18px; }
  .wk-countdown { padding: 8px 12px; gap: 8px; font-size: 11.5px; }
}

/* --- сетка страницы --- */
.wk-main {
  --lg: var(--accent);
  max-width: 1180px; margin: 0 auto; padding: 24px 24px 48px;
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start;
}
.wk-aside, .wk-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wk-duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.wk-main .sidebar-col { display: flex; flex-direction: column; gap: 16px; }

/* Карточка сезона: срезанный верхний правый угол и подложка в цвет лиги —
   страница перекрашивается целиком при переключении лиги. */
.wk-card {
  position: relative; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--lg) 9%, transparent), transparent 34%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--lg) 28%, var(--border));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  animation: wkCard 0.5s ease both;
}
@keyframes wkCard { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .wk-card { animation: none } }
.wk-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
/* Заголовок секции с шевроном в цвет лиги. */
.wk-card-title-sm {
  margin: 0; display: flex; align-items: center; gap: 8px;
  font: 700 15px Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
.wk-card-title-sm::before {
  content: ""; flex: none; width: 8px; height: 14px; background: var(--lg);
  clip-path: polygon(0 0, 60% 0, 100% 50%, 60% 100%, 0 100%, 40% 50%);
  box-shadow: 0 0 10px var(--lg);
}
.wk-card-title { margin: 0 0 8px; font: 700 19px Oswald, sans-serif; letter-spacing: 0.02em; }
.wk-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.wk-card-note { font-size: 11px; color: var(--text-faint); }
.wk-note { margin: 10px 0 0; font-size: 11.5px; color: var(--text-faint); line-height: 1.5; }
.wk-cyan { color: var(--cyan); }
.is-up { color: var(--green); }
.is-down { color: #ff7d6b; }
.wk-link {
  border: 0; background: transparent; padding: 0; cursor: pointer;
  font-size: 11px; color: var(--accent); border-bottom: 1px dashed rgba(255, 201, 77, 0.4);
}
.wk-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  margin-top: 12px; padding: 0 18px; border-radius: var(--radius-sm);
  background: var(--accent-grad); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
}
.wk-login p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* Шестиугольная оправа аватара — как в профиле; своё кольцо бирюзовое. */
.wk-hexa {
  display: block; flex: none; padding: 1.5px; background: rgba(255, 255, 255, 0.18);
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
.wk-hexa[data-me] { background: var(--cyan); }
.wk-hexa .wk-ava {
  width: 100%; height: 100%; border-radius: 0;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
.wk-hexa-sm { width: 32px; height: 32px; }
.wk-hexa-sm .wk-ava { font-size: 11px; }

/* --- аватары --- */
.wk-ava { width: 34px; height: 34px; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--surface-2); }
.wk-ava-letter { display: flex; align-items: center; justify-content: center; font: 700 12px Oswald, sans-serif; color: var(--text-dim); }
.wk-ava-sm { width: 28px; height: 28px; font-size: 10px; }
.wk-ava-md { width: 44px; height: 44px; font-size: 16px; color: var(--cyan); }
.wk-ava-pod { width: 100%; height: 100%; border-radius: 0; font-size: 18px; clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }

/* --- моя неделя --- */
.wk-me {
  border-color: rgba(73, 243, 214, 0.35);
  background: linear-gradient(180deg, rgba(73, 243, 214, 0.08), transparent 40%), var(--surface);
}
.wk-me-head { display: flex; align-items: center; justify-content: space-between; }
.wk-me-battles { font: 600 12px Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.wk-me-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wk-me-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wk-me-nick { font-size: 17px; font-weight: 800; }
.wk-clan-tag { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.wk-me-sub { font-size: 12px; color: var(--text-dim); }
.wk-me-place { font: 600 36px/1 Oswald, sans-serif; white-space: nowrap; }
.wk-me-place span { font-size: 14px; color: var(--text-faint); }
.wk-radar { display: block; margin-top: 4px; }
.wk-radar-legend { display: flex; justify-content: center; gap: 16px; font-size: 11px; color: var(--text-dim); }
.wk-radar-legend i { display: inline-block; width: 10px; vertical-align: middle; margin-right: 5px; }
.wk-line-cyan { height: 2px; background: var(--cyan); }
.wk-line-amber { height: 0; border-top: 2px dashed var(--accent); }

/* До следующей лиги: разрыв в понятных единицах, а не в очках силы. */
.wk-next {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 9px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03); border: 1px dashed color-mix(in srgb, var(--lg) 45%, transparent);
}
.wk-next-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lg); }
.wk-next-body { font-size: 12px; color: var(--text); }
.wk-next-body i { font-style: normal; color: var(--text-faint); }

/* Калибровка: полоса до 30 боёв, пока игрок ещё не в сезоне. */
.wk-calib {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 201, 77, 0.06); border: 1px dashed rgba(255, 201, 77, 0.35);
}
.wk-calib-head { display: flex; justify-content: space-between; align-items: baseline; }
.wk-calib-head > span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.wk-calib-head > b { font: 600 20px/1 Oswald, sans-serif; color: var(--accent); }
.wk-calib-head > b i { font-size: 12px; font-style: normal; color: var(--text-faint); }
.wk-calib-bar { height: 5px; margin-top: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wk-calib-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.wk-calib p { margin: 7px 0 0; font-size: 11.5px; color: var(--text-dim); }

/* Очки недели: одно большое число и строка слагаемых под ним. */
.wk-points {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(73, 243, 214, 0.1), rgba(73, 243, 214, 0.02));
  border: 1px solid rgba(73, 243, 214, 0.3);
}
.wk-points-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wk-points-head > span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.wk-points-head > b { font: 600 32px/1 Oswald, sans-serif; color: var(--cyan); }
.wk-points-parts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 11px; color: var(--text-faint); }
.wk-points-parts b { font-weight: 700; color: var(--text-dim); }

.wk-me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wk-tile {
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07);
}
.wk-tile > span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.wk-tile > b { display: block; font: 600 24px/1.1 Oswald, sans-serif; margin-top: 3px; }
.wk-tile > b i { font-size: 13px; font-style: normal; color: var(--text-faint); }
.wk-tile > em { display: block; font-size: 11px; font-style: normal; color: var(--text-faint); margin-top: 2px; }
.wk-tile-star { background: rgba(255, 201, 77, 0.08); border-color: rgba(255, 201, 77, 0.3); }
.wk-tile-star > span, .wk-tile-star > b { color: var(--accent); }
/* «Сейчас / нужно» вместо доли выполнивших: доля ни на что не влияет. */
.wk-task-bar { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wk-task-bar i { display: block; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, 0.35); transition: width 0.6s ease; }
.wk-task.is-done .wk-task-bar i { background: var(--accent); }
.wk-task-prog { flex: none; text-align: right; line-height: 1.25; }
.wk-task-prog b { display: block; font: 600 15px Oswald, sans-serif; color: var(--text); }
.wk-task-prog i { font-size: 10.5px; font-style: normal; color: var(--text-faint); }
.wk-task-prog.is-done b { color: var(--accent); }

.wk-stardots { display: flex; gap: 3px; margin-top: 6px; }
.wk-stardots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.wk-stardots i.is-on { background: var(--accent); }

.wk-daybars { position: relative; height: 44px; display: flex; align-items: flex-end; gap: 4px; margin-top: 12px; }
.wk-daybars i { flex: 1; border-radius: 2px 2px 0 0; }
.wk-daybars-base { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 201, 77, 0.6); }
.wk-daybars-legend { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-faint); margin-top: 4px; }

.wk-records { margin-top: 14px; }
.wk-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.wk-record { display: flex; flex-direction: column; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.wk-record span { color: var(--text-faint); font-size: 11.5px; }
.wk-me-link { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--accent); text-decoration: none; }

/* --- задания --- */
.wk-starring {
  display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 10px;
  border-radius: 6px; background: rgba(255, 201, 77, 0.06); border: 1px solid rgba(255, 201, 77, 0.2);
}
.wk-starring b { display: block; font: 700 12px Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.wk-starring span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.wk-tasks { display: flex; flex-direction: column; gap: 6px; }
.wk-task {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 74px; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft);
}
.wk-task.is-done { background: rgba(255, 201, 77, 0.07); border-color: rgba(255, 201, 77, 0.3); }
.wk-task-mark {
  width: 18px; height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.07); color: var(--accent-ink);
  font: 700 11px Oswald, sans-serif; transform: rotate(45deg);
}
.wk-task.is-done .wk-task-mark { background: var(--accent); }
.wk-task-mark i { font-style: normal; transform: rotate(-45deg); }
.wk-task-body b { display: block; font-weight: 600; font-size: 12.5px; }
.wk-task-body > span { display: block; font-size: 10.5px; color: var(--text-faint); line-height: 1.3; }

/* --- подиум и таблица --- */
.wk-board { padding: 0; overflow: hidden; }
.wk-podium {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: end;
  padding: 20px 20px 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}
.wk-pod {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 12px 8px 0; text-decoration: none; color: var(--text);
  border-radius: 10px 10px 0 0; position: relative;
}
/* Фон профиля на подиуме: картинка сверху, к пьедесталу гаснет. */
.wk-pod.has-bg {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.78) 50%, rgba(17, 20, 18, 0.98) 100%),
    var(--profile-bg-image) center top / cover no-repeat;
}
/* Аватар — шестиугольник, как в профиле. Рамка — подложка того же шестиугольника на 2px больше:
   border с clip-path не сочетается, тень — через drop-shadow на обёртке. */
.wk-pod-ava-wrap { display: block; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--ring) 45%, transparent)); }
.wk-pod-ava {
  display: block; padding: 2px; background: var(--ring);
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); box-sizing: border-box;
}
.wk-pod-ava .wk-ava { background: var(--surface-2); }
.wk-pod-nick { margin-top: 10px; font-weight: 700; font-size: 14px; }
.wk-pod-sub { font-size: 11.5px; color: var(--text-dim); }
.wk-pod-value { font: 600 30px/1 Oswald, sans-serif; margin-top: 6px; text-shadow: 0 0 22px color-mix(in srgb, currentColor 50%, transparent); }
.wk-pod-block {
  width: 100%; margin-top: 12px; padding-top: 6px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 6px, rgba(255, 255, 255, 0.025) 6px 12px),
    linear-gradient(180deg, color-mix(in srgb, var(--pod) 26%, transparent), transparent);
  border-top: 2px solid; display: flex; align-items: flex-start; justify-content: center;
  font: 700 22px Oswald, sans-serif;
}
.wk-pod.is-me .wk-pod-nick { color: var(--cyan); }

.wk-board-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.wk-board-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.wk-board-tabs::-webkit-scrollbar { display: none; }
.wk-board-tab {
  flex: none; padding: 7px 14px; border: 0; background: transparent; cursor: pointer;
  color: var(--text-faint); font: 700 12px Oswald, sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 2px solid transparent;
}
.wk-board-tab.is-on {
  color: var(--accent); border-bottom-color: var(--accent);
  background: linear-gradient(0deg, rgba(255, 201, 77, 0.22) 0%, rgba(255, 201, 77, 0.06) 55%, transparent 100%);
  border-radius: 6px 6px 0 0;
}
.wk-board-hint { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }

/* Появление строк и подиума при смене лиги или доски. */
@keyframes wkIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.wk-in { animation: wkIn 0.34s ease both; }
@media (prefers-reduced-motion: reduce) { .wk-in { animation: none } }

.wk-rows { display: flex; flex-direction: column; padding: 6px 12px 12px; }
.wk-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(64px, 140px) auto;
  gap: 10px; align-items: center; padding: 9px 10px;
  border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--text);
}
.wk-row:hover { background: rgba(255, 255, 255, 0.03); }
/* Фон профиля в строке: слой под ячейками, гаснет к правому краю (как .pl-row-bg). */
.wk-row.has-bg { position: relative; border-radius: 6px; }
.wk-row.has-bg > *:not(.wk-row-bg) { position: relative; z-index: 1; }
.wk-row-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%),
    var(--profile-bg-image) left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 82%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 82%);
}
.wk-row.is-me { background: rgba(73, 243, 214, 0.08); box-shadow: inset 3px 0 0 var(--cyan); border-radius: 4px; }
.wk-row-place { font: 600 16px Oswald, sans-serif; color: var(--text-faint); }
.wk-row-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wk-row-who b { display: block; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-row-who b i { font-size: 11px; color: var(--text-faint); font-weight: 500; font-style: normal; }
.wk-row-who b em { font-style: normal; font-size: 10px; color: var(--cyan); }
.wk-row-who > span > span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.wk-row-spark { display: flex; align-items: center; }
.wk-spark { display: block; }
.wk-spark-empty { display: block; height: 28px; }
/* Значение и подпись под ним одной колонкой: вторая цифра справа зависит
   от вкладки (бои на «Очках», вклад в очки на остальных). */
.wk-row-val {
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right; white-space: nowrap; line-height: 1.15;
}
.wk-row-val > i { font-style: normal; font-size: 11px; color: var(--text-dim); }
.wk-row-val > i.is-pts { color: var(--cyan); }
.wk-row-value { font: 600 22px Oswald, sans-serif; }
.wk-gap { text-align: center; color: var(--text-faint); font-size: 12px; padding: 4px 0; }

/* --- витрина --- */
.wk-noms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.wk-nom { display: flex; flex-direction: column; }
.wk-nom-first {
  display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 12px 12px 12px 10px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 209, 102, 0.16);
  text-decoration: none; color: var(--text);
  transition: transform 0.15s, border-color 0.15s;
}
.wk-nom-first:hover { border-color: rgba(255, 201, 77, 0.5); transform: translateY(-2px); }
.wk-nom-edge { align-self: stretch; border-radius: 2px; background: linear-gradient(180deg, var(--medal), color-mix(in srgb, var(--medal) 30%, transparent)); }
.wk-nom-title { display: block; font: 700 10px Oswald, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.wk-nom-body b { display: block; font-weight: 700; font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-nom-text { display: block; font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-nom-value { font: 600 24px/1 Oswald, sans-serif; color: var(--medal); text-shadow: 0 0 14px color-mix(in srgb, var(--medal) 40%, transparent); }
.wk-nom-rest { display: flex; flex-direction: column; padding: 4px 10px 0; }
.wk-nom-rest a {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 4px 0; font-size: 11.5px; color: var(--text-dim); text-decoration: none;
}
.wk-nom-rest a:hover { color: var(--text); }
.wk-nom-rest i { font-style: normal; font: 600 11px Oswald, sans-serif; color: var(--medal); }
.wk-nom-rest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-nom-rest b { font: 600 12px Oswald, sans-serif; color: var(--text); }

/* --- соперники --- */
.wk-rivals { display: flex; flex-direction: column; gap: 6px; }
.wk-rival {
  display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft);
  text-decoration: none; color: var(--text);
}
.wk-rival.is-me { background: rgba(73, 243, 214, 0.08); border-color: rgba(73, 243, 214, 0.35); }
.wk-rival-place { font: 600 16px Oswald, sans-serif; color: var(--text-faint); }
.wk-rival-body b { display: block; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-rival-body b i { font-size: 11px; color: var(--text-faint); font-weight: 500; font-style: normal; }
.wk-rival-body > span { display: block; font-size: 11px; }
.wk-rival-value { font: 600 18px Oswald, sans-serif; }

/* --- кто где играет --- */
.wk-spread { display: flex; flex-direction: column; gap: 8px; }
.wk-spread-row {
  display: grid; grid-template-columns: 22px 84px minmax(0, 1fr) 32px; gap: 10px; align-items: center;
  border: 0; background: transparent; padding: 0; cursor: pointer; color: var(--text);
  font: inherit; text-align: left; opacity: 0.55;
}
.wk-spread-row.is-on { opacity: 1; }
.wk-spread-row[disabled] { opacity: 0.25; cursor: default; }
.wk-spread-mark { width: 18px; height: 20px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); box-shadow: 0 0 10px currentColor; }
.wk-spread-label { font-size: 12.5px; font-weight: 600; }
.wk-spread-bar { height: 20px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.wk-spread-bar i { display: block; height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.wk-spread-num { font: 600 18px Oswald, sans-serif; text-align: right; }
.wk-spread-note { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }

/* --- клановый зачёт --- */
.wk-clans { display: flex; flex-direction: column; }
.wk-clan {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 6px; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: var(--text); border-radius: 4px;
}
.wk-clan.is-me { background: rgba(73, 243, 214, 0.08); }
.wk-clan-place {
  width: 22px; height: 24px; display: flex; align-items: center; justify-content: center;
  font: 700 13px Oswald, sans-serif; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.08);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.wk-clan-place-1 { color: #1a1200; background: #ffd166; }
.wk-clan-place-2 { color: #1a1200; background: #dfe5df; }
.wk-clan-place-3 { color: #1a1200; background: #d59a5c; }
.wk-clan-body > b { display: block; font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-clan-body > b span { font-weight: 500; color: var(--text-dim); }
.wk-clan-meter { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wk-clan-meter i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.wk-clan-meter i b { display: block; height: 100%; background: linear-gradient(90deg, rgba(255, 201, 77, 0.5), var(--accent)); }
.wk-clan-meter em { font-style: normal; font-size: 10.5px; color: var(--text-faint); white-space: nowrap; }
.wk-clan-value { font: 600 26px Oswald, sans-serif; color: var(--accent); }

/* --- сайдбар --- */
.wk-side { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.wk-moment { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.wk-moment b { display: block; font-size: 12.5px; }
.wk-moment span span { display: block; font-size: 11px; color: var(--text-faint); }
/* «Как это устроено» — выпадающий блок: справка нужна раз, а место занимает
   каждый раз. Стрелка поворачивается, когда блок раскрыт. */
.wk-how-card { padding: 0; }
.wk-how-sum {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; cursor: pointer; list-style: none;
}
.wk-how-sum::-webkit-details-marker { display: none; }
.wk-how-sum i {
  flex: none; width: 8px; height: 8px; border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint); transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.wk-how-card[open] .wk-how-sum i { transform: rotate(225deg) translate(-2px, -2px); }
.wk-how-card[open] .wk-how-sum { padding-bottom: 4px; }
.wk-how { padding: 0 18px 18px; }
/* Формула отдельной строкой: её читают глазами, а не в потоке текста. */
/* Список «что сколько даёт» внутри блока справки: подпись слева, значение
   справа. Читается быстрее строки-формулы, которую приходилось разбирать. */
.wk-plist { display: block; margin: 7px 0 8px; }
.wk-plist > span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wk-plist > span:last-child { border-bottom: 0; }
.wk-plist > span > i { font-style: normal; color: var(--text-dim); }
/* Сбрасываем капс и Oswald, которые .wk-how-item задаёт своему заголовку:
   здесь b — это значение в строке, а не название блока. */
.wk-plist > span > b {
  display: inline; margin: 0; white-space: nowrap;
  font: 600 12px/1.4 Inter, sans-serif; letter-spacing: 0; text-transform: none;
  color: var(--text);
}

.wk-formula {
  display: block; margin: 6px 0 4px; padding: 8px 10px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.05); border-left: 2px solid var(--accent);
  font: 500 12.5px/1.5 Inter, sans-serif; letter-spacing: 0; color: var(--text);
}

.wk-how {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px; font-size: 12px; color: var(--text-dim); line-height: 1.5;
}
.wk-how-item { padding: 8px 10px; border-left: 2px solid var(--lg); background: rgba(255, 255, 255, 0.025); }
.wk-how-item b {
  display: block; margin-bottom: 2px; color: var(--text);
  font: 700 12.5px Oswald, sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}

.wk-only-mob { display: none; }

/* ---------- телефон: одна колонка, порядок как в макете 1c ---------- */
@media (max-width: 900px) {
  .wk-main { display: flex; flex-direction: column; gap: 12px; padding: 14px 12px 40px; }
  .wk-aside, .wk-content { display: contents; }
  #wkMe { order: 1; }
  #wkBoard { order: 2; }
  #wkTasks { order: 3; }
  #wkGallery { order: 4; }
  #wkRivals { order: 5; }
  #wkClans { order: 6; }
  #wkSpread { order: 7; }
  #wkHow { order: 8; }
  .wk-main .sidebar-col { order: 9; }

  .wk-only-desk { display: none !important; }
  .wk-only-mob { display: flex; }
  .wk-daybars-legend { display: flex; }


  /* --- сезон на телефоне: макет «мобильная версия» --- */
  /* Водяной знак уезжает вправо: слева на узком экране он лез под карусель. */
  .wk-hero-mark {
    left: auto; right: -30%; top: -10%; height: 120%;
    transform: rotate(8deg);
    -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 30%, transparent 100%);
  }
  .wk-hero-box {
    background:
      radial-gradient(420px 220px at 50% 0%, color-mix(in srgb, var(--league) 52%, transparent), transparent 70%),
      radial-gradient(260px 160px at 50% 55%, color-mix(in srgb, var(--league) 24%, transparent), transparent 70%),
      linear-gradient(180deg, #0d1210, var(--bg));
    border-bottom: 1px solid color-mix(in srgb, var(--league) 35%, var(--border));
  }
  .wk-hero-grid { background-size: 32px 32px; }
  .wk-hero-big { font-size: 28px; text-shadow: 0 0 24px color-mix(in srgb, currentColor 50%, transparent); }

  /* Спарклайн на телефоне лез на ник и цифры: колонки на 375px не хватает,
     а история по дням есть в карточке «Моя неделя». */
  .wk-row-spark { display: none; }
  .wk-row { grid-template-columns: 26px minmax(0, 1fr) auto !important; }

  /* Все шесть вкладок видны сразу: в одну строку они лезут только шрифтом
     в 9px с обрезанным словом, поэтому раскладываем сеткой 3x2. */
  .wk-board-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .wk-board-tab {
    min-width: 0; padding: 0 6px; min-height: 34px;
    font-size: 11px; letter-spacing: 0.04em; text-align: center;
  }

  /* Шапка выпадающей справки — обычная строка, а не полкарточки. */
  .wk-how-sum { padding: 10px 12px; }
  .wk-how-card[open] .wk-how-sum { padding-bottom: 2px; }
  .wk-how { padding: 0 12px 12px; }

  /* min-width:0 — иначе строка вкладок в колонке-флексе распирает страницу.
     Обёртки блоков (#wkBoard и соседи) — тоже элементы этого флекса. */
  .wk-main > *, .wk-aside > *, .wk-content > * { min-width: 0; max-width: 100%; }
  .wk-card { padding: 14px; min-width: 0; }
  .wk-card-title-sm { font-size: 14px; }
  .wk-board-bar, .wk-board-tabs { min-width: 0; }

  /* Место в таблице — шестиугольный жетон, у призёров залитый. */
  .wk-row { min-height: 52px; }
  .wk-row-place {
    width: 26px; height: 28px; display: flex; align-items: center; justify-content: center;
    font: 700 13px Oswald, sans-serif; color: var(--text-dim);
    background: rgba(255, 255, 255, 0.07);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  }
  .wk-row-place-1 { color: #1a1200; background: #ffd166; }
  .wk-row-place-2 { color: #1a1200; background: #dfe5df; }
  .wk-row-place-3 { color: #1a1200; background: #d59a5c; }
  .wk-row.is-me .wk-row-place { color: #1a1200; background: var(--cyan); }
  .wk-row-value { font-size: 19px; }
  .wk-hexa-sm { width: 30px; height: 30px; }

  /* Достижения лентой в бок: шесть номинаций в столбик — это экран прокрутки. */
  .wk-noms {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -14px; padding: 0 14px 2px;
  }
  .wk-noms::-webkit-scrollbar { display: none; }
  .wk-nom { flex: none; width: 210px; }
  .wk-nom-first { background: linear-gradient(180deg, rgba(255, 209, 102, 0.1), transparent), var(--surface); }

  .wk-how { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wk-tome { padding: 9px 12px; }

  .wk-hero-top { padding: 10px 12px 0; flex-wrap: wrap; gap: 8px; }
  .wk-hero-dates { display: none; }
  .wk-carousel { padding: 4px 4px 0; }
  .wk-carousel-track { gap: 10px; padding: 0 4px; }
  .wk-hex-lg { width: 64px; height: 72px; }
  .wk-hex-glyph { font-size: 20px; }
  .wk-hex-label { font-size: 11px; }
  .wk-arrow { border: 0; background: transparent; color: var(--text-dim); font-size: 22px; }
  .wk-dots { display: flex; justify-content: center; gap: 5px; padding-bottom: 10px; }
  .wk-dots i { width: 5px; height: 5px; border-radius: 3px; transition: width 0.2s; }
  .wk-dots i.is-on { width: 16px; }
  .wk-hero-name { padding: 4px 12px 14px; }

  .wk-hero-note { font-size: 12px; margin-top: 5px; }
  .wk-ticker { display: none; }

  .wk-card { padding: 14px; }
  .wk-me-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wk-me-place { font-size: 30px; }
  .wk-radar { display: none; }

  /* Подиум на телефоне не помещается: первые три идут обычными строками. */
  .wk-podium { display: none; }
  .wk-board-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .wk-board-hint { white-space: normal; }
  .wk-board-tabs { gap: 6px; }
  .wk-board-tab {
    min-height: 36px; border-radius: 6px; border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04); border-bottom-width: 1px;
  }
  .wk-board-tab.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .wk-rows { padding: 4px 8px 8px; }
  .wk-row { grid-template-columns: 28px minmax(0, 1fr) 64px auto; gap: 8px; min-height: 52px; padding: 8px 4px; }
  .wk-row-spark .wk-spark, .wk-row-spark .wk-spark-empty { width: 64px !important; height: 24px; }
  .wk-row-spark svg { width: 64px; height: 24px; }
  .wk-row-value { font-size: 17px; }

  /* Витрина — горизонтальной лентой, как в 1c. */
  .wk-noms {
    display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -14px; padding: 0 14px 4px;
  }
  .wk-noms::-webkit-scrollbar { display: none; }
  .wk-nom { flex: none; width: 210px; }
  .wk-nom-first { border-color: rgba(255, 201, 77, 0.25); background: linear-gradient(180deg, rgba(255, 201, 77, 0.08), transparent), var(--surface); }
  .wk-nom-rest { display: none; }
  .wk-task { min-height: 44px; }
  .wk-rival { min-height: 48px; }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .wk-main { grid-template-columns: 300px minmax(0, 1fr); gap: 16px; padding: 20px 16px 40px; }
  .wk-row { grid-template-columns: 30px minmax(0, 1fr) 100px auto; }
  .wk-row-spark .wk-spark { width: 100px !important; }
  .wk-duo { grid-template-columns: minmax(0, 1fr); }
  .wk-noms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
