/* Shared navigation for the player help area. */
#wipes { grid-template-columns: 220px minmax(0, 1fr) 96px; gap: 12px 20px; }
#wipes .wipe-preview-title { grid-column: 1 / -1; grid-row: 1; justify-self: center; text-align: center; font-size: 1.125rem; }
#wipes .wipe-preview-heading { grid-column: 1; grid-row: 2; }
#wipes .wipe-preview-window { grid-column: 2; grid-row: 2; }
#wipes .wipe-preview-controls { grid-column: 3; grid-row: 2; }
#wipes #wipe-countdown { font-size: 1rem; font-weight: 600; color: var(--color-accent); margin: 0 0 10px; }
#wipes #wipe-next-server { font-size: .9375rem; font-weight: 600; color: var(--color-text); overflow-wrap: anywhere; }
#wipes #wipe-next-server-name { color: var(--color-accent); }
.wipe-day.has-wipe { isolation: isolate; border-color: transparent; background: transparent; }
.wipe-day-art {
  position: absolute;
  inset: -1px;
  z-index: -1;
  overflow: hidden;
  border: 1px solid var(--color-accent);
  border-radius: inherit;
  background: radial-gradient(ellipse at 28% 45%, var(--tc-4a2a0be,#13291d), var(--tc-d3fcd70,#06120b));
  pointer-events: none;
}
.wipe-day:focus-visible .wipe-day-art {
  background: var(--color-action);
  box-shadow: inset 0 1px 0 var(--tc-85cfe31,rgb(245 204 94 / .24));
}
@media (hover: hover) {
  .wipe-day:enabled:hover { z-index: 1; }
  .wipe-day:enabled:hover .wipe-day-art {
    background: var(--color-action);
    box-shadow: inset 0 1px 0 var(--tc-85cfe31,rgb(245 204 94 / .24));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .wipe-day-art { transition: transform 180ms ease-out, box-shadow 180ms ease-out; }
  .wipe-day:focus-visible .wipe-day-art { transform: scale(1.07); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .wipe-day:enabled:hover .wipe-day-art { transform: scale(1.07); }
  .wipe-day:enabled:active .wipe-day-art { transform: scale(1.02); }
}
.wipe-day.has-wipe :is(.wipe-day-weekday, strong, .wipe-day-indicator) { color: var(--color-text); }
.wipe-day.has-wipe .wipe-day-indicator {
  font-family: var(--font-heading);
  font-size: .625rem;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.wipe-day.has-wipe .wipe-day-indicator { height: auto; min-height: 12px; line-height: 1.15; }
@media (max-width: 650px) {
  .wipe-day { padding-inline: 2px; }
  .wipe-day-weekday { font-size: .5rem; }
}
.wipe-day.has-wipe strong { text-shadow: 0 1px 4px var(--tc-d3fcd70,#06120b); }
.wipe-day .name-marquee { inset: -35% -7%; gap: 3px; }
.wipe-day .name-marquee-row { font-size: .875rem; letter-spacing: 0; }
.wipe-day .name-marquee-row:nth-child(odd) { -webkit-text-stroke: .6px var(--tc-e63ddd4,rgb(245 204 94 / .48)); }
.wipe-day .name-marquee-row:nth-child(even) { color: var(--tc-609da17,rgb(245 204 94 / .26)); }
.wipe-day .name-marquee-shade { background: var(--tc-0acd13d,#06120b22); box-shadow: none; }
.wipe-server-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 130px;
  text-align: center;
  border-color: var(--color-accent);
  background: var(--neutral-950);
}
.wipe-server-panel .name-marquee { inset: -35% -12%; }
.wipe-server-panel .name-marquee-row { font-size: clamp(1.5rem, 5vw, 2.35rem); }
.wipe-server-panel .name-marquee-shade { background: var(--tc-7363398,#06120b45); box-shadow: none; }
.wipe-server-panel h3 {
  min-width: 0;
  font-size: clamp(1.9rem, 9vw, 3.2rem);
  line-height: 1.05;
  color: var(--color-accent);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 6px var(--tc-d3fcd70,#06120b);
}
.wipe-connection {
  width: 100%;
  margin-top: 16px;
  text-align: center;
}
.server-address { display: grid; gap: 4px; color: var(--color-muted); font-size: .8125rem; }
.server-address code { color: var(--color-text); font-size: .9375rem; overflow-wrap: anywhere; }
#servers .server-address { color: var(--color-text); font-size: .89375rem; }
.server-soon .server-menu-content {
  --server-soon-column-gap: clamp(16px, 2.4vw, 26px);
  display: grid;
  row-gap: clamp(18px, 3vh, 28px);
}
.server-soon :is(.server-soon-title, .server-actions) { margin: 0; }
.server-soon .server-connection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--server-soon-column-gap);
}
.server-soon .server-menu-properties { column-gap: var(--server-soon-column-gap); }
.server-connection-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.wipe-connection .server-connection-actions { justify-content: center; }
.dialog-body .server-connection-actions .btn { min-height: 44px; padding: 8px 14px; margin: 0; }
.server-menu-card .server-connection-actions .btn { width: auto; min-width: 0; }
.server-soon .server-connection-actions {
  --server-copy-inset: clamp(8px, 1.6vw, 18px);
  margin: 0;
}
.wipe-preview-heading .wipe-countdown { font-variant-numeric: tabular-nums; }
.server-soon .server-copy-action { min-inline-size: 0; }
/* Copy button sits next to "Магазин" but keeps its dark secondary look. */
.server-soon .server-actions .server-copy-action .btn:not(:disabled) {
  background: var(--tc-49b8b73,rgba(19, 41, 29, .9));
  border-color: var(--tc-83cc810,rgba(212, 166, 71, .34));
  color: var(--color-text);
}
@media (hover: hover) {
  .server-soon .server-actions .server-copy-action .btn:not(:disabled):hover { background: var(--tc-f4a1131,rgba(28, 56, 40, .95)); }
}
@media (max-width: 480px) {
  .server-soon .server-actions .server-copy-action,
  .server-soon .server-actions .server-copy-action .btn { width: 100%; }
}
.server-copy-action { position: relative; }
.server-copy-feedback {
  position: absolute;
  z-index: 1;
  inset: -2px 0 auto;
  text-align: center;
}
.copy-feedback {
  color: var(--color-accent);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  text-shadow: 0 1px 4px var(--neutral-950);
  pointer-events: none;
}
.copy-feedback > span {
  display: block;
  animation: server-copy-rise 1.15s ease-out both;
}
@keyframes server-copy-rise {
  0% { opacity: 0; transform: translateY(20%); }
  22% { opacity: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .server-copy-feedback { inset-block-start: -19px; }
  .copy-feedback > span { animation-name: server-copy-fade; }
  @keyframes server-copy-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
}
@media (forced-colors: active) {
  .copy-feedback { color: CanvasText; text-shadow: none; }
}
.wipe-event-time { margin-bottom: 10px; }
.dialog-body .wipe-event-download { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  :is(.wipe-day, .wipe-server-panel) .name-marquee-row { animation: none; }
}
@media (forced-colors: active) {
  .wipe-day-art, .wipe-server-panel { background: Canvas; border-color: Highlight; }
  .wipe-day.has-wipe :is(.wipe-day-weekday, strong, .wipe-day-indicator) { color: CanvasText; }
  .wipe-server-panel h3 { color: CanvasText; text-shadow: none; }
}
:root { --page-top-gap: 20px; }
.store-buy.btn-primary { color: #fff; }

.footer-main.footer-with-socials,
.footer-bottom.footer-with-documents {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 9rem;
  gap: 16px 32px;
}
.footer-bottom.footer-with-documents { align-items: start; }
.footer-bottom .back-top { margin-inline-start: 0; justify-self: end; text-decoration: none; }
.footer-bottom .footer-legal { display: grid; justify-items: center; gap: 6px; text-align: center; }
.footer-document-links, .footer-socials { display: flex; flex-wrap: wrap; align-items: center; }
.footer-document-links { justify-content: center; gap: 4px 16px; }
.footer-document-links a { color: var(--color-text); }
.footer-offer-note, .footer-project-note { max-inline-size: 65ch; line-height: 1.55; }
.footer-main .footer-offer-note { justify-self: center; text-align: center; }
.welcome-socials {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--welcome-button-gap);
}
.footer-socials { justify-content: flex-end; gap: 6px; }
:is(.welcome-socials, .footer-socials) > a {
  display: inline-grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  padding: 0;
  border: 1px solid var(--color-decoration);
  border-radius: var(--radius-button);
  color: var(--color-muted);
  background: var(--color-action);
}
.welcome-socials > a { inline-size: 100%; }
:is(.welcome-socials, .footer-socials) > a:hover { color: var(--color-accent); border-color: var(--color-accent); }
:is(.welcome-socials, .footer-socials) svg { width: 18px; height: 18px; fill: currentColor; }

.shop-order-guide { margin-block: 0 16px; max-inline-size: 75ch; color: var(--color-muted); line-height: 1.55; }
.shop-order-guide p { margin: 0 0 4px; }
.shop-order-guide a, .footer-project-note a, .legal-article p a { color: var(--color-text); text-underline-offset: .18em; }
.shop-order-guide a:hover, .footer-project-note a:hover, .legal-article p a:hover { color: var(--color-accent); }
.legal-frame { max-inline-size: 1060px; }
.legal-frame .page-hero { grid-template-columns: minmax(0, 1fr); }
.legal-frame .page-hero h1 { overflow-wrap: anywhere; hyphens: auto; }
.legal-doc-switch { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-doc-switch a { padding: 8px 0; color: var(--color-muted); line-height: 1.4; }
.legal-doc-switch a[aria-current] { color: var(--color-accent); text-decoration: underline; text-underline-offset: 4px; }
.legal-draft {
  margin-block: 24px 30px;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: var(--color-action);
  color: var(--color-muted);
  line-height: 1.55;
  font-size: .9rem;
}
.legal-draft strong { color: var(--color-accent); }
.legal-article { max-inline-size: 76ch; }
.legal-article section { scroll-margin-top: 106px; }
.legal-article section + section { margin-block-start: 26px; }
.legal-article h2 { margin: 0 0 8px; font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.legal-article p { margin: 0; line-height: 1.7; color: var(--color-muted); }
.legal-section-number { color: var(--color-accent); }
.legal-clauses { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.legal-clauses > li { display: grid; grid-template-columns: 2.55rem minmax(0, 1fr); gap: 8px; }
.legal-clause-number { color: var(--color-accent); font-variant-numeric: tabular-nums; line-height: 1.7; }
.legal-download { margin-block-start: 28px; }
@media (max-width: 720px) {
  .footer-main.footer-with-socials { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; }
  .footer-main .footer-offer-note { grid-area: 2 / 1 / 3 / -1; margin: 0; }
  .footer-bottom.footer-with-documents { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .footer-bottom .footer-legal { grid-area: 1 / 1 / 2 / -1; }
  .legal-frame .page-hero h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .legal-article section { scroll-margin-top: 90px; }
}

#purchase-controls .store-buy {
  inline-size: 100%;
  min-block-size: 42px;
  border-radius: var(--radius-button);
  justify-content: center;
  padding: 9px 12px;
  font-size: .9375rem;
}
#purchase-controls, #checkout-form { display: grid; gap: 8px; }
#purchase-controls .server-field > legend { font-size: .875rem; font-weight: 600; }
dialog:has(.bundle-rank-art-detail) #purchase-controls .server-field > legend { margin-inline: auto; }
dialog:has(.bundle-rank-art-detail) #purchase-controls .server-options { justify-content: center; }
#checkout-form .btn { margin-top: 0; }
#checkout-status { font-size: .78rem; line-height: 1.45; }
#checkout-status:empty { display: none; }
@media (max-height: 760px), (max-width: 650px) {
  :root { --page-top-gap: 12px; }
}
.home-overview {
  /* Welcome + calendar fill the first screen, capped at 900px so tall/zoomed-out windows don't stretch the hero or leave gaps. */
  min-height: min(calc(100svh - 88px), 900px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: var(--page-top-gap);
}
.home-overview #about { flex: 1 0 auto; min-height: 0; margin: 0 auto; padding: 24px 32px; }
.home-overview #wipes { flex: none; }
.home-overview #wipes { margin: 0 auto; }
.home-overview .project-welcome-actions .btn { min-height: 44px; padding: 10px 18px; }
@media (max-height: 760px) {
  .home-overview { gap: 12px; }
  .home-overview #about { padding-block: 16px; }
  .home-overview .project-welcome-title { font-size: 2rem; margin-block: 0 20px; }
  .home-overview .project-welcome-description { font-size: 1rem; line-height: 1.5; }
  .home-overview .project-welcome-actions { margin-top: 23px; }
}
@media (max-width: 650px) {
  .home-overview { min-height: min(calc(100svh - 74px), 900px); gap: 12px; }
  .home-overview #about { padding: 14px 16px; }
  .home-overview .project-welcome-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-block: 0 18px; }
  .home-overview .project-welcome-description { font-size: .9375rem; line-height: 1.5; }
  .home-overview .project-welcome-actions { --welcome-button-gap: 8px; margin-top: 19px; gap: 6px var(--welcome-button-gap); }
}
@media (max-width: 650px) and (max-height: 700px) {
  .home-overview #about { padding-block: 10px; }
}
@media (max-width: 650px) and (max-height: 620px) {
  .home-overview #wipes { padding-block: 12px; gap: 8px 10px; }
}
@media (max-width: 950px) {
  #wipes { grid-template-columns: minmax(0, 1fr) 96px; }
  #wipes .wipe-preview-controls { grid-column: 2; grid-row: 2; }
  #wipes .wipe-preview-window { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 650px) {
  #wipes { grid-template-columns: minmax(0, 1fr) 88px; }
}
.main-site input[type="search"]:is(:focus, :focus-visible),
.main-site #support input[type="search"]:is(:focus, :focus-visible) {
  outline: none;
  box-shadow: none;
  border-color: var(--color-accent);
  background-color: var(--color-action-hover);
}
.search-input-wrap { position: relative; }
#rules-search { padding-inline-end: 60px; }
#rules-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
#rules-search-clear {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--color-accent);
}
#rules-search-clear[hidden] { display: none; }
#rules-search-clear:hover { background: var(--color-action-hover); }
#rules-search-clear:focus-visible {
  outline: none;
  background: var(--color-accent-solid);
  color: var(--color-on-accent-solid);
}
@media (forced-colors: active) {
  .main-site input[type="search"]:focus-visible,
  .main-site #support input[type="search"]:focus-visible { border-color: Highlight; }
}
.shop-panel .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shop-panel .shop-item-art { max-width: 256px; aspect-ratio: 256 / 295; }
@media (max-width: 950px) {
  .shop-panel .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .shop-panel .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.main-site { position: relative; isolation: isolate; }
.site-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: clip;
}
.ambient-band {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(var(--ambient-band-index, 0) * 100svh);
  block-size: 100svh;
}
.site-ambient .ambient-decoration {
  z-index: auto;
  opacity: .26;
}
.site-ambient .ambient-coins { width: 37.4px; height: 37.4px; opacity: .38; }
@media (max-width: 650px) {
  .site-ambient .ambient-coins { width: 28.6px; height: 28.6px; }
}
@media (forced-colors: none) {
  .main-site:not(.shop-page) :is(#about, #servers, #start, #community, #support, .footer),
  .main-site :is(.page-frame, .store-section, .footer) { background-color: transparent; }
}
@media print { .site-ambient { display: none; } }
#ban-retry[hidden], #ban-table-wrap[hidden] { display: none; }
.rules-search-results {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
  margin: 16px 0 0;
  list-style: none;
  text-align: left;
}
.rules-search-results[hidden] { display: none; }
.rules-search-results a {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-action);
}
.rules-search-results a:hover { border-color: var(--color-accent); }
.rules-search-results strong { color: var(--color-accent); font-size: .9375rem; }
.rules-search-results span { color: var(--color-muted); font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
@media print { .rules-search-results { display: none; } }
.help-menu { position: relative; }
.help-menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.help-menu > summary::-webkit-details-marker { display: none; }
.help-menu > summary[aria-current],
.help-menu > summary:hover,
.help-menu[open] > summary { color: var(--color-accent); }
.help-menu-chevron {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  transform: rotate(0deg);
}
.help-menu-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
:is(.help-menu, .account-menu)[open] > summary .help-menu-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .help-menu-chevron { transition: transform var(--motion-response, 240ms ease-out); }
}
.help-menu-panel {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 235px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--neutral-950);
  box-shadow: 0 16px 36px #0005;
}
.desktop-nav .help-menu-panel a,
.mobile-nav .help-menu-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .9375rem;
  color: var(--color-muted);
}
.desktop-nav .help-menu-panel a::after { display: none; }
.help-menu-panel a[aria-current],
.desktop-nav .help-menu-panel a:hover,
.mobile-nav .help-menu-panel a:hover {
  color: var(--color-accent);
  background: var(--color-action);
}
.mobile-nav .help-menu > summary { font-size: 1.0625rem; font-weight: 600; padding-inline: 10px; }
.mobile-nav .help-menu-panel { position: static; margin-block: 4px 10px; box-shadow: none; }
.help-page-frame h1, .guide-frame h1, .bans-frame h1 {
  max-width: none;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
}
.help-entry-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}
.help-entry-links a {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-action);
}
.help-entry-links a:hover { border-color: var(--color-accent); }
.help-entry-links a > span { display: grid; gap: 8px; }
.help-entry-links strong { font-size: 1.125rem; }
.help-entry-links span span { color: var(--color-muted); font-size: .9375rem; }
.help-entry-links img { flex: none; object-fit: contain; }
.help-page .page-frame #support {
  width: 100%;
  margin: 40px 0;
  padding: 32px 0;
  border: 0;
  border-block: 1px solid var(--color-divider);
  border-radius: 0;
  background: transparent;
  gap: 40px;
}
.help-contact h2 { margin-bottom: 18px; font-size: 2rem; }
.help-contact p { color: var(--color-muted); font-size: 1rem; }

.guide-hero { display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.guide-hero > img { width: 150px; height: 150px; object-fit: contain; flex: none; }
.guide-hero .btn { margin-top: 24px; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; margin-top: 44px; }
.guide-sidebar { align-self: start; position: sticky; top: 112px; }
.guide-categories { display: grid; gap: 4px; padding-block: 20px; }
.guide-category {
  text-align: left;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .9375rem;
  color: var(--color-muted);
}
.guide-category[aria-pressed=true] {
  color: var(--color-accent);
  border-color: var(--color-border);
  background: var(--color-action);
}
.guide-category:hover { color: var(--color-accent); }
.guide-support-link { display: inline-block; padding: 10px 0; color: var(--color-accent); text-decoration: underline; font-size: .875rem; }
.guide-sidebar .help-search, .ban-search { display: grid; gap: 10px; font-size: .875rem; }
.guide-sidebar input, .ban-search input {
  min-width: 0;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
}
.guide-count { min-height: 24px; color: var(--color-muted); font-size: .875rem; margin-bottom: 14px; }
.guide-article { border-bottom: 1px solid var(--color-divider); scroll-margin-top: 116px; }
.guide-article summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; list-style: none; cursor: pointer; }
.guide-article summary::-webkit-details-marker { display: none; }
.guide-article summary > span:first-child { display: grid; gap: 8px; }
.guide-article summary strong { font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.2; }
.guide-article summary span span { color: var(--color-muted); font-size: .9375rem; }
.guide-plus { color: var(--color-accent); font-size: 1.5rem; }
.guide-article[open] .guide-plus { transform: rotate(45deg); }
.guide-article[open] summary strong { color: var(--color-accent); }
.guide-answer { padding-bottom: 28px; color: var(--color-muted); font-size: 1rem; line-height: 1.85; }
.guide-answer p + p { margin-top: 14px; }
.guide-answer .btn { margin-top: 22px; }
.guide-answer kbd { color: var(--color-accent); }
.guide-answer code { overflow-wrap: anywhere; }
.help-empty { padding: 30px 0; font-size: 1rem; color: var(--color-muted); }
.bans-frame { padding: 0; border: 0; background: transparent; }
.bans-frame #bans-title { font-size: clamp(2rem, 3vw, 2.8rem); }
.ban-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-block: 24px 32px; border-bottom: 1px solid var(--color-divider); }
.ban-heading .lead { font-size: 1rem; max-width: 65ch; }
.ban-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.ban-actions .btn { min-height: 44px; padding: 10px 16px; font-size: .875rem; }
.ban-list-heading { display: flex; gap: 16px; align-items: center; margin-top: 32px; }
.ban-list-heading > .icon { box-sizing: content-box; width: 22px; height: 22px; padding: 12px; border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-accent); background: var(--color-action); }
.ban-list-heading h2 { font-family: var(--font-body); font-size: 1rem; line-height: 1.5; }
.ban-list-heading p { color: var(--color-muted); font-size: .875rem; }
.ban-search { max-width: none; margin-block: 20px 28px; }
.ban-search-label, .ban-field-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ban-search input { border-color: var(--color-border); background: var(--color-action); }
.ban-search input:focus-visible, .ban-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: none;
  background: var(--color-surface-hover);
}
.ban-rows { display: grid; gap: 10px; }
.ban-record { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(180px, .65fr); align-items: center; gap: 22px; padding: 16px 18px; border: 1px solid var(--color-divider); border-radius: 12px; background: var(--color-action); font-size: .9375rem; overflow-wrap: anywhere; }
.ban-player { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ban-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 9px; background: var(--neutral-800); border: 1px solid var(--color-border); color: var(--color-accent); font-weight: 700; font-size: 1.25rem; }
.ban-record small { display: block; margin-top: 4px; color: var(--color-muted); font-size: .8125rem; }
.ban-reason, .ban-date { color: var(--color-muted); }
.ban-period { display: flex; flex-direction: column; align-items: end; gap: 6px; text-align: right; font-size: .875rem; }
.ban-duration { display: inline-block; padding: 2px 9px; border: 1px solid rgb(213 111 103 / .4); border-radius: 7px; background: rgb(145 45 38 / .13); color: #f0a39b; font-size: .8125rem; font-weight: 600; }
.ban-record time { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .guide-article[open] .guide-answer { animation: help-answer-in 180ms ease-out; }
  @keyframes help-answer-in { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 950px) {
  .guide-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  .help-entry-links { grid-template-columns: 1fr; }
  .ban-heading { align-items: start; flex-direction: column; gap: 20px; }
}
@media (max-width: 650px) {
  .guide-hero > img { display: none; }
  .guide-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .guide-sidebar { position: static; }
  .guide-categories { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 16px 4px; }
  .guide-category { padding: 10px 12px; border-color: var(--color-divider); }
  .guide-article summary { padding-block: 20px; }
  .guide-article summary strong { font-size: 1.4rem; }
  .help-page .page-frame #support { grid-template-columns: 1fr; gap: 24px; padding-block: 28px; }
  .help-entry-links a { padding: 20px; gap: 14px; }
  .help-entry-links img { width: 42px; height: 42px; }
  .ban-record { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 16px; }
  .ban-player { grid-column: 1 / -1; }
  .ban-period { min-width: 0; }
  .ban-reason { font-size: .875rem; }
  .ban-period small { max-width: 150px; }
}
@media (forced-colors: active) {
  .help-menu > summary[aria-current], .guide-category[aria-pressed=true] { color: Highlight; }
}

/* Server slider: Telegram-style round arrows on the card edges and dots below; swipe works natively. */
/* The frame is drawn on the viewport, so it stays still and fully outlined while the cards slide inside it. */
.server-slider { --slider-dots-height: 44px; --slider-arrow: 48px; --slider-arrow-gap: 16px; position: relative; max-width: calc(1000px + 2 * (var(--slider-arrow) + var(--slider-arrow-gap))); margin-inline: auto; padding-inline: calc(var(--slider-arrow) + var(--slider-arrow-gap)); }
.server-slider-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border: 1px solid var(--color-decoration); border-radius: 16px; }
.server-slider-viewport::-webkit-scrollbar { display: none; }
.server-slider-viewport:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.server-slider-track { display: flex; }
.server-slider-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.server-slider .server-soon { max-width: none; height: 100%; border: 0; border-radius: 0; }
/* The card's 850:401 ratio plus its 420px min-height would keep it ~890px wide; inside the frame it must shrink. */
@media (min-width: 851px) { .server-slider .server-soon { aspect-ratio: auto; min-height: clamp(420px, 40vw, 472px); } }
.server-slider-arrow {
  position: absolute; z-index: 2; inset-block-start: calc((100% - var(--slider-dots-height) - var(--slider-arrow)) / 2);
  display: grid; place-items: center; width: var(--slider-arrow); height: var(--slider-arrow); padding: 0; border-radius: 50%;
  background: var(--tc-2fdc842,rgb(6 18 11 / .8)); border: 1px solid var(--tc-6192f9e,rgb(245 204 94 / .45)); color: var(--color-accent);
  box-shadow: 0 8px 22px rgb(0 0 0 / .45); backdrop-filter: blur(6px);
}
.server-slider-arrow.is-prev { inset-inline-start: 0; }
.server-slider-arrow.is-next { inset-inline-end: 0; }
.server-slider-arrow .icon { width: 22px; height: 22px; stroke-width: 2.2; }
.server-slider-arrow.is-prev .icon { transform: scaleX(-1); }
@media (hover: hover) { .server-slider-arrow:hover { background: var(--color-accent-solid); color: var(--color-on-accent-solid); border-color: transparent; } }
.server-slider-dots { display: flex; justify-content: center; align-items: center; gap: 2px; height: var(--slider-dots-height); padding-top: 12px; }
.server-slider-dots button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: none; border-radius: 999px; }
.server-slider-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--tc-bb5ab7b,rgb(245 204 94 / .35)); }
.server-slider-dots button[aria-current="true"]::before { width: 22px; background: var(--color-accent); }
@media (prefers-reduced-motion: no-preference) {
  .server-slider-arrow { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
  .server-slider-arrow:active { transform: scale(.94); }
  .server-slider-dots button::before { transition: width .25s ease, background-color .25s ease; }
}
@media (max-width: 650px) { .server-slider { padding-inline: 0; } .server-slider-arrow { display: none; } }
@media (forced-colors: active) {
  .server-slider-arrow { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .server-slider-dots button::before { background: ButtonText; }
  .server-slider-dots button[aria-current="true"]::before { background: Highlight; }
}

/* Card buttons: two equal columns under the two info boxes. */
.server-soon .server-actions { grid-column: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--server-soon-column-gap); row-gap: 10px; }
.server-soon .server-actions > .btn,
.server-soon .server-actions > .server-copy-action,
.server-soon .server-actions .server-copy-action .btn { width: 100%; min-width: 0; max-width: none; }
.server-soon .server-actions .server-secondary-action:not(:disabled) { background: var(--tc-49b8b73,rgba(19, 41, 29, .9)); border-color: var(--tc-83cc810,rgba(212, 166, 71, .34)); color: var(--color-text); }
@media (hover: hover) { .server-soon .server-actions .server-secondary-action:hover { background: var(--tc-f4a1131,rgba(28, 56, 40, .95)); } }
@media (max-width: 380px) { .server-soon .server-actions { grid-template-columns: 1fr; } }

/* Server address: plain text plus a small copy button next to it. */
.server-address { position: relative; }
.server-address-value {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%;
  color: var(--color-text); text-align: start;
}
.server-address-value code { font-size: .9375rem; white-space: nowrap; text-decoration: underline dotted var(--tc-6192f9e,rgb(245 204 94 / .45)); text-underline-offset: 4px; }
.server-address-copy-button { display: inline-grid; place-items: center; flex: none; margin: -6px -6px -6px -2px; padding: 6px; border-radius: 8px; background: none; color: var(--color-accent); cursor: pointer; }
.server-address-copy-button .icon { width: 16px; height: 16px; }
@media (hover: hover) { .server-address-copy-button:hover { background: var(--tc-a4b9af9,rgb(245 204 94 / .1)); } }
/* The copied message rises above the copy icon, like it does from the "Скопировать адрес" button. */
.server-address-copy-action { display: inline-flex; flex: none; }
.server-address-copy-action .server-copy-feedback { inset: auto auto calc(100% + 12px) 50%; transform: translateX(-50%); }
/* On phones the icon sits near the card edge, so the message ends at the icon instead of spilling past the card. */
@media (max-width: 640px) { .server-address-copy-action .server-copy-feedback { inset: auto -6px calc(100% + 12px) auto; transform: none; } }
.server-address-copy { position: relative; justify-self: start; display: inline-flex; max-width: 100%; }

/* "Coming soon" slide. */
.server-upcoming-text { margin: 0; color: var(--color-muted); font-size: .9375rem; line-height: 1.6; max-width: 44ch; }
.soon-smiley { position: absolute; inset: 0; margin: auto; height: min(68%, 300px); width: auto; aspect-ratio: 1; overflow: visible; }
.soon-spark { fill: var(--color-accent); transform-box: fill-box; transform-origin: center; }
.soon-shadow { fill: #000; opacity: .35; transform-box: fill-box; transform-origin: center; }
.soon-face, .soon-blink { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .soon-face { transform-origin: center bottom; animation: soon-bob 2.4s ease-in-out infinite; }
  .soon-shadow { animation: soon-shadow 2.4s ease-in-out infinite; }
  .soon-eyes { animation: soon-look 6s ease-in-out infinite; }
  .soon-blink { animation: soon-blink 4.2s infinite; }
  .soon-spark { animation: soon-twinkle 2.2s ease-in-out infinite; }
  .soon-spark-2 { animation-delay: .7s; }
  .soon-spark-3 { animation-delay: 1.4s; }
}
@keyframes soon-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes soon-shadow { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(.78); opacity: .2; } }
@keyframes soon-look { 0%, 18%, 82%, 100% { transform: translateX(0); } 26%, 40% { transform: translateX(-6px); } 52%, 70% { transform: translateX(6px); } }
@keyframes soon-blink { 0%, 90%, 96%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.1); } }
@keyframes soon-twinkle { 0%, 100% { transform: scale(.45); opacity: .25; } 50% { transform: scale(1); opacity: 1; } }

/* LEGACY card mascot: interactive gold smiley in aviators, above the name marquee in the card's art area. */
.has-name-art .name-art:has(.legacy-smiley) { z-index: 1; display: grid; place-items: center; pointer-events: none; }
.legacy-smiley { position: relative; height: min(76%, 290px); width: auto; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; perspective: 700px; -webkit-tap-highlight-color: transparent; }
.legacy-smiley:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; border-radius: 50%; }
.ls-coin { position: absolute; inset: 0; transform-style: preserve-3d; }
.ls-coin svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; backface-visibility: hidden; }
.ls-back { transform: rotateY(180deg); opacity: 0; }
.legacy-smiley svg * { transform-box: fill-box; }
.ls-face { transform-origin: center; transform: rotate(var(--tilt, 0deg)); transition: transform .25s ease-out; }
.ls-eyes { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .12s ease-out; }
.ls-glint { transform: translate(calc(var(--look-x, 0px) * -1.4), calc(var(--look-y, 0px) * -1.2)); transition: transform .15s ease-out; }
.ls-eye, .ls-blink { transform-origin: center; }
.ls-brows { transition: transform .25s ease; }
.ls-glasses { transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.ls-smile, .ls-smirk, .ls-laugh { transition: opacity .15s; }
.ls-smirk, .ls-laugh { opacity: 0; }
.ls-cheek { transition: opacity .25s; }
.ls-spark { fill: var(--color-accent); transform-origin: center; }
.ls-shadow { fill: #000; opacity: .35; transform-origin: center; }
.legacy-smiley:is(:hover, :focus-visible) .ls-cheek { opacity: .6; }
.legacy-smiley:hover .ls-smile { transform: scale(1.08); transform-origin: center; }
.ls-hint { position: absolute; left: 50%; top: 100%; translate: -50% 4px; color: var(--tc-3e3498d,#c9b98a); font-size: .75rem; white-space: nowrap; opacity: .8; pointer-events: none; }
.legacy-smiley.was-clicked .ls-hint { display: none; }
.ls-bubble {
  position: absolute; left: 50%; bottom: calc(100% - 6px); z-index: 2; translate: -50% 0; padding: 8px 14px;
  border: 1px solid var(--tc-f9c7366,rgb(245 204 94 / .55)); border-radius: 12px; background: var(--tc-97dafe2,#0e1f16); color: var(--color-accent);
  font: 700 .875rem/1.3 var(--font-body); white-space: nowrap; opacity: 0; transform: translateY(6px); pointer-events: none;
}
.ls-bubble::after { content: ''; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--tc-97dafe2,#0e1f16); border: solid var(--tc-f9c7366,rgb(245 204 94 / .55)); border-width: 0 1px 1px 0; rotate: 45deg; }
.ls-bubble.is-shown { opacity: 1; transform: none; }
/* Reactions */
.legacy-smiley.is-wink .ls-smile { opacity: 0; }
.legacy-smiley.is-wink .ls-smirk { opacity: 1; }
.legacy-smiley.is-peek .ls-glasses { transform: translateY(24px); }
.legacy-smiley.is-peek .ls-brows { transform: translateY(-7px); }
.legacy-smiley.is-laugh .ls-smile { opacity: 0; }
.legacy-smiley.is-laugh .ls-laugh { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ls-bubble { transition: opacity .2s, transform .2s; }
  .ls-float { animation: ls-float 3.2s ease-in-out infinite; }
  .ls-blink { animation: ls-blink 4.6s infinite; }
  .ls-shadow { animation: ls-shadow 3.2s ease-in-out infinite; }
  .ls-spark { animation: ls-twinkle 2.4s ease-in-out infinite; }
  .ls-spark:nth-of-type(2) { animation-delay: .8s; }
  .ls-spark:nth-of-type(3) { animation-delay: 1.6s; }
  .legacy-smiley.is-wink .ls-eye-wink { animation: ls-wink .7s ease; }
  .legacy-smiley.is-laugh .ls-face { animation: ls-laugh .9s ease; }
  .legacy-smiley.is-flip .ls-coin { animation: ls-flip 1.3s cubic-bezier(.45, .05, .3, 1); }
  /* Sides also swap by opacity at 90 and 270 degrees, in case a browser ignores backface-visibility on SVG. */
  .legacy-smiley.is-flip .ls-coin > svg:first-child { animation: ls-front 1.3s linear; }
  .legacy-smiley.is-flip .ls-back { animation: ls-back 1.3s linear; }
}
@keyframes ls-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ls-shadow { 0%, 100% { transform: scale(1); opacity: .35; } 50% { transform: scale(.82); opacity: .22; } }
@keyframes ls-blink { 0%, 92%, 97%, 100% { transform: scaleY(1); } 94.5% { transform: scaleY(.1); } }
@keyframes ls-twinkle { 0%, 100% { transform: scale(.4); opacity: .2; } 50% { transform: scale(1); opacity: 1; } }
@keyframes ls-wink { 0%, 100% { transform: scaleY(1); } 20%, 70% { transform: scaleY(.08); } }
@keyframes ls-laugh { 0%, 100% { transform: rotate(var(--tilt, 0deg)) translateY(0); } 15%, 45%, 75% { transform: rotate(-4deg) translateY(-6px); } 30%, 60%, 90% { transform: rotate(4deg) translateY(0); } }
@keyframes ls-flip { 0% { transform: rotateY(0); } 40%, 55% { transform: rotateY(180deg) translateY(-10px); } 100% { transform: rotateY(360deg); } }
@keyframes ls-front { 0%, 19% { opacity: 1; } 21%, 77% { opacity: 0; } 79%, 100% { opacity: 1; } }
@keyframes ls-back { 0%, 19% { opacity: 0; } 21%, 77% { opacity: 1; } 79%, 100% { opacity: 0; } }
@media (forced-colors: active) { .ls-bubble { background: Canvas; color: CanvasText; border-color: CanvasText; } }
/* Phones: the art strip is short, so the smiley sits lower and smaller to leave room for the bubble above it. */
@media (max-width: 850px) {
  .has-name-art .name-art:has(.legacy-smiley) { place-items: end center; padding-bottom: 6px; }
  .legacy-smiley { height: 58%; }
  .ls-hint { display: none; }
}
