/* Písmo Oswald (SIL Open Font License 1.1) – lokálně, funguje i bez internetu */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/oswald-latin-ext-400-normal.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/oswald-latin-400-normal.woff2') format('woff2'); 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; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/oswald-latin-ext-500-normal.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/oswald-latin-500-normal.woff2') format('woff2'); 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; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/oswald-latin-ext-600-normal.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/oswald-latin-600-normal.woff2') format('woff2'); 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; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/oswald-latin-ext-700-normal.woff2') format('woff2'); 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/oswald-latin-700-normal.woff2') format('woff2'); 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; }

/* Vzhled podle plakátu „Protančíme Kecky“: tmavé grungy pozadí, fialová + žlutá */
:root {
  --bg: #0e0c10;
  --bg2: #19161c;
  --card: rgba(26, 22, 30, .88);
  --line: #3a3340;
  --text: #f6f3f8;
  --muted: #a99fb3;
  --purple: #c062d1;
  --purple-dark: #7a2d8c;
  --yellow: #f2c84b;
  --a: var(--purple);
  --a-dark: var(--purple-dark);
  --a-ink: #ffffff;
  --b: var(--yellow);
  --b-dark: #9c7410;
  --b-ink: #1a1405;
  --ok: #5fd38d;
  --warn: var(--yellow);
  --danger: #ff5a5a;
  --radius: 4px;
  --font: 'Oswald', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  /* zrnitá textura jako na plakátu */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 30%, rgba(192, 98, 209, .10), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(255, 255, 255, .06), transparent 60%);
  background-attachment: fixed;
}
/* zrno přes celou stránku */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: .09;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* --- prvky z plakátu --- */
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand img { display: block; height: auto; filter: drop-shadow(0 0 18px rgba(192, 98, 209, .3)); }

.tag {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .12em .5em;
  line-height: 1.25;
}
.frame { border: 2px solid var(--yellow); padding: 10px 14px; }
.leader { display: flex; align-items: baseline; gap: 8px; text-transform: uppercase; }
.leader::after { content: ''; order: 1; flex: 1; border-bottom: 2px dotted var(--purple); transform: translateY(-4px); }
.leader > :last-child { order: 2; }

/* logo taneční skupiny Attitude (partner akce) */
.partner { display: block; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }

h1, h2, h3 { text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius);
  padding: 10px 16px;
  background: #2c2632;
  color: var(--text);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
}
/* hover jen na zařízeních s myší – na dotyku by zůstal „přilepený“ */
@media (hover: hover) { button:hover { filter: brightness(1.15); } }
button:active { transform: scale(.97); }
button:disabled { opacity: .35; cursor: not-allowed; filter: none; transform: none; }
button.primary { background: var(--purple); color: #fff; }
button.ok { background: var(--purple); color: #fff; }
button.warn { background: var(--yellow); color: var(--b-ink); }
button.danger { background: var(--danger); color: #fff; }
button.ghost { background: transparent; border: 1px solid var(--line); }

input, select, textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  letter-spacing: .02em;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 1px; }

.muted { color: var(--muted); }
.hidden { display: none !important; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #2a2430;
  border-left: 4px solid var(--purple);
  padding: 12px 18px;
  z-index: 1000;
  max-width: calc(100% - 32px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.toast.error { background: #3d1519; border-left-color: var(--danger); }

.conn {
  position: fixed;
  top: 8px;
  right: 8px;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--danger);
  z-index: 999;
  text-transform: uppercase;
}

/* odpočet do začátku akce */
.cd { display: flex; gap: 8px; justify-content: center; }
.cd > div { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 6px; border: 2px solid var(--yellow); }
.cd b { font-size: 38px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cd small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
