:root {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(1200px 800px at 50% 120%, #071a2d 0%, #040812 55%, #020308 100%);
  -webkit-text-size-adjust: 100%;
}

/* ===== Aurora Canvas ===== */
#aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;
}

/* ===== Intro Screen ===== */
@font-face {
  font-family: "Nadpis";
  src: url("fonts/nadpis.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 5;

  display: grid;
  place-items: center;

  transition: opacity 0.8s ease;
}

.intro h1 {
  font-family: "Nadpis", sans-serif;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: normal;
  letter-spacing: 0.1em;
  color: white;
  margin: 0;
  text-align: center;
  text-shadow: 0 0 40px rgba(120, 255, 220, 0.6);
}

/* Mobil – výrazně větší text */
@media (max-width: 600px) {
  .intro h1 {
    font-size: clamp(4rem, 18vw, 8rem);
    letter-spacing: 0.05em;
  }
}

.intro.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== Center Content Wrapper ===== */
.content {
  position: relative;
  z-index: 1;

  /* mobilní prohlížeče: 100vh někdy skáče, proto min-height + dvh */
  min-height: 100vh;
  min-height: 100dvh;

  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 24px);
}

/* ===== Glass Panel ===== */
.panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(520px, 100%);
  max-width: 520px;

  z-index: 9999;

  padding: clamp(14px, 4.5vw, 26px) clamp(16px, 4vw, 28px);
  border-radius: clamp(14px, 3vw, 20px);

  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  text-align: center;
  color: rgba(255, 255, 255, 0.95);

  overflow: hidden;
}

/* ===== Auth Tabs ===== */
.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-tab {
  padding: 10px 14px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.10);
  color: rgba(255,255,255,0.75);

  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.auth-tab:hover {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.9);
}

.auth-tab.active {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
  box-shadow: 0 0 18px rgba(120, 255, 220, 0.18);
}

/* ===== Form Layout ===== */
#loginForm,
#registerForm,
#adminForm,
#pollForm,
#tournamentForm,
#editProfileForm {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3.5vw, 18px);
}

label {
  font-size: clamp(0.9rem, 2.6vw, 0.95rem);
  opacity: 0.9;
}

/* ===== Inputs ===== */
.row {
  display: grid;
  grid-template-columns: 1fr;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"] {
  width: 100%;
  height: clamp(42px, 6vh, 46px);

  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(10, 14, 24, 0.6);
  color: rgba(255, 255, 255, 0.95);

  outline: none;
  font-size: 1rem;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus {
  border-color: rgba(120, 255, 220, 0.6);
  box-shadow: 0 0 0 4px rgba(120, 255, 220, 0.15);
}

/* datum – ať je v dark režimu čitelný i picker */
input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}

input[type="time"] {
  color-scheme: dark;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}

/* ===== Buttons ===== */
#loginForm button,
#registerForm button,
#adminForm button,
#pollForm button,
#tournamentForm button,
#editProfileForm button,
#addOptionBtn {
  min-height: 36px;
  height: auto;

  padding: 10px 22px;
  border-radius: 10px;

  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);

  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;

  transition: background 0.2s ease, box-shadow 0.2s ease;
  margin: 0 auto;

  min-width: 140px;
}

#loginForm button:hover,
#registerForm button:hover,
#adminForm button:hover,
#pollForm button:hover,
#tournamentForm button:hover,
#editProfileForm button:hover,
#addOptionBtn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(120, 255, 220, 0.35);
}

#loginForm button:active,
#registerForm button:active,
#adminForm button:active,
#pollForm button:active,
#tournamentForm button:active,
#editProfileForm button:hover,
#addOptionBtn:active {
  transform: translateY(1px);
}

/* ===== Top Icons (User + Admin) ===== */
.top-icons {
  position: fixed;
  top: clamp(10px, 2.5vw, 18px);
  right: clamp(10px, 2.5vw, 18px);
  z-index: 2;

  display: flex;
  gap: 12px;
}

.icon {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;

  cursor: pointer;
  opacity: 0.6;
  outline: none;

  -webkit-tap-highlight-color: transparent;

  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.icon:hover,
.icon:focus,
.icon:active {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.6;
}

.icon svg {
  width: 22px;
  height: 22px;
  display: block;
  opacity: 0.9;
}

/* ===== Small screens tweaks ===== */
@media (max-width: 360px) {
  .panel {
    border-radius: 14px;
  }

  #loginForm button,
  #registerForm button,
  #adminForm button,
  #pollForm button,
  #tournamentForm button {
    min-width: 120px;
  }

  .top-icons {
    gap: 8px;
  }
}

/* ===== Utility ===== */
.hidden {
  display: none;
}

#registerForm.hidden,
#loginForm.hidden {
  display: none;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;

  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);

  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;

  -webkit-tap-highlight-color: transparent;
}

.close-btn:hover {
  color: white;
}

/* ✅ Unified Window Header (for all windows/panels) */
.window-head{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.window-title{
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  text-align: center;
  pointer-events: none;
}

.window-close{
  position: absolute;
  top: 10px;
  right: 12px;

  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);

  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;

  -webkit-tap-highlight-color: transparent;
}

.window-close:hover{
  color: white;
}

/* Poll sidebar header: allow space for arrows + centered title */
.poll-window-head{
  gap: 22px;
  padding-top: 12px;
}

.poll-window-head .poll-nav{
  flex: 0 0 44px;
}



/* Admin aktivní stav */
.icon.admin-active svg path,
.icon.admin-active svg rect {
  stroke: #00ff88;
}

.icon.admin-active {
  opacity: 0.9;
}

.icon-wrap {
  position: relative;
}

/* dropdown menu */
.menu {
  position: absolute;
  top: 48px;           /* pod ikonou */
  right: 0;
  z-index: 100;

  min-width: 180px;
  padding: 8px;
  border-radius: 14px;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55);
}

.menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.menu-item:hover {
  background: rgba(255,255,255,0.08);
}

.menu-item.danger {
  color: rgba(255, 90, 90, 0.95);
}

.menu-item.danger:hover {
  background: rgba(255, 90, 90, 0.12);
}

.menu-sep {
  height: 1px;
  margin: 6px 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
}

/* ===== Avatar carousel ===== */
.avatar-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.avatar-arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);

  cursor: pointer;
  font-size: 26px;
  line-height: 1;

  display: grid;
  place-items: center;

  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.avatar-arrow:hover {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 18px rgba(120, 255, 220, 0.25);
}

.avatar-arrow:active {
  transform: translateY(1px);
}

.avatar-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;

  border: 3px solid rgba(120, 255, 220, 0.55);
  box-shadow: 0 0 26px rgba(120, 255, 220, 0.25);

  background: rgba(10, 14, 24, 0.35);
  display: grid;
  place-items: center;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-hint {
  margin-top: -6px;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .avatar-circle {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 600px) {
  /* menší mezery mezi prvky */
  .avatar-carousel {
    gap: 8px;
  }

  /* zúžení šipek (tlačítka), aby se to vešlo */
  .avatar-arrow {
    width: 34px;
    height: 44px;
    border-radius: 10px;
    font-size: 22px;
    padding: 0;
  }

  /* kruh drž pevně (nebude se deformovat) */
  .avatar-circle {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
  }

  .avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ========================= */
/* ✅ ADMIN: Správa turnajů a anket */
/* ========================= */

.manage-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.manage-section {
  text-align: left;
  margin-top: 6px;
}

.manage-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 6px 2px 8px;
  opacity: 0.95;
}

.admin-list {
  display: grid;
  gap: 10px;
  max-height: min(55vh, 520px);
  overflow: auto;
  padding-right: 6px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;

  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}

.admin-main {
  min-width: 0;
}

.admin-name {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  opacity: 0.7;
  line-height: 1.2;
}

.admin-del {
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 10px;

  border: 1px solid rgba(255, 90, 90, 0.35);
  background: rgba(255, 90, 90, 0.12);
  color: rgba(255, 210, 210, 0.95);

  cursor: pointer;
}

.admin-del:hover {
  background: rgba(255, 90, 90, 0.18);
  box-shadow: 0 0 18px rgba(255, 90, 90, 0.18);
}

.admin-del:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-empty {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.18);
  opacity: 0.75;
}

/* ========================= */
/* ✅ Leaderboards */
/* ========================= */

.poll-sidebar-leaderboards-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);

  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.poll-sidebar-leaderboards-btn:hover {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 18px rgba(120, 255, 220, 0.18);
}

.lb-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.lb-tab {
  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.10);
  color: rgba(255,255,255,0.75);

  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.lb-tab:hover {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.9);
}

.lb-tab.active {
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.95);
  box-shadow: 0 0 18px rgba(120, 255, 220, 0.18);
}

.lb-list {
  display: grid;
  gap: 10px;
  max-height: calc((48px + 10px) * 4);
  overflow: auto;
  padding-right: 6px;
  text-align: left;
}

.lb-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;

  

  height: 48px;
padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}

.lb-rank {
  opacity: 0.9;
  font-weight: 700;
  min-width: 28px;
}

.lb-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-value {
  opacity: 0.9;
  font-weight: 700;
}

.lb-empty {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.18);
  opacity: 0.75;
}




/* pevný blok pod seznamem (tvoje pozice) */
.lb-me{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* zvýraznění "já" */
.lb-item.is-me{
  border-color: rgba(120, 255, 220, 0.40);
  box-shadow: 0 0 18px rgba(120, 255, 220, 0.12);
}
/* ========================= */
/* ✅ Bottom bar: Ankety + Žebříček */
/* ========================= */

.bottom-bar{
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  padding: 10px 18px;

  border-radius: 18px 18px 0 0;

  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.45);

  width: auto;        /* jen podle obsahu */
  max-width: 520px;   /* aby to nebylo moc široké */
}

.bottom-btn{
  width: 64px;
  height: 64px;
  border-radius: 16px;

  border: 0;
  background: transparent !important; /* žádná výplň */
  position: relative;
  overflow: hidden;

  display: grid;
  place-items: center;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

/* gradientní border bez výplně */
.bottom-btn::before{
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;                 /* tloušťka borderu */
  border-radius: inherit;

  background: linear-gradient(135deg, #00ffd5, #5b8cff, #c850ff);

  /* vyřízne střed -> zůstane jen okraj */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
}

/* hover – jen glow, žádná výplň */
.bottom-btn:hover{
  box-shadow: 0 0 18px rgba(120, 255, 220, 0.35);
}

/* aktivní stav */
.bottom-btn.active{
  box-shadow: 0 0 22px rgba(120, 255, 220, 0.55);
}

/* disabled */
.bottom-btn.is-disabled{
  opacity: 0.45;
  pointer-events: none;
}

/* klik */
.bottom-btn:active{
  transform: translateY(1px);
}

.bottom-btn img{
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1; /* nad pseudo-elementem */
}

@media (max-width: 600px){
  .bottom-bar{bottom: 0; border-radius: 16px 16px 0 0;}
  .bottom-btn{ width: 58px; height: 58px; border-radius: 14px; }
  .bottom-btn img{ width: 40px; height: 40px; }
}

/* ✅ zabrání automatickému otevření ankety (otevře se až po kliknutí) */
#pollSidebar.force-hidden{ display: none !important; }



/* ========================= */
/* ✅ Poll window – stejný design jako Leaderboards */
/* ========================= */

.poll-sidebar {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: min(520px, 100%);
  max-width: 520px;

  z-index: 9999;

  padding: clamp(14px, 4.5vw, 26px) clamp(16px, 4vw, 28px);
  border-radius: clamp(14px, 3vw, 20px);

  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
  color: rgba(255,255,255,0.95);

  overflow: hidden;
}


/* DŮLEŽITÉ: aby .hidden vždy vyhrálo */
.poll-sidebar.hidden {
  display: none !important;
}

/* ========================= */
/* ✅ Přepínání anket (víc anket) */
/* ========================= */

.poll-switch{
  margin-top: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 22px;
  align-items: center;
}

.poll-switch-btn{
  width: 44px;
  height: 44px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.10);
  color: rgba(255,255,255,0.95);

  cursor: pointer;
  font-size: 26px;
  line-height: 1;

  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;

  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.poll-switch-btn:hover{
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 18px rgba(120, 255, 220, 0.18);
}

.poll-switch-btn:active{
  transform: translateY(1px);
}

.poll-switch-select{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);

  background: rgba(10, 14, 24, 0.55);
  color: rgba(255,255,255,0.95);
  outline: none;

  padding: 0 12px;
  font-size: 0.95rem;

  appearance: none;
}

.poll-switch-select:focus{
  border-color: rgba(120, 255, 220, 0.6);
  box-shadow: 0 0 0 4px rgba(120, 255, 220, 0.15);
}

@media (max-width: 600px){
  .poll-switch{
    grid-template-columns: 40px 1fr 40px;
    gap: 14px;
  }
  .poll-switch-btn{ width: 40px; height: 44px; border-radius: 10px; font-size: 22px; }
}

.poll-sidebar-body {
  padding: 10px 14px 14px;
}

.poll-card-title {
  font-size: 1.05rem;
  margin: 0 0 12px 0;
}

/* meta texty */
.poll-meta {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 0;
}

/* ===== Checkbox options ===== */
.poll-checks {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

/* řádek možnosti */
.poll-check-row {
  position: relative;
  overflow: hidden;

  display: flex;
  gap: 10px;
  align-items: center;

  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10, 14, 24, 0.50);

  cursor: pointer;
  user-select: none;
}

/* bar v pozadí podle procent (ankety.js nastavuje --pct: "45%") */
.poll-check-row::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(120, 255, 220, 0.28) var(--pct, 0%),
    rgba(0, 0, 0, 0) 0
  );

  pointer-events: none;
}

/* obsah nad barem */
.poll-check-row > * {
  position: relative;
  z-index: 1;
}

.poll-check-row:hover {
  background: rgba(255,255,255,0.08);
}

.pollCheck {
  width: 18px;
  height: 18px;
  margin: 0;
}

.poll-check-text {
  flex: 1;
  text-align: left;
  opacity: 0.95;
}

/* pokud někdy použiješ disabled */
.poll-disabled {
  opacity: 0.6;
  pointer-events: none;
}


.poll-check-row-col {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.poll-row-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.poll-right {
  opacity: 0.75;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: auto;
}

.poll-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 28px; /* zarovná pod text vedle checkboxu */
}

.poll-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* ========================= */
/* Intro merged from intro.css: Top Title */
/* ========================= */

/* ===== Top Title (Quiz Time) ===== */
.top-title {
  position: fixed;
  top: clamp(12px, 2.5vw, 18px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;

  font-family: "Nadpis", sans-serif;
  font-weight: normal;
  letter-spacing: 0.1em;
  color: white;
  text-shadow: 0 0 28px rgba(120, 255, 220, 0.45);

  font-size: clamp(1.15rem, 3.2vw, 1.65rem);
  line-height: 1;
  white-space: nowrap;

  pointer-events: none;
}

/* 📱 Mobile úprava */
@media (max-width: 600px) {
  .top-title {
    font-size: clamp(1.35rem, 5vw, 1.9rem);
    left: 50%;
    top: clamp(22px, 6vw, 30px); /* posunutí níž */
  }
}

/* během intra schovej celý spodní panel natvrdo */
body.intro-running .bottom-bar{
  display: none !important;
}

/* === Top absolute close button (above header) === */
.panel-top-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  -webkit-tap-highlight-color: transparent;
}

.panel-top-close:hover {
  color: white;
}
