/* Last Chaos Rift — parchment theme. Values come from the approved mockup (Design canvas "Сайт Last Chaos Rift"). */

:root {
  --ink: #2B1D12;
  --ink-2: #3B2A1C;
  --ink-3: #3A291B;
  --muted: #6B5440;
  --muted-2: #5C4A36;
  --label: #4A2E1C;
  --oxblood: #7E2A1C;
  --oxblood-hover: #9A3A22;
  --menu: #5A2416;
  --walnut: #4A2E1C;
  --gold: #C9A24A;
  --gold-line: #B08A3E;
  --gold-dk: #7E5B17;
  --gold-lt: #E9CF8A;
  --cream: #F2E8D3;
  --cream-lt: #F6E7C1;
  --card: #FBF6EA;
  --inset: #F6EEDC;
  --field: #FFFDF7;
  --field-line: #8C6B45;
  --chip-line: #C2A878;
  --haze: #C6B9D6;
  --ok: #2F6B34;
  --ok-2: #2E6B30;
  --ok-dot: #3F8F46;
  --bad: #8E2E1C;
  --sc: 'Alegreya SC', Georgia, serif;
  --sans: 'Alegreya Sans', 'Segoe UI', sans-serif;
  --pad-x: clamp(24px, 5.5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--haze); }
a { color: var(--oxblood); }
a:hover { color: var(--walnut); }
:focus-visible { outline: 2px solid var(--oxblood) !important; outline-offset: 3px !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll-x { overflow-x: auto; }

/* ---------------------------------------------------------------- page frame */

/* The art: hero with the bar and the column on top, mirrored clouds below it, then a tiling haze. */
.lc-page {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--haze);
  /* The art is 2000 px wide and its edges fade out; on wider screens the two side strips continue
     it with the colours its edges have at each height (stretched over the left and right half). */
  background-image: url(/img/rift-bg.webp), url(/img/rift-ext-trans.webp), url(/img/rift-ext-tile.webp),
    url(/img/rift-side-left.png), url(/img/rift-side-right.png);
  background-repeat: no-repeat, no-repeat, repeat-y, no-repeat, no-repeat;
  background-position: center top, center 1781px, center 2221px, left top, right top;
  background-size: auto, auto, auto, 50% 2221px, 50% 2221px;
  overflow-x: hidden;
}

.lc-hero { position: relative; height: 560px; }

/* The logo was cut out of the art; it sits 56px higher than in the original picture. */
.lc-logo {
  position: absolute; z-index: 1; left: calc(50% - 570px); top: 135px; width: 500px; height: 232px; margin: 0;
  display: block;
  background: url(/img/rift-logo.webp) no-repeat; background-size: 100% 100%;
}
.lc-logo a { display: block; width: 100%; height: 100%; }
.lc-logo:focus-visible, .lc-logo a:focus-visible { outline: 2px solid #FFFFFF !important; outline-offset: 4px; border-radius: 12px; }

.lc-ctas {
  position: absolute; z-index: 1; left: calc(50% - 328px); top: 364px; transform: translateX(-50%);
  display: flex; flex-wrap: nowrap; align-items: center; gap: 10px;
}

/* The menu sits on the cream bar of the art (image x 316..1684, y 448..544). */
.lc-nav {
  position: absolute; z-index: 1; left: 50%; top: 448px; transform: translateX(-50%);
  width: min(1368px, 100%); height: 96px; display: flex; align-items: center;
}
.lc-nav ul {
  list-style: none; margin: 0; width: 100%; padding: 0 clamp(16px, 3.4vw, 50px);
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 0 12px;
}
.lc-nav li, .lc-footer li { display: flex; align-items: center; gap: 10px; }
.lc-nav li + li::before, .lc-footer li + li::before {
  content: ""; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg);
}
.lc-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  color: var(--menu); text-decoration: none; white-space: nowrap;
  font-family: var(--sc); font-weight: 800; font-size: clamp(15px, 1.75vw, 25px); letter-spacing: .04em; text-transform: uppercase;
}
.lc-nav a:hover { color: var(--oxblood-hover); text-decoration: underline; text-underline-offset: 5px; }
.lc-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 6px; }

/* The lightning-framed column: the art shows its top, a tile repeats it from 120px down. */
.lc-col { position: relative; width: 1296px; max-width: 100%; min-height: 1200px; margin: 0 auto; }
.lc-mid {
  position: absolute; left: 0; right: 0; top: 120px; bottom: 0;
  background: url(/img/rift-col-mid.webp) repeat-y center top;
}
.lc-bottom {
  position: relative; height: 121px; margin-top: -60px;
  background: url(/img/rift-col-bot.webp) no-repeat center top;
}

.lc-main {
  position: relative; padding: 44px var(--pad-x) 28px;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px;
}
.lc-content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lc-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.lc-footer { position: relative; margin: 0 var(--pad-x); padding: 14px 0 76px; border-top: 1px solid rgba(74, 46, 28, .2); }
.lc-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 28px; }
.lc-footer p { margin: 0; font-size: 16px; color: var(--muted-2); }
.lc-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.lc-footer a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  color: var(--walnut); text-decoration: none; font-family: var(--sc); font-weight: 700; font-size: 17px; letter-spacing: .04em;
}
.lc-footer a:hover { color: var(--oxblood-hover); text-decoration: underline; text-underline-offset: 5px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--gold);
  font-family: var(--sc); font-weight: 700; font-size: 18px; letter-spacing: .04em; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-red {
  background-color: var(--oxblood);
  background-image: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 55%, rgba(0,0,0,.14));
  color: #FBF6EA; outline: 1px solid rgba(233,207,138,.5); outline-offset: -5px;
}
.btn-dark {
  background-color: var(--walnut);
  background-image: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.1));
  color: var(--cream); outline: 1px solid rgba(201,162,74,.5); outline-offset: -5px;
}
.btn-red:hover { color: #FBF6EA; }
.btn-dark:hover { color: var(--cream); }
.btn-light {
  min-height: 44px; padding: 0 18px; font-size: 17px;
  background: rgba(176,138,62,.1); color: var(--walnut); border-color: var(--gold-line);
}
.btn-light:hover { color: var(--walnut); }
.btn-hero { min-height: 58px; padding: 0 22px; font-size: 20px; box-shadow: 0 10px 24px -6px rgba(12,18,48,.75); }
.btn-dark.btn-hero { color: var(--cream-lt); }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 19px; box-shadow: 0 8px 16px -10px rgba(74,46,28,.8); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: #E6DAC0; color: var(--muted-2); border-color: #BFA77A; outline: none;
  cursor: not-allowed; filter: none; transform: none; box-shadow: none;
}

/* ---------------------------------------------------------------- cards and headings */

.card {
  position: relative; padding: 30px clamp(20px, 4vw, 32px);
  display: flex; flex-direction: column; gap: 16px;
  background-color: var(--card);
  background-image: url(/img/corner-tl.svg), url(/img/corner-tr.svg), url(/img/corner-bl.svg), url(/img/corner-br.svg);
  background-repeat: no-repeat;
  background-position: left 10px top 10px, right 10px top 10px, left 10px bottom 10px, right 10px bottom 10px;
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px rgba(126,91,23,.38), 0 12px 24px -18px rgba(74,46,28,.6);
}
.card-side { padding: 32px clamp(20px, 4vw, 32px); gap: 18px; }
.card-title { margin: 0; font-family: var(--sc); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: .04em; color: var(--ink); }
.card-side .card-title { font-size: 24px; text-align: center; }

.sec { display: flex; flex-direction: column; gap: 22px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.sec-title { margin: 0; font-family: var(--sc); font-weight: 800; font-size: clamp(28px, 3vw, 34px); line-height: 1.1; letter-spacing: .04em; color: var(--ink); }
.page-title { margin: 0; font-family: var(--sc); font-weight: 800; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.1; letter-spacing: .04em; color: var(--ink); }
.rule { flex: 1 1 60px; height: 2px; border-top: 1px solid var(--gold-line); border-bottom: 1px solid rgba(176,138,62,.5); }
.more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--sc); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-decoration: none;
}
.more:hover, .link-sc:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-sc {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--oxblood); text-decoration: none;
  font-family: var(--sc); font-weight: 700; font-size: 17px; letter-spacing: .04em;
}
.lead { margin: 0; max-width: 62ch; font-size: 18px; color: var(--ink-2); }

.divider { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.divider > span { flex: 1 1 40px; height: 2px; border-top: 1px solid var(--gold-line); border-bottom: 1px solid rgba(176,138,62,.45); }

.intro { display: flex; flex-direction: column; gap: 12px; }
.intro-title { margin: 0; font-family: var(--sc); font-weight: 800; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: .04em; color: var(--ink); text-wrap: balance; }
.intro-text { margin: 0; max-width: 62ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.intro .link-sc { align-self: flex-start; }

/* ---------------------------------------------------------------- news */

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.news-card { min-height: 230px; padding: 26px 26px 24px; gap: 12px; }
.news-card p { margin: 0; color: var(--ink-3); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.news-date { font-size: 15px; font-weight: 500; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.news-title { margin: 0; font-family: var(--sc); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: .02em; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 14px;
  background: var(--walnut); color: var(--cream);
  font-family: var(--sc); font-weight: 700; font-size: 14px; letter-spacing: .06em; line-height: 1;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0 50%);
}
.tag-red { background: var(--oxblood); color: #FBF6EA; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px;
  font-family: var(--sc); font-weight: 700; font-size: 18px; font-variant-numeric: lining-nums; text-decoration: none;
  color: var(--walnut); border: 1px solid var(--gold-line);
}
.pager [aria-current="page"] { background: var(--walnut); color: var(--cream-lt); border-color: var(--gold); }
.pager a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The whole card opens the post: the title link stretches over it. */
.news-card { transition: transform .15s, box-shadow .15s; }
.news-title a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px rgba(126,91,23,.38), 0 18px 28px -18px rgba(74,46,28,.75);
}
.news-card:focus-within { outline: 2px solid var(--oxblood); outline-offset: 3px; }

/* ---------------------------------------------------------------- news post */

.post { display: flex; flex-direction: column; gap: 16px; }
.back-link { align-self: flex-start; gap: 8px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.post-title { text-wrap: balance; }
.post-cover {
  margin: 6px 0 4px; padding: 6px; background: var(--card);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 0 0 1px rgba(126,91,23,.25), 0 12px 24px -18px rgba(74,46,28,.6);
}
.post-cover img { display: block; width: 100%; height: auto; }

.prose { font-size: 18px; line-height: 1.65; color: var(--ink-3); max-width: 70ch; }
.prose > * { margin: 0 0 1em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--sc); font-weight: 800; letter-spacing: .03em; color: var(--ink); line-height: 1.2; }
.prose h2 { margin: 1.5em 0 .55em; font-size: 26px; }
.prose h3 { margin: 1.3em 0 .5em; font-size: 21px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--oxblood); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--gold-dk); font-weight: 700; }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: 14px 20px;
  background: var(--inset); border-left: 4px solid var(--gold-line); color: var(--ink-2);
  font-family: var(--sc); font-weight: 700; font-size: 19px; letter-spacing: .02em;
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img {
  display: block; max-width: 100%; height: auto; margin: 0 auto; padding: 6px; background: var(--card);
  border: 1px solid var(--gold-line); box-shadow: 0 12px 24px -18px rgba(74,46,28,.6);
}
.prose hr { border: 0; height: 2px; border-top: 1px solid var(--gold-line); border-bottom: 1px solid rgba(176,138,62,.45); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th {
  text-align: left; padding: 0 12px 8px 0; border-bottom: 3px double var(--gold-line);
  font-family: var(--sc); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--muted);
}
.prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(126,91,23,.22); }
/* Feature cards written in Markdown (:::: features / ::: icon-name), as on «О сервере». */
.prose-wide { max-width: none; }
.prose .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px 32px; }
.prose .features > div {
  position: relative; min-height: 76px; padding: 20px 0 0 74px; border-top: 3px double var(--gold-line);
  font-size: 17px; line-height: 1.55;
}
.prose .features > div::before {
  content: ""; position: absolute; left: 0; top: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--walnut) url(/img/icons/star.svg) no-repeat center / 28px;
  border: 1px solid var(--gold); box-shadow: inset 0 0 0 3px var(--walnut), inset 0 0 0 4px rgba(201,162,74,.5);
}
.prose .features > div.rift::before { background-image: url(/img/icons/rift.svg); }
.prose .features > div.loot::before { background-image: url(/img/icons/loot.svg); }
.prose .features > div.elite::before { background-image: url(/img/icons/elite.svg); }
.prose .features > div.forge::before { background-image: url(/img/icons/forge.svg); }
.prose .features > div.sword::before { background-image: url(/img/icons/sword.svg); }
.prose .features > div.shield::before { background-image: url(/img/icons/shield.svg); }
.prose .features > div.map::before { background-image: url(/img/icons/map.svg); }
.prose .features > div.group::before { background-image: url(/img/icons/group.svg); }
.prose .features > div.scroll::before { background-image: url(/img/icons/scroll.svg); }
.prose .features > div.star::before { background-image: url(/img/icons/star.svg); }
.prose .features > div.coin::before { background-image: url(/img/icons/coin.svg); }
.prose .features > div.clock::before { background-image: url(/img/icons/clock.svg); }
.prose .features > div.download::before { background-image: url(/img/icons/download.svg); }
.prose .features > div > * { margin: 0 0 .5em; }
.prose .features > div > :last-child { margin-bottom: 0; }
.prose .features h3 { margin-top: 0; font-size: 22px; font-weight: 700; letter-spacing: .02em; }

/* Short news text in a card: Markdown, links stay clickable above the card's own link. */
.news-summary { color: var(--ink-3); }
.news-summary > * { margin: 0 0 .5em; }
.news-summary > :last-child { margin-bottom: 0; }
.news-summary ul, .news-summary ol { padding-left: 1.3em; }
.news-summary a { position: relative; z-index: 1; }
.prose code { font-size: .9em; padding: 1px 5px; background: var(--inset); border: 1px solid rgba(126,91,23,.25); }

/* ---------------------------------------------------------------- rating */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  font-family: var(--sc); font-weight: 700; font-size: 18px; letter-spacing: .04em; line-height: 1; text-decoration: none;
  background: transparent; color: var(--walnut); border: 1px solid var(--field-line);
}
.tab[aria-selected="true"], .tab[aria-current="page"] {
  background: var(--walnut); color: var(--cream); border-color: var(--walnut);
  outline: 1px solid rgba(201,162,74,.65); outline-offset: -5px;
}
.tab:hover { color: var(--walnut); filter: brightness(.97); }
.tab[aria-selected="true"]:hover, .tab[aria-current="page"]:hover { color: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 2px;
  font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none;
  background: var(--inset); color: var(--walnut); border: 1px solid var(--chip-line);
}
.chip:hover { filter: brightness(.95); color: var(--walnut); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--gold-dk); color: #FBF6EA; border-color: var(--gold-dk); font-weight: 700; }

.rtable { min-width: 560px; }
.rrow { display: grid; align-items: center; gap: 0 12px; min-height: 52px; padding: 0 8px; border-bottom: 1px solid rgba(126,91,23,.22); }
.rrow-head {
  min-height: 42px; border-bottom: 3px double var(--gold-line);
  font-family: var(--sc); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--muted);
}
.rrow-level { grid-template-columns: 64px minmax(130px, 1.4fr) minmax(120px, 1.2fr) 84px minmax(100px, 1fr); }
.rrow-rift { grid-template-columns: 64px minmax(130px, 1.4fr) minmax(120px, 1.2fr) 84px 110px 84px; }
.rtable { transition: opacity .15s; }
[data-rating][aria-busy="true"] .rtable { opacity: .55; }
.rank {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--sc); font-weight: 800; font-size: 16px; line-height: 1; font-variant-numeric: lining-nums;
  background: transparent; color: var(--walnut); border: 1px solid var(--gold-line);
}
.rank-top { background: var(--walnut); color: var(--gold-lt); border-color: var(--gold); }
.cell-name { font-weight: 700; color: var(--ink); }
.cell-text { color: var(--ink-3); }
.cell-muted { color: var(--muted); }
.cell-num { font-family: var(--sc); font-weight: 700; font-size: 18px; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.cell-tier { font-family: var(--sc); font-weight: 700; font-size: 18px; font-variant-numeric: lining-nums; color: var(--oxblood); }
.cell-time { font-weight: 700; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.empty { margin: 0; padding: 4px 8px; color: var(--muted); }

/* ---------------------------------------------------------------- about */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px 32px; }
.feature { display: flex; align-items: flex-start; gap: 18px; padding-top: 20px; border-top: 3px double var(--gold-line); }
.feature-icon {
  flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--walnut); border: 1px solid var(--gold); box-shadow: inset 0 0 0 3px var(--walnut), inset 0 0 0 4px rgba(201,162,74,.5);
}
.feature-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feature h3 { margin: 0; font-family: var(--sc); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: .02em; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-3); }

/* ---------------------------------------------------------------- forms */

.form { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.form-tight { gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-family: var(--sc); font-weight: 700; font-size: 16px; letter-spacing: .04em; color: var(--label); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  font-family: var(--sans); font-size: 17px; color: var(--ink);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(74,46,28,.12);
}
.input::placeholder { color: #7A6450; }
.input[aria-invalid="true"], .input.input-validation-error { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
textarea.input { min-height: 200px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.input { cursor: pointer; }
.input-code { max-width: 220px; font-size: 22px; letter-spacing: .3em; font-variant-numeric: lining-nums tabular-nums; }
.input-file { font-family: var(--sans); font-size: 16px; color: var(--ink-3); }
.hint { margin: 0; font-size: 15px; color: var(--muted); }
.field-error, .field-validation-error { margin: 0; font-size: 15px; font-weight: 700; color: var(--bad); }
.field-validation-valid { display: none; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 17px; color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--oxblood); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.note { margin: 0; font-size: 15px; color: var(--muted); }

.alert { margin: 0; padding: 12px 16px; border: 1px solid; font-size: 16px; }
.alert-bad { background: #F6E4DC; border-color: #CF9A86; color: var(--bad); font-weight: 700; }
.alert-ok { background: #EAF1E1; border-color: #9DB98A; color: var(--ok); font-weight: 700; }
.alert ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }

.done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.done-title { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--sc); font-weight: 800; font-size: 24px; color: var(--ok); }
.done p { margin: 0; font-size: 17px; color: var(--ink-3); }

.inset { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; background: var(--inset); border: 1px solid rgba(126,91,23,.35); }
.inset h3 { margin: 0; font-family: var(--sc); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: .03em; color: var(--ink); }
.inset p { margin: 0; }
.inset p:not([class]) { color: var(--ink-3); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px 40px; align-items: start; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; align-items: stretch; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ph { font-weight: 700; color: var(--gold-dk); } /* [ЗАГЛУШКА] values still to be decided */

/* ---------------------------------------------------------------- download */

.dl-facts { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.dl-facts strong { color: var(--ink); font-variant-numeric: lining-nums; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.dl-card { align-items: center; text-align: center; gap: 14px; padding-top: 34px; padding-bottom: 30px; }
.dl-card .card-title { font-size: 28px; }
.dl-card .note { margin-top: -4px; }
.dl-icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--walnut); border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--walnut), inset 0 0 0 4px rgba(201,162,74,.5);
}

/* ---------------------------------------------------------------- sidebar */

.login-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.login-row a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.login-foot { margin: 0; text-align: center; font-size: 16px; color: var(--ink-3); }
.whoami { margin: 0; text-align: center; font-size: 17px; color: var(--ink-3); }
.whoami strong { color: var(--ink); }

.status-body { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.portal { display: block; width: 156px; height: 156px; background-repeat: no-repeat; background-size: contain; background-position: center; }
.portal-open { background-image: url(/img/portal-open.webp); animation: portal-breathe 3.2s ease-in-out infinite; }
.portal-closed { background-image: url(/img/portal-closed.webp); }
@keyframes portal-breathe {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(70,170,255,.3)); }
  50% { filter: drop-shadow(0 0 14px rgba(70,170,255,.75)); }
}
.status-text { margin: 6px 0 0; font-family: var(--sc); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: .03em; color: var(--ok); }
.status-text.is-down { color: var(--bad); }
.online-label { margin: 10px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.online-count { margin: 0; font-family: var(--sc); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: .02em; color: var(--ink); font-variant-numeric: lining-nums; }
.status-list { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(126,91,23,.3); }
.status-list li { display: flex; align-items: baseline; gap: 8px; min-height: 32px; font-size: 17px; }
.status-list .dots { flex: 1 1 20px; border-bottom: 2px dotted rgba(126,91,23,.45); }
.state { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ok-2); }
.state::before { content: ""; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok-dot); box-shadow: 0 0 0 3px rgba(63,143,70,.18); }
.state.is-down { color: var(--bad); }
.state.is-down::before { background: #B5452F; box-shadow: 0 0 0 3px rgba(181,69,47,.18); }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 1180px) {
  /* The art is centred; on narrow screens the logo and buttons go to the middle instead of the left gap. */
  .lc-logo { left: 50%; transform: translateX(-50%); top: 110px; width: min(500px, 86vw); height: auto; aspect-ratio: 500 / 232; }
  .lc-ctas { left: 50%; top: 360px; }
}
@media (max-width: 760px) {
  .lc-ctas { flex-direction: column; top: 330px; }
  .lc-nav ul { overflow-x: auto; justify-content: flex-start; gap: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-open { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .news-card { transition: none; }
  .news-card:hover { transform: none; }
}

/* ---------------------------------------------------------------- before the launch (Site:DataSource = SiteOnly) */

.status-text.is-soon { color: var(--gold-dk); }
.soon-card { align-items: center; text-align: center; gap: 14px; padding-top: 34px; padding-bottom: 30px; }
.soon-lead { margin: 0; font-family: var(--sc); font-weight: 800; font-size: 26px; line-height: 1.25; color: var(--ink); }
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
