/* ============================================================================
   SN games — публичные страницы: editorial gaming network.
   Один слой для лендинга, гайдов, страниц игр и документов. Подключается
   ПОСЛЕ tokens.css, base.css и components.css. Цветовые токены приложения
   не меняются; здесь переопределяются только шрифт и геометрия — строже,
   плотнее, с тонкими линиями и редакционной сеткой.
   Шрифты: Golos Text (текст), IBM Plex Mono (время, статусы, ранги, номера).
   ========================================================================== */

/* ------------------------------- шрифты ---------------------------------- */
@font-face{
  font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;
  src:url("/fonts/golos/golos-text-cyrillic-ext.woff2") format("woff2");
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face{
  font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;
  src:url("/fonts/golos/golos-text-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;
  src:url("/fonts/golos/golos-text-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;
  src:url("/fonts/golos/golos-text-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url("/fonts/plex-mono/plex-mono-400-cyrillic-ext.woff2") format("woff2");
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face{
  font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url("/fonts/plex-mono/plex-mono-400-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url("/fonts/plex-mono/plex-mono-400-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;
  src:url("/fonts/plex-mono/plex-mono-500-cyrillic-ext.woff2") format("woff2");
  unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face{
  font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;
  src:url("/fonts/plex-mono/plex-mono-500-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face{
  font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;
  src:url("/fonts/plex-mono/plex-mono-500-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ------------------------------ база слоя -------------------------------- */
:root{
  --pub-header-h:64px;
}

body.public-page{
  /* только публичный слой: гротеск вместо округлого шрифта приложения и
     строгая геометрия. Цветовые токены — те же, из tokens.css. */
  --site-font:"Golos Text","Segoe UI",system-ui,-apple-system,sans-serif;
  --site-font-weight:400;
  --site-font-strong:600;
  --pub-mono:"IBM Plex Mono",ui-monospace,"Cascadia Mono",Consolas,monospace;
  --radius-xs:2px;
  --radius-sm:4px;
  --radius-md:6px;
  --radius-lg:8px;
  --radius-xl:8px;
  --shadow-sm:none;
  --shadow-md:none;

  background:var(--bg);
  color:var(--text);
  padding-top:var(--pub-header-h);
  font-family:var(--site-font);
  font-weight:var(--site-font-weight);
  font-size:15px;
  letter-spacing:.005em;
}

.mono{font-family:var(--pub-mono);letter-spacing:0}

.pub-wrap{
  width:100%;
  max-width:var(--shell-max);
  margin:0 auto;
  padding:0 16px;
}

/* ------------------------------- шапка ----------------------------------- */
.pub-topbar{
  position:fixed;top:0;left:0;right:0;height:var(--pub-header-h);
  z-index:var(--z-topbar);
  background:color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line-soft);
}
.pub-topbar-in{
  max-width:none;height:100%;margin:0 auto;padding:0 clamp(16px,4vw,64px);
  display:flex;align-items:center;gap:18px;
}

/* бренд — как в топбаре приложения */
.pub-brand{
  display:inline-flex;align-items:center;gap:9px;
  color:var(--text-strong);font-weight:700;font-size:16px;letter-spacing:.01em;
  flex:0 0 auto;
}
.pub-brand:hover{color:var(--text-strong)}
.pub-brand-mark{
  width:30px;height:30px;border-radius:7px;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--card-soft);border:1px solid var(--line);
  color:var(--accent);font-size:12.5px;font-weight:700;font-style:italic;
}

.pub-nav{display:flex;align-items:center;gap:2px;min-width:0}
.pub-nav a{
  display:inline-flex;align-items:center;height:34px;padding:0 12px;
  border-radius:var(--radius-md);
  color:var(--muted);font-size:14px;font-weight:500;
  white-space:nowrap;
  transition:background var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out);
}
.pub-nav a:hover{background:var(--card-soft);color:var(--text)}

.pub-topbar-auth{display:flex;align-items:center;gap:8px;margin-left:auto;flex:0 0 auto}
.pub-topbar-auth .pub-login{
  display:inline-flex;align-items:center;height:34px;padding:0 12px;
  border-radius:var(--radius-md);
  color:var(--text);font-size:14px;font-weight:500;
  transition:background var(--dur-fast) var(--ease-out);
}
.pub-topbar-auth .pub-login:hover{background:var(--card-soft);color:var(--text-strong)}
.pub-topbar-auth .btn{font-weight:600}

/* мобильное меню */
.pub-burger{
  display:none;width:38px;height:38px;border:0;border-radius:var(--radius-md);
  background:none;color:var(--text);cursor:pointer;
  align-items:center;justify-content:center;flex:0 0 auto;
  transition:background var(--dur-fast) var(--ease-out);
}
.pub-burger:hover{background:var(--card-soft)}
.pub-burger i{
  position:relative;display:block;width:17px;height:1.5px;
  background:currentColor;
}
.pub-burger i::before,.pub-burger i::after{
  content:"";position:absolute;left:0;width:17px;height:1.5px;
  background:currentColor;transition:transform var(--dur-fast) var(--ease-out),top var(--dur-fast) var(--ease-out);
}
.pub-burger i::before{top:-5.5px}
.pub-burger i::after{top:5.5px}
body.pub-menu-open .pub-burger i{background:transparent}
body.pub-menu-open .pub-burger i::before{top:0;transform:rotate(45deg)}
body.pub-menu-open .pub-burger i::after{top:0;transform:rotate(-45deg)}

.pub-mobile-menu{
  position:fixed;top:var(--pub-header-h);left:0;right:0;z-index:var(--z-dropdown);
  display:none;flex-direction:column;gap:2px;
  padding:10px 12px 14px;
  background:var(--bg-elev);border-bottom:1px solid var(--line);
}
body.pub-menu-open .pub-mobile-menu{display:flex}
.pub-mobile-menu a{
  display:flex;align-items:center;min-height:44px;padding:0 12px;
  border-radius:var(--radius-md);
  color:var(--text);font-size:15px;font-weight:500;
}
.pub-mobile-menu a:hover{background:var(--card-soft)}
.pub-mobile-menu .pub-mobile-auth{
  display:flex;gap:8px;margin-top:8px;padding-top:12px;border-top:1px solid var(--line-soft);
}
.pub-mobile-menu .pub-mobile-auth .btn{flex:1 1 auto;justify-content:center}

@media (max-width:900px){
  .pub-nav{display:none}
  .pub-topbar-auth .pub-login{display:none}
  .pub-burger{display:inline-flex}
  .pub-topbar-in{gap:10px}
}

/* ------------------------------ типографика ------------------------------- */
.pub-kicker{
  font-family:var(--pub-mono);
  font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted-2);
}
.pub-h1{
  font-size:clamp(34px,4.2vw,54px);
  font-weight:650;
  line-height:1.06;letter-spacing:-.015em;
  text-wrap:balance;
}
.pub-lead{
  font-size:16px;line-height:1.6;color:var(--muted);max-width:560px;font-weight:400;
}
h1,h2,h3{font-weight:650}

/* редакционные секции: тонкая линия сверху, номер + рубрика в mono */
.pub-sec{margin-top:56px;border-top:1px solid var(--line-soft);padding-top:22px}
.pub-sec-tight{margin-top:26px}
.pub-sec-head{
  display:grid;gap:8px;max-width:680px;margin-bottom:20px;
}
.pub-sec-head h2{font-size:clamp(22px,2.4vw,28px);line-height:1.15;letter-spacing:-.01em;text-wrap:balance}
.pub-sec-head .sub{font-size:14.5px;line-height:1.55;color:var(--muted)}

/* появление — только opacity/лёгкий сдвиг */
@media (prefers-reduced-motion:no-preference){
  .pub-hero-copy,.pub-hero-feed{animation:pub-in .2s var(--ease-out) both}
  .pub-hero-feed{animation-delay:.05s}
  @keyframes pub-in{from{opacity:0;transform:translateY(5px)}}
}

/* ------------------------------- герой ------------------------------------ */
.pub-hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);
  gap:clamp(28px,4vw,64px);align-items:center;
  padding:clamp(26px,4vw,52px) 0 6px;
}
.pub-hero-copy{display:grid;gap:16px;align-content:center;justify-items:start}
.pub-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.pub-hero-note{font-size:13px;color:var(--muted-2)}

/* фирменная сборка логотипа: короткий decode, затем линия и подпись */
.pub-decode-wrap{display:grid;gap:7px;justify-items:start}
.pub-decode{
  font-family:var(--pub-mono);
  font-size:13px;font-weight:500;letter-spacing:.1em;text-transform:none;
  color:var(--muted);min-height:1.3em;
}
.pub-decode.is-done{color:var(--text)}
.pub-hero-sub{
  display:flex;align-items:center;gap:10px;
  font-family:var(--pub-mono);font-size:10.5px;letter-spacing:.12em;
  color:var(--muted-2);text-transform:uppercase;
  opacity:1;
}
.pub-hero-sub::before{content:"";width:34px;height:1px;background:var(--line);flex:0 0 auto}
.pub-hero-sub .dot{color:var(--presence-online)}
@media (prefers-reduced-motion:no-preference){
  .pub-hero-sub.is-armed{opacity:0;transition:opacity .18s var(--ease-out)}
  .pub-hero-sub.is-armed.is-on{opacity:1}
}

/* ---------- правая колонка героя: один цельный фрагмент ленты -------------- */
.pub-hero-feed{
  position:relative;min-width:0;
  background:var(--card);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.pub-hero-feed-cap{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 14px;border-bottom:1px solid var(--line-soft);
  font-family:var(--pub-mono);font-size:10.5px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted-2);
}
.pub-hero-feed-cap .st{display:inline-flex;align-items:center;gap:6px}
.pub-hero-feed-cap .st i{width:6px;height:6px;border-radius:50%;background:var(--presence-online)}

/* нить связей: вертикальная линия от автора вниз через комментарий к
   связанной активности; аватары служат узлами и перекрывают линию */
.pub-thread{position:relative}
.pub-thread::before{
  content:"";position:absolute;left:34px;top:64px;bottom:24px;width:1px;
  background:var(--line);
}
.pub-hero-feed .pubpost-comments{padding-left:24px}
.pub-hero-feed .pub-linked{padding-left:24px}

/* --------------------------- аватары ---------------------------------------
   Основной вариант — изображение (реальные аватары/арты продукта) или
   нейтральный силуэт; буквенная плитка — редкий запасной случай. */
.pub-ava{
  position:relative;flex:0 0 auto;width:38px;height:38px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--pa-bg,#191919);border:1px solid var(--pa-line,#2a2a2a);
  color:var(--pa-fg,#bdbdbd);overflow:visible;
  font-family:var(--pub-mono);
  font-size:11.5px;font-weight:500;letter-spacing:.04em;text-transform:lowercase;
  user-select:none;
}
.pub-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.pub-ava-sm{width:30px;height:30px;font-size:10px}
.pub-ava-xs{width:22px;height:22px;font-size:8.5px}
.pub-ava-lg{width:52px;height:52px;font-size:14px}
.pub-ava-xl{width:72px;height:72px;font-size:18px}
.pub-ava[data-tone="2"]{--pa-bg:#202020;--pa-fg:#d6d6d6;--pa-line:#303030}
.pub-ava[data-tone="3"]{--pa-bg:#151515;--pa-fg:#ababab;--pa-line:#242424}
.pub-ava[data-tone="4"]{--pa-bg:#262626;--pa-fg:#e6e6e6;--pa-line:#363636}
.pub-ava[data-tone="5"]{--pa-bg:#0f0f0f;--pa-fg:#9e9e9e;--pa-line:#202020}
.pub-ava .presence{
  position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;
  background:var(--muted-2);border:2px solid var(--card);
}
.pub-ava .presence.online{background:var(--presence-online)}

.pub-ava-stack{display:inline-flex;align-items:center}
.pub-ava-stack .pub-ava{margin-left:-7px;border:2px solid var(--card)}
.pub-ava-stack .pub-ava:first-child{margin-left:0}

/* плитка игры: как в приложении (layout.css здесь не подключается) */
body.public-page .game-tile{
  width:38px;height:38px;border-radius:var(--radius-md);flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--muted);font-size:12.5px;font-weight:700;letter-spacing:.05em;
  background:var(--card-soft);border:1px solid var(--line-soft);
  text-transform:uppercase;font-family:var(--pub-mono);
}

/* --------------------------- карточка поста -------------------------------- */
.pubpost{
  background:var(--card);border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  overflow:hidden;min-width:0;
}
.pubpost-head{display:flex;align-items:center;gap:11px;padding:13px 16px 0}
.pubpost-who{flex:1 1 auto;min-width:0;display:grid;gap:2px}
.pubpost-name{font-size:14px;font-weight:600;color:var(--text-strong)}
.pubpost-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;
  font-family:var(--pub-mono);font-size:11.5px;color:var(--muted-2);
}
.pubpost-meta b{color:var(--muted);font-weight:500}
.pubpost-more{
  flex:0 0 auto;width:30px;height:30px;border-radius:var(--radius-sm);
  display:inline-flex;align-items:center;justify-content:center;gap:2.5px;
  color:var(--muted-2);
}
.pubpost-more i{width:3px;height:3px;border-radius:50%;background:currentColor}
.pubpost-body{padding:10px 16px 0;font-size:14.5px;line-height:1.55;overflow-wrap:anywhere}
.pubpost-body .tag{color:var(--text-strong);font-weight:500}
.pubpost-media{margin-top:11px;background:#000;overflow:hidden}
.pubpost-media img{width:100%;max-height:340px;object-fit:cover;display:block}
.pubpost-actions{display:flex;align-items:center;gap:2px;padding:7px 10px 9px;margin-top:8px}
.pub-act{
  display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;
  border:0;border-radius:var(--radius-sm);background:none;
  color:var(--muted);font-size:12.5px;font-family:var(--pub-mono);
}
.pub-act .icon{width:18px;height:18px}
.pub-act.is-on{color:var(--text-strong)}
.pub-act.is-on .icon{fill:var(--text-strong);stroke:var(--text-strong)}
.pubpost-actions .pub-spacer{flex:1}
.pub-views{
  font-family:var(--pub-mono);font-size:11.5px;color:var(--muted-2);
  display:inline-flex;align-items:center;gap:4px;padding-right:8px;
}
.pub-views .icon{width:14px;height:14px}

.pubpost-comments{border-top:1px solid var(--line-soft);padding:10px 16px 13px;display:grid;gap:9px}
.pub-comment{display:flex;gap:8px;align-items:flex-start;min-width:0}
.pub-comment p{font-size:12.75px;line-height:1.45;overflow-wrap:anywhere}
.pub-comment p b{color:var(--text-strong);margin-right:5px;font-weight:600}
.pub-comment-input{
  display:flex;align-items:center;gap:8px;
  color:var(--muted-2);font-size:12.75px;
}

/* строка «связанной активности» внизу фрагмента */
.pub-linked{
  display:flex;align-items:center;gap:9px;
  padding:10px 16px 12px;border-top:1px solid var(--line-soft);
  font-size:12.5px;color:var(--muted);
}
.pub-linked b{color:var(--text);font-weight:500}
.pub-linked .when{margin-left:auto;font-family:var(--pub-mono);font-size:10.5px;color:var(--muted-2)}

/* иконки статических компоновок */
.pub-ico{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ----------------------------- панель/строки -------------------------------- */
.pub-panel{
  background:var(--card);border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  padding:12px 14px;display:grid;gap:10px;min-width:0;
}
.pub-panel-h{
  font-family:var(--pub-mono);
  font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);
}
.pub-row{display:flex;align-items:center;gap:10px;min-width:0}
.pub-row-txt{flex:1 1 auto;min-width:0;display:grid;gap:2px}
.pub-row-name{font-size:13.5px;font-weight:600;color:var(--text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pub-row-sub{
  font-family:var(--pub-mono);font-size:11px;color:var(--muted);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.pub-row .btn{flex:0 0 auto}
.pub-msg-text{font-size:13px;line-height:1.45;color:var(--text);overflow-wrap:anywhere}
.pub-msg-when{font-family:var(--pub-mono);font-size:10.5px;color:var(--muted-2)}

/* --------------------------- живая активность ------------------------------ */
.pub-activity{
  margin-top:26px;
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
  padding:8px 0;
}
.pub-activity-track{
  display:flex;overflow-x:auto;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.pub-activity-track::-webkit-scrollbar{display:none}
.pub-activity-item{
  flex:0 0 auto;display:flex;align-items:center;gap:9px;
  padding:6px 18px 6px 0;margin-right:18px;
  border-right:1px solid var(--line-soft);
  max-width:340px;min-width:0;
}
.pub-activity-item:last-child{border-right:0;margin-right:0}
.pub-activity-item .txt{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pub-activity-item .txt b{color:var(--text);font-weight:500}
.pub-activity-item .when{font-family:var(--pub-mono);font-size:10.5px;color:var(--muted-2);flex:0 0 auto}

/* ------------------------- секция ленты ------------------------------------ */
.pub-feed-grid{
  display:grid;grid-template-columns:minmax(0,1fr) 300px;
  gap:24px;align-items:start;
}
.pub-feed-col{display:grid;gap:14px;min-width:0}
.pub-rail{display:grid;gap:14px;min-width:0}
.pub-rail .pub-panel{padding:6px 0 8px}
.pub-rail .pub-panel .pub-panel-h{padding:8px 14px 6px}
.pub-rail-list{display:grid;gap:1px;padding:0 6px}
.pub-rail-row{
  display:flex;align-items:center;gap:10px;padding:8px;
  border-radius:var(--radius-sm);color:var(--text);min-width:0;
}
.pub-rail-row:hover{background:var(--card-soft);color:var(--text)}
button.pub-rail-row{width:100%;border:0;background:none;font:inherit;text-align:left;cursor:pointer}
button.pub-rail-row.is-active{background:var(--accent-soft)}
button.pub-rail-row.is-active .name{color:var(--text-strong)}
.pub-rail-row .name{font-size:13.5px;font-weight:500;color:var(--text)}
.pub-rail-row .sub{font-size:12px;color:var(--muted)}

.pub-tile-sm{width:32px !important;height:32px !important;font-size:10.5px !important}
.pub-tile-xs{width:22px !important;height:22px !important;font-size:8.5px !important;border-radius:5px}

/* вкладки ленты */
.pub-feed-tabs{
  display:flex;gap:2px;align-items:center;
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  border-bottom:1px solid var(--line-soft);
  padding:0 2px;
}
.pub-feed-tabs::-webkit-scrollbar{display:none}
.pub-feed-tabs span{
  position:relative;flex:0 0 auto;height:38px;display:inline-flex;align-items:center;
  padding:0 12px;color:var(--muted);font-size:13.5px;font-weight:500;white-space:nowrap;
}
.pub-feed-tabs span.is-active{color:var(--text-strong)}
.pub-feed-tabs span.is-active::after{
  content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;
  background:var(--accent);
}

/* ------------------------- люди и связи ------------------------------------ */
.pub-people-grid{
  display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
  gap:24px;align-items:start;
}
.pub-profile-card{padding:16px;display:grid;gap:13px}
.pub-profile-top{display:flex;align-items:center;gap:14px;min-width:0}
.pub-profile-top .who{flex:1 1 auto;min-width:0;display:grid;gap:3px}
.pub-profile-top .who .nm{font-size:16px;font-weight:650;color:var(--text-strong)}
.pub-profile-top .who .st{
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--pub-mono);font-size:11px;color:var(--muted);
}
.pub-profile-top .who .st i{width:7px;height:7px;border-radius:50%;background:var(--presence-online)}
.pub-profile-bio{font-size:14px;line-height:1.5;color:var(--text)}
.pub-profile-sec{display:grid;gap:7px}
.pub-profile-sec > span{
  font-family:var(--pub-mono);
  font-size:10.5px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);
}
.pub-chiprow{display:flex;flex-wrap:wrap;gap:6px}
body.public-page .chip{border-radius:var(--radius-sm);height:26px;padding:0 9px;font-size:12.5px;font-weight:500}
body.public-page .chip.chip-static{color:var(--text)}
.pub-mutual{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--muted)}
.pub-profile-acts{display:flex;gap:8px}
.pub-profile-acts .btn{flex:1 1 auto;justify-content:center}

.pub-history{padding:6px 0 8px}
.pub-history .pub-panel-h{padding:8px 14px 4px}
.pub-history-list{display:grid}
.pub-history-row{
  display:flex;align-items:flex-start;gap:10px;padding:9px 14px;min-width:0;
}
.pub-history-row + .pub-history-row{border-top:1px solid var(--line-soft)}
.pub-history-row .txt{font-size:13px;line-height:1.45;color:var(--muted);min-width:0}
.pub-history-row .txt b{color:var(--text);font-weight:500}
.pub-history-row .when{
  margin-left:auto;flex:0 0 auto;
  font-family:var(--pub-mono);font-size:10.5px;color:var(--muted-2);padding-top:2px;
}

/* схема связей: профиль — публикация — сообщество — игра.
   Линии соединяют реальные элементы, узлы — точки на линии. */
.pub-net{
  margin-top:18px;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;align-items:stretch;position:relative;
}
.pub-net-item{
  position:relative;
  display:flex;align-items:center;gap:10px;min-width:0;
  padding:12px 14px;
  border:1px solid var(--line-soft);border-left:0;
  background:var(--card);
}
.pub-net-item:first-child{border-left:1px solid var(--line-soft);border-radius:var(--radius-lg) 0 0 var(--radius-lg)}
.pub-net-item:last-child{border-radius:0 var(--radius-lg) var(--radius-lg) 0}
.pub-net-item + .pub-net-item::before{
  content:"";position:absolute;left:-4px;top:50%;width:7px;height:7px;
  border-radius:50%;background:var(--bg);border:1.5px solid var(--muted-2);
  transform:translateY(-50%);z-index:1;
}
.pub-net-item .t{min-width:0;display:grid;gap:1px}
.pub-net-item .t b{font-size:13px;font-weight:600;color:var(--text-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pub-net-item .t span{
  font-family:var(--pub-mono);font-size:10.5px;color:var(--muted-2);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
@media (max-width:900px){
  .pub-net{grid-template-columns:minmax(0,1fr)}
  .pub-net-item{border-left:1px solid var(--line-soft);border-top:0}
  .pub-net-item:first-child{border-top:1px solid var(--line-soft);border-radius:var(--radius-lg) var(--radius-lg) 0 0}
  .pub-net-item:last-child{border-radius:0 0 var(--radius-lg) var(--radius-lg)}
  .pub-net-item + .pub-net-item::before{left:24px;top:-4px;transform:none}
}

/* --------------------------- поиск игроков ---------------------------------- */
.pub-tm-grid{
  display:grid;grid-template-columns:264px minmax(0,1fr);
  gap:24px;align-items:start;
}
.pub-filters{padding:14px 16px;display:grid;gap:13px}
.pub-filters-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.pub-filters-h b{font-size:14px;font-weight:600;color:var(--text-strong)}
.pub-filters-h span{font-family:var(--pub-mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2)}
.pub-field{display:grid;gap:6px}
.pub-field > span{font-size:12.5px;color:var(--muted);font-weight:500}
.pub-field-box{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:36px;padding:7px 11px;
  border:1px solid var(--line);border-radius:var(--radius-md);
  background:var(--bg);font-size:13.5px;color:var(--text);
  font-family:var(--pub-mono);
}
.pub-field-box .chev{
  width:8px;height:8px;flex:0 0 auto;
  border-right:1.5px solid var(--muted-2);border-bottom:1.5px solid var(--muted-2);
  transform:rotate(45deg) translateY(-2px);
}
.pub-tm-cards{display:grid;gap:14px;min-width:0}
.pub-tm-card{padding:14px 16px;display:grid;gap:11px}
.pub-tm-top{display:flex;align-items:center;gap:11px;min-width:0}
.pub-tm-top .who{flex:1 1 auto;min-width:0;display:grid;gap:2px}
.pub-tm-top .who .nm{font-size:14.5px;font-weight:600;color:var(--text-strong)}
.pub-tm-top .who .sub{font-family:var(--pub-mono);font-size:11px;color:var(--muted)}
.pub-tm-card .chip{font-family:var(--pub-mono);font-size:11.5px}
.pub-tm-meta{
  display:flex;flex-wrap:wrap;gap:6px 14px;
  font-size:12.5px;color:var(--muted);
}
.pub-tm-meta b{color:var(--text);font-weight:500;font-family:var(--pub-mono);font-size:12px}
.pub-tm-acts{display:flex;gap:8px;flex-wrap:wrap}

/* ------------------------------ сообщества ---------------------------------- */
.pub-com-list{
  display:grid;
  border-top:1px solid var(--line);
}
.pub-com-row{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  gap:14px;align-items:center;padding:14px 2px;
  border-bottom:1px solid var(--line-soft);
}
.pub-com-tile{
  width:42px;height:42px;border-radius:var(--radius-md);flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--card-soft);border:1px solid var(--line-soft);
  color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  font-family:var(--pub-mono);
}
.pub-com-main{display:grid;gap:3px;min-width:0}
.pub-com-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.pub-com-title b{font-size:15px;font-weight:600;color:var(--text-strong)}
body.public-page .badge{border-radius:var(--radius-sm);font-family:var(--pub-mono);font-size:10.5px;letter-spacing:.03em}
.pub-com-desc{font-size:13px;color:var(--muted);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pub-com-desc-full{white-space:normal;overflow:visible;text-overflow:clip}
.pub-com-fresh{
  display:flex;align-items:center;gap:6px;min-width:0;
  font-size:12.5px;color:var(--muted-2);
}
.pub-com-fresh .txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pub-com-fresh b{color:var(--muted);font-weight:500}

/* --------------------------------- игры ------------------------------------- */
.pub-games-list{
  display:grid;
  border-top:1px solid var(--line);
}
.pub-game-row{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;
  gap:14px;align-items:center;padding:12px 2px;
  border-bottom:1px solid var(--line-soft);
  color:var(--text);
  transition:background var(--dur-fast) var(--ease-out);
}
.pub-game-row:hover{background:var(--card);color:var(--text)}
.pub-game-main{display:grid;gap:2px;min-width:0}
.pub-game-main b{font-size:14.5px;font-weight:600;color:var(--text-strong)}
.pub-game-main span{font-family:var(--pub-mono);font-size:11px;color:var(--muted)}
.pub-game-links{
  display:flex;align-items:center;gap:10px;flex:0 0 auto;
  font-size:12.5px;color:var(--muted);
}
.pub-game-links .go{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-weight:500}
.pub-game-row:hover .go{color:var(--text-strong)}
.pub-game-links .chev{
  width:7px;height:7px;border-right:1.5px solid currentColor;border-top:1.5px solid currentColor;
  transform:rotate(45deg);flex:0 0 auto;
}

/* --------------------------------- гайды ------------------------------------ */
.pub-guides-grid{
  display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:24px;align-items:stretch;
}
.pub-guide-feature{
  display:grid;grid-template-rows:auto 1fr;
  background:var(--card);border:1px solid var(--line-soft);border-radius:var(--radius-lg);
  overflow:hidden;color:var(--text);min-width:0;
  transition:border-color var(--dur-fast) var(--ease-out),background var(--dur-fast) var(--ease-out);
}
.pub-guide-feature:hover{border-color:var(--line);background:var(--card-hover);color:var(--text)}
.pub-thumb{
  aspect-ratio:16/9;
  display:flex;align-items:center;justify-content:center;
  background:var(--card-soft);border-bottom:1px solid var(--line-soft);
  color:var(--muted-2);font-size:20px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  font-family:var(--pub-mono);
}
.pub-guide-feature-body{padding:16px;display:grid;gap:8px;align-content:start}
.pub-guide-kick{
  font-family:var(--pub-mono);
  font-size:10.5px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);
}
.pub-guide-feature-body h3{font-size:18px;line-height:1.28;font-weight:650}
.pub-guide-feature-body p{font-size:13.5px;line-height:1.5;color:var(--muted)}
.pub-guide-meta{
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
  font-family:var(--pub-mono);font-size:11px;color:var(--muted-2);margin-top:2px;
}
.pub-guide-meta i{font-style:normal}
.pub-guide-meta b{color:var(--muted);font-weight:500}

.pub-guide-list{
  display:grid;align-content:start;
  border-top:1px solid var(--line);
}
.pub-guide-row{
  display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:center;
  padding:13px 2px;color:var(--text);
  border-bottom:1px solid var(--line-soft);
  transition:background var(--dur-fast) var(--ease-out);
}
.pub-guide-row:hover{background:var(--card);color:var(--text)}
.pub-guide-row .pub-thumb{
  aspect-ratio:16/9;border:1px solid var(--line-soft);border-radius:var(--radius-sm);
  font-size:11.5px;
}
.pub-guide-row-main{display:grid;gap:3px;min-width:0}
.pub-guide-row-main b{font-size:14.5px;font-weight:600;color:var(--text-strong);line-height:1.3}
.pub-guide-row-main p{font-size:12.5px;color:var(--muted);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ------------------------------- финальный CTA ------------------------------- */
.pub-cta{
  margin:56px 0 0;
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
  padding:26px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line-soft);
}
.pub-cta h2{font-size:clamp(20px,2.2vw,25px);line-height:1.2;font-weight:650}
.pub-cta p{font-size:14px;color:var(--muted);margin-top:5px;max-width:520px}
.pub-cta .btn{flex:0 0 auto}

/* --------------------------------- подвал ------------------------------------ */
.pub-footer{
  margin-top:56px;
  border-top:1px solid var(--line-soft);
  background:var(--bg-elev);
}
.pub-footer-in{
  max-width:var(--shell-max);margin:0 auto;padding:26px 16px 20px;
  display:grid;gap:20px;
}
.pub-footer-top{
  display:grid;grid-template-columns:minmax(220px,1.3fr) repeat(3,minmax(130px,1fr));
  gap:24px;align-items:start;
}
.pub-footer-brand{display:grid;gap:10px;justify-items:start}
.pub-footer-brand p{font-size:13px;color:var(--muted);line-height:1.5;max-width:280px}
.pub-footer-col{display:grid;gap:1px;justify-items:start}
.pub-footer-col .h{
  font-family:var(--pub-mono);
  font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted-2);margin-bottom:7px;
}
.pub-footer-col a{
  display:inline-flex;align-items:center;min-height:29px;
  font-size:13.5px;color:var(--muted);
}
.pub-footer-col a:hover{color:var(--text)}
.pub-footer-bottom{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;
  padding-top:14px;border-top:1px solid var(--line-soft);
  font-family:var(--pub-mono);
  font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-2);
}

/* ------------------------------ хлебные крошки ------------------------------- */
.pub-crumbs{
  display:flex;flex-wrap:wrap;align-items:center;gap:7px;
  padding:18px 0 0;
  font-family:var(--pub-mono);font-size:11.5px;color:var(--muted-2);
}
.pub-crumbs a{color:var(--muted)}
.pub-crumbs a:hover{color:var(--text)}
.pub-crumbs i{font-style:normal;color:var(--muted-2)}
.pub-crumbs span[aria-current]{color:var(--text)}
.pub-crumbs-flat{padding-top:0}

/* --------------------------- шапка раздела/статьи ---------------------------- */
.pub-page-head{display:grid;gap:12px;padding:18px 0 0;max-width:760px}
.pub-page-head h1{font-size:clamp(27px,3.2vw,36px);line-height:1.12;letter-spacing:-.012em;text-wrap:balance;font-weight:650}
.pub-page-head .pub-lead{max-width:640px}
.pub-page-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;
  font-family:var(--pub-mono);font-size:11.5px;color:var(--muted-2);
}
.pub-page-meta b{color:var(--muted);font-weight:500}

/* -------------------------- публичный выбор игры ---------------------------- */
.pub-games-index{min-height:70svh}
.pub-games-index-hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line-soft);
  background:
    radial-gradient(circle at 82% 28%,rgba(255,255,255,.055),transparent 35%),
    var(--bg);
}
.pub-games-index-hero::after{
  content:"GAMES";
  position:absolute;
  right:-.05em;
  bottom:-.34em;
  color:transparent;
  -webkit-text-stroke:1px rgba(255,255,255,.07);
  font-size:clamp(130px,25vw,390px);
  font-weight:700;
  line-height:.8;
  letter-spacing:-.08em;
  pointer-events:none;
  user-select:none;
}
.pub-games-index-head{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(230px,360px);
  gap:clamp(42px,8vw,130px);
  align-items:end;
  padding:clamp(54px,8vw,108px) 0 clamp(56px,7vw,94px);
}
.pub-games-index-title{display:grid;gap:16px;max-width:850px}
.pub-games-index-title h1{
  margin:0;
  max-width:780px;
  font-size:clamp(50px,7.2vw,104px);
  font-weight:600;
  line-height:.92;
  letter-spacing:-.055em;
  text-wrap:balance;
}
.pub-games-index-title .pub-lead{max-width:620px;font-size:clamp(16px,1.5vw,20px)}
.pub-games-index-note{
  margin:0;
  padding:18px 0 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.pub-games-index-note b{display:block;margin-bottom:7px;color:var(--text);font-family:var(--pub-mono);font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}

.pub-games-index-catalog{padding:clamp(58px,8vw,112px) 0 clamp(74px,10vw,140px)}
.pub-games-index-meta{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
  font-family:var(--pub-mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted-2);
}
.pub-games-index-meta h2{margin:0;color:var(--muted);font:inherit}
.pub-game-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line)}
.pub-game-rights-note{margin:16px 0 0;color:var(--muted-2);font-family:var(--pub-mono);font-size:10px;line-height:1.55;letter-spacing:.02em}
.pub-game-rights-note a{color:var(--muted);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.pub-game-rights-note a:hover{color:var(--text)}
.pub-game-choice{
  position:relative;
  min-width:0;
  min-height:250px;
  display:grid;
  grid-template-columns:42px 58px minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
  padding:28px 26px 28px 2px;
  border-bottom:1px solid var(--line-soft);
  color:var(--text);
  overflow:hidden;
  isolation:isolate;
  transition:background 320ms var(--ease-out),color 320ms var(--ease-out);
}
.pub-game-choice:nth-child(odd){border-right:1px solid var(--line-soft)}
.pub-game-choice:nth-child(even){padding-left:26px}
.pub-game-choice::before{
  content:"";
  position:absolute;
  inset:auto -22% -75% 28%;
  z-index:-1;
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.085),rgba(255,255,255,0) 67%);
  opacity:0;
  transform:scale(.72);
  transition:opacity 420ms var(--ease-out),transform 700ms cubic-bezier(.16,1,.3,1);
}
.pub-game-choice:hover{background:var(--card);color:var(--text)}
.pub-game-choice:hover::before{opacity:1;transform:scale(1)}
.pub-game-choice-num{padding-top:5px;font-family:var(--pub-mono);font-size:10px;letter-spacing:.1em;color:var(--muted-2)}
.pub-game-choice .game-tile{width:58px;height:58px;border-radius:8px;font-size:15px;color:var(--text)}
.pub-game-choice-copy{display:grid;gap:8px;min-width:0}
.pub-game-choice-kicker{font-family:var(--pub-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2)}
.pub-game-choice h3{margin:0;font-size:clamp(24px,2.2vw,34px);font-weight:550;line-height:1.05;letter-spacing:-.03em}
.pub-game-choice p{margin:0;max-width:440px;color:var(--muted);font-size:13.5px;line-height:1.52}
.pub-game-choice-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.pub-game-choice-tags span{padding:4px 7px;border:1px solid var(--line-soft);border-radius:3px;font-family:var(--pub-mono);font-size:9.5px;letter-spacing:.04em;color:var(--muted)}
.pub-game-choice-arrow{
  width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line-soft);border-radius:50%;
  color:var(--muted-2);font-size:18px;
  transition:transform 420ms cubic-bezier(.16,1,.3,1),color 220ms var(--ease-out),border-color 220ms var(--ease-out);
}
.pub-game-choice:hover .pub-game-choice-arrow{transform:rotate(45deg);color:var(--text);border-color:var(--line)}

@media (prefers-reduced-motion:no-preference){
  .pub-games-index-title > *,.pub-games-index-note{animation:pub-game-head-in 650ms cubic-bezier(.16,1,.3,1) both}
  .pub-games-index-title .pub-lead{animation-delay:80ms}
  .pub-games-index-note{animation-delay:150ms}
  .pub-game-choice{animation:pub-game-choice-in 700ms cubic-bezier(.16,1,.3,1) both;animation-delay:var(--game-delay,0ms)}
  @keyframes pub-game-head-in{from{opacity:0;transform:translateY(20px)}}
  @keyframes pub-game-choice-in{from{opacity:0;transform:translateY(30px)}}
}

@media (max-width:820px){
  .pub-games-index-head{grid-template-columns:1fr;gap:34px}
  .pub-games-index-note{max-width:520px}
  .pub-game-choice-grid{grid-template-columns:1fr}
  .pub-game-choice:nth-child(odd){border-right:0}
  .pub-game-choice:nth-child(even){padding-left:2px}
}
@media (max-width:540px){
  .pub-games-index-head{padding-block:44px 52px}
  .pub-games-index-title h1{font-size:clamp(48px,16vw,68px)}
  .pub-game-choice{min-height:0;grid-template-columns:30px 48px minmax(0,1fr);gap:12px;padding:22px 0}
  .pub-game-choice .game-tile{width:48px;height:48px;font-size:13px}
  .pub-game-choice-arrow{display:none}
  .pub-game-choice h3{font-size:25px}
  .pub-game-choice p{font-size:13px}
}

/* ------------------------------ каталог гайдов ------------------------------- */
.pub-guides-tools{margin-top:20px;display:grid;gap:12px;padding:14px 16px}
.pub-guides-tools .input-search{max-width:420px}
.pub-cat-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pub-cat-row .lbl{
  font-family:var(--pub-mono);font-size:10.5px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted-2);margin-right:4px;
}
.pub-guides-empty{padding:32px 16px;color:var(--muted);font-size:14px;display:none;border-bottom:1px solid var(--line-soft)}
.pub-guides-empty b{color:var(--text)}
.pub-guides-catalog.is-empty .pub-guides-empty{display:block}
.pub-guides-catalog.is-empty .pub-guide-row{display:none}

/* ------------------------------ статья ---------------------------------------
   Desktop: содержание 220px, статья 680–760px, связанное — только на широких. */
.pub-article{
  display:grid;grid-template-columns:220px minmax(0,740px);
  gap:36px;align-items:start;
  padding:8px 0 0;
  justify-content:flex-start;
}
.pub-article-aside{display:none;gap:14px;position:sticky;top:calc(var(--pub-header-h) + 20px);align-content:start}
@media (min-width:1360px){
  .pub-article.has-aside{grid-template-columns:220px minmax(0,740px) minmax(200px,1fr)}
  .pub-article-aside{display:grid}
}
.pub-article-single{grid-template-columns:minmax(0,740px) !important}
.pub-toc{
  position:sticky;top:calc(var(--pub-header-h) + 20px);
  display:grid;gap:1px;padding:0 0 4px;
  border-left:1px solid var(--line-soft);
}
.pub-toc .h{
  padding:2px 14px 8px;
  font-family:var(--pub-mono);
  font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-2);
}
.pub-toc a{
  padding:6px 14px;margin-left:-1px;border-left:1px solid transparent;
  font-size:13px;line-height:1.35;color:var(--muted);
}
.pub-toc a:hover{color:var(--text);border-left-color:var(--muted-2)}

/* -------------------------------- проза -------------------------------------- */
.pub-prose{min-width:0;max-width:740px;font-size:15.5px;line-height:1.65;color:var(--text)}
.pub-prose > *{min-width:0}
.pub-prose section[id]{scroll-margin-top:calc(var(--pub-header-h) + 16px)}
.pub-prose #third-party-marks{margin-top:-80px;padding-top:80px}
.pub-prose h2{
  margin:34px 0 10px;font-size:clamp(20px,2.3vw,24px);line-height:1.22;font-weight:650;
  scroll-margin-top:calc(var(--pub-header-h) + 16px);
}
.pub-prose h2:first-child{margin-top:0}
.pub-prose h3{
  margin:24px 0 8px;font-size:17px;line-height:1.3;font-weight:600;
  scroll-margin-top:calc(var(--pub-header-h) + 16px);
}
.pub-prose p{margin:0 0 13px}
.pub-legal-notices{display:grid;gap:8px;margin:18px 0}
.pub-prose .pub-legal-notices p{margin:0;padding:12px 14px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--card);color:var(--muted);font-family:var(--pub-mono);font-size:11px;line-height:1.55}
.pub-prose a{color:var(--text-strong);text-decoration:underline;text-decoration-color:var(--muted-2);text-underline-offset:3px}
.pub-prose a:hover{text-decoration-color:var(--text-strong)}
.pub-prose strong{color:var(--text-strong);font-weight:600}
.pub-prose ul,.pub-prose ol{margin:0 0 14px;padding-left:22px}
.pub-prose li{margin:0 0 7px}
.pub-prose li::marker{color:var(--muted-2)}
.pub-prose img{border-radius:var(--radius-md);border:1px solid var(--line-soft)}
.pub-prose figcaption{font-family:var(--pub-mono);font-size:11px;color:var(--muted-2);margin-top:6px}

.pub-note{
  margin:0 0 14px;padding:13px 16px;
  background:var(--card-soft);border:1px solid var(--line-soft);border-radius:var(--radius-md);
  font-size:14px;line-height:1.55;color:var(--text);
}
.pub-note b,.pub-warn b,.pub-important b{color:var(--text-strong)}
.pub-warn{
  margin:0 0 14px;padding:13px 16px;
  background:var(--danger-soft);border:1px solid color-mix(in srgb, var(--danger) 36%, transparent);
  border-radius:var(--radius-md);
  font-size:14px;line-height:1.55;color:var(--text);
}
.pub-important{
  margin:0 0 14px;padding:11px 16px;
  border-left:2px solid var(--accent);
  background:var(--card);border-radius:0;
  font-size:14px;line-height:1.55;color:var(--text);
}

.pub-article-foot{display:grid;gap:16px;margin-top:30px;padding-top:18px;border-top:1px solid var(--line-soft)}
.pub-article-next{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:15px 18px;
}
.pub-article-next .t b{display:block;font-size:15px;font-weight:600;color:var(--text-strong)}
.pub-article-next .t span{font-size:13px;color:var(--muted)}

.pub-related{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.pub-related-card{
  display:grid;gap:5px;padding:14px 16px;
  background:var(--card);border:1px solid var(--line-soft);border-radius:var(--radius-md);
  color:var(--text);
  transition:border-color var(--dur-fast) var(--ease-out),background var(--dur-fast) var(--ease-out);
}
.pub-related-card:hover{border-color:var(--line);background:var(--card-hover);color:var(--text)}
.pub-related-card .k{
  font-family:var(--pub-mono);
  font-size:10px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);
}
.pub-related-card b{font-size:14px;font-weight:600;color:var(--text-strong);line-height:1.3}
.pub-related-card span{font-size:12.5px;color:var(--muted);line-height:1.4}

/* -------------------------------- таблицы ------------------------------------ */
.pub-table-wrap{
  overflow-x:auto;margin:0 0 14px;
  border:1px solid var(--line-soft);border-radius:var(--radius-md);
  background:var(--card);
}
.pub-table{
  width:100%;min-width:560px;border-collapse:collapse;
  font-size:13.5px;line-height:1.5;
}
.pub-table th{
  text-align:left;padding:10px 14px;
  font-family:var(--pub-mono);
  font-size:10.5px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted-2);border-bottom:1px solid var(--line-soft);
  white-space:nowrap;
}
.pub-table td{
  padding:10px 14px;vertical-align:top;color:var(--text);
  border-bottom:1px solid var(--line-soft);
}
.pub-table tbody tr:last-child td{border-bottom:0}
.pub-table td:first-child{font-weight:600;color:var(--text-strong);white-space:nowrap}
.pub-table td:nth-child(2){color:var(--muted)}

/* ---------------------------------- FAQ --------------------------------------- */
.pub-faq{display:grid;border-top:1px solid var(--line)}
.pub-faq details{border-bottom:1px solid var(--line-soft)}
.pub-faq summary{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 2px;cursor:pointer;list-style:none;
  font-size:15px;font-weight:600;color:var(--text);
  transition:color var(--dur-fast) var(--ease-out);
}
.pub-faq summary:hover{color:var(--text-strong)}
.pub-faq summary::-webkit-details-marker{display:none}
.pub-faq summary::after{
  content:"";flex:0 0 auto;width:12px;height:12px;color:var(--muted-2);
  background:
    linear-gradient(currentColor,currentColor) center/12px 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center/1.5px 12px no-repeat;
  transition:transform var(--dur-fast) var(--ease-out);
}
.pub-faq details[open] summary::after{transform:rotate(45deg)}
.pub-faq .a{padding:0 2px 15px;font-size:14px;line-height:1.55;color:var(--muted);max-width:740px}
.pub-faq .a a{color:var(--text);text-decoration:underline;text-underline-offset:2px}

/* ------------------------------- страница игры -------------------------------- */
.pub-game-hero{
  background:var(--panel);
  border-bottom:1px solid var(--line-soft);
}
.pub-game-hero-in{
  max-width:var(--shell-max);margin:0 auto;padding:24px 16px 26px;
  display:grid;gap:14px;
}
.pub-game-hero-top{display:flex;align-items:center;gap:16px;min-width:0;flex-wrap:wrap}
.pub-game-hero-top .game-tile{
  width:60px;height:60px;border-radius:var(--radius-lg);font-size:17px;
  background:var(--card-soft);color:var(--text);border-color:var(--line);
}
.pub-game-hero-t{display:grid;gap:4px;min-width:0}
.pub-game-hero-t h1{font-size:clamp(25px,3vw,32px);line-height:1.12;font-weight:650}
.pub-game-hero-t .sub{font-size:14px;color:var(--muted)}
.pub-game-hero .pub-lead{max-width:720px;font-size:15px}
.pub-game-hero-meta{display:flex;flex-wrap:wrap;gap:6px}
.pub-game-hero-meta .chip{font-family:var(--pub-mono);font-size:11.5px}
.pub-game-hero-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:2px}

.pub-split{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:24px;align-items:start;
}
.pub-stack{display:grid;gap:20px;min-width:0}
.pub-info-card{padding:16px;display:grid;gap:8px}
.pub-info-card h3{font-size:15px;font-weight:600}
.pub-info-card p{font-size:14px;line-height:1.55;color:var(--muted)}
.pub-info-card ul{
  margin:0;padding-left:20px;display:grid;gap:7px;
  color:var(--muted);font-size:13.5px;line-height:1.5;
}

.pub-roles{display:grid;border-top:1px solid var(--line)}
.pub-role-row{
  display:grid;grid-template-columns:minmax(120px,auto) minmax(0,1fr);
  gap:6px 16px;align-items:baseline;padding:11px 2px;
  border-bottom:1px solid var(--line-soft);
}
.pub-role-row b{
  font-family:var(--pub-mono);
  font-size:12.5px;font-weight:500;color:var(--text-strong);white-space:nowrap;
}
.pub-role-row span{font-size:13.5px;color:var(--muted);line-height:1.45}

/* ------------------------------ cookie-уведомление ----------------------------- */
.pub-cookie{
  position:fixed;left:16px;right:16px;bottom:16px;z-index:var(--z-toast);
  margin:0 auto;max-width:560px;
  display:flex;align-items:center;gap:12px;
  padding:12px 14px;
  background:var(--bg-elev);border:1px solid var(--line);border-radius:var(--radius-lg);
  opacity:0;transform:translateY(8px);
  transition:opacity var(--dur-fast) var(--ease-out),transform var(--dur-fast) var(--ease-out);
}
.pub-cookie.is-visible{opacity:1;transform:none}
.pub-cookie p{flex:1 1 auto;font-size:12.5px;line-height:1.45;color:var(--muted)}
.pub-cookie p a{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.pub-cookie .btn{flex:0 0 auto}

/* У ссылок-кнопок цвет текста не должен наследоваться от общего a:hover. */
body.public-page .btn.btn-primary,
body.public-page .btn.btn-primary:hover,
body.public-page .btn.btn-primary:focus-visible{color:var(--on-accent)}

/* --------------------------------- адаптив ------------------------------------- */
@media (max-width:1120px){
  .pub-feed-grid{grid-template-columns:minmax(0,1fr)}
  .pub-rail{display:none}
  .pub-article{grid-template-columns:200px minmax(0,1fr);gap:26px}
}

@media (max-width:900px){
  .pub-sec{margin-top:44px;padding-top:18px}
  .pub-hero{grid-template-columns:minmax(0,1fr);padding-top:20px}
  .pub-people-grid,.pub-tm-grid,.pub-guides-grid,.pub-split{grid-template-columns:minmax(0,1fr)}
  .pub-article{grid-template-columns:minmax(0,1fr);gap:18px}
  .pub-toc{position:relative;top:auto}
  .pub-footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pub-footer-brand{grid-column:1 / -1}
}

@media (max-width:640px){
  :root{--pub-header-h:56px}
  body.public-page{font-size:14.5px}
  .pub-wrap{padding:0 14px}
  .pub-h1{font-size:clamp(31px,8.4vw,40px)}
  .pub-hero-actions .btn{flex:1 1 auto;justify-content:center}
  .pub-game-row{grid-template-columns:auto minmax(0,1fr)}
  .pub-game-links{display:none}
  .pub-com-row{grid-template-columns:auto minmax(0,1fr)}
  .pub-com-row .btn{grid-column:2;justify-self:start}
  .pub-guide-row{grid-template-columns:84px minmax(0,1fr)}
  .pub-cta{padding:20px 0}
  .pub-footer-top{grid-template-columns:minmax(0,1fr)}
  .pub-tm-acts .btn,.pub-profile-acts .btn{flex:1 1 auto;justify-content:center}
  .pub-cookie{left:12px;right:12px;bottom:12px;flex-wrap:wrap}
  .pub-thread::before{left:29px}
  .pub-thread-node::before{left:26px}
}

@media (prefers-reduced-motion:reduce){
  .pub-hero-copy,.pub-hero-feed{animation:none}
  .pub-cookie{transition:none}
}
