/* SRoad Mobile website: dark brown and gold, the layout of the reference pages, the framed banner. */
:root {
  --bg: #0f0b07;
  --bg-2: #17110b;
  --panel: #1c150e;
  --panel-2: #231a11;
  --line: #3a2c1b;
  --line-gold: #8a6a2a;
  --gold: #e8c46a;
  --gold-2: #c9973d;
  --text: #ece2d0;
  --muted: #a8977d;
  --green: #48d17a;
  --red: #e0675a;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(120, 80, 30, 0.18), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 20px;
  background: rgba(12, 9, 6, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font: 700 1.55rem/1 var(--serif);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none !important;
}
.nav { display: flex; gap: 6px; flex: 1; }
.nav a {
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 7px 14px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none;
}
.nav a:hover { border-color: var(--line); }
.nav a.active { border-color: var(--gold-2); color: var(--gold); background: rgba(232, 196, 106, 0.07); }
.langs { display: flex; gap: 6px; }
.langs button {
  font: 600 0.85rem var(--sans); color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
}
.langs button.on { border-color: var(--gold-2); color: var(--gold); }

/* Banner: the art framed by gold lines, the logo and the info card on the left */
.banner {
  position: relative;
  min-height: 560px;
  border-top: 4px solid var(--line-gold);
  border-bottom: 4px solid var(--line-gold);
  box-shadow: inset 0 0 0 1px rgba(232, 196, 106, 0.25);
  overflow: hidden;
  display: flex; align-items: center;
}
.banner-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  background: #120d08 url("banner.jpg") 70% center / cover no-repeat;
}
.banner-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 7, 4, 0.75) 0%, rgba(10, 7, 4, 0.35) 34%, rgba(10, 7, 4, 0) 55%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.45) 0%, rgba(10, 7, 4, 0) 30%);
}
.banner-inner {
  position: relative;
  width: min(520px, 90%);
  margin-left: max(5vw, 24px);
  padding: 36px 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.banner-logo { width: 100%; max-width: 470px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.banner-card {
  width: 100%;
  text-align: center;
  background: rgba(14, 10, 7, 0.82);
  border: 1px solid rgba(232, 196, 106, 0.18);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.card-title { margin: 0; font: 700 1.45rem/1.25 var(--sans); text-transform: uppercase; letter-spacing: 0.02em; color: #fff; }
/* Store-style platform buttons (icon + two lines), the PC one gold framed. */
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.badge {
  flex: 1 1 128px; max-width: 158px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 9px;
  background: #050403; border: 1px solid #8d8d8d; color: #fff;
  text-decoration: none !important; text-align: left;
  transition: transform 0.15s, border-color 0.15s;
}
.badge:hover { transform: translateY(-1px); border-color: #fff; }
.badge .b-icon { flex: none; width: 26px; height: 26px; display: grid; place-items: center; }
.badge .b-icon svg { width: 26px; height: 26px; }
.badge.android .b-icon { color: #3ddc84; }
.badge.pc { border: 1.5px solid var(--gold); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 14px rgba(232, 196, 106, 0.25); }
.badge.pc .b-icon { color: var(--gold); }
.badge .b-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.badge small { font-size: 0.66rem; letter-spacing: 0.02em; color: #d9d9d9; white-space: nowrap; }
.badge strong { font-size: 1.02rem; font-weight: 700; white-space: nowrap; }
.badge.soon { opacity: 0.6; }
.badge.soon small { color: var(--gold); }
.card-status { margin: 8px 0 0; font-weight: 700; color: var(--green); letter-spacing: 0.04em; }
.card-status.down { color: var(--red); }
.card-text { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; }

/* Intro under the banner */
.intro { text-align: center; padding: 44px 16px 8px; max-width: 900px; margin: 0 auto; }
.game-title {
  margin: 0;
  font: 700 clamp(2.6rem, 6vw, 4.2rem)/1.05 var(--serif);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #f6dd96 0%, #d8a64a 60%, #a8762a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.08rem; margin: 14px auto 18px; max-width: 660px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-weight: 700; color: var(--green); font-size: 0.92rem;
}
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-pill.down { color: var(--red); }
.status-pill.down .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.status-pill .muted { font-weight: 500; font-size: 0.85rem; }
.announce {
  display: block;
  margin: 26px auto 0;
  max-width: 760px;
  padding: 22px 20px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #241a10, #18110a);
  box-shadow: 0 0 24px rgba(232, 196, 106, 0.08), inset 0 0 18px rgba(232, 196, 106, 0.05);
  color: var(--gold);
  font: 700 clamp(1.05rem, 2.6vw, 1.7rem)/1.3 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
}

/* Sections */
.section { max-width: 1040px; margin: 0 auto; padding: 40px 16px 8px; }
.section-title {
  text-align: center; margin: 0 0 20px;
  font: 700 2rem/1.2 var(--serif);
  color: var(--gold); letter-spacing: 0.03em;
}
.note { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 16px 0 0; }

/* Download */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dl-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.dl-card h3 { margin: 0; font-size: 1.3rem; }
.dl-card .muted { margin: 4px 0 16px; font-size: 0.92rem; }
.btn {
  display: inline-block; min-width: min(200px, 100%);
  padding: 12px 22px; border-radius: 10px;
  background: linear-gradient(180deg, #f0d083, #c99a45);
  color: #2a1b08; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(201, 154, 69, 0.25);
}
.btn:hover { filter: brightness(1.06); }
.btn.off { background: var(--panel-2); color: var(--muted); box-shadow: none; border: 1px solid var(--line); cursor: default; }

/* Server information */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.info-cell {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
}
.info-label { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.info-value { color: var(--gold); font-weight: 700; font-size: 1.05rem; }

/* Updates */
.updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.updates li {
  display: flex; gap: 16px; align-items: baseline;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.upd-date { color: var(--gold); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.upd-text { color: var(--text); }

/* Ranking */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px 12px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tab {
  font: 600 0.92rem var(--sans); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; cursor: pointer;
}
.tab.on { color: var(--gold); border-color: var(--gold-2); background: rgba(232, 196, 106, 0.08); }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th { text-align: left; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rank-table td { padding: 9px 10px; border-bottom: 1px solid rgba(58, 44, 27, 0.6); }
.rank-table .pos { color: var(--gold-2); font-weight: 700; width: 48px; }
.rank-table .guild { margin-left: 10px; color: var(--muted); font-size: 0.82rem; }
.rank-table .num, .rank-table th.num { text-align: right; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-empty { text-align: center; color: var(--muted); margin: 18px 0 10px; }
.rank-time { text-align: center; color: var(--muted); font-size: 0.82rem; margin: 10px 0 0; }

/* Community */
.community { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.comm {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; color: var(--text); text-decoration: none !important;
}
.comm:hover { border-color: var(--line-gold); }
.comm-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.comm.facebook .comm-icon { background: #1b2a4a; color: #4c8dff; }
.comm.discord .comm-icon { background: #262a52; color: #8e98ff; }
.comm.zalo .comm-icon { background: #12324f; color: #4aa3ff; }
.comm-text { display: flex; flex-direction: column; }
.comm-text small { color: var(--muted); }

/* Footer */
.footer { text-align: center; padding: 48px 16px 40px; color: var(--muted); font-size: 0.88rem; }
.footer img { opacity: 0.85; border-radius: 8px; }
.footer p { margin: 6px 0; }

/* Phones */
@media (max-width: 860px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; padding: 6px 12px; }
  .langs { margin-left: auto; }
  .banner { min-height: 0; flex-direction: column; align-items: stretch; }
  .banner-video { position: relative; inset: auto; height: 62vw; object-position: 72% center; background-position: 72% center; }
  .banner-shade { top: 0; bottom: auto; height: 62vw; background: linear-gradient(0deg, rgba(15, 11, 7, 1) 0%, rgba(15, 11, 7, 0) 45%); }
  .banner-inner { width: auto; margin: -20vw 16px 0; padding: 0 0 24px; }
  .banner-logo { max-width: 300px; }
  .card-title { font-size: 1.15rem; }
  .download-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .updates li { flex-direction: column; gap: 2px; }
}
