:root {
  --bg: #f6f1ea;
  --card: #fffdf9;
  --ink: #2a2522;
  --muted: #7a6f66;
  --line: #e6ddd2;
  --accent: #a3262c;
  --accent-ink: #fff;
  --green: #2f6b4f;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.top { padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.langs { display: flex; gap: 2px; }
.langs a { color: var(--muted); text-decoration: none; font-size: .8rem; font-weight: 600; padding: 4px 7px; border-radius: 6px; letter-spacing: .04em; }
.langs a:hover { color: var(--ink); background: var(--bg); }
.langs a.on { color: var(--accent); background: var(--bg); }
pre.detail { white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 12px; border-radius: 8px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.brand { color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: .01em; }
.star { color: var(--accent); }
main { max-width: 720px; margin: 0 auto; padding: 28px 18px 60px; }

h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 2rem; line-height: 1.2; margin: 0 0 .4em; }
h2 { font-size: 1.1rem; margin: 1.4em 0 .6em; }
.card > h2:first-child, .card > h1:first-child { margin-top: 0; }
h3 { font-size: .95rem; margin: 1.2em 0 .4em; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.intro { margin-bottom: 22px; }
.intro p { color: var(--muted); margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--accent) !important; margin-bottom: 4px !important; }
.meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px !important; }
.note { margin-top: 14px !important; padding: 12px 14px; background: var(--card); border-left: 3px solid var(--accent); border-radius: 6px; color: var(--ink) !important; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: 4px; }

label { display: block; font-weight: 550; font-size: .92rem; margin-bottom: 14px; }
label > input, label > select, label > textarea { margin-top: 5px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 450; }
label.check input { width: auto; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; transition: opacity .15s; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.span2 { grid-column: span 2; }
.row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin-bottom: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.btn {
  display: inline-block; cursor: pointer; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.actions { margin-top: 18px; }
button.icon { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 4px 8px; border-radius: 6px; }
button.icon:hover { color: var(--accent); background: var(--bg); }

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.flash.ok   { background: #eaf4ee; border-color: #c4e0cf; color: var(--green); }
.flash.warn { background: #fdf5e4; border-color: #f0dca9; color: #7a5a12; }
.flash.err  { background: #fbeceb; border-color: #f0c7c4; color: #8b1f22; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }

.target { text-align: center; background: linear-gradient(160deg, #fffdf9, #fbf1e8); }
.target details summary { list-style: none; display: inline-block; }
.target details summary::-webkit-details-marker { display: none; }
.target details[open] summary { display: none; }
.target-name { font-family: Georgia, serif; font-size: 2.2rem; color: var(--accent); margin: .2em 0 .3em; }
.target .wishes { text-align: left; max-width: 480px; margin: 0 auto; }

.wishes { list-style: none; padding: 0; margin: 0 0 14px; }
.wishes li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wishes li:last-child { border-bottom: 0; }
.wishes form { margin: 0; }
.link { color: var(--accent); font-size: .85rem; text-decoration: none; white-space: nowrap; }
.empty { color: var(--muted); font-style: italic; }
.addwish { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; }

.members { list-style: none; padding: 0; margin: 0; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.members li:last-child { border-bottom: 0; }
.members form { margin: 0; }
.tag { font-size: .72rem; background: var(--bg); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; color: var(--muted); font-weight: 500; }

.adminbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.adminbar h1 { margin: 0; }

@media (max-width: 560px) {
  h1 { font-size: 1.6rem; }
  .grid2, .grid3, .row, .addwish { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .row { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
}

.hint { display: block; font-weight: 450; font-size: .84rem; color: #7a5a12; background: #fdf5e4; border: 1px solid #f0dca9; border-radius: 8px; padding: 7px 10px; margin-top: 6px; }
.expires { margin-top: 8px !important; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
label.mode { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; margin: 0; }
label.mode input { width: auto; margin: 4px 0 0; accent-color: var(--accent); }
label.mode small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; line-height: 1.4; }
label.mode:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
form.is-signup .only-direct, form.is-direct .only-signup { display: none; }
.copyrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copyrow input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.badge { display: inline-block; font-size: .75rem; padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.badge.open { background: #eaf4ee; color: var(--green); }
.badge.drawn { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.pending { text-align: center; }
.pending .big { font-size: 2rem; margin: 0; }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }
.copyrow input:only-child { grid-column: 1 / -1; }
.btns { display: flex; gap: 6px; align-items: center; }
.big { font-size: 2rem; margin: 0; }

/* ================================================================
   Themes – chosen per group (christmas | newyear | jubilee)
   ================================================================ */
body { min-height: 100vh; background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.top, main { position: relative; z-index: 1; }
.top { background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(6px); }
.intro { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.after-intro { color: var(--on-bg); }

/* --- Weihnächtlich ------------------------------------------- */
body.theme-christmas {
  --accent: #a3262c; --on-bg: #f3efe6;
  background-color: #17311f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg transform='translate(30 34)' stroke='white' stroke-opacity='0.35' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(0)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(0)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(0)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(60)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(60)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(60)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(120)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(120)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(120)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(180)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(180)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(180)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(240)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(240)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(240)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(300)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(300)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(300)'/%3E%3C/g%3E%3Cg transform='translate(120 70)' stroke='white' stroke-opacity='0.25' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(0)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(0)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(0)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(60)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(60)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(60)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(120)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(120)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(120)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(180)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(180)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(180)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(240)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(240)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(240)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(300)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(300)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(300)'/%3E%3C/g%3E%3Cg transform='translate(70 140)' stroke='white' stroke-opacity='0.3' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(0)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(0)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(0)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(60)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(60)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(60)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(120)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(120)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(120)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(180)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(180)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(180)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(240)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(240)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(240)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(300)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(300)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(300)'/%3E%3C/g%3E%3Cg transform='translate(160 160)' stroke='white' stroke-opacity='0.2' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(0)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(0)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(0)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(60)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(60)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(60)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(120)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(120)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(120)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(180)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(180)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(180)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(240)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(240)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(240)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(300)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(300)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(300)'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='.35'%3E%3Ccircle cx='95' cy='20' r='1.6'/%3E%3Ccircle cx='15' cy='100' r='1.3'/%3E%3Ccircle cx='150' cy='115' r='1.8'/%3E%3Ccircle cx='45' cy='175' r='1.2'/%3E%3Ccircle cx='110' cy='165' r='1'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse at 50% -10%, #2f5a3c 0%, #17311f 55%, #0f2216 100%);
}
body.theme-christmas::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='white'%3E%3Ccircle cx='20' cy='30' r='2.2' opacity='.8'/%3E%3Ccircle cx='90' cy='10' r='1.5' opacity='.6'/%3E%3Ccircle cx='150' cy='60' r='2.6' opacity='.7'/%3E%3Ccircle cx='210' cy='20' r='1.6' opacity='.6'/%3E%3Ccircle cx='60' cy='110' r='1.8' opacity='.7'/%3E%3Ccircle cx='130' cy='140' r='1.3' opacity='.5'/%3E%3Ccircle cx='200' cy='120' r='2' opacity='.7'/%3E%3Ccircle cx='30' cy='190' r='1.5' opacity='.6'/%3E%3Ccircle cx='110' cy='210' r='2.4' opacity='.8'/%3E%3Ccircle cx='180' cy='200' r='1.4' opacity='.5'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='white'%3E%3Ccircle cx='20' cy='30' r='2.2' opacity='.8'/%3E%3Ccircle cx='90' cy='10' r='1.5' opacity='.6'/%3E%3Ccircle cx='150' cy='60' r='2.6' opacity='.7'/%3E%3Ccircle cx='210' cy='20' r='1.6' opacity='.6'/%3E%3Ccircle cx='60' cy='110' r='1.8' opacity='.7'/%3E%3Ccircle cx='130' cy='140' r='1.3' opacity='.5'/%3E%3Ccircle cx='200' cy='120' r='2' opacity='.7'/%3E%3Ccircle cx='30' cy='190' r='1.5' opacity='.6'/%3E%3Ccircle cx='110' cy='210' r='2.4' opacity='.8'/%3E%3Ccircle cx='180' cy='200' r='1.4' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px, 360px 360px;
  background-position: 0 0, 120px 60px;
  opacity: .55;
  animation: snowfall 22s linear infinite;
}
@keyframes snowfall { to { background-position: 40px 240px, 160px 420px; } }

/* --- Ende Jahr / Silvester ------------------------------------ */
body.theme-newyear {
  --accent: #8a5a0b; --on-bg: #eef0ff;
  background-color: #10163a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath transform='translate(30 30) scale(1)' fill='%23f3c969' fill-opacity='0.7' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cpath transform='translate(150 50) scale(0.6)' fill='%23ffffff' fill-opacity='0.6' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cpath transform='translate(90 120) scale(0.8)' fill='%23f3c969' fill-opacity='0.55' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cpath transform='translate(175 165) scale(0.5)' fill='%23f3c969' fill-opacity='0.6' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cpath transform='translate(25 160) scale(0.45)' fill='%23ffffff' fill-opacity='0.5' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cg fill-opacity='.55'%3E%3Crect x='70' y='30' width='7' height='3' fill='%23f3c969' transform='rotate(30 73 31)'/%3E%3Crect x='120' y='95' width='7' height='3' fill='%23e9a3c9' transform='rotate(-25 123 96)'/%3E%3Crect x='45' y='90' width='6' height='3' fill='%23cfd6ff' transform='rotate(60 48 91)'/%3E%3Crect x='160' y='120' width='6' height='3' fill='%23f3c969' transform='rotate(-60 163 121)'/%3E%3Crect x='110' y='180' width='7' height='3' fill='%23cfd6ff' transform='rotate(15 113 181)'/%3E%3Ccircle cx='60' cy='190' r='1.6' fill='%23ffffff'/%3E%3Ccircle cx='190' cy='95' r='1.4' fill='%23f3c969'/%3E%3Ccircle cx='130' cy='15' r='1.2' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E"), radial-gradient(ellipse at 50% 0%, #2a3170 0%, #141a44 50%, #0a0e27 100%);
}
body.theme-newyear::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg stroke-linecap='round' stroke-width='2.2'%3E%3Cline x1='0' y1='18' x2='0' y2='58' transform='translate(110 110) rotate(0.0)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='68' transform='translate(110 110) rotate(22.5)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='78' transform='translate(110 110) rotate(45.0)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='58' transform='translate(110 110) rotate(67.5)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='68' transform='translate(110 110) rotate(90.0)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='78' transform='translate(110 110) rotate(112.5)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='58' transform='translate(110 110) rotate(135.0)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='68' transform='translate(110 110) rotate(157.5)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='78' transform='translate(110 110) rotate(180.0)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='58' transform='translate(110 110) rotate(202.5)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='68' transform='translate(110 110) rotate(225.0)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='78' transform='translate(110 110) rotate(247.5)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='58' transform='translate(110 110) rotate(270.0)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='68' transform='translate(110 110) rotate(292.5)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='78' transform='translate(110 110) rotate(315.0)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='18' x2='0' y2='58' transform='translate(110 110) rotate(337.5)' stroke='%23f3c969' stroke-opacity='.5'/%3E%3Cline x1='0' y1='12' x2='0' y2='38' transform='translate(320 300) rotate(0)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='46' transform='translate(320 300) rotate(30)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='38' transform='translate(320 300) rotate(60)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='46' transform='translate(320 300) rotate(90)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='38' transform='translate(320 300) rotate(120)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='46' transform='translate(320 300) rotate(150)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='38' transform='translate(320 300) rotate(180)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='46' transform='translate(320 300) rotate(210)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='38' transform='translate(320 300) rotate(240)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='46' transform='translate(320 300) rotate(270)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='38' transform='translate(320 300) rotate(300)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3Cline x1='0' y1='12' x2='0' y2='46' transform='translate(320 300) rotate(330)' stroke='%23e9a3c9' stroke-opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .9; } }

/* --- Jubiläum -------------------------------------------------- */
body.theme-jubilee {
  --accent: #8e2c5f; --on-bg: #4a2b3a; --bg: #f8ece6;
  background-color: #f6e4dc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg transform='translate(40 50) scale(1)'%3E%3Cpath d='M0 22 q-4 14 3 26' stroke='%23c2417a' stroke-opacity='.45' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='0' rx='14' ry='18' fill='%23c2417a' fill-opacity='.38'/%3E%3Cpath d='M-3 18 h6 l-3 5z' fill='%23c2417a' fill-opacity='.45'/%3E%3Cellipse cx='-5' cy='-7' rx='3' ry='5' fill='white' fill-opacity='.45'/%3E%3C/g%3E%3Cg transform='translate(160 110) scale(0.8)'%3E%3Cpath d='M0 22 q-4 14 3 26' stroke='%23d4a017' stroke-opacity='.45' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='0' rx='14' ry='18' fill='%23d4a017' fill-opacity='.38'/%3E%3Cpath d='M-3 18 h6 l-3 5z' fill='%23d4a017' fill-opacity='.45'/%3E%3Cellipse cx='-5' cy='-7' rx='3' ry='5' fill='white' fill-opacity='.45'/%3E%3C/g%3E%3Cg transform='translate(80 170) scale(0.7)'%3E%3Cpath d='M0 22 q-4 14 3 26' stroke='%236c5bb5' stroke-opacity='.45' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='0' rx='14' ry='18' fill='%236c5bb5' fill-opacity='.38'/%3E%3Cpath d='M-3 18 h6 l-3 5z' fill='%236c5bb5' fill-opacity='.45'/%3E%3Cellipse cx='-5' cy='-7' rx='3' ry='5' fill='white' fill-opacity='.45'/%3E%3C/g%3E%3Cg fill-opacity='.5'%3E%3Crect x='120' y='30' width='6' height='3' fill='%23c2417a' transform='rotate(40 123 31)'/%3E%3Crect x='190' y='190' width='6' height='3' fill='%236c5bb5' transform='rotate(-30 193 191)'/%3E%3Crect x='20' y='130' width='6' height='3' fill='%23d4a017' transform='rotate(70 23 131)'/%3E%3Ccircle cx='100' cy='100' r='2' fill='%23d4a017'/%3E%3Ccircle cx='200' cy='40' r='1.8' fill='%23c2417a'/%3E%3Ccircle cx='140' cy='200' r='1.6' fill='%236c5bb5'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(160deg, #fbefe9 0%, #f3dccf 60%, #ecd0c6 100%);
}
body.theme-jubilee::before { display: none; }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
}

/* Theme picker */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
label.theme { margin: 0; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; font-weight: 600; font-size: .9rem; }
label.theme input { position: absolute; opacity: 0; pointer-events: none; }
label.theme .sw { display: block; height: 54px; }
label.theme span.name { display: block; padding: 7px 10px; }
label.theme:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
label.theme:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-christmas { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg transform='translate(30 34)' stroke='white' stroke-opacity='0.35' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(0)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(0)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(0)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(60)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(60)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(60)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(120)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(120)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(120)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(180)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(180)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(180)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(240)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(240)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(240)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-12' transform='rotate(300)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='2.64' y2='-9.0' transform='rotate(300)'/%3E%3Cline x1='0' y1='-6.6000000000000005' x2='-2.64' y2='-9.0' transform='rotate(300)'/%3E%3C/g%3E%3Cg transform='translate(120 70)' stroke='white' stroke-opacity='0.25' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(0)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(0)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(0)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(60)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(60)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(60)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(120)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(120)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(120)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(180)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(180)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(180)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(240)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(240)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(240)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-8' transform='rotate(300)'/%3E%3Cline x1='0' y1='-4.4' x2='1.76' y2='-6.0' transform='rotate(300)'/%3E%3Cline x1='0' y1='-4.4' x2='-1.76' y2='-6.0' transform='rotate(300)'/%3E%3C/g%3E%3Cg transform='translate(70 140)' stroke='white' stroke-opacity='0.3' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(0)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(0)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(0)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(60)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(60)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(60)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(120)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(120)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(120)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(180)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(180)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(180)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(240)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(240)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(240)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-10' transform='rotate(300)'/%3E%3Cline x1='0' y1='-5.5' x2='2.2' y2='-7.5' transform='rotate(300)'/%3E%3Cline x1='0' y1='-5.5' x2='-2.2' y2='-7.5' transform='rotate(300)'/%3E%3C/g%3E%3Cg transform='translate(160 160)' stroke='white' stroke-opacity='0.2' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(0)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(0)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(0)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(60)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(60)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(60)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(120)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(120)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(120)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(180)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(180)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(180)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(240)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(240)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(240)'/%3E%3Cline x1='0' y1='0' x2='0' y2='-6' transform='rotate(300)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='1.32' y2='-4.5' transform='rotate(300)'/%3E%3Cline x1='0' y1='-3.3000000000000003' x2='-1.32' y2='-4.5' transform='rotate(300)'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='.35'%3E%3Ccircle cx='95' cy='20' r='1.6'/%3E%3Ccircle cx='15' cy='100' r='1.3'/%3E%3Ccircle cx='150' cy='115' r='1.8'/%3E%3Ccircle cx='45' cy='175' r='1.2'/%3E%3Ccircle cx='110' cy='165' r='1'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(#2f5a3c, #17311f); background-size: 90px 90px, auto; }
.sw-newyear   { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath transform='translate(30 30) scale(1)' fill='%23f3c969' fill-opacity='0.7' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cpath transform='translate(150 50) scale(0.6)' fill='%23ffffff' fill-opacity='0.6' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cpath transform='translate(90 120) scale(0.8)' fill='%23f3c969' fill-opacity='0.55' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cpath transform='translate(175 165) scale(0.5)' fill='%23f3c969' fill-opacity='0.6' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cpath transform='translate(25 160) scale(0.45)' fill='%23ffffff' fill-opacity='0.5' d='M0 -10 C1 -2 2 -1 10 0 C2 1 1 2 0 10 C-1 2 -2 1 -10 0 C-2 -1 -1 -2 0 -10Z'/%3E%3Cg fill-opacity='.55'%3E%3Crect x='70' y='30' width='7' height='3' fill='%23f3c969' transform='rotate(30 73 31)'/%3E%3Crect x='120' y='95' width='7' height='3' fill='%23e9a3c9' transform='rotate(-25 123 96)'/%3E%3Crect x='45' y='90' width='6' height='3' fill='%23cfd6ff' transform='rotate(60 48 91)'/%3E%3Crect x='160' y='120' width='6' height='3' fill='%23f3c969' transform='rotate(-60 163 121)'/%3E%3Crect x='110' y='180' width='7' height='3' fill='%23cfd6ff' transform='rotate(15 113 181)'/%3E%3Ccircle cx='60' cy='190' r='1.6' fill='%23ffffff'/%3E%3Ccircle cx='190' cy='95' r='1.4' fill='%23f3c969'/%3E%3Ccircle cx='130' cy='15' r='1.2' fill='%23ffffff'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(#2a3170, #0a0e27); background-size: 100px 100px, auto; }
.sw-jubilee   { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg transform='translate(40 50) scale(1)'%3E%3Cpath d='M0 22 q-4 14 3 26' stroke='%23c2417a' stroke-opacity='.45' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='0' rx='14' ry='18' fill='%23c2417a' fill-opacity='.38'/%3E%3Cpath d='M-3 18 h6 l-3 5z' fill='%23c2417a' fill-opacity='.45'/%3E%3Cellipse cx='-5' cy='-7' rx='3' ry='5' fill='white' fill-opacity='.45'/%3E%3C/g%3E%3Cg transform='translate(160 110) scale(0.8)'%3E%3Cpath d='M0 22 q-4 14 3 26' stroke='%23d4a017' stroke-opacity='.45' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='0' rx='14' ry='18' fill='%23d4a017' fill-opacity='.38'/%3E%3Cpath d='M-3 18 h6 l-3 5z' fill='%23d4a017' fill-opacity='.45'/%3E%3Cellipse cx='-5' cy='-7' rx='3' ry='5' fill='white' fill-opacity='.45'/%3E%3C/g%3E%3Cg transform='translate(80 170) scale(0.7)'%3E%3Cpath d='M0 22 q-4 14 3 26' stroke='%236c5bb5' stroke-opacity='.45' fill='none' stroke-width='1.2'/%3E%3Cellipse cx='0' cy='0' rx='14' ry='18' fill='%236c5bb5' fill-opacity='.38'/%3E%3Cpath d='M-3 18 h6 l-3 5z' fill='%236c5bb5' fill-opacity='.45'/%3E%3Cellipse cx='-5' cy='-7' rx='3' ry='5' fill='white' fill-opacity='.45'/%3E%3C/g%3E%3Cg fill-opacity='.5'%3E%3Crect x='120' y='30' width='6' height='3' fill='%23c2417a' transform='rotate(40 123 31)'/%3E%3Crect x='190' y='190' width='6' height='3' fill='%236c5bb5' transform='rotate(-30 193 191)'/%3E%3Crect x='20' y='130' width='6' height='3' fill='%23d4a017' transform='rotate(70 23 131)'/%3E%3Ccircle cx='100' cy='100' r='2' fill='%23d4a017'/%3E%3Ccircle cx='200' cy='40' r='1.8' fill='%23c2417a'/%3E%3Ccircle cx='140' cy='200' r='1.6' fill='%236c5bb5'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(#fbefe9, #ecd0c6); background-size: 110px 110px, auto; }

/* Video hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: #0d1a12; box-shadow: 0 10px 30px rgba(0,0,0,.25); aspect-ratio: 960 / 548; }
.hero video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .vbtns { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.hero .vbtns button { border: 0; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }
.hero .vbtns button:hover { background: rgba(0,0,0,.75); }
@media (max-width: 560px) { .themes { grid-template-columns: 1fr 1fr 1fr; } label.theme span.name { font-size: .78rem; padding: 6px; } }
main > p.muted, main > p.small { color: var(--on-bg); opacity: .9; }
.adminbar h1 { color: var(--on-bg); }
fieldset.dim { opacity: .45; }

/* ---------------------------------------------------------------
   Theme shines through the text panels (slightly translucent cards).
   Inputs stay opaque so typing remains easy to read.
   --------------------------------------------------------------- */
body[class*="theme-"] .card,
body[class*="theme-"] .intro {
  background: rgba(255, 253, 249, .87);
  -webkit-backdrop-filter: blur(.6px);
  backdrop-filter: blur(.6px);
}
body.theme-jubilee .card,
body.theme-jubilee .intro { background: rgba(255, 253, 249, .78); }
body[class*="theme-"] .target { background: linear-gradient(160deg, rgba(255,253,249,.86), rgba(251,241,232,.8)); }
body[class*="theme-"] label.mode,
body[class*="theme-"] label.theme { background: rgba(255, 255, 255, .9); }
/* Browsers without backdrop-filter: a bit more opaque for readability */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  body[class*="theme-"] .card, body[class*="theme-"] .intro { background: rgba(255, 253, 249, .92); }
}

/* Admin area */
.adminbar { flex-wrap: wrap; gap: 10px; }
.adminbar .who { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--on-bg); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); background: rgba(255,253,249,.82); border: 1px solid var(--line); }
.tabs a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.limits label span { display: block; }
.limits small { display: block; font-weight: 400; margin-top: 3px; }
.pwchange { position: relative; }
.pwchange summary { list-style: none; }
.pwchange summary::-webkit-details-marker { display: none; }
.pwchange[open] form { display: grid; gap: 6px; margin-top: 8px; min-width: 220px; }
.users li { align-items: flex-start; }
@media (max-width: 560px) { .limits { grid-template-columns: 1fr; } .users li { flex-direction: column; } }

.adminbar .btn.ghost { background: rgba(255,253,249,.9); }
.limits input::placeholder { color: #b3a89d; }

/* Ads (start page only) and footer */
.adbox { margin: 18px 0; padding: 10px 12px 12px; border-radius: var(--radius); background: rgba(255,253,249,.87); border: 1px solid var(--line); }
.adbox ins.adsbygoogle { display: block; min-height: 90px; }
.adlabel { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.foot { position: relative; z-index: 1; text-align: center; padding: 0 16px 28px; font-size: .85rem; color: var(--on-bg); }
.foot a { color: inherit; }
.steps { padding-left: 20px; margin: 0; }
.steps li { margin-bottom: 12px; }
.steps .copyrow { margin-top: 6px; }

/* Privacy policy + human check */
.human { text-align: center; }
.human .question { font-size: 1.25rem; font-family: Georgia, serif; font-weight: 600; margin: 18px 0 8px; }
.human input#answer { max-width: 220px; margin: 0 auto; text-align: center; font-size: 1.2rem; display: block; }
.policy { line-height: 1.65; }
.policy header h1 { margin-bottom: .2em; }
.policy section { padding-top: 6px; scroll-margin-top: 16px; }
.policy section h2 { font-family: Georgia, serif; font-size: 1.25rem; margin: 1.6em 0 .5em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.policy h3 { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1rem; margin: 1.2em 0 .3em; }
.policy ul { padding-left: 1.2em; }
.policy li { margin: 3px 0; }
.policy a { color: var(--accent); }
.policy .note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
.policy dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.policy dl.facts dt { font-weight: 600; color: var(--muted); }
.policy dl.facts dd { margin: 0; }
.policy address { font-style: normal; background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.policy .toc { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin: 16px 0 6px; }
.policy .toc h2 { margin: 0 0 6px; font-size: .95rem; border: 0; padding: 0; font-family: inherit; }
.policy .toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 28px; font-size: .92rem; }
.policy .toc a { text-decoration: none; }
.policy .toc a:hover { text-decoration: underline; }
.policy .totop { text-align: right; margin: 0; font-size: .85rem; }
.policy .totop a { text-decoration: none; color: var(--muted); }
@media (max-width: 560px) { .policy .toc ol { columns: 1; } .policy dl.facts { grid-template-columns: 1fr; } }
