:root {
  --bg: #0f3a52; --panel: #fdf8ee; --panel2: #f1e8d3; --ink: #1d2b36; --muted: #6a7a86;
  --accent: #1c8fc0; --accent-d: #136a92; --good: #3aa56b; --warn: #e0883a; --bad: #d9534f;
  --r0: #aebcc6; --r1: #4aa8ee; --r2: #b073f0; --r3: #f2b632;
  --radius: 14px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overscroll-behavior: none;
  font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button { font: inherit; color: inherit; touch-action: manipulation; }
#app { height: 100dvh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; position: relative; overflow: hidden; }

#topbar { display: flex; gap: 6px; padding: calc(6px + var(--safe-t)) 8px 6px; background: #0b2c40; color: #fff; flex-wrap: wrap; }
.chip { background: #ffffff1c; border-radius: 10px; padding: 4px 9px; display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.chip small { font-size: 10.5px; line-height: 1.25; opacity: .75; }
.chip b { font-size: 16px; white-space: nowrap; }
.chip.ad { background: #f2b632; color: #3b2a00; flex: 1 1 100%; flex-direction: row; gap: 8px; align-items: center; justify-content: center; }
[hidden] { display: none !important; }

#stage { position: relative; flex: 1 1 42%; min-height: 150px; background: #3f9fc9; }
#scene { width: 100%; height: 100%; display: block; touch-action: none; }
#pools { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 5px; }
.pool { flex: 1; background: #0b2c40cc; color: #fff; border: 2px solid transparent; border-radius: 10px; padding: 3px 4px; font: inherit; font-size: 11px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; cursor: pointer; }
.pool.sel { border-color: #ffd24a; background: #0b2c40f0; box-shadow: 0 0 10px #ffd24a66; }
#pool-c { flex: .6; }
#pools { max-width: calc(100% - 12px); box-sizing: border-box; }
.pool b { font-size: 13px; }
.pool.full { background: #b0562ccc; }
#fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float { position: absolute; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000a; animation: rise .9s ease-out forwards; }
@keyframes rise { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -48px); opacity: 0; } }
#nogl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; background: #1c6f95; }

#panel { flex: 1 1 46%; min-height: 0; display: flex; flex-direction: column; background: linear-gradient(#fffaf0, #f6eedb); border-radius: 22px 22px 0 0; margin-top: -14px; position: relative; box-shadow: 0 -6px 18px #0005; }
#panel::before { content: ""; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: #0002; }
#tabcontent { flex: 1; overflow-y: auto; padding: 12px 12px 8px; -webkit-overflow-scrolling: touch; }
#tabs { display: flex; gap: 4px; margin: 4px 10px calc(8px + var(--safe-b)); padding: 5px; background: #fff; border-radius: 24px; box-shadow: 0 4px 14px #1d2b3626, 0 0 0 1px #1d2b3610; }
#tabs button { flex: 1; border: 0; background: none; padding: 7px 0 6px; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; border-radius: 18px; transition: background .2s, color .2s, transform .15s; position: relative; }
#tabs button:active { transform: scale(.94); }
#tabs .ico { position: relative; display: grid; place-items: center; width: 44px; height: 28px; border-radius: 14px; transition: background .2s; }
#tabs button svg { width: 23px; height: 23px; }
#tabs button.on { color: var(--accent-d); }
#tabs button.on .ico { background: #1c8fc01f; }
#tabs button.on .lbl { font-weight: 800; }
#tabs .badge { display: none; position: absolute; top: 1px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px #fff; }
#tabs button.has-dot .badge { display: block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }

.btn { border: 0; border-radius: 16px; box-shadow: 0 2px 6px #1d2b3626; padding: 12px 14px; font-weight: 700; background: var(--accent); color: #fff; width: 100%; text-align: left; display: block; }
.btn small { display: block; font-weight: 500; opacity: .9; font-size: 12.5px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { background: #b8c2c9; color: #fff; }
.btn.big { padding: 16px; font-size: 18px; text-align: center; background: linear-gradient(#2fb0e0, #1c8fc0); box-shadow: 0 3px 0 var(--accent-d); user-select: none; -webkit-user-select: none; }
.btn.ad { background: linear-gradient(#f6c248, #e9a21d); color: #3b2a00; }
.btn.release { background: linear-gradient(#52c18a, #34a06b); }
.btn.sec { background: #e3dac3; color: var(--ink); text-align: center; }
.btn.danger { background: var(--bad); text-align: center; }
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
h3 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
h3:first-child { margin-top: 2px; }

.animal { box-shadow: 0 1px 3px #1d2b3618; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 7px 10px; border: 0; width: 100%; text-align: left; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.r0 .dot, .dot.r0 { background: var(--r0); } .r1 .dot, .dot.r1 { background: var(--r1); }
.r2 .dot, .dot.r2 { background: var(--r2); } .r3 .dot, .dot.r3 { background: var(--r3); }
.animal .nm { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.animal .ph { font-size: 12px; color: var(--muted); }
.bar { height: 6px; background: #0001; border-radius: 3px; overflow: hidden; width: 54px; flex: none; }
.bar i { display: block; height: 100%; background: var(--good); }
.empty { color: var(--muted); text-align: center; padding: 8px; }

.build { background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 1px 4px #1d2b3618; display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.build svg.ic { width: 44px; height: 44px; }
.build .t { font-weight: 700; }
.build .d { font-size: 12.5px; color: var(--muted); }
.build .e { font-size: 12.5px; color: var(--accent-d); }
.build .buy { width: auto; min-width: 92px; text-align: center; padding: 9px 10px; }
.build.hl { outline: 3px solid var(--warn); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.card { position: relative; border: 3px solid var(--r0); border-radius: 12px; background: #fff; padding: 4px 4px 6px; text-align: center; font-size: 11.5px; line-height: 1.2; min-height: 108px; }
.card.rr1 { border-color: var(--r1); } .card.rr2 { border-color: var(--r2); } .card.rr3 { border-color: var(--r3); background: #fff9e6; }
.card.locked { opacity: .55; border-style: dashed; }
.card svg { width: 100%; height: 54px; }
.card .lv { position: absolute; top: 2px; right: 2px; background: var(--ink); color: #fff; border-radius: 8px; padding: 0 5px; font-size: 10.5px; font-weight: 700; }
.card .cn { display: block; font-weight: 600; }
.sum { background: #fff; box-shadow: 0 1px 3px #1d2b3618; border-radius: 14px; padding: 8px 10px; margin-bottom: 10px; }

.seg { display: flex; gap: 6px; }
.seg .btn { text-align: center; }
.seg .btn.on { background: var(--accent-d); }
.note { font-size: 12.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }

#toasts { position: absolute; left: 10px; right: 10px; top: calc(70px + var(--safe-t)); display: grid; gap: 6px; pointer-events: none; z-index: 20; }
.toast { background: #10202bf0; color: #fff; padding: 9px 12px; border-radius: 12px; animation: pop .25s ease-out; font-weight: 600; text-align: center; }
.toast.gold { background: #8a5a00f0; }
@keyframes pop { from { transform: translateY(-8px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

#modal { position: absolute; inset: 0; background: #0009; display: grid; place-items: center; z-index: 30; padding: 16px; }
#modal[hidden], #nogl[hidden] { display: none; }
.sheet { background: var(--panel); border-radius: 18px; padding: 16px; width: 100%; max-width: 420px; max-height: 88dvh; overflow-y: auto; }
.sheet h2 { margin: 0 0 8px; font-size: 18px; }
.sheet .acts { display: grid; gap: 8px; margin-top: 14px; }
.sheet input[type=text] { width: 100%; font: inherit; padding: 9px 10px; border: 2px solid #0002; border-radius: 10px; }
.big-num { font-size: 40px; font-weight: 800; text-align: center; color: var(--accent-d); margin: 10px 0; }
.updbar { position: absolute; left: 10px; right: 10px; bottom: calc(66px + var(--safe-b)); z-index: 25; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.updbar button { border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 700; background: #f2b632; }
@media (min-width: 720px) { #app { border-left: 1px solid #fff2; border-right: 1px solid #fff2; } }
@media (prefers-reduced-motion: reduce) { .float, .toast { animation: none; } }

.btn.care { background: #e3dac3; color: var(--ink); padding: 9px 12px; }
.btn.care.on { background: #bfe7c9; }
.btn.care:disabled { opacity: .7; background: #ddd5c0; color: var(--muted); }
.btn.care.lock { opacity: .9; background: #ddd5c0; color: var(--ink); position: relative; }
.btn.care.lock::after { content: "▶"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #0b6e99; font-size: 1.1em; }
.build.edu { grid-template-columns: 44px 1fr auto; }

.btn.big { letter-spacing: .01em; }
h3 { display: flex; align-items: center; gap: 8px; }
h3::after { content: ""; flex: 1; height: 1px; background: #0001; }

/* ---- Besucherzentrum ---- */
.ctr-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.ctr-head > div { background: #fff; border-radius: 12px; padding: 6px 8px; text-align: center; box-shadow: 0 1px 3px #1d2b3618; }
.ctr-head small { display: block; color: var(--muted); font-size: 11px; }
.ctr-head b { font-size: 15px; } .ctr-head b.neg { color: var(--bad); }
.card-box { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 3px #1d2b3618; display: grid; gap: 6px; }
.card-box small { color: var(--muted); font-size: 12px; }
.card-box .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-box.staff { grid-template-columns: 1fr auto; align-items: center; }
.card-box .two { display: grid; gap: 4px; }
.btn.sm { padding: 6px 10px; width: auto; font-size: 13px; text-align: center; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper b { min-width: 64px; text-align: center; }
.btn.step { width: 34px; padding: 4px 0; font-size: 18px; }
.ledger { font-size: 12.5px; color: var(--ink); display: block; }
.stack { display: grid; gap: 8px; }
/* Minispiele */
.mg-wrap { text-align: center; } .mg-wrap h2 { margin: 0; } .mg-wrap .note { margin: 2px 0 6px; }
.mg-hud { display: flex; justify-content: space-between; font-weight: 700; padding: 0 4px 4px; }
.mg-canvas { width: 100%; max-width: 320px; aspect-ratio: 320 / 380; border-radius: 12px; touch-action: none; background: #bfe7f4; display: block; margin: 0 auto; }
/* 3D-Editor */
#editor { position: absolute; inset: 0; z-index: 30; background: #e9f1f3; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.ed-top { display: flex; gap: 6px; align-items: center; padding: 6px 8px; background: #0b2c40; color: #fff; }
.ed-chip { background: #ffffff1c; border-radius: 10px; padding: 3px 9px; } .ed-chip small { display: block; font-size: 10.5px; opacity: .75; } .ed-chip b { font-size: 14px; }
.ed-done { margin-left: auto; border: 0; border-radius: 14px; background: var(--good); color: #fff; font-weight: 800; padding: 9px 16px; }
.ed-stage { position: relative; flex: 1; min-height: 0; }
#editor-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.ed-hint { position: absolute; top: 8px; left: 8px; right: 60px; background: #ffffffd8; border-radius: 10px; padding: 5px 10px; font-size: 12.5px; pointer-events: none; }
.ed-view { position: absolute; top: 8px; right: 8px; display: grid; gap: 6px; }
.ed-view button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff; font-size: 20px; box-shadow: 0 2px 6px #0003; }
.ed-actions { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ed-actions button { border: 0; border-radius: 14px; padding: 10px 14px; font-weight: 700; background: #fff; box-shadow: 0 2px 6px #0003; color: var(--ink); }
.ed-actions .ok { background: var(--good); color: #fff; } .ed-actions .bad { background: var(--bad); color: #fff; } .ed-actions button:disabled { opacity: .5; }
.ed-cats { display: flex; gap: 4px; padding: 6px 8px 0; overflow-x: auto; background: var(--panel); }
.ed-cats button { border: 0; border-radius: 12px; padding: 6px 12px; background: #e3dac3; font-weight: 700; white-space: nowrap; color: var(--ink); } .ed-cats .on { background: var(--accent); color: #fff; }
.ed-palette { display: flex; gap: 8px; padding: 8px; overflow-x: auto; background: var(--panel); padding-bottom: calc(8px + var(--safe-b)); }
.ed-item { flex: 0 0 132px; border: 2px solid transparent; border-radius: 12px; background: #fff; padding: 6px 8px; text-align: left; color: var(--ink); display: grid; gap: 2px; font-size: 12px; }
.ed-item.on { border-color: var(--accent); } .ed-item.full { opacity: .5; } .ed-item .d { color: var(--muted); font-size: 11px; }
/* Anlage */
.row.meter { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; }
.row.meter .bar { height: 9px; background: #e6dfcd; border-radius: 6px; overflow: hidden; display: block; }
.row.meter .bar i { display: block; height: 100%; background: var(--good); border-radius: 6px; transition: width .4s; }
.row.meter .bar i.toy { background: #b073f0; } .row.meter .bar i.low { background: var(--bad); }
.btnrow { display: flex; gap: 6px; flex-wrap: wrap; } .btnrow .btn.sm { flex: 1 1 auto; }
.lockline { color: var(--warn) !important; font-weight: 600; } .lockline:empty { display: none; }
.card-box.staff .grow { min-width: 0; }
.ed-item .lock { color: var(--warn); font-weight: 700; }
.btn.sponsor { background: linear-gradient(#f7d66a, #e8a82e); color: #3a2a00; }
/* Souvenirshop */
.card-box.prod { grid-template-columns: 78px 1fr; align-items: start; gap: 10px; }
.prod-art { width: 78px; height: 78px; border-radius: 14px; background: radial-gradient(circle at 30% 25%, #fff, #e9dfc6); box-shadow: inset 0 0 0 1px #1d2b3612; display: grid; place-items: center; }
.prod-art svg { width: 70px; height: 70px; display: block; }
.prod-body { display: grid; gap: 4px; min-width: 0; }
.card-box.prod.locked { opacity: .6; } .card-box.prod.locked .prod-art { filter: grayscale(.8); }
.mg-stars { text-align: center; font-size: 30px; color: #f2b632; letter-spacing: 4px; text-shadow: 0 2px 0 #b97a0e55; }
.mg-canvas { box-shadow: 0 4px 16px #1d2b3640; }

.sign-ed { display: flex; flex-direction: column; gap: 8px; max-height: 78vh; overflow-y: auto; }
.sign-ed h4 { margin: 6px 0 0; font-size: 13px; }
.sign-preview { width: 100%; max-width: 360px; aspect-ratio: 512 / 224; align-self: center; border-radius: 10px; box-shadow: 0 3px 10px #0004; }
.sign-text { font: inherit; font-size: 16px; padding: 8px 10px; border: 2px solid #c9bd9f; border-radius: 10px; width: 100%; box-sizing: border-box; }
.sign-cols { display: flex; gap: 8px; flex-wrap: wrap; }
.sign-col { display: flex; flex-direction: column; gap: 2px; font-size: 12px; flex: 1; min-width: 80px; }
.sign-col input { width: 100%; height: 36px; border: 0; padding: 0; background: none; }
.sign-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sign-chips .chip { font: inherit; font-size: 13px; padding: 5px 9px; border-radius: 9px; border: 2px solid #d9cfb6; background: #fffaf0; cursor: pointer; min-width: 34px; }
.sign-chips .chip.on { border-color: #1c7fb0; background: #dff3fa; }

.pet-canvas { width: 100%; border-radius: 14px; box-shadow: 0 4px 14px #1d2b3640; touch-action: manipulation; display: block; }
.pet-name { font-size: 20px; font-weight: 800; }
.pet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pet-stat { font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.bar { height: 10px; border-radius: 6px; background: #0002; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6fe39a, #3aa56b); border-radius: 6px; transition: width .3s; }
.bar.s-food > i { background: linear-gradient(90deg, #ffb35c, #e8803a); } .bar.s-clean > i { background: linear-gradient(90deg, #7fd7f2, #2d97c0); }
.bar.s-fun > i { background: linear-gradient(90deg, #ffd24a, #f2b632); } .bar.s-health > i { background: linear-gradient(90deg, #ff8fa3, #e45858); }
.pet-sec { display: flex; flex-direction: column; gap: 8px; }
.pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.pet-grid .btn { padding: 8px 6px; font-size: 13px; text-align: center; }
.pet-grid .btn.on { outline: 3px solid #1c7fb0; }
.pet-trick { background: #fffaf0; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.pet-trick-h { display: flex; justify-content: space-between; }
.pet-quest { display: grid; grid-template-columns: 1fr 60px auto; gap: 8px; align-items: center; background: #fffaf0; border-radius: 12px; padding: 8px 10px; }
.pet-quest.claimed { opacity: .55; }
.pet-ach { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pet-ach-i { font-size: 12px; padding: 6px 8px; border-radius: 10px; background: #0001; opacity: .65; }
.pet-ach-i.on { background: #fff3c4; opacity: 1; font-weight: 700; }
.pet-perks { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.coat-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.row-inline { display: flex; gap: 8px; } .row-inline input { flex: 1; }
.btn.disabled { opacity: .5; }

#pet-stage { position: absolute; inset: 0; z-index: 6; display: flex; justify-content: center; background: linear-gradient(#7ccdef, #cfeaf5); overflow: hidden; }
#pet-stage .pet-canvas3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: manipulation; display: block; }
#clinic-stage { position: absolute; inset: 0; z-index: 6; overflow: hidden; background: #dcecee; }
#clinic-stage .pet-canvas3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#clinic-back, #pet-back { position: absolute; top: 8px; left: 8px; width: auto; padding: 6px 12px; font-size: 13px; }

.pet-slots { margin-bottom: 4px; }
.pool-panel { background: #fffaf0; border-radius: 16px; padding: 10px 12px; }
.pool-op-box { display: grid; gap: 3px; } .pool-op-box .note { font-size: 12px; padding: 0 4px; }
.btn.care.pool-op.on, .pool-op-box .btn.on { background: #bfe7c9; }
.clinic-card { background: #fffaf0; border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.clinic-card .row { justify-content: space-between; flex-wrap: wrap; }
.clinic-steps { display: flex; flex-wrap: wrap; gap: 4px; }
.clinic-step { font-size: 11.5px; padding: 3px 8px; border-radius: 10px; background: #0001; }
.clinic-step.ok { background: #bfe7c9; } .clinic-step.now { background: #fff3c4; font-weight: 700; outline: 2px solid #f2b632; }

/* Sammelkarten mit Foto */
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.card.pic { padding: 3px 3px 5px; min-height: 0; display: flex; flex-direction: column; gap: 2px; }
.card.pic .cphoto { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #cfe7f1; }
.card.pic .cphoto img, .cphoto img, .cphoto.ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.pic .cphoto.lockedph { display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #8c99a3; background: #dde3e7; }
.card.pic .num { font-size: 10px; color: var(--muted); font-weight: 700; }
.card.pic .cn { font-size: 11px; }
.albumf { margin: 0 0 8px; flex-wrap: wrap; } .albumf .on { background: var(--accent); color: #fff; }
.csheet { border: 4px solid var(--r0); border-radius: 16px; background: #fff; padding: 8px; display: grid; gap: 6px; text-align: left; }
.csheet.rr1 { border-color: var(--r1); } .csheet.rr2 { border-color: var(--r2); } .csheet.rr3 { border-color: var(--r3); background: #fff9e6; }
.csheet .chead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.csheet .rar { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cphoto.big { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #cfe7f1; }
.csheet .ai-note { font-size: 10.5px; color: var(--muted); }
.csheet .kv { margin: 0; }
.seg.albumf { display: flex; gap: 6px; } .seg.albumf .btn { flex: 1 1 0; width: auto; min-width: 0; padding: 7px 4px; font-size: 13px; text-align: center; }

/* Datenschutz / Einwilligung */
[hidden] { display: none !important; }
.consent h2 { margin: 0 0 6px; } .consent .acts { display: grid; gap: 8px; margin: 10px 0; }
.consent .acts .btn { text-align: center; } .consent .acts .btn small { display: block; font-weight: 400; opacity: .85; }
.consent ul { margin: 4px 0 8px; padding-left: 18px; } .consent .legal { text-align: center; } .consent a { color: var(--accent); }
.legal a { color: var(--accent); }

/* Tamagotchi-Extras & Minispiele */
.pet-wish { font-weight: 700; min-height: 1.4em; }
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.pg-grid.two { grid-template-columns: repeat(2, 1fr); }
.pg-cell, .pg-pad { min-height: 64px; font-size: 30px; border-radius: 14px; border: 2px solid rgba(0,0,0,.15); background: #cfe7f1; touch-action: manipulation; }
.pg-pad { min-height: 84px; border: 3px solid rgba(0,0,0,.35); box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); filter: saturate(.7) brightness(.74); transition: filter .08s, transform .08s, box-shadow .08s; }
.pg-pad.lit { filter: saturate(1.6) brightness(1.5); transform: scale(1.06); border-color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 26px 8px currentColor, inset 0 0 18px rgba(255,255,255,.7); z-index: 2; }
.pg-pad:active { filter: saturate(1.4) brightness(1.3); transform: scale(.98); }
.pg-react { width: 100%; min-height: 120px; font-size: 22px; font-weight: 700; border-radius: 16px; border: 0; background: #e8b4b4; margin: 10px 0; } .pg-react.now { background: #4cbf7a; }

/* Schließen-Knopf, bleibt beim Scrollen oben sichtbar */
.xclose { position: sticky; top: 0; z-index: 5; float: right; width: 38px; height: 38px; margin: 0 0 -38px 8px; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); background: rgba(255,255,255,.95); color: #16313d; font-size: 18px; font-weight: 700; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* Bestenliste */
.lb-list { display: grid; gap: 4px; margin: 8px 0; max-height: 38dvh; overflow-y: auto; }
.lb-row { display: grid; grid-template-columns: 44px 1fr auto 28px; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.04); font-size: 14px; }
.lb-row.me { background: rgba(28,143,192,.2); font-weight: 700; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-score { font-variant-numeric: tabular-nums; }
.lb-rep { background: none; border: 0; opacity: .5; font-size: 14px; padding: 0; }
.lb select, .lb input { width: 100%; margin: 4px 0; }

/* Nachrichten & Album geschafft */
.msgs { display: grid; gap: 6px; max-height: 40dvh; overflow-y: auto; margin: 8px 0; }
.bubble { padding: 8px 10px; border-radius: 12px; max-width: 86%; background: #eef2e0; word-break: break-word; } .bubble small { display: block; opacity: .6; font-size: 11px; margin-top: 2px; }
.bubble.admin { background: #cfe9f5; justify-self: start; } .bubble.user { background: #f6e7c8; justify-self: end; }
.done-msg { text-align: center; } .done-ico { font-size: 40px; margin: 6px 0; }

/* Spenden-Dialog (Zeppelin-Banner) */
.donate-banner { width: 100%; height: auto; display: block; border-radius: 10px; margin-bottom: 12px; filter: drop-shadow(0 4px 8px #0003); }
.donate-go { display: block; text-align: center; text-decoration: none; margin: 14px 0 8px; color: #5a2f00; font-weight: 800; background: linear-gradient(#ffe48a, #f7b733 55%, #e08e0b); border: 2px solid #fff6d0; box-shadow: 0 6px 16px #e08e0b66, inset 0 1px 0 #fff9; }
.donate-go:active { transform: translateY(1px); }
