/* ============================================================ Adventskalender */
:root {
  --night-1: #050b1f;
  --night-2: #0c1a3d;
  --night-3: #16285a;
  --gold: #f3c969;
  --gold-2: #d9a441;
  --gold-dark: #8a6420;
  --red: #b3202e;
  --red-dark: #6e0f18;
  --green: #1d6b45;
  --green-dark: #0d3a25;
  --snow: #f6f8ff;
  --ink: #eef2ff;
  --muted: #a7b3d6;
  --card: rgba(13, 24, 56, 0.78);
  --card-border: rgba(243, 201, 105, 0.35);
  --ok: #4fd18b;
  --bad: #ff6b6b;
  --gap: clamp(6px, 1.4vw, 14px);
  --radius: 14px;
  --font-title: "Mountains of Christmas", "Fraunces", Georgia, serif;
  --font-num: "Fraunces", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(ellipse at 70% -10%, #2a3f86 0%, transparent 55%),
              linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 45%, var(--night-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }

/* ------------------------------------------------------------ Kulisse */
#snow { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky-stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
.moon {
  position: fixed; top: 7vh; right: 6vw; width: clamp(60px, 9vw, 120px); aspect-ratio: 1;
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fffbe8 0%, #f5e9b8 55%, #d9c88a 100%);
  box-shadow: 0 0 60px 18px rgba(255, 244, 200, .18), 0 0 160px 60px rgba(255, 244, 200, .07);
}
.moon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 62% 60%, rgba(180, 160, 100, .35) 0 9%, transparent 10%),
              radial-gradient(circle at 40% 70%, rgba(180, 160, 100, .25) 0 6%, transparent 7%),
              radial-gradient(circle at 70% 30%, rgba(180, 160, 100, .2) 0 5%, transparent 6%);
}
.hills { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; width: 100%; height: 26vh; }

/* ------------------------------------------------------------ Lichterkette */
.garland { position: relative; z-index: 2; height: 54px; width: 100%; pointer-events: none; }
.garland svg { width: 100%; height: 100%; display: block; overflow: visible; }
.garland .bulb { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ------------------------------------------------------------ Kopf */
.top {
  position: relative; z-index: 3; max-width: 1200px; margin: 0 auto; padding: 4px 16px 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.brand { flex: 1 1 auto; min-width: 0; }
.brand h1 {
  margin: 0; font-family: var(--font-title); font-weight: 700; letter-spacing: .5px;
  font-size: clamp(30px, 5.6vw, 58px); line-height: 1;
  background: linear-gradient(180deg, #fff6d6 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(243, 201, 105, .35));
}
.brand p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  background: rgba(16, 28, 66, .88); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.chip:hover { background: rgba(32, 50, 104, .95); }
.chip:active { transform: scale(.96); }
.chip.score { background: linear-gradient(135deg, rgba(243, 201, 105, .25), rgba(217, 164, 65, .12)); border-color: var(--card-border); font-weight: 700; }
.chip.on { border-color: var(--gold); box-shadow: 0 0 12px rgba(243, 201, 105, .35); }
.vol { width: 80px; accent-color: var(--gold); }
@media (max-width: 640px) { .vol { display: none; } }

/* ------------------------------------------------------------ Hinweisleiste */
.banner {
  position: relative; z-index: 3; max-width: 1200px; margin: 12px auto 0; padding: 0 16px;
}
.banner > div {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; border-radius: 12px; text-align: center;
  background: var(--card); border: 1px solid var(--card-border); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.banner .test { color: #ffe9a8; }
.banner .count { font-family: var(--font-num); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; font-size: 18px; }

/* ------------------------------------------------------------ Layout */
.layout {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 16px 16px 30vh;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start;
}
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ Kalender */
.calendar {
  container-type: inline-size; padding: clamp(10px, 2vw, 22px); border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #6b1520, #3f0a12);
  border: 3px solid var(--gold-2);
  box-shadow: 0 0 0 6px rgba(63, 10, 18, .85), 0 0 0 7px rgba(243, 201, 105, .5),
              0 30px 60px rgba(0, 0, 0, .55), inset 0 0 60px rgba(0, 0, 0, .45);
}
.grid {
  --cols: 7;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-flow: dense;
  gap: var(--gap);
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.12);
}
@container (max-width: 560px) { .grid { --cols: 4; } }

.cell { position: relative; perspective: 900px; }
.cell.big { grid-column: span 2; grid-row: span 2; }
.cell.wide { grid-column: span 2; }

/* Innenseite hinter der Tür */
.inside {
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff7df 0%, #f1dfb0 60%, #d7bd82 100%);
  box-shadow: inset 0 0 18px rgba(80, 50, 10, .55), inset 0 0 0 2px rgba(120, 80, 20, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #3a2508; text-align: center; padding: 4px;
}
.inside .ico { font-size: clamp(20px, 6cqi, 46px); line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.cell.big .inside .ico { font-size: clamp(40px, 12cqi, 90px); }
.inside .st { font-size: clamp(10px, 1.7cqi, 13px); font-weight: 800; line-height: 1.15; }
.inside .st.win { color: #0d6b38; }
.inside .st.lose { color: #9b1c25; }
.inside .st.wait { color: #6b4b12; }
.inside .mini { font-family: var(--font-num); font-weight: 700; font-size: clamp(10px, 1.6cqi, 13px); opacity: .55; }

/* Die Tür selbst */
.door {
  position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3, 1.3, .5, 1), filter .3s;
  border: 0; padding: 0; background: none; border-radius: 10px; z-index: 2;
}
.door .face, .door .back {
  position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.door .back {
  transform: rotateY(180deg);
  background: linear-gradient(90deg, #cdb37a, #e9d6a4 30%, #d8bf86);
  box-shadow: inset 0 0 12px rgba(80, 50, 10, .5);
}
.door .face {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255, 230, 160, .35), inset 0 -10px 24px rgba(0, 0, 0, .3),
              0 4px 10px rgba(0, 0, 0, .45);
}
/* Perforation / Rand der Tür */
.door .face::before {
  content: ""; position: absolute; inset: 5px; border-radius: 7px;
  border: 1.5px dashed rgba(255, 236, 190, .45); pointer-events: none;
}
.door .num {
  position: relative; font-family: var(--font-num); font-weight: 800; font-optical-sizing: auto;
  font-size: clamp(20px, 6.2cqi, 48px); line-height: 1; color: #fff3cf;
  text-shadow: 0 1px 0 var(--gold-dark), 0 2px 0 #6b4a12, 0 4px 10px rgba(0, 0, 0, .55);
}
.cell.big .door .num { font-size: clamp(44px, 14cqi, 110px); }
.door .knob {
  position: absolute; right: 10%; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c0, var(--gold-2) 60%, var(--gold-dark));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

/* Muster der Türen */
.p0 .face { background:
  radial-gradient(circle at 20% 25%, rgba(255, 220, 140, .5) 0 1.5px, transparent 2.5px) 0 0/22px 22px,
  radial-gradient(circle at 70% 70%, rgba(255, 220, 140, .35) 0 1px, transparent 2px) 0 0/22px 22px,
  linear-gradient(160deg, #c22a37, #8c1420); }
.p1 .face { background:
  radial-gradient(circle, rgba(255, 255, 255, .55) 0 1.4px, transparent 2.2px) 0 0/14px 14px,
  radial-gradient(circle, rgba(255, 255, 255, .35) 0 1px, transparent 1.8px) 7px 7px/14px 14px,
  linear-gradient(160deg, #23804f, #0f4a2d); }
.p2 .face { background:
  conic-gradient(from 0deg at 50% 50%, transparent 0 25%, rgba(243, 201, 105, .12) 0 50%, transparent 0 75%, rgba(243, 201, 105, .12) 0) 0 0/18px 18px,
  linear-gradient(160deg, #1d3373, #0d1a45); }
.p3 .face { background:
  repeating-linear-gradient(45deg, #b3202e 0 9px, #f8efe0 9px 18px); }
.p3 .face .num { color: #fff; text-shadow: 0 0 6px #6e0f18, 0 2px 0 #6e0f18, 0 3px 10px rgba(0,0,0,.6); }
.p4 .face { background:
  repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 6px, transparent 6px 18px),
  repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 6px, transparent 6px 18px),
  repeating-linear-gradient(0deg, transparent 0 8px, rgba(243, 201, 105, .35) 8px 9px, transparent 9px 18px),
  repeating-linear-gradient(90deg, transparent 0 8px, rgba(243, 201, 105, .35) 8px 9px, transparent 9px 18px),
  #1f5d3d; }
.p5 .face { background:
  linear-gradient(90deg, transparent calc(50% - 4px), #c22a37 calc(50% - 4px) calc(50% + 4px), transparent 0),
  linear-gradient(0deg, transparent calc(50% - 4px), #c22a37 calc(50% - 4px) calc(50% + 4px), transparent 0),
  linear-gradient(160deg, #e0b866, #b8873a); }
.p5 .face .num { padding: 2px 8px; border-radius: 8px; background: rgba(110, 15, 24, .75); }

/* Zustände */
.cell.locked .door { cursor: not-allowed; }
.cell.locked .door:hover { animation: rattle .4s; }
@keyframes rattle { 25% { transform: rotateY(-4deg); } 75% { transform: rotateY(2deg); } }
.cell.open .door { cursor: pointer; }
.cell.open .door .face { animation: today 1.8s ease-in-out infinite; }
@keyframes today {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(255, 230, 160, .5), 0 0 6px 2px rgba(243, 201, 105, .35), 0 4px 10px rgba(0,0,0,.45); }
  50% { box-shadow: inset 0 0 0 2px rgba(255, 240, 190, .9), 0 0 22px 6px rgba(243, 201, 105, .7), 0 4px 10px rgba(0,0,0,.45); }
}
.cell.open:hover .door { transform: rotateY(-14deg); }
.cell.opened .door { transform: rotateY(-108deg); pointer-events: none; }
.cell.opening .door { transform: rotateY(-108deg); transition: transform 1s cubic-bezier(.2, 1.6, .4, 1); }
.cell.opening, .cell.anticipate { z-index: 6; }
.cell.running .door { transform: rotateY(-35deg); cursor: pointer; }
.cell .inside { cursor: default; }
.cell.opened .inside, .cell.running .inside { cursor: pointer; }
.cell.opened:hover .inside { box-shadow: inset 0 0 18px rgba(80, 50, 10, .55), inset 0 0 0 2px var(--gold); }
.cell.open .door .tag {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 2px 6px; border-radius: 6px; background: var(--gold); color: #3a2508; white-space: nowrap;
}
@container (max-width: 560px) { .cell.open .door .tag { font-size: 8px; padding: 1px 4px; top: 4px; } }
@media (prefers-reduced-motion: reduce) {
  .door, .cell.opening .door { transition: none; }
  .cell.open .door .face { animation: none; }
}

/* ------------------------------------------------------------ Seitenleiste */
.side { display: grid; gap: 16px; }
.panel {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 18px;
  padding: 16px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.panel h2 { margin: 0 0 10px; font-family: var(--font-title); font-size: 28px; color: var(--gold); line-height: 1.1; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04);
}
.board li.me { background: rgba(243, 201, 105, .14); outline: 1px solid rgba(243, 201, 105, .4); }
.board .rk { font-family: var(--font-num); font-weight: 800; text-align: center; color: var(--muted); }
.board .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.board .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.board .pt { font-family: var(--font-num); font-weight: 800; font-size: 20px; color: var(--gold); }
.board .pt small { font-size: 11px; color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.rules { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.rules b { color: var(--ink); }
.empty { color: var(--muted); font-size: 14px; margin: 0; }

/* ------------------------------------------------------------ Dialoge */
.modal {
  position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(3, 7, 20, .72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.modal.show { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0 } }
.sheet {
  position: relative; width: min(560px, 100%); overflow-y: auto;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 24px);   /* dvh: Handy-Adressleiste beachten */
  padding: 26px 22px 22px; border-radius: 22px;
  background:
    radial-gradient(circle at 50% -20%, rgba(243, 201, 105, .25), transparent 60%),
    linear-gradient(170deg, #182b62, #0b1638);
  border: 2px solid var(--gold-2);
  box-shadow: 0 0 0 5px rgba(11, 22, 56, .9), 0 0 0 6px rgba(243, 201, 105, .4), 0 40px 80px rgba(0, 0, 0, .6);
  animation: pop .4s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes pop { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.sheet.shake { animation: shake .5s; }

@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.sheet h3 { margin: 0; font-family: var(--font-title); font-size: 34px; color: var(--gold); line-height: 1.05; }
.sheet .sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.sheet .q { font-size: clamp(19px, 4.5vw, 24px); font-weight: 800; line-height: 1.3; margin: 18px 0; }
/* ✕ bleibt beim Scrollen langer Popups immer sichtbar oben rechts */
.sheet .x {
  position: sticky; top: 0; float: right; margin: -14px -8px -30px 0; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(16, 28, 66, .92); font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.qhead { display: flex; align-items: center; gap: 14px; padding-right: 0; }
.qhead .ico { font-size: 44px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); }
.qhead .t { flex: 1; min-width: 0; }

/* Timer-Ring */
.timer { position: relative; width: 74px; height: 74px; flex: none; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 7; }
.timer .bg { stroke: rgba(255, 255, 255, .12); }
.timer .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke .3s; }
.timer .sec {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-num); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums;
}
.timer.hurry .fg { stroke: var(--bad); }
.timer.hurry .sec { color: var(--bad); animation: beat 1s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1) } 15% { transform: scale(1.18) } }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .opts { grid-template-columns: 1fr; } }
.opt {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px 14px; min-height: 64px;
  border-radius: 14px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06);
  font-weight: 700; font-size: 16px; line-height: 1.25; transition: all .15s;
}
.opt:hover { background: rgba(255, 255, 255, .12); }
.opt .l {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(243, 201, 105, .18); color: var(--gold); font-family: var(--font-num); font-weight: 800;
}
.opt.sel { border-color: var(--gold); background: rgba(243, 201, 105, .18); box-shadow: 0 0 16px rgba(243, 201, 105, .3); }
.opt.sel .l { background: var(--gold); color: #3a2508; }
.numrow { display: flex; align-items: center; gap: 10px; }
.numrow input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px; font-size: 26px; font-weight: 800;
  font-family: var(--font-num); text-align: center; background: rgba(255, 255, 255, .08);
  border: 2px solid rgba(255, 255, 255, .2); outline: none;
}
.numrow input::placeholder { font-size: 18px; font-family: var(--font-body); font-weight: 700; color: rgba(255,255,255,.35); }
.numrow input:focus { border-color: var(--gold); box-shadow: 0 0 16px rgba(243, 201, 105, .3); }
.numrow .unit { font-size: 22px; font-weight: 800; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px; border: 0; font-weight: 800; font-size: 17px;
  background: linear-gradient(180deg, #ffe08f, var(--gold-2)); color: #3a2508;
  box-shadow: 0 4px 0 var(--gold-dark), 0 10px 20px rgba(0, 0, 0, .35); transition: transform .1s, box-shadow .1s, opacity .2s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-dark), 0 6px 12px rgba(0, 0, 0, .35); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.red { background: linear-gradient(180deg, #e0404e, var(--red)); color: #fff; box-shadow: 0 4px 0 var(--red-dark), 0 10px 20px rgba(0, 0, 0, .35); }
.btn.ghost { background: rgba(255, 255, 255, .08); color: var(--ink); box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); }
.btn.full { width: 100%; margin-top: 16px; }
.btnrow { display: flex; gap: 10px; margin-top: 18px; }
.btnrow .btn { flex: 1; }
.err { color: var(--bad); font-weight: 700; min-height: 1.3em; margin: 8px 0 0; }

/* Ergebnis-Overlay im Dialog */
.result-big { text-align: center; padding: 14px 0 4px; }
.result-big .e { font-size: 64px; line-height: 1; }
.result-big h4 { margin: 8px 0 0; font-family: var(--font-title); font-size: 34px; color: var(--gold); }
.result-big p { color: var(--muted); margin: 6px 0 0; }

/* Auflösung */
.answer-box {
  margin: 14px 0; padding: 14px; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(79, 209, 139, .2), rgba(79, 209, 139, .06));
  border: 1px solid rgba(79, 209, 139, .5);
}
.answer-box .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.answer-box .val { font-family: var(--font-num); font-weight: 800; font-size: 32px; color: #c9ffe0; }
.answer-box .info { margin-top: 6px; color: var(--ink); font-size: 14px; }
.mine { text-align: center; font-weight: 800; font-size: 18px; margin: 10px 0 14px; }
.mine.win { color: var(--ok); }
.mine.lose { color: #ffb4b4; }
.bars { display: grid; gap: 8px; }
.bar { position: relative; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, .08); transition: width .8s ease; }
.bar.right { border-color: rgba(79, 209, 139, .6); }
.bar.right .fill { background: rgba(79, 209, 139, .22); }
.bar .row { position: relative; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.bar .who { position: relative; font-size: 13px; color: var(--muted); margin-top: 3px; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.plist li { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.plist li.win { background: rgba(79, 209, 139, .14); }
.plist li.me { outline: 1px solid rgba(243, 201, 105, .5); }
.plist .v { font-family: var(--font-num); font-weight: 800; }
.plist .d { color: var(--muted); font-size: 13px; min-width: 64px; text-align: right; }
.section-t { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200px); z-index: 80; visibility: hidden;
  padding: 12px 18px; border-radius: 12px; background: #0f1d47; border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

#confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* ------------------------------------------------------------ Login */
.loginwrap { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.loginbox { width: min(420px, 100%); text-align: center; }
.loginbox h1 {
  font-family: var(--font-title); font-size: clamp(44px, 12vw, 64px); margin: 0; line-height: .95;
  background: linear-gradient(180deg, #fff6d6, var(--gold) 45%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 10px rgba(243, 201, 105, .4));
}
.loginbox .lead { color: var(--muted); margin: 10px 0 20px; }
.loginbox .sheet { animation: pop .5s cubic-bezier(.2, 1.5, .4, 1); text-align: left; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); margin-bottom: 16px; }
.tabs a { text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; }
.tabs a.act { background: rgba(243, 201, 105, .2); color: var(--gold); }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: 12px; font-size: 17px;
  background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .16); outline: none;
}
.field input:focus { border-color: var(--gold); }
.deco-tree { font-size: 54px; filter: drop-shadow(0 0 14px rgba(255, 220, 120, .5)); }

/* ------------------------------------------------------------ Admin */
.admin { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 16px 16px 30vh; display: grid; gap: 16px; }
.admin table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin th, .admin td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; vertical-align: top; }
.admin th { color: var(--muted); font-weight: 700; }
.admin .scroll { overflow-x: auto; }
.admin form.inline { display: inline; }
.admin .mini-btn { padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); font-size: 12px; }
.admin .mini-btn.danger { border-color: rgba(255, 107, 107, .5); color: #ffb4b4; }
.admin .set { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.admin .set input[type=number] { width: 100%; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }
.admin .msg { padding: 10px 14px; border-radius: 10px; background: rgba(79, 209, 139, .15); border: 1px solid rgba(79, 209, 139, .4); }
.admin .ans { color: var(--ok); }


/* ============================================================ Musik-Knopf */
.chip.music { max-width: 260px; }
.chip.music .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 640px) { .chip.music { max-width: 170px; } }
.credits {
  position: relative; z-index: 2; text-align: center; font-size: 12px; color: rgba(255,255,255,.55);
  margin-top: -27vh; padding: 0 16px 24px;
}
.credits a { color: rgba(255,255,255,.7); }

/* ============================================================ Bühne: Tür öffnen */
#mQuestion .sheet { z-index: 3; }
#mQuestion #confetti { position: absolute; z-index: 2; }
#mQuestion.staging .sheet { visibility: hidden; }
#mQuestion.staging { background: rgba(3, 7, 20, .82); }
.stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage .halo {
  position: absolute; left: var(--cx); top: var(--cy); width: 10px; height: 10px; border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s, box-shadow 1.2s;
  box-shadow: 0 0 0 0 rgba(255, 214, 120, 0);
}
.stage .rays {
  position: absolute; left: var(--cx); top: var(--cy); width: 220vmax; height: 220vmax;
  transform: translate(-50%, -50%) rotate(0deg); opacity: 0; transition: opacity 1s ease;
  background: repeating-conic-gradient(from 0deg, rgba(255, 222, 150, .22) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 12%, transparent 32%);
  mask: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 12%, transparent 32%);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.bigdoor {
  position: fixed; perspective: 1100px; will-change: left, top, width, height;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6));
}
.bigdoor.fly { transition: left .75s cubic-bezier(.22, .9, .25, 1), top .75s cubic-bezier(.22, .9, .25, 1),
                           width .75s cubic-bezier(.22, .9, .25, 1), height .75s cubic-bezier(.22, .9, .25, 1); }
.bigdoor.fly .bd-door { animation: flytilt .75s ease-out; }
@keyframes flytilt { 0% { transform: rotateX(0) rotateZ(0); } 45% { transform: rotateX(18deg) rotateZ(-4deg); } 100% { transform: none; } }
.bd-inside {
  position: absolute; inset: 0; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #fffdf2 0%, #ffe9a8 35%, #e2b65c 75%, #a8782a 100%);
  box-shadow: inset 0 0 30px rgba(110, 70, 10, .6);
}
.bd-inside .ico { font-size: calc(var(--w) * .46); line-height: 1; transform: scale(.3); opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(80, 40, 0, .45)); }
.bd-door {
  position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.25, 1.45, .45, 1);
}
.bd-door .face, .bd-door .back { position: absolute; inset: 0; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bd-door .back { transform: rotateY(180deg); background: linear-gradient(90deg, #cdb37a, #e9d6a4 30%, #d8bf86); box-shadow: inset 0 0 18px rgba(80, 50, 10, .5); }
.bd-door .face {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 230, 160, .45), inset 0 -18px 36px rgba(0, 0, 0, .3);
  transition: box-shadow .4s;
}
.bd-door .face::before { content: ""; position: absolute; inset: 8px; border-radius: 9px; border: 2px dashed rgba(255, 236, 190, .5); }
.bd-door .num { position: relative; font-family: var(--font-num); font-weight: 800; font-size: calc(var(--w) * .42); line-height: 1; color: #fff3cf;
  text-shadow: 0 2px 0 var(--gold-dark), 0 4px 0 #6b4a12, 0 8px 20px rgba(0, 0, 0, .55); }
.bd-door .knob { position: absolute; right: 9%; top: 50%; width: calc(var(--w) * .05); height: calc(var(--w) * .05); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c0, var(--gold-2) 60%, var(--gold-dark)); box-shadow: 0 2px 3px rgba(0,0,0,.6); }
/* Rütteln, Licht dringt durch die Ritzen */
.bigdoor.rattle .bd-door { animation: bdwiggle .5s ease-in-out; }
.bigdoor.rattle .bd-door .face, .bigdoor.open .bd-door .face { box-shadow: inset 0 0 0 3px rgba(255, 240, 190, .9), 0 0 30px 8px rgba(255, 214, 120, .85), 0 0 80px 20px rgba(255, 200, 90, .45); }
@keyframes bdwiggle {
  0%,100% { transform: none; } 15% { transform: rotateY(-7deg) rotateZ(-1.5deg); } 35% { transform: rotateY(4deg) rotateZ(1.5deg); }
  55% { transform: rotateY(-9deg) rotateZ(-1deg); } 75% { transform: rotateY(3deg) rotateZ(.8deg); }
}
/* Auf! */
.bigdoor.open .bd-door { transform: rotateY(-118deg); }
.bigdoor.open .bd-inside .ico { animation: bdpop 1s cubic-bezier(.2, 1.7, .4, 1) .15s forwards; }
@keyframes bdpop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 50% { opacity: 1; } 65% { transform: scale(1.25) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.bigdoor.open .bd-inside { animation: bdflash 1.4s ease-out; }
@keyframes bdflash { 0% { filter: brightness(1); } 18% { filter: brightness(1.7); } 100% { filter: brightness(1); } }
.stage.lit .rays { opacity: 1; }
.stage.lit .halo { opacity: 1; box-shadow: 0 0 120px 90px rgba(255, 214, 120, .35), 0 0 300px 200px rgba(255, 200, 90, .12); }
/* Frage wächst aus der Tür, Bühne tritt zurück */
.stage.out { transition: opacity .7s ease, transform .7s ease; opacity: 0; transform: scale(.92); }
.sheet.emerge { animation: emerge .7s cubic-bezier(.2, 1.2, .35, 1); }
@keyframes emerge {
  0% { transform: translate(var(--fx), var(--fy)) scale(.15); opacity: 0; filter: blur(8px) brightness(2); }
  45% { opacity: 1; }
  100% { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .stage { display: none; } .sheet.emerge { animation: none; } }
.cell.lifted .door { visibility: hidden; }
.cell.lifted .inside { box-shadow: inset 0 0 30px rgba(0,0,0,.7); background: #2a1a08; }
.cell.lifted .inside > * { visibility: hidden; }

/* Admin: Anti-Schummel */
.admin .mini-btn.cheat { border-color: rgba(255, 107, 107, .6); color: #ffb4b4; text-decoration: line-through; }
.admin .mini-btn.ok { border-color: rgba(79, 209, 139, .6); color: #b9f5d3; margin-top: 3px; }
.admin .meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
.admin .meta .warn { color: #ffcf7a; }

/* ============================================================ Anti-Schummel */
#mCheat { z-index: 70; }
.sheet.cheat { border-color: #e0404e; box-shadow: 0 0 0 5px rgba(56, 8, 14, .9), 0 0 0 6px rgba(255, 107, 107, .5), 0 40px 80px rgba(0,0,0,.6); }
.sheet.cheat h4 { color: #ff8a8a; }
/* Frage nicht markier-/kopierbar */
#mQuestion .sheet { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#mQuestion .sheet input { -webkit-user-select: text; user-select: text; }
/* Fenster nicht im Vordergrund: Frage verschwimmt */
#mQuestion .sheet.away #qText, #mQuestion .sheet.away #qInput { filter: blur(12px); transition: filter .15s; }
.invalid-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 800;
  background: rgba(224, 64, 78, .25); color: #ffb4b4; border: 1px solid rgba(255, 107, 107, .5); vertical-align: middle;
}
.plist li.inv { opacity: .55; }
.plist li.inv .v { text-decoration: line-through; }
@media print { #mQuestion { display: none !important; } }

/* ============================================================ Medien in Fragen */
#qMedia:empty { display: none; }
#qMedia { margin: -4px 0 16px; position: relative; }
.qimg { position: relative; border-radius: 14px; overflow: hidden; background: #000; border: 2px solid rgba(243,201,105,.35); }
.qimg img, .qimg video { display: block; width: 100%; max-height: 42vh; object-fit: contain; background: #000; }
.qimg img { cursor: zoom-in; -webkit-user-drag: none; }
.qimg .zoomhint { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.6); color: #fff; pointer-events: none; }
.qimg .imgtimer { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 8px; font-weight: 800;
  background: rgba(179, 32, 46, .85); color: #fff; font-family: var(--font-num); }
.qimg.gone img { visibility: hidden; }
.qimg.gone::after { content: "🙈 Bild ist weg!"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--muted); }
.player { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 2px solid rgba(243,201,105,.35); }
.player .pbtn { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 26px;
  background: linear-gradient(180deg, #ffe08f, var(--gold-2)); color: #3a2508; box-shadow: 0 4px 0 var(--gold-dark); }
.player .pbar { flex: 1; height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.player .pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), #ffe08f); }
.player .eq { font-size: 13px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.94); display: grid; place-items: center; touch-action: pinch-zoom; }
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
.lightbox .lb-x { position: fixed; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; }
.proof { display: grid; gap: 8px; margin-top: 10px; }
.proof img { width: 100%; border-radius: 12px; cursor: zoom-in; border: 1px solid rgba(255,255,255,.15); background: #fff; }

/* ============================================================ Extrapunkte / Jury */
.chip.jury { background: linear-gradient(135deg, #b3202e, #6e0f18); border-color: #ff8a8a; font-weight: 800; animation: jurypulse 1.6s infinite; }
@keyframes jurypulse { 50% { box-shadow: 0 0 16px 4px rgba(255, 107, 107, .55); } }
.rec { display: grid; gap: 12px; }
.recbtn { width: 100%; padding: 18px; border-radius: 16px; border: 0; font-size: 19px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #e0404e, var(--red)); box-shadow: 0 4px 0 var(--red-dark); }
.recbtn.on { animation: recblink 1s infinite; }
@keyframes recblink { 50% { background: #ff5d6a; } }
.rectime { text-align: center; font-family: var(--font-num); font-size: 28px; font-weight: 800; color: #ff8a8a; }
.rec audio { width: 100%; }
.rec .filebtn { position: relative; overflow: hidden; }
.rec .filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .2s; }
.bstate { padding: 14px; border-radius: 14px; text-align: center; font-weight: 700; }
.bstate.pending { background: rgba(243,201,105,.12); border: 1px solid rgba(243,201,105,.4); }
.bstate.rated { background: rgba(79,209,139,.14); border: 1px solid rgba(79,209,139,.5); }
.judge-btns { display: grid; gap: 10px; margin-top: 16px; }
.judge-btns .btn { justify-content: space-between; }
.judge-btns small { font-weight: 700; opacity: .8; }
.inside .bon { font-size: clamp(9px, 1.5cqi, 12px); font-weight: 800; color: #7a3d00; }
.lightbox[hidden], .stage[hidden] { display: none !important; }
.linkbtn { margin-top: 12px; text-decoration: none; font-size: 15px; }

/* Aufnahme-Knopf als Datei-Auswahl (ohne HTTPS): ganze Fläche tippbar */
label.recbtn { display: block; text-align: center; position: relative; overflow: hidden; cursor: pointer; }
label.recbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#mBonus .qhead .ico { cursor: pointer; }
#recPrev:not([hidden]) { margin-top: 2px; }

.inside .bon[data-bonus] { cursor: pointer; padding: 2px 6px; border-radius: 6px; background: rgba(179, 32, 46, .9); color: #fff; margin: 1px 0; }
.bonusbtn { margin: 4px 0 6px; animation: jurypulse 1.6s infinite; }
/* Versteckt heißt versteckt – egal welche display-Regel sonst gilt */
[hidden] { display: none !important; }

/* Neue Auflösung: Türchen leuchtet mit "Neu!" bis man sie angesehen hat */
.cell.fresh .inside { animation: freshglow 1.6s ease-in-out infinite; }
@keyframes freshglow {
  0%, 100% { box-shadow: inset 0 0 18px rgba(80,50,10,.55), 0 0 6px 2px rgba(79, 209, 139, .5); }
  50% { box-shadow: inset 0 0 18px rgba(80,50,10,.55), 0 0 22px 8px rgba(79, 209, 139, .9); }
}
.cell.fresh .inside::before {
  content: "Neu!"; position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 6px;
  font-size: 10px; font-weight: 800; background: var(--ok); color: #05301a; z-index: 1;
}
.sheet.news .bell { display: inline-block; animation: ring 1.2s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(18deg); } 20% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); } 40% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .cell.fresh .inside, .sheet.news .bell { animation: none; } }

.soundhint { margin: 0 0 6px; padding: 12px 14px; border-radius: 14px; text-align: center; font-size: 15px;
  background: rgba(77, 215, 255, .12); border: 1px solid rgba(77, 215, 255, .5); color: #d7f6ff; }
.soundhint b { font-size: 17px; }

/* Popups: eigenes Scrollen läuft nicht auf die Seite dahinter über */
.modal, .sheet, .lightbox { overscroll-behavior: contain; }
body.scroll-locked { overflow: hidden; }

/* Popups: Platz für Notch/Home-Balken, Beweisbilder nicht höher als der halbe Bildschirm */
.modal { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.proof img { max-height: 45vh; max-height: 45dvh; object-fit: contain; }
.bonusimg { display: block; width: 100%; max-height: 40vh; max-height: 40dvh; object-fit: contain; border-radius: 12px;
  margin-top: 10px; background: #000; cursor: zoom-in; }
.banner .winner { color: #ffe9a8; font-size: 17px; }

/* ============================================================ iPhone / iPad */
/* Kein grauer Blitz beim Antippen, kein Text-Markieren auf Knöpfen und Türen */
button, .door, .inside, .chip, .opt, label.recbtn, .filebtn { -webkit-tap-highlight-color: transparent; }
.door, .inside, .chip, .opt, .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Notch/Kamera-Ausschnitt im Querformat und Home-Balken (viewport-fit=cover) */
.top, .banner, .layout, .admin { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.top { padding-top: max(4px, env(safe-area-inset-top) - 40px); }
/* Tastatur offen: Popup passt sich dem sichtbaren Bereich an (--vvh aus visualViewport) */
.modal { height: var(--vvh, 100%); top: var(--vvt, 0); bottom: auto; }
.sheet { max-height: calc(var(--vvh, 100dvh) - 24px); }
/* Ältere iPhones (iOS 15) ohne Container-Einheiten: Türchengröße aus der Bildschirmbreite */
@supports not (width: 1cqi) {
  .grid { grid-auto-rows: calc((min(100vw, 1200px) - 120px) / 7 * .82); }
}
@supports not (width: 1cqi) { @media (max-width: 960px) {
  .grid { grid-auto-rows: calc((100vw - 32px - 40px - 3 * var(--gap)) / 4 * 1.12); }
} }

/* ============================================================ Sonderpunkte vergeben (Jury) */
.chip.jury { animation: none; }
.atabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.atabs .chip { font-size: 13px; padding: 6px 10px; }
.alist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.alist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px;
  border-radius: 12px; background: rgba(255, 255, 255, .05); }
.alist .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alist .pts { display: flex; gap: 6px; flex: none; }
.alist .pts button { min-width: 44px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); font-weight: 800; font-family: var(--font-num); }
.alist .pts button.sel { background: var(--gold); color: #3a2508; border-color: var(--gold); }

/* Überschrift nicht unter das ✕ laufen lassen */
.sheet .x + .qhead .t { padding-right: 36px; }

/* Abschied */
.byerank { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px auto 14px; font-size: 46px; }
.byerank b { display: block; font-size: 26px; color: var(--gold); font-family: var(--font-num); }
.byerank small { display: block; font-size: 13px; color: var(--muted); }
.byerank div { font-size: 16px; line-height: 1.2; }
.byestats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.byestats li { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); text-align: center; }
.byestats b { display: block; font-family: var(--font-num); font-size: 24px; color: #fff3cf; }
.byestats span { font-size: 12px; color: var(--muted); }
