:root {
  --bg: #000;
  --bg2: #0a0805;
  --panel: rgba(255,215,120,.04);
  --line: rgba(232,190,90,.16);
  --gold: #e6b84f;
  --gold-hi: #fff1b8;
  --gold-mid: #f4cf63;
  --gold-lo: #9a6a12;
  --butter: #fdf08a;
  --text: #f6efd9;
  --muted: #a69a7c;
  --ease: cubic-bezier(.2,.8,.2,1);
  --metal: linear-gradient(180deg, #fff6c8 0%, #f7d56a 30%, #d79b23 55%, #fbe38a 72%, #b07a17 100%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: #000; }

/* ---------- zlaté jiskry (hvězdičky) ---------- */
.sparkle { position: absolute; width: 22px; height: 22px; pointer-events: none; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle svg { width: 100%; height: 100%; fill: var(--gold-mid); filter: drop-shadow(0 0 6px rgba(255,215,100,.8)); }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ---------- ozubená kola v pozadí ---------- */
.gears { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.gear { position: absolute; opacity: .07; will-change: transform; }
.gear path { fill: none; stroke: var(--gold); stroke-width: 1.2; }

main, header, footer { position: relative; z-index: 1; }

/* ---------- malé hodiny ukazující průběh stránky ---------- */
.scroll-clock {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(230,184,79,.55);
  box-shadow: 0 0 20px rgba(230,184,79,.2);
  opacity: 0; transform: scale(.6);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.scroll-clock.on { opacity: 1; transform: scale(1); }
.scroll-clock svg { width: 100%; height: 100%; }

/* ---------- úvod ---------- */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 5rem clamp(1.5rem, 5vw, 4rem) 6rem;
}
#dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 45%, rgba(255,245,200,.85), rgba(255,210,90,.25) 35%, transparent 65%);
  opacity: 0; pointer-events: none;
}
.flash.go { animation: flash 1.1s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 16% { opacity: .2; } 24% { opacity: .8; } 100% { opacity: 0; } }

.hero-grid {
  position: relative;
  max-width: 1240px; width: 100%; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-top {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-weight: 800; text-transform: uppercase; color: var(--gold-mid);
  letter-spacing: .06em;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
  opacity: 0; animation: rise 1s var(--ease) .2s forwards;
}
.hero-top .big { font-size: clamp(1rem, 2.4vw, 1.5rem); }
.hero-top .school { display: block; font-size: .72rem; letter-spacing: .12em; line-height: 1.35; margin-top: .25rem; color: var(--gold); font-weight: 600; }

.title {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  transform: rotate(-4deg);
  transform-origin: left center;
}
.title .line { display: block; overflow: hidden; padding: .04em .1em .12em 0; }
.title .line span {
  display: inline-block;
  font-size: clamp(2.8rem, 8.2vw, 6.6rem);
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #6e4a0a) drop-shadow(0 6px 0 #3a2603) drop-shadow(0 0 28px rgba(255,200,80,.35));
  transform: translateY(115%);
  animation: up 1.1s var(--ease) forwards;
}
.title .line:nth-child(1) span { animation-delay: 2.5s; }
.title .line:nth-child(2) span { animation-delay: 2.7s; padding-left: .6em; }

@keyframes up { to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-info {
  margin-top: clamp(2rem, 6vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.4rem;
  opacity: 0; animation: rise 1s var(--ease) 3.2s forwards;
}
.hero-info .item { display: flex; align-items: center; gap: .9rem; }
.hero-info svg { width: 34px; height: 46px; flex: none; }
.hero-info b {
  display: block;
  font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(1rem, 2.3vw, 1.35rem); line-height: 1.2;
  color: var(--gold-mid);
}
.pill {
  display: inline-block;
  background: var(--butter);
  color: #1a1406;
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem;
  padding: .95rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(253,240,138,.6);
  animation: ping 2.6s ease-out 4s infinite;
  transition: transform .3s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(253,240,138,.55); } 100% { box-shadow: 0 0 0 22px rgba(253,240,138,0); } }

.big-clock {
  width: min(86vw, 500px);
  aspect-ratio: 1;
  justify-self: center;
  position: relative;
  opacity: 0;
  animation: rise 1.2s var(--ease) .1s forwards;
}
.big-clock::before {
  content: "";
  position: absolute; inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,205,90,.2), transparent 62%);
  filter: blur(12px);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .5; transform: scale(1.04); } }
.big-clock svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.hand { transform-origin: 200px 200px; transform-box: view-box; }
.big-clock .hand.spin { transition: transform 3.2s cubic-bezier(.65,0,.15,1); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem;
  transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; font-weight: 600;
  color: var(--muted);
  opacity: 0; animation: rise 1s var(--ease) 3.7s forwards;
}
.scroll-hint::after {
  content: ""; display: block; margin: .8rem auto 0;
  width: 1px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: drip 2s ease-in-out infinite; transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- obecné sekce ---------- */
section { padding: clamp(5rem, 12vw, 9rem) 1.5rem; position: relative; }
.wrap { max-width: 1080px; margin: 0 auto; }
.eyebrow {
  font-weight: 800; font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: .9rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
h2 {
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  line-height: 1.02;
  margin: 1rem 0 1.4rem;
}
h2 em {
  font-style: normal;
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 560px; color: var(--muted); font-size: 1.08rem; }

/* odhalování při scrollování */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }

/* ---------- časové obvody ---------- */
.circuits { background: linear-gradient(180deg, transparent, var(--bg2) 20%, var(--bg2) 80%, transparent); }
.panel {
  margin-top: 3rem;
  background: linear-gradient(180deg, #14110a, #060504);
  border: 1px solid rgba(230,184,79,.3);
  border-radius: 18px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,230,160,.08);
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
}
.row { display: grid; grid-template-columns: repeat(5, auto); gap: clamp(.4rem, 1.5vw, 1rem); justify-content: center; align-items: end; }
.cell { text-align: center; }
.cell small {
  display: block;
  font-weight: 800; font-size: clamp(.5rem, 1.3vw, .64rem); letter-spacing: .15em;
  color: #1a1406; background: var(--gold);
  border-radius: 3px; padding: .15rem .4rem; margin-bottom: .4rem;
}
.seg {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1rem, 4vw, 2.1rem);
  background: #000; border: 1px solid #2a2212; border-radius: 6px;
  padding: .35em .5em; min-width: 2.4em; letter-spacing: .06em;
}
.row-label {
  text-align: center; font-weight: 800;
  font-size: clamp(.58rem, 1.6vw, .74rem); letter-spacing: .35em;
  color: var(--gold); border: 1px solid rgba(230,184,79,.4);
  border-radius: 3px; padding: .25rem .8rem;
  width: max-content; margin: .7rem auto 0;
}
.r-dest .seg { color: var(--gold-hi); text-shadow: 0 0 14px rgba(255,220,120,.9); }
.r-pres .seg { color: var(--gold-mid); text-shadow: 0 0 12px rgba(244,207,99,.7); }
.r-last .seg { color: #c48a24; text-shadow: 0 0 10px rgba(196,138,36,.7); }

.countdown {
  margin: 3.5rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 2vw, 1.4rem);
  max-width: 760px;
}
.cd {
  text-align: center; padding: 1.4rem .5rem;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.cd .n {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.05;
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cd .u { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- kdy a kde ---------- */
.facts {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.fact { padding: 2.2rem 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; }
.fact:hover { background: rgba(230,184,79,.06); }
.fact .k { font-weight: 800; font-size: .66rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); }
.fact .v { font-family: "Archivo Black", sans-serif; text-transform: uppercase; font-size: 1.5rem; margin: .5rem 0 .2rem; color: var(--gold-mid); }
.fact p { color: var(--muted); font-size: .95rem; }

/* ---------- program ---------- */
.program { background: linear-gradient(180deg, transparent, var(--bg2) 15%, var(--bg2) 85%, transparent); }
.prog-grid {
  margin-top: 3rem;
  display: grid; grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.prog-clock { position: sticky; top: 12vh; text-align: center; }
.prog-clock svg { width: 100%; max-width: 380px; overflow: visible; }
.prog-clock .hand { transition: transform 1.1s cubic-bezier(.5,0,.15,1); }
.prog-now {
  margin-top: 1.4rem;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .06em;
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prog-now-label { color: var(--muted); font-size: .9rem; min-height: 1.6em; }

.steps { list-style: none; }
.step {
  padding: 2.2rem 0 2.2rem 2rem;
  border-left: 1px solid var(--line);
  position: relative; opacity: .3;
  transition: opacity .6s var(--ease);
}
.step::before {
  content: "";
  position: absolute; left: -6px; top: 2.75rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: #000; border: 1px solid var(--gold);
  transition: background .4s, box-shadow .4s;
}
.step.active { opacity: 1; }
.step.active::before { background: var(--gold-mid); box-shadow: 0 0 0 6px rgba(230,184,79,.15), 0 0 20px var(--gold); }
.step time { font-weight: 800; color: var(--gold); letter-spacing: .15em; font-size: .9rem; }
.step h3 { font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(1.25rem, 2.8vw, 1.7rem); margin: .3rem 0 .4rem; }
.step p { color: var(--muted); }
.note { margin-top: 2rem; color: var(--muted); font-size: .85rem; font-style: italic; }

/* ---------- citát ---------- */
.quote { text-align: center; overflow: hidden; }
.quote blockquote {
  font-family: "Cinzel", serif; font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 3.1rem); line-height: 1.2;
  max-width: 900px; margin: 0 auto;
}
.quote blockquote span { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote cite { display: block; margin-top: 1.5rem; font-style: normal; color: var(--muted); letter-spacing: .3em; font-size: .72rem; text-transform: uppercase; font-weight: 600; }

/* ---------- zasedací pořádek (schéma sálu podle plánku Ideonu) ---------- */
.seating { background: linear-gradient(180deg, transparent, var(--bg2) 15%, var(--bg2) 85%, transparent); }
.seat-head { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; }
.seat-total .k { font-weight: 800; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.seat-total .v { font-family: "Archivo Black", sans-serif; font-size: 2.2rem; line-height: 1.15; }
.seat-total .v small { font-family: "Montserrat", sans-serif; font-size: .9rem; color: var(--muted); font-weight: 400; }
.bar { width: 220px; height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; margin-top: .5rem; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--metal); transition: width 1.4s var(--ease); }

.floor-tabs { display: flex; gap: .5rem; }
.floor-tabs button {
  font: inherit; font-weight: 800; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); background: transparent;
  border: 1px solid rgba(230,184,79,.4); border-radius: 999px;
  padding: .65rem 1.2rem; cursor: pointer;
  transition: background .3s, color .3s;
}
.floor-tabs button[aria-selected="true"] { background: var(--gold); color: #000; }

.plan-wrap {
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid var(--line); border-radius: 22px;
  background: #050403;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.plan { position: relative; min-width: 760px; margin: 0 auto; }
/* obrysy sálů – „stěny“ budovy */
.plan .room {
  position: absolute;
  border: 2px solid rgba(230,184,79,.5);
  border-radius: 14px;
  background: radial-gradient(ellipse at 40% 40%, rgba(230,184,79,.07), rgba(230,184,79,.015) 70%);
  box-shadow: inset 0 0 40px rgba(0,0,0,.6);
}
.plan .zone {
  position: absolute;
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(230,184,79,.75);
  border: 1px dashed rgba(230,184,79,.35); border-radius: 10px;
  line-height: 1.3;
}
.plan .zone.solid { background: var(--metal); color: #1a1406; border: 0; }
.plan .zone.floor-dance { background: repeating-linear-gradient(45deg, rgba(230,184,79,.08) 0 10px, transparent 10px 20px); }
/* prázdný prostor nad sálem v galerii */
.plan .zone.void { background: #020201; border: 2px solid rgba(230,184,79,.5); border-radius: 12px; }
.plan .hall-name {
  position: absolute;
  font-weight: 800; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.table {
  --p: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(rgba(120,110,95,.75) calc(var(--p) * 1%), var(--gold-mid) 0);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.table::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: #0b0905; }
.table span { position: relative; font-weight: 800; font-size: clamp(.6rem, 1.15vw, .74rem); line-height: 1; }
.table.full { background: rgba(120,110,95,.6); }
.table.full span { color: var(--muted); }
.table.unknown { background: rgba(230,184,79,.35); }
.table:hover, .table.sel { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 18px rgba(244,207,99,.5); z-index: 2; }

.seat-foot { margin-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.legend { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: .45rem; vertical-align: -1px; }
.legend .free { background: var(--gold-mid); }
.legend .taken { background: rgba(120,110,95,.75); }
.table-info { font-weight: 600; color: var(--gold-mid); min-height: 1.5em; }
.seat-msg { margin-top: .6rem; font-size: .85rem; color: var(--muted); font-style: italic; }
.swipe-hint { display: none; margin-top: .6rem; font-size: .78rem; color: var(--muted); }

/* ---------- vstupenky ---------- */
.tickets-box {
  margin-top: 3rem;
  border: 1px solid rgba(230,184,79,.4); border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: radial-gradient(ellipse at top right, rgba(230,184,79,.14), transparent 60%), var(--panel);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.tickets-box h3 { font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 3.4vw, 2rem); color: var(--gold-mid); }
.tickets-box p { color: var(--muted); margin-top: .5rem; }

/* ---------- sponzoři ---------- */
.sponsors-row { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.sponsor {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 1rem; text-align: center;
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold-mid); background: var(--panel);
  transition: border-color .3s, transform .3s var(--ease);
}
.sponsor:hover { border-color: rgba(230,184,79,.6); transform: translateY(-3px); }

footer { padding: 4rem 1.5rem 3rem; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer .mark { font-family: "Archivo Black", sans-serif; color: var(--gold); letter-spacing: .3em; font-size: .8rem; margin-bottom: .8rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .big-clock { width: min(78vw, 400px); order: -1; }
  .hero-top { margin-bottom: 1.5rem; }
}
@media (max-width: 820px) {
  .prog-grid { grid-template-columns: 1fr; }
  .prog-clock {
    top: 0; z-index: 5;
    background: linear-gradient(var(--bg2) 75%, transparent);
    padding: 1rem 0 2rem;
    display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; text-align: left;
  }
  .prog-clock svg { max-width: 120px; }
  .prog-now { margin-top: 0; }
  .tickets-box { grid-template-columns: 1fr; }
  .swipe-hint { display: block; }
}
@media (max-width: 560px) {
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .scroll-clock { width: 48px; height: 48px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- plánek: další typy zón ---------- */
.plan .zone.stairs {
  background: repeating-linear-gradient(90deg, rgba(230,184,79,.22) 0 2px, transparent 2px 7px);
  border-style: solid;
}
.plan .zone.faded { opacity: .35; }
.plan .zone.void { display: block; }

/* ---------- okénko s detailem stolu ---------- */
.tmodal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 1.5rem;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.tmodal[hidden] { display: none; }
.tmodal.open { opacity: 1; }
.tcard {
  position: relative;
  width: min(360px, 100%);
  text-align: center;
  padding: 2.2rem 1.8rem 1.8rem;
  border: 1px solid rgba(230,184,79,.5);
  border-radius: 24px;
  background: radial-gradient(ellipse at top, rgba(230,184,79,.16), transparent 65%), #0b0905;
  box-shadow: 0 30px 90px rgba(0,0,0,.8), 0 0 40px rgba(230,184,79,.15);
  transform: translateY(16px) scale(.96);
  transition: transform .3s var(--ease);
}
.tmodal.open .tcard { transform: none; }
.tclose {
  position: absolute; top: .8rem; right: .9rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(230,184,79,.4); background: transparent;
  color: var(--gold); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.t-hall { font-weight: 800; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.tcard h3 {
  font-family: "Archivo Black", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: 2rem; margin: .3rem 0 .8rem;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.t-seats { width: 170px; height: 170px; margin: 0 auto; display: block; }
.t-table { fill: #120e06; stroke: url(#rim2); stroke: var(--gold); stroke-width: 2; }
.t-seat { stroke-width: 2; animation: seatIn .4s var(--ease) both; transform-origin: center; transform-box: fill-box; }
.t-seat.free { fill: var(--gold-mid); stroke: #fff1b8; }
.t-seat.taken { fill: #3a342a; stroke: #6b6253; }
@keyframes seatIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.t-free { font-family: "Archivo Black", sans-serif; font-size: 1.3rem; margin-top: .8rem; text-transform: uppercase; }
.t-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; margin: .7rem auto 0; width: 70%; overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 0; background: var(--metal); transition: width .8s var(--ease); }
.t-note { color: var(--muted); font-size: .9rem; margin: .8rem 0 1.3rem; }
.tcard .pill { animation: none; }
.table:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- obdélníkové stoly na plánku ---------- */
.plan .table {
  aspect-ratio: auto;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(120,110,95,.8) calc(var(--p) * 1%), var(--gold-mid) 0);
}
.plan .table::before { inset: 2px; border-radius: 2px; }
.plan .table.full { background: rgba(120,110,95,.6); }
.plan .table.unknown { background: rgba(230,184,79,.35); }

/* ---------- výběr míst a QR platba v okénku ---------- */
.t-seats { width: 100%; max-width: 300px; height: auto; }
.t-table { fill: #120e06; stroke: var(--gold); stroke-width: 2; }
.t-table-label { fill: var(--gold); font: 800 13px "Montserrat", sans-serif; letter-spacing: .15em; text-anchor: middle; }
.t-seat { animation: seatIn .4s var(--ease) both; transform-box: fill-box; transform-origin: center; }
.t-seat circle { stroke-width: 2; transition: fill .2s, stroke .2s; }
.t-seat text { font: 800 13px "Montserrat", sans-serif; text-anchor: middle; pointer-events: none; }
.t-seat.free { cursor: pointer; }
.t-seat.free circle { fill: var(--gold-mid); stroke: #fff1b8; }
.t-seat.free text { fill: #1a1406; }
.t-seat.sel { cursor: pointer; }
.t-seat.sel circle { fill: #fff; stroke: var(--gold); stroke-width: 4; }
.t-seat.sel text { fill: #1a1406; }
.t-seat.taken circle { fill: #3a342a; stroke: #6b6253; }
.t-seat.taken text { fill: #8a8070; }
.t-seat:focus-visible circle { stroke: #fff; stroke-width: 4; }
.t-buy:disabled { opacity: .45; cursor: default; transform: none; }
.tcard .pill { border: 0; cursor: pointer; font-family: inherit; }
.tcard .pill.secondary { background: transparent; color: var(--gold); border: 1px solid rgba(230,184,79,.45); margin-top: .4rem; }
.t-qr { background: #fff; border-radius: 14px; padding: 10px; width: 230px; max-width: 100%; margin: .4rem auto 0; }
.t-qr svg { display: block; width: 100%; height: auto; }
.t-details { color: var(--muted); font-size: .88rem; margin-top: .4rem; }
.t-details b { color: var(--text); }

/* odpočet rezervace v okénku */
.t-timer { font-family: "Archivo Black", sans-serif; font-size: 1.05rem; color: var(--gold-mid); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .04em; }
.t-timer.low { color: #ff6b6b; }

/* ---------- pokladna: přihlášení a lišta ---------- */
.cashier-bar { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; font-size: .85rem; color: var(--muted); }
.cashier-bar b { color: var(--gold-mid); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; cursor: pointer; }
.login-card { text-align: left; }
.login-card .t-hall, .login-card h3 { text-align: center; }
.login-card label { display: block; font-weight: 800; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: .9rem 0 .35rem; }
.login-card input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #000; border: 1px solid rgba(230,184,79,.35); border-radius: 12px; padding: .75rem .9rem;
}
.login-card .pill { display: block; width: 100%; margin-top: .4rem; }
.t-seat.readonly { cursor: default; }

/* jméno kupujícího v okénku stolu */
.t-buyer { text-align: left; margin: .2rem 0 .4rem; }
.t-buyer label { display: block; font-weight: 800; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.t-buyer input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #000; border: 1px solid rgba(230,184,79,.35); border-radius: 12px; padding: .7rem .9rem;
}
.tcard .pill:disabled { opacity: .5; cursor: default; }

/* ---------- nákup pokladní (místa z více stolů) ---------- */
.cart[hidden] { display: none; }
.cart {
  margin-top: 1.2rem;
  padding: 1.4rem clamp(1rem, 3vw, 1.8rem);
  border: 1px solid rgba(230,184,79,.45); border-radius: 20px;
  background: radial-gradient(ellipse at top right, rgba(230,184,79,.12), transparent 60%), #0b0905;
}
.c-items { list-style: none; margin: .7rem 0 .4rem; }
.c-items li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.c-items li b { color: var(--gold-mid); }
.c-items .c-empty { color: var(--muted); font-size: .9rem; border: 0; }
.c-total { font-family: "Archivo Black", sans-serif; font-size: 1.2rem; text-transform: uppercase; margin: .4rem 0 .2rem; }
.c-names { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.c-names label { display: block; font-weight: 800; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .35rem; }
.c-names input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #000; border: 1px solid rgba(230,184,79,.35); border-radius: 12px; padding: .7rem .9rem;
}
.cart .t-note { margin: .8rem 0; min-height: 1em; }
.c-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.cart .pill { animation: none; border: 0; cursor: pointer; font-family: inherit; }
.cart .pill:disabled { opacity: .45; cursor: default; transform: none; }
.plan .table.incart { box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(255,255,255,.6); z-index: 2; }
@media (max-width: 560px) { .c-names { grid-template-columns: 1fr; } }

/* legenda v okénku stolu + větší plánek a okénko na mobilu */
.t-legend { display: flex; justify-content: center; gap: 1.2rem; font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.t-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: .4rem; vertical-align: -1px; }
.t-legend .free { background: var(--gold-mid); }
.t-legend .taken { background: #3a342a; border: 1px solid #6b6253; }
.t-seat.readonly, .t-seat.free.readonly { cursor: default; }
@media (max-width: 560px) {
  .plan { min-width: 900px; }
  .tmodal { padding: .8rem; align-items: end; }
  .tcard { width: 100%; max-height: 92vh; overflow-y: auto; padding: 2rem 1.2rem 1.4rem; }
  .t-seats { max-width: 100%; }
}

/* vstupenky na stání: počítadlo nahoře a výběr počtu v nákupu */
.seat-total[hidden] { display: none; }
.seat-head .seat-total + .seat-total { margin-right: auto; }
.c-standing { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.c-standing b { color: var(--gold-mid); font-weight: 800; }
.c-standing small { display: block; color: var(--muted); font-size: .8rem; }
.c-stepper { display: flex; align-items: center; gap: .4rem; }
.c-stepper button {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(230,184,79,.5); background: transparent; color: var(--gold); font-size: 1.3rem; line-height: 1;
}
.c-stepper button:disabled { opacity: .35; cursor: default; }
.c-stepper input {
  width: 64px; text-align: center; font: inherit; font-size: 1.1rem; font-weight: 800; color: var(--text);
  background: #000; border: 1px solid rgba(230,184,79,.35); border-radius: 10px; padding: .45rem .3rem;
}

/* limit vstupenek na osobu a čísla papírových vstupenek */
.c-quota { color: var(--muted); font-size: .88rem; margin: .6rem 0 .2rem; }
.c-quota.warn, .t-note.warn, .cart .t-note.warn { color: #ff8a7a; }
.t-tickets { text-align: left; margin: 1rem 0 .2rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.t-tickets:empty { display: none; }
.t-tickets .t-hall { text-align: center; }
.t-tickets-hint { color: var(--muted); font-size: .82rem; text-align: center; margin: .3rem 0 .6rem; }
.t-ticket { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .3rem 0; font-size: .9rem; }
.t-ticket input {
  width: 110px; font: inherit; font-size: 1rem; font-weight: 800; color: var(--text); text-align: center;
  background: #000; border: 1px solid rgba(230,184,79,.35); border-radius: 10px; padding: .5rem .4rem;
}
.t-ticket input.bad { border-color: #ff6b6b; box-shadow: 0 0 0 2px rgba(255,107,107,.3); }
.t-ticket input:disabled { opacity: .7; }

/* okénko s QR kódem: na širší obrazovce vedle sebe (QR vlevo, čísla vstupenek vpravo), aby se vešlo na výšku */
.tcard:has(#t-tickets) { max-height: 94vh; overflow-y: auto; }
.t-tickets { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.t-tickets .t-hall, .t-tickets .t-tickets-hint { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .tcard:has(#t-tickets) {
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-areas:
      "hall    hall"
      "title   title"
      "timer   tickets"
      "qr      tickets"
      "amount  tickets"
      "details tickets"
      "note    note"
      "paid    back";
    column-gap: 2rem;
    align-items: start;
    padding: 1.6rem 2rem 1.4rem;
  }
  .tcard:has(#t-tickets) > .t-hall { grid-area: hall; }
  .tcard:has(#t-tickets) > h3 { grid-area: title; margin: .1rem 0 .6rem; font-size: 1.6rem; }
  .tcard:has(#t-tickets) #t-timer { grid-area: timer; }
  .tcard:has(#t-tickets) #t-qr { grid-area: qr; width: 210px; }
  .tcard:has(#t-tickets) #t-amount { grid-area: amount; margin-top: .5rem; }
  .tcard:has(#t-tickets) #t-details { grid-area: details; font-size: .82rem; }
  .tcard:has(#t-tickets) #t-tickets {
    grid-area: tickets; margin: 0; padding: 0 0 0 2rem; border-top: 0; border-left: 1px solid var(--line);
    grid-template-columns: 1fr 1fr; align-self: stretch; align-content: start;
  }
  .tcard:has(#t-tickets) .t-ticket { flex-direction: column; align-items: stretch; gap: .25rem; font-size: .8rem; color: var(--muted); }
  .tcard:has(#t-tickets) .t-ticket input { width: 100%; }
  .tcard:has(#t-tickets) #t-paynote { grid-area: note; margin: 1rem 0 .8rem; font-size: .85rem; }
  .tcard:has(#t-tickets) #t-paid { grid-area: paid; width: 100%; }
  .tcard:has(#t-tickets) #t-back { grid-area: back; width: 100%; margin-top: 0; }
  .tcard:has(#t-tickets) #t-paid[hidden] + #t-back { grid-column: 1 / -1; }
}
@media (min-width: 760px) and (max-height: 640px) {
  .tcard:has(#t-tickets) #t-qr { width: 170px; }
  .tcard:has(#t-tickets) > h3 { display: none; }
}
@media (max-width: 759px) {
  .t-tickets { grid-template-columns: 1fr 1fr; }
  .t-ticket { flex-direction: column; align-items: stretch; gap: .25rem; font-size: .8rem; }
  .t-ticket input { width: 100%; }
}
.tcard [hidden], .cart [hidden] { display: none !important; }

/* ---------- přepínač Seznam / Plánek a seznam stolů (hlavně pro mobil) ---------- */
.seat-head { align-items: center; }
.view-tabs { display: flex; gap: .5rem; }
.view-tabs button {
  font: inherit; font-weight: 800; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid rgba(230,184,79,.25); border-radius: 999px;
  padding: .55rem 1rem; cursor: pointer;
}
.view-tabs button[aria-selected="true"] { color: var(--gold-hi); border-color: var(--gold); background: rgba(230,184,79,.12); }
.plan-wrap[hidden], .tlist[hidden] { display: none; }
.swipe-hint.off { display: none !important; }
.tlist { margin-top: 1.4rem; display: grid; gap: 1.2rem; }
.tlist-hall { border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: #050403; }
.tlist-hall h4 { font-weight: 800; font-size: .74rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.tlist-hall h4 small { display: block; letter-spacing: .05em; text-transform: none; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.tlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: .5rem; }
.tchip {
  --p: 0;
  font: inherit; color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-height: 58px; padding: .4rem .2rem;
  border: 1px solid rgba(230,184,79,.55); border-radius: 12px;
  background: linear-gradient(90deg, rgba(120,110,95,.55) calc(var(--p) * 1%), rgba(230,184,79,.14) 0);
  transition: transform .2s var(--ease);
}
.tchip b { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: 1.15rem; line-height: 1; color: var(--gold-hi); }
.tchip small { font-size: .72rem; color: var(--muted); }
.tchip.full { opacity: .45; border-color: rgba(120,110,95,.6); }
.tchip.full b { color: var(--muted); }
.tchip.unknown { background: rgba(230,184,79,.08); }
.tchip.incart { box-shadow: 0 0 0 2px #fff; }
.tchip.sel, .tchip:active { transform: scale(1.06); }
@media (max-width: 560px) {
  .seat-head { gap: .8rem; }
  .seat-total .v { font-size: 1.8rem; }
  .bar { width: 160px; }
  .floor-tabs, .view-tabs { width: 100%; }
  .floor-tabs button, .view-tabs button { flex: 1; }
  .plan { min-width: 760px; }
}

/* ---------- plánek na mobilu: otočený na výšku, vejde se celý bez posouvání ---------- */
.plan.turned { min-width: 0 !important; width: 100%; }
.plan.turned .room { border-radius: 8px; border-width: 1.5px; }
.plan.turned .zone { font-size: .44rem; letter-spacing: .06em; border-radius: 6px; padding: 1px; line-height: 1.15; word-break: break-word; }
.plan.turned .hall-name { writing-mode: vertical-rl; font-size: .42rem; letter-spacing: .14em; }
.plan.turned .table { border-radius: 3px; }
.plan.turned .table span { font-size: .5rem; }
.plan.turned .table:hover, .plan.turned .table.sel { transform: translate(-50%, -50%) scale(1.35); }
@media (max-width: 700px) {
  .plan-wrap { padding: .5rem; overflow: hidden; }
  .swipe-hint { display: none !important; }
}

/* ---------- plánek pro mobil nakreslený na výšku (plan.js → mobile) ---------- */
.plan.mobile .room { border-radius: 10px; border-width: 1.5px; box-shadow: inset 0 0 24px rgba(0,0,0,.6); }
.plan.mobile .zone {
  font-size: .5rem; letter-spacing: .1em; line-height: 1.2; padding: 2px;
  word-break: normal; overflow-wrap: normal; hyphens: none; border-radius: 7px;
}
.plan.mobile .zone.solid { letter-spacing: .14em; }
.plan.mobile .hall-name { writing-mode: horizontal-tb; font-size: .48rem; letter-spacing: .14em; }
.plan.mobile .table { border-radius: 4px; }
.plan.mobile .table span { font-size: .56rem; }
.plan.mobile .table:hover, .plan.mobile .table.sel { transform: translate(-50%, -50%) scale(1.3); }

/* čitelnější čísla stolů: celý stůl zlatý (obsazená část šedá), číslo tmavé a tučné */
.plan .table span { color: #1a1406; font-weight: 800; letter-spacing: -.01em; }
.plan .table::before { display: none; }
.plan .table { box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.5); }
.plan .table.full span { color: #f1ead6; }
.plan .table.unknown span { color: #1a1406; }
.plan.mobile .table span { font-size: .7rem; }
.plan.mobile .table { border-radius: 4px; }
@media (max-width: 380px) { .plan.mobile .table span { font-size: .62rem; } }

/* čísla židlí v okénku stolu: bez obrysu (dřív se rozmazávala), tmavá a tučná; kroužky o kousek menší, aby se nedotýkaly */
.t-seat text { stroke: none; font: 800 14px "Montserrat", sans-serif; letter-spacing: 0; }
.t-seat.free text, .t-seat.sel text { fill: #120d03; }
.t-seat.taken text { fill: #b9ae98; }
.t-seat circle { r: 13px; }
.t-seat.free circle { stroke: #fff1b8; stroke-width: 1.5; }
.t-table-label { font-size: 14px; }

/* šipka dolů v úvodu místo nápisu „Scrolluj“ */
.scroll-hint.arrow { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(230,184,79,.55); background: rgba(0,0,0,.35); color: var(--gold-mid); letter-spacing: 0; text-decoration: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.scroll-hint.arrow::after { display: none; }
.scroll-hint.arrow svg { width: 24px; height: 24px; animation: nudge 1.8s ease-in-out infinite; }
.scroll-hint.arrow:hover { background: rgba(230,184,79,.15); }
.scroll-hint.arrow.gone { opacity: 0 !important; pointer-events: none; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.step { cursor: pointer; }
.scroll-hint.arrow { margin-left: -26px; }

/* plánek podle p. Vašíčka: vchody do sálů, bar, stoly nastojato / naležato */
.plan .zone.door {
  border: 0; border-radius: 3px; background: #050403; z-index: 1;
  color: var(--gold-mid); font-size: .5rem; letter-spacing: .18em;
  box-shadow: inset 0 0 0 1px rgba(230,184,79,.25);
}
.plan .zone.door::before, .plan .zone.door::after { content: none; }
.plan .zone.bar { border-style: solid; background: rgba(230,184,79,.08); }
.plan .table.tall span, .plan .table.wide span { font-size: clamp(.55rem, 1vw, .72rem); }
.plan.turned .zone { word-break: normal; overflow-wrap: anywhere; font-size: .46rem; letter-spacing: .05em; }
.plan.turned .zone.door { font-size: .4rem; }
.plan.turned .table span { font-size: .55rem; }

/* sponzoři s logem a proklikem na jejich web */
a.sponsor { text-decoration: none; display: block; cursor: pointer; }
.sponsor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; }
.sponsor .s-logo {
  display: grid; place-items: center; width: 100%; height: 92px; padding: .8rem 1rem;
  background: #fff; border-radius: 12px;
}
.sponsor .s-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.sponsor.has-logo { padding: 1rem 1rem 1.2rem; }
.sponsor.has-logo .s-name { font-size: .78rem; letter-spacing: .1em; color: var(--muted); }
a.sponsor:hover .s-name { color: var(--gold-hi); }
a.sponsor .s-name::after { content: " ↗"; opacity: .6; }
.sponsors-row { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
a.sponsor { display: flex; }

/* sponzoři: jednotné karty – dlaždice stejné velikosti, logo vždy uvnitř, pod ní název */
.sponsors-row { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.sponsor, a.sponsor {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .7rem;
  padding: .8rem; text-align: center; letter-spacing: .06em;
}
.sponsor .s-logo {
  display: flex; align-items: center; justify-content: center;
  height: 96px; width: 100%; padding: 14px 18px; overflow: hidden;
  background: #fff; border-radius: 12px;
}
.sponsor .s-logo img { width: auto; height: auto; max-width: 100%; max-height: 64px; object-fit: contain; display: block; }
.sponsor .s-logo.s-dark { background: #14110a; border: 1px solid rgba(230,184,79,.35); }
.sponsor .s-logo.s-text {
  background: radial-gradient(ellipse at top, rgba(230,184,79,.18), transparent 70%), #0b0905;
  border: 1px solid rgba(230,184,79,.4);
  font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: .95rem; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .04em; color: var(--gold-mid);
}
.sponsor .s-name { min-height: 1.3em; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
a.sponsor:hover .s-logo { box-shadow: 0 0 0 2px var(--gold), 0 8px 24px rgba(0,0,0,.5); }
a.sponsor:hover .s-name { color: var(--gold-hi); }
a.sponsor .s-name::after { content: " ↗"; opacity: .6; }
.sponsor .s-name:empty::after { content: none; }
@media (max-width: 560px) {
  .sponsors-row { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .sponsor .s-logo { height: 80px; padding: 10px 12px; }
  .sponsor .s-logo img { max-height: 52px; }
  .sponsor .s-logo.s-text { font-size: .78rem; }
}

/* sponzoři: pod logem celý oficiální název normálním písmem */
.sponsor .s-name { text-transform: none; letter-spacing: .02em; font-size: .8rem; font-weight: 600; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
a.sponsor .s-name::after { margin-left: .3em; }
