/* ==========================================================================
   Stránka pro účastníky konference
   ========================================================================== */

:root {
  --ink:        #070a12;
  --ink-soft:   #0e1424;
  --line:       rgba(255, 255, 255, .10);
  --text:       #eef2ff;
  --text-dim:   #9aa6c4;
  --accent:     #ffb454;
  --accent-2:   #ff7a59;
  --ok:         #4ade80;
  --radius:     20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  padding: 0;
  background:
    radial-gradient(1100px 620px at 50% -10%, #1b2540 0%, transparent 60%),
    radial-gradient(760px 460px at 10% 110%, #24163a 0%, transparent 62%),
    var(--ink);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Rozvržení ----------------------------------------------------------- */

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  min-height: 100svh;
  max-width: 34rem;
  margin: 0 auto;
  padding: max(2rem, env(safe-area-inset-top)) 20px max(2rem, env(safe-area-inset-bottom));
  text-align: center;
}

/* --- Hlavička ------------------------------------------------------------ */

.brand { animation: rise .6s ease both; }

.brand__year {
  display: inline-block;
  padding: .3rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand__name {
  margin: .9rem 0 0;
  font-size: clamp(1.75rem, 7vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 30%, #b9c4e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Panel se stavem ----------------------------------------------------- */

.panel {
  width: 100%;
  padding: 2.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
  backdrop-filter: blur(12px);
  animation: rise .5s ease both;
}

.panel[hidden] { display: none; }

.panel__title {
  margin: 1.1rem 0 .5rem;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.panel__title--big { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }

.panel__lead {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--text-dim);
}

.panel__note {
  margin: 1.4rem 0 0;
  color: rgba(154, 166, 196, .7);
  font-size: .82rem;
}

/* --- Ikony --------------------------------------------------------------- */

.glyph {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.glyph svg { width: 34px; height: 34px; }

.glyph--bell {
  color: var(--accent);
  background: radial-gradient(circle at 50% 35%, rgba(255, 180, 84, .22), transparent 70%);
  animation: sway 2.6s ease-in-out infinite;
}

.glyph--check {
  color: var(--ok);
  border-color: rgba(74, 222, 128, .35);
  background: radial-gradient(circle at 50% 35%, rgba(74, 222, 128, .2), transparent 70%);
}

.glyph--muted { color: var(--text-dim); }

.check-path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: draw .55s .15s ease forwards;
}

/* --- Tlačítko ------------------------------------------------------------ */

.button {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .95rem 2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #2a1602;
  font: inherit;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 14px 34px -14px rgba(255, 138, 76, .85);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.button:hover  { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(255, 138, 76, .95); }
.button:active { transform: translateY(0); }

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.button[disabled] { opacity: .55; cursor: default; transform: none; }

.button--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

/* --- Návod pro iOS ------------------------------------------------------- */

.steps {
  margin: 1.4rem auto 0;
  padding: 0;
  max-width: 22rem;
  list-style: none;
  counter-reset: step;
  text-align: left;
  color: var(--text-dim);
}

.steps li {
  position: relative;
  margin-bottom: .85rem;
  padding-left: 2.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .15rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
}

.steps strong { color: var(--text); font-weight: 600; }
.mini-icon { color: var(--accent); }

/* --- Načítání a chyby ---------------------------------------------------- */

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 1.1rem;
  border: 2.5px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.error {
  width: 100%;
  margin: 0;
  padding: .9rem 1.1rem;
  border: 1px solid rgba(255, 122, 89, .35);
  border-radius: 14px;
  background: rgba(255, 122, 89, .1);
  color: #ffc9b8;
  font-size: .9rem;
}

.error[hidden] { display: none; }

/* --- Animace ------------------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(9deg); }
  40%      { transform: rotate(-7deg); }
  60%      { transform: rotate(4deg); }
  80%      { transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
