:root {
  --bg: #050d18;
  --panel: rgba(11, 25, 42, 0.74);
  --line: rgba(160, 200, 255, 0.12);
  --text: #eaf2f9;
  --muted: #8ea3b8;
  --gold: #f5c76b;
  --good: #46d39a;
  --bad: #ff6b6b;
  --open: #8fb8ff;
  --red: #e8434b;
  --orange: #ff9f43;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --runic: "Segoe UI Historic", "Noto Sans Runic", "Apple Symbols", "Junicode", serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  color: var(--text);
  font-family: var(--sans);
  background: radial-gradient(ellipse at 50% 120%, #0f3049 0%, #07182a 45%, var(--bg) 75%);
  cursor: none;
}

#snow { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

.aurora {
  position: fixed; inset: -25%; z-index: 0; pointer-events: none; opacity: .55; filter: blur(70px);
  background:
    radial-gradient(ellipse 40% 18% at 30% 22%, rgba(70, 211, 154, .45), transparent 70%),
    radial-gradient(ellipse 35% 14% at 65% 18%, rgba(120, 110, 255, .35), transparent 70%),
    radial-gradient(ellipse 30% 12% at 50% 30%, rgba(70, 200, 220, .25), transparent 70%);
  animation: aurora 38s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate(-4%, 0) rotate(-3deg) scaleY(1); }
  50%  { transform: translate(3%, 3%) rotate(2deg) scaleY(1.3); }
  100% { transform: translate(6%, -2%) rotate(-1deg) scaleY(.9); }
}

/* ---------- Stage: feste 1920×1080, per JS auf Monitor skaliert ---------- */
#stage {
  position: fixed; left: 50%; top: 50%; z-index: 2;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  padding: 30px 24px 22px;
  display: grid; gap: 18px;
  grid-template-columns: 1.22fr 1fr 1fr;
  grid-template-rows: 150px 1fr 1fr 50px;
  grid-template-areas:
    "top top top"
    "kids mail mission"
    "pranks work deer"
    "ticker ticker ticker";
}

.mono, .kid-num, .num, .clock, .cd-unit span, .tile b, .phases b, .foot-line b { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Lichterkette ---------- */
.garland { position: absolute; top: 0; left: 0; right: 0; height: 26px; display: flex; justify-content: space-between; padding: 0 30px; pointer-events: none; }
.garland::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(80, 110, 80, .7) 3%, rgba(80, 110, 80, .7) 97%, transparent);
}
.bulb { width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; position: relative; animation: blink 2.4s ease-in-out infinite; }
.bulb::before { content: ""; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; background: #3a4a3a; border-radius: 2px; }
.bulb.c0 { background: var(--red); color: var(--red); }
.bulb.c1 { background: var(--gold); color: var(--gold); }
.bulb.c2 { background: var(--good); color: var(--good); }
.bulb.c3 { background: #5aa8ff; color: #5aa8ff; }
@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px 3px currentColor; }
  50% { opacity: .25; box-shadow: none; }
}

/* ---------- Kopfzeile ---------- */
.top { grid-area: top; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 20px; }
.emblem {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 52px; flex: none;
  background: radial-gradient(circle at 50% 40%, rgba(245, 199, 107, .25), rgba(232, 67, 75, .15) 60%, transparent 70%);
  border: 2px solid rgba(245, 199, 107, .45);
  box-shadow: 0 0 40px rgba(245, 199, 107, .2), inset 0 0 20px rgba(245, 199, 107, .15);
  animation: glow 4s ease-in-out infinite;
}
.emblem span { animation: sway 5s ease-in-out infinite; display: inline-block; }
@keyframes glow { 50% { box-shadow: 0 0 60px rgba(245, 199, 107, .35), inset 0 0 26px rgba(245, 199, 107, .25); } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

h1 { font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: .01em; line-height: 1.05; }
h1 span { color: var(--gold); font-style: italic; font-weight: 600; }
.sub { color: var(--muted); font-size: 15px; letter-spacing: .06em; margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--bad); font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, .7); } 50% { box-shadow: 0 0 0 7px rgba(255, 107, 107, 0); opacity: .6; } }

.chips { display: flex; gap: 10px; margin-top: 12px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.chip b { font-weight: 400; }
.fade { transition: opacity .5s; }
.fade.out { opacity: 0; }

.countdown { text-align: center; }
.cd-label { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cd-digits { display: flex; align-items: flex-start; justify-content: center; gap: 10px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 92px; }
.cd-unit span {
  font-size: 60px; font-weight: 700; line-height: 1; color: var(--gold);
  text-shadow: 0 0 24px rgba(245, 199, 107, .45);
  padding: 6px 12px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(245, 199, 107, .22);
}
.cd-unit span.tick { animation: tick .35s ease-out; }
@keyframes tick { 0% { transform: translateY(-5px); opacity: .5; } 100% { transform: none; opacity: 1; } }
.cd-unit small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.cd-sep { font-size: 44px; color: rgba(245, 199, 107, .5); padding-top: 10px; animation: sepblink 1s steps(2) infinite; }
@keyframes sepblink { 50% { opacity: .2; } }
.countdown.live-mission .cd-unit span { color: var(--bad); border-color: rgba(255, 107, 107, .4); text-shadow: 0 0 24px rgba(255, 107, 107, .6); }

.advent { display: flex; justify-content: center; gap: 22px; margin-top: 8px; height: 30px; align-items: flex-end; }
.candle { position: relative; width: 12px; height: 18px; border-radius: 2px 2px 3px 3px; background: linear-gradient(90deg, #a51f2a, #e8434b, #a51f2a); }
.candle::after { content: attr(data-n); position: absolute; top: 3px; left: 0; right: 0; text-align: center; font-size: 9px; color: rgba(255, 255, 255, .7); font-weight: 700; }
.candle .flame { position: absolute; left: 50%; bottom: 100%; width: 8px; height: 12px; margin-left: -4px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff7d1, #ffc64a 45%, #ff7a1a 80%); opacity: 0; }
.candle.lit .flame { opacity: 1; box-shadow: 0 0 14px 4px rgba(255, 190, 80, .55); animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  25% { transform: scale(1.1, .92) rotate(2deg); }
  50% { transform: scale(.94, 1.08) rotate(-1deg); }
  75% { transform: scale(1.05, .97) rotate(3deg); }
}

.clockbox { text-align: right; }
.clock { font-size: 76px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.clock .sec { font-size: 40px; color: var(--muted); font-weight: 500; }
.date { font-size: 20px; margin-top: 6px; }
.zone { font-size: 14px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }

/* ---------- Panels ---------- */
.panel {
  position: relative; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 16px 22px 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
}
.panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 199, 107, .55), transparent);
  opacity: .5;
}
.panel.ping { animation: ping 1.4s ease-out; }
@keyframes ping { 0% { border-color: rgba(245, 199, 107, .9); box-shadow: 0 0 40px rgba(245, 199, 107, .35); } 100% { border-color: var(--line); } }

.panel h2 {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #c3d3e2; white-space: nowrap;
}
.panel h2 .ico { font-size: 20px; letter-spacing: 0; }
.tag {
  margin-left: auto; font-size: 12px; letter-spacing: .1em; font-weight: 600; color: var(--muted);
  padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); text-transform: none;
}
.tag.secret { color: var(--bad); border-color: rgba(255, 107, 107, .35); background: rgba(255, 107, 107, .08); animation: secret 3s ease-in-out infinite; }
@keyframes secret { 50% { background: rgba(255, 107, 107, .18); } }

.panel h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; font-weight: 600; }

.bar { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--good), #9cf0c9); transition: width 1s ease; overflow: hidden; }
.bar i::after, .phases .pbar i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  background-size: 200% 100%; animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.foot-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin: 8px 0 6px; }
.foot-line b { font-size: 17px; }
.foot-line.muted { color: var(--muted); font-size: 14px; }
.foot-line.muted b { color: var(--text); font-size: 14px; }

/* ---------- Kinder ---------- */
.kids { grid-area: kids; }
.kids-body { flex: 1; display: grid; grid-template-columns: 1fr 210px; gap: 16px; align-items: center; min-height: 0; }
.kid-list { display: flex; flex-direction: column; gap: 10px; }
.kid-row { display: grid; grid-template-columns: 5px 1fr auto; gap: 14px; align-items: center; padding: 8px 14px 8px 0; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.kid-row .stripe { align-self: stretch; border-radius: 0 4px 4px 0; }
.kid-row small { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kid-num { font-size: 35px; white-space: nowrap; font-weight: 700; line-height: 1.1; }
.kid-meta { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.kid-meta b { font-family: var(--mono); font-size: 20px; }
.kid-meta span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.kid-row.good .stripe { background: var(--good); box-shadow: 0 0 12px var(--good); }
.kid-row.good .kid-num, .kid-row.good .kid-meta b { color: var(--good); }
.kid-row.bad .stripe { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.kid-row.bad .kid-num, .kid-row.bad .kid-meta b { color: var(--bad); }
.kid-row.open .stripe { background: var(--open); box-shadow: 0 0 12px var(--open); }
.kid-row.open .kid-num, .kid-row.open .kid-meta b { color: var(--open); }

.donut-wrap { position: relative; width: 210px; height: 210px; }
.donut { width: 100%; height: 100%; overflow: visible; }
.donut circle { fill: none; stroke-width: 26; }
.donut .track { stroke: rgba(255, 255, 255, .06); }
.donut .seg { stroke-linecap: butt; transition: stroke-dasharray 1.4s cubic-bezier(.2, .8, .2, 1), stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); stroke-dasharray: 0 999; }
.donut .seg.good { stroke: var(--good); filter: drop-shadow(0 0 6px rgba(70, 211, 154, .55)); }
.donut .seg.bad { stroke: var(--bad); filter: drop-shadow(0 0 6px rgba(255, 107, 107, .55)); }
.donut .seg.open { stroke: var(--open); filter: drop-shadow(0 0 6px rgba(143, 184, 255, .55)); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center .big { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--good); }
.donut-center .small { font-size: 13px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.donut-wrap::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px dashed rgba(245, 199, 107, .25); animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.kids-foot { margin-top: 6px; }

/* ---------- Post ---------- */
.mail { grid-area: mail; }
.mail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mstat { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.mstat small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mstat .num { font-size: 30px; font-weight: 700; margin-top: 2px; }
.mstat.read .num { color: var(--good); }
.mstat.unread .num { color: var(--gold); }
.bar.dual { background: rgba(245, 199, 107, .35); }
.feed { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-height: 0; overflow: hidden; }
.feed li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035);
  animation: slidein .6s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slidein { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.feed .env { font-size: 20px; }
.feed .l-who { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .l-wish { font-size: 15px; font-family: var(--serif); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; transition: all .4s; }
.l-tag.new { color: #1b1300; background: var(--gold); animation: newblink 1.2s ease-in-out infinite; }
.l-tag.read { color: var(--good); background: rgba(70, 211, 154, .12); animation: none; }
@keyframes newblink { 50% { opacity: .55; } }

/* ---------- Mission ---------- */
.mission { grid-area: mission; }
.mission-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.badge {
  font-weight: 800; letter-spacing: .14em; font-size: 16px; padding: 10px 16px; border-radius: 10px; white-space: nowrap;
  color: var(--good); background: rgba(70, 211, 154, .1); border: 1px solid rgba(70, 211, 154, .45);
  animation: badge 2.6s ease-in-out infinite;
}
.badge.warn { color: var(--orange); background: rgba(255, 159, 67, .1); border-color: rgba(255, 159, 67, .5); }
.badge.go { color: var(--gold); background: rgba(245, 199, 107, .12); border-color: rgba(245, 199, 107, .6); }
.badge.live { color: #fff; background: rgba(232, 67, 75, .6); border-color: var(--bad); animation-duration: 1s; }
@keyframes badge { 50% { box-shadow: 0 0 22px currentColor; } }
.ms-info { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.ms-info b { color: var(--text); font-family: var(--mono); }
.bells span { opacity: .2; }
.bells span.on { opacity: 1; display: inline-block; animation: ring 1.8s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(18deg); } 85% { transform: rotate(-14deg); } 92% { transform: rotate(8deg); } }

.phases { list-style: none; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.phases li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 4px 10px; align-items: center; }
.phases .led { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.phases .led.done { background: var(--good); box-shadow: 0 0 8px var(--good); }
.phases .led.run { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: ledblink 1.2s ease-in-out infinite; }
.phases .led.wait { background: #4b5d70; }
@keyframes ledblink { 50% { opacity: .3; } }
.phases .pname { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phases .pstate { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.phases .pstate.done { color: var(--good); }
.phases .pstate.run { color: var(--gold); }
.phases b { font-size: 15px; min-width: 62px; text-align: right; }
.phases .pbar { grid-column: 2 / 5; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.phases .pbar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #c9952f, var(--gold)); transition: width 1.2s ease; overflow: hidden; }
.phases .pbar i.done { background: linear-gradient(90deg, #2a9e70, var(--good)); }

/* ---------- Streiche ---------- */
.pranks { grid-area: pranks; }
.ptable { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.prow {
  display: grid; grid-template-columns: 112px 1fr 150px 168px; gap: 14px; align-items: center;
  padding: 0 12px; height: 41px; border-radius: 9px; font-size: 15px;
}
#prank-rows { display: flex; flex-direction: column; gap: 5px; }
#prank-rows .prow { background: rgba(255, 255, 255, .03); }
#prank-rows .prow.fresh { animation: slidein .7s cubic-bezier(.2, .8, .2, 1); }
.phead { height: 28px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pcode { font-family: var(--mono); color: var(--gold); font-size: 14px; white-space: nowrap; }
.pcode em { font-style: normal; color: var(--open); font-size: 11px; margin-left: 4px; }
.elv {
  font-family: var(--runic); font-size: 20px; letter-spacing: .08em; color: #c9f0ff;
  white-space: nowrap; overflow: hidden; text-overflow: clip;
  text-shadow: 0 0 10px rgba(143, 220, 255, .45);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.elv.glitch { animation: glitch .18s steps(2); }
@keyframes glitch { 0% { text-shadow: -2px 0 rgba(255, 80, 120, .8), 2px 0 rgba(80, 220, 255, .8); transform: translateX(1px); } 100% { text-shadow: 0 0 10px rgba(143, 220, 255, .45); transform: none; } }
.pelf { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pelf::before { content: "🧝 "; }
.pstat { font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 5px 9px; border-radius: 6px; text-align: center; white-space: nowrap; }
.pstat.s0 { color: var(--muted); background: rgba(142, 163, 184, .1); }
.pstat.s1 { color: var(--open); background: rgba(143, 184, 255, .12); }
.pstat.s2 { color: #1b1300; background: var(--gold); animation: newblink 1s ease-in-out infinite; }
.pstat.s3 { color: var(--good); background: rgba(70, 211, 154, .14); }
.pstat.s4 { color: #fff; background: var(--red); }
.pfoot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-top: 10px; gap: 12px; }
.pfoot > span:last-child { white-space: nowrap; }
.pfoot b { color: var(--text); font-family: var(--mono); }
.deny { color: var(--bad); font-family: var(--mono); font-size: 12px; animation: sepblink 1.6s steps(2) infinite; white-space: nowrap; }

/* ---------- Werkstatt ---------- */
.work { grid-area: work; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; padding: 9px 12px 10px; border-radius: 11px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); overflow: hidden; }
.tile small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tile b { font-size: 24px; font-weight: 700; }
.tile em { font-style: normal; color: var(--muted); font-size: 14px; margin-left: 4px; }
.tile .mini { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.tile .mini i { position: absolute; inset: 0 auto 0 0; background: #b07a4a; transition: width 1s, background .5s; }
.tile .mini i.low { background: var(--bad); }
.log { list-style: none; flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.log li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.35; color: #c8d6e3; opacity: 0; transform: translateY(-6px); transition: all .5s; }
.log li.in { opacity: 1; transform: none; }
.log li time { font-family: var(--mono); color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.log li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li.good span { color: var(--good); }
.log li.warn span { color: var(--orange); }
.log li.bad span { color: var(--bad); }

/* ---------- Rentiere ---------- */
.deer { grid-area: deer; }
.deer-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 9px; min-height: 0; }
.rd { position: relative; padding: 8px 11px; border-radius: 11px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.rd .rn { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 7px; }
.rd .ra { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.rd .rr { display: flex; align-items: center; gap: 8px; }
.rd .rr .bar { flex: 1; height: 5px; }
.rd .rr b { font-family: var(--mono); font-size: 13px; min-width: 38px; text-align: right; }
.rd .nose { width: 11px; height: 11px; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 10px 3px rgba(255, 40, 40, .8); animation: nose 1.8s ease-in-out infinite; }
@keyframes nose { 50% { box-shadow: 0 0 20px 7px rgba(255, 40, 40, .95); } }
.rd.rudolph { border-color: rgba(255, 80, 80, .35); background: rgba(255, 60, 60, .06); }
.rd.flash { animation: ping 1.2s ease-out; }

/* ---------- Ticker ---------- */
.ticker { grid-area: ticker; display: flex; align-items: stretch; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(8, 18, 32, .85); }
.ticker-label {
  flex: none; display: flex; align-items: center; padding: 0 18px; font-weight: 800; letter-spacing: .2em; font-size: 14px; color: #fff;
  background: repeating-linear-gradient(135deg, var(--red) 0 14px, #c0303a 14px 28px);
}
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-inner { display: inline-block; padding-left: 100%; font-size: 19px; animation: ticker 60s linear infinite; }
.ticker-inner .sep { color: var(--gold); margin: 0 22px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Schlitten-Überflug ---------- */
#sleigh {
  position: fixed; z-index: 3; top: 12%; left: 100%; font-size: 46px; white-space: nowrap; pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255, 230, 160, .6)); display: none;
}
#sleigh.fly { display: block; animation: fly 14s linear forwards; }
#sleigh .trail { font-size: 26px; opacity: .85; }
@keyframes fly {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  25%  { transform: translate(-35vw, -30px) rotate(3deg); }
  50%  { transform: translate(-70vw, 15px) rotate(-3deg); }
  75%  { transform: translate(-105vw, -25px) rotate(2deg); }
  100% { transform: translate(-140vw, 0) rotate(-3deg); }
}

/* ---------- Haushalt-Akte (im Werkstatt-Panel, wechselt mit dem Protokoll) ---------- */
.log[hidden], .house[hidden] { display: none; }
.house { list-style: none; flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 34px; gap: 6px 10px; align-content: start; animation: slidein .6s cubic-bezier(.2, .8, .2, 1); }
.house li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 0 10px; border-radius: 9px; background: rgba(255, 255, 255, .035); min-width: 0; }
.house .hn { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.house .hs { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.house .hs.artig { color: var(--good); background: rgba(70, 211, 154, .14); }
.house .hs.unartig { color: var(--bad); background: rgba(255, 107, 107, .14); }
.house .hs.offen { color: var(--open); background: rgba(143, 184, 255, .12); }
.house .hs.adult { color: var(--gold); background: rgba(245, 199, 107, .1); }
