:root {
  --bg: #120d0a;
  --bg2: #1d1510;
  --panel: #241a14;
  --paper: #efe2c4;
  --paper2: #d9c69e;
  --ink: #1b1410;
  --gold: #d8b25c;
  --gold2: #f3d58b;
  --lib: #2f6f96;
  --lib2: #5fa9d6;
  --lib-dark: #173a52;
  --fas: #b0302a;
  --fas2: #e3574a;
  --fas-dark: #5b1512;
  --muted: #a8977c;
  --good: #6fbf73;
  --bad: #e35d50;
  --display: 'Bebas Neue', 'Oswald', 'League Gothic', 'AvenirNextCondensed-Bold', 'Futura-CondensedExtraBold', Impact, 'Roboto Condensed', 'sans-serif-condensed', 'Arial Narrow', 'DejaVu Sans Condensed', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--paper); font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
svg { display: block; width: 100%; height: 100%; }
[hidden] { display: none !important; }

/* ---------- Gesetzeskarten ---------- */
.policy {
  --w: 100px;
  width: var(--w); aspect-ratio: 0.7; border-radius: calc(var(--w) * 0.07);
  padding: calc(var(--w) * 0.06); position: relative;
  box-shadow: 0 calc(var(--w)*0.04) calc(var(--w)*0.12) rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.12);
  container-type: inline-size;
}
.policy.lib { background: linear-gradient(160deg, #6fb6e0, var(--lib) 55%, #1f4f6e); color: #e9f6ff; }
.policy.fas { background: linear-gradient(160deg, #ee6c5c, var(--fas) 55%, #6e1a15); color: #ffe9e2; }
.policy.back { background: repeating-linear-gradient(45deg, #3a2a1e 0 6px, #33251a 6px 12px); color: var(--gold); }
.policy-frame {
  width: 100%; height: 100%; border: 2px solid currentColor; border-radius: calc(var(--w) * 0.04);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%;
  outline: 1px solid rgba(255,255,255,.25); outline-offset: -6%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.18), transparent 65%);
}
.policy-icon { width: 46%; aspect-ratio: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.policy-label { font-family: var(--display); font-size: 13cqw; white-space: nowrap; letter-spacing: .04em; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 2px rgba(0,0,0,.4); }
.policy-sub { font-size: 8cqw; letter-spacing: .3em; text-transform: uppercase; opacity: .8; }
.policy.back .policy-label { font-size: 14cqw; }

/* ---------- Rollenkarten ---------- */
.rolecard {
  --w: 220px; width: var(--w); aspect-ratio: 0.68; border-radius: 14px; padding: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.6); container-type: inline-size;
}
.rolecard.lib { background: linear-gradient(170deg, #f0e3c2, #d9c294); color: var(--lib-dark); }
.rolecard.fas { background: linear-gradient(170deg, #e66a55, #9b2620); color: #fff1e6; }
.rolecard.hit { background: linear-gradient(170deg, #3a0d0b, #120403); color: #f04a3c; box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 30px rgba(240,74,60,.35); }
.rc-inner {
  height: 100%; border: 2px solid currentColor; border-radius: 9px; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 10% 6%; text-align: center;
}
.rc-top { font-size: 6cqw; letter-spacing: .35em; text-transform: uppercase; opacity: .75; }
.rc-icon { width: 48%; aspect-ratio: 1; }
.rc-title { font-family: var(--display); font-size: 22cqw; line-height: .9; letter-spacing: .03em; }
.rc-party { font-size: 6.5cqw; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }

/* ---------- Avatare ---------- */
.avatar {
  width: 48px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 22px; color: #1a120c; background: var(--c, var(--gold));
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 3px 8px rgba(0,0,0,.4); flex: none;
}

/* ---------- Kleinkram ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160px); opacity: 0; background: #2b1f17;
  color: var(--paper); border: 1px solid var(--gold); padding: 12px 18px; border-radius: 12px; z-index: 999;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3), opacity .25s; max-width: 90vw; text-align: center; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(216,178,92,.6); } 50% { box-shadow: 0 0 0 10px rgba(216,178,92,0); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-10px,4px); } 40% { transform: translate(9px,-6px); } 60% { transform: translate(-7px,6px); } 80% { transform: translate(5px,-3px); } }
