/* =========================================================================
   JOLLY GOOD FARM — Das Farm-Game · UI
   Cozy, warm, mobil-first. Tap-Targets ≥ 44px. prefers-reduced-motion ok.
   ========================================================================= */
:root {
  --ink: #232c25; --ink2: #2c3a2e;
  --meadow: #3f6b48; --meadow-deep: #2c4d33; --meadow-bright: #5a8c63;
  --hay: #e0a73f; --hay-deep: #bd861f;
  --clay: #b4623f; --sky: #8fb9d1; --coral: #e8795a;
  --cream: #f6f1e6; --paper: #fdfaf2; --line: #e7e0d0; --line-strong: #d7ccb6;
  --muted: #6f786b;
  --fdisplay: "Fraunces", Georgia, serif;
  --fsans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --r: 16px; --r-lg: 22px; --pill: 999px;
  --spring: cubic-bezier(0.34,1.56,0.64,1);
  --sbottom: env(safe-area-inset-bottom, 0px);
  --stop: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--fsans); color: var(--ink);
  background: radial-gradient(1000px 500px at 50% -10%, #34442f, transparent 60%), #1a1f17;
  display: grid; place-items: center; overflow: hidden; touch-action: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
canvas.spr, .spr { image-rendering: pixelated; image-rendering: crisp-edges; vertical-align: middle; }

.app { position: relative; width: 100%; height: 100dvh; display: grid; place-items: center; }

/* ---- Stage (Phone-Viewport) ---- */
.stage { position: relative; overflow: hidden; background: #5d8c49; width: min(480px, 100vw); height: min(920px, 100dvh); }
@media (min-width: 500px) and (min-height: 800px) {
  .stage { border-radius: 30px; box-shadow: 0 40px 90px rgba(0,0,0,0.5); height: min(880px, calc(100dvh - 30px)); }
}
#game { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; display: block; }

/* ============================ HUD ============================ */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.hud-top { position: absolute; top: calc(8px + var(--stop)); left: 8px; right: 8px; display: flex; align-items: flex-start; gap: 8px; }
.ht-left { display: flex; flex-direction: column; gap: 4px; }
.ht-day { background: rgba(28,36,30,0.82); color: #fff; border-radius: var(--pill); padding: 6px 13px; backdrop-filter: blur(6px); line-height: 1.05; }
.ht-day b { font-weight: 800; font-size: 13px; display: block; }
.ht-day em { font-style: normal; font-size: 10.5px; color: #ffd684; font-weight: 700; }
.ht-area { align-self: flex-start; background: rgba(63,107,72,0.9); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: var(--pill); backdrop-filter: blur(6px); }
.ht-mid { margin: 0 auto; display: flex; gap: 6px; }
.ht-mid span { background: rgba(28,36,30,0.7); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: var(--pill); backdrop-filter: blur(6px); white-space: nowrap; }
.ht-right { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.chip { background: rgba(28,36,30,0.82); color: #fff; border-radius: var(--pill); padding: 5px 11px; backdrop-filter: blur(6px); display: flex; align-items: center; gap: 5px; }
.chip span { font-size: 13px; } .chip strong { font-size: 13px; font-variant-numeric: tabular-nums; }

.hud-bars { position: absolute; top: calc(60px + var(--stop)); left: 8px; right: 8px; display: flex; gap: 6px; align-items: center; }
.bar { display: flex; align-items: center; gap: 5px; background: rgba(28,36,30,0.7); padding: 4px 9px 4px 7px; border-radius: var(--pill); backdrop-filter: blur(6px); }
.bar:first-child { flex: 1.4; } .bar { flex: 1; }
.bar .bl { font-size: 12px; color: #fff; font-weight: 800; display: flex; align-items: center; gap: 1px; white-space: nowrap; }
.bar .bl i { font-style: normal; font-size: 11px; color: #ffd684; }
.bar-track { flex: 1; height: 7px; border-radius: var(--pill); background: rgba(255,255,255,0.2); overflow: hidden; min-width: 22px; }
.bar-track span { display: block; height: 100%; width: 0; border-radius: var(--pill); transition: width 0.5s var(--spring); }
.bar-track.care span { background: linear-gradient(90deg, var(--meadow-bright), var(--hay)); }
.bar-track.xp span { background: linear-gradient(90deg, #ffd684, var(--hay-deep)); }
.bar-track.farm span { background: linear-gradient(90deg, var(--meadow-bright), #76b97f); }

.next-step { position: absolute; top: calc(86px + var(--stop)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px);
  background: rgba(28,36,30,0.62); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: var(--pill);
  backdrop-filter: blur(6px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hud-bottom { position: absolute; left: 0; right: 0; bottom: calc(12px + var(--sbottom)); display: flex; justify-content: space-between; align-items: flex-end; padding: 0 12px; }
.dpad { position: relative; width: 138px; height: 138px; pointer-events: auto; }
.dpad .d { position: absolute; width: 46px; height: 46px; border-radius: 12px; background: rgba(253,250,242,0.86); color: var(--ink2); font-size: 16px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); display: grid; place-items: center; transition: transform 0.1s, background 0.1s; }
.dpad .d:active, .dpad .d.on { transform: scale(0.9); background: var(--hay); }
.dpad .up { left: 46px; top: 0; } .dpad .down { left: 46px; top: 92px; }
.dpad .left { left: 0; top: 46px; } .dpad .right { left: 92px; top: 46px; }

.hud-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: auto; }
.mini-row { display: flex; gap: 7px; }
.mini { position: relative; width: 44px; height: 44px; border-radius: 12px; background: rgba(253,250,242,0.88); font-size: 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); display: grid; place-items: center; transition: transform 0.1s; }
.mini:active { transform: scale(0.9); }
.mini .dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px rgba(253,250,242,0.9); }
.act-btn { width: 76px; height: 76px; border-radius: 50%; font-family: var(--fdisplay); font-weight: 600; font-size: 27px;
  background: radial-gradient(circle at 35% 30%, #efb755, var(--hay-deep)); color: #2b1f08;
  box-shadow: 0 8px 18px rgba(189,134,31,0.5), inset 0 0 0 3px rgba(255,255,255,0.25); transition: transform 0.1s var(--spring); }
.act-btn:active { transform: scale(0.9); }

.endday { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(176px + var(--sbottom)); pointer-events: auto;
  background: linear-gradient(120deg, var(--meadow), var(--meadow-deep)); color: #fff; font-weight: 800; font-size: 15px;
  padding: 13px 22px; border-radius: var(--pill); box-shadow: 0 10px 24px rgba(44,77,51,0.5); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(-4px);} }
.hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(168px + var(--sbottom)); pointer-events: none;
  background: rgba(28,36,30,0.85); color: #fff; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: var(--pill);
  max-width: calc(100% - 32px); text-align: center; opacity: 0; transition: opacity 0.3s; }
.hint.show { opacity: 1; }

/* ============================ Screens / Overlays ============================ */
.screen { position: absolute; inset: 0; z-index: 20; display: grid; }
.screen[hidden] { display: none; }
.title-screen { background: linear-gradient(170deg, #4f7e4a, var(--meadow-deep)); color: #fff; place-items: center; text-align: center; }
.title-inner { padding: 30px; max-width: 360px; }
.logo-badge { width: 76px; height: 76px; border-radius: 22px; background: rgba(255,255,255,0.14); display: grid; place-items: center; font-size: 40px; margin: 0 auto 18px; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-7px);} }
.title-screen .kick { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #ffd684; }
.title-screen h1 { font-family: var(--fdisplay); font-weight: 600; font-size: 46px; margin: 6px 0 14px; line-height: 1; }
.title-screen .sub { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.88); }
.title-actions { display: grid; gap: 10px; margin: 24px 0 18px; }
.title-foot { font-size: 12.5px; color: rgba(255,255,255,0.66); line-height: 1.5; }

.gbtn { min-height: 52px; padding: 0 24px; border-radius: var(--pill); font-weight: 800; font-size: 16px; transition: transform 0.12s var(--spring); }
.gbtn:active { transform: scale(0.96); }
.gbtn.gold { background: var(--hay); color: #2b1f08; box-shadow: 0 8px 18px rgba(189,134,31,0.4); }
.gbtn.ghost { background: rgba(63,107,72,0.12); color: var(--meadow-deep); border: 1.5px solid var(--line-strong); }
.gbtn.danger { background: rgba(180,98,63,0.16); color: var(--clay); }
.gbtn.wide { width: 100%; margin-top: 10px; }

.modal { background: rgba(20,26,20,0.55); place-items: center; backdrop-filter: blur(3px); padding: 18px; }
.card { background: var(--paper); border-radius: var(--r-lg); padding: 26px 22px; max-width: 360px; width: 100%; max-height: calc(100% - 28px); overflow-y: auto; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,0.4); animation: pop 0.4s var(--spring) both; }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.card h2 { font-family: var(--fdisplay); font-weight: 600; font-size: 25px; margin: 0 0 12px; }
.big-emoji { font-size: 52px; margin-bottom: 8px; animation: pop 0.5s var(--spring) both; }
.kick { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hay-deep); margin: 0 0 4px; }
.modal-body { font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.modal-body p { margin: 0 0 10px; }
.modal-body .goal { font-weight: 800; color: var(--meadow-deep); }
.modal-body .soft { color: var(--muted); font-size: 13px; }
.modal-actions { display: grid; gap: 10px; margin-top: 18px; }
.reward-pill { display: inline-block; margin: 6px 0 4px; padding: 8px 16px; border-radius: var(--pill); background: rgba(224,167,63,0.18); color: var(--hay-deep); font-weight: 800; font-size: 14px; }
.next-chapter { margin-top: 12px; padding: 12px; border-radius: var(--r); background: var(--cream); font-size: 13px; line-height: 1.5; text-align: left; }
.ob { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 13px; text-align: left; }
.ob li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.ob li > span { font-size: 21px; }
.ob li b { color: var(--ink); }

/* ============================ Sheet (Interaktion) ============================ */
.sheet-screen { align-items: end; background: rgba(20,26,20,0.35); }
.sheet { background: var(--paper); border-radius: 26px 26px 0 0; width: 100%; padding: 18px 18px calc(22px + var(--sbottom)); box-shadow: 0 -20px 50px rgba(0,0,0,0.3); animation: slideup 0.35s var(--spring) both; max-height: 90%; overflow-y: auto; }
@keyframes slideup { from { transform: translateY(110%);} to { transform: none;} }
.ia-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ia-ava { width: 64px; height: 64px; border-radius: 18px; background: var(--cream); display: grid; place-items: center; }
.ia-head h3 { font-family: var(--fdisplay); font-weight: 600; font-size: 22px; margin: 0; }
.ia-head .sp { font-size: 12.5px; color: var(--muted); }
.ia-mood { margin-left: auto; text-align: right; }
.ia-mood .mood-tag { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: var(--pill); }
.mood-happy { background: rgba(63,107,72,0.14); color: var(--meadow-deep); }
.mood-calm { background: rgba(143,185,209,0.22); color: #2f6488; }
.mood-unruhig { background: rgba(232,121,90,0.16); color: var(--clay); }
.cc-hearts { font-size: 13px; letter-spacing: 1px; margin: 4px 0; }
.cc-hearts .grow { font-size: 11px; color: var(--meadow); letter-spacing: 0; }
.trust-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.trust-row .lab { font-size: 12px; font-weight: 700; color: var(--muted); }
.trust-bar { flex: 1; height: 10px; border-radius: var(--pill); background: #ece2cf; overflow: hidden; }
.trust-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--meadow), var(--coral)); transition: width 0.5s var(--spring); }
.warn-note { background: rgba(232,121,90,0.1); color: var(--clay); padding: 10px 12px; border-radius: var(--r); margin: 4px 0 8px !important; }
.ia-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.ia-act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 13px 8px; border-radius: var(--r); background: var(--cream); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; transition: transform 0.12s var(--spring), border-color 0.12s; }
.ia-act:active { transform: scale(0.95); }
.ia-act .e { font-size: 25px; }
.ia-close { width: 100%; margin-top: 12px; min-height: 46px; border-radius: var(--pill); background: var(--cream); font-weight: 700; color: var(--muted); }
.seed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.seed-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border-radius: var(--r); background: var(--cream); border: 1.5px solid var(--line); transition: transform 0.12s var(--spring); }
.seed-btn:active { transform: scale(0.95); }
.seed-btn .sb-name { font-weight: 700; font-size: 12.5px; }
.seed-btn .sb-meta { font-size: 10.5px; color: var(--muted); }

/* ============================ Panels ============================ */
.panel-screen { background: rgba(20,26,20,0.5); align-items: end; backdrop-filter: blur(3px); }
.panel { background: var(--paper); border-radius: 26px 26px 0 0; width: 100%; max-height: 92%; overflow-y: auto; padding: 16px 16px calc(26px + var(--sbottom)); box-shadow: 0 -20px 50px rgba(0,0,0,0.3); animation: slideup 0.35s var(--spring) both; }
.panel-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -16px; background: var(--paper); padding: 8px 2px 6px; margin: -16px -2px 6px; z-index: 2; }
.panel-head h2 { font-family: var(--fdisplay); font-weight: 600; font-size: 22px; margin: 0; }
.x { width: 38px; height: 38px; border-radius: 50%; background: var(--cream); font-size: 15px; color: var(--muted); flex: none; }
.panel-body { min-height: 40px; }
.panel-sub { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.panel-sub.soft { font-size: 12px; margin-top: 10px; }
.cat-head { font-family: var(--fdisplay); font-weight: 600; font-size: 15px; color: var(--meadow-deep); margin: 18px 0 8px; }
.empty { text-align: center; color: var(--muted); font-size: 13.5px; padding: 22px 10px; }
.wallet { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border: 1px solid var(--line); padding: 6px 13px; border-radius: var(--pill); font-weight: 800; font-size: 14px; color: var(--meadow-deep); margin-bottom: 8px; }
.wallet .wsep { color: var(--line-strong); } .wallet span:not(.wsep) { font-weight: 700; }

/* Bauen */
.build-card { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 13px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); margin-bottom: 10px; }
.build-card.is-built { opacity: 0.75; }
.build-card .bi { width: 52px; height: 52px; border-radius: 14px; background: var(--paper); display: grid; place-items: center; }
.build-card h4 { font-family: var(--fdisplay); font-weight: 600; font-size: 16px; margin: 0 0 2px; }
.build-card p { font-size: 12px; color: var(--muted); line-height: 1.4; margin: 0; }
.bc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bc-right .price { font-weight: 800; font-size: 13.5px; color: var(--meadow-deep); white-space: nowrap; }
.bbtn { min-height: 40px; padding: 0 15px; border-radius: var(--pill); background: var(--meadow); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; }
.bbtn[disabled] { background: var(--line-strong); color: #fff; opacity: 0.8; }
.bbtn.built { background: rgba(63,107,72,0.14); color: var(--meadow-deep); }
.bbtn.locked { background: #efe7d6; color: var(--muted); font-size: 11.5px; }

/* Kompendium */
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comp-card { padding: 13px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); }
.comp-card.locked { opacity: 0.62; }
.cc-top { display: flex; align-items: center; gap: 10px; }
.cc-ava { width: 48px; height: 48px; border-radius: 13px; background: var(--paper); display: grid; place-items: center; font-size: 22px; }
.cc-h h4 { font-family: var(--fdisplay); font-weight: 600; font-size: 15.5px; margin: 0; }
.cc-h .real { font-size: 11px; color: var(--muted); }
.comp-card .cc-char { font-size: 12px; color: var(--ink2); line-height: 1.45; margin: 8px 0 0; }
.cc-fav { font-size: 11.5px; color: var(--meadow-deep); font-weight: 700; margin-top: 6px; }
.cc-notes { margin-top: 8px; display: grid; gap: 4px; }
.cc-notes .note { font-size: 11px; color: var(--muted); font-style: italic; line-height: 1.4; }
.cc-notes .hidden-note { opacity: 0.55; font-style: normal; }

/* Markt */
.tabs { display: flex; gap: 8px; margin: 6px 0 12px; }
.tab { flex: 1; min-height: 40px; border-radius: var(--pill); background: var(--cream); font-weight: 700; font-size: 14px; color: var(--muted); }
.tab.active { background: var(--meadow); color: #fff; }
.market-pane { display: grid; gap: 9px; }
.shop-row { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 9px; align-items: center; padding: 9px 11px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); }
.shop-row.bonus { border-color: var(--hay); background: rgba(224,167,63,0.1); }
.sr-info { display: flex; flex-direction: column; line-height: 1.2; }
.sr-info b { font-size: 13.5px; } .sr-info span { font-size: 11.5px; color: var(--meadow-deep); font-weight: 700; }
.sbtn { min-height: 38px; padding: 0 13px; border-radius: var(--pill); background: var(--meadow); color: #fff; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.sbtn[disabled] { background: var(--line-strong); opacity: 0.8; }
.sbtn.ghost { background: rgba(63,107,72,0.12); color: var(--meadow-deep); }

/* Werkstatt */
.craft-card { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); margin-bottom: 10px; }
.craft-card .ci { width: 46px; height: 46px; border-radius: 13px; background: var(--paper); display: grid; place-items: center; }
.cc-mid h4 { font-family: var(--fdisplay); font-weight: 600; font-size: 15px; margin: 0 0 5px; }
.ins { display: flex; flex-wrap: wrap; gap: 6px; }
.in-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 5px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; }
.in-chip.ok { color: var(--meadow-deep); } .in-chip.miss { color: var(--clay); }
.in-chip em { font-style: normal; }
.sell-note { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* Inventar */
.inv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.inv-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); position: relative; }
.inv-n { font-weight: 800; font-size: 12px; color: var(--meadow-deep); }
.inv-name { font-size: 9.5px; color: var(--muted); text-align: center; line-height: 1.1; }

/* Quests */
.quest-block { padding: 14px; border-radius: var(--r); background: linear-gradient(150deg, var(--meadow), var(--meadow-deep)); color: #fff; margin-bottom: 12px; }
.qb-kick { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #ffd684; }
.quest-block h3 { font-family: var(--fdisplay); font-weight: 600; font-size: 19px; margin: 4px 0 4px; }
.quest-block p { font-size: 13px; margin: 0; opacity: 0.92; line-height: 1.45; }
.streak-row { font-size: 13px; font-weight: 700; color: var(--clay); background: rgba(232,121,90,0.1); padding: 9px 13px; border-radius: var(--pill); text-align: center; margin-bottom: 6px; }
.daily-card { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 11px 13px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); margin-bottom: 9px; }
.daily-card.done { opacity: 0.66; }
.dc-ico { font-size: 21px; text-align: center; }
.dc-text { font-size: 13.5px; font-weight: 700; }
.dc-bar { height: 6px; border-radius: var(--pill); background: #ece2cf; overflow: hidden; margin: 5px 0 3px; }
.dc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--meadow-bright), var(--hay)); transition: width 0.4s var(--spring); }
.dc-reward { font-size: 11px; color: var(--hay-deep); font-weight: 700; }

/* Abzeichen */
.badge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.badge-card { padding: 13px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); text-align: center; opacity: 0.62; }
.badge-card.got { opacity: 1; border-color: var(--hay); background: rgba(224,167,63,0.08); }
.bg-ico { font-size: 28px; } .bg-name { font-family: var(--fdisplay); font-weight: 600; font-size: 14px; margin: 4px 0 2px; }
.bg-desc { font-size: 11px; color: var(--muted); line-height: 1.35; }
.bg-reward { font-size: 11px; color: var(--hay-deep); font-weight: 700; margin-top: 5px; }

/* Karte */
.area-card { display: flex; align-items: center; gap: 10px; padding: 13px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); margin-bottom: 10px; }
.area-card.current { border-color: var(--meadow); background: rgba(63,107,72,0.08); }
.area-card.locked { opacity: 0.62; }
.area-card .ac-h { flex: 1; } .area-card .ac-h b { font-family: var(--fdisplay); font-weight: 600; font-size: 16px; display: block; }
.area-card .ac-h span { font-size: 11.5px; color: var(--muted); }

/* Menü */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.menu-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); font-weight: 700; font-size: 12.5px; color: var(--ink2); transition: transform 0.12s var(--spring); }
.menu-tile:active { transform: scale(0.95); }
.menu-tile .mt-ico { font-size: 26px; }

/* Ledger */
.led-hero { text-align: center; padding: 18px; border-radius: var(--r); background: linear-gradient(150deg, var(--meadow), var(--meadow-deep)); color: #fff; margin: 6px 0 14px; }
.led-hero .big { font-family: var(--fdisplay); font-weight: 600; font-size: 36px; line-height: 1; margin: 6px 0; }
.led-hero small { opacity: 0.85; font-size: 12px; }
.led-bar { height: 12px; border-radius: var(--pill); background: rgba(255,255,255,0.25); overflow: hidden; margin-top: 10px; }
.led-bar span { display: block; height: 100%; background: var(--hay); }
.premium-box, .patron-box { padding: 14px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); margin-bottom: 12px; }
.premium-box h4, .patron-box h4 { font-family: var(--fdisplay); font-weight: 600; font-size: 16px; margin: 0 0 6px; }
.premium-box p, .patron-box p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.premium-box .gbtn, .patron-box .gbtn { width: 100%; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.shop-item { padding: 12px; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); text-align: center; }
.shop-item .sw { width: 34px; height: 34px; border-radius: 9px; margin: 0 auto 8px; border: 2px solid rgba(0,0,0,0.1); }
.shop-item h4 { font-size: 13px; margin: 0 0 8px; }
.shop-item .sbtn { width: 100%; }
.shop-item .sbtn.owned { background: rgba(63,107,72,0.14); color: var(--meadow-deep); }
.shop-item .sbtn.equipped { background: var(--hay); color: #2b1f08; }
.led-note { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 12px; border-radius: var(--r); background: var(--cream); margin-top: 6px; }

/* Einstellungen */
.set-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.toggle { min-width: 60px; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--line-strong); color: #fff; font-weight: 800; font-size: 13px; }
.toggle[data-on="true"] { background: var(--meadow); }
.pause-actions { display: grid; gap: 10px; margin: 18px 0 10px; }

/* ============================ Toasts ============================ */
.toast-layer { position: absolute; left: 0; right: 0; bottom: calc(206px + var(--sbottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 30; pointer-events: none; padding: 0 16px; }
.toast { background: rgba(28,36,30,0.94); color: #fff; padding: 11px 16px; border-radius: var(--pill); font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 24px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 9px; animation: tin 0.4s var(--spring) both; max-width: 100%; }
.toast.out { animation: tout 0.3s ease forwards; }
.toast.happy { background: linear-gradient(120deg, var(--meadow), var(--meadow-deep)); }
.toast.warn { background: linear-gradient(120deg, var(--clay), #8f4a30); }
.toast .e { font-size: 18px; flex: none; }
@keyframes tin { from { opacity: 0; transform: translateY(16px) scale(0.92);} to { opacity: 1; transform: none;} }
@keyframes tout { to { opacity: 0; transform: translateY(-10px);} }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; }
}
/* ============================ Guten-Morgen-Digest ============================ */
.dg-greet { font-size: 14px; font-weight: 700; color: var(--meadow-deep); margin: 0 0 10px; }
.dg-block { text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; margin-bottom: 10px; }
.dg-block h4 { font-family: var(--fdisplay); font-weight: 600; font-size: 13.5px; margin: 0 0 7px; color: var(--ink); }
.dg-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--ink2); margin: 4px 0; }
.dg-line .dg-ic { flex: none; width: 18px; text-align: center; }
.project { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.dg-block .project { background: var(--paper); }
.pj-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.pj-top b { font-family: var(--fdisplay); font-weight: 600; font-size: 14px; }
.pj-top span { color: var(--hay-deep); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.pj-bar { height: 9px; border-radius: var(--pill); background: #ece2cf; overflow: hidden; }
.pj-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--meadow-bright), var(--hay)); transition: width 0.5s var(--spring); }
.name-input { width: 100%; margin-top: 6px; min-height: 46px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--paper); text-align: center; font-family: var(--fdisplay); font-weight: 600; font-size: 18px; color: var(--ink); }
.name-input:focus { outline: none; border-color: var(--meadow-bright); }

/* ============================ Erinnerungsalbum ============================ */
.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.polaroid-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: rotate(-1deg); }
.polaroid-card:nth-child(even) { transform: rotate(1.2deg); }
.pol-pic { height: 76px; border-radius: 7px; background: linear-gradient(160deg, #eaf3e6, #dbe9d6); display: grid; place-items: center; font-size: 34px; margin-bottom: 7px; }
.pol-pic canvas { image-rendering: pixelated; width: 46px; height: 46px; }
.pol-cap { display: flex; flex-direction: column; gap: 1px; }
.pol-cap b { font-size: 12.5px; } .pol-cap span { font-size: 11px; color: var(--muted); line-height: 1.3; } .pol-cap em { font-size: 10px; color: var(--hay-deep); font-style: normal; font-weight: 700; margin-top: 2px; }

@media (max-width: 360px) {
  .ht-mid { display: none; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
