/* Публичные страницы и главная: одна композиция, без каскада версий макета.
   Главный сценарий — игра. Чат поддерживает его, рекламное место расположено ниже. */
.home-layout {
  grid-template-columns: minmax(0, 1fr) 338px;
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "nav chat" "launch chat" "home project";
  gap: 24px;
}
.home-layout #main {
  display: contents;
}
.home-layout #nav {
  align-self: start;
}
.home-layout #chat-panel {
  position: sticky;
  top: 24px;
  height: 460px;
  min-height: 402px;
}
.launch-panel {
  grid-area: launch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 24px;
  padding: 32px;
  min-width: 0;
  min-height: 390px;
  border: var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 95% 5%, #d7fe3910, transparent 70%), var(--paper);
  overflow: hidden;
}
.hero-copy {
  min-width: 0;
}
.launch-panel .eyebrow {
  color: var(--muted);
  margin-bottom: 12px;
}
.launch-panel h1 {
  font-size: var(--title-hero);
  line-height: 1.15;
  max-width: 21ch;
  white-space: pre-line;
  text-wrap: balance;
}
.launch-panel p {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--muted);
  margin: 16px 0 12px;
  max-width: 43ch;
}
.launch-meta {
  display: block;
  font-size: var(--text-xs);
  line-height: 18px;
  color: var(--ink);
}
.launch-panel .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.launch-panel .actions button {
  flex: 1 1 160px;
}
.launch-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 16px;
  margin-top: 16px;
}
.launch-stats > div,
.launch-stats > button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  min-height: var(--touch-h);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--muted);
  background: none;
  border: none;
}
.launch-stats strong {
  font-size: var(--text-base);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.launch-stats .text-button {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.launch-stats .status-dot {
  width: 6px;
  height: 6px;
}
.launch-example {
  min-width: 0;
}
.launch-example > .eyebrow {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0;
}
.demo-cards {
  padding: 4px 8px 8px;
}
.demo-cards article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 156px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #41463a;
}
.demo-cards article > span {
  font-size: var(--text-xs);
  line-height: 18px;
  opacity: 0.8;
}
.demo-cards strong {
  font-size: var(--text-lg);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.demo-cards i {
  align-self: flex-end;
  margin-top: auto;
  font-size: var(--text-xs);
  font-weight: 700;
  font-style: normal;
}
.demo-question {
  margin-right: 20px;
  transform: rotate(-4deg);
  background: #080a07;
  color: var(--ink);
}
.demo-cards .demo-answer {
  position: relative;
  margin-top: -16px;
  margin-left: 20px;
  transform: rotate(3deg);
  background: #f3f4eb;
  color: #151811;
  border-color: #cbd0bf;
  box-shadow: 0 4px 0 #919b80;
}
.is-auth .launch-panel {
  min-height: 0;
  padding: 24px;
}
.is-auth .launch-panel h1 {
  font-size: var(--title-lg);
  max-width: none;
  white-space: normal;
}
.is-auth .launch-panel p {
  max-width: 60ch;
  margin-top: 12px;
}
.is-auth .launch-panel .actions {
  max-width: 520px;
  margin-top: 16px;
}
.home-content {
  grid-area: home;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.home-content > .section {
  margin-top: 0;
}
.home-content > .daily-card {
  margin: 0;
}
.landing-rules {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: var(--border);
  border-radius: 20px;
  background: var(--paper);
}
.landing-rules h2 {
  font-size: 26px;
  line-height: 1.2;
}
.landing-rules .eyebrow {
  color: var(--muted);
}
.landing-rules .text-button {
  padding: 0;
  margin-top: 12px;
}
.landing-rules ol {
  display: grid;
  gap: 12px;
  padding-left: 24px;
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.landing-rules li {
  padding-left: 4px;
}
.landing-rules li::marker {
  font-weight: 700;
  color: var(--accent);
}
.party-section > h2 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 24px;
  text-wrap: balance;
}
.landing-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.landing-benefits article {
  padding: 20px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
}
.feature-number {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.landing-benefits h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
  margin-bottom: 12px;
}
.landing-benefits p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.world-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 24px;
}
.world-picture {
  position: relative;
  margin: 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #07141d;
}
.world-picture img {
  width: 100%;
  height: auto;
}
.world-picture figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  color: #c0d0da;
  background: #07141dea;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: var(--text-xs);
}
.world-section h2 {
  font-size: 26px;
  line-height: 1.2;
}
.world-section p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 12px;
}
.world-section .eyebrow {
  color: var(--muted);
}
.world-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.world-stats div {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.world-stats div:first-child {
  padding-left: 0;
  border: 0;
}
.world-stats span {
  font-size: var(--text-xs);
  line-height: 18px;
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.world-stats strong {
  display: block;
  font-size: var(--title-md);
  line-height: 1.3;
  color: var(--ink);
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.landing-faq {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
}
.landing-faq h2 {
  font-size: 26px;
  line-height: 1.2;
}
.landing-faq .text-button {
  padding: 0;
  margin-top: 12px;
}
:where(.landing-faq, .document-section) details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
:where(.landing-faq, .document-section) details:first-child {
  border-top: 1px solid var(--line);
}
:where(.landing-faq, .document-section) summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  padding: 16px 0;
  min-height: 56px;
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 700;
  cursor: pointer;
}
:where(.landing-faq, .document-section) summary::-webkit-details-marker {
  display: none;
}
:where(.landing-faq, .document-section) summary > span {
  flex: none;
  color: var(--muted);
}
:where(.landing-faq, .document-section) details[open] summary > span {
  transform: rotate(45deg);
}
:where(.landing-faq, .document-section) details > p {
  margin: 0;
  padding: 0 0 20px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}
.landing-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid #52612c;
  border-radius: 20px;
  background: #1b2112;
}
.landing-cta h2 {
  max-width: 25ch;
  font-size: 26px;
  line-height: 1.2;
}
.landing-cta .primary {
  flex: none;
}
/* Собственный блок проекта: нейтральные имена не совпадают с рекламными cosmetic-фильтрами. */
.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 24px;
  background:
    radial-gradient(ellipse at 10% 0%, #62365d66, transparent 80%), #17151c;
}
.project-card-kicker {
  color: #ccadd9;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.project-card-art {
  height: 130px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
}
.project-card-art > span {
  position: absolute;
  font-size: 124px;
  line-height: 1;
  color: #8e59aa;
}
.project-card-art img {
  z-index: 1;
  transform: rotate(-7deg);
}
.project-card h2 {
  font-size: 26px;
  line-height: 1.2;
  max-width: 16ch;
}
.project-card p {
  color: #c3b4ca;
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-top: 12px;
}
.project-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-h);
  padding: 8px;
  margin-top: auto;
  border: 1px solid #6c5378;
  border-radius: 10px;
  color: #efddf6;
  background: #362b3d;
  font-size: var(--text-sm);
  font-weight: 700;
}
.project-card-link:hover {
  color: #fff;
  background: #4e3a59;
}
.project-note {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  font-size: var(--text-xs);
  padding: 4px 8px;
  background: #000b;
  border-radius: 6px;
}
.custom-project-card {
  padding: 0;
  position: relative;
}
.custom-project-card > a,
.custom-project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#footer {
  max-width: 1280px;
  padding: 0 24px 24px;
  margin: auto;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.footer-main .brand {
  min-height: var(--touch-h);
  font-size: var(--text-base);
}
.footer-main p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  max-width: 29ch;
  margin-top: 12px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  align-content: start;
}
.footer-links a {
  display: flex;
  align-items: center;
  min-height: var(--touch-h);
  font-size: var(--text-sm);
  color: var(--muted);
  transition: color 0.15s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}
.footer-signature {
  font-size: var(--text-lg);
  line-height: 1.3;
  font-weight: 700;
  max-width: 20ch;
}
.footer-signature span {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 12px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 18px;
}
.noscript {
  padding: 16px 24px;
  max-width: 1280px;
  margin: auto;
  color: var(--muted);
  font-size: var(--text-sm);
}
/* Документы: читаемая колонка, постоянное оглавление только при достаточной ширине. */
.document-page #main {
  max-width: 1120px;
  margin: auto;
  padding: 48px 24px;
}
.document-hero {
  max-width: 760px;
  margin-bottom: 48px;
}
.document-hero h1 {
  font-size: var(--title-hero);
  line-height: 1.15;
  max-width: 24ch;
}
.document-hero > p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 65ch;
  font-size: var(--text-base);
  line-height: 1.5;
}
.document-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.document-toc {
  position: sticky;
  top: 24px;
  display: grid;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.document-toc > span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.document-toc a {
  display: flex;
  align-items: center;
  min-height: var(--touch-h);
  padding: 8px 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.document-section {
  scroll-margin-top: 24px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.document-section h2 {
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.document-section p,
.document-section li {
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 65ch;
}
.document-section p + p {
  margin-top: 16px;
}
.document-section ul {
  margin: 16px 0 0;
}
.document-section li + li {
  margin-top: 12px;
}
.document-note {
  background: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 16px;
  margin-top: 24px;
  border-radius: 0 12px 12px 0;
}
.rules-example {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.rules-example > div {
  min-height: 200px;
  border: var(--border);
  padding: 20px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.rules-example > div + div {
  background: #f3f4eb;
  color: #151811;
}
.rules-example small {
  margin-bottom: 16px;
}
.rules-example strong {
  font-size: var(--title-sm);
  line-height: 1.3;
}
.rules-example em {
  margin-top: auto;
  padding-top: 16px;
  font-style: normal;
  font-size: var(--text-xs);
}
.result-example {
  color: var(--muted);
}
.document-account {
  display: flex;
  gap: 16px;
  align-items: center;
}
.language-switch {
  display: flex;
  align-items: center;
}
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: var(--touch-h);
  font-size: var(--text-sm);
  color: var(--muted);
  border-radius: 8px;
}
.language-switch [aria-current] {
  color: var(--ink);
  background: var(--paper-raised);
}
.site-links [aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.document-bottom {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
}
.document-bottom p {
  max-width: 50ch;
  font-size: var(--text-base);
  line-height: 1.5;
}
.document-bottom .primary {
  flex: none;
}
.public-plus .plus-price {
  font-size: var(--title-xl);
  margin: 24px 0;
  font-weight: 700;
}
.public-plus .plus-price small {
  font-size: var(--text-sm);
  font-weight: 400;
}
.public-plus .muted {
  margin-top: 16px;
}
@media (max-width: 1279px) and (min-width: 1121px) {
  .launch-panel {
    grid-template-columns: minmax(0, 1fr) 200px;
    padding: 24px;
    gap: 16px;
  }
  .launch-panel h1 {
    font-size: var(--title-xl);
  }
  .launch-panel .actions {
    flex-direction: column;
  }
  .launch-panel .actions button {
    flex-basis: auto;
  }
  .landing-benefits {
    gap: 12px;
  }
  .landing-benefits article {
    padding: 16px;
  }
}
@media (max-width: 1120px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "nav" "launch" "home" "project";
  }
  .home-layout #chat-panel {
    position: fixed;
    height: var(--chat-viewport, 100dvh);
    min-height: 0;
    top: var(--chat-top, 0px);
  }
  .launch-panel {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .document-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .home-layout {
    grid-template-areas: "launch" "home" "project";
    gap: 24px;
  }
  .launch-panel,
  .is-auth .launch-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 20px;
    border-radius: 20px;
  }
  .launch-panel h1,
  .is-auth .launch-panel h1 {
    font-size: var(--title-lg);
    line-height: 1.2;
  }
  .launch-panel h1 {
    max-width: 20ch;
  }
  .launch-panel p {
    font-size: var(--text-base);
    margin: 12px 0;
  }
  .launch-panel .eyebrow {
    margin-bottom: 8px;
    font-size: var(--text-xs);
  }
  .launch-panel .actions {
    gap: 8px;
    margin-top: 20px;
  }
  .launch-panel .actions button {
    flex-basis: 100%;
  }
  .launch-stats {
    margin-top: 8px;
    column-gap: 12px;
  }
  .launch-stats > button,
  .launch-stats > div {
    font-size: var(--text-xs);
  }
  .launch-example > .eyebrow {
    text-align: left;
  }
  .demo-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px 2px 6px;
  }
  .demo-cards article {
    margin: 0;
    min-height: 154px;
    padding: 12px;
    gap: 8px;
  }
  .demo-cards strong {
    font-size: var(--text-base);
    line-height: 1.3;
  }
  .demo-question {
    transform: rotate(-2deg);
  }
  .demo-cards .demo-answer {
    margin: 0;
    transform: rotate(2deg);
  }
  .home-content {
    gap: 32px;
  }
  .landing-rules {
    display: block;
    padding: 20px;
  }
  .landing-rules > div {
    position: relative;
  }
  .landing-rules .eyebrow {
    display: none;
  }
  .landing-rules .text-button {
    margin: 4px 0 12px;
  }
  .landing-rules h2,
  .party-section > h2,
  .world-section h2,
  .landing-faq h2,
  .landing-cta h2 {
    font-size: 22px;
    line-height: 1.25;
  }
  .landing-rules ol {
    font-size: var(--text-sm);
    gap: 12px;
  }
  .landing-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .landing-benefits article {
    padding: 16px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px 12px;
  }
  .feature-number {
    grid-row: span 2;
    margin: 4px 0 0;
  }
  .landing-benefits h3 {
    margin: 0;
    font-size: var(--text-lg);
  }
  .landing-benefits p {
    grid-column: 2;
  }
  .party-section > h2 {
    margin-bottom: 16px;
  }
  .world-section {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 20px;
  }
  .world-picture {
    max-width: 100%;
  }
  .world-stats {
    gap: 12px;
    margin-top: 20px;
  }
  .world-stats strong {
    font-size: var(--title-md);
  }
  .landing-faq {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .landing-faq .eyebrow {
    display: none;
  }
  .landing-faq .text-button {
    margin: 4px 0 0;
  }
  .landing-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
  #footer {
    padding: 0 16px 24px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  .footer-main p {
    max-width: 40ch;
  }
  .footer-signature {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .document-page #main {
    padding: 32px 16px;
  }
  .document-hero {
    margin-bottom: 24px;
  }
  .document-hero h1 {
    font-size: var(--title-lg);
    line-height: 1.2;
  }
  .document-layout {
    display: block;
  }
  .document-toc {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
    margin-bottom: 32px;
    scrollbar-width: thin;
  }
  .document-toc > span {
    display: none;
  }
  .document-toc a {
    flex: none;
    max-width: 240px;
  }
  .document-section h2 {
    font-size: 22px;
    line-height: 1.25;
  }
  .document-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
  }
  .document-section p,
  .document-section li {
    line-height: 1.5;
  }
  .rules-example {
    gap: 12px;
  }
  .rules-example > div {
    padding: 16px;
    min-height: 190px;
  }
  .rules-example strong {
    font-size: var(--text-lg);
  }
  .document-account {
    gap: 8px;
  }
  .document-account .primary {
    padding: 10px 12px;
  }
  .document-bottom {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }
  .document-page {
    padding-bottom: 0;
  }
}
@media (max-width: 359px) {
  .launch-panel,
  .is-auth .launch-panel,
  .landing-rules,
  .landing-cta {
    padding: 16px;
  }
  #footer,
  .document-page #main {
    padding-left: 12px;
    padding-right: 12px;
  }
  .document-account {
    gap: 4px;
  }
  .language-switch a {
    min-width: 40px;
  }
}

/* 2.9.1 — общая колонка чата и рекламы, без независимых sticky-блоков. */
.community-rail {
  grid-area: chat;
  min-width: 0;
}
.site-menu {
  position: relative;
  margin: 0;
  border: 0;
  padding: 0;
}
.site-menu > summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: var(--title-md);
}
.site-menu > summary::-webkit-details-marker {
  display: none;
}
#nav .nav-icon {
  display: flex;
  flex: none;
}
.launch-panel .actions {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.launch-panel .actions button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}
.hero-copy {
  width: 100%;
}
.modal-heading > .icon-button,
.emoji-toggle {
  display: grid;
  place-items: center;
  padding: 10px;
  line-height: 1;
}
.modal-heading > .icon-button svg,
.emoji-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}
#chat-form .emoji-bar {
  bottom: calc(100% + 8px);
  left: 8px;
}
.message header {
  align-items: flex-start;
}
.message header .mention-name,
.message header .identity,
.message header .identity-name {
  min-height: 0;
  line-height: 21px;
}
.message header time {
  line-height: 21px;
  padding: 0;
  margin: 0;
}
.message-meta:empty,
.delivery-meta:empty {
  display: none;
}
.delivery-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 21px;
  font-size: var(--text-lg);
  color: var(--muted);
}
.outgoing .message-bubble {
  width: 100%;
  max-width: 100%;
}
.outgoing-status {
  margin-left: auto;
  margin-right: 29px;
}
.outgoing-header .delivery-meta {
  margin-top: 0;
}
.registration-legal {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}
.registration-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.achievement.rarity-common {
  background: linear-gradient(45deg, #1b1e19 0%, #252a21 100%);
  border-color: #40483a;
}
.achievement.rarity-uncommon {
  background: linear-gradient(45deg, #16251b 0%, #213b29 100%);
  border-color: #355c40;
}
.achievement.rarity-rare {
  background: linear-gradient(45deg, #142131 0%, #203a55 100%);
  border-color: #365778;
}
.achievement.rarity-epic {
  background: linear-gradient(45deg, #251c31 0%, #402d55 100%);
  border-color: #654b83;
}
.achievement.rarity-legendary,
.achievement.unlocked.rarity-legendary {
  background: linear-gradient(45deg, #2d2517 0%, #4a391d 100%);
  border-color: #806733;
}
@media (min-width: 1121px) {
  .site-menu > summary {
    display: none;
  }
  .site-menu:not([open]) > .site-links {
    display: flex;
  }
  .layout {
    grid-template-rows: 68px minmax(0, 1fr);
  }
  .layout.home-layout {
    grid-template-rows: 68px auto minmax(0, 1fr);
    grid-template-areas: "nav chat" "launch chat" "home chat";
  }
  #nav {
    height: 68px;
    align-self: start;
    overflow-x: auto;
  }
  #nav button {
    padding-inline: 6px;
    gap: 4px;
  }
  .community-rail {
    position: sticky;
    top: min(16px, calc(100dvh - 706px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: calc(100dvh - 32px);
    min-height: 690px;
  }
  .layout .community-rail #chat-panel {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 400px;
    flex: 1;
  }
  .layout .community-rail .chat-header {
    height: 68px;
    min-height: 68px;
    padding: 11px 12px;
  }
  .layout .community-rail .chat-header h2 {
    font-size: var(--text-base);
  }
  .layout .community-rail .chat-channel {
    display: flex;
  }
  .community-rail.room-rail {
    min-height: 400px;
    top: 16px;
  }
  .layout:not(.home-layout) #main > :first-child {
    margin-top: 0;
  }
}
@media (min-width: 1121px) and (max-width: 1350px) {
  .launch-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
  }
  .launch-example {
    width: 100%;
    max-width: 380px;
    justify-self: center;
  }
}
@media (max-width: 1120px) {
  .community-rail {
    display: contents;
  }
  .layout:not(.home-layout) {
    grid-template-rows: auto;
    grid-template-areas: "nav" "main" "project";
  }
  #header .site-menu {
    order: 3;
    margin-left: auto;
    flex: none;
  }
  #header .site-menu[open] > .site-links {
    display: grid;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    padding: 12px;
    gap: 4px;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    z-index: 90;
    box-shadow: 0 12px 24px #0006;
  }
  #header .site-menu .site-links a {
    display: flex;
    align-items: center;
    min-height: var(--touch-h);
    padding: 8px 12px;
  }
  #header .site-menu:not([open]) > .site-links {
    display: none;
  }
}
@media (max-width: 760px) {
  .layout:not(.home-layout) {
    grid-template-areas: "main" "project";
  }
  .launch-panel .actions {
    grid-template-columns: minmax(0, 1fr);
  }
  #header {
    gap: 6px;
  }
  #header .site-menu {
    margin-left: 0;
  }
}
/* 2.12.5 — friends-section: компактная композиция и CTA комьюнити. */
.friends-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 42%, #6818ff33 0 7%, transparent 20%),
    radial-gradient(circle at 88% 29%, #761cff30 0 7%, transparent 19%),
    radial-gradient(ellipse at 54% 95%, #7899001f 0 10%, transparent 38%),
    linear-gradient(145deg, #16051d 0%, #09030c 45%, #050806 100%);
}
.friends-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, #0007 100%);
}
.friends-glow {
  position: absolute;
  z-index: -1;
  width: 108px;
  height: 108px;
  border-radius: 32px;
  filter: blur(13px);
  opacity: 0.72;
  transform: rotate(28deg);
  pointer-events: none;
}
.friends-glow-a {
  left: 9%;
  top: 34%;
  background: #6718ff;
  box-shadow: 0 0 46px #6718ff80;
}
.friends-glow-b {
  right: 7%;
  top: 20%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #761cff;
  box-shadow: 0 0 50px #761cff80;
}
.friends-glow-c {
  left: 43%;
  bottom: 2%;
  width: 190px;
  height: 116px;
  border-radius: 50%;
  background: #82a300;
  filter: blur(52px);
  opacity: 0.22;
}
.friend {
  position: absolute;
  z-index: 2;
  width: clamp(160px, 21%, 250px);
  aspect-ratio: 1.46 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 13px;
  background: #171319;
  box-shadow: 0 16px 42px #0007;
  transform: translateZ(0);
}
.friend img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition:
    transform 320ms ease,
    filter 320ms ease;
}
.friend:hover img {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.02);
}
.friend figcaption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, #060507a8 100%);
}
.friend-tag {
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 8px);
  min-height: 29px;
  overflow: hidden;
  border: 1px solid #ffffff18;
  border-radius: 7px;
  color: #f8f8f8;
  background: #313038c7;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px #0003;
}
.friend-tag em {
  overflow: hidden;
  padding: 0 9px;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.friend-1 {
  left: 2%;
  top: 25%;
}
.friend-2 {
  left: 23%;
  top: 8%;
}
.friend-3 {
  right: 13%;
  top: 15%;
}
.friend-4 {
  right: 1%;
  top: 37%;
}
.friend-5 {
  left: 5%;
  bottom: 7%;
}
.friend-6 {
  right: 10%;
  bottom: 5%;
}
.friend-1 img {
  object-position: 50% 20%;
}
.friend-2 img {
  object-position: 50% 42%;
}
.friend-3 img {
  object-position: 50% 38%;
}
.friend-4 img {
  object-position: 50% 32%;
}
.friend-5 img {
  object-position: 50% 27%;
}
.friend-6 img {
  object-position: 66% 28%;
}
.friends-copy {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 51%;
  width: min(44%, 460px);
  padding: 0 12px;
  transform: translate(-50%, -44%);
  text-align: center;
}
.friends-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.friends-copy h2 span {
  display: block;
}
.friends-copy h2 .accent-line {
  color: var(--accent);
}
.friends-copy p {
  max-width: 34ch;
  margin: 16px auto 20px;
  color: #f6f1f8;
  font-size: var(--text-base);
  line-height: 1.5;
  text-shadow: 0 2px 12px #000;
}
.friends-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.friends-actions > * {
  min-width: 150px;
}
.friends-telegram,
.friends-telegram:hover,
.friends-telegram:focus-visible {
  color: #fff;
  background: #0088cc;
  border-color: #0088cc;
}
.friends-telegram:hover {
  background: #0077b5;
}
@media (max-width: 900px) and (min-width: 761px) {
  .friends-section {
    min-height: 610px;
  }
  .friend {
    width: 23%;
  }
  .friend-1 {
    left: 0;
  }
  .friend-4 {
    right: 0;
  }
  .friends-copy {
    width: 46%;
  }
}
@media (max-width: 760px) {
  .friends-section {
    display: block;
    min-height: clamp(720px, 165vw, 930px);
    padding: 0;
    border-radius: 20px;
    background:
      radial-gradient(circle at 10% 27%, #6718ff42 0 5%, transparent 17%),
      radial-gradient(circle at 91% 14%, #761cff40 0 5%, transparent 17%),
      radial-gradient(ellipse at 58% 78%, #78990024 0 9%, transparent 34%),
      linear-gradient(180deg, #190620 0%, #09030c 39%, #050805 100%);
  }
  .friends-section::after {
    background: linear-gradient(
      180deg,
      transparent 0 22%,
      #0002 43%,
      transparent 73%,
      #0003 100%
    );
  }
  .friends-glow-a {
    left: 3%;
    top: 24%;
    width: 72px;
    height: 72px;
  }
  .friends-glow-b {
    right: -1%;
    top: 8%;
    width: 72px;
    height: 72px;
  }
  .friends-glow-c {
    left: 43%;
    bottom: 5%;
    width: 135px;
    height: 88px;
  }
  .friend {
    width: 33%;
    max-width: none;
    aspect-ratio: 1.46 / 1;
    border-radius: 9px;
    box-shadow: 0 10px 24px #0006;
  }
  /* Четыре карточки собираются вокруг заголовка, без большого пустого разрыва. */
  .friend-1 {
    left: -9%;
    top: 17%;
    width: 31%;
  }
  .friend-2 {
    left: 13%;
    top: 8%;
    width: 34%;
  }
  .friend-3 {
    right: 1%;
    top: 10%;
    width: 34%;
  }
  .friend-4 {
    right: -8%;
    top: 22%;
    width: 32%;
  }
  .friend-5 {
    left: -5%;
    bottom: 10%;
    width: 32%;
  }
  .friend-6 {
    right: 9%;
    bottom: 6%;
    width: 34%;
  }
  .friends-copy {
    left: 50%;
    top: 53%;
    width: calc(100% - 32px);
    padding: 0;
    transform: translate(-50%, -50%);
  }
  .friends-copy h2 {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }
  .friends-copy p {
    max-width: 32ch;
    margin: 12px auto 16px;
    font-size: var(--text-sm);
    line-height: 1.45;
  }
  .friends-actions {
    width: min(100%, 360px);
    margin: 0 auto;
    gap: 8px;
  }
  .friends-actions > * {
    flex: 1 1 150px;
    min-width: 0;
  }
  .friend figcaption {
    padding: 5px;
  }
  .friend-tag {
    min-height: 23px;
    border-radius: 5px;
  }
  .friend-tag em {
    padding: 0 6px;
    font-size: 8px;
  }
}
@media (max-width: 430px) {
  .friends-section {
    min-height: 720px;
  }
  .friends-actions {
    grid-template-columns: 1fr;
  }
  .friends-actions > * {
    flex-basis: 100%;
  }
}

@media (min-width: 1121px) {
  .site-menu::details-content {
    content-visibility: visible;
  }
}

/* Резерв места закрытого раздела до прихода его данных. */
.entry-placeholder {
  min-height: 55vh;
  border-radius: 20px;
  background: var(--paper);
}

/* Документы ссылаются друг на друга, не повторяя полные разделы. */
.document-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
}
.document-related a {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
  padding-block: 8px;
}

/* Блог: читаемые статьи и компактный каталог в существующей системе оформления. */
.blog-breadcrumbs {display:flex;flex-wrap:wrap;gap:8px 12px;font-size:13px;color:var(--muted);padding-top:24px;}
.blog-breadcrumbs a {text-decoration:underline;text-underline-offset:4px;}
.blog-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:30px 0 54px;}
.blog-card {padding:28px;border:1px solid var(--line, #333);border-radius:20px;background:var(--surface, #111);min-width:0;}
.blog-card h2,.blog-card h3 {font-size:clamp(20px,2vw,26px);line-height:1.3;margin:14px 0;}
.blog-card p {color:var(--muted);line-height:1.7;}
.blog-card a:hover,.blog-article a:hover {color:var(--accent);}
.blog-read {display:inline-flex;align-items:center;gap:10px;margin-top:12px;color:var(--accent);}
.blog-article {min-width:0;}
.blog-intro {font-size:19px;line-height:1.8;}
.blog-byline {color:var(--muted);font-size:13px;}
.blog-article .document-section p {max-width:72ch;line-height:1.8;}
.blog-article .document-note a {text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;}
.blog-sources ul {margin:12px 0 0;padding-left:20px;}
.blog-sources li + li {margin-top:8px;}
.blog-play-links {margin-block:24px 32px;}
.blog-related {margin-top:56px;}
.blog-related .blog-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
.footer-bottom {flex-wrap:wrap;gap:12px 24px;}
.footer-bottom span {overflow-wrap:anywhere;}
@media(max-width:760px) {.blog-grid,.blog-related .blog-grid {grid-template-columns:1fr;}.blog-card {padding:22px;}.blog-intro {font-size:17px;}.blog-breadcrumbs {font-size:12px;}}

.landing-guides {display:flex;align-items:center;justify-content:space-between;gap:24px;margin:32px 0;padding:28px;border:1px solid var(--line,#333);border-radius:20px;}
.landing-guides p {max-width:60ch;color:var(--muted);line-height:1.7;}
.landing-guides>a {flex-shrink:0;}
@media(max-width:760px){.landing-guides {align-items:flex-start;flex-direction:column;padding:22px;}}

/* Условия наград раскрываются внутри профиля и доступны с клавиатуры. */
.award-explanation { min-width: 0; }
.award-explanation summary { cursor: pointer; overflow-wrap: anywhere; font-weight: 700; }
.award-explanation summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.award-explanation p { margin: 8px 0 0; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--ink); }
.public-awards > .award-explanation { padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.public-awards > .award-explanation[open] { flex-basis: 100%; }
.showcase-item > .award-explanation { flex: 1; }
.profile-award-identity { max-width: 100%; }
.profile-award-identity > details { margin-top: 4px; font-size: 12px; }

/* 404 сохраняет компактный вид документа; общие обработчики шапки и форм остаются активны. */
body[data-page="not-found"] .layout { display: block; min-height: 0; }
body[data-page="not-found"] #nav,
body[data-page="not-found"] .community-rail,
body[data-page="not-found"] .chat-toggle { display: none; }
body[data-page="not-found"] #main > .document-hero { padding-block: 24px; }

/* Гостевая главная: длинный предметный заголовок не увеличивает игровое лобби. */
.launch-panel h1.launch-seo-title {font-size:clamp(26px, 2.6vw, 36px);line-height:1.2;white-space:normal;max-width:24ch;}
.landing-guide-links {display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:16px;}
.landing-guide-links a {text-decoration:underline;text-underline-offset:3px;}
/* Сравнения читаются без горизонтальной прокрутки и на узком телефоне. */
.blog-comparison {width:100%;border-collapse:collapse;table-layout:fixed;margin-top:20px;font-size:14px;line-height:1.6;}
.blog-comparison caption {text-align:left;margin-bottom:10px;color:var(--muted);}
.blog-comparison th,.blog-comparison td {text-align:left;vertical-align:top;padding:12px;border:1px solid var(--line);overflow-wrap:anywhere;max-width:none;white-space:normal;}
.blog-comparison th {background:rgba(255,255,255,.04);}
@media(max-width:600px){
  .blog-comparison,.blog-comparison caption,.blog-comparison tbody,.blog-comparison tr,.blog-comparison th,.blog-comparison td {display:block;width:100%;box-sizing:border-box;}
  .blog-comparison thead {display:none;}
  .blog-comparison tr {margin-bottom:16px;}
  .blog-comparison td {border-top:0;}
  .blog-comparison td::before {content:attr(data-label);display:block;font-weight:700;margin-bottom:4px;color:var(--muted);}
}

/* Скриншоты руководства сохраняют пропорции и не растягивают мобильную страницу. */
.blog-guide-figure { margin: 24px 0; }
.blog-guide-figure a { display: block; width: fit-content; max-width: 100%; }
.blog-guide-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: 680px; border: 1px solid var(--line); border-radius: 12px; }
.blog-guide-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
