@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900;1000&display=swap');
:root { color-scheme:dark; --ink:#f6f8ff; --muted:#a4b0cd; --panel:#131d34; --line:#293654; --mint:#7ef2b2; --blue:#91b7ff; }
*{box-sizing:border-box}html{min-height:100%;background:#080e1e}body{margin:0;color:var(--ink);font-family:Nunito,system-ui,-apple-system,sans-serif;overflow-x:hidden}button,input{font:inherit} .shell{min-height:100vh;display:flex;justify-content:center;padding:22px 12px 55px;background:radial-gradient(ellipse at 12% 6%,#1b2960 0,transparent 38%),radial-gradient(ellipse at 90% 62%,#153e4c 0,transparent 45%),#080f20;position:relative}.stars{pointer-events:none;position:fixed;inset:0;opacity:.36;background-image:radial-gradient(2px 2px at 16% 15%,white 50%,transparent 52%),radial-gradient(2px 2px at 72% 11%,white 50%,transparent 52%),radial-gradient(1px 1px at 92% 50%,white 50%,transparent 52%),radial-gradient(2px 2px at 20% 72%,white 50%,transparent 52%);background-size:320px 280px}
.game-card{width:min(100%,770px);position:relative;border:1px solid #34466c;border-radius:31px;padding:22px 23px 15px;background:linear-gradient(145deg,rgba(20,31,57,.97),rgba(11,19,38,.98));box-shadow:0 22px 100px #020817a6, inset 0 1px #ffffff17;align-self:flex-start}
.head{display:flex;align-items:center;gap:12px;justify-content:space-between}.identity{display:flex;gap:12px;align-items:center;min-width:0}.logo{width:59px;height:59px;border-radius:19px;background:linear-gradient(150deg,#64ecb6,#2d8bba);display:grid;place-items:center;font-size:33px;box-shadow:0 6px 25px #30e5a344;border:1px solid #9df5cb}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:900;color:#92f0c7}h1{font-size:clamp(23px,4.1vw,34px);letter-spacing:-1.5px;margin:0;font-weight:1000;line-height:1.05;white-space:nowrap}h1 span{color:#82e8be}.live-pill{font-size:10px;font-weight:1000;letter-spacing:1.1px;display:flex;align-items:center;gap:7px;background:#102b28;border:1px solid #2a8368;padding:10px 12px;border-radius:20px;color:#92f3bf;text-align:center}.live-pill.offline{background:#372c21;border-color:#89683b;color:#f7c987}.pulse-dot{width:8px;height:8px;border-radius:50%;background:#5be9a6;box-shadow:0 0 0 4px #5be9a622;animation:blip 2s infinite}.offline .pulse-dot{background:#f8be64;box-shadow:none}.subtitle{color:#aab9d8;font-weight:700;font-size:12px;margin:15px 0 17px 2px}.spark{color:#8af1bb;font-size:18px;padding-left:6px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.stat{border:1px solid #334260;border-radius:15px;background:linear-gradient(135deg,#22304c,#15223d);padding:12px 8px;display:flex;align-items:center;gap:8px;min-width:0}.stat-icon{width:37px;height:37px;border-radius:12px;flex-shrink:0;display:grid;place-items:center;font-size:21px;background:#263b5b}.stat span{display:block;color:#adbbd7;font-size:10px;font-weight:800}.stat strong{font-size:22px;font-weight:1000;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.world-panel{border:1px solid #416c72;background:linear-gradient(180deg,#1d414f,#1a3440 90%,#163038);overflow:hidden;margin-top:13px;border-radius:20px;box-shadow:inset 0 1px #ffffff24,0 12px 25px #00000020}.world-top,.world-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;color:#d6fff2}.world-top{font-size:12px;letter-spacing:1.4px;border-bottom:1px solid #ffffff19}.green-spark{color:#6cffbd}.small-tag{font-size:9px;color:#d2f2f4;background:#0a273080;padding:5px 8px;border:1px solid #83dcd35c;border-radius:15px;margin-left:10px;white-space:nowrap}.day-pill{font-size:10px;letter-spacing:0;color:#e5efca}.canvas-holder{position:relative;height:clamp(335px,52vw,465px);background:radial-gradient(ellipse at 50% 52%,#4b9b81 0%,#2c6e66 56%,#15444b 100%);overflow:hidden}.canvas-holder:before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 42%,transparent 45%,#0b39494d 95%);z-index:1}.canvas-holder canvas{width:100%;height:100%;display:block;position:relative;z-index:1}.plot-label{position:absolute;top:16px;left:50%;transform:translateX(-50%);background:#0e3146af;border:1px solid #b7e5c278;color:#f4fff3;border-radius:24px;padding:7px 13px;font-weight:900;font-size:11px;white-space:nowrap;box-shadow:0 2px 15px #06161a60;z-index:3}.world-footer{padding:12px 15px;font-size:11px;font-weight:800;background:#15383b;gap:9px}.toast{position:absolute;z-index:4;bottom:31px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#10334fed;border:1px solid #81f2c1;padding:12px 17px;color:#fff;font-weight:1000;font-size:13px;border-radius:16px;box-shadow:0 10px 40px #07202088;min-width:220px;text-align:center;transition:transform .3s,opacity .3s}.toast.visible{opacity:1;transform:translate(-50%,0)}
.resource-section{margin-top:16px}.section-caption,.box-title{font-weight:1000;color:#eef3ff;letter-spacing:1.3px;font-size:11px;display:flex;justify-content:space-between;align-items:center}.caption-aside{color:#8e9fbe;letter-spacing:0;font-size:10px}.resources{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:9px}.resource{border:1px solid #324563;background:#1a2943;border-radius:12px;display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:12px;font-weight:800;color:#b8c7e0}.resource-icon{font-size:22px}.resource strong{font-size:17px;color:#fff;margin-left:auto;font-variant-numeric:tabular-nums}.likes-progress{margin:10px 0 3px}.like-line{display:flex;justify-content:space-between;font-size:10px;color:#bdcbe2;font-weight:900}.like-line span:last-child{color:#f4b6ca}.progress-rail{height:6px;background:#35415b;border-radius:10px;margin-top:7px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#ff7d99,#ffbfd0);height:100%;width:0%;border-radius:10px;transition:width .4s}
.split-section{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;margin-top:17px}.activity-box,.howto{border-radius:16px;background:#18263e;border:1px solid #33415e;padding:13px;min-height:203px}.running-light{color:#74eeb0;font-size:9px;letter-spacing:.5px}.events{margin-top:12px;display:flex;flex-direction:column;gap:9px}.event{display:flex;gap:9px;align-items:flex-start;font-weight:800;color:#b9c9df;font-size:10px}.event .evt-icon{font-size:21px;line-height:1}.event p{margin:0;line-height:1.4}.event small{display:block;font-size:9px;color:#657b9e;margin-top:2px}.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.command-grid div{display:flex;flex-direction:column;background:#273652;border:1px solid #3f5270;border-radius:9px;padding:6px 9px;gap:0}.command-grid b{font-size:12px;color:#9ff0c7}.command-grid span{font-size:10px;color:#b6c5df}.hint{font-size:9px;color:#95a6c3;text-align:center;margin:11px 0 0}footer{color:#6d81a5;font-size:9px;font-weight:900;letter-spacing:1.8px;text-align:center;margin-top:18px}footer span{color:#fd729d}footer b{color:#9eb7da}
.demo-controls{position:fixed;z-index:20;right:14px;bottom:14px;width:min(430px,calc(100vw - 28px));background:#111d35f7;color:white;border:1px solid #80b4cd;border-radius:18px;padding:15px;box-shadow:0 20px 70px #000a;backdrop-filter:blur(15px)}.demo-controls[hidden]{display:none}.demo-title{font-size:13px;font-weight:1000;letter-spacing:1.5px;margin-bottom:9px}.demo-title span{font-size:9px;color:#85d3b5}.demo-input-row{display:flex;gap:5px}.demo-input-row input{min-width:0;width:40%;background:#243451;border:1px solid #456387;border-radius:8px;color:white;padding:8px;font-size:12px}.demo-input-row button{background:#66dfad;border:0;border-radius:9px;color:#082221;padding:8px 12px;font-size:11px;font-weight:1000}.demo-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.demo-buttons button{font-size:11px;background:#263e59;border:1px solid #4f6989;border-radius:9px;color:#e7f0ff;padding:7px 9px;cursor:pointer}.demo-buttons button:hover{background:#376887}.demo-result{font-size:10px;color:#b3c7df;margin-top:8px}
@keyframes blip{50%{box-shadow:0 0 0 7px #5be9a600}}@media(max-width:610px){.shell{padding:7px 4px 20px}.game-card{border-radius:18px;padding:13px 10px}.logo{width:44px;height:44px;font-size:26px;border-radius:12px}.identity{gap:8px}.eyebrow{font-size:8px;letter-spacing:1.3px}h1{font-size:23px}.live-pill{padding:6px 7px;font-size:8px;max-width:113px}.stats{gap:5px}.stat{padding:8px 5px;gap:3px;flex-direction:column;text-align:center}.stat-icon{width:auto;height:auto;background:none;font-size:20px}.stat strong{font-size:18px}.stat span{font-size:9px}.world-top,.world-footer{padding:9px 8px}.day-pill{font-size:9px}.canvas-holder{height:360px}.split-section{grid-template-columns:1fr}.activity-box,.howto{min-height:auto}.resources{gap:5px}.resource{padding:7px 5px;gap:3px}.resource-icon{font-size:18px}.resource strong{font-size:15px}.small-tag{margin-left:4px;font-size:8px}.demo-controls{position:relative;right:auto;bottom:auto;margin:9px auto}.game-card{margin-bottom:8px}}@media(min-width:611px) and (max-height:1050px){.shell:has(.demo-controls:not([hidden])){padding-right:435px}.game-card{max-width:700px}}

/* Geschenkekonto, Stadtberufe und Kartensteuerung */
.stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.map-tools{position:absolute;top:12px;right:12px;z-index:5;display:flex;gap:4px}
.map-tools button{border:1px solid #85dac2a8;background:#113e49d9;color:#e3fff6;border-radius:9px;width:27px;height:27px;cursor:pointer;font-weight:1000;font-size:17px}
.canvas-holder canvas{touch-action:none;cursor:grab}.canvas-holder canvas:active{cursor:grabbing}
.gift-note{color:#c9d9ec;background:#1e3b4f;border:1px solid #44637c;border-radius:10px;padding:9px;font-size:11px;line-height:1.5;margin:11px 0 0}
.gift-note b{color:#90f7c9}
.community-section{display:grid;grid-template-columns:1.25fr 1fr;gap:12px;margin-top:14px}
.community-box{border-radius:16px;background:#17243b;border:1px solid #374760;padding:13px;min-width:0}
.small-inline{font-size:9px;letter-spacing:.1px;color:#81edbd}
.jobs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}
.jobs-grid div{border:1px solid #3e5574;background:#263750;border-radius:9px;padding:7px;min-width:0;font-size:12px;line-height:1.3}
.jobs-grid b{font-size:10px;color:#9af4c8;display:inline-block;margin-left:4px}
.jobs-grid span{display:block;font-size:9px;color:#afc2da;padding-left:23px}
.wallet-list{display:flex;flex-direction:column;gap:8px;margin-top:14px;min-height:90px}
.wallet-row{display:flex;justify-content:space-between;gap:12px;font-size:11px;padding:6px 8px;background:#24354f;border-radius:8px;color:#d4e4f8}
.wallet-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wallet-row strong{color:#a1ffcf;white-space:nowrap}
.profession-head{margin-top:16px}
.job-stats{margin-top:11px;display:flex;flex-wrap:wrap;gap:6px;font-size:11px;color:#b9cce1}
.job-pill{border:1px solid #376a70;background:#1d4753;padding:5px 8px;border-radius:16px;font-size:10px}
.demo-wallet{color:#91f4c1;font-size:13px;font-weight:1000;margin-top:9px}
@media(max-width:610px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.community-section{grid-template-columns:1fr}.wallet-list{min-height:0}.world-footer{font-size:9px}.map-tools{top:50px}}
@media (min-width:1000px){body:has(.demo-controls:not([hidden])) .shell{padding-right:455px}}
@media (min-width:611px) and (max-width:999px){.demo-controls{position:relative;right:auto;bottom:auto;margin:10px auto}}

/* V3: begrenzte Unternehmen, offene Bewerbungen und Teamübersicht */
.firms-panel{margin-top:14px;border-radius:16px;background:#152a3c;border:1px solid #3a5d6b;padding:14px}
.firms-hint{color:#b9d0e4;font-size:11px;line-height:1.55;margin:10px 0}
.firms-hint b{color:#b8ffe1}
.company-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}
.company-card{padding:11px;border-radius:12px;background:#20344b;border:1px solid #3f6074;min-width:0}
.company-name{font-size:12px;font-weight:1000;color:#dbfff2}
.company-meta{font-size:10px;color:#a8bad6;margin:5px 0}
.company-applications{font-size:10px;color:#fadca4;line-height:1.55;margin-top:6px}
.company-progress{height:5px;background:#152b3f;border-radius:10px;overflow:hidden;margin-top:7px}
.company-progress div{height:100%;background:#7eeab7;border-radius:10px}
.company-employees{font-size:10px;color:#a9f1d3;margin-top:6px}
@media(max-width:610px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat strong{font-size:15px}.stat span{font-size:8px}.company-list{grid-template-columns:1fr}}

/* V4: Stadtwirtschaft und Bürgermeisterverwaltung */
.economy-section{margin-top:18px;background:rgba(18,29,48,.82);border:1px solid rgba(141,220,188,.18);border-radius:18px;padding:16px}
.economy-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}
.eco-stat{padding:12px 10px;border:1px solid rgba(139,179,190,.22);border-radius:12px;background:rgba(37,64,75,.47);display:flex;flex-direction:column;gap:5px}
.eco-stat span{color:#c0d7d8;font-size:11px;font-weight:800}.eco-stat b{font-size:clamp(15px,2vw,22px);line-height:1.15;color:#eafff6}.eco-stat small{color:#9ebdc0;font-size:10px}
.mayor-banner{padding:11px 13px;background:rgba(67,93,110,.22);border:1px solid rgba(137,210,191,.20);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.mayor-banner b{font-size:13px;color:#e9fff9}.mayor-banner small{display:block;margin-top:5px;color:#bad2d0;font-size:11px}
.candidate-tags{display:flex;flex-wrap:wrap;gap:5px}.candidate-tags span{font-size:10px;color:#b7efcc;border:1px solid #416d66;padding:4px 6px;border-radius:6px}
.ticker{padding:11px 12px;margin-top:10px;border-radius:9px;background:rgba(11,23,32,.7);color:#b4dfc7;font-size:12px}
.company-economy{margin-top:7px;border-top:1px dashed rgba(168,217,201,.24);padding-top:8px;color:#bfead9;font-size:11px;line-height:1.6}
.company-economy strong{color:#eefdf7}
@media(max-width:740px){.economy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.economy-section{padding:12px}}

.government-board{padding:11px 12px;margin-top:9px;background:rgba(18,41,57,.76);border:1px solid rgba(154,213,214,.19);border-radius:10px;color:#cee2f0;font-size:12px;line-height:1.65}
