:root {
  --village-green: #88a86a;
  --village-green-soft: rgba(136, 168, 106, .16);
  --village-amber: #d49a4c;
  --village-wood: #4a2e1f;
}

body.village-page { overflow-x: hidden; }

.page-shell {
  width: min(1540px, calc(100% - 30px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--k-gold-2);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.village-hero {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 10, 9, .94), rgba(15, 17, 12, .58) 58%, rgba(8, 9, 8, .86)),
    url('/assets/village/banner.png') center / cover no-repeat,
    linear-gradient(135deg, #24301d, #0b0d0c);
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.62)),
    radial-gradient(circle at 28% 42%, rgba(214,168,79,.12), transparent 25rem);
}

.hero-copy,
.village-seal { position: relative; z-index: 1; }

.hero-copy h1 {
  max-width: 900px;
  margin: 0 0 15px;
  color: var(--k-text);
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .86;
  letter-spacing: -.055em;
  text-shadow: 0 8px 24px rgba(0,0,0,.68);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  color: #d9ccb3;
  line-height: 1.68;
  text-shadow: 0 2px 8px rgba(0,0,0,.76);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.village-seal {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
  border: 2px solid rgba(236,205,142,.34);
  border-radius: 50% 50% 18px 18px;
  background: linear-gradient(180deg, rgba(45,58,31,.94), rgba(20,27,17,.98));
  box-shadow: inset 0 0 0 5px rgba(0,0,0,.24), 0 18px 38px rgba(0,0,0,.5);
  text-align: center;
}

.village-seal span { font-size: 4.2rem; }
.village-seal strong,
.village-seal small { display: block; }
.village-seal strong { margin-top: 8px; color: var(--k-gold-2); text-transform: uppercase; letter-spacing: .08em; }
.village-seal small { margin-top: 6px; color: var(--k-muted); }

.visitor-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
}

.visitor-search label { display: block; margin-bottom: 8px; color: var(--k-gold-2); font-weight: 800; }
.search-row { display: flex; gap: 9px; }
.search-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--k-line);
  border-radius: var(--k-radius-sm);
  color: var(--k-text);
  background: rgba(0,0,0,.32);
  outline: 0;
}
.search-row input:focus { border-color: rgba(136,168,106,.7); box-shadow: 0 0 0 3px rgba(136,168,106,.1); }
.status-line { margin: 10px 0 0; color: var(--k-muted); }
.status-line.ok { color: #a9da86; }
.status-line.error { color: #f0a099; }

.visitor-owner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  padding: 12px 14px;
  border: 1px solid var(--k-line);
  border-radius: 10px;
  background: rgba(0,0,0,.23);
}
.owner-mark { font-size: 2rem; }
.visitor-owner small,
.visitor-owner strong { display: block; }
.visitor-owner small { color: var(--k-muted); }
.visitor-owner strong { margin-top: 3px; color: var(--k-gold-2); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  min-height: 88px;
  padding: 15px;
}
.summary-card > span { grid-row: 1 / 3; font-size: 1.7rem; }
.summary-card small { color: var(--k-muted); }
.summary-card strong { color: var(--k-gold-2); font-size: 1.14rem; }

.services-section { margin-top: 24px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}
.section-heading h2 { margin: 0; color: var(--k-text); font-size: clamp(1.8rem, 3vw, 2.8rem); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px minmax(190px, 1fr) auto;
  color: inherit;
  text-decoration: none;
}

.service-card:hover { border-color: rgba(236,205,142,.38); }
.service-card.is-locked { opacity: .72; filter: saturate(.62); cursor: not-allowed; }
.service-card.is-locked:hover { transform: none; filter: saturate(.62); }

.service-art {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--k-line);
  background:
    radial-gradient(circle at 50% 35%, rgba(214,168,79,.15), transparent 58%),
    linear-gradient(180deg, #2a2b25, #111313);
}

.service-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(5,6,6,.85));
}

.service-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.service-art--npc img { object-position: center 22%; }
.service-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 5rem;
  background: radial-gradient(circle, rgba(214,168,79,.14), transparent 60%);
}
.service-art img:not([hidden]) + .service-fallback { opacity: 0; }
.service-art img[hidden] + .service-fallback { opacity: 1; }

.service-badge {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(236,205,142,.24);
  border-radius: 999px;
  color: var(--k-gold-2);
  background: rgba(8,9,9,.84);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.service-copy { padding: 16px; }
.service-kicker { margin: 0 0 6px; color: var(--village-green); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.service-copy h3 { margin: 0 0 10px; color: var(--k-text); font-size: 1.35rem; line-height: 1.1; }
.service-copy > p:last-child { margin: 0; color: var(--k-muted); line-height: 1.55; }

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 12px 16px;
  border-top: 1px solid var(--k-line);
  color: var(--k-gold-2);
  background: rgba(214,168,79,.045);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-size: .78rem;
}
.service-footer strong { font-size: 1.35rem; }

.village-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .65fr);
  gap: 18px;
  margin-top: 22px;
}
.notice-board,
.village-guide { padding: 18px; }
.notice-board-art { overflow: hidden; height: 190px; margin: -18px -18px 16px; border-bottom: 1px solid var(--k-line); border-radius: 11px 11px 0 0; }
.notice-board-art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.board-intro { color: var(--k-muted); line-height: 1.6; }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.board-poster {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(78,42,20,.52);
  border-radius: 7px 12px 8px 11px;
  color: #2a180b;
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), transparent 36%),
    #b78b55;
  box-shadow: inset 0 0 0 2px rgba(255,239,190,.1), 0 8px 20px rgba(0,0,0,.28);
  transform: rotate(-.25deg);
}
.board-poster:nth-child(even) { transform: rotate(.3deg); }
.board-poster.planned { filter: saturate(.65); }
.board-poster > span { display: block; margin-bottom: 8px; font-size: 1.55rem; }
.board-poster strong,
.board-poster small { display: block; }
.board-poster strong { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.board-poster small { margin-top: 8px; color: #4f321e; line-height: 1.45; }
.board-actions { margin-top: 14px; }

.guide-list { display: grid; gap: 8px; }
.guide-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--k-line);
  border-radius: 9px;
  background: rgba(0,0,0,.22);
}
.guide-row > span { font-size: 1.35rem; text-align: center; }
.guide-row strong,
.guide-row small { display: block; }
.guide-row strong { color: var(--k-text); }
.guide-row small { margin-top: 3px; color: var(--k-muted); line-height: 1.4; }
.full-button { width: 100%; margin-top: 12px; }

@media (max-width: 1280px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { grid-template-rows: 190px minmax(160px, 1fr) auto; }
}

@media (max-width: 960px) {
  .village-hero { grid-template-columns: 1fr; min-height: 360px; }
  .village-seal { display: none; }
  .visitor-bar,
  .village-bottom-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visitor-owner { min-width: 0; }
}

@media (max-width: 660px) {
  .page-shell { width: min(100% - 18px, 1540px); padding-top: 14px; }
  .village-hero { padding: 26px 20px; min-height: 340px; }
  .hero-copy h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .search-row,
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-row .k-button { width: 100%; }
  .services-grid,
  .summary-grid,
  .poster-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-rows: 175px auto auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}


[hidden] { display: none !important; }
.status-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 58px; padding: 13px 17px;
  border: 1px solid var(--k-line); border-radius: 12px;
  color: var(--k-muted); background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.2)), rgba(12,13,14,.94);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.58), 0 12px 28px var(--k-shadow);
}
.status-bar strong { color: var(--k-gold-2); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.status-bar.is-error { border-color: rgba(143,44,37,.55); }
.status-bar.is-error strong { color: #f0a099; }
.status-bar.is-success { border-color: rgba(119,184,91,.46); }
.status-bar.is-success strong { color: #a9da86; }
.panel {
  border: 1px solid var(--k-line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.026), rgba(0,0,0,.22)), rgba(12,13,14,.94);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), 0 12px 28px var(--k-shadow);
}
.tag {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 5px 9px; border: 1px solid rgba(214,168,79,.28); border-radius: 999px;
  color: var(--k-gold-2); background: rgba(214,168,79,.09); font-size: .76rem; line-height: 1.2;
}
.summary-card:not(.k-frame) {
  min-width: 0; min-height: 94px; display: grid; align-content: center; gap: 4px; padding: 14px;
  border: 1px solid var(--k-line); border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.2)), rgba(12,13,14,.94);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.58), 0 12px 28px var(--k-shadow);
}
.summary-card:not(.k-frame) > span { font-size: 1.35rem; }
.summary-card:not(.k-frame) small { color: var(--k-muted); }
.summary-card:not(.k-frame) strong { color: var(--k-text); }
.section-block { margin-top: 10px; }
.empty-state { color: var(--k-muted); line-height: 1.55; }
.empty-state.panel { padding: 22px; }
.notice-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid rgba(236,205,142,.1); }
.notice-card:first-child { border-top: 0; padding-top: 0; }
.notice-card__icon { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--k-line); border-radius:9px; background:rgba(0,0,0,.24); font-size:1.25rem; }
.notice-card h3 { margin: 0 0 4px; }
.notice-card p { margin: 0; color: var(--k-muted); line-height: 1.45; }
@media (max-width:700px) { .status-bar { align-items:flex-start; flex-direction:column; } .notice-card { grid-template-columns:auto minmax(0,1fr); } .notice-card > .k-button { grid-column:1/-1; } }

.places-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.place-card { overflow:hidden; display:flex; flex-direction:column; min-height:100%; color:inherit; text-decoration:none; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.place-card:hover { transform:translateY(-2px); border-color:rgba(214,168,79,.48); box-shadow:inset 0 0 0 1px rgba(214,168,79,.08),0 16px 34px var(--k-shadow); }
.place-card.is-locked { opacity:.84; }
.place-card__art { position:relative; aspect-ratio:16/9; overflow:hidden; border-bottom:1px solid var(--k-line); background:rgba(0,0,0,.25); }
.place-card__art img { width:100%; height:100%; object-fit:cover; image-rendering:pixelated; transition:transform .2s ease; }
.place-card:hover .place-card__art img { transform:scale(1.025); }
.place-lock { position:absolute; left:10px; bottom:10px; padding:6px 9px; border:1px solid rgba(236,205,142,.23); border-radius:999px; color:#ead8b4; background:rgba(8,9,10,.88); font-size:.75rem; }
.place-card__copy { padding:16px; }
.place-card__copy h3 { margin:4px 0 7px; font-size:1.2rem; }
.place-card__copy p:last-child { margin:0; color:var(--k-muted); line-height:1.5; }
.notice-board { margin-top:24px; padding:20px; }
.notice-list { display:grid; }
.board-actions { display:flex; justify-content:flex-end; margin-top:14px; }
@media(max-width:1120px){.places-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:680px){.places-grid{grid-template-columns:1fr;}.board-actions{justify-content:flex-start;}}


/* 0.10.25a130c2 – méně redundantních informačních panelů */
.village-page #status[hidden] { display: none !important; }
.village-page .services-section { margin-top: 24px; }
.village-page .services-section .section-heading { justify-content: flex-start; }
