/* Startseite im Handy-Stil (nach dem freigegebenen Entwurf) */
.home .wealth{display:grid;grid-template-columns:1.15fr 1fr;gap:12px;padding:12px 14px}
.home .wealth strong{display:block;font-family:var(--fd);font-weight:400;font-size:25px;margin:5px 0 2px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home .wealth em{font-style:normal;color:var(--greenL);font-size:12px;font-weight:800}
.home .w-r{border-left:2px solid rgba(255,255,255,.08);padding-left:12px;min-width:0}
.home .tier{display:flex;align-items:center;gap:8px;margin:5px 0 7px}
.home .tier svg{width:38px;height:38px;flex:none}
.home .tier b{display:block;font-family:var(--fd);font-weight:400;font-size:16px;line-height:1.05}
.home .tier span{font-size:12px;color:var(--gold);font-weight:800}
.home .prog-t{display:block;font-size:10.5px;color:var(--mut);margin-top:4px}

.home .income{display:flex;align-items:center;gap:8px;padding:8px 12px 8px 6px;background:var(--rivets),linear-gradient(115deg,#1f4c3d,#1c2b48 78%)}
.home .income .ic{width:64px;height:64px;flex:none}
.home .inc-t{flex:1;min-width:0}
.home .inc-t strong{display:block;font-family:var(--fd);font-weight:400;font-size:24px;color:var(--greenL);margin:2px 0 1px;font-variant-numeric:tabular-nums}
.home .inc-t span{font-size:11.5px;color:var(--mut)}
.home .btn-go{font-family:var(--fd);font-size:16px;color:#082419;background:var(--green);border:2.5px solid var(--line);border-radius:12px;padding:8px 14px;box-shadow:0 4px 0 var(--line),inset 0 2px 0 rgba(255,255,255,.35);cursor:pointer;flex:none}
.home .btn-go:active:not(:disabled){transform:translateY(2px);box-shadow:0 2px 0 var(--line),inset 0 2px 0 rgba(255,255,255,.35)}
.home .btn-go:disabled{opacity:.45;cursor:default}

.home .task{display:flex;gap:12px;align-items:flex-start;padding:10px 12px}
.home .bot{width:52px;height:52px;flex:none;margin-top:6px}
.home .task-t{flex:1;min-width:0}
.home .bubble{margin:5px 0 9px;background:#fff3dc;color:#1b1630;border:2.5px solid var(--line);border-radius:12px;padding:7px 10px;position:relative;font-weight:800;line-height:1.3}
.home .bubble::before{content:"";position:absolute;left:-9px;top:11px;width:12px;height:12px;background:#fff3dc;border-left:2.5px solid var(--line);border-bottom:2.5px solid var(--line);transform:rotate(45deg)}
.home .bubble .btn{margin-top:6px}
.home .task-f{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--mut);font-weight:800}
.home .task-f .prog{flex:1}
.home .task-f .txt{flex-basis:100%;font-weight:700}
.home .task-f{flex-wrap:wrap}
.home .rew{font-family:var(--fd);font-weight:400;color:var(--gold);background:rgba(232,191,79,.12);border:1.5px solid rgba(232,191,79,.55);border-radius:999px;padding:1px 8px}

/* 9 Bereiche im 3er-Raster, 12 Funktionen im 4er-Raster */
.home .g9{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.home .tile{display:flex;flex-direction:column;align-items:center;gap:1px;padding:4px 4px 9px;cursor:pointer;transition:transform .12s;color:var(--text);font:inherit}
.home .tile:hover{transform:translateY(-2px)}
.home .tile svg{width:100%;max-width:104px;aspect-ratio:1;height:auto;margin-bottom:-4px}
.home .tile b{font-family:var(--fd);font-weight:400;font-size:14px;text-align:center}
.home .g12{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.home .mini{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px 7px;border-radius:12px;background:var(--card);border:2px solid var(--line);box-shadow:0 3px 0 var(--line);cursor:pointer;color:var(--text);font:inherit}
.home .mini svg{width:34px;height:34px}
.home .mini span{font-size:11.5px;font-weight:800}
.home .admin{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;margin-top:13px;background:var(--rivets),#241f48;color:var(--text);text-align:left;cursor:pointer;font:inherit}
.home .admin svg{width:30px;height:30px;flex:none}
.home .admin .t{flex:1;min-width:0;display:flex;flex-direction:column}
.home .admin b{font-family:var(--fd);font-weight:400;font-size:14px}
.home .admin span{font-size:11px;color:var(--mut)}
.home .chev{font-family:var(--fd);font-size:24px;color:var(--mut);line-height:1}

.home .chat{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;color:var(--text);text-align:left;cursor:pointer;font:inherit}
.home .chat>svg{width:30px;height:30px;flex:none}
.home .chat-t{flex:1;min-width:0}
.home .chat-t .line{display:block;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12.5px}
@media (prefers-reduced-motion:reduce){.home .tile:hover{transform:none}}
/* Startseite (0.45.3): Vermögen oben, Marktstufe rechts, Rang und Planet als Kacheln */
.home .wealth{display:block}
.home .w-top{display:flex;align-items:flex-start;justify-content:space-between}
.home .w-money{min-width:0}
.home .w-lv{flex:none;display:flex;flex-direction:column;align-items:center;text-align:center;margin-left:10px}
.home .w-lv svg{width:46px;height:46px}.home .w-lv span{font-size:11px;color:var(--mut);font-weight:800}.home .w-lv b{font-family:var(--fd);font-weight:400;font-size:18px;color:var(--gold)}
.home .w-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 8px}
.home .w-tile{display:flex;align-items:center;background:#0b1124;border:2px solid var(--line);border-radius:12px;padding:6px 8px;min-width:0}
.home .w-tile svg,.home .w-tile i{width:28px;height:28px;flex:none;font-style:normal;font-size:20px;margin-right:8px;text-align:center}
.home .w-tile span{display:block;font-size:10.5px;color:var(--mut);font-weight:800}.home .w-tile b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home .w-tile>div{min-width:0}
/* Tipps-Karte einklappbar */
.home .task{position:relative}.home .task.folded{padding:10px 44px 10px 12px}
/* Chat-Leiste: klebt über der unteren Navigation, steht am Seitenende im Fluss (verdeckt keine Knöpfe) */
.home{padding-bottom:4px}
#chatbar{position:sticky;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:4}
.chatbar{display:flex;align-items:center;background:#111a33;border:2.5px solid var(--line);border-radius:16px;box-shadow:0 4px 12px rgba(0,0,0,.45);padding:4px 4px 4px 0}
.chatbar .cb-t{flex:1;min-width:0;background:none;border:0;color:var(--ink);text-align:left;padding:8px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font:inherit;font-size:13px}
.chatbar .cb-t b{color:var(--cyan)}.chatbar .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#3fae6a;margin-right:7px;vertical-align:middle}
.chatbar .cb-x{flex:none;width:30px;height:30px;border-radius:10px;border:2px solid var(--line);background:#0b1124;color:var(--ink);cursor:pointer}
.home .w-rank{display:flex;align-items:center;margin:8px 0 5px}.home .w-rank svg{width:24px;height:24px;margin-right:6px}.home .w-rank b{font-family:var(--fd);font-weight:400;font-size:16px}
/* Tipps eingeklappt: Knopf mittig rechts wie beim Chat-Kopf */
.home .task.folded{display:flex;align-items:center;padding:10px 12px}.home .task.folded .fold{position:static;margin-left:auto}
/* Startseite (0.46.4): Vermögen ohne Karte, Marktstufe und Rang als zwei gleiche Kacheln, Fortschrittskreis, Werbekarte */
.home .wealth{display:flex;align-items:center;justify-content:space-between;padding:4px 2px}
.home .wealth .w-money strong{display:block;font-family:var(--fd);font-weight:400;font-size:25px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home .w-tiles2{display:flex;flex:none;margin-left:10px}
.home .w-tiles2 .w-lv{width:84px;margin-left:6px;background:var(--card);border:2px solid var(--line);border-radius:14px;padding:6px 4px}
.home .w-lv .w-rk{font-size:12px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;color:var(--ink)}
.ring{width:46px;height:46px}.ring circle{fill:none;stroke-width:5}.ring .r-bg{stroke:#2c4a7a}.ring .r-fg{stroke:#dfe8ff;stroke-linecap:round}
.ring text{fill:var(--ink);font-size:11px;font-weight:800;font-family:var(--fb,inherit)}
.adcard{display:flex;align-items:center;width:100%;text-align:left;cursor:pointer;font:inherit;color:var(--ink);padding:10px 12px}
.adcard:disabled{opacity:.6;cursor:default}
.adcard .ad-ic{flex:none;width:48px;height:48px;border-radius:12px;background:#dfe8ff;display:flex;align-items:center;justify-content:center;font-size:26px;margin-right:12px}
.adcard .ad-t{flex:1;min-width:0}.adcard .ad-t b{display:block;font-family:var(--fd);font-weight:400;font-size:16px}.adcard .ad-t span{display:block;font-size:12.5px;color:var(--mut)}
.adcard .chev{font-size:22px;color:var(--mut);margin-left:8px}
.hd .purse{flex-wrap:nowrap}.hd .purse .cash{font-size:13px;white-space:nowrap}
/* 0.46.5: Marktstufe und Rang ohne Kasten, frei neben dem Vermögen; Kopfbild reicht bis zur Einnahmen-Karte */
.home .w-tiles2 .w-lv{background:none;border:0;box-shadow:none;padding:0 2px;width:78px}
.app>.scene{height:300px}
/* Kachel Marktstufe ist ein Knopf zum Markt (Testphase, Wunsch 7) */
.home button.w-lv{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
