/* =====================================================
   l13-styles.css — Lucky 13 Wisconsin Lottery
   LottoMom.com | External stylesheet
   ===================================================== */

:root {
  --green: #1a6b2e;
  --green-light: #2d9e47;
  --green-dark: #0f3d1a;
  --gold: #f5c518;
  --gold-dark: #c9a000;
  --cream: #fdf8ef;
  --red: #b22222;
  --silver: #c0c0c0;
  --silver-dark: #888;
  --scratch-color: #9b9b9b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--green-dark);
  background-image:
    radial-gradient(ellipse at 20% 20%, #1e5c30 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, #0a2e12 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  font-family: 'Barlow', sans-serif;
  color: white;
}

/* Shamrock background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ctext x='15' y='40' font-size='30' opacity='0.04' fill='white'%3E%F0%9F%8D%80%3C/text%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---- Header ---- */
.header { text-align: center; padding: 10px 0 0; }

.wi-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  line-height: 0.85;
  background: linear-gradient(180deg, #ffe566 0%, #f5c518 40%, #c9a000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(245,197,24,0.4));
  letter-spacing: 2px;
}

.subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}


/* ── Back to Home ──────────────────────────────────────────── */
.sc-back {
  display: block; text-align: center; padding: 8px;
  background: rgba(0,0,0,0.3);
  font-family: 'Oswald', sans-serif; font-weight: 400;
  font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.15s;
}
.sc-back:hover { color: var(--mb-gold); }



/* ---- Stats bar ---- */
.stats-bar { display: flex; gap: 12px; width: 100%; }

.stat-box {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--gold);
}
.stat-value.red   { color: #ff7070; }
.stat-value.white { color: rgba(255,255,255,0.8); }

/* ---- Ticket ---- */
.ticket {
  background: var(--cream);
  border-radius: 16px;
  width: 100%;
  padding: 20px;
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 6px var(--green),
    0 12px 40px rgba(0,0,0,0.5);
  color: var(--green-dark);
  position: relative;
  overflow: hidden;
}

.ticket::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0, var(--gold) 12px,
    var(--green) 12px, var(--green) 24px
  );
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-top: 8px;
}

.ticket-game {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--green);
  line-height: 1;
}

.ticket-price {
  background: var(--green);
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.ticket-instructions {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--green-dark);
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---- Play grid ---- */
.play-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.play-spot {
  background: #e8e0d0;
  border-radius: 10px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid #d4c9b0;
  transition: transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.play-spot:not(.scratched):hover  { transform: scale(1.03); }
.play-spot:not(.scratched):active { transform: scale(0.97); }
.play-spot.winner { border-color: var(--gold); }

/* Silver scratch layer */
.scratch-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #bbb 0%, #d8d8d8 30%, #aaa 50%, #ccc 70%, #b5b5b5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2;
}
.scratch-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  border-radius: 8px;
}
.scratch-icon { font-size: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2)); }

.play-spot.scratched .scratch-layer {
  opacity: 0;
  transform: scale(1.3) rotate(5deg);
  pointer-events: none;
}

/* Revealed content */
.reveal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
  z-index: 1;
}
.play-spot.scratched .reveal-content { opacity: 1; }
.reveal-symbol { font-size: 28px; line-height: 1; }
.reveal-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  color: var(--green-dark);
  letter-spacing: 1px;
  opacity: 0.8;
}
.play-spot.winner .reveal-symbol { animation: pulse-win 0.6s ease; }

@keyframes pulse-win {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.win-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245,197,24,0.4) 0%, transparent 70%);
  border-radius: 8px;
  opacity: 0;
  z-index: 0;
}
.play-spot.winner .win-glow {
  opacity: 1;
  animation: glow-pulse 1s ease infinite alternate;
}
@keyframes glow-pulse {
  from { opacity: 0.4; }
  to   { opacity: 0.8; }
}

/* ---- Bonus spot ---- */
.bonus-section { border-top: 2px dashed #ccc; padding-top: 14px; }

.bonus-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--green);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.bonus-spot {
  background: linear-gradient(135deg, #f5f0e8, #ede5d0);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.bonus-spot:not(.scratched):hover { background: linear-gradient(135deg, #f8f3eb, #f0e8d5); }

.bonus-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
  opacity: 0.8;
  letter-spacing: 0.5px;
  text-align: center;
}

.bonus-scratch-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c5a028 0%, #e8c040 30%, #b89020 50%, #d4ae38 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 2px;
}
.bonus-spot.scratched .bonus-scratch-layer {
  opacity: 0;
  transform: scale(1.2);
  pointer-events: none;
}

.bonus-reveal {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
}
.bonus-spot.scratched .bonus-reveal { opacity: 1; }
.bonus-symbol-display { font-size: 36px; }

/* ---- Prize display ---- */
.prize-display {
  background: var(--green-dark);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 2px solid var(--green-light);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  width: 100%;
}
.prize-display.revealed-win {
  border-color: var(--gold);
  background: linear-gradient(135deg, #1a3d10, #0f2208);
  box-shadow: 0 0 20px rgba(245,197,24,0.3);
}

.prize-status {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.prize-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  background: linear-gradient(180deg, #ffe566, #f5c518);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.prize-amount.no-win {
  font-size: 22px;
  background: none;
  -webkit-text-fill-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.3);
}

/* ---- Confetti ---- */
.confetti-area {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ---- Buttons ---- */
.actions { display: flex; gap: 10px; width: 100%; }

.btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; filter: none !important; }

.btn-primary {
  background: linear-gradient(180deg, #f5c518 0%, #c9a000 100%);
  color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(245,197,24,0.3);
}
.btn-primary:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); filter: brightness(0.95); }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: 2px solid rgba(255,255,255,0.2);
  font-size: 16px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: white; }

/* ---- Prize table ---- */
.prize-table {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.1);
}
.prize-table-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  text-align: center;
}
.prize-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.prize-row:last-child { border-bottom: none; }
.prize-row .odds   { color: rgba(255,255,255,0.4); }
.prize-row .amount { color: var(--gold); }

/* ---- Footer ---- */
footer {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 8px 0 16px;
}
