/* ФАЯНС · Топ пользователей (ctt-) */
.ctt { padding-bottom: 150px; }
.ctt-muted { color: var(--mute); font-size: 14px; margin: 0; }
.ctt-hero { padding: 24px 0 8px; text-align: center; display: grid; justify-items: center; animation: fadeUp .8s var(--ease) both; }
.ctt-hero .eyebrow { justify-content: center; }
.ctt-hero .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.ctt-hero .section__lead { margin-left: auto; margin-right: auto; }
.ctt-h1 { font-size: clamp(56px, 10vw, 140px); line-height: .9; letter-spacing: -.02em; }
.ctt-h2 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1; }
.ctt-tabs { position: relative; margin-top: 30px; width: min(420px, 100%); border-bottom-color: var(--rule); }
.ctt-tabs button { border-bottom: 0; }
.ctt-tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--brass); transition: transform .5s var(--ease), width .5s var(--ease); }

/* ----- пьедестал ----- */
.ctt-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 2vw, 24px); max-width: 860px; margin: 56px auto 0; min-height: 200px; }
.ctt-step { text-decoration: none; display: grid; animation: cttRise 1s var(--ease) both; animation-delay: calc(var(--d) * 160ms + .15s); }
@keyframes cttRise { from { opacity: 0; transform: translateY(60px); } }
.ctt-step--1 { order: 2; } .ctt-step--2 { order: 1; } .ctt-step--3 { order: 3; }
.ctt-step__card { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 12px 22px; background: var(--paper); border: 1px solid var(--rule); border-bottom: 0; border-radius: 6px 6px 0 0;
  transition: transform .35s var(--ease), box-shadow .35s; transform-style: preserve-3d; will-change: transform; }
.ctt-step__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 50%), rgba(226, 200, 143, .28), transparent 60%); }
.ctt-step__card:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.ctt-step__card:hover::after { opacity: 1; }
.ctt-step--1 .ctt-step__card { padding-top: 46px; border-color: color-mix(in srgb, var(--brass) 60%, transparent); }
.ctt-step__ava { border-radius: 50%; padding: 3px; background: linear-gradient(135deg, var(--brass-hi), var(--brass)); transform: translateZ(30px); display: inline-flex; }
.ctt-step--2 .ctt-step__ava { background: linear-gradient(135deg, #E4E6EA, #9AA0A8); }
.ctt-step--3 .ctt-step__ava { background: linear-gradient(135deg, #E2B08A, #9A5F3B); }
.ctt-step__ava .kit-ava { border: 2px solid var(--paper); }
.ctt-step__name { font: 500 clamp(18px, 2.4vw, 28px)/1.05 var(--serif); margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctt-step__title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.ctt-step__pts { font-size: 13px; color: var(--mute); }
.ctt-step__pts i { font: italic 500 22px var(--serif); color: var(--ink); }
.ctt-crown { position: absolute; top: -26px; left: 50%; margin-left: -20px; width: 40px; text-align: center; font-size: 40px; line-height: 1; color: var(--brass); text-shadow: 0 6px 18px rgba(176, 141, 87, .6);
  animation: cttCrown 1s var(--ease) 1s both, crown 2.6s ease-in-out 2s infinite; }
@keyframes cttCrown { from { opacity: 0; transform: translateY(-50px) rotate(-30deg) scale(.4); } 70% { transform: translateY(4px) rotate(6deg); } }
.ctt-step__base { display: grid; place-items: center; background: linear-gradient(180deg, #2A2D33, #121316); border-top: 1px solid var(--brass); color: var(--porcelain); border-radius: 0 0 2px 2px; overflow: hidden; position: relative; }
.ctt-step__base::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-100%); animation: ctShineT 4s var(--ease) 1.4s infinite; }
@keyframes ctShineT { 50%, 100% { transform: translateX(100%); } }
.ctt-step__base span { font: 500 clamp(28px, 4vw, 48px) var(--serif); color: var(--brass-hi); }
.ctt-step--1 .ctt-step__base { height: 140px; } .ctt-step--2 .ctt-step__base { height: 96px; } .ctt-step--3 .ctt-step__base { height: 66px; }
.ctt-empty { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 30px 0; }
.ctt-empty__t { font: italic 400 30px var(--serif); margin: 0; }

/* ----- таблица ----- */
.ctt-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--rule); }
.ctt-row { display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) minmax(60px, 180px) 70px; gap: 14px; align-items: center; padding: 14px 8px; border-bottom: 1px solid var(--rule); text-decoration: none;
  animation: fadeUp .7s var(--ease) both; animation-delay: calc(var(--i) * 45ms); transition: background .3s; }
.ctt-row:hover { background: var(--porcelain-2); }
.ctt-row.is-me { background: color-mix(in srgb, var(--brass) 12%, transparent); }
.ctt-row__pos { font: 500 22px var(--serif); color: var(--mute); text-align: center; }
.ctt-row__who { display: grid; min-width: 0; }
.ctt-row__who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctt-row__who small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.ctt-row__bar { height: 4px; background: var(--porcelain-2); border-radius: 2px; overflow: hidden; }
.ctt-row__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass), var(--brass-hi)); transition: width 1.2s var(--ease) .2s; }
.ctt-list.is-filled .ctt-row__bar i { width: var(--w); }
.ctt-row__pts { font: 500 22px var(--serif); text-align: right; font-variant-numeric: tabular-nums; }

/* ----- как заработать ----- */
.ctt-earn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; max-width: 1000px; margin: 96px auto 0; padding-top: 48px; border-top: 1px solid var(--rule); }
.ctt-earn .ctt-muted { margin-top: 18px; max-width: 420px; }
.ctt-titles { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 6px; }
.ctt-titles li { display: flex; gap: 14px; align-items: baseline; }
.ctt-titles b { min-width: 60px; font: 600 12px var(--sans); color: var(--brass); font-variant-numeric: tabular-nums; }
.ctt-titles span { font: italic 400 20px var(--serif); }
.ctt-earn__list { list-style: none; margin: 0; padding: 0; }
.ctt-earn__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--rule); animation: fadeUp .7s var(--ease) both; animation-delay: calc(var(--i) * 60ms + .4s); }
.ctt-earn__list b { font: 500 24px/1 var(--serif); color: var(--brass); }

/* ----- своё место ----- */
.ctt-me { position: fixed; left: 50%; bottom: calc(20px + var(--tabbar-h)); z-index: 50; width: min(620px, calc(100vw - 32px)); transform: translateX(-50%); display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 18px 10px 14px; background: var(--night); color: var(--night-fg); border-radius: 999px; box-shadow: 0 24px 50px -16px rgba(0,0,0,.5); animation: cttDock .9s var(--ease) .8s both; }
@keyframes cttDock { from { opacity: 0; transform: translate(-50%, 120%); } }
.ctt-me[hidden] { display: none; }
.ctt-me__pos { font: 500 22px var(--serif); color: var(--brass-hi); min-width: 44px; text-align: center; }
.ctt-me__who { display: grid; min-width: 0; }
.ctt-me__who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctt-me__who small { font-size: 11px; color: rgba(238, 232, 220, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctt-me__pts { font-size: 12px; color: rgba(238, 232, 220, .7); white-space: nowrap; }
.ctt-me__pts i { font: italic 500 22px var(--serif); color: var(--brass-hi); }
.ctt-me__t { grid-column: 1 / 4; font-size: 14px; padding-left: 8px; }
.ctt-me .btn { height: 38px; padding: 0 18px; font-size: 13px; background: var(--brass); color: #14161A; }

@media (max-width: 1060px) { .ctt-me { bottom: calc(var(--tabbar-h) + 14px); } }
@media (max-width: 720px) {
  .ctt-earn { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 64px; }
  .ctt-row { grid-template-columns: 28px 40px minmax(0, 1fr) 56px; gap: 10px; padding: 12px 4px; }
  .ctt-row__bar { display: none; }
  .ctt-step__card { padding: 22px 6px 16px; }
  .ctt-step--1 .ctt-step__card { padding-top: 36px; }
  .ctt-step__ava .kit-ava { --s: 56px !important; }
  .ctt-step--1 .ctt-step__ava .kit-ava { --s: 72px !important; }
  .ctt-step__title { font-size: 9px; letter-spacing: .06em; }
  .ctt-step--1 .ctt-step__base { height: 100px; } .ctt-step--2 .ctt-step__base { height: 70px; } .ctt-step--3 .ctt-step__base { height: 48px; }
  .ctt-me { gap: 8px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ctt-step, .ctt-row, .ctt-crown, .ctt-me, .ctt-earn__list li { animation: none !important; } }
