/* ---------- "Persönlichkeit": choosing your own elf and house (style.css stays untouched, see README) ---------- */
.lk-preview, .lk-opt.shape .lk-pic {
  background: radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 38% 9%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 63% 22%, #fff 60%, transparent), radial-gradient(1px 1px at 86% 12%, #fff 60%, transparent),
    radial-gradient(1px 1px at 92% 34%, #fff 60%, transparent), linear-gradient(180deg, #0b1d3c, #1d3d6b 75%, #2a4f80);
}
.p-title > .mi { width: 30px; height: 30px; margin: 0; stroke-width: 1.8; color: var(--mc); }

.look-picker fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lk-stage { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 2px 0 10px; }
.lk-preview { border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.lk-preview { background-image: linear-gradient(180deg, transparent 90.5%, #eaf1fb 90.5%), radial-gradient(1.2px 1.2px at 12% 18%, #fff 60%, transparent),
  radial-gradient(1.2px 1.2px at 88% 30%, #fff 60%, transparent), linear-gradient(180deg, #0b1d3c, #1d3d6b 75%, #2a4f80); } /* snow continues beside a narrower picture */
.lk-preview svg { display: block; width: 100%; height: auto; max-height: 230px; margin: 0 auto; }
.lk-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lk-status { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; text-align: right; font-size: 13px; font-weight: 700; color: var(--green-d); display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
.lk-status .linkbtn { display: inline-flex; align-items: center; color: var(--ink); font-weight: 700; min-height: 44px; }
.lk-status .mi { width: 15px; height: 15px; }
.lk-cats legend, .lk-opts legend { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; margin: 4px 0 6px; }
.lk-opts legend { margin-top: 14px; color: var(--ink); }
.lk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 3px 2px; margin: 0 -2px 6px; } /* wraps: every category stays in sight, none hides off to the side */
.lk-group { flex: 0 0 100%; font-size: 12px; font-weight: 800; color: var(--muted); }
.lk-cat, .lk-opt { position: relative; flex: none; cursor: pointer; }
.lk-cat input, .lk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lk-cat span { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--sand); font-weight: 800; font-size: 14px;
  white-space: nowrap; transition: background .2s, color .2s; }
.lk-cat:hover span { background: var(--sand-d); }
.lk-cat input:checked + span { background: var(--ink); color: #fff; }
.lk-cat input:focus-visible + span, .lk-opt input:focus-visible ~ .lk-pic { outline: 3px solid var(--gold); outline-offset: 2px; }
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px 8px; }
.lk-opt { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lk-pic { display: block; width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.lk-pic svg { display: block; width: 100%; height: 100%; }
.lk-opt.color .lk-pic { background: var(--card); padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.lk-opt:hover .lk-pic { transform: translateY(-2px); }
.lk-name { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--muted); }
.lk-check { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: none;
  align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.lk-check .mi { width: 15px; height: 15px; margin: 0; stroke-width: 3; }
.lk-opt input:checked ~ .lk-pic { box-shadow: 0 0 0 3px var(--ink); }
.lk-opt.color input:checked ~ .lk-pic { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px var(--ink); }
.lk-opt input:checked ~ .lk-name { color: var(--ink); font-weight: 800; }
.lk-opt input:checked ~ .lk-check { display: inline-flex; }
.look-picker #lkDone { margin-top: 18px; }
@media (max-width: 760px) {
  .lk-stage { top: 26px; } /* below the sticky sheet handle */
  .lk-preview svg { max-height: 19dvh; }
  .lk-tools { margin-top: 6px; }
  .lk-cats legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* the two labelled rows say it */
  .lk-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .lk-group { width: 50px; }
  .lk-cat span { padding: 0 12px; }
}

/* ---------- "Seit deiner Reservierung geändert": the chip gets a line of its own; in a list row the buttons move below it,
   so the chip has the row's width instead of the narrow text column (it wrapped into a three-line pill on phones) ---------- */
.wish.compact .status .chip.other, .sr-sub .chip.other { display: flex; width: fit-content; margin: 4px 0 0 !important; } /* !important: beats the inline margin-left in app.js */
.wish.compact:has(.status .chip.other) { flex-wrap: wrap; }
.wish.compact:has(.status .chip.other) .actions { flex-basis: 100%; justify-content: flex-end; }

/* price and link pills in a wish row: the top bar's phone rule for .pill (44px round buttons) must not squash them */
.meta .pill { width: auto; padding: 3px 10px; }

/* top bar with "Gestalten": five 44px buttons do not fit next to the title on narrow phones, and their labels do not fit
   on small tablets. Narrow phones get a second row (title + countdown above, buttons spread below; the scene measures
   the bar, so the camera framing follows), small tablets show icons only, as with an open panel. */
/* (briefe, 19.11.) six buttons need about 500 px next to the title: big phones (iPhone Pro Max: 430-440 px) get the
   second row as well */
@media (max-width: 540px) {
  #hud { flex-wrap: wrap; row-gap: 6px; padding-bottom: 6px; }
  .countdown { position: static; margin-left: auto; }
  .nav { flex: 1 0 100%; margin-left: 0; justify-content: space-between; }
}
@media (max-width: 1100px) and (min-width: 761px) { /* (briefe) six buttons: icons only up to 1100 px */
  .pill .lbl, #btnMine .dot { display: none; }
  .pill .ico { display: block; }
  #hud .pill { padding: 0 12px; }
  /* (ux-fix) with a list open the bar is only ~320-400 px wide: the title goes, so the menu and letters stay in reach */
  .panel-open .brand { display: none; }
  .panel-open #hud { padding-left: 8px; }
}

/* (app) installing: why, steps, and on an iPhone an arrow towards Safari's share button at the bottom */
.app-why { margin: 0 0 12px; padding-left: 20px; font-size: 14px; }
.app-why li { margin: 2px 0; }
.app-steps { margin: 0 0 6px; padding-left: 22px; font-size: 15px; }
.app-steps li { margin: 4px 0; }
.ios-arrow { position: fixed; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70;
  font: 800 34px Nunito, sans-serif; color: #f6c94c; text-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none; animation: iosArrow 1.1s ease-in-out infinite; }
@keyframes iosArrow { 50% { transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { .ios-arrow { animation: none; } }

/* (mitteilungen) this device on/off, and the kinds as big tap-friendly rows */
.push-kind { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; font-size: 15px; cursor: pointer; }
.push-kind + .push-kind { border-top: 1px solid var(--line); }
.push-kind input { width: 22px; height: 22px; flex: none; accent-color: var(--mc, #e07a2f); }
#pushYes { margin-bottom: 8px; }
#pushYes .mi { margin-right: 6px; }

/* (briefe) letters: the inbox rows and the letters of one conversation */
.letter-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; margin: 0 0 8px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.letter-row .lr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.letter-row .lr-txt small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.letter-row .badge { background: var(--red); color: #fff; }
.letters { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.letter { max-width: 86%; padding: 10px 14px; border-radius: 16px; background: #fffaf0; border: 1px solid var(--line); white-space: pre-line; font-size: 15px; line-height: 1.4; }
.letter.mine { align-self: flex-end; background: #eef6f4; }
.letter .lt-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.letter-form textarea { width: 100%; min-height: 96px; resize: vertical; }
.letter-form .lf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.letter-form label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.letter-form input[type=checkbox] { width: 22px; height: 22px; }


/* (gemeinsam) giving a gift together */
form.card-form label.together-opt, .together-opt { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 700; }
.together-opt input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: #2a9d8f; }
.together-opt > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.together-opt b { display: flex; align-items: center; }
.together-opt .mi { display: inline; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.together-opt small { font-weight: 600; color: var(--muted); font-size: 13px; }
.chip.together { background: #dff3ef; color: #1e6f64; }
/* the shared gift: the givers' colour dots and two short lines, the same everywhere */
.gift-group { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 6px 12px 6px 8px; border-radius: 14px; background: #e4f3ef; color: #1e5f56; width: fit-content; max-width: 100%; box-sizing: border-box; }
.gg-avas { display: flex; flex: none; padding-left: 6px; }
.gg-avas .ava { width: 26px; height: 26px; font-size: 11px; margin-left: -6px; box-shadow: 0 0 0 2px #e4f3ef; }
.gg-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; text-align: left; }
.gg-txt b { font-size: 13px; font-weight: 800; }
.gg-txt small { font-size: 13px; font-weight: 600; color: #2d6e65; }
.gift-group.mini { margin-top: 2px; padding: 4px 10px 4px 6px; }
.gift-group.mini .gg-avas .ava { width: 22px; height: 22px; font-size: 10px; }
.wish .tags .gift-group { margin-top: 2px; }
/* rows with a shared gift or with several buttons: the buttons go below the text when it gets narrow, never squeeze it */
.wish.compact { flex-wrap: wrap; }
.wish.compact .wbody { flex: 1 1 170px; min-width: 0; }
.wish.compact .actions { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.wish.compact.shared .actions { flex: 1 1 100%; }
/* the two ways to take a free wish: equal buttons side by side (one under the other when narrow) */
.wish .actions .btn.pair { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 10px; font-size: 14px; border-radius: 12px; justify-content: center; gap: 6px; white-space: nowrap; }
.wish .actions .btn.pair.claim { flex-grow: 1.6; } /* the main way a little wider, side by side with the other */
.wish .actions .btn.pair.ghost { flex: 0 0 auto; } /* (ux3) „Zusammen“ keeps its own width (it spilled out of its button on narrow phones), the main way takes the rest */
.wish .actions .btn.pair .mi { width: 18px; height: 18px; margin: 0; }
/* shopping: the text column holds the title, the group and the note */
.sr-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.sr-col .sr-body { width: 100%; }
.group-note { width: 100%; margin: 6px 0 2px; }
.gn-text { margin: 0 0 4px; padding: 8px 10px; border-radius: 10px; background: #fff8e6; border-left: 3px solid #f0d58a; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.group-note summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 700; color: #1e6f64; list-style: none; }
.group-note summary::-webkit-details-marker { display: none; }
.group-note summary::before { content: '✎'; margin-right: 6px; }
.gn-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.gn-form textarea { width: 100%; min-height: 72px; font-size: 14px; box-sizing: border-box; }
.check.on { background: #2a9d8f; color: #fff; }
.shop-row:has(.group-note) { align-items: flex-start; }
.shop-row:has(.group-note) > .check, .shop-row:has(.group-note) > .icon-btn { margin-top: 2px; }

/* ---------- (stube) a look into someone's living room: a card over the list ---------- */
.stube { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; background: rgba(6,14,30,.7); backdrop-filter: blur(3px);
  padding: 16px 16px calc(16px + var(--safe-b)); overflow-y: auto; }
.stube[hidden] { display: none; }
.stube-card { width: min(640px, 100%); background: var(--paper); border-radius: 22px; padding: 14px 16px 16px; box-shadow: var(--shadow); }
.stube-head { display: flex; align-items: center; gap: 8px; }
.stube-head .p-title { flex: 1; min-width: 0; margin: 0; padding: 0; font-size: 30px; }
.stube-head .p-title .ava { flex: none; }
.stube-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.stube-x:hover { background: var(--sand-d); }
.stube-x .mi { margin: 0; }
.stube-pic { margin: 10px 0 8px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 3px var(--mc, #c0392b), 0 6px 18px rgba(0,0,0,.18); background: #3a2416; }
.stube-pic svg { display: block; width: 100%; height: auto; }
.lk-preview.stube-mode { background: #3a2416; } /* the living room in the look picker: no night sky beside it */
.lk-opt.lk-room .lk-pic { background: #3a2416; }
.stube-line { margin: 4px 2px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.stube-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.stube-actions .btn, .stube-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.stube-actions .btn .mi, .stube-btn .mi { width: 18px; height: 18px; margin: 0; }
.stube-btn { margin: 6px 6px 0 0; }
@media (max-width: 760px) {
  .stube { padding: 10px 10px calc(10px + var(--safe-b)); }
  .stube-card { padding: 12px 12px 14px; }
  .stube-head .p-title { font-size: 26px; }
  .stube-actions .btn { flex: 1 1 auto; }
}

/* (backen) the cookie jar: a grid of my cookies, each with what one can do with it */
.jar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; padding: 14px 0 12px; }
.jar-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 10px; border-radius: 18px; background: #fbf4e8; box-shadow: inset 0 0 0 1px rgba(168,119,63,.18); }
.jar-item img { width: 96px; height: 96px; display: block; }
.jar-acts { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.jar-acts .btn { min-height: 44px; width: 100%; justify-content: center; }
@media (max-width: 420px) { .jar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* (keksdose) the jar on the server: what is on show, what still waits on this device; the shop window, a row per person */
.jar-top { display: flex; gap: 10px; flex-wrap: wrap; }
.jar-top .btn { flex: 1 1 160px; min-height: 44px; justify-content: center; }
.jar-note { margin: 12px 2px 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.jar-item figcaption { font-size: 12px; font-weight: 800; color: #8a5a2c; letter-spacing: .02em; }
.jar-item.shown { background: #fff0cf; box-shadow: inset 0 0 0 2px #e7b65a; }
.jar-item.wait img { opacity: .75; }
.shop { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.shop-person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: #fbf4e8; box-shadow: inset 0 0 0 1px rgba(168,119,63,.18); }
.shop-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 0 132px; font-weight: 800; }
.shop-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-cookies { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 64px; }
.shop-cookies img { width: 64px; height: 64px; display: block; }
.shop-none { color: var(--muted); font-size: 14px; }
.shop-cookies.none { min-height: 0; }
@media (max-width: 420px) { .shop-person { flex-direction: column; align-items: flex-start; gap: 6px; } .shop-name { flex: none; } .shop-cookies img { width: 72px; height: 72px; } }

/* (keksbrief) cookies from the jar in a letter: a grid to tick in the form, the cookies in the letter */
.lf-gift { margin-top: 8px; }
.lf-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.lf-pick legend { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; margin: 4px 0 6px; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.gift-pick { position: relative; display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 4px; border: 0; border-radius: 16px; background: #fbf4e8; box-shadow: inset 0 0 0 1px rgba(168,119,63,.18); cursor: pointer; }
.gift-pick img { width: 64px; height: 64px; display: block; }
.gift-pick.shown { background: #fff6e0; }
.gift-pick[aria-pressed="true"] { background: #fff0cf; box-shadow: inset 0 0 0 3px var(--green); }
.gp-mark { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 2px #c9b79a; }
.gift-pick[aria-pressed="true"] .gp-mark { background: var(--green); box-shadow: none; }
.gift-pick[aria-pressed="true"] .gp-mark::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.lf-plate { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.lf-hint { margin-top: 0; }
.lf-count { font-weight: 800; color: var(--green); font-size: 14px; }
.letter-gift { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; white-space: normal; }
.lg-pics { display: flex; flex-wrap: wrap; gap: 4px; }
.lg-pics img { width: 64px; height: 64px; display: block; }
.letter-gift .btn { min-height: 44px; }
.lg-note { font-size: 13px; font-weight: 800; color: #8a5a2c; }
.lg-took { color: var(--green); }

/* ---------- (foto) Stufe 29: the photo mode: only the village, a big shutter and „Fertig“ below ---------- */
body.foto-mode #hud, body.foto-mode #dock, body.foto-mode #panel, body.foto-mode #scene > :not(canvas) { display: none !important; }
body.foto-mode .toast { bottom: calc(150px + var(--safe-b)); }
.foto { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 16px calc(18px + var(--safe-b)); pointer-events: none; }
.foto[hidden] { display: none; }
.foto-tip { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(6,14,30,.55); color: #fff; font-weight: 700; font-size: 14px; }
.foto-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; width: min(420px, 100%); }
.foto-row > * { pointer-events: auto; }
.foto-share { justify-self: end; min-height: 44px; background: rgba(255,255,255,.95); }
.foto-done { grid-column: 3; justify-self: start; min-height: 44px; min-width: 88px; }
.foto-shot { grid-column: 2; width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.25); padding: 5px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.35); }
.foto-shot i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform .12s; }
.foto-shot:active i { transform: scale(.88); }
.foto-shot:disabled { opacity: .6; cursor: wait; }
.foto-shot:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.foto-flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.foto-flash.on { animation: foto-flash .45s ease-out; }
@keyframes foto-flash { from { opacity: .7; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .foto-flash.on { animation: none; } }

/* ---------- (ux2) the countdown chip opens „Heute im Dorf“: a button with a 44 px tall tap area ---------- */
#countdown { position: relative; border: 0; cursor: pointer; font-family: inherit; transition: background .2s; }
#countdown::before { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
#countdown:hover { background: rgba(255, 215, 120, .26); }
@media (max-width: 760px) { #countdown { position: absolute; } #countdown:hover { background: none; } }
@media (max-width: 540px) { #countdown { position: relative; left: auto; bottom: auto; } } /* (ux3) relative + the phone's left: 14px pushed it 14 px past the bar's right edge */
/* the lines of the day: what it is, how it stands, a button where the app can take you there */
.heute-calm { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 10px 14px; border-radius: 14px; background: #e4f3ef; color: #1e5f56; font-weight: 700; font-size: 15px; }
.heute-calm .mi { width: 20px; height: 20px; margin: 0; stroke-width: 2.5; }
.heute { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.heute-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.heute-row.done { background: #faf7f0; }
.hr-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff3cf; color: var(--gold-ink); }
.heute-row.done .hr-ico { background: #e4f3ef; color: #1e6f64; }
.hr-ico .mi { width: 22px; height: 22px; margin: 0; }
.hr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hr-txt b { font-size: 15px; }
.hr-txt small { font-size: 14px; line-height: 1.35; color: var(--muted); }
.heute-row .btn { flex: none; }
.hr-ok { flex: none; display: flex; color: #1e6f64; }
.hr-ok .mi { width: 22px; height: 22px; margin: 0 4px 0 0; stroke-width: 2.5; }
/* (tipp) the idea for today: one warm card above the lines, its button takes you there; the cross hides it until tomorrow */
.heute + .heute-tip { margin-top: 14px; } /* (ux3) the idea comes after the day's lines now */
.heute-tip { position: relative; margin: 2px 0 14px; padding: 12px 14px 14px; border-radius: 18px; background: linear-gradient(160deg, #fff6d8, #ffeec2); border: 1px solid #f1d58a; box-shadow: 0 2px 10px rgba(160, 120, 20, .12); }
.ht-kicker { display: flex; align-items: center; gap: 6px; margin: 0 40px 4px 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--gold-ink); }
.ht-kicker .mi { width: 18px; height: 18px; margin: 0; }
.ht-title { margin: 0 40px 4px 0; font-size: 18px; line-height: 1.25; }
.ht-text { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: #3c4a60; }
.ht-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ht-x:hover { background: rgba(0, 0, 0, .05); }
.ht-x .mi { width: 18px; height: 18px; margin: 0; }

/* ---------- (ux2) the welcome card: small, above the name chips. Only its buttons take taps; a tap on its text goes
   through to the village, which stays usable around and under it ---------- */
.welcome { position: fixed; z-index: 4; left: 0; right: 0; margin: 0 auto; bottom: calc(90px + var(--safe-b));
  width: min(420px, calc(100% - 20px - var(--safe-l) - var(--safe-r))); padding: 12px 16px 12px; border-radius: 20px;
  background: rgba(255, 253, 248, .96); color: var(--ink); box-shadow: 0 14px 40px rgba(3, 8, 20, .4); pointer-events: none; animation: pop .35s ease both; }
.welcome button { pointer-events: auto; }
.wel-step { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.wel-dots { display: inline-flex; gap: 5px; }
.wel-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--sand-d); }
.wel-dots i.on { background: var(--red); }
.wel-title { margin: 0 0 2px; font-size: 18px; font-weight: 800; }
.wel-text { margin: 0; font-size: 15px; line-height: 1.4; }
.wel-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
body.welcoming #hint { display: none; }
body.welcoming .toast { bottom: calc(var(--wel-top, 260px) + 10px); }
@media (max-width: 760px) { .welcome { bottom: calc(82px + var(--safe-b)); } }
@media (max-height: 460px) { .welcome { padding: 8px 14px; } .wel-text { font-size: 14px; } .wel-row { margin-top: 6px; } }

/* ---------- (advent) the advent calendar: the card of a door (on the welcome card's place and rules) and the overview
   with 24 doors. A shut door is red with a golden number; an opened one is light with a tick; one that is not due yet is
   dim with a lock and tells nothing ---------- */
.advent { padding-right: 44px; }
.adv-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 50%; cursor: pointer; }
.adv-x .mi { width: 20px; height: 20px; margin: 0; }
.adv-body { display: flex; align-items: center; gap: 14px; }
.adv-door { flex: none; width: 64px; height: 84px; border: 0; padding: 0; border-radius: 10px 10px 4px 4px; cursor: pointer; position: relative;
  background: linear-gradient(160deg, #d9483b, #a92a22); color: #ffe9a8; font: 800 30px/1 Nunito, sans-serif;
  box-shadow: inset 0 0 0 3px #7d1f19, inset 0 0 0 5px rgba(255, 233, 168, .55), 0 6px 14px rgba(3, 8, 20, .3); transition: transform .25s ease; }
.adv-door::after { content: ""; position: absolute; right: 6px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #ffe9a8; }
.adv-door span { display: block; margin-right: 5px; }
.advent.is-open .adv-door span { margin-right: 0; }
.adv-door:disabled { cursor: default; }
.advent:not(.is-open) .adv-door { animation: advWink 2.4s ease-in-out infinite; }
.advent.is-open .adv-door { width: 40px; height: 52px; font-size: 19px; align-self: flex-start; background: linear-gradient(160deg, #fff7e2, #f1dfb4); color: #a92a22;
  box-shadow: inset 0 0 0 2px #d9b96a, 0 3px 8px rgba(3, 8, 20, .2); }
.advent.is-open .adv-door::after { display: none; }
.adv-txt { min-width: 0; }
@keyframes advWink { 0%, 100% { transform: rotate(0); } 6% { transform: rotate(-3deg); } 12% { transform: rotate(3deg); } 18% { transform: rotate(0); } }
/* (kranz) the Advent-Sunday card: on the door card's place and rules, a small wreath in front of the words */
.sun-wreath { flex: none; width: 64px; height: 64px; align-self: center; }
.sun-wreath svg { display: block; filter: drop-shadow(0 4px 8px rgba(3, 8, 20, .25)); }
.sunday .wel-step { color: #a92a22; }
@media (max-height: 460px) { .sun-wreath { width: 48px; height: 48px; } .sun-wreath svg { width: 48px; height: 48px; } }
.adv-extra { display: flex; align-items: center; gap: 12px; margin: 10px 0 2px; padding: 10px 14px 10px 8px; border-radius: 18px; background: #fbf4e8; box-shadow: inset 0 0 0 1px rgba(168,119,63,.18); }
.adv-extra img { width: 84px; height: 84px; flex: none; }
.adv-extra p { margin: 0; font-size: 15px; line-height: 1.4; color: #4a3520; }
.adv-extra strong { display: block; font-size: 12px; font-weight: 800; color: #8a5a2c; letter-spacing: .02em; margin-bottom: 2px; }
.advent .wel-text { white-space: pre-line; }
.adv-txt { display: flow-root; }
.adv-pic { cursor: pointer; float: right; width: 102px; height: auto; margin: 4px 0 6px 12px; border-radius: 8px; box-shadow: 0 1px 6px rgba(29,43,68,.3); }
.adv-pic.quer { width: 148px; }
@media (max-height: 460px) { .adv-pic { display: none; } }
.adv-wahl { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.adv-opt { width: 100%; min-height: 48px; padding: 10px 16px; border: 0; border-radius: 16px; background: #fbf4e8; box-shadow: inset 0 0 0 1px rgba(168,119,63,.25); color: #4a3520; font: inherit; font-weight: 700; text-align: left; line-height: 1.35; cursor: pointer; }
.adv-opt:hover, .adv-opt:focus-visible { background: #fff3d6; }
.adv-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.adv-cell { width: 100%; aspect-ratio: 4 / 5; min-height: 56px; padding: 0; border: 0; border-radius: 12px 12px 6px 6px; position: relative; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(160deg, #d9483b, #a92a22); color: #ffe9a8; font: 800 20px/1 Nunito, sans-serif;
  box-shadow: inset 0 0 0 3px #7d1f19, inset 0 0 0 5px rgba(255, 233, 168, .5); }
.adv-cell .mi { position: absolute; right: 4px; bottom: 4px; width: 14px; height: 14px; margin: 0; }
.adv-cell.heute { box-shadow: inset 0 0 0 3px #7d1f19, inset 0 0 0 5px rgba(255, 233, 168, .8), 0 0 0 3px #f6c94c, 0 0 18px rgba(246, 201, 76, .7); }
.adv-cell.offen { background: linear-gradient(160deg, #fff7e2, #f1dfb4); color: #a92a22; box-shadow: inset 0 0 0 2px #d9b96a; }
.adv-cell.offen .mi { color: #1e6f64; stroke-width: 2.5; }
.adv-cell.zu { cursor: default; background: #dfe3ea; color: #8a93a3; box-shadow: inset 0 0 0 2px #c9cfd9; }
.adv-cell.zu .mi { color: #8a93a3; }
@media (max-height: 460px) { .adv-door { width: 48px; height: 62px; font-size: 22px; } }

/* (ux3) the menu in three groups (the village, settings and help, housekeeping); on a short phone it scrolls instead of
   running off the bottom of the screen */
.menu { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
/* (ux3) „Stube ansehen“ sits under the list: the wishes (and in my own list the form) come first */
#pFoot:empty { display: none; }
#pFoot { padding: 4px 0 8px; }
