/* Runner Gacha — shared stylesheet for content & policy pages */
:root {
  --bg-1: #070b1c;
  --accent: #ff7a59;
  --accent-2: #7c4dff;
  --accent-grad: linear-gradient(135deg, #ff7a59 0%, #ff5fa2 52%, #7c4dff 100%);
  --text: #eaf1fb;
  --text-dim: rgba(234, 241, 251, 0.66);
  --text-mute: rgba(234, 241, 251, 0.4);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-2: rgba(255, 255, 255, 0.18);
  --r-md: 14px;
  --r-lg: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, #1a2456 0%, transparent 60%),
    radial-gradient(ellipse at top, #0d1b3e 0%, #050913 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #ffb39c; text-decoration: none; }
a:hover, a:focus-visible { color: #fff; text-decoration: underline; }
:focus-visible { outline: 2px solid #ff7a59; outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; }

/* ── Header / nav ───────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 9, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 2px;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--accent); }
.nav-play {
  background: var(--accent-grad);
  color: #10061c !important;
  padding: 8px 16px !important;
  border-radius: 999px;
  font-weight: 800;
}
.nav-play:hover { filter: brightness(1.08); }

/* ── Layout ─────────────────────────────────── */
.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
main { flex: 1 0 auto; padding: 40px 0 64px; }

h1 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 38px 0 12px;
  padding-top: 6px;
}
h3 { font-size: 17px; font-weight: 800; margin: 24px 0 8px; }
p, ul, ol, table, .callout, .card-grid, figure { margin-bottom: 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--accent); }
strong { color: #fff; }
small { color: var(--text-mute); }

.lede { font-size: 18px; color: var(--text-dim); margin-bottom: 8px; }
.updated { font-size: 13px; color: var(--text-mute); margin-bottom: 28px; }
.muted { color: var(--text-dim); }

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Components ─────────────────────────────── */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table-scroll { overflow-x: auto; margin-bottom: 16px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); font-weight: 800; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent-grad); color: #10061c; }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; color: #10061c; }
.btn-ghost { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; color: #fff; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin-bottom: 8px; }
.toc ol { margin-bottom: 0; }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--border-2);
}
.r-common { color: #94a3b8; }
.r-rare { color: #38bdf8; }
.r-epic { color: #a855f7; }
.r-legendary { color: #ffb86b; }
.r-mythic { color: #ff6b94; }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: rgba(5, 9, 19, 0.6);
  padding: 28px 0 34px;
  font-size: 14px;
  color: var(--text-mute);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.footer-nav a { color: var(--text-dim); font-weight: 600; }
.site-footer p { margin-bottom: 6px; }

@media (max-width: 560px) {
  main { padding: 28px 0 48px; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .site-nav { gap: 4px 12px; }
  .site-nav a { font-size: 13px; }
}

@media print {
  .site-header, .site-footer, #rg-consent { display: none; }
  body { background: #fff; color: #000; }
}
