/* Raid Addicts site (12-01): dark with the logo's gold and blue. */
:root {
  --bg: #0b0908;
  --bg2: #15110e;
  --panel: #1b1612;
  --edge: #3b2f22;
  --text: #ece2d2;
  --dim: #b3a58f;
  --gold: #e8b64e;
  --gold2: #fbd98a;
  --blue: #3fa8ff;
  --red: #e0322b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -200px, #2a1d0c 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, sans-serif;
}
/* Faded pictures behind everything (12-01, Jordan): the knight on the right; a second picture
   (dragon) can go on the left via body.has-left. Edges are baked soft into the .webp files,
   so no hard edge shows at any window width. */
body::before, body::after {
  content: ""; position: fixed; top: 0; bottom: 0; width: 60vw; z-index: -1; pointer-events: none;
  opacity: .24;
}
body::before { right: 0; background: url("knight.webp") no-repeat right center / contain; }
body.has-left::after { left: 0; background: url("left.webp") no-repeat left center / contain; }
a { color: var(--gold2); }
a:hover { color: #fff; }

/* Top bar */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 14px 16px;
}
.nav .brand {
  display: inline-block; text-decoration: none; transform: rotate(-8deg); padding: 6px 4px;
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif; font-weight: 900; font-size: 38px; letter-spacing: 3px;
  background: linear-gradient(180deg, #fff3c4 0%, #f3c866 35%, #c98d26 70%, #8a5a12 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 #3b2406) drop-shadow(0 0 14px #e8b64e55);
}
.nav .brand:hover { filter: drop-shadow(0 2px 0 #3b2406) drop-shadow(0 0 20px #e8b64e99); }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a {
  display: block; padding: 6px 12px; border-radius: 6px; color: var(--dim); text-decoration: none; font-weight: 600;
}
.nav ul a:hover, .nav ul a.on { color: var(--gold2); background: #ffffff0d; }

/* Hero */
.hero { text-align: center; padding: 30px 16px 10px; }
.hero img.logo { width: min(760px, 100%); height: auto; filter: drop-shadow(0 6px 30px #e8b64e33); }
.hero .tag { font-size: 20px; color: var(--dim); max-width: 720px; margin: 6px auto 26px; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none;
  background: linear-gradient(#f3c866, #c98d26); color: #1d1206; border: 1px solid #ffe2a0;
  box-shadow: 0 4px 18px #e8b64e33;
}
.btn:hover { filter: brightness(1.08); color: #1d1206; }
.btn.alt { background: transparent; color: var(--gold2); border: 1px solid var(--edge); box-shadow: none; }
.btn.alt:hover { border-color: var(--gold); color: #fff; }

/* Content */
main { max-width: 1080px; margin: 0 auto; padding: 10px 16px 60px; }
h1, h2, h3 { color: var(--gold); line-height: 1.25; }
h1 { font-size: 34px; margin: 30px 0 10px; }
h2 { font-size: 26px; margin: 40px 0 12px; }
.lead { color: var(--dim); font-size: 19px; margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, #1f1914, var(--panel)); border: 1px solid var(--edge); border-radius: 12px;
  padding: 20px 22px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--dim); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 40px 0; opacity: .5; }

/* Steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: s; position: relative; padding: 16px 18px 16px 64px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 12px;
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #1d1206; background: var(--gold);
}
ol.steps li strong { color: var(--text); }
.note { color: var(--dim); font-size: 15px; }
code { background: #2a221a; padding: 1px 6px; border-radius: 4px; color: var(--gold2); }

/* News */
.post { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; margin: 0 0 30px; }
.post .date { color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.post h3 { margin: 4px 0 8px; font-size: 22px; }
.post ul { margin: 6px 0 0; padding-left: 20px; color: var(--dim); }

footer { border-top: 1px solid var(--edge); color: var(--dim); font-size: 14px; text-align: center; padding: 24px 16px 40px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { flex-direction: column; }
  h1 { font-size: 28px; }
  .hero .tag { font-size: 17px; }
}

footer .legal-links { margin-bottom: 8px; }
footer .legal-links a { color: var(--dim); text-decoration: none; }
footer .legal-links a:hover { color: var(--gold2); }
main.legal { max-width: 820px; }
main.legal h2 { font-size: 21px; margin-top: 28px; }
main.legal ul { padding-left: 22px; }
main.legal li { margin: 6px 0; }
footer .engine-credit { margin-top: 8px; font-size: 12px; opacity: .75; max-width: 760px; margin-left: auto; margin-right: auto; }
footer .engine-credit a { color: var(--dim); }

/* 12-01: the brand is now the crowned RA icon (Jordan), replacing the KMRA lettering. */
.nav .brand { transform: none; padding: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box; line-height: 0; }
.nav .brand img { width: 72px; height: 72px; display: block; filter: drop-shadow(0 0 14px #e8b64e44); }
.nav .brand:hover img { filter: drop-shadow(0 0 20px #e8b64e88); }
@media (max-width: 600px) { .nav .brand img { width: 60px; height: 60px; } }

/* 12-01: tester walkthrough thumbnails (Join page) with hover zoom and a click-to-open window. */
.howto { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 8px 0 10px; }
.howto-card { margin: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.howto-num { color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.howto-card img { width: 100%; height: 150px; object-fit: cover; object-position: center top; border-radius: 8px; border: 1px solid #ffffff14; cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; position: relative; }
.howto-card img:hover { transform: scale(1.12); box-shadow: 0 10px 30px #000c; z-index: 2; }
.howto-card figcaption { color: var(--dim); font-size: 14px; line-height: 1.5; }
.howto-card figcaption strong { color: var(--text); }
.howto-text { justify-content: center; }
.howto-big { font-size: 20px; font-weight: 700; color: var(--gold2); line-height: 1.3; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: #000000e6; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 80vh; border-radius: 10px; border: 1px solid var(--edge); cursor: default; }
.lightbox-caption { color: var(--text); max-width: 900px; text-align: center; margin: 12px 0 0; }
.lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
/* Walkthrough cards use the full window width (not the 1080px text column), so wide screens fit 5-6 per row. */
.howto { width: min(1700px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* 12-01 (Jordan): bigger step cards, gold step headings, hover enlarges enough to read. */
.howto { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 22px; }
.howto-card { padding: 16px; gap: 12px; }
.howto-num { font-family: "Cinzel Decorative", Georgia, serif; color: var(--gold); font-size: 18px; letter-spacing: 1px; text-transform: none; font-weight: 700; }
.howto-big { font-size: 24px; }
.howto-card img { height: 260px; transform-origin: center center; }
.howto-card img:hover { transform: scale(1.7); z-index: 20; box-shadow: 0 16px 50px #000e; border-color: var(--gold); }
.howto-card figcaption { font-size: 15.5px; }
@media (max-width: 600px) { .howto { grid-template-columns: 1fr; } .howto-card img:hover { transform: none; } }
/* 12-01 (Jordan): hover zoom 35% bigger (1.7 -> 2.3). */
.howto-card img:hover { transform: scale(2.3); }
@media (max-width: 600px) { .howto-card img:hover { transform: none; } }
