/* =====================================================================
   ArjunaRO theme: deep crimson + royal gold (matches the ArjunaRO logo).
   ===================================================================== */
:root { --bg: #120407; --bg-2: #1a0609; --blue: #c8372f; --violet: #c9952e; }
body { background: radial-gradient(1200px 700px at 50% -10%, #3a0a10 0%, transparent 70%), #120407; }
.mesh i:nth-child(1) { background: #8a1018; opacity: .22; }
.mesh i:nth-child(2) { background: #b8861d; opacity: .12; }
.mesh i:nth-child(3) { background: #5a0b12; opacity: .22; }
.mapbg { filter: sepia(.6) saturate(1.4) hue-rotate(-25deg) blur(1px) !important; opacity: .10 !important; }
.nav { background: rgba(26, 6, 9, .78) !important; border-color: rgba(240,189,79,.28) !important; }
.brand .word { height: 26px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.brand img:first-child { border-radius: 50%; }
.crest { box-shadow: 0 0 0 2px #f0bd4f, 0 0 0 4px rgba(42,10,14,.9), 0 0 0 5px rgba(240,189,79,.5), 0 6px 12px rgba(0,0,0,.6), 0 0 18px rgba(240,189,79,.35) !important; }

/* launcher download (filled in by arjuna.js once a release exists) */
.t-launcher.dl-ready { cursor: pointer; }
.t-launcher.dl-ready b { color: #ffe39a; }
.stepper .dl-box { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.stepper .dl-meta { display: inline; margin: 0; font-size: 12px; color: #d8c4a6; white-space: nowrap; }
.stepper .dl-note, .stepper .dl-sha { display: block; margin-top: 6px; font-size: 11px; line-height: 1.35; color: #a99083; }
.stepper .dl-note a { color: #f0bd4f; text-decoration: underline; text-underline-offset: 2px; }
.stepper .dl-fallback { display: inline-flex; margin-top: 10px; }
.stepper .dl-sha { user-select: all; font-family: ui-monospace, Consolas, monospace; font-size: 9.5px; word-break: break-all; opacity: .8; }

/* ---------- help / privacy pages ---------- */
body.doc-page { min-height: 100vh; padding: 0 16px 40px; background: #120407; color: #f3e7cf; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.doc-top { max-width: 900px; margin: 0 auto; padding: 18px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; z-index: 2; }
.doc-top .brand { display: inline-flex; align-items: center; gap: 10px; }
.doc-top .brand img:first-child { border-radius: 50%; }
.doc-top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.doc-top nav a { color: #e9d3ae; font-weight: 600; font-size: 14px; text-decoration: none; }
.doc-top nav a:hover { color: #ffdb84; }
.doc { position: relative; z-index: 2; max-width: 900px; margin: 6px auto 0; padding: 34px 38px 30px; border-radius: 16px; }
.doc h1 { font-family: Cinzel, Georgia, serif; font-size: clamp(26px, 3.4vw, 36px); color: #f7efd9; margin: 4px 0 8px; }
.doc h2 { font-family: Cinzel, Georgia, serif; font-size: 20px; color: #ffe3a3; margin: 0 0 10px; }
.doc .lead { color: #dcc8a6; font-size: 16px; margin: 0 0 18px; }
.doc section { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid rgba(240, 189, 79, .18); scroll-margin-top: 20px; }
.doc p, .doc li { line-height: 1.65; font-size: 15px; color: #eadbbf; }
.doc ol, .doc ul { padding-left: 22px; margin: 6px 0; }
.doc li { margin: 4px 0; }
.doc a { color: #ffd36a; }
.doc code { background: rgba(0, 0, 0, .35); border: 1px solid rgba(240, 189, 79, .2); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.doc .note { font-size: 13px; color: #b9a183; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.doc .toc a { text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(240, 189, 79, .4); background: rgba(240, 189, 79, .08); color: #ffdb84; }
.doc .toc a:hover { background: rgba(240, 189, 79, .18); }
.doc-foot { position: relative; z-index: 2; max-width: 900px; margin: 26px auto 0; text-align: center; font-size: 14px; color: #cdb79a; }
.doc-foot a { color: #e9d3ae; }
.doc-foot .legal { font-size: 12px; color: #8e7466; margin-top: 10px; }
@media (max-width: 640px) { .doc { padding: 24px 20px; } }
/* sign-up form: small print under the e-mail field */
.form .email-note { margin: -4px 0 6px; font-size: 12px; color: #b9a183; }

/* ---------- BM | EN switch (nav) ---------- */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid rgba(240,189,79,.3); }
.lang-switch button { appearance: none; border: 0; background: transparent; color: #d8c4a6; font: 700 11.5px/1 Inter, system-ui, sans-serif;
  padding: 6px 9px; border-radius: 999px; cursor: pointer; letter-spacing: .04em; }
.lang-switch button:hover { color: #ffe3a3; }
.lang-switch.mobile { display: none; }
.lang-switch button.on { background: linear-gradient(180deg, #ffe9a8, #f0bd4f); color: #2a1903; }

/* help / privacy pages: one copy per language, the chosen one is shown (English when the script did not run) */
[data-lang-block] { display: none; }
html:not([data-lang]) [data-lang-block="en"], html[data-lang="en"] [data-lang-block="en"], html[data-lang="ms"] [data-lang-block="ms"] { display: block; }
.doc-top nav { align-items: center; }
.doc-top .lang-switch { margin-left: 4px; }

/* ---------- hero: download launcher button ---------- */
.hero-cta .btn-dl { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(240,189,79,.55); color: #ffe3a3; }
.hero-cta .btn-dl svg { width: 18px; height: 18px; flex: none; }
.hero-cta .btn-dl:hover { border-color: #f0bd4f; color: #fff1c9; background: rgba(240,189,79,.12); }
/* three buttons no longer fit beside the title: let them drop below it instead of covering it */
@media (min-width: 901px) {
  /* everything centred, so the panel has no empty right half */
  .hero-panel { flex-wrap: wrap; row-gap: 18px; justify-content: center; text-align: center; }
  .hero-copy { flex: 1 1 100%; }
  .hero-copy h1 { white-space: normal; }
  .hero-copy .kicker, .hero-copy .sub { margin-left: auto; margin-right: auto; }
  .hero-cta { flex: 1 1 100%; justify-content: center; }
}

/* ---------- empty live cards: invite instead of a blank panel ---------- */
.empty-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 34px 12px; }
.empty-hero svg { width: 44px; height: 44px; color: #f0bd4f; opacity: .85; filter: drop-shadow(0 0 10px rgba(240,189,79,.35)); }
.empty-hero p { margin: 0; color: #b9a982; font-size: 14px; }
.empty-cta { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 13.5px; color: #ffdb84; text-decoration: none; }
.empty-cta:hover { color: #fff1c9; text-decoration: underline; text-underline-offset: 3px; }
.roster .empty-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---------- why ArjunaRO ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { position: relative; padding: 24px 22px 20px; }
.why-card h3 { margin: 12px 0 6px; font-family: "Cinzel", Georgia, serif; font-size: 17px; color: #ffe3a3; }
.why-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #d9c7a8; }
.why-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #f0bd4f;
  background: radial-gradient(circle at 35% 30%, rgba(240,189,79,.28), rgba(240,189,79,.06)); box-shadow: inset 0 0 0 1px rgba(240,189,79,.35); }
.why-ico svg { width: 22px; height: 22px; }
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- gallery ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gal-item { position: relative; margin: 0; padding: 8px; overflow: hidden; }
.gal-item a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; cursor: zoom-in; }
.gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item figcaption { padding: 10px 6px 4px; font-size: 13.5px; color: #d9c7a8; text-align: center; }
.gal-box { max-width: min(1280px, 94vw); width: auto; padding: 0; border: 1px solid rgba(240,189,79,.5); border-radius: 12px; background: #120407; color: #eadbbf; overflow: visible; }
.gal-box::backdrop { background: rgba(8, 2, 3, .86); backdrop-filter: blur(3px); }
.gal-box img { display: block; max-width: 100%; max-height: 82vh; border-radius: 12px 12px 0 0; }
.gal-box p { margin: 0; padding: 10px 14px 12px; text-align: center; font-size: 14px; }
.gal-x { position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #f0bd4f; background: #2a0a0f; color: #ffe3a3; font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  /* "What's happening now": stacked cards instead of a sideways carousel where every card was as tall as the
     notice board (empty Hall of heroes / online cards and one-line stats stretched to ~700px) */
  .bento { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
  .bento > .tile { flex: none; width: auto; min-width: 0; }
  .bento > .t-news, .bento > .t-podium, .bento > .t-online { grid-column: 1 / -1; }
  .fantasy .t-stat { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 16px; }
  .fantasy .t-stat .ico { width: 34px; height: 34px; }
  .fantasy .t-stat span { font-size: 10px; letter-spacing: .1em; line-height: 1.35; }
  .fantasy .t-stat b { font-size: 17px; }
  .fantasy .t-stat b:has(.flag-my) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .fantasy .t-stat .flag-my { width: 18px; height: auto; }
  /* step 2: the download button, size and checksum belong in the text column, not under the step number */
  .stepper li > .dl-box, .stepper li > .dl-note, .stepper li > .dl-sha, .stepper li > .dl-fallback { grid-column: 2; }
  .stepper .dl-box { justify-content: flex-start; }
  /* footer links shared the header menu's class name and were hidden with it */
  .footer .links { display: flex !important; flex-wrap: wrap; gap: 4px 14px; justify-content: center; width: 100%; }
  .footer-row { justify-content: center; text-align: center; }
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
  .why-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 18px 16px; }
  .why-card .why-ico { grid-row: span 2; }
  .why-card h3 { margin: 2px 0 4px; font-size: 15.5px; }
  .why-card p { font-size: 13.5px; }
  .gal-grid { grid-template-columns: 1fr; gap: 12px; }
  .gal-x { top: 6px; right: 6px; }
  /* the BM | EN switch also shows in the closed mobile bar, next to the menu button */
  .nav .lang-switch.mobile { display: inline-flex; margin-left: auto; margin-right: 8px; }
  .nav-end .lang-switch { display: none; }
}
@media (max-width: 360px) {
  .bento { gap: 10px; }
  .fantasy .t-stat { padding: 14px 12px; }
  .fantasy .t-stat b { font-size: 15px; }
}
