/* #41352 CityQuiz · ergänzende Styles zu Tailwind */

:root { color-scheme: dark; }
html, body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }

.app-shell {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.card {
  background: rgb(24 24 27 / .9);
  border: 1px solid #27272a;
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 1rem; font-weight: 800;
  background: #fbbf24; color: #09090b;
  box-shadow: 0 10px 30px -10px rgb(245 158 11 / .6);
  transition: transform .12s ease, background-color .15s ease;
}
.btn-primary:hover { background: #f59e0b; }
.btn-primary:active { transform: scale(.95); }
.btn-primary:disabled { background: #3f3f46; color: #a1a1aa; box-shadow: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 1rem; font-weight: 600;
  border: 1px solid #3f3f46; background: rgb(24 24 27 / .6);
  transition: transform .12s ease, border-color .15s ease;
}
.btn-ghost:hover { border-color: #fbbf24; }
.btn-ghost:active { transform: scale(.95); }
.btn-ghost:disabled { opacity: .4; pointer-events: none; }

.icon-btn {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border-radius: .9rem; border: 1px solid #27272a; background: #18181b;
}
.icon-btn:active { transform: scale(.95); }

.quick-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  min-height: 5.5rem; padding: .75rem .5rem; text-align: center;
  font-size: .8rem; font-weight: 600; line-height: 1.2;
  background: rgb(24 24 27 / .9); border: 1px solid #27272a; border-radius: 1.25rem;
  transition: transform .12s ease, border-color .15s ease;
}
.quick-tile:hover { border-color: rgb(251 191 36 / .5); }
.quick-tile:active { transform: scale(.95); }

.crown-badge {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem;
  border-radius: 999px; background: rgb(251 191 36 / .15); border: 1px solid rgb(251 191 36 / .5);
  font-size: .85rem;
}

/* Antworten */
.answer {
  min-height: 56px; width: 100%;
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem; text-align: left; font-weight: 600;
  border-radius: 1rem; border: 1.5px solid #3f3f46; background: #18181b;
  transition: transform .12s ease, border-color .15s ease, background-color .2s ease, opacity .25s ease;
}
.answer:hover { border-color: rgb(251 191 36 / .6); }
.answer:active { transform: scale(.95); }
.answer .key {
  flex-shrink: 0; width: 2rem; height: 2rem; display: grid; place-items: center;
  border-radius: .6rem; background: #27272a; color: #fbbf24; font-weight: 800; font-size: .85rem;
}
.answer.is-correct { border-color: #10B981; background: rgb(16 185 129 / .18); }
.answer.is-correct .key { background: #10B981; color: #fff; }
.answer.is-wrong { border-color: #EF4444; background: rgb(239 68 68 / .18); animation: shake .35s ease; }
.answer.is-wrong .key { background: #EF4444; color: #fff; }
.answer.is-hidden { opacity: 0; pointer-events: none; transform: scale(.97); }
.answer:disabled { cursor: default; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Timer */
.timer-bar { width: 100%; background: #FBBF24; transform-origin: left center; }
.timer-bar.is-urgent { animation: pulse-red .6s ease-in-out infinite; }
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 0 0 rgb(239 68 68 / .0); filter: brightness(1); }
  50% { box-shadow: 0 0 14px 2px rgb(239 68 68 / .7); filter: brightness(1.25); }
}

/* Formulare */
.field-label { display: block; font-size: .8rem; color: #a1a1aa; margin-bottom: .35rem; font-weight: 600; }
.field {
  width: 100%; height: 3.25rem; padding: 0 1rem; border-radius: .9rem;
  background: #09090b; border: 1px solid #3f3f46; color: #fff; font-size: 1rem;
}
textarea.field { height: auto; padding: .75rem 1rem; }
.field:focus { outline: none; border-color: #fbbf24; box-shadow: 0 0 0 3px rgb(251 191 36 / .2); }
.check { width: 1.25rem; height: 1.25rem; accent-color: #fbbf24; flex-shrink: 0; }
.chip {
  display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: 0 1rem;
  border-radius: .9rem; border: 1px solid #3f3f46; background: #09090b; font-weight: 600; font-size: .95rem;
}

/* Podium */
.podium-step { border-radius: 1rem 1rem .5rem .5rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: .6rem; font-weight: 800; }

/* Screen-Übergänge */
.screen { animation: screen-in .28s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-panel { animation: sheet-in .28s cubic-bezier(.2,.8,.2,1) both; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

button:focus-visible, a:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }

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