/* =============================================================================
   VÝROČNÍ WEB 5 LET • PASTEL AESTHETIC (BABY PINK & BABY BLUE)
   Příjemné baby pink pozadí, baby blue akcenty a čisté bílé karty
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-pink: #fde8ef; /* teplé, jemné baby pink pozadí */
  --card-bg: #ffffff;
  --text-title: #2b1f26;
  --text-body: #4c3f47;
  --text-muted: #7e6c76;
  
  --pink-primary: #eb7b95;
  --pink-primary-hover: #e06884;
  --pink-soft: #fae4ec;
  --pink-border: #f5c4d4;

  --blue-primary: #38bdf8;
  --blue-primary-hover: #0284c7;
  --blue-soft: #f0f9ff;
  --blue-border: #bae6fd;
  --blue-text: #0369a1;

  --shadow-pastel: 0 12px 28px -6px rgba(56, 189, 248, 0.18), 0 6px 16px -2px rgba(235, 123, 149, 0.1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at 50% 0%, #fff3f8 0%, #fdeaf2 55%, #fbd8e6 100%);
  background-attachment: fixed;
  color: var(--text-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-heading {
  font-family: 'Outfit', sans-serif;
  color: var(--text-title);
  letter-spacing: -0.01em;
}

/* Karty na baby pink pozadí s baby blue lemováním */
.clean-card {
  background: var(--card-bg);
  border: 2px solid #bae6fd;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-pastel);
}

/* Tlačítka */
.btn-primary {
  background-color: var(--pink-primary);
  color: #ffffff;
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(235, 123, 149, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
  background-color: var(--pink-primary-hover);
}

.btn-secondary {
  background-color: var(--blue-soft);
  color: var(--blue-text);
  border: 1.5px solid var(--blue-border);
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-secondary:active {
  background-color: #d4eaf7;
  transform: scale(0.98);
}

.btn-blue {
  background-color: var(--blue-primary);
  color: #ffffff;
  border-radius: 1rem;
  padding: 0.875rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(82, 165, 219, 0.35);
}

.btn-blue:hover {
  background-color: var(--blue-primary-hover);
}

.btn-blue:active {
  transform: scale(0.98);
  background-color: var(--blue-primary-hover);
}

/* Kvízové možnosti */
.quiz-opt-btn {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-title);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.08);
}

.quiz-opt-btn:hover {
  border-color: #38bdf8;
  background-color: #f0f9ff;
}

.quiz-opt-btn:active {
  transform: scale(0.99);
}

.quiz-opt-btn.correct {
  background-color: #effcf4 !important;
  border-color: #82e2a7 !important;
  color: #106634 !important;
}

.quiz-opt-btn.wrong {
  background-color: #fdf2f2 !important;
  border-color: #f8a8a8 !important;
  color: #9f1c1c !important;
}

.quiz-opt-btn.disabled-5050 {
  opacity: 0.3;
  pointer-events: none;
  text-decoration: line-through;
  filter: grayscale(0.5);
}

/* Apple Wallet Styl Vstupenky */
.wallet-pass-card {
  background: #192231; /* elegantní tmavě modro-šedá jako v Apple Wallet */
  color: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(25, 34, 49, 0.4);
  border: 1.5px solid #2d3b52;
}

.wallet-pass-header {
  padding: 1.25rem 1.25rem 0.875rem 1.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.wallet-pass-body {
  padding: 1.25rem;
}

.wallet-pass-barcode-box {
  background: #ffffff;
  padding: 1rem;
  border-radius: 0.875rem;
  text-align: center;
}

.barcode-lines {
  height: 44px;
  background: repeating-linear-gradient(
    90deg,
    #0f172a 0,
    #0f172a 2px,
    transparent 2px,
    transparent 5px,
    #0f172a 5px,
    #0f172a 8px,
    transparent 8px,
    transparent 11px
  );
  border-radius: 2px;
  margin: 0 auto;
}

/* Apple Wallet Stack (V Peněžence) */
.wallet-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wallet-stack-item {
  background: #192231;
  color: #ffffff;
  border-radius: 1.125rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid #2d3b52;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.wallet-stack-item:active {
  transform: scale(0.98);
}

.wallet-stack-item.coupon-style {
  background: #251e29;
  border-color: #45344c;
}

/* Piškvorky (Tic-Tac-Toe) */
.ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 250px;
  margin: 0 auto;
}

.ttt-cell {
  aspect-ratio: 1 / 1;
  background: #fff5f8;
  border: 2px solid var(--pink-border);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ttt-cell:hover:not(.occupied) {
  background: #fae4ec;
  border-color: var(--pink-primary);
}

.ttt-cell:active:not(.occupied) {
  transform: scale(0.96);
}

.ttt-cell.occupied {
  cursor: default;
  background: #ffffff;
}

/* Modály */
.modal-backdrop {
  background: rgba(43, 31, 38, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalIn {
  0% { opacity: 0; transform: scale(0.95) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Uskakující hodnocení */
.runaway-btn {
  transition: transform 0.2s ease-out;
}

/* =============================================================================
   NOVÉ INTERAKTIVNÍ PRVKY: STÍRACÍ LOS, KOLO ŠTĚSTÍ, TREZOR A VÝZVY
   ============================================================================= */

/* 1. Stírací los */
.scratch-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 310px;
  height: 110px;
  margin: 0.75rem auto 0.75rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.22);
  border: 2.5px dashed #38bdf8;
  touch-action: none;
  user-select: none;
}

.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 10;
  touch-action: none;
  user-select: none;
  transition: opacity 0.5s ease;
}

.scratch-content {
  width: 100%;
  height: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #fff4f8 0%, #edf6fd 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* 2. Kolo štěstí */
.wheel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
}

.wheel-outer {
  position: relative;
  width: 190px;
  height: 190px;
  margin-bottom: 1rem;
}

.wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 6px 20px rgba(82, 165, 219, 0.25), 0 2px 6px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 3.5s cubic-bezier(0.12, 0.9, 0.2, 1);
  background: conic-gradient(
    #fae4ec 0deg 180deg,
    #e2f1fa 180deg 360deg
  );
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid var(--pink-primary);
  z-index: 20;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}

.wheel-center-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--pink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 3. Trezor PIN klávesnice */
.pin-display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--pink-primary);
  background: #ffffff;
  transition: all 0.2s ease;
}

.pin-dot.filled {
  background: var(--pink-primary);
  box-shadow: 0 0 10px rgba(235, 123, 149, 0.6);
  transform: scale(1.15);
}

.pin-dot.success {
  background: #10b981 !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.pin-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 240px;
  margin: 0 auto 1.5rem;
}

.pin-btn {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--blue-border);
  color: var(--text-title);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(82, 165, 219, 0.15);
  transition: all 0.15s ease;
  user-select: none;
  cursor: pointer;
}

.pin-btn:active {
  transform: scale(0.92);
  background: var(--blue-soft);
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shakeError 0.4s ease;
}
