/* Astra PTS — site stylesheet. Dark, warm, gold; Cormorant SC for display, Alegreya Sans for text. */

:root {
  --bg: #0b0907;
  --bg-2: #100d0a;
  --surface: #13100c;
  --surface-2: #1a1610;
  --line: #2b2419;
  --line-2: #3d3323;
  --gold: #c9a45c;
  --gold-hi: #e8d3a0;
  --gold-lo: #8a6d36;
  --ivory: #f0e7d4;
  --text: #d6ccb8;
  --muted: #938873;
  --ok: #7fae6e;
  --warn: #d49a4a;
  --err: #d0614f;
  --display: 'Cormorant SC', 'Cormorant', Georgia, serif;
  --ui: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 2px;
  --cut: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--ui); font-feature-settings: 'kern', 'liga'; font-variant-numeric: lining-nums;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ivory); }
h1, h2, h3 { font-variant-numeric: lining-nums; font-family: var(--display); font-weight: 600; color: var(--ivory); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
small { font-size: .82em; }
code { font: 500 .92em/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--gold-hi); }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.strong { color: var(--ivory); font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
.block { margin-bottom: 40px; }

.server__online b, .world__value, .rate b, .stat b, .balance__sum b, .cab__bal, .leader__pos, .steps__num { font-variant-numeric: lining-nums tabular-nums; }

/* ------------------------------------------------------------------ buttons */

.btn {
  --c1: var(--gold-hi); --c2: var(--gold); --fg: #1a1208;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border: 0; cursor: pointer;
  font: 700 15px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
  background: linear-gradient(180deg, var(--c1), var(--c2));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  transition: filter .15s, transform .15s;
}
.btn:hover { color: var(--fg); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--gold { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
/* ghost: gold gradient as the "border", a 1px-inset bevelled plate on top of it */
.btn--ghost {
  --fg: var(--gold-hi); color: var(--fg); position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--gold), var(--gold-lo));
}
.btn--ghost::after {
  content: ''; position: absolute; inset: 1px; z-index: -1; background: var(--bg-2);
  clip-path: polygon(calc(var(--cut) - .5px) 0, calc(100% - var(--cut) + .5px) 0, 100% 50%, calc(100% - var(--cut) + .5px) 100%, calc(var(--cut) - .5px) 100%, 0 50%);
  transition: background .15s;
}
.btn--ghost:hover { color: var(--ivory); filter: none; }
.btn--ghost:hover::after { background: var(--surface-2); }
.btn--sm { min-height: 36px; padding: 0 18px; font-size: 13px; --cut: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--gold-hi); }
.linkbtn:hover { color: var(--ivory); }
.link-arrow { font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.link-arrow::after { content: ' →'; transition: margin .15s; }
.link-arrow:hover::after { margin-left: 4px; }
.link-back::before { content: '← '; }

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 9, 7, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav > a { color: var(--text); font-weight: 500; letter-spacing: .03em; position: relative; padding: 6px 0; }
.nav > a:hover, .nav > a[aria-current] { color: var(--ivory); }
.nav > a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); }
.nav__account { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__signin { color: var(--gold-hi); font-weight: 500; }
.lang { font: 700 13px/1 var(--ui); letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line-2); padding: 7px 8px; }
.lang:hover { color: var(--ivory); border-color: var(--gold-lo); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--gold-hi); transition: transform .2s, top .2s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .topbar__in { height: 64px; }
  .brand img { height: 38px; }
  .burger { display: block; }
  .lang { margin-left: auto; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    max-height: calc(100vh - 64px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav > a[aria-current]::after { display: none; }
  .nav__account { margin: 18px 0 0; justify-content: space-between; }
}

/* ------------------------------------------------------------------ toast / alerts */

.toast {
  position: fixed; z-index: 60; top: 86px; right: var(--gutter); max-width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 14px 18px 14px 16px; background: var(--surface-2); color: var(--ivory);
  border: 1px solid var(--line-2); border-left: 3px solid var(--ok); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  animation: toast-in .25s ease-out;
}
.toast--err { border-left-color: var(--err); }
.toast.is-hiding { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.alert { padding: 12px 14px; border: 1px solid; margin: 0 0 18px; font-size: 15px; }
.alert--err { border-color: rgba(208, 97, 79, .5); background: rgba(208, 97, 79, .08); color: #f0b8ad; }
.alert--ok { border-color: rgba(127, 174, 110, .45); background: rgba(127, 174, 110, .08); color: #cfe3c6; }
.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 24px; border: 1px solid rgba(212, 154, 74, .4); background: rgba(212, 154, 74, .07);
}
.notice p { margin: 0; color: var(--ivory); }

/* ------------------------------------------------------------------ status, tags */

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--up { color: var(--ok); }
.status--up::before { box-shadow: 0 0 0 3px rgba(127, 174, 110, .18); }
.status--down { color: var(--err); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); vertical-align: middle; box-shadow: 0 0 0 3px rgba(127, 174, 110, .18); }
.tag { display: inline-block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-2); color: var(--muted); }
.tag--ok { color: var(--ok); border-color: rgba(127, 174, 110, .4); }
.tag--warn { color: var(--warn); border-color: rgba(212, 154, 74, .4); }
.tag--err { color: var(--err); border-color: rgba(208, 97, 79, .4); }
.kicker { font: 700 13px/1.2 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; overflow: hidden; min-height: min(780px, calc(100vh - 72px)); display: flex; align-items: stretch; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 9, 7, .94) 0%, rgba(11, 9, 7, .72) 42%, rgba(11, 9, 7, .2) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 9, 7, 0) 32%);
}
.hero__chars {
  position: absolute; z-index: -1; right: max(-80px, calc((100vw - var(--wrap)) / 2 - 140px)); bottom: 0;
  height: 96%; width: auto; max-width: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 22%); mask-image: linear-gradient(0deg, transparent 0, #000 22%);
  opacity: .9;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; padding-top: 96px; padding-bottom: 64px; }
.hero__servers { display: flex; flex-direction: column; gap: 16px; }
.hero__title { font-size: clamp(64px, 11vw, 132px); line-height: .86; margin: 0 0 24px; font-weight: 600; }
.hero__title span { display: block; }
.hero__title span:first-child {
  background: linear-gradient(180deg, var(--ivory) 20%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title span:last-child { font-size: .42em; letter-spacing: .4em; color: var(--gold); margin-top: 10px; padding-left: .08em; }
.hero__lead { font-size: 20px; max-width: 520px; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.server {
  position: relative; background: rgba(19, 16, 12, .86); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.server::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.server__art { width: 100%; height: 120px; object-fit: cover; opacity: .85; }
.server__body { padding: 18px 20px 20px; }
.server__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.server__head h2 { font-size: 28px; margin: 0; }
.server__online { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 14px; }
.server__online b { font: 600 40px/1 var(--display); color: var(--gold-hi); }
.server__online span { color: var(--muted); font-size: 14px; }
.server__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.server__facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.server__facts dd { margin: 0; color: var(--ivory); font-weight: 500; }

@media (max-width: 920px) {
  .hero { min-height: 0; }
  .hero__in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; }
  .hero__chars { height: 70%; right: -30%; opacity: .45; }
  .hero__lead { font-size: 18px; }
}

/* ------------------------------------------------------------------ sections */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head h2 { margin: 0; position: relative; padding-left: 22px; }
.section__head h2::before { content: ''; position: absolute; left: 0; top: .52em; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

.page-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px;
  background: radial-gradient(ellipse 60% 120% at 20% 0%, rgba(201, 164, 92, .09), transparent 70%); }
.page-head h1 { margin: 0; }

.world { background: var(--bg-2); }
.world__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.world__tile { background: var(--surface); padding: 26px 26px 22px; }
.world__tile h3 { font-size: 15px; font-family: var(--ui); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.world__value { font: 600 28px/1.15 var(--display); color: var(--ivory); margin: 0 0 6px; }
.world__note { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .world__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ news */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-grid:not(.news-grid--list) { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
.news-grid:not(.news-grid--list) .news-card--wide { grid-row: span 2; }
.news-grid:not(.news-grid--list) .news-card:nth-child(4) { grid-column: 2 / span 2; }
.news-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; overflow: hidden; }
.news-card:hover { border-color: var(--gold-lo); color: var(--text); transform: translateY(-2px); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s; }
.news-card:hover img { transform: scale(1.03); }
.news-card img { object-position: center top; }
.news-card--wide img { aspect-ratio: auto; height: 0; flex: 1 1 auto; min-height: 300px; }
.news-grid:not(.news-grid--list) .news-card:nth-child(4) { flex-direction: row; }
.news-grid:not(.news-grid--list) .news-card:nth-child(4) img { width: 46%; aspect-ratio: 4 / 3; flex: none; }
.news-grid:not(.news-grid--list) .news-card:nth-child(4) .news-card__body { flex: 1; align-self: center; }
.news-card__body { padding: 16px 18px 18px; }
.news-card time { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.news-card h3 { font-size: 22px; margin: 4px 0 0; }
.news-card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.news-card--wide h3 { font-size: 28px; }
@media (max-width: 920px) {
  .news-grid, .news-grid:not(.news-grid--list) { grid-template-columns: 1fr 1fr; }
  .news-grid:not(.news-grid--list) .news-card--wide { grid-column: span 2; grid-row: auto; }
  .news-grid:not(.news-grid--list) .news-card:nth-child(4) { grid-column: auto; flex-direction: column; }
  .news-grid:not(.news-grid--list) .news-card:nth-child(4) img { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
  .news-card--wide img { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 600px) {
  .news-grid, .news-grid:not(.news-grid--list) { grid-template-columns: 1fr; }
  .news-grid:not(.news-grid--list) .news-card--wide { grid-column: auto; }
}
.pager { display: flex; justify-content: center; gap: 12px; margin: 36px 0 56px; }

.article { padding-top: 48px; padding-bottom: 72px; }
.article time { display: block; color: var(--muted); font-size: 14px; letter-spacing: .08em; margin: 24px 0 8px; }
.article__img { width: 100%; border: 1px solid var(--line); margin: 8px 0 28px; }

/* ------------------------------------------------------------------ prose (markdown) */

.prose { font-size: 18px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--gold-hi); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose ul li::marker { color: var(--gold); }
.prose a { text-decoration: underline; text-decoration-color: var(--gold-lo); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--gold); font-weight: 500; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.prose > :first-child { margin-top: 0; }

/* ------------------------------------------------------------------ tables, rankings */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: left; font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding: 13px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; background: var(--bg-2); }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(201, 164, 92, .04); }
.table .num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.table .plus { color: var(--ok); }
.table .minus { color: var(--err); }
.table--rank .pos { color: var(--muted); width: 56px; }
.table--rank tbody tr:nth-child(1) .pos { color: var(--gold-hi); font-weight: 700; }
.table--rank tbody tr:nth-child(2) .pos, .table--rank tbody tr:nth-child(3) .pos { color: var(--gold); font-weight: 700; }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 16px; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a:hover { color: var(--ivory); }
.tabs a[aria-current] { color: var(--gold-hi); border-bottom-color: var(--gold); }

.fame__in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.leader { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.leader__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.leader__pos { font: 600 22px/1 var(--display); color: var(--muted); text-align: center; }
.leader__name { color: var(--ivory); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader__name small { display: block; color: var(--muted); font-weight: 400; }
.leader__val { font-variant-numeric: tabular-nums; color: var(--gold-hi); font-weight: 700; }
.leader__val small { color: var(--muted); font-weight: 400; }
.leader__row--top1 .leader__pos { color: var(--gold-hi); font-size: 30px; }
.leader__row--top2 .leader__pos, .leader__row--top3 .leader__pos { color: var(--gold); font-size: 26px; }
.leader__row--top1 { background: linear-gradient(90deg, rgba(201, 164, 92, .1), transparent 60%); }
.fame__clans { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; align-self: start; }
.fame__clans h3 { margin-bottom: 12px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
@media (max-width: 920px) { .fame__in { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ start, community */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { position: relative; padding: 26px 24px 22px; background: var(--surface); border: 1px solid var(--line); }
.steps__num { display: block; font: 600 46px/1 var(--display); color: var(--gold); opacity: .55; margin-bottom: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.community { background: var(--bg-2); }
.community__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.community__card { display: block; padding: 24px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); transition: border-color .2s; }
.community__card b { display: block; font: 600 26px/1.2 var(--display); color: var(--ivory); margin-bottom: 4px; }
.community__card:hover { border-color: var(--gold); color: var(--text); }
@media (max-width: 760px) { .community__in { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ about */

.about { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-bottom: 72px; }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { padding: 6px 0 6px 16px; color: var(--muted); margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--ivory); border-left-color: var(--gold); }
.about .block { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.about .block:last-child { border-bottom: 0; }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 24px; }
.rate { background: var(--surface); padding: 14px 16px; }
.rate span { display: block; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.rate b { font: 600 28px/1.1 var(--display); color: var(--gold-hi); }
.rates--small .rate b { font-size: 22px; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 24px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.ticks--muted li { color: var(--muted); }
.ticks--muted li::before { background: var(--gold-lo); }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; padding: 4px 10px; border: 1px solid var(--line-2); background: var(--surface); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 4px 0; margin-bottom: 28px; }
  .toc a { padding: 4px 12px; border: 1px solid var(--line); margin: 0 6px 6px 0; }
}

/* ------------------------------------------------------------------ forms */

.form { display: flex; flex-direction: column; gap: 16px; }
.form--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; gap: 16px; }
.form--inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.form--inline .field { flex: 1 1 200px; }
.form__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field__hint { color: var(--muted); font-size: 13px; line-height: 1.4; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--ivory); font: 400 17px/1.3 var(--ui);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, .15); }
input:user-invalid { border-color: rgba(208, 97, 79, .7); }
.input--code { font: 600 22px/1 ui-monospace, Consolas, monospace; letter-spacing: .3em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.check input:checked { border-color: var(--gold); background: var(--gold); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

.altcha { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--line-2); font-size: 15px; color: var(--muted); }
.altcha__mark { width: 18px; height: 18px; border: 2px solid var(--gold-lo); border-top-color: var(--gold-hi); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.altcha.is-done { border-style: solid; border-color: rgba(127, 174, 110, .4); color: var(--ok); }
.altcha.is-done .altcha__mark { animation: none; border: 0; position: relative; }
.altcha.is-done .altcha__mark::after { content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 12px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.altcha.is-error { border-color: rgba(208, 97, 79, .5); color: var(--err); }
.altcha.is-error .altcha__mark { animation: none; border-color: var(--err); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ auth */

.auth { padding: 72px var(--gutter) 96px; display: flex; justify-content: center;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(201, 164, 92, .08), transparent 70%); }
.auth__card { width: 100%; max-width: 440px; padding: 36px 36px 30px; background: var(--surface); border: 1px solid var(--line-2); position: relative; }
.auth__card::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.auth__card h1 { font-size: 36px; text-align: center; margin-bottom: 20px; }
.auth__lead { color: var(--muted); text-align: center; font-size: 16px; }
.auth__alt { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 480px) { .auth { padding-top: 32px; } .auth__card { padding: 28px 20px 24px; } }

/* ------------------------------------------------------------------ cabinet */

.cab { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 80px; }
.cab__side { position: sticky; top: 96px; align-self: start; }
.cab__who { padding: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.cab__email { display: block; color: var(--ivory); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab__bal { font: 600 24px/1.2 var(--display); color: var(--gold-hi); }
.cab__bal small { font: 400 13px var(--ui); color: var(--muted); letter-spacing: .06em; }
.cab__nav { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.cab__nav a { padding: 9px 16px; margin-left: -1px; color: var(--text); border-left: 2px solid transparent; }
.cab__nav a:hover { color: var(--ivory); background: rgba(201, 164, 92, .04); }
.cab__nav a[aria-current] { color: var(--gold-hi); border-left-color: var(--gold); background: rgba(201, 164, 92, .06); }
.cab__out { margin: 18px 0 0 17px; color: var(--muted); font-size: 15px; }
.cab__head { margin-bottom: 24px; }
.cab__head h1 { font-size: 40px; margin-bottom: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 24px; margin-bottom: 22px; }
.panel h2 { font-size: 26px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel__head h2 { margin: 0; }
.panel--cta { border-color: var(--gold-lo); background: linear-gradient(135deg, rgba(201, 164, 92, .1), var(--surface) 60%); }
.panel--codes { border-color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.stat { background: var(--surface); padding: 18px 20px; color: var(--muted); font-size: 14px; transition: background .15s; }
.stat:hover { background: var(--surface-2); color: var(--text); }
.stat b { display: block; font: 600 32px/1.1 var(--display); color: var(--ivory); }
.stat--warn b { color: var(--warn); }
.chars, .events, .sessions { list-style: none; margin: 0; padding: 0; }
.chars__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chars__row:last-child { border-bottom: 0; }
.chars__name { color: var(--ivory); font-weight: 500; }
.chars__meta, .chars__clan { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.events__row:last-child { border-bottom: 0; }
.events__what { color: var(--ivory); }
.events__row--bad .events__what { color: var(--err); }
.events__meta { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; }
.sessions__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sessions__row:last-child { border-bottom: 0; }
.sessions__row .muted { display: block; font-size: 14px; }
.game-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.game { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); padding: 18px 22px; }
.game__login { font: 600 24px/1.2 ui-monospace, Consolas, monospace; color: var(--ivory); margin: 0 0 4px; letter-spacing: .02em; }
.game__meta { margin: 0; color: var(--muted); font-size: 15px; }
.game__pw { flex: 0 1 auto; }
.game__pw summary { list-style: none; }
.game__pw summary::-webkit-details-marker { display: none; }
.game__pw[open] { flex-basis: 100%; }
.game__pw[open] summary { margin-bottom: 14px; }
.balance { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.balance__sum b { font: 600 56px/1 var(--display); color: var(--gold-hi); }
.balance__sum span { margin-left: 8px; color: var(--muted); }
.balance p { margin: 0; flex: 1 1 260px; }
.totp { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.totp__qr { background: #fff; padding: 8px; }
.totp__qr svg { width: 100%; height: auto; display: block; }
.totp__steps ol { margin: 0 0 14px; padding-left: 1.2em; }
.totp__key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.totp__key span { font-size: 13px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.totp__key code { font-size: 17px; letter-spacing: .12em; word-break: break-all; }
.codes { columns: 2; margin: 0 0 16px; padding-left: 1.6em; }
.codes code { font-size: 18px; letter-spacing: .08em; }
@media (max-width: 860px) {
  .cab { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .cab__side { position: static; }
  .cab__nav { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .cab__nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; }
  .cab__nav a[aria-current] { border-bottom-color: var(--gold); background: none; }
  .cab__out { margin-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .totp { grid-template-columns: 1fr; }
  .totp__qr { max-width: 220px; }
  .events__row { grid-template-columns: 1fr auto; }
  .events__meta { grid-column: 1 / -1; grid-row: 2; }
  .chars__row { grid-template-columns: 1fr 1fr; }
  .chars__clan { display: none; }
}

/* ------------------------------------------------------------------ error page */

.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-size: clamp(40px, 6vw, 64px); }
.error-page p { color: var(--muted); margin-bottom: 32px; }

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 28px; font-size: 15px; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 38px; width: auto; margin-bottom: 14px; opacity: .9; }
.footer__brand p { color: var(--muted); max-width: 340px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a { color: var(--text); }
.footer__nav a:hover { color: var(--gold-hi); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__legal a { color: var(--muted); }
@media (max-width: 760px) { .footer__in { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* Cormorant's zero reads as a letter O: counters and amounts use the text face */
.server__online b, .stat b, .balance__sum b, .cab__bal, .rate b { font-family: var(--ui); font-weight: 700; letter-spacing: -.01em; }
.server__online b { font-size: 36px; }
.stat b { font-size: 28px; }
.balance__sum b { font-size: 48px; }
.cab__bal { font-size: 22px; }
.rate b { font-size: 24px; }
.rates--small .rate b { font-size: 19px; }
.form--grid { align-items: start; }
.form--grid > .btn { margin-top: 27px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list code { font-size: 17px; color: var(--ivory); }
.cab > *, .about > *, .hero__in > *, .fame__in > * { min-width: 0; }
.mini-list li { flex-wrap: wrap; }

/* ------------------------------------------------------------------ cabinet: shop, warehouse, wheel, balance */

.cab__head--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link-back { display: inline-block; margin-bottom: 14px; color: var(--muted); }
.mt { margin-top: 40px; }
.table td.wrap { white-space: normal; min-width: 220px; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.product { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; }
.product:hover { border-color: var(--gold-lo); color: var(--text); transform: translateY(-2px); }
.product img { width: 100%; aspect-ratio: 480 / 571; object-fit: cover; background: var(--bg-2); }
.product__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__body h3 { font-size: 20px; margin: 0; }
.product__price { margin: auto 0 0; color: var(--muted); }
.product__price b { font: 700 22px/1 var(--ui); color: var(--gold-hi); }
.product__price s { color: var(--muted); margin-right: 4px; }
.product__note { font-size: 13px; color: var(--muted); }
.product--off { opacity: .55; }
.shop-note { margin-top: 8px; }

.buy { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.buy__art img { width: 100%; border: 1px solid var(--line); }
.buy__main h1 { font-size: 38px; }
.buy__total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.buy__total b { font: 700 32px/1 var(--ui); color: var(--gold-hi); }
@media (max-width: 760px) { .buy { grid-template-columns: 1fr; } .buy__art { max-width: 220px; } }

.choice { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.choice legend, .swatches legend { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.choice__opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; transition: border-color .15s; }
.choice__opt:hover { border-color: var(--gold-lo); }
.choice__opt:has(input:checked) { border-color: var(--gold); background: rgba(201, 164, 92, .07); }
.choice__opt input { accent-color: var(--gold); margin: 0; }
.choice__opt span { flex: 1; }
.choice__opt b { color: var(--gold-hi); white-space: nowrap; }
.choice__opt--off { opacity: .5; cursor: not-allowed; }
.choice--inline { flex-direction: row; flex-wrap: wrap; }
.choice--inline legend { width: 100%; }
.field--short { max-width: 160px; }

.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { width: 100%; }
.swatch { position: relative; width: 44px; height: 44px; border: 2px solid var(--line-2); cursor: pointer; transition: transform .15s; }
.swatch:hover { transform: scale(1.06); }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch:has(input:checked) { border-color: var(--ivory); box-shadow: 0 0 0 3px var(--gold); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wh-all { margin-bottom: 8px; }
.wh { list-style: none; margin: 0 0 18px; padding: 0; }
.wh__item { border-bottom: 1px solid var(--line); }
.wh__item .check { align-items: center; padding: 10px 0; }
.wh__img { width: 36px; height: 36px; object-fit: contain; flex: none; background: var(--bg); border: 1px solid var(--line); }
.wh__img--none { display: inline-block; }
.wh__name { display: flex; flex-direction: column; color: var(--ivory); }
.wh__name small { font-size: 13px; }
.wh-send { display: grid; gap: 14px; padding-top: 6px; }
.wh-send .btn { justify-self: start; }

.wheel { display: grid; gap: 20px; margin-bottom: 22px; }
.wheel__prizes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.prize { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.prize img { width: 40px; height: 40px; image-rendering: auto; }
.prize__name { font-size: 14px; color: var(--ivory); line-height: 1.3; }
.prize__chance { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.prize--rare { border-color: rgba(201, 164, 92, .45); }
.prize--rare::after { content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.prize--won { border-color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-hi), 0 0 24px rgba(232, 211, 160, .25); animation: won-glow 1.6s ease-in-out 2; }
@keyframes won-glow { 50% { box-shadow: 0 0 0 1px var(--gold-hi), 0 0 42px rgba(232, 211, 160, .5); } }
.wheel__spin { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wheel__spin p { margin: 0; }
.panel--won { border-color: var(--gold); text-align: center; background: radial-gradient(ellipse at 50% 0, rgba(201, 164, 92, .14), var(--surface) 70%); }
.won { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 12px; }
.won img { width: 48px; height: 48px; }
.won b { font: 600 30px/1.2 var(--display); color: var(--ivory); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cols > .panel { margin-bottom: 22px; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } .cols > .panel { margin-bottom: 0; } .cols { margin-bottom: 22px; } }
.balance__facts { display: flex; gap: 28px; margin: 0; flex-wrap: wrap; }
.balance__facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.balance__facts dd { margin: 0; color: var(--ivory); font-weight: 700; font-size: 20px; }
.input--promo { letter-spacing: .12em; text-transform: uppercase; }
.tiers__title { margin-top: 26px; font-size: 18px; }
.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.tiers li { display: flex; flex-direction: column; padding: 6px 8px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tiers b { color: var(--text); font-size: 16px; }
.tiers .tiers__on { border-color: var(--gold-lo); background: rgba(201, 164, 92, .07); }
.tiers .tiers__on b { color: var(--gold-hi); }
.invoice__rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 0 0 18px; }
.invoice__rows dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.invoice__rows dd { margin: 4px 0 0; color: var(--ivory); font-weight: 500; }
.nick-preview { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; margin: 0;
  background: linear-gradient(180deg, #2a3442, #1b2029); border: 1px solid var(--line-2); font: 700 15px/1.2 Tahoma, Verdana, sans-serif; }
.nick-preview__name { color: #fff; text-shadow: 0 1px 1px #000; }
.nick-preview__title { color: #ffff77; font-weight: 400; font-size: 13px; text-shadow: 0 1px 1px #000; order: -1; }
.reel { position: relative; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--gold-lo); background: var(--bg); padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.reel__strip { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; will-change: transform; }
.reel__cell { flex: none; width: 76px; height: 76px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.reel__cell img { width: 40px; height: 40px; }
.reel__cell--rare { border-color: rgba(201, 164, 92, .5); }
.reel__cell--won { border-color: var(--gold-hi); box-shadow: 0 0 22px rgba(232, 211, 160, .4); }
.reel__marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold); }
.panel--won { transition: opacity .4s; }
.panel--won.is-waiting { opacity: 0; }

/* ------------------------------------------------------------------ cabinet: support */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px;
  background: var(--gold); color: var(--bg); font: 700 12px/1 var(--ui); }
.tabs--wrap { flex-wrap: wrap; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.cat { padding: 12px 14px; border: 1px solid var(--line-2); color: var(--text); background: var(--bg); }
.cat:hover { border-color: var(--gold-lo); color: var(--ivory); }
.tickets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticket { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.ticket:hover { border-color: var(--gold-lo); color: var(--text); }
.ticket__id { color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket__title { color: var(--ivory); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket__title small { display: block; color: var(--muted); font-weight: 400; }
.ticket time { color: var(--muted); font-size: 14px; }
.ticket--unread { border-left: 3px solid var(--gold); }
.ticket--closed { opacity: .65; }
@media (max-width: 700px) { .ticket { grid-template-columns: 1fr auto; } .ticket__id, .ticket time { display: none; } }
textarea { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ivory); font: 400 16px/1.5 var(--ui); resize: vertical; }
input[type=date], input[type=time] { min-height: 46px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ivory); font: 400 16px var(--ui); color-scheme: dark; }
input[type=file] { color: var(--muted); font: 400 15px var(--ui); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--gold-lo); background: var(--bg-2); color: var(--gold-hi); font: 600 13px var(--ui); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; }
.details dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 4px 0 0; color: var(--ivory); white-space: pre-wrap; word-break: break-word; }
.thread { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); max-width: 86%; }
.msg--user { align-self: flex-end; border-color: var(--line-2); }
.msg--admin { align-self: flex-start; border-color: var(--gold-lo); background: linear-gradient(180deg, rgba(201, 164, 92, .08), var(--surface)); }
.msg header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 14px; }
.msg--admin header b { color: var(--gold-hi); }
.msg time { color: var(--muted); }
.msg__body { white-space: pre-wrap; word-break: break-word; color: var(--ivory); }
.msg__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.msg__files img { width: 120px; height: 90px; object-fit: cover; border: 1px solid var(--line-2); }
.close-ticket { margin: -8px 0 22px; text-align: right; }
.close-ticket .linkbtn { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ cabinet: settings */
.inline-link { margin-top: 10px; }
.linkbtn--muted { color: var(--muted); }
.row-actions { display: inline-flex; gap: 16px; align-items: center; }
.row-actions form { display: inline; }
.more { margin-top: 16px; }
.more summary { cursor: pointer; list-style: none; color: var(--gold-hi); }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 12px; }
.game--hidden { opacity: .6; }
.game__hide { align-self: center; }
.game__more { margin-top: 8px; }
.cab__switch { margin-top: 10px; font-size: 14px; }
.cab__switch summary { cursor: pointer; color: var(--muted); list-style: none; }
.cab__switch summary::-webkit-details-marker { display: none; }
.cab__switch summary::after { content: ' \25BE'; }
.cab__switch form { margin-top: 6px; }
.cab__switch .linkbtn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* ------------------------------------------------------------------ online statistics */
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.tabs--small a { padding: 6px 12px; font-size: 15px; }
.chart-wrap { background: var(--surface); border: 1px solid var(--line); padding: 12px; }
.chart { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-label { fill: var(--muted); font: 12px var(--ui); }
.ch-area { fill: rgba(201, 164, 92, .14); }
.ch-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.ch-peak { fill: var(--gold-hi); }
.ch-peak-label { fill: var(--gold-hi); font: 700 13px var(--ui); }

/* ------------------------------------------------------------------ cabinet: character page */
.hero-char { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 22px 26px; margin-bottom: 18px;
  background: radial-gradient(ellipse at 20% 0, rgba(201, 164, 92, .12), transparent 60%), var(--surface); border: 1px solid var(--line-2); }
.hero-char__plate { display: flex; flex-direction: column; align-items: center; min-width: 200px; padding: 14px 22px;
  background: linear-gradient(180deg, #2a3442, #161b23); border: 1px solid #39424f; font-family: Tahoma, Verdana, sans-serif; }
.hero-char__title { color: #ecf9a2; font-size: 14px; min-height: 17px; text-shadow: 0 1px 1px #000; }
.hero-char__name { color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.hero-char__name--small { font-size: 18px; }
.hero-char__meta { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.char-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.char-grid > .panel { margin-bottom: 0; }
@media (max-width: 1000px) { .char-grid { grid-template-columns: 1fr; } }
.bars { display: grid; gap: 8px; margin-bottom: 16px; }
.bar { display: grid; grid-template-columns: 40px 1fr 120px; align-items: center; gap: 10px; font-size: 14px; }
.bar span { color: var(--muted); font-weight: 700; }
.bar b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ivory); font-weight: 500; }
.bar progress { width: 100%; height: 10px; appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); background: var(--bg); }
.bar progress::-webkit-progress-bar { background: var(--bg); }
.bar--cp::-webkit-progress-value { background: #c9a02a; } .bar--cp::-moz-progress-bar { background: #c9a02a; }
.bar--hp::-webkit-progress-value { background: #b8343a; } .bar--hp::-moz-progress-bar { background: #b8343a; }
.bar--mp::-webkit-progress-value { background: #2f63b8; } .bar--mp::-moz-progress-bar { background: #2f63b8; }
.bar--exp::-webkit-progress-value { background: var(--gold); } .bar--exp::-moz-progress-bar { background: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 16px; margin: 0 0 14px; }
.facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--ivory); font-weight: 500; }
.map-wrap { border: 1px solid var(--line-2); margin-bottom: 10px; overflow: hidden; }
.map { width: 100%; height: auto; display: block; }
.map__bg { fill: #0d1418; }
.map__dot { fill: var(--gold-hi); stroke: #1a1208; stroke-width: 2; }
.map__pulse { fill: rgba(232, 211, 160, .25); stroke: var(--gold-hi); stroke-width: 1; transform-origin: center; transform-box: fill-box; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.coords { margin-left: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.char-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.doll { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 18px; }
.doll__col, .doll__row { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doll__row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.doll__col li, .doll__row li { display: flex; flex-direction: column; gap: 3px; }
.doll__slot { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doll__center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(201, 164, 92, .14), transparent 70%); border: 1px solid var(--line); }
.doll__tal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 760px) { .doll { grid-template-columns: 1fr; } .doll__center { padding: 16px; } }
.it { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line-2); min-height: 40px; }
.it__name { flex: 1; color: var(--ivory); font-size: 14px; line-height: 1.25; }
.it__ench, b.it__ench { color: #7ec8ff; font-weight: 700; }
.it__grade { font: 700 11px var(--ui); padding: 2px 5px; border: 1px solid currentColor; color: var(--muted); }
.it--empty { color: var(--muted); justify-content: center; }
.it--d .it__grade { color: #8fb3d9; } .it--c .it__grade { color: #8fd98f; } .it--b .it__grade { color: #d9c88f; }
.it--a .it__grade { color: #d99a6c; } .it--s .it__grade, .it--s80 .it__grade, .it--s84 .it__grade { color: #e3a9ff; }
.it--s, .it--s80, .it--s84 { border-color: rgba(227, 169, 255, .35); }
.filter { margin-bottom: 12px; max-width: 340px; }
.filter input { width: 100%; min-height: 40px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ivory); font: 16px var(--ui); }
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.skills li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); }
.skills b { color: var(--gold-hi); }
.chars__name a, .table td a { color: inherit; border-bottom: 1px dotted var(--gold-lo); }
.prose { font-variant-numeric: oldstyle-nums; }

/* game icons */
.it__icon { width: 32px; height: 32px; flex: none; image-rendering: auto; border: 1px solid #0a0806; box-shadow: 0 0 0 1px var(--line-2); }
.cell-item { display: inline-flex; align-items: center; gap: 10px; }
.cell-item .it__icon { width: 28px; height: 28px; }
.skills li { align-items: center; }
.skills li span { flex: 1; }
.it__name small { color: var(--muted); }

/* 3D model in the paperdoll */
.doll__center--model { padding: 0; min-height: 420px; }
.model { position: relative; width: 100%; height: 100%; min-height: 420px; }
.model canvas { display: block; width: 100%; height: 100%; min-height: 420px; cursor: grab; touch-action: none; }
.model canvas:active { cursor: grabbing; }
.model__hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none; }
.model--error canvas, .model--nogl canvas { display: none; }
@media (min-width: 761px) { .doll { grid-template-columns: 1fr 260px 1fr; } }
