:root {
  --void: #050506;
  --ink: #0b0b0d;
  --cream: #f3ead8;
  --muted: #9a927f;
  --gold: #c9a227;
  --line: rgba(243, 234, 216, 0.12);
  --card: #101114;
  --danger: #c45c4a;
  --ok: #8fbf73;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--void); color: var(--cream); }
body {
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 70% 40% at 50% -8%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--void);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
.wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
}
.mast {
  padding: 1.4rem 0 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.55));
}
.brand h1 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  text-transform: uppercase;
}
.brand span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: Manrope, sans-serif;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--cream); border-color: var(--gold); }
.hero {
  padding: 0.4rem 0 1.6rem;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.5;
}
.stage-page {
  width: min(460px, calc(100% - 2rem));
  margin: 0.2rem auto 1.6rem;
}
.sheet {
  min-height: 32rem;
  padding: 1.8rem 1.35rem 1.45rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.18), rgba(5, 5, 6, 0.9)),
    radial-gradient(ellipse 80% 48% at 50% 0%, rgba(201, 162, 39, 0.22), transparent 62%),
    var(--void);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}
.sheet .mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}
.sheet h2 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 10vw, 4.2rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.sheet .when {
  font-family: Oswald, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.sheet .place, .sheet .crew, .sheet .fee {
  line-height: 1.4;
  max-width: 28ch;
}
.sheet .crew, .sheet .line { color: #e7dcc4; }
.sheet .line { max-width: 32ch; margin-top: 0.15rem; }
.sheet .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
.sheet .links a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201, 162, 39, 0.55);
  text-decoration: none;
  padding: 0.42rem 0.7rem;
  font-size: 0.82rem;
}
.sheet .cta {
  background: var(--gold);
  color: #1a1404;
  border-color: var(--gold);
  font-weight: 700;
}
.poster {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.4rem 1.4rem;
  margin-bottom: 2rem;
}
.poster h2 {
  font-family: Oswald, sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 0.8rem;
}
.meta {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.meta strong { color: var(--cream); font-weight: 600; }
.line { color: var(--cream); margin: 1rem 0 0.4rem; line-height: 1.5; max-width: 40ch; }
.line a, .hint a { color: var(--gold); }
.empty {
  color: var(--muted);
  padding: 3rem 0 4rem;
  max-width: 36ch;
  line-height: 1.55;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.step {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
h2.ask {
  font-family: Oswald, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.hint { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.45; max-width: 46ch; }
label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
  font-size: 0.88rem;
}
label.field span { color: var(--muted); }
input[type="text"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], textarea, select {
  background: #0c0c0e;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
textarea { min-height: 6.5rem; resize: vertical; }
.choices {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
  .choices.two, .choices.three { grid-template-columns: 1fr; }
}
.choice {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #0c0c0e;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.choice input { margin-right: 0.5rem; accent-color: var(--gold); }
.choice b { display: block; font-weight: 600; }
.choice small { display: block; color: var(--muted); margin-top: 0.2rem; line-height: 1.35; }
.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.55rem 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0c0e;
  color: var(--cream);
  line-height: 1.4;
  cursor: pointer;
}
.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--gold);
  flex: none;
}
.check:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}
.check.miss { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.err { color: var(--danger); margin: 0.6rem 0 1rem; }
.ok { color: var(--ok); max-width: 40ch; line-height: 1.5; padding: 2rem 0; }
.bar {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 1.4rem 0 2.5rem;
}
.btn {
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
}
.btn.ghost { color: var(--muted); }
.btn.primary { background: var(--gold); color: #0a0b0d; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.done h2 {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}
.howto {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.4rem;
}
.howto li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  line-height: 1.45;
}
.howto strong { display: block; margin-bottom: 0.25rem; }
.sheet {
  width: min(640px, calc(100% - 1.4rem));
  margin: 0 auto;
  min-height: 100dvh;
  padding: 2.2rem 0 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}
.lockup, .sheet .label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.75rem;
}
.sheet h1, .sheet .title {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 12vw, 5.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  max-width: 12ch;
}
.whenline { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.when, .sheet .place, .sheet .value, .price {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.when {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-size: 1.15rem;
  text-align: center;
}
.sheet .place { color: #e4d3b4; }
.sheet .age { letter-spacing: 0.16em; font-size: 0.75rem; margin: 0.2rem 0 0.6rem; }
.crew { width: min(520px, 100%); display: grid; gap: 0.65rem; }
.sheet .value { font-size: clamp(1.3rem, 4vw, 1.8rem); }
.price { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 0.8rem; }
.sheet .saved { color: var(--gold); font-size: 0.88rem; }
.later {
  color: var(--gold);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  margin: 0.35rem 0 0.2rem;
}
.gate input[type="password"] {
  width: min(280px, 100%);
  margin: 0.8rem 0;
  background: #0c0c0e;
  border: 1px solid rgba(243, 234, 216, 0.2);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  text-align: center;
}
.sheet [contenteditable="true"] { outline: 1px dashed transparent; outline-offset: 4px; min-width: 2rem; min-height: 1em; }
.sheet [contenteditable="true"]:hover,
.sheet [contenteditable="true"]:focus { outline-color: rgba(201, 162, 39, 0.9); }
.sheet [contenteditable="true"]:empty::before { content: attr(data-ph); opacity: 0.45; }
.field .later, .block .later { display: block; background: none; border: 0; cursor: pointer; }

body.formularz .editor { color: #f3ead8; padding: 0.6rem 0 2rem; }
body.formularz .editor .bar,
body.formularz .editor .tools,
body.formularz .editor .paper,
body.formularz .editor .rest {
  width: min(920px, calc(100% - 1.2rem));
  margin: 0 auto 0.8rem;
}
body.formularz .editor .bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  align-items: center;
  color: #e4d3b4;
  font-size: 0.92rem;
}
body.formularz .editor .note { color: #c9a227; }
body.formularz .editor .miss { color: #e4d3b4; font-size: 0.88rem; margin-top: 0.45rem; }
body.formularz .editor .tools .row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
body.formularz .editor .tools button,
body.formularz .editor .paper .back,
body.formularz .editor .paper .save {
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: transparent;
  color: #f3ead8;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  min-height: 36px;
  cursor: pointer;
  font-size: 0.82rem;
}
body.formularz .editor .tools button.on { background: #c9a227; color: #1a1404; border-color: #c9a227; }
body.formularz .editor .ticket { margin-top: 0.55rem; }
body.formularz .editor .ticket label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 240px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9a227;
}
body.formularz .editor .ticket input {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: #f3ead8;
  background: #0c0c0e;
  border: 1px solid rgba(243, 234, 216, 0.2);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
body.formularz .editor .help { color: #e4d3b4; font-size: 0.88rem; line-height: 1.45; margin-top: 0.45rem; max-width: 68ch; }
body.formularz .editor .thumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.55rem 0; }
body.formularz .editor .thumbs figure { width: 64px; margin: 0; }
body.formularz .editor .thumbs img { width: 64px; height: 84px; object-fit: cover; display: block; }
body.formularz .editor .thumbs button { width: 100%; margin-top: 0.2rem; font-size: 0.72rem; padding: 0.2rem; }
body.formularz { background: #050506; }
body.formularz .editor .stage {
  position: relative;
  overflow: visible;
  border-radius: 0;
  background: #050506;
  width: 100%;
  margin: 0 0 1.2rem;
}
body.formularz .editor .media,
body.formularz .editor .scrim { position: absolute; inset: 0; }
body.formularz .editor .media { z-index: 0; }
body.formularz .editor .media video,
body.formularz .editor .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.formularz .editor .slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
body.formularz .editor .slide.on { opacity: 1; }
body.formularz .editor .scrim {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.55), transparent 18%, transparent 82%, rgba(5, 5, 6, 0.55)),
    linear-gradient(180deg, rgba(5, 5, 6, 0.62), rgba(5, 5, 6, 0.28) 28%, rgba(5, 5, 6, 0.72));
}
body.formularz .editor .stage[data-scene="black"] .scrim {
  background: radial-gradient(ellipse 70% 36% at 50% 0%, rgba(201, 162, 39, 0.22), transparent 62%);
}
body.formularz .editor .front {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 4.2rem 0 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.formularz .editor .brand,
body.formularz .editor .label {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a227;
  gap: 0;
}
body.formularz .editor .front h1 {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0.35rem 0 0.85rem;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72);
}
body.formularz .editor .when {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a227;
  background: transparent;
  border: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}
body.formularz .editor .place { color: #e4d3b4; margin-top: 0.2rem; font-size: 1rem; }
body.formularz .editor .age { margin: 0.35rem 0 0.7rem; letter-spacing: 0.16em; font-size: 0.75rem; }
body.formularz .editor .cards {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.4rem 0 0.85rem;
}
body.formularz .editor .card { display: flex; flex-direction: column; min-width: 0; }
body.formularz .editor .photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
  padding: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.18), rgba(5, 5, 6, 0.15)),
    #141416;
  background-size: cover;
  background-position: center;
}
body.formularz .editor .nick {
  background: #c9a227;
  color: #1a1404;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.6vw, 0.95rem);
  min-height: 1.7rem;
  padding: 0.32rem 0.2rem 0.26rem;
}
body.formularz .editor .names,
body.formularz .editor .value,
body.formularz .editor .price,
body.formularz .editor .blik-no {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.formularz .editor .names { font-size: clamp(1.2rem, 2.5vw, 1.7rem); margin: 0.15rem 0 0.6rem; max-width: 28ch; }
body.formularz .editor .crew {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
body.formularz .editor .value { font-size: clamp(1.15rem, 2vw, 1.6rem); margin-top: 0.12rem; }
body.formularz .editor .price { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 1rem; }
body.formularz .editor .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; width: min(560px, 100%); margin-top: 0.45rem; }
body.formularz .editor .actions .slot { flex: 1 1 180px; }
body.formularz .editor .cta {
  flex: 1 1 200px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #c9a227;
  color: #1a1404;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.25rem;
}
body.formularz .editor .cta.ghost { background: transparent; color: #f3ead8; border: 1px solid rgba(243, 234, 216, 0.55); }
body.formularz .editor .blik { margin-top: 0.8rem; }
body.formularz .editor .blik-no { font-size: 1.45rem; }
body.formularz .editor .blik-meta { color: #e4d3b4; font-size: 0.9rem; }
body.formularz .editor .papers { display: flex; gap: 1rem; margin-top: 0.9rem; }
body.formularz .editor .papers button {
  background: none;
  border: 0;
  color: #c9a227;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
  min-height: 44px;
}
body.formularz .editor [contenteditable="true"] {
  outline: 1px dashed transparent;
  outline-offset: 4px;
  cursor: text;
  min-width: 2rem;
  min-height: 1em;
}
body.formularz .editor [contenteditable="true"]:hover,
body.formularz .editor [contenteditable="true"]:focus { outline-color: rgba(201, 162, 39, 0.9); }
body.formularz .editor [contenteditable].empty:empty::before { content: attr(data-ph); }
body.formularz .editor [contenteditable][data-ph=""].empty::before { content: none; }
body.formularz .editor .photo:hover,
body.formularz .editor .photo:focus-visible { outline: 1px dashed rgba(201, 162, 39, 0.9); outline-offset: 3px; }
body.formularz .editor .paper textarea {
  width: 100%;
  min-height: 280px;
  margin: 0.6rem 0;
  background: #0c0c0e;
  color: #f3ead8;
  border: 1px solid rgba(243, 234, 216, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
  line-height: 1.5;
}
body.formularz .editor .paper h3 {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.6rem 0;
}
body.formularz .editor .paper .save { background: #c9a227; color: #1a1404; border-color: #c9a227; }
body.formularz .editor .rest .ask-label { color: #e4d3b4; margin: 0.2rem 0 0.45rem; }
body.formularz .editor .rest .btn.primary { margin-top: 0.4rem; }
@media (max-width: 720px) {
  body.formularz .editor .crew { grid-template-columns: 1fr; }
  body.formularz .editor .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.formularz .editor .front h1 { font-size: clamp(2.5rem, 12vw, 3.8rem); max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.formularz .editor .slide { transition: none; }
}
