:root { 
  --bg-page: #FFF3E0; /* Playful light orange */
  --bg-panel: #FFFFFF; 
  --text-main: #4A148C; /* Deep purple text for high contrast and fun */
  --accent-primary: #9C27B0; /* Vibrant purple */
  --accent-secondary: #FF9800; /* Vibrant orange */
  --accent-tertiary: #E91E63; /* Pink for extra playfulness */
  --accent-gold: #FFD700; /* Gold for milestones */
  --border: #F48FB1; /* Light pink border */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg-page); color: var(--text-main); font-family: "Comic Sans MS", Arial, sans-serif; line-height: 1.6; font-size: 18px; }
h1, h2, h3, .wordmark { font-family: "Trebuchet MS", sans-serif; font-weight: 900; }
a { color: var(--accent-primary); text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; color: var(--accent-tertiary); }
header { border-bottom: 3px dashed var(--border); background: var(--bg-panel); padding: 16px 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
@media(max-width: 1279px) { .container { padding: 0 24px; } }
@media(max-width: 767px) { .container { padding: 0 16px; font-size: 16px; } }
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.wordmark { font-size: 26px; font-weight: bold; }
nav a { margin-left: 16px; font-weight: bold; padding: 8px 12px; border-radius: 20px; transition: background 0.3s; }
nav a:hover { background: var(--bg-page); text-decoration: none; }
@media(max-width: 767px) { header .container { flex-direction: column; align-items: flex-start; } nav a { margin-left: 0; margin-right: 16px; display: inline-block; } }
main { padding: 64px 0; min-height: 70vh; }
@media(max-width: 1000px) { main { padding: 40px 0; } }
@media(max-width: 767px) { main { padding: 28px 0; } }
section { margin-bottom: 64px; }
h1 { font-size: 46px; margin-bottom: 24px; line-height: 1.2; color: var(--accent-tertiary); }
h2 { font-size: 32px; margin-bottom: 16px; border-bottom: 3px dashed var(--border); padding-bottom: 8px; scroll-margin-top: 20px; color: var(--accent-primary); }
h3 { font-size: 24px; margin-bottom: 12px; margin-top: 24px; color: var(--accent-secondary); }
p, ul { margin-bottom: 16px; max-width: 72ch; }
ul { margin-left: 24px; }
.draw-record { background: var(--bg-panel); border: 2px solid var(--border); padding: 24px; margin-bottom: 16px; border-radius: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.draw-record.highlight { border-color: var(--accent-gold); box-shadow: 0 4px 15px rgba(255,215,0,0.3); }
.draw-header { display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: bold; font-size: 20px; color: var(--accent-primary); }
.numbers { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--accent-gold); color: #000; border: 2px solid var(--accent-secondary); font-weight: bold; font-size: 18px; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.num.euro { background: var(--accent-tertiary); color: #fff; border-color: var(--accent-primary); }
.source-link { font-size: 14px; }
.filters { background: var(--bg-panel); padding: 24px; border: 2px solid var(--border); border-radius: 16px; margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.filters select, .filters button { padding: 10px 18px; border: 2px solid var(--border); background: var(--bg-page); font-size: 16px; cursor: pointer; border-radius: 20px; font-weight: bold; color: var(--text-main); }
.filters button { background: var(--accent-primary); color: #fff; border: none; }
.filters button:hover { background: var(--accent-tertiary); transform: scale(1.05); }
.filters button.secondary { background: var(--bg-page); color: var(--text-main); border: 2px solid var(--accent-primary); }
footer { background: var(--bg-panel); border-top: 3px dashed var(--border); padding: 40px 0; font-size: 15px; }
footer nav { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 12px; }
footer nav a { margin: 0; font-weight: normal; color: var(--text-main); text-decoration: underline; }
details { background: var(--bg-panel); border: 2px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
summary { padding: 16px; cursor: pointer; font-weight: bold; background: var(--bg-page); color: var(--accent-primary); }
details p { padding: 16px; margin: 0; }
.hidden { display: none !important; }
.hero-date { font-size: 24px; font-weight: bold; color: var(--accent-secondary); margin-bottom: 16px; background: #fff; padding: 8px 16px; display: inline-block; border-radius: 20px; border: 2px solid var(--accent-gold); }
textarea, input { width: 100%; padding: 12px; margin-bottom: 16px; border: 2px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 16px; color: var(--text-main); }
.freq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 8px; margin-bottom: 24px; }
.freq-cell { border: 2px solid var(--border); padding: 8px 4px; text-align: center; background: var(--bg-panel); border-radius: 12px; transition: transform 0.2s; }
.freq-cell:hover { transform: scale(1.1); background: var(--accent-gold); border-color: var(--accent-secondary); }
.freq-cell strong { display: block; font-size: 18px; color: var(--accent-primary); }
.freq-cell span { font-size: 14px; font-weight: bold; color: var(--accent-tertiary); display: block; margin-top: 4px; }
.hero-image { width: 100%; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 4px solid var(--accent-gold); }

/* Lucky Streak Widget */
.streak-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-panel);
  border: 3px solid var(--accent-gold);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s;
}
.streak-widget:hover {
  transform: scale(1.1);
}
.streak-widget.glow {
  animation: pulse-glow 1s infinite alternate;
}
@keyframes pulse-glow {
  from { box-shadow: 0 0 10px var(--accent-gold), 0 0 20px var(--accent-secondary); }
  to { box-shadow: 0 0 20px var(--accent-gold), 0 0 40px var(--accent-tertiary); }
}
.progress-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 80px;
  height: 80px;
  pointer-events: none;
}
.progress-ring__circle {
  transition: stroke-dashoffset 0.5s ease-out;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 213; 
  stroke-dashoffset: 213;
}
.streak-count {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-primary);
  line-height: 1;
  transition: transform 0.2s;
}
.streak-label {
  font-size: 12px;
  color: var(--accent-secondary);
  font-weight: bold;
}
.streak-bump {
  transform: scale(1.5);
  color: var(--accent-tertiary);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--accent-primary);
  color: white;
  padding: 16px;
  z-index: 2000;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  border-top: 4px solid var(--accent-tertiary);
}
.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  width: 100%;
  flex-wrap: wrap;
}
.cookie-content p {
  margin: 0;
  font-weight: bold;
  font-size: 16px;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-buttons button {
  background: var(--accent-gold);
  color: var(--text-main);
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}
.cookie-buttons button:hover {
  transform: scale(1.05);
}
.cookie-buttons button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.cookie-buttons a {
  color: var(--accent-gold);
  text-decoration: underline;
  font-size: 14px;
}
@media (max-width: 767px) {
  .cookie-content { flex-direction: column; text-align: center; }
  .streak-widget { bottom: 120px; width: 60px; height: 60px; }
  .progress-ring { width: 60px; height: 60px; top: -3px; left: -3px; }
  .progress-ring__circle { r: 26; cx: 30; cy: 30; stroke-dasharray: 163; stroke-dashoffset: 163; }
}

@media (prefers-reduced-motion: no-preference) {
  a, button, select, .freq-cell { transition: all 150ms ease-in-out; }
}