/* Písma (SIL Open Font License 1.1) z balíčků @fontsource: Barlow, Barlow Semi Condensed, JetBrains Mono, Roboto, Roboto Condensed, Noto Sans SC */
@font-face{font-family:'Barlow';font-style:normal;font-display:swap;font-weight:400;src:url(../assets/fonts/barlow-latin-ext-400-normal.122b24bc2a.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-display:swap;font-weight:400;src:url(../assets/fonts/barlow-latin-400-normal.b0a8ad37ac.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-display:swap;font-weight:400;src:url(../assets/fonts/roboto-cyrillic-400-normal.fe349e5377.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Barlow';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/barlow-latin-ext-500-normal.3facdf66b6.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/barlow-latin-500-normal.cd759df8ef.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/roboto-cyrillic-500-normal.0991339551.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/barlow-semi-condensed-latin-ext-500-normal.5e07c7d621.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/barlow-semi-condensed-latin-500-normal.0d7513795e.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/roboto-condensed-cyrillic-500-normal.ef705c9547.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:600;src:url(../assets/fonts/barlow-semi-condensed-latin-ext-600-normal.5a58c6c988.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:600;src:url(../assets/fonts/barlow-semi-condensed-latin-600-normal.f158417e92.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:600;src:url(../assets/fonts/roboto-condensed-cyrillic-600-normal.7c6c3d668f.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:700;src:url(../assets/fonts/barlow-semi-condensed-latin-ext-700-normal.109b73c772.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:700;src:url(../assets/fonts/barlow-semi-condensed-latin-700-normal.fb958c8c20.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:700;src:url(../assets/fonts/roboto-condensed-cyrillic-700-normal.7b9ef13103.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/jetbrains-mono-latin-ext-500-normal.879df9319f.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/jetbrains-mono-latin-500-normal.cb182feeed.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:500;src:url(../assets/fonts/jetbrains-mono-cyrillic-500-normal.26c9ed511d.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:600;src:url(../assets/fonts/jetbrains-mono-latin-ext-600-normal.90899aac1c.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:600;src:url(../assets/fonts/jetbrains-mono-latin-600-normal.400c6bfda1.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:600;src:url(../assets/fonts/jetbrains-mono-cyrillic-600-normal.b450f960a0.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Barlow';font-style:normal;font-display:swap;font-weight:100 550;src:url(../assets/fonts/noto-sans-sc-zaz-400.64e9352721.woff2) format('woff2');unicode-range:U+2E80-2FDF,U+3000-303F,U+3040-30FF,U+3100-312F,U+31C0-31EF,U+3200-33FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:100 550;src:url(../assets/fonts/noto-sans-sc-zaz-400.64e9352721.woff2) format('woff2');unicode-range:U+2E80-2FDF,U+3000-303F,U+3040-30FF,U+3100-312F,U+31C0-31EF,U+3200-33FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:100 550;src:url(../assets/fonts/noto-sans-sc-zaz-400.64e9352721.woff2) format('woff2');unicode-range:U+2E80-2FDF,U+3000-303F,U+3040-30FF,U+3100-312F,U+31C0-31EF,U+3200-33FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
@font-face{font-family:'Barlow';font-style:normal;font-display:swap;font-weight:551 900;src:url(../assets/fonts/noto-sans-sc-zaz-700.ab90ef7c63.woff2) format('woff2');unicode-range:U+2E80-2FDF,U+3000-303F,U+3040-30FF,U+3100-312F,U+31C0-31EF,U+3200-33FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
@font-face{font-family:'Barlow Semi Condensed';font-style:normal;font-display:swap;font-weight:551 900;src:url(../assets/fonts/noto-sans-sc-zaz-700.ab90ef7c63.woff2) format('woff2');unicode-range:U+2E80-2FDF,U+3000-303F,U+3040-30FF,U+3100-312F,U+31C0-31EF,U+3200-33FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:551 900;src:url(../assets/fonts/noto-sans-sc-zaz-700.ab90ef7c63.woff2) format('woff2');unicode-range:U+2E80-2FDF,U+3000-303F,U+3040-30FF,U+3100-312F,U+31C0-31EF,U+3200-33FF,U+3400-4DBF,U+4E00-9FFF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF}

/* plynulý přechod zpátky do Herny (Chrome, Edge, Safari), stejně jako web a Železo a popel */
@view-transition { navigation: auto; }
:root { --acc: #ffb45c; --glass: rgba(14, 18, 16, 0.72); --line: rgba(255, 255, 255, 0.12); --tx: #f3efe4; --mut: #b9b3a3; --bad: #ff8a6a; --ok: #a8e08a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0d100e; color: var(--tx); font-family: 'Barlow', system-ui, sans-serif; overflow: hidden; }
button { font-family: inherit; }
#app { position: fixed; inset: 0; display: flex; flex-direction: column; }
#view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#cv { position: absolute; display: block; touch-action: none; }
#cv.place { cursor: crosshair; } #cv.hit { cursor: pointer; } #cv.brush { cursor: none; }
/* horní nápověda */
#hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); max-width: min(760px, 90%); padding: 7px 14px 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; font: 500 14px/1.35 'Barlow', sans-serif; color: var(--tx); pointer-events: none; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 16px; }
#hint b { font: 700 15px 'Barlow Semi Condensed', sans-serif; color: var(--acc); margin-right: 6px; letter-spacing: 0.02em; }
#hint.bad { border-color: rgba(255,138,106,0.6); } #hint.bad em { color: var(--bad); font-style: normal; font-weight: 500; }
#hint em.si { display: block; font: 500 12.5px 'Barlow', sans-serif; font-style: normal; color: #d8e8c8; margin-top: 1px; white-space: normal; }
#galTabs { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: none; }
#galTabs.on { display: inline-flex; }
/* oznámení */
#toasts { position: absolute; right: 12px; top: 12px; transition: right 0.2s; width: min(360px, 40%); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 8px 12px 9px 8px; background: rgba(14,18,16,0.86); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 10px; font: 400 14px/1.35 'Barlow', sans-serif; color: var(--tx); box-shadow: 0 6px 20px rgba(0,0,0,0.3); animation: tin 0.35s ease-out; transition: opacity 0.6s, transform 0.6s; }
.toast canvas { flex: 0 0 auto; width: 44px; height: 44px; background: rgba(255,255,255,0.06); border-radius: 8px; }
.toast.out { opacity: 0; transform: translateX(20px); }
@keyframes tin { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
/* popisek */
#tip { position: absolute; left: 0; top: 0; will-change: transform; max-width: 300px; padding: 8px 12px 9px; background: rgba(14,18,16,0.92); border: 1px solid var(--line); border-radius: 10px; pointer-events: none; box-shadow: 0 6px 24px rgba(0,0,0,0.35); z-index: 5; }
#tip b { display: block; font: 700 17px 'Barlow Semi Condensed', sans-serif; color: var(--tx); }
#tip span { display: block; margin-top: 2px; font: 400 13.5px/1.4 'Barlow', sans-serif; color: var(--mut); }
#tip i { display: block; margin-top: 4px; font: 600 11.5px 'JetBrains Mono', monospace; font-style: normal; color: var(--acc); }
/* kdo přijde */
#fauna { position: absolute; left: 12px; bottom: 12px; width: min(470px, 92%); max-height: calc(100% - 70px); overflow: auto; padding: 12px 12px 6px; background: rgba(14,18,16,0.92); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); z-index: 4; }
#fauna h3 { margin: 0 0 2px; font: 700 18px 'Barlow Semi Condensed', sans-serif; }
#fauna p.sub { margin: 0 0 8px; font: 400 13px/1.4 'Barlow', sans-serif; color: var(--mut); }
.fa { display: flex; gap: 10px; align-items: center; padding: 6px 4px; border-top: 1px solid rgba(255,255,255,0.07); }
.fa canvas { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 8px; background: rgba(255,255,255,0.05); }
.fa.no canvas { filter: grayscale(1) brightness(0.55); }
.fa b { display: block; font: 600 15px 'Barlow Semi Condensed', sans-serif; } .fa span { display: block; font: 400 12.5px/1.35 'Barlow', sans-serif; color: var(--mut); }
.fa em { margin-left: auto; font: 600 11px 'JetBrains Mono', monospace; font-style: normal; color: var(--ok); white-space: nowrap; } .fa.no em { color: #8a8576; }
.langwait { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(8,7,14,0.86); color: var(--acc); font: 600 24px 'Barlow Semi Condensed', sans-serif; letter-spacing: 0.04em; cursor: progress; animation: lwPulse 1.2s ease-in-out infinite alternate; }
@keyframes lwPulse { from { color: var(--acc); } to { color: #fff3df; } }
#load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 600 18px 'Barlow Semi Condensed', sans-serif; color: var(--acc); background: rgba(13,16,14,0.84); letter-spacing: 0.04em; z-index: 6; }
/* okno s otázkou (místo confirm, který náhled v prohlížeči může blokovat) */
#dlg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8,10,9,0.55); z-index: 8; }
#dlg .box { width: min(460px, 92%); padding: 16px 18px 14px; background: rgba(14,18,16,0.97); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
#dlg b { display: block; font: 700 20px 'Barlow Semi Condensed', sans-serif; }
#dlg p { margin: 6px 0 14px; font: 400 14px/1.45 'Barlow', sans-serif; color: var(--mut); }
#dlgB { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; } #dlgB .bt { font-size: 14px; padding: 6px 12px; }
#perf { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 8px 10px; background: rgba(8,10,9,0.88); border: 1px solid var(--line); border-radius: 8px; font: 500 11.5px/1.45 'JetBrains Mono', monospace; color: #cfe8c0; z-index: 7; pointer-events: none; white-space: pre; }
[hidden] { display: none !important; }
/* spodní lišta */
#dock { flex: 0 0 auto; background: linear-gradient(#141a16, #101411); border-top: 1px solid var(--line); padding: 6px 10px 8px; }
.r1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 8px; margin-right: 4px; }
.brand b { font: 700 19px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: 0.01em; }
.brand span { font: 500 10.5px 'JetBrains Mono', monospace; color: var(--acc); text-transform: uppercase; letter-spacing: 0.08em; }
.stats { display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px 5px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--tx); }
.chip b { font: 700 16px 'Barlow Semi Condensed', sans-serif; font-variant-numeric: tabular-nums; }
.chip span { font: 500 10.5px 'JetBrains Mono', monospace; color: var(--mut); text-transform: uppercase; letter-spacing: 0.05em; }
button.chip { cursor: pointer; } button.chip:hover, button.chip.on { border-color: rgba(255,180,92,0.6); }
.chip.bump b { animation: bump 0.35s; } @keyframes bump { 40% { color: var(--acc); } }
.sp { flex: 1; }
.seg { display: inline-flex; background: rgba(0,0,0,0.3); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button, .btn { font: 600 14px 'Barlow Semi Condensed', sans-serif; color: var(--mut); background: transparent; border: 0; border-radius: 7px; padding: 5px 11px; cursor: pointer; letter-spacing: 0.02em; }
.btn { background: rgba(0,0,0,0.3); }
.seg button:hover, .btn:hover { color: var(--tx); background: rgba(255,255,255,0.08); }
.seg button.on, .btn.on { color: #1b1408; background: var(--acc); }
.seg button:disabled { opacity: 0.35; cursor: default; }
button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.r2 { display: flex; align-items: center; gap: 10px; margin-top: 6px; height: 76px; }
.cats { display: grid; grid-template-columns: repeat(5, auto); gap: 3px; flex: 0 0 auto; }
.cats button { font: 600 13px 'Barlow Semi Condensed', sans-serif; color: var(--mut); background: rgba(255,255,255,0.04); border: 1px solid transparent; border-radius: 7px; padding: 3px 9px; cursor: pointer; text-align: left; }
.cats button:hover { color: var(--tx); } .cats button.on { color: var(--tx); border-color: rgba(255,180,92,0.55); background: rgba(255,180,92,0.12); }
#rooms { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
#rooms .lbl { font: 700 12px 'Barlow Semi Condensed', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }
#segRoom { padding: 4px; gap: 4px; }
#segRoom button { font-size: 16px; padding: 10px 18px; }
#segRoom button i { font-style: normal; font-weight: 500; font-size: 13px; margin-left: 8px; opacity: 0.75; }
#rooms .kb { font: 500 13px 'Barlow', sans-serif; color: var(--mut); }
.items { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; padding: 2px; scrollbar-width: thin; }
.it { position: relative; flex: 0 0 auto; width: 74px; height: 72px; padding: 3px 2px 0; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--tx); cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.it canvas { width: 46px; height: 46px; }
.it span { font: 600 11.5px/1.1 'Barlow Semi Condensed', sans-serif; text-align: center; max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mut); }
.it i { position: absolute; top: 3px; right: 4px; font: 600 10.5px 'JetBrains Mono', monospace; font-style: normal; color: var(--acc); }
.it:hover { background: rgba(255,255,255,0.09); } .it:hover span { color: var(--tx); }
.it.on { border-color: var(--acc); background: rgba(255,180,92,0.14); } .it.on span { color: var(--tx); }
.it.poor { opacity: 0.45; } .it.poor i { color: var(--bad); }
.it.own i { color: var(--ok); }
/* počasí, čas a mapy vlevo nahoře */
#hud { position: absolute; left: 12px; top: 12px; padding: 8px 12px 9px 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; min-width: 230px; }
.hrow { display: flex; align-items: center; gap: 8px; }
#wxIcon { width: 42px; height: 42px; flex: 0 0 auto; }
#hud b { display: block; font: 700 19px/1.05 'Barlow Semi Condensed', sans-serif; }
#hud .tm { font: 600 14px 'JetBrains Mono', monospace; color: var(--acc); }
#hud .tp { margin-left: auto; font: 700 24px 'Barlow Semi Condensed', sans-serif; font-variant-numeric: tabular-nums; }
#hudWx { margin-top: 3px; font: 500 13px 'Barlow', sans-serif; color: var(--mut); }
#fc { display: flex; gap: 6px; margin-top: 6px; }
.fd { flex: 1; text-align: center; padding: 3px 2px 4px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.fd canvas { width: 26px; height: 26px; display: block; margin: 0 auto; }
.fd i { display: block; font: 600 10.5px 'JetBrains Mono', monospace; font-style: normal; color: var(--mut); text-transform: uppercase; }
.fd em { font: 600 12px 'Barlow Semi Condensed', sans-serif; font-style: normal; } .fd em s { text-decoration: none; color: #8ab4e8; }
/* mapy pod sebou v levém pruhu vedle obrazu, aby nezakrývaly dům ani záhony */
#maps { position: absolute; left: 12px; display: inline-flex; flex-direction: column; align-items: stretch; }
#maps span { font: 600 11px 'JetBrains Mono', monospace; color: var(--mut); text-transform: uppercase; padding: 2px 6px 3px; }
#maps button { text-align: left; }
#legend { position: absolute; left: 12px; padding: 6px 10px; background: var(--glass); border: 1px solid var(--line); border-radius: 10px; font: 500 12px 'Barlow', sans-serif; color: var(--mut); pointer-events: none; }
#legend .bar { height: 8px; width: 210px; border-radius: 4px; margin: 4px 0 2px; }
#legend .lb { display: flex; justify-content: space-between; font: 600 10.5px 'JetBrains Mono', monospace; }
/* panely vpravo */
#panel { position: absolute; right: 12px; top: 12px; bottom: 12px; width: min(400px, 44%); display: flex; flex-direction: column; background: rgba(14,18,16,0.94); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.45); z-index: 4; }
#panel header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; }
#panel header h3 { margin: 0; font: 700 19px 'Barlow Semi Condensed', sans-serif; flex: 1; }
#panel header button { font: 700 16px 'Barlow Semi Condensed', sans-serif; color: var(--mut); background: transparent; border: 0; cursor: pointer; padding: 2px 8px; }
#panel .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 12px 6px; }
#panel .tabs button { font: 600 12.5px 'Barlow Semi Condensed', sans-serif; color: var(--mut); background: rgba(255,255,255,0.04); border: 1px solid transparent; border-radius: 7px; padding: 4px 6px; cursor: pointer; }
#panel .tabs button.on { color: var(--tx); border-color: rgba(255,180,92,0.55); background: rgba(255,180,92,0.12); }
#pbody { overflow: auto; padding: 0 12px 12px; flex: 1; scrollbar-width: thin; }
.row { display: flex; gap: 10px; align-items: center; padding: 7px 2px; border-top: 1px solid rgba(255,255,255,0.07); }
.row canvas { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 8px; background: rgba(255,255,255,0.05); }
.ctx { color: var(--tx); }
.row .tx { flex: 1; min-width: 0; } .row .tx b { display: block; font: 600 14.5px 'Barlow Semi Condensed', sans-serif; } .row .tx span { display: block; font: 400 12.5px/1.35 'Barlow', sans-serif; color: var(--mut); }
.row .tx em { font: 600 10.5px 'JetBrains Mono', monospace; font-style: normal; color: var(--ok); text-transform: uppercase; }
.row .pr { font: 600 13px 'JetBrains Mono', monospace; color: var(--acc); white-space: nowrap; text-align: right; }
.row.off { opacity: 0.5; }
.bt { font: 600 13px 'Barlow Semi Condensed', sans-serif; color: #1b1408; background: var(--acc); border: 0; border-radius: 7px; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.bt.gh { color: var(--tx); background: rgba(255,255,255,0.09); } .bt:disabled { opacity: 0.4; cursor: default; }
.bts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.sec { margin: 10px 0 2px; font: 600 11px 'JetBrains Mono', monospace; color: var(--acc); text-transform: uppercase; letter-spacing: 0.06em; }
.row .tx span.mon { display: flex; gap: 2px; margin: 4px 0 2px; } .mon i { display: block; width: 10px; height: 6px; border-radius: 2px; background: rgba(255,255,255,0.09); }
.mon i.s, .legend i.s { background: #7fc35a; } .mon i.g, .legend i.g { background: #6fa8dc; } .mon i.p, .legend i.p { background: #d9b23a; } .mon i.h, .legend i.h { background: #e8833a; } .mon i.now, .legend i.now { box-shadow: 0 0 0 1.5px #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 2px 2px; font: 500 12px 'Barlow', sans-serif; color: var(--mut); } .legend i { display: inline-block; width: 10px; height: 6px; border-radius: 2px; margin-right: 5px; background: rgba(255,255,255,0.09); }
.row .tx span.have { font: 600 11.5px 'Barlow', sans-serif; color: var(--acc); }
.sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; } .sum div { background: rgba(255,255,255,0.06); border-radius: 9px; padding: 6px 9px; } .sum span { display: block; font: 500 11.5px 'Barlow', sans-serif; color: var(--mut); } .sum b { font: 700 16px 'Barlow Semi Condensed', sans-serif; }
.pos { color: var(--ok); } .neg { color: var(--bad); } .row .tx i.pos, .row .tx i.neg { font-style: normal; font-weight: 600; }
.bt.wide { display: block; width: 100%; margin: 6px 0; padding: 8px 10px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0; } .chips.grp .bt { padding: 3px 10px; font-size: 12.5px; } .chips.grp .bt.on { background: var(--acc, #e9a23b); color: #1c1a14; border-color: transparent; } .chips span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 999px; background: rgba(255,255,255,0.06); font: 500 12.5px 'Barlow', sans-serif; } .chips canvas { width: 22px; height: 22px; } .chips b { font: 600 12px 'JetBrains Mono', monospace; color: var(--acc); }
.kv.tot { border-top: 1px solid rgba(255,255,255,0.2); }
.row.sel { background: rgba(255,180,92,0.08); border-radius: 8px; } #pbody select[data-move] { margin-top: 5px; max-width: 100%; } .kv.tot span { font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 8px; padding: 3px 2px; font: 400 13.5px 'Barlow', sans-serif; border-top: 1px solid rgba(255,255,255,0.06); } .kv b { font: 600 13.5px 'Barlow Semi Condensed', sans-serif; }
.need { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 2px 8px; margin-top: 4px; font: 500 12px 'Barlow', sans-serif; color: var(--mut); }
.need i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; } .need i u { display: block; height: 100%; background: var(--ok); }
.need i u.lo { background: var(--bad); } .need i u.mid { background: #e8c24a; }
.pet { padding: 8px 2px; border-top: 1px solid rgba(255,255,255,0.08); } .pet .hd { display: flex; gap: 10px; align-items: center; } .pet canvas { width: 44px; height: 44px; border-radius: 8px; background: rgba(255,255,255,0.05); }
.pet .hd b { font: 700 16px 'Barlow Semi Condensed', sans-serif; display: block; }
.pet canvas.por { width: 64px; height: 64px; border-radius: 10px; flex: none; } .pet .who { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .pet .hd b { font-size: 18px; }
.pet em.mood { font: italic 500 12.5px 'Barlow', sans-serif; padding: 1px 7px; border-radius: 9px; align-self: flex-start; margin-top: 2px; } .mood.ok, .chip.ok { background: rgba(120,200,110,0.16); color: #bfe8a8; } .mood.warn, .chip.warn { background: rgba(232,194,74,0.16); color: #f0d27a; } .mood.bad, .chip.bad { background: rgba(230,90,80,0.18); color: #ff9c8f; }
.pet .chip { font: 500 12px 'Barlow', sans-serif; padding: 1px 7px; border-radius: 9px; } .pet.sel { background: rgba(255,180,92,0.08); border-radius: 10px; outline: 1px solid rgba(255,180,92,0.35); }
.pet .now { display: flex; gap: 8px; align-items: baseline; margin-top: 7px; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,0.04); } .pet .now > span { font: 700 12px 'Barlow', sans-serif; color: var(--mut); text-transform: uppercase; letter-spacing: 0.04em; } .pet .now em { font: italic 400 12.5px 'Barlow', sans-serif; color: var(--mut); } .pet .now .bts { margin-top: 0; }
.pneed { display: grid; grid-template-columns: 58px 1fr 26px; align-items: center; gap: 3px 8px; margin: 8px 0 4px; font: 500 12px 'Barlow', sans-serif; color: var(--mut); } .pneed i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; } .pneed i u { display: block; height: 100%; background: var(--ok); } .pneed i u.lo { background: var(--bad); } .pneed i u.mid { background: #e8c24a; } .pneed b { font: 600 12px 'Barlow', sans-serif; text-align: right; color: var(--ink, #e9e4d6); }
.pet .grp { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: baseline; margin-top: 4px; } .pet .grp > span { font: 600 12px 'Barlow', sans-serif; color: var(--mut); } .pet .grp .bts { margin-top: 0; } .pet .grp em { font: italic 400 12px 'Barlow', sans-serif; color: var(--mut); align-self: center; } .pet .hd span { font: 400 12.5px 'Barlow', sans-serif; color: var(--mut); }
select, input[type=range] { accent-color: var(--acc); }
select { font: 600 13px 'Barlow Semi Condensed', sans-serif; background: #1d241f; color: var(--tx); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.it b.n { position: absolute; top: 3px; left: 5px; font: 600 10.5px 'JetBrains Mono', monospace; color: var(--ok); }
@media (max-width: 1180px) { .brand span { display: none; } .stats .chip span { display: none; } .cats { grid-template-columns: repeat(3, auto); } #hud { min-width: 0; } }
/* hlavní nabídka */
#menu { position: fixed; inset: 0; z-index: 7; display: flex; align-items: stretch; background: linear-gradient(90deg, rgba(8,11,9,0.86) 0%, rgba(8,11,9,0.62) 34%, rgba(8,11,9,0.08) 62%, rgba(8,11,9,0) 100%); }
#menu.pause { background: rgba(8,11,9,0.74); justify-content: center; }
#menu.ttl { background: none; overflow: hidden; } #mBg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: none; image-rendering: pixelated; } #menu .mwrap { position: relative; z-index: 1; }
#app.menuon #toasts, #app.menuon #tip, #app.menuon #hint { visibility: hidden; }
#menu[hidden] { display: none; }
.mwrap { display: flex; align-items: center; padding: 4vh 5vw; width: 100%; }
#menu.pause .mwrap { justify-content: center; }
.mmain { width: min(720px, 92vw); display: flex; flex-direction: column; gap: 10px; }
.mlogo { margin: 0 0 4px; font: 700 clamp(64px, 7.8vw, 132px)/0.95 'Barlow Semi Condensed', sans-serif; color: #fff3df; letter-spacing: 0.005em; text-shadow: 0 5px 0 rgba(30,14,38,0.9), 0 0 38px rgba(255,160,110,0.35); }
.mtag { margin: 0 0 24px; font: 400 clamp(16px, 1.3vw, 20px)/1.45 'Barlow', sans-serif; color: #e8dfcd; text-shadow: 0 2px 0 rgba(12,8,20,0.85), 0 0 12px rgba(0,0,0,0.6); max-width: 480px; }
.mlogo.long { font-size: clamp(52px, 5.8vw, 98px); } #menu.pause .mlogo { font-size: clamp(44px, 4.8vw, 76px); } #menu.pause .mlogo.long { font-size: clamp(38px, 3.9vw, 60px); } #menu.pause .mtag { display: none; }
.mbtns { display: flex; flex-direction: column; gap: 2px; max-width: 460px; }
.mb { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left; width: 100%; padding: 6px 0 7px 26px; font: 600 clamp(20px, 1.7vw, 28px) 'Barlow Semi Condensed', sans-serif; color: #f3ede0; background: none; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; letter-spacing: 0.02em; text-shadow: 0 3px 0 rgba(12,8,20,0.9), 0 0 16px rgba(0,0,0,0.6); transition: color 0.15s, transform 0.15s; }
.mb::before { content: ''; position: absolute; left: 4px; top: calc(6px + 0.62em); width: 9px; height: 9px; margin-top: -4px; background: var(--acc); box-shadow: 0 2px 0 rgba(12,8,20,0.9); transform: rotate(45deg) scale(0); transition: transform 0.15s; }
.mb small { font: 500 clamp(13px, 0.95vw, 15px) 'Barlow', sans-serif; color: #d2c8b4; letter-spacing: 0.01em; text-shadow: 0 2px 0 rgba(12,8,20,0.85); }
.mb:hover, .mb:focus-visible { color: #ffd6a0; transform: translateX(6px); outline: none; } .mb:hover::before, .mb:focus-visible::before { transform: rotate(45deg) scale(1); }
.mb.main { font-size: clamp(25px, 2.2vw, 37px); color: var(--acc); }
.mb.main:hover, .mb.main:focus-visible { color: #ffdcae; }
.mb.ln { padding-top: 12px; font-size: clamp(16px, 1.2vw, 19px); color: #bdb2a0; }
.mb:disabled { opacity: 0.45; cursor: default; transform: none; } .mb:disabled::before { transform: rotate(45deg) scale(0); }
.mfoot { margin-top: 10px; font: 500 12px 'JetBrains Mono', monospace; color: rgba(243,239,228,0.55); }
.mpage { width: min(760px, 94vw); max-height: 86vh; display: flex; flex-direction: column; background: rgba(14,18,16,0.95); border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.mpage[hidden] { display: none; }
.mpage header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
.mpage h2 { margin: 0; font: 700 26px 'Barlow Semi Condensed', sans-serif; }
.mpage header .bt { font-size: 15px; padding: 6px 14px; }
#mPB { overflow: auto; padding: 6px 20px 18px; }
#mPB h3 { margin: 16px 0 4px; font: 700 18px 'Barlow Semi Condensed', sans-serif; color: var(--acc); letter-spacing: 0.02em; }
#mPB p { margin: 4px 0 8px; font: 400 15px/1.5 'Barlow', sans-serif; color: #ddd7c6; }
#mPB p.snote { font-size: 13px; color: var(--mut); }
#mPB p.snow { font: 500 13px 'Barlow', sans-serif; color: var(--mut); margin: 10px 0 4px; }
.sgrid { display: grid; grid-template-columns: minmax(150px, auto) 1fr 52px; gap: 8px 14px; align-items: center; margin: 6px 0 10px; }
.sgrid label { font: 500 15px 'Barlow', sans-serif; } .sgrid output { font: 500 13px 'JetBrains Mono', monospace; color: var(--mut); text-align: right; }
.sgrid input[type=range] { width: 100%; }
#mPB .chk { display: flex; align-items: center; gap: 6px; font: 400 14.5px 'Barlow', sans-serif; margin: 4px 0; cursor: pointer; }
.sbts { display: flex; gap: 8px; margin: 4px 0 6px; } .sbts .bt { font-size: 14px; padding: 5px 12px; }
#mLangSel { font-size: 15px; padding: 5px 8px; margin: 4px 0 6px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; margin: 6px 0 4px; }
.keys kbd { font: 600 13px 'JetBrains Mono', monospace; color: var(--tx); background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; white-space: nowrap; justify-self: start; }
.keys span { font: 400 14.5px 'Barlow', sans-serif; color: #ddd7c6; }
ul.cred { margin: 4px 0 8px; padding-left: 18px; } ul.cred li { font: 400 14px/1.5 'Barlow', sans-serif; color: #ddd7c6; margin: 2px 0; } ul.cred b { color: var(--tx); font-weight: 600; }
#mPB a { color: var(--acc); }
.mlang { position: absolute; right: 18px; top: 16px; z-index: 2; }
#mLangB { font: 600 15px 'Barlow Semi Condensed', sans-serif; color: var(--tx); background: rgba(14,18,16,0.78); border: 1px solid var(--line); border-radius: 9px; padding: 7px 13px; cursor: pointer; }
#mLangB:hover, #mLangB:focus-visible { border-color: rgba(255,180,92,0.55); outline: none; }
#mLangL { position: absolute; right: 0; top: calc(100% + 6px); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; min-width: 280px; background: rgba(14,18,16,0.97); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#mLangL[hidden] { display: none; }
#mLangL button { font: 500 14.5px 'Barlow', sans-serif; text-align: left; color: var(--tx); background: transparent; border: 0; border-radius: 7px; padding: 6px 10px; cursor: pointer; }
#mLangL button:hover, #mLangL button:focus-visible { background: rgba(255,255,255,0.08); outline: none; } #mLangL button.on { color: var(--acc); font-weight: 600; }
#app.title #dock, #app.title #hud, #app.title #hint, #app.title #maps, #app.title #legend, #app.title #toasts, #app.title #fauna, #app.title #tip, #app.title #galTabs { display: none !important; }
#app.title #cv { cursor: default; }
@media (max-height: 640px) { .mlogo { font-size: 54px; } .mtag { margin-bottom: 8px; } .mb { padding: 3px 0 4px 24px; } }
