/* Minipivovar Valášek – styly veřejné části webu.
   Světlý i tmavý režim (prefers-color-scheme), omezené animace (prefers-reduced-motion).
   Styly správy webu jsou v admin.css a načítají se až po otevření správy. */

:root {
  --bg: #F1F2EF;
  --surface: #FAFAF8;
  --fg: #1C2B36;
  --muted: #4F5F69;
  --line: #D2D8D8;
  --accent: #1C2B36;
  --on-accent: #F1E9DA;
  --tan: #B5832F;
  --hop: #2F6B4A;
  --beer: #E8A21C;
  --foam: #FBF6E6;
  --f-display: 'Big Shoulders Display','Arial Narrow',Impact,sans-serif;
  --f-body: 'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
  --hh: 92px;
  color-scheme: light;
}
@media (min-width:760px) {
  :root {
    --hh: 60px;
  }
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #141F28;
    --surface: #1B2A35;
    --fg: #F1E9DA;
    --muted: #A3B1B8;
    --line: #2C3E4B;
    --accent: #DAB47C;
    --on-accent: #1C2B36;
    --tan: #DAB47C;
    --hop: #6FBF8E;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
  scroll-padding-top: calc(var(--hh) + env(safe-area-inset-top,0px));
}
@supports (overflow:clip) {
  html {
    overflow-x: clip;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-left: max(16px,env(safe-area-inset-left,0px));
  padding-right: max(16px,env(safe-area-inset-right,0px));
  padding-bottom: env(safe-area-inset-bottom,0px);
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top,0px);
  z-index: 60;
  background: var(--bg);
}
h1,
h2 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  letter-spacing: .025em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  padding-top: .06em;
}
h2 {
  font-size: clamp(2.2rem,6.2vw,3.9rem);
}
h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
}
b,
strong {
  font-weight: 700;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none!important;
}
button,
input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
}
select {
  background-image: linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
  background-position: calc(100% - 17px) 50%,calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
input[type=checkbox],
input[type=color] {
  -webkit-appearance: auto;
  appearance: auto;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
}
.mono {
  font-size: .88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
header.top {
  position: sticky;
  top: env(safe-area-inset-top,0px);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-inline: calc(-1 * max(16px,env(safe-area-inset-left,0px)));
  padding-inline: max(16px,env(safe-area-inset-left,0px));
}
.soc {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.soc a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  color: var(--muted);
  opacity: .75;
  transition: opacity .2s,color .2s;
}
.soc a:hover,
.soc a:focus-visible {
  opacity: 1;
  color: var(--ink,currentColor);
}
.soc a[hidden] {
  display: none;
}
.top .soc {
  margin-right: 6px;
}
.fsoc {
  margin-left: 0;
  gap: 6px;
}
.fsoc a {
  opacity: .85;
}
#previoBox {
  margin-top: 28px;
}
#previoBox iframe {
  width: 100%;
  border: 0;
  display: block;
  min-height: 600px;
}
.previo-note {
  font-size: .85rem;
  padding: 8px 12px;
  border: 1px dashed var(--tan);
  border-radius: 4px;
  margin-bottom: 12px;
}
.bar {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 20px;
  min-height: var(--hh);
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 46px;
}
.brand img {
  height: 26px;
  width: auto;
}
.on-dark {
  display: none;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .on-light {
    display: none;
  }
  :root:not([data-theme="light"]) .on-dark {
    display: inline-block;
  }
}
nav.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 4px;
  order: 3;
  width: 100%;
  padding-bottom: 8px;
}
nav.links a {
  padding: 8px 10px;
  font-size: .95rem;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 4px;
}
nav.links a:hover {
  background: var(--surface);
}
@media (min-width:760px) {
  nav.links {
    order: 0;
    width: auto;
    padding: 0;
  }
}
.btn {
  font: 600 1rem var(--f-body);
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  padding: 11px 20px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn.small {
  padding: 6px 12px;
  font-size: .9rem;
}
.btn:hover {
  filter: brightness(1.08);
}

/* ---------- HERO ---------- */
.track {
  position: relative;
}
.stage {
  position: sticky;
  top: calc(var(--hh) + env(safe-area-inset-top,0px));
  height: calc(100svh - var(--hh) - env(safe-area-inset-top,0px));
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 6px;
  align-items: center;
}
@media (min-width:860px) {
  .stage {
    grid-template-columns: 1fr 1.05fr;
    grid-template-rows: 1fr;
    gap: 28px;
  }
}
.stage .copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding-top: 10px;
  position: relative;
  z-index: 2;
}
.hero .stage {
  isolation: isolate;
  --fg: #F1E9DA;
  --muted: #C9D2D6;
  --tan: #DAB47C;
  --accent: #DAB47C;
  --on-accent: #1C2B36;
  --line: rgba(241,233,218,.28);
  color: var(--fg);
}
.vbg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  overflow: hidden;
  background: #141F28 center/cover no-repeat;
}
.vbg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vbg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(20,31,40,.9),rgba(20,31,40,.62) 55%,rgba(20,31,40,.45));
}
@media (max-width:859px) {
  .vbg::after {
    background: rgba(20,31,40,.72);
  }
}
.herologo {
  height: clamp(84px,13svh,140px);
  width: auto;
  align-self: flex-start;
}
.hero h1 {
  font-size: clamp(2.8rem,8vw,5.2rem);
  line-height: 1.04;
}
.hero h1 span {
  color: var(--tan);
}
.hero .lead {
  font-size: 1.1rem;
  max-width: 36ch;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gauge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.gauge b {
  color: var(--fg);
  font-weight: 500;
  min-width: 4.2em;
}
.gauge i {
  flex: 0 0 110px;
  height: 4px;
  background: var(--line);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.gauge i u {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--tan);
  width: 0;
}
.art3d {
  position: relative;
  height: 100%;
  min-height: 0;
  width: 100%;
}
.art3d canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.fallback img {
  max-height: 88%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.no3d .fallback,
.fail .fallback {
  display: flex;
}
.fail canvas,
.fail .loading3d {
  display: none!important;
}
.no3d .art3d canvas {
  display: none;
}
.loading3d {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  color: var(--muted);
}
.has3d .loading3d,
.no3d .loading3d {
  display: none;
}
@media (max-width:859px) {
  .hero .lead {
    display: none;
  }
  .herologo {
    height: 60px;
  }
  .hero h1 {
    font-size: clamp(2.3rem,10vw,3.3rem);
  }
  .hero .art3d {
    min-height: 300px;
  }
  .cta .btn {
    flex: 1 1 140px;
  }
}
@media (min-width:600px) and (max-width:859px) {
  .hero .lead {
    display: block;
  }
  .herologo {
    height: 84px;
  }
  .hero h1 {
    font-size: clamp(3rem,8vw,4rem);
  }
  .hero .art3d {
    min-height: 420px;
  }
}
@media (max-width:859px) and (max-height:700px) {
  .hero .gauge {
    display: none;
  }
  .herologo {
    height: 52px;
  }
}
.vid-btn {
  position: absolute;
  left: 0;
  bottom: 12px;
  z-index: 3;
}
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  margin-top: 40px;
  padding: 12px 0;
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.tk {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: tk 38s linear infinite;
}
.tk span {
  display: flex;
  align-items: center;
  gap: 28px;
}
.tk span::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--tan);
  transform: rotate(45deg);
}
@keyframes tk {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .tk {
    animation: none;
  }
}
section.block {
  padding-block: 96px 24px;
}
.sec-head {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}
.dm {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,300px),1fr));
}
.dmday {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.dmday.is-today {
  border-color: var(--tan);
  box-shadow: 0 0 0 1px var(--tan);
}
.dmday h3 {
  font-size: 1.15rem;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.dmday h3 .pill {
  font-size: .72rem;
}
.dmday ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dmday li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 7px;
}
.dmday li:last-child {
  border-bottom: 0;
}
.dmday li .pr {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.dmday li .al {
  grid-column: 1/-1;
  font-size: .78rem;
  color: var(--muted);
}
.dmday li.soup .nm::before {
  content: "Polévka: ";
  color: var(--muted);
}
.dmday li.note {
  grid-template-columns: 1fr;
  color: var(--muted);
  font-style: italic;
}
.dmframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  background: #fff;
}
.dmfoot {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.sec-head p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.card .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.card h3 {
  font-size: 1.2rem;
}
.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -1px;
  box-shadow: 0 0 0 2px var(--foam),0 0 0 3px var(--line);
}
.award {
  font-size: .86rem;
  color: var(--tan);
  font-weight: 600;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid currentColor;
}
.pill.ok {
  color: var(--hop);
}
.pill.no {
  color: var(--muted);
}
.pill.tan {
  color: var(--tan);
}

/* ---------- PRODUKTY 3D ---------- */
.prod {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width:900px) {
  .prod {
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
  }
}
.prodband {
  position: relative;
  isolation: isolate;
  color: #F3EBDD;
  padding-block: 64px 56px;
  margin-top: 72px;
  --pbg: #23408E;
  --pink: #F5B71A;
}
.prodband::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--pbg);
  z-index: -1;
  transition: background-color .6s;
}
.prodband .sec-head p {
  color: rgba(243,235,221,.8);
}
.prodband .pname {
  color: var(--pink);
  transition: color .4s;
}
.prodband .pill {
  color: #F3EBDD;
}
.prodband .award {
  color: var(--pink);
}
.prodband .muted {
  color: rgba(243,235,221,.8);
}
.prodband .chips button {
  background: rgba(0,0,0,.2);
  border-color: rgba(243,235,221,.3);
  color: #F3EBDD;
}
.prodband .chips button[aria-pressed=true] {
  background: var(--pink);
  border-color: var(--pink);
  color: #15191C;
}
.prodband :focus-visible {
  outline-color: #F3EBDD;
}
.prodstage {
  position: relative;
  height: clamp(440px,70svh,660px);
  border: 1px solid rgba(243,235,221,.2);
  background: radial-gradient(90% 70% at 50% 35%,rgba(255,255,255,.12),rgba(0,0,0,.18));
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width:900px) {
  .duo {
    grid-template-columns: repeat(4,1fr);
  }
}
.barfig {
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.barfig img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.barfig figcaption {
  font-size: .9rem;
  color: var(--muted);
}
.duo figure {
  margin: 0;
  display: grid;
  gap: 8px;
}
.duo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.duo figcaption {
  font-size: .9rem;
  color: rgba(243,235,221,.8);
}
/* z varny */
.brew {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-block: 72px 8px;
}
@media (min-width:900px) {
  .brew {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.brew figure {
  margin: 0;
}
.brew img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.brew-copy {
  display: grid;
  gap: 24px;
  max-width: 34rem;
}
.brew-copy .lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.facts-list li {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 3px solid var(--tan);
}
.facts-list b {
  font-size: 1.06rem;
  line-height: 1.35;
}
.facts-list span {
  color: var(--muted);
}
.motion-btn {
  position: fixed;
  z-index: 70;
  left: max(16px,env(safe-area-inset-left,0px));
  bottom: calc(16px + env(safe-area-inset-bottom,0px));
  font: 600 .9rem var(--f-body);
  padding: 10px 14px;
  border: 1.5px solid var(--fg);
  background: var(--surface);
  color: var(--fg);
  border-radius: 4px;
  cursor: pointer;
  max-width: calc(100vw - 32px);
  text-align: left;
}
.prodstage:active {
  cursor: grabbing;
}
.prodstage .tag {
  position: absolute;
  bottom: 12px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(243,235,221,.75);
  pointer-events: none;
  transition: left .5s,opacity .3s;
}
.hint {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .82rem;
  color: rgba(243,235,221,.75);
  pointer-events: none;
}
.pcopy {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.pname {
  font-size: clamp(2.2rem,5.6vw,3.8rem);
  line-height: 1.06;
}
#pStyle {
  font-size: 1.05rem;
  max-width: 44ch;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips button {
  font: 600 .9rem var(--f-body);
  padding: 7px 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  border-radius: 99px;
  cursor: pointer;
}
.chips button[aria-pressed=true] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width:900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
form.panel,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
}
label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: .9rem;
  min-width: 0;
}
input,
select,
textarea {
  font: 400 1rem var(--f-body);
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 9px 10px;
  width: 100%;
  min-width: 0;
}
.done {
  border: 2px solid var(--hop);
  padding: 12px 14px;
  color: var(--hop);
  font-weight: 600;
}
.err {
  color: #B3261E;
  font-weight: 600;
  font-size: .9rem;
}
@media (prefers-color-scheme:dark) {
  .err {
    color: #FF8A80;
  }
}
.soon {
  border: 2px dashed var(--line);
  padding: 22px;
  display: grid;
  gap: 10px;
}
ul.ticks {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 4px;
}
.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 18px;
}
.hours dt {
  font-weight: 600;
}
.hours dd {
  margin: 0;
}
footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  display: grid;
  gap: 18px;
}
footer .cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
}
.flogo {
  height: 130px;
  width: auto;
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

/* ---------- ADMIN ---------- */
.sp-in {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.up {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.up img {
  width: 56px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.up label {
  display: inline-block;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
  border: 1.5px solid var(--fg);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.up input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- AKTUALITY ---------- */
.newsgrid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}
.news {
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}
.newsimg {
  all: unset;
  cursor: zoom-in;
  display: block;
}
.newsimg img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.newsimg:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.newsbody {
  padding: 20px 22px 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.news.noimg .newsbody {
  border-top: 4px solid var(--tan);
}
.newsdate {
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.pin {
  background: var(--tan);
  color: #1C2B36;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: .75rem;
}
.news h3 {
  font-size: 1.25rem;
}
.news p:last-child {
  color: var(--muted);
}
.morewrap {
  margin-top: 24px;
}

/* ---------- GALERIE ---------- */
.galgrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2,1fr);
}
@media (min-width:760px) {
  .galgrid {
    grid-template-columns: repeat(4,1fr);
  }
}
.gitem {
  all: unset;
  cursor: zoom-in;
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1;
}
.gitem.wide {
  grid-column: span 2;
  grid-row: span 2;
}
.rooms {
  margin-top: 36px;
}
.roomsh {
  margin-bottom: 16px;
}
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.gitem:hover img {
  transform: scale(1.04);
}
.gitem:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.zoomwrap {
  all: unset;
  display: block;
  cursor: zoom-in;
  width: 100%;
}
.zoomwrap:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion:reduce) {
  .gitem img {
    transition: none;
  }
}

/* ---------- PROHLÍŽEČ FOTEK ---------- */
#lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12,18,23,.95);
  color: #F1E9DA;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(10px + env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) calc(14px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));
}
.lbtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lbstage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  position: relative;
}
#lbImg {
  max-width: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
#lbCap {
  text-align: center;
  max-width: 60ch;
  margin: 12px auto 0;
  font-size: 1rem;
}
.lbbtn {
  font: 600 1rem var(--f-body);
  background: rgba(241,233,218,.12);
  color: #F1E9DA;
  border: 1.5px solid rgba(241,233,218,.35);
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
}
.lbbtn:hover {
  background: rgba(241,233,218,.22);
}
.lbbtn:focus-visible {
  outline: 3px solid #DAB47C;
  outline-offset: 2px;
}
.lbnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
}
#lbPrev {
  left: 0;
}
#lbNext {
  right: 0;
}

/* ---------- SPRÁVA PIV ---------- */
.lt {
  border: 1.5px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  background: var(--bg);
}
.pill.new {
  background: var(--beer);
  border-color: var(--beer);
  color: #1C2B36;
}
.chipnew {
  font-size: .72em;
  font-weight: 700;
  background: var(--beer);
  color: #1C2B36;
  border-radius: 99px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: 1px;
}

/* ---------- SUDY: nedostupné položky, správa sudů a textů ---------- */
.kgna {
  border: 2px solid #B3261E;
  border-left-width: 8px;
  background: color-mix(in srgb,#B3261E 8%,var(--surface));
  padding: 12px 14px;
  font-size: 1.05rem;
  color: #8C1D18;
}
@media (prefers-color-scheme:dark) {
  .kgna {
    color: #FFB4AB;
    border-color: #FF8A80;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.kgcool {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.kgcool.is-na .chk {
  color: var(--muted);
}
.kgoff {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .85rem;
  color: #fff;
  background: #B3261E;
  padding: 3px 9px;
  border-radius: 3px;
}
#kgSize option:disabled {
  color: #B3261E;
}
button[type=submit]:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ---------- SPRÁVA ---------- */
.small {
  font-size: .88rem;
}
.chk {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.chk input {
  width: 20px;
  height: 20px;
}
label.btn {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
}
.cb {
  width: 22px;
  height: 22px;
}
.legal {
  grid-column: 1/-1;
  border-top: 1.5px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
  font-size: .88rem;
  color: var(--muted);
  display: grid;
  gap: 4px;
}
.legal p {
  margin: 0;
}
.kglegal {
  font-size: .86rem;
}
