:root {
  --bg: #0d0b0a;
  --bg-alt: #15110f;
  --surface: #1b1613;
  --surface-soft: #241d18;
  --text: #ebe2cf;
  --text-muted: #b8a98d;
  --crimson: #7a1f2b;
  --gold: #c9a227;
  --line: #3a2e25;
  --ok: #67c587;
}

* {
  box-sizing: border-box;
}

html {
  /* Keep layout stable without creating a mirrored left gutter. */
  scrollbar-gutter: stable;
  background: #0d0b0a;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #2b1817 0%, var(--bg) 45%);
  min-height: 100vh;
  overflow-y: scroll;
}

.backdrop {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(130deg, rgba(201, 162, 39, 0.02) 0 2px, transparent 2px 10px);
  pointer-events: none;
  animation: bgShift 28s linear infinite;
}


@keyframes bgShift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 180px 180px;
  }
}


.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.lang-switcher {
  background: #1f1914;
  color: var(--text);
  border: 1px solid #5b4635;
  border-radius: 10px;
  padding: 0.38rem 0.5rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid #33281f;
  background: rgba(11, 9, 8, 0.82);
  backdrop-filter: blur(2px);
}

.site-footer-inner {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: #a89779;
  font-size: 0.78rem;
}

.footer-links {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-links a {
  color: #89a8bf;
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-right {
  text-align: right;
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #2b1817 0%, #0d0b0a 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 200;
}

.page-transition-overlay.is-active {
  opacity: 1;
}

.crest {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.crest-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 700 1.1rem "Cinzel", serif;
  color: var(--gold);
  border: 1px solid #70581b;
  background: linear-gradient(145deg, #2a2219, #17110d);
}

.crest-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #70581b;
  background: linear-gradient(145deg, #2a2219, #17110d);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

.small {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Cinzel", serif;
}

h3 i,
h4 i {
  color: var(--gold);
  margin-right: 0.4rem;
  font-size: 0.86em;
}

h1 {
  font-size: 1rem;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a i {
  color: var(--gold);
  font-size: 0.76rem;
}

.hero {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
  min-height: 250px;
}

.hero > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wipe-timer {
  margin-top: 0;
}

.compact-timer {
  padding: 0.85rem;
  border-color: #3a2f27;
  background: linear-gradient(180deg, #171310, #13100d);
  width: 100%;
}

.timer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.timer-head h4 {
  font-size: 1rem;
}

.timer-meta {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.meta-item {
  background: #201914;
  border: 1px solid #44342a;
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
}

.meta-item p {
  margin: 0;
}

.meta-value {
  margin-top: 0.25rem !important;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.countdown {
  margin-top: 0.45rem;
}

.countdown-inline {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid #4a3a2f;
  border-radius: 10px;
  background: #1d1712;
  color: var(--text-muted);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.countdown-inline span {
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0.14rem 0 0.28rem;
}

.countdown-inline span:first-child {
  margin-left: 0;
}

.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.tag {
  display: inline-block;
  border: 1px solid #4c382c;
  color: var(--gold);
  background: #241a12;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.76rem;
  margin: 0 0 0.8rem;
}

h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.lead {
  color: var(--text-muted);
  max-width: 62ch;
}

.lead-sm {
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(145deg, #8c2434, var(--crimson));
  color: #fff;
  border-color: #9e2f40;
}

.btn-steam {
  background: linear-gradient(145deg, #1b2838, #2a475e);
  border-color: #3d5c77;
  color: #d9e8f7;
  padding: 0.62rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.btn-steam i {
  font-size: 0.9rem;
}

.btn-ghost {
  background: #211a15;
  border-color: #5f4737;
  color: var(--text);
}

.status-card h3 {
  margin-bottom: 0.5rem;
}

.status-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-card p {
  margin: 0.22rem 0;
}

.status-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--ok);
  border-radius: 999px;
  margin-right: 0.35rem;
}

.ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--gold);
}

.muted {
  color: var(--text-muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 1.6rem 0 0.9rem;
}

.section-heading.compact {
  margin: 0 0 0.9rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 1rem;
  margin-top: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-tabs-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 1rem;
}

.server-features-tab-narrow .feature-list {
  margin-top: 0.2rem;
}

.feature-intro {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}

.feature-list li + li {
  margin-top: 0.35rem;
}

.rules-summary ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.live-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 0.8rem;
}

.map-card {
  border: 1px solid #44342a;
  border-radius: 12px;
  background: #1f1813;
  padding: 0.75rem;
}

.map-card p {
  margin: 0;
}

.map-card-title {
  margin-bottom: 0.65rem;
}

.map-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.stat-cell {
  border-left: 3px solid #3a2f27;
  padding-left: 0.5rem;
}

.stat-cell-wide {
  grid-column: span 2;
}

.map-card .meta-value {
  margin: 0.15rem 0 0 !important;
}

.map-link {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4db2ff;
  text-decoration: none;
}

.map-preview {
  border: 1px solid #355a77;
  border-radius: 12px;
  min-height: 220px;
  position: relative;
  background: #2e536a;
  overflow: hidden;
}

.map-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.player-list {
  border: 1px solid #44342a;
  border-radius: 12px;
  background: #1f1813;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.8rem;
}

.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-top: 1px solid #34291f;
}

.player-row:first-child {
  border-top: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.updates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.updates-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.update-item {
  border-top: 1px solid #3c3028;
  padding: 0.75rem 0;
}

.update-title {
  margin: 0.35rem 0 0;
  color: var(--text);
}

.official-rust-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.official-rust-thumb,
.official-rust-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid #3c3028;
}

.official-rust-card {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid #3c3028;
}

.official-rust-card:first-child {
  border-top: 0;
}

.official-rust-card h4 {
  margin: 0.25rem 0 0.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.news-meta {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card h4 {
  line-height: 1.3;
}

.pinned {
  border-color: #8f6d18;
  background: linear-gradient(180deg, #241b12, #1a140f);
}

.category-card h4 {
  margin-bottom: 0.55rem;
}

.split {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.board-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-top: 1px solid #3c3028;
}

.name {
  margin: 0.2rem 0;
  font-weight: 700;
}

.score {
  margin: 0;
  color: var(--gold);
  font-size: 0.92rem;
}

.chip {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  background: #352912;
  border: 1px solid #75581a;
  color: #f0d57d;
}

.muted-chip {
  background: #25211c;
  border-color: #4d4034;
  color: var(--text-muted);
}

.support-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #604f27;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a2116, #1d1712);
}

.support-box p {
  margin: 0;
  color: var(--text-muted);
}

.support-box h4 {
  margin: 0.45rem 0 0.8rem;
  color: var(--gold);
}

.tiny {
  font-size: 0.78rem;
  margin-top: 0.8rem;
}

.rules-page {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.2rem;
  width: min(980px, 100%);
  margin: 0 auto;
}

.rules-section h3 {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  color: var(--gold);
  border-bottom: 1px solid #3e3127;
  padding-bottom: 0.45rem;
}

.rules-section ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.5;
}

.rules-section li + li {
  margin-top: 0.4rem;
}

.connect-list {
  margin: 0;
  padding-left: 1.4rem;
}

.connect-list li {
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.5;
}

.connect-list code {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--gold);
  background: transparent;
  padding: 0;
}

.rules-page .panel {
  background: linear-gradient(180deg, #19130f, #120f0d);
}

.rules-table-wrap {
  overflow-x: auto;
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #453629;
  background: #1c1713;
}

.rules-table th,
.rules-table td {
  border-top: 1px solid #3a2f26;
  padding: 0.6rem 0.7rem;
  text-align: left;
}

.rules-table th {
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-weight: 700;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.store-item-card {
  background: linear-gradient(180deg, #171c26, #121722);
  border: 1px solid #9e2f40;
  border-radius: 12px;
  padding: 0.75rem;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.store-item-card h4 {
  margin: 0.35rem 0 0.3rem;
  font-size: 1rem;
}

.starter-main-icons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.starter-main-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #6b4b2f;
  background: #1d2433;
  display: grid;
  place-items: center;
}

.starter-main-icon img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #6b4b2f;
  background: #1d2433;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.2rem;
}

.item-thumb img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blood-cost {
  color: #e55959;
  font-weight: 700;
}

.blood-cost i {
  font-size: 0.8rem;
}

.btn-sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.purchase-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.72);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 1rem;
}

.purchase-modal-backdrop[hidden] {
  display: none !important;
}

.purchase-modal {
  width: min(540px, 100%);
}

.wallet-summary {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.wallet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  min-width: 330px;
}

.wallet-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.wallet-pack-card h4 {
  margin-bottom: 0.55rem;
}

.pack-price-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.2rem 0 0.75rem;
}

.blood-pack-logo-small {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-card {
  max-width: 560px;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.auth-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-form input {
  background: #1b1613;
  border: 1px solid #5c4738;
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
}

.auth-form select {
  background: #1b1613;
  border: 1px solid #5c4738;
  color: var(--text);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .hero,
  .timer-meta,
  .countdown,
  .store-grid,
  .wallet-packs-grid,
  .wallet-grid,
  .feature-tabs-grid,
  .features-grid,
  .quick-grid,
  .news-grid,
  .live-grid,
  .map-layout,
  .updates-grid,
  .category-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .wallet-summary {
    align-items: start;
    flex-direction: column;
  }

  .wallet-stats {
    min-width: 0;
    width: 100%;
  }

  .site-footer-inner {
    flex-direction: column;
  }

  .official-rust-item,
  .official-rust-card {
    grid-template-columns: 1fr;
  }

  .footer-right {
    text-align: left;
  }

}

@media (prefers-reduced-motion: reduce) {
  .backdrop {
    animation: none;
  }

  body {
    transition: none;
  }
}


/* Keep Google Translate UI hidden; language is controlled by our switcher. */
#google_translate_element,
.goog-te-banner-frame.skiptranslate,
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

body {
  top: 0 !important;
}
