/* Fonts (self-hosted, SIL Open Font License) */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Themes: Nordlicht, Geschenkpapier, Tannenwald */
.t-nordlicht {
  --bg: #0E1524; --fg: #E9EDF5; --muted: #A9B4C8; --link: #C9D3E6; --link-hover: #fff;
  --accent: #F2B85B; --accent-fg: #0E1524; --heading: inherit;
  --card-bg: #151F33; --card-border: 1px solid #2C3A55; --card-radius: 16px; --card-shadow: none;
  --input-bg: #0E1524; --input-border: 1px solid #2C3A55; --input-fg: #fff; --input-radius: 12px;
  --line: #2C3A55; --chip-bg: #24314C; --chip-fg: #E9EDF5; --chip-border: 0;
  --ok: #8FE0C4; --wait: #8C97AE; --danger: #FF9C8F;
  --head-font: "Space Grotesk", system-ui, sans-serif; --head-weight: 700; --head-style: normal; --head-spacing: -.02em;
  --btn-border: 0; --btn-shadow: none; --btn-font: inherit; --btn-weight: 600; --btn-radius: 14px;
  --sec-bg: transparent; --sec-fg: var(--accent); --sec-border: 1px solid #2C3A55;
  --reveal-bg: #8E2A2E; --reveal-fg: #fff; --reveal-band: var(--accent); --reveal-border: 0; --reveal-shadow: none; --reveal-name: #fff; --reveal-tilt: 0deg;
  background-color: var(--bg);
  /* Three star tiles with coprime sizes never line up visibly, under a faint aurora glow. */
  --stars:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='173' height='173' fill='%23fff'%3E%3Ccircle cx='122' cy='144' r='0.7' fill-opacity='0.40'/%3E%3Ccircle cx='35' cy='115' r='0.6' fill-opacity='0.35'/%3E%3Ccircle cx='28' cy='121' r='0.9' fill-opacity='0.35'/%3E%3Ccircle cx='77' cy='148' r='1.0' fill-opacity='0.22'/%3E%3Ccircle cx='89' cy='164' r='0.9' fill-opacity='0.29'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='241' height='241' fill='%23fff'%3E%3Ccircle cx='74' cy='228' r='0.8' fill-opacity='0.45'/%3E%3Ccircle cx='202' cy='39' r='0.9' fill-opacity='0.36'/%3E%3Ccircle cx='130' cy='89' r='1.2' fill-opacity='0.48'/%3E%3Ccircle cx='77' cy='214' r='0.8' fill-opacity='0.32'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='317' height='317' fill='%23fff'%3E%3Ccircle cx='210' cy='252' r='1.4' fill-opacity='0.70'/%3E%3Ccircle cx='271' cy='85' r='1.4' fill-opacity='0.68'/%3E%3Ccircle cx='31' cy='157' r='1.2' fill-opacity='0.49'/%3E%3C/svg%3E");
  background-image:
    radial-gradient(ellipse 70% 420px at 25% -60px, rgba(70, 200, 160, .10), transparent),
    radial-gradient(ellipse 55% 360px at 80% -80px, rgba(60, 150, 200, .08), transparent),
    var(--stars);
  background-size: 100% 100%, 100% 100%, 173px 173px, 241px 241px, 317px 317px;
  background-position: 0 0, 0 0, 0 0, 61px 97px, 139px 23px;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat;
  color: var(--fg);
}
.t-papier {
  --bg: #FFF6EC; --fg: #231A16; --muted: #5A4C44; --link: #231A16; --link-hover: #B8321F;
  --accent: #C8372A; --accent-fg: #fff; --heading: inherit;
  --card-bg: #fff; --card-border: 1px solid #EFE2D2; --card-radius: 18px; --card-shadow: var(--soft-shadow);
  --soft-shadow: 0 1px 2px rgba(80, 40, 20, .05), 0 10px 28px -6px rgba(80, 40, 20, .12);
  --input-bg: #fff; --input-border: 1px solid #E2D2BF; --input-fg: #231A16; --input-radius: 12px;
  --line: #E6D8C8; --chip-bg: #FFE9A8; --chip-fg: #231A16; --chip-border: 0;
  --ok: #1E6B4E; --wait: #7A6A60; --danger: #B8321F;
  --head-font: "Bricolage Grotesque", system-ui, sans-serif; --head-weight: 800; --head-style: normal; --head-spacing: -.03em;
  --btn-border: 0; --btn-shadow: 0 1px 2px rgba(120, 30, 20, .15), 0 6px 16px -4px rgba(200, 55, 42, .45); --btn-font: "Bricolage Grotesque", system-ui, sans-serif; --btn-weight: 700; --btn-radius: 14px;
  --sec-bg: #fff; --sec-fg: #231A16; --sec-border: 1px solid #E2D2BF;
  --reveal-bg: #fff; --reveal-fg: #231A16; --reveal-band: #1E6B4E; --reveal-border: 1px solid #EFE2D2; --reveal-shadow: 0 2px 4px rgba(80, 40, 20, .06), 0 18px 40px -10px rgba(80, 40, 20, .22); --reveal-name: var(--accent); --reveal-tilt: -1.5deg;
  --stripes: repeating-linear-gradient(-45deg, #C8372A 0 10px, #FFF6EC 10px 15px, #1E6B4E 15px 25px, #FFF6EC 25px 30px);
  background: var(--bg);
  color: var(--fg);
}
.t-tanne {
  --bg: #F7F1E6; --fg: #1C2420; --muted: #5E6862; --link: #1F4D3A; --link-hover: #9E2B25;
  --accent: #9E2B25; --accent-fg: #fff; --heading: #1F4D3A;
  --card-bg: #FFFDF8; --card-border: 1px solid #E4DACA; --card-radius: 18px; --card-shadow: none;
  --input-bg: #fff; --input-border: 1px solid #D6CBB7; --input-fg: #1C2420; --input-radius: 10px;
  --line: #E4DACA; --chip-bg: #F3E1DC; --chip-fg: #7E211C; --chip-border: 0;
  --ok: #1F4D3A; --wait: #7B847E; --danger: #9E2B25;
  --head-font: "Fraunces", Georgia, serif; --head-weight: 400; --head-style: italic; --head-spacing: -.01em;
  --btn-border: 0; --btn-shadow: none; --btn-font: inherit; --btn-weight: 600; --btn-radius: 12px;
  --sec-bg: #fff; --sec-fg: #1F4D3A; --sec-border: 1px solid #D6CBB7;
  --reveal-bg: #1F4D3A; --reveal-fg: #F7F1E6; --reveal-band: #C8963E; --reveal-border: 0; --reveal-shadow: none; --reveal-name: #fff; --reveal-tilt: 0deg;
  --stripes: repeating-linear-gradient(135deg, #9E2B25 0 14px, #F7F1E6 14px 28px, #1F4D3A 28px 42px, #F7F1E6 42px 56px);
  background: var(--bg);
  color: var(--fg);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.45; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
input, textarea, button, select { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
h1, h2, .h { margin: 0; font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); letter-spacing: var(--head-spacing); color: var(--heading); }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.2; }
.t-tanne h2 { font-style: normal; font-weight: 600; }

.card { background: var(--card-bg); border: var(--card-border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.field .opt-note { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px;
  background: var(--input-bg); color: var(--input-fg); border: var(--input-border); border-radius: var(--input-radius);
  font-weight: 400;
}
textarea.input { padding: 12px 14px; min-height: 120px; resize: vertical; }
select.input { padding-right: 8px; }
.t-nordlicht .input { color-scheme: dark; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-fg); border: var(--btn-border); border-radius: var(--btn-radius); box-shadow: var(--btn-shadow);
  font-family: var(--btn-font); font-size: 18px; font-weight: var(--btn-weight);
}
.btn:hover { color: var(--accent-fg); filter: brightness(1.06); }
.btn:active { transform: translate(1px, 1px); }
.btn.wide { width: 100%; }
.btn.sec {
  min-height: 48px; padding: 0 18px; font-family: inherit; font-size: 16px; font-weight: 600;
  background: var(--sec-bg); color: var(--sec-fg); border: var(--sec-border); box-shadow: none; border-radius: 12px; flex: none;
}
.btn.sec:hover { color: var(--sec-fg); filter: none; border-color: var(--accent); }
.btn.small { min-height: 40px; padding: 0 12px; font-size: 14px; }
.btn.danger { color: var(--danger); }
.linkbtn { background: none; border: 0; padding: 0 6px; min-height: 40px; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--link-hover); }
.iconbtn { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.iconbtn:hover { color: var(--fg); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; background: var(--chip-bg); color: var(--chip-fg); border: var(--chip-border); border-radius: 999px; font-size: 14px; }
.chip .iconbtn { width: 28px; height: 28px; color: inherit; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.urlbox {
  flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 14px 16px; background: var(--input-bg); border: var(--input-border); border-radius: var(--input-radius);
  color: var(--input-fg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
}
.note-ok { color: var(--ok); font-size: 14px; font-weight: 600; }
.note-err { color: var(--danger); font-size: 14px; font-weight: 600; }
.alert { padding: 14px 16px; border-radius: 12px; border: 2px solid var(--danger); color: var(--fg); font-weight: 600; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--fg); font-family: var(--head-font); font-weight: var(--head-weight); font-size: 17px; }
.logo:hover { color: var(--fg); }
.t-papier .logo { font-size: 20px; letter-spacing: -.02em; }
.t-tanne .logo { font-style: italic; font-size: 20px; color: var(--heading); }
.logo .dot { color: var(--accent); }

/* Decorations */
.stripes { height: 10px; flex: none; background: var(--stripes); }
.t-tanne .stripes { height: 8px; }
.firs { display: block; width: 100%; height: 40px; flex: none; }

/* Phone pages (participants) */
.phone { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.phone > header { flex: none; display: flex; align-items: center; justify-content: center; padding: 14px 20px; }
.phone > main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 8px 24px 16px; display: flex; flex-direction: column; gap: 20px; }
.phone > footer { width: 100%; max-width: 480px; margin: 0 auto; padding: 12px 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.phone .sub { color: var(--muted); margin-top: -12px; }
.phone .linkcard { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.phone .linkcard .urlbox { flex: none; padding: 12px; font-size: 13px; }
.phone .linkcard .btn.sec { min-height: 44px; padding: 0 12px; font-size: 14px; }
.center-link { text-align: center; font-size: 15px; }
.choice { display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.choice:has(input:checked) { outline: 2px solid var(--accent); outline-offset: -1px; }
.choice .ico { color: var(--accent); display: flex; }
.choice small { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.choice.with-wish { flex-direction: column; align-items: stretch; gap: 0; padding: 0; cursor: auto; }
.choice-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
label.choice-head { cursor: pointer; }
.choice-wish { padding: 0 16px 16px; font-size: 14px; }
.choice.with-wish:has(.choice-head input:not(:checked)) .choice-wish { display: none; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.t-tanne .phone .garland { align-self: center; }

/* Landing */
.landing { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.landing main { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 32px; padding: 64px 24px 40px; }
.landing h1 { font-size: clamp(64px, 16vw, 112px); line-height: .95; letter-spacing: -.04em; }
.landing .btn { min-height: 60px; padding: 0 36px; font-size: 19px; }
.t-papier.landing .btn { font-size: 24px; }
.aurora { position: absolute; left: 0; top: 0; width: 100%; height: 520px; pointer-events: none; }
.sleigh { position: absolute; bottom: 150px; right: 14%; transform: rotate(-6deg); opacity: .8; pointer-events: none; }
.treeline { position: relative; display: block; width: 100%; height: 110px; }
.gifts { position: relative; width: 230px; height: 170px; }
.gifts .g1, .gifts .g2 { position: absolute; overflow: hidden; border-radius: 12px; box-shadow: inset 0 -10px 0 rgba(0,0,0,.12), 0 14px 30px -8px rgba(80, 40, 20, .35); }
.gifts .g1 { left: 10px; top: 10px; width: 130px; height: 120px; background: #1E6B4E; transform: rotate(-6deg); }
.gifts .g2 { left: 110px; top: 60px; width: 105px; height: 95px; background: var(--accent); transform: rotate(6deg); }
.gifts span { position: absolute; }
.gifts .v1 { left: 54px; top: 0; bottom: 0; width: 18px; background: #FFE08A; }
.gifts .h1b { top: 50px; left: 0; right: 0; height: 18px; background: #FFE08A; }
.gifts .v2 { left: 42px; top: 0; bottom: 0; width: 16px; background: #FFF6EC; }
@media (max-width: 600px) { .sleigh { bottom: 120px; right: 6%; } .treeline { height: 80px; } }

/* Lobby */
.lobby-head { max-width: 1180px; margin: 0 auto; padding: 20px 32px; }
.lobby-head .logo { font-size: 20px; }
.lobby { max-width: 1180px; margin: 0 auto; padding: 8px 32px 56px; display: flex; flex-direction: column; gap: 28px; }
.titlebar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.titlebar .title {
  flex: 1 1 420px; min-width: 0; padding: 4px 0; border: 0; border-bottom: 2px dashed var(--line); background: none; color: inherit;
  font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); font-size: 48px; letter-spacing: -.02em; line-height: 1.15;
}
.titlebar .title:focus { outline: none; border-bottom-color: var(--accent); }
.titlebar .description { flex: 1 1 100%; min-height: 44px; padding: 0 12px; }
.sub.desc { white-space: pre-line; overflow-wrap: anywhere; }
.sub + .sub { margin-top: -16px; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: start; }
.col-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.col-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel > .sub { color: var(--muted); margin-top: -8px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -24px -8px 0; border-bottom: 1px solid var(--line); }
.tab {
  min-height: 52px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted);
  font-weight: 600; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; text-decoration: none;
}
.tab:hover { color: var(--fg); }
.tab.current { position: relative; max-width: 100%; gap: 8px; padding-right: 4px; color: var(--fg); border-bottom-color: var(--accent); cursor: auto; }
.tab.current > svg { flex: none; }
.tab.current details.menu { position: static; }
.tab.current .iconbtn { width: 36px; height: 36px; }
.tab-name {
  flex: 0 1 auto; min-width: 3ch; max-width: 100%; field-sizing: content; padding: 2px 0; border: 0; border-bottom: 1px dashed color-mix(in srgb, var(--muted) 55%, transparent); border-radius: 0;
  background: none; color: inherit; font: inherit; cursor: text;
}
.tab-name:hover { border-bottom-color: var(--muted); }
.tab-name:focus { outline: none; border-bottom-color: var(--accent); }
.tabbar-info form.grow { flex: 1 1 240px; min-width: 0; }
.draw-desc { width: 100%; min-height: 36px; padding: 0; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; background: none; color: var(--muted); font: inherit; font-size: 16px; }
.draw-desc:hover { border-bottom-color: var(--muted); }
.draw-desc:focus { outline: none; border-bottom-color: var(--accent); color: var(--fg); }
.draw-desc::placeholder { color: var(--wait); opacity: 1; }
.tabs form { display: contents; }
.tabbar-info { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--muted); }
.tabbar-info b { color: var(--fg); }
.addform { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.addform label { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.people { display: flex; flex-direction: column; }
.person { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 44px; gap: 6px 12px; align-items: center; padding: 6px 0 6px 4px; border-top: 1px solid var(--line); min-height: 57px; }
.person.with-check { grid-template-columns: 34px minmax(0, 1fr) auto auto 44px; }
.person.out { opacity: .5; }
.person .name { font-weight: 600; overflow-wrap: anywhere; }
.person .tag { font-weight: 400; color: var(--muted); font-size: 13px; }
.person .status { font-size: 14px; color: var(--wait); }
.person .status.ok { color: var(--ok); }
.person input[type="checkbox"] { width: 22px; height: 22px; margin: 0 0 0 6px; accent-color: var(--accent); cursor: pointer; }
.person form { margin: 0; }
.empty { padding: 14px 4px; color: var(--muted); border-top: 1px solid var(--line); }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 8px; }
.pairs .chip { min-height: 36px; }
.pairs > .label { font-size: 14px; font-weight: 600; }
.pairs .chip form { display: inline; margin: 0; }
details.addpair > summary { list-style: none; cursor: pointer; }
.chip.add { padding: 0 14px; background: none; color: var(--link); border: 1.5px dashed var(--line); font-weight: 600; }
.chip.add:hover { border-color: var(--accent); color: var(--fg); }
details.addpair > summary::-webkit-details-marker { display: none; }
.pairform { display: flex; flex-direction: column; gap: 16px; width: 100%; padding-top: 6px; }
.pairform legend { font-size: 15px; }
.group-dialog .pairform { padding: 0; gap: 20px; }
.group-dialog legend { margin-bottom: 16px; font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); letter-spacing: var(--head-spacing); font-size: 22px; line-height: 1.2; color: var(--heading); }
.t-tanne .group-dialog legend { font-style: normal; font-weight: 600; }
.group-dialog { width: min(440px, calc(100vw - 32px)); }
.confirm-actions .btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.pairform select { width: auto; min-width: 140px; min-height: 44px; }
.moredraw { align-self: start; }
@media (max-width: 640px) {
  .lobby-head { padding: 16px 20px; }
  .lobby { padding: 4px 16px 40px; gap: 20px; }
  .titlebar .title { font-size: 34px; flex-basis: 100%; }
  .panel { padding: 18px; }
  .tabs { margin: -18px -6px 0; }
  .person, .person.with-check { grid-template-columns: minmax(0, 1fr) 44px; }
  .person.with-check { grid-template-columns: 34px minmax(0, 1fr) 44px; }
  .person .status { grid-column: 1 / 2; grid-row: 2; }
  .person.with-check .status { grid-column: 2 / 3; }
  .person .share { grid-column: 1 / -1; justify-self: start; }
  .person.with-check .share { grid-column: 2 / -1; }
  .person .remove { grid-row: 1; grid-column: -2 / -1; }
}

/* Aussehen */
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opt { position: relative; min-height: 72px; padding: 10px 6px; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; text-align: center; }
.opt.game { min-height: 92px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--accent); }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatch { display: flex; gap: 3px; }
.swatch span { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(127,127,127,.4); }
.preview-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; border-radius: 30px; background: rgba(127,127,127,.12); }
.pv { width: 230px; height: 400px; border-radius: 22px; overflow: hidden; overflow: clip; flex-direction: column; display: none; font-size: 11px; touch-action: pan-y; }
.pv.current { display: flex; }
@supports selector(:has(*)) {
  .look .pv.current { display: none; }
  .look:has(input[value="nordlicht"]:checked) .pv-nordlicht,
  .look:has(input[value="papier"]:checked) .pv-papier,
  .look:has(input[value="tanne"]:checked) .pv-tanne { display: flex; }
}
/* The pages slide sideways; the draw and the result are the real pages at 390px, scaled down. */
.pv-track { flex: 1; min-height: 0; display: flex; transform: translateX(calc(var(--slide, 0) * -100%)); transition: transform .35s cubic-bezier(.3,.7,.3,1); }
.pv-slide { position: relative; flex: 0 0 100%; overflow: hidden; overflow: clip; display: flex; flex-direction: column; }
.pv-page { --pv-scale: calc(230 / 390); position: absolute; left: 0; top: 0; width: 390px; height: calc(100% / var(--pv-scale)); min-height: 0; transform: scale(var(--pv-scale)); transform-origin: 0 0; font-size: 16px; }
.pv-page > main { padding-top: 28px; }
.pv-arrow {
  position: absolute; top: 194px; z-index: 2; width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 50%; background: var(--card-bg); color: var(--fg); border: var(--sec-border); box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: opacity .2s;
}
.pv-arrow.prev { left: calc(50% - 115px - 17px); }
.pv-arrow.prev svg { transform: scaleX(-1); }
.pv-arrow.next { right: calc(50% - 115px - 17px); }
.pv-arrow:hover { border-color: var(--accent); color: var(--accent); }
.pv-arrow:disabled { opacity: 0; pointer-events: none; }
.pv-dots { display: flex; gap: 2px; }
.pv-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pv-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .45; transition: opacity .2s, transform .2s; }
.pv-dots button[aria-current]::before { background: var(--accent); opacity: 1; transform: scale(1.2); }
.pv-slide.pv-game { display: none; }
.pv-slide.pv-game.current { display: flex; }
@supports selector(:has(*)) {
  .look .pv-slide.pv-game.current { display: none; }
  .look:has(input[value="hut"]:checked) .pv-slide.pv-game-hut,
  .look:has(input[value="paeckchen"]:checked) .pv-slide.pv-game-paeckchen,
  .look:has(input[value="rubbellos"]:checked) .pv-slide.pv-game-rubbellos { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .pv-track { transition: none; } }
.pv.t-nordlicht { background-image: var(--stars); background-size: 87px 87px, 121px 121px, 159px 159px; background-position: 0 0, 31px 49px, 70px 12px; background-repeat: repeat; }
.pv-body { flex: 1; padding: 30px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.pv-nordlicht .pv-body, .pv-tanne .pv-body { align-items: center; text-align: center; }
.pv-title { font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); font-size: 22px; line-height: 1.05; color: var(--heading); overflow-wrap: anywhere; }
.pv-papier .pv-title { font-size: 26px; letter-spacing: -.03em; }
.pv-field { align-self: stretch; height: 32px; border-radius: 8px; border: var(--input-border); background: var(--input-bg); }
.pv-field.big { height: 56px; }
.pv-btn { align-self: stretch; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-fg); border: var(--btn-border); box-shadow: 0 4px 10px -3px rgba(200, 55, 42, .45); font-family: var(--btn-font); font-size: 12px; font-weight: var(--btn-weight); display: flex; align-items: center; justify-content: center; }
.pv-nordlicht .pv-btn, .pv-tanne .pv-btn { box-shadow: none; }
.pv .stripes { height: 8px; }
.pv .firs { height: 30px; }
.drawbox { display: flex; flex-direction: column; gap: 12px; }
.drawbox .btn { min-height: 60px; font-size: 19px; }
.drawn-state { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.drawn-state .big { font-family: var(--head-font); font-weight: var(--head-weight); font-size: 24px; color: var(--ok); }
.drawn-state form { margin: 0; }

/* Result */
.reveal { position: relative; overflow: hidden; background: var(--reveal-bg); color: var(--reveal-fg); border: var(--reveal-border); box-shadow: var(--reveal-shadow); border-radius: 20px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; transform: rotate(var(--reveal-tilt)); }
.reveal::after { content: ""; position: absolute; top: 0; bottom: 0; right: 40px; width: 12px; background: var(--reveal-band); }
.reveal > * { position: relative; z-index: 1; max-width: calc(100% - 50px); }
.reveal .label { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.reveal .rname { font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); font-size: 52px; line-height: 1; letter-spacing: -.03em; color: var(--reveal-name); overflow-wrap: anywhere; }
.reveal .wish { font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.reveal .rdesc { font-size: 14px; opacity: .85; margin-top: -6px; overflow-wrap: anywhere; }
.reveal .nowish { font-size: 15px; opacity: .7; font-style: italic; }
.wishcard { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.wishcard .label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wishcard .wish { white-space: pre-line; overflow-wrap: anywhere; }

/* Games */
.stepchip { align-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); border: var(--chip-border); font-size: 14px; font-weight: 600; }
.stepchip b { color: var(--accent); }
.t-papier .stepchip b { color: #B8321F; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.pick { position: relative; height: 180px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; transition: opacity .5s, transform .5s; -webkit-tap-highlight-color: transparent; }
.done .pick { cursor: default; }
.done .pick:not(.chosen) { opacity: .25; transform: scale(.94); }
.done .pick.chosen { transform: scale(1.04); }
.pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 16px; }

/* Hut. The button is the hat; the drawn slip waits inside it, between the
   back layer (brim and opening) and the front one (crown, band, near brim).
   games.js lifts it by --lift while dragging; .done brings it out above the
   hat and unfolds the top half of the slip. */
.hatbox {
  position: relative; display: block; width: 240px; height: 200px; margin: 72px auto 0; padding: 0; border: 0; border-radius: 24px; background: none; color: inherit;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.hatbox.drag { cursor: grabbing; }
.hatbox.done { cursor: default; touch-action: auto; }
.hatbox:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hat-layer { position: absolute; left: 10px; bottom: 0; width: 220px; height: 190px; overflow: visible; }
.hat-back { z-index: 0; }
.hat-front { z-index: 3; }
.hat-star { display: var(--hat-star); }
.hat-holly { display: var(--hat-holly); }
.stubs > span {
  position: absolute; z-index: 1; top: 28px; width: 17px; height: 62px; border-radius: 2px;
  background: linear-gradient(90deg, transparent 47%, rgba(0, 0, 0, .1) 50%, transparent 53%), var(--slip);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); transform-origin: 50% 100%;
  animation: rustle 5s ease-in-out 2s infinite;
}
.stubs > span:nth-child(1) { left: 78px; top: 32px; rotate: -16deg; }
.stubs > span:nth-child(2) { left: 108px; top: 22px; rotate: 3deg; animation-delay: 2.12s; }
.stubs > span:nth-child(3) { left: 138px; top: 30px; rotate: 18deg; animation-delay: 2.24s; }
@keyframes rustle { 0%, 12%, 100% { translate: 0 0; } 4% { translate: 0 -5px; } 8% { translate: 0 1px; } }
.hatbox:hover:not(.done) .stubs > span:nth-child(2) { translate: 0 -6px; transition: translate .2s; }
.hatbox.done .stubs > span { animation: none; }
.slip-pos { position: absolute; left: 50%; top: 109px; z-index: 2; width: 0; height: 0; transform: translateY(calc(var(--lift, 0px) * -1)); transition: transform .3s cubic-bezier(.3, .7, .3, 1); }
.hatbox.drag .slip-pos { transition: none; }
.slip-rot { position: absolute; left: -118px; top: -52px; width: 236px; height: 104px; perspective: 700px; transform: rotate(-84deg) scale(.3); transition: transform .7s cubic-bezier(.3, 1.2, .5, 1); }
.slip { position: absolute; inset: 0; transform-style: preserve-3d; }
.slip::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: var(--slip); box-shadow: var(--slip-shadow); opacity: 0; transition: opacity .25s 1.05s; }
.half { position: absolute; left: 0; right: 0; height: 50%; }
.half.bot { top: 50%; overflow: hidden; border-radius: 0 0 4px 4px; background: linear-gradient(rgba(0, 0, 0, .07), transparent 14px), var(--slip); }
.half.top { top: 0; transform-style: preserve-3d; transform-origin: 50% 100%; transform: rotateX(-179.9deg); transition: transform .55s cubic-bezier(.45, .05, .3, 1) .55s; }
.half .face { position: absolute; inset: 0; overflow: hidden; border-radius: 4px 4px 0 0; background: linear-gradient(transparent calc(100% - 14px), rgba(0, 0, 0, .05)), var(--slip); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.half .face.back { transform: rotateX(180deg); border-radius: 0 0 4px 4px; background: linear-gradient(rgba(255, 255, 255, .5), transparent 6px), linear-gradient(transparent calc(100% - 10px), rgba(0, 0, 0, .06)), var(--slip-back); }
.nm {
  position: absolute; left: 0; right: 0; top: 0; height: 200%; padding: 0 16px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); font-size: var(--nm-size); line-height: 1.05; letter-spacing: -.02em; color: var(--slip-ink); overflow-wrap: break-word;
}
.half.bot .nm { top: -100%; }
.hatbox.done .slip-pos { z-index: 4; transform: translateY(-134px); transition: transform .7s cubic-bezier(.3, 1.15, .5, 1); }
.hatbox.done .slip-rot { transform: rotate(-3deg) scale(1); }
.hatbox.done .half.top { transform: none; }
.hatbox.done .slip::before { opacity: 1; }
.sparks { position: absolute; left: 50%; top: -25px; z-index: 5; pointer-events: none; }
.sparks > span {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; opacity: 0; background: var(--spark);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.sparks > span:nth-child(even) { background: var(--spark-2); width: 10px; height: 10px; left: -5px; top: -5px; }
.hatbox.done .sparks > span { animation: spark .9s cubic-bezier(.2, .7, .3, 1) calc(1s + var(--d)) both; }
@keyframes spark {
  0% { opacity: 0; transform: translate(calc(var(--x) * .55), calc(var(--y) * .55)) scale(0) rotate(0); }
  30% { opacity: 1; transform: translate(calc(var(--x) * .8), calc(var(--y) * .8)) scale(1.1) rotate(30deg); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.2) rotate(90deg); }
}
.hatbox.resetting, .hatbox.resetting * { transition: none !important; animation: none !important; }
/* Set on the theme classes, so that a preview's own theme wins over the page's. */
.t-nordlicht {
  --hat: #6C1E2A; --hat-brim: #7A2431; --hat-shade: #4A111B; --hat-in: #1A070C; --hat-wall: #35101A; --hat-rim: rgba(242, 184, 91, .7);
  --band: #F2B85B; --band-2: #8E5A1C; --hat-ground: rgba(3, 6, 14, .55); --hat-star: inline; --hat-holly: none;
  --slip: #FBF4E4; --slip-back: #EADDC2; --slip-ink: #8E2A2E; --slip-shadow: 0 14px 30px -8px rgba(0, 0, 0, .6);
  --spark: #F2B85B; --spark-2: #FBE3A6;
}
.t-papier {
  --hat: #C8372A; --hat-brim: #D2402F; --hat-shade: #9C2A20; --hat-in: #4A140E; --hat-wall: #7E2219; --hat-rim: rgba(255, 255, 255, .3);
  --band: #FFD45E; --band-2: #1E6B4E; --hat-ground: rgba(80, 40, 20, .14); --hat-star: none; --hat-holly: none;
  --slip: #fff; --slip-back: #F3EADC; --slip-ink: var(--accent); --slip-shadow: 0 2px 4px rgba(80, 40, 20, .08), 0 16px 32px -10px rgba(80, 40, 20, .3);
  --spark: #C8372A; --spark-2: #F2A93B;
}
.t-tanne {
  --hat: #1F4D3A; --hat-brim: #245740; --hat-shade: #133225; --hat-in: #0A1C14; --hat-wall: #163A2B; --hat-rim: rgba(200, 150, 62, .8);
  --band: #9E2B25; --band-2: #C8963E; --hat-ground: rgba(40, 50, 30, .16); --hat-star: none; --hat-holly: inline;
  --slip: #FFFDF8; --slip-back: #EFE6D3; --slip-ink: #9E2B25; --slip-shadow: 0 12px 26px -10px rgba(40, 50, 30, .35);
  --spark: #C8963E; --spark-2: #9E2B25;
}

/* Päckchen */
.box, .lid, .tagname { position: absolute; left: 50%; }
.box { bottom: 8px; width: 128px; height: 100px; margin-left: -64px; z-index: 1; background: var(--c); border-radius: 10px; box-shadow: var(--box-shadow); }
.lid { bottom: 102px; width: 144px; height: 30px; margin-left: -72px; z-index: 3; background: var(--c); border-radius: 8px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.2); transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.box::before, .lid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 16px; margin-left: -8px; background: var(--ribbon); }
.bow { position: absolute; left: 50%; top: -28px; margin-left: -32px; }
.tagname { top: 70px; z-index: 2; transform: translate(-50%, 40px) scale(0) rotate(-5deg); transition: transform .6s cubic-bezier(.3,1.6,.5,1) .2s; padding: 6px 14px; max-width: 150px; background: #fff; border-radius: 10px; box-shadow: var(--tag-shadow); color: var(--tag-fg); font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.chosen .lid { transform: translateY(-46px) rotate(-18deg); }
.chosen .tagname { transform: translate(-50%, -34px) scale(1) rotate(-5deg); }
/* Set on the theme classes, so that a preview's own theme wins over the page's. */
.t-nordlicht { --ribbon: var(--accent); --box-shadow: inset 0 -12px 0 rgba(0,0,0,.18); --tag-shadow: 0 8px 24px rgba(0,0,0,.35); --tag-fg: #0E1524; }
.t-papier { --ribbon: #FFE08A; --box-shadow: inset 0 -12px 0 rgba(0,0,0,.14), 0 10px 22px -8px rgba(80, 40, 20, .4); --tag-shadow: 0 8px 22px rgba(80, 40, 20, .25); --tag-fg: var(--accent); }
.t-tanne { --ribbon: #C8963E; --box-shadow: inset 0 -12px 0 rgba(0,0,0,.18); --tag-shadow: 0 8px 24px rgba(0,0,0,.35); --tag-fg: #9E2B25; }

/* Rubbellos. The .coat is the foil without JavaScript; games.js covers it
   with a canvas (.foil) to scratch and a second one (.fx) for crumbs and
   confetti, which may spill over the ticket's edges. */
.ticket { position: relative; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticket-foot { font-size: 13px; color: var(--muted); }
.scratch {
  position: relative; width: 100%; height: 150px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; overflow: clip;
  background: var(--scratch-bg); box-shadow: inset 0 0 0 1px var(--scratch-edge);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center; color: inherit;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='11' fill='%23EBC774' stroke='%23866020' stroke-width='2'/%3E%3Ccircle cx='14' cy='14' r='6.5' fill='none' stroke='%23B08A3E' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, pointer;
}
.ticket.done .scratch { touch-action: auto; cursor: default; }
.scratch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.scratch .sname { padding: 0 12px; font-family: var(--head-font); font-weight: var(--head-weight); font-style: var(--head-style); font-size: 56px; line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; color: var(--scratch-name); }
/* Set on the theme classes, so that a preview's own theme wins over the page's. */
.t-nordlicht {
  --scratch-name: var(--fg); --scratch-edge: #2C3A55; --scratch-bg: radial-gradient(closest-side, rgba(242, 184, 91, .14), transparent), #0E1524;
  --coat: linear-gradient(115deg, #B88A3E, #F4D48C 30%, #C99A4A 55%, #FBE3A6 75%, #A97B32);
}
.t-papier {
  --scratch-name: var(--accent); --scratch-edge: #F0E2CF; --scratch-bg: radial-gradient(closest-side, #FFF3C9, #FFF6EC);
  --coat: linear-gradient(115deg, #A9A39B, #E4DFD8 30%, #B9B2A9 55%, #F1EDE7 75%, #9C958C);
}
.t-tanne {
  --scratch-name: var(--accent); --scratch-edge: #E4DACA; --scratch-bg: radial-gradient(closest-side, #FFFDF8, #F7F1E6);
  --coat: linear-gradient(115deg, #9C7832, #D9B972 30%, #B08C45 55%, #E8CC8A 75%, #94702C);
}
.coat { position: absolute; inset: 0; pointer-events: none; background: var(--coat); }
.scratch .hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; color: rgba(40, 26, 10, .45); }
.scratch.live .coat, .scratch.live .hint { display: none; }
.scratch .foil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .55s ease-out; }
.scratch .foil.gone { opacity: 0; }
/* A glint runs over the untouched foil now and then. */
.scratch.live::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45) 50%, transparent);
  transform: translateX(-120%) skewX(-18deg); animation: glint 4.5s ease-in-out 1s infinite;
}
.scratch.live.started::after { display: none; }
@keyframes glint { 0% { transform: translateX(-120%) skewX(-18deg); } 30%, 100% { transform: translateX(330%) skewX(-18deg); } }
.scratch .sname.pop { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.9); } to { transform: scale(1); } }
.ticket .fx { position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); pointer-events: none; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .lid, .tagname, .pick { transition: none !important; }
  .scratch.live::after { display: none; }
  .scratch .foil { transition-duration: .3s; }
  .slip-pos, .slip-rot, .half.top, .slip::before { transition: none !important; }
  .stubs > span { animation: none !important; }
  .sparks { display: none; }
  .hatbox.done .slip { animation: fadein .3s ease-out; }
}
@keyframes fadein { from { opacity: 0; } }

/* Lobby extras */
.btn.share-main { min-height: 48px; padding: 0 18px; font-size: 16px; font-family: inherit; flex: none; }
.linkbtn.btn-danger { color: var(--danger); }
.addpair[open] { flex-basis: 100%; }
.addpair[open] > summary { display: none; }
.titlebar .description { background: none; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 0; color: var(--muted); font-size: 18px; margin-top: -4px; }
.titlebar .description:focus { outline: none; border-bottom-color: var(--accent); color: var(--fg); }
.opt { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; padding-left: 4px; padding-right: 4px; }
.reveal .label { text-transform: none; letter-spacing: 0; font-size: 14px; }
.t-papier .logo { gap: 0; }
.tagname { width: max-content; max-width: 160px; overflow-wrap: break-word; text-align: center; }
.scratch .sname, .reveal .rname { overflow-wrap: break-word; text-align: center; }
.reveal .rname { text-align: left; }

/* v2: mail toggle, row menu, confirm dialog, exclusion groups */
details.mailbox > summary { list-style: none; align-self: start; width: max-content; }
.row > details.mailbox[open] { flex-basis: 100%; }
details.mailbox .input { flex: 1 1 180px; width: auto; min-width: 0; }
details.mailbox > summary::-webkit-details-marker { display: none; }
details.mailbox[open] > summary { display: none; }
.tabbar-info .grow { flex: 1; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary { color: var(--fg); background: var(--chip-bg); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 170px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.t-nordlicht .menu-pop { box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.t-papier .menu-pop, .t-papier dialog.confirm { box-shadow: 0 4px 10px rgba(80, 40, 20, .08), 0 24px 48px -12px rgba(80, 40, 20, .28); }
.menu-pop form { margin: 0; }
.menu-item { width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--fg); font-weight: 600; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--chip-bg); color: var(--chip-fg); }
.menu-item.danger { color: var(--danger); }
.btn.sec.danger { color: var(--danger); }
.btn.sec.danger:hover { color: var(--danger); border-color: var(--danger); }
dialog.confirm { padding: 24px; width: min(360px, calc(100vw - 32px)); color: var(--fg); }
dialog.confirm::backdrop { background: rgba(10, 14, 24, .6); }
.t-papier dialog.confirm::backdrop { background: rgba(35, 26, 22, .35); }
dialog.confirm form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
dialog.confirm h2 { font-size: 22px; overflow-wrap: anywhere; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-actions .btn { min-height: 48px; font-size: 16px; padding: 0 18px; }
dialog.confirm.danger .confirm-ok { background: var(--danger); color: #fff; }
.t-nordlicht dialog.confirm.danger .confirm-ok { background: #E5675A; color: #0E1524; }
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: var(--sec-border); background: var(--sec-bg); font-size: 14px; font-weight: 600; }
.chip-check span::before { content: ""; width: 16px; height: 16px; margin-left: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .45; flex: none; }
.chip-check input:checked + span { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chip-check input:checked + span::before { content: "✓"; border: 0; opacity: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--accent-fg); color: var(--accent); }
.chip-check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.ext-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: center; }
.ext-link svg { flex: none; }
