/* Helpiqo Empires – Oberfläche. Spielwelt selbst: three.js (web/src/empires/render.js) */
body.em-body { background: linear-gradient(170deg, #2c4a3a, #16241e 70%); color: #f2efe4; min-height: 100vh; }
.em-body .site-header { background: #1b2a22; border-color: #314a3c; } .em-body .site-header a, .em-body .logo { color: #f2efe4; }
.em-body .site-footer { background: transparent; color: #b5c0b4; border-color: #314a3c; } .em-body .site-footer a { color: #b5c0b4; }
.em-menu[hidden], .em-load[hidden] { display: none; }
.em-menu { max-width: 640px; margin: 0 auto; padding: 34px 16px 40px; }
.em-hero { text-align: center; background: rgba(0, 0, 0, .22); border: 1px solid #3b5a48; border-radius: 22px; padding: 28px 18px; }
.em-hero h1 { margin: 0 0 6px; font-size: clamp(2.2rem, 8vw, 3.5rem); letter-spacing: -.02em; background: linear-gradient(90deg, #ffe08a, #f2b35e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.em-hero p { color: #dfe6d8; }
.em-note { font-size: .86rem; opacity: .75; margin-bottom: 0; }
.em-field { display: block; margin: 16px auto; max-width: 320px; text-align: left; font-weight: 700; font-size: .92rem; color: #e9e4d2; }
.em-field input { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; padding: 11px 13px; border-radius: 12px; border: 1px solid #4b6b58; background: #101c16; color: #fff; font-size: 1rem; }
.em-btns, .em-col { display: flex; flex-direction: column; gap: 9px; max-width: 380px; margin: 0 auto; }
.em-body button { font: inherit; color: inherit; cursor: pointer; }
.em-btns button, .em-col button { padding: 12px 15px; border-radius: 13px; border: 1px solid #4b6b58; background: #24382d; color: #f2efe4; font-weight: 700; }
.em-btns button:hover, .em-col button:hover { background: #2f4a3b; }
.em-body .em-main { background: linear-gradient(180deg, #e9b75a, #c98a35); border: 0; color: #2a1c08; font-weight: 800; font-size: 1.05rem; }
.em-body .em-main:hover { background: linear-gradient(180deg, #f3c56c, #d59a44); }
.em-body .em-main.alt { background: linear-gradient(180deg, #6cb46f, #458a50); color: #fff; }
.em-seo { margin-top: 18px; padding: 0 6px; color: #dfe6d8; font-size: .95rem; } .em-seo h2 { font-size: 1.15rem; color: #ffe08a; }
.em-load { text-align: center; padding: 80px 16px; font-size: 1.15rem; }

body.em-playing { overflow: hidden; overscroll-behavior: none; position: fixed; inset: 0; width: 100%; }
body.em-playing .site-header, body.em-playing .site-footer, body.em-playing .related, body.em-playing .pwa-hint { display: none; }
#emGame { position: fixed; inset: 0; overflow: hidden; background: #bfe3f5; user-select: none; -webkit-user-select: none; }
#emGame[hidden] { display: none; }
#emC { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
/* Leichte Vignette: lenkt den Blick zur Mitte, nur Darstellung */
.em-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0) 58%, rgba(20, 24, 18, .26) 100%); }
#emGame.replaying .em-vig { display: none; }

.em-chip { display: inline-flex; gap: 4px; align-items: center; background: rgba(23, 33, 27, .84); color: #fff; border-radius: 99px; padding: 4px 10px 4px 8px; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.em-chip b { font-weight: 400; } .em-chip.full { background: rgba(160, 96, 30, .92); }
.em-sn { background: rgba(23, 33, 27, .84); color: #fff; border-radius: 12px; padding: 5px 11px; min-width: 134px; font-size: .92rem; }
.em-sn b { white-space: nowrap; }
.em-p { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .2); margin-top: 4px; overflow: hidden; } .em-p i { display: block; height: 100%; background: #ffd65a; }
.em-speed { display: flex; background: rgba(23, 33, 27, .84); border-radius: 12px; overflow: hidden; }
.em-speed button { background: none; border: 0; color: #fff; padding: 0 9px; min-width: 36px; font-size: .95rem; } .em-speed button.on { background: #c98a35; }

.em-info .low { color: #ffab8a; }
.em-rul { background: none; border: 0; color: #ffe08a; font-weight: 800; padding: 0; text-decoration: underline dotted; }
.em-sel { display: block; margin: 5px 0; font-weight: 700; font-size: .84rem; } .em-sel select { display: block; width: 100%; padding: 7px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .2); background: #fff; color: #2c2518; font-size: .9rem; }
#emGame.replaying > *:not(canvas):not(#emReplay) { display: none !important; }
.em-replay[hidden] { display: none; }
.em-rep-t { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; background: rgba(15, 22, 18, .66); color: #fff; padding: 9px 16px; border-radius: 14px; } .em-rep-t b { display: block; font-size: 1.7rem; color: #ffe08a; line-height: 1.15; }
.em-rep-b { position: absolute; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
.em-rep-k { display: flex; gap: 8px; justify-content: center; margin-top: 8px; flex-wrap: wrap; } .em-rep-k button { border: 0; border-radius: 11px; padding: 10px 15px; font-weight: 800; background: rgba(15, 22, 18, .82); color: #fff; } #btnVideo { background: #e9b75a; color: #2a1c08; }
.em-film { width: 100%; border: 0; border-radius: 11px; padding: 10px; margin-bottom: 8px; font-weight: 800; background: linear-gradient(180deg, #e9b75a, #c98a35); color: #2a1c08; }
#emGame { -webkit-touch-callout: none; }
.em-crown { color: #8a6b35; font-weight: 700; }
.em-decrees { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .em-decrees button { border: 1px solid rgba(0, 0, 0, .15); background: #ece4cf; color: #2c2518; border-radius: 10px; padding: 7px; text-align: left; } .em-decrees button.on { background: #e9b75a; } .em-decrees button:disabled { opacity: .6; } .em-decrees small { display: block; font-size: .78rem; margin-top: 2px; }
@keyframes emPulse { 50% { box-shadow: 0 0 0 7px rgba(178, 58, 44, .28); } }

.em-goal small { display: block; color: #8a6b35; font-weight: 700; } .em-goal b { display: block; font-size: .96rem; } .em-goal span { display: block; margin-top: 2px; line-height: 1.3; }

.em-side button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(23, 33, 27, .84); color: #fff; font-size: 1.15rem; }

.em-toast { background: rgba(23, 33, 27, .9); color: #fff; padding: 6px 13px; border-radius: 11px; font-size: .9rem; font-weight: 600; text-align: center; animation: emIn .25s; transition: opacity .35s, transform .35s; }
.em-toast.gut { background: rgba(48, 110, 62, .94); } .em-toast.tod { background: rgba(134, 46, 36, .94); }
.em-toast.out { opacity: 0; transform: translateY(-6px); }
@keyframes emIn { from { opacity: 0; transform: translateY(8px); } }

.em-place[hidden], .em-place button[hidden] { display: none; }
.em-place button { border: 0; border-radius: 9px; padding: 7px 11px; background: #3b4e43; color: #fff; font-weight: 800; } .em-place .ok { background: #3f9a57; }

.em-bar-b { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px max(8px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(20, 28, 23, .94), rgba(20, 28, 23, .78)); }
.em-cats { display: flex; gap: 5px; margin-bottom: 6px; overflow-x: auto; }
.em-cats button { flex: none; display: flex; gap: 5px; align-items: center; border: 0; border-radius: 9px; padding: 5px 11px; background: rgba(255, 255, 255, .1); color: #e8e5d8; font-size: .86rem; font-weight: 700; } .em-cats button.on { background: #e9b75a; color: #2a1c08; }
.em-cards { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; } .em-cards::-webkit-scrollbar { display: none; }
.em-card { flex: none; width: 96px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; padding: 5px 4px; text-align: center; }
.em-card i { display: block; font-style: normal; font-size: 1.35rem; line-height: 1.25; } .em-card b { display: block; font-size: .78rem; line-height: 1.15; min-height: 1.15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-card small { display: block; font-size: .74rem; opacity: .95; margin-top: 2px; white-space: nowrap; } .em-card small .miss { color: #ffab8a; }
.em-card.on { background: #c98a35; border-color: #ffd65a; } .em-card.lock { opacity: .55; } .em-card:hover:not(.lock) { background: rgba(255, 255, 255, .16); }

.em-sheet { position: absolute; top: calc(max(8px, env(safe-area-inset-top)) + 84px); right: 60px; width: 290px; max-height: calc(100% - 250px); overflow-y: auto; background: rgba(250, 245, 230, .97); color: #2c2518; border-radius: 15px; padding: 11px 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); font-size: .9rem; }
.em-sheet[hidden] { display: none; }
.em-sheet h3 { margin: 0 24px 4px 0; font-size: 1.1rem; color: #2c2518; } .em-sheet h4 { margin: 10px 0 3px; font-size: .9rem; color: #2c2518; } .em-sheet p { margin: 3px 0; line-height: 1.35; }
.em-x { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .1); color: inherit; }
.em-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(0, 0, 0, .07); } .em-row small { opacity: .75; text-align: right; }
.em-link { background: none; border: 0; padding: 0; color: #2f5f8f; font-weight: 700; text-decoration: underline; text-align: left; }
.em-mute { opacity: .7; } .em-warn { color: #a43b22; font-weight: 700; }
.em-bar { height: 8px; border-radius: 9px; background: rgba(0, 0, 0, .13); overflow: hidden; margin: 5px 0; } .em-bar i { display: block; height: 100%; background: #c98a35; }
.em-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.em-acts button { flex: 1; border: 1px solid rgba(0, 0, 0, .15); background: #ece4cf; color: #2c2518; border-radius: 9px; padding: 7px 8px; font-weight: 700; font-size: .84rem; white-space: nowrap; } .em-acts .on { background: #e9b75a; } .em-acts .bad { color: #a43b22; }

.em-ov { position: fixed; inset: 0; z-index: 60; background: rgba(10, 16, 12, .55); display: flex; align-items: center; justify-content: center; padding: 14px; }
.em-ov[hidden] { display: none; }
.em-pop { position: relative; background: #faf5e6; color: #2c2518; border-radius: 18px; padding: 16px 18px; width: min(100%, 440px); max-height: 88vh; overflow-y: auto; }
.em-pop.wide { width: min(100%, 560px); }
.em-pop h2 { margin: 0 0 8px; color: #2c2518; } .em-pop p { line-height: 1.4; }
.em-pop .em-col button:not(.em-main) { background: #ece4cf; border-color: rgba(0, 0, 0, .15); color: #2c2518; }
.em-pop .em-col { max-width: none; }
.em-tabs { display: flex; gap: 5px; margin-bottom: 8px; } .em-tabs button { flex: 1; border: 0; border-radius: 9px; padding: 7px; background: #ece4cf; color: #2c2518; font-weight: 700; } .em-tabs .on { background: #e9b75a; }
.em-book { max-height: 58vh; overflow-y: auto; }
.em-log { display: flex; gap: 9px; padding: 4px 0; border-bottom: 1px solid rgba(0, 0, 0, .07); font-size: .9rem; } .em-log small { flex: none; width: 62px; opacity: .7; } .em-log.tod span { color: #8c3424; } .em-log.gut span { color: #2f6e3e; }

/* Anzeigen: zwei Spalten, die sich nie überlagern. Neue Warnungen schieben das Ziel einfach nach unten. */
.em-hud { position: absolute; top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.em-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; align-items: flex-start; }
.em-r { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: 0 1 auto; min-width: 0; }
.em-hud button, .em-res, .em-clock, .em-info { pointer-events: auto; touch-action: manipulation; }
.em-res { display: flex; flex-wrap: wrap; gap: 5px; max-width: 100%; }
.em-clock { display: flex; gap: 6px; align-items: stretch; }
.em-info { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 3px 11px; background: rgba(23, 33, 27, .84); color: #fff; padding: 4px 11px; border-radius: 12px; font-size: .88rem; font-weight: 700; }
.em-alerts { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; max-width: 100%; }
.em-alerts:empty { display: none; }
.em-danger, .em-threat, .em-issue { border: 0; font-weight: 800; font-size: .88rem; padding: 7px 12px; border-radius: 10px; color: #fff; text-align: left; line-height: 1.25; max-width: 100%; }
.em-danger { background: #b23a2c; animation: emPulse 1.4s infinite; }
.em-threat { background: #7c2a2a; }
.em-issue { background: #8a6b2a; }
.em-danger[hidden], .em-threat[hidden], .em-issue[hidden] { display: none; }
.em-goal { width: 238px; max-width: 100%; background: rgba(250, 245, 230, .95); color: #2c2518; border-radius: 13px; padding: 8px 12px; font-size: .84rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: auto; }
.em-side { position: absolute; right: 8px; bottom: 142px; display: flex; flex-direction: column; gap: 6px; }
.em-comp { width: 44px; height: 44px; border-radius: 50%; background: rgba(23, 33, 27, .84); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; position: relative; }
.em-comp i { position: absolute; top: 3px; left: 50%; margin-left: -4px; border: 4px solid transparent; border-bottom: 9px solid #e0564f; border-top: 0; }
.em-comp-w { pointer-events: none; }
.em-toasts { position: absolute; bottom: 150px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 130px), 460px); display: flex; flex-direction: column; gap: 5px; pointer-events: none; align-items: center; }
.em-place { position: absolute; bottom: 138px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(23, 33, 27, .92); color: #fff; padding: 7px 8px 7px 14px; border-radius: 13px; font-weight: 700; font-size: .92rem; max-width: 94%; white-space: nowrap; }
.em-rul { min-height: 30px; display: inline-flex; align-items: center; }
.em-card.hint { border-color: #ffd65a; box-shadow: 0 0 0 2px #ffd65a; animation: emHint 1.6s infinite; }
@keyframes emHint { 50% { box-shadow: 0 0 0 5px rgba(255, 214, 90, .35); } }
body.em-playing .pass-toast { top: auto; bottom: 150px; left: auto; right: 62px; translate: 160% 0; z-index: 40; }
body.em-playing .pass-toast.on { translate: 0 0; }

/* Teilschritte, Versorgung, Betriebszustand, Sicherungen */
.em-steps { list-style: none; margin: 6px 0 0; padding: 0; font-size: .8rem; line-height: 1.3; }
.em-steps li { padding: 1px 0; color: #5a4c33; }
.em-steps li.ok { color: #2e6b3a; } .em-steps li.wait { color: #7a6a4c; } .em-steps li.bad { color: #a43b22; font-weight: 700; } .em-steps li.war { color: #a43b22; font-weight: 700; } .em-steps li.war.ok { color: #2e6b3a; }
.em-steps.big { font-size: .88rem; margin: 6px 0 8px; } .em-steps.big li { padding: 2px 0; }
.em-pop .em-steps li { color: inherit; }
.em-state { margin: 6px 0; padding: 6px 9px; border-radius: 9px; font-weight: 700; line-height: 1.3; background: #e9f1e4; color: #2e5b35; }
.em-state.wait { background: #f2ead6; color: #6b5527; } .em-state.bad { background: #f7e1da; color: #a43b22; }
.em-danger { cursor: pointer; } #emStock { cursor: pointer; }
.em-msg { margin: 10px auto 0; max-width: 420px; padding: 9px 12px; border-radius: 11px; background: #24382d; border: 1px solid #4b6b58; font-size: .9rem; line-height: 1.35; }
.em-msg.bad { background: #4a241d; border-color: #9a4a37; }
.em-saves { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 10px auto 0; max-width: 460px; }
.em-sub { padding: 7px 11px; border-radius: 10px; border: 1px solid #4b6b58; background: transparent; color: #f2efe4; font-weight: 600; font-size: .85rem; cursor: pointer; }
.em-sub:hover { background: #2f4a3b; } #btnLowStart { display: block; margin: 9px auto 0; } #btnLowStart[hidden], .em-sub[hidden] { display: none; }
#emSaved.bad { color: #ffb4a2; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .em-danger, .em-card.hint { animation: none; } .em-toast { animation: none; } }

/* Schwierigkeit, Bitten, Rückblick */
.em-diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; max-width: 380px; margin: 0 auto 10px; }
.em-diff button { padding: 8px 6px; border-radius: 12px; border: 1px solid #4b6b58; background: #24382d; color: #f2efe4; text-align: center; }
.em-diff button b { display: block; font-size: .88rem; } .em-diff button small { display: block; margin-top: 2px; font-size: .68rem; line-height: 1.2; opacity: .85; }
.em-diff button.on { background: #3b5c48; border-color: #e9b75a; box-shadow: 0 0 0 1px #e9b75a; }
.em-qs { display: flex; flex-direction: column; gap: 5px; width: 238px; max-width: 100%; }
.em-qs:empty { display: none; }
.em-q { background: rgba(23, 33, 27, .86); color: #f2efe4; border-radius: 11px; padding: 6px 9px; font-size: .76rem; line-height: 1.25; pointer-events: auto; }
.em-q.eil { box-shadow: inset 3px 0 0 #e0564f; }
.em-q small { display: block; margin-top: 2px; color: #cfd8c9; }
.em-q button { margin-top: 4px; padding: 3px 9px; min-height: 28px; border-radius: 8px; border: 0; background: #e9b75a; color: #2a1c08; font-weight: 800; font-size: .74rem; }
.em-q button:disabled { background: #566359; color: #d5dbd2; }
.em-bell { background: #c8531f !important; animation: emPulse 1.4s infinite; }
.em-recap { background: #efe5cb; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: .86rem; }
.em-recap p { margin: 6px 0 0; }
.em-rc-z { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; font-size: .72rem; color: #5a4b2e; }
.em-rc-z b { display: block; font-size: 1.12rem; color: #2c2518; }
.em-pop .em-col button:disabled { opacity: .5; }
.em-pop .em-col button small { font-weight: 500; }
@media (max-width: 720px) { .em-diff button small { display: none; } }

/* Truppen, Vorräte, Bauknopf */
.em-res { cursor: pointer; } .em-chip.more { padding: 3px 7px; opacity: .8; }
.em-fab { display: none; position: absolute; left: 8px; bottom: max(8px, env(safe-area-inset-bottom)); border: 0; border-radius: 13px; padding: 10px 16px; background: linear-gradient(180deg, #e9b75a, #c98a35); color: #2a1c08; font-weight: 800; font-size: .95rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.em-fab.hint { animation: emHint 1.6s infinite; }
.em-bar-x { display: none; position: absolute; top: 5px; right: 6px; width: 32px; height: 30px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 800; z-index: 1; }
#btnTasks { display: none; position: relative; }
.em-dot[data-n]:not([data-n="0"])::after { content: attr(data-n); position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 9px; background: #e0564f; color: #fff; font-size: .66rem; font-weight: 800; text-align: center; }
.em-banner { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); padding: 9px 24px; border-radius: 14px; font-weight: 800; font-size: 1.25rem; white-space: nowrap; color: #fff; pointer-events: none; animation: emIn .25s; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.em-banner[hidden] { display: none; } .em-banner.gut { background: rgba(48, 110, 62, .96); } .em-banner.tod { background: rgba(134, 46, 36, .96); }
.em-foe { background: #f2dfd2; border-radius: 10px; padding: 7px 9px; margin: 4px 0 6px; } .em-foe b { display: block; color: #7c2a2a; } .em-foe span { display: inline-block; margin: 2px 8px 0 0; font-weight: 700; font-size: .84rem; } .em-foe small { display: block; margin-top: 3px; line-height: 1.25; }
.em-mini { flex: none; width: 34px; height: 28px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 8px; background: #ece4cf; padding: 0; } .em-mini.on { background: #e9b75a; }
.em-sheet .em-row { align-items: center; }
.em-tr { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(0, 0, 0, .07); } .em-tr > div { flex: 1; min-width: 0; } .em-tr b { display: block; } .em-tr small { display: block; opacity: .75; line-height: 1.25; }
.em-camp { background: #ece4cf; border-radius: 10px; padding: 5px 9px 8px; margin-top: 5px; } .em-camp .em-row { border: 0; padding: 0; } .em-camp small { display: block; margin: 2px 0 5px; }
.em-go { width: 100%; border: 0; border-radius: 9px; padding: 8px; background: #a8452f; color: #fff; font-weight: 800; } .em-go:disabled { background: #8d8473; }
.em-goods { display: flex; flex-wrap: wrap; gap: 4px; } .em-good { display: inline-flex; gap: 4px; align-items: center; background: #ece4cf; border-radius: 8px; padding: 2px 8px 2px 6px; font-weight: 700; font-variant-numeric: tabular-nums; } .em-good b { font-weight: 400; }
.em-place-t { min-width: 0; } .em-place-t small { display: block; }

/* Handy: Das Spielfeld bleibt frei. Muss am Ende stehen, damit es die Grundregeln überschreibt. */
@media (max-width: 760px), (max-height: 480px) {
  .em-hud { flex-direction: column; gap: 4px; top: max(6px, env(safe-area-inset-top)); left: 6px; right: 6px; }
  .em-r { order: -1; width: 100%; flex-direction: row; align-items: stretch; justify-content: space-between; gap: 4px; }
  .em-l { width: 100%; flex: none; gap: 4px; }
  .em-clock { flex: 1 1 auto; min-width: 0; gap: 4px; justify-content: space-between; }
  .em-sn { flex: 1; min-width: 0; padding: 3px 8px; font-size: .78rem; border-radius: 10px; } .em-sn .em-p { height: 3px; margin-top: 2px; }
  .em-speed { border-radius: 10px; } .em-speed button { min-width: 36px; padding: 0 4px; font-size: .9rem; } .em-speed [data-sp="2"], .em-speed [data-sp="3"] { display: none; }
  .em-info { flex: none; flex-wrap: nowrap; gap: 7px; padding: 3px 8px; font-size: .76rem; border-radius: 10px; white-space: nowrap; }
  #emRuler, #emFocus { display: none; }
  .em-steps { font-size: .74rem; }
  .em-res { flex-wrap: nowrap; overflow: hidden; gap: 3px; } .em-chip { flex: none; font-size: .74rem; padding: 2px 7px 2px 5px; gap: 3px; box-shadow: none; background: rgba(23, 33, 27, .72); }
  .em-alerts { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .em-hud .em-danger, .em-hud .em-threat, .em-hud .em-issue { font-size: .72rem; padding: 3px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 16px); }
  .em-goal, .em-qs { display: none; }
  #emGame.tasks .em-goal { display: block; width: 100%; box-sizing: border-box; font-size: .78rem; padding: 7px 10px; cursor: pointer; }
  #emGame.tasks .em-qs:not(:empty) { display: flex; width: 100%; } .em-q { font-size: .74rem; padding: 5px 8px; }
  .em-side { flex-direction: column; right: 6px; bottom: max(8px, env(safe-area-inset-bottom)); gap: 5px; } .em-side button { width: 40px; height: 40px; background: rgba(23, 33, 27, .68); }
  .em-comp, #btnRotL, #btnRotR { display: none; } #btnTasks { display: block; }
  .em-fab { display: block; }
  .em-bar-b { display: none; padding-top: 5px; } #emGame.drawer .em-bar-b { display: block; }
  .em-bar-x { display: block; }
  #emGame.drawer .em-fab, #emGame.drawer .em-side, #emGame.placing .em-fab, #emGame.placing .em-side { display: none; }
  .em-card { width: 84px; } .em-cats { padding-right: 38px; } .em-cats button span { display: none; } .em-cats button { font-size: 1.05rem; padding: 4px 11px; }
  .em-toasts { top: 100px; bottom: auto; left: 8px; right: 8px; width: auto; transform: none; } .em-toast { font-size: .74rem; padding: 3px 9px; font-weight: 600; }
  .em-place { bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; right: 8px; transform: none; max-width: none; white-space: normal; justify-content: space-between; padding: 6px 7px 6px 11px; font-size: .84rem; }
  .em-place-t { flex: 1; min-width: 0; line-height: 1.25; } .em-place-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: .74rem; opacity: .86; } .em-place button { flex: none; white-space: nowrap; }
  .em-sheet { left: 6px; right: 6px; top: auto; bottom: max(6px, env(safe-area-inset-bottom)); width: auto; max-height: 48%; padding: 8px 12px; font-size: .84rem; }
  .em-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; opacity: .85; }
  .em-banner { top: 128px; font-size: 1rem; padding: 6px 16px; }
  body.em-playing .pass-toast { left: 8px; right: auto; bottom: 62px; translate: -130% 0; transform: scale(.72); transform-origin: left bottom; }
}
@media (max-height: 480px) {
  .em-hud { flex-direction: row; } .em-r { order: 0; width: auto; flex: none; } .em-l { width: auto; flex: 1 1 0; min-width: 0; }
  .em-sn { min-width: 74px; }
  .em-sheet { top: 6px; bottom: 6px; left: auto; right: 52px; width: 280px; max-height: none; }
  .em-side { flex-direction: row; } .em-side button { width: 36px; height: 36px; }
  .em-toasts { top: 66px; left: 25%; right: 25%; } .em-banner { top: 66px; }
  .em-card { width: 80px; padding: 3px; } .em-card i { font-size: 1.05rem; } .em-cats { margin-bottom: 3px; }
}
/* Sprachknopf im dunklen Kopf: heller Knopf braucht dunkle Schrift (sonst weiß auf weiß) */
.em-body .site-header .lang-btn, .em-body .site-header .lang-btn * { color: #14241b; }
/* Menü: Bild aus dem Spiel oben in der Karte (13.11.2026) */
.em-hero { padding-top: 186px !important; background-image: linear-gradient(180deg, rgba(24, 40, 31, 0) 0, rgba(24, 40, 31, .55) 110px, #18281f 180px), url(/empires/og.jpg) !important; background-position: 0 0, top center !important; background-size: auto, 100% auto !important; background-repeat: no-repeat !important; overflow: hidden; }
@media (min-width: 700px) { .em-hero { padding-top: 250px !important; background-image: linear-gradient(180deg, rgba(24, 40, 31, 0) 0, rgba(24, 40, 31, .55) 160px, #18281f 244px), url(/empires/og.jpg) !important; } }
