/* BloomWorld – Oberfläche im glänzenden Candy-Stil, mobile-first */
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('../assets/fonts/poppins-bold.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('../assets/fonts/poppins-medium.woff') format('woff'); }

:root {
  --pink: #ff4fa0; --pink-d: #d81b72; --pink-l: #ffc2e0;
  --purple: #c9a4f4; --purple-d: #8b5fd6; --purple-l: #ead9ff;
  --green: #3fbe2c; --green-d: #1f7a14; --green-l: #9ef07e;
  --blue: #1b3f94; --blue-l: #4aa3ff; --gold: #ffc933; --gold-d: #b87400;
  --cream: #fff6ec; --ink: #2c1a5e; --muted: #6d5a96;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --nav-h: 74px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1a2e1a; overscroll-behavior: none; }
body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 500; color: var(--ink); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
button { font-family: inherit; font-weight: 700; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
#app { position: fixed; inset: 0; overflow: hidden; overflow: clip; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(10, 20, 30, 0.28) 100%); }

/* ---------- glänzende Bausteine ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 18px; border-radius: 22px; font-size: 17px; color: #fff; letter-spacing: 0.2px;
  background: linear-gradient(#8cec6c 0%, #45c630 46%, #2c9d1f 54%, #3dbb2a 100%); border: 2px solid var(--green-d);
  text-shadow: 0 2px 0 #1b6a12; box-shadow: inset 0 2px 0 #c8fbb3, 0 4px 0 #1b6a12, 0 7px 10px rgba(0, 0, 0, 0.25); transition: transform 0.08s; }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 #c8fbb3, 0 1px 0 #1b6a12, 0 3px 6px rgba(0, 0, 0, 0.25); }
.btn::after { content: ''; position: absolute; left: 12%; right: 30%; top: 4px; height: 30%; border-radius: 20px; background: rgba(255, 255, 255, 0.35); pointer-events: none; }
.btn.pink { background: linear-gradient(#ff7cbd 0%, #f23d93 48%, #d01e77 52%, #ea2b8c 100%); border-color: #a3125e; text-shadow: 0 2px 0 #a3125e; box-shadow: inset 0 2px 0 #ffc6e2, 0 4px 0 #a3125e, 0 7px 10px rgba(0, 0, 0, 0.25); }
.btn.blue { background: linear-gradient(#7cc4ff 0%, #3a95f0 48%, #2378d6 52%, #3a8ee8 100%); border-color: #1856a8; text-shadow: 0 2px 0 #1856a8; box-shadow: inset 0 2px 0 #c7e6ff, 0 4px 0 #1856a8, 0 7px 10px rgba(0, 0, 0, 0.25); }
.btn.gold { background: linear-gradient(#ffe48a 0%, #ffc430 48%, #f0a810 52%, #ffbd2e 100%); border-color: #a86a00; color: #6b3a00; text-shadow: 0 1px 0 #ffe9a8; box-shadow: inset 0 2px 0 #fff3c4, 0 4px 0 #a86a00, 0 7px 10px rgba(0, 0, 0, 0.25); }
.btn.ghost { background: #fff; color: var(--blue); border-color: #d9c8f2; text-shadow: none; box-shadow: 0 4px 0 #cbb6ea; }
.btn.ghost::after { display: none; }
.btn.red { background: linear-gradient(#ff8d8d 0%, #f04848 48%, #d62c2c 52%, #e83a3a 100%); border-color: #9e1b1b; text-shadow: 0 2px 0 #9e1b1b; box-shadow: inset 0 2px 0 #ffd0d0, 0 4px 0 #9e1b1b, 0 7px 10px rgba(0, 0, 0, 0.25); }
.btn[disabled], .btn.off { background: linear-gradient(#e2dde8, #bdb6c7); border-color: #8e879a; color: #fff; text-shadow: 0 1px 0 #8e879a; box-shadow: 0 3px 0 #8e879a; cursor: default; }
.btn.small { min-height: 36px; padding: 5px 12px; font-size: 15px; border-radius: 18px; }
.btn.big { min-height: 54px; font-size: 22px; padding: 8px 30px; border-radius: 28px; }
.btn.wide { width: 100%; }
.coin { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.25em; }
.outlined { color: #fff; -webkit-text-stroke: 6px var(--pink-d); paint-order: stroke fill; text-shadow: 0 3px 0 var(--pink-d); }

/* ---------- Kopfleiste ---------- */
#hud { position: absolute; top: 0; left: 0; right: 0; padding: calc(10px + var(--safe-t)) calc(10px + var(--safe-r)) 0 calc(10px + var(--safe-l)); display: flex; align-items: center; gap: 8px; z-index: 20; pointer-events: none; }
#hud > * { pointer-events: auto; }
.pill { display: flex; align-items: center; height: 40px; border-radius: 22px; background: linear-gradient(#fffaf6, #ffe4ec); border: 2px solid #fff; box-shadow: 0 3px 0 #e2a6c0, 0 6px 12px rgba(0, 0, 0, 0.22); color: var(--blue); font-size: 18px; }
.lvl { position: relative; padding: 0 10px 0 44px; min-width: 90px; flex-shrink: 1; overflow: visible; flex-direction: column; align-items: stretch; justify-content: center; gap: 3px; }
.lvl .star { position: absolute; left: -6px; top: -6px; width: 50px; height: 50px; }
.lvl .star b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 4px; color: #fff; font-size: 17px; -webkit-text-stroke: 4px #b06a00; paint-order: stroke fill; }
.lvl small { font-size: 11px; line-height: 1; color: var(--muted); white-space: nowrap; }
.xpbar { height: 9px; border-radius: 6px; background: #ead9f2; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(#ffe26b, #ffb21f); transition: width 0.5s; }
.coins { padding: 0 4px 0 4px; gap: 6px; font-variant-numeric: tabular-nums; }
.coins .coin { width: 32px; height: 32px; }
.coins .plus { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; color: #fff; background: radial-gradient(circle at 40% 35%, #7ef05e, #2c9d1f); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.coins.bump { animation: bump 0.35s; }
@keyframes bump { 40% { transform: scale(1.12); } }
.spacer { flex: 1; }
.timepill { padding: 0 12px 0 6px; gap: 5px; font-size: 14px; }
@media (max-width: 440px) { .timepill { padding: 0 6px; } .timepill span { display: none; } }
.timepill svg { width: 28px; height: 28px; }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #ff7cbd, #d81b72); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); flex: none; }
.round svg { width: 28px; height: 28px; }

/* Seitenknöpfe */
#side { position: absolute; right: calc(10px + var(--safe-r)); top: calc(64px + var(--safe-t)); display: flex; flex-direction: column; gap: 10px; z-index: 15; }
.sidebtn { position: relative; width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(#fff9f2, #ffe2ec); border: 2px solid #fff; box-shadow: 0 3px 0 #e2a6c0, 0 6px 10px rgba(0, 0, 0, 0.22); display: grid; place-items: center; }
.sidebtn svg { width: 36px; height: 36px; }
.sidebtn span { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #fff; background: var(--purple-d); border-radius: 8px; padding: 0 6px; white-space: nowrap; border: 1.5px solid #fff; }
.badge { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px; padding: 0 6px; display: grid; place-items: center; font-size: 14px; font-style: normal; color: #fff; background: radial-gradient(circle at 40% 35%, #ff7070, #d41818); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); }
.badge:empty, .badge[hidden] { display: none; }

/* ---------- Untere Leiste ---------- */
#nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; padding: 6px calc(4px + var(--safe-r)) calc(4px + var(--safe-b)) calc(4px + var(--safe-l));
  background: repeating-linear-gradient(135deg, #ff9fce 0 14px, #ff92c6 14px 28px); box-shadow: 0 -3px 0 #ea6dab, 0 -8px 18px rgba(0, 0, 0, 0.25); }
#nav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px 0 2px; border-radius: 16px; color: #7a1f55; font-size: 12px; }
#nav button svg { width: 42px; height: 42px; transition: transform 0.15s; filter: drop-shadow(0 2px 1px rgba(120, 20, 80, 0.3)); }
#nav button.on { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8); }
#nav button.on svg { transform: translateY(-3px) scale(1.08); }
#nav button .badge { top: -6px; right: 8%; }

/* Ernte-Knopf und Hinweis */
#harvestAll { position: absolute; left: 50%; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); transform: translateX(-50%); z-index: 16; white-space: nowrap; }
#hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 18px + var(--safe-b)); z-index: 14; width: min(92vw, 420px); padding: 12px 16px 12px 58px; border-radius: 20px; background: rgba(255, 255, 255, 0.95); border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); font-size: 15px; line-height: 1.3; color: var(--ink); pointer-events: none; }
#hint::before { content: ''; position: absolute; left: 12px; top: 50%; width: 36px; height: 36px; margin-top: -18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23ff4fa0'/%3E%3Ctext x='20' y='27' font-size='22' font-family='Arial' font-weight='bold' fill='white' text-anchor='middle'%3E!%3C/text%3E%3C/svg%3E") center/contain no-repeat; }
[hidden] { display: none !important; }

/* ---------- Beet-Blasen ---------- */
#bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.bub { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); will-change: transform; pointer-events: none; }
.bub .b { display: flex; align-items: center; gap: 4px; padding: 4px 9px 4px 4px; border-radius: 18px; background: rgba(255, 255, 255, 0.96); border: 2px solid #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.25); font-size: 13px; color: var(--blue); white-space: nowrap; }
.bub .b::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }
.ring { width: 26px; height: 26px; flex: none; }
.bub.ready .b { padding: 3px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fffbe6, #ffe27a); border-color: #fff; animation: bob 1s ease-in-out infinite; }
.bub.ready img { width: 38px; height: 38px; display: block; }
.bub.ready.gold .b { background: radial-gradient(circle at 40% 30%, #fff6c8, #ffbf1f); box-shadow: 0 0 0 3px #ffe58a, 0 4px 14px rgba(255, 170, 0, 0.6); }
@keyframes bob { 50% { transform: translateY(-6px); } }
.bub.empty .b { padding: 0; width: 30px; height: 30px; border-radius: 50%; justify-content: center; font-size: 23px; line-height: 1; color: #fff; background: radial-gradient(circle at 40% 35%, #7ef05e, #2c9d1f); opacity: 0.92; }
.bub.empty .b::after { border-top-color: #2c9d1f; }
.bub.locked .b { background: linear-gradient(#fff4c9, #ffd970); color: #6b3a00; padding: 4px 10px 4px 6px; }
.bub.locked .b::after { border-top-color: #ffd970; }
.bub.locked svg.lock { width: 20px; height: 20px; }

/* fliegende Münzen */
#floaters { position: absolute; inset: 0; pointer-events: none; z-index: 40; }
.fly { position: absolute; left: 0; top: 0; font-size: 22px; color: #fff; -webkit-text-stroke: 5px #b06a00; paint-order: stroke fill; display: flex; align-items: center; gap: 4px; font-weight: 700; }
.fly.gold { -webkit-text-stroke-color: #c2410c; font-size: 26px; }
.flycoin { position: absolute; left: 0; top: 0; width: 26px; height: 26px; }

/* ---------- Bottom-Sheet: Saatgut ---------- */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 0 calc(var(--nav-h) + var(--safe-b)); transform: translateY(110%); transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.sheet.open { transform: none; }
.sheet { pointer-events: none; }
.sheet.open .inner { pointer-events: auto; }
.sheet .inner { margin: 0 auto; max-width: 640px; max-height: calc(100dvh - var(--nav-h) - var(--safe-b) - 8px); overflow-y: auto; background: linear-gradient(#fff8fb, #f6eaff); border-radius: 26px 26px 0 0; border: 2px solid #fff; border-bottom: 0; box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.3); padding: 12px 0 14px; }
.sheet h3 { margin: 0 16px 8px; font-size: 19px; color: var(--blue); display: flex; align-items: center; justify-content: space-between; }
.x { width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff8a8a, #e02d2d); border: 2.5px solid #fff; color: #fff; font-size: 20px; line-height: 1; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); display: grid; place-items: center; }
.seeds { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
.seeds::-webkit-scrollbar { display: none; }
.seed { flex: 0 0 auto; width: 126px; scroll-snap-align: start; border-radius: 20px; padding: 8px 6px 10px; background: linear-gradient(#fffef6, #ffeec4); border: 2px solid #fff; box-shadow: 0 4px 0 #e8cf7c, 0 6px 10px rgba(0, 0, 0, 0.15); text-align: center; color: var(--blue); }
.seed img { width: 74px; height: 74px; display: block; margin: -4px auto -2px; border-radius: 50%; }
.seed b { display: block; font-size: 13px; line-height: 1.15; hyphens: manual; -webkit-hyphens: manual; }
.seed .meta { display: flex; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 3px 0 6px; }
.seed .price { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; color: #fff; padding: 2px 10px; border-radius: 12px; background: linear-gradient(#5fd847, #2c9d1f); border: 1.5px solid var(--green-d); }
.seed.lock { filter: grayscale(0.7); opacity: 0.75; }
.seed.lock .price { background: linear-gradient(#bdb6c7, #8e879a); border-color: #6e6779; font-size: 12px; }
.seed.rare { background: linear-gradient(#fff2fb, #ffd6ef); box-shadow: 0 4px 0 #eaa2cf, 0 6px 10px rgba(0, 0, 0, 0.15); }
.seed .tag { display: inline-block; font-size: 10px; color: #fff; background: var(--pink); padding: 0 6px; border-radius: 8px; margin-bottom: 2px; }
.sheet .all { margin: 4px 16px 0; display: flex; }

/* ---------- Vollbild-Panels ---------- */
.panel { position: absolute; inset: 0; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 25; display: flex; flex-direction: column; background: repeating-linear-gradient(90deg, #cfa9f5 0 22px, #c79ff0 22px 44px); transform: translateY(16px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.panel.open { transform: none; opacity: 1; pointer-events: auto; }
.phead { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 14px; background: repeating-linear-gradient(135deg, #ffc9e2 0 14px, #ffbbdb 14px 28px); border-radius: 0 0 24px 24px; box-shadow: 0 4px 0 #e58fb7, 0 8px 14px rgba(0, 0, 0, 0.2); position: relative; z-index: 2; }
.phead h2 { flex: 1; min-width: 0; margin: 0; font-size: 27px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 0 6px 2px; }
.phead .x, .phead .pill { flex: none; }
.phead .pill { height: 38px; font-size: 17px; padding: 0 12px 0 3px; gap: 4px; }
.phead .pill .coin { width: 30px; height: 30px; }
.pbody { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 12px 28px; overscroll-behavior: contain; }
.pbody > * { max-width: 620px; margin-left: auto; margin-right: auto; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 20px; background: rgba(255, 255, 255, 0.45); margin-bottom: 14px; }
.tabs button { flex: 1; min-height: 38px; border-radius: 16px; font-size: 14px; color: #5a3a8f; }
.tabs button.on { background: #fff; color: var(--pink-d); box-shadow: 0 3px 0 #d9c3f2; }
.sec { margin: 18px auto 10px; font-size: 20px; color: #fff; -webkit-text-stroke: 5px #6a3fb5; paint-order: stroke fill; }

.card { position: relative; background: #fff; border-radius: 20px; padding: 12px; margin-bottom: 12px; border: 2px solid #fff; box-shadow: 0 4px 0 #d8c7ee, 0 6px 12px rgba(0, 0, 0, 0.12); color: var(--blue); }
.row { display: flex; align-items: center; gap: 12px; }
.row .grow { flex: 1; min-width: 0; }
.row img.ic { width: 60px; height: 60px; flex: none; }
.card h4 { margin: 0 0 2px; font-size: 17px; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: #fff; border-radius: 18px; padding: 8px 6px 10px; text-align: center; border: 2px solid #fff; box-shadow: 0 4px 0 #d8c7ee, 0 6px 10px rgba(0, 0, 0, 0.12); color: var(--blue); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tile img { width: 72px; height: 72px; border-radius: 50%; }
.tile b { font-size: 13.5px; line-height: 1.2; hyphens: manual; -webkit-hyphens: manual; max-width: 100%; }
.bigstar { position: relative; display: block; width: 58px; height: 58px; }
.bigstar .star { position: absolute; inset: 0; }
.bigstar .star svg { width: 100%; height: 100%; }
.bigstar .star b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 5px; color: #fff; font-size: 20px; -webkit-text-stroke: 4px #b06a00; paint-order: stroke fill; }
.bigstar.huge { width: 110px; height: 110px; margin: -8px auto 0; }
.bigstar.huge .star b { font-size: 36px; -webkit-text-stroke-width: 7px; }
.tile small { font-size: 12px; color: var(--muted); line-height: 1.2; }
.tile.unknown img { filter: brightness(0) opacity(0.22); }
.tile .gold { color: #c27800; }
.prog { height: 12px; border-radius: 8px; background: #efe5fb; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15); overflow: hidden; margin-top: 6px; }
.prog i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(#a6f08a, #3fbe2c); }

/* Shop wie Vorlage */
.offer { position: relative; border-radius: 24px; padding: 14px 12px 14px; margin: 28px auto 18px; background: linear-gradient(135deg, #fff3a8 0%, #ffd0e0 55%, #aee8e0 100%); border: 2px solid #fff; box-shadow: 0 5px 0 #efb4cc, 0 9px 16px rgba(0, 0, 0, 0.2); overflow: visible; }
.offer.rose { background: linear-gradient(#ffd9ea, #ffa9d0); }
.offer .rainbow { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; pointer-events: none; }
.offer .rainbow::before { content: ''; position: absolute; right: -60px; bottom: -30px; width: 330px; height: 70px; transform: rotate(-12deg); background: linear-gradient(#ff8fb1, #ffd36b, #9be89a, #7fd0ff, #c3a6ff); opacity: 0.45; border-radius: 40px; }
.timer { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 4px; font-size: 19px; color: #fff7c2; -webkit-text-stroke: 5px #8a4b00; paint-order: stroke fill; z-index: 2; }
.items { position: relative; background: rgba(253, 231, 228, 0.92); border-radius: 18px; padding: 10px 4px 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.12), 0 2px 0 #fff; text-align: center; }
.items.one { grid-template-columns: 1fr; }
.it { display: flex; flex-direction: column; align-items: center; }
.it img, .it svg { width: 64px; height: 64px; }
.it b { color: var(--blue); font-size: 22px; font-style: italic; text-shadow: 0 2px 0 #fff; line-height: 1.1; }
.ofoot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; gap: 8px; }
.ribbon { display: inline-flex; align-items: center; gap: 4px; margin-left: -24px; background: linear-gradient(#ff6fb2, #e2287f); color: #fff; padding: 3px 26px 3px 16px; font-size: 16px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); text-shadow: 0 2px 0 #a3125e; }
.otitle { font-size: 26px; line-height: 1.05; color: #ff3d9a; -webkit-text-stroke: 6px #fff; paint-order: stroke fill; filter: drop-shadow(0 2px 0 #c22a7f); margin-top: 2px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pack { position: relative; background: linear-gradient(#fff4bf, #ffe79c); border-radius: 22px; padding: 14px 6px 12px; text-align: center; border: 2px solid #fff; box-shadow: 0 5px 0 #e8cf7c, 0 8px 12px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pack svg { width: 70px; height: 62px; }
.pack b { color: var(--blue); font-size: 22px; font-style: italic; }
.pack .btn { width: 100%; font-size: 16px; padding: 6px 2px; }
.pack .tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 11px; white-space: nowrap; color: #fff; background: var(--pink); padding: 1px 8px; border-radius: 10px; border: 1.5px solid #fff; }
.morebtn { width: 88%; margin: 24px auto 4px; display: flex; font-size: 22px; }
.note { font-size: 12.5px; color: #3a2470; text-align: center; margin: 10px auto 0; line-height: 1.4; }

/* Einstellungen */
.set { display: flex; flex-direction: column; gap: 8px; }
.set .lab { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--blue); }
.set .lab small { font-size: 13px; color: var(--muted); font-weight: 500; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #f1e8fc; }
.seg button { flex: 1; min-height: 40px; border-radius: 13px; font-size: 13.5px; color: #6d4fa8; line-height: 1.1; padding: 2px 4px; }
.seg button.on { background: linear-gradient(#ff7cbd, #e2287f); color: #fff; box-shadow: 0 3px 0 #a3125e; }
.switch { position: relative; width: 58px; height: 34px; border-radius: 20px; background: #d6cce3; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); flex: none; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); transition: left 0.2s; }
.switch.on { background: linear-gradient(#5fd847, #2c9d1f); }
.switch.on::after { left: 27px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #ff7cbd var(--v, 50%), #e6daf5 var(--v, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 6px; background: #e6daf5; }
input[type=range]::-moz-range-progress { height: 10px; border-radius: 6px; background: #ff7cbd; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); }
input[type=range]:disabled { opacity: 0.4; }

/* ---------- Dialog ---------- */
#modal { position: absolute; inset: 0; z-index: 80; display: flex; overflow-y: auto; padding: 34px 20px 20px; background: rgba(40, 20, 70, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#modal.open { opacity: 1; pointer-events: auto; }
.dlg { position: relative; margin: auto; width: min(92vw, 380px); border-radius: 28px; background: linear-gradient(#fff9fc, #f3e6ff); border: 3px solid #fff; box-shadow: 0 8px 0 #c7a6ee, 0 16px 40px rgba(0, 0, 0, 0.4); padding: 34px 20px 22px; text-align: center; color: var(--blue); transform: scale(0.85); transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1); }
#modal.open .dlg { transform: none; }
.dlg .ttl { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 24px; border-radius: 20px; font-size: 22px; color: #fff; background: linear-gradient(#ff7cbd, #e2287f); border: 3px solid #fff; box-shadow: 0 4px 0 #a3125e; text-shadow: 0 2px 0 #a3125e; }
.dlg .x { position: absolute; top: -12px; right: -10px; }
.dlg img.big { width: 120px; height: 120px; margin: -6px auto 2px; display: block; }
.dlg p { margin: 8px 0 16px; font-size: 15.5px; line-height: 1.4; color: var(--ink); }
.dlg .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dlg .big-num { font-size: 40px; color: #fff; -webkit-text-stroke: 7px #b06a00; paint-order: stroke fill; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- Toast ---------- */
#toast { position: absolute; left: 50%; top: calc(64px + var(--safe-t)); z-index: 90; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; width: max-content; max-width: min(92vw, 440px); display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 20px; background: rgba(44, 26, 94, 0.94); color: #fff; font-size: 15px; line-height: 1.3; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
#toast.open { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast.err { background: rgba(170, 30, 60, 0.95); }
#toast.good { background: rgba(31, 122, 20, 0.95); }
#toast .btn { flex: none; }

/* ---------- Lade- und Startbildschirm ---------- */
#loader { position: absolute; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 18px; padding: 24px; text-align: center; overflow-y: auto;
  background: radial-gradient(ellipse at 50% 30%, #fff6c7 0%, #ffd6e8 35%, #c9a4f4 75%, #9b7be0 100%); transition: opacity 0.5s; }
#loader.done { opacity: 0; pointer-events: none; }
.logo { font-size: clamp(46px, 14vw, 78px); line-height: 1; letter-spacing: -1px; color: #fff; -webkit-text-stroke: 10px #d81b72; paint-order: stroke fill; text-shadow: 0 6px 0 #a3125e, 0 12px 24px rgba(120, 20, 80, 0.35); }
.logo span { color: #ffe066; }
.sub { font-size: 17px; color: #5a2a8a; margin-top: -8px; }
.bloom { width: 150px; height: 150px; animation: spin 14s linear infinite; filter: drop-shadow(0 8px 10px rgba(120, 30, 90, 0.3)); }
@keyframes spin { to { transform: rotate(360deg); } }
.lbar { width: min(70vw, 280px); height: 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); overflow: hidden; border: 2px solid #fff; }
.lbar i { display: block; height: 100%; width: 0; background: linear-gradient(#a6f08a, #3fbe2c); transition: width 0.3s; }
#loader .msg { font-size: 14px; color: #5a2a8a; min-height: 20px; max-width: 360px; line-height: 1.4; }
#loader .err { color: #b3123a; font-size: 15px; background: rgba(255, 255, 255, 0.85); padding: 12px 14px; border-radius: 16px; }

@media (min-width: 700px) {
  :root { --nav-h: 80px; }
  .seeds { flex-wrap: wrap; justify-content: center; overflow-x: visible; }
  #nav { left: 50%; right: auto; transform: translateX(-50%); width: min(620px, 96vw); bottom: 12px; border-radius: 26px; padding-bottom: 6px; }
  .panel { bottom: 0; }
  .pbody { padding-bottom: calc(var(--nav-h) + 40px); }
  .sheet { padding-bottom: calc(var(--nav-h) + 24px); }
  .sheet .inner { max-height: calc(100dvh - var(--nav-h) - 24px - var(--safe-b) - 10px); }
}
@media (max-width: 380px) {
  .lvl small { font-size: 9.5px; }
  .coins { font-size: 16px; }
  #hud { gap: 5px; padding-left: calc(8px + var(--safe-l)); padding-right: calc(8px + var(--safe-r)); }
  .round { width: 40px; height: 40px; }
  .coins .plus { width: 26px; height: 26px; font-size: 20px; }
  .coins .coin { width: 28px; height: 28px; }
}
@media (max-width: 360px) {
  .lvl { min-width: 88px; padding-right: 8px; }
  .timepill span { display: none; }
  .pill { font-size: 16px; }
  #nav button { font-size: 11px; }
  #nav button svg { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Querformat auf dem Handy (wenig Höhe) */
@media (max-height: 520px) {
  #loader { gap: 8px; padding: 12px; }
  .bloom { width: 80px; height: 80px; }
  .logo { font-size: 44px; }
  .sub { margin-top: -4px; }
  .seed { width: 112px; padding: 6px 4px 8px; }
  .seed img { width: 54px; height: 54px; }
  .sheet h3 { margin-bottom: 4px; font-size: 17px; }
  .dlg { padding-top: 30px; }
  .dlg img.big, .bigstar.huge { width: 80px; height: 80px; }
  #hint { display: none; }
  #side { top: calc(58px + var(--safe-t)); flex-direction: row; right: auto; left: calc(10px + var(--safe-l)); top: auto; bottom: calc(var(--nav-h) + 12px + var(--safe-b)); }
}

/* =================== Version 3 =================== */
/* Menü mit 6 Punkten */
#nav button span { white-space: nowrap; }
@media (max-width: 430px) { #nav button { font-size: 10.5px; } #nav button svg { width: 38px; height: 38px; } }
@media (max-width: 350px) { #nav button { font-size: 9.5px; } #nav button svg { width: 34px; height: 34px; } }
@media (min-width: 700px) { #nav { width: min(700px, 96vw); } }
#nav button .badge { right: 6%; }

/* Story-Anzeige oben links */
.qtrack { position: absolute; z-index: 14; left: calc(10px + var(--safe-l)); top: calc(62px + var(--safe-t)); max-width: min(64vw, 330px); display: flex; align-items: center; gap: 6px; padding: 4px 12px 6px 4px; border-radius: 20px; text-align: left;
  background: linear-gradient(#fffaf2, #ffeccf); border: 2px solid #fff; box-shadow: 0 3px 0 #e8c58a, 0 6px 12px rgba(0, 0, 0, 0.22); color: var(--blue); }
.qtrack img { width: 46px; height: 46px; flex: none; margin: -2px 0; }
.qtrack .qt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.qtrack small { font-size: 10.5px; color: #a0661a; line-height: 1.1; }
.qtrack b { font-size: 12.5px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qbar { height: 6px; border-radius: 4px; background: #f3dfbf; overflow: hidden; margin-top: 2px; }
.qbar i { display: block; height: 100%; background: linear-gradient(#ffe26b, #ffb21f); border-radius: 4px; }
.qtrack.done { background: linear-gradient(#f2ffe6, #c9f5ad); box-shadow: 0 3px 0 #7bc95c, 0 0 0 3px rgba(255, 255, 255, 0.6), 0 6px 14px rgba(40, 140, 20, 0.35); animation: pulse 1.6s ease-in-out infinite; }
.qtrack.done small { color: #2f7d1f; }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* Platzier-Modus */
#modeBar { position: absolute; z-index: 35; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 14px + var(--safe-b)); width: min(94vw, 480px); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.97); border: 2px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); font-size: 14px; line-height: 1.3; color: var(--ink); }
#modeBar span { flex: 1; }
.bub.mode .b { background: linear-gradient(#e9f6ff, #c5e6ff); border-color: #fff; color: #1d5fb8; padding: 3px 10px 3px 4px; animation: bob 1.2s ease-in-out infinite; }
.bub.mode .b::after { border-top-color: #c5e6ff; }
.bub.mode svg { width: 28px; height: 28px; }
.bub.gh .b { background: linear-gradient(#fff, #f0e4ff); color: #6a3fb5; padding: 3px 10px 3px 4px; }
.bub.gh svg { width: 26px; height: 26px; }
.bub.gh.alert .b { background: linear-gradient(#fff6c8, #ffd970); color: #6b3a00; animation: bob 1.2s ease-in-out infinite; }
.bub.gh.alert .b::after { border-top-color: #ffd970; }

/* Saat-Leiste & Pflege */
.seed .price.poor { background: linear-gradient(#ff8d8d, #d62c2c); border-color: #9e1b1b; }
.seed .tier, .tile .tier { margin-bottom: 2px; }
.tier { display: inline-block; font-size: 10px; line-height: 1.5; color: #fff; padding: 0 7px; border-radius: 8px; font-weight: 700; vertical-align: middle; letter-spacing: 0.2px; }
.tier.t0 { background: var(--pink); }
.tier.t1 { background: linear-gradient(#5fc8ff, #2a8fd8); }
.tier.t2 { background: linear-gradient(#c08cff, #7a42d6); }
.tier.t3 { background: linear-gradient(#ffd54a, #e0900a); color: #5a3000; }
.wknd { margin: -2px 16px 8px; padding: 6px 10px; border-radius: 12px; background: linear-gradient(90deg, #fff6c8, #ffe3f2); color: #8a4b00; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 16px 0; }
.tools .tlab { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-bottom: -4px; }
.tool { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border-radius: 16px; background: #fff; border: 2px solid #e6d9f7; box-shadow: 0 3px 0 #d8c7ee; color: var(--blue); min-height: 54px; font-weight: 500; }
.tool > svg { width: 30px; height: 30px; flex: none; }
.tool b { display: block; font-size: 13.5px; line-height: 1.15; }
.tool small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.tool small .coin { width: 14px; height: 14px; }
.tool.on { background: linear-gradient(#f0fbe9, #dff6d2); border-color: #bfe7a8; box-shadow: none; }
.tool.off { opacity: 0.6; box-shadow: none; }
button.tool:active { transform: translateY(2px); box-shadow: 0 1px 0 #d8c7ee; }
.care h3 { justify-content: flex-start; gap: 8px; }
.care h3 .x { margin-left: auto; }
.carehead { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 8px 10px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #e6d6f6; }
.carehead img { width: 64px; height: 64px; flex: none; }
.carehead .grow { flex: 1; min-width: 0; }
.carehead b { font-size: 17px; color: var(--blue); }
.carehead small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 4px; }
.itemrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 16px; }
.itembtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px 8px; border-radius: 18px; background: linear-gradient(#fffef6, #ffeec4); border: 2px solid #fff; box-shadow: 0 4px 0 #e8cf7c, 0 6px 10px rgba(0, 0, 0, 0.12); color: var(--blue); }
.itembtn svg { width: 46px; height: 46px; }
.itembtn b { font-size: 12.5px; line-height: 1.15; }
.itembtn small { font-size: 11.5px; color: #2f7d1f; font-weight: 700; display: flex; align-items: center; gap: 2px; }
.itembtn small .coin { width: 14px; height: 14px; }
.itembtn.buy small { color: #8a4b00; }
.itembtn .cnt { position: absolute; top: -6px; right: -4px; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--green); color: #fff; font-size: 12.5px; display: grid; place-items: center; border: 2px solid #fff; font-weight: 700; }
.itembtn[disabled] { filter: grayscale(0.8); opacity: 0.55; box-shadow: 0 2px 0 #ddd; }
.itembtn[disabled] small { color: var(--muted); }
.itembtn:active:not([disabled]) { transform: translateY(2px); }

/* Chips für Belohnungen */
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; justify-content: inherit; }
.dlg .chips { justify-content: center; margin: 4px 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 4px; border-radius: 12px; background: #fff6dc; border: 1.5px solid #f1d996; font-size: 12.5px; color: #7a4a00; line-height: 1.5; }
.chip svg, .chip img, .chip .coin { width: 20px; height: 20px; }
.chip.xp { background: #efe6ff; border-color: #cdb6f5; color: #5b31b8; padding-left: 9px; }
.dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 4px; border-radius: 9px; background: #e02d2d; color: #fff; font-size: 11px; font-style: normal; vertical-align: 1px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btnrow.center { justify-content: center; }
.btn .save { font-style: normal; font-size: 11px; background: #fff; color: #1856a8; border-radius: 8px; padding: 0 5px; text-shadow: none; }

/* Aufgaben & Story */
.chhead { text-align: center; margin: 2px auto 10px; }
.chhead small { display: block; color: #fff; font-size: 13px; text-shadow: 0 1px 2px rgba(60, 20, 120, 0.6); }
.chhead b { font-size: 26px; line-height: 1.1; color: #fff; -webkit-text-stroke: 6px #6a3fb5; paint-order: stroke fill; }
.owlcard, .owlsay { display: flex; align-items: flex-end; gap: 8px; }
.owlcard img, .owlsay img { width: 78px; height: 78px; flex: none; }
.speech { position: relative; flex: 1; background: #fff8e8; border: 2px solid #f1d996; border-radius: 18px; padding: 10px 12px; font-size: 14px; line-height: 1.4; color: var(--ink); text-align: left; }
.speech::before { content: ''; position: absolute; left: -10px; bottom: 16px; border: 8px solid transparent; border-right-color: #f1d996; border-left: 0; }
.dlg.owl .owlsay { margin: 6px 0 10px; }
.dlg .dhead { margin: 0 0 6px; font-size: 21px; color: var(--pink-d); line-height: 1.2; }
.dlg .ttl { max-width: calc(100% - 40px); overflow: hidden; text-overflow: ellipsis; }
.quest-list { display: flex; flex-direction: column; }
.card.quest { display: flex; gap: 10px; align-items: flex-start; }
.card.quest.cur { flex-direction: column; align-items: stretch; box-shadow: 0 4px 0 #f0b94a, 0 0 0 3px #ffd970, 0 8px 14px rgba(0, 0, 0, 0.15); }
.card.quest.done { opacity: 0.7; background: #f5fff0; }
.card.quest.done h4 { text-decoration: line-through; text-decoration-color: rgba(47, 125, 31, 0.5); font-size: 14.5px; }
.card.quest.next { opacity: 0.75; }
.qi { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; color: #fff; background: linear-gradient(#c3a6ff, #8b5fd6); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.quest.done .qi { background: linear-gradient(#8cec6c, #2c9d1f); }
.quest.cur .qi { background: linear-gradient(#ffe48a, #f0a810); color: #6b3a00; }
.card .cnt { font-size: 14px; color: var(--blue); white-space: nowrap; }
.card .prog.grow { margin-top: 0; }
.chlist { display: flex; flex-direction: column; gap: 6px; }
.chrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); color: #6d5a96; font-size: 14px; }
.chrow span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 13px; flex: none; }
.chrow.done { background: rgba(240, 255, 232, 0.9); color: #2f7d1f; }
.chrow.cur { background: #fff; color: var(--blue); box-shadow: 0 3px 0 #d8c7ee; }
.lvcard { display: flex; align-items: center; gap: 12px; }
.lvcard .grow { flex: 1; }
.lvrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 8px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #d8c7ee; color: var(--blue); }
.lvrow b { font-size: 15px; }
.lvrow.done { opacity: 0.6; background: #f5fff0; box-shadow: none; }
.lvrow.next { box-shadow: 0 3px 0 #f0b94a, 0 0 0 3px #ffd970; }
.lvn { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#ffe48a, #f0a810); color: #6b3a00; font-size: 15px; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.lvrow.done .lvn { background: linear-gradient(#8cec6c, #2c9d1f); color: #fff; }
.lvrow ul, ul.unl { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.lvrow li, ul.unl li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.lvrow li img, .lvrow li svg { width: 28px; height: 28px; flex: none; }
ul.unl { margin: 4px auto 14px; max-width: 280px; text-align: left; gap: 6px; }
ul.unl li { font-size: 14.5px; }
ul.unl li img, ul.unl li svg { width: 40px; height: 40px; flex: none; }

/* Events */
.evbanner { position: relative; margin: 2px auto 8px; padding: 14px 14px 12px; border-radius: 24px; color: #fff; background: var(--ev); background: linear-gradient(135deg, var(--ev), color-mix(in srgb, var(--ev) 55%, #6a1f00)); border: 3px solid #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18), 0 10px 18px rgba(0, 0, 0, 0.2); overflow: hidden; }
.evbanner::after { content: ''; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.evtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.evtop b { font-size: 26px; -webkit-text-stroke: 5px rgba(90, 30, 0, 0.55); paint-order: stroke fill; }
.evtop span { font-size: 13px; background: rgba(255, 255, 255, 0.25); padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.evbanner p { margin: 4px 0 10px; font-size: 13.5px; line-height: 1.35; }
.evtok { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.92); color: var(--blue); border-radius: 16px; padding: 6px 12px; margin-bottom: 8px; }
.evtok div { display: flex; flex-direction: column; line-height: 1.1; }
.evtok b { font-size: 24px; }
.evtok small { font-size: 11px; color: var(--muted); }
.evbanner .prog { background: rgba(255, 255, 255, 0.35); }
.evbanner .prog i { background: linear-gradient(#fff7c2, #ffd23f); }
.evbanner > small { display: block; margin-top: 4px; font-size: 12px; }
.card.ms { gap: 10px; }
.msat { flex: none; display: flex; flex-direction: column; align-items: center; width: 48px; color: var(--blue); }
.msat b { font-size: 15px; }
.card.ms.ready { box-shadow: 0 4px 0 #f0b94a, 0 0 0 3px #ffd970, 0 8px 14px rgba(0, 0, 0, 0.15); }
.card.ms.done { opacity: 0.6; }
.card.glow { box-shadow: 0 4px 0 #f0b94a, 0 0 0 3px #ffe58a, 0 8px 16px rgba(255, 170, 0, 0.35); }
.evdot { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 3px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); }
.tile .btn { margin-top: auto; }
.tile > svg { width: 64px; height: 64px; }

/* Gewächshaus */
.ghcard { text-align: center; }
.ghcard img { width: 150px; height: 150px; margin: -6px auto 0; display: block; }
.ghcard p { margin-bottom: 14px; }
.jobcard { display: flex; align-items: center; gap: 12px; }
.jobcard img { width: 90px; height: 90px; flex: none; }
.jobcard img.growing { animation: bob 1.6s ease-in-out infinite; filter: saturate(0.6) brightness(1.05); }
.jobcard .grow { flex: 1; min-width: 0; }
.jobcard small { color: var(--muted); }
.recipe { padding: 10px 10px 10px; }
.recipe.bred { background: #f5fff0; }
.rline { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.par { display: flex; flex-direction: column; align-items: center; width: 25%; text-align: center; }
.par img { width: 58px; height: 58px; }
.par small { font-size: 11px; line-height: 1.15; color: var(--blue); font-weight: 700; hyphens: manual; -webkit-hyphens: manual; }
.par.miss img { filter: grayscale(1) opacity(0.45); }
.par.res img { width: 66px; height: 66px; filter: drop-shadow(0 0 6px rgba(255, 210, 60, 0.8)); }
.par.res.unknown img { filter: brightness(0) opacity(0.3); }
.plus, .arrow { font-size: 20px; color: #b49ad9; font-weight: 700; }
.rfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rfoot .meta { display: inline-flex; align-items: center; gap: 4px; }
.rfoot .why { flex-basis: 100%; color: #b3123a; }
.rfoot .hint { flex-basis: 100%; font-style: italic; }
.rfoot .btn, .rfoot .okbadge { margin-left: auto; }
.okbadge { color: #2f7d1f; font-weight: 700; font-size: 14px; }

/* Shop: Bedarf */
.itemcard .have { font-size: 12px; font-weight: 500; color: #fff; background: var(--purple-d); border-radius: 10px; padding: 1px 8px; vertical-align: 2px; white-space: nowrap; }
.itemcard .btnrow { justify-content: flex-end; }

/* Fliegende Event-Blätter */
.fly .tok { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font-size: 19px; -webkit-text-stroke: 4px #7a2e05; }

/* Startbildschirm: Anmelden */
#authBox { width: min(94vw, 400px); }
.authcard { background: rgba(255, 255, 255, 0.92); border-radius: 26px; border: 3px solid #fff; box-shadow: 0 8px 0 rgba(139, 95, 214, 0.45), 0 16px 30px rgba(60, 20, 100, 0.3); padding: 12px 16px 16px; text-align: left; color: var(--blue); }
.authcard .tabs { background: #f1e8fc; margin-bottom: 10px; }
.authcard form { display: flex; flex-direction: column; gap: 10px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--blue); text-align: left; }
.fld small { color: var(--muted); font-weight: 500; }
.fld input, .dlg input[type=password] { width: 100%; height: 48px; padding: 0 14px; border-radius: 14px; border: 2px solid #dccbf3; background: #fff; font: inherit; font-size: 16px; color: var(--ink); user-select: text; -webkit-user-select: text; outline: none; box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.06); }
.fld input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 160, 0.2); }
.pw { position: relative; display: block; }
.pw input { padding-right: 50px; }
.eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #9a86c2; }
.eye.on { color: var(--pink-d); }
.eye svg { width: 22px; height: 22px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--pink); }
.link { color: var(--pink-d); text-decoration: underline; font-weight: 700; font-size: inherit; }
.link.small { font-size: 13px; align-self: center; }
.ferr { margin: 0; min-height: 0; font-size: 13.5px; color: #b3123a; line-height: 1.35; }
.ferr:empty { display: none; }
.authwarn { background: #fff4d6; border: 2px solid #f1d996; color: #7a4a00; border-radius: 14px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 10px; line-height: 1.35; }
.authcard .offline { margin-top: 12px; padding-top: 12px; border-top: 2px dashed #e6d9f7; text-align: center; }
.authcard .offline p { font-size: 13px; color: var(--muted); margin: 0 0 8px; line-height: 1.35; }
.privacy .legal { max-height: 46vh; overflow-y: auto; }
.legal p { font-size: 13.5px; line-height: 1.4; margin: 0 0 10px; color: var(--ink); text-align: left; }
.dlg .legal { max-height: 52vh; overflow-y: auto; margin-bottom: 12px; }
.userline { font-size: 14px; color: #5a2a8a; }
.userline .link { font-size: 14px; }
.sync { display: flex; align-items: center; gap: 6px; }
.dlg .fld { margin: 0 0 6px; }
.dlg .ferr { margin: 0 0 10px; }

@media (max-height: 520px) {
  .qtrack { top: calc(56px + var(--safe-t)); max-width: 46vw; }
  .qtrack img { width: 36px; height: 36px; }
  #modeBar { bottom: calc(var(--nav-h) + 8px + var(--safe-b)); }
  #authBox { width: min(94vw, 520px); }
  :root { --nav-h: 58px; }
  #nav { padding-top: 3px; padding-bottom: calc(3px + var(--safe-b)); }
  #nav button { font-size: 10px; gap: 0; }
  #nav button svg { width: 30px; height: 30px; }
  #nav button.on svg { transform: translateY(-1px) scale(1.05); }
}

/* =================== Gestalten =================== */
#editBar { position: absolute; z-index: 35; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 10px + var(--safe-b)); width: min(96vw, 560px); padding: 8px 10px 10px; border-radius: 22px; background: rgba(255, 255, 255, 0.97); border: 2px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); color: var(--ink); }
.eb-msg { display: flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.3; margin-bottom: 8px; }
.eb-msg b { color: var(--blue); }
.eb-btns { display: flex; gap: 6px; align-items: stretch; }
.ebtn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 4px 2px; border-radius: 14px; background: linear-gradient(#fffaf2, #f3e8ff); border: 2px solid #e6d9f7; box-shadow: 0 3px 0 #d8c7ee; color: var(--blue); font-size: 11.5px; line-height: 1.1; }
.ebtn svg { width: 26px; height: 26px; }
.ebtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #d8c7ee; }
.eb-btns .btn { flex: none; align-self: center; }
.tile { position: relative; }
.tile .owned { position: absolute; top: 6px; right: 6px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--purple-d); border-radius: 10px; padding: 0 7px; border: 1.5px solid #fff; }
.storelist { display: flex; flex-direction: column; gap: 8px; margin: 0 16px; }
.sitem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 #e6d6f6; color: var(--blue); }
.sitem img { width: 54px; height: 54px; flex: none; }
.sitem .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sitem small { color: var(--muted); font-size: 12px; }
.sitem b { font-size: 15px; line-height: 1.2; }
.sbtns { display: flex; flex-direction: column; gap: 6px; flex: none; }
.sbtns .btn { min-height: 32px; font-size: 13.5px; padding: 3px 10px; }
.inner .empty { margin: 4px 16px 10px; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 380px) { .ebtn { font-size: 10.5px; } .ebtn svg { width: 22px; height: 22px; } }
@media (max-height: 520px) { #editBar { bottom: calc(var(--nav-h) + 6px + var(--safe-b)); padding: 6px 8px; } .eb-msg { margin-bottom: 4px; } .ebtn { min-height: 44px; } }

/* ---------- v3.2: Gießen, Zucht-Schwierigkeit ---------- */
.bub.thirsty .b { background: linear-gradient(#e6f5ff, #a9dbff); color: #0f4f9e; border-color: #fff; padding: 3px 10px 3px 4px; font-weight: 800; animation: thirst 1.4s ease-in-out infinite; }
.bub.thirsty .b::after { border-top-color: #a9dbff; }
.bub.thirsty svg { width: 24px; height: 24px; }
@keyframes thirst { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-3px) rotate(-4deg); } 75% { transform: translateY(-3px) rotate(4deg); } }
#harvestAll.blue { background: linear-gradient(#7cc8ff, #2f8fe8); box-shadow: 0 4px 0 #1d63b0, 0 6px 16px rgba(0, 60, 140, 0.35); color: #fff; }
.seed .meta .wneed { display: inline-flex; align-items: center; gap: 1px; color: #1d6fd1; font-weight: 800; }
.seed .meta .wneed svg { width: 14px; height: 14px; }
.par { position: relative; }
.par .cnt { position: absolute; top: 0; right: 4px; font-style: normal; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 8px; background: #ffe1e8; color: #b3123a; border: 1.5px solid #fff; }
.par .cnt.ok { background: #dff7d2; color: #2c7d1a; }
.diff { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 10px; color: #fff; letter-spacing: 0.5px; }
.diff b { letter-spacing: 0; }
.diff.d1 { background: linear-gradient(#7bdb5a, #3fa52b); }
.diff.d2 { background: linear-gradient(#6cc4ff, #2f86e0); }
.diff.d3 { background: linear-gradient(#ffb44d, #f07a12); }
.diff.d4 { background: linear-gradient(#c58cff, #8048d8); }
.diff.d5 { background: linear-gradient(90deg, #ff5ea8, #ffb02e, #ffe14d); color: #5a2a00; box-shadow: 0 0 8px rgba(255, 176, 46, 0.6); }
.chance { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 10px; background: #eef4fb; }
.chance small { font-weight: 600; color: var(--muted); }
.chance.sure { color: #2c7d1a; background: #e5f8dc; }
.chance.ok { color: #1d6fd1; }
.chance.low { color: #c2410c; background: #fff0e3; }
.card.helpers { padding: 10px 12px; }
.card.helpers .hrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card.helpers .small { font-size: 12px; color: var(--muted); }
.card.helpers .chips { margin-top: 8px; justify-content: flex-start; }
.card.helpers .chip img { width: 20px; height: 20px; }
.card.helpers .tip { font-size: 12px; color: var(--muted); }
.dlg img.big.fail { filter: grayscale(0.85) opacity(0.75); animation: none; }
.dlg p.small { font-size: 13px; color: var(--muted); }

/* ---------- v3.3: Detailansicht in der Sammlung ---------- */
.tile.tap { cursor: pointer; transition: transform 0.12s; -webkit-tap-highlight-color: transparent; }
.tile.tap:active { transform: scale(0.95); }
.tile.tap:focus-visible, .icbtn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.icbtn { position: relative; flex: none; padding: 0; border-radius: 16px; background: none; cursor: pointer; }
.icbtn i { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); color: var(--purple-d); }
.hintline { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 10px 16px 0; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(80, 30, 120, 0.5); }
.dlg.detail { width: min(94vw, 420px); padding-top: 30px; text-align: left; }
.dlg.detail .btns { margin-top: 14px; }
.turn { position: relative; width: min(64vw, 240px); aspect-ratio: 1; margin: 0 auto 6px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #ffffff 0%, #fdf3ff 45%, #ead8ff 72%, rgba(234, 216, 255, 0) 73%); }
.turn::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 9%; border-radius: 50%; background: radial-gradient(rgba(90, 40, 140, 0.22), rgba(90, 40, 140, 0)); z-index: 0; }
.turn canvas { position: relative; z-index: 1; width: 100%; height: 100%; touch-action: none; cursor: grab; display: block; }
.turn canvas:active { cursor: grabbing; }
.turn.unknown canvas { filter: brightness(0) opacity(0.28); }
.turnhint { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); font-size: 11.5px; font-weight: 700; color: var(--purple-d); white-space: nowrap; z-index: 2; transition: opacity 0.4s; pointer-events: none; }
.turn.used .turnhint { opacity: 0; }
.seg.small { margin: 10px 0 4px; }
.seg.small button { min-height: 32px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.seg.small button:disabled { opacity: 0.4; }
.dhead { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.dhead:empty { display: none; }
.lore { font-size: 14px; line-height: 1.45; margin: 8px 2px 10px; color: var(--ink); }
.dperk { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #2c7d1a; background: #e9f9e1; border-radius: 12px; padding: 6px 10px; margin: 0 0 10px; }
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.statgrid > div { background: #fff; border-radius: 14px; padding: 6px 4px; text-align: center; box-shadow: 0 2px 0 #e6d6f6; }
.statgrid small { display: block; font-size: 11px; color: var(--muted); }
.statgrid b { display: inline-flex; align-items: center; gap: 3px; font-size: 14px; }
.statgrid b .coin, .statgrid b svg { width: 16px; height: 16px; }
.dsec { margin: 14px 0 6px; font-size: 13px; font-weight: 800; color: var(--purple-d); text-transform: uppercase; letter-spacing: 0.6px; }
.dmine { display: flex; gap: 8px; flex-wrap: wrap; }
.dmine span { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 12px; padding: 4px 10px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 0 #e6d6f6; }
.dlg.detail p { font-size: 13.5px; line-height: 1.4; margin: 4px 0; }
.dline { display: flex; align-items: center; justify-content: center; gap: 4px; }
.dline .plus, .dline .arrow { font-weight: 800; color: var(--purple-d); }
.dmini { display: inline-flex; flex-direction: column; align-items: center; width: 76px; text-align: center; }
.dmini img { width: 50px; height: 50px; }
.dmini small { font-size: 11px; font-weight: 700; line-height: 1.15; }
.dmini.unknown img { filter: brightness(0) opacity(0.25); }
.duses { display: flex; flex-wrap: wrap; gap: 6px; }
.duse { background: #fff; border-radius: 14px; padding: 4px 2px; box-shadow: 0 2px 0 #e6d6f6; cursor: pointer; }
.tapimg { cursor: zoom-in; }
.tile small.perk { color: #2c7d1a; font-weight: 800; }

/* ---------- v3.3: Freunde, Chat, Besuche, Admin ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%), var(--a); color: #fff; font-weight: 800; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.15); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); }
.card.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.card.center p { max-width: 360px; }
.card.frme { display: flex; align-items: center; gap: 12px; }
.card.frme .grow, .frow .grow { flex: 1; min-width: 0; }
.card.frme small { color: var(--muted); font-size: 12px; }
.card.frme h4 { font-size: 20px; overflow-wrap: anywhere; }
.card.addf { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.card.addf .fld { flex: 1 1 180px; }
.card.addf .btn { flex: none; height: 48px; }
.card.warn { display: flex; align-items: center; gap: 10px; background: #fff3e6; }
.frow { display: flex; align-items: center; gap: 10px; }
.frow h4 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.card.frow .btn { flex: none; }
.odot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c9bfd8; }
.odot.on { background: #3fc28b; box-shadow: 0 0 0 3px rgba(63, 194, 139, 0.25); }
.card.friend .more { width: 38px; height: 38px; border-radius: 12px; font-size: 22px; line-height: 1; color: var(--purple-d); background: #f4ecfd; flex: none; }
.fbtns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.fbtns .btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding-left: 6px; padding-right: 6px; white-space: nowrap; font-size: 14px; }
.fbtns .btn::after, .chathead .btn::after, #visitBar .btn::after { height: 22%; top: 3px; }
.fbtns .dot, .sec .dot { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; background: #ff3b6b; color: #fff; font-size: 12px; font-style: normal; border: 2px solid #fff; }
.sec .dot { position: relative; top: -2px; right: 0; display: inline-grid; -webkit-text-stroke: 0; vertical-align: middle; }
.card.tips p { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.giftopts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.giftopt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #e6d6f6, 0 4px 10px rgba(0, 0, 0, 0.08); color: var(--blue); cursor: pointer; }
.giftopt:active { transform: scale(0.96); }
.giftopt b { font-size: 13.5px; }
.giftopt small { font-size: 11px; line-height: 1.2; color: var(--muted); }

/* Chat */
#panel.chatmode .pbody { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.chatwrap { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.chathead { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #d8c7ee; color: var(--blue); }
.chathead .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chathead small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.chathead .btn { flex: none; padding: 0 10px; }
.chatlist { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 2px 10px; display: flex; flex-direction: column; gap: 6px; -webkit-overflow-scrolling: touch; }
.chatempty { margin: auto; color: #fff; font-size: 15px; text-align: center; text-shadow: 0 1px 2px rgba(80, 30, 120, 0.5); }
.chatday { align-self: center; margin: 6px 0 2px; padding: 2px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.55); color: #5a3a8f; font-size: 11.5px; font-weight: 700; }
.msg { display: flex; align-items: flex-end; gap: 4px; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { position: relative; padding: 8px 12px 6px; border-radius: 18px 18px 18px 6px; background: #fff; color: var(--ink); font-size: 14.5px; line-height: 1.35; box-shadow: 0 2px 0 #d8c7ee; overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.msg.mine .bubble { border-radius: 18px 18px 6px 18px; background: linear-gradient(#ff8cc6, #f0559f); color: #fff; box-shadow: 0 2px 0 #b8306f; }
.msg time { display: block; text-align: right; font-size: 10.5px; opacity: 0.6; margin-top: 2px; }
.msg .rep { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #b9a5d8; background: rgba(255, 255, 255, 0.6); }
.msg .rep:hover { color: #e2287f; }
.msg.sys { align-self: center; max-width: 94%; }
.msg.sys span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.85); color: #5a3a8f; font-size: 12.5px; font-weight: 600; text-align: center; }
.chatbar { display: flex; gap: 8px; padding: 8px 0 calc(10px + var(--safe-b)); }
.chatbar input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 24px; border: 2px solid #dccbf3; background: #fff; font: inherit; font-size: 16px; color: var(--ink); outline: none; user-select: text; -webkit-user-select: text; }
.chatbar input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 79, 160, 0.2); }
.chatbar .send { width: 52px; height: 48px; padding: 0; border-radius: 24px; display: grid; place-items: center; }
.chatbar.banned { justify-content: center; color: #fff; font-weight: 700; }

/* Zu Besuch */
#visitBar { position: absolute; z-index: 18; left: calc(10px + var(--safe-l)); right: calc(10px + var(--safe-r)); bottom: calc(12px + var(--safe-b)); max-width: 520px; margin: 0 auto; padding: 8px 10px 10px; border-radius: 22px; background: linear-gradient(#fffaf6, #ffe9f3); border: 3px solid #fff; box-shadow: 0 4px 0 #e2a6c0, 0 8px 18px rgba(0, 0, 0, 0.25); color: var(--blue); }
#visitBar .vtop { display: flex; align-items: center; gap: 10px; }
#visitBar .vtop .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
#visitBar .vtop b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#visitBar small { font-size: 11.5px; color: var(--muted); }
#visitBar .home { flex: none; display: inline-flex; align-items: center; gap: 4px; }
#visitBar .vbtns { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
#visitBar .vbtns .btn { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; }
#visitBar .vwater { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #1d6fd1; }
body.visiting #side, body.visiting #quest, body.visiting #nav, body.visiting #harvestAll, body.visiting #hint, body.visiting #modeBar, body.visiting #editBar { display: none !important; }

/* Neuigkeiten & Admin */
.card.news { border-left: 6px solid var(--nc); }
.card.news .nhead { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.card.news .nkind { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: #fff; background: var(--nc); padding: 1px 8px; border-radius: 9px; }
.card.news time { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.card.news p { color: var(--ink); white-space: normal; }
.dlg.newsdlg { width: min(94vw, 420px); text-align: left; }
.dlg.newsdlg .card { box-shadow: 0 3px 0 #e6d6f6; }
.btnrow.right { justify-content: flex-end; margin: -6px 0 12px; }
.admincard .lab { display: flex; align-items: center; gap: 8px; }
.adminform { display: flex; flex-direction: column; gap: 10px; }
.adminform h4 { display: flex; align-items: center; gap: 8px; }
.adminform textarea { width: 100%; padding: 10px 14px; border-radius: 14px; border: 2px solid #dccbf3; background: #fff; font: inherit; font-size: 15px; color: var(--ink); resize: vertical; outline: none; user-select: text; -webkit-user-select: text; }
.adminform textarea:focus { border-color: var(--pink); }
.adminform .small:not(.btn), .card .small:not(.btn) { font-size: 12px; color: var(--muted); }
.seg.kinds label { flex: 1; position: relative; }
.seg.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.seg.kinds span { display: grid; place-items: center; min-height: 34px; border-radius: 12px; font-size: 12.5px; color: #6d4fa8; cursor: pointer; }
.seg.kinds input:checked + span { background: linear-gradient(#ff7cbd, #e2287f); color: #fff; box-shadow: 0 3px 0 #a3125e; }
.seg.kinds input:focus-visible + span { outline: 3px solid var(--pink); }
.card.report blockquote { margin: 6px 0 10px; padding: 8px 12px; border-left: 4px solid #ff6a6a; background: #fff3f3; border-radius: 8px; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.tile b.big { font-size: 30px; }

/* ---------- v3.4: Händler ---------- */
.card.trhead { display: flex; align-items: center; gap: 12px; background: linear-gradient(#fff8ee, #ffe7f1); }
.card.trhead img { width: 76px; height: 76px; flex: none; }
.card.trhead small { font-weight: 800; color: var(--pink-d); font-size: 13px; }
.card.trhead .say { margin-top: 2px; font-size: 14.5px; color: var(--ink); font-style: italic; }
.secsub { font-size: 13px; -webkit-text-stroke: 0; color: #fff; opacity: 0.85; margin-left: 6px; }
.trtag { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 800; color: #fff; background: #8b5fd6; letter-spacing: 0.3px; }
.trtag.gold { background: linear-gradient(#ffcf3a, #f0a810); color: #6b3a00; }
.trtag.pink { background: linear-gradient(#ff7cbd, #e2287f); }
.trtag.mini { font-size: 10px; padding: 0 6px; vertical-align: middle; }
.card.trday { background: linear-gradient(135deg, #f3e9ff, #fff); }
.card.trday p { margin-top: 4px; color: var(--ink); }
.card.trflower, .card.troffer, .card.trgift { display: flex; align-items: center; gap: 10px; }
.card.trflower img, .card.troffer img { width: 56px; height: 56px; flex: none; }
.card.trflower p, .card.troffer p { color: var(--ink); margin-top: 2px; }
.card.troffer .grow, .card.trgift .grow { flex: 1; min-width: 0; }
.card.order .otitle { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--purple-d); }
.card.order .otitle .okbadge { margin-left: auto; }
.card.order.special { background: linear-gradient(135deg, #fffbe6, #fff); box-shadow: 0 4px 0 #f0d070, 0 6px 12px rgba(0, 0, 0, 0.12); }
.card.order.done { opacity: 0.6; }
.wants { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.want { position: relative; display: flex; flex-direction: column; align-items: center; width: 74px; padding: 4px 2px; border-radius: 14px; background: #fff3f6; border: 2px solid #ffd0de; }
.want.ok { background: #effbe8; border-color: #b8e8a0; }
.want img { width: 44px; height: 44px; }
.want b { font-size: 13px; color: #b3123a; }
.want.ok b { color: #2c7d1a; }
.want small { font-size: 10.5px; line-height: 1.1; text-align: center; color: var(--muted); }
.ofoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ofoot .chips { margin: 0; justify-content: flex-start; }
.card.basket .blist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bitem { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 14px; background: #faf6ff; }
.bitem img { width: 40px; height: 40px; flex: none; }
.bitem .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bitem b { font-size: 14px; }
.bitem small { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.bitem .btn { flex: none; padding: 0 10px; }
.bitem .shy { position: absolute; left: 2px; top: -2px; font-style: normal; font-size: 13px; }
.card .small.center, p.small.center { text-align: center; }
.repstars { font-size: 22px; color: #ffb81c; letter-spacing: 1px; flex: none; text-shadow: 0 1px 0 #b87400; }
.card.rep .small { margin-top: 6px; }
.tile s, .btn s { opacity: 0.7; font-size: 0.85em; }
.codeform .row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 14px; border: 2px solid #dccbf3; font: inherit; font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); user-select: text; -webkit-user-select: text; outline: none; }
.codeform .row input:focus, .fbform textarea:focus { border-color: var(--pink); }
.fbform textarea { width: 100%; padding: 10px 14px; border-radius: 14px; border: 2px solid #dccbf3; font: inherit; font-size: 15px; color: var(--ink); resize: vertical; outline: none; user-select: text; -webkit-user-select: text; }
.iinputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.iin { display: flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 12px; background: #faf6ff; border: 2px solid #ece0fb; }
.iin input { width: 100%; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; text-align: center; user-select: text; -webkit-user-select: text; }
.adminform .fld input[type=number] { height: 44px; }
.grid3.stats .tile { padding: 8px 4px; }
.grid3.stats .tile b.big { font-size: 26px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 8px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; }
.bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#ff8cc6, #f0559f); }
.bar b { font-size: 12px; }
.bar small { font-size: 10.5px; color: var(--muted); }
h4.code { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1.5px; }
.card.fb .nhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.card.fb .nhead small { color: var(--muted); font-size: 12px; }
.card.fb .nkind { font-size: 11px; font-weight: 800; color: #fff; padding: 1px 8px; border-radius: 9px; }
.fbtext { color: var(--ink) !important; font-size: 14px !important; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
#maint { position: absolute; z-index: 19; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%); max-width: min(94vw, 480px); display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 16px; background: #fff3c4; border: 2px solid #ffd76a; color: #6b3a00; font-size: 13px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
body.visiting #maint { display: none; }
.card.boost { background: linear-gradient(135deg, #fff6d6, #fff); border-color: #ffe08a; }
.fhint { font-size: 13px; color: var(--muted); margin: 0; }
.dlg.legaldlg { width: min(94vw, 460px); text-align: left; }
.dlg.legaldlg .legal { max-height: 60vh; overflow-y: auto; font-size: 13.5px; line-height: 1.45; user-select: text; -webkit-user-select: text; }
.dlg.renamedlg { text-align: left; }
.dlg .fld input { width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; border: 2px solid #dccbf3; font: inherit; font-size: 16px; color: var(--ink); user-select: text; -webkit-user-select: text; outline: none; }
.admtabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; margin-bottom: 8px; scrollbar-width: none; }
.admtabs::-webkit-scrollbar { display: none; }
.admtabs button { flex: none; padding: 0 14px; min-height: 36px; border-radius: 14px; background: rgba(255, 255, 255, 0.45); color: #5a3a8f; font-size: 13.5px; white-space: nowrap; }
.admtabs button.on { background: #fff; color: var(--pink-d); box-shadow: 0 3px 0 #d9c3f2; }
.card.player { display: flex; align-items: center; gap: 12px; }
.card.player .grow { flex: 1; min-width: 0; }
.card.player h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.btnrow.wrap { flex-wrap: wrap; }
.codebox { margin: 10px 0 6px; padding: 10px; border-radius: 14px; background: #fff6d6; border: 2px dashed #f0c050; text-align: center; }
.codebox .code { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: 4px; color: var(--ink); user-select: text; -webkit-user-select: text; }
.adminform .row input, .adminform select { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid #dccbf3; font: inherit; font-size: 15px; color: var(--ink); background: #fff; outline: none; user-select: text; -webkit-user-select: text; }
.boostrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 0; border-top: 1px solid #ece0fb; }
.boostrow b { flex: 1 1 160px; font-size: 14px; }
.boostrow small { color: var(--muted); font-size: 12px; flex-basis: 100%; }
.boostrow .bctl { display: inline-flex; align-items: center; gap: 4px; }
.boostrow input { width: 54px; height: 36px; border-radius: 10px; border: 2px solid #dccbf3; text-align: center; font: inherit; font-size: 14px; color: var(--ink); }
.chip .x-mini { margin-left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #ffd0de; color: #b3123a; font-size: 11px; line-height: 1; }
.logtab { width: 100%; border-collapse: collapse; font-size: 13px; }
.logtab td { padding: 5px 4px; border-bottom: 1px solid #ece0fb; vertical-align: top; overflow-wrap: anywhere; }
.logtab small { color: var(--muted); white-space: nowrap; }
/* v3.5: Benachrichtigungen */
#bellBtn { position: relative; }
#bellBtn .badge { position: absolute; top: -4px; right: -4px; }
.card.note { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; }
.card.note.new { background: linear-gradient(135deg, #fff6fb, #fff); border-color: #ffc2e0; }
.card.note img { width: 30px; height: 30px; flex: none; }
.card.note .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card.note b { font-size: 14px; }
.card.note small { font-size: 12px; color: var(--muted); }
.card.pushcard .btnrow { margin-top: 8px; }
.awaylist { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.awaylist div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 0 #e6d6f6; text-align: left; }
.awaylist img { width: 30px; height: 30px; }
.steps { padding-left: 20px; font-size: 13.5px; color: var(--ink); }
.steps li { margin: 4px 0; }
.codebox .code.small { font-size: 12px; letter-spacing: 0; overflow-wrap: anywhere; }
#bellBtn { background: radial-gradient(circle at 40% 35%, #ffe08a, #f0a810); }
@media (max-width: 440px) { #hud { gap: 5px; } .lvl { min-width: 78px; padding-right: 6px; } .pill { font-size: 16px; } .round { width: 40px; height: 40px; } .round svg { width: 25px; height: 25px; } }
.privacy .legal { font-size: 13px; line-height: 1.45; text-align: left; user-select: text; -webkit-user-select: text; white-space: normal; }
.dlg.surprise .spicon { font-size: 64px; line-height: 1; margin: 4px 0 8px; animation: bob 1.4s ease-in-out infinite; }
.seed.slow { background: linear-gradient(#fff, #fff4fa); }
.tier.tslow { background: linear-gradient(#b48cff, #7a4dff); }
/* Mini-Tutorial */
#tut { position: absolute; inset: 0; z-index: 70; pointer-events: none; }
#tut .tut-hole { position: absolute; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(30, 10, 60, 0.62), 0 0 0 4px #fff, 0 0 24px 6px rgba(255, 200, 240, 0.9); transition: all 0.25s; }
#tut.free .tut-hole { display: none; }
#tut.free::before { content: ''; position: absolute; inset: 0; background: rgba(30, 10, 60, 0.55); }
#tut .tut-card { position: absolute; left: 50%; transform: translateX(-50%); width: min(92vw, 420px); display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 10px; border-radius: 22px; background: linear-gradient(#fff9fc, #f3e6ff); border: 3px solid #fff; box-shadow: 0 6px 0 #c7a6ee, 0 14px 30px rgba(0, 0, 0, 0.4); color: var(--ink); pointer-events: auto; flex-wrap: wrap; transition: top 0.25s, bottom 0.25s; }
#tut .tut-owl { width: 54px; height: 54px; flex: none; }
#tut .tut-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; padding-top: 4px; }
#tut .tut-btns { width: 100%; display: flex; justify-content: flex-end; gap: 8px; }

.lvgift { margin: 6px 0 0; font-weight: 700; color: var(--pink, #e0407a); }
.lvgift .chips { display: inline-flex; margin-left: 4px; }
.tier.tev { background: #ffe9a8; color: #8a5a00; }
.seed.evseed { border-color: #ffd23f; }

/* Tauschbörse & Album */
.trintro { display: flex; gap: 10px; align-items: flex-start; }
.seedbag { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.seedchip { background: #fff; border-radius: 16px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 84px; box-shadow: 0 3px 0 #d8c7ee; color: var(--blue); }
.seedchip small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.15; }
.tradeform .trrow { display: flex; gap: 8px; }
.tradeform .fld { flex: 1; } .tradeform .fld.num { flex: 0 0 84px; }
.tradeform select, .tradeform input[type=number] { width: 100%; }
.tradeform .chk { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 600; }
.card.trade .trline { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card.trade .trside { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 14px; }
.card.trade .arrow { font-size: 22px; color: var(--pink); }
.card.trade .trmeta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.card.trade.mine { border: 2px solid #ffd23f; }
.seg.small { display: inline-flex; margin-left: 8px; vertical-align: middle; }
.seg.small button { padding: 3px 10px; font-size: 13px; }
.tradecard { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.tradecard .chev { font-size: 26px; color: var(--muted); }
.ftitle { font-size: 12px; background: #ffe9a8; color: #8a5a00; border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: middle; font-weight: 700; }
.titles { display: flex; flex-wrap: wrap; gap: 6px; }
.titles .tag { border: 2px solid #e6dcff; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; }
.titles .tag.on { background: #ffe9a8; border-color: #ffd23f; color: #8a5a00; }
.card.ach { display: flex; gap: 12px; align-items: flex-start; }
.card.ach.done { background: #f1fbe9; }
.card.ach .prog { margin: 6px 0 2px; }
.card.ach small { color: var(--muted); }
.achbig { display: flex; justify-content: center; margin: 6px 0; }

/* Funkelblüten im Sammelbuch glitzern */
.shinywrap { position: relative; display: inline-block; }
.shinywrap.on::before, .shinywrap.on::after { content: '✦'; position: absolute; color: #ffd23f; text-shadow: 0 0 6px #fff3b0; font-size: 14px; animation: twinkle 1.8s ease-in-out infinite; pointer-events: none; }
.shinywrap.on::before { top: 4px; left: 2px; }
.shinywrap.on::after { bottom: 8px; right: 0; animation-delay: 0.9s; font-size: 11px; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
.tile.unknown .shinywrap::before, .tile.unknown .shinywrap::after { display: none; }

#tropicBar { position: absolute; z-index: 18; left: calc(10px + var(--safe-l)); right: calc(10px + var(--safe-r)); bottom: calc(var(--nav-h) + 18px + var(--safe-b)); max-width: 520px; margin: 0 auto; background: rgba(47, 143, 74, 0.92); color: #fff; border-radius: 18px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
#tropicBar .btn { background: #fff; color: #2f8f4a; }
.card.basket .bup { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: #faf6ff; }
.card.basket .bup b { display: block; font-size: 14px; }
.card.basket .bup small { color: var(--muted); font-size: 12px; }
.card.basket .bup .btn { flex: none; }
/* 3.13: Deko-Kategorien und Hausfarben */
.seg.deco-cats { flex-wrap: wrap; margin-top: 10px; }
.seg.deco-cats button { flex: 1 1 30%; font-size: 12.5px; min-height: 36px; }
.paintdlg .prow { margin: 10px 0; }
.paintdlg .prow b { display: block; font-size: 15px; margin-bottom: 6px; }
.paintdlg .prow small { color: var(--muted); font-size: 12px; }
.paintdlg .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.paintdlg .sw { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #d8c9ee, 0 2px 4px rgba(0, 0, 0, 0.15); }
.paintdlg .sw.on { box-shadow: 0 0 0 3px var(--pink), 0 2px 6px rgba(0, 0, 0, 0.2); transform: scale(1.08); }
.plandlg .card.plan { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 10px 12px; }
.plandlg .card.plan h4 { font-size: 15px; margin: 0 0 2px; }
.plandlg .card.plan .btn { flex: none; }
