/* ============ Экраны главной ============ */

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 18px);
  min-height: min(100vh, 980px);
  overflow: hidden;
  isolation: isolate;
}
.hero > .container { position: relative; z-index: 1; }
.hero__meta {
  display: flex;
  align-items: stretch;
  gap: clamp(20px, 4vw, 56px);
}
.hero__badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  background: var(--orange);
  color: #fff;
  flex-shrink: 0;
}
.hero__badge span { font-size: 12px; opacity: 0.85; }
.hero__badge strong { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: 0.08em; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 5vw, 80px);
  margin: 0;
  align-items: flex-end;
}
.meta dt { font-family: var(--f-mono); font-size: 14px; color: var(--ink-3); }
.meta dd { margin: 0; font-family: var(--f-mono); font-weight: 700; font-size: 15px; }
.scribble { display: block; width: 100%; height: 14px; margin: 8px 0 0; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: calc(min(100vh, 980px) - 110px);
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(54px, 9.4vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: #fff;
  -webkit-text-stroke: clamp(4px, 0.55vw, 8px) var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.06em 0 var(--ink);
  transform: skewX(-6deg);
  transform-origin: left bottom;
  margin-left: -4px;
}
.wordmark__line { display: block; width: fit-content; position: relative; }
.wordmark__line + .wordmark__line { padding-left: 0.5em; }
.wordmark__slash {
  position: absolute;
  right: -0.38em;
  top: -0.12em;
  width: 0.2em;
  height: 1.05em;
  background: var(--orange);
  transform: skewX(-22deg);
  box-shadow: 0.05em 0.06em 0 var(--ink);
  z-index: -1;
}
.hero__sub {
  margin-top: 28px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 20px);
  letter-spacing: 0.5em;
  white-space: nowrap;
  padding-left: clamp(24px, 7vw, 100px);
}
.hero__lead {
  margin-top: 26px;
  max-width: 470px;
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--ink-3);
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.hero__cta > .btn { min-height: 58px; padding: 0 28px; }

.hero__visual { position: relative; align-self: stretch; min-height: 520px; }
.hero__art { position: absolute; inset: 0 -40px 0 0; }
.hero__art.art--empty .art__placeholder { inset: 10px 40px 10px 20px; }
.hero__stats {
  position: absolute;
  right: 0;
  top: 18%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 2;
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__meta { flex-direction: column; gap: 14px; }
  .hero__badge { align-self: flex-start; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 32px; padding-bottom: 40px; }
  /* На телефоне арт идёт блоком, а плашки — строкой под ним, чтобы не закрывать персонажа */
  .hero__visual { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
  .hero__art { position: relative; inset: auto; height: min(100vw, 440px); }
  .hero__art img { position: absolute; inset: 0; }
  .hero__art.art--empty .art__placeholder { inset: 0; }
  .hero__stats { position: static; flex-direction: row; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .stat__num { font-size: 34px; }
  .crosshair { display: none; }
}

/* ---------- 2. О клубе ---------- */
.about { position: relative; }
.about__band { padding: clamp(60px, 7vw, 92px) 0; margin-top: -20px; z-index: 2; }
.statement {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: clamp(22px, 2.9vw, 38px);
  line-height: 1.3;
  max-width: 1100px;
}
/* Сетка плиток «О клубе» */
.about-section { padding-bottom: clamp(80px, 10vw, 130px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
}
/* срезанные углы, как в референсе */
.cut-tr { clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.cut-tl { clip-path: polygon(44px 0, 100% 0, 100% 100%, 0 100%, 0 44px); }
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, 44px 100%, 0 calc(100% - 44px)); }
.cut-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%); }

.tile--fact { grid-column: span 4; }
.tile--zones { grid-column: span 4; }
.tile--photo-1 { grid-column: span 4; }
.tile--write { grid-column: span 7; }
.tile--rating { grid-column: span 5; }
.tile--photo-2 { grid-column: span 4; }
.tile--map { grid-column: span 4; }
.tile--account { grid-column: span 4; }

.tile__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.15; }
.tile__text { font-size: 14.5px; line-height: 1.45; }
.tile__muted { font-size: 13px; color: var(--muted); }

.tile--dark { background: var(--ink); color: #fff; }
.tile--dark .tile__text { color: #d9dade; }
.tile--light { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.tile--light .tile__text { color: var(--ink-3); }
.tile--orange { background: linear-gradient(135deg, #ff9a3c 0%, var(--orange) 55%, #e2420e 100%); color: #fff; }
.tile--orange .tile__text { color: rgba(255, 255, 255, 0.9); }

/* Факт о нас: кольца с логотипом */
.tile--fact { flex-direction: row; align-items: center; gap: 20px; }
.tile__ring {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, var(--ink) 0 27px, transparent 27.5px),
    repeating-radial-gradient(circle, transparent 0 7px, rgba(255, 255, 255, 0.55) 7px 8px);
}
.tile__ring img { width: 42px; height: 42px; filter: brightness(0) invert(1); }

/* Три зоны */
.zone-chips { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.zone-chip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--paper-2); font-size: 14px; }
.zone-chip__dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--z1), var(--z3)); flex-shrink: 0; }
.zone-chip b { font-family: var(--f-price); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.zone-chip span:last-child { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* Фото клуба */
.tile--photo { padding: 0; margin: 0; background: var(--paper-2); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--photo.art--empty .art__placeholder { inset: 0; border-radius: 0; border: 0; }

/* Напишите нам: с персонажем */
.tile--write { min-height: 280px; padding: 30px 32px; }
.tile__body { position: relative; z-index: 2; max-width: 56%; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.tile__body .pill-btn { margin-top: auto; }
.tile__art { position: absolute; right: 0; top: 0; bottom: 0; width: 48%; z-index: 1; }
.tile__art img { position: absolute; inset: 0; object-position: right bottom; }
.tile__art.art--empty .art__placeholder { inset: 16px; border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); }
.tile__art.art--empty .art__placeholder span,
.tile__art.art--empty .art__placeholder strong { color: #fff; }

/* Рейтинг и приз */
.tile__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tile__glyph { width: 84px; flex-shrink: 0; color: var(--ink); }
.tile__link { margin-top: auto; font-weight: 800; color: var(--orange); text-decoration: none; }
.tile__link:hover { text-decoration: underline; }

/* Адрес: стилизованная карта */
.tile--map {
  align-items: center;
  text-align: center;
  color: #fff;
  background-color: #2a2b30;
  background-image:
    radial-gradient(circle at 50% 48%, rgba(255, 106, 0, 0.28), transparent 50%),
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.12) 46% 48.5%, transparent 48.5%),
    linear-gradient(28deg, transparent 62%, rgba(255, 255, 255, 0.09) 62% 64%, transparent 64%),
    linear-gradient(160deg, transparent 30%, rgba(255, 255, 255, 0.07) 30% 31.5%, transparent 31.5%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 26px);
}
.tile--map .tile__text { color: #d9dade; }
.tile__pin { width: 44px; height: 44px; color: var(--orange); filter: drop-shadow(0 6px 10px rgba(255, 106, 0, 0.5)); margin: 4px 0; }
.tile__pin svg { width: 44px; height: 44px; }
.tile--map .pill-btn { margin-top: auto; width: 100%; }

/* Кнопка на плитках: одна белая капсула, внутри текст и оранжевый кружок со стрелкой */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 5px 5px 5px 26px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.pill-btn:hover { box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.55); }
.pill-btn:active { transform: translateY(1px); }
.pill-btn__label {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-btn__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  transition: transform 0.25s ease;
}
.pill-btn__icon svg { width: 18px; height: 18px; }
.pill-btn:hover .pill-btn__icon { transform: rotate(45deg); }
.pill-btn--wide { justify-content: space-between; }
.pill-btn--wide .pill-btn__label { flex: 1; text-align: center; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile--fact, .tile--zones { grid-column: span 3; }
  .tile--photo-1 { grid-column: span 6; min-height: 240px; }
  .tile--write, .tile--rating { grid-column: span 6; }
  .tile--photo-2, .tile--map { grid-column: span 3; }
  .tile--account { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento > .tile { grid-column: auto !important; }
  .tile--fact { flex-direction: column; align-items: flex-start; }
  .tile__ring { width: 80px; height: 80px; }
  .tile__ring img { width: 36px; height: 36px; }
  .tile--photo { min-height: 190px !important; }
  .tile--write { padding: 24px; min-height: 300px; }
  .tile__body { max-width: 62%; }
  .tile__art { width: 50%; }
  .pill-btn { height: 50px; padding-left: 22px; gap: 12px; }
  .pill-btn__icon { width: 40px; height: 40px; }
}

/* ---------- 3. Прайс ---------- */
.prices { overflow: hidden; isolation: isolate; background: var(--paper); }
.prices > .container { position: relative; z-index: 1; }
/* Прайс: у каждой зоны свой цвет, белый текст, шрифт Oswald.
   Цвет зоны задаётся в js/content.js (orange / purple / gold). */
.z-orange { --z1: #ff9a3c; --z2: #ff6a00; --z3: #d9420a; --zglow: rgba(255, 106, 0, 0.55); }
.z-purple { --z1: #a866ff; --z2: #7b2ff7; --z3: #5418c4; --zglow: rgba(123, 47, 247, 0.55); }
.z-gold   { --z1: #e9bd4c; --z2: #c48f17; --z3: #8e6206; --zglow: rgba(196, 143, 23, 0.6); }

/* Плитки зон */
.zone-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.zone-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 16px 16px 14px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--z1) 0%, var(--z2) 55%, var(--z3) 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  opacity: 0.78;
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.zone-pick:hover { opacity: 1; transform: translateY(-2px); }
.zone-pick__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}
.zone-pick__icon svg { width: 28px; height: 28px; }
.zone-pick__icon--lg { width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--z2); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.35); }
.zone-pick__icon--lg svg { width: 34px; height: 34px; }
.zone-pick__text { display: flex; flex-direction: column; min-width: 0; }
.zone-pick__name { font-family: var(--f-price); font-weight: 700; font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.05; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.zone-pick__meta { margin-top: 4px; font-family: var(--f-price); font-weight: 400; font-size: 14px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.88); }
.zone-pick__arrow { margin-left: auto; width: 22px; height: 22px; color: rgba(255, 255, 255, 0.75); transition: transform 0.2s ease, color 0.2s ease; }
.zone-pick__arrow svg { width: 22px; height: 22px; }
/* Выбранная зона: яркая, с белой обводкой и свечением своего цвета */
.zone-pick.is-active {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--z2), 0 18px 34px -14px var(--zglow);
}
.zone-pick.is-active .zone-pick__icon { background: #fff; color: var(--z2); }
.zone-pick.is-active .zone-pick__arrow { color: #fff; transform: rotate(90deg); }

/* Прайс выбранной зоны */
.prices__layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.price-panel {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 24px;
  background: linear-gradient(140deg, var(--z1) 0%, var(--z2) 50%, var(--z3) 100%);
  box-shadow: 0 26px 48px -28px var(--zglow);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.price-panel::after {
  /* большая иконка-монограмма клуба на фоне */
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 240px;
  height: 240px;
  background: url("../assets/logo-mark.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}
.price-panel.is-switching { animation: panel-in 0.35s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .price-panel.is-switching { animation: none; } }
.price-panel__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.price-panel__title { font-family: var(--f-price); font-size: clamp(32px, 3.6vw, 42px); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; }
.price-panel__title { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); }
.price-panel__sub { font-family: var(--f-price); font-size: 14px; color: rgba(255, 255, 255, 0.85); text-transform: uppercase; letter-spacing: 0.1em; }
.tariffs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 146px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}
.tariff:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.22); }
.tariff__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #fff; color: var(--z2); margin-bottom: 10px; }
.tariff__icon svg { width: 20px; height: 20px; }
.tariff__name { font-family: var(--f-price); font-weight: 600; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; }
.tariff__note { font-family: var(--f-price); font-size: 14px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); }
.tariff__price {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--f-price);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.tariff__price small { font-size: 20px; opacity: 0.85; }

.prices__aside {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
}
.prices__aside h3 { font-family: var(--f-price); font-size: 26px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 18px; }
.steps { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 14px; color: #d9dade; }
.steps li::before {
  content: "0" counter(s);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--orange);
  padding-top: 1px;
}
.prices__note { font-size: 12px; color: var(--muted-light); border-top: 1px solid var(--line-light); padding-top: 16px; }

@media (max-width: 900px) {
  .prices__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  /* на телефоне плитки компактные: иконка над названием */
  .zone-picker { gap: 8px; }
  .zone-pick { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 16px; }
  .zone-pick__icon { width: 42px; height: 42px; border-radius: 12px; }
  .zone-pick__icon svg { width: 24px; height: 24px; }
  .zone-pick__name { font-size: clamp(15px, 4.4vw, 19px); letter-spacing: 0.01em; }
  .zone-pick__meta { font-size: 12px; }
  .zone-pick__text { width: 100%; }
  .zone-pick__arrow { display: none; }
  .tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tariff { min-height: 132px; padding: 14px 12px; }
  .tariff__name { font-size: 16px; }
  .tariff__price { font-size: 28px; }
}

/* ---------- 4. Рейтинг ---------- */
.rating { background: var(--paper-2); }
.board {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #eceae6 0%, #e2dfda 100%);
  box-shadow: var(--shadow-card);
}
.board__bar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  min-height: 62px;
}
.board__logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: 18px; }
.board__nav { display: flex; gap: 22px; font-family: var(--f-display); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.board__nav span { padding: 20px 0 18px; border-bottom: 3px solid transparent; color: rgba(255,255,255,0.86); }
.board__nav .is-active { color: var(--orange); border-color: var(--orange); }
.board__me { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.board__me .points-badge { display: inline-flex; background: transparent; }
.board__user { display: flex; flex-direction: column; line-height: 1.15; font-size: 14px; }
.board__user small { color: var(--muted-light); font-size: 11px; }
.board__body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  padding: 36px 36px 40px;
  min-height: 560px;
  position: relative;
}
.board__art { position: relative; margin: -36px 0 -40px -36px; }
.board__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.board__art.art--empty .art__placeholder { inset: 36px 0 40px 36px; }
.board__table { min-width: 0; }
.board-row { grid-template-columns: auto 1fr auto; }
.board__gap { text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .board__nav { display: none; }
  .board__body { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 24px; }
  .board__art { display: none; }
  .board__bar { padding: 10px 16px; gap: 12px; }
  .board__logo { font-size: 14px; }
  .board__user { display: none; }
}

/* ---------- Викторины и мини-игры ---------- */
.play { overflow: hidden; isolation: isolate; }
.play > .container { position: relative; z-index: 1; }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 0 0 1px var(--line);
}
.game-card--dark { background: var(--ink); color: #fff; box-shadow: none; }
.game-card__top { display: flex; justify-content: space-between; align-items: center; }
.game-card__period { font-size: 12px; color: var(--muted); }
.game-card--dark .game-card__period { color: var(--muted-light); }
.game-card h3 { font-size: 24px; font-weight: 800; font-style: italic; text-transform: uppercase; }
.game-card p { font-size: 14px; color: var(--ink-3); }
.game-card--dark p { color: var(--muted-light); }
.game-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 4px; }
.game-card__facts div {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper-2);
}
.game-card--dark .game-card__facts div { background: var(--ink-2); }
.game-card__facts b { font-family: var(--f-mono); font-size: 20px; }
.game-card__facts span { font-size: 12px; color: var(--muted); }
.game-card .btn { margin-top: auto; }
.game-card__locked { background: var(--paper-3); color: var(--ink); opacity: 1 !important; white-space: normal; }
.game-card--dark .game-card__locked { background: var(--ink-3); color: #fff; }
/* Карточка «Мини-игры — скоро» */
.game-card--soon {
  background: repeating-linear-gradient(-45deg, rgba(255, 106, 0, 0.05) 0 14px, transparent 14px 28px), #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 106, 0, 0.35);
}
.game-card__soon-icon { flex-grow: 1; display: grid; place-items: center; color: var(--orange); opacity: 0.55; }
.game-card__soon-icon svg { width: 76px; height: 76px; }
@media (max-width: 1000px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .games { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 5. Приз месяца ---------- */
.prize { overflow: hidden; isolation: isolate; }
.prize > .container { position: relative; z-index: 1; }
.prize__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.prize__art { min-height: 460px; }
.prize-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.prize-card::after {
  /* большая монограмма клуба на фоне */
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 300px;
  height: 300px;
  background: url("../assets/logo-mark.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.05;
  pointer-events: none;
}
.prize-card__title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--orange);
}
.prize-card__text { max-width: 520px; color: #d9dade; }
.prize-card__timer { display: flex; flex-direction: column; gap: 10px; }
.prize-card__timer > .mono { font-size: 12px; color: var(--muted-light); text-transform: uppercase; letter-spacing: 0.06em; }
.countdown { display: flex; gap: 10px; }
.countdown div {
  min-width: 82px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
}
.countdown b { font-family: var(--f-mono); font-size: 32px; line-height: 1.1; }
.countdown span { font-size: 12px; color: var(--muted-light); }
.prize-card__reset { font-size: 12px; color: var(--muted-light); }
.prize-card__reset b { color: #fff; }
.prize-card__leader {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}
.prize-card__leader .mono { font-size: 12px; color: var(--muted-light); }
.prize-card__leader-nick { font-family: var(--f-display); font-size: 22px; font-style: italic; text-transform: uppercase; }
.prize-card__mine { margin-top: 10px; font-size: 14px; color: #d9dade; }
.prize-card__mine b { color: var(--orange); font-family: var(--f-mono); }
.board-row__winner { margin-left: 6px; vertical-align: middle; font-style: normal; }
@media (max-width: 900px) {
  .prize__layout { grid-template-columns: minmax(0, 1fr); }
  .prize__art { min-height: 320px; order: -1; }
  .countdown div { min-width: 0; flex: 1; }
}

/* ---------- Рейтинг: окно-лидерборд (как в референсе, в цветах клуба) ---------- */
.ranking {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff8f2;
}
.rank__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 50% at 10% 15%, rgba(255, 138, 61, 0.22), transparent 70%),
    radial-gradient(40% 45% at 95% 90%, rgba(255, 106, 0, 0.18), transparent 70%);
}
.ranking .section-head__lead b { color: var(--orange); }

.lb {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.15), 0 40px 70px -40px rgba(255, 106, 0, 0.6);
}

/* Верхняя тёмная панель */
.lb__bar {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 62px;
  padding: 10px 22px;
  background: var(--ink);
  color: #fff;
}
.lb__logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: 18px; flex-shrink: 0; }
.lb__nav { display: flex; gap: 24px; }
.lb__nav a {
  padding: 20px 0 17px;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
.lb__nav a:hover { color: #fff; }
.lb__nav a.is-active { color: var(--orange); border-color: var(--orange); }
.lb__me { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lb__pts {
  padding: 5px 12px;
  border: 1.5px solid var(--orange);
  border-radius: 8px;
  color: var(--orange);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 13px;
}
.lb__user { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.lb__user-ava { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; }
.lb__user-text { display: flex; flex-direction: column; line-height: 1.15; }
.lb__user-text b { font-size: 14px; }
.lb__user-text small { font-size: 11px; color: rgba(255, 255, 255, 0.6); }

/* Светлое поле с мазками и персонажем справа */
.lb__body {
  position: relative;
  min-height: 640px;
  padding: 30px 34px 34px;
  background:
    repeating-linear-gradient(-62deg, transparent 0 60px, rgba(255, 106, 0, 0.05) 60px 92px),
    linear-gradient(160deg, #fff6ee 0%, #ffe9d8 100%);
  overflow: hidden;
}
.lb__art { position: absolute; right: -30px; top: 0; bottom: 0; width: 46%; z-index: 1; }
.lb__art img { position: absolute; inset: 0; object-position: right bottom; }
.lb__art.art--empty .art__placeholder { inset: 24px 40px 24px 0; }
.lb__content { position: relative; z-index: 2; width: 64%; }

.lb__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(260px, 100%);
  margin: 0 0 18px auto;
  padding: 0 14px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(28, 29, 33, 0.08), 0 6px 14px -10px rgba(28, 29, 33, 0.4);
  color: var(--muted);
}
.lb__search svg { width: 15px; height: 15px; flex-shrink: 0; }
.lb__search input { border: 0; outline: none; background: none; width: 100%; font-size: 13px; color: var(--ink); }

/* Наклонные вкладки */
.lb__tabs { display: flex; border-bottom: 3px solid var(--ink); }
.lb__tab {
  position: relative;
  z-index: 0;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 11px 36px 9px 18px;
  font-family: var(--f-display);
  font-weight: 800;
  font-style: italic;
  font-size: 13px;
  text-transform: uppercase;
  color: #b99a85;
}
.lb__tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 10px 0 0 0;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 100%, 0 100%);
  background: transparent;
}
.lb__tab:hover { color: var(--ink); }
.lb__tab.is-active { color: #fff; }
.lb__tab.is-active::before { background: var(--ink); }
.lb__sort {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 14px;
  background: rgba(255, 106, 0, 0.12);
  font-family: var(--f-mono);
  font-size: 10px;
  color: #a5683f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Строки */
.lb__rows { display: flex; flex-direction: column; gap: 9px; }
.lb-row {
  display: grid;
  grid-template-columns: 26px 36px minmax(0, 1fr) auto auto 30px;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 6px 14px 6px 12px;
  border-radius: 4px 4px 9px 9px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(255, 106, 0, 0.12), 0 8px 18px -14px rgba(28, 29, 33, 0.5);
  transition: transform 0.15s ease;
}
.lb-row:hover { transform: translateX(4px); }
.lb-row__rank {
  width: 24px; height: 22px; border-radius: 5px;
  display: grid; place-items: center;
  background: var(--orange-soft); color: #b85414;
  font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 11px;
}
.lb-row--top1 .lb-row__rank, .lb-row--top2 .lb-row__rank, .lb-row--top3 .lb-row__rank { background: var(--orange); color: #fff; }
.lb-row__ava {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  color: #fff; font-family: var(--f-display); font-weight: 900; font-size: 16px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.ava--1 { background: linear-gradient(140deg, #ff9a3c, #ff6a00); }
.ava--2 { background: linear-gradient(140deg, #ffc35c, #ff9a1f); }
.ava--3 { background: linear-gradient(140deg, #ff7a59, #e8461e); }
.ava--4 { background: linear-gradient(140deg, #4a4c54, #1c1d21); }
.ava--5 { background: linear-gradient(140deg, #ffb28a, #ff7f4d); }
.lb-row__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.lb-row__who b {
  font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 15px;
  text-transform: uppercase; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-row__who small { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 11px; color: var(--muted); margin-top: 2px; }
.lb-row__winner { padding: 3px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; }
.lb-row__val { font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.lb-row__val small { color: var(--muted); font-weight: 500; }
.lb-row__icon { width: 26px; height: 26px; color: #e9b48d; }
.lb-row__icon svg { width: 26px; height: 26px; }
.lb-row--top1 .lb-row__icon { color: #f5b52a; }
.lb-row--top2 .lb-row__icon { color: #a7afbf; }
.lb-row--top3 .lb-row__icon { color: #d9864a; }

/* Ваша строка — оранжевая и шире остальных */
.lb-row.is-me {
  margin: 4px -12px;
  min-height: 58px;
  padding-left: 24px;
  padding-right: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff6a00 0%, #ff8a2b 60%, #ffb06a 100%);
  box-shadow: 0 16px 30px -14px rgba(255, 106, 0, 0.9);
}
.lb-row.is-me .lb-row__rank { background: #fff; color: var(--orange); }
.lb-row.is-me .lb-row__who b,
.lb-row.is-me .lb-row__who small,
.lb-row.is-me .lb-row__val,
.lb-row.is-me .lb-row__val small,
.lb-row.is-me .lb-row__icon { color: #fff; }
.lb-row.is-me .lb-row__ava { box-shadow: 0 0 0 2px #fff; }

.lb__gap { text-align: center; color: #c99472; font-size: 12px; }
.lb__empty { padding: 36px 18px; text-align: center; color: var(--ink-3); background: rgba(255, 255, 255, 0.85); border-radius: 12px; border: 1.5px dashed #ffc79a; }

/* Приз месяца — оранжевая полоса под рейтингом */
.prize-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 22px;
  background: linear-gradient(120deg, #ff9a3c 0%, var(--orange) 45%, #e04a00 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 60px -30px rgba(255, 106, 0, 0.75);
}
.prize-strip::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  background: url("../assets/logo-mark.png") center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.12;
  z-index: -1;
}
.prize-strip__chip { background: #fff; color: var(--orange); }
.prize-strip__title { margin: 10px 0 6px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1; text-shadow: 0 3px 0 rgba(160, 50, 0, 0.35); }
.prize-strip__text { font-size: 14px; color: rgba(255, 255, 255, 0.92); max-width: 460px; }
.prize-strip__timer { display: flex; flex-direction: column; gap: 8px; }
.prize-strip__timer > .mono { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.85); }
.prize-strip .countdown div { min-width: 72px; background: rgba(255, 255, 255, 0.18); }
.prize-strip .countdown span { color: rgba(255, 255, 255, 0.85); }
.prize-strip__side { display: flex; flex-direction: column; gap: 14px; }
.prize-strip .prize-card__leader { padding-top: 0; border-top: 0; }
.prize-strip .prize-card__leader .mono { color: rgba(255, 255, 255, 0.85); }
.prize-strip .prize-card__leader-nick { color: #fff; }
.prize-strip .prize-card__mine, .prize-strip .prize-card__mine b { color: #fff; }
.prize-strip__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prize-strip__btn { background: #fff; color: var(--orange); }
.prize-strip__btn:hover { background: var(--ink); color: #fff; }
.prize-strip__btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75); }
.prize-strip__btn--ghost:hover { background: #fff; color: var(--orange); }

@media (max-width: 1000px) {
  .lb__nav { display: none; }
  .lb__content { width: 100%; }
  .lb__art { display: none; }
  .lb__body { min-height: 0; padding: 22px 18px 24px; }
  .prize-strip { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
  .lb__bar { padding: 10px 14px; gap: 12px; }
  .lb__logo { font-size: 14px; }
  .lb__user-text, .lb__pts { display: none; }
  .lb__search { width: 100%; }
  .lb__tab { padding: 10px 26px 8px 12px; font-size: 11.5px; }
  .lb-row { grid-template-columns: 24px 32px minmax(0, 1fr) auto; gap: 9px; padding: 6px 10px; }
  .lb-row__ava { width: 32px; height: 32px; font-size: 14px; }
  .lb-row__who b { font-size: 13px; }
  .lb-row__icon, .lb-row__winner { display: none; }
  .lb-row.is-me { margin: 4px -6px; padding-left: 14px; padding-right: 14px; }
  .prize-strip .countdown div { min-width: 0; flex: 1; }
}

/* ---------- Новости ---------- */
.news { background: var(--paper-2); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 20px; }
.news-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.news-card__img { aspect-ratio: 16 / 9; background: var(--ink-2); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__img--empty {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 106, 0, 0.45), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
}
.news-card__img--empty svg { width: 54px; height: 54px; }
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex-grow: 1; }
.news-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.news-card__meta .mono { font-size: 12px; color: var(--muted); }
.news-card__title { font-size: 18px; font-weight: 800; line-height: 1.25; }
.news-card__text {
  font-size: 14px;
  color: var(--ink-3);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card.is-open .news-card__text { -webkit-line-clamp: unset; display: block; }
.news-card__actions { margin-top: auto; display: flex; gap: 16px; align-items: center; padding-top: 4px; }
.news-card__toggle { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 800; color: var(--ink); }
.news-card__toggle:hover, .news-card__link:hover { text-decoration: underline; }
.news-card__link { font-weight: 800; color: var(--orange); text-decoration: none; }
.news-empty { grid-column: 1 / -1; padding: 48px 20px; background: #fff; }
.news__more { display: flex; justify-content: center; margin-top: 20px; }
@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Контакты ---------- */
.contact { padding: clamp(80px, 9vw, 120px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__list { margin: 0 0 28px; display: grid; gap: 16px; }
.contact__list dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; color: var(--muted-light); }
.contact__list dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--orange); }
.contact__social { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__form { display: grid; gap: 14px; padding: 28px; border-radius: 24px; background: var(--ink-2); }
.contact__form .field label { color: var(--muted-light); }
.contact__form .btn { justify-self: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Подвал ---------- */
.footer { padding: 28px 0 90px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.footer__brand .mono { font-family: var(--f-mono); font-weight: 400; font-size: 12px; }
.footer__path { font-size: 12px; }
.footer__path b { color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; padding: 2px 8px; font-weight: 600; }

/* ============ Внутренние страницы ============ */
.page { position: relative; min-height: calc(100vh - var(--header-h)); padding: 32px 0 100px; overflow: hidden; isolation: isolate; }
.page > .container { position: relative; z-index: 1; }
.page-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-lead { color: var(--ink-3); margin-bottom: 32px; max-width: 640px; }

/* ---------- Личный кабинет ---------- */
.acc-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  margin-bottom: 24px;
}
.acc-no {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  padding: 16px 22px;
  border-radius: 20px;
  background: var(--orange);
}
.acc-name { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 3vw, 32px); font-style: italic; text-transform: uppercase; }
.acc-meta { font-family: var(--f-mono); font-size: 13px; color: var(--muted-light); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.acc-points { text-align: right; }
.acc-points b { display: block; font-family: var(--f-mono); font-size: clamp(30px, 4vw, 44px); color: var(--orange); line-height: 1; }
.acc-points span { font-size: 13px; color: var(--muted-light); }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.acc-grid h2 { font-size: 18px; font-weight: 800; text-transform: uppercase; margin-bottom: 16px; }
.list { display: flex; flex-direction: column; }
.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.list-item__title { font-weight: 700; font-size: 15px; }
.list-item__sub { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.delta { font-family: var(--f-mono); font-weight: 700; text-align: right; }
.delta--plus { color: #1d8a4f; }
.delta--minus { color: var(--danger); }
.code-pill { font-family: var(--f-mono); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; }
@media (max-width: 900px) {
  .acc-hero { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .acc-points { text-align: left; }
  .acc-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Кабинет игрока (в духе карьерной страницы) ---------- */
.admin-viewing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--orange-soft);
  font-weight: 600;
  font-size: 14px;
}
.career {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
}
.career__top {
  position: relative;
  min-height: 440px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper-2);
  overflow: hidden;
  isolation: isolate;
}
.career__info { position: relative; z-index: 2; max-width: 640px; }
.career__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.career__avatar {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--orange), #ff3d8b);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 26px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--ink);
}
.career__name {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.career__no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
.career__no b {
  font-family: var(--f-mono);
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 8px;
  border: 2px solid var(--orange);
  background: #fff;
}
.career__meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.career__line { border: 0; border-top: 1.5px solid var(--line); margin: 24px 0 28px; }
.career__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.career__label i { width: 14px; height: 18px; background: var(--ink); transform: skewX(-12deg); box-shadow: 4px 0 0 -1px #fff, 5px 0 0 var(--muted-light); }
.career__count {
  font-family: var(--f-mono);
  font-style: italic;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #8b3dff;
  color: #fff;
}
.career__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
.cstat { display: flex; align-items: center; gap: 12px; padding-right: 14px; position: relative; }
.cstat:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  right: 6px;
  top: -6px;
  bottom: -6px;
  width: 14px;
  border-right: 1.5px solid var(--line);
  border-radius: 0 50% 50% 0;
}
.cstat__icon { width: 38px; height: 38px; flex-shrink: 0; color: var(--ink); }
.cstat__label { display: block; font-size: 12px; font-weight: 700; }
.cstat__value { display: block; font-family: var(--f-mono); font-size: 26px; line-height: 1.1; }
.cstat__value small { font-size: 15px; }

.career__art { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; z-index: 1; }
.career__art img { position: absolute; inset: 0; object-position: right bottom; }
.career__art.art--empty .art__placeholder { inset: 20px 20px 20px 20px; }
.career__tag {
  position: absolute;
  right: 28px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.career__tag span {
  padding: 4px 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
  transform: skewX(-12deg);
}
.career__tag b {
  margin: -2px 0 0 26px;
  padding: 8px 20px;
  background: var(--orange);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase;
  transform: skewX(-12deg);
  white-space: nowrap;
}

.career__band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding: clamp(28px, 4vw, 46px) clamp(24px, 5vw, 70px);
  background: linear-gradient(90deg, #ff4d00 0%, var(--orange) 45%, #ff9a3c 100%);
  color: #fff;
}
.career__band div { display: flex; align-items: baseline; }
.career__band b { font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(32px, 4.2vw, 50px); line-height: 1; }
.career__band span { font-family: var(--f-display); font-weight: 700; font-style: italic; font-size: clamp(13px, 1.5vw, 17px); margin-left: 4px; }

.career__section { padding: clamp(28px, 4vw, 44px); background: var(--paper-2); }
.career__section + .career__section { padding-top: 0; }
.career__sub { font-size: 16px; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }
.career__note { font-size: 13px; margin-top: 14px; }
.career__actions { padding: 0 clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px); background: var(--paper-2); margin-top: 0; }

/* Достижения */
.trophies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trophy {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 268px;
  padding: 18px 16px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px -12px rgba(28, 29, 33, 0.35);
  overflow: hidden;
}
.trophy::before {
  /* светлые «мазки» на фоне карточки */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-62deg, transparent 0 34px, rgba(28, 29, 33, 0.03) 34px 48px);
  pointer-events: none;
}
.trophy__title { position: relative; font-size: 17px; font-weight: 800; text-transform: uppercase; }
.trophy__sub {
  position: relative;
  display: flex;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
}
.trophy__sub svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; }
.trophy__sub--done { color: var(--orange); font-weight: 700; }
.trophy__figure { position: relative; margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: center; }
.trophy__icon {
  width: 92px;
  height: 92px;
  padding: 18px;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffb35c, var(--orange) 55%, #e2420e);
  color: #fff;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15), 0 10px 18px -8px rgba(255, 106, 0, 0.7);
  position: relative;
  z-index: 1;
}
.trophy__base {
  width: 120px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd27a, #f19a1c 60%, #c86a0a);
  box-shadow: 0 6px 0 #a9570a;
  display: grid;
  place-items: center;
}
.trophy__base b { font-family: var(--f-display); font-size: 9px; color: #fff; padding-top: 6px; letter-spacing: 0.08em; }
/* Не получено: чёрный силуэт значка на чёрной подставке */
.trophy.is-locked .trophy__icon { background: none; color: #121316; box-shadow: none; padding: 8px; }
.trophy.is-locked .trophy__icon text { fill: #121316; }
.trophy.is-locked .trophy__icon [stroke="#fff"] { stroke: #121316; }
.trophy.is-locked .trophy__base { background: #121316; box-shadow: 0 6px 0 #000; }
.trophy--latest { background: linear-gradient(160deg, #ff9a3c 0%, var(--orange) 50%, #e2420e 100%); color: #fff; }
.trophy--latest .trophy__sub--done { color: #fff; }
.trophy--latest .trophy__icon { background: #fff; color: var(--orange); }
.trophy--latest .trophy__icon text { fill: var(--orange); }
.trophy--latest .trophy__icon path[stroke="#fff"] { stroke: var(--orange); }

@media (max-width: 1000px) {
  .trophies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .career__top { padding-bottom: 0; }
  .career__art { position: relative; width: auto; height: 320px; margin: 20px -24px 0; }
  .career__tag { position: relative; right: auto; bottom: auto; margin: -70px 0 24px; }
  .career__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cstat:not(:nth-child(3n))::after { display: none; }
  .cstat:nth-child(odd)::after { display: block; }
  .trophies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trophy__title { font-size: 13px; letter-spacing: -0.02em; overflow-wrap: break-word; }
}
@media (max-width: 420px) {
  .career__section { padding-left: 14px; padding-right: 14px; }
  .trophies { gap: 10px; }
  .trophy { min-height: 230px; padding: 14px 12px; }
  .trophy__icon { width: 74px; height: 74px; padding: 14px; }
  .trophy__base { width: 96px; }
  .cstat__value { font-size: 22px; }
}

/* ---------- Викторина ---------- */
.quiz-wrap { max-width: 760px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.quiz-progress { height: 8px; background: var(--paper-3); border-radius: 8px; overflow: hidden; margin-bottom: 26px; }
.quiz-progress i { display: block; height: 100%; background: var(--orange); transition: width 0.3s ease; }
.quiz-card { padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.quiz-q { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; margin-bottom: 26px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line-light);
  background: var(--ink-2);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.quiz-opt:hover { border-color: var(--orange); }
.quiz-opt:active { transform: scale(0.99); }
.quiz-opt.is-picked { background: var(--orange); border-color: var(--orange); }
.quiz-opt__key {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  font-family: var(--f-mono);
  font-size: 13px;
}
.quiz-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.quiz-timer.is-low { background: var(--danger); }
.quiz-result { text-align: center; padding: 40px 20px; }
.quiz-result__score { font-family: var(--f-mono); font-weight: 700; font-size: clamp(64px, 12vw, 120px); line-height: 1; color: var(--orange); }
.quiz-result__label { margin: 12px 0 28px; font-size: 18px; }
.quiz-result .hero__cta { justify-content: center; }

/* ---------- Кроссворд ---------- */
.cw { display: grid; gap: 18px; }
.cw__clue {
  position: sticky;
  top: calc(var(--header-h, 72px) + 8px);
  z-index: 5;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  clip-path: var(--rip);
}
.cw__clue b { color: var(--orange); margin-right: 6px; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; }
.cw__len { color: var(--muted-light); font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
.cw__hint { margin: -6px 0 0; font-size: 13px; color: var(--danger); }
.cw__board { overflow-x: auto; padding: 4px 0; }
.cw__grid {
  --cell: min(42px, calc((min(100vw, 760px) - 48px) / var(--cols)));
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-auto-rows: var(--cell);
  gap: 3px;
  width: max-content;
  margin: 0 auto;
}
.cw__cell { position: relative; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.cw__cell--empty { background: transparent; box-shadow: none; }
.cw__num { position: absolute; top: 2px; left: 3px; font-family: var(--f-mono); font-size: calc(var(--cell) * 0.24); line-height: 1; color: var(--muted); pointer-events: none; }
.cw__in {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: max(16px, calc(var(--cell) * 0.5));
  text-transform: uppercase;
  color: var(--ink);
  caret-color: transparent;
  padding: 0;
  outline: none;
  cursor: pointer;
}
.cw__cell.is-entry { background: #ffe6d1; }
.cw__cell.is-cur { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.cw__cell.is-cur .cw__in, .cw__cell.is-cur .cw__num { color: #fff; }
.cw__cell.is-ok { background: #d6f5df; box-shadow: inset 0 0 0 1.5px #2e9e57; }
.cw__cell.is-bad { background: #ffe0e0; box-shadow: inset 0 0 0 1.5px var(--danger); }
.cw__in:disabled { color: var(--ink); -webkit-text-fill-color: var(--ink); opacity: 1; cursor: default; }
.cw__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cw__lists h3 { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.cw__lists ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cw__lists li { padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; cursor: pointer; transition: background 0.15s ease; }
.cw__lists li:hover { background: var(--paper-2); }
.cw__lists li.is-active { background: #ffe6d1; }
.cw__lists li.is-ok { background: #d6f5df; }
.cw__lists li.is-bad { background: #ffe0e0; }
.cw__lists li b { font-family: var(--f-mono); color: var(--orange); margin-right: 4px; }
@media (max-width: 640px) { .cw__lists { grid-template-columns: minmax(0, 1fr); } }

/* Редактор кроссвордов в админке */
.cw-edit__words { display: grid; gap: 6px; }
.cw-edit__word { display: grid; grid-template-columns: 26px minmax(110px, 0.6fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.cw-edit__word [name="answer"] { text-transform: uppercase; }
.cw-mini { display: grid; grid-template-columns: repeat(var(--cols), 22px); grid-auto-rows: 22px; gap: 2px; width: max-content; max-width: 100%; overflow-x: auto; }
.cw-mini span { display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; font-weight: 700; background: #fff; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--ink); }
.cw-mini span.is-empty { background: transparent; box-shadow: none; }
@media (max-width: 600px) { .cw-edit__word { grid-template-columns: 22px minmax(0, 1fr) auto; } .cw-edit__word [name="clue"] { grid-column: 2 / 3; } }

/* ---------- Админка ---------- */
.admin-tabs { margin-bottom: 24px; }
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-toolbar .input { max-width: 380px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--paper-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .input { min-height: 40px; padding: 8px 10px; border-radius: 8px; }
.table td.actions { white-space: nowrap; text-align: right; }
.code-check { display: grid; grid-template-columns: 1fr auto; gap: 12px; max-width: 520px; }
.code-check .input { font-family: var(--f-mono); font-size: 22px; letter-spacing: 0.2em; text-transform: uppercase; }
.code-result { margin-top: 18px; max-width: 520px; }
.quiz-edit { display: grid; gap: 16px; }
.quiz-edit__q { padding: 16px; border-radius: 14px; background: var(--paper-2); display: grid; gap: 10px; }
.quiz-edit__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-edit__opt { display: flex; align-items: center; gap: 8px; }
.quiz-edit__opt input[type="radio"] { accent-color: var(--orange); width: 18px; height: 18px; flex-shrink: 0; }
.msg-unread { font-weight: 700; }
.admin-gate { max-width: 520px; margin: 60px auto; text-align: center; }
@media (max-width: 600px) { .quiz-edit__opts { grid-template-columns: minmax(0, 1fr); } .code-check { grid-template-columns: minmax(0, 1fr); } }
