:root {
  --bg: #030510;
  --panel: #080d1d;
  --text: #fff;
  --muted: #b6bdcc;
  --pink: #ef36ff;
  --violet: #8f36ff;
  --blue: #2d84ff;
  --cyan: #38d9ff;
  --gold: #ffbf28;
  --line: rgba(255, 255, 255, .15);
  --max: 1440px;
}

/* Личная библиотека закладок комиксов */
.bookmarks-main {
  min-height: 100vh;
  padding: calc(var(--site-header-height, 88px) + 28px) 0 70px;
  background:
    radial-gradient(circle at 12% 12%, rgba(143, 54, 255, .16), transparent 34%),
    radial-gradient(circle at 88% 28%, rgba(56, 217, 255, .1), transparent 30%);
}

.bookmarks-container {
  width: min(1080px, calc(100% - 32px));
}

.bookmarks-hero {
  margin: 18px 0 28px;
  padding: 28px;
  border: 1px solid rgba(143, 54, 255, .45);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 10, 35, .92), rgba(3, 5, 16, .94));
  box-shadow: 0 18px 45px rgba(0, 0, 0, .32);
}

.bookmarks-hero h1 {
  margin: 4px 0 10px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bookmarks-hero > p:last-child,
.bookmarks-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.bookmarks-status {
  padding: 18px;
  border: 1px solid rgba(56, 217, 255, .24);
  border-radius: 12px;
  background: rgba(5, 7, 18, .82);
}

.bookmarks-status[data-type="error"] {
  border-color: rgba(255, 90, 120, .55);
  color: #ffb3c4;
}

.bookmarks-status a {
  color: var(--cyan);
}

.bookmarks-list {
  display: grid;
  gap: 20px;
}

.bookmark-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(56, 217, 255, .35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10, 14, 30, .94), rgba(5, 7, 18, .98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}

.bookmark-preview {
  min-height: 230px;
  display: block;
  overflow: hidden;
  background: #050712;
}

.bookmark-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform .25s ease;
}

.bookmark-preview:hover img,
.bookmark-preview:focus-visible img {
  transform: scale(1.035);
}

.bookmark-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.bookmark-project {
  margin: 0 0 7px;
  color: var(--pink);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bookmark-card h2 {
  margin: 0 0 9px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.4rem);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.bookmark-details {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 800;
}

.bookmark-card time {
  color: var(--muted);
  font-size: .68rem;
}

.bookmark-actions {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.bookmark-open {
  flex: 1 1 auto;
  min-height: 44px;
  margin: 0;
  font-size: .67rem;
}

.bookmark-remove {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 90, 120, .55);
  border-radius: 8px;
  background: rgba(255, 90, 120, .08);
  color: #ff9eb2;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.bookmark-remove:hover,
.bookmark-remove:focus-visible {
  border-color: #ff6f91;
  color: #fff;
}

.bookmark-remove:disabled {
  opacity: .55;
  cursor: wait;
}

.bookmarks-empty {
  padding: 56px 24px;
  border: 1px dashed rgba(143, 54, 255, .55);
  border-radius: 18px;
  background: rgba(5, 7, 18, .76);
  text-align: center;
}

.bookmarks-empty > span {
  display: block;
  font-size: 3rem;
}

.bookmarks-empty h2 {
  margin: 12px 0 8px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.bookmarks-empty p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .project-dialog-pages figcaption {
    align-items: stretch;
    flex-direction: column;
  }

  .project-page-bookmark {
    width: 100%;
  }

  .bookmarks-main {
    padding-top: calc(var(--site-header-height, 76px) + 18px);
  }

  .bookmarks-hero {
    padding: 22px 18px;
  }

  .bookmark-card {
    grid-template-columns: 1fr;
  }

  .bookmark-preview {
    max-height: 360px;
  }

  .bookmark-card-content {
    padding: 20px 16px;
  }

  .bookmark-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bookmark-remove {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at 15% 15%, rgba(111, 25, 207, .12), transparent 26%), 
              radial-gradient(circle at 88% 45%, rgba(0, 105, 255, .1), transparent 26%), 
              var(--bg);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  opacity: .2;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 0 1px, transparent 1.4px), 
                    radial-gradient(circle, rgba(135, 80, 255, .7) 0 1px, transparent 1.5px);
  background-size: 88px 88px, 137px 137px;
}

.home-page {
  position: relative;
  isolation: isolate;
  background: var(--bg);
}

.home-page:after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  opacity: .72;
  background-image:
    linear-gradient(rgba(3, 5, 16, .24), rgba(3, 5, 16, .42)),
    url("../images/cosmic-rock-continuation-v3.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button, input, textarea {
  font: inherit;
}

button {
  color: #fff;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  display: grid;
  grid-template-columns: 190px 1fr 150px;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  transition: .25s;
}

.header.scrolled {
  height: 66px;
}

.header.scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(3, 5, 16, .84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.55rem;
  font-style: italic;
  letter-spacing: .04em;
  color: #a47aff;
  text-shadow: 0 0 18px rgba(151, 71, 255, .7);
}

.brand-logo {
  width: 38px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 191, 39, .55));
}

.brand span {
  color: var(--gold);
  font-size: 1.85rem;
  filter: drop-shadow(0 0 8px rgba(255, 191, 39, .7));
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(15px, 1.8vw, 30px);
}

.nav a {
  position: relative;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), #bd7dff);
  box-shadow: 0 0 12px var(--pink);
  transform: translateX(-50%);
  transition: .2s;
}

.nav a:hover:after,
.nav a.active:after {
  width: 100%;
}

.socials {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.socials a {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(189, 112, 255, .5);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 900;
  color: #d6b0ff;
  background: rgba(120, 35, 215, .12);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(to bottom, rgba(2, 3, 12, .1), rgba(3, 5, 16, .22) 72%, var(--bg)), 
              url("../images/media-background.jpg") center/cover no-repeat;
  background-position: center, center;
}

.hero-mobile-poster {
  display: none;
}

#spaceCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.nebula {
  position: absolute;
  inset: -20%;
  z-index: -3;
  background: radial-gradient(circle at 52% 43%, rgba(243, 50, 255, .15), transparent 22%), 
              radial-gradient(circle at 40% 52%, rgba(39, 107, 255, .14), transparent 31%);
  filter: blur(22px);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(1, 3, 12, .28), rgba(1, 3, 12, .03) 28%, rgba(1, 3, 12, .04) 58%, rgba(1, 3, 12, .45) 85%, rgba(1, 3, 12, .82));
}

.planet {
  position: absolute;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

.exotic-planet {
  width: clamp(86px, 6.3vw, 116px);
  aspect-ratio: 1;
  right: 17%;
  top: 26.5%;
  overflow: visible;
  background: #05070d;
  box-shadow:
    0 0 5px rgba(151, 221, 255, .95),
    0 0 22px rgba(61, 129, 255, .72),
    0 0 42px rgba(192, 49, 255, .38);
  animation: exoticPlanetFloat 11s ease-in-out infinite;
  isolation: isolate;
  pointer-events: auto;
  cursor: pointer;
  transition: filter .28s ease, box-shadow .28s ease;
}

.exotic-planet.is-locked {
  filter: grayscale(.72) brightness(.72);
  box-shadow: 0 0 8px rgba(130, 141, 166, .65), 0 0 24px rgba(78, 48, 124, .35);
}

.exotic-planet__requirement {
  position: absolute;
  z-index: 8;
  top: calc(100% + 13px);
  left: 50%;
  width: max-content;
  max-width: 250px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 191, 39, .65);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(3, 5, 16, .9);
  box-shadow: 0 7px 22px rgba(0, 0, 0, .55);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
}

.exotic-planet:not(.is-locked) .exotic-planet__requirement {
  border-color: rgba(56, 217, 255, .7);
  color: var(--cyan);
}

.exotic-planet:hover,
.exotic-planet:focus-visible {
  filter: brightness(1.18) saturate(1.12);
  box-shadow:
    0 0 7px rgba(220, 248, 255, 1),
    0 0 30px rgba(61, 129, 255, .95),
    0 0 58px rgba(225, 58, 255, .58);
  outline: none;
}

.exotic-planet__hint {
  position: absolute;
  z-index: 6;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 5, 25, .82);
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(202, 86, 255, .85);
  opacity: 0;
  transform: scale(.75);
  transition: opacity .25s ease, transform .25s ease;
}

.exotic-planet:hover .exotic-planet__hint,
.exotic-planet:focus-visible .exotic-planet__hint {
  opacity: 1;
  transform: scale(1);
}

.exotic-planet__surface,
.exotic-planet__lights,
.exotic-planet__clouds {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background-position: 0 50%;
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.exotic-planet__surface {
  z-index: 1;
  background-image: url("../images/exotic-02-diffuse.webp");
  filter: saturate(1.3) contrast(1.13) brightness(.9);
  animation: exoticPlanetSpin 38s linear infinite;
}

.exotic-planet__lights {
  z-index: 2;
  background-image: url("../images/exotic-02-lights.webp");
  mix-blend-mode: screen;
  opacity: .42;
  filter: saturate(1.45) contrast(1.15);
  animation: exoticPlanetSpin 38s linear infinite;
}

.exotic-planet__clouds {
  z-index: 3;
  background-image: url("../images/exotic-02-clouds.webp");
  mix-blend-mode: screen;
  opacity: .24;
  filter: contrast(1.18) brightness(1.25);
  animation: exoticPlanetSpin 52s linear infinite reverse;
}

.exotic-planet::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 31% 25%, rgba(161, 225, 255, .26), transparent 34%),
    radial-gradient(circle at 73% 62%, transparent 29%, rgba(0, 0, 0, .48) 66%, rgba(0, 0, 0, .91) 100%);
  box-shadow:
    inset 7px 4px 12px rgba(132, 210, 255, .42),
    inset -20px -10px 25px rgba(0, 0, 0, .68);
}

@keyframes exoticPlanetSpin {
  to { background-position: 200% 50%; }
}

@keyframes exoticPlanetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.spaceship {
  position: absolute;
  z-index: 18;
  width: clamp(135px, 14.5vw, 230px);
  aspect-ratio: 632 / 478;
  left: 108%;
  top: 37%;
  pointer-events: none;
  opacity: 0;
  filter:
    drop-shadow(0 15px 20px rgba(0, 0, 0, .72))
    drop-shadow(0 0 8px rgba(35, 205, 255, .72))
    drop-shadow(0 0 24px rgba(38, 79, 255, .42))
    drop-shadow(0 0 38px rgba(143, 32, 255, .24));
  animation: shipFlight 17s linear infinite;
  transform-origin: center;
  will-change: left, transform, opacity;
}

.spaceship.is-ready {
  opacity: 1;
}

.spaceship-3d__frame {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.spaceship-3d__engine-glow {
  position: absolute;
  z-index: 1;
  left: 92%;
  top: 50%;
  width: 55%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 12% 50%, rgba(137, 246, 255, .48), rgba(46, 115, 255, .16) 40%, transparent 72%);
  filter: blur(4px);
  opacity: .9;
  transform: translateY(-50%);
}

.spaceship-3d__engine-glow::before,
.spaceship-3d__engine-glow::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 24%;
  border-radius: 45% 80% 80% 45%;
  background: linear-gradient(90deg, #fff 0%, #efffff 10%, #9cf5ff 18%, #31bfff 34%, rgba(42, 91, 255, .78) 53%, rgba(137, 52, 255, .25) 76%, transparent 100%);
  clip-path: polygon(0 22%, 13% 0, 72% 28%, 100% 50%, 72% 72%, 13% 100%, 0 78%);
  box-shadow: 0 0 8px #c9ffff, 0 0 18px rgba(46, 156, 255, .9);
  filter: blur(1.2px);
  transform-origin: left center;
  pointer-events: none;
}

.spaceship-3d__engine-glow::before {
  top: 17%;
  animation: shipFlameUpper .15s ease-in-out infinite alternate;
}

.spaceship-3d__engine-glow::after {
  bottom: 17%;
  animation: shipFlameLower .18s ease-in-out infinite alternate;
}

@keyframes shipFlameUpper {
  from { opacity: .78; transform: scaleX(.78) scaleY(.88); }
  to { opacity: 1; transform: scaleX(1.08) scaleY(1.04); }
}

@keyframes shipFlameLower {
  from { opacity: .72; transform: scaleX(.86) scaleY(.95); }
  to { opacity: 1; transform: scaleX(1.14) scaleY(1.08); }
}

@keyframes shipFlight {
  0% { left: 108%; transform: translateY(0) scale(.86); }
  100% { left: -34%; transform: translateY(0) scale(.86); }
}

.hero-top {
  position: absolute;
  top: clamp(95px, 11vh, 135px);
  left: 50%;
  z-index: 20;
  width: min(900px, calc(100% - 40px));
  transform: translateX(-50%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: #efc9ff;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(223, 126, 255, .75), 0 2px 8px #000;
}

.subtitle {
  margin: 0;
  font-size: clamp(.72rem, 1.35vw, 1.05rem);
  font-weight: 900;
  letter-spacing: .4em;
  text-transform: uppercase;
  text-shadow: 0 2px 9px #000;
}

.hero-bottom {
  position: absolute;
  left: 50%;
  bottom: clamp(88px, 10vh, 125px);
  z-index: 20;
  width: min(800px, calc(100% - 32px));
  transform: translateX(-50%);
  text-align: center;
}

.lead {
  width: min(720px, 100%);
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(.9rem, 1.25vw, 1.08rem);
  line-height: 1.7;
  text-shadow: 0 2px 6px #000, 0 0 16px rgba(0, 0, 0, .85);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 1px solid rgba(255, 71, 107, .82);
  color: #fff;
  background: rgba(4, 7, 17, .78);
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(7% 0, 100% 0, 100% 72%, 93% 100%, 0 100%, 0 28%);
  transition: .2s;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-3px);
}

.button-pink {
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 0 24px rgba(240, 50, 255, .48), inset 0 0 22px rgba(240, 50, 255, .1);
}

.button-gold {
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(255, 191, 39, .4), inset 0 0 22px rgba(255, 191, 39, .09);
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scroll-down b {
  font-size: 1.2rem;
  animation: bounce 1.3s infinite;
}

@keyframes bounce {
  50% { transform: translateY(6px); }
}

.container, .footer {
  width: min(var(--max), calc(100% - 42px));
  margin: auto;
}

.section {
  padding: 64px 0 12px;
  scroll-margin-top: 84px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.reveal-ready {
  opacity: 0;
  transform: translateY(34px);
}

.reveal.reveal-ready.visible {
  opacity: 1;
  transform: none;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 16px;
}

.section-head h2, .studio h2 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.75rem);
  text-transform: uppercase;
}

.section-head span {
  height: 1px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .05));
}

.section-head a {
  margin-bottom: 2px;
  color: #dd76ff;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.projects-section-head { position: relative; grid-template-columns: 1fr auto 1fr; align-items: center; }
.projects-section-head h2 { grid-column: 2; text-align: center; }
.projects-section-head > span { grid-column: 1; grid-row: 1; background: linear-gradient(90deg, transparent, rgba(255,255,255,.48)); }
.projects-section-head::after { content: ""; grid-column: 3; grid-row: 1; width: 100%; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.48), transparent); }
.projects-section-head > a { position: absolute; right: 0; z-index: 1; padding-left: 16px; background: #060817; }

.section-intro {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: .82rem;
}
.projects-section-intro { text-align: center; }
.section-head { position:relative; grid-template-columns:1fr auto 1fr; align-items:center; }
.section-head h2 { grid-column:2; text-align:center; }
.section-head > span { grid-column:1; grid-row:1; background:linear-gradient(90deg,transparent,rgba(255,255,255,.48)); }
.section-head::after { content:""; grid-column:3; grid-row:1; width:100%; height:1px; background:linear-gradient(90deg,rgba(255,255,255,.48),transparent); }
#partners .section-intro { text-align:center; }
.game-page-main { width:min(100% - 32px,1400px); margin:auto; padding:110px 0 70px; }
.game-showcase { overflow:hidden; border:1px solid #75328c; border-radius:24px; background:rgba(5,7,18,.94); }
.game-showcase-feature { display:grid; grid-template-columns:1fr 1fr; gap:1px; min-height:420px; background:#75328c; }
.game-showcase-cover { display:grid; place-items:center; min-width:0; padding:34px; background:radial-gradient(circle,#6c173b66,transparent 68%),linear-gradient(135deg,#190b1b,#060711); }
.game-showcase-cover img { display:block; width:100%; max-height:350px; object-fit:contain; }
.game-showcase-launch { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; min-width:0; padding:40px; text-align:center; color:#fff; text-decoration:none; background:radial-gradient(circle at 50% 35%,#78193699,transparent 55%),linear-gradient(145deg,#1b0a19,#070711); transition:filter .25s,transform .25s; }
.game-showcase-launch:hover { filter:brightness(1.22); }
.game-showcase-launch span,.game-showcase-launch em { font-style:normal; font-weight:800; letter-spacing:.18em; color:#d8b878; }
.game-showcase-launch strong { font-family:Impact,sans-serif; font-size:clamp(3rem,7vw,6.4rem); line-height:.88; letter-spacing:.02em; color:#f6e9d3; text-shadow:0 0 28px #b1124855; }
.game-showcase-copy { display:grid; gap:18px; padding:32px; }
.game-showcase-copy h1 { margin:0; font-family:Impact,sans-serif; font-size:clamp(2.4rem,6vw,5rem); }
.game-community { display:grid; grid-template-columns:.7fr 1.3fr; gap:22px; padding:0 32px 32px; }
.game-community > section {
  min-width:0;
  padding:24px;
  border:1px solid #6d2d83;
  border-radius:20px;
  background:rgba(5,7,18,.94);
}
.game-rating-panel {
  background:radial-gradient(circle at 18% 0,#6c173b24,transparent 48%),rgba(5,7,18,.94);
}
.game-comments-panel {
  background:radial-gradient(circle at 82% 0,#742a8b26,transparent 44%),linear-gradient(150deg,rgba(11,8,26,.98),rgba(4,7,18,.98));
  box-shadow:inset 0 1px 0 #ffffff0a,0 24px 60px #00000026;
}
.game-reactions { display:flex; gap:12px; }
.game-reactions button.active { background:#651178; border-color:#ed67ff; }
.game-comment-form {
  display:grid;
  gap:18px;
  margin:18px 0 20px;
}
.game-comment-form textarea {
  box-sizing:border-box;
  width:100%;
  min-height:132px;
  padding:16px 18px;
  resize:vertical;
  border:1px solid #a94dc982;
  border-radius:16px;
  outline:none;
  color:#fff;
  font:inherit;
  line-height:1.55;
  background:linear-gradient(145deg,rgba(22,11,35,.98),rgba(7,9,22,.98));
  box-shadow:inset 0 1px 0 #ffffff0a,0 14px 34px #0000002e;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.game-comment-form textarea::placeholder { color:#a9a5bb; }
.game-comment-form textarea:focus {
  border-color:#e06bff;
  background:linear-gradient(145deg,rgba(29,13,45,.98),rgba(8,10,25,.98));
  box-shadow:0 0 0 3px #d967ff1c,inset 0 1px 0 #ffffff10,0 16px 38px #00000038;
}
.game-comment-form .button {
  justify-self:start;
  min-width:164px;
  margin-top:4px;
}
.game-comment-status {
  min-height:1.25em;
  margin:0 0 12px;
  color:#d7cfdf;
}
.game-comments {
  --game-comment-row:112px;
  --game-comment-gap:14px;
  display:grid;
  gap:var(--game-comment-gap);
  max-height:calc(3 * var(--game-comment-row) + 2 * var(--game-comment-gap));
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scroll-snap-type:y proximity;
  padding:2px 10px 2px 2px;
  scrollbar-width:thin;
  scrollbar-color:#a24cc9 #12091c;
}
.game-comments::-webkit-scrollbar { width:8px; }
.game-comments::-webkit-scrollbar-track { border-radius:999px; background:#12091c; }
.game-comments::-webkit-scrollbar-thumb {
  border-radius:999px;
  background:linear-gradient(#d163ef,#7b2aa0);
}
.game-comment {
  box-sizing:border-box;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:8px;
  height:var(--game-comment-row);
  padding:16px 18px;
  overflow:hidden;
  scroll-snap-align:start;
  border:1px solid #c65ae536;
  border-radius:16px;
  background:linear-gradient(145deg,rgba(20,12,34,.92),rgba(7,10,23,.96));
  box-shadow:inset 0 1px 0 #ffffff0a,0 10px 26px #00000024;
}
.game-comment b {
  color:#f3eaf6;
  font-size:.92rem;
}
.game-comment p {
  min-height:0;
  margin:0;
  overflow-y:auto;
  color:#c9c4d4;
  line-height:1.45;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
  scrollbar-width:thin;
  scrollbar-color:#7d3b96 transparent;
}
@media(max-width:760px){.game-showcase-feature,.game-community{grid-template-columns:1fr}.game-showcase-feature{min-height:0}.game-showcase-cover,.game-showcase-launch{min-height:270px}.game-showcase-cover{padding:22px}.game-community{padding:0 18px 18px}}

.rail-shell {
  position: relative;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 2px 18px;
}

.rail::-webkit-scrollbar {
  display: none;
}

.project-rail, .character-rail, .news-rail {
  grid-auto-columns: minmax(280px, calc((100% - 54px) / 4));
}

.character-rail {
  align-items: start;
}

.character-rail .card {
  align-self: start;
}

.world-rail {
  grid-auto-columns: minmax(220px, calc((100% - 56px) / 5));
}

.rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 76px;
  border: 0;
  background: transparent;
  color: #ef94ff;
  font-size: 2.5rem;
  text-shadow: 0 0 14px var(--pink);
  transform: translateY(-50%);
  cursor: pointer;
}

.rail-arrow.left { left: -48px; }
.rail-arrow.right { right: -48px; }

.card {
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(176, 78, 255, .43);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 15, 31, .92), rgba(3, 7, 18, .98));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
  transition: .25s;
}

.card:hover {
  transform: translateY(-7px);
  border-color: #dd7cff;
  box-shadow: 0 18px 55px rgba(86, 20, 141, .35);
}

.card img {
  object-fit: cover;
}

.project img { aspect-ratio: 1.08 / 1; width: 100%; object-fit: fill; }
.world img { aspect-ratio: 1.55 / 1; width: 100%; }
.character img { aspect-ratio: 1.5 / 1; width: 100%; }
.news-card img { aspect-ratio: 1.72 / 1; width: 100%; }

.character-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(88, 34, 137, .2), transparent 65%),
    #050814;
}

.character-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.character-media-placeholder {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .88);
  background:
    radial-gradient(circle at center, rgba(143, 54, 255, .4), transparent 34%),
    linear-gradient(145deg, rgba(9, 15, 31, .96), rgba(3, 7, 18, .98));
  font-size: 3rem;
  text-shadow: 0 0 24px var(--pink);
}

.character-owner {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid rgba(56, 217, 255, .58);
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 7, 18, .82);
  box-shadow: 0 5px 20px rgba(0, 0, 0, .45);
  font-size: .62rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.number {
  position: absolute;
  top: 10px;
  left: 11px;
  z-index: 3;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(44, 8, 64, .55);
  font-size: .75rem;
}

.card-body {
  padding: 14px;
}

.card h3 {
  margin: 0 0 4px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.world h3, .character h3, .news-card h3 {
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.48;
}

.card .type {
  color: #fff;
  font-size: .64rem;
  text-transform: uppercase;
}

.card a {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid currentColor;
  color: #dfadff;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card .project-card-open {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}

.project-card-open:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -3px;
}

.project-card-open img {
  width: 100%;
  flex: 0 0 auto;
  display: block;
  object-fit: fill;
  transition: transform .35s ease;
}

#partners .project-card-open img {
  object-fit: cover;
}

.project-card-open .card-body {
  width: 100%;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card-open .card-body > p:not(.type) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.managed-project:hover .project-card-open img,
.project-card-open:focus-visible img {
  transform: scale(1.035);
}

.project-card-action {
  display: inline-flex;
  margin-top: auto;
  padding: 7px 10px;
  border: 1px solid currentColor;
  color: #dfadff;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card-reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.project-card-reactions span {
  padding: 5px 8px;
  border: 1px solid rgba(56, 217, 255, .22);
  border-radius: 999px;
  color: #d7dbea;
  background: rgba(3, 5, 16, .58);
  font-size: .58rem;
  font-weight: 800;
}

/* Отдельная страница проекта */
.project-detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 18%, rgba(143, 54, 255, .17), transparent 30%),
    radial-gradient(circle at 92% 42%, rgba(56, 217, 255, .1), transparent 28%),
    #030510;
}

.project-detail-main {
  width: min(1440px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 116px 0 80px;
}

.project-detail-status {
  min-height: 52vh;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.project-detail-status[data-type="error"] {
  color: #ff8fa9;
}

.project-back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

.project-detail-hero {
  position: relative;
  min-height: clamp(390px, 62vw, 720px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(176, 78, 255, .62);
  border-radius: 24px;
  background: #080a18;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45), 0 0 40px rgba(143, 54, 255, .1);
}

.project-detail-hero > img,
.project-detail-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-detail-hero > img {
  object-fit: fill;
}

.project-detail-hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 5, 16, .78), rgba(3, 5, 16, .2) 72%),
    linear-gradient(180deg, rgba(3, 5, 16, .06) 18%, rgba(3, 5, 16, .96) 98%);
}

.project-detail-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  padding: clamp(24px, 5vw, 64px);
}

.project-detail-hero-copy > span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  background: rgba(126, 48, 225, .9);
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-detail-hero h1 {
  margin: 14px 0 16px;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .88;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .9);
}

#projectDetailDescription {
  max-width: 980px;
  color: #f0dcff;
  font-size: clamp(.86rem, 1.45vw, 1.06rem);
  font-weight: 650;
  line-height: 1.72;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .94);
}

.project-community-panel h2,
.project-reviews h2 {
  margin: 4px 0 8px;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.project-story-list {
  display: grid;
  margin-top: 32px;
  border-top: 1px solid rgba(143, 54, 255, .42);
}

.project-story-row {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  padding: clamp(24px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(143, 54, 255, .42);
}

.project-gallery-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(56, 217, 255, .3);
  border-radius: 12px;
  cursor: zoom-in;
}

.project-gallery-image > img {
  width: 100%;
  height: auto;
  display: block;
}

.project-story-copy {
  min-width: 0;
  padding: 8px 0;
}

.project-story-copy > span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 9px;
  border: 1px solid rgba(56, 217, 255, .36);
  border-radius: 999px;
  color: var(--cyan);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.project-story-copy p {
  margin: 0;
  color: #d7dbea;
  font-size: clamp(.88rem, 1.35vw, 1.02rem);
  line-height: 1.82;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.project-gallery-lens {
  position: absolute;
  width: 154px;
  height: 154px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background-color: #050711;
  background-repeat: no-repeat;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .65), 0 0 20px rgba(56, 217, 255, .46);
  pointer-events: none;
}

.project-gallery-empty,
.project-reviews-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.project-detail-community {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

.project-community-panel,
.project-reviews {
  border: 1px solid rgba(143, 54, 255, .34);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(7, 8, 23, .9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

.project-community-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.project-reaction-buttons {
  display: flex;
  gap: 10px;
}

.project-reaction-button {
  min-width: 96px;
  min-height: 54px;
  border: 1px solid rgba(56, 217, 255, .4);
  border-radius: 12px;
  color: #fff;
  background: rgba(3, 5, 16, .78);
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.project-reaction-button:hover,
.project-reaction-button:focus-visible,
.project-reaction-button.active {
  border-color: var(--pink);
  outline: none;
  background: rgba(143, 54, 255, .2);
  box-shadow: 0 0 22px rgba(239, 54, 255, .18);
}

.project-inline-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
}

.project-inline-status a {
  color: var(--cyan);
}

.project-reviews-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.project-reviews-heading > span {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 217, 255, .4);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 900;
}

.project-review-form {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.project-review-form label {
  color: #e8d7ff;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-review-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  outline: none;
  padding: 14px;
  color: #fff;
  background: rgba(3, 5, 13, .82);
  font: inherit;
  line-height: 1.55;
}

.project-review-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 217, 255, .08);
}

.project-review-form .button {
  width: fit-content;
}

.project-reviews-list {
  display: grid;
  gap: 12px;
}

.project-review {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(3, 5, 16, .58);
}

.project-review.is-own {
  border-color: rgba(56, 217, 255, .42);
}

.project-review > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-review strong {
  color: #fff;
  font-size: .78rem;
}

.project-review time {
  color: var(--muted);
  font-size: .62rem;
}

.project-review p {
  margin: 10px 0 0;
  color: #d7dbea;
  font-size: .82rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .project-story-row,
  .project-detail-community { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .project-detail-main { width: min(100% - 20px, 1440px); padding-top: 92px; }
  .project-detail-hero { min-height: 440px; border-radius: 16px; }
  .project-community-panel { grid-template-columns: 1fr; }
  .project-reaction-buttons { width: 100%; }
  .project-reaction-button { flex: 1; }
  .project-review > div { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (hover: none) {
  .project-gallery-image { cursor: default; }
  .project-gallery-lens { display: none !important; }
}

.managed-universe .card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.managed-content-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.managed-content-links[hidden] { display: none !important; }

.managed-content-link,
.card .managed-content-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(56, 217, 255, .58);
  border-radius: 999px;
  color: #dffaff;
  background: linear-gradient(135deg, rgba(24, 118, 161, .2), rgba(165, 37, 200, .2));
  box-shadow: inset 0 0 14px rgba(56, 217, 255, .05);
  font-size: .62rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.managed-content-link:hover,
.managed-content-link:focus-visible {
  border-color: #ea64ff;
  box-shadow: 0 0 18px rgba(224, 59, 255, .24), inset 0 0 14px rgba(56, 217, 255, .08);
  outline: none;
  transform: translateY(-1px);
}

.managed-content-link-icon {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  color: var(--cyan);
  font-size: .58rem;
  font-weight: 1000;
}

.managed-universe .card-body {
  display: flex;
  flex-direction: column;
}

.managed-universe .managed-content-links { margin-top: auto; }
.managed-universe .managed-content-link { min-height: 25px; padding: 4px 7px; font-size: .54rem; }

.powers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 13px;
}

.powers span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 99px;
  font-size: .55rem;
}

.news-card em {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(126, 48, 225, .72);
  font-size: .54rem;
  text-transform: uppercase;
}

.news-card small {
  color: #8e97a9;
  font-size: .65rem;
  text-transform: uppercase;
}

.site-update-card {
  isolation: isolate;
  min-height: 0;
  aspect-ratio: 1.72 / 1;
  display: flex;
  flex-direction: column;
  padding: 18px 17px 15px;
  border-color: rgba(49, 211, 255, .58);
  background:
    radial-gradient(circle at 92% 8%, rgba(229, 42, 255, .33), transparent 38%),
    linear-gradient(145deg, rgba(20, 11, 43, .98), rgba(4, 10, 25, .98));
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.site-update-card:hover,
.site-update-card:focus-visible {
  border-color: rgba(229, 75, 255, .9);
  outline: none;
  box-shadow: 0 14px 34px rgba(2, 211, 255, .12), 0 0 24px rgba(218, 46, 255, .18);
  transform: translateY(-2px);
}

.site-update-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .28;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 0 1px, transparent 1.4px);
  background-size: 23px 23px;
  mask-image: linear-gradient(135deg, #000, transparent 76%);
}

.site-update-card-glow {
  position: absolute;
  z-index: -1;
  right: -35px;
  bottom: -45px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: rgba(40, 210, 255, .18);
  filter: blur(26px);
}

.site-update-card em {
  width: fit-content;
  margin-bottom: 10px;
  color: #08111d;
  background: linear-gradient(90deg, #43dcff, #ed78ff);
  font-style: normal;
  font-weight: 950;
  letter-spacing: .04em;
}

.site-update-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-update-card-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #cbd2e2;
  font-size: .7rem;
  line-height: 1.42;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.site-update-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  color: #a8b1c6;
  font-size: .56rem;
  text-transform: uppercase;
}

.site-update-card-footer span {
  overflow: hidden;
  color: #56ddff;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card-open {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.news-card-open img {
  display: block;
  transition: transform .35s ease;
}

.news-card:hover .news-card-open img,
.news-card-open:focus-visible img {
  transform: scale(1.045);
}

.news-card-open:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -3px;
}

.news-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 15px;
  background: linear-gradient(180deg, rgba(2, 4, 14, .04) 12%, rgba(2, 4, 14, .45) 45%, rgba(2, 4, 14, .98) 100%);
}

.news-card-overlay em {
  width: fit-content;
  margin-bottom: 7px;
  color: #fff;
  font-style: normal;
}

.news-card-overlay h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.05;
  text-shadow: 0 2px 10px #000;
}

.news-card-overlay small {
  color: #c8ceda;
}

.news-card-action {
  margin-top: 11px;
  color: #edb8ff;
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.news-dialog {
  width: min(1040px, calc(100% - 32px));
  max-height: min(88vh, 780px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(196, 89, 255, .62);
  border-radius: 18px;
  color: #fff;
  background: #070b18;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .72), 0 0 50px rgba(128, 37, 205, .18);
}

.news-dialog::backdrop {
  background: rgba(1, 3, 10, .82);
  backdrop-filter: blur(9px);
}

.news-dialog-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  max-height: min(88vh, 780px);
  overflow: hidden;
}

.news-dialog-cover {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.news-dialog-body {
  overflow-y: auto;
  padding: 48px 42px 38px;
}

.news-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 5, 14, .82);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.news-dialog-close:hover,
.news-dialog-close:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.news-dialog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: .65rem;
  text-transform: uppercase;
}

.news-dialog-meta span {
  padding: 5px 8px;
  border-radius: 5px;
  color: #fff;
  background: rgba(126, 48, 225, .78);
}

.news-dialog h2 {
  margin: 0 0 16px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: .98;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.news-dialog-excerpt {
  margin: 0 0 22px;
  color: #e4c5ff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.news-dialog-content {
  margin: 0 0 28px;
  color: #d3d8e4;
  font-size: .9rem;
  line-height: 1.72;
  white-space: pre-wrap;
}

.news-dialog-body > small {
  color: var(--muted);
  font-size: .68rem;
}

.news-dialog.site-update-dialog {
  width: min(680px, calc(100% - 32px));
}

.news-dialog.site-update-dialog .news-dialog-card {
  grid-template-columns: 1fr;
}

.news-dialog.site-update-dialog .news-dialog-cover,
.news-dialog.site-update-dialog .news-dialog-excerpt {
  display: none;
}

.news-dialog.site-update-dialog .news-dialog-body {
  min-height: 330px;
  padding: 58px 48px 42px;
  background:
    radial-gradient(circle at 92% 8%, rgba(229, 42, 255, .26), transparent 42%),
    radial-gradient(circle at 8% 96%, rgba(40, 210, 255, .18), transparent 42%),
    linear-gradient(145deg, rgba(20, 11, 43, .98), rgba(4, 10, 25, .99));
}

.news-dialog.site-update-dialog .news-dialog-meta span {
  color: #08111d;
  background: linear-gradient(90deg, #43dcff, #ed78ff);
  font-weight: 900;
}

.news-dialog.site-update-dialog .news-dialog-content {
  font-size: 1rem;
  line-height: 1.7;
}

.project-dialog-link {
  width: fit-content;
  margin: 0;
  text-decoration: none;
}

/* Карточка партнёра: единая прокрутка, полное изображение и перенос длинных ссылок. */
#projectDialog {
  --partner-dialog-height: min(88vh, 780px);
  --partner-dialog-height: min(88dvh, 780px);
  height: var(--partner-dialog-height);
  max-height: var(--partner-dialog-height);
}

#projectDialog .news-dialog-card {
  height: 100%;
  max-height: none;
  min-height: 0;
  min-width: 0;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c65be9 rgba(255, 255, 255, .06);
}

#projectDialog .news-dialog-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -3px;
}

#projectDialog .news-dialog-cover {
  position: sticky;
  top: 0;
  display: block;
  min-width: 0;
  min-height: 0;
  height: var(--partner-dialog-height);
  object-fit: contain;
  background: #030610;
}

#projectDialog .news-dialog-body {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  padding: 62px clamp(20px, 3vw, 38px) 32px;
  overflow-wrap: anywhere;
}

#projectDialog .news-dialog-meta,
#projectDialog .news-dialog-meta span,
#projectDialog .project-dialog-link {
  max-width: 100%;
  white-space: normal;
}

#projectDialog .news-dialog-content {
  white-space: pre-wrap;
}

#projectDialog .project-dialog-link {
  text-align: center;
}

#projectDialog .news-dialog-close {
  width: 42px;
  height: 42px;
  box-shadow: 0 3px 16px rgba(0, 0, 0, .45);
}

@media (max-width: 840px) {
  #projectDialog {
    --partner-dialog-height: calc(100vh - 24px);
    --partner-dialog-height: calc(100dvh - 24px);
  }

  #projectDialog .news-dialog-card {
    display: block;
  }

  #projectDialog .news-dialog-cover {
    position: static;
    height: auto;
    max-height: 360px;
    max-height: min(42dvh, 360px);
    aspect-ratio: 1;
  }

  #projectDialog .news-dialog-body {
    padding: 26px 20px 32px;
  }

  #projectDialog h2 {
    padding-right: 0;
  }
}

/* Личный кабинет */
.header.dashboard-header {
  grid-template-columns: 190px minmax(0, 1fr) auto auto;
  gap: 12px;
}

.dashboard-header .dashboard-logout,
.dashboard-header .chat-launch {
  justify-self: end;
  margin: 0;
}

.dashboard-container {
  padding-top: 104px;
  padding-bottom: 70px;
  max-width: 1240px;
  margin: 0 auto;
}

.dashboard-hero-card {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(143, 54, 255, 0.15), transparent 40%),
              linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(8, 5, 20, 0.95));
  border: 2px solid var(--pink);
  border-radius: 20px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 0 40px rgba(239, 54, 255, 0.3), inset 0 0 25px rgba(143, 54, 255, 0.15);
  overflow: hidden;
}

.holo-badge {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(56, 217, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(56, 217, 255, 0.3);
}

.pilot-header-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pilot-avatar-box {
  position: relative;
  width: 85px;
  height: 85px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--pink);
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border: 2px dashed var(--cyan);
  border-radius: 50%;
  animation: rotateRing 12s linear infinite;
}

@keyframes rotateRing {
  100% { transform: rotate(360deg); }
}

.pilot-lvl-tag {
  position: absolute;
  bottom: -6px;
  background: var(--bg);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: bold;
}

.pilot-info h1 {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  margin: 4px 0 8px;
  color: #fff;
  text-shadow: 0 0 15px rgba(239, 54, 255, 0.6);
  text-transform: uppercase;
}

.pilot-status {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.hero-trophies-carousel {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trophies-preview {
  min-width: 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-trophies-preview::-webkit-scrollbar {
  display: none;
}

.hero-trophies-arrow {
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 191, 39, .72);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(5, 7, 18, .88);
  font: 900 1.05rem/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 191, 39, .15);
}

.hero-trophies-arrow:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.hero-trophies-arrow:disabled {
  opacity: .28;
  cursor: default;
  box-shadow: none;
}

.hero-trophies-preview .trophy {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  scroll-snap-align: start;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: rgba(255, 191, 39, .08);
  box-shadow: 0 0 12px rgba(255, 191, 39, .18);
}

.hero-trophies-preview .trophy.locked {
  opacity: .42;
  filter: grayscale(1);
  border-color: rgba(255, 255, 255, .18);
}

.trophy-mini {
  width: 38px;
  height: 38px;
  background: rgba(255, 191, 39, 0.1);
  border: 1px solid var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(255, 191, 39, 0.2);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.trophy-mini:hover {
  transform: scale(1.15);
  box-shadow: 0 0 18px var(--gold);
}

.trophy-mini.locked {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  filter: grayscale(1);
  opacity: 0.5;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dashboard-tab {
  background: rgba(5, 7, 18, .86);
}

.dashboard-tab-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: inset 0 0 18px rgba(239, 54, 255, .08);
}

.dashboard-tab-bookmarks {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(56, 217, 255, .08);
}

.dashboard-tab-arts {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: inset 0 0 18px rgba(255, 191, 39, .08);
}

.dashboard-card {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 14, 30, 0.8), rgba(5, 7, 18, 0.95));
  border: 1px solid rgba(143, 54, 255, 0.4);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(56, 217, 255, 0.3), inset 0 0 15px rgba(56, 217, 255, 0.1);
  transform: translateY(-4px);
}

.dashboard-card-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-card h3 {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-top: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(56, 217, 255, 0.4);
}

.wallet-summary-card {
  grid-column: auto;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 191, 39, .62);
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 191, 39, .08), transparent 34%),
    linear-gradient(135deg, rgba(8, 14, 29, .96), rgba(3, 6, 17, .98));
  box-shadow: 0 0 24px rgba(255, 191, 39, .12), inset 0 0 24px rgba(56, 217, 255, .035);
}

.wallet-summary-card:hover {
  transform: none;
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(255, 191, 39, .2), inset 0 0 24px rgba(56, 217, 255, .06);
}

.wallet-summary-trigger {
  width: 100%;
  padding: 27px 30px 18px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-card.wallet-summary-card h3 {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 1.45rem;
  text-shadow: 0 0 12px rgba(255, 191, 39, .42);
}

.wallet-summary-balance {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: .9rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(56, 217, 255, .3);
}

.wallet-summary-copy {
  margin: 0 0 20px;
  color: #c6c8d1;
  font-size: .82rem;
  line-height: 1.6;
}

.wallet-summary-more {
  display: inline-block;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.wallet-summary-trigger:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -5px;
  border-radius: 12px;
}

.wallet-game-links,
.wallet-dialog-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, .32);
}

.wallet-game-links {
  padding: 0 30px 26px;
  color: rgba(255, 255, 255, .3);
  font-size: .75rem;
}

.wallet-game-links a,
.wallet-dialog-links a {
  color: #d9dbe3;
  font-weight: 800;
  text-decoration: none;
}

.wallet-game-links a:hover,
.wallet-game-links a:focus-visible,
.wallet-dialog-links a:hover,
.wallet-dialog-links a:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wallet-game-links small {
  color: var(--muted);
  font-size: .62rem;
}

.wallet-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 191, 39, .72);
  border-radius: 18px;
  color: #fff;
  background: #050817;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .78), 0 0 32px rgba(255, 191, 39, .18);
}

.wallet-dialog::backdrop {
  background: rgba(1, 2, 8, .84);
  backdrop-filter: blur(7px);
}

.wallet-dialog-shell {
  position: relative;
  padding: 34px;
  background:
    radial-gradient(circle at 92% 8%, rgba(143, 54, 255, .2), transparent 34%),
    linear-gradient(145deg, rgba(11, 16, 34, .98), rgba(3, 6, 17, .99));
}

.wallet-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: rgba(2, 4, 13, .75);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.wallet-dialog-close:hover,
.wallet-dialog-close:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.wallet-dialog-kicker {
  margin: 0 56px 7px 0;
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.wallet-dialog-kicker span {
  margin-left: 8px;
  color: var(--muted);
  font-size: .58rem;
}

.wallet-dialog h2 {
  margin: 0 0 22px;
  color: var(--gold);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: .05em;
}

.wallet-balances {
  display: grid;
  gap: 10px;
}

.wallet-loading {
  margin: 0;
  color: var(--muted);
}

.wallet-balance-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 13px 16px;
  border: 1px solid rgba(143, 54, 255, .32);
  border-radius: 12px;
  background: rgba(2, 5, 15, .72);
}

.wallet-balance-row > strong {
  color: var(--gold);
  font-size: .88rem;
  letter-spacing: .04em;
}

.wallet-balance-row > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.wallet-balance-row small {
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.4;
}

.wallet-balance-row b {
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-size: .78rem;
}

.wallet-dialog-description {
  margin: 22px 0;
  color: #b9bbc7;
  font-size: .75rem;
  line-height: 1.65;
}

.wallet-dialog-links {
  font-size: .72rem;
}

.card-subtitle {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(255, 191, 39, 0.3);
}

.dashboard-desc {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 15px;
  margin-bottom: 0;
}

.xp-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(3, 5, 16, 0.9);
  border: 1px solid rgba(143, 54, 255, 0.5);
  border-radius: 6px;
  overflow: hidden;
  padding: 2px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
}

.xp-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--cyan));
  border-radius: 4px;
  box-shadow: 0 0 12px var(--pink);
  transition: width 0.6s ease;
}

.xp-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
  font-weight: bold;
}

.xp-percent {
  color: var(--cyan);
}

.rewards-card-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(12, 8, 25, 0.85), rgba(5, 7, 18, 0.95));
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(255, 191, 39, 0.15);
}

.rewards-card-wide h3 {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255, 191, 39, 0.4);
}

.rewards-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.reward-item {
  width: min(280px, 100%);
  min-height: 78px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px;
  background: radial-gradient(circle, rgba(40, 20, 60, 0.9), rgba(10, 10, 25, 0.9));
  border: 1px solid var(--violet);
  border-radius: 12px;
  font-size: 24px;
  box-shadow: 0 0 12px rgba(143, 54, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.reward-item strong,
.reward-item small {
  grid-column: 2;
}

.reward-item strong {
  align-self: end;
  color: #fff;
  font-size: .7rem;
}

.reward-item small {
  align-self: start;
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.35;
}

.reward-item .artifact-visual {
  grid-row: 1 / 3;
}

.reward-item:hover {
  transform: scale(1.1);
  border-color: var(--pink);
  box-shadow: 0 0 18px var(--pink);
}

.reward-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.artifact-visual {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  font-size: 1.35rem;
}

.artifact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pilot-avatar,
.pilot-avatar-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.pilot-avatar {
  object-fit: cover;
}

.pilot-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
}

.character-editor-card {
  margin: 24px 0 30px;
  padding: 32px;
  border-color: rgba(56, 217, 255, .48);
  scroll-margin-top: calc(var(--site-header-height, 88px) + 16px);
}

.character-editor-container {
  width: min(980px, calc(100% - 32px));
}

.character-editor-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--cyan);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

.character-editor-back:hover,
.character-editor-back:focus-visible {
  color: #fff;
}

.character-editor-card:hover {
  transform: none;
}

.character-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.character-editor-heading h1,
.character-editor-heading h2 {
  margin: 3px 0 8px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.character-editor-heading p:not(.eyebrow),
.avatar-upload-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.publish-badge,
.community-character-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(56, 217, 255, .55);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(56, 217, 255, .08);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .1em;
  white-space: nowrap;
}

.character-form {
  display: grid;
  gap: 26px;
}

.character-required-fields label > span b {
  color: var(--pink);
}

.character-avatar-required {
  border-style: solid;
  border-color: rgba(239, 54, 255, .62);
}

.character-avatar-required .character-avatar-button b {
  color: var(--gold);
}

.character-options {
  overflow: hidden;
  border: 1px solid rgba(143, 54, 255, .42);
  border-radius: 14px;
  background: rgba(5, 7, 18, .58);
}

.character-options summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: #fff;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.character-options summary::-webkit-details-marker {
  display: none;
}

.character-options summary > span:first-child {
  display: grid;
  gap: 5px;
}

.character-options summary strong {
  font-size: .76rem;
  letter-spacing: .08em;
}

.character-options summary small {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.4;
}

.character-options summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -3px;
}

.character-options-arrow {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 217, 255, .5);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .2s ease, border-color .2s ease;
}

.character-options[open] {
  border-color: rgba(56, 217, 255, .5);
}

.character-options[open] .character-options-arrow {
  transform: rotate(180deg);
  border-color: var(--pink);
  color: var(--pink);
}

.character-options-body {
  display: grid;
  gap: 20px;
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.avatar-upload-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px dashed rgba(176, 78, 255, .55);
  border-radius: 14px;
  background: rgba(7, 9, 24, .66);
}

.character-avatar-preview {
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid var(--pink);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 54, 255, .34), rgba(3, 5, 16, .96));
  box-shadow: 0 0 24px rgba(239, 54, 255, .28);
}

.character-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-avatar-preview span {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.character-avatar-button {
  width: fit-content;
  margin: 0 0 10px;
  cursor: pointer;
}

.character-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.character-form-grid label {
  display: grid;
  gap: 7px;
}

.character-form-grid label > span {
  color: #e9d9ff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.character-form-grid input,
.character-form-grid textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  outline: none;
  padding: 12px 13px;
  color: #fff;
  background: rgba(3, 5, 13, .78);
  font: inherit;
  resize: vertical;
}

.character-form-grid input:focus,
.character-form-grid textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 217, 255, .08);
}

.character-form-grid .field-wide {
  grid-column: 1 / -1;
}

.character-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

#characterFormStatus {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

#characterFormStatus[data-type="success"] {
  color: #8effbd;
}

#characterFormStatus[data-type="error"] {
  color: #ff9cae;
}

.community-character-badge {
  margin-bottom: 9px;
  border-color: rgba(255, 191, 39, .55);
  color: var(--gold);
  background: rgba(255, 191, 39, .08);
}

.community-character-badge.character-group-master { border-color: rgba(255, 191, 39, .72); color: var(--gold); background: rgba(255, 191, 39, .1); }
.community-character-badge.character-group-administration { border-color: rgba(255, 71, 107, .72); color: #ff7892; background: rgba(255, 71, 107, .1); }
.community-character-badge.character-group-moderators { border-color: rgba(56, 217, 255, .72); color: var(--cyan); background: rgba(56, 217, 255, .09); }
.community-character-badge.character-group-editors { border-color: rgba(221, 124, 255, .72); color: #e5a0ff; background: rgba(221, 124, 255, .09); }
.community-character-badge.character-group-users { border-color: rgba(142, 255, 189, .62); color: #8effbd; background: rgba(142, 255, 189, .08); }

.character-details summary {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid currentColor;
  color: #dfadff;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.character-details summary::-webkit-details-marker {
  display: none;
}

.character-details[open] summary {
  margin-bottom: 12px;
  color: var(--cyan);
}

.character-details dl {
  max-height: 310px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  margin: 0;
  padding-right: 4px;
}

.character-details dl > div {
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.character-details dt {
  color: var(--cyan);
  font-size: .55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.character-details dd {
  margin: 3px 0 0;
  color: #d3d7e1;
  font-size: .7rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.character-details .character-direct-message {
  width: 100%;
  margin-top: 14px;
}

.news-details {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.news-details summary {
  width: fit-content;
  color: #dfadff;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.news-details summary::-webkit-details-marker {
  display: none;
}

.news-details[open] summary {
  margin-bottom: 10px;
  color: var(--cyan);
}

.news-details p {
  max-height: 260px;
  overflow-y: auto;
  margin: 0 0 10px;
  color: #d3d7e1;
  white-space: pre-wrap;
}

.news-details span {
  color: var(--muted);
  font-size: .62rem;
}

.characters-status {
  min-height: 1.2em;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .68rem;
}

/* Администраторский кабинет */
.admin-body {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 54, 255, .1), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(56, 217, 255, .08), transparent 32%),
    #030510;
}

.admin-watermark {
  position: fixed;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(950px, 80vw);
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: contain;
  opacity: .32;
  filter: drop-shadow(0 0 18px rgba(255, 196, 0, .22));
  pointer-events: none;
  user-select: none;
}

.admin-header,
.admin-main {
  position: relative;
  z-index: 1;
}

.admin-header {
  grid-template-columns: minmax(180px, 1fr) auto minmax(110px, 1fr);
}

.admin-logout {
  justify-self: end;
  min-height: 38px;
  padding: 0 16px;
  font-size: .62rem;
}

.admin-main {
  min-height: 100vh;
  padding: 118px 0 80px;
}

.admin-loading {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  text-align: center;
}

.admin-loading h2 {
  margin: 0;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 2rem;
}

.admin-loader {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, .12);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: adminSpin .8s linear infinite;
}

@keyframes adminSpin {
  to { transform: rotate(360deg); }
}

.admin-shell {
  max-width: 1420px;
}

.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid rgba(56, 217, 255, .4);
  border-radius: 20px;
  background:
    linear-gradient(110deg, rgba(17, 12, 41, .96), rgba(5, 14, 27, .94)),
    #070b19;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 0 35px rgba(56, 217, 255, .04);
}

.admin-hero h1,
.admin-section-head h2,
.admin-dialog h2 {
  margin: 5px 0 8px;
  font-family: Impact, "Arial Black", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-hero h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: .96;
}

.admin-hero > div > p:not(.eyebrow),
.admin-section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.admin-identity {
  min-width: 250px;
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid rgba(239, 54, 255, .42);
  border-radius: 14px;
  background: rgba(3, 5, 16, .66);
}

.admin-identity > span {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.admin-identity strong {
  color: #fff;
  font-size: 1.1rem;
}

.admin-identity small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-tabs {
  position: sticky;
  top: 78px;
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 22px 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: rgba(4, 7, 18, .9);
  backdrop-filter: blur(14px);
}

.admin-tab {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
  cursor: pointer;
}

.admin-tab:hover,
.admin-tab.active {
  border-color: rgba(56, 217, 255, .45);
  color: #fff;
  background: rgba(56, 217, 255, .08);
  box-shadow: inset 0 0 16px rgba(56, 217, 255, .06);
}

.admin-panel {
  display: none;
  animation: adminPanelIn .25s ease;
}

.admin-panel.active {
  display: block;
}

@keyframes adminPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 18px;
}

.admin-section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.admin-refresh {
  min-height: 38px;
  flex: 0 0 auto;
}

.admin-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stats article {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(143, 54, 255, .38);
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(12, 15, 34, .96), rgba(5, 7, 18, .96));
}

.admin-stats span {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.admin-stats strong {
  color: var(--cyan);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 2.6rem;
  line-height: 1;
}

.admin-card {
  padding: 24px;
  border: 1px solid rgba(143, 54, 255, .35);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(10, 14, 30, .9), rgba(5, 7, 18, .96));
  box-shadow: 0 12px 35px rgba(0, 0, 0, .26);
}

.admin-card h3 {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.15rem;
  letter-spacing: .05em;
}

.admin-access-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-access-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(56, 217, 255, .2);
  border-radius: 10px;
  background: rgba(56, 217, 255, .035);
}

.admin-access-card small,
.admin-empty {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.admin-form {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}

.admin-form label,
.admin-form-grid label {
  display: grid;
  gap: 7px;
}

.admin-form label > span,
.admin-form-grid label > span {
  color: #e8d7ff;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-form input:not([type="checkbox"]),
.admin-form textarea,
.admin-form select,
.admin-toolbar input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  outline: none;
  padding: 12px 13px;
  color: #fff;
  background: rgba(3, 5, 13, .82);
  font: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-toolbar input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 217, 255, .08);
}

.admin-form textarea {
  resize: vertical;
}

.admin-form-grid .field-wide {
  grid-column: 1 / -1;
}

.content-access-mode,
.content-access-requirement {
  padding: 12px;
  border: 1px solid rgba(56, 217, 255, .24);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(19, 11, 42, .72), rgba(3, 8, 20, .72));
}

.content-access-requirement {
  border-color: rgba(224, 59, 255, .34);
}

.admin-form-actions,
.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-form-actions > span {
  color: var(--muted);
  font-size: .76rem;
}

.news-cover-editor {
  display: flex;
  align-items: center;
  gap: 20px;
}

.news-cover-editor p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .7rem;
}

.news-cover-editor label.button {
  display: inline-flex;
  width: fit-content;
}

.news-cover-preview {
  width: min(340px, 42vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(239, 54, 255, .55);
  border-radius: 12px;
  background: rgba(3, 5, 16, .85);
}

.news-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-cover-preview span {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.project-gallery-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(56, 217, 255, .22);
  border-radius: 12px;
  background: rgba(3, 5, 16, .48);
}

.project-gallery-editor > div:first-child {
  display: grid;
  gap: 5px;
}

.project-gallery-editor p {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

.project-gallery-editor .project-gallery-title {
  color: #e8d7ff;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.project-gallery-editor > label.button {
  width: fit-content;
}

.project-gallery-preview {
  display: grid;
  gap: 12px;
}

.project-gallery-admin-item {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  margin: 0;
  border: 1px solid rgba(143, 54, 255, .38);
  border-radius: 10px;
  background: rgba(5, 7, 18, .9);
}

.project-gallery-admin-item img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  display: block;
  object-fit: fill;
}

.project-gallery-admin-item figcaption {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  color: var(--muted);
  font-size: .58rem;
}

.project-gallery-admin-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  align-content: start;
  gap: 8px;
}

.project-gallery-admin-label {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-gallery-admin-copy textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  outline: none;
  padding: 12px;
  color: #fff;
  background: rgba(2, 4, 13, .88);
  font: inherit;
  font-size: .72rem;
  line-height: 1.55;
}

.project-gallery-admin-copy textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 217, 255, .08);
}

.project-gallery-admin-item .button {
  align-self: start;
  min-height: 30px;
  padding: 0 9px;
  font-size: .52rem;
}

@media (max-width: 720px) {
  .project-gallery-admin-item { grid-template-columns: 1fr; }
  .project-gallery-admin-item img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .project-gallery-admin-item figcaption { flex-direction: column; }
  .project-gallery-admin-item .button { width: 100%; }
}

/* Project reader */
.project-detail-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: var(--bg);
}

.project-detail-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  opacity: .72;
  background-image:
    linear-gradient(rgba(3, 5, 16, .24), rgba(3, 5, 16, .42)),
    url("../images/cosmic-rock-continuation-v3.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.project-reader-main {
  width: min(1600px, calc(100% - 36px));
  margin: 0 auto;
  padding: 104px 0 80px;
}

.project-reader {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.project-reader-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #b24be0 rgba(255,255,255,.04);
}

.project-sidebar-panel,
.project-showcase,
.project-chapter-feed,
.project-reader-content .project-community-panel,
.project-reader-content .project-reviews {
  border: 1px solid rgba(182, 77, 225, .5);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 10, 31, .96), rgba(7, 8, 22, .94));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255,255,255,.04);
}

.project-sidebar-panel,
.project-showcase { overflow: hidden; }

.project-sidebar-heading {
  display: grid;
  gap: 4px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.project-sidebar-heading span,
.project-slide-copy-heading > span,
.project-dialog-head span {
  color: #d97cff;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .22em;
}

.project-sidebar-heading strong {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.25rem;
  letter-spacing: .05em;
  overflow-wrap: anywhere;
}

.project-arc-nav {
  display: grid;
  padding: 8px;
}

.project-arc-nav > p {
  margin: 10px;
  color: #a9a5b8;
  font-size: .84rem;
}

.project-arc-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  color: #e7e1ec;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.project-arc-card:hover { border-color: rgba(210, 101, 255, .45); transform: translateY(-1px); }
.project-arc-card.active { border-color: rgba(210, 101, 255, .7); background: rgba(174, 61, 220, .17); color: #fff; }
.project-arc-card img { width: 70px; height: 52px; border-radius: 9px; object-fit: fill; }
.project-arc-card span { min-width: 0; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.3; }

.project-switcher { display: grid; gap: 6px; padding: 9px; }
.project-switcher a {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #eeeaf3;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.project-switcher a:hover,
.project-switcher a.active { border-color: rgba(210, 101, 255, .5); background: rgba(172, 57, 220, .12); }
.project-switcher img { width: 66px; height: 48px; border-radius: 8px; object-fit: contain; }
.project-switcher span { display: grid; gap: 3px; min-width: 0; }
.project-switcher small { color: #9d97a9; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.project-switcher strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }

.project-reader-content { display: grid; gap: 24px; min-width: 0; }
.project-carousel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #090912;
  outline: 0;
}
.project-carousel > img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: fill;
  transition: opacity .3s ease, transform 6s ease;
}
.project-carousel:hover > img { transform: scale(1.025); }
.project-carousel-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 15, .74));
}
.project-slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background: rgba(5, 4, 14, .72);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
}
.project-slide-arrow:hover { border-color: #e47bff; background: rgba(132, 38, 171, .72); }
.project-slide-arrow.prev { left: 16px; }
.project-slide-arrow.next { right: 16px; }
.project-slide-dots {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}
.project-slide-dot {
  width: 24px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  cursor: pointer;
}
.project-slide-dot.active { width: 42px; background: #e26aff; }
.project-slide-copy {
  display: grid;
  grid-template-columns: minmax(230px, .34fr) minmax(0, 1fr);
  min-height: 230px;
  border-top: 1px solid rgba(185, 76, 226, .36);
}
.project-slide-copy-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.project-slide-copy-heading h1 {
  margin: 0;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: .92;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}
.project-slide-copy-heading small { color: #8c8599; font-weight: 800; letter-spacing: .12em; }
.project-external-links { margin-top: 10px; }
.project-external-links .managed-content-link { min-height: 34px; }
.project-slide-body {
  height: 230px;
  padding: 26px 30px;
  overflow: auto;
  color: #c9c4d1;
  font-size: 1rem;
  line-height: 1.75;
  white-space: pre-wrap;
  scrollbar-color: #c65be9 rgba(255,255,255,.04);
  scrollbar-width: thin;
}

.project-chapter-feed { min-width: 0; padding: 28px; scroll-margin-top: calc(var(--site-header-height, 88px) + 20px); }
.project-feed-heading {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.project-feed-heading .eyebrow { margin: 0 0 10px; }
.project-feed-heading h2 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.15; overflow-wrap: anywhere; }
.project-feed-heading > p { max-width: 68ch; margin: 0; color: #b9b1c8; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-feed-heading > p:empty { display: none; }
.project-chapter-rail-shell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  min-width: 0;
  align-items: center;
}
.project-chapter-rail-shell.no-scroll { display: block; }
.project-chapter-list {
  display: flex;
  grid-column: 2;
  gap: 14px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.project-chapter-list::-webkit-scrollbar { display: none; }
.project-chapter-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 62px;
  padding: 0;
  border: 1px solid rgba(211, 101, 255, .42);
  border-radius: 15px;
  background: rgba(7, 7, 20, .88);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}
.project-chapter-arrow:hover:not(:disabled) { border-color: #e47bff; background: rgba(132, 38, 171, .52); }
.project-chapter-arrow:disabled { opacity: .32; cursor: default; }
.project-chapter-card {
  position: relative;
  flex: 0 0 clamp(250px, 38%, 360px);
  aspect-ratio: 4 / 3;
  min-height: 230px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.project-chapter-card:hover { border-color: #c859eb; transform: translateY(-2px); }
.project-chapter-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.project-chapter-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(140deg, #241033, #080b18); color: #9b5db3; font-weight: 900; letter-spacing: .18em; }
.project-chapter-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,5,13,.03) 18%, rgba(4,5,13,.28) 46%, rgba(4,5,13,.96) 100%); pointer-events: none; }
.project-chapter-card-copy { position: absolute; inset: auto 0 0; z-index: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 24px 18px 17px; text-shadow: 0 2px 12px #000; }
.project-chapter-card-copy small { color: #ed9cff; font-size: .7rem; font-weight: 900; letter-spacing: .15em; }
.project-chapter-card-copy strong { font-size: 1.2rem; overflow-wrap: anywhere; }
.project-chapter-card-copy > span { display: -webkit-box; overflow: hidden; color: #e2dce8; font-size: .8rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-chapter-card-copy b { margin-top: 4px; color: #f5b4ff; font-size: .72rem; letter-spacing: .1em; }
.project-chapter-empty { grid-column: 1 / -1; margin: 0; padding: 34px; border: 1px dashed rgba(255,255,255,.15); border-radius: 14px; color: #9993a4; text-align: center; }

/* A short arc should read as a complete section, not an almost empty carousel. */
@media (min-width: 1100px) {
  .project-chapter-feed[data-chapter-count="1"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    padding: 32px;
  }

  .project-chapter-feed[data-chapter-count="1"] .project-feed-heading {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .project-chapter-feed[data-chapter-count="1"] .project-chapter-card {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
  }

  .project-chapter-feed[data-chapter-count="2"] .project-chapter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .project-chapter-feed[data-chapter-count="2"] .project-chapter-card {
    min-width: 0;
    width: 100%;
    min-height: 230px;
  }
}

.project-chapter-dialog {
  width: min(1380px, calc(100% - 32px));
  height: min(850px, calc(100vh - 42px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #b34ad8;
  border-radius: 22px;
  background: #080914;
  color: #fff;
  box-shadow: 0 40px 120px rgba(0,0,0,.8);
}
.project-chapter-dialog::backdrop { background: rgba(1, 2, 8, .88); backdrop-filter: blur(6px); }
.project-chapter-dialog-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto 46px;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(90deg, rgba(131, 35, 171, .25), transparent);
}
.project-chapter-dialog-head h2 { margin: 4px 0 0; font-size: clamp(1.4rem, 3vw, 2.4rem); }
.project-chapter-dialog-head button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: transparent; color: #fff; font-size: 2rem; cursor: pointer; }
.project-chapter-community-summary { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.project-chapter-community-summary button { width: auto; height: 38px; padding: 0 13px; border-radius: 19px; font-size: .9rem; }
.project-chapter-community-summary button.active { border-color: #e75cff; background: #48135b; }
.project-chapter-community-summary span { color: #c9c4d1; font-size: .78rem; white-space: nowrap; }
.project-chapter-dialog-content { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr); height: calc(100% - 82px); }
.project-dialog-pages { display: grid; grid-auto-rows: max-content; gap: 24px; align-content: start; padding: 24px; overflow: auto; background: #03040b; scrollbar-width: thin; scrollbar-color: #c65be9 rgba(255,255,255,.04); }
.project-dialog-pages figure { position: relative; align-self: start; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: #0a0b14; }
.project-dialog-pages img { display: block; width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
.project-dialog-pages figcaption { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: #9e96a9; font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.project-page-bookmark { min-height: 34px; padding: 7px 12px; border: 1px solid rgba(56,217,255,.55); border-radius: 999px; background: rgba(56,217,255,.08); color: var(--cyan); font: inherit; font-size: .58rem; letter-spacing: .06em; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.project-page-bookmark:hover,
.project-page-bookmark:focus-visible { border-color: var(--pink); color: #fff; box-shadow: 0 0 16px rgba(239,54,255,.25); }
.project-page-bookmark.active { border-color: var(--pink); background: rgba(239,54,255,.16); color: #fff; }
.project-page-bookmark:disabled { opacity: .55; cursor: wait; }
.project-dialog-pages figure.bookmark-target { border-color: var(--cyan); box-shadow: 0 0 28px rgba(56,217,255,.38); }
.project-dialog-lens {
  position: absolute;
  z-index: 2;
  width: 152px;
  height: 152px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background-color: #050711;
  background-repeat: no-repeat;
  box-shadow: 0 10px 35px rgba(0,0,0,.68), 0 0 22px rgba(56,217,255,.5);
  pointer-events: none;
}
.project-dialog-empty { margin: auto; color: #9993a4; }
.project-chapter-end { display: block; width: 100%; height: 2px; }
.project-dialog-comments { padding: 24px; overflow: auto; border-left: 1px solid rgba(255,255,255,.1); scrollbar-width: thin; scrollbar-color: #c65be9 rgba(255,255,255,.04); }
.project-dialog-comments h3 { margin: 0 0 14px; font-family: Impact, sans-serif; letter-spacing: .08em; }
.project-dialog-comments form { display: grid; gap: 10px; }
.project-dialog-comments textarea { width: 100%; resize: vertical; padding: 13px; border: 1px solid #633079; border-radius: 13px; background: #040610; color: #fff; }
.project-dialog-comment-status { color: #cda4d9; font-size: .82rem; }
.project-dialog-comment-list { display: grid; gap: 10px; margin-top: 18px; }
.project-dialog-comment { padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.025); }
.project-dialog-comment header { display: flex; justify-content: space-between; gap: 8px; color: #ef9cff; font-size: .75rem; }
.project-dialog-comment p { margin: 8px 0 0; color: #ddd7e2; white-space: pre-wrap; overflow-wrap: anywhere; }

.project-reader-content .project-detail-community { margin-top: 0; }

@media (max-width: 1050px) {
  .project-reader { grid-template-columns: 230px minmax(0, 1fr); }
  .project-carousel, .project-carousel > img { min-height: 340px; height: 340px; }
  .project-slide-copy { grid-template-columns: 1fr; }
  .project-slide-copy-heading { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .project-chapter-card { flex-basis: clamp(240px, 48%, 330px); }
}

@media (max-width: 760px) {
  .project-reader-main { width: min(100% - 20px, 680px); padding-top: 86px; }
  .project-reader { grid-template-columns: 1fr; }
  .project-reader-sidebar { position: static; display: grid; grid-template-columns: 1fr; max-height: none; overflow: visible; }
  .project-switcher-panel { order: 2; }
  .project-carousel, .project-carousel > img { min-height: 250px; height: 250px; }
  .project-slide-arrow { width: 38px; height: 50px; }
  .project-slide-arrow.prev { left: 8px; }
  .project-slide-arrow.next { right: 8px; }
  .project-slide-copy-heading { padding: 22px; }
  .project-slide-body { height: 210px; padding: 22px; }
  .project-feed-heading { display: grid; }
  .project-chapter-feed { padding: 20px; }
  .project-chapter-rail-shell { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 8px; }
  .project-chapter-arrow { width: 38px; height: 54px; }
  .project-chapter-card { flex-basis: min(78vw, 310px); min-height: 210px; }
  .project-chapter-dialog { width: calc(100% - 14px); height: calc(100vh - 14px); }
  .project-chapter-dialog-head { grid-template-columns: 1fr 46px; }
  .project-chapter-community-summary { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-top: 8px; }
  .project-chapter-dialog-content { grid-template-columns: 1fr; height: calc(100% - 150px); overflow: auto; }
  .project-dialog-pages { overflow: visible; }
  .project-dialog-comments { min-height: 260px; overflow: visible; border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
}

@media (hover: none) {
  .project-dialog-pages img { cursor: default; }
  .project-dialog-lens { display: none !important; }
}

/* Project reader editor */
.admin-section-actions,
.project-editor-heading,
.project-arc-admin-head,
.project-chapters-admin-heading,
.project-pages-admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-slides-editor,
.project-structure-editor {
  display: grid;
  gap: 18px;
}

.project-editor-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.project-editor-heading h3 { margin: 3px 0 5px; color: #fff; font-size: 1.45rem; }
.project-editor-heading p { max-width: 800px; margin: 0; color: #9f98aa; line-height: 1.55; }

.project-slides-preview { display: grid; gap: 16px; }
.project-slide-admin-item {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(320px, 1fr);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(192, 75, 230, .32);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.project-slide-admin-media { position: relative; align-self: center; aspect-ratio: 3 / 1; overflow: hidden; background: #070810; }
.project-slide-admin-media img { display: block; width: 100%; height: 100%; object-fit: fill; }
.project-slide-admin-badge {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  background: rgba(4, 5, 13, .84);
  color: #eea2ff;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.project-slide-admin-copy { display: grid; gap: 12px; padding: 16px; }
.project-slide-shared-copy-note { margin: 0; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #b9b1c0; line-height: 1.5; }
.project-slide-admin-copy textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(3,4,11,.72);
  color: #fff;
  padding: 13px;
  line-height: 1.55;
}
.project-slide-admin-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.project-slide-admin-controls > label:first-child { display: grid; gap: 5px; min-width: 100px; color: #9c95a5; font-size: .72rem; }
.project-slide-admin-controls input[type="number"] { width: 110px; }

.project-structure-editor { margin: 22px 0; }
.project-arcs-editor { display: grid; gap: 20px; }
.project-arc-admin-item {
  padding: 18px;
  border: 1px solid rgba(194, 80, 232, .3);
  border-radius: 16px;
  background: rgba(4, 5, 14, .5);
}
.project-arc-admin-head { margin-bottom: 16px; }
.project-arc-admin-item.is-collapsed > .project-arc-admin-head { margin-bottom: 0; }
.project-arc-admin-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #eee5f3;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.project-arc-admin-toggle:hover { background: rgba(194, 80, 232, .09); border-color: rgba(194, 80, 232, .25); }
.project-arc-admin-toggle:focus-visible { outline: 2px solid #53d5f2; outline-offset: 3px; }
.project-arc-admin-toggle-label { display: grid; gap: 5px; min-width: 0; }
.project-arc-admin-toggle-label > strong { color: #df83fb; font-size: .75rem; letter-spacing: .16em; }
.project-arc-admin-title { font-size: .95rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.project-arc-admin-chevron {
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  margin: 0 3px;
  border-right: 2px solid #df83fb;
  border-bottom: 2px solid #df83fb;
  transform: rotate(45deg);
}
.project-arc-admin-toggle[aria-expanded="false"] .project-arc-admin-chevron { transform: rotate(-45deg); }
.project-arc-admin-body[hidden] { display: none; }
.project-arc-admin-actions { justify-content: flex-end; margin-bottom: 16px; }
.project-arc-admin-media {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.project-arc-admin-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  overflow: hidden;
  border: 1px dashed rgba(215, 112, 252, .35);
  border-radius: 12px;
  background: linear-gradient(140deg, #241033, #080b18);
  color: #ba72d2;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .15em;
}
.project-arc-admin-preview img { display: block; width: 100%; min-height: 150px; aspect-ratio: 16 / 9; object-fit: fill; }
.project-arc-admin-media-controls { display: grid; gap: 12px; align-content: center; justify-items: start; }
.project-arc-admin-media-controls p { max-width: 600px; margin: 0; color: #aaa2b0; line-height: 1.55; }
.project-chapters-admin-heading { margin-top: 22px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.09); }
.project-chapters-admin-heading h4 { margin: 0; color: #fff; }
.project-chapters-admin-list { display: grid; gap: 12px; }
.project-chapter-admin-item { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.02); }
.project-chapter-admin-item > summary { padding: 15px; color: #e7ddea; font-weight: 850; cursor: pointer; }
.project-chapter-admin-item[open] > summary { border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(158, 50, 199, .1); }
.project-chapter-admin-item > .admin-form-grid,
.project-chapter-admin-item > .admin-row-actions,
.project-chapter-admin-item > .project-pages-admin-heading,
.project-chapter-admin-item > .project-pages-admin-grid { margin: 16px; }
.project-pages-admin-heading { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.project-pages-admin-heading strong { color: #bcb3c2; font-size: .72rem; letter-spacing: .14em; }
.project-pages-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.project-pages-admin-grid figure { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #080914; }
.project-pages-admin-grid img { display: block; width: 100%; height: 180px; object-fit: fill; }
.project-pages-admin-grid figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; }
.project-pages-admin-grid figcaption span { color: #aaa2b0; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.admin-inline-status { min-height: 1.5em; margin: 0; color: #d98ff0; }

@media (max-width: 850px) {
  .project-slide-admin-item { grid-template-columns: 1fr; }
  .project-arc-admin-media { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .admin-section-actions,
  .project-editor-heading,
  .project-arc-admin-head,
  .project-chapters-admin-heading,
  .project-pages-admin-heading { align-items: stretch; flex-direction: column; }
  .project-slide-admin-controls { align-items: stretch; flex-direction: column; }
  .project-slide-admin-controls .button { width: 100%; }
}

.admin-list {
  display: grid;
  gap: 12px;
}

.news-admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.news-admin-column {
  min-width: 0;
}

.news-admin-column-label {
  margin: 0 0 9px 4px;
}

.site-update-editor {
  border-color: rgba(49, 211, 255, .34);
  background:
    radial-gradient(circle at 100% 0, rgba(219, 45, 255, .12), transparent 42%),
    rgba(6, 10, 24, .92);
}

.site-update-editor-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}

.site-update-editor-heading h3 {
  margin: 0 0 7px;
  color: #e980ff;
  font-size: 1rem;
  line-height: 1.2;
}

.site-update-editor-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.site-update-editor-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(70, 220, 255, .72);
  border-radius: 50%;
  color: #55e0ff;
  background: rgba(42, 202, 255, .08);
  box-shadow: 0 0 22px rgba(42, 202, 255, .16);
}

.site-update-form-grid {
  grid-template-columns: 1fr;
}

.site-updates-admin-list {
  margin-top: 12px;
}

.site-update-admin-item h3 {
  margin: 11px 0 7px;
  color: #fff;
  font-size: 1rem;
}

.site-update-admin-item p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-news-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.admin-news-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  align-self: start;
  border-radius: 9px;
  object-fit: cover;
}

.admin-news-copy h3 {
  margin: 10px 0 7px;
  color: #fff;
  font-size: 1.25rem;
}

.admin-news-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.admin-content-link {
  display: block;
  overflow: hidden;
  margin-top: 8px;
  color: var(--cyan);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-news-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .62rem;
}

.admin-content-access {
  color: #60e4ff;
  font-weight: 900;
}

.admin-status {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-weight: 900;
}

.admin-status.published {
  border-color: rgba(69, 230, 137, .5);
  color: #8effbd;
}

.admin-status.draft {
  border-color: rgba(255, 191, 39, .5);
  color: var(--gold);
}

.admin-danger {
  border-color: rgba(255, 71, 107, .82);
  color: #fff;
}

.admin-danger:hover {
  border-color: #ff476b;
  color: #fff;
  background: rgba(255, 71, 107, .12);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-toolbar input {
  max-width: 520px;
}

.admin-toolbar span {
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(5, 7, 18, .78);
}

.progress-scroll-shell {
  max-height: 665px;
  overflow: auto;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
}

.progress-scroll-shell .admin-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
}

.progress-scroll-shell .admin-table tbody tr {
  height: 62px;
}

#progressTableBody tr.is-search-match {
  outline: 1px solid var(--gold);
  outline-offset: -1px;
  background: rgba(255, 191, 39, .1);
  box-shadow: inset 0 0 24px rgba(255, 191, 39, .08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
  vertical-align: middle;
  font-size: .72rem;
}

.admin-table th {
  color: var(--cyan);
  background: rgba(56, 217, 255, .04);
  font-size: .57rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-table td {
  color: #d7dbea;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  margin-top: 3px;
  color: var(--muted);
}

.admin-protected {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.admin-team-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr);
  gap: 18px;
}

.department-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.department-card,
.admin-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(3, 5, 16, .54);
}

.department-card {
  min-width: 0;
  align-content: space-between;
  align-items: stretch;
  flex-direction: column;
}

.department-card .admin-row-actions {
  width: 100%;
  margin-top: 10px;
  justify-content: flex-start;
}

.department-card .admin-row-actions .button {
  width: auto;
  max-width: 100%;
  min-height: 30px;
  padding: 0 12px;
  font-size: .56rem;
  letter-spacing: .04em;
  clip-path: polygon(5% 0, 100% 0, 100% 72%, 95% 100%, 0 100%, 0 28%);
}

.department-card > div:not(.admin-row-actions),
.admin-team-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.department-card small,
.admin-team-copy small,
.admin-team-copy span {
  color: var(--muted);
  font-size: .68rem;
}

.department-card code {
  color: var(--cyan);
  font-size: .6rem;
}

.admin-inline-check {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  color: #d7dbea;
}

.admin-inline-check input {
  width: auto !important;
  accent-color: var(--pink);
}

.group-help-card {
  align-content: start;
}

.group-help-card p,
.admin-card-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.department-visibility {
  width: max-content;
  margin-top: 3px;
  padding: 3px 7px;
  border: 1px solid rgba(56, 217, 255, .28);
  border-radius: 999px;
  color: var(--cyan) !important;
  font-size: .52rem !important;
  font-weight: 900;
  letter-spacing: .08em;
}

.department-visibility.hidden {
  border-color: rgba(255, 191, 40, .36);
  color: var(--gold) !important;
}

.access-groups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.access-group-card {
  min-width: 0;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(143, 54, 255, .36);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(143, 54, 255, .1), rgba(3, 5, 16, .72));
}

.access-group-card.group-administration { border-color: rgba(255, 191, 40, .5); }
.access-group-card.group-master { border-color: rgba(255, 191, 40, .72); }
.access-group-card.group-moderators { border-color: rgba(56, 217, 255, .45); }
.access-group-card.group-editors { border-color: rgba(239, 54, 255, .45); }
.access-group-card.group-users { border-color: rgba(164, 122, 255, .38); }

.access-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.access-group-head h3 {
  margin: 4px 0 6px;
}

.access-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.45;
}

.access-group-code {
  color: var(--cyan);
  font-family: monospace;
  font-size: .57rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.access-group-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.access-group-stats span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #cdd3df;
  font-size: .6rem;
}

.group-member-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 12px 0;
  border-block: 1px solid rgba(255, 255, 255, .08);
}

.group-member-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.group-member-form label span {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 800;
}

.group-member-form input,
.group-member-form select {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  padding: 10px;
  color: #fff;
  background: rgba(2, 4, 13, .72);
}

.group-member-note {
  margin: 12px 0;
  padding: 12px;
  border-block: 1px solid rgba(255, 191, 40, .18);
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}

.access-group-directory {
  min-width: 0;
  margin-top: 12px;
}

.access-group-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.access-group-search label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.access-group-search label span {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 800;
}

.access-group-search input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(56, 217, 255, .24);
  border-radius: 7px;
  padding: 10px;
  color: #fff;
  background: rgba(2, 4, 13, .72);
}

.access-group-search input:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(56, 217, 255, .14);
  outline-offset: 1px;
}

.access-group-search input:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.access-group-search-count {
  min-width: 58px;
  padding-bottom: 10px;
  color: var(--cyan);
  font-family: monospace;
  font-size: .62rem;
  text-align: right;
  white-space: nowrap;
}

.access-group-members {
  --access-group-member-height: 74px;
  max-height: calc((var(--access-group-member-height) * 5) + 32px);
  overflow-y: auto;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-right: 5px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(56, 217, 255, .55) rgba(255, 255, 255, .05);
  scrollbar-width: thin;
}

.access-group-members::-webkit-scrollbar {
  width: 7px;
}

.access-group-members::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.access-group-members::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(56, 217, 255, .55);
}

.access-group-member {
  height: var(--access-group-member-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(3, 5, 16, .5);
}

.admin-team-avatar {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 217, 255, .45);
  border-radius: 50%;
  color: #fff;
  background: rgba(11, 14, 36, .9);
  font-weight: 900;
}

.admin-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-group-member .admin-team-copy {
  overflow: hidden;
}

.access-group-member .admin-team-copy strong,
.access-group-member .admin-team-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permissions-matrix {
  display: grid;
  gap: 9px;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(82px, .5fr));
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
  background: rgba(3, 5, 16, .55);
}

.permission-department {
  display: grid;
  gap: 3px;
}

.permission-department small {
  color: var(--muted);
  font-size: .62rem;
}

.permission-check {
  display: flex !important;
  align-items: center;
  gap: 5px !important;
  color: #cdd3df;
  font-size: .63rem;
  cursor: pointer;
}

.permission-check input {
  accent-color: var(--pink);
}

.admin-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: 86vh;
  overflow-y: auto;
  border: 1px solid rgba(56, 217, 255, .46);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  background: #080b18;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72);
}

.admin-dialog::backdrop {
  background: rgba(1, 3, 10, .82);
  backdrop-filter: blur(8px);
}

.admin-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin-dialog-head button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.admin-dialog .admin-form-actions {
  margin-top: 20px;
}

.admin-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: min(420px, calc(100% - 44px));
  padding: 13px 16px;
  border: 1px solid rgba(69, 230, 137, .55);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  color: #dffff0;
  background: rgba(7, 24, 18, .96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .46);
  transition: .2s;
}

.admin-toast[data-type="error"] {
  border-color: rgba(255, 71, 107, .65);
  color: #ffe3e9;
  background: rgba(31, 8, 15, .96);
}

.admin-toast.visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.studio {
  margin-top: 74px;
  padding: 58px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  scroll-margin-top: 86px;
  border: 1px solid rgba(148, 63, 255, .32);
  border-radius: 28px;
  background: radial-gradient(circle at 17% 18%, rgba(134, 31, 235, .18), transparent 32%),
              linear-gradient(145deg, rgba(16, 6, 31, .97), rgba(5, 8, 19, .97));
  box-shadow: inset 0 0 80px rgba(111, 29, 190, .08);
}

.studio {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding: 48px;
}


.community-activity {
  position: relative;
  min-width: 0;
  height: 430px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(181, 76, 255, .58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 5%, rgba(230, 78, 255, .18), transparent 38%),
    linear-gradient(145deg, rgba(14, 8, 34, .96), rgba(4, 8, 22, .98));
  box-shadow: inset 0 0 32px rgba(95, 27, 156, .18), 0 20px 70px rgba(0, 0, 0, .3);
}

.community-activity::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .62) 0 1px, transparent 1.5px);
  background-size: 47px 47px;
}

.community-activity__head,
.community-activity__feed,
.community-activity__status {
  position: relative;
  z-index: 1;
}

.community-activity__head {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(4, 5, 18, .55);
}

.community-activity__head .eyebrow {
  margin: 0 0 3px;
  font-size: .6rem;
}

.community-activity__head h2 {
  margin: 0;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.community-activity__scope {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(77, 218, 255, .32);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(35, 169, 213, .08);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.community-activity__feed {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(187, 80, 255, .65) transparent;
}

.community-activity__item {
  box-sizing: border-box;
  min-height: 65px;
  display: grid;
  gap: 3px;
  padding: 9px 15px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(90deg, rgba(130, 48, 180, .045), transparent);
}

.community-activity__item:last-child { border-bottom: 0; }
.community-activity__item:hover { background: linear-gradient(90deg, rgba(143, 55, 206, .12), rgba(45, 205, 255, .035)); }

.community-activity__meta {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.community-activity__kind {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border: 1px solid rgba(237, 103, 255, .4);
  border-radius: 5px;
  color: #f2a9ff;
  background: rgba(140, 30, 158, .13);
  font-size: .47rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.community-activity__kind[href] {
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.community-activity__kind[href]:hover,
.community-activity__kind[href]:focus-visible {
  filter: brightness(1.25);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(232, 91, 255, .24);
  outline: none;
}

.project-review.activity-target,
.project-dialog-comment.activity-target,
.game-comment.activity-target {
  scroll-margin-block: 92px;
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  animation: activity-target-pulse 1.8s ease-out 1;
}

@keyframes activity-target-pulse {
  0%, 55% { box-shadow: 0 0 0 7px rgba(56, 214, 255, .22); }
  100% { box-shadow: 0 0 0 0 rgba(56, 214, 255, 0); }
}

.community-activity__kind--project_review {
  border-color: rgba(255, 197, 76, .38);
  color: var(--gold);
  background: rgba(170, 112, 24, .11);
}

.community-activity__meta strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-activity__meta time {
  color: #7f879e;
  font-size: .5rem;
  white-space: nowrap;
}

.community-activity__source,
.community-activity__body {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-activity__source {
  color: var(--cyan);
  font-size: .51rem;
  font-weight: 800;
  letter-spacing: .055em;
}

.community-activity__body {
  margin: 0;
  color: #d9d6e4;
  font-size: .69rem;
  line-height: 1.3;
}

.community-activity__status {
  align-self: center;
  margin: 0;
  padding: 24px;
  color: #9298ac;
  text-align: center;
  font-size: .7rem;
}

.community-leaderboard {
  position: relative;
  container: community-ranking / inline-size;
  min-width: 0;
  height: 430px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(181, 76, 255, .58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 8%, rgba(56, 217, 255, .14), transparent 38%),
    linear-gradient(145deg, rgba(14, 8, 34, .96), rgba(4, 8, 22, .98));
  box-shadow: inset 0 0 32px rgba(95, 27, 156, .18), 0 20px 70px rgba(0, 0, 0, .3);
}

.community-leaderboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .65) 0 1px, transparent 1.5px);
  background-size: 47px 47px;
}

.community-leaderboard__head,
.community-leaderboard__list,
.community-leaderboard__status {
  position: relative;
  z-index: 1;
}

.community-leaderboard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(4, 5, 18, .55);
}

.community-leaderboard__head > div { flex: 1 1 220px; min-width: 0; }

.community-leaderboard__head .eyebrow {
  margin: 0 0 6px;
  font-size: .6rem;
  line-height: 1.6;
}

.community-leaderboard__head h2 {
  margin: 0;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.community-leaderboard__head a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(56, 217, 255, .3);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(56, 217, 255, .06);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.community-leaderboard__head a:hover,
.community-leaderboard__head a:focus-visible { color: #fff; border-color: var(--cyan); }

.community-leaderboard .community-leaderboard__list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
  margin: 0;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(187, 80, 255, .65) transparent;
}

.community-leaderboard .leaderboard-row {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 28px 40px minmax(0, 1fr);
  grid-template-areas: "position avatar identity" ". . xp";
  align-items: start;
  gap: 8px 10px;
  padding: 14px 12px;
  border: 1px solid rgba(151, 113, 194, .2);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(87, 55, 133, .1), rgba(5, 10, 22, .45));
}

.community-leaderboard .leaderboard-position { grid-area: position; padding-top: 10px; font-size: .9rem; }
.community-leaderboard .leaderboard-avatar { grid-area: avatar; width: 40px; height: 40px; }
.community-leaderboard .leaderboard-identity { grid-area: identity; gap: 3px; }
.community-leaderboard .leaderboard-identity strong {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .95rem;
  line-height: 1.35;
}
.community-leaderboard .leaderboard-identity small {
  overflow-wrap: anywhere;
  font-size: .72rem;
  line-height: 1.45;
}
.community-leaderboard .leaderboard-username { color: #929db5; }
.community-leaderboard .leaderboard-identity .leaderboard-title { color: #d4c7e7; }
.community-leaderboard .leaderboard-row .leaderboard-xp {
  grid-area: xp;
  justify-self: start;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid rgba(255, 191, 40, .22);
  border-radius: 999px;
  background: rgba(255, 191, 40, .07);
  font-size: .75rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
}
.community-leaderboard .leaderboard-podium-1 { border-color: rgba(255, 191, 39, .35); background: linear-gradient(105deg, rgba(255, 191, 39, .11), rgba(13, 10, 25, .5)); box-shadow: none; }
.community-leaderboard .leaderboard-podium-2 { border-color: rgba(174, 213, 228, .3); background: linear-gradient(105deg, rgba(174, 213, 228, .08), rgba(13, 10, 25, .5)); }
.community-leaderboard .leaderboard-podium-3 { border-color: rgba(210, 127, 64, .3); background: linear-gradient(105deg, rgba(210, 127, 64, .08), rgba(13, 10, 25, .5)); }
.community-leaderboard .leaderboard-podium-1 .leaderboard-position { color: var(--gold); }
.community-leaderboard .leaderboard-podium-2 .leaderboard-position { color: #aed5e4; }
.community-leaderboard .leaderboard-podium-3 .leaderboard-position { color: #e1a474; }

@container community-ranking (min-width: 500px) {
  .community-leaderboard .leaderboard-row {
    grid-template-columns: 32px 44px minmax(0, 1fr) minmax(70px, auto);
    grid-template-areas: "position avatar identity xp";
    align-items: center;
  }
  .community-leaderboard .leaderboard-position { padding-top: 0; }
  .community-leaderboard .leaderboard-row .leaderboard-xp { justify-self: end; }
}

.community-leaderboard__status {
  min-height: 35px;
  margin: 0;
  padding: 11px 19px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #8c94aa;
  background: rgba(3, 5, 16, .72);
  font-size: .58rem;
  letter-spacing: .04em;
}

.studio-copy > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.68;
  margin: 20px 0 28px;
}

.timeline {
  display: grid;
  gap: 11px;
}

.timeline article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 15px;
  border-left: 2px solid rgba(215, 95, 255, .72);
  background: rgba(255, 255, 255, .025);
}

.timeline b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--violet);
  color: #ddaaff;
}

.timeline h3 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  text-transform: uppercase;
}

.timeline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.community-chat {
  position: relative;
  min-width: 0;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(181, 76, 255, .58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 8%, rgba(187, 53, 255, .2), transparent 38%),
    linear-gradient(145deg, rgba(14, 8, 34, .96), rgba(4, 8, 22, .98));
  box-shadow: inset 0 0 32px rgba(95, 27, 156, .18), 0 20px 70px rgba(0, 0, 0, .3);
}

.community-chat::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .65) 0 1px, transparent 1.5px);
  background-size: 47px 47px;
}

.community-chat__head,
.community-chat__form,
.community-chat__locked,
.community-chat__messages {
  position: relative;
  z-index: 1;
}

.community-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(4, 5, 18, .55);
}

.community-chat__head .eyebrow {
  margin: 0 0 3px;
  font-size: .6rem;
}

.community-chat__head h3 {
  margin: 0;
  color: #fff;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.35rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.community-chat__connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aeb4c8;
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.community-chat__connection::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.community-chat__connection[data-state="online"] { color: #68ffbd; }
.community-chat__connection[data-state="locked"] { color: var(--gold); }
.community-chat__connection[data-state="reconnecting"] { color: #ff7e9a; }

.community-chat__messages {
  min-height: 0;
  overflow-y: auto;
  padding: 10px 16px 18px;
  scrollbar-color: rgba(187, 80, 255, .65) transparent;
}

.community-chat__message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.community-chat__avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(189, 80, 255, .7);
  border-radius: 50%;
  color: #efceff;
  background: rgba(122, 34, 196, .24);
  font-size: .7rem;
  font-weight: 900;
}

.community-chat__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.community-chat__meta strong {
  overflow: hidden;
  color: #fff;
  font-size: .76rem;
  text-overflow: ellipsis;
}

.community-chat__meta time {
  margin-left: auto;
  color: #777f98;
  font-size: .58rem;
}

.community-chat__role {
  padding: 2px 6px;
  border: 1px solid rgba(116, 217, 255, .35);
  border-radius: 999px;
  color: #8edfff;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.community-chat__role--master { border-color: rgba(255, 191, 39, .65); color: var(--gold); }
.community-chat__role--administration { border-color: rgba(255, 83, 139, .6); color: #ff8db2; }
.community-chat__role--moderators { border-color: rgba(194, 111, 255, .65); color: #d9a2ff; }
.community-chat__role--editors { border-color: rgba(77, 235, 177, .55); color: #7ff1c6; }

.community-chat__message p {
  margin: 5px 0 0;
  color: #c9ccda;
  font-size: .74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.community-chat__empty {
  position: absolute;
  z-index: 2;
  inset: 49% 20px auto;
  margin: 0;
  color: #737b94;
  font-size: .7rem;
  text-align: center;
}

.community-chat__locked {
  align-self: stretch;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 34px;
  text-align: center;
}

.community-chat__locked[hidden] { display: none; }

.community-chat__locked > span {
  color: #cc71ff;
  font-size: 2.6rem;
  text-shadow: 0 0 24px rgba(204, 113, 255, .7);
}

.community-chat__locked strong { font-family: Impact, "Arial Black", sans-serif; letter-spacing: .06em; }
.community-chat__locked p { max-width: 370px; margin: 10px auto 18px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.community-chat__locked div { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.community-chat__locked .button { min-height: 38px; padding: 9px 14px; font-size: .6rem; }

.community-chat__form {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: rgba(3, 5, 16, .72);
}

.community-chat__form[hidden] { display: none; }
.community-chat__form > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.community-chat__form textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(171, 75, 238, .42);
  border-radius: 10px;
  outline: 0;
  color: #fff;
  background: rgba(4, 7, 22, .86);
  font: inherit;
  font-size: .73rem;
  line-height: 1.45;
}

.community-chat__form textarea:focus {
  border-color: #c75cff;
  box-shadow: 0 0 0 3px rgba(187, 65, 255, .12);
}

.community-chat__send {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.community-chat__send > span { color: #767e96; font-size: .53rem; }
.community-chat__send .button { min-height: 34px; padding: 8px 12px; font-size: .56rem; }

.home-about {
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  min-height: 430px;
  margin: 74px auto 76px;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  scroll-margin-top: 86px;
  border: 1px solid rgba(174, 74, 255, .48);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(4, 5, 19, .98) 0%, rgba(8, 5, 30, .93) 48%, rgba(6, 4, 24, .68) 100%),
    url("/assets/images/about/about-space-bg.webp") center 43% / cover;
  box-shadow:
    inset 0 0 90px rgba(119, 31, 210, .14),
    0 30px 90px rgba(0, 0, 0, .34);
}

.home-about::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  aspect-ratio: 1;
  left: 8%;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(117, 36, 192, .3), rgba(91, 23, 154, .09) 58%, transparent 72%);
  filter: blur(2px);
}

.home-about::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(56, 217, 255, .12);
  border-radius: 21px;
  clip-path: polygon(0 0, 23% 0, 23% 1px, 77% 1px, 77% 0, 100% 0, 100% 100%, 70% 100%, 70% calc(100% - 1px), 30% calc(100% - 1px), 30% 100%, 0 100%);
}

.home-about__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.home-about__kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: clamp(.66rem, 1vw, .82rem);
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.home-about h2 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(4.2rem, 7vw, 7rem);
  line-height: .82;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.home-about h3 {
  max-width: 570px;
  margin: 22px 0 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.32rem, 2vw, 2rem);
  line-height: 1.06;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.home-about__description {
  max-width: 560px;
  margin: 14px 0 0;
  color: #c7c9d7;
  font-size: clamp(.78rem, 1.15vw, .94rem);
  line-height: 1.55;
}

.home-about__tags {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 11px;
  color: #dc75ff;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.home-about__tags i {
  color: rgba(255, 255, 255, .46);
  font-style: normal;
}

.home-about__button {
  width: max-content;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid rgba(255, 191, 40, .86);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 91% 100%, 0 100%);
  color: #fff3c1;
  background: linear-gradient(110deg, rgba(255, 191, 40, .13), rgba(69, 18, 104, .25));
  box-shadow: inset 0 0 18px rgba(255, 191, 40, .08);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.home-about__button span {
  color: var(--gold);
  font-size: 1.1rem;
}

.home-about__button:hover,
.home-about__button:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(110deg, rgba(255, 191, 40, .22), rgba(155, 35, 220, .3));
}

.home-about__visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  align-self: stretch;
}

.home-about__orb {
  position: absolute;
  width: 340px;
  aspect-ratio: 1;
  right: 10%;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(132, 40, 220, .3), rgba(65, 22, 132, .08) 60%, transparent 72%);
  box-shadow: 0 0 80px rgba(169, 51, 255, .22);
}

.home-about__visual img {
  position: absolute;
  width: 118%;
  max-width: none;
  height: auto;
  right: -12%;
  bottom: -7%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(119, 49, 255, .34));
}

.footer {
  padding: 54px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid h3 {
  margin: 0 0 10px;
  color: #d774ff;
  font-size: .72rem;
  text-transform: uppercase;
}

.footer-grid a:not(.brand) {
  color: #bcc2d0;
  font-size: .78rem;
}

.footer-grid p, .footer small {
  color: #7d8595;
  font-size: .68rem;
}

/* Управление прогрессом и артефактами */
.title-ladder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.title-ladder-head h3 { margin: 0; }
.title-ladder-head p { margin: 6px 0 0; color: var(--muted); font-size: .66rem; }

.title-manager-actions {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
}

.title-manager-actions .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: .52rem;
}

.title-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 9px;
}

.title-ladder-item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(143, 54, 255, .28);
  border-radius: 9px;
  color: #fff;
  background: rgba(3, 5, 16, .5);
  text-align: left;
  cursor: pointer;
}

.title-ladder-item strong { color: #fff; font-size: .7rem; }
.title-ladder-item span { color: var(--muted); font-size: .6rem; line-height: 1.4; }
.title-ladder-item.secret-title { border-color: rgba(255, 191, 39, .62); box-shadow: inset 0 0 18px rgba(255, 191, 39, .06); }
.title-ladder-item.active { border-color: var(--cyan); background: rgba(56, 217, 255, .08); box-shadow: inset 0 0 22px rgba(56, 217, 255, .06); }
.title-ladder-item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.title-sections-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 52vh; overflow-y: auto; margin: 0 0 20px; padding: 2px; }
.title-section-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 12px; border: 1px solid rgba(143, 54, 255, .3); border-radius: 10px; background: rgba(3, 5, 16, .58); cursor: pointer; }
.title-section-option input { margin-top: 3px; accent-color: var(--cyan); }
.title-section-option span { display: grid; gap: 4px; }
.title-section-option strong { color: #fff; font-size: .7rem; }
.title-section-option small { color: var(--muted); font-size: .58rem; line-height: 1.4; }
.title-section-option:has(input:checked) { border-color: var(--cyan); background: rgba(56, 217, 255, .07); }
.admin-xp-value { color: var(--gold); font-weight: 900; }
.progress-dialog #progressDialogMeta { margin: 5px 0 0; color: var(--muted); font-size: .72rem; }
.progress-leaderboard-card { margin-top: 24px; }
.progress-leaderboard-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.progress-leaderboard-head h3 { margin: 4px 0 6px; }
.progress-leaderboard-head p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .7rem; }
.progress-leaderboard-head .button { flex: 0 0 auto; }
.progress-leaderboard-scroll { max-height: 665px; }
.progress-leaderboard-table th:first-child,
.progress-leaderboard-table td:first-child { width: 92px; }
.progress-rank { color: var(--cyan); font-weight: 900; }
.progress-rank-1 { color: var(--gold); }
.progress-rank-2 { color: #c8d9e6; }
.progress-rank-3 { color: #d88752; }

.artifact-cover-editor {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.artifact-cover-editor p { margin: 9px 0 0; color: var(--muted); font-size: .66rem; }
.artifact-image-clear { width: fit-content; min-height: 36px; margin: 8px 0 0; color: var(--muted); font-size: .55rem; }

.artifact-cover-preview {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: radial-gradient(circle, rgba(119, 40, 175, .6), rgba(3, 5, 16, .96));
  box-shadow: 0 0 22px rgba(255, 191, 39, .16);
  font-size: 2.3rem;
}

.artifact-cover-preview img { width: 100%; height: 100%; object-fit: cover; }

.artifact-placement-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(56, 217, 255, .34);
  border-radius: 13px;
  background:
    radial-gradient(circle at 12% 20%, rgba(143, 54, 255, .16), transparent 42%),
    rgba(3, 5, 16, .66);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.artifact-placement-panel.selected {
  border-color: rgba(255, 191, 39, .8);
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 191, 39, .12), transparent 42%),
    rgba(3, 5, 16, .72);
  box-shadow: inset 0 0 24px rgba(255, 191, 39, .05), 0 0 24px rgba(56, 217, 255, .08);
}

.artifact-placement-copy { min-width: 0; display: grid; gap: 6px; }
.artifact-placement-copy > span { color: var(--cyan); font-size: .6rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.artifact-placement-copy strong { color: #fff; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.artifact-placement-copy p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.artifact-placement-open { min-width: 190px; border-color: var(--gold); color: var(--gold); }
.artifact-placement-panel.selected .artifact-placement-open { color: #0b0710; background: var(--gold); }

.artifact-default-check {
  display: flex !important;
  align-items: center;
  align-self: end;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  cursor: pointer;
}

.artifact-default-check input { accent-color: var(--pink); }

.artifact-admin-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.artifact-admin-visual {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 39, .5);
  border-radius: 14px;
  background: rgba(255, 191, 39, .06);
  font-size: 1.8rem;
}

.artifact-admin-visual img { width: 100%; height: 100%; object-fit: cover; }
.artifact-admin-copy { min-width: 0; display: grid; gap: 5px; }
.artifact-admin-copy strong { color: #fff; }
.artifact-admin-copy small { color: var(--cyan); font-size: .62rem; overflow-wrap: anywhere; }
.artifact-admin-copy p { margin: 0; color: var(--muted); font-size: .7rem; }

.secret-content-editor {
  display: grid;
  gap: 18px;
}

.secret-editor-section {
  margin: 0;
  border-color: rgba(190, 76, 255, .34);
}

.secret-editor-section > h3 {
  margin: 0 0 8px;
  color: var(--cyan);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.18rem;
  letter-spacing: .05em;
}

.secret-editor-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

.secret-editor-items {
  display: grid;
  gap: 12px;
}

.secret-editor-item {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: rgba(2, 5, 15, .54);
}

.secret-editor-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.secret-editor-item-head strong {
  color: var(--gold);
  font-size: .68rem;
}

.secret-editor-item-head .button {
  width: auto;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  margin: 0;
  font-size: .55rem;
}

.secret-checkbox-field {
  display: flex !important;
  align-items: center;
  align-self: end;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  cursor: pointer;
}

.secret-checkbox-field input {
  width: auto;
  accent-color: var(--pink);
}

.secret-add-item {
  width: fit-content;
  margin: 14px 0 0;
  color: var(--cyan);
  border-color: rgba(56, 217, 255, .5);
}

.secret-editor-actions {
  position: sticky;
  z-index: 20;
  bottom: 14px;
  margin-top: 18px;
  border-color: rgba(56, 217, 255, .48);
  background: rgba(5, 9, 22, .95);
  backdrop-filter: blur(14px);
}

#secretContentStatus {
  color: var(--muted);
  font-size: .68rem;
}

/* Рейтинг героев */
.leaderboard-home { padding-bottom: 16px; }

.leaderboard-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 12px;
  padding: 0;
  list-style: none;
}

.leaderboard-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 58px 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px 16px;
  border: 1px solid rgba(143, 54, 255, .32);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(18, 10, 37, .78), rgba(5, 10, 22, .88));
}

.leaderboard-position {
  color: var(--cyan);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.15rem;
  letter-spacing: .04em;
}

.leaderboard-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(56, 217, 255, .48);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(56, 217, 255, .07);
}

.leaderboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leaderboard-identity { min-width: 0; display: grid; gap: 4px; }
.leaderboard-identity strong { overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-identity small, .leaderboard-title { color: var(--muted); font-size: .66rem; }
.leaderboard-xp { color: var(--gold); font-size: .78rem; white-space: nowrap; }
.leaderboard-podium-1 { border-color: rgba(255, 191, 39, .7); box-shadow: inset 0 0 20px rgba(255, 191, 39, .06); }
.leaderboard-podium-2 { border-color: rgba(174, 213, 228, .65); }
.leaderboard-podium-3 { border-color: rgba(210, 127, 64, .65); }

.leaderboard-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 5%, rgba(102, 31, 176, .22), transparent 34%), #030510;
}

.leaderboard-main { min-height: 100vh; padding: 118px 0 80px; }
.leaderboard-shell { max-width: 1120px; }

.leaderboard-hero,
.leaderboard-board {
  padding: 30px;
  border: 1px solid rgba(56, 217, 255, .34);
  border-radius: 18px;
  background: rgba(6, 9, 22, .88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

.leaderboard-hero h1 {
  margin: 4px 0 12px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: .94;
  text-transform: uppercase;
}

.leaderboard-hero > p:not(.eyebrow) { max-width: 760px; margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.leaderboard-board { margin-top: 22px; }
.leaderboard-board-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.leaderboard-board-head h2 { margin: 0; font-family: Impact, "Arial Black", sans-serif; font-size: 2rem; text-transform: uppercase; }
.leaderboard-board-head span { color: var(--cyan); font-size: .6rem; font-weight: 900; }
.leaderboard-list-full .leaderboard-row { grid-template-columns: 58px 50px minmax(180px, 1fr) minmax(180px, .65fr) 100px; }

/* Находимые артефакты */
.site-artifact {
  position: absolute;
  z-index: 45;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle, rgba(107, 37, 161, .94), rgba(5, 7, 18, .94));
  box-shadow: 0 0 12px rgba(255, 191, 39, .8), 0 0 36px rgba(239, 54, 255, .46);
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: artifactPulse 1.8s ease-in-out infinite;
}

.site-artifact:hover, .site-artifact:focus-visible { outline: 2px solid #fff; outline-offset: 3px; filter: brightness(1.25); }
.site-artifact.collected { pointer-events: none; animation: artifactCollect .65s ease forwards; }
.site-artifact-visual { width: 40px; height: 40px; }

@keyframes artifactPulse { 50% { transform: translate(-50%, -50%) scale(1.12) rotate(4deg); } }
@keyframes artifactCollect { to { opacity: 0; transform: translate(-50%, -50%) scale(2.2) rotate(25deg); } }

.progress-toast {
  position: fixed;
  z-index: 150;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 18px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  color: #fff;
  background: rgba(4, 8, 20, .96);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .55), 0 0 24px rgba(56, 217, 255, .18);
  font-size: .76rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.progress-toast.visible { opacity: 1; transform: none; }
.progress-toast[data-type="error"] { border-color: #ff6485; }

@media(max-width: 1180px) {
  .header { grid-template-columns: 160px 1fr 105px; }
  .header.dashboard-header { grid-template-columns: 160px minmax(0, 1fr) auto auto; }
  .nav { gap: 12px; }
  .nav a { font-size: .63rem; }
  .rail-arrow { display: none; }
  .project-rail, .character-rail, .news-rail { grid-auto-columns: minmax(280px, calc((100% - 18px) / 2)); }
  .world-rail { grid-auto-columns: minmax(230px, calc((100% - 36px) / 3)); }
  .admin-stats { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .news-admin-columns { grid-template-columns: 1fr; }
  .admin-team-grid { grid-template-columns: 1fr; }
  .access-groups-grid { grid-template-columns: 1fr; }
  .permission-row { grid-template-columns: minmax(170px, 1.4fr) repeat(4, minmax(75px, .5fr)); }
}

@media(max-width: 840px) {
  body.menu-open { overflow: hidden; }
  .header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .header.dashboard-header {
    height: 122px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 66px 44px;
    grid-template-areas:
      "dashboard-brand dashboard-menu"
      "dashboard-logout dashboard-chat";
    gap: 0 10px;
    padding: 0 20px 12px;
  }
  .dashboard-header .brand { grid-area: dashboard-brand; }
  .dashboard-header .menu-button { grid-area: dashboard-menu; }
  .dashboard-header .dashboard-logout { grid-area: dashboard-logout; width: 100%; min-height: 42px !important; }
  .dashboard-header .chat-launch { grid-area: dashboard-chat; height: 42px; }
  .dashboard-page .dashboard-container { padding-top: 146px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .games-site-header { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .games-site-header .brand { min-width: 0; }
  .games-site-header .chat-launch { min-width: 72px; padding: 0 12px; }
  .socials { display: none; }
  .brand { position: relative; z-index: 110; }
  .menu-button { position: relative; z-index: 110; display: block; width: 42px; height: 42px; border: 1px solid rgba(191, 114, 255, .55); border-radius: 50%; background: rgba(5, 7, 18, .78); color: #fff; font-size: 1.1rem; }
  .nav { position: fixed; inset: 0; z-index: 100; min-height: 100svh; height: 100dvh; padding: max(88px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 21px; opacity: 0; visibility: hidden; background: radial-gradient(circle at center, rgba(128, 30, 222, .25), transparent 28%), rgba(2, 4, 13, .97); transition: .25s; }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-size: .95rem; }
  .studio { grid-template-columns: 1fr; padding: 42px; gap: 38px; }
  .home-about {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 38px 34px 0;
    text-align: center;
  }
  .home-about__copy { display: grid; justify-items: center; }
  .home-about__visual { width: 100%; min-height: 300px; }
  .home-about__visual img { width: min(760px, 130%); right: 50%; bottom: -11%; transform: translateX(50%); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: 2 / 3; }
  .character-editor-heading { flex-direction: column; }
  .admin-header { grid-template-columns: 1fr auto; }
  .admin-header .admin-logout { display: none; }
  .admin-hero { align-items: stretch; flex-direction: column; }
  .admin-identity { min-width: 0; }
  .admin-stats { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .admin-news-row { grid-template-columns: 160px 1fr; }
  .permission-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permission-department { grid-column: 1 / -1; }
  .group-member-form { grid-template-columns: 1fr 1fr; }
  .group-member-form .button { grid-column: 1 / -1; width: 100%; }
  .news-dialog-card { grid-template-columns: 1fr; overflow-y: auto; }
  .news-dialog-cover { height: auto; min-height: 0; aspect-ratio: 16 / 8; }
  .news-dialog-body { overflow: visible; padding: 32px 28px; }
  .news-dialog.site-update-dialog .news-dialog-body { min-height: 0; padding: 46px 28px 32px; }
  .leaderboard-page .header { grid-template-columns: auto 1fr; }
  .leaderboard-nav { position: static; display: flex; flex-direction: row; justify-content: flex-end; gap: 12px; opacity: 1; visibility: visible; background: none; }
  .leaderboard-nav a { font-size: .6rem; }
  .leaderboard-list-full .leaderboard-row { grid-template-columns: 52px 46px minmax(0, 1fr) auto; }
  .leaderboard-list-full .leaderboard-title { grid-column: 3 / -1; }
  .artifact-admin-row { grid-template-columns: 68px minmax(0, 1fr); }
  .artifact-admin-row .admin-row-actions { grid-column: 1 / -1; }
}

@media(max-width: 620px) {
  .community-leaderboard { height: 470px; }
  .community-leaderboard__head { align-items: flex-start; padding: 16px; }
  .community-leaderboard .community-leaderboard__list { padding: 9px 8px; }
  .community-leaderboard .leaderboard-row { padding: 12px 9px; column-gap: 8px; }
  .community-chat { min-height: 470px; }
  .community-chat__head { align-items: flex-start; padding: 16px; }
  .community-chat__connection { margin-top: 4px; }
  .community-chat__send { grid-template-columns: 1fr auto; }
  .community-chat__send > span:first-child { grid-column: 1 / -1; }
  .community-chat__locked { padding: 26px 18px; }
  .admin-section-actions { width: 100%; justify-content: flex-start; }
  .container, .footer { width: calc(100% - 24px); }
  .home-page:after { background-position: 36% center; }
  .hero { min-height: 820px; }
  .hero-top { top: 88px; width: calc(100% - 24px); }
  .hero-top .eyebrow { font-size: .64rem; letter-spacing: .18em; }
  .subtitle { font-size: .62rem; letter-spacing: .2em; }
  .hero-bottom { bottom: 76px; width: calc(100% - 24px); }
  .lead { font-size: .88rem; line-height: 1.55; margin-bottom: 17px; }
  .actions { flex-direction: column; gap: 12px; }
  .button { width: min(330px, 100%); margin: auto; }
  .scroll-down { display: none; }
  .exotic-planet { width: 68px; right: 7%; top: 24%; }
  .exotic-planet__requirement { max-width: 170px; font-size: .45rem; }
  .spaceship { top: 35%; width: 122.5px; }
  .section-head { grid-template-columns: 1fr auto; }
  .section-head span { display: none; }
  .section-head a { font-size: .57rem; }
  .project-rail, .world-rail, .character-rail, .news-rail { grid-auto-columns: 88%; }
  .studio { margin-top: 54px; padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(4) { grid-column: auto; }
  .character-editor-card { padding: 22px 16px; }
  .dashboard-hero-card { padding: 20px 16px 24px; }
  .holo-badge {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 18px;
    box-sizing: border-box;
    line-height: 1.35;
    text-align: center;
  }
  .pilot-header-content { align-items: flex-start; gap: 16px; }
  .pilot-info { min-width: 0; }
  .pilot-info .eyebrow {
    margin: 0 0 8px;
    font-size: .68rem;
    line-height: 1.35;
    letter-spacing: .15em;
    overflow-wrap: anywhere;
  }
  .pilot-info h1 {
    font-size: clamp(1.55rem, 8.5vw, 2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .pilot-status { line-height: 1.45; }
  .hero-trophies-carousel {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
  }
  .hero-trophies-arrow { width: 28px; height: 34px; }
  .hero-trophies-preview { gap: 7px; }
  .hero-trophies-preview .trophy {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .rewards-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rewards-grid::-webkit-scrollbar { display: none; }
  .reward-item {
    flex: 0 0 min(260px, 88%);
    scroll-snap-align: start;
  }
  .wallet-summary-trigger { padding: 23px 18px 16px; }
  .wallet-game-links { padding: 0 18px 22px; }
  .dashboard-card.wallet-summary-card h3 { font-size: 1.35rem; }
  .wallet-summary-copy { font-size: .76rem; }
  .wallet-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .wallet-dialog-shell { padding: 28px 18px 24px; }
  .wallet-dialog-kicker { max-width: calc(100% - 44px); }
  .wallet-dialog-kicker span { display: block; margin: 5px 0 0; }
  .wallet-balance-row { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .character-options summary { align-items: flex-start; padding: 15px 14px; }
  .character-options-body { padding: 0 14px 14px; }
  .avatar-upload-panel { align-items: flex-start; flex-direction: column; }
  .character-form-grid { grid-template-columns: 1fr; }
  .character-form-grid .field-wide { grid-column: auto; }
  .admin-main { padding-top: 96px; }
  .admin-hero { padding: 24px 18px; }
  .admin-tabs { top: 70px; }
  .admin-section-head { align-items: flex-start; flex-direction: column; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-card { padding: 18px 14px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .field-wide { grid-column: auto; }
  .news-cover-editor { align-items: flex-start; flex-direction: column; }
  .news-cover-preview { width: 100%; }
  .admin-news-row { grid-template-columns: 1fr; }
  .admin-news-cover { max-height: 220px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .title-ladder-head { flex-direction: column; }
  .title-manager-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .title-manager-actions .button { width: 100%; }
  .title-sections-list { grid-template-columns: 1fr; }
  .progress-leaderboard-head { align-items: flex-start; flex-direction: column; }
  .progress-leaderboard-head .button { width: 100%; }
  .admin-team-row, .department-card { align-items: flex-start; flex-direction: column; }
  .permission-row { grid-template-columns: 1fr 1fr; }
  .access-group-head, .access-group-member { align-items: flex-start; flex-direction: column; }
  .access-group-members { --access-group-member-height: 122px; }
  .group-member-form { grid-template-columns: 1fr; }
  .group-member-form .button { grid-column: auto; }
  .news-card-overlay { padding: 16px 14px 13px; }
  .news-dialog { width: calc(100% - 20px); max-height: 92vh; }
  .news-dialog-card { max-height: 92vh; }
  .news-dialog-cover { aspect-ratio: 16 / 9; }
  .news-dialog-body { padding: 28px 20px 26px; }
  .news-dialog.site-update-dialog .news-dialog-body { padding: 44px 20px 26px; }
  .news-dialog h2 { padding-right: 30px; }
  .leaderboard-row { grid-template-columns: 43px 42px minmax(0, 1fr); gap: 9px; padding: 9px 10px; }
  .leaderboard-row .leaderboard-xp { grid-column: 3; }
  .leaderboard-list-full .leaderboard-row { grid-template-columns: 43px 42px minmax(0, 1fr); }
  .leaderboard-list-full .leaderboard-title { grid-column: 3; }
  .leaderboard-avatar { width: 40px; height: 40px; }
  .leaderboard-hero, .leaderboard-board { padding: 22px 14px; }
  .leaderboard-board-head { align-items: flex-start; flex-direction: column; }
  .leaderboard-nav { gap: 10px; }
  .leaderboard-nav a { font-size: .55rem; }
  .artifact-cover-editor { align-items: flex-start; flex-direction: column; }
  .artifact-placement-panel { grid-template-columns: 1fr; align-items: stretch; }
  .artifact-placement-open { width: 100%; min-width: 0; }
  .artifact-admin-row { grid-template-columns: 1fr; }
  .artifact-admin-row .admin-row-actions { grid-column: auto; }
  .secret-editor-item-head { align-items: flex-start; flex-direction: column; }
  .secret-editor-item-head .admin-row-actions { width: 100%; }
  .secret-editor-actions { position: static; }
}

@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .spaceship {
    left: 108%;
    opacity: 1;
    animation: shipFlight 17s linear infinite !important;
  }
  .exotic-planet { animation: exoticPlanetFloat 11s ease-in-out infinite !important; }
  .exotic-planet__surface,
  .exotic-planet__lights { animation: exoticPlanetSpin 38s linear infinite !important; }
  .exotic-planet__clouds { animation: exoticPlanetSpin 52s linear infinite reverse !important; }
  .spaceship-3d__engine-glow::before { animation: shipFlameUpper .15s ease-in-out infinite alternate !important; }
  .spaceship-3d__engine-glow::after { animation: shipFlameLower .18s ease-in-out infinite alternate !important; }
}
.chat-launch { flex:0 0 auto; min-width:92px; height:36px; padding:0 20px; border:1px solid #e95cff; border-radius:8px; background:linear-gradient(90deg,#59106f,#9b1db4); color:#fff; font-weight:900; letter-spacing:.14em; cursor:pointer; animation:chat-button-pulse 1.8s infinite; }
@keyframes chat-button-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(233,92,255,.42);transform:scale(1)} 50%{box-shadow:0 0 0 9px rgba(233,92,255,0);transform:scale(1.035)} }
.community-chat--floating { position:fixed; z-index:1200; right:22px; bottom:22px; width:min(620px,calc(100vw - 28px)); height:min(720px,calc(100vh - 96px)); min-height:0; overflow:hidden; box-shadow:0 25px 90px rgba(0,0,0,.72),0 0 35px rgba(177,45,224,.28); }
.community-chat--floating .community-chat__messages { min-height:0; }
.community-chat__close { position:absolute; z-index:5; top:13px; right:13px; width:38px; height:38px; border:1px solid rgba(255,255,255,.35); border-radius:50%; background:#080914; color:#fff; font-size:1.7rem; cursor:pointer; }
.community-chat--floating .community-chat__head { padding-right:62px; }
.social-links-editor { display:grid; gap:16px; margin:24px 0; padding:20px; }
.managed-links-editor { grid-column:1/-1; display:grid; gap:14px; padding:16px; border:1px solid rgba(56,217,255,.24); border-radius:14px; background:linear-gradient(145deg,rgba(19,11,42,.62),rgba(3,8,20,.7)); }
.managed-links-editor-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.managed-links-editor-head > div { display:grid; gap:5px; }
.managed-links-editor-head > div > span { color:#f0ddff; font-size:.68rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.managed-links-editor-head small { color:var(--muted); font-size:.7rem; line-height:1.45; }
.managed-links-admin-list { display:grid; gap:10px; }
.managed-link-admin-row { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(240px,1.4fr) auto; gap:10px; align-items:end; padding:12px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:rgba(2,5,15,.38); }
.managed-link-admin-row label { min-width:0; }
.managed-link-remove { min-height:43px; }
.social-links-admin-list { display:grid; gap:10px; }
.social-link-admin-row { display:grid; grid-template-columns:48px 150px minmax(130px,.6fr) minmax(220px,1fr) auto auto; gap:10px; align-items:center; padding:12px; border:1px solid rgba(255,255,255,.1); border-radius:14px; }
.social-link-admin-row input,.social-link-admin-row select { width:100%; min-height:42px; }
.social-template-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:#511361; color:#fff; font-weight:900; }
.social-template-icon.telegram{background:#229ed9}.social-template-icon.youtube{background:#f00}.social-template-icon.instagram{background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045)}
.social-template-icon img { width:100%; height:100%; border-radius:inherit; object-fit:contain; }
.social-icon-upload { min-height:42px; }
.footer-social-link { display:flex!important; align-items:center; gap:8px; }
.footer-social-icon { display:grid; place-items:center; width:22px; height:22px; border-radius:6px; background:#511361; color:#fff; font-size:.65rem; font-weight:900; }
.footer-social-icon.telegram{background:#229ed9}.footer-social-icon.youtube{background:#f00}.footer-social-icon.instagram{background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045)}
.footer-social-icon img { width:100%; height:100%; border-radius:inherit; object-fit:contain; }
@media (max-width:760px) { .chat-launch{min-width:72px;padding:0 12px}.community-chat--floating{right:7px;bottom:7px;width:calc(100vw - 14px);height:calc(100vh - 78px)}.social-link-admin-row{grid-template-columns:42px 1fr}.social-link-admin-row input,.social-link-admin-row select,.social-link-admin-row .button{grid-column:1/-1}.managed-links-editor-head{align-items:stretch;flex-direction:column}.managed-links-editor-head .button{width:100%}.managed-link-admin-row{grid-template-columns:1fr}.managed-link-remove{width:100%} }


/* Games collection and administrator */
.game-page-main {
  width:min(1600px,calc(100% - 36px));
}
.games-reader {
  display:grid;
  grid-template-columns:minmax(240px,290px) minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.games-reader-sidebar {
  min-width:0;
}
.games-collection {
  display:grid;
  gap:34px;
  min-width:0;
}
.game-card {
  scroll-margin-top:96px;
  box-shadow:0 28px 80px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.035);
}
.game-card + .game-card {
  margin-top:4px;
}
.game-showcase-excerpt {
  margin:0;
  color:#f2edf5;
  font-size:1.06rem;
  font-weight:750;
  line-height:1.6;
}
.game-showcase-description {
  margin:0;
  color:#bdb7c8;
  line-height:1.72;
  white-space:pre-wrap;
}
.game-reaction-status,
.game-comment-status {
  min-height:1.25em;
  margin:12px 0 0;
  color:#d7cfdf;
}
.game-comment-status {
  margin:0 0 12px;
}
.game-comment > div {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:baseline;
  min-width:0;
}
.game-comment time {
  flex:0 0 auto;
  color:#8f889c;
  font-size:.72rem;
}
.game-comments-empty {
  box-sizing:border-box;
  min-height:var(--game-comment-row);
  margin:0;
  display:grid;
  place-items:center;
  border:1px dashed rgba(198,90,229,.28);
  border-radius:16px;
  color:#9892a5;
  text-align:center;
}
.games-reader-sidebar .project-switcher {
  color:#9d97a9;
  font-size:.82rem;
}
.games-reader-sidebar .project-switcher img[src$="media-eye-logo.png"] {
  padding:9px;
  object-fit:contain;
  background:#070914;
}

.games-admin-layout {
  display:grid;
  grid-template-columns:minmax(250px,310px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.games-admin-catalog,
.games-admin-editor-card,
.games-admin-comments-card {
  padding:0;
  overflow:hidden;
}
.games-admin-catalog {
  position:sticky;
  top:112px;
}
.games-admin-list {
  display:grid;
  gap:8px;
  max-height:680px;
  padding:12px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#b24be0 rgba(255,255,255,.04);
}
.games-admin-list-item {
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  gap:11px;
  align-items:center;
  width:100%;
  min-height:68px;
  padding:7px;
  border:1px solid transparent;
  border-radius:12px;
  color:#eeeaf3;
  background:rgba(255,255,255,.025);
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:border-color .2s,background .2s,transform .2s;
}
.games-admin-list-item:hover {
  transform:translateY(-1px);
  border-color:rgba(210,101,255,.45);
}
.games-admin-list-item.active {
  border-color:rgba(224,107,255,.74);
  background:linear-gradient(135deg,rgba(168,45,214,.2),rgba(32,14,54,.72));
  box-shadow:inset 0 1px rgba(255,255,255,.04);
}
.games-admin-list-cover {
  box-sizing:border-box;
  width:74px;
  height:54px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:9px;
  color:#d97cff;
  background:radial-gradient(circle,rgba(135,38,168,.32),rgba(5,7,18,.94));
  font-family:Impact,sans-serif;
  font-size:.72rem;
  letter-spacing:.08em;
}
.games-admin-list-cover img {
  width:100%;
  height:100%;
  object-fit:contain;
}
.games-admin-list-copy {
  min-width:0;
  display:grid;
  gap:5px;
}
.games-admin-list-copy strong {
  overflow:hidden;
  color:#fff;
  font-size:.82rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.games-admin-list-copy small {
  color:#9892a5;
  font-size:.62rem;
}
.games-admin-workspace {
  display:grid;
  gap:18px;
  min-width:0;
}
.games-admin-editor,
.games-admin-editor-card > .admin-form-actions {
  margin:18px;
}
.games-admin-editor-card > .admin-form-actions {
  padding-top:2px;
}
.games-admin-editor input:not([type="checkbox"]),
.games-admin-editor textarea,
.games-admin-editor select {
  box-sizing:border-box;
  width:100%;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  outline:none;
  padding:13px 14px;
  color:#fff;
  background:linear-gradient(145deg,rgba(13,9,27,.98),rgba(3,6,16,.96));
  font:inherit;
  line-height:1.5;
  transition:border-color .2s,box-shadow .2s;
}
.games-admin-editor textarea {
  resize:vertical;
}
.games-admin-editor input:focus,
.games-admin-editor textarea:focus,
.games-admin-editor select:focus {
  border-color:var(--cyan);
  box-shadow:0 0 0 3px rgba(56,217,255,.08);
}
.games-admin-editor input:disabled,
.games-admin-editor textarea:disabled,
.games-admin-editor select:disabled {
  opacity:.62;
}
.games-admin-cover {
  display:grid;
  grid-template-columns:minmax(210px,.8fr) minmax(210px,1.2fr);
  gap:16px;
  align-items:center;
  padding:16px;
  border:1px solid rgba(56,217,255,.18);
  border-radius:12px;
  background:rgba(3,5,16,.5);
}
.games-admin-cover-preview {
  aspect-ratio:16/7;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px dashed rgba(239,54,255,.48);
  border-radius:11px;
  color:#9f74b0;
  background:radial-gradient(circle,rgba(120,31,151,.22),rgba(2,4,13,.92));
  font-family:Impact,sans-serif;
  letter-spacing:.1em;
}
.games-admin-cover-preview img {
  width:100%;
  height:100%;
  object-fit:contain;
}
.games-admin-cover > div:last-child {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.button.secondary {
  border-color:rgba(255,255,255,.2);
  background:rgba(255,255,255,.035);
}
.games-admin-comments {
  display:grid;
  gap:10px;
  max-height:520px;
  padding:14px 18px 18px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#b24be0 rgba(255,255,255,.04);
}
.games-admin-comment {
  display:grid;
  gap:10px;
  padding:15px 16px;
  border:1px solid rgba(198,90,229,.26);
  border-radius:13px;
  background:linear-gradient(145deg,rgba(20,12,34,.82),rgba(5,8,20,.92));
}
.games-admin-comment header {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}
.games-admin-comment header > div {
  min-width:0;
  display:grid;
  gap:3px;
}
.games-admin-comment strong {
  color:#f3eaf6;
  font-size:.82rem;
}
.games-admin-comment time {
  color:#898295;
  font-size:.66rem;
}
.games-admin-comment p {
  margin:0;
  color:#c9c4d4;
  line-height:1.55;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.games-admin-comment-delete {
  flex:0 0 auto;
  border:1px solid rgba(255,81,128,.45);
  border-radius:8px;
  padding:8px 11px;
  color:#ffb2c7;
  background:rgba(120,17,48,.18);
  font:inherit;
  font-size:.62rem;
  font-weight:900;
  cursor:pointer;
}
.games-admin-comment-delete:hover {
  border-color:#ff5180;
  background:rgba(154,21,60,.34);
}
.admin-count-badge {
  min-width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border:1px solid rgba(224,107,255,.48);
  border-radius:999px;
  color:#fff;
  background:rgba(142,35,180,.24);
  font-size:.72rem;
  font-weight:900;
}
.games-admin-empty {
  margin:0;
  padding:20px;
  color:#9892a5;
  line-height:1.55;
  text-align:center;
}

@media(max-width:1080px) {
  .games-admin-layout { grid-template-columns:1fr; }
  .games-admin-catalog { position:static; }
  .games-admin-list {
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-height:360px;
  }
}
@media(max-width:980px) {
  .games-reader { grid-template-columns:1fr; }
  .games-reader-sidebar {
    position:static;
    grid-template-columns:repeat(2,minmax(0,1fr));
    max-height:none;
    overflow:visible;
  }
}
@media(max-width:760px) {
  .game-page-main { width:min(100% - 24px,1600px); }
  .games-reader-sidebar { grid-template-columns:1fr; }
  .games-admin-list { grid-template-columns:1fr; }
  .games-admin-cover { grid-template-columns:1fr; }
  .games-admin-editor { grid-template-columns:1fr; }
  .games-admin-editor .field-wide { grid-column:auto; }
  .games-admin-comment header { align-items:flex-start; }
}


/* Fit the launch title inside collection cards with the navigation sidebar present. */
.game-card .game-showcase-launch strong {
  font-size:clamp(2.7rem,5vw,5rem);
}

/* Article deletion approval workflow */
.work-deletion-admin-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border-color: rgba(255, 191, 39, .3);
}

.work-deletion-admin-summary span {
  color: #b7b1c2;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.work-deletion-admin-summary strong {
  color: var(--gold);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
}

.work-deletion-admin-list { gap: 15px; }

.work-deletion-admin-card {
  display: grid;
  gap: 12px;
  border-color: rgba(255, 191, 39, .25);
}

.work-deletion-admin-card--approved { border-color: rgba(56, 217, 255, .24); }
.work-deletion-admin-card--rejected { border-color: rgba(239, 54, 255, .25); }

.work-deletion-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.work-deletion-admin-card-head h3 {
  margin: 9px 0 0;
  color: #fff;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
}

.work-deletion-admin-card-head time {
  color: #858d9e;
  font-size: .67rem;
  white-space: nowrap;
}

.work-deletion-admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 191, 39, .42);
  border-radius: 999px;
  color: #ffd56a;
  background: rgba(255, 191, 39, .08);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.work-deletion-admin-status--approved {
  border-color: rgba(56, 217, 255, .42);
  color: var(--cyan);
  background: rgba(56, 217, 255, .07);
}

.work-deletion-admin-status--rejected {
  border-color: rgba(239, 54, 255, .42);
  color: #f292ff;
  background: rgba(239, 54, 255, .08);
}

.work-deletion-admin-details {
  margin: 0;
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 800;
}

.work-deletion-admin-excerpt {
  max-width: 900px;
  margin: 0;
  color: #b9b5c1;
  font-size: .78rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.work-deletion-admin-open {
  justify-self: start;
  color: var(--cyan);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

.work-deletion-admin-message {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.work-deletion-admin-message > span {
  color: #bbb5c4;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.work-deletion-admin-message textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
}

.work-deletion-admin-actions { margin-top: 0; }

.work-deletion-admin-decision {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgba(56, 217, 255, .2);
  border-radius: 10px;
  background: rgba(56, 217, 255, .045);
}

.work-deletion-admin-decision--rejected {
  border-color: rgba(239, 54, 255, .22);
  background: rgba(239, 54, 255, .045);
}

.work-deletion-admin-decision strong { color: #fff; font-size: .72rem; }
.work-deletion-admin-decision p { margin: 0; color: #c4bfca; line-height: 1.55; }
.work-deletion-admin-decision small { color: #858d9e; }
.work-deletion-admin-empty { padding: 28px; text-align: center; }

@media (max-width: 620px) {
  .work-deletion-admin-summary,
  .work-deletion-admin-card-head { align-items: flex-start; flex-direction: column; }
  .work-deletion-admin-card-head time { white-space: normal; }
  .work-deletion-admin-actions { align-items: stretch; flex-direction: column; }
  .work-deletion-admin-actions .button { width: 100%; }
}


/* Сворачиваемые ленты главной страницы */
.section-feed-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32em;
  max-width: 100%;
  margin: 0;
  padding: 3px 7px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: center;
  text-transform: inherit;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, text-shadow .2s ease;
}

.section-feed-toggle:hover {
  color: #fff;
  background: rgba(221, 118, 255, .08);
  text-shadow: 0 0 18px rgba(221, 118, 255, .34);
}

.section-feed-toggle:focus-visible {
  outline: 2px solid #dd76ff;
  outline-offset: 4px;
}

.section-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: .9em;
  height: .9em;
  flex: 0 0 auto;
  color: #dd76ff;
  font-family: Arial, sans-serif;
  font-size: .56em;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .28s ease, color .2s ease;
}

.section-feed-toggle[aria-expanded="true"] .section-toggle-icon {
  transform: rotate(180deg);
}

.section-feed-content {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition: grid-template-rows .32s ease, opacity .22s ease, visibility 0s;
}

.section-feed-inner {
  min-height: 0;
  overflow: hidden;
}

.section-feed-content.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: grid-template-rows .32s ease, opacity .2s ease, visibility 0s linear .32s;
}

@media (prefers-reduced-motion: reduce) {
  .section-feed-content,
  .section-toggle-icon {
    transition: none;
  }
}

/* Отдельный каталог персонажей */
.characters-catalog-page,
.character-detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(132, 28, 213, .18), transparent 26%),
    radial-gradient(circle at 88% 34%, rgba(43, 104, 255, .12), transparent 27%),
    #030510;
}

.characters-catalog-main,
.character-detail-main {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 96px;
}

.characters-catalog-hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto 38px;
  text-align: center;
}

.characters-catalog-hero::before {
  content: "";
  position: absolute;
  inset: -45px 6% auto;
  height: 180px;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(173, 42, 247, .22), transparent 68%);
  filter: blur(16px);
}

.characters-catalog-hero h1 {
  margin: 9px 0 14px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.6rem, 7vw, 6.7rem);
  font-style: italic;
  font-weight: 400;
  line-height: .94;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(160, 64, 255, .42);
}

.characters-catalog-hero > p:not(.eyebrow) {
  max-width: 740px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(.98rem, 1.6vw, 1.14rem);
  line-height: 1.65;
}

.characters-search {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 30px auto 0;
  text-align: left;
}

.characters-search span {
  color: #d980ef;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.characters-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(212, 83, 244, .44);
  border-radius: 15px;
  outline: none;
  color: #fff;
  background: rgba(8, 9, 25, .82);
  box-shadow: inset 0 0 30px rgba(133, 42, 192, .08), 0 0 26px rgba(111, 28, 178, .08);
}

.characters-search input:focus {
  border-color: #e16dff;
  box-shadow: 0 0 0 3px rgba(225, 109, 255, .12), 0 0 28px rgba(184, 60, 228, .14);
}

.characters-catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 720px;
  margin: 16px auto 0;
  color: #928da0;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.characters-featured {
  margin-bottom: 28px;
}

.character-featured-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(215, 76, 246, .58);
  border-radius: 28px;
  background:
    radial-gradient(circle at 73% 35%, rgba(136, 43, 205, .24), transparent 42%),
    linear-gradient(135deg, rgba(13, 14, 36, .98), rgba(5, 7, 20, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45), 0 0 54px rgba(176, 48, 226, .12);
}

.character-featured-card::before {
  content: "НОВЕЙШИЙ";
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid rgba(255, 192, 40, .66);
  border-radius: 999px;
  color: #ffd360;
  background: rgba(13, 10, 24, .8);
  box-shadow: 0 0 20px rgba(255, 191, 40, .2);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.character-featured-portrait {
  min-height: 500px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(137, 46, 215, .23), transparent 62%);
}

.character-featured-portrait .character-catalog-media {
  height: 100%;
}

.character-featured-copy {
  align-self: center;
  padding: clamp(32px, 6vw, 76px);
}

.character-featured-copy h2 {
  margin: 10px 0 12px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(3.1rem, 7vw, 7rem);
  font-style: italic;
  font-weight: 400;
  line-height: .9;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.character-featured-lead {
  max-width: 650px;
  margin: 23px 0 0;
  color: #c9c5d4;
  font-size: 1rem;
  line-height: 1.65;
}

.character-catalog-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(139, 52, 211, .26), transparent 48%),
    linear-gradient(150deg, #0b0d25, #030510);
}

.character-catalog-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

.character-featured-portrait:hover img,
.character-catalog-portrait:hover img {
  transform: scale(1.025);
}

.character-catalog-placeholder,
.character-detail-portrait > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #ebc9ff;
  font-family: Impact, sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  text-shadow: 0 0 38px var(--pink);
}

.character-catalog-owner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  color: #b8b1c3;
  font-size: .72rem;
}

.character-catalog-owner b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(58, 215, 255, .54);
  border-radius: 999px;
  color: #7ceaff;
  background: rgba(26, 149, 187, .1);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.character-catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.character-catalog-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  max-width: 100%;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(217, 87, 248, .35);
  border-radius: 999px;
  color: #e5ddec;
  background: rgba(176, 43, 213, .08);
  font-size: .63rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-catalog-link {
  display: inline-flex;
  margin-top: 28px;
  border-color: rgba(232, 90, 255, .72);
  background: linear-gradient(90deg, rgba(116, 25, 158, .52), rgba(185, 38, 211, .42));
}

.character-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.character-card-actions .character-card-more,
.character-featured-actions .character-catalog-link {
  margin-top: 0;
  padding-top: 0;
}

.character-direct-message {
  min-height: 42px;
  border-color: rgba(56, 217, 255, .7);
  background: linear-gradient(90deg, rgba(24, 117, 161, .56), rgba(159, 29, 184, .58));
}

.character-featured-actions {
  margin-top: 28px;
  padding-top: 0;
}

.characters-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.character-catalog-card {
  display: grid;
  grid-template-rows: 330px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 73, 229, .38);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(12, 13, 32, .98), rgba(4, 6, 18, .98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.character-catalog-card:hover {
  border-color: rgba(226, 106, 255, .72);
  box-shadow: 0 22px 54px rgba(79, 15, 125, .3);
  transform: translateY(-5px);
}

.character-catalog-portrait {
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(194, 72, 235, .24);
}

.character-catalog-card-copy {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 24px;
}

.character-catalog-card-copy h2 {
  margin: 16px 0 8px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: .98;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.character-catalog-card-copy h2 a:focus-visible,
.character-catalog-portrait:focus-visible,
.character-featured-portrait:focus-visible {
  outline: 2px solid #e06dff;
  outline-offset: -4px;
}

.character-catalog-meta {
  min-height: 1.2em;
  margin: 0;
  color: #9892a4;
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.character-catalog-card-copy .character-catalog-tags {
  margin-top: 18px;
}

.character-card-more {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 24px;
  color: #e572ff;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.characters-catalog-status {
  margin: 30px 0;
  padding: 26px;
  border: 1px solid rgba(210, 83, 242, .3);
  border-radius: 16px;
  color: #bdb6c8;
  background: rgba(9, 10, 27, .68);
  text-align: center;
}

/* Персональная страница персонажа */
.character-detail-main {
  max-width: 1280px;
}

.character-detail-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: #df73fa;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.character-detail-view {
  display: grid;
  grid-template-columns: minmax(330px, .85fr) minmax(0, 1.15fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 79, 244, .48);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 16%, rgba(127, 38, 196, .23), transparent 37%),
    rgba(6, 8, 24, .95);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52);
}

.character-detail-portrait {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(138, 45, 213, .25), transparent 48%),
    #050717;
}

.character-detail-portrait img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.character-detail-copy {
  width: 100%;
  min-width: 0;
  align-self: center;
  padding: clamp(34px, 6vw, 78px);
}

.character-detail-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
  color: #aaa4b5;
  font-size: .75rem;
}

.character-detail-copy h1 {
  max-width: 100%;
  margin: 12px 0 20px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-style: italic;
  font-weight: 400;
  line-height: .94;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-transform: uppercase;
}

.character-detail-summary {
  width: 100%;
  max-width: 660px;
  margin: 0;
  color: #ccc7d4;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.character-detail-copy > .character-direct-message {
  margin-top: 28px;
}

.character-detail-copy .character-catalog-tags span {
  min-width: 0;
  min-height: 31px;
  height: auto;
  padding-block: 7px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.character-detail-dossier {
  grid-column: 1 / -1;
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  border-top: 1px solid rgba(206, 76, 238, .28);
}

.character-detail-dossier h2 {
  max-width: 100%;
  margin: 8px 0 28px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-transform: uppercase;
}

.character-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.character-detail-facts > div {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid rgba(187, 75, 225, .23);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
}

.character-detail-facts dt {
  margin-bottom: 7px;
  color: #a66bb7;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.character-detail-facts dd {
  margin: 0;
  color: #eee9f1;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.character-detail-pagination {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(30px, 5vw, 58px) clamp(30px, 5vw, 58px);
}

.character-detail-pagination a {
  padding: 16px 18px;
  border: 1px solid rgba(210, 84, 242, .3);
  border-radius: 12px;
  color: #dc77f5;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.character-detail-pagination a:last-child {
  text-align: right;
}

@media(max-width: 980px) {
  .character-featured-card,
  .character-detail-view {
    grid-template-columns: 1fr;
  }
  .character-featured-portrait { min-height: 460px; }
  .character-detail-portrait { min-height: 0; }
  .characters-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media(max-width: 840px) {
  .catalog-site-header { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .catalog-site-header .brand { min-width: 0; }
  .catalog-site-header .chat-launch { min-width: 72px; padding: 0 12px; }
}

@media(max-width: 660px) {
  html {
    overflow-x: hidden;
  }

  body.characters-catalog-page,
  body.character-detail-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .characters-catalog-main,
  .character-detail-main {
    width: min(1360px, calc(100% - 28px));
    min-width: 0;
    padding-top: 106px;
  }
  .characters-catalog-hero {
    min-width: 0;
    margin-bottom: 26px;
  }
  .characters-catalog-hero h1 {
    max-width: 100%;
    /* Keeps the longest word inside 320–390 px Android viewports, even with a wide sans-serif fallback. */
    font-size: clamp(1.6rem, 7.6vw, 2.85rem);
    line-height: 1;
    letter-spacing: 0;
  }
  .characters-catalog-meta { font-size: .56rem; }
  .character-featured-card { min-height: 0; border-radius: 20px; }
  .character-featured-portrait { min-height: 390px; }
  .character-featured-copy { padding: 28px 24px 32px; }
  .character-featured-copy h2 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .character-featured-lead { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
  .characters-catalog-grid { grid-template-columns: 1fr; gap: 18px; }
  .character-catalog-card { grid-template-rows: 330px 1fr; }
  .character-catalog-card-copy { min-height: 280px; }
  .character-detail-view { width: 100%; min-width: 0; border-radius: 20px; }
  .character-detail-portrait { min-height: 0; aspect-ratio: 1 / 1; }
  .character-detail-copy { padding: 30px 23px 38px; }
  .character-detail-byline > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .character-detail-copy h1 { font-size: clamp(2.65rem, 13vw, 4.5rem); line-height: .98; }
  .character-detail-summary { font-size: .96rem; line-height: 1.62; }
  .character-detail-dossier { padding: 28px 22px; }
  .character-detail-dossier h2 { font-size: clamp(1.8rem, 8.5vw, 2.7rem); }
  .character-detail-facts { grid-template-columns: 1fr; }
  .character-detail-pagination { grid-template-columns: 1fr; padding: 0 22px 28px; }
  .character-detail-pagination a:last-child { text-align: left; }
}

/* Мобильная компоновка главной: интерфейс приложения без обрезанной сцены. */
@media(max-width: 660px) {
  .home-page {
    background: #030510;
  }

  .home-page .header {
    height: calc(64px + env(safe-area-inset-top));
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 64px;
    gap: 8px;
    padding: env(safe-area-inset-top) 12px 0;
    background: rgba(3, 5, 16, .94);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    /* A filter on the header traps fixed descendants inside its 64px box. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .home-page .header.scrolled {
    height: calc(64px + env(safe-area-inset-top));
  }

  .home-page .header.scrolled::before {
    display: none;
  }

  .home-page .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    gap: 7px;
    font-size: 1.22rem;
  }

  .home-page .brand-logo {
    width: 34px;
    height: 28px;
  }

  .home-page .chat-launch {
    position: relative;
    z-index: 110;
    grid-column: 2;
    grid-row: 1;
    min-width: 68px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    letter-spacing: .1em;
  }

  .home-page .menu-button {
    grid-column: 3;
    grid-row: 1;
    width: 40px;
    height: 40px;
  }

  .home-page .nav {
    inset: calc(64px + env(safe-area-inset-top)) 0 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 24px 20px max(28px, env(safe-area-inset-bottom));
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .home-page .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid rgba(176, 78, 255, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
    font-size: .88rem;
  }

  .home-page .nav a::after {
    display: none;
  }

  .home-page .hero {
    height: auto;
    min-height: 0;
    padding-top: calc(64px + env(safe-area-inset-top));
    overflow: hidden;
    background: #030510;
  }

  .home-page .hero-mobile-poster {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .home-page .hero::after {
    background: linear-gradient(to bottom, rgba(1, 3, 12, .12), rgba(1, 3, 12, .03) 45%, rgba(1, 3, 12, .82) 78%, #030510 100%);
  }

  .home-page .hero-top {
    top: calc(82px + env(safe-area-inset-top));
    width: calc(100% - 28px);
  }

  .home-page .hero-top .eyebrow {
    margin-bottom: 10px;
    font-size: .72rem;
    letter-spacing: .14em;
  }

  .home-page .subtitle {
    font-size: .72rem;
    line-height: 1.45;
    letter-spacing: .13em;
  }

  .home-page .hero-bottom {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: -1px auto 0;
    padding: 26px 16px 34px;
    transform: none;
    background: linear-gradient(to bottom, rgba(3, 5, 16, .78), #030510 40%);
  }

  .home-page .lead {
    max-width: 34rem;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-page .actions .button {
    width: 100%;
    min-height: 54px;
    border-radius: 14px;
    clip-path: none;
  }

  .home-page .exotic-planet {
    top: calc(64px + 20vw);
    right: 7%;
    width: clamp(48px, 13vw, 54px);
  }

  .home-page .exotic-planet__requirement {
    display: none;
  }

  .home-page .spaceship {
    top: calc(64px + 24vw);
    width: 104px;
    opacity: 1;
  }

  .home-page .container,
  .home-page .footer {
    width: calc(100% - 24px);
  }

  .home-page .section {
    padding: 34px 0 0;
    scroll-margin-top: calc(76px + env(safe-area-inset-top));
  }

  .home-page .section-head,
  .home-page .projects-section-head {
    display: block;
  }

  .home-page .section-head::after,
  .home-page .section-head > span,
  .home-page .projects-section-head::after,
  .home-page .projects-section-head > span {
    display: none;
  }

  .home-page .section-head h2,
  .home-page .projects-section-head h2 {
    text-align: left;
  }

  .home-page .section-feed-toggle {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding: 8px 2px;
    text-align: left;
  }

  .home-page .section-intro,
  .home-page .projects-section-intro,
  .home-page #partners .section-intro {
    margin: 0 0 16px;
    text-align: left;
    font-size: .94rem;
    line-height: 1.5;
  }

  .home-page .rail {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 88%;
    gap: 14px;
    padding: 4px 2px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
  }

  .home-page .rail .card {
    width: 100%;
    border-radius: 18px;
    scroll-snap-align: start;
  }

  .home-page .rail .card:hover {
    transform: none;
  }

  .home-page .project-card-open img,
  .home-page .character-media img {
    object-fit: contain;
    background: #050814;
  }

  .home-page .studio {
    margin-top: 34px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .home-page .home-about {
    width: 100%;
    margin: 34px auto 46px;
    padding: 28px 18px 0;
    border-radius: 18px;
  }

  .home-page .home-about::after {
    inset: 7px;
    border-radius: 13px;
  }

  .home-page .home-about__kicker {
    margin-bottom: 12px;
    font-size: .58rem;
    letter-spacing: .23em;
  }

  .home-page .home-about h2 {
    font-size: clamp(3.9rem, 20vw, 5.4rem);
  }

  .home-page .home-about h3 {
    max-width: 17ch;
    margin-top: 20px;
    font-size: clamp(1.25rem, 7vw, 1.72rem);
  }

  .home-page .home-about__description {
    max-width: 32rem;
    font-size: .85rem;
  }

  .home-page .home-about__tags {
    justify-content: center;
    gap: 7px 9px;
    font-size: .54rem;
    letter-spacing: .11em;
  }

  .home-page .home-about__button {
    width: min(300px, 100%);
    min-height: 48px;
    margin-top: 20px;
  }

  .home-page .home-about__visual {
    min-height: clamp(220px, 70vw, 300px);
  }

  .home-page .home-about__visual img {
    width: max(520px, 150%);
    bottom: -8%;
  }

  .home-page .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-page .footer-grid > div:first-child,
  .home-page .footer-grid > div:nth-child(4) {
    grid-column: auto;
  }

  .home-page .news-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .home-page .community-chat--floating {
    inset: calc(72px + env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    border-radius: 18px;
  }
}

/* Компактный первый экран главной на телефонах: три проекта видны одновременно. */
@media(max-width: 660px) {
  .home-page .hero-bottom {
    padding: 14px 12px 18px;
  }

  .home-page .lead {
    max-width: 30rem;
    margin-bottom: 10px;
    font-size: clamp(.74rem, 3.25vw, .86rem);
    line-height: 1.38;
  }

  .home-page .actions .button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: .8rem;
  }

  .home-page #projects {
    padding-top: 16px;
  }

  .home-page #projects .section-head h2 {
    font-size: clamp(1.2rem, 5.7vw, 1.55rem);
  }

  .home-page #projects .section-feed-toggle {
    min-height: 38px;
    padding-block: 2px;
  }

  .home-page #projects .projects-section-intro {
    margin-bottom: 8px;
    font-size: .68rem;
    line-height: 1.35;
  }

  .home-page #projects .project-rail {
    grid-auto-columns: calc((100% - 16px) / 3);
    gap: 8px;
    padding: 2px 1px 8px;
  }

  .home-page #projects .project-rail .card {
    min-width: 0;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
  }

  .home-page #projects .project-card-open img {
    aspect-ratio: 1.02 / 1;
    object-fit: cover;
  }

  .home-page #projects .project-card-open .card-body {
    position: relative;
    min-height: 62px;
    padding: 7px 6px 8px;
  }

  .home-page #projects .project-rail .card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 4px;
    font-size: clamp(.58rem, 2.5vw, .72rem);
    line-height: 1.08;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-page #projects .project-rail .card .type {
    max-width: calc(100% - 25px);
    overflow: hidden;
    margin: 0;
    font-size: clamp(.44rem, 1.9vw, .54rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-page #projects .project-card-open .card-body > p:not(.type) {
    display: none;
  }

  .home-page #projects .project-card-reactions {
    position: absolute;
    right: 32px;
    bottom: 9px;
    left: 6px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 1px;
    margin: 0;
  }

  .home-page #projects .project-card-reactions span {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #d7dbea;
    background: transparent;
    font-size: clamp(.35rem, 1.45vw, .43rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -.04em;
    word-spacing: -.2em;
    white-space: nowrap;
  }

  .home-page #projects .number {
    top: 6px;
    left: 6px;
    padding: 2px 5px;
    font-size: .55rem;
  }

  .home-page #projects .project-card-action {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .home-page #projects .project-card-action::after {
    content: "→";
    font-size: .68rem;
    line-height: 1;
  }

  .home-page #projects .characters-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Единый размер мобильных лент главной страницы. */
@media(max-width: 660px) {
  .home-page .section .rail {
    grid-auto-columns: calc((100% - 16px) / 3);
    gap: 8px;
    padding: 2px 1px 8px;
  }

  .home-page .section .rail .card {
    width: 100%;
    min-width: 0;
    height: clamp(150px, 45vw, 178px);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
  }

  .home-page :is(#projects, #partners, #communityWorks) .project-card-open {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 62px;
  }

  .home-page :is(#projects, #partners, #communityWorks) .project-card-open img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .home-page :is(#projects, #partners, #communityWorks) .project-card-open .card-body {
    position: relative;
    min-height: 0;
    padding: 7px 6px 8px;
    overflow: hidden;
  }

  .home-page :is(#projects, #partners, #communityWorks) .project-rail .card h3,
  .home-page #worlds .world-rail .card h3,
  .home-page #characters .character-rail .card h3,
  .home-page #news .news-rail .card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: clamp(.58rem, 2.5vw, .72rem);
    line-height: 1.08;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-page :is(#projects, #partners, #communityWorks) .project-rail .card .type,
  .home-page #characters .character-rail .card .type {
    max-width: calc(100% - 25px);
    overflow: hidden;
    margin: 0;
    font-size: clamp(.44rem, 1.9vw, .54rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-page :is(#projects, #partners, #communityWorks) .project-card-open .card-body > p:not(.type) {
    display: none;
  }

  .home-page :is(#projects, #partners, #communityWorks) .number {
    top: 6px;
    left: 6px;
    padding: 2px 5px;
    font-size: .55rem;
  }

  .home-page :is(#projects, #partners, #communityWorks) .project-card-action {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .home-page :is(#projects, #partners, #communityWorks) .project-card-action::after {
    content: "→";
    font-size: .68rem;
    line-height: 1;
  }

  .home-page #partners .project-card-reactions {
    position: absolute;
    right: 32px;
    bottom: 9px;
    left: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    margin: 0;
  }

  .home-page #partners .project-card-reactions span {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #d7dbea;
    background: transparent;
    font-size: clamp(.38rem, 1.55vw, .46rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -.03em;
    word-spacing: -.15em;
    white-space: nowrap;
  }

  .home-page #worlds .managed-universe,
  .home-page #characters .community-character {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 62px;
  }

  .home-page #worlds .managed-universe > img,
  .home-page #characters .character-media {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .home-page #worlds .managed-universe > img {
    object-fit: cover;
    background: #050814;
  }

  .home-page #worlds .managed-universe .card-body,
  .home-page #characters .community-character .card-body {
    min-height: 0;
    padding: 7px 6px 8px;
    overflow: hidden;
  }

  .home-page #worlds .managed-universe .card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: clamp(.42rem, 1.8vw, .52rem);
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-page #worlds .managed-universe.has-content-links .card-body p {
    -webkit-line-clamp: 1;
  }

  .home-page #worlds .managed-universe .managed-content-links {
    flex-wrap: nowrap;
    gap: 3px;
    max-width: 100%;
    margin-top: 3px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .home-page #worlds .managed-universe .managed-content-links::-webkit-scrollbar { display: none; }

  .home-page #worlds .managed-universe .managed-content-link {
    flex: 0 0 21px;
    width: 21px;
    min-height: 21px;
    height: 21px;
    padding: 0;
    border-radius: 7px;
  }

  .home-page #worlds .managed-universe .managed-content-link-label { display: none; }
  .home-page #worlds .managed-universe .managed-content-link-icon { min-width: 100%; height: 100%; font-size: .5rem; }

  .home-page #characters .community-character .card-body {
    position: static;
  }

  .home-page #characters .character-media img,
  .home-page #characters .character-media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
    background: #050814;
  }

  .home-page #characters .character-owner {
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    padding: 2px 4px;
    font-size: .42rem;
  }

  .home-page #characters .community-character-badge,
  .home-page #characters .powers {
    display: none;
  }

  .home-page #characters .character-details {
    position: absolute;
    z-index: 2;
    right: 6px;
    bottom: 6px;
    margin: 0;
  }

  .home-page #characters .character-details summary {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .home-page #characters .character-details summary::after {
    content: "→";
    font-size: .68rem;
    line-height: 1;
  }

  .home-page #characters .character-details[open] {
    inset: 6px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(176, 78, 255, .55);
    border-radius: 8px;
    background: rgba(3, 5, 16, .98);
  }

  .home-page #characters .character-details[open] summary {
    position: sticky;
    top: 0;
    margin: 0 0 7px auto;
    color: var(--cyan);
    background: #080b1c;
  }

  .home-page #characters .character-details[open] summary::after {
    content: "×";
  }

  .home-page #characters .character-details dl {
    max-height: none;
    gap: 4px;
    padding: 0 2px 4px;
  }

  .home-page #characters .character-details dl > div {
    padding-bottom: 4px;
  }

  .home-page #characters .character-details dt {
    font-size: .43rem;
  }

  .home-page #characters .character-details dd {
    margin-top: 2px;
    font-size: .5rem;
    line-height: 1.25;
  }

  .home-page #news .news-card-open {
    height: 100%;
  }

  .home-page #news .news-card-open img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .home-page #news .news-card-overlay {
    padding: 7px 6px 8px;
  }

  .home-page #news .news-card-overlay em {
    max-width: calc(100% - 25px);
    overflow: hidden;
    margin: 0 0 4px;
    padding: 2px 4px;
    font-size: .42rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-page #news .news-card-overlay h3 {
    max-width: calc(100% - 25px);
  }

  .home-page #news .news-card-overlay small {
    max-width: calc(100% - 25px);
    overflow: hidden;
    font-size: .42rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-page #news .news-card-action {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0;
  }

  .home-page #news .news-card-action::after {
    content: "→";
    font-size: .68rem;
    line-height: 1;
  }

  .home-page #news .site-update-card {
    aspect-ratio: auto;
    padding: 8px 7px 7px;
  }

  .home-page #news .site-update-card em {
    max-width: 100%;
    overflow: hidden;
    margin: 0 0 5px;
    padding: 2px 4px;
    font-size: .38rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-page #news .site-update-card h3 {
    max-width: 100%;
    margin-bottom: 4px;
    font-size: clamp(.58rem, 2.5vw, .72rem);
    line-height: 1.08;
  }

  .home-page #news .site-update-card-description {
    font-size: clamp(.41rem, 1.75vw, .49rem);
    line-height: 1.24;
    -webkit-line-clamp: 5;
  }

  .home-page #news .site-update-card-footer {
    gap: 4px;
    padding-top: 4px;
    font-size: .36rem;
    line-height: 1.1;
  }
}
