/* ============================================
   Městská vzdělávací hra Ostrava - Styly
   ============================================ */

/* Reset a základ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f8fafc;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #e94560;
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: #d63d56;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2rem;
  text-align: center;
}

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--primary {
  background: linear-gradient(135deg, #e94560 0%, #c73e54 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
  color: #ffffff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn--outline:hover:not(:disabled) {
  background: #1a1a2e;
  color: #ffffff;
}

/* Varianta obrysového tlačítka pro světlé pozadí */
.btn--outline-dark {
  background: transparent;
  color: #1a1a2e;
  border: 2px solid #e5e7eb;
}

.btn--outline-dark:hover:not(:disabled) {
  background: #1a1a2e;
  color: #ffffff;
  border-color: #1a1a2e;
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn__icon {
  font-size: 1.25em;
}

.btn__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Flash zprávy */
.flash {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
}

.flash--success {
  background: #4ade80;
  color: white;
}

.flash--error {
  background: #ef4444;
  color: white;
}

.flash__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
}

.flash__close:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Alert */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.alert--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.alert ul {
  list-style: none;
}

.alert ul li + li {
  margin-top: 0.5rem;
}

/* Formuláře */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
}

.form-required {
  color: #e94560;
}

.form-optional {
  color: #9ca3af;
  font-weight: 400;
  font-size: 0.875rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-input:focus {
  outline: none;
  border-color: #e94560;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Hero sekce */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(233, 69, 96, 0.1) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 4rem 0;
}

.hero__title-main {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.hero__title-city {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(233, 69, 96, 0.5);
}

.hero__subtitle {
  font-size: 1.25rem;
  color: #e94560;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero__description {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero__charity {
  margin-top: 1rem;
}

.charity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.charity-badge__icon {
  font-size: 1.25rem;
}

.charity-badge__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.charity-badge__text strong {
  color: #e94560;
}

/* Features sekce */
.features {
  padding: 5rem 0;
  background: #ffffff;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  position: relative;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 20px;
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-card__number {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e94560;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  border-radius: 50%;
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.feature-card__text {
  color: #6b7280;
  font-size: 0.95rem;
}

/* About sekce */
.about {
  padding: 5rem 0;
  background: #1a1a2e;
  color: white;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about__text .section-title {
  color: white;
  text-align: left;
}

.about__text p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .about__stats {
    gap: 1rem;
  }
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #e94560;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: #0f0f23;
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Auth stránky */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: white;
  text-decoration: none;
}

.auth-logo__icon {
  font-size: 2rem;
}

.auth-logo__text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.auth-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.auth-tabs {
  display: flex;
  margin: -2rem -2rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.auth-tab {
  flex: 1;
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 3px solid transparent;
  transition: all 150ms ease;
}

.auth-tab:hover {
  color: #1a1a2e;
}

.auth-tab--active {
  color: #e94560;
  border-bottom-color: #e94560;
}

.auth-form .btn {
  margin-top: 0.5rem;
}

.auth-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
}

.auth-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.auth-footer a:hover {
  color: white;
}

/* Payment stránka */
.payment-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.payment-container {
  width: 100%;
  max-width: 480px;
}

.payment-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.payment-header {
  padding: 2rem;
  text-align: center;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.payment-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.payment-subtitle {
  color: #6b7280;
}

.payment-summary {
  padding: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.payment-item__label {
  font-weight: 500;
}

.payment-item__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
}

.payment-charity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(233, 69, 96, 0.1);
  border-radius: 8px;
}

.payment-charity__icon {
  font-size: 1.5rem;
}

.payment-charity__text {
  font-size: 0.9rem;
  color: #1f2937;
}

.payment-form {
  padding: 2rem;
}

.payment-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.payment-info {
  padding: 2rem;
  background: #f8fafc;
}

.payment-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.payment-info ul {
  list-style: none;
}

.payment-info ul li {
  padding: 0.5rem 0;
  color: #6b7280;
}

/* Success stránka */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.success-container {
  width: 100%;
  max-width: 480px;
}

.success-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.success-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: #4ade80;
  color: white;
  font-size: 2.5rem;
  border-radius: 50%;
  animation: successPop 0.5s ease;
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.success-text {
  color: #6b7280;
  margin-bottom: 2rem;
}

.success-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  text-align: left;
}

.success-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.success-info ul {
  list-style: none;
}

.success-info ul li {
  padding: 0.5rem 0;
  color: #6b7280;
}

/* Herní stránka */
.page-game {
  height: 100vh;
  overflow: hidden;
}

.game-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.game-header__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.game-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-logo {
  font-size: 1.5rem;
  text-decoration: none;
}

.game-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #1a1a2e;
}

.game-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border-radius: 100px;
  font-size: 0.875rem;
}

.game-progress__label {
  color: #6b7280;
}

.game-progress__value {
  font-weight: 700;
  color: #1a1a2e;
}

.game-logout {
  font-size: 1.25rem;
  opacity: 0.7;
  transition: opacity 150ms ease;
}

.game-logout:hover {
  opacity: 1;
}

.game-map {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Markery na mapě */
.user-marker {
  position: relative;
}

.user-marker__dot {
  width: 16px;
  height: 16px;
  background: #3b82f6;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.user-marker__pulse {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.checkpoint-marker__icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.checkpoint-marker--active .checkpoint-marker__icon {
  font-size: 2.5rem;
  animation: bounce 1s ease infinite;
}

.checkpoint-marker--completed .checkpoint-marker__icon {
  filter: drop-shadow(0 2px 4px rgba(74, 222, 128, 0.5));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Herní panel */
.game-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  max-height: 40vh;
  transition: max-height 400ms ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-panel--expanded {
  max-height: 90vh;
  max-height: 90dvh; /* dynamic viewport height - lepší podpora pro mobilní klávesnici */
}

.game-panel__header {
  padding: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.game-panel__drag {
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 0 auto;
}

.game-panel__content {
  padding: 0 1.5rem 4rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 4rem);
}

.checkpoint-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.checkpoint-status__icon {
  font-size: 2rem;
}

.checkpoint-status__text strong {
  display: block;
  color: #1a1a2e;
}

.checkpoint-status__text span {
  color: #6b7280;
  font-size: 0.9rem;
}

.checkpoint-hint {
  padding: 1rem 0;
}

.checkpoint-hint strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.checkpoint-hint p {
  color: #6b7280;
}

.checkpoint-content {
  padding-top: 1rem;
}

.checkpoint-image {
  margin: 0 -1.5rem 1.5rem;
}

.checkpoint-image img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.checkpoint-text {
  margin-bottom: 2rem;
}

.checkpoint-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.checkpoint-text p {
  color: #1f2937;
  line-height: 1.7;
}

.checkpoint-question {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.checkpoint-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #e94560;
  margin-bottom: 0.75rem;
}

.checkpoint-question > p {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.question-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 150ms ease;
}

.question-option:hover {
  border-color: #e94560;
  background: rgba(233, 69, 96, 0.05);
}

.question-option input {
  display: none;
}

.question-option input:checked + .question-option__label {
  background: #e94560;
  color: white;
}

.question-option__label {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 50%;
  font-weight: 700;
  color: #1a1a2e;
  flex-shrink: 0;
  transition: all 150ms ease;
}

.question-option__text {
  color: #1f2937;
}

.question-option--correct {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.question-option--correct .question-option__label {
  background: #4ade80;
  color: white;
}

.question-option--incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.question-option--incorrect .question-option__label {
  background: #ef4444;
  color: white;
}

.feedback {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.feedback--correct {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.feedback--incorrect {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.feedback__icon {
  font-size: 1.5rem;
}

.feedback__text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.feedback__text p {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.checkpoint-complete {
  text-align: center;
  padding: 2rem 0;
}

.checkpoint-complete__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.checkpoint-complete h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.checkpoint-complete p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.game-stat {
  text-align: center;
}

.game-stat__value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #e94560;
}

.game-stat__label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Geolocation error overlay */
.geo-error {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(26, 26, 46, 0.95);
}

.geo-error__content {
  text-align: center;
  max-width: 400px;
}

.geo-error__icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.geo-error h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.geo-error p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* Leaflet overrides */
.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
  border: none !important;
}

.leaflet-control-zoom a:first-child {
  border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom a:last-child {
  border-radius: 0 0 8px 8px !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* ============================================
   Ze dna vzhůru - Slide-based game styles
   ============================================ */

/* Slide info panel (waiting for GPS) */
.slide-info {
  padding: 0;
}

.slide-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.slide-status__icon {
  font-size: 2rem;
}

.slide-status__text strong {
  display: block;
  color: #1a1a2e;
}

.slide-status__text span {
  color: #6b7280;
  font-size: 0.9rem;
}

.slide-hint {
  padding: 1rem 0;
}

.slide-hint strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.slide-hint p {
  color: #6b7280;
}

/* Slide content (unlocked) */
.slide-content {
  padding: 1.5rem 0;
}

.slide-image {
  margin: 0 0 1.5rem;
  text-align: center;
}

.slide-image img {
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.slide-image__zoomable {
  cursor: zoom-in;
}

.slide-image__hint {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #888;
}

@media (min-width: 1024px) {
  .slide-image img {
    width: 50%;
  }
}

/* Lightbox pro zvětšení obrázků */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}

.image-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}

.image-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   QR popup pro dobrovolný dar
   ============================================ */
.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 10500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.donation-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.72);
}

.donation-modal__card {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.donation-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.donation-modal__close:hover {
  background: #e5e7eb;
}

.donation-modal__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.donation-modal__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.donation-modal__text {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.donation-modal__qr {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}

.donation-modal__qr img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 6px;
}

.donation-modal__account {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.donation-modal__account-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.donation-modal__account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.donation-modal__account-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1a2e;
}

.donation-modal__copy {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e94560;
  background: rgba(233, 69, 96, 0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease;
}

.donation-modal__copy:hover {
  background: rgba(233, 69, 96, 0.2);
}

.donation-modal__copy--done {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
}

.slide-text {
  margin-bottom: 2rem;
}

.slide-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

/* Story text formatting */
.story-text p {
  color: #1f2937;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* Questions section */
.slide-questions {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.question-item {
  margin-bottom: 2rem;
}

.question-item:last-child {
  margin-bottom: 1rem;
}

.question-text {
  font-size: 1.1rem;
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.question-text strong {
  font-weight: 600;
}

.question-hint {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
}

.question-input {
  margin-bottom: 1rem;
}

.question-input .form-input {
  font-size: 1.1rem;
  padding: 1rem 1.25rem;
}

.question-input .form-input:focus {
  border-color: #e94560;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.question-input input[type="number"] {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Radio/checkbox options */
.question-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 150ms ease;
  margin-bottom: 0.75rem;
}

.question-option:hover {
  border-color: #e94560;
  background: rgba(233, 69, 96, 0.05);
}

.question-option input[type="radio"],
.question-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #e94560;
  cursor: pointer;
}

.question-option__text {
  color: #1f2937;
  font-size: 1rem;
}

.question-option:has(input:checked) {
  border-color: #e94560;
  background: rgba(233, 69, 96, 0.1);
}

/* Hashtag styling */
.hashtag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e94560;
  margin: 1.5rem 0;
}

.checkpoint-complete .hashtag {
  margin-top: 2rem;
}

.checkpoint-complete .btn {
  display: flex;
  width: 100%;
  margin-bottom: 0.75rem;
}

.checkpoint-complete .btn:last-child {
  margin-bottom: 0;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .story-text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .slide-text h2 {
    font-size: 1.25rem;
  }

  .question-text {
    font-size: 1rem;
  }

  .game-panel__content {
    padding: 0 1rem 1.5rem;
  }
}

/* Smooth scroll for long content */
.game-panel__content {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}


/* OVERRIDE */
.slide-image {
  margin: 0 0 1.5rem !important;
  text-align: center !important;
}
.slide-image img {
  width: 90% !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 1024px) {
  .slide-image img {
    width: 50% !important;
  }
}
