
:root {
  --bg: #09090c;
  --panel: #121218;
  --panel-2: #181820;
  --text: #f5f5f7;
  --muted: #b7b7c2;
  --red: #e01818;
  --red-bright: #ff3434;
  --gold: #caa34e;
  --line: rgba(255,255,255,.11);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(224,24,24,.18), transparent 30rem),
    radial-gradient(circle at 5% 40%, rgba(202,163,78,.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
button, .button { font: inherit; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(9,9,12,.86);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: .3px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red-bright), #8b0000);
  box-shadow: 0 8px 28px rgba(224,24,24,.35);
  color: #fff;
}
.brand span small { color: var(--gold); display: block; font-size: 11px; letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.nav-links a:hover, .nav-links a:focus { color: #fff; }
.menu-button {
  display: none; background: var(--panel); color: #fff; border: 1px solid var(--line);
  width: 46px; height: 46px; border-radius: 13px; cursor: pointer;
}
.hero {
  min-height: 760px; display: grid; align-items: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% 0 35%; height: 210px;
  background:
    linear-gradient(45deg, transparent 25%, rgba(255,255,255,.06) 25% 50%, transparent 50% 75%, rgba(255,255,255,.06) 75%) 0 0/48px 48px;
  transform: skewY(-7deg); mask-image: linear-gradient(to top, black, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 64px; align-items: center; padding: 92px 0 110px; }
.eyebrow { color: var(--gold); font-weight: 900; text-transform: uppercase; letter-spacing: 2.5px; font-size: 13px; }
h1 { font-size: clamp(52px, 8vw, 100px); line-height: .92; margin: 18px 0 26px; letter-spacing: -4px; }
h1 em { color: var(--red-bright); font-style: normal; display: block; }
.lead { color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px; text-decoration: none;
  font-weight: 900; border: 1px solid transparent; cursor: pointer;
}
.button-primary { background: linear-gradient(135deg, var(--red-bright), #a60000); color: #fff; box-shadow: 0 12px 34px rgba(224,24,24,.3); }
.button-primary:hover { transform: translateY(-2px); }
.button-secondary { background: rgba(255,255,255,.05); border-color: var(--line); color: #fff; }
.hero-card {
  background: linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: 30px; padding: 28px; box-shadow: var(--shadow);
  position: relative; isolation: isolate;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(135deg, rgba(224,24,24,.15), transparent 42%, rgba(202,163,78,.08));
}
.hero-card img { width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 22px; }
.stat { background: rgba(0,0,0,.24); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.stat strong {
  display: block;
  font-size: 20px;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 7px;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
section { padding: 92px 0; }
.section-title { max-width: 760px; margin-bottom: 38px; }
.section-title h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 10px 0 16px; letter-spacing: -2px; }
.section-title p { color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.card-icon { font-size: 34px; }
.card h3 { margin: 16px 0 10px; font-size: 23px; }
.card p { color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; border: 1px solid rgba(202,163,78,.35);
  color: var(--gold); background: rgba(202,163,78,.08); border-radius: 999px;
  padding: 6px 11px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
}
.download-box {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
  background: linear-gradient(135deg, rgba(224,24,24,.14), rgba(255,255,255,.035));
  border: 1px solid rgba(224,24,24,.35); border-radius: 28px; padding: 36px;
}
.download-box h3 { font-size: 32px; margin: 12px 0; }
.checks { display: grid; gap: 10px; color: var(--muted); margin: 22px 0; }
.checks div::before { content: "✓"; color: #65dd8d; font-weight: 900; margin-right: 10px; }
.download-panel { background: rgba(0,0,0,.32); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.download-panel code {
  display: block; overflow-wrap: anywhere; background: rgba(0,0,0,.34);
  padding: 12px; border-radius: 10px; color: #ddd; font-size: 12px; margin: 12px 0 18px;
}
.project-band { background: rgba(255,255,255,.025); border-block: 1px solid var(--line); }
.timeline { display: grid; gap: 18px; }
.timeline-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; border-left: 3px solid var(--red);
  padding: 6px 0 6px 24px;
}
.timeline-item strong { color: var(--gold); }
.timeline-item p { margin: 0; color: var(--muted); }
.notice {
  border: 1px solid rgba(202,163,78,.35); background: rgba(202,163,78,.07);
  border-radius: 18px; padding: 20px; color: #e9dfc3;
}
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-grid a { color: #fff; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px;
    background: #121218; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(255,255,255,.06); }
  .hero { min-height: auto; }
  .hero-grid, .download-box { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 64px; }
  .cards { grid-template-columns: 1fr; }
  .hero-card { max-width: 620px; }
}
@media (max-width: 560px) {
  h1 { letter-spacing: -2px; }
  section { padding: 72px 0; }
  .stat-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .download-box { padding: 24px; }
}

.cards-four { grid-template-columns: repeat(4, 1fr); }
.card p strong { color: var(--gold); }
@media (max-width: 1100px) {
  .cards-four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .cards-four { grid-template-columns: 1fr; }
}

.character-gallery {
  margin-top: 42px;
  background:
    linear-gradient(145deg, rgba(224,24,24,.08), rgba(255,255,255,.025)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.character-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.character-gallery-head h3 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}
.character-count {
  flex: none;
  color: var(--gold);
  font-weight: 900;
  font-size: 18px;
}
.character-intro {
  max-width: 860px;
  color: var(--muted);
  margin: 0 0 28px;
}
.character-groups {
  display: grid;
  gap: 22px;
}
.character-group {
  background: rgba(0,0,0,.2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.character-group h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}
.character-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.character-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  color: #ededf2;
  font-weight: 700;
  font-size: 14px;
}
.character-chip:hover {
  border-color: rgba(224,24,24,.65);
  background: rgba(224,24,24,.12);
}
@media (max-width: 650px) {
  .character-gallery {
    padding: 22px;
  }
  .character-gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .character-group {
    padding: 16px;
  }
}

.feedback-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 26px;
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(202,163,78,.10), rgba(255,255,255,.025)),
    var(--panel);
  border: 1px solid rgba(202,163,78,.32);
}
.feedback-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 30px;
  background: rgba(202,163,78,.12);
  border: 1px solid rgba(202,163,78,.25);
}
.feedback-box h3 {
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}
.feedback-box p {
  color: var(--muted);
  margin: 0;
}
.feedback-note {
  margin-top: 12px !important;
  color: var(--gold) !important;
  font-weight: 800;
}
@media (max-width: 620px) {
  .feedback-box {
    grid-template-columns: 1fr;
  }
}

.community-notice {
  margin-bottom: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 177, 66, .38);
  border-radius: 18px;
  background: rgba(255, 177, 66, .08);
  color: #f0dfbd;
}
.community-layout {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}
.community-form,
.community-feed {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 16px 46px rgba(0,0,0,.2);
}
.form-heading h3,
.feed-heading h3 {
  margin: 10px 0 0;
  font-size: 26px;
}
.community-form {
  display: grid;
  gap: 17px;
}
.community-form label {
  display: grid;
  gap: 7px;
  color: #f2f2f5;
  font-weight: 800;
  font-size: 14px;
}
.community-form input,
.community-form select,
.community-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 11px 13px;
  color: #fff;
  background: rgba(0,0,0,.32);
  font: inherit;
  outline: none;
}
.community-form select option {
  color: #111;
  background: #fff;
}
.community-form textarea {
  min-height: 135px;
  resize: vertical;
}
.community-form input:focus,
.community-form select:focus,
.community-form textarea:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(224,24,24,.15);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.small-button {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.small-button:hover {
  color: #fff;
  border-color: rgba(224,24,24,.55);
}
.listing-list,
.discussion-list {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}
.market-item,
.forum-item,
.empty-community {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(0,0,0,.22);
}
.market-item-head,
.forum-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.market-item h4,
.forum-item h4 {
  margin: 8px 0 4px;
  font-size: 20px;
}
.market-item p,
.forum-item p {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 12px;
}
.item-price {
  flex: none;
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}
.type-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #fff;
  background: rgba(224,24,24,.22);
  border: 1px solid rgba(224,24,24,.38);
}
.type-badge.buy {
  background: rgba(55,140,255,.18);
  border-color: rgba(55,140,255,.38);
}
.type-badge.trade {
  background: rgba(202,163,78,.16);
  border-color: rgba(202,163,78,.38);
  color: #f2d998;
}
.local-badge {
  display: inline-flex;
  margin-top: 12px;
  color: #9ed8ff;
  font-size: 11px;
  font-weight: 800;
}
.empty-community {
  text-align: center;
  color: var(--muted);
  border-style: dashed;
}
@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .feed-heading,
  .market-item-head,
  .forum-item-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.chat-list {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  max-height: 520px;
  overflow-y: auto;
}
.chat-item {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px 16px;
  background: rgba(0,0,0,.22);
}
.chat-item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.chat-item-head strong {
  color: var(--gold);
  font-size: 14px;
}
.chat-item p {
  margin: 0;
  color: #ededf1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-layout textarea {
  min-height: 110px;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.server-status .status-dot {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(202,163,78,.12);
}
.server-status strong,
.server-status span { display: block; }
.server-status span { color: var(--muted); font-size: 13px; }
.server-status.online { border-color: rgba(65,210,120,.36); }
.server-status.online .status-dot { background: #42d878; box-shadow: 0 0 0 5px rgba(66,216,120,.12); }
.server-status.local { border-color: rgba(255,177,66,.36); }
.server-status.local .status-dot { background: #ffb142; box-shadow: 0 0 0 5px rgba(255,177,66,.12); }
.item-status-badge {
  display: inline-flex;
  margin-top: 12px;
  color: #9eeab9;
  font-size: 11px;
  font-weight: 800;
}


.form-status {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.form-status.success {
  background: rgba(35, 180, 95, 0.16);
  border: 1px solid rgba(35, 180, 95, 0.55);
}

.form-status.error {
  background: rgba(220, 55, 55, 0.16);
  border: 1px solid rgba(220, 55, 55, 0.65);
}
