/* Amarof – Dedina spoločenstva (Sieň slávy → Dedina spoločenstva, /admin → Testovanie).
   Rozloženie: hore lepkavá lišta s ukazovateľmi, vľavo mapa ako javisko (na mobile hore), vpravo karty (na mobile pod mapou,
   prepínač kariet dole pri palci). Okno vybranej budovy leží na mape, na mobile sa vysúva zdola. */
.v-root { --v-toph: 64px; --v-plate: color-mix(in srgb, var(--panel-2) 70%, var(--panel)); display: grid; gap: var(--s-3); color: var(--text); min-width: 0; }
.v-host:empty { display: none; }
.v-i { display: inline-grid; place-items: center; flex: none; line-height: 0; }
.v-ico { display: block; }
.v-art { display: inline-grid; place-items: center; flex: none; line-height: 0; border-radius: var(--r-2); background: radial-gradient(120% 90% at 50% 100%, #7c9d4c 0%, #56783a 60%, #3d5a2c 100%); border: 1px solid color-mix(in srgb, #1d140d 70%, var(--gold-lo)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -14px 22px -14px rgba(0, 0, 0, .5); overflow: hidden; }
.v-art.is-sea { background: linear-gradient(180deg, #4b9db2, #1d506f); padding: 4px 2px; }
.v-art.is-next { filter: saturate(.75) brightness(.86); border-style: dashed; }
.v-note { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; margin: 0; }
.v-note.is-warn, .is-warn { color: var(--ember); }
.v-note.is-gold { color: var(--gold-hi); }
.v-h { display: flex; align-items: center; gap: var(--s-2); font-family: var(--f-display); letter-spacing: .08em; color: var(--gold-hi); font-size: .95rem; margin: 0; text-transform: uppercase; }
.v-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-lo), transparent); }
.v-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.v-x { background: none; border: 0; color: var(--muted); font-size: 1.7rem; line-height: 1; min-width: 44px; min-height: 44px; cursor: pointer; border-radius: var(--r-2); }
.v-x:hover { color: var(--gold-hi); }
.v-root .btn--primary, .v-modal .btn--primary { font-family: var(--f-display); letter-spacing: .04em; border-radius: var(--r-2); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 var(--gold-lo); }
.v-root .btn--primary:disabled, .v-modal .btn--primary:disabled { background: var(--panel-2); color: var(--muted); border-color: var(--line); box-shadow: none; opacity: .75; }
.v-root .btn--ghost, .v-modal .btn--ghost { border-radius: var(--r-2); }

/* horná lišta */
.v-top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: var(--s-2) var(--s-3); padding: 6px var(--s-3); border: 1px solid var(--gold-lo); border-radius: var(--r-2);
  background-color: var(--panel-2); background-image: var(--tex); background-size: 384px; background-blend-mode: soft-light; box-shadow: var(--lift), 0 10px 22px -14px rgba(0, 0, 0, .8); }
.v-title { display: flex; gap: var(--s-2); align-items: center; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.v-title > div { min-width: 0; }
.v-crest { display: inline-grid; line-height: 0; flex: none; border-radius: 50%; overflow: hidden; width: 46px; height: 46px; place-items: center; background: radial-gradient(circle at 50% 70%, #7c9d4c, #3d5a2c); border: 1px solid var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 22%, transparent); }
.v-title h2 { margin: 0; font-family: var(--f-display); color: var(--gold-hi); font-size: 1.15rem; letter-spacing: .04em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.v-sub { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-hud { display: flex; gap: var(--s-2); align-items: stretch; margin: 0 auto; min-width: 0; }
.v-hud-g { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }
.v-hud-g.v-mine { border-color: var(--gold-lo); background: color-mix(in srgb, var(--gold) 9%, var(--bg)); }
.v-hud-i { display: flex; align-items: center; gap: 6px; padding: 2px 12px 2px 6px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: background var(--t-fast); }
.v-hud-i:hover, .v-hud-i.is-on { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.v-hud-i:focus-visible, .v-own:focus-visible, .v-zoom button:focus-visible, .v-tabs button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.v-hud-t { display: grid; line-height: 1.05; }
.v-hud-t b { font-family: var(--f-display); font-size: 1.02rem; color: var(--gold-hi); white-space: nowrap; }
.v-hud-t small { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.v-hud-i.is-warn b { color: var(--ember); }
.v-hud-i.is-warn { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ember) 70%, transparent); }
.v-head-tools { display: flex; gap: 6px; align-items: center; flex: none; }
.v-crewchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: var(--fs-xs); cursor: pointer; white-space: nowrap; }
.v-crewchip b { color: var(--gold-hi); font-family: var(--f-display); }
.v-crewchip:hover { border-color: var(--gold-lo); }
.v-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.v-lang button { background: transparent; border: 0; color: var(--muted); padding: 0 10px; min-height: 38px; font: inherit; font-size: .8rem; cursor: pointer; }
.v-lang button.is-on { background: var(--gold); color: var(--bg); font-weight: 600; }
.v-tool { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--gold-hi); font-size: 1.2rem; cursor: pointer; }
.v-tool:hover { border-color: var(--gold-lo); }
.v-top .village-x { position: static; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
.v-hudtip { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border: 1px solid var(--gold-lo); border-radius: var(--r-2); background: var(--v-plate); animation: v-in var(--t-med) ease-out; }
.v-hudtip > div { display: grid; gap: 4px; flex: 1; min-width: 0; }
.v-hudtip b { font-family: var(--f-display); color: var(--gold-hi); letter-spacing: .03em; }
.v-hudtip p { margin: 0; font-size: var(--fs-s); max-width: 75ch; }
.v-hudtip p.v-note { font-size: var(--fs-xs); }

/* rozloženie: javisko s mapou a bočné karty */
.v-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 35%, 560px); gap: var(--s-3); align-items: start; }
.v-stage { position: sticky; top: calc(var(--v-toph) + var(--s-3)); height: calc(100vh - var(--v-toph) - var(--s-3) * 2); height: calc(100dvh - var(--v-toph) - var(--s-3) * 2); min-height: 420px; max-height: 1100px; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--gold-lo); background: #2b3a1f; box-shadow: 0 0 0 1px #0d0906, 0 18px 40px -18px rgba(0, 0, 0, .8); isolation: isolate; }
.v-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 228, 142, .18), inset 0 0 60px rgba(0, 0, 0, .35); z-index: 2; }
.v-mapwrap { position: absolute; inset: 0; display: block; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.v-stage.is-zoom .v-mapwrap { touch-action: none; cursor: grab; }
.v-map { display: block; width: 100%; height: 100%; }
.v-map .v-b { cursor: pointer; outline: none; }
.v-map .v-b:hover, .v-map .v-b:focus-visible { filter: brightness(1.12) drop-shadow(0 0 3px #ffe48e); }
.v-map .v-b.is-sel { filter: drop-shadow(0 0 2px #fff3c4) drop-shadow(0 0 7px #ffc94a); }
.v-map .v-plot { opacity: .85; }
.v-alerts { position: absolute; z-index: 3; top: var(--s-3); left: var(--s-3); right: 64px; display: grid; gap: 6px; justify-items: start; pointer-events: none; }
.v-alert { pointer-events: auto; display: flex; gap: var(--s-2); align-items: center; max-width: min(100%, 560px); padding: 6px 12px 6px 8px; border-radius: var(--r-2); border: 1px solid var(--line); background: color-mix(in srgb, #14100c 86%, transparent); color: #ebe0c9; font-size: var(--fs-xs); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .9); backdrop-filter: blur(3px); }
.v-alert-t { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.v-alert-t b { font-family: var(--f-display); letter-spacing: .03em; color: #e3c58a; font-size: .92rem; }
.v-alert details { color: #b3a488; }
.v-alert summary { cursor: pointer; font-size: .8rem; text-decoration: underline dotted; width: max-content; }
.v-alert details p { margin: 4px 0 2px; max-width: 60ch; }
.v-alert .btn { margin-left: var(--s-2); min-height: 36px; flex: none; }
.v-alert .btn--ghost { color: #e3c58a; border-color: #7d6436; background: rgba(0, 0, 0, .25); }
.v-alert.is-peace { border-color: #7d6436; }
.v-alert.is-win { border-color: #5d8f52; }
.v-alert.is-win b { color: #b9e0b0; }
.v-alert.is-warn { border-color: #c9873a; background: color-mix(in srgb, #5a3410 80%, #14100c); }
.v-alert.is-warn b { color: #ffcf8a; }
.v-alert.is-vote { border-color: #c9a45c; }
.v-alert.is-loss, .v-alert.is-raid { border-color: #c0392b; background: linear-gradient(90deg, #6d1512, #3a0d0c 70%); }
.v-alert.is-raid { padding: 10px 14px 10px 10px; animation: v-pulse 1.6s ease-in-out infinite; }
.v-alert.is-raid b { color: #ffd0c6; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .06em; }
.v-alert.is-raid span, .v-alert.is-loss span { color: #f3d9d2; font-size: var(--fs-s); }
.v-alert.is-loss b { color: #ffb3a8; }
@keyframes v-pulse { 50% { box-shadow: 0 0 0 5px rgba(192, 57, 43, .35), 0 8px 18px -10px rgba(0, 0, 0, .9); } }
.v-zoom { position: absolute; z-index: 3; top: var(--s-3); right: var(--s-3); display: grid; border-radius: var(--r-2); overflow: hidden; border: 1px solid #7d6436; background: color-mix(in srgb, #14100c 84%, transparent); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .9); }
.v-zoom button { width: 42px; height: 42px; border: 0; background: transparent; color: #e3c58a; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.v-zoom button + button { border-top: 1px solid #3f3223; }
.v-zoom button:hover { background: rgba(201, 164, 92, .18); }
.v-stagefoot { position: absolute; z-index: 3; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); display: flex; flex-wrap: wrap; gap: 6px var(--s-2); align-items: center; justify-content: space-between; pointer-events: none; font-size: .8rem; }
.v-foot-chip, .v-foot-hint { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, #14100c 78%, transparent); color: #e3c58a; border: 1px solid #3f3223; }
.v-foot-hint { color: #d5c7a8; font-style: italic; }
.v-stage.has-insp .v-stagefoot { display: none; }

/* okno vybranej veci */
.v-insp-host { position: absolute; z-index: 4; left: var(--s-3); bottom: var(--s-3); width: min(430px, calc(100% - var(--s-3) * 2)); max-height: calc(100% - var(--s-3) * 2); display: grid; pointer-events: none; }
.v-insp-host:empty { display: none; }
.v-insp { pointer-events: auto; display: grid; grid-template-rows: auto 1fr; min-height: 0; max-height: 100%; border: 1px solid var(--gold); border-radius: var(--r-2); background-color: var(--panel-2); background-image: var(--tex); background-size: 384px; background-blend-mode: soft-light; box-shadow: var(--lift), 0 18px 40px -12px rgba(0, 0, 0, .85); animation: v-in var(--t-med) ease-out; overflow: hidden; }
.v-insp-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 2px 2px 2px var(--s-3); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.v-insp-head h3 { margin: 0; font-family: var(--f-display); font-size: 1.02rem; letter-spacing: .04em; color: var(--gold-hi); }
.v-insp-body { padding: var(--s-3); display: grid; gap: var(--s-2); overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.v-insp-body > .v-feat { border: 0; padding: 0; background: none; box-shadow: none; }
.v-insp-eff { margin: 0; font-size: var(--fs-s); }
.v-insp-eff b { color: var(--text); }
.v-insp-eff span { color: var(--sage); }
.v-picks { display: grid; gap: 6px; }
.v-state { margin: 0; font-size: var(--fs-xs); color: var(--gold-hi); font-style: italic; }

/* bočný stĺpec: prepínač kariet a obsah */
.v-side { display: grid; gap: var(--s-3); min-width: 0; scroll-margin-top: calc(var(--v-toph) + var(--s-2)); }
.v-tabs { position: sticky; top: calc(var(--v-toph) + var(--s-3)); z-index: 5; display: flex; gap: 2px; padding: 3px; border-radius: var(--r-2); border: 1px solid var(--gold-lo); background-color: var(--panel-2); background-image: var(--tex); background-size: 384px; background-blend-mode: soft-light; box-shadow: var(--lift), 0 10px 20px -14px rgba(0, 0, 0, .8); }
.v-tabs button { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 5px 2px 4px; min-height: 52px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: inherit; font-family: var(--f-display); font-size: .7rem; letter-spacing: .04em; line-height: 1.1; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.v-tabs button .v-i { filter: saturate(.55) brightness(.9); transition: filter var(--t-fast); }
.v-tabs button:hover { color: var(--text); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.v-tabs button.is-on { color: var(--gold-hi); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 26%, transparent), color-mix(in srgb, var(--gold) 8%, transparent)); box-shadow: inset 0 -2px 0 var(--gold), inset 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent); }
.v-tabs button.is-on .v-i { filter: none; }
.v-tab-l, .v-tab-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.v-tab-l { display: none; }
.v-tab-back { display: none !important; }
.v-tab-ico { font-size: 1.5rem; line-height: 22px; }
.v-panel { display: grid; gap: var(--s-4); min-width: 0; }
.v-block { display: grid; gap: var(--s-2); min-width: 0; }
.v-card, .v-type, .v-dest, .v-exp, .v-proj, .v-role, .v-feat, .v-rule, .v-crew, .v-council, .v-join { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-3); min-width: 0; background: var(--v-plate); box-shadow: var(--lift); }
.v-card, .v-dest, .v-exp, .v-role { display: grid; gap: var(--s-2); align-content: start; }
.v-card-top, .v-proj-top { display: flex; gap: var(--s-2); align-items: flex-start; min-width: 0; }
.v-card-top > div, .v-proj-top > div { display: grid; min-width: 0; flex: 1; }
.v-card-top b, .v-proj-top b { color: var(--text); font-family: var(--f-display); letter-spacing: .03em; font-size: 1rem; }
.v-card-top small, .v-proj-top small { color: var(--muted); font-size: var(--fs-xs); line-height: 1.3; }
.v-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; color: var(--muted); white-space: nowrap; flex: none; font-variant-numeric: tabular-nums lining-nums; }
.v-chip.is-gold { color: var(--gold-hi); border-color: var(--gold-lo); }
.v-chip.is-ok { color: var(--sage); border-color: color-mix(in srgb, var(--sage) 60%, var(--line)); }
.v-chip.is-warn { color: var(--ember); border-color: color-mix(in srgb, var(--ember) 70%, var(--line)); }
.v-cost { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.v-cost-i { display: inline-flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums lining-nums; font-size: var(--fs-s); font-weight: 600; }
.v-next { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); align-items: center; padding: 6px var(--s-2); border-radius: var(--r-2); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.v-next-l { font-family: var(--f-display); font-size: .85rem; letter-spacing: .03em; color: var(--gold-hi); flex: 1 1 100%; }
.v-next small { color: var(--muted); font-size: .78rem; }
.v-act { display: flex; flex-wrap: wrap; gap: 4px var(--s-2); align-items: center; }
.v-act .btn { min-height: 40px; }
.v-why { color: var(--ember); font-size: .8rem; line-height: 1.25; flex: 1 1 12ch; }
.v-empty-box { margin: 0; padding: var(--s-3); border: 1px dashed var(--line); border-radius: var(--r-2); color: var(--muted); font-size: var(--fs-s); font-style: italic; }

/* rozostavané */
.v-projs { display: grid; gap: var(--s-2); }
.v-proj { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.v-proj.is-build { border-color: var(--gold-lo); }
.v-proj.is-wait { border-style: dashed; }
.v-proj-main { display: grid; gap: 6px; min-width: 0; }
.v-proj-pct { font-family: var(--f-display); font-size: 1.35rem; color: var(--gold-hi); line-height: 1; }
.v-proj-res { display: grid; gap: 5px; }
.v-proj-r { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-2); align-items: center; font-size: var(--fs-xs); }
.v-proj-foot { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.v-proj-foot small { color: var(--muted); font-size: .8rem; margin-right: auto; }
.v-proj-foot .btn { min-height: 38px; }
.v-bar { display: block; height: 12px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; min-width: 60px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4); }
.v-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); transition: width var(--t-med); }
.v-bar.is-work i { background: repeating-linear-gradient(-45deg, var(--gold) 0 8px, var(--gold-hi) 8px 16px); background-size: 22.6px 22.6px; animation: v-stripes 1s linear infinite; }
.v-bar.is-idle i { background: var(--muted); }
.v-bar.is-sea i { background: linear-gradient(90deg, #244e66, #3d7591); }
.v-bar.is-ok i { background: var(--sage); }
.v-bar.is-warn i { background: var(--ember); }
@keyframes v-stripes { to { background-position: 22.6px 0; } }

/* Sieň, hradby a katalóg budov */
.v-core { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.v-feat { display: grid; gap: var(--s-2); align-content: start; }
.v-feat-art { display: flex; gap: var(--s-2); align-items: center; }
.v-arrow { color: var(--gold); font-size: 1.3rem; }
.v-feat-body { display: grid; gap: var(--s-2); min-width: 0; }
.v-types, .v-dests, .v-shipyard { display: grid; gap: var(--s-2); }
.v-types { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.v-type { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); align-content: start; }
.v-type > .v-art { height: 74px; }
.v-type > .v-art svg { height: 100%; width: auto; max-width: 100%; }
.v-type-main { align-content: start; }
.v-type-main { display: grid; gap: 6px; min-width: 0; }
.v-type.is-locked .v-art { filter: grayscale(1) brightness(.7); }
.v-type.is-locked .v-card-top b { color: var(--muted); }
.v-type.is-small { padding: var(--s-2); gap: var(--s-2); grid-template-columns: 76px minmax(0, 1fr); }
.v-type.is-small > .v-art { height: 60px; }
.v-type.is-small .v-card-top small { display: none; }
.v-owned { display: flex; flex-wrap: wrap; gap: 4px; }
.v-own { display: inline-flex; align-items: center; gap: 3px; min-height: 30px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--gold); font-size: .78rem; letter-spacing: 1px; cursor: pointer; }
.v-own i { font-style: normal; font-size: .7rem; letter-spacing: 0; color: var(--sage); }
.v-own.is-up { border-color: color-mix(in srgb, var(--sage) 60%, var(--line)); }
.v-own.is-busy i { color: var(--gold-hi); }
.v-own:hover, .v-own.is-on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--bg)); }

/* stavači */
.v-crew { border-color: var(--gold-lo); }
.v-crew-top { display: flex; gap: var(--s-2); align-items: center; }
.v-crew-top > div { display: grid; min-width: 0; flex: 1; }
.v-crew-top small { color: var(--muted); font-size: var(--fs-xs); }
.v-crew-top .v-chip { font-size: .95rem; }
.v-crew-names { margin: 0; font-size: var(--fs-xs); color: var(--gold-hi); overflow-wrap: anywhere; }
.v-crew .v-row .v-note { flex: 1 1 220px; }
.v-join { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); border-color: var(--gold); box-shadow: var(--lift), 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.v-join > div { display: grid; gap: 6px; }
.v-join b { font-family: var(--f-display); color: var(--gold-hi); }

/* ľudia */
.v-rule p { margin: 0; font-size: var(--fs-s); }
.v-rule-bar { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-2); align-items: center; font-size: var(--fs-xs); }
.v-rule .v-next .btn { min-height: 40px; }
.v-rule .v-next .btn:first-of-type { margin-left: auto; }
.v-role-head { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.v-role-head b { font-family: var(--f-display); letter-spacing: .03em; }
.v-role-head small { color: var(--muted); font-size: var(--fs-xs); margin-left: auto; }
.v-big { font-family: var(--f-display); font-size: 1.4rem; color: var(--gold-hi); }
.v-role-lv { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.v-lv { display: grid; justify-items: center; gap: 2px; background: color-mix(in srgb, var(--bg) 60%, transparent); border-radius: var(--r-2); padding: 6px; }
.v-lv b { font-size: 1.2rem; font-family: var(--f-display); color: var(--gold-hi); }
.v-lv small { color: var(--muted); font-size: .76rem; }
.v-trains { display: grid; gap: 6px; }
.v-train { display: flex; gap: var(--s-2); align-items: center; font-size: var(--fs-xs); padding: 4px 8px; border-radius: var(--r-2); background: color-mix(in srgb, var(--bg) 45%, transparent); }
.v-train > span:first-child { flex: 0 0 8.2em; color: var(--text); }
.v-train .v-cost { flex-wrap: nowrap; gap: 4px 8px; }
.v-train .v-cost-i { font-size: var(--fs-xs); }
.v-train .btn { padding: 0 10px; }
.v-train .btn { min-height: 38px; }
.v-train .btn:first-of-type { margin-left: auto; }

/* lode a výpravy */
.v-ships { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.v-ship { display: grid; justify-items: center; gap: 2px; border: 1px solid #2c5d78; border-radius: var(--r-2); padding: var(--s-2) var(--s-3); font-size: var(--fs-xs); background: linear-gradient(180deg, #2f6f8a 0%, #1d4d68 58%, var(--panel) 58.5%); color: var(--text); }
.v-ship small { color: var(--muted); }
.v-ship.is-busy { opacity: .6; border-style: dashed; }
.v-ship .v-scrap { min-height: 30px; font-size: .74rem; padding: 0 8px; margin-top: 4px; }
.v-shipyard .v-type { grid-template-columns: 1fr; }
.v-shipyard .v-card-top { justify-content: flex-start; align-items: center; gap: var(--s-3); }
.v-shipyard .v-card-top > span { border-radius: var(--r-2); background: linear-gradient(180deg, #4b9db2, #1d506f); border: 1px solid #1d140d; padding: 4px; line-height: 0; }
.v-shipyard .v-next .btn { margin-left: auto; min-height: 40px; }
.v-worldwrap { display: block; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--gold-lo); box-shadow: inset 0 0 0 1px #0d0906; }
.v-world { display: block; width: 100%; height: auto; }
.v-dest.is-locked { opacity: .65; }
.v-dest-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.v-dest-facts .v-chip { white-space: normal; }
.v-exp p { margin: 0; font-size: var(--fs-s); }
.v-exp.is-vote { border-color: var(--gold-lo); }
.v-exp.is-sail { border-color: #3d7591; }
.v-check { display: flex; gap: var(--s-2); align-items: center; padding: 6px 0; cursor: pointer; font-size: var(--fs-s); }
.v-check input { width: 20px; height: 20px; accent-color: var(--gold); }
.v-fs { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-2) var(--s-3); margin: 0; }
.v-fs legend { color: var(--gold-hi); padding: 0 4px; font-size: var(--fs-xs); }
.v-field { display: grid; gap: 6px; font-size: var(--fs-s); }
.v-range { width: 100%; accent-color: var(--gold); min-height: 32px; }
.v-plan-sum { display: grid; gap: 6px; background: var(--bg); border-radius: var(--r-2); padding: var(--s-2) var(--s-3); }
.v-plan-sum p { margin: 0; font-size: var(--fs-s); }

/* kronika a rada */
.v-log { list-style: none; margin: 0; padding: 0 var(--s-2); display: grid; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--v-plate); }
.v-log li { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-2); align-items: center; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: var(--fs-s); line-height: 1.35; }
.v-log li:last-child { border-bottom: 0; }
.v-log li.is-raid span { color: var(--ember); }
.v-log time, .v-chat time { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.v-council { display: grid; gap: var(--s-2); }
.v-chat { list-style: none; margin: 0; padding: var(--s-2); display: flex; flex-direction: column; gap: var(--s-2); height: min(52vh, 460px); overflow-y: auto; background: var(--bg); border-radius: var(--r-2); border: 1px solid var(--line); }
.v-chat li { max-width: 85%; align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 6px 10px; display: grid; gap: 2px; }
.v-chat li.is-mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; border-color: var(--gold-lo); background: color-mix(in srgb, var(--gold) 12%, var(--panel-2)); }
.v-chat li b { font-size: .8rem; color: var(--gold-hi); }
.v-chat li p { margin: 0; font-size: var(--fs-s); overflow-wrap: anywhere; white-space: pre-wrap; }
.v-chat li.v-empty { align-self: center; max-width: none; background: none; border: 0; color: var(--muted); font-style: italic; }
.v-chat-in { display: flex; gap: var(--s-2); }
.v-chat-in .input { flex: 1; min-width: 0; }

/* testovanie */
.v-test { background: repeating-linear-gradient(-45deg, var(--panel) 0 14px, color-mix(in srgb, var(--panel) 85%, #8e1c1c) 14px 28px); border: 1px dashed var(--ember); border-radius: var(--r-2); padding: var(--s-3); }
.v-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px var(--s-3); border: 1px dashed var(--ember); border-radius: var(--r-2); background: color-mix(in srgb, #8e1c1c 10%, var(--panel)); }
.v-switch-l { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: var(--fs-xs); margin-right: 4px; }
.v-switch button { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 4px 12px; min-height: 36px; font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.v-switch button.is-on { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 600; }
.v-switch-tag { margin-left: auto; font-size: .72rem; color: var(--ember); text-transform: uppercase; letter-spacing: .06em; }
.v-tbox { display: grid; gap: var(--s-2); padding: var(--s-3); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-2); }
.v-tbox h4 { margin: 0; font-family: var(--f-display); color: var(--gold-hi); letter-spacing: .04em; }
.v-tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.v-tlist li { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; padding: 6px 8px; background: var(--bg); border-radius: var(--r-1); }
.v-tlist li > .v-row { margin-left: auto; }
.v-tsel { min-height: 36px; width: auto; padding: 0 8px; }
.v-tin { width: 6.5em; min-height: 36px; }
.v-tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-2); }
.v-tgrid label, .v-tinline { display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--muted); }
.v-tgrid .input { width: 100%; }
.v-ttable { border-collapse: collapse; font-size: var(--fs-xs); }
.v-ttable th { text-align: left; color: var(--muted); font-weight: 400; padding: 4px 8px 4px 0; }
.v-ttable td { padding: 3px 6px 3px 0; }
.v-test .btn { min-height: 38px; }

/* zakladanie */
.v-found { position: relative; justify-items: center; text-align: center; padding: var(--s-6) var(--s-4); border: 1px solid var(--gold-lo); border-radius: var(--r-2); background-color: var(--panel-2); background-image: var(--tex); background-size: 384px; background-blend-mode: soft-light; box-shadow: var(--lift); }
.v-found-art { display: inline-grid; line-height: 0; border-radius: 50%; overflow: hidden; width: 190px; height: 190px; place-items: center; background: radial-gradient(circle at 50% 72%, #86a652, #3d5a2c); border: 2px solid var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 16%, transparent); }
.v-found h2 { font-family: var(--f-display); color: var(--gold-hi); margin: 0; }
.v-found p { max-width: 52ch; color: var(--muted); margin: 0; }
.v-found-x { position: absolute; top: var(--s-2); right: var(--s-2); }
.v-found-x .village-x { position: static; }

/* okno (vklad, výprava): na mobile sa vysúva zdola */
.v-modal { position: fixed; inset: 0; z-index: 60; background: rgba(10, 7, 5, .7); display: grid; place-items: center; padding: var(--s-3); animation: v-fade var(--t-fast) ease-out; }
.v-sheet { width: min(560px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--gold); border-radius: var(--r-2); background-color: var(--panel-2); background-image: var(--tex); background-size: 384px; background-blend-mode: soft-light; box-shadow: var(--lift), 0 20px 60px rgba(0, 0, 0, .6); display: grid; animation: v-in var(--t-med) ease-out; }
.v-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 4px var(--s-4); border-bottom: 1px solid var(--line); }
.v-sheet-head h3 { margin: 0; font-family: var(--f-display); color: var(--gold-hi); letter-spacing: .04em; }
.v-sheet-body { padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-3); }
.v-sheet-foot { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: var(--s-2); }
.v-give-head { display: flex; gap: var(--s-3); align-items: center; }
.v-give-row { display: grid; grid-template-columns: auto 1fr 7.5em auto; gap: var(--s-2); align-items: center; }
.v-give-row > div { display: grid; }
.v-give-row small { color: var(--muted); font-size: .78rem; }
.v-num { min-height: 40px; text-align: right; }
@keyframes v-fade { from { opacity: 0; } }
@keyframes v-in { from { opacity: 0; transform: translateY(8px); } }
.v-toast { position: fixed; left: 50%; bottom: var(--s-5); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--panel-2); border: 1px solid var(--gold-lo); padding: var(--s-2) var(--s-4); border-radius: var(--r-2); transition: opacity var(--t-med), transform var(--t-med); z-index: 70; max-width: calc(100vw - 32px); box-shadow: var(--drop); }
.v-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.v-toast.is-bad { border-color: var(--ember); color: var(--ember); }

/* pohyb na mape */
.v-smoke { animation: v-smoke 4.2s ease-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes v-smoke { 0% { opacity: 0; transform: translate(0, 5px) scale(.6); } 25% { opacity: .95; } 100% { opacity: 0; transform: translate(7px, -18px) scale(1.35); } }
.v-wave { animation: v-wave 5s ease-in-out infinite; }
@keyframes v-wave { 50% { transform: translateX(12px); opacity: .12; } }
.v-surf { animation: v-surf 4.6s ease-in-out infinite; }
.v-surf2 { animation-delay: -2.3s; }
@keyframes v-surf { 50% { transform: translateY(4px); opacity: .45; } }
.v-flow { animation: v-flow 2.4s linear infinite; }
@keyframes v-flow { to { stroke-dashoffset: -21; } }
.v-bob { animation: v-bob 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes v-bob { 50% { transform: translateY(1.6px) rotate(1.6deg); } }
.v-flag { animation: v-flag 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes v-flag { 50% { transform: scaleX(.82) skewY(5deg); } }
.v-hammer { animation: v-hammer .7s ease-in-out infinite; }
@keyframes v-hammer { 50% { transform: rotate(-32deg); } }
.v-ember { animation: v-ember 1.1s ease-in-out infinite; }
@keyframes v-ember { 50% { opacity: .55; } }
.v-sway { animation: v-sway 3.6s ease-in-out infinite; }
@keyframes v-sway { 50% { transform: translateX(1.4px); } }
.v-graze { animation: v-graze 7s ease-in-out infinite; }
@keyframes v-graze { 50% { transform: translateX(3px); } }
.v-plus { animation: v-plus 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes v-plus { 50% { transform: translateY(-2.4px) scale(1.08); } }
.v-cloud { animation: v-cloud 80s linear infinite; }
@keyframes v-cloud { from { transform: translateX(-420px); } to { transform: translateX(520px); } }
.v-bird { animation: v-bird 40s linear infinite; }
@keyframes v-bird { from { transform: translate(-160px, 30px); } to { transform: translate(1300px, -60px); } }
.v-raid { animation: v-raid 5s ease-out both; }
@keyframes v-raid { from { transform: translateX(-180px); } to { transform: none; } }
.v-raidglow { animation: v-ember 1.8s ease-in-out infinite; }
.v-sail { animation: v-sailaway 18s ease-in-out infinite alternate; }
@keyframes v-sailaway { to { transform: translateX(46px); } }

@media (prefers-reduced-motion: reduce) {
  .v-root *, .v-modal, .v-sheet, .v-panel { animation: none !important; transition: none !important; }
}

/* užší desktop: ukazovatele pod názov */
@media (max-width: 1320px) {
  .v-top { flex-wrap: wrap; }
  .v-hud { order: 3; flex: 1 1 100%; justify-content: center; }
  .v-head-tools { margin-left: auto; }
}
/* veľký monitor: katalóg v dvoch stĺpcoch, aby bočný stĺpec nebol nekonečný */
@media (min-width: 1700px) {
  .v-grid { grid-template-columns: minmax(0, 1fr) 640px; }
}

/* mobil a tablet: mapa hore, karty pod ňou, prepínač dole */
@media (max-width: 900px) {
  .v-root { gap: var(--s-2); padding-bottom: 76px; }
  .v-top { top: -52px; padding: 4px 6px 6px; gap: 4px var(--s-2); border-radius: 0 0 var(--r-2) var(--r-2); border-top: 0; }
  .v-title { flex: 1 1 0; height: 44px; }
  .v-crest { width: 38px; height: 38px; }
  .v-title h2 { font-size: 1rem; }
  .v-crewchip span { display: none; }
  .v-crewchip { padding: 0 8px; min-height: 38px; }
  .v-hud { gap: 4px; }
  .v-hud-g { flex: 5 1 0; border-radius: var(--r-2); min-width: 0; }
  .v-hud-g.v-mine { flex: 3 1 0; }
  .v-hud-i { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 0; padding: 2px 0; border-radius: 4px; }
  .v-hud-i .v-ico { width: 22px; height: 22px; }
  .v-hud-t { justify-items: center; }
  .v-hud-t b { font-size: .74rem; letter-spacing: -.02em; }
  .v-hud-t small { display: none; }
  .v-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .v-stage { position: relative; top: auto; height: min(96vw, 58vh); height: min(96vw, 58dvh); min-height: 300px; scroll-margin-top: 60px; }
  .v-alerts { top: 6px; left: 6px; right: 54px; }
  .v-alert { padding: 4px 8px 4px 6px; }
  .v-alert .v-ico { width: 24px; height: 24px; }
  .v-alert:not(.is-raid):not(.is-loss) .v-alert-t > span { display: none; }
  .v-alert-t b { font-size: .84rem; }
  .v-alert .btn { min-height: 32px; padding: 0 10px; }
  .v-alert.is-raid { padding: 6px 8px; }
  .v-alert.is-raid b { font-size: .92rem; }
  .v-alert.is-raid span, .v-alert.is-loss span { font-size: var(--fs-xs); }
  .v-zoom { top: 6px; right: 6px; }
  .v-zoom button { width: 40px; height: 40px; }
  .v-stagefoot { left: 6px; right: 6px; bottom: 6px; }
  .v-foot-hint { display: none; }
  .v-insp-host { position: fixed; z-index: 58; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 62vh; max-height: 62dvh; }
  .v-insp { border-radius: 14px 14px 0 0; border-width: 1px 0 0; box-shadow: 0 -18px 40px rgba(0, 0, 0, .7); animation-name: v-sheet; }
  .v-insp-head { padding-top: 6px; position: relative; }
  .v-insp-head::before { content: ""; position: absolute; top: 5px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 2px; background: var(--line); }
  .v-side { scroll-margin-top: 60px; }
  .v-tabs { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 57; border-radius: 0; border-width: 1px 0 0; padding: 3px 4px calc(3px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 24px -10px rgba(0, 0, 0, .8); }
  .v-tabs button { min-height: 56px; }
  .is-app .v-tab-back { display: grid !important; flex: 0 0 48px; color: var(--gold-hi); }
  .v-modal { place-items: end center; padding: 0; }
  .v-sheet { width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 14px 14px 0 0; border-width: 1px 0 0; animation-name: v-sheet; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .v-toast { bottom: 84px; }
  .v-types { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@keyframes v-sheet { from { transform: translateY(40%); opacity: 0; } }
@media (max-width: 560px) {
  .v-train { display: grid; grid-template-columns: 1fr auto auto; }
  .v-train > span:first-child { grid-column: 1 / -1; min-width: 0; }
  .v-train .btn:first-of-type { margin-left: 0; }
  .v-give-row { grid-template-columns: auto 1fr auto; }
  .v-give-row .v-num { grid-column: 2 / 3; }
  .v-sub { display: none; }
  .v-feat-art .v-art svg { height: 76px; width: auto; }
  .v-join { grid-template-columns: 1fr; }
}

/* okno dediny v appke (Sieň slávy → Dedina spoločenstva) */
html.village-open { overflow: hidden; }
.village-overlay { position: fixed; inset: 0; z-index: 55; overflow-y: auto; background: var(--bg); padding: var(--s-3) var(--s-3) var(--s-5); overscroll-behavior: contain; }
.village-body { max-width: 1840px; margin: 0 auto; }
.village-x { position: fixed; top: var(--s-3); right: var(--s-3); z-index: 56; background: var(--panel-2); border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
@media (max-width: 900px) { .village-overlay { padding: 0 0 var(--s-4); } .village-overlay .v-grid, .village-overlay .v-host, .village-overlay .v-found { margin-inline: var(--s-2); } .village-overlay .v-found { margin-top: var(--s-2); } }
