/* =============================================================================
 * Vstupenky obce Světlá Hora
 * Barvy ze znaku obce: azurový štít, zlaté slunce (= vaše vybraná místa),
 * stříbrný měsíc (= obsazeno). Titulky Literata (jako identita obce),
 * text Lexend – navržený pro snadné čtení, i pro starší oči a na telefonu.
 * ============================================================================= */

@font-face {
  font-family: 'Literata SH';
  src: url('/fonts/literata.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend SH';
  src: url('/fonts/lexend-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lexend SH';
  src: url('/fonts/lexend-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --serif: 'Literata SH', Georgia, 'Times New Roman', serif;
  --sans: 'Lexend SH', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --azure: #1d3f91;
  --azure-hover: #16327a;
  --azure-2: #2c58bd;
  --azure-soft: #e8eefb;
  --gold: #f2b705;
  --gold-deep: #a87a00;
  --gold-soft: #fff3c9;
  --silver: #cdd3df;

  --ink: #14213d;
  --ink-2: #39455f;
  --muted: #5b6782;
  --paper: #f1f4f9;
  --card: #ffffff;
  --line: #dde3ed;
  --line-2: #c3cbdb;
  --field: #ffffff;

  --ok: #16774b;
  --ok-soft: #e2f3e9;
  --warn: #8a5300;
  --warn-soft: #fcf0d4;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --info-soft: #e8eefb;

  --focus: #2a5bd7;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 10px 28px -16px rgba(20, 33, 61, 0.35);
  --stub-w: 96px;

  /* noční nebe ze znaku: hlavička, úvodní pás, patička */
  --night-top: #1d3f91;
  --night: #102660;
  --stub-paper: #ffffff;
  --stub-ink: #1d3f91;
  --night-grad: linear-gradient(180deg, #1d3f91 0%, #183781 55%, #122a69 100%);
  --on-night: #dde5f8;
  --on-night-2: #b9c8ec;

  /* plán sálu */
  --plan-bg: #e9edf5;
  --plan-floor: #ffffff;
  --plan-floor-line: #cdd5e3;
  --plan-table: #f4f6fa;
  --plan-table-line: #9aa6bd;
  --plan-text: #39455f;
  --plan-taken: #d3d9e4;
  --plan-sel-ring: #14213d;
  --a-stage: #dbe4f8;
  --a-stage-line: #8ea4d6;
  --a-dance: #fbf1cf;
  --a-dance-line: #dcc173;
  --a-bar: #ddefe7;
  --a-bar-line: #8fc3ac;
  --a-misc: #eceff5;
  --a-misc-line: #b3bccd;
  --a-entrance: #1d3f91;
  --a-exit: #1f7a4d;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --azure: #3f6ad6;
    --azure-hover: #5079e0;
    --azure-2: #7e9df0;
    --azure-soft: rgba(126, 157, 240, 0.14);
    --gold: #fcc917;
    --gold-deep: #fcc917;
    --gold-soft: rgba(252, 201, 23, 0.14);
    --silver: #4a5876;
    --ink: #edf1f9;
    --ink-2: #c3cbdd;
    --muted: #97a3bd;
    --paper: #0d1730;
    --card: #14213f;
    --line: #22325a;
    --line-2: #34466f;
    --field: #0f1a35;
    --ok: #62d39d;
    --ok-soft: rgba(98, 211, 157, 0.12);
    --warn: #f2b84b;
    --warn-soft: rgba(242, 184, 75, 0.13);
    --bad: #ff8a7d;
    --bad-soft: rgba(255, 138, 125, 0.12);
    --info-soft: rgba(126, 157, 240, 0.14);
    --focus: #7fa2ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 30px -16px rgba(0, 0, 0, 0.7);
    --night-top: #12285a;
    --night: #0a1636;
    --stub-paper: #eef2fb;
    --stub-ink: #1d3f91;
    --night-grad: linear-gradient(180deg, #12285a 0%, #10244f 60%, #0f2049 100%);
    --plan-bg: #0b1429;
    --plan-floor: #131f3c;
    --plan-floor-line: #2c3c63;
    --plan-table: #1c2a4c;
    --plan-table-line: #5a6a8f;
    --plan-text: #c3cbdd;
    --plan-taken: #3a4867;
    --plan-sel-ring: #ffffff;
    --a-stage: #213563;
    --a-stage-line: #4a64a6;
    --a-dance: #3a3418;
    --a-dance-line: #7d6a2a;
    --a-bar: #17372d;
    --a-bar-line: #2f6b55;
    --a-misc: #1c2844;
    --a-misc-line: #3a4a70;
    --a-entrance: #5079e0;
    --a-exit: #3aa676;
  }
}

/* ---------- základ ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 350;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 {
  font-size: clamp(30px, 6vw, 44px);
}
h2 {
  font-size: clamp(22px, 4vw, 27px);
}
h3 {
  font-size: 20px;
}
p {
  margin: 0 0 0.8em;
}
a {
  color: var(--azure-2);
  text-underline-offset: 0.18em;
}
@media (prefers-color-scheme: light) {
  a {
    color: var(--azure);
  }
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
img {
  max-width: 100%;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 15px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
.inline {
  display: inline;
  margin: 0;
}

/* ---------- hlavička, úvodní pás (noční nebe ze znaku) a patička ---------- */
.mast {
  color: #fff;
  background: var(--night-top);
}
.mast-in {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px 18px;
}
.mast-in.wide,
.hero-in.wide {
  max-width: 1240px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.znak {
  width: 36px;
  height: 39px;
  flex: none;
}
.brand-t {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
}
.brand-s {
  font-size: 13px;
  color: var(--on-night-2);
  white-space: nowrap;
}
.mast-nav {
  display: flex;
  align-items: center;
  gap: 4px 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mast-nav a,
.mast-nav .linkish {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 2px;
}
.mast-nav .mast-my {
  padding: 7px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-weight: 500;
}
.mast-nav .mast-my:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}
.mast-nav .mast-my[aria-current='page'] {
  border-color: var(--gold);
}
.mast-nav a[aria-current='page']:not(.mast-my) {
  box-shadow: inset 0 -3px 0 var(--gold);
}
.mast-nav a:hover,
.mast-nav .linkish:hover {
  text-decoration: underline;
}
.mast-staff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  font-size: 14px;
  color: var(--on-night-2);
  text-decoration: none;
}
.mast-staff:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 600px) {
  /* telefon: odkaz pro zaměstnance jako tenký řádek nahoře, pod ním znak a Moje vstupenky */
  .mast-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'staff staff' 'brand nav';
    padding: 2px 14px 10px;
    gap: 0 10px;
  }
  .brand {
    grid-area: brand;
  }
  .mast-nav {
    grid-area: nav;
    gap: 2px 12px;
  }
  .mast-staff {
    grid-area: staff;
    justify-self: end;
    padding: 6px 0 4px;
    font-size: 13px;
  }
  .znak {
    width: 30px;
    height: 33px;
  }
  .brand-n {
    font-size: 18px;
  }
  .brand-s {
    font-size: 12px;
  }
  .mast-nav a,
  .mast-nav .linkish {
    font-size: 15px;
  }
  .mast-nav .mast-my {
    padding: 6px 13px;
  }
}
.linkish {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

/* úvodní pás: navazuje na hlavičku; slunce, měsíc a hvězdy ze znaku vpravo, text vlevo */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--night-grad);
}
.sky {
  position: absolute;
  top: 0;
  right: max(0px, calc((100% - 1240px) / 2));
  width: min(600px, 60%);
  height: 100%;
  pointer-events: none;
}
.sky-sun {
  fill: var(--gold);
}
.sky-moon,
.sky-stars {
  fill: #e9edf5;
}
.hero-in {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}
.hero-in h1 {
  color: #fff;
  font-size: clamp(38px, 7.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  max-width: 13em;
}
.hero-in p {
  color: var(--on-night);
  font-size: 18px;
  max-width: 33em;
  margin: 0;
}
.is-lifted .hero-in {
  padding-bottom: 104px;
}
.main.lifted {
  position: relative;
  z-index: 2;
  margin-top: -84px;
}
@media (max-width: 600px) {
  /* telefon: slunce, měsíc a hvězdy drobně v pravém horním rohu, ne za textem */
  .sky {
    width: 50%;
  }
  .hero-in {
    padding: 14px 16px 30px;
  }
  .hero-in p {
    font-size: 17px;
  }
  .is-lifted .hero-in {
    padding-bottom: 78px;
  }
  .main.lifted {
    margin-top: -62px;
  }
}

.main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.main.wide {
  max-width: 1240px;
}
/* krátká stránka: pod patičkou pokračuje noční barva, ne světlý pruh */
html:has(body > .foot) {
  background: var(--night);
}
.foot {
  background: var(--night);
  color: var(--on-night-2);
  font-size: 15px;
  border-top: 1px solid transparent;
}
@media (prefers-color-scheme: dark) {
  .foot {
    border-top-color: var(--line);
  }
}
.foot-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 16px calc(34px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 18px 56px;
  align-items: flex-start;
}
.foot p {
  margin: 0;
}
.foot-org {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.znak-foot {
  width: 40px;
  height: 44px;
}
.foot strong {
  color: #fff;
}
.foot a {
  color: #fff;
}
.foot-links {
  line-height: 1.8;
}
.mock-note {
  color: #f6c45a;
  background: rgba(246, 196, 90, 0.13);
  border-radius: 8px;
  padding: 6px 10px;
}

/* ---------- tlačítka, formuláře ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover {
  border-color: var(--ink-2);
  text-decoration: none;
}
.btn-primary {
  background: var(--azure);
  border-color: var(--azure);
  color: #fff;
}
.btn-primary:hover {
  background: var(--azure-hover);
  border-color: var(--azure-hover);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn-danger {
  color: var(--bad);
  border-color: var(--bad);
}
.btn-danger:hover {
  background: var(--bad-soft);
  border-color: var(--bad);
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-sm {
  min-height: 38px;
  padding: 6px 12px;
  font-size: 15px;
  border-radius: 10px;
}

.field {
  display: block;
  margin: 0 0 14px;
}
.field > span {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.field > span em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}
.field small.err,
small.err {
  color: var(--bad);
  font-weight: 600;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
}
.field input,
.field select,
.field textarea,
input.input,
select.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--field);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.has-error input,
.has-error select {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px var(--bad-soft);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 12px;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--azure);
}
.stack > * + * {
  margin-top: 12px;
}
.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.inline-form .grow {
  flex: 1 1 240px;
  margin: 0;
}

/* ---------- hlášky ---------- */
.notice,
.flash {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.notice .btn {
  margin-top: 10px;
}
.notice-bad,
.flash-bad {
  background: var(--bad-soft);
  border-color: transparent;
  color: var(--bad);
}
.notice-ok,
.flash-ok {
  background: var(--ok-soft);
  border-color: transparent;
  color: var(--ok);
}
.notice-info,
.flash-info {
  background: var(--info-soft);
  border-color: transparent;
}
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--azure-soft);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.chip-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.chip-bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.chip-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.chip-info {
  background: var(--azure-soft);
}
.chip-muted {
  background: var(--line);
  color: var(--muted);
}

.crumbs {
  margin: 0 0 14px;
  font-size: 16px;
}
.crumbs a::before {
  content: '‹ ';
}

/* ---------- úvod: lístky ---------- */
.list-h {
  margin: 40px 0 16px;
}
.ticket-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .ticket-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ticket {
  position: relative;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
/* výseky na perforaci mezi útržkem a lístkem */
.ticket::before,
.ticket::after {
  content: '';
  position: absolute;
  left: var(--stub-w);
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 50%;
  background: var(--paper);
  z-index: 1;
}
.ticket::before {
  top: -11px;
}
.ticket::after {
  bottom: -11px;
}
/* první lístek zasahuje do azurového pásu – horní výsek by tam neseděl */
.lifted > .home-list > .ticket-big::before {
  display: none;
}
.ticket-link {
  display: grid;
  grid-template-columns: var(--stub-w) minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
  height: 100%;
  border-radius: 18px;
}
.ticket-link:hover .ticket-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}
.stub {
  background: linear-gradient(170deg, #2b55b8 0%, var(--azure) 52%, #17357f 100%);
  color: #fff;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 6px;
}
.stub-day {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}
.stub-month {
  font-size: 15px;
  margin-top: 5px;
}
.stub-time {
  font-size: 13px;
  color: var(--on-night-2);
  margin-top: 1px;
}
.ticket-body {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px 20px 20px 24px;
  border-left: 2px dashed var(--line-2);
}
.ticket-title {
  font-size: 24px;
  margin: 0 0 4px;
}
.ticket-sub {
  color: var(--ink-2);
  margin: 0 0 10px;
}
.ticket-meta {
  display: grid;
  gap: 3px;
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.ticket-meta span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ico {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.15em;
}
.ticket-avail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
}
.price-from {
  font-weight: 700;
}
/* kolik míst už je pryč */
.meter {
  display: block;
  max-width: 280px;
  height: 6px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--azure-soft);
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--azure);
}
.ticket-side .btn {
  margin-top: 16px;
}
.is-canceled .ticket-title {
  text-decoration: line-through;
}
.is-canceled .stub {
  background: var(--muted);
}

.ticket-big {
  --stub-w: 132px;
}
.ticket-big .stub-day {
  font-size: 66px;
}
.ticket-big .stub-month {
  font-size: 18px;
}
.ticket-big .ticket-title {
  font-size: clamp(30px, 5vw, 42px);
}
.ticket-big .ticket-sub {
  font-size: 18px;
}
.ticket-poster {
  display: none;
}
@media (min-width: 760px) {
  .ticket-big .ticket-body {
    grid-template-columns: minmax(0, 1fr) 236px;
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
  }
  .ticket-big .ticket-side {
    border-left: 1px solid var(--line);
    padding-left: 26px;
  }
  .ticket-big .price-from {
    font-size: 22px;
  }
  .ticket-big .ticket-side .btn {
    width: 100%;
  }
  .ticket-big .ticket-link:has(.ticket-poster) {
    grid-template-columns: var(--stub-w) minmax(0, 1fr) auto;
  }
  .ticket-big .ticket-link:has(.ticket-poster) .ticket-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .ticket-poster {
    display: block;
    width: 230px;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 0 18px 18px 0;
  }
}
@media (max-width: 420px) {
  :root {
    --stub-w: 80px;
  }
  .ticket-big {
    --stub-w: 96px;
  }
  .stub-day {
    font-size: 36px;
  }
  .ticket-big .stub-day {
    font-size: 48px;
  }
  .ticket-body {
    padding: 15px 14px 17px 18px;
  }
  .ticket-title {
    font-size: 21px;
  }
}
.past-link {
  margin-top: 28px;
}
.empty {
  text-align: center;
  padding: 48px 12px;
}
.plain-list {
  padding-left: 20px;
}

/* ---------- stránka akce ---------- */
.hero .crumbs a {
  color: var(--on-night);
}
.ev-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 28px;
  align-items: start;
}
/* datum jako papírový útržek na nočním nebi */
.ev-stub {
  background: var(--stub-paper);
  color: var(--azure);
  border-radius: 16px;
  width: 108px;
  padding: 14px 6px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
}
.ev-stub .stub-day {
  font-size: 54px;
  color: var(--stub-ink);
}
.ev-stub .stub-month {
  color: #14213d;
  font-weight: 600;
}
.ev-stub .stub-time {
  color: #5b6782;
}
.ev-stub.small,
.event-mini .ev-stub {
  flex-direction: column;
  width: 64px;
  padding: 8px 4px;
  gap: 0;
  flex: none;
  box-shadow: none;
  background: var(--azure);
}
.ev-stub.small .stub-day,
.event-mini .ev-stub .stub-day {
  font-size: 28px;
  color: #fff;
}
.ev-stub.small .stub-month,
.event-mini .ev-stub .stub-month {
  font-size: 13px;
  color: #fff;
  font-weight: 400;
}
.event-mini .ev-stub .stub-time {
  color: var(--on-night-2);
}
.ev-titles h1 {
  color: #fff;
  font-size: clamp(34px, 6.2vw, 58px);
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.lead {
  font-size: 19px;
  color: var(--ink-2);
}
.hero .lead {
  color: var(--on-night);
  font-size: 20px;
  margin: 0 0 18px;
}
.facts {
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}
@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(3, max-content);
    gap: 10px 36px;
  }
}
.facts div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.facts dt {
  color: var(--on-night-2);
}
.facts dt .ico {
  width: 20px;
  height: 20px;
  margin-top: 0.1em;
}
.facts dd {
  margin: 0;
  color: var(--on-night);
}
.facts dd strong {
  color: #fff;
  font-weight: 600;
}
.ev-poster {
  grid-column: 1 / -1;
  border-radius: 14px;
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
}
@media (min-width: 900px) {
  .ev-head {
    grid-template-columns: auto minmax(0, 1fr) 280px;
  }
  .ev-poster {
    grid-column: 3;
    grid-row: 1;
    max-height: 360px;
  }
}
@media (max-width: 520px) {
  .ev-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .ev-stub {
    flex-direction: row;
    align-items: baseline;
    width: auto;
    justify-self: start;
    gap: 10px;
    padding: 8px 16px;
  }
  .ev-stub .stub-day {
    font-size: 30px;
  }
  .ev-stub .stub-month,
  .ev-stub .stub-time {
    margin: 0;
    font-size: 16px;
  }
}
.page-event .main {
  padding-top: 26px;
}
.prose {
  max-width: 68ch;
}
.ev-desc {
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 17.5px;
}

/* výběr + košík */
.buy {
  display: grid;
  gap: 22px;
  margin-top: 8px;
}
@media (min-width: 980px) {
  .buy {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }
  .cart {
    position: sticky;
    top: 16px;
  }
}
.pick-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.pick-head h2 {
  margin: 0;
}
.pick-hint {
  color: var(--ink-2);
  margin: 6px 0 10px;
}
.seg {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 3px;
}
.seg button {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  border: 0;
  background: none;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 9px;
  min-height: 40px;
  cursor: pointer;
}
.seg button[aria-selected='true'] {
  background: var(--azure);
  color: #fff;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 12px;
  font-size: 15px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  border: 2px solid transparent;
}
.legend i.l-sel {
  background: var(--gold);
  border-color: var(--plan-sel-ring);
}
.legend i.l-taken {
  background: var(--plan-taken);
}

.map {
  position: relative;
  height: min(72vh, 680px);
  min-height: 260px;
  background: var(--plan-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
@media (max-width: 640px) {
  .map {
    height: 64vh;
    margin-inline: -16px;
    border-radius: 0;
    border-inline: 0;
  }
}
.map {
  display: flex;
  flex-direction: column;
}
.map-stage {
  flex: 1;
  min-height: 0;
}
.map-stage,
.seatmap {
  width: 100%;
  height: 100%;
  display: block;
}
.map-zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-zoom button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .map-zoom {
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    gap: 8px;
    padding: 6px 10px;
    background: var(--card);
    border-top: 1px solid var(--line);
  }
  .map-zoom button {
    width: 48px;
    height: 40px;
    box-shadow: none;
  }
}
.map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin: 0;
}
.map[data-state='ready'] .map-loading {
  display: none;
}

/* SVG plánu */
.plan text {
  font-family: var(--sans);
}
.floor {
  fill: var(--plan-floor);
  stroke: var(--plan-floor-line);
  stroke-width: 6;
}
.ptab {
  fill: var(--plan-table);
  stroke: var(--plan-table-line);
  stroke-width: 3;
}
.tl {
  font-weight: 700;
  fill: var(--plan-text);
  text-anchor: middle;
  dominant-baseline: central;
}
.rl {
  font-weight: 700;
  font-size: 26px;
  fill: var(--muted);
  text-anchor: middle;
  dominant-baseline: central;
}
.ar {
  fill: var(--a-misc);
  stroke: var(--a-misc-line);
  stroke-width: 3;
}
.a-stage .ar {
  fill: var(--a-stage);
  stroke: var(--a-stage-line);
}
.a-dance .ar {
  fill: var(--a-dance);
  stroke: var(--a-dance-line);
}
.a-bar .ar {
  fill: var(--a-bar);
  stroke: var(--a-bar-line);
}
.a-entrance .ar {
  fill: var(--a-entrance);
  stroke: none;
}
.a-exit .ar {
  fill: var(--a-exit);
  stroke: none;
}
.al {
  font-weight: 700;
  fill: var(--plan-text);
  text-anchor: middle;
  dominant-baseline: central;
}
.a-entrance .al,
.a-exit .al {
  fill: #fff;
  font-size: 26px;
}
.a-entrance .al {
  transform: translateY(-50px);
  fill: var(--a-entrance);
  font-size: 32px;
}
.wl {
  stroke: var(--ink-2);
  stroke-linecap: round;
}
.pl {
  fill: var(--ink-2);
}
.tx {
  fill: var(--plan-text);
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}
.z rect {
  fill-opacity: 0.13;
  stroke-width: 4;
  stroke-dasharray: 16 10;
}
.zl {
  font-weight: 700;
  font-size: 36px;
  fill: var(--plan-text);
  text-anchor: middle;
  dominant-baseline: central;
}
.zc {
  font-size: 28px;
  fill: var(--muted);
  text-anchor: middle;
  dominant-baseline: central;
}
.z.sel rect {
  fill-opacity: 0.3;
  stroke: var(--gold-deep);
}
.s circle {
  stroke: var(--plan-floor);
  stroke-width: 3;
}
.sn {
  font-size: 19px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  display: none;
}
.zoom-in .sn {
  display: inline;
}
.s.taken circle,
.s.na circle {
  fill: var(--plan-taken);
}
.s.taken .sn,
.s.na .sn {
  display: none;
}
.s.sel circle {
  fill: var(--gold);
  stroke: var(--plan-sel-ring);
  stroke-width: 5;
}
.s.sel .sn {
  fill: #14213d;
}
.seatmap.can-buy .s.free,
.seatmap.can-buy .z,
.seatmap.can-buy .o-round,
.seatmap.can-buy .o-rect,
.seatmap.can-buy .o-row {
  cursor: pointer;
}
.seatmap.can-buy .s.free:hover circle {
  stroke: var(--plan-sel-ring);
  stroke-width: 4;
}
.seatmap .s.flash circle {
  animation: seat-flash 0.9s ease-out 2;
}
@keyframes seat-flash {
  50% {
    fill: var(--bad);
  }
}
@media (prefers-reduced-motion: reduce) {
  .seatmap .s.flash circle {
    animation: none;
  }
}

/* seznam míst (bez plánu) */
.seat-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 14px;
}
.sl-group {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.sl-group:last-child {
  border-bottom: 0;
}
.sl-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}
.sl-head strong {
  font-size: 18px;
}
.sl-seats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seat-btn {
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  border: 3px solid transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 6px;
}
.seat-btn[aria-pressed='true'] {
  background: var(--gold) !important;
  color: #14213d;
  border-color: var(--plan-sel-ring);
}
.seat-btn:disabled {
  background: var(--plan-taken) !important;
  color: var(--muted);
  cursor: not-allowed;
}

/* stání / vstupenky bez místa */
.ga {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.ga-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.ga-name {
  font-weight: 700;
}
.ga-meta {
  color: var(--muted);
  font-size: 15px;
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  flex: none;
}
.stepper button {
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}
.stepper button:disabled {
  color: var(--line-2);
  cursor: not-allowed;
}
.stepper output {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 19px;
}

/* košík */
.cart {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  scroll-margin-top: 12px;
}
.cart h2 {
  font-size: 23px;
}
.cart-lines {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}
.cart-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
}
.cart-lines .cart-empty {
  display: block;
  color: var(--muted);
  border: 0;
}
.cl-label {
  font-weight: 600;
}
.cl-label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 14px;
}
.cl-price {
  font-weight: 700;
  white-space: nowrap;
}
.cl-x {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
}
.cl-variant {
  grid-column: 1 / -1;
}
.cl-variant select {
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--field);
  width: 100%;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 19px;
  margin: 10px 0 16px;
}
.cart-total strong {
  font-size: 24px;
}
.contact {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  min-width: 0;
}
.contact:disabled {
  opacity: 0.6;
}
.pay-note {
  color: var(--muted);
  font-size: 15px;
  margin: 12px 0 0;
}
.is-readonly .cart {
  display: none;
}

.cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--card);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -8px 24px -14px rgba(20, 33, 61, 0.4);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.cartbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
.cartbar-sum {
  font-weight: 700;
  font-size: 18px;
}
@media (min-width: 980px) {
  .cartbar {
    display: none !important;
  }
}
.page-event.has-cartbar .foot {
  padding-bottom: 76px;
}

/* spodní list (výběr míst u stolu) */
.sheet {
  border: 0;
  padding: 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  margin: auto auto 0;
  border-radius: 22px 22px 0 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.sheet::backdrop {
  background: rgba(13, 23, 48, 0.5);
}
@media (min-width: 700px) {
  .sheet {
    margin: auto;
    border-radius: 22px;
  }
}
.sheet-in {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 6px;
}
.sheet-head h2 {
  margin: 0;
}
.sheet-x {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.sheet-body {
  padding: 4px 18px 10px;
  overflow: auto;
}
.sheet-foot {
  padding: 10px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.sheet-meta {
  color: var(--ink-2);
  margin: 0 0 8px;
}
.sheet-plan {
  width: 100%;
  max-height: 46vh;
  display: block;
  margin: 0 auto 6px;
}
.sheet-plan .sn {
  display: inline;
  font-size: 22px;
}
.sheet-plan .s {
  cursor: pointer;
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 12px;
  max-width: min(92vw, 520px);
  box-shadow: var(--shadow);
  font-weight: 600;
}

/* ---------- objednávka a e-vstupenky ---------- */
.order-head h1 {
  margin-bottom: 4px;
}
.pay-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin: 14px 0 20px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.pay-amount {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 6px;
}
.event-mini {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}
.stubs {
  display: grid;
  gap: 16px;
  margin: 10px 0 22px;
}
@media (min-width: 820px) {
  .stubs {
    grid-template-columns: 1fr 1fr;
  }
}
.eticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.eticket::before,
.eticket::after {
  content: '';
  position: absolute;
  right: 150px;
  width: 20px;
  height: 20px;
  margin-right: -10px;
  border-radius: 50%;
  background: var(--paper);
}
.eticket::before {
  top: -10px;
}
.eticket::after {
  bottom: -10px;
}
.eticket-main {
  padding: 16px 18px;
  border-right: 2px dashed var(--line-2);
}
.eticket-seat {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}
.eticket-meta {
  margin: 0 0 8px;
}
.eticket-code {
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.eticket-in {
  color: var(--ok);
  font-weight: 700;
  margin: 6px 0 0;
}
.eticket-qr {
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
}
.eticket-qr svg {
  width: 130px;
  height: 130px;
}
.qr-void {
  color: #5b6782;
  text-align: center;
  font-size: 14px;
}
.eticket.is-void {
  opacity: 0.7;
}
.rubber {
  display: inline-block;
  margin-top: 10px;
  transform: rotate(-6deg);
  transform-origin: left center;
  border: 3px solid var(--azure-2);
  color: var(--azure-2);
  border-radius: 8px;
  padding: 1px 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
@media (max-width: 460px) {
  .eticket {
    grid-template-columns: minmax(0, 1fr) 118px;
  }
  .eticket::before,
  .eticket::after {
    right: 118px;
  }
  .eticket-qr svg {
    width: 102px;
    height: 102px;
  }
  .eticket-main {
    padding: 14px 14px;
  }
  .eticket-code {
    font-size: 15px;
  }
}
.kv {
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
}
.kv div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cancel-box {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  max-width: 560px;
}
.cancel-box summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--bad);
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* moje vstupenky */
.my-orders {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.my-orders a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}
.my-orders a:hover {
  border-color: var(--azure-2);
}
.mo-date {
  color: var(--muted);
  font-size: 15px;
}
.mo-title {
  font-weight: 700;
}
.mo-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 15px;
}
.my-orders .chip {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.lookup {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  max-width: 640px;
}
.lookup h2 {
  font-size: 22px;
}

/* ověření vstupenky */
.verify {
  max-width: 520px;
  margin: 10px auto;
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 10px solid var(--bad);
}
.verify-ok {
  border-top-color: var(--ok);
}
.verify-warn {
  border-top-color: var(--gold);
}
.verify-state {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 8px;
}

.login,
.mockpay {
  max-width: 460px;
  margin: 10px auto;
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.login-public {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.login-public h2 {
  font-size: 19px;
  margin: 0 0 6px;
}
.mock-badge {
  display: inline-block;
  background: var(--warn-soft);
  color: var(--warn);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.doc h2 {
  font-size: 21px;
  margin-top: 1.4em;
}

/* tisk vstupenek */
@media print {
  .mast,
  .foot,
  .crumbs,
  .pay-box,
  .order-meta,
  .cancel-box,
  .flash,
  .notice {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .eticket {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
  }
  .eticket::before,
  .eticket::after {
    display: none;
  }
}
.cart-visible .cartbar {
  transform: translateY(110%);
}
.cartbar {
  transition: transform 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .cartbar {
    transition: none;
  }
}
.pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pending-actions .btn {
  margin: 0;
}
