/* Jeviště: tma, kužel světla, slonovinová. Jediný akcent – samet – patří nákupu lístků. */
:root {
  --stage: #0b0908;
  --light: #f2e8d5;
  --light-soft: rgba(242, 232, 213, .76);
  --light-dim: rgba(242, 232, 213, .54);
  --light-faint: rgba(242, 232, 213, .2);
  --hairline: rgba(242, 232, 213, .14);
  --velvet: #8c1c2a;
  --velvet-bright: #a8263a;
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --text: "EB Garamond", Garamond, Georgia, serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--stage); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--light);
  font: 400 19px/1.55 var(--text);
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Filmové zrno přes celou stránku, aby tma nebyla digitálně plochá */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--light); outline-offset: 6px; }
::selection { background: var(--velvet); color: var(--light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 60; padding: 10px 16px; background: var(--light); color: var(--stage); }
.skip:focus { top: 16px; }

.overline {
  font: 500 13px/1.5 var(--text);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--light-soft);
}

/* ---------- Hlavička ---------- */
.marquee {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px var(--gutter);
  font: 500 12px/1 var(--text);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--light-soft);
}
.marquee-end { justify-content: flex-end; }
.marquee a { padding: 8px 0; text-decoration: none; transition: color .3s; }
.marquee a:hover { color: var(--light); }
.marquee-tickets { display: inline-flex; align-items: center; gap: 12px; }
.marquee-tickets::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--velvet-bright);
  box-shadow: 0 0 14px 2px rgba(168, 38, 58, .7);
}

/* ---------- Jeviště ---------- */
.stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(80px, 12vh, 120px) var(--gutter);
  overflow: hidden;
  overflow: clip; /* clip, ne hidden: jeviště se nesmí posunout ani programově (focus, scrollIntoView) */
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(242, 232, 213, .045), transparent 70%), var(--stage);
}
/* Zdroj světla nad jevištěm */
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40px;
  left: 50%;
  width: 280px;
  height: 80px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 247, 230, .55), transparent);
  filter: blur(10px);
}
.beam { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.beam::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12%;
  width: min(1100px, 150vw);
  height: 118%;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(242, 232, 213, .17), rgba(242, 232, 213, .07) 45%, rgba(242, 232, 213, .015) 82%, transparent);
  clip-path: polygon(44% 0, 56% 0, 84% 100%, 16% 100%);
  filter: blur(26px);
  animation: sway 18s ease-in-out infinite alternate;
  transition: clip-path 1.4s var(--ease), opacity 1.4s var(--ease);
}
/* Světelná skvrna na prknech */
.beam::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: min(1000px, 130vw);
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(242, 232, 213, .1), transparent);
  transition: opacity 1.4s var(--ease);
}
.stage[data-scene="play"] .beam::before { opacity: .8; }
.stage[data-scene="result"] .beam::before { clip-path: polygon(46.5% 0, 53.5% 0, 74% 100%, 26% 100%); }
@keyframes sway {
  from { transform: translateX(-50%) rotate(-1.3deg); }
  to { transform: translateX(-50%) rotate(1.3deg); }
}
/* Canvas má vlastní rozměry podle hustoty displeje, proto velikost v CSS natvrdo */
.dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.scene {
  width: 100%;
  max-width: 1180px;
  text-align: center;
  transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease);
}
.scene.is-out { opacity: 0; transform: translateY(10px); filter: blur(4px); }

/* Opona */
.title {
  margin-top: 30px;
  font-family: var(--display);
  font-weight: 400;
  line-height: .9;
}
.title span { display: block; font-size: clamp(30px, 5.3vw, 84px); letter-spacing: -.005em; }
.title em {
  display: block;
  margin-top: .04em;
  font-size: clamp(80px, 15.5vw, 250px);
  font-style: italic;
  letter-spacing: -.03em;
  text-shadow: 0 0 80px rgba(242, 232, 213, .16);
}
.credit { margin-top: 28px; font: italic 400 clamp(18px, 1.4vw, 21px)/1.4 var(--text); color: var(--light-soft); }
.credit a { text-decoration: none; border-bottom: 1px solid var(--light-faint); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.credit a:hover { color: var(--light); border-color: var(--light-soft); }
.lead {
  max-width: 31em;
  margin: clamp(28px, 4vh, 40px) auto 0;
  font: 400 clamp(19px, 1.5vw, 22px)/1.55 var(--text);
  color: var(--light-soft);
  text-wrap: pretty;
}
.cta {
  margin-top: clamp(40px, 7vh, 64px);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 21px 36px 22px;
  border: 1px solid rgba(242, 232, 213, .55);
  background: rgba(242, 232, 213, .03);
  font: italic 400 clamp(20px, 1.7vw, 24px)/1 var(--display);
  color: var(--light);
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.cta::after { content: ""; width: 34px; height: 1px; background: currentColor; transition: width .45s var(--ease); }
.cta:hover { background: var(--light); color: var(--stage); box-shadow: 0 0 70px rgba(242, 232, 213, .22); }
.cta:hover::after { width: 50px; }


/* Hra */
.act { font: italic 400 34px/1 var(--display); }
.act-total { margin-left: .5em; font: 400 13px var(--text); letter-spacing: .26em; color: var(--light-dim); }
.play-body { transition: opacity .3s var(--ease), filter .3s var(--ease); }
.play-body.is-out { opacity: 0; filter: blur(3px); }
.question {
  max-width: 30em;
  margin: 36px auto 0;
  font: 400 clamp(21px, 2.15vw, 31px)/1.38 var(--text);
  text-wrap: balance;
  outline: none;
}
.choices {
  max-width: 980px;
  margin: clamp(36px, 6vh, 72px) auto 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 clamp(16px, 3vw, 48px);
}
.choice {
  position: relative;
  padding: 20px 8px 26px;
  font: italic 400 clamp(28px, 3.3vw, 52px)/1.08 var(--display);
  color: var(--light-soft);
  text-wrap: balance;
  transition: color .35s, text-shadow .35s, opacity .35s;
}
.choice::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 1px;
  background: var(--velvet-bright);
  transform: translateX(-50%);
}
.choice.is-chosen { color: var(--light); text-shadow: 0 0 36px rgba(242, 232, 213, .4); }
/* Linka jen naběhne, při přechodu na další otázku zmizí okamžitě */
.choice.is-chosen::after { width: 48px; transition: width .45s var(--ease); }
/* Hover jen pro myš – na dotykovém displeji by po ťuknutí „visel“ na další otázce */
@media (hover: hover) {
  .choice:hover { color: var(--light); text-shadow: 0 0 36px rgba(242, 232, 213, .4); }
}
.choice.is-dimmed { opacity: .3; }
.or { display: flex; flex-direction: column; align-items: center; gap: 12px; font: italic 400 17px var(--text); color: var(--light-dim); }
.or::before, .or::after { content: ""; width: 1px; height: 44px; background: var(--hairline); }
.play-foot {
  margin-top: clamp(36px, 7vh, 80px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.back {
  justify-self: start;
  padding: 10px 0;
  font: 500 12px/1 var(--text);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--light-dim);
  transition: color .3s;
}
.back::before { content: "← "; letter-spacing: 0; }
.back:hover { color: var(--light); }
.back:disabled { visibility: hidden; }
.ticks { display: flex; align-items: flex-end; gap: 7px; height: 16px; }
.ticks li { width: 1px; height: 8px; background: var(--light-faint); transition: height .3s, background .3s; }
.ticks li.is-done { background: var(--light-soft); }
.ticks li.is-current { height: 16px; background: var(--light); }

/* Výsledek */
.role {
  margin-top: 22px;
  font: 400 clamp(54px, 8.6vw, 144px)/.94 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
  outline: none;
}
.role em { font-style: italic; }
.role-tagline {
  max-width: 26em;
  margin: 28px auto 0;
  font: italic 400 clamp(20px, 1.9vw, 27px)/1.4 var(--text);
  color: var(--light-soft);
  text-wrap: balance;
}
.role-body {
  max-width: 1000px;
  margin: clamp(48px, 8vh, 88px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  text-align: left;
}
.plan svg { display: block; width: 100%; height: auto; overflow: visible; }
.plan-ring { fill: none; stroke: var(--hairline); }
.plan-ring-inner { stroke-dasharray: 2 6; }
.plan-axis { stroke: var(--light-faint); }
.plan-axis-label { font: 500 11px var(--text); letter-spacing: .26em; text-transform: uppercase; fill: var(--light-dim); }
.plan-role { font: italic 400 16px var(--display); fill: var(--light-dim); }
.plan-dot { fill: var(--light); }
.plan-you { transform: translate(200px, 200px); transition: transform 1.6s var(--ease); }
.role-text > p:first-child { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.62; color: var(--light-soft); }
.notes-title { margin-top: 36px; font-size: 11px; color: var(--light-dim); }
.notes { margin-top: 14px; }
.notes li { padding: 13px 0; border-top: 1px solid var(--hairline); font: italic 400 17px/1.5 var(--text); color: var(--light-soft); }
.role-actions { margin-top: 64px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 40px; }
.role-actions button {
  padding: 12px 0;
  border-bottom: 1px solid var(--light-faint);
  font: 500 12px/1 var(--text);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--light-soft);
  transition: color .3s, border-color .3s;
}
.role-actions button:hover { color: var(--light); border-color: var(--light); }
.role-actions button:disabled { opacity: .4; cursor: progress; }
.action-status { min-height: 1.6em; margin-top: 16px; font: italic 400 17px var(--text); color: var(--light-dim); }
.encore { max-width: 640px; margin: clamp(40px, 7vh, 80px) auto 0; padding-top: 52px; border-top: 1px solid var(--hairline); }
.encore p { font: 400 clamp(23px, 2.2vw, 31px)/1.3 var(--display); }
.encore em { font-style: italic; }

/* Tlačítko na lístky: samet hlediště */
.ticket-button {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 34px 21px;
  background: var(--velvet);
  color: var(--light);
  text-decoration: none;
  font: 500 13px/1 var(--text);
  letter-spacing: .28em;
  text-transform: uppercase;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.ticket-button::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.ticket-button:hover { background: var(--velvet-bright); box-shadow: 0 0 60px rgba(168, 38, 58, .45); }
.ticket-button:hover::after { width: 40px; }

/* ---------- Plakát představení ---------- */
.playbill {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 1000px);
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vh, 150px) var(--gutter);
  overflow: hidden;
  overflow: clip;
}
.playbill-photo { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: min(74%, 1500px); }
.playbill-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; }
/* Fotka vystupuje ze tmy: okraje se rozpouštějí do jeviště */
.playbill-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--stage), rgba(11, 9, 8, .55) 24%, transparent 52%),
    linear-gradient(0deg, var(--stage), transparent 24%),
    linear-gradient(180deg, var(--stage), transparent 18%);
}
.playbill-text { position: relative; max-width: 700px; }
.playbill .overline { white-space: nowrap; }
.show-title { margin-top: 26px; font: 400 clamp(46px, 5.8vw, 96px)/.95 var(--display); letter-spacing: -.02em; }
.show-title em { display: block; font-style: italic; }
.show-sub { margin-top: 22px; font: italic 400 clamp(19px, 1.6vw, 23px)/1.4 var(--text); color: var(--light-soft); }
.show-when {
  margin-top: clamp(40px, 6vh, 64px);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px 0;
  border-block: 1px solid var(--hairline);
}
.show-date { font: 400 clamp(54px, 5.2vw, 80px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.show-meta { font: 500 13px/1.9 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--light-soft); }
.show-buy { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.show-buy .ticket-button { margin-top: 0; }
.show-price { font: italic 400 18px var(--text); color: var(--light-dim); }
/* Druhá cesta pro ty, kdo lístek ještě neřeší: dolů na jeviště ke hře */
.to-stage {
  margin-top: 30px;
  display: inline-block;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--light-faint);
  font: 500 12px/1.7 var(--text);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--light-soft);
  transition: color .3s, border-color .3s;
}
.to-stage::after { content: "↓"; display: inline-block; margin-left: .7em; letter-spacing: 0; transition: transform .3s var(--ease); }
.to-stage:hover { color: var(--light); border-color: var(--light); }
.to-stage:hover::after { transform: translateY(3px); }

/* ---------- Tiráž ---------- */
.colophon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 40px;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--hairline);
  font: italic 400 17px var(--text);
  color: var(--light-dim);
}
.colophon a { text-decoration: none; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.colophon a:hover { color: var(--light); border-color: var(--light-faint); }

/* ---------- Goffman: tichá čtecí stránka ---------- */
.essay { max-width: 760px; margin: 0 auto; padding: 160px var(--gutter) 110px; }
.essay h1 { margin-top: 26px; font: 400 clamp(46px, 7vw, 96px)/.95 var(--display); letter-spacing: -.02em; }
.essay h1 em { display: block; font-style: italic; }
.essay .lead { margin-top: 34px; font: italic 400 clamp(21px, 2vw, 26px)/1.45 var(--text); color: var(--light-soft); }
.essay h2 { margin-top: 88px; font: italic 400 clamp(32px, 3.4vw, 46px)/1.1 var(--display); }
.essay p { margin-top: 18px; color: var(--light-soft); line-height: 1.65; }
.essay a { text-underline-offset: 4px; text-decoration-color: var(--light-faint); transition: text-decoration-color .3s; }
.essay a:hover { text-decoration-color: var(--light); }
.pair { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.pair > div { padding: 30px 28px 34px; background: var(--stage); }
.pair > div:last-child { background: #15110f; }
.pair blockquote { margin-top: 18px; font: italic 400 clamp(24px, 2.4vw, 30px)/1.2 var(--display); }
.pair p { font-size: 17px; }
.roles { margin-top: 30px; }
.roles li { padding: 24px 0; border-top: 1px solid var(--hairline); }
.roles h3 { font: 400 clamp(26px, 2.6vw, 32px)/1.1 var(--display); }
.roles h3 em { font-style: italic; }
.roles .overline { margin-top: 8px; font-size: 11px; color: var(--light-dim); }
.roles p:last-child { margin-top: 10px; font-size: 18px; }
.key { margin-top: 30px; border-block: 1px solid var(--hairline); }
.key summary { padding: 20px 0; cursor: pointer; font: 500 12px var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--light-soft); }
.key table { width: 100%; margin-bottom: 24px; border-collapse: collapse; font-size: 16px; }
.key th, .key td { padding: 8px 6px; border-bottom: 1px solid var(--hairline); text-align: left; color: var(--light-soft); font-weight: 400; }
.key thead th { font: 500 11px var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--light-dim); }
.essay-encore { margin-top: 100px; padding-top: 56px; border-top: 1px solid var(--hairline); text-align: center; }
.essay-encore p { font: 400 clamp(26px, 2.6vw, 34px)/1.25 var(--display); color: var(--light); }
.essay-encore em { font-style: italic; }

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  body { font-size: 18px; }
  .marquee { padding-top: 20px; letter-spacing: .22em; font-size: 11px; }
  .stage { padding: 72px var(--gutter) 80px; }
  .title { margin-top: 22px; }
  .title em { font-size: clamp(80px, 24vw, 150px); }
  .choices { grid-template-columns: 1fr; margin-top: 30px; }
  .choice { padding: 14px 4px 20px; font-size: clamp(30px, 8.4vw, 40px); }
  .or { flex-direction: row; justify-content: center; gap: 14px; }
  .or::before, .or::after { width: 36px; height: 1px; }
  .play-foot { grid-template-columns: auto 1fr; gap: 16px; margin-top: 36px; }
  .ticks { justify-self: end; gap: 5px; }
  .role-body { grid-template-columns: 1fr; }
  .plan { width: min(100%, 330px); margin: 0 auto; }
  .role-actions { gap: 6px 28px; }
  .playbill { display: block; min-height: 0; padding: 0 var(--gutter) 88px; }
  .playbill-photo { position: relative; width: auto; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 1; }
  .playbill-photo::after { background: linear-gradient(0deg, var(--stage), transparent 22%), linear-gradient(180deg, var(--stage), transparent 16%); }
  .playbill-text { margin-top: 8px; }
  .playbill .overline { font-size: 12px; letter-spacing: .2em; }
  .show-when { gap: 22px; }
  .show-meta { font-size: 12px; letter-spacing: .2em; }
  .colophon { flex-direction: column; align-items: center; text-align: center; }
  .pair { grid-template-columns: 1fr; }
  .essay { padding-top: 120px; }
}
@media (max-width: 380px) {
  .ticket-button { padding-inline: 26px; }
  .show-date { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
