/* Up to 9 — shared stylesheet for the static content pages (/regler/, /faq/, …).
   Same "Velvet & Brass" palette as the game (web/src/style.css) and the /bot/
   policy pages. The pages are plain server-served HTML: keep this file
   self-contained (no imports beyond the Google Fonts link in each page). */

:root {
  --room-1: #3a2b20; --room-2: #241811; --room-3: #150d07;
  --brass: #cda349; --brass-bright: #f3da93; --brass-deep: #95722b;
  --cream: #f5edd8; --cream-2: #ece0c2; --ink: #241b11; --ink-soft: #6a5b44;
  --line: rgba(149, 114, 43, 0.5); --line-soft: rgba(149, 114, 43, 0.28);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --shadow-panel: 0 24px 60px -22px rgba(0, 0, 0, 0.7);
  --suit-red: #a33327;
}
* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100%; overflow-x: hidden;
  font-family: var(--font-body); color: var(--cream);
  background: radial-gradient(ellipse 130% 90% at 50% -25%, var(--room-1) 0%, var(--room-2) 52%, var(--room-3) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
/* faint deco sunburst, like the game's lobby */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 20%, rgba(205, 163, 73, 0.06) 0deg 1.6deg, transparent 1.6deg 13deg);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 58%);
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 58%);
}
.wrap { position: relative; z-index: 1; max-width: 52rem; margin: 0 auto; padding: clamp(28px, 6vw, 56px) 20px 56px; }

/* ---------- masthead + nav ---------- */
.masthead { text-align: center; margin-bottom: clamp(22px, 4vw, 34px); animation: rise 0.55s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mark { width: 52px; height: 52px; display: inline-block; transform: rotate(-4deg); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5)); }
.kicker {
  margin: 14px 0 6px; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.34em; text-indent: 0.34em; color: var(--brass); text-transform: uppercase;
}
h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 5.4vw, 38px); letter-spacing: 0.02em; color: var(--cream); }
.rule { display: flex; align-items: center; gap: 12px; margin: 18px auto 0; max-width: 320px; color: var(--brass); }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.rule::after { background: linear-gradient(90deg, var(--line), transparent); }
.rule span { font-size: 11px; letter-spacing: 0.3em; text-indent: 0.3em; }

.topnav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 14px;
  margin: 16px auto 0; font-size: 0.92rem;
}
.topnav a { color: rgba(245, 237, 216, 0.82); text-decoration: none; padding: 3px 2px; border-bottom: 1px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.topnav a:hover { color: var(--brass-bright); border-bottom-color: var(--brass-bright); }
.topnav a[aria-current='page'] { color: var(--brass); border-bottom-color: var(--brass); }
.topnav .play {
  color: var(--ink); background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  border: 1px solid var(--brass-deep); border-radius: 999px; padding: 5px 16px; font-weight: 600;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.6);
}
.topnav .play:hover { filter: brightness(1.06); border-bottom-color: transparent; color: var(--ink); }

/* ---------- the document card ---------- */
.doc {
  position: relative; background: linear-gradient(180deg, var(--cream), var(--cream-2));
  color: var(--ink); border: 1px solid var(--brass-deep); border-radius: 12px;
  box-shadow: var(--shadow-panel); padding: clamp(28px, 6vw, 54px) clamp(22px, 5.5vw, 54px);
  animation: rise 0.55s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  counter-reset: sec;
}
.doc::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--line-soft); border-radius: 8px; pointer-events: none; }
.doc > * { position: relative; }

.lead { font-size: 1.06rem; font-weight: 500; color: var(--ink); margin: 0 0 1.6em; }
p, li { line-height: 1.68; color: #4a3d2c; font-weight: 400; }
p { margin: 0.8em 0; }
ul, ol { margin: 0.8em 0; padding-left: 1.25em; }
li { margin: 0.45em 0; }
li::marker { color: var(--brass-deep); }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); transition: color 0.15s ease; }
a:hover { color: #6f5417; text-decoration-color: currentColor; }

h2 {
  counter-increment: sec; margin: 2em 0 0.5em; font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
h2::before { content: '§ ' counter(sec); flex: none; font-size: 0.8rem; font-weight: 600; color: var(--brass-deep); letter-spacing: 0.1em; }
h2::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); align-self: center; }
/* .plain: no § numbering (FAQ, news, about) */
.doc.plain h2::before { content: none; }
h3 { margin: 1.5em 0 0.4em; font-size: 0.95rem; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 0.93rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); line-height: 1.5; color: #4a3d2c; vertical-align: top; }
th { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 0.85rem; letter-spacing: 0.04em; }
td.num, th.num { text-align: center; }
tr:last-child td { border-bottom: none; }
.tblwrap { overflow-x: auto; }

/* ---------- bits ---------- */
.callout {
  margin: 1.2em 0; padding: 12px 16px; border-left: 3px solid var(--brass);
  background: rgba(205, 163, 73, 0.12); border-radius: 0 8px 8px 0;
}
.callout p { margin: 0.3em 0; }
.cards { font-family: Georgia, serif; white-space: nowrap; letter-spacing: 0.04em; }
.r { color: var(--suit-red); } /* ♥ ♦ */
.faq-q { font-size: 1rem; }
.suits { margin: 2.4em 0 0.6em; text-align: center; color: var(--brass-deep); font-size: 14px; letter-spacing: 0.9em; text-indent: 0.9em; }
.updated { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin: 0.4em 0 0; }

.cta-row { text-align: center; margin: 2em 0 0.4em; }
.cta {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  color: var(--ink); background: linear-gradient(180deg, var(--brass-bright), var(--brass));
  border: 1px solid var(--brass-deep); border-radius: 999px; padding: 11px 30px;
  text-decoration: none; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.55);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.cta:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--ink); }

/* news entries */
.rel { margin: 1.6em 0; }
.rel .ver { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--brass-deep); letter-spacing: 0.1em; }

/* ---------- footer ---------- */
.footer { margin-top: 26px; text-align: center; font-size: 0.9rem; color: rgba(245, 237, 216, 0.75); animation: rise 0.55s 0.27s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.footer a { color: var(--brass); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s ease, color 0.15s ease; }
.footer a:hover { color: var(--brass-bright); border-bottom-color: var(--brass-bright); }
.footer .sep { margin: 0 10px; color: var(--brass-deep); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .masthead, .doc, .footer { animation: none; } }
@media print {
  body { background: #fff; color: #000; }
  body::before, .footer, .mark, .topnav { display: none; }
  .doc { border: none; box-shadow: none; background: #fff; padding: 0; }
  .doc::before { display: none; }
  h1, .kicker { color: #000; }
}
