/* ============================================================
   DLDU – Die Liga der Unsterblichen
   Palette: Asche, Stein, Pergament, altes Gold, Glut, Blut
   ============================================================ */
:root {
  --ash: #0a0806;
  --stone: #16110c;
  --stone-2: #1d1610;
  --border: #2e2418;
  --border-soft: #241c12;
  --parchment: #e6dac0;
  --muted: #94836a;
  --gold: #c9922e;
  --gold-bright: #e8b44a;
  --ember: #d4551f;
  --blood: #9e2222;
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Alegreya Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ash);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,146,46,.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(212,85,31,.05), transparent 60%);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  box-shadow: inset 0 0 180px 60px rgba(0,0,0,.75);
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #f5cd75; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 22px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--border-soft);
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--parchment); }
.brand-sigil {
  font-size: 26px; color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(201,146,46,.5));
}
.brand-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(15px, 2.4vw, 20px);
  letter-spacing: .14em; text-transform: uppercase;
}
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  padding: 8px 14px; border: 1px solid transparent; border-radius: 2px;
}
.site-nav a:hover { color: var(--parchment); }
.site-nav a.active {
  color: var(--gold-bright); border-color: var(--border);
  background: var(--stone);
}

/* ---------- Layout ---------- */
.wrap {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(14px, 4vw, 32px) 80px;
}

.hero { text-align: center; margin-bottom: clamp(28px, 5vw, 52px); }
.hero .eyebrow {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ember); margin: 0 0 10px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 6vw, 54px);
  letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 8px; color: var(--parchment);
  text-shadow: 0 0 40px rgba(201,146,46,.25);
}
.hero .meta { color: var(--muted); font-size: 15px; margin: 0; }
.hero .meta strong { color: var(--gold); font-weight: 500; }

/* Signatur: die Glutlinie */
.ember-line {
  height: 1px; margin: 18px auto; max-width: 420px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--ember) 50%, var(--border) 80%, transparent);
  position: relative;
}
.ember-line::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold-bright);
  box-shadow: 0 0 12px 3px rgba(232,180,74,.55);
}

section { margin-bottom: clamp(36px, 6vw, 64px); }
h2.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 3vw, 24px); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px;
}
h2.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ---------- Tabelle ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); background: var(--stone); }
table.league { width: 100%; border-collapse: collapse; min-width: 640px; }
table.league th {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
  text-align: left; padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--stone-2);
  white-space: nowrap;
}
table.league th.sortable { cursor: pointer; user-select: none; }
table.league th.sortable:hover { color: var(--parchment); }
table.league th.sortable::after { content: ' ↕'; opacity: .35; }
table.league th.sorted-desc::after { content: ' ↓'; opacity: 1; color: var(--gold); }
table.league th.sorted-asc::after { content: ' ↑'; opacity: 1; color: var(--gold); }
table.league td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.league tbody tr:last-child td { border-bottom: none; }
table.league tbody tr:hover { background: rgba(201,146,46,.04); }
table.league tbody tr:first-child .rank { color: var(--gold-bright); text-shadow: 0 0 10px rgba(232,180,74,.5); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.points { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--gold-bright); }
td.time { color: var(--muted); }
td.rank { font-family: var(--font-display); font-weight: 700; color: var(--muted); width: 40px; }

.creator-cell { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 4px; object-fit: cover;
  border: 1px solid var(--border); background: var(--stone-2);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
}
.avatar-fallback {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--muted);
}
.creator-names { display: flex; flex-direction: column; line-height: 1.25; }
.creator-link { font-weight: 700; font-size: 17px; color: var(--parchment); }
a.creator-link:hover { color: var(--gold-bright); }
.profile-link { font-size: 13px; color: var(--muted); }
.profile-link:hover { color: var(--gold); }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 2px;
  font-size: 13px; font-weight: 500; letter-spacing: .03em;
  border: 1px solid var(--border); color: var(--muted); background: var(--stone-2);
  white-space: nowrap;
}
.badge.run-test { color: #b7a26b; border-color: #4a3d22; }
.badge.run-official { color: var(--gold-bright); border-color: var(--gold); background: rgba(201,146,46,.08); }
.badge.run-done { color: var(--muted); }
.badge.life-alive { color: #9fbf7f; border-color: #3c4a2c; }
.badge.life-dead { color: #d97b7b; border-color: var(--blood); background: rgba(158,34,34,.1); }
.badge.life-custom { color: var(--parchment); }
.badge.life-immortal {
  color: var(--gold-bright); border-color: var(--gold);
  background: rgba(201,146,46,.1);
  animation: immortal-glow 2.6s ease-in-out infinite;
}
@keyframes immortal-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(232,180,74,.25); }
  50% { box-shadow: 0 0 18px rgba(232,180,74,.55); }
}
.clip-link { font-size: 13px; color: #d97b7b; margin-left: 8px; white-space: nowrap; }
.clip-link:hover { color: #f0a0a0; }

/* ---------- Panels: Regeln, Zeitplan ---------- */
.panel {
  border: 1px solid var(--border); background: var(--stone);
  padding: clamp(18px, 3vw, 30px);
}
.panel h3 {
  font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  font-size: 16px; color: var(--gold); margin: 20px 0 8px;
}
.panel h3:first-child { margin-top: 0; }
.panel ul { margin: 8px 0; padding-left: 22px; }
.panel li { margin: 4px 0; }
.panel p { margin: 0 0 16px; } .panel p:last-child { margin-bottom: 0; }

.schedule-day {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ember);
  margin: 18px 0 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
}
.schedule-day:first-child { margin-top: 0; }
.schedule-item {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px dashed var(--border-soft);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time {
  font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700;
  min-width: 60px;
}
.schedule-title { flex: 1; }
.empty { color: var(--muted); font-style: italic; }

/* ---------- Archiv ---------- */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.archive-card {
  display: block; border: 1px solid var(--border); background: var(--stone);
  padding: 22px; color: var(--parchment);
  transition: border-color .2s, transform .2s;
}
.archive-card:hover { border-color: var(--gold); transform: translateY(-2px); color: var(--parchment); }
.archive-card h3 {
  font-family: var(--font-display); font-size: 18px; letter-spacing: .06em;
  margin: 0 0 6px; color: var(--gold-bright);
}
.archive-card .meta { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.archive-card .winner { font-size: 15px; }
.archive-card .winner strong { color: var(--gold); font-weight: 700; }

/* ---------- Creator-Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 28px; }
.profile-head .avatar { width: 96px; height: 96px; flex-basis: 96px; font-size: 42px; }
.profile-head h1 {
  font-family: var(--font-display); font-size: clamp(24px, 4vw, 36px);
  letter-spacing: .08em; margin: 0 0 4px;
}
.profile-head .meta { color: var(--muted); margin: 0; }
.stat-row { display: flex; gap: 28px; flex-wrap: wrap; margin: 18px 0 28px; }
.stat { border-left: 2px solid var(--gold); padding-left: 14px; }
.stat .stat-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--gold-bright); }
.stat .stat-label { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; text-align: center; padding: 30px 16px 40px; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }

/* ============================================================
   Admin / Mod – funktional, gleiche Welt
   ============================================================ */
.admin-body { font-size: 15.5px; }
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 24px clamp(14px, 3vw, 32px) 80px; position: relative; z-index: 1; }
.admin-nav {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 26px;
  border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.admin-nav a {
  padding: 6px 12px; color: var(--muted); font-size: 14px;
  border: 1px solid transparent; border-radius: 2px;
}
.admin-nav a.active, .admin-nav a:hover { color: var(--gold-bright); background: var(--stone); border-color: var(--border); }
.admin-nav .spacer { flex: 1; }
.admin-nav .whoami { color: var(--muted); font-size: 13px; align-self: center; }

h1.admin-title {
  font-family: var(--font-display); font-size: 24px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 22px;
}
h2.admin-sub { font-family: var(--font-display); font-size: 17px; letter-spacing: .08em; color: var(--parchment); margin: 30px 0 12px; }

form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
form .row { display: flex; gap: 12px; flex-wrap: wrap; }
form .row > * { flex: 1; min-width: 140px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=url], input[type=file], select, textarea {
  background: var(--stone-2); border: 1px solid var(--border); color: var(--parchment);
  padding: 9px 11px; font-family: var(--font-body); font-size: 15px; border-radius: 2px;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }

.btn {
  display: inline-block; cursor: pointer; border-radius: 2px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--gold); color: var(--gold-bright);
  background: rgba(201,146,46,.08);
  transition: background .15s;
}
.btn:hover { background: rgba(201,146,46,.18); color: var(--gold-bright); }
.btn.small { padding: 5px 10px; font-size: 11px; }
.btn.ghost { border-color: var(--border); color: var(--muted); background: transparent; }
.btn.ghost:hover { color: var(--parchment); border-color: var(--muted); }
.btn.danger { border-color: var(--blood); color: #d97b7b; background: rgba(158,34,34,.08); }
.btn.danger:hover { background: rgba(158,34,34,.2); }

table.admin { width: 100%; border-collapse: collapse; background: var(--stone); border: 1px solid var(--border); }
table.admin th {
  text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--stone-2);
}
table.admin td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.admin tr:last-child td { border-bottom: none; }
table.admin .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.notice { border: 1px solid var(--gold); background: rgba(201,146,46,.08); padding: 12px 16px; margin-bottom: 18px; border-radius: 2px; }
.notice.error { border-color: var(--blood); background: rgba(158,34,34,.1); color: #d97b7b; }

.login-box {
  max-width: 380px; margin: 10vh auto 0; padding: 34px;
  border: 1px solid var(--border); background: var(--stone);
  position: relative; z-index: 1;
}
.login-box h1 {
  font-family: var(--font-display); font-size: 20px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); text-align: center; margin: 0 0 22px;
}

.token-url {
  font-family: monospace; font-size: 13px; background: var(--stone-2);
  border: 1px dashed var(--border); padding: 8px 10px; word-break: break-all;
  display: block; margin-top: 6px; color: var(--gold-bright);
}

.obj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 12px 0; }
.obj-check {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); background: var(--stone-2); cursor: pointer;
  font-size: 15px; border-radius: 2px; flex-direction: row; color: var(--parchment);
}
.obj-check:hover { border-color: var(--gold); }
.obj-check input { accent-color: var(--gold); width: 18px; height: 18px; }
.obj-check .pts { margin-left: auto; color: var(--gold-bright); font-weight: 700; white-space: nowrap; }
.obj-check.done { border-color: var(--gold); background: rgba(201,146,46,.08); }

.mod-card { border: 1px solid var(--border); background: var(--stone); padding: 20px; margin-bottom: 24px; }
.mod-card h2 { font-family: var(--font-display); letter-spacing: .08em; margin: 0 0 4px; font-size: 20px; color: var(--gold-bright); }
.mod-meta { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.timer-big { font-variant-numeric: tabular-nums; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--parchment); }
.inline-form { display: inline; }
.controls-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }

@media (max-width: 640px) {
  .creator-link { font-size: 15px; }
  .avatar { width: 36px; height: 36px; flex-basis: 36px; }
}

/* --- Ergänzungen: Hinweise & Inline-Punkte --- */
.hint { color: var(--muted); font-size: .85rem; margin: .35rem 0 0; }
.points-inline {
  margin-left: auto; font-family: 'Cinzel', serif; font-weight: 700;
  color: var(--gold-bright); font-size: 1.05rem; white-space: nowrap;
}
.mod-card h3 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* --- Hero mit Turnier-Headerbild --- */
.hero.has-banner {
  position: relative;
  padding: 4.5rem 1.5rem 3.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero.has-banner::before {
  content: '';
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--banner);
  background-size: cover; background-position: center;
}
.hero.has-banner::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 100% at 50% 100%, rgba(10,8,6,.55), transparent 60%),
    linear-gradient(180deg, rgba(10,8,6,.72), rgba(10,8,6,.55) 45%, rgba(10,8,6,.88));
}
.hero.has-banner h1 { text-shadow: 0 2px 18px rgba(0,0,0,.85); }
.hero.has-banner .eyebrow, .hero.has-banner .meta { text-shadow: 0 1px 8px rgba(0,0,0,.9); }

/* --- Zeitplan-Karten --- */
.schedule-cards { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
.schedule-card {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(180deg, var(--stone-2), var(--stone));
  border: 1px solid var(--border);
  padding: .7rem 1rem;
}
.schedule-card.past { opacity: .55; }
.schedule-card.live {
  border-color: rgba(212, 85, 31, .6);
  box-shadow: 0 0 18px rgba(212, 85, 31, .18), inset 0 0 24px rgba(212, 85, 31, .05);
}
.schedule-when { display: flex; flex-direction: column; align-items: center; gap: .3rem; flex: 0 0 auto; min-width: 3.6rem; }
.schedule-card .schedule-time {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.05rem; color: var(--parchment);
}
.live-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: #f0a884; white-space: nowrap;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 8px rgba(212,85,31,.9);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: .6; }
}
.schedule-body { display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 1; flex-wrap: wrap; }
.schedule-avatar .avatar { width: 40px; height: 40px; }
.schedule-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.schedule-who { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.schedule-who .creator-link { font-weight: 700; }
.twitch-mini {
  font-size: .72rem; letter-spacing: .06em; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.twitch-mini:hover { color: var(--gold-bright); border-color: var(--gold); }
.schedule-card .schedule-title { color: var(--muted); font-size: .88rem; }
.schedule-card .badge { margin-left: auto; flex: 0 0 auto; }
@media (max-width: 640px) {
  .schedule-card { flex-wrap: wrap; }
  .schedule-card .badge { margin-left: 0; }
}

/* --- Archiv-Karten mit Banner --- */
.archive-card { position: relative; overflow: hidden; }
.archive-banner {
  display: block; height: 110px; margin: -22px -22px 14px;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.25));
  mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.25));
}

/* --- Wartungsmodus --- */
.maintenance-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--ash); font-family: 'Alegreya Sans', sans-serif;
}
.maintenance-box { text-align: center; padding: 2rem; max-width: 30rem; }
.maintenance-box .sigil { font-size: 2rem; color: var(--gold); opacity: .7; margin-bottom: 1rem; }
.maintenance-text {
  font-family: 'Cinzel', serif; font-size: 1.25rem; color: var(--parchment);
  letter-spacing: .05em; margin-bottom: 1.2rem;
}
.maintenance-links { margin-top: 1.2rem; }
.maintenance-links a { color: var(--muted); font-size: .8rem; text-decoration: none; }
.maintenance-links a:hover { color: var(--gold-bright); }
.maintenance-login {
  position: fixed; right: .9rem; bottom: .7rem;
  font-size: .68rem; color: #4a4034; text-decoration: none; letter-spacing: .05em;
}
.maintenance-login:hover { color: var(--muted); }

/* --- Punkte-Sheet: Kategorien & Mehrfach-Ziele --- */
.obj-category {
  font-family: 'Cinzel', serif; font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  margin: .7rem 0 .35rem; padding-bottom: .25rem;
  border-bottom: 1px solid var(--border);
}
.obj-check.obj-multi { align-items: center; }
.obj-check.obj-multi input[type="number"] {
  width: 3.4rem; padding: .25rem .35rem; text-align: center; flex: 0 0 auto;
}
.obj-check.obj-multi.complete { border-color: rgba(201,146,46,.55); }
.obj-check .obj-qty { color: var(--muted); font-weight: 400; }
.hint-inline { color: var(--muted); font-size: .78rem; font-weight: 400; }

/* --- Banner-Vorschau im Admin --- */
.banner-preview img {
  max-width: 100%; max-height: 180px; display: block;
  border: 1px solid var(--border); margin: .3rem 0 .5rem;
}
.legal-sub { margin-top: 1.4rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.legal-sub a { color: var(--muted); font-size: .85rem; }
.legal-sub a:hover { color: var(--gold-bright); }

/* --- Formatierte Texte: Unter-Überschriften und Listenabstand --- */
.panel h4 {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: .95rem;
  letter-spacing: .08em; color: var(--gold);
  margin: 18px 0 8px;
}
.panel h4:first-child { margin-top: 0; }
.panel ul { margin: 0 0 16px; }

/* --- Mini-DLDU / One-Shot-Kennzeichnung --- */
.kind-tag {
  display: inline-block; padding: .1rem .5rem;
  font-family: 'Cinzel', serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ember); border: 1px solid rgba(212, 85, 31, .5);
  background: rgba(212, 85, 31, .08);
}
.archive-section { margin-top: 2.6rem; }
.archive-section.oneshot { color: var(--ember); }
.oneshot-card { border-left: 2px solid rgba(212, 85, 31, .45); }
.card-tag { margin-bottom: .5rem; }
.archive-card .card-tag { display: inline-block; }

/* --- Öffentliche Punkteliste („Die Prüfungen") --- */
.sheet-intro { color: var(--muted); margin-bottom: 14px; }
.sheet-cat {
  font-family: 'Cinzel', serif; font-size: .85rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
  margin: 20px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sheet-cat:first-child { margin-top: 0; }
.sheet-grid { display: grid; gap: 6px; margin-bottom: 6px; }
.sheet-row { display: flex; align-items: baseline; gap: 10px; }
.sheet-name { flex: 0 1 auto; min-width: 0; }
.sheet-qty { color: var(--ember); font-weight: 700; font-size: .85rem; }
.sheet-dots {
  flex: 1 1 auto; min-width: 20px;
  border-bottom: 1px dotted var(--border);
  transform: translateY(-4px);
}
.sheet-pts {
  flex: 0 0 auto; font-family: 'Cinzel', serif; font-weight: 700;
  color: var(--gold-bright); font-variant-numeric: tabular-nums;
}
.sheet-pts small { color: var(--muted); font-family: 'Alegreya Sans', sans-serif; font-weight: 400; margin-left: .3rem; }

/* --- Modus-Umschalter (Admin > Seiten) --- */
.mode-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mode-switch { display: flex; gap: 1rem; }
.mode-opt { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); cursor: pointer; }
.mode-opt input { accent-color: var(--gold); }

/* --- Icon-Crop-Editor --- */
.crop-editor {
  display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap;
  border: 1px solid var(--border); background: var(--stone);
  padding: 1rem; margin: .4rem 0 .6rem;
}
.crop-stage { flex: 1 1 300px; min-width: 260px; max-width: 480px; }
.crop-stage img { display: block; max-width: 100%; }
.crop-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: .5rem; }
.crop-label {
  font-family: 'Cinzel', serif; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.crop-preview {
  width: 128px; height: 128px; overflow: hidden;
  border: 1px solid var(--gold); border-radius: 6px;
  background: var(--ash);
  box-shadow: 0 0 14px rgba(201, 146, 46, .15);
}
/* Cropper-Optik ans Design anpassen */
.cropper-view-box { outline-color: var(--gold); }
.cropper-line, .cropper-point { background-color: var(--gold); }
.cropper-modal { background-color: rgba(10, 8, 6, .7); }

/* --- Creator-Profil: Hero --- */
.profile-hero { margin-bottom: 26px; }
.profile-hero.has-banner {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  padding: 70px 26px 22px;
}
.profile-hero.has-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: var(--banner);
  background-size: cover; background-position: center;
}
.profile-hero.has-banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,8,6,.25), rgba(10,8,6,.55) 55%, rgba(10,8,6,.92));
}
.profile-hero-inner { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.profile-avatar {
  width: 108px; height: 108px; flex: 0 0 108px; font-size: 46px;
  border: 2px solid var(--gold); border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,.6);
}
.profile-id h1 {
  font-family: var(--font-display); font-size: clamp(26px, 4.5vw, 40px);
  letter-spacing: .08em; margin: 0 0 10px;
}
.profile-hero.has-banner .profile-id h1 { text-shadow: 0 2px 14px rgba(0,0,0,.85); }

/* Social-Pills */
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; font-size: 13px; letter-spacing: .06em;
  color: var(--parchment); text-decoration: none;
  border: 1px solid var(--border); background: rgba(22, 17, 12, .8);
  transition: border-color .2s, transform .15s;
}
.social-pill:hover { transform: translateY(-1px); color: var(--parchment); }
.social-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.social-pill.twitch .dot { background: #9146ff; box-shadow: 0 0 8px rgba(145,70,255,.7); }
.social-pill.twitch:hover { border-color: #9146ff; }
.social-pill.instagram .dot { background: #e1306c; box-shadow: 0 0 8px rgba(225,48,108,.7); }
.social-pill.instagram:hover { border-color: #e1306c; }
.social-pill.youtube .dot { background: #ff0000; box-shadow: 0 0 8px rgba(255,0,0,.6); }
.social-pill.youtube:hover { border-color: #ff4040; }

.stat-trophy { font-size: 18px; }

/* --- Zitat-Block („> " in der Formatierung) --- */
blockquote.quote {
  position: relative; margin: 20px 0; padding: 16px 22px 16px 46px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(201, 146, 46, .07), transparent 70%);
  font-style: italic; font-size: 1.06rem; color: var(--parchment);
}
blockquote.quote::before {
  content: '\201E';
  position: absolute; left: 12px; top: 2px;
  font-family: 'Cinzel', serif; font-size: 44px; line-height: 1;
  color: var(--gold); opacity: .8;
}
blockquote.quote p { margin: 0 !important; }

/* --- Meccha-Modus --- */
.kind-tag.meccha {
  color: #4aa3ff; border-color: rgba(74, 163, 255, .5);
  background: rgba(74, 163, 255, .08);
}
.meccha-table td.num { white-space: nowrap; }

/* Runden-Editor im Mod-Bereich */
.meccha-list { display: grid; gap: 6px; }
.meccha-row {
  display: flex; align-items: center; gap: .6rem;
  background: var(--stone); border: 1px solid var(--border);
  padding: .45rem .7rem;
}
.meccha-row.dragging { opacity: .5; border-color: var(--gold); }
.meccha-row.is-seeker { border-color: rgba(74, 163, 255, .55); background: rgba(74, 163, 255, .06); }
.meccha-row.is-out { opacity: .45; }
.meccha-row .drag-handle { cursor: grab; color: var(--muted); font-size: 1.1rem; user-select: none; touch-action: none; }
.meccha-row .drag-handle:active { cursor: grabbing; }
.meccha-place {
  font-family: 'Cinzel', serif; font-weight: 700; min-width: 2rem;
  color: var(--gold-bright); text-align: center; font-variant-numeric: tabular-nums;
}
.meccha-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meccha-found { margin-left: .4rem; }
.meccha-found label { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.meccha-found input { width: 4rem; padding: .2rem .35rem; text-align: center; }
.meccha-arrows { margin-left: auto; display: flex; gap: .25rem; }
.meccha-arrows .btn { padding: .15rem .5rem; }
.meccha-toggle {
  display: inline-flex; align-items: center; cursor: pointer; user-select: none;
}
.meccha-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.meccha-toggle span {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .55rem; border: 1px solid var(--border); color: var(--muted);
  transition: all .15s;
}
.meccha-toggle.seeker input:checked + span { color: #7ec0ff; border-color: rgba(74,163,255,.6); background: rgba(74,163,255,.12); }
.meccha-toggle.out input:checked + span { color: var(--blood); border-color: rgba(158,34,34,.6); background: rgba(158,34,34,.1); }
.meccha-toggle.zero input:checked + span { color: var(--ember); border-color: rgba(212,85,31,.6); background: rgba(212,85,31,.1); }

/* Rundenverlauf */
.meccha-round { border: 1px solid var(--border); background: var(--stone); padding: .6rem .8rem; margin-bottom: .6rem; }
.meccha-round-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .35rem; }
.meccha-round-body { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.meccha-round-body em { color: var(--gold-bright); font-style: normal; font-weight: 700; }
.meccha-hiders { display: block; }
.meccha-seekers { display: block; color: #7ec0ff; }
@media (max-width: 640px) {
  .meccha-row { flex-wrap: wrap; }
  .meccha-arrows { margin-left: 0; }
}

/* --- Header-Brand: DLDU über dem Namen --- */
.brand-stack { display: flex; flex-direction: column; line-height: 1.1; }
.brand-top {
  font-family: 'Cinzel', serif; font-weight: 900; font-size: .68rem;
  letter-spacing: .55em; color: var(--gold); text-transform: uppercase;
  text-shadow: 0 0 10px rgba(201, 146, 46, .35);
}

/* --- Ankündigungs-Fenster --- */
.announce {
  position: relative; margin: 0 0 40px;
  padding: 26px 30px 24px; text-align: center;
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(212, 85, 31, .06), transparent 55%),
    linear-gradient(180deg, var(--stone-2), var(--stone));
  border: 1px solid rgba(201, 146, 46, .45);
  outline: 1px solid rgba(201, 146, 46, .15);
  outline-offset: 4px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45), inset 0 0 60px rgba(201, 146, 46, .04);
}
.announce .corner { position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold); opacity: .9; }
.announce .corner.tl { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.announce .corner.tr { top: -5px; right: -5px; border-left: 0; border-bottom: 0; }
.announce .corner.bl { bottom: -5px; left: -5px; border-right: 0; border-top: 0; }
.announce .corner.br { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.announce-eyebrow {
  font-family: 'Cinzel', serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .45em; text-transform: uppercase; color: var(--ember);
  margin: 0 0 8px;
}
.announce-title {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: .06em;
  color: var(--parchment); margin: 0 0 12px;
}
.announce .ember-line { max-width: 240px; margin: 0 auto 14px; }
.announce-body { max-width: 44rem; margin: 0 auto; color: var(--parchment); }
.announce-body p:last-child { margin-bottom: 0; }
.announce-cta { margin: 18px 0 0; }

/* --- Meccha: Zusatz-Anzeigen --- */
.meccha-meta {
  font-family: 'Cinzel', serif; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.was-hunter {
  display: inline-block; margin-left: .45rem; padding: .1rem .45rem;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: #7ec0ff; border: 1px solid rgba(74, 163, 255, .45);
  background: rgba(74, 163, 255, .08); vertical-align: middle;
}

/* --- Turnier-Datum im Hero größer & lesbarer --- */
.hero .meta { font-size: 1.02rem; }
.hero .meta strong {
  display: inline-block;
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); letter-spacing: .12em;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(232, 180, 74, .25);
}

/* --- YouTube-Einbettung (Zwei-Klick, datenschutzfreundlich) --- */
.video-embed {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  margin: 0 0 22px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--stone-2), var(--ash));
  overflow: hidden;
}
.video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 40%, rgba(212, 85, 31, .09), transparent 60%);
  border: 0; color: var(--parchment); font-family: 'Alegreya Sans', sans-serif;
  transition: background .25s;
}
.video-cover:hover { background: radial-gradient(120% 90% at 50% 40%, rgba(212, 85, 31, .16), transparent 62%); }
.video-play {
  width: 62px; height: 62px; display: grid; place-items: center;
  border: 2px solid var(--gold); border-radius: 50%;
  color: var(--gold-bright); font-size: 22px; padding-left: 4px;
  box-shadow: 0 0 22px rgba(201, 146, 46, .22);
  transition: transform .2s, box-shadow .2s;
}
.video-cover:hover .video-play { transform: scale(1.08); box-shadow: 0 0 30px rgba(232, 180, 74, .4); }
.video-label {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem;
  letter-spacing: .1em; color: var(--parchment);
}
.video-note { font-size: .78rem; color: var(--muted); max-width: 34rem; line-height: 1.5; }
.video-note a { color: var(--muted); text-decoration: underline; }
.video-note a:hover { color: var(--gold-bright); }

/* --- Hinweis „zuletzt aktualisiert" --- */
.table-updated {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted); margin: 0 0 10px;
}
.table-updated::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 8px rgba(212, 85, 31, .8);
  animation: livePulse 2.4s ease-in-out infinite;
}
