/* 12_theme.css – Hrdina, téma, základna.
   Sloučeno z: 43_hero.css, 44_theme.css, 45_base.css (pořadí zachováno). */

/* ===== 43_hero.css ===== */
/* ============================================================================
   Nový vzhled „Worldbreak“ – obrazovka hrdiny (45_hero_screen.js)
   Paleta: hluboká námořnická modř, fialová, teplé zlato; tmavé sklo, krystalové šestiúhelníky.
   ============================================================================ */
/* :root – hodnoty jsou v 00_tokens.css */
.hs { display: grid; gap: 14px; }
.inventory-content:has(> .hs) { display: block; overflow-y: auto; overscroll-behavior: contain; }
.hs-stage { position: relative; display: grid; grid-template-columns: minmax(230px, 290px) 1fr minmax(260px, 330px); gap: 14px; padding: 14px; min-height: 640px;
  border-radius: 18px; border: 1px solid var(--zs-line); overflow: clip; isolation: isolate;
  background: radial-gradient(ellipse 60% 55% at 50% 62%, transparent, rgba(8, 7, 5, .55) 80%), url("../assets/hero/chamber.webp") center 70% / cover no-repeat, var(--zs-navy);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 80px rgba(0, 0, 0, .6); }
.hs-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; background: linear-gradient(180deg, rgba(8, 7, 5, .25), transparent 30%, transparent 70%, rgba(8, 7, 5, .6)); }
.hs-panel { position: relative; z-index: 2; align-self: start; padding: 14px; border-radius: 14px; background: var(--zs-glass); border: 1px solid var(--zs-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 230, 170, .08); color: #e9e1cf; }
.hs-panel::before { content: ""; position: absolute; inset: 4px; border-radius: 11px; border: 1px solid rgba(217, 178, 106, .12); pointer-events: none; }
.hs-name { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--zs-line); }
.hs-name b { display: block; font: 700 var(--fs-l)/1.15 var(--display-font, Georgia, serif) !important; color: var(--zs-gold2); letter-spacing: .02em; }
.hs-name small { color: #b8b2c8; font-size: var(--fs-s); }
.hs-lvl { flex: none; width: 52px; height: 58px; display: grid; place-items: center; font: 800 var(--fs-l)/1 var(--display-font, Georgia, serif) !important; color: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, #f3d48e, #8a6a2a); position: relative; }
.hs-lvl::after { content: ""; position: absolute; inset: 3px; clip-path: inherit; background: radial-gradient(circle at 50% 35%, #3a2a5a, #12100d); z-index: -1; }
.hs-lvl { z-index: 0; text-shadow: 0 0 10px rgba(201, 162, 90, .8); }
.hs-stat { display: grid; grid-template-columns: 22px 1fr auto; gap: 2px 8px; align-items: center; margin: 7px 0; }
.hs-stat .hs-ic { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; color: var(--zs-gold); font-size: var(--fs-m); }
.hs-stat b { font-size: var(--fs-s); font-weight: 600; color: #d9d2e8; text-transform: uppercase; letter-spacing: .06em; }
.hs-stat em { font-style: normal; font-weight: 800; color: #fff; font-size: var(--fs-m); }
.hs-stat i { grid-column: 2 / 4; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.hs-stat i u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8a6a35, #c9a25a 70%, #f3d48e); box-shadow: 0 0 8px rgba(201, 162, 90, .6); }
.hs-kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.hs-kv { padding: 6px 8px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(217, 178, 106, .14); }
.hs-kv small { display: block; font-size: var(--fs-xs); color: #9f98b4; text-transform: uppercase; letter-spacing: .05em; }
.hs-kv b { font-size: var(--fs-m); color: #f1ead8; }
.hs-power { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 8px 10px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(201, 162, 90, .22), rgba(217, 178, 106, .12)); border: 1px solid rgba(201, 162, 90, .35); }
.hs-power small { color: #cfc6e6; font-size: var(--fs-s); } .hs-power b { color: var(--zs-gold2); font-size: var(--fs-l); }
.hs-more { width: 100%; margin-top: 10px; padding: 9px; border-radius: 10px; border: 1px solid var(--zs-line); background: rgba(217, 178, 106, .08); color: var(--zs-gold2); font-weight: 700; cursor: pointer; letter-spacing: .04em; }
.hs-more:hover { background: rgba(217, 178, 106, .18); }
/* střed: hrdina a souhvězdí výbavy */
.hs-center { position: relative; z-index: 1; min-height: 600px; }
.hs-ring { position: absolute; inset: 0; }
.hs-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-lines line { stroke: rgba(243, 212, 142, .22); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.hs-plat { position: absolute; left: 50%; bottom: 3%; width: 62%; height: 15%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--hs-aura) 45%, transparent), rgba(217, 178, 106, .18) 45%, transparent 70%);
  box-shadow: 0 0 0 2px rgba(243, 212, 142, .35), 0 0 0 9px rgba(243, 212, 142, .07), 0 0 60px color-mix(in srgb, var(--hs-aura) 50%, transparent); animation: hsPlat 4s ease-in-out infinite; }
@keyframes hsPlat { 50% { box-shadow: 0 0 0 2px rgba(243, 212, 142, .5), 0 0 0 12px rgba(243, 212, 142, .05), 0 0 80px color-mix(in srgb, var(--hs-aura) 65%, transparent); } }
.hs-fig { position: absolute; left: 50%; bottom: 8%; height: 84%; max-width: 54%; object-fit: contain; object-position: bottom; transform: translateX(-50%); transform-origin: 50% 100%;
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--hs-aura) 55%, transparent)) drop-shadow(0 10px 12px rgba(0, 0, 0, .6)); animation: hsBreathe 5s ease-in-out infinite; pointer-events: none; }
@keyframes hsBreathe { 50% { transform: translateX(-50%) scale(1.012, 1.008); } }
.hs-sock { position: absolute; z-index: 2; width: 58px; height: 64px; padding: 0; border: 0; cursor: pointer; transform: translate(-50%, -50%); --rc: #5b4c34;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, var(--rc), color-mix(in srgb, var(--rc) 35%, #000));
  display: grid; place-items: center; transition: transform .15s; }
.hs-sock::before { content: ""; position: absolute; inset: 3px; clip-path: inherit; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 40%, #1e1a15), #0c0b09 75%); }
.hs-sock > * { position: relative; z-index: 1; }
.hs-sock :is(img, svg, canvas, .item-icon) { width: 38px !important; height: 38px !important; object-fit: contain; image-rendering: auto; }
.hs-sock.empty { --rc: #3a3250; opacity: .8; }
.hs-sock .hs-ph { color: rgba(217, 178, 106, .55); font-size: var(--fs-l); }
.hs-sock:hover { transform: translate(-50%, -50%) scale(1.12); }
.hs-sock.on { transform: translate(-50%, -50%) scale(1.16); --rc: var(--zs-gold2); }
.hs-sock.on::after { content: ""; position: absolute; inset: 0; clip-path: inherit; box-shadow: inset 0 0 14px var(--zs-gold2); z-index: 2; pointer-events: none; }
.hs-plus { position: absolute !important; bottom: 7px; right: 50%; transform: translateX(50%); font: 800 var(--fs-xs)/1 var(--font-ui) !important; color: #fff; text-shadow: 0 1px 2px #000; font-style: normal; }
/* vpravo: karta předmětu */
.hs-right h3 { margin: 0 0 6px; color: var(--zs-gold2); }
.hs-right h4 { margin: 12px 0 6px; font-size: var(--fs-s); text-transform: uppercase; letter-spacing: .06em; color: #b8b2c8; }
.hs-empty { color: #9f98b4; font-size: var(--fs-s); margin: 4px 0; }
.hs-fits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hs-card { border-color: color-mix(in srgb, var(--rc) 60%, transparent); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 30px color-mix(in srgb, var(--rc) 22%, transparent); }
.hs-card .rpg-card-head > :first-child { flex-basis: 72px; width: 72px; height: 72px; border-radius: 12px; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 35%, #0c0b09), #0c0b09);
  box-shadow: 0 0 18px color-mix(in srgb, var(--rc) 40%, transparent); }
.hs-card .rpg-card-head b { font-size: var(--fs-l); }
.hs-card .rpg-card-acts .btn.primary, .hs-card .rpg-card-acts .btn:first-child { background: linear-gradient(#8a6a35, #4a3a22); border-color: #c9a25a; color: #fff; }
/* batoh pod jevištěm ve stejném stylu */
.hs .rpg-bag { padding: 14px; border-radius: 16px; background: var(--zs-glass); border: 1px solid var(--zs-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.hs .rpg-bag h3 { color: var(--zs-gold2); }
.hs .rpg-grid { grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); }
/* užší plocha (řídí se šířkou obsahu, ne okna – vedle je chat) */
.hs { container-type: inline-size; }
@container (max-width: 1240px) {
  .hs-stage { grid-template-columns: 1fr 1fr; grid-template-areas: "c c" "l r"; }
  .hs-center { grid-area: c; min-height: 620px; } .hs-left { grid-area: l; } .hs-right { grid-area: r; }
}
@container (max-width: 640px) {
  .hs-stage { grid-template-columns: 1fr; grid-template-areas: "c" "r" "l"; }
}
@media (max-width: 720px) {
  .hs-stage { padding: 8px; gap: 10px; border-radius: 14px; }
  .hs-center { min-height: 470px; }
  .hs-fig { height: 72%; max-width: 50%; bottom: 10%; }
  .hs-sock { width: 44px; height: 49px; }
  .hs-sock :is(img, svg, canvas, .item-icon) { width: 28px !important; height: 28px !important; }
  .hs-panel { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hs-fig, .hs-plat { animation: none; } }
body[data-anim="off"] :is(.hs-fig, .hs-plat) { animation: none; }

/* ---------------------------------------------------------------- prohlížení cizího hrdiny (47_hero_view.js) */
.hv { position: fixed; inset: 0; z-index: 9200; display: grid; place-items: center; padding: 16px; }
.hv-back { position: absolute; inset: 0; background: rgba(6, 5, 4, .78); backdrop-filter: blur(4px); animation: hvFade .25s; }
.hv-win { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 32px); overflow: auto; container-type: inline-size; animation: hvIn .35s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes hvFade { from { opacity: 0; } } @keyframes hvIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.hv-load { text-align: center; padding: 40px; color: #ddd; background: var(--zs-glass); border-radius: 14px; border: 1px solid var(--zs-line); }
.hv-x { position: absolute; right: 10px; top: 10px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--zs-line); background: rgba(13, 12, 9, .85); color: var(--zs-gold2); font-size: var(--fs-m); cursor: pointer; }
.hv-stage { min-height: 600px; }
.hv-tag { font-size: var(--fs-s); color: #b9a6ff; }
.hv-item header { display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--zs-line); }
.hv-item header > :first-child { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 35%, #0c0b09), #0c0b09); box-shadow: 0 0 16px color-mix(in srgb, var(--rc) 40%, transparent); }
.hv-item header b { display: block; font-size: var(--fs-m); }
.hv-item header small { color: #b8b2c8; font-size: var(--fs-s); }
.hv-tip { padding-top: 8px; font-size: var(--fs-s); line-height: 1.45; }
.hv-tip > b:first-child { display: none; }
.town2-person:not(.town2-folk), .social-person { cursor: pointer; }
.town2-person:not(.town2-folk):hover, .social-person:hover { outline: 1px solid rgba(243, 212, 142, .45); outline-offset: 1px; border-radius: 10px; }

/* ================================================================ AURY HRDINY (kosmetika, listopad 2026) */
.aura-fx { position: absolute; left: 50%; bottom: 5%; width: 48%; height: 88%; transform: translateX(-50%); pointer-events: none; --a1: transparent; --a2: transparent; }
.rdb-fig .aura-fx { bottom: 0; width: 80%; height: 100%; }
.aura-fx:empty { display: none; }
.aura-fx:not(:empty) { z-index: 2; mix-blend-mode: screen; }
.hs-ring .hs-sock { z-index: 3; }
.aura-fx::before { content: ""; position: absolute; inset: 6% 4% 10%; border-radius: 50%; background: radial-gradient(ellipse at 50% 55%, var(--a1) 0, color-mix(in srgb, var(--a2) 55%, transparent) 38%, transparent 70%);
  opacity: .32; filter: blur(16px); animation: auraBreath 3.6s ease-in-out infinite; }
.aura-fx::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -2%; height: 14%; border-radius: 50%; border: 2px solid var(--a1);
  box-shadow: 0 0 18px var(--a1), inset 0 0 14px var(--a2); opacity: .75; animation: auraRing 2.8s ease-in-out infinite; }
.aura-fx i { position: absolute; bottom: 6%; width: 9px; height: 9px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 10px var(--a1), 0 0 4px var(--a2);
  opacity: 0; animation: auraRise 3.4s linear infinite; }
.aura-fx i:nth-child(1) { left: 14%; animation-delay: 0s; }
.aura-fx i:nth-child(2) { left: 30%; animation-delay: .9s; transform: scale(.7); }
.aura-fx i:nth-child(3) { left: 48%; animation-delay: 1.7s; }
.aura-fx i:nth-child(4) { left: 64%; animation-delay: .4s; transform: scale(.8); }
.aura-fx i:nth-child(5) { left: 80%; animation-delay: 2.3s; }
.aura-fx i:nth-child(6) { left: 40%; animation-delay: 2.9s; transform: scale(.6); }
@keyframes auraBreath { 50% { opacity: .5; transform: scale(1.05); } }
@keyframes auraRing { 50% { opacity: 1; transform: scaleX(1.06); } }
@keyframes auraRise { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 80% { opacity: .8; } 100% { opacity: 0; translate: 10px -520%; } }
@keyframes auraFall { 0% { opacity: 0; translate: 0 -900%; } 20% { opacity: 1; } 100% { opacity: 0; translate: -8px 0; } }
@keyframes auraOrbit { 0% { opacity: .95; transform: rotate(0deg) translateX(var(--r, 100px)) rotate(0deg) scaleY(.9); } 100% { opacity: .95; transform: rotate(360deg) translateX(var(--r, 100px)) rotate(-360deg) scaleY(.9); } }
@keyframes auraFlick { 0%,100% { transform: scale(1, 1); } 50% { transform: scale(.85, 1.25); } }

.aura-fx[data-aura="a_hvezdy"], .aura-dot[data-aura="a_hvezdy"] { --a1: #ffd770; --a2: #fff3c4; }
.aura-fx[data-aura="a_hvezdy"] i { width: 11px; height: 11px; border-radius: 0; clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); animation-duration: 4.6s; }

.aura-fx[data-aura="a_prazdnota"], .aura-dot[data-aura="a_prazdnota"] { --a1: #a66bff; --a2: #3b1580; }
.aura-fx[data-aura="a_prazdnota"] i { width: 34px; height: 34px; filter: blur(9px); opacity: 0; background: radial-gradient(circle, #b98cff, transparent 70%); box-shadow: none; animation-duration: 5.2s; }

.aura-fx[data-aura="a_plamen"], .aura-dot[data-aura="a_plamen"] { --a1: #ff7a2a; --a2: #ffd04a; }
.aura-fx[data-aura="a_plamen"] i { width: 14px; height: 22px; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; background: linear-gradient(180deg, #fff1a8, #ff9a2e 55%, #d8361a);
  box-shadow: 0 0 14px #ff7a2a; animation: auraRise 1.9s linear infinite, auraFlick .35s ease-in-out infinite; }
.aura-fx[data-aura="a_plamen"]::after { border-color: #ffb347; }

.aura-fx[data-aura="a_mraz"], .aura-dot[data-aura="a_mraz"] { --a1: #8fe6ff; --a2: #e8fbff; }
.aura-fx[data-aura="a_mraz"] i { width: 8px; height: 8px; border-radius: 1px; rotate: 45deg; background: #e8fbff; bottom: auto; top: 90%; animation-name: auraFall; animation-duration: 4.2s; }

.aura-fx[data-aura="a_krystal"], .aura-dot[data-aura="a_krystal"] { --a1: #c9a2ff; --a2: #ffd27a; }
.aura-fx[data-aura="a_krystal"] i { left: calc(50% - 8px) !important; bottom: 42%; width: 16px; height: 18px; border-radius: 0; opacity: .95; --r: 110px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, #fff, #c9a2ff 50%, #6b3dff);
  animation: auraOrbit 7s linear infinite; }
.rdb-fig .aura-fx[data-aura="a_krystal"] i { --r: 90px; }
.aura-fx[data-aura="a_krystal"] { z-index: 2; }
.aura-fx[data-aura="a_krystal"]::before { opacity: .28; }
.hs-ring .aura-fx[data-aura="a_krystal"] i { --r: clamp(120px, 18cqi, 190px); }
.aura-fx[data-aura="a_krystal"] i:nth-child(2) { animation-delay: -1.17s; background: linear-gradient(160deg, #fff, #ffd27a 50%, #b4562f); }
.aura-fx[data-aura="a_krystal"] i:nth-child(3) { animation-delay: -2.33s; }
.aura-fx[data-aura="a_krystal"] i:nth-child(4) { animation-delay: -3.5s; background: linear-gradient(160deg, #fff, #ffd27a 50%, #b4562f); }
.aura-fx[data-aura="a_krystal"] i:nth-child(5) { animation-delay: -4.67s; }
.aura-fx[data-aura="a_krystal"] i:nth-child(6) { animation-delay: -5.83s; background: linear-gradient(160deg, #fff, #ffd27a 50%, #b4562f); }

.aura-fx[data-aura="a_hlubiny"], .aura-dot[data-aura="a_hlubiny"] { --a1: #ff6fae; --a2: #6b3dff; }
.aura-fx[data-aura="a_hlubiny"] i { left: 20% !important; right: 20%; width: auto; height: 10%; border-radius: 50%; background: none; border: 2px solid #ff6fae; box-shadow: 0 0 12px #ff6fae; animation-duration: 3s; }

/* výběr aury na obrazovce Hrdina */
.hs-aura-btn { margin-top: 6px; background: linear-gradient(90deg, rgba(201, 162, 90, .25), rgba(255, 210, 120, .18)); }
.hs-auras { overflow-y: auto; }
.hs-aura-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.hs-aura-opt { display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 12px;
  background: rgba(20, 18, 14, .75); border: 1px solid rgba(190, 150, 255, .22); color: #efe6ff; cursor: pointer; transition: border-color .2s, transform .2s; }
.hs-aura-opt:hover { border-color: rgba(255, 210, 120, .6); transform: translateX(2px); }
.hs-aura-opt[aria-disabled="true"] { opacity: .7; cursor: help; }
.hs-aura-opt.on { border-color: #ffd27a; box-shadow: 0 0 14px rgba(255, 210, 120, .35); }
.hs-aura-opt .aura-dot { grid-row: 1 / 3; width: 30px; height: 34px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(circle at 50% 40%, var(--a2, #555), var(--a1, #222)); }
.hs-aura-opt .aura-dot[data-aura=""] { background: rgba(255, 255, 255, .12); }
.hs-aura-opt b { font-size: var(--fs-xs); }
.hs-aura-opt small { grid-column: 2; font-size: var(--fs-xs); color: #bfb0e6; line-height: 1.25; }
.hs-aura-opt em { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-size: var(--fs-xs); color: #ffd98a; white-space: nowrap; }
.hv-title { display: block; font-style: normal; font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: #ffd98a; }
@media (prefers-reduced-motion: reduce) { .aura-fx, .aura-fx * , .aura-fx::before, .aura-fx::after { animation: none !important; } }
body[data-anim="off"] :is(.aura-fx, .aura-fx i, .aura-fx::before, .aura-fx::after) { animation: none !important; }
.eco-aura { display: flex; flex-direction: column; gap: 6px; }
.eco-aura.on { border-color: #ffd27a !important; box-shadow: 0 0 18px rgba(255, 210, 122, .3); }
.eco-aura-prev { position: relative; height: 170px; overflow: hidden; border-radius: 12px; background: radial-gradient(ellipse at 50% 80%, rgba(90, 50, 170, .45), rgba(9, 8, 6, .9) 70%); }
.eco-aura-prev img { position: absolute; left: 50%; bottom: 4%; height: 92%; transform: translateX(-50%); object-fit: contain; }
.eco-aura-prev .aura-fx { width: 70%; height: 92%; bottom: 4%; }
.eco-aura-prev .aura-fx[data-aura="a_krystal"] i { --r: 56px; }
.hs-skin-th { grid-row: 1 / 3; width: 34px; height: 48px; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 0 4px rgba(201, 162, 255, .5)); }
.hs-auras h3 + .hs-aura-list { margin-bottom: 12px; }

/* ---------------------------------------------------------------- Charakter ve vzhledu Výbavy (54_char_sheet.js) */
.hcs-stage { --hs-aura: #8a6aff; min-height: 680px; }
.hcs-center { min-height: 640px; }
.hcs-center .hs-fig { height: 88%; max-width: 70%; }
.hcs-meters { display: grid; gap: 5px; margin-bottom: 4px; }
.hcs-meter { position: relative; height: 16px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .07); border: 1px solid rgba(217, 178, 106, .18); }
.hcs-meter i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; transition: width .4s ease; }
.hcs-meter.hp i { background: linear-gradient(90deg, #8a1f2a, #e0484f); box-shadow: 0 0 10px rgba(224, 72, 79, .5); }
.hcs-meter.mp i { background: linear-gradient(90deg, #22408f, #4f8fff); box-shadow: 0 0 10px rgba(79, 143, 255, .5); }
.hcs-meter.xp { height: 12px; } .hcs-meter.xp i { background: linear-gradient(90deg, #8a6a35, #c9a25a 70%, #f3d48e); }
.hcs-meter span { position: relative; display: block; text-align: center; font: 700 var(--fs-xs)/14px var(--font-ui); color: #fff; text-shadow: 0 1px 2px #000; }
.hcs-meter.xp span { line-height: 10px; font-size: var(--fs-xs); }
.hcs-h { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin: 14px 0 6px; font-size: var(--fs-s); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--zs-gold2); }
.hcs-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--zs-line), transparent); order: 1; }
.hcs-free { order: 2; padding: 2px 8px; border-radius: 999px; background: rgba(201, 162, 90, .3); border: 1px solid #c9a25a; color: #fff; font-size: var(--fs-xs); letter-spacing: .04em; animation: hcsGlow 2s ease-in-out infinite; }
@keyframes hcsGlow { 50% { box-shadow: 0 0 12px rgba(201, 162, 90, .7); } }
.hcs-stat { cursor: help; padding: 2px 4px; margin: 4px -4px; border-radius: 8px; transition: background .15s; }
.hcs-stat:hover { background: rgba(255, 255, 255, .05); }
.hcs-stat.main b { color: var(--zs-gold2); }
.hcs-star { font-style: normal; color: var(--zs-gold2); text-shadow: 0 0 8px rgba(243, 212, 142, .8); }
.hcs-val { display: flex; align-items: center; gap: 6px; }
.hcs-val small { font-size: var(--fs-xs); color: #8fd99a; }
.hcs-plus { width: 22px; height: 22px; padding: 0; border-radius: 6px; border: 1px solid #c9a25a; background: linear-gradient(#8a6a35, #4a3a22); color: #fff; font-weight: 800; cursor: pointer; line-height: 1; }
.hcs-plus:hover { filter: brightness(1.25); box-shadow: 0 0 10px rgba(201, 162, 90, .7); }
.hcs-gold b { color: var(--zs-gold2); }
.hcs-right { width: 100%; }
.hcs-right .hs-power { margin-top: 0; }
.hcs-kpis { margin-top: 0; }
.hcs-kpis .hs-kv { cursor: help; }
.hcs-kpis .hs-kv small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcs-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; margin-bottom: 8px; }
.hcs-tab { padding: 6px 4px; border: 0; border-radius: 8px; background: transparent; color: #b8b2c8; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcs-tab:hover { color: #fff; }
.hcs-tab.on { background: linear-gradient(#8a6a35, #4a3a22); color: #fff; box-shadow: 0 0 12px rgba(201, 162, 90, .45), inset 0 1px 0 rgba(255, 255, 255, .15); }
.hcs-rows { display: grid; gap: 2px; animation: hcsIn .2s ease-out; }
@keyframes hcsIn { from { opacity: 0; transform: translateY(4px); } }
.hcs-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; border-radius: 7px; font-size: var(--fs-s); color: #cfc8de; cursor: help; }
.hcs-row:nth-child(odd) { background: rgba(255, 255, 255, .035); }
.hcs-row:hover { background: rgba(201, 162, 90, .16); }
.hcs-row b { color: #f1ead8; white-space: nowrap; }
.hcs-note { font-size: var(--fs-xs); margin-top: 8px; }
@container (max-width: 1240px) { .hcs-center { min-height: 520px; } }
@container (max-width: 640px) { .hcs-stage { grid-template-areas: "c" "l" "r"; } }
@media (max-width: 720px) {
  .hcs-stage { min-height: 0; }
  .hcs-center { min-height: 380px; }
  .hcs-center .hs-fig { height: 86%; max-width: 78%; bottom: 7%; }
}
@media (prefers-reduced-motion: reduce) { .hcs-free, .hcs-rows { animation: none; } }

/* ---------------------------------------------------------------- portrét hrdiny = výřez obličeje z velké postavy (45a_hero_look.js) */
.character-art.hl-art { position: relative; overflow: hidden; container-type: normal; background: radial-gradient(circle at 50% 35%, #3a2a5a, #12100d 75%); }
.character-art.hl-art > img.hl-face { position: absolute; left: 50%; top: 50%; width: auto; height: 420%; max-width: none; max-height: none;
  object-fit: fill; transform: translate(calc(-1 * var(--fx, 50%)), calc(-1 * var(--fy, 9%))); image-rendering: auto; pointer-events: none; border-radius: 0; }

/* ---------------------------------------------------------------- hráči online (55_online_list.js) */
.exo2-chip-btn, button.hub-online { cursor: pointer; font: inherit; color: inherit; transition: background .15s, box-shadow .15s; }
.exo2-chip-btn { border: 1px solid rgba(110, 230, 140, .45); }
.exo2-chip-btn:hover, button.hub-online:hover { background: rgba(110, 230, 140, .16) !important; box-shadow: 0 0 10px rgba(110, 230, 140, .35); }
button.hub-online { border: 1px solid rgba(110, 230, 140, .35); border-radius: 999px; background: transparent; padding: 2px 9px; }
.onl { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; padding: 12px; }
.onl-back { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(40, 30, 20, .5), rgba(4, 3, 3, .86)); backdrop-filter: blur(4px); }
.onl-win { position: relative; width: min(560px, 100%); max-height: min(82vh, 760px); display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(33, 29, 23, .97), rgba(11, 9, 8, .98)); border: 1px solid rgba(200, 165, 255, .35); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); color: #e9e1cf;
  animation: hpIn .3s cubic-bezier(.2, .9, .3, 1.1); }
.onl-head { display: flex; align-items: center; gap: 8px; }
.onl-head h2 { flex: 1; margin: 0; display: flex; align-items: center; gap: 9px; font-size: var(--fs-m); color: var(--zs-gold2); }
.onl-count { padding: 2px 10px; border-radius: 999px; background: rgba(110, 230, 140, .16); border: 1px solid rgba(110, 230, 140, .45); color: #9ff0b4; font-size: var(--fs-xs); }
.onl-dot { width: 10px; height: 10px; border-radius: 50%; background: #5fe08a; box-shadow: 0 0 10px #5fe08a; animation: hcsGlow 2s ease-in-out infinite; }
.onl-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--zs-line); background: rgba(217, 178, 106, .08); color: var(--zs-gold2); font-size: var(--fs-m); cursor: pointer; }
.onl-btn:hover { background: rgba(217, 178, 106, .2); }
.onl-search { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(200, 165, 255, .3); background: rgba(0, 0, 0, .35); color: #fff; font-size: var(--fs-m); }
.onl-hint { margin: 0; font-size: var(--fs-s); color: #9f98b4; }
.onl-body { min-height: 80px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px; }
.onl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.onl-row { width: 100%; display: grid; grid-template-columns: 48px 1fr auto 14px; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(217, 178, 106, .16); color: inherit; font: inherit; transition: background .15s, border-color .15s, transform .15s; }
.onl-row:hover { background: rgba(201, 162, 90, .18); border-color: rgba(201, 162, 90, .55); transform: translateX(2px); }
.onl-row.me { border-color: rgba(243, 212, 142, .5); }
.character-art.onl-art { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(217, 178, 106, .7); }
.onl-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.onl-main b { font-size: var(--fs-m); color: #f1ead8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onl-main small, .onl-side small { font-size: var(--fs-s); color: #b8b2c8; }
.onl-title { font-style: normal; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: #cdb6ff; }
.onl-tag { color: #8fd0ff; font-weight: 600; } .onl-me { font-size: var(--fs-xs); padding: 1px 6px; border-radius: 999px; background: rgba(243, 212, 142, .2); color: var(--zs-gold2); }
.onl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.onl-fight { font-style: normal; font-size: var(--fs-xs); color: #ff9a7a; }
.onl-go { color: var(--zs-gold2); font-size: var(--fs-l); }
.onl-msg { text-align: center; color: #9f98b4; padding: 18px 0; }
@media (max-width: 520px) { .onl-row { grid-template-columns: 42px 1fr 12px; } .character-art.onl-art { width: 42px; height: 42px; } .onl-side { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 8px; } .onl-go { grid-row: 1; grid-column: 3; } }

/* ===== 44_theme.css ===== */
/* ============================================================================
   Nový vzhled celé hry „Worldbreak“ (listopad 2026): tmavé hvězdné sklo, fialová Prázdnoty a teplé zlato.
   Jen přepis barev a povrchů přes design tokeny – rozvržení obrazovek zůstává.
   ============================================================================ */
/* :root – hodnoty jsou v 00_tokens.css */
/* pozadí: noční nebe se zlomem – mlhovina, hvězdy a slabá záře portálu */
body { background: #0b0a08; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(201, 162, 90, .30), transparent 70%),
    radial-gradient(700px 480px at 8% 108%, rgba(217, 140, 80, .12), transparent 70%),
    radial-gradient(1200px 800px at 50% 40%, #1a1612 0%, #0f0d0a 55%, #080705 100%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 32% 72%, #cfc4ff, transparent),
    radial-gradient(1.5px 1.5px at 58% 12%, #fff6d8, transparent), radial-gradient(1px 1px at 74% 44%, #fff, transparent),
    radial-gradient(1px 1px at 88% 82%, #bfb0ff, transparent), radial-gradient(1.5px 1.5px at 22% 48%, #fff, transparent),
    radial-gradient(1px 1px at 46% 92%, #fff, transparent), radial-gradient(1px 1px at 92% 22%, #ffe9b0, transparent);
  background-size: 420px 420px; animation: zsStars 120s linear infinite; }
@keyframes zsStars { to { background-position: 420px 840px; } }
body[data-anim="off"]::after { animation: none; }
/* tlačítka: tmavé sklo se zlatým okrajem, hlavní akce zlatá, vybrané záložky fialovo-zlaté */
#center :is(.inventory-tabs, .craft-navigation, .ind-navigation, .rd11-tabs, .eco-tabs, .rd07-tabs, .social-tabs, .world-nav, .adv-tabs, .adv-collection-tabs) > :is(.btn.primary, .btn[aria-pressed="true"], .btn[aria-current="page"]),
#center :is(.eco-content, .inventory-content, .adv-body) :is(.eco-tabs, .inventory-tabs) > :is(.btn.primary, .btn[aria-pressed="true"]),
#center .craft-filter-buttons > :is(.btn.primary, .btn[aria-pressed="true"]) {
  background: linear-gradient(160deg, rgba(201, 162, 90, .55), rgba(60, 36, 130, .75)) !important; border-color: var(--zs-gold2) !important; color: #fff !important;
  box-shadow: 0 0 14px rgba(201, 162, 90, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
/* nadpisy: zlatý přechod jako v konceptu */
#center h2, .inventory-heading h2, .ds-display { background: linear-gradient(180deg, #fff2cf, #e2b867 60%, #b98a3c); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; letter-spacing: .03em; }
/* levá lišta a horní panel: sklo s jemnou fialovou */
#shell-rail { background: linear-gradient(180deg, rgba(24, 21, 17, .92), rgba(12, 10, 8, .95)) !important; border-color: rgba(217, 178, 106, .25) !important; }
#shell-rail button[aria-current="page"], #shell-rail .on, #shell-rail [aria-pressed="true"] {
  background: linear-gradient(160deg, rgba(201, 162, 90, .38), rgba(217, 178, 106, .16)); border-color: var(--zs-gold2);
  box-shadow: 0 0 14px rgba(201, 162, 90, .35), inset 0 0 10px rgba(243, 212, 142, .15); }
#topbar, .shell-top, header.game-top { background: linear-gradient(180deg, rgba(17, 15, 12, .92), rgba(12, 10, 8, .85)) !important; border-bottom: 1px solid rgba(217, 178, 106, .28) !important; }
/* pruhy života a many: lesklé, s jiskrou */
:is(.hp-bar, .bar.hp, .mp-bar, .bar.mp) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 8px rgba(0, 0, 0, .4); }
/* vzácnosti: jemná záře kolem ikon předmětů */
:is(.rpg-cell, .rpg-slot, .inv-cell, .eq-cell, .hs-fits .rpg-cell).r-epicky { box-shadow: 0 0 12px rgba(201, 162, 90, .45), inset 0 0 10px rgba(201, 162, 90, .25); }
:is(.rpg-cell, .rpg-slot, .inv-cell, .eq-cell, .hs-fits .rpg-cell).r-legendarni { box-shadow: 0 0 14px rgba(255, 154, 42, .55), inset 0 0 10px rgba(255, 154, 42, .3); animation: zsLegGlow 2.4s ease-in-out infinite; }
@keyframes zsLegGlow { 50% { box-shadow: 0 0 22px rgba(255, 170, 60, .8), inset 0 0 14px rgba(255, 170, 60, .4); } }
body[data-anim="off"] .r-legendarni { animation: none !important; }
/* scrollbary v barvách hry */
* { scrollbar-color: rgba(201, 162, 90, .35) transparent; }

/* ---------------------------------------------------------------- město v novém stylu (mapa zůstává) */
.town2-map.tm-on { border: 1px solid rgba(217, 178, 106, .45); box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 0 4px rgba(12, 10, 8, .9), 0 0 0 5px rgba(217, 178, 106, .22), 0 0 40px rgba(120, 80, 255, .18); }
.town2-map.tm-on::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 3;
  box-shadow: inset 0 0 90px rgba(7, 6, 5, .75), inset 0 0 0 1px rgba(243, 212, 142, .12); }
.town2-map.tm-on .town2-top h2 { font-size: var(--fs-xl); filter: drop-shadow(0 2px 6px #000); }
.tm-bld { background: linear-gradient(160deg, rgba(34, 30, 24, .9), rgba(12, 11, 9, .92)); border: 1px solid rgba(217, 178, 106, .5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .55), 0 0 10px rgba(201, 162, 90, .25); }
.tm-bld:hover, .tm-bld:focus-visible { border-color: var(--zs-gold2) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .6), 0 0 18px rgba(243, 212, 142, .45) !important; }
.tm-bld-ico { filter: drop-shadow(0 0 4px rgba(243, 212, 142, .6)); }
/* výpravy z města jako ilustrované karty (jako v konceptu); na telefonu zůstává úzký pruh */
#tab-loc .town2:has(.tm-on) > .town2-routes { background: linear-gradient(160deg, rgba(28, 25, 20, .9), rgba(12, 10, 8, .92)); border: 1px solid rgba(217, 178, 106, .4) !important; backdrop-filter: blur(6px); }
#tab-loc .town2:has(.tm-on) > .town2-routes > h3 { color: var(--zs-gold2); letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-s); }
@media (min-width: 761px) {
  #tab-loc .town2:has(.tm-on) > .town2-routes { width: fit-content; max-width: min(458px, 62%); border-radius: 14px; padding: 8px; }
  #tab-loc .town2:has(.tm-on) .exo2-routes { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  #tab-loc .town2:has(.tm-on) .exo2-route { position: relative; flex: 0 0 136px; max-width: 136px; width: 136px; flex-direction: column !important; align-items: stretch;
    gap: 0; padding: 0; overflow: hidden; border-radius: 11px; border: 1px solid rgba(217, 178, 106, .45); background: #0f0d0b; transition: transform .18s, box-shadow .18s; }
  #tab-loc .town2:has(.tm-on) .exo2-route-art { width: 100%; height: 70px; flex: none; border-radius: 0; background-size: cover; background-position: center;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); transition: transform .4s; }
  #tab-loc .town2:has(.tm-on) .exo2-route-copy { padding: 0 8px 7px !important; margin-top: -16px; position: relative; }
  #tab-loc .town2:has(.tm-on) .exo2-route-copy b { color: #fff3d6; text-shadow: 0 1px 3px #000; font-size: var(--fs-s); }
  #tab-loc .town2:has(.tm-on) .exo2-route-copy small { display: block; color: #b9b2cf; }
  #tab-loc .town2:has(.tm-on) .exo2-route::after { content: "›"; position: absolute; right: 7px; top: 5px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
    font-weight: 800; color: var(--zs-gold2); background: rgba(10, 9, 7, .8); border: 1px solid rgba(217, 178, 106, .5); opacity: 0; transition: .18s; }
  #tab-loc .town2:has(.tm-on) .exo2-route:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0, 0, 0, .6), 0 0 18px rgba(201, 162, 90, .45) !important; border-color: var(--zs-gold2) !important; }
  #tab-loc .town2:has(.tm-on) .exo2-route:hover::after { opacity: 1; }
  #tab-loc .town2:has(.tm-on) .exo2-route:hover .exo2-route-art { transform: scale(1.08); }
}

/* ---------------------------------------------------------------- oslavy postupu (46_progress.js) */
.zp-banner { position: fixed; left: 50%; top: 22%; z-index: 9500; transform: translateX(-50%); display: grid; place-items: center; pointer-events: auto; cursor: pointer;
  animation: zpIn .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.zp-banner.out { animation: zpOut .5s ease-in forwards; }
@keyframes zpIn { from { opacity: 0; transform: translateX(-50%) scale(.5); } }
@keyframes zpOut { to { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(.9); } }
.zp-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--zp) 45%, transparent), transparent 18%, color-mix(in srgb, var(--zp) 35%, transparent) 33%, transparent 45%,
    color-mix(in srgb, var(--zp) 45%, transparent) 60%, transparent 72%, color-mix(in srgb, var(--zp) 35%, transparent) 86%, transparent);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); animation: zpSpin 8s linear infinite; opacity: .8; }
@keyframes zpSpin { to { transform: rotate(360deg); } }
.zp-box { position: relative; min-width: min(420px, 88vw); max-width: 92vw; padding: 18px 28px 16px; text-align: center; border-radius: 16px;
  background: linear-gradient(160deg, rgba(34, 30, 24, .96), rgba(11, 9, 7, .97)); border: 1px solid color-mix(in srgb, var(--zp) 75%, transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7), 0 0 40px color-mix(in srgb, var(--zp) 45%, transparent), inset 0 0 30px color-mix(in srgb, var(--zp) 14%, transparent); }
.zp-box small { display: block; font-size: var(--fs-s); letter-spacing: .14em; text-transform: uppercase; color: #cfc6e6; }
.zp-box b { display: block; margin: 4px 0 6px; font: 800 var(--fs-xl)/1.1 var(--display-font, Georgia, serif) !important; color: var(--zp); text-shadow: 0 0 22px color-mix(in srgb, var(--zp) 70%, transparent), 0 2px 4px #000; }
.zp-box p { margin: 3px 0; color: #f0e9d8; font-size: var(--fs-m); }
.zp-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--zp); box-shadow: 0 0 8px var(--zp); pointer-events: none;
  animation: zpSpark 1.1s ease-out both; transform: rotate(var(--a)) translateX(0); }
@keyframes zpSpark { to { transform: rotate(var(--a)) translateX(230px); opacity: 0; } }
@media (max-width: 760px) { .zp-banner { top: 16%; } .zp-box b { font-size: var(--fs-xl); } .zp-glow { width: 360px; height: 360px; } }

/* ---------------------------------------------------------------- boj v novém stylu (49_battle_style.js) */
.rdb2 .rdb-me { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; }
.rdb-fig { position: relative; flex: 0 0 auto; height: 250px; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.rdb-fig img { position: relative; z-index: 1; height: 100%; max-height: 290px; width: auto; object-fit: contain; transform-origin: 50% 100%;
  filter: drop-shadow(0 0 16px rgba(201, 162, 90, .45)) drop-shadow(0 8px 8px rgba(0, 0, 0, .6)); animation: rdbBreathe 4.5s ease-in-out infinite; }
.rdb-fig-plat { position: absolute; left: 50%; bottom: 0; width: 70%; height: 26px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(243, 212, 142, .35), rgba(201, 162, 90, .18) 50%, transparent 72%); box-shadow: 0 0 0 1px rgba(243, 212, 142, .3); }
@keyframes rdbBreathe { 50% { transform: scale(1.012, 1.006); } }
.rdb-fig.hit img { animation: rdbHit .42s ease-out; }
@keyframes rdbHit { 0% { transform: translateX(0); filter: brightness(2) sepia(1) hue-rotate(-40deg) saturate(4) drop-shadow(0 0 16px rgba(255, 60, 40, .8)); }
  30% { transform: translateX(-10px) rotate(-3deg); } 60% { transform: translateX(6px) rotate(1.5deg); } 100% { transform: none; } }
.rdb-fig.atk img { animation: rdbAtk .38s ease-out; }
@keyframes rdbAtk { 40% { transform: translateX(26px) rotate(4deg) scale(1.04); } 100% { transform: none; } }
.rdb-fig.heal img { animation: rdbHeal .7s ease-out; }
@keyframes rdbHeal { 40% { filter: drop-shadow(0 0 26px rgba(120, 255, 140, .9)) brightness(1.2); } }
.battle-ended .rdb-fig img, .rdb2.ended .rdb-fig img { filter: drop-shadow(0 0 24px rgba(243, 212, 142, .7)); }
body[data-anim="off"] .rdb-fig img { animation: none !important; }
@media (max-width: 760px) { .rdb-fig { height: 170px; } }
/* karty v boji: tmavé sklo se zlatým okrajem */
.rdb2 :is(.battle-fighter, .rdb-foe) { background: linear-gradient(160deg, rgba(34, 30, 24, .88), rgba(12, 10, 8, .92)); border-color: rgba(217, 178, 106, .45) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 230, 170, .08); }
.rdb2 :is(.rdb-skills, .rdb-log) { background: linear-gradient(160deg, rgba(28, 25, 20, .9), rgba(12, 10, 8, .93)) !important; border-color: rgba(217, 178, 106, .35) !important; }

/* ---------------------------------------------------------------- Talenty: krystalové šestiúhelníky (listopad 2026) */
.tl2-node .tl2-medal { width: 56px; height: 62px; border: 0; border-radius: 0 !important; outline: none !important; box-shadow: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, #9a8cff) 32%, #221e18), #0d0c09 88%); transition: transform .2s, filter .2s; }
.tl2-node.big .tl2-medal { width: 70px; height: 78px; }
.tl2-node.has .tl2-medal { background: linear-gradient(160deg, color-mix(in srgb, var(--c, #c9a2ff) 80%, #fff 10%), color-mix(in srgb, var(--c, #c9a2ff) 35%, #13110d) 70%) !important; }
.tl2-node.max .tl2-medal { background: linear-gradient(160deg, #fff4cf, color-mix(in srgb, var(--c, #ffd27a) 70%, #3a1d08) 65%) !important; }
.tl2-node.has { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c, #c9a2ff) 55%, transparent)); }
.tl2-node.sel { filter: drop-shadow(0 0 3px #ffd27a) drop-shadow(0 0 10px rgba(255, 210, 122, .6)); }
.tl2-node:hover .tl2-medal { transform: translateY(-2px) scale(1.05); }
.tl2-sum li.muted { display: block; }

/* ---------------------------------------------------------------- Lokace (zóna): živý obraz – pomalý pohyb, světelné paprsky, poletující světlušky */
.exo2-hero { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(190, 150, 255, .22); box-shadow: 0 18px 50px rgba(17, 15, 12, .45), inset 0 0 0 1px rgba(255, 220, 150, .05);
  background-size: auto, auto, cover !important; animation: zoneDrift 46s ease-in-out infinite alternate; }
.exo2-hero > * { position: relative; z-index: 1; }
.exo2-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: .75;
  background-image: radial-gradient(2px 2px at 62% 78%, #ffe2a6, transparent), radial-gradient(1.5px 1.5px at 74% 52%, #c9a2ff, transparent),
    radial-gradient(2px 2px at 86% 70%, #b8ffe0, transparent), radial-gradient(1.5px 1.5px at 55% 40%, #ffd98a, transparent),
    radial-gradient(2.5px 2.5px at 92% 34%, #d8b8ff, transparent), radial-gradient(1.5px 1.5px at 68% 22%, #fff3c4, transparent);
  animation: zoneMotes 12s linear infinite; }
.exo2-hero::after { content: ""; position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: .22;
  background: repeating-linear-gradient(105deg, transparent 0 9%, rgba(255, 225, 170, .35) 11%, transparent 15%, transparent 24%);
  -webkit-mask: linear-gradient(90deg, transparent 30%, #000 70%); mask: linear-gradient(90deg, transparent 30%, #000 70%);
  animation: zoneRays 18s ease-in-out infinite alternate; }
@keyframes zoneDrift { from { background-position: 0 0, 0 0, 40% 50%; } to { background-position: 0 0, 0 0, 60% 46%; } }
@keyframes zoneMotes { from { transform: translateY(0); opacity: .75; } 50% { opacity: .5; } to { transform: translateY(-46px); opacity: .1; } }
@keyframes zoneRays { from { transform: translateX(-3%) rotate(0deg); opacity: .14; } to { transform: translateX(3%) rotate(1.5deg); opacity: .26; } }
@media (prefers-reduced-motion: reduce) { .exo2-hero, .exo2-hero::before, .exo2-hero::after { animation: none; } }
body[data-anim="off"] :is(.exo2-hero, .exo2-hero::before, .exo2-hero::after) { animation: none; }

/* ---------------------------------------------------------------- world boss v lokaci (57_world_boss.js) */
.wb-banner { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; overflow: hidden; isolation: isolate;
  background: linear-gradient(100deg, rgba(120, 20, 20, .92), rgba(40, 8, 20, .92) 60%, rgba(15, 13, 10, .92)); border: 1px solid rgba(255, 120, 90, .6);
  box-shadow: 0 0 26px rgba(255, 70, 40, .35), inset 0 0 40px rgba(0, 0, 0, .4); animation: wbPulse 2.6s ease-in-out infinite; }
@keyframes wbPulse { 50% { box-shadow: 0 0 40px rgba(255, 90, 50, .6), inset 0 0 40px rgba(0, 0, 0, .4); } }
.wb-art { flex: none; width: 74px; height: 74px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 150, 110, .7); box-shadow: 0 0 16px rgba(255, 80, 40, .5); }
.wb-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; color: #ffe9e0; }
.wb-copy small { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: #ffb59a; font-weight: 800; }
.wb-copy b { font-size: var(--fs-l); color: #fff; font-family: var(--display-font, Georgia, serif); }
.wb-copy p { margin: 0; font-size: var(--fs-s); color: #f3cfc4; }
.wb-hp { position: relative; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 140, 110, .4); }
.wb-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #8a1010, #ff5a3a); }
.wb-hp span { position: relative; display: block; text-align: center; font: 700 var(--fs-xs)/12px var(--font-ui); color: #fff; text-shadow: 0 1px 2px #000; }
.wb-join { flex: none; min-height: 46px; padding: 0 18px !important; font-size: var(--fs-m) !important; background: linear-gradient(#ff7a4a, #b8301a) !important; border: 1px solid #ffc0a0 !important; color: #fff !important; box-shadow: 0 0 18px rgba(255, 100, 60, .55); }
@media (max-width: 640px) { .wb-banner { flex-wrap: wrap; } .wb-art { width: 56px; height: 56px; } .wb-join { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .wb-banner { animation: none; } }

/* ---------------------------------------------------------------- Co je nového (58_whats_new.js) */
.wn { position: fixed; inset: 0; z-index: 9300; display: grid; place-items: center; padding: 12px; }
.wn-back { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(40, 30, 20, .55), rgba(4, 3, 3, .88)); backdrop-filter: blur(4px); animation: hpFade .25s ease-out; }
.wn-win { position: relative; width: min(560px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; color: #e9e1cf;
  background: linear-gradient(180deg, rgba(33, 29, 23, .97), rgba(11, 9, 8, .98)); border: 1px solid rgba(243, 212, 142, .45);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 40px rgba(201, 162, 90, .25); animation: hpIn .35s cubic-bezier(.2, .9, .3, 1.1); }
.wn-head { display: flex; gap: 12px; align-items: center; }
.wn-star { font-size: var(--fs-xl); filter: drop-shadow(0 0 12px rgba(243, 212, 142, .8)); animation: hcsGlow 2s ease-in-out infinite; }
.wn-head h2 { margin: 0; font-size: var(--fs-l); background: linear-gradient(180deg, #fff3d1, #f0c56a 55%, #b9822f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wn-head p { margin: 2px 0 0; font-size: var(--fs-s); color: #cfc6e6; }
.wn-body { overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 12px; padding-right: 4px; }
.wn-body h3 { margin: 0 0 6px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: #cdb6ff; }
.wn-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wn-body li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(217, 178, 106, .16); }
.wn-body li > span { flex: none; width: 24px; text-align: center; font-size: var(--fs-l); }
.wn-body li p { margin: 0; font-size: var(--fs-m); line-height: 1.4; }
.wn-ok { align-self: center; min-height: 44px; padding: 0 26px; font-size: var(--fs-m); }

/* ---------------------------------------------------------------- Mapa › Dungeony (24_mapa_svet.js, worldDungeonView) */
.world-dungeons .world-content { overflow-y: auto; overscroll-behavior: contain; }
.world-dng-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; padding-bottom: 10px; }
.world-dng { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 14px;
  background: var(--zs-glass, rgba(15, 13, 11, .78)); border: 1px solid var(--zs-line, rgba(217, 178, 106, .38)); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.world-dng.rift { grid-column: 1 / -1; border-color: rgba(201, 162, 90, .7); background: linear-gradient(100deg, rgba(60, 24, 120, .9), rgba(13, 12, 9, .92)); box-shadow: 0 0 26px rgba(201, 162, 90, .35); }
.world-dng.fit-low { opacity: .72; }
.world-dng-art { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(217, 178, 106, .4); }
.world-dng.rift .world-dng-art { width: 120px; height: 120px; }
.world-dng.rift { grid-template-columns: 120px 1fr; }
.world-dng-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.world-dng-copy header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.world-dng-copy h3 { margin: 0; font-size: var(--fs-m); color: var(--zs-gold2, #f3d48e); }
.world-dng-fit { font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); white-space: nowrap; }
.fit-ok .world-dng-fit { background: rgba(95, 224, 138, .16); border-color: rgba(95, 224, 138, .5); color: #9ff0b4; }
.fit-low .world-dng-fit { color: #ffb59a; border-color: rgba(255, 140, 110, .4); }
.fit-old .world-dng-fit { color: #b8b2c8; }
.world-dng-meta, .world-dng-where, .world-dng-note { margin: 0; font-size: var(--fs-s); color: #cfc8de; }
.world-dng-note { color: #d9ccff; }
.world-dng .world-detail-actions { margin-top: 4px; }
.world-dng .world-detail-actions .btn { min-height: 34px; padding: 4px 12px; font-size: var(--fs-s); }
@media (max-width: 640px) { .world-dng-list { grid-template-columns: 1fr; } .world-dng, .world-dng.rift { grid-template-columns: 72px 1fr; } .world-dng-art, .world-dng.rift .world-dng-art { width: 72px; height: 72px; } }

/* Bojová síla (listopad 2026): barva podle doporučené síly lokace */
.ip-inline.cp-ok { color: #7fd88a; }
.ip-inline.cp-warn { color: #f0c860; }
.ip-inline.cp-bad { color: #ff7a6b; }
.rpg-hero-ip.cp b, .chp-kpi.cp b { color: #ffd27a; }

/* Otisky Zlomu (59_imprints.js) */
.imp-view { display: grid; gap: 14px; }
.imp-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.imp-head h2 { margin: 0 0 4px; color: #ffd27a; }
.imp-head p { margin: 0; max-width: 62ch; font-size: var(--fs-xs); line-height: 1.45; }
.imp-kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.imp-kpis span { display: grid; padding: 8px 12px; border-radius: 10px; background: rgba(120, 100, 200, .14); border: 1px solid rgba(180, 160, 255, .22); min-width: 92px; }
.imp-kpis small { opacity: .7; font-size: var(--fs-xs); }
.imp-kpis b { font-size: var(--fs-s); }
.imp-coll { margin: 0; color: #b9a6ff; font-size: var(--fs-xs); }
.imp-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.imp-slot-wrap { display: grid; gap: 4px; }
.imp-slot { display: grid; gap: 4px; text-align: left; padding: 12px; min-height: 92px; border-radius: 12px; cursor: pointer;
  background: linear-gradient(160deg, rgba(60, 40, 110, .55), rgba(23, 20, 16, .7)); border: 1px dashed rgba(200, 180, 255, .35); color: inherit; font: inherit; }
.imp-slot.on { border: 1px solid #ffd27a; box-shadow: 0 0 0 2px rgba(255, 210, 122, .25), 0 0 18px rgba(255, 210, 122, .18); }
.imp-slot.locked { opacity: .5; cursor: default; }
.imp-slot small { opacity: .65; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.imp-out, .imp-put { justify-self: start; padding: 4px 10px; border-radius: 8px; font: inherit; font-size: var(--fs-xs); cursor: pointer;
  background: rgba(255, 210, 122, .14); border: 1px solid rgba(255, 210, 122, .4); color: #ffe3a8; }
.imp-out { background: transparent; border-color: rgba(255, 255, 255, .2); color: inherit; opacity: .8; }
.imp-stars { color: #ffd27a; letter-spacing: 1px; font-size: var(--fs-xs); }
.imp-stars i { color: rgba(255, 255, 255, .18); font-style: normal; }
.imp-fx { font-size: var(--fs-xs); color: #9fe6b0; }
.imp-fx i { color: rgba(255, 255, 255, .45); font-style: normal; }
.imp-group h3 { margin: 6px 0 8px; font-size: var(--fs-s); }
.imp-group h3 small { opacity: .6; font-weight: 400; }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.imp-card { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(34, 30, 24, .6); border: 1px solid rgba(180, 160, 255, .18); }
.imp-card header { display: grid; }
.imp-card header small { opacity: .6; font-size: var(--fs-xs); }
.imp-card footer { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 2px; }
.imp-card footer small { opacity: .65; font-size: var(--fs-xs); }
.imp-card.missing { opacity: .55; filter: grayscale(.6); }
.imp-card.placed { border-color: rgba(255, 210, 122, .55); }
.imp-tag { font-size: var(--fs-xs); color: #ffd27a; }
.imp-card.fam-demon { box-shadow: inset 3px 0 0 #e0604f; } .imp-card.fam-undead { box-shadow: inset 3px 0 0 #8fd1a0; }
.imp-card.fam-robot { box-shadow: inset 3px 0 0 #8fb4d9; } .imp-card.fam-elemental { box-shadow: inset 3px 0 0 #e8a14f; }
.imp-card.fam-spirit { box-shadow: inset 3px 0 0 #b49cff; } .imp-card.fam-insect { box-shadow: inset 3px 0 0 #a8d45a; }
.imp-card.fam-humanoid { box-shadow: inset 3px 0 0 #e9d27a; } .imp-card.fam-beast { box-shadow: inset 3px 0 0 #d98a5f; }
.imp-card.fam-alien { box-shadow: inset 3px 0 0 #5fd9c9; }
@media (max-width: 560px) { .imp-slots { grid-template-columns: 1fr; } .imp-slot { min-height: 0; } }

/* Mistrovství schopností (60_mastery.js) */
.mas-view { display: grid; gap: 14px; }
.mas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.mas-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(34, 30, 24, .6); border: 1px solid rgba(180, 160, 255, .18); }
.mas-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; font-size: var(--fs-m); background: rgba(120, 100, 200, .2); }
.mas-main { display: grid; gap: 5px; min-width: 0; flex: 1; }
.mas-main header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mas-main small { opacity: .72; font-size: var(--fs-xs); }
.mas-rank { font-size: var(--fs-xs); color: #b9a6ff; white-space: nowrap; }
.mas-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mas-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8b6cff, #ffd27a); }
.mas-row.r3 { border-color: rgba(180, 160, 255, .35); }
.mas-row.r4 { border-color: rgba(255, 210, 122, .35); }
.mas-row.r5 { border-color: rgba(255, 210, 122, .7); box-shadow: 0 0 14px rgba(255, 210, 122, .12); }
.mas-row.r5 .mas-rank { color: #ffd27a; }
.mas-view, .imp-view { align-content: start; width: 100%; }
/* víc záložek Hrdiny (Otisky, Mistrovství): názvy se nelámou, řada se případně zalomí celá */
#center .rd10-inventory > .inventory-tabs > .btn { white-space: nowrap; flex: 1 0 auto; }

/* Souhvězdí hrdiny (61_constellations.js) */
.cst-view { display: grid; gap: 14px; align-content: start; width: 100%; }
.cst-src { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); opacity: .85; }
.cst-src b { color: #ffd27a; }
.cst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.cst-card { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 14px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(70, 50, 140, .55), rgba(15, 13, 10, .85)); border: 1px solid rgba(180, 160, 255, .2); }
.cst-card.full { border-color: rgba(255, 210, 122, .65); box-shadow: 0 0 22px rgba(255, 210, 122, .14); }
.cst-card header { display: flex; justify-content: space-between; align-items: baseline; }
.cst-card header small { opacity: .6; }
.cst-svg { width: 100%; height: auto; border-radius: 10px; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .05) 0 1px, transparent 2px) 0 0 / 14px 14px, rgba(6, 6, 4, .55); }
.cst-svg line { stroke: rgba(200, 190, 255, .18); stroke-width: .5; }
.cst-svg line.on { stroke: rgba(255, 210, 122, .75); stroke-width: .8; }
.cst-star circle { fill: rgba(200, 190, 255, .25); }
.cst-star.on circle { fill: #ffe7a8; filter: drop-shadow(0 0 1.6px #ffd27a); }
.cst-star.next circle { fill: rgba(190, 170, 255, .7); }
.cst-star.next.can { cursor: pointer; }
.cst-star.next.can circle { fill: #b9a6ff; animation: cst-pulse 1.6s ease-in-out infinite; }
@keyframes cst-pulse { 50% { filter: drop-shadow(0 0 2.6px #b9a6ff); } }
.cst-list { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: var(--fs-xs); }
.cst-list li { opacity: .55; }
.cst-list li span { margin-right: 6px; }
.cst-list li small { opacity: .7; }
.cst-list li.on { opacity: 1; color: #ffe3a8; }
.cst-list li.next { opacity: .95; }
.cst-done { margin: 0; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5); }
.cst-done.on { color: #9fe6b0; }
.cst-card .imp-put { justify-self: start; }
.cst-card .imp-put:disabled { opacity: .45; cursor: default; }
.cst-reset { justify-self: start; }
.cst-reset.warn { border-color: #ff7a6b; color: #ffb3a8; }

/* Strany světa – reputace frakcí (62_factions.js) */
.fac-view { display: grid; gap: 14px; align-content: start; width: 100%; }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.fac-card { display: grid; gap: 7px; align-content: start; padding: 12px 14px; border-radius: 14px; background: rgba(34, 30, 24, .62); border: 1px solid rgba(180, 160, 255, .2); }
.fac-card.here { border-color: rgba(127, 216, 138, .55); }
.fac-card.r4, .fac-card.r5 { box-shadow: 0 0 18px rgba(255, 210, 122, .12); }
.fac-card header { display: flex; gap: 10px; align-items: center; }
.fac-card header > div { display: grid; flex: 1; min-width: 0; }
.fac-card header small { opacity: .65; font-size: var(--fs-xs); }
.fac-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: var(--fs-l); background: rgba(120, 100, 200, .22); flex: none; }
.fac-rank { font-size: var(--fs-xs); color: #ffd27a; white-space: nowrap; }
.fac-desc { margin: 0; font-size: var(--fs-xs); opacity: .78; line-height: 1.4; }
.fac-pts { opacity: .7; font-size: var(--fs-xs); }
.fac-fx, .fac-regions, .fac-title { margin: 0; font-size: var(--fs-xs); }
.fac-fx b { color: #9fe6b0; font-weight: 600; }
.fac-fx i { opacity: .55; font-style: normal; }
.fac-shop { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.fac-shop h4 { margin: 0; font-size: var(--fs-xs); opacity: .8; }
.fac-offer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fac-offer > div:first-child { display: grid; }
.fac-offer small { opacity: .65; font-size: var(--fs-xs); }
.fac-offer.locked { opacity: .55; }
.fac-buy { display: flex; gap: 6px; align-items: center; }
.fac-buy select { max-width: 130px; font: inherit; font-size: var(--fs-xs); padding: 3px 6px; border-radius: 7px; background: rgba(12, 10, 8, .8); color: inherit; border: 1px solid rgba(180, 160, 255, .3); }
.fac-buy .imp-put:disabled { opacity: .45; cursor: default; }

/* Dílna industriálu (63_workshop.js) */
.ws-view { display: grid; gap: 12px; align-content: start; padding: 4px 2px; }
.ws-intro { margin: 0; font-size: var(--fs-xs); opacity: .85; line-height: 1.45; max-width: 75ch; }
.ws-info { display: grid; gap: 2px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(120, 100, 200, .12); border: 1px solid rgba(180, 160, 255, .2); font-size: var(--fs-xs); }
.ws-info p { margin: 0; }
.ws-climb { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); align-items: baseline; }
.ws-climb span { display: inline-flex; gap: 5px; }
.ws-climb b { color: #ffd27a; }
.ws-charter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(255, 210, 122, .4); font-size: var(--fs-xs); }
.ws-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ws-cols h3 { margin: 0 0 6px; font-size: var(--fs-xs); }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ws-job { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(34, 30, 24, .6); border: 1px solid rgba(180, 160, 255, .18); }
.ws-job > div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.ws-job small { opacity: .7; font-size: var(--fs-xs); }
.ws-made { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 9px; background: rgba(34, 30, 24, .5); font-size: var(--fs-xs); }
.ws-made small { margin-left: auto; opacity: .6; font-size: var(--fs-xs); }
.ws-art { width: 30px; height: 30px; flex: none; }

/* Otisky, Mistrovství, Souhvězdí a Dílna: obsah delší než okno se posouvá uvnitř (rámeček okolo má overflow: hidden) */
.inventory-content > :is(.imp-view, .mas-view, .cst-view) { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; box-sizing: border-box; }
.craft-body > .ws-view { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; box-sizing: border-box; }
.world-content > .fac-view { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; box-sizing: border-box; }
.world-page.world-dungeons > .world-content { overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.fac-contract { display: grid; gap: 5px; padding: 8px 10px; border-radius: 10px; background: rgba(120, 100, 200, .12); border: 1px solid rgba(180, 160, 255, .22); }
.fac-contract h4 { margin: 0; font-size: var(--fs-xs); }
.fac-contract p { margin: 0; font-size: var(--fs-xs); }
.fac-contract small { opacity: .7; font-size: var(--fs-xs); }
.fac-contract.done { border-color: rgba(127, 216, 138, .6); }
.fac-contract.claimed { opacity: .65; }
.fac-contract .imp-put { justify-self: start; }
.fac-claimed { color: #9fe6b0; }

/* Poradce výbavy (64_advisor.js) */
.adv-panel { display: grid; gap: 6px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(34, 30, 24, .62); border: 1px solid rgba(180, 160, 255, .22); border-left: 4px solid #7fd88a; }
.adv-panel.cp-warn { border-left-color: #f0c860; }
.adv-panel.cp-bad { border-left-color: #ff7a6b; }
.adv-panel header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.adv-panel header span { color: #ffd27a; font-size: var(--fs-xs); }
.adv-panel header small { opacity: .75; font-size: var(--fs-xs); }
.adv-panel ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.adv-panel li { font-size: var(--fs-xs); }
.adv-panel li { display: list-item; }
.adv-panel li > div { display: inline-grid; gap: 1px; vertical-align: middle; margin-right: 8px; }
.adv-panel li small { opacity: .65; font-size: var(--fs-xs); }
.adv-panel li .imp-put { vertical-align: middle; padding: 2px 9px; }
.hs-sock[data-outdated] { box-shadow: 0 0 0 2px #ff7a6b, 0 0 10px rgba(255, 122, 107, .6) !important; }
.hs-sock[data-outdated]::after { content: "⟲"; position: absolute; right: -4px; top: -6px; font-size: var(--fs-xs); color: #ff9a8b; }

/* Deník povinností (65_duties.js) */
.shell-duties { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 0 9px; font-size: var(--fs-s); }
.shell-duties .shell-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e0604f; color: #fff; font: 700 var(--fs-xs)/17px var(--font-ui); font-style: normal; text-align: center; }
.dut-win { max-width: 620px; }
.dut-body { display: grid; gap: 12px; overflow-y: auto; max-height: min(72vh, 680px); padding-right: 4px; }
.dut-body h3 { margin: 0 0 6px; font-size: var(--fs-s); display: flex; justify-content: space-between; gap: 8px; }
.dut-body h3 small { opacity: .6; font-weight: 400; font-size: var(--fs-xs); }
.dut-hint { margin: 0; font-size: var(--fs-xs); opacity: .75; }
.dut-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dut-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(34, 30, 24, .6); border: 1px solid rgba(180, 160, 255, .18); }
.dut-row > div { display: grid; gap: 4px; flex: 1; min-width: 0; font-size: var(--fs-xs); }
.dut-row small { opacity: .65; font-size: var(--fs-xs); }
.dut-row.done { border-color: rgba(127, 216, 138, .5); opacity: .8; }
.dut-ok { color: #9fe6b0; font-size: var(--fs-xs); white-space: nowrap; }
.dut-rew { margin: 6px 0 0; font-size: var(--fs-xs); opacity: .8; }
@media (max-width: 400px) { .shell-duties { min-width: 32px; padding: 0 6px; } }

/* Sál ozvěn (66_echoes.js) */
.ech-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.ech-cols h3 { margin: 0 0 8px; font-size: var(--fs-s); }
.ech-cols aside { display: grid; gap: 10px; }
.ech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ech-card { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(34, 30, 24, .6); border: 1px solid rgba(180, 160, 255, .2); }
.ech-card.max { border-color: rgba(255, 210, 122, .7); }
.ech-card header { display: grid; }
.ech-card header small, .ech-card > small { opacity: .65; font-size: var(--fs-xs); }
.ech-pips { display: flex; gap: 3px; }
.ech-pips i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.ech-pips i.on { background: linear-gradient(90deg, #8b6cff, #ffd27a); }
.ech-go { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.ech-go label { display: flex; gap: 6px; align-items: center; font-size: var(--fs-xs); }
.ech-go select, .ech-view .fac-buy select { font: inherit; font-size: var(--fs-xs); padding: 3px 6px; border-radius: 7px; background: rgba(12, 10, 8, .8); color: inherit; border: 1px solid rgba(180, 160, 255, .3); }
.ech-go .imp-put:disabled { opacity: .45; cursor: default; }
.ech-top { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-xs); }
.ech-top li { display: flex; gap: 8px; align-items: baseline; }
.ech-top li small { opacity: .6; margin-left: auto; }
.ech-top li b { color: #ffd27a; min-width: 28px; text-align: right; }
.ech-view .imp-kpis span small:last-child { font-size: var(--fs-xs); opacity: .6; }
.world-content > .ech-view { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; box-sizing: border-box; }
@media (max-width: 760px) { .ech-cols { grid-template-columns: 1fr; } }
#center .world-nav > .btn { white-space: nowrap; flex: 1 0 auto; }
.ech-go label span { white-space: nowrap; }

/* Unikáty Aktu II (67_uniques.js) */
.fx-uniq { color: #ff7a6b; margin-top: 4px; }
.fx-uniq b { color: #ff5a4d; text-shadow: 0 0 6px #ff3b3b66; }

/* Kontrola rozvržení (listopad 2026): stránkované seznamy s pevnou výškou se při menší výšce okna (768 px)
   nevešly a přetékaly přes stránkování nebo patičku – teď se posouvají uvnitř. */
#center :is(.inventory-pet-grid, .craft-professions, .craft-list-rows, .eco-list-rows, .rd07-event-shop, .eco-daily-reward, .quest-list, .quest-content) {
  overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin;
}
#center .inventory-pet-grid { align-content: start; grid-auto-rows: minmax(96px, auto); }
#center .craft-page.ind-craft { overflow-y: auto; }
#center .world-page.world-territories > .world-content { overflow-y: auto; }
/* Žebříčky: tabulka odměn v úzkém sloupci lámala záhlaví po písmenech */
#center .world-rewards .world-ranking-table :is(th, td) { padding: 6px 5px; font-size: var(--fs-xs); letter-spacing: 0; white-space: nowrap; }
#center .world-rewards .world-ranking-table th { text-transform: none; }
/* Mobil: navigace Industriálu, Řemesel, Světa a Obchodu se posouvá do strany místo mačkání textu */
body[data-mobile="true"] #center :is(.ind-navigation, .craft-navigation, .world-nav, .eco-tabs) { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; }
body[data-mobile="true"] #center :is(.ind-navigation, .craft-navigation, .world-nav, .eco-tabs)::-webkit-scrollbar { display: none; }
body[data-mobile="true"] #center :is(.ind-navigation, .craft-navigation, .world-nav, .eco-tabs) > .btn { flex: 0 0 auto; width: auto; min-width: 0; white-space: nowrap; padding-inline: 12px; }

/* Jednotné tlačítko Zpět (68_back_nav.js): stejný vzhled všude, vždy nad okolním obsahem */
.zs-back { position: relative; z-index: 5; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; min-width: 44px; padding: 4px 14px 4px 10px !important; border-radius: 999px !important;
  border: 1px solid #c9a35a99 !important; background: linear-gradient(#28231c, #171410) !important; color: #f3e2b8 !important;
  font-weight: 600; font-size: var(--fs-m); line-height: 1.1; box-shadow: 0 2px 8px #0008; flex: 0 0 auto; width: auto; }
.zs-back:hover { border-color: #e6c27a !important; color: #fff3d6 !important; }
.zs-back::before { content: "‹"; font-size: var(--fs-xl); line-height: 0.8; margin-top: -2px; }
.zs-back:has(svg, img, .foundation-icon, [class*="icon"])::before { content: none; }
.zs-back:has(svg, img, .foundation-icon, [class*="icon"]) { padding: 4px 10px !important; }
/* karta předmětu: křížek pro zavření (hlavně na telefonu) */
#rpg-card .rpg-card-x { position: absolute; top: 6px; right: 6px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #ffffff33; background: #12100d; color: #f3e2b8; font-size: var(--fs-m); line-height: 1; cursor: pointer; }
#rpg-card .rpg-card-x:hover { border-color: #e6c27a; }
#rpg-card:not(.sheet) .rpg-card-x { width: 26px; height: 26px; font-size: var(--fs-s); top: 4px; right: 4px; }
#rpg-card .rpg-card-head { padding-right: 34px; }
/* hláška „Stiskni Zpět ještě jednou…“ */
#zs-back-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 10050; max-width: 90vw;
  padding: 10px 18px; border-radius: 999px; background: #12100dee; border: 1px solid #c9a35a; color: #f3e2b8;
  font-size: var(--fs-m); box-shadow: 0 6px 20px #000a; pointer-events: none; }
#zs-back-toast[hidden] { display: none; }

/* Mobil: tlačítko Deníku povinností v horní liště odsunulo ozubené kolo na další řádek – menší logo a mezery */
body[data-mobile="true"] .topbar { column-gap: 6px; }
body[data-mobile="true"] .topbar .logo-small img { width: 58px; height: auto; }
@media (max-width: 359px) { body[data-mobile="true"] .topbar .logo-small { display: none !important; } }
/* Obchod: obrázek zboží přetékal přes název (hlavně na telefonu) – vejde se do svého rámečku */
#center .eco-shop-art { display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
#center .eco-shop-art > img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* Zpět v lokaci (budovy, dungeon, cechovní sídlo, sekce průzkumu) je skryté – domů vede „Svět“ / „Lokace“
   a systémové Zpět (68_back_nav.js). Tlačítka v DOM zůstávají, aby je šlo zavolat. */
.zs-back-hidden { display: none !important; }
/* Talenty otevřené z Hrdiny: nahoře hlavička a řada záložek Hrdiny */
#center .zs-hero-frame { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
#center .zs-hero-frame .inventory-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
#center .zs-hero-frame .inventory-tabs > .btn { white-space: nowrap; }
/* Souboj: seslání nepřítele („Lze přerušit“) a připravený protiútok jako plovoucí návěští – nehýbe rozhraním */
.rdb2 .rdb-me { position: relative; }
.rdb2 .rdb-me > .battle-threat { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 8; margin: 0;
  box-shadow: 0 6px 18px #000c, 0 0 0 1px #ff8a6a55; background: #2b171bf2; backdrop-filter: blur(2px); }
.rdb2 .rdb-me > .battle-counter { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 8; margin: 0;
  padding: 6px 10px; border-radius: 10px; background: #241f19f2; border: 1px solid #5fd18a; box-shadow: 0 6px 18px #000c; text-align: center; }
#center :is(button[data-city-action="close"], button[data-ghclose], button[data-exp-action="back"], button[data-home-action="close"], button[data-ex-action="section"][data-value="overview"]) { display: none; }#center .zs-hero-frame .inventory-tabs > .btn { flex: 0 0 auto !important; min-width: max-content !important; padding-inline: 12px; }/* telefon: sesílání nepřítele překryje řádek s názvem boje, ne vlastní životy */
body[data-mobile="true"] #center .rdb2 .rdb-me > .battle-threat { top: auto; bottom: calc(100% - 6px); left: 4px; right: 4px; }
/* Úroveň na políčku předmětu: duhový text vzácnosti (nebeský, božský) se nesmí zdědit – číslo bylo neviditelné */
.rpg-cell .rpg-lvl { -webkit-text-fill-color: currentColor; }
.fx-divine i { color: #e8dcff; }
/* Cennosti a drahokamy v Inventáři › Suroviny (69_valuables.js) */
#center .zs-valuables { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
#center .zs-valuables h3 { margin: 4px 0 0; }
#center .zs-val-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
#center .zs-val-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; row-gap: 2px;
  padding: 8px 10px; border-radius: 10px; background: #ffffff08; border: 1px solid #ffd27a33; }
#center .zs-val-row > img, #center .zs-val-row > canvas { grid-row: span 2; }
#center .zs-val-row > small { grid-column: 2 / 4; color: #ffd27a; }
#center .zs-val-row > p { grid-column: 1 / 4; margin: 2px 0; font-size: var(--fs-s); opacity: .8; }
#center .zs-val-btns { grid-column: 1 / 4; display: flex; gap: 6px; flex-wrap: wrap; }
#center .zs-val-btns .btn { padding: 4px 10px; font-size: var(--fs-s); }

#center .inventory-content > .zs-valuables { grid-column: 1 / -1; }

/* Nabídka ozubeného kola: skryté položky (Admin pro hráče, kteří nejsou admin) musí zůstat skryté –
   pravidlo pro tlačítka v nabídce (display: flex) dřív přebíjelo .hidden a Admin viděli všichni */
.shell-menu .hidden, .shell-menu [hidden], .shell-menu .wow-install { display: none !important; }

/* Cechovní sídlo › Sklad a Darovat: celý seznam surovin na jedné stránce (08_cechovni_sidlo.js) */
.ghall .gh-content:has(> .gh-list) { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ghall .gh-list { display: flex; flex-direction: column; gap: 6px; min-height: 0; flex: 1; overflow: hidden; }
.ghall .gh-list .gh-hint { margin: 0; font-size: var(--fs-s); opacity: .75; }
.ghall .gh-list-rows { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px;
  overflow-y: auto; min-height: 0; flex: 1; align-content: start; padding-right: 4px; }
.ghall .gh-donate .gh-list-rows { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.ghall .gh-list-row { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 6px 10px !important; min-height: 0 !important; }
.ghall .gh-list-row .gh-stock-label { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.ghall .gh-list-row .gh-stock-label b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghall .gh-list-row .gh-have { margin-left: auto; white-space: nowrap; color: #ffd27a; font-variant-numeric: tabular-nums; }
.ghall .gh-donate-ctl { display: flex; align-items: center; gap: 6px; }
.ghall .gh-donate-ctl .social-field { display: flex; align-items: center; gap: 4px; margin: 0; font-size: var(--fs-s); }
.ghall .gh-donate-ctl input { width: 78px; padding: 4px 6px; }
.ghall .gh-donate-ctl .btn { padding: 4px 10px; font-size: var(--fs-s); }
.ghall .gh-list-rows { grid-auto-rows: max-content !important; grid-template-rows: none !important; height: auto; }
.ghall .gh-list-row { height: auto !important; overflow: visible !important; box-sizing: border-box; background: #ffffff08; border: 1px solid #ffffff14; border-radius: 10px; }
.ghall .gh-list-row .gh-stock-label img { width: 24px; height: 24px; flex: 0 0 auto; }
.ghall .gh-donate-ctl .social-field > span { position: static !important; clip-path: none !important; width: auto !important; height: auto !important; }.ghall .gh-list-row { flex-direction: row !important; flex-wrap: nowrap !important; text-align: left !important; justify-content: space-between !important; }
.ghall .gh-list-row .gh-stock-label { justify-content: flex-start !important; flex-direction: row !important; }
.ghall .gh-list-row .gh-stock-label b { flex: 0 1 auto; }
.ghall .gh-donate-ctl { flex: 0 0 auto; flex-direction: row !important; flex-wrap: nowrap; }
.ghall .gh-donate-ctl .social-field { flex-direction: row !important; }
.ghall .gh-donate-ctl .social-field > span { position: absolute !important; clip-path: inset(50%) !important; width: 1px !important; height: 1px !important; overflow: hidden; }
.ghall .gh-donate-ctl input { width: 70px !important; min-width: 0; height: 30px; }
.ghall .gh-donate-ctl .btn { min-height: 30px; height: 30px; }body[data-mobile="true"] .ghall .gh-list-rows, body[data-mobile="true"] .ghall .gh-donate .gh-list-rows { grid-template-columns: minmax(0, 1fr) !important; }
body[data-mobile="true"] .ghall .gh-donate .gh-list-row { flex-wrap: wrap !important; }
body[data-mobile="true"] .ghall .gh-donate .gh-donate-ctl { width: 100%; justify-content: flex-end; }
body[data-mobile="true"] .ghall .gh-list { min-height: 260px; }/* telefon: Sklad a Darovat se posouvají spolu s celým sídlem (vnitřní okno seznamu by bylo moc malé) */
body[data-mobile="true"] .town-screen .city-legacy-service:has(> .ghall .gh-list) { overflow: visible !important; display: block !important; height: auto !important; max-height: none !important; }
body[data-mobile="true"] .ghall:has(.gh-list) { height: auto !important; overflow: visible !important; }
body[data-mobile="true"] .ghall .gh-content:has(> .gh-list), body[data-mobile="true"] .ghall .gh-list { overflow: visible !important; flex: none !important; min-height: 0 !important; }
body[data-mobile="true"] .ghall .gh-list-rows { overflow: visible !important; flex: none !important; }
body[data-mobile="true"] .ghall .gh-donate .gh-list-row { row-gap: 4px; padding: 6px 8px !important; }
/* ================================================================ Levá lišta – návrh A (listopad 2026, 32_shell.js)
   Skupiny s malým nadpisem, kompaktní položky, aktivní = zlatý proužek se září a světlé pozadí, Více dole. */
html body:not([data-mobile="true"]) #shell-rail { width: 86px; min-width: 86px; max-width: 86px; box-sizing: border-box;
  padding: 8px 6px !important; gap: 1px !important; border-radius: 16px; background: #110f0ccc !important; border: 1px solid #ffffff14 !important;
  box-shadow: inset 0 1px 0 #ffffff0d; overflow-x: hidden; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-group { display: block; margin: 8px 0 2px; padding-top: 7px; border-top: 1px solid #d9b26a24;
  font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: #8f8676; text-align: center; line-height: 1; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-group:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn { min-height: 0 !important; height: auto; padding: 5px 0 !important; gap: 3px !important;
  border-radius: 10px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; flex: 0 0 auto; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn .foundation-icon { color: #cfc6b4; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn > span:not(.foundation-icon) { font-size: var(--fs-xs); font-weight: 600;
  color: #cfc6b4 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn:hover { background: #ffffff0d !important; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn.active { background: #e7bf7524 !important; box-shadow: none; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn.active .foundation-icon { color: #ffe3a3; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn.active > span:not(.foundation-icon) { color: #ffe3a3 !important; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn.active::before { content: ""; position: absolute; left: -6px; top: 22%; bottom: 22%; width: 3px;
  border-radius: 0 3px 3px 0; background: #e7bf75; box-shadow: 0 0 10px #e7bf75; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn .shell-badge { top: 2px; right: 10px; min-width: 15px; height: 15px; line-height: 15px;
  padding: 0 3px; border-radius: 8px; background: #e7bf75; color: #1a1306; font-size: var(--fs-xs); font-weight: 800; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn[data-shell="more"] { margin-top: auto; color: #b6ad9e; }
html body:not([data-mobile="true"]) #shell-rail { scrollbar-width: none; }
html body:not([data-mobile="true"]) #shell-rail::-webkit-scrollbar { display: none; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-btn { padding: 4px 0 !important; }
html body:not([data-mobile="true"]) #shell-rail .shell-rail-group { margin-top: 6px; padding-top: 6px; }
/* Talenty v kostře Hrdiny (68_back_nav.js): obsah stromu vyplní zbytek panelu jako ostatní záložky Hrdiny */
#tab-talents > .zs-tal-inv { height: 100%; }
#tab-talents > .zs-tal-inv > .zs-tal-content { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; container-type: size; }
#tab-talents > .zs-tal-inv > .zs-tal-content > * { flex: 1 1 auto; min-height: 0; }
/* Hrdina › Suroviny a Spotřební: obsah se posouvá (cennosti, drahokamy a mřížka surovin byly vyšší než panel a ořízly se) */
.rd10-inventory:is([data-inventory-view="materials"], [data-inventory-view="consumables"]) > .inventory-content { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.rd10-inventory:is([data-inventory-view="materials"], [data-inventory-view="consumables"]) > .inventory-content > * { height: auto; max-height: none; overflow: visible; margin-bottom: 10px; }
.rd10-inventory:is([data-inventory-view="materials"], [data-inventory-view="consumables"]) .inventory-supply-grid { height: auto; overflow: visible; }/* Hrdina › Suroviny: jedna tabulka s přepínačem druhů (69_valuables.js) */
.rd10-inventory[data-inventory-view="materials"] > .inventory-content { display: flex; flex-direction: column; overflow: hidden; padding-right: 0; }
.rd10-inventory[data-inventory-view="materials"] > .inventory-content > .zs-mat-table-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; height: auto; overflow: hidden; margin: 0; }
.zs-mat-cats { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; }
.rd10-inventory .zs-mat-cats .btn { min-height: 36px; padding: 4px 12px; font-size: var(--fs-m); flex: 0 0 auto; white-space: nowrap; }
.zs-mat-cats .btn small { opacity: .7; font-size: var(--fs-s); margin-left: 4px; }
.zs-mat-sum { margin: 0; font-size: var(--fs-s); color: #b6ad9e; flex: 0 0 auto; }
.zs-mat-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 1px solid #ffffff14; border-radius: 10px; overscroll-behavior: contain; }
.zs-mat-table { width: 100%; border-collapse: collapse; font: var(--fs-m)/1.3 var(--font-ui); }
.zs-mat-table thead th { position: sticky; top: 0; z-index: 1; background: #1b1813; color: #d9b26a; font-size: var(--fs-s); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 8px 10px; border-bottom: 1px solid #d9b26a40; }
.zs-mat-table td { padding: 6px 10px; border-bottom: 1px solid #ffffff0d; vertical-align: middle; }
.zs-mat-table tbody tr:hover { background: #ffffff08; }
.zs-mat-table .zs-mt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zs-mat-table td.zs-mt-cat { color: #b6ad9e; font-size: var(--fs-s); white-space: nowrap; }
.zs-mat-table .zs-mt-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zs-mat-table .zs-mt-name img, .zs-mat-table .zs-mt-name canvas { width: 28px; height: 28px; flex: none; }
.zs-mat-table .zs-mt-name span { display: flex; flex-direction: column; min-width: 0; }
.zs-mat-table .zs-mt-name small { color: #9e9586; font-size: var(--fs-s); }
.zs-mat-table .zs-mt-act { text-align: right; white-space: nowrap; }
.rd10-inventory .zs-mat-table .zs-mt-act .btn { min-height: 30px; padding: 3px 10px; font-size: var(--fs-s); margin-left: 4px; }
.zs-mat-table tr.zs-mat-valuable b { color: #ffd27a; }
.zs-mat-table tr.zs-mat-gem b { color: #bfe3ff; }
body[data-mobile="true"] .zs-mat-table .zs-mt-cat, body[data-mobile="true"] .zs-mat-table .zs-mt-name small { display: none; }
body[data-mobile="true"] .zs-mat-table td, body[data-mobile="true"] .zs-mat-table th { padding: 6px; }
body[data-mobile="true"] .zs-mat-table .zs-mt-act .btn { display: block; margin: 2px 0 0 auto; }body[data-mobile="true"] .zs-mat-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
body[data-mobile="true"] .rd10-inventory .zs-mat-cats .btn { min-height: 32px; padding: 3px 10px; font-size: var(--fs-s); }
body[data-mobile="true"] .zs-mat-table thead { display: none; }
body[data-mobile="true"] .zs-mat-table, body[data-mobile="true"] .zs-mat-table tbody { display: block; }
body[data-mobile="true"] .zs-mat-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; padding: 6px 8px; border-bottom: 1px solid #ffffff0d; }
body[data-mobile="true"] .zs-mat-table td { padding: 0; border: 0; }
body[data-mobile="true"] .zs-mat-table td.zs-mt-cat { display: none; }
body[data-mobile="true"] .zs-mat-table td.zs-mt-num:nth-of-type(3)::before { content: "×"; opacity: .7; }
body[data-mobile="true"] .zs-mat-table td.zs-mt-num:nth-of-type(4) { color: #ffd27a; font-size: var(--fs-s); }
body[data-mobile="true"] .zs-mat-table td.zs-mt-act { grid-column: 1 / -1; text-align: right; }
body[data-mobile="true"] .zs-mat-table td.zs-mt-act:empty { display: none; }
body[data-mobile="true"] .zs-mat-table .zs-mt-act .btn { display: inline-flex; margin: 4px 0 0 6px; }

/* ---- vyskakovací okno schopnosti (70_skill_tips.js, listopad 2026) ---- */
#tipbox:has(.sk-tip) { max-width: 340px; padding: 10px 12px; }
.sk-tip-h { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid #e9c77b44; }
.sk-tip-h b { color: var(--gold, #e9c77b); font-size: 1.05em; letter-spacing: .02em; }
.sk-tip-h span { color: #b9c4d6; font-size: .85em; }
.sk-tip-meta { color: #9fb3cc; font-size: .82em; margin-bottom: 6px; }
.sk-tip-desc { margin: 0 0 8px; font-style: italic; color: #e7e2d4; line-height: 1.35; }
.sk-tip-t { width: 100%; border-collapse: collapse; font-size: .88em; }
.sk-tip-t td { padding: 2px 0; vertical-align: top; }
.sk-tip-t td:first-child { color: #9fb3cc; padding-right: 10px; white-space: nowrap; }
.sk-tip-t td:last-child { text-align: right; color: #f1ead8; }
.sk-tip-t tr.sk-main td:last-child b { color: #ffd479; font-size: 1.08em; }
.sk-tip-note { display: block; margin-top: 6px; color: #8796ab; font-size: .78em; line-height: 1.3; }
.sk-tip-reason { margin-top: 6px; color: #ff9f8a; font-size: .85em; }
.sk-tip-inline { margin: 8px 0; padding: 8px 10px; border: 1px solid #e9c77b33; border-radius: 8px; background: #13110e99; }
.sk-tip-inline .sk-tip-t td:first-child { white-space: normal; }


/* ---- Hrdina › Schopnosti (dřív samostatný „Cech – učení“, 68_back_nav.js zsHeroFrame) ---- */
#tab-guild > .zs-tal-inv { height: 100%; }
#tab-guild > .zs-tal-inv > .zs-tal-content { flex: 1 1 auto; min-height: 0; min-width: 0; display: block; overflow-y: auto; overflow-x: hidden; }
#tab-guild .zs-tal-content > .rd11-learning { height: auto; min-height: 0; overflow: visible; }
#tab-guild .zs-tal-content .rd11-learning-layout { grid-template-rows: auto; align-items: start; }
#tab-guild .zs-tal-content .rd11-catalog { min-height: 0; }
#tab-guild .zs-tal-content .rd11-skill-grid { grid-template-rows: none; grid-auto-rows: max-content; height: auto; }
#tab-guild .zs-tal-content .rd11-skill-card { min-height: 64px; height: auto; }
#tab-guild .zs-tal-content .rd11-detail { height: auto; max-height: none; }

/* telefon: Talenty a Schopnosti mají stejnou jednu rolovací řadu záložek Hrdiny jako Inventář (bez výběru navíc) */
body[data-mobile='true'] .zs-tal-inv > .inventory-view-select { display: none; }
body[data-mobile='true'] #center .zs-tal-inv > .inventory-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 6px; padding: 4px 4px 2px; scrollbar-width: none; }
body[data-mobile='true'] #center .zs-tal-inv > .inventory-tabs > button { flex: 0 0 auto; white-space: nowrap; min-width: 0; }


/* ---- malované ikony schopností (70_skill_tips.js skillIconHtml) ---- */
.skill-ico { display: block; width: 40px; height: 40px; flex: 0 0 40px; object-fit: cover; border-radius: 8px; border: 1px solid #e9c77b66; box-shadow: 0 0 0 1px #000a, 0 2px 8px #0009; background: #110f0c; }
.battle-skill .skill-ico { width: 38px; height: 38px; flex-basis: 38px; }
.battle-skill [aria-disabled="true"] .skill-ico { filter: grayscale(.55) brightness(.75); }
.battle-detail .skill-ico { width: 64px; height: 64px; flex-basis: 64px; border-radius: 12px; }
.rd11-skill-art .skill-ico { width: 44px; height: 44px; flex-basis: 44px; }
.mas-ic .skill-ico { width: 36px; height: 36px; flex-basis: 36px; }
.skill-ico.def-ico { width: 26px; height: 26px; flex-basis: 26px; border-radius: 6px; }
.sk-tip-h { flex-direction: row !important; align-items: center; gap: 10px; }
.sk-tip-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.skill-ico.sk-tip-ico { width: 48px; height: 48px; flex-basis: 48px; border-radius: 10px; }

.rd11-detail h3 .skill-ico.rd11-detail-ico { display: inline-block; width: 48px; height: 48px; vertical-align: middle; margin-right: 10px; }


/* ---- world boss: malá karta v obrázku lokace (57_world_boss.js mini, listopad 2026) ---- */
.exo2-hero > .wb-mini { position: absolute; top: 14px; right: 14px; z-index: 3; width: min(340px, 46%); display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; border: 1px solid #e0705a66; background: linear-gradient(160deg, #2a0d12e6, #12080ce6); box-shadow: 0 6px 18px #0009; backdrop-filter: blur(3px); }
.wb-mini-art { width: 44px; height: 44px; object-fit: cover; border-radius: 9px; border: 1px solid #e0705a88; }
.wb-mini-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wb-mini-copy small { color: #d9b8b0; font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-mini-tag { display: inline-block; padding: 0 6px; border-radius: 6px; background: #b8322a; color: #fff; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-xs); }
.wb-mini-copy b { color: #ffe2c8; font-size: var(--fs-xs); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-mini-hp { height: 5px; border-radius: 3px; background: #ffffff1f; overflow: hidden; }
.wb-mini-hp i { display: block; height: 100%; background: linear-gradient(90deg, #c8322a, #ff7a4a); }
.wb-mini-cp { color: #e9d6b0; font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-mini-cp em { font-style: normal; color: #9fd39a; }
.wb-mini.weak .wb-mini-cp em { color: #ff9f8a; }
.wb-mini-join { padding: 6px 10px; font-size: var(--fs-xs); min-height: 0; }
/* telefon: tenký proužek přes horní okraj scény (obsah scény je ukotvený dole, nic se neposune) */
body[data-mobile="true"] .exo2-hero:has(> .wb-mini) { padding-top: 52px; }
body[data-mobile="true"] .exo2-hero > .wb-mini { top: 6px; left: 6px; right: 6px; width: auto; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; padding: 4px 6px; border-radius: 10px; }
body[data-mobile="true"] .wb-mini-art { width: 30px; height: 30px; border-radius: 7px; }
body[data-mobile="true"] .wb-mini-copy { gap: 1px; }
body[data-mobile="true"] .wb-mini-hp { display: none; }
body[data-mobile="true"] .wb-mini-copy small { font-size: var(--fs-xs); }
body[data-mobile="true"] .wb-mini-copy b { font-size: var(--fs-xs); }
body[data-mobile="true"] .wb-mini-cp { font-size: var(--fs-xs); }
body[data-mobile="true"] .wb-mini-join { padding: 4px 8px; font-size: var(--fs-xs); }


/* ---- Prozkoumat okolí: hlavní akce, výrazná (33_redesign2.js exOverviewV2, listopad 2026) ---- */
.exo2-cta .btn.exo2-explore { position: relative; display: inline-flex; align-items: center; gap: 14px; min-width: 340px; min-height: 72px; padding: 10px 22px 10px 14px !important;
  text-align: left; overflow: hidden; isolation: isolate; color: #1d1205 !important; border: 1px solid #ffe7a6 !important; border-radius: 16px !important;
  background: linear-gradient(180deg, #ffe08a 0%, #f2b844 48%, #d38b1c 100%) !important;
  box-shadow: 0 0 0 0 #ffcf5a99, 0 0 32px #f5b54a88, 0 6px 18px #000a, inset 0 1px 0 #fff8 !important;
  animation: zsExplorePulse 2.4s ease-in-out infinite; transition: transform .15s ease, filter .15s ease; }
.exo2-cta .btn.exo2-explore::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, #ffffffaa 48%, transparent 62%);
  transform: translateX(-120%); animation: zsExploreShine 3.6s ease-in-out infinite; }
.exo2-cta .btn.exo2-explore:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.07); }
.exo2-cta .btn.exo2-explore:active { transform: translateY(0) scale(.99); }
.exo2-explore-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; color: #3a2405;
  background: radial-gradient(circle at 35% 30%, #fff6d6, #f3c35a 70%); box-shadow: inset 0 0 0 2px #8a5a12aa, 0 2px 6px #0005; }
.exo2-explore-ico svg { width: 30px; height: 30px; animation: zsExploreSpin 6s ease-in-out infinite; }
.exo2-explore-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.exo2-explore-txt b { font-size: var(--fs-xl); line-height: 1.1; letter-spacing: .01em; color: #1d1205; text-shadow: 0 1px 0 #fff6; }
.exo2-explore-txt small { font-size: var(--fs-s); color: #4a300a; font-weight: 600; }
.exo2-explore-go { font-size: var(--fs-xl); line-height: 1; color: #3a2405; margin-left: 6px; animation: zsExploreNudge 1.2s ease-in-out infinite; }
@keyframes zsExplorePulse { 0%, 100% { box-shadow: 0 0 0 0 #ffcf5aaa, 0 0 30px #f5b54a99, 0 6px 18px #000a, inset 0 1px 0 #fff9; }
  50% { box-shadow: 0 0 0 12px #ffcf5a00, 0 0 60px #ffc451ee, 0 6px 18px #000a, inset 0 1px 0 #fff9; } }
/* Noční tónování lokace (#jz-tint: multiply, fixed, z-index 1, 41_juice.css) ztmavovalo i texty a tlačítko
   „Prozkoumat okolí“, takže vypadalo jako vypnuté. Popis lokace a akce jsou teď nad tónováním; obraz scény zůstává tónovaný. */
.exo2-hero { isolation: auto; }
.exo2-hero-copy, .exo2-hero .exo2-story { z-index: 2; }
@keyframes zsExploreShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes zsExploreSpin { 0%, 70% { transform: rotate(0); } 85% { transform: rotate(-18deg); } 100% { transform: rotate(0); } }
@keyframes zsExploreNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .exo2-cta .btn.exo2-explore, .exo2-cta .btn.exo2-explore::after, .exo2-explore-ico svg, .exo2-explore-go { animation: none; } }
body[data-mobile="true"] .exo2-cta .btn.exo2-explore { width: 100%; min-width: 0; min-height: 64px; }
body[data-mobile="true"] .exo2-explore-txt b { font-size: var(--fs-l); }


/* ---- „Tvůj další krok“ v řadě záložek (37_next_step.js place, listopad 2026) ---- */
#center .shell-subnav > #next-step.ns-inline { flex: 1 1 auto; min-width: 0; margin: 0 6px; }
#next-step.ns-inline .ns { min-height: 0; padding: 3px 4px 3px 6px; gap: 8px; border-radius: 999px; }
#next-step.ns-inline .ns-ico { width: 26px; height: 26px; flex: 0 0 26px; font-size: var(--fs-m); }
#next-step.ns-inline .ns-copy { flex-direction: row; align-items: baseline; gap: 8px; }
#next-step.ns-inline .ns-copy small { flex: 0 1 auto; max-width: 38%; font-size: var(--fs-xs); letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#next-step.ns-inline .ns-copy b { flex: 1 1 auto; min-width: 0; font-size: var(--fs-s); }
#next-step.ns-inline .ns-copy span { display: none; }
#next-step.ns-inline .ns .btn { min-height: 28px; padding: 3px 12px; font-size: var(--fs-s); }

#center .shell-subnav:has(> #next-step.ns-inline) > #tabs { flex: 0 0 auto; flex-wrap: nowrap; }
#center .shell-subnav:has(> #next-step.ns-inline) > #tabs > .tab { white-space: nowrap; }
@media (max-width: 1350px) { #next-step.ns-inline .ns-copy small { display: none; } }
@media (max-width: 1000px) { #next-step.ns-inline .ns-ico { display: none; } #next-step.ns-inline .ns .btn { padding: 3px 9px; } }

/* ===== 45_base.css ===== */
/* ============================================================================
   Industriál jako živá základna (48_base_view.js)
   ============================================================================ */
.bv-area { display: grid; gap: 10px; }
.bv-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bv-zoom { margin-left: auto; display: flex; gap: 4px; }
.bv-zoom .btn { min-width: 36px; }
.bv-wrap { position: relative; height: min(66vh, 640px); overflow: auto; border-radius: 16px; border: 1px solid rgba(217, 178, 106, .45); background: #0f0d0a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6), 0 0 0 4px rgba(12, 10, 8, .9), 0 0 0 5px rgba(217, 178, 106, .2); cursor: grab; scrollbar-width: thin; overscroll-behavior: contain; }
.bv-wrap:active { cursor: grabbing; }
.bv-map { position: relative; width: calc(1500px * var(--z, 1)); aspect-ratio: 16 / 9; transition: width .25s; user-select: none; }
.bv-ground { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bv-sky { position: absolute; inset: 0; pointer-events: none; z-index: 900; mix-blend-mode: multiply; opacity: .28;
  background: radial-gradient(40% 30% at 20% 30%, rgba(24, 21, 17, .55), transparent 70%), radial-gradient(35% 25% at 70% 70%, rgba(24, 21, 17, .5), transparent 70%);
  background-size: 200% 200%; animation: bvClouds 60s linear infinite; }
@keyframes bvClouds { to { background-position: 200% 100%; } }
.bv-b { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -88%); z-index: var(--d); padding: 0; border: 0; background: none; cursor: pointer;
  transition: filter .2s, transform .2s; }
.bv-b img { display: block; width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .55)); }
.bv-b:hover, .bv-b:focus-visible { transform: translate(-50%, -90%) scale(1.05); filter: brightness(1.15); z-index: 800; }
.bv-b.sel img { filter: drop-shadow(0 0 3px #f3d48e) drop-shadow(0 0 12px rgba(243, 212, 142, .8)) drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.bv-b.sel { z-index: 801; }
/* Areál: budovy s trvale viditelným popiskem (nepostavené, ve stavbě) leží nad zámečky a sousedy,
   jinak jim popisek překryl obrázek budovy níž na mapě; najetí a výběr jsou ještě výš */
.bv-b.bv-plan, .bv-b.bv-build { z-index: calc(1100 + var(--d)); }
.bv-b:hover, .bv-b:focus-visible { z-index: 2300; }
.bv-b.sel { z-index: 2301; }
.bv-work img { animation: bvGlow 3.2s ease-in-out infinite; }
@keyframes bvGlow { 50% { filter: drop-shadow(0 0 10px rgba(255, 196, 110, .55)) drop-shadow(0 6px 6px rgba(0, 0, 0, .55)) brightness(1.06); } }
.bv-plan img { opacity: .5; filter: saturate(.2) brightness(.9) sepia(.4) hue-rotate(200deg) drop-shadow(0 0 6px rgba(201, 162, 90, .6)); }
.bv-plan::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 2%; height: 26%; border: 2px dashed rgba(180, 150, 255, .7); border-radius: 50%; }
.bv-lock img { opacity: .55; filter: grayscale(1) brightness(.35) contrast(1.1); }
.bv-lock:hover img { opacity: .75; }
.bv-lvl { position: absolute; left: 6%; bottom: 10%; z-index: 2; width: 26px; height: 29px; display: grid; place-items: center; font: 800 var(--fs-s)/1 var(--font-ui); font-style: normal; color: #fff;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, #f3d48e, #8a5c22); text-shadow: 0 1px 2px #000; }
.bv-lvl::after { content: ""; position: absolute; inset: 2px; clip-path: inherit; background: radial-gradient(circle at 50% 35%, #3a2a5a, #12100d); z-index: -1; }
.bv-lvl { isolation: isolate; }
.bv-name { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); white-space: nowrap; padding: 3px 9px; border-radius: 8px; z-index: 3;
  background: rgba(11, 9, 7, .85); border: 1px solid rgba(217, 178, 106, .5); text-align: center; opacity: 0; transition: opacity .15s; pointer-events: none; }
.bv-name b { display: block; font-size: var(--fs-s); color: #fff1d0; }
.bv-name small { display: block; font-size: var(--fs-xs); color: #cbbcf0; }
.bv-b:hover .bv-name, .bv-b.sel .bv-name, .bv-build .bv-name, .bv-plan .bv-name { opacity: 1; }
.bv-lock .bv-name { opacity: 0; }
.bv-lock:hover .bv-name { opacity: 1; }
.bv-lock::after { content: '🔒'; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-size: var(--fs-l); opacity: .7; filter: drop-shadow(0 1px 2px #000); }
.bv-lock .bv-name b { display: none; }
.bv-warn { position: absolute; right: 8%; top: 6%; z-index: 3; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: var(--fs-s);
  background: #3a1406; border: 2px solid #ff9a4a; animation: bvBounce 1.2s ease-in-out infinite; }
.bv-warn.idle { border-color: #9aa; background: #25211a; }
@keyframes bvBounce { 50% { transform: translateY(-5px); } }
/* dým z komínů a jiskry z dílen */
.bv-smoke { display: var(--sd, block); position: absolute; left: var(--sx, 52%); top: var(--sy, 8%); width: 0; height: 0; pointer-events: none; }
.bv-smoke u { position: absolute; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: radial-gradient(circle, rgba(205, 200, 190, .55), rgba(205, 200, 190, 0) 70%);
  animation: bvSmoke 3.6s linear infinite; }
.bv-smoke u:nth-child(2) { animation-delay: 1.2s; } .bv-smoke u:nth-child(3) { animation-delay: 2.4s; }
@keyframes bvSmoke { from { transform: translate(0, 0) scale(.5); opacity: 0; } 15% { opacity: .9; } to { transform: translate(22px, -70px) scale(2.4); opacity: 0; } }
.bv-spark { position: absolute; left: var(--kx, 50%); top: var(--ky, 50%); pointer-events: none; }
.bv-spark u { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffcf6a; box-shadow: 0 0 6px #ff9a2a; animation: bvSpark 1.4s ease-out infinite; }
.bv-spark u:nth-child(1) { --dx: -18px; --dy: -26px; } .bv-spark u:nth-child(2) { --dx: 14px; --dy: -30px; animation-delay: .35s; }
.bv-spark u:nth-child(3) { --dx: -8px; --dy: -36px; animation-delay: .7s; } .bv-spark u:nth-child(4) { --dx: 22px; --dy: -18px; animation-delay: 1.05s; }
@keyframes bvSpark { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
/* stavba: lešení, kladívko a postup */
.bv-scaf { position: absolute; inset: 20% 12% 8%; pointer-events: none; border-radius: 6px;
  background: repeating-linear-gradient(45deg, rgba(217, 178, 106, .35) 0 3px, transparent 3px 14px), repeating-linear-gradient(-45deg, rgba(217, 178, 106, .25) 0 3px, transparent 3px 14px); }
.bv-scaf::after { content: "🔨"; position: absolute; right: -4px; top: -16px; font-size: var(--fs-xl); transform-origin: 80% 80%; animation: bvHammer .7s ease-in-out infinite alternate; }
@keyframes bvHammer { from { transform: rotate(-30deg); } to { transform: rotate(20deg); } }
.bv-bar { position: absolute; left: 15%; right: 15%; bottom: -4px; height: 6px; border-radius: 4px; background: rgba(0, 0, 0, .75); border: 1px solid rgba(217, 178, 106, .5); overflow: hidden; z-index: 3; }
.bv-bar u { display: block; height: 100%; background: linear-gradient(90deg, #b08a45, #f3d48e); box-shadow: 0 0 8px rgba(201, 162, 90, .8); }
/* výroba vyletující nad budovami */
.bv-floats { position: absolute; inset: 0; pointer-events: none; z-index: 2400; }
.bv-float { position: absolute; transform: translate(-50%, 0); padding: 2px 8px; border-radius: 10px; font: 800 var(--fs-s)/1.2 var(--font-ui); color: #fff2c8;
  background: rgba(12, 10, 8, .78); border: 1px solid rgba(243, 212, 142, .6); text-shadow: 0 1px 2px #000; animation: bvFloat 2.4s ease-out forwards; white-space: nowrap; }
.bv-float i { font-style: normal; } .bv-float i img { width: 16px; height: 16px; vertical-align: -3px; }
@keyframes bvFloat { from { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } to { opacity: 0; transform: translate(-50%, -46px); } }
body[data-anim="off"] :is(.bv-smoke, .bv-spark, .bv-sky, .bv-floats) { display: none; }
body[data-anim="off"] :is(.bv-work img, .bv-warn, .bv-scaf::after) { animation: none; }
@media (max-width: 760px) {
  .bv-wrap { height: 58vh; border-radius: 12px; }
  .bv-map { width: calc(1150px * var(--z, 1)); }
  .bv-lvl { width: 20px; height: 23px; font-size: var(--fs-xs); }
}

/* dělníci a nosiči na základně */
.bv-walker { position: absolute; left: var(--x1); top: var(--y1); width: 7px; height: 11px; margin: -11px 0 0 -3px; z-index: 900; pointer-events: none;
  animation: bvWalk var(--t) linear forwards; }
.bv-walker i { position: absolute; inset: 0; border-radius: 3px 3px 2px 2px; background: linear-gradient(180deg, #f1d4a8 0 30%, #3b2a54 30%); box-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  transform: scaleX(var(--flip, 1)); animation: bvBob .42s ease-in-out infinite; }
.bv-walker::after { content: ""; position: absolute; left: -2px; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 6px 2px rgba(255, 200, 110, .7); }
.bv-walker.carry::before { content: ""; position: absolute; left: 1px; top: -5px; width: 7px; height: 5px; border-radius: 1px; background: linear-gradient(180deg, #c58b4a, #7a4d22); box-shadow: 0 1px 1px rgba(0, 0, 0, .6); }
@keyframes bvWalk { 0% { left: var(--x1); top: var(--y1); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: var(--x2); top: var(--y2); opacity: 0; } }
@keyframes bvBob { 50% { transform: scaleX(var(--flip, 1)) translateY(-1.5px); } }
@media (prefers-reduced-motion: reduce) { .bv-walker { display: none; } }


/* ==== Audit UI (listopad 2026) ==== */
/* Osada otevřená ze Síně cechu na mapě města: detail budovy i s tlačítkem Postavit byl oříznutý */
.ghall .gh-content.gv-content { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* Industriál › Areál: detail vybrané budovy pod mapou byl za okrajem */
.ind-body { overflow-y: auto; scrollbar-width: thin; }
/* Pošta: detail dopisu měl skoro nulový kontrast */
.mail-detail, .mail-read, .eco-mail-detail { color: var(--text, #eee3ce); }
