/* Страницы статистики Мастерской Steam для авторов (12.11.2026): /stats/, /authors/, /author/<steamid>/.
   Цвета, шапка, подвал, кнопки и кнопка "наверх" берутся из styles.css. Здесь только своё, все классы с приставкой st-,
   чтобы не пересечься с классами сайта (.hero, .badge, .card и другие там уже заняты).
   Правило страницы: рамка тихая, цвет живёт в обложках работ и в одной линии графика. */
.st-page{
  --st-ink2:#454c5a; --st-accent:#08775c; --st-line:var(--border); --st-raised:var(--tile);
  --st-disp:"Bricolage Grotesque","Outfit",system-ui,sans-serif; --st-ease:cubic-bezier(.22,1,.36,1);
}
.dark .st-page{--st-ink2:#b4bccb; --st-accent:#19c79e}

/* шапка сайта: тот же кусок, что стоит в шаблоне страницы сетапов */
.logo-tile{fill:#16181d}.logo-cell{fill:#eef1f5}
.dark .sun{display:block}.dark .moon{display:none}.sun{display:none}.moon{display:block}
.st-page .nav-links{display:none!important}
@media(min-width:641px){.st-page .menu-toggle,.st-page .mobile-menu{display:none!important}}
@media(max-width:640px){.st-page header .nav .nav-art{display:none!important}.st-page .menu-toggle{display:flex!important}.st-page .mobile-menu .mm-home{display:block}}
.st-page .nav-art{display:flex!important;gap:28px}
.st-page .nav-art a{font-size:14px;color:var(--muted);transition:color .15s}
.st-page .nav-art a:hover,.st-page .nav-art a.cur{color:var(--ink)}
.st-page .mobile-menu a.cur{color:var(--ink)}
/* ширина как в прототипе: таблица в 11 столбцов в 1120 не помещается */
.st-page header .container,.st-page footer .container{max-width:1240px}
.st-page footer{margin-top:48px}

.st{max-width:1240px;margin:0 auto;padding:66px 24px 0;min-height:72vh;
  font:400 15px/22px "Outfit",system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums}
.st button,.st input,.st select{font-family:inherit}
.st :focus-visible{outline:2px solid var(--teal);outline-offset:2px}

/* общие */
.st h1{font:700 clamp(36px,5vw,60px)/1.04 var(--st-disp);letter-spacing:-.025em;text-wrap:balance}
.st h2{font:600 24px/1.2 var(--st-disp);letter-spacing:-.01em}
.st-sub{color:var(--st-ink2);font-size:18px;line-height:28px;max-width:34rem}
.st-cap{font-size:13px;line-height:20px;color:var(--muted)}
.st .btn{height:44px;padding:0 20px;white-space:nowrap}
.st-ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
.st-field{flex:1;min-width:0;height:44px;border-radius:12px;border:1px solid var(--st-line);background:var(--surface);display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--muted);transition:border-color .15s var(--st-ease)}
.st-field:focus-within{border-color:var(--teal)}
.st-field input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:15px}
.st-field input::placeholder{color:var(--muted)}
.st-card{background:var(--surface);border:1px solid var(--st-line);border-radius:16px}
.st-plate{font-size:12px;line-height:16px;color:var(--muted);white-space:nowrap}   /* табличка места: "№ 02 из 88" */
.st-plate b{font-weight:500;color:var(--ink)}
.st-grow{color:var(--st-accent);font-weight:500}
.st-seg{display:inline-flex;padding:4px;gap:4px;border-radius:12px;background:var(--st-raised);border:1px solid var(--st-line)}
.st-seg button{height:32px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:14px;cursor:pointer;white-space:nowrap;transition:color .15s var(--st-ease),background-color .15s var(--st-ease)}
.st-seg button:hover{color:var(--ink)}
.st-seg button.on{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--st-line)}
.st-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:64px 0 20px}
.st-msg{min-height:20px;margin-top:12px}
.st-note{max-width:1240px;margin:64px auto 0;padding:0 24px;min-height:20px}

/* загрузка и ошибка: тихо, без мигания */
.st-state{padding:96px 0;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.st-state p{font-size:16px;line-height:24px;color:var(--st-ink2);max-width:34rem}
.st-state .st-cap{font-size:13px;line-height:20px;color:var(--muted)}
.st-wait{padding:24px 0}
.st-demo-slot{min-height:216px}
.st-demo-slot .st-state{padding:24px 0}

/* обложка работы */
.st-cover{position:relative;display:block;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--st-raised);border:1px solid var(--st-line)}
.st-cover img{width:100%;height:100%;object-fit:cover;display:block}
/* 18+ как на странице сетапов сайта: размытие, пока человек не подтвердил возраст */
.st-adult img{filter:blur(18px) saturate(.8);transform:scale(1.1)}
.adult-on .st-adult img{filter:none;transform:none}
.st-badge{position:absolute;left:8px;top:8px;font-size:12px;line-height:16px;padding:2px 8px;border-radius:6px;background:rgba(10,14,20,.6);color:#fff}

/* первый экран */
.st-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center;padding:72px 0 24px}
.st-hero .st-sub{margin-top:20px}
.st-ask{display:flex;gap:8px;margin-top:32px;max-width:34rem}
.st-alt{display:inline-flex;align-items:center;gap:8px;margin-top:20px;color:var(--st-ink2);font-size:15px}
.st-alt:hover{color:var(--ink)}
.st-demo{padding:20px}
.st-demo>.st-cap{margin-bottom:12px}
.st-demo .st-acard{border:0;padding:0}
@media (max-width:920px){.st-hero{grid-template-columns:1fr;padding-top:40px}.st-ask{flex-direction:column}.st-ask .btn{justify-content:center}.st-ask .st-field{flex:none}}
/* блоки рассказа о сервисе */
.st-band{margin-top:96px}
.st-band h2{max-width:36rem}
.st-band .st-sub{font-size:16px;line-height:24px;margin-top:12px}
.st-split{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;margin-top:32px}
@media (max-width:920px){.st-split{grid-template-columns:1fr}}
.st-pane{padding:24px;display:flex;flex-direction:column;gap:8px;min-width:0}
.st-pane .st-fig{font:600 40px/1 var(--st-disp);letter-spacing:-.02em}
.st-row{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.st-rank{display:flex;flex-direction:column;margin-top:8px}
.st-rank a{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px;align-items:center;height:44px;border-top:1px solid var(--st-line);font-size:14px}
.st-rank a:hover .st-rt{color:var(--st-accent)}
.st-rank .st-no{color:var(--muted)}
.st-rank .st-rt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s var(--st-ease)}
.st-rank .st-rt small{color:var(--muted);font-size:13px;margin-left:8px}
.st-tblw{margin-top:32px;overflow-x:auto;scrollbar-color:var(--muted) transparent;scrollbar-width:thin}
.st-tbl{width:100%;min-width:720px;border-collapse:collapse}
.st-tbl th{font-weight:400;font-size:13px;color:var(--muted);text-align:right;padding:0 8px 12px;white-space:nowrap}
.st-tbl th:first-child,.st-tbl td:first-child{text-align:left;padding-left:20px}
.st-tbl td{height:56px;padding:0 8px;text-align:right;border-top:1px solid var(--st-line);white-space:nowrap;color:var(--st-ink2)}
.st-tbl td:last-child,.st-tbl th:last-child{padding-right:20px}
.st-wk{display:flex;align-items:center;gap:12px;color:var(--ink);min-width:0}
.st-tbl .st-wk img{width:72px;height:40px;border-radius:6px;object-fit:cover;background:var(--st-raised);flex:none}
.st-tbl .st-wk b{font-weight:500;display:block;max-width:176px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-tbl .st-wk .st-cap{max-width:176px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-tbl .st-main{color:var(--ink);font-weight:500}
.st-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:32px;border-top:1px solid var(--st-line)}
.st-terms div{padding:24px 24px 24px 0;border-bottom:1px solid var(--st-line)}
.st-terms div:nth-child(odd){border-right:1px solid var(--st-line)}
.st-terms div:nth-child(even){padding-left:24px}
.st-terms b{display:block;font-weight:500;font-size:18px;line-height:26px;margin-bottom:8px}
.st-terms p{color:var(--st-ink2);font-size:15px;line-height:22px;max-width:30rem}
@media (max-width:720px){.st-terms{grid-template-columns:1fr}.st-terms div{padding:20px 0 !important;border-right:0 !important}}
.st-closing{margin-top:96px;padding:40px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center}
.st-closing .st-ask{margin-top:0}
@media (max-width:920px){.st-closing{grid-template-columns:1fr;padding:24px}}

/* карточка автора */
.st-agrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(288px,1fr));gap:16px}
.st-agrid.st-fit{grid-template-columns:repeat(auto-fit,minmax(272px,1fr))}
.st-acard{padding:16px;display:flex;flex-direction:column;gap:16px;min-width:0;transition:border-color .15s var(--st-ease)}
a.st-acard:hover{border-color:var(--muted)}
.st-arow{display:flex;gap:12px;align-items:center;min-width:0}
.st-arow>div:nth-child(2){min-width:0;flex:1}
.st-ava{width:44px;height:44px;border-radius:10px;background:var(--st-raised);object-fit:cover;flex:none}
.st-aname{font-weight:500;font-size:16px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-strip{display:grid;gap:8px;height:84px}
.st-strip .st-cover{aspect-ratio:auto;height:84px;border-radius:8px}
.st-nums{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.st-nums .st-fig{font:600 28px/1 var(--st-disp)}
.st-nums .st-fig small{font:400 13px/20px "Outfit",system-ui,sans-serif;color:var(--muted);margin-left:8px}

/* страница автора */
.st-back{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;margin:32px 0 20px}
.st-back:hover{color:var(--ink)}
.st-top{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px}
@media (max-width:920px){.st-top{grid-template-columns:1fr}}
.st-who{padding:24px;display:flex;flex-direction:column;gap:20px;min-width:0}
.st-who .st-ava{width:72px;height:72px;border-radius:16px}
.st .st-who h1{font-size:32px;line-height:1.1;overflow-wrap:anywhere;margin:8px 0}
.st-links{display:flex;flex-wrap:wrap;gap:8px}
.st-lnk{height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--st-line);background:var(--st-raised);display:inline-flex;align-items:center;gap:8px;font-size:14px;transition:border-color .15s var(--st-ease)}
.st-lnk:hover{border-color:var(--muted)}
.st-lnk .st-ic{width:16px;height:16px;color:var(--muted)}
.st-chead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.st-chartcard{padding:24px;display:flex;flex-direction:column;gap:8px;min-height:320px;min-width:0}
.st-chartcard .st-fig{font:600 48px/1 var(--st-disp);letter-spacing:-.02em}
.st-chart{flex:1;min-height:200px;position:relative}
.st-chart svg{width:100%;height:100%;display:block}
.st-chart svg text{fill:var(--muted);font:12px "Outfit",system-ui,sans-serif}
.st-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:16px;margin-top:16px}
@media (max-width:520px){.st-stats{grid-template-columns:1fr 1fr}}
.st-stat{padding:20px;min-width:0}
.st-stat .st-fig{font:600 28px/1 var(--st-disp);margin-top:12px}
.st-wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:16px}
.st-work{display:flex;flex-direction:column;gap:12px;min-width:0}
.st-work .st-t{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-work .st-meta{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.st-work .st-meta>div:first-child{min-width:0}
.st-work .st-n{font-weight:500;white-space:nowrap}
.st-wall .st-lead{grid-column:span 2;grid-row:span 2}
@media (max-width:640px){.st-wall .st-lead{grid-column:auto;grid-row:auto}}
.st-empty{color:var(--muted);padding:24px 0}

.st-tog{height:40px;padding:0 12px;border-radius:12px;border:1px solid var(--st-line);background:var(--st-raised);color:var(--muted);font-size:14px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;transition:color .15s var(--st-ease),border-color .15s var(--st-ease)}
.st-tog:hover{color:var(--ink)}
.st-tog i{width:28px;height:16px;border-radius:8px;background:var(--st-line);position:relative;flex:none;transition:background-color .15s var(--st-ease)}
.st-tog i:after{content:"";position:absolute;left:2px;top:2px;width:12px;height:12px;border-radius:6px;background:var(--muted);transition:transform .15s var(--st-ease),background-color .15s var(--st-ease)}
.st-tog[aria-pressed=true]{color:var(--ink)}
.st-tog[aria-pressed=true] i{background:var(--teal)}
.st-tog[aria-pressed=true] i:after{transform:translateX(12px);background:#fff}
.st-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
.st-more{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:32px}

/* подробная таблица автора */
.st-tbl th.st-srt{cursor:pointer;user-select:none;transition:color .15s var(--st-ease)}
.st-tbl th.st-srt:hover{color:var(--ink)}
.st-tbl th.on{color:var(--ink)}
.st-meter{display:inline-block;min-width:64px;text-align:right}
@media (max-width:1240px){.st-tbl .st-wk b,.st-tbl .st-wk .st-cap{max-width:104px}.st-tbl th,.st-tbl td{padding-left:6px;padding-right:6px}}
@media (min-width:761px) and (max-width:980px){.st-mlist{display:grid;grid-template-columns:1fr 1fr}.st-mlist .st-sortsel{grid-column:1/-1}}
.st-meter i{display:block;height:2px;margin-top:6px;border-radius:1px;background:var(--st-line)}
.st-meter i b{display:block;height:2px;border-radius:1px;background:var(--muted);margin-left:auto}
.st-thumb{width:64px;height:36px;border-radius:6px;overflow:hidden;flex:none;display:block;background:var(--st-raised)}
.st-tbl .st-wk .st-thumb img{width:64px;height:36px;border-radius:0}
.st-mrow .st-thumb{width:96px;height:54px;border-radius:8px}
.st-mrow .st-thumb img{width:96px;height:54px;object-fit:cover;display:block}
.st-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.st-filters .st-field{flex:0 1 320px;height:40px}
.st-chipb{height:40px;padding:0 12px;border-radius:10px;border:1px solid var(--st-line);background:transparent;color:var(--muted);font-size:14px;cursor:pointer;white-space:nowrap;transition:color .15s var(--st-ease),border-color .15s var(--st-ease),background-color .15s var(--st-ease)}
.st-chipb:hover{color:var(--ink)}
.st-chipb.on{background:var(--st-raised);color:var(--ink);border-color:var(--muted)}
.st-moodlist{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.st-moodlist div{display:grid;grid-template-columns:128px minmax(0,1fr) 56px;gap:12px;align-items:center;font-size:14px}
.st-moodlist span{color:var(--st-ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-moodlist span small{color:var(--muted);margin-left:8px}
.st-moodlist i{height:4px;border-radius:2px;background:var(--st-line);display:block}
.st-moodlist i b{display:block;height:4px;border-radius:2px;background:var(--muted)}
.st-moodlist div:first-child i b{background:var(--teal)}
.st-moodlist em{font-style:normal;text-align:right;font-weight:500}
.st-mine{display:inline-flex;align-items:center;gap:8px;margin-top:20px;height:44px;padding:0 16px;border-radius:10px;border:1px solid var(--st-line);background:var(--surface);max-width:100%}
.st-mine span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-mine:hover{border-color:var(--muted)}

.st-bar2{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.st-mets{display:flex;flex-wrap:wrap;gap:4px 16px;color:var(--muted);font-size:13px;line-height:20px}
.st-mets span{display:inline-flex;align-items:center;gap:6px}
.st-mets .st-ic{width:16px;height:16px}
.st-cm{display:flex;flex-direction:column;margin-top:8px}
.st-cm div{padding:12px 0;border-top:1px solid var(--st-line)}
.st-cm p{font-size:15px;line-height:22px;overflow-wrap:anywhere;white-space:pre-line}
.st-cm a{color:var(--st-ink2)}
.st-cm a:hover{color:var(--st-accent)}
.st-sortsel{height:40px;width:100%;border-radius:10px;border:1px solid var(--st-line);background:var(--surface);color:var(--ink);font:inherit;font-size:15px;padding:0 12px;margin-bottom:12px}
.st-mlist{display:flex;flex-direction:column;gap:12px}
.st-mrow{padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.st-mrow .st-wk b{font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-mrow .st-wk>div{min-width:0}
.st-mgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.st-mgrid div{font-size:15px;line-height:20px;min-width:0;overflow-wrap:anywhere}
.st-mgrid small{display:block;font-size:12px;line-height:16px;color:var(--muted)}
@media (max-width:760px){
  .st{padding-left:16px;padding-right:16px}
  .st-note{padding:0 16px}
  .st-bar2{align-items:stretch}
  .st-bar2 .st-tools{width:100%}
  .st-seg{max-width:100%;overflow-x:auto}
  .st-filters .st-field{flex:1 1 100%}
  .st-head{margin-top:48px}
  .st-band,.st-closing{margin-top:64px}
  .st h1{font-size:36px}
  .st .st-who h1{font-size:28px}
  .st-chartcard .st-fig{font-size:36px}
}

/* вопрос про 18+ */
.st-veil{position:fixed;inset:0;z-index:60;background:rgba(8,10,14,.6);display:flex;align-items:center;justify-content:center;padding:24px;font:400 15px/22px "Outfit",system-ui,-apple-system,sans-serif}
.st-gate{max-width:440px;padding:24px;display:flex;flex-direction:column;gap:16px}
.st-gate h2{font:600 22px/1.2 var(--st-disp);letter-spacing:-.01em}
.st-gate .st-row{gap:8px}
.st-gate .btn{height:44px;padding:0 20px}
@media (prefers-reduced-motion:reduce){.st *,.st-veil *{transition:none!important}}
/* 12.11: комментарии не растят ряд. Высоту задаёт карточка настроений слева, список прокручивается внутри.
   В одну колонку (до 920 px) карточка обычная, список не выше 360 px. */
.st-cmcard{padding:24px;min-width:0}
.st-cmin{display:flex;flex-direction:column;gap:8px;min-width:0}
.st-cmin .st-cm{overflow-y:auto;max-height:360px;padding-right:8px;scrollbar-width:thin;scrollbar-color:var(--st-line) transparent}
@media (min-width:921px){
  .st-eq>.st-cmcard{position:relative;padding:0;min-height:180px}
  .st-eq>.st-cmcard>.st-cmin{position:absolute;inset:24px 16px 24px 24px}
  .st-eq>.st-cmcard .st-cm{max-height:none;flex:1;min-height:0}
}
/* 12.11: в тренде первого экрана обложки, как в таблице работ */
.st-rank a{grid-template-columns:24px 64px minmax(0,1fr) auto;height:52px}
.st-rank img{width:64px;height:36px;border-radius:6px;object-fit:cover;background:var(--st-raised);display:block}
