/* The website wears the game's look: solid slate windows with a lavender accent over the deep purple night sky, with the gold coin and gold wordmark as the brand.
   Colours are the game's --ui-* tokens (client/src/skin.css) plus a gold from the coin. */
:root {
  --ui-bg0: #121124; --ui-bg1: #1a1833; --ui-bg2: #25214a; --ui-bg3: #302b5c;
  --ui-btn: #3b3568; --ui-btn-hi: #4a4380; --ui-line: #0e0d1c; --ui-line-hi: #5a529a;
  --ui-accent: #9a8fd8; --ui-accent-hi: #c4b8ff; --ui-text: #e0dcf8;
  --gold: #b7a0ff; --gold-hi: #d3c5ff;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Fugaz One', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: #fff; font: 400 18px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; background: #0f0f18; text-shadow: none; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 100% at 50% 100%, rgba(9, 8, 22, 0.87) 0%, rgba(9, 8, 22, 0.8) 55%, rgba(9, 8, 22, 0) 100%) bottom / 100% 240px no-repeat, url('/assets/bg-plaza.webp') center / cover no-repeat, radial-gradient(ellipse 80% 70% at 50% 35%, #3c3376 0%, #231f4a 38%, #151430 72%, #0d0d1c 100%); pointer-events: none; }
a { color: var(--ui-accent-hi); }
a:hover { color: #e6e5f0; }

/* Legal pages: one solid window with the gold coin on its top edge and the gold wordmark under it. */
.doc { padding: 56px 16px 48px; }
.doc .wrap { position: relative; width: 100%; max-width: 760px; margin: 0 auto; padding: 52px 34px 36px; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; color: #fff;
  background: var(--ui-bg1); border: 1px solid var(--ui-line-hi); border-radius: 6px; box-shadow: 0 0 70px rgba(124, 96, 220, 0.28), 0 6px 20px rgba(8, 8, 14, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.emblem { display: block; position: absolute; z-index: 2; left: 50%; top: -38px; width: 76px; height: 76px; transform: translateX(-50%); background: url(/assets/coven-moon.png) center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.wordmark { display: block; width: min(300px, 100%); aspect-ratio: 337 / 162; margin: 0 auto 20px; background: url(/assets/coven-wordmark-v2.png) center / contain no-repeat; }
.wordmark + h1 { margin-top: 0; padding-top: 24px; border-top: 1px solid var(--ui-line-hi); }
.doc h1, .doc h2 { font-family: var(--font-title); font-style: normal; font-weight: 400; color: var(--ui-text); line-height: 1.05; margin: 0 0 12px; }
.doc h1 { font-size: clamp(30px, 4.5vw, 40px); }
.doc h2 { font-size: 22px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ui-line); }
.doc h3 { font-size: 16px; font-weight: 700; color: var(--gold-hi); margin: 18px 0 4px; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.9); font-size: 15px; }
.doc .updated { color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.doc strong { color: #fff; }
.doc a { color: var(--ui-accent-hi); }
.doc a:hover { color: #e6e5f0; }
@media (max-width: 520px) { .doc { padding-left: 14px; padding-right: 14px; } .doc .wrap { padding: 48px 22px 28px; } }

/* Links at the foot, outside the window, in white. */
.doc-links { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 760px; margin: 28px auto 0; font-size: 13px; letter-spacing: 0.08em; }
.doc-links a { color: #fff; text-decoration: none; }
.doc-links a:hover { color: rgba(255, 255, 255, 0.75); }

.doc-links .fr, .auth-legal .fr { display: flex; justify-content: center; gap: 30px; }
.doc-links .fine { margin: 0; font-size: 13px; letter-spacing: 0.04em; color: #fff; text-align: center; }
.doc-links .fine a { color: #fff; text-decoration: underline; }
.doc-links .fine { font-weight: 400; opacity: 0.33; }
.fr a.ico { display: inline-flex; } .fr a.ico svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.fr a.ico[aria-label="Discord"] svg { width: 27px; height: 27px; }
.fr a.ico[aria-label="Instagram"] svg, .fr a.ico[aria-label="TikTok"] svg { width: 21px; height: 21px; }
.fr a.ico { align-items: center; }
.doc-links .fr + .fr { align-items: center; margin-top: 4px; }
.doc-links .fr + .fr + .fine { margin-top: 14px; }


/* Phones: smaller everything so the painting shows around the window. */
@media (max-width: 520px) {
  .doc { padding: 36px 30px 24px; }
  .doc .wrap { padding: 28px 18px 20px; font-size: 13px; }
  .emblem { width: 38px; height: 38px; top: -19px; }
  .wordmark { width: min(150px, 100%); margin-bottom: 10px; }
  .wordmark + h1 { padding-top: 14px; }
  .doc h1 { font-size: 26px; }
  .doc h2 { font-size: 18px; margin-top: 20px; padding-top: 14px; }
  .doc h3 { font-size: 14px; }
  .doc p, .doc li { font-size: 13px; }
  .doc .updated { font-size: 12px; }
  .doc-links { margin-top: 16px; }
  .doc-links .fr { gap: 16px; }
  .doc-links a { font-size: 11px; }
  .doc-links .fine { font-size: 11px; }
  .fr a.ico svg { width: 20px; height: 20px; }
  .fr a.ico[aria-label="Discord"] svg { width: 22px; height: 22px; }
  .fr a.ico[aria-label="Instagram"] svg, .fr a.ico[aria-label="TikTok"] svg { width: 17px; height: 17px; }
}

html { overflow-x: clip; }

/* Short pages (What's On, What's New): the window sits in the middle and the footer links on the bottom of the screen. */
body.short .doc { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.short .doc .wrap { margin: auto; }
body.short .doc-links { margin-bottom: 0; }

/* A dark layer over the background picture on every page except the home page (which is built separately). */
body::after { content: ''; position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.67); pointer-events: none; }

.fr a.ico svg { overflow: visible; }
