/* 01_zaklad.css – Základ stránky, přihlášení, herní plocha a souboj.
   Sloučeno z: 00_zaklad.css, 01_login.css, 02_hra.css, 03_souboj.css, 04_ai_obrazky_se_zmensuji_hladce_.css, 05_takticky_souboj.css (pořadí zachováno). */

/* ===== 00_zaklad.css ===== */
/* :root – hodnoty jsou v 00_tokens.css */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: var(--fs-s)/1.45 var(--font); }
body { background-image: radial-gradient(circle at 50% 0, #1d1530 0, transparent 60%); }
/* tlačítka a pole bez vlastní velikosti nemají prohlížečových 13,33 px, ale velikost ze stupnice */
:where(button, input, select, textarea) { font-size: var(--fs-s); }
canvas, img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.hidden { display: none !important; }
.screen { min-height: 100vh; }
.panel { background: var(--panel); border: 2px solid var(--line); box-shadow: inset 0 0 0 1px #000, 0 4px 0 #000; padding: 10px; }
h1, h2, h3 { margin: 6px 0; letter-spacing: 1px; }
h2 { font-size: var(--fs-m); color: var(--gold); border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
h3 { font-size: var(--fs-s); color: var(--cyan); }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input { background: #0d0c13; color: var(--text); border: 2px solid var(--line); padding: 7px 9px; font: inherit; width: 100%; margin: 4px 0; }
input:focus { outline: none; border-color: var(--gold); }
.btn { padding: 6px 11px; font: inherit;
  cursor: pointer; position: relative; overflow: hidden; }
.btn:active { transform: translateY(1px); }
.btn.danger { border-color: #8a2a2a; background: linear-gradient(#5a2020, #3a1414); }
.btn.small { padding: 3px 7px; font-size: var(--fs-s); }
.btn:disabled { opacity: .45; cursor: default; }
.btn .cd { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--cyan); }
.btn .cdtxt { color: var(--cyan); font-size: var(--fs-xs); margin-left: 4px; }

/* ===== 01_login.css ===== */
/* login */
#scr-login { display: flex; align-items: center; justify-content: center; }
.login-box { width: 420px; text-align: center; }
#logo-scene { width: 100%; border: 2px solid #000; }
.logo { font-size: var(--fs-xl); color: var(--gold); text-shadow: 3px 3px 0 #5a2a00, 0 0 18px #ff9a2f55; margin: 10px 0 0; }
.sub { color: var(--cyan); margin-top: 2px; }
.hint { color: var(--muted); font-size: var(--fs-xs); }
.wide { max-width: 980px; margin: 20px auto; }
.char-list { display: flex; gap: 10px; flex-wrap: wrap; }
.char-card { background: var(--panel2); border: 2px solid var(--line); padding: 8px; cursor: pointer; width: 150px; text-align: center; }
.char-card:hover { border-color: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.card { background: var(--panel2); border: 2px solid var(--line); padding: 7px; cursor: pointer; font-size: var(--fs-s); }
.card.sel { border-color: var(--gold); background: #2a2238; }
.card b { color: var(--gold); }

/* RD-03: shared atlas tile is 3:4; the inner surface covers its frame without stretching. */
.character-art { position: relative; overflow: hidden; min-width: 0; min-height: 0; container-type: size; background: #101c28; }
.character-art > span { display: block; position: absolute; left: 50%; top: 50%; width: max(100cqw, 75cqh); height: max(133.333333cqw, 100cqh); transform: translate(-50%, -50%); background-image: var(--portrait-image); background-size: 400% 200%; background-position: var(--portrait-x) var(--portrait-y); background-repeat: no-repeat; }
.character-art-fallback img { width: 100%; height: 100%; object-fit: contain; }
.character-art.character-hero > span { top: 8%; transform: translate(-50%, -8%); }
.character-icon { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; filter: invert(87%) sepia(22%) saturate(660%) hue-rotate(348deg) brightness(100%); }
#scr-chars.character-screen { padding: 10px 14px; gap: 0; color: #f5ead5; font-family: var(--font-ui); font-size: var(--fs-l); background: #0a121b url('../assets/ui/foundation-stone.png') repeat; }
#scr-chars.character-screen > * { min-height: 0; }
#scr-chars.character-screen h1, #scr-chars.character-screen h2, #scr-chars.character-screen h3 { letter-spacing: 0; line-height: 1.2; border: 0; padding: 0; }
#scr-chars.character-screen h1 { font-size: clamp(27px, 2.5vw, 38px); }
#scr-chars.character-screen h2 { font-size: clamp(23px, 2.1vw, 32px); color: #f8ebce; }
#scr-chars.character-screen h3 { color: #eac975; font-size: var(--fs-xl); margin: 8px 0 6px; }
#scr-chars.character-screen p { margin: 8px 0; }
#scr-chars.character-screen .btn, #scr-chars.character-screen button, #scr-chars.character-screen a { font-family: inherit; }
#scr-chars.character-screen button, #scr-chars.character-screen .btn { border: 1px solid #bf9655; border-radius: 2px; color: #f8ecd1; background: #13202b url('../assets/ui/foundation-stone.png') center / 600px; box-shadow: inset 0 0 0 2px #070d13, inset 0 0 0 3px #5b4931; cursor: pointer; }
#scr-chars.character-screen button:disabled { cursor: default; opacity: .5; }
#scr-chars.character-screen button.selected, #scr-chars.character-screen [aria-current='step'], #scr-chars.character-screen .primary { background: #80551d url('../assets/ui/foundation-stone.png') center / 500px; background-blend-mode: soft-light; border-color: #ffdd98; box-shadow: inset 0 0 0 2px #d59e4d, inset 0 0 13px #ffa82770, 0 0 7px #d6a25680; color: #fff4dc; }
#scr-chars.character-screen :is(button,a,input,summary):focus-visible { outline: 2px solid #4ce6f3; outline-offset: 2px; }
#scr-chars.character-screen .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 18px; text-align: center; text-decoration: none; font-size: var(--fs-l); }
#scr-chars .character-header { display: flex; flex: 0 0 74px; align-items: center; gap: 30px; padding: 5px 22px; border: 1px solid #a98954; box-shadow: inset 0 0 0 3px #080f15; }
#scr-chars .character-brand { display: block; width: clamp(190px, 23vw, 315px); flex: 0 0 auto; }
#scr-chars .character-brand img { display: block; width: 100%; height: 59px; object-fit: contain; }
#scr-chars .character-header nav { display: flex; gap: 16px; flex: 1; }
#scr-chars .character-header nav a { color: #f6e8cf; padding: 8px 20px; text-decoration: none; font-size: var(--fs-xl); }
#scr-chars .character-header nav [aria-current] { color: #fff2cf; border: 1px solid #e6b868; background: #9a65232e; box-shadow: inset 0 0 14px #c88c3e50; }
#scr-chars .character-header-tools { display: flex; align-items: center; gap: 10px; }
#scr-chars .character-header-tools .btn { font-size: var(--fs-m); padding: 6px 10px; }
#scr-chars .character-selection-header { gap: 20px; position: relative; z-index: 5; }
#scr-chars .character-selection-header h1 { font-size: var(--fs-xl); margin: 0; flex: 1; }
#scr-chars .character-header-account { display: flex; align-items: center; gap: 16px; font-size: var(--fs-m); }
#scr-chars .character-header-account > span { display: flex; align-items: center; gap: 6px; max-width: 220px; overflow-wrap: anywhere; }
#scr-chars .character-header-account .btn { min-height: 44px; padding: 6px 12px; font-size: var(--fs-m); }
#scr-chars .character-selection-header .character-header-tools .btn { min-width: 44px; min-height: 44px; padding: 8px; font-size: 0; }
#scr-chars .character-language { position: relative; }
#scr-chars .character-language > summary { min-width: 48px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; border: 1px solid #b99a60; background: #111c25; font-size: var(--fs-m); cursor: pointer; list-style: none; }
#scr-chars .character-language > summary::after { content: '▾'; font-size: var(--fs-s); }
#scr-chars .character-language > summary::-webkit-details-marker { display: none; }
#scr-chars .character-language .lang-slot { position: absolute; right: 0; top: calc(100% + 5px); padding: 8px; border: 1px solid #b99a60; background: #101a24; box-shadow: 0 4px 14px #000b; }
#scr-chars .character-language .lang-sw { display: flex; gap: 5px; }
#scr-chars .character-language .lang-sw button { min-width: 44px; min-height: 44px; }
#scr-chars.character-selection-screen > .character-account { display: none; }
#scr-chars.character-selection-screen .character-roster-title { justify-content: flex-end; }
#scr-chars.character-selection-screen .character-roster-title h1 { display: none; }
#scr-chars .character-mobile-details { display: none; }
#scr-chars .character-account { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 6px 18px; border: 1px solid #a98954; border-top: 0; }
#scr-chars .character-account > div { display: flex; align-items: center; gap: 18px; min-width: 0; }
#scr-chars .character-account > div > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
#scr-chars .character-account .btn { min-height: 40px; font-size: var(--fs-m); }
#scr-chars .character-selection { display: grid; grid-template-columns: minmax(250px, 30%) minmax(0, 1fr) minmax(260px, 27%); flex: 1; min-height: 0; border: 1px solid #a98954; border-top: 0; }
#scr-chars .character-roster { display: flex; flex-direction: column; padding: 16px; min-height: 0; }
#scr-chars .character-roster-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 8px; }
#scr-chars .character-roster-title h1 { font-size: var(--fs-xl); }
#scr-chars .character-slots { color: #c6bba5; font-size: var(--fs-m); }
#scr-chars #char-list { display: grid; flex: 1; min-height: 0; align-content: start; gap: 8px; grid-auto-rows: minmax(46px, 1fr); }
#scr-chars .character-card { min-width: 0; display: flex; gap: 10px; align-items: center; text-align: left; }
#scr-chars .character-card .character-art { flex: 0 0 80px; }
#scr-chars .character-card > span:not(.character-card-level) { min-width: 0; flex: 1; }
#scr-chars .character-card b { display: block; font-size: var(--fs-xl); overflow-wrap: anywhere; }
#scr-chars .character-card small { display: block; font-size: var(--fs-m); margin-top: 5px; }
#scr-chars .character-card-level { font-size: var(--fs-m); flex: 0 0 auto; }
#scr-chars .character-selected-art { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
#scr-chars .character-selected-art > .character-art { height: 100%; }
#scr-chars .character-selected-art > .character-pager, #scr-chars .character-mobile-title { display: none; }
#scr-chars .character-selected-info { display: flex; flex-direction: column; padding: 20px; margin: 12px; border: 1px solid #b38d52; min-height: 0; font-size: var(--fs-l); }
#scr-chars .character-selected-info h1 { margin: 0 0 8px; overflow-wrap: anywhere; }
#scr-chars .character-facts p { display: flex; align-items: center; gap: 14px; padding: 7px 0; margin: 0; border-bottom: 1px solid #715b3a; }
#scr-chars .character-description { line-height: 1.4; }
#scr-chars .character-selection-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 12px; }
@media (min-width: 1200px) and (min-height: 671px) {
  body:not([data-mobile='true']) #scr-chars .character-selection-actions > .primary { min-height: 70px; font-size: var(--fs-xl); }
}
#scr-chars .character-full p { font-size: var(--fs-m); color: #efcea1; }
#scr-chars .character-full .btn { width: 100%; }
#scr-chars .character-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; border: 1px solid #a98954; padding: 24px; }
#scr-chars .character-empty > .character-icon { width: 70px; height: 70px; }
#scr-chars .character-error { flex: 0 0 auto; background: #481e1c; border: 1px solid #e77965; padding: 8px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-m); }
#scr-chars .character-error .btn { min-height: 36px; font-size: var(--fs-m); padding: 4px 10px; }
#scr-chars .character-create { display: flex; flex-direction: column; flex: 1; min-height: 0; border: 1px solid #b38d52; border-top: 0; }
#scr-chars .character-banner { flex: 0 0 clamp(105px, 22vh, 185px); padding: 25px 10%; background: #233446 url('../assets/ui/public-city.png') center 48% / cover no-repeat; text-shadow: 0 2px 4px #000; }
#scr-chars .character-banner h1 { margin: 3px 0; }
#scr-chars .character-banner p { font-size: var(--fs-l); }
#scr-chars .character-steps { display: flex; flex: 0 0 52px; width: 72%; align-self: center; margin: -18px 0 12px; z-index: 1; }
#scr-chars .character-steps button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 5px 22px; font-size: var(--fs-xl); position: relative; isolation: isolate; border: 0; border-radius: 0; box-shadow: none; background: #b79b66; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); }
#scr-chars .character-steps button::before { content: ''; position: absolute; inset: 1px; z-index: -1; clip-path: inherit; background: linear-gradient(#1d2630, #0b141c); }
#scr-chars .character-steps button[aria-current='step']::before { background: linear-gradient(135deg, #b68027, #644219 65%, #9b6a22); box-shadow: inset 0 0 12px #ffca6870; }
#scr-chars .character-steps button:focus-visible { filter: drop-shadow(0 0 4px #4ce6f3); }
#scr-chars .character-steps button span { display: inline-grid; place-items: center; width: 33px; height: 33px; border: 1px solid #cba767; border-radius: 50%; }
#scr-chars #character-form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#scr-chars .character-create-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 6px 26px 16px; }
#scr-chars .character-options { display: flex; flex-direction: column; min-height: 0; }
#scr-chars .character-options > h2 { margin: 0 0 15px; }
#scr-chars .character-races { display: grid; flex: 1; min-height: 0; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
#scr-chars .character-races button { grid-column: span 3; }
#scr-chars .character-races button:nth-child(n+5) { grid-column: span 4; }
#scr-chars .character-races button { min-height: 0; min-width: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
#scr-chars .character-races .character-art { flex: 1; width: 100%; }
#scr-chars .character-races button > span { min-height: 34px; padding: 6px 3px; display: grid; place-items: center; font-size: var(--fs-m); width: 100%; }
#scr-chars .character-preview { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); border: 1px solid #b38d52; }
#scr-chars .character-preview > .character-art { min-height: 0; }
#scr-chars .character-preview > .character-pager { display: none; }
#scr-chars .character-preview-copy { min-width: 0; padding: 12px 16px; font-size: var(--fs-l); line-height: 1.2; overflow: auto; overscroll-behavior: contain; }
#scr-chars .character-preview-copy > h2 { margin: 0 0 8px; }
#scr-chars .character-preview-copy > p { margin: 4px 0; }
#scr-chars .character-bonuses p { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
#scr-chars .character-bonuses p b { color: #6de6eb; font-size: var(--fs-xl); margin-left: auto; }
#scr-chars .character-passive { border-top: 1px solid #8b6b3c; margin-top: 12px; padding-top: 3px; font-size: var(--fs-l); }
#scr-chars .character-passive b { display: flex; align-items: center; gap: 9px; }
#scr-chars .character-passive p { color: #c8bfae; line-height: 1.35; }
#scr-chars .character-create-actions { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 16px; padding: 16px 26px; border-top: 1px solid #81653c; }
#scr-chars .character-create-actions .btn { min-width: 260px; min-height: 60px; font-size: var(--fs-xl); }
#scr-chars .character-professions { display: grid; grid-template-rows: repeat(5, minmax(44px, 1fr)); gap: 8px; flex: 1; min-height: 0; }
#scr-chars .character-professions button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 5px 12px; font-size: var(--fs-l); }
#scr-chars .character-professions .character-icon { width: 30px; height: 30px; }
#scr-chars .character-profession-portrait { flex: 0 0 64px; height: 50px; }
#scr-chars :is(.character-profession-portrait, .character-card .character-art, .character-races .character-art) > span { top: 12%; transform: translate(-50%, -12%); }
#scr-chars .character-create[data-step='2'] .character-create-body { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }
#scr-chars .character-create[data-step='2'] .character-preview { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
#scr-chars .character-skills p { display: flex; align-items: center; gap: 10px; padding: 7px 0; margin: 0; border-top: 1px solid #5d5849; }
#scr-chars .character-skills small { margin-left: auto; color: #75e3e9; white-space: nowrap; font-size: var(--fs-l); }
#scr-chars .character-skill-art { display: block; width: 34px; height: 34px; flex: 0 0 34px; background: url('../assets/ui/public-skills.png') 0 0 / 200% 200% no-repeat; }
#scr-chars .character-skill-art[data-skill='1'] { background-position: 100% 0; }
#scr-chars .character-skill-art[data-skill='2'] { background-position: 0 100%; }
#scr-chars .character-skill-art[data-skill='3'] { background-position: 100% 100%; }
#scr-chars .character-signature { font-size: var(--fs-s); color: #c9c3b5; }
#scr-chars .character-create[data-step='3'] .character-create-body { grid-template-columns: minmax(0, 35%) minmax(0, 1fr); }
#scr-chars .character-name-art { display: flex; flex-direction: column; min-height: 0; border: 1px solid #b38d52; position: relative; }
#scr-chars .character-name-art > .character-art { flex: 1; min-height: 0; }
#scr-chars .character-name-art > .character-art > span { top: 25%; transform: translate(-50%, -25%); }
#scr-chars .character-name-art > div:last-child { padding: 8px 12px; text-align: center; }
#scr-chars .character-name-art p { font-size: var(--fs-m); font-style: italic; }
#scr-chars .character-name-copy { border: 1px solid #b38d52; padding: 16px 25px; overflow: hidden; min-height: 0; display: flex; flex-direction: column; }
#scr-chars .character-name-copy h2 { margin: 0 0 12px; }
#scr-chars .character-name-copy label { display: block; color: #eac975; font-weight: bold; margin-top: 10px; font-size: var(--fs-l); }
#scr-chars #nc-name { font-family: inherit; font-size: var(--fs-xl); min-height: 46px; border: 1px solid #d2ae67; border-radius: 3px; }
#scr-chars #nc-name-hint { font-size: var(--fs-m); font-style: italic; margin-top: 3px; }
#scr-chars .character-name-summary { overflow: auto; min-height: 0; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 8px; border-top: 1px solid #8b6b3c; margin-top: 16px; }
#scr-chars .character-name-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-content: start; margin: 2px 0; font-size: var(--fs-l); }
#scr-chars .character-name-summary dd { margin: 0; font-weight: bold; }
#scr-chars .character-name-summary .character-bonuses h3 { margin-top: 4px; }
body:not([data-mobile='true']) #scr-chars .character-name-summary h3 { margin: 4px 0; }
body:not([data-mobile='true']) #scr-chars .character-name-summary .character-bonuses p { margin: 2px 0; }
body:not([data-mobile='true']) #scr-chars .character-name-summary .character-passive { margin-top: 6px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 8px; }
body:not([data-mobile='true']) #scr-chars .character-name-summary .character-passive h3 { margin: 0; font-size: inherit; }
body:not([data-mobile='true']) #scr-chars .character-name-summary .character-passive p { grid-column: 1 / -1; }
#scr-chars .character-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
#scr-chars .character-pager .btn { min-width: 44px; min-height: 44px; font-size: 0; padding: 8px; }
#scr-chars .character-pager .btn[data-value='1'] .character-icon { transform: rotate(180deg); }

body[data-mobile='true'] #scr-chars.character-screen { padding: 5px; font-size: var(--fs-m); position: fixed; top: var(--app-offset-top, 0px); left: var(--app-offset-left, 0px); width: var(--app-width); }
body[data-mobile='true'] #scr-chars .character-header { flex: 0 0 96px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 44px 44px; gap: 0 6px; padding: 3px 7px; }
body[data-mobile='true'] #scr-chars .character-brand { width: 190px; min-width: 0; max-width: 100%; }
body[data-mobile='true'] #scr-chars .character-brand img { height: 42px; }
body[data-mobile='true'] #scr-chars .character-header-tools { grid-column: 2; grid-row: 1; gap: 3px; }
body[data-mobile='true'] #scr-chars .character-header-tools .btn { font-size: 0; padding: 5px; min-width: 44px; min-height: 44px; }
body[data-mobile='true'] #scr-chars .character-header nav { grid-column: 1 / -1; justify-content: space-around; gap: 4px; }
body[data-mobile='true'] #scr-chars .character-header nav a { font-size: var(--fs-m); padding: 6px 14px; flex: 1; text-align: center; }
body[data-mobile='true'] #scr-chars .character-header .lang-sw { gap: 1px; }
body[data-mobile='true'] #scr-chars .character-header .lang-sw button { min-width: 44px; min-height: 44px; padding: 3px; }
body[data-mobile='true'] #scr-chars .character-selection-header { flex-basis: 110px; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 60px 34px; gap: 2px 6px; }
body[data-mobile='true'] #scr-chars .character-selection-header .character-brand { width: 100%; grid-column: 1; grid-row: 1; }
body[data-mobile='true'] #scr-chars .character-selection-header .character-brand img { height: 58px; }
body[data-mobile='true'] #scr-chars .character-selection-header h1 { grid-column: 1 / -1; grid-row: 2; text-align: center; font-size: var(--fs-xl); }
body[data-mobile='true'] #scr-chars .character-header-account { display: none; }
body[data-mobile='true'] #scr-chars.character-selection-screen > .character-account { display: flex; }
body[data-mobile='true'] #scr-chars .character-account { padding: 5px 8px; min-height: 48px; font-size: var(--fs-s); }
body[data-mobile='true'] #scr-chars .character-account > div { flex-direction: column; align-items: flex-start; gap: 1px; }
body[data-mobile='true'] #scr-chars .character-account .character-slots { font-size: var(--fs-xs); }
body[data-mobile='true'] #scr-chars .character-account .btn { font-size: var(--fs-s); padding: 5px 8px; }
body[data-mobile='true'] #scr-chars .character-account .character-icon { width: 18px; height: 18px; }
body[data-mobile='true'] #scr-chars .character-selection { display: flex; flex-direction: column; padding: 8px; gap: 0; }
body[data-mobile='true'] #scr-chars .character-roster { display: none; }
body[data-mobile='true'] #scr-chars .character-selected-art { flex: 1; min-height: 110px; container-type: size; }
body[data-mobile='true'] #scr-chars .character-mobile-title { display: block; position: absolute; bottom: 44px; width: 100%; text-align: center; text-shadow: 0 2px 4px #000; background: #08131c99; padding: 6px; }
body[data-mobile='true'] #scr-chars .character-mobile-title h1 { font-size: var(--fs-xl); margin: 0; }
body[data-mobile='true'] #scr-chars .character-mobile-title p { margin: 3px 0; }
body[data-mobile='true'] #scr-chars .character-selected-art > .character-pager { display: flex; position: absolute; bottom: 0; width: 100%; padding: 0 4px; background: #0a141bcc; margin: 0; }
body[data-mobile='true'] #scr-chars .character-selected-info { flex: 0 0 auto; border: 0; margin: 0; padding: 7px 0 0; }
body[data-mobile='true'] #scr-chars .character-selected-info > h1 { display: none; }
body[data-mobile='true'] #scr-chars .character-desktop-facts { display: none; }
body[data-mobile='true'] #scr-chars .character-mobile-details { display: block; position: absolute; top: 8px; right: 8px; z-index: 3; max-width: calc(100% - 16px); color: #f5ead5; background: #0b1622ed; border: 1px solid #b99a60; }
body[data-mobile='true'] #scr-chars .character-mobile-details > summary { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 7px 12px; cursor: pointer; font-size: var(--fs-m); }
body[data-mobile='true'] #scr-chars .character-mobile-detail-body { width: min(320px, 72cqw); max-height: min(240px, max(44px, calc(100cqh - 110px))); overflow: auto; overscroll-behavior: contain; padding: 8px 12px; font-size: var(--fs-m); }
body[data-mobile='true'] #scr-chars .character-mobile-details .character-facts { display: block; }
body[data-mobile='true'] #scr-chars details.character-mobile-details .character-facts p { display: flex; }
body[data-mobile='true'] #scr-chars .character-mobile-details .character-description { margin: 8px 0 0; font-size: var(--fs-m); }
body[data-mobile='true'] #scr-chars .character-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; font-size: var(--fs-s); }
body[data-mobile='true'] #scr-chars .character-facts p { padding: 4px 0; gap: 7px; }
body[data-mobile='true'] #scr-chars .character-facts p:nth-child(2), body[data-mobile='true'] #scr-chars .character-facts p:nth-child(3) { display: none; }
body[data-mobile='true'] #scr-chars .character-selected-info > .character-description { margin: 5px 0; font-size: var(--fs-s); }
body[data-mobile='true'] #scr-chars .character-selection-actions { gap: 6px; padding-top: 5px; }
body[data-mobile='true'] #scr-chars .character-selection-actions > .btn { min-height: 60px; font-size: var(--fs-xl); }
body[data-mobile='true'] #scr-chars .character-selection-actions > .primary { min-height: 70px; font-size: var(--fs-xl); }
body[data-mobile='true'] #scr-chars .character-full { display: flex; align-items: center; gap: 8px; }
body[data-mobile='true'] #scr-chars .character-full .btn { width: auto; flex: 1; font-size: var(--fs-m); }
body[data-mobile='true'] #scr-chars .character-full p { flex: 1; font-size: var(--fs-s); }
body[data-mobile='true'] #scr-chars .character-banner { flex-basis: clamp(64px, 14vh, 120px); padding: 9px 18px; }
body[data-mobile='true'] #scr-chars .character-banner h1 { font-size: var(--fs-xl); }
body[data-mobile='true'] #scr-chars .character-banner p { font-size: var(--fs-m); max-width: 260px; line-height: 1.3; }
body[data-mobile='true'] #scr-chars .character-steps { width: 100%; flex-basis: 44px; margin: 0; }
body[data-mobile='true'] #scr-chars .character-steps button { gap: 6px; padding: 4px; font-size: var(--fs-m); }
body[data-mobile='true'] #scr-chars .character-steps button span { width: 25px; height: 25px; }
body[data-mobile='true'] #scr-chars .character-create-body, body[data-mobile='true'] #scr-chars .character-create[data-step='2'] .character-create-body { display: flex; flex-direction: column; padding: 8px 10px; gap: 6px; }
body[data-mobile='true'] #scr-chars .character-options { display: none; }
body[data-mobile='true'] #scr-chars .character-preview { flex: 1; display: flex; flex-direction: column; position: relative; min-height: 0; }
body[data-mobile='true'] #scr-chars .character-preview > .character-art { min-height: 70px; flex: 1 1 155px; }
body[data-mobile='true'] #scr-chars .character-preview > .character-art > span { top: 25%; transform: translate(-50%, -25%); }
body[data-mobile='true'] #scr-chars .character-preview > .character-pager { display: flex; position: absolute; top: 40px; left: 0; right: 0; margin: 0; padding: 0 4px; pointer-events: none; }
body[data-mobile='true'] #scr-chars .character-preview > .character-pager > * { pointer-events: auto; }
body[data-mobile='true'] #scr-chars .character-preview > .character-pager > span { background: #09151ecc; align-self: end; padding: 3px 8px; border: 1px solid #987644; }
body[data-mobile='true'] #scr-chars .character-preview-copy { flex: 0 1 auto; padding: 9px 13px; font-size: var(--fs-m); }
body[data-mobile='true'] #scr-chars .character-preview-copy > h2 { text-align: center; font-size: var(--fs-xl); margin-bottom: 5px; }
body[data-mobile='true'] #scr-chars .character-preview-copy > p { margin: 5px 0; }
body[data-mobile='true'] #scr-chars .character-bonuses { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
body[data-mobile='true'] #scr-chars .character-bonuses h3 { grid-column: 1 / -1; font-size: var(--fs-m); margin: 5px 0 2px; }
body[data-mobile='true'] #scr-chars .character-bonuses p { margin: 2px 0; font-size: var(--fs-s); gap: 6px; }
body[data-mobile='true'] #scr-chars .character-bonuses p b { font-size: var(--fs-l); }
body[data-mobile='true'] #scr-chars .character-icon { width: 20px; height: 20px; }
body[data-mobile='true'] #scr-chars .character-passive { margin-top: 6px; font-size: var(--fs-s); }
body[data-mobile='true'] #scr-chars .character-passive h3 { margin: 3px 0; font-size: var(--fs-m); }
body[data-mobile='true'] #scr-chars .character-passive p { margin: 4px 0 0; font-size: var(--fs-s); }
body[data-mobile='true'] #scr-chars .character-skills h3 { font-size: var(--fs-m); margin: 6px 0 4px; }
body[data-mobile='true'] #scr-chars .character-skills p { padding: 5px 0; gap: 7px; }
body[data-mobile='true'] #scr-chars .character-skills small { font-size: var(--fs-s); }
body[data-mobile='true'] #scr-chars .character-create-actions { padding: 7px 10px; gap: 9px; }
body[data-mobile='true'] #scr-chars .character-create-actions .btn { min-width: 0; min-height: 60px; font-size: var(--fs-xl); flex: 1; padding: 8px; }
body[data-mobile='true'] #scr-chars .character-create-actions .primary { flex: 1.6; }
body[data-mobile='true'] #scr-chars .character-create[data-step='3'] .character-create-body { display: flex; flex-direction: column; padding: 8px 10px; gap: 8px; }
body[data-mobile='true'] #scr-chars .character-name-art { flex: 1 1 215px; min-height: min(215px, 26vh); border-bottom: 0; }
body[data-mobile='true'] #scr-chars .character-name-art > div:last-child { padding: 0 5px; }
body[data-mobile='true'] #scr-chars .character-name-art .btn { min-height: 44px; padding: 4px 10px; font-size: var(--fs-m); margin-top: -16px; position: relative; }
body[data-mobile='true'] #scr-chars .character-name-art p { font-size: var(--fs-xs); margin: 3px 0; }
body[data-mobile='true'] #scr-chars .character-name-copy { flex: 0 1 auto; padding: 0 3px; border: 0; }
body[data-mobile='true'] #scr-chars .character-name-copy h2 { display: none; }
body[data-mobile='true'] #scr-chars .character-name-copy label { font-size: var(--fs-m); margin: 0; }
body[data-mobile='true'] #scr-chars #nc-name { font-size: var(--fs-l); min-height: 44px; padding: 6px 8px; }
body[data-mobile='true'] #scr-chars #nc-name-hint { font-size: var(--fs-s); margin: 2px 0 5px; }
body[data-mobile='true'] #scr-chars .character-name-summary { display: block; margin-top: 5px; padding-top: 5px; }
body[data-mobile='true'] #scr-chars .character-name-summary dl { font-size: var(--fs-s); grid-template-columns: auto 1fr auto 1fr; gap: 4px 8px; margin: 0 0 6px; }
body[data-mobile='true'] #scr-chars .character-name-summary .character-passive p { display: block; }
body[data-mobile='true'] #scr-chars .character-error { font-size: var(--fs-s); padding: 4px 8px; }

@media (orientation: portrait) and (min-height: 671px) {
  body[data-mobile='true']:not([data-keyboard='true']) #scr-chars .character-create[data-step='1'] .character-create-actions [data-char-action='back'] { flex: 0 0 44px; min-height: 44px; align-self: center; font-size: 0; padding: 8px; gap: 0; }
  body[data-mobile='true']:not([data-keyboard='true']) #scr-chars .character-create[data-step='1'] .character-create-actions .primary { min-height: 72px; font-size: var(--fs-xl); }
}

@media (max-height: 670px) {
  body:not([data-mobile='true']) #scr-chars .character-preview-copy { font-size: var(--fs-m); padding: 8px 12px; }
  body:not([data-mobile='true']) #scr-chars .character-preview-copy h3 { font-size: var(--fs-l); }
  body:not([data-mobile='true']) #scr-chars .character-skills small { font-size: var(--fs-m); }
  body:not([data-mobile='true']) #scr-chars .character-professions button { font-size: var(--fs-m); padding: 4px 8px; gap: 7px; }
  body:not([data-mobile='true']) #scr-chars .character-profession-portrait { flex-basis: 48px; height: 40px; }
  body:not([data-mobile='true']) #scr-chars .character-create-actions .btn { min-width: 200px; min-height: 44px; font-size: var(--fs-l); }
  body:not([data-mobile='true']) #scr-chars .character-name-summary dl { font-size: var(--fs-m); }
  #scr-chars.character-screen .character-header { flex-basis: 58px; }
  #scr-chars.character-screen .character-banner { flex-basis: 90px; padding-top: 12px; }
  #scr-chars.character-screen .character-card .character-art { width: 46px; height: 44px; flex-basis: 46px; }
  #scr-chars.character-screen .character-card small { margin-top: 2px; font-size: var(--fs-s); }
  #scr-chars.character-screen .character-card b { font-size: var(--fs-l); }
  #scr-chars.character-screen .character-selected-info { padding: 10px; margin: 8px; font-size: var(--fs-m); }
  #scr-chars.character-screen .character-facts p { padding: 4px 0; }
  body[data-mobile='true'] #scr-chars .character-header { flex-basis: 96px; }
  body[data-mobile='true'] #scr-chars .character-selection-header { flex-basis: 104px; }
  body[data-mobile='true'] #scr-chars .character-banner { flex-basis: 62px; padding: 5px 13px; }
  body[data-mobile='true'] #scr-chars .character-banner h1 { font-size: var(--fs-xl); }
  body[data-mobile='true'] #scr-chars .character-banner p { font-size: var(--fs-s); margin: 2px 0; }
  body[data-mobile='true'] #scr-chars .character-preview-copy { padding: 6px 10px; }
}
@media (orientation: landscape) and (max-height: 540px) {
  body[data-mobile='true'] #scr-chars .character-header { flex: 0 0 48px; display: flex; gap: 10px; padding: 2px 8px; }
  body[data-mobile='true'] #scr-chars .character-brand { width: 160px; }
  body[data-mobile='true'] #scr-chars .character-header nav { flex: 1; gap: 0; }
  body[data-mobile='true'] #scr-chars .character-header nav a { font-size: var(--fs-m); padding: 7px 10px; }
  body[data-mobile='true'] #scr-chars .character-header-tools { margin-left: auto; }
  body[data-mobile='true'] #scr-chars .character-selection-header { flex-basis: 48px; }
  body[data-mobile='true'] #scr-chars .character-selection-header .character-brand { width: 160px; }
  body[data-mobile='true'] #scr-chars .character-selection-header .character-brand img { height: 42px; }
  body[data-mobile='true'] #scr-chars .character-selection-header h1 { font-size: var(--fs-l); text-align: left; }
  body[data-mobile='true'] #scr-chars .character-banner { display: none; }
  body[data-mobile='true'] #scr-chars .character-steps { flex-basis: 40px; width: 75%; }
  body[data-mobile='true'] #scr-chars .character-create-body { padding: 6px 12px; }
  body[data-mobile='true'] #scr-chars .character-preview { display: grid; grid-template-columns: minmax(0, 33%) minmax(0, 1fr); }
  body[data-mobile='true'] #scr-chars .character-create[data-step='2'] .character-preview { grid-template-columns: minmax(0, 33%) minmax(0, 1fr); }
  body[data-mobile='true'] #scr-chars .character-preview > .character-art { height: 100%; min-height: 0; }
  body[data-mobile='true'] #scr-chars .character-preview > .character-pager { top: auto; bottom: 5px; width: 33%; }
  body[data-mobile='true'] #scr-chars .character-preview-copy { padding: 6px 12px; }
  body[data-mobile='true'] #scr-chars .character-preview-copy > h2 { text-align: left; font-size: var(--fs-xl); }
  body[data-mobile='true'] #scr-chars .character-preview-copy > p { margin: 3px 0; font-size: var(--fs-s); }
  body[data-mobile='true'] #scr-chars .character-bonuses { grid-template-columns: repeat(3, 1fr); }
  body[data-mobile='true'] #scr-chars .character-skills p { padding: 3px 0; }
  body[data-mobile='true'] #scr-chars .character-passive { margin-top: 4px; }
  body[data-mobile='true'] #scr-chars .character-create-actions { padding: 5px 12px; }
  body[data-mobile='true'] #scr-chars .character-create-actions .btn { min-height: 44px; max-width: 44%; font-size: var(--fs-l); }
  body[data-mobile='true'] #scr-chars .character-create[data-step='3'] .character-create-body { display: grid; grid-template-columns: 27% minmax(0, 1fr); gap: 14px; }
  body[data-mobile='true'] #scr-chars .character-name-art { min-height: 0; }
  body[data-mobile='true'] #scr-chars .character-name-copy { min-height: 0; }
  body[data-mobile='true'] #scr-chars .character-name-summary { overflow: auto; min-height: 0; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  body[data-mobile='true'] #scr-chars .character-name-summary dl { grid-template-columns: auto 1fr; }
  body[data-mobile='true'] #scr-chars .character-name-summary .character-bonuses { grid-template-columns: 1fr 1fr; }
  body[data-mobile='true'] #scr-chars .character-selection { display: grid; grid-template-columns: 43% minmax(0, 1fr); gap: 12px; padding: 7px; }
  body[data-mobile='true'] #scr-chars .character-selected-art { min-height: 0; }
  body[data-mobile='true'] #scr-chars .character-selected-info { margin: 0; padding: 0; }
  body[data-mobile='true'] #scr-chars .character-selection-actions { flex-direction: row; margin-top: auto; }
  body[data-mobile='true'] #scr-chars .character-selection-actions > * { flex: 1; }
  body[data-mobile='true'] #scr-chars .character-selection-actions .btn { font-size: var(--fs-m); }
  body[data-mobile='true'] #scr-chars .character-selection-actions > .btn { min-height: 44px; font-size: var(--fs-m); }
  body[data-mobile='true'] #scr-chars .character-account { min-height: 44px; padding: 2px 8px; }
}
body[data-mobile='true'][data-keyboard='true'] #scr-chars .character-header,
body[data-mobile='true'][data-keyboard='true'] #scr-chars .character-banner,
body[data-mobile='true'][data-keyboard='true'] #scr-chars .character-name-art,
body[data-mobile='true'][data-keyboard='true'] #scr-chars .character-name-summary { display: none; }
body[data-mobile='true'][data-keyboard='true'] #scr-chars .character-create[data-step='3'] .character-create-body { display: block; }
body[data-mobile='true'][data-keyboard='true'] #scr-chars .character-name-copy { height: 100%; }
body[data-mobile='true'][data-keyboard='true'] #scr-chars .character-create-actions { padding: 5px 10px; }
body[data-mobile='true'][data-keyboard='true'] #scr-chars .character-create-actions .btn { min-height: 44px; font-size: var(--fs-l); }

/* ===== 02_hra.css ===== */
/* hra */
.topbar { display: flex; align-items: center; gap: 12px; padding: 6px 12px; background: #100e17; border-bottom: 2px solid var(--line); }
.logo-small { color: var(--gold); font-weight: bold; letter-spacing: 2px; text-shadow: 2px 2px 0 #5a2a00; }
#tabs { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.tab { background: none; border: 2px solid transparent; color: var(--muted); font: inherit; padding: 4px 10px; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-color: var(--line); background: var(--panel); }
.layout { display: grid; grid-template-columns: 270px 1fr 320px; gap: 10px; padding: 10px; height: calc(100vh - 46px); }
.layout > * { overflow-y: auto; min-height: 0; }
#right { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
#zone-side { max-height: 45%; overflow-y: auto; }
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
#chat-log { flex: 1; overflow-y: auto; font-size: var(--fs-s); padding: 4px 0; word-wrap: break-word; }
#chat-log .m { margin-bottom: 2px; }
#chat-log .a { color: var(--gold); }
#chat-log .sys { color: var(--cyan); }
#chat-log .boss { color: #ff9a2f; font-weight: bold; }
#chat-log .pvp { color: var(--bad); }
.chat-tabs { display: flex; gap: 4px; }
.ctab { background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; padding: 2px 8px; cursor: pointer; }
.ctab.active { color: var(--gold); border-color: var(--gold); }

.bar { height: 14px; background: #0a090e; border: 1px solid #000; position: relative; margin: 3px 0; }
.bar > i { display: block; height: 100%; transition: width .3s; }
.bar > span { position: absolute; inset: 0; text-align: center; font-size: var(--fs-xs); line-height: 13px; text-shadow: 1px 1px 0 #000; }
.bar.hp > i { background: linear-gradient(#e04848, #8a1a1a); }
.bar.mp > i { background: linear-gradient(#5a82e8, #1a3a8a); }
.bar.xp > i { background: linear-gradient(#aa6fe8, #4a1a8a); }
.bar.boss { height: 18px; }
.bar.boss > i { background: linear-gradient(#ff9a2f, #8a3a00); }
.portrait { border: 2px solid #000; background: #0a090e; }
.stat { display: flex; justify-content: space-between; align-items: center; padding: 1px 0; }
.stat .btn { padding: 0 6px; }
.slot { display: flex; gap: 6px; align-items: center; background: var(--panel2); border: 1px solid var(--line); padding: 3px; margin: 3px 0; min-height: 54px; }
.slot img { width: 48px; height: 48px; background: #0a090e; border: 1px solid #000; }
.slot .empty { width: 48px; height: 48px; border: 1px dashed var(--line); }
.iname { font-weight: bold; }
.r-bezny { color: #c8c8c8; } .r-neobvykly { color: #4fd36a; } .r-vzacny { color: #4f8fff; } .r-epicky { color: #b45fff; } .r-legendarni { color: #ff9a2f; text-shadow: 0 0 6px #ff9a2f88; }
.small { font-size: var(--fs-xs); }

.scene-wrap { position: relative; border: 2px solid #000; box-shadow: 0 4px 0 #000; }
.scene-wrap img, .scene-wrap canvas { width: 100%; display: block; }
.scene-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; background: linear-gradient(transparent, #000c); font-size: var(--fs-m); color: var(--gold); text-shadow: 2px 2px 0 #000; }
.tag { display: inline-block; font-size: var(--fs-xs); padding: 0 5px; border: 1px solid; margin-left: 6px; vertical-align: middle; }
.tag.pvp { color: var(--bad); } .tag.safe { color: var(--good); } .tag.lvl { color: var(--cyan); }
.desc { margin: 10px 0; color: #c8c0d8; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.log { background: #0a090e; border: 1px solid var(--line); padding: 6px 8px; max-height: 230px; overflow-y: auto; font-size: var(--fs-s); }
.log div { padding: 1px 0; }
.log .sys { color: var(--cyan); } .log .loot { color: var(--gold); } .log .bad, .log .dmg_in { color: #ff8a7a; } .log .win { color: var(--good); font-weight: bold; }
.log .level { color: #d08aff; font-weight: bold; } .log .heal { color: #7fe08a; } .log .crit { color: #ffd23f; font-weight: bold; }
.log .flavor { color: #a8a0c0; font-style: italic; } .log .travel { color: #9ad0ff; } .log .death { color: #ff4f4f; font-weight: bold; }
.log .boss { color: #ff9a2f; font-weight: bold; } .log .miss { color: var(--muted); } .log .skill { color: #9ad0ff; } .log .pvp { color: var(--bad); }

/* šeptání a přátelé (social/friends.py) */
#chat-log .whisper { color: #ff9ad8; }
.friends summary { cursor: pointer; list-style: none; margin-top: 8px; }
.friends summary::-webkit-details-marker { display: none; }
.player.friend.off { opacity: .6; }

/* ===== 03_souboj.css ===== */
/* souboj */
.battle { background: radial-gradient(ellipse at center, #241a30, #0b0a10); border: 2px solid #4a2a2a; padding: 10px; }
.side { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0; }
.fighter { width: 118px; background: #0e0c14cc; border: 2px solid var(--line); padding: 4px; text-align: center; cursor: pointer; font-size: var(--fs-xs); }
.fighter.target { border-color: var(--gold); box-shadow: 0 0 10px #e8c06066; }
.fighter.dead { opacity: .35; filter: grayscale(1); }
.fighter.me { border-color: var(--cyan); }
.fighter img { width: 72px; height: 72px; display: block; margin: 0 auto; }
.fighter.boss { width: 260px; }
.fighter.boss img { width: 168px; height: 168px; }
.fighter .fx { color: var(--cyan); font-size: var(--fs-xs); min-height: 13px; }
.vs { text-align: center; color: var(--bad); font-weight: bold; letter-spacing: 4px; }
.skills { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; justify-content: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.item { display: flex; gap: 8px; background: var(--panel2); border: 1px solid var(--line); padding: 5px; }
.item img { width: 48px; height: 48px; background: #0a090e; border: 1px solid #000; flex: none; }
.item .acts { margin-top: 3px; display: flex; gap: 4px; flex-wrap: wrap; }
.mats { display: flex; flex-wrap: wrap; gap: 6px; }
.mat { display: flex; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line); padding: 2px 6px; }
.mat img { width: 24px; height: 24px; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--gold); }
.player { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
.player img { width: 32px; height: 32px; }
.player .grow { flex: 1; }
.enc-box { background: var(--panel2); border: 1px solid var(--line); padding: 5px; margin: 4px 0; }
.enc-box.boss { border-color: #ff9a2f; }
.enc-box.pvp { border-color: var(--bad); }
#map-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0a090e; border: 2px solid var(--line); }
#map-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapnode { position: absolute; transform: translate(-50%, -50%); text-align: center; font-size: var(--fs-xs); cursor: pointer; width: 110px; }
.mapnode .dot { width: 16px; height: 16px; margin: 0 auto 2px; border: 2px solid #000; background: #6a6a8a; }
.mapnode.here .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.mapnode.safe .dot { border-color: var(--good); } .mapnode.pvp .dot { border-color: var(--bad); }
#toast { position: fixed; top: 54px; left: 50%; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
#toast div { background: #2a1414; border: 2px solid var(--bad); padding: 6px 14px; box-shadow: 0 4px 0 #000; }
#toast div.ok { background: #142a18; border-color: var(--good); }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; height: auto; } #right { height: 600px; } }

/* RD-08: bounded combat content; the shared hero/chat shell remains in place. */
body:not([data-mobile='true']) #center:has(> #tab-loc:not(.hidden) > .battle),
body[data-mobile='true'][data-mp='game'] #center:has(> #tab-loc:not(.hidden) > .battle) { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
#tab-loc:has(> .battle) { flex: 1 1 0; min-height: 0; overflow: hidden; padding: 0; }
#tab-loc > .battle { height: 100%; min-height: 0; min-width: 0; box-sizing: border-box; overflow: hidden; position: relative; container-type: inline-size; display: flex; flex-direction: column; gap: 5px; padding: 6px; border: 1px solid #b18b4b; background: linear-gradient(135deg,#0c1923f2,#080e16f5),url('../assets/ui/foundation-stone.png') center/cover; color: #f0e5ce; font-family: var(--font-ui); font-size: var(--fs-m); }
.battle *, .battle *::before, .battle *::after { box-sizing: border-box; }
.battle :is(h2,h3,p) { margin: 0; padding: 0; border: 0; letter-spacing: 0; }
.battle h2 { font: 600 var(--fs-l)/1.2 var(--font-display); color: #f8e5b7; }
.battle h3 { font: 600 var(--fs-l)/1.2 var(--font-display); color: #f8e5b7; }
.battle .btn, .battle input, .battle select { font: inherit; min-height: 44px; min-width: 0; border: 1px solid #b18b4b; border-radius: 0; }
.battle .btn { padding: 4px 7px; white-space: normal; overflow-wrap: anywhere; }
.battle .btn.primary, .battle .btn[aria-pressed='true'] { background: linear-gradient(#ba863d,#69441d 45%,#452f18); border-color: #f0c678; }
.battle .btn:disabled, .battle .btn[aria-disabled='true'] { opacity: .58; cursor: not-allowed; }
.battle :is(button,input,select,[tabindex]):focus-visible { outline: 2px solid #73e4ec; outline-offset: -2px; }
.battle .btn > small, .battle .btn > span { display: block; }
.battle .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.battle-heading { display: flex; align-items: center; gap: 6px; flex: 0 0 44px; min-height: 0; }
.battle-heading h2 { flex: 1; min-width: 0; max-height: 44px; overflow: auto; overflow-wrap: anywhere; }
.battle-heading select { flex: 0 1 150px; width: 150px; background: #101b24; color: inherit; padding: 5px; }
.battle-status { flex: 0 0 auto; min-height: 0; }
.battle-status-fighters { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.battle-fighter { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; padding: 5px; border: 1px solid #a4844a; background: #0c1720; }
.battle-fighter.dead { filter: saturate(.5); }
.battle-fighter-copy { flex: 1; min-width: 0; }
.battle-fighter-copy strong { display: block; overflow-wrap: anywhere; line-height: 1.15; }
.battle-fighter-copy small { display: block; color: #c4b99f; font-size: var(--fs-xs); }
.battle-fighter-copy .battle-affinities { max-height: 2.4em; overflow: auto; color: #b4e6c1; }
.battle-fighter-copy em { color: #ffb190; font-size: var(--fs-xs); }
.battle-fighter .bar { height: 16px; margin: 2px 0 0; }
.battle-fighter .bar span { font: var(--fs-xs)/14px var(--font-ui); }
.battle .battle-portrait { width: 58px; height: 64px; flex: 0 0 58px; overflow: hidden; border: 1px solid #d3b46d; border-radius: 50%; background: #09151e; }
.battle .battle-portrait img { width: 100%; height: 100%; object-fit: contain; display: block; }
.battle .battle-portrait img.px { image-rendering: pixelated; }
.battle-effects { flex-basis: 100%; font-size: var(--fs-xs); color: #79d7db; overflow-wrap: anywhere; }
.battle-target { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 3px; min-width: 0; }
.battle-target-controls { display: flex; flex-direction: column; gap: 0; }
.battle-target-controls .btn { flex: 1; font: var(--fs-xl)/1 var(--font-ui); padding: 0; }
.battle-threat { position: relative; margin-top: 3px; min-height: 38px; padding: 4px 6px 7px; background: #2b171b; border: 1px solid #c2573e; overflow: hidden; text-align: center; }
.battle-threat strong, .battle-threat span { display: block; overflow-wrap: anywhere; font-size: var(--fs-s); line-height: 1.1; }
.battle-threat span { color: #e9d5b4; font-size: var(--fs-xs); }
.battle-threat > i { position: absolute; left: 0; bottom: 0; height: 4px; background: #5fe6ef; box-shadow: 0 0 5px #8cefff; }
.battle-counter { padding: 2px 5px !important; color: #ffdb63; text-align: center; font-size: var(--fs-s); background: #0c3741; border: 1px solid #55b9c4 !important; }
.battle-main { flex: 1 1 0; min-height: 0; min-width: 0; overflow: hidden; }
.battle-browser { height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 5px; }
.battle-results { min-height: 0; display: grid; grid-template-rows: 44px 44px minmax(0,1fr) 44px; gap: 3px; }
.battle-search-row { display: flex; gap: 3px; min-width: 0; }
.battle-search-row input { width: 0; flex: 1 1 0; margin: 0; padding: 5px 7px; background: #07151e; color: #fff0d3; }
.battle-search-row > .btn { flex: 0 0 44px; font-size: var(--fs-xl); }
.battle-search-row select { display: none; width: 100px; background: #10212a; color: inherit; }
.battle-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; }
.battle-filters .btn { padding: 3px 2px; font-size: var(--fs-s); }
.battle-skill-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); min-height: 0; gap: 4px; }
.battle-skill { display: grid; grid-template-columns: minmax(0,1fr) 44px; border: 1px solid #957943; background: #101b23; min-height: 0; min-width: 0; }
.battle-skill > .btn:first-child { padding: 5px 3px; border: 0; min-height: 44px; position: relative; display: grid; align-content: center; justify-items: center; gap: 2px; }
.battle-skill > .btn:first-child strong { font-size: var(--fs-m); line-height: 1.1; }
.battle-skill > .btn:first-child small { font-size: var(--fs-xs); }
.battle-skill .battle-info { padding: 0; font-size: var(--fs-xl); border-width: 0 0 0 1px; }
.battle-skill.good { border-color: #85cf8b; }
.battle-skill.counter { box-shadow: inset 0 0 7px #edcb4c; }
.battle-skill-empty { border: 1px solid #41484a; background: #09121a88; }
.battle kbd { font: var(--fs-xs)/1.1 var(--font-ui); padding: 2px 3px; color: #ffe4a4; border: 1px solid #b59355; }
.battle-skill kbd { position: absolute; left: 3px; top: 3px; }
.battle-skill-art { width: 36px; height: 30px; display: block; background-image: url('../assets/ui/public-skills.png'); background-size: 200% 200%; }
.battle-skill-art.plasma { background-position: 0 0; }.battle-skill-art.drone { background-position: 100% 0; }.battle-skill-art.nano { background-position: 0 100%; }
.battle-element { font-size: var(--fs-xl); line-height: 30px; }
.battle-results-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; font-size: var(--fs-s); }
.battle-pager { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.battle-pager .btn { width: 44px; padding: 0; font-size: var(--fs-xl); }
.battle-pager output { min-width: 34px; text-align: center; font-size: var(--fs-s); }
.battle-detail { min-height: 0; display: flex; flex-direction: column; gap: 3px; border: 1px solid #bd9657; padding: 5px; background: #0d1821; }
.battle-detail-copy { flex: 1; min-height: 0; overflow: auto; overflow-wrap: anywhere; overscroll-behavior: contain; }
.battle-detail-copy p { margin-top: 6px; font-size: var(--fs-s); }
.battle-detail-copy .battle-skill-art { width: 52px; height: 44px; float: left; margin: 0 6px 4px 0; }
.battle-detail-back { flex: 0 0 auto; font-size: var(--fs-s) !important; }
.battle-detail > .btn:last-child { flex: 0 0 44px; }
.battle-reason { color: #efcb6e; }
.battle-detail-hint { display: grid; place-items: center; border: 1px solid #7c693f; padding: 15px; color: #cbbf9d; text-align: center; }
.battle-empty { grid-column: 1/-1; grid-row: 1/-1; align-self: center; text-align: center; padding: 10px !important; }
.battle-urgent { flex: 0 0 auto; display: grid; grid-template-columns: 1fr; gap: 3px; }
.battle-defenses, .battle-consumables { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
.battle-urgent .btn { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 3px; font-size: var(--fs-m); line-height: 1.05; }
.battle-urgent .btn small { font-size: var(--fs-xs); }
.battle-roster, .battle-items-view { height: 100%; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.battle-roster > .battle-pager, .battle-items-view > .battle-pager { justify-content: center; }
.battle-roster-grid { flex: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 4px; min-height: 0; }
.battle-roster-grid > section { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; border: 1px solid #9f814a; padding: 4px; }
.battle-roster-grid > section > .btn { flex: 0 0 44px; }
.battle-roster .battle-fighter { border: 0; padding: 0; }
.battle-roster .battle-fighter .battle-portrait { width: 40px; height: 44px; flex-basis: 40px; }
.battle-roster-description, .battle-item-description { flex: 1; min-height: 0; overflow: auto; overflow-wrap: anywhere; font-size: var(--fs-s); }
.battle .battle-log { height: 100%; min-height: 0; max-height: none; overflow: auto; white-space: normal; overflow-wrap: anywhere; padding: 8px; border: 1px solid #ae8d51; background: #09141c; font: var(--fs-m)/1.5 var(--font-ui); }
.battle-fighter.shake { animation: shake .3s; }.battle-fighter.glow { animation: glow .5s; }
.battle-ended .battle-result-title { text-align: center; flex: 0 0 auto; }
.battle-result-title p { font-size: var(--fs-m); overflow-wrap: anywhere; }
.battle-final-state > h3 { font-size: var(--fs-m); margin-bottom: 3px; }
.battle-final-state > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.battle-result-tabs { display: flex; gap: 3px; flex: 0 0 44px; }
.battle-result-tabs .btn { flex: 1; }
.battle-result-logs { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.battle-result-logs > section { display: flex; flex-direction: column; gap: 3px; min-height: 0; min-width: 0; }
.battle-result-logs h3 { font-size: var(--fs-m); }
.battle-result-logs .battle-log { flex: 1 1 0; }
.battle-result-logs.is-roster { display: flex; }
.battle-result-logs.is-roster > .battle-roster { flex: 1; min-width: 0; }
.battle-roster .battle-effects { max-height: 2.4em; overflow: auto; }
.battle-ended > footer { flex: 0 0 44px; display: flex; justify-content: center; }
.battle-ended > footer .btn { width: min(340px,100%); }
.battle-capture-locale { font-size: var(--fs-xs); }
@container (max-width: 650px) {
  .battle-heading h2 { font-size: var(--fs-m); }
  .battle-browser { grid-template-columns: minmax(0,1fr); }
  .battle-detail-hint { display: none; }
  .battle-browser.has-detail { grid-template-rows: 44px minmax(0,1fr); }
  .battle-browser.has-detail .battle-results { display: contents; }
  .battle-browser.has-detail .battle-filters, .battle-browser.has-detail .battle-skill-grid, .battle-browser.has-detail .battle-results-footer { display: none; }
  .battle-browser.has-detail .battle-detail { grid-row: 2; }
  .battle .battle-portrait { width: 36px; height: 44px; flex-basis: 36px; }
  .battle-fighter { gap: 3px; padding: 3px; }
  .battle-fighter-copy strong { font-size: var(--fs-s); }
  .battle-fighter .bar { height: 13px; }
  .battle-fighter .bar span { font-size: var(--fs-xs); line-height: 11px; }
  .battle-status-fighters { gap: 3px; }
  .battle-target { grid-template-columns: minmax(0,1fr) 44px; }
  .battle .battle-skill .battle-skill-art, .battle .battle-skill .battle-element { display: none; }
  .battle-detail-copy .battle-skill-art { display: block; }
  .battle-skill > .btn:first-child { padding-left: 13px; }
  .battle-urgent kbd { display: none; }
  .battle-result-tabs { display: flex; gap: 3px; }
  .battle-result-tabs .btn { flex: 1; }
  .battle-result-logs { display: flex; }
  .battle-result-logs > section { display: none; flex: 1; }
  .battle-result-logs > section.selected { display: flex; }
}
/* Small phones use the same four skills; compact chrome frees space for44px actions. */
@media (max-height: 700px) {
  body[data-mobile='true'] #tab-loc > .battle { padding: 2px; gap: 2px; }
  body[data-mobile='true'] .battle-filters { display: none; }
  body[data-mobile='true'] .battle-search-row select { display: block; }
  body[data-mobile='true'] .battle-results { grid-template-rows: 44px minmax(0,1fr); gap: 2px; }
  body[data-mobile='true'] .battle-results-footer { position: absolute; top: 2px; right: 2px; height: 44px; z-index: 2; }
  body[data-mobile='true'] .battle-results-footer > output { display: none; }
  body[data-mobile='true'] .battle-active .battle-heading { padding-right: 142px; }
  body[data-mobile='true'] .battle-active .battle-heading h2 { display: none; }
  body[data-mobile='true'] .battle-heading select { width: 100%; flex: 1; }
  body[data-mobile='true'] .battle .battle-portrait { display: none; }
  body[data-mobile='true'] .battle-status-fighters .battle-fighter-copy small { display: none; }
  body[data-mobile='true'] .battle-status-fighters .battle-fighter-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body[data-mobile='true'] .battle-target { grid-template-columns: minmax(0,1fr) 88px; }
  body[data-mobile='true'] .battle-target-controls { flex-direction: row; }
  body[data-mobile='true'] .battle-target-controls .btn { width: 44px; }
  body[data-mobile='true'] .battle-threat { min-height: 32px; margin-top: 1px; padding: 2px 3px 5px; }
  body[data-mobile='true'] .battle-threat strong { font-size: var(--fs-xs); }
  body[data-mobile='true'] .battle-threat span { font-size: var(--fs-xs); }
  body[data-mobile='true'] .battle-counter { font-size: var(--fs-xs); line-height: 12px; padding: 0 2px !important; }
  body[data-mobile='true'] .battle-urgent, body[data-mobile='true'] .battle-defenses, body[data-mobile='true'] .battle-consumables { gap: 0; }
  body[data-mobile='true'] .battle-skill .battle-skill-art, body[data-mobile='true'] .battle-skill .battle-element { display: none; }
  body[data-mobile='true'] .battle-skill > .btn:first-child strong { font-size: var(--fs-s); }
  body[data-mobile='true'] .battle-skill > .btn:first-child small { font-size: var(--fs-xs); }
  body[data-mobile='true'] .battle-skill-grid { gap: 2px; }
  body[data-mobile='true'] .battle-roster-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr); }
}
/* Phone landscape keeps status left, four skills centrally, urgent actions right. */
@media (min-width: 600px) and (max-height: 450px) {
  body[data-mobile='true'] #tab-loc > .battle-active { --battle-left: 210px; --battle-right: 180px; display: grid; grid-template-columns: var(--battle-left) minmax(0,1fr) var(--battle-right); grid-template-rows: 44px minmax(0,1fr); gap: 3px; }
  body[data-mobile='true'] .battle-active .battle-heading { grid-column: 2; grid-row: 1; min-width: 0; padding-right: 142px; }
  body[data-mobile='true'] .battle-active .battle-status { grid-column: 1; grid-row: 1 / 3; min-height: 0; }
  body[data-mobile='true'] .battle-status-fighters { grid-template-columns: 1fr; gap: 2px; }
  body[data-mobile='true'] .battle-active .battle-main { grid-column: 2; grid-row: 2; }
  body[data-mobile='true'] .battle-active .battle-urgent { grid-column: 3; grid-row: 1 / 3; grid-template-columns: 1fr 1fr; align-content: center; }
  body[data-mobile='true'] .battle-defenses, body[data-mobile='true'] .battle-consumables { grid-template-columns: 1fr; grid-template-rows: repeat(3,minmax(44px,1fr)); }
  body[data-mobile='true'] .battle-results-footer { right: calc(var(--battle-right) + 5px); }
  body[data-mobile='true'] .battle-browser { grid-template-columns: minmax(0,1fr); }
  body[data-mobile='true'] .battle-detail-hint { display: none; }
  body[data-mobile='true'] .battle-browser.has-detail { grid-template-rows: 44px minmax(0,1fr); }
  body[data-mobile='true'] .battle-browser.has-detail .battle-results { display: contents; }
  body[data-mobile='true'] .battle-browser.has-detail .battle-skill-grid, body[data-mobile='true'] .battle-browser.has-detail .battle-results-footer { display: none; }
  body[data-mobile='true'] .battle-detail { padding: 2px; gap: 0; position: relative; }
  body[data-mobile='true'] .battle-detail-back { position: absolute; right: 0; top: -44px; width: 110px; }
  body[data-mobile='true'] .battle-browser.has-detail .battle-search-row { padding-right: 110px; }
  body[data-mobile='true'] .battle-browser.has-detail .battle-search-row select { display: none; }
  body[data-mobile='true'] .battle-roster-grid { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr); }
  body[data-mobile='true'] #tab-loc > .battle-ended { display: grid; grid-template-columns: 210px minmax(0,1fr); grid-template-rows: 44px minmax(0,1fr) 44px; }
  body[data-mobile='true'] .battle-ended .battle-result-title { grid-column: 1; grid-row: 1; }
  body[data-mobile='true'] .battle-result-title h2 { font-size: var(--fs-m); }
  body[data-mobile='true'] .battle-result-title p { font-size: var(--fs-s); }
  body[data-mobile='true'] .battle-final-state { grid-column: 1; grid-row: 2 / 4; }
  body[data-mobile='true'] .battle-final-state > div { grid-template-columns: 1fr; }
  body[data-mobile='true'] .battle-result-tabs { display: flex; grid-column: 2; grid-row: 1; }
  body[data-mobile='true'] .battle-result-logs { display: flex; grid-column: 2; grid-row: 2; }
  body[data-mobile='true'] .battle-result-logs > section { display: none; flex: 1; }
  body[data-mobile='true'] .battle-result-logs > section.selected { display: flex; }
  body[data-mobile='true'] .battle-result-logs h3 { display: none; }
  body[data-mobile='true'] .battle-ended > footer { grid-column: 2; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { .battle *, .battle *::before, .battle *::after { animation: none !important; transition: none !important; } }
/* Průběh boje je vidět stále vedle schopností (místo prázdného panelu detailu). */
.battle-side-log { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.battle-side-log > h3 { font-size: var(--fs-m); margin: 0; color: #e8d6a8; }
.battle .battle-side-log > .battle-log { flex: 1 1 0; height: auto; padding: 6px; font-size: var(--fs-s); line-height: 1.4; }
/* S jednou či dvěma schopnostmi karty nevyplňují celou výšku a nezůstávají prázdná políčka. */
.battle-skill-grid.few { grid-template-rows: minmax(0, 150px); align-content: start; }
/* Slabiny a odolnosti na konci boje celé, bez vnitřního posuvníku. */
.battle-final-state .battle-affinities { max-height: none; overflow: visible; }
@container (max-width: 650px) {
  .battle-side-log { display: none; }
  .battle-ended { overflow-y: auto; }
  .battle-ended .battle-result-logs { flex: 1 0 170px; }
  .battle-ended > footer { position: sticky; bottom: 0; z-index: 2; padding-top: 4px; background: #0b1620; }
}
@media (min-width: 600px) and (max-height: 450px) { body[data-mobile='true'] .battle-side-log { display: none; } }

/* ===== 04_ai_obrazky_se_zmensuji_hladce_.css ===== */
/* AI obrázky se zmenšují hladce, procedurální pixel-art ostře */
img[src^="assets/"] { image-rendering: auto; }
.fighter.boss img[src^="assets/"] { width: 200px; height: 200px; filter: drop-shadow(0 0 12px #ff9a2f55); }

/* ===== 05_takticky_souboj.css ===== */
/* ---------- taktický souboj ---------- */
.cast { position: relative; height: 15px; margin: 3px 0; background: #1a1010; border: 1px solid #ff9a2f; }
.cast > i { display: block; height: 100%; background: linear-gradient(90deg, #ff9a2f, #ffd23f); transition: width .3s linear; }
.cast > span { position: absolute; inset: 0; font-size: var(--fs-xs); line-height: 13px; text-align: center; color: #fff; text-shadow: 1px 1px 0 #000; white-space: nowrap; overflow: hidden; }
.cast.unint { border-color: #ff4f4f; } .cast.unint > i { background: linear-gradient(90deg, #a01818, #ff4f4f); }
.cast.atme { animation: pulse .6s infinite alternate; }
.fighter.casting { box-shadow: 0 0 12px #ff9a2f88; }
.fighter.enraged { border-color: #ff4f4f; box-shadow: 0 0 14px #ff4f4faa; }
.fighter .wr { display: flex; justify-content: center; gap: 3px; font-size: var(--fs-s); min-height: 16px; }
.fighter .wr .weak { color: var(--good); border: 1px solid var(--good); padding: 0 2px; }
.fighter .wr .res { opacity: .45; text-decoration: line-through; padding: 0 2px; }
.warn { text-align: center; color: #fff; background: #5a1414; border: 2px solid #ff4f4f; padding: 6px; margin: 6px 0; font-weight: bold; animation: pulse .5s infinite alternate; }
.counter-note { text-align: center; color: #ffd23f; font-weight: bold; text-shadow: 0 0 8px #ffd23f88; }
.btn.def { min-width: 110px; border-color: #3f6f9f; }
.btn.good { border-color: var(--good); box-shadow: 0 0 8px #5fd36a66; }
.btn.counter { border-color: #ffd23f; box-shadow: 0 0 8px #ffd23f88; }
.btn .key { display: inline-block; min-width: 14px; font-size: var(--fs-xs); color: var(--muted); margin-right: 4px; border: 1px solid #4a4160; padding: 0 2px; }
.skills.defs { margin-bottom: 0; }
@keyframes pulse { from { filter: brightness(1); } to { filter: brightness(1.5); } }
.fighter.shake { animation: shake .3s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-5px); background: #5a1414; } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.fighter.glow { animation: glow .5s; }
@keyframes glow { 0% { box-shadow: 0 0 18px #5fd36a; } 100% { box-shadow: none; } }
#fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.float { position: fixed; transform: translate(-50%, 0); font-weight: bold; font-size: var(--fs-l); text-shadow: 2px 2px 0 #000, 0 0 6px #000; animation: floatup 1.1s ease-out forwards; white-space: nowrap; }
@keyframes floatup { 0% { opacity: 1; margin-top: 0; transform: translate(-50%, 0) scale(1.2); } 100% { opacity: 0; margin-top: -55px; transform: translate(-50%, 0) scale(1); } }
.f-dmg { color: #ff6a5a; } .f-crit { color: #ffd23f; font-size: var(--fs-xl); } .f-heal { color: #5fd36a; }
.f-dodge, .f-miss { color: #9ad0ff; } .f-block { color: #7fa8ff; } .f-weak { color: #5fd36a; font-size: var(--fs-m); }
.f-resist { color: #8a8398; font-size: var(--fs-s); } .f-interrupt { color: #ff9a2f; font-size: var(--fs-l); } .f-counter { color: #ffd23f; font-size: var(--fs-m); }
.f-stun { color: #e080ff; } .f-death { color: #ff4f4f; font-size: var(--fs-xl); } .f-enrage { color: #ff4f4f; font-size: var(--fs-xl); } .f-spawn { color: #ff9a2f; }
