:root {
  --xs-bg: #0d1218;
  --xs-panel: #131a22;
  --xs-text: #f3f6fb;
  --xs-sub: #9fb0c2;
  --xs-yellow: #f4c600;
  --xs-cyan: #6df3ff;
  --xs-line: #273442;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--xs-text);
  background:
    linear-gradient(135deg, rgba(244, 198, 0, 0.08) 0, transparent 35%),
    linear-gradient(315deg, rgba(109, 243, 255, 0.07) 0, transparent 30%),
    var(--xs-bg);
}

.xs-wrap {
  width: min(1520px, 97vw);
  margin: 0 auto;
}

.xs-header {
  position: sticky;
  top: 0;
  z-index: 88;
  background: rgba(10, 15, 21, 0.95);
  border-bottom: 1px solid var(--xs-line);
}

.xs-header .xs-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.xs-logo img {
  width: 236px;
  max-width: 74vw;
}

.xs-burger {
  display: none;
  width: 45px;
  height: 45px;
  border: 1px solid #4e6578;
  border-radius: 7px;
  background: #151f2a;
  color: #fff;
  font-size: 1.1rem;
}

.xs-nav {
  display: flex;
  gap: 0.58rem;
}

.xs-nav a {
  text-decoration: none;
  color: var(--xs-text);
  border: 1px solid #314051;
  border-radius: 6px;
  padding: 0.42rem 0.77rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.xs-nav a:hover,
.xs-nav a[aria-current="page"] {
  color: #0d1118;
  background: linear-gradient(120deg, #f4c600, #6df3ff);
  border-color: transparent;
}

.xs-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 1rem;
}

.xs-main,
.xs-side,
.xs-card,
.xs-legal {
  border: 1px solid var(--xs-line);
  border-radius: 10px;
  background: var(--xs-panel);
  padding: 1rem;
}

h1,
h2,
h3 {
  font-family: "Archivo Black", sans-serif;
  margin-top: 0;
  letter-spacing: 0.02em;
}

.xs-brief {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.xs-brief article {
  background: #171f29;
  border: 1px dashed #3e4e61;
  border-radius: 8px;
  padding: 0.75rem;
}

.xs-stage {
  margin-top: 1rem;
  border: 2px solid #3f505f;
  border-radius: 12px;
  overflow: hidden;
}

.xs-stage iframe {
  width: 100%;
  height: min(79vh, 720px);
  border: 0;
  display: block;
  background: #000;
}

.xs-rail {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.xs-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--xs-line);
  background: #0b1017;
}

.xs-footer .xs-wrap {
  padding: 1rem 0 1.5rem;
}

.xs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.74rem;
}

.xs-links a {
  color: #86e6ff;
}

.xs-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 8, 12, 0.9);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.xs-gate[hidden] {
  display: none;
}

.xs-gate-panel {
  width: min(520px, 95vw);
  border: 1px solid #3f505f;
  border-radius: 10px;
  background: #121920;
  padding: 1rem;
}

.xs-gate-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
}

.xs-gate-actions button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.xs-accept {
  background: linear-gradient(120deg, #f4c600, #6df3ff);
  color: #121820;
}

.xs-decline {
  background: #2b3948;
  color: #f0f5fb;
}

.xs-muted {
  color: var(--xs-sub);
}

@media (max-width: 1000px) {
  .xs-layout {
    grid-template-columns: 1fr;
  }

  .xs-brief,
  .xs-rail {
    grid-template-columns: 1fr;
  }

  .xs-burger {
    display: inline-block;
  }

  .xs-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 2vw;
    width: min(285px, 92vw);
    flex-direction: column;
    background: #121920;
    border: 1px solid #3f505f;
    border-radius: 10px;
    padding: 0.6rem;
  }

  .xs-nav.open {
    display: flex;
  }
}