@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;700&family=Inter:wght@400;600;700&display=swap');

:root {
  --color-charcoal: #242424;
  --color-orange: #FF7A00;
  --color-yellow: #FFC83D;
  --color-coral: #FF5C5C;
  --color-pink: #EC4899;
  --color-purple: #9D4EDD;
  --color-green: #65C466;
  --color-cream: #FFF8E7;
  --color-white: #FFFFFF;
  
  --color-page: var(--color-white);
  --color-text: var(--color-charcoal);
  --color-muted: #5c5c5c;
  --color-rules: #E6DFD3;
  --color-modal: var(--color-white);
  
  --font-primary: 'Fredoka', 'Arial Rounded MT Bold', sans-serif;
  --font-base: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-page);
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 42px;
  line-height: 1.15;
}

h2 {
  font-size: 32px;
  line-height: 1.25;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

a {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}

a:hover {
  text-decoration: none;
  color: var(--color-coral);
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--color-orange);
  color: #fff;
  padding: 12px;
  z-index: 1000;
  font-weight: bold;
}
.skip-link:focus {
  top: 0;
}

.emoji-icon {
  margin-right: 8px;
  display: inline-block;
  transform: scale(1.1);
}

/* Container */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-content {
  max-width: 780px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  height: 64px;
  background-color: var(--color-white);
  color: var(--color-charcoal);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--color-rules);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-primary);
  text-decoration: none;
  color: var(--color-charcoal);
  transition: transform var(--transition);
}

.brand:hover {
  text-decoration: none;
  color: var(--color-orange);
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--color-charcoal);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-orange);
  text-decoration: none;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-orange);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: var(--color-cream);
  border: 2px solid var(--color-charcoal);
  color: var(--color-charcoal);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
}

/* Hero Panel */
.hero-panel {
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  color: #fff;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: var(--color-yellow);
  border-radius: 50%;
  opacity: 0.15;
}

.hero-inner {
  display: flex;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-text {
  width: 60%;
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h1 {
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  color: var(--color-yellow);
}

.independence-notice {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(255,255,255,0.3);
}

.hero-visual {
  width: 40%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-ball {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: var(--color-charcoal);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2), inset -5px -5px 15px rgba(0,0,0,0.1);
  position: absolute;
  animation: float 4s ease-in-out infinite;
}

.ball-1 { background: var(--color-yellow); top: 15%; left: 15%; animation-delay: 0s; }
.ball-2 { background: var(--color-green); bottom: 15%; right: 15%; animation-delay: 1.2s; }
.ball-3 { background: var(--color-coral); top: 45%; right: 40%; animation-delay: 2.5s; color: white;}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-3px);
}

.btn-primary {
  background-color: var(--color-orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}
.btn-primary:hover {
  background-color: var(--color-coral);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 92, 92, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border: 2px solid var(--color-charcoal);
}
.btn-secondary:hover {
  background-color: var(--color-charcoal);
  color: #fff;
}

.btn-tertiary {
  background-color: transparent;
  color: var(--color-muted);
  text-decoration: underline;
  padding: 14px 16px;
}
.btn-tertiary:hover {
  color: var(--color-orange);
  transform: none;
}

/* Sections */
.section-pad {
  padding: 64px 0;
}

.bg-white { background-color: var(--color-page); }
.bg-light, .bg-cream { background-color: var(--color-cream); }

/* Draw Results Section */
.draw-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.draw-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}
.draw-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-yellow);
  box-shadow: 0 15px 50px rgba(255, 200, 61, 0.15);
}
.draw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 3px dashed var(--color-rules);
  padding-bottom: 16px;
}
.draw-header h3 { margin: 0; font-size: 28px; color: var(--color-charcoal); }
.draw-header span { color: var(--color-muted); font-weight: bold; font-size: 15px; }
.balls-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.ball {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: bold;
  font-size: 22px;
  color: var(--color-charcoal);
  box-shadow: inset -4px -4px 10px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.ball:hover {
  transform: scale(1.1) rotate(5deg);
}

.bg-yellow { background-color: var(--color-yellow); }
.bg-orange { background-color: var(--color-orange); color: white; }
.bg-coral { background-color: var(--color-coral); color: white; }
.bg-pink { background-color: var(--color-pink); color: white; }
.bg-purple { background-color: var(--color-purple); color: white; }
.bg-green { background-color: var(--color-green); }

.ball.plus, .ball.star {
  width: auto;
  min-width: 56px;
  border-radius: 28px;
  padding: 0 20px;
  background-color: var(--color-charcoal);
  color: var(--color-white);
  box-shadow: inset -4px -4px 10px rgba(255,255,255,0.1);
}

/* News Grid Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.news-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(255,122,0,0.15);
}
.news-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.news-img svg { width: 100px; height: 100px; }
.news-body {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-category {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-orange);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.news-body h3 {
  font-size: 22px;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.news-card:hover .news-body h3 {
  color: var(--color-orange);
}
.news-body p {
  color: var(--color-muted);
  font-size: 16px;
  margin-bottom: 24px;
  flex-grow: 1;
}
.news-date {
  font-size: 14px;
  color: #a0aab5;
  font-weight: bold;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-orange), var(--color-coral));
  color: white;
  text-align: center;
  border-radius: 24px;
  margin: 32px 20px;
  padding: 64px 20px;
}
.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-box h2 {
  color: white;
  margin-bottom: 16px;
}
.nl-form {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.nl-form input {
  flex-grow: 1;
  padding: 16px 20px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nl-form input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.4);
}
.nl-form button {
  background: var(--color-yellow);
  color: var(--color-charcoal);
}
.nl-form button:hover {
  background: var(--color-white);
  color: var(--color-orange);
}

/* Table of Contents */
.toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.toc-grid a {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: var(--color-white);
  border-radius: 16px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-charcoal);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.toc-grid a:hover {
  transform: translateY(-4px);
  border-color: var(--color-pink);
  box-shadow: 0 10px 25px rgba(236,72,153,0.15);
  color: var(--color-pink);
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.data-table th {
  background-color: var(--color-purple);
  color: white;
  padding: 16px;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 18px;
}
.data-table td {
  background-color: var(--color-white);
  padding: 16px;
  border-bottom: 1px solid var(--color-rules);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Definition Grid (Cards Style) */
.definition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 1.5rem;
}
.definition-grid dt {
  background-color: var(--color-green);
  color: var(--color-charcoal);
  padding: 12px 20px;
  border-radius: 12px 12px 0 0;
  font-family: var(--font-primary);
  font-size: 20px;
}
.definition-grid dt:nth-of-type(2n) { background-color: var(--color-yellow); }
.definition-grid dt:nth-of-type(3n) { background-color: var(--color-pink); color: white; }
.definition-grid dd {
  background-color: var(--color-white);
  padding: 20px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  margin-left: 0;
  color: var(--color-muted);
}

/* Clarification Box */
.clarification-box {
  background-color: var(--color-cream);
  border-left: 6px solid var(--color-orange);
  border-radius: 0 12px 12px 0;
  padding: 24px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Source references */
.source-ref {
  display: inline-block;
  font-size: 14px;
  background: var(--color-rules);
  padding: 8px 16px;
  border-radius: 50px;
  color: var(--color-muted);
  margin-top: 1.5rem;
  font-weight: 600;
}

/* FAQ */
details {
  background: var(--color-white);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  padding: 0;
  overflow: hidden;
}
summary {
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  color: var(--color-charcoal);
  padding: 20px;
  font-family: var(--font-primary);
  background: var(--color-white);
  transition: background 0.3s ease;
}
summary:hover {
  background: var(--color-cream);
}
summary::-webkit-details-marker {
  display: none;
}
details p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--color-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  max-width: 600px;
  padding: 14px;
  border: 2px solid var(--color-rules);
  border-radius: 12px;
  font-family: var(--font-base);
  font-size: 16px;
  transition: all 0.3s ease;
}
.form-control:focus {
  border-color: var(--color-orange);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,122,0,0.2);
}
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Age Modal */
.age-dialog {
  margin: auto;
  max-width: 500px;
  width: calc(100vw - 32px);
  background: var(--color-modal);
  border: none;
  border-top: 10px solid var(--color-pink);
  border-radius: 24px;
  padding: 40px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
}
.age-dialog::backdrop {
  background: rgba(36,36,36,0.6);
  backdrop-filter: blur(4px);
}
.age-badge {
  display: inline-block;
  background-color: var(--color-pink);
  color: #fff;
  font-size: 28px;
  font-family: var(--font-primary);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 24px;
  transform: rotate(-5deg);
  box-shadow: 0 4px 15px rgba(236,72,153,0.4);
}
.age-title {
  font-size: 32px;
  margin-bottom: 16px;
}
.age-desc {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 32px;
}
.age-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.btn-yes {
  background-color: var(--color-green);
  color: #fff;
  box-shadow: 0 6px 20px rgba(101,196,102,0.4);
}
.btn-yes:hover {
  background-color: #55a856;
}
.btn-no {
  background-color: var(--color-rules);
  color: var(--color-charcoal);
  border: none;
}
.btn-no:hover {
  background-color: #d0c5b3;
}
.age-links {
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: 20px;
  padding: 24px;
  z-index: 9999;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  gap: 20px;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show {
  display: flex;
  transform: translateY(0);
}
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    left: 50%;
    transform: translate(-50%, 150%);
  }
  .cookie-banner.show {
    transform: translate(-50%, 0);
  }
}
.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-text h3 {
  color: var(--color-yellow);
  margin-bottom: 8px;
  font-size: 22px;
}
.cookie-text p { margin-bottom: 0; font-size: 15px; color: #e0e0e0; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 14px; }
.cookie-actions .btn-tertiary { color: #fff; }

/* Footer */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 64px 0;
  font-size: 15px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
.footer-nav a {
  color: var(--color-yellow);
  font-weight: bold;
}
.footer-nav a:hover {
  color: var(--color-orange);
}
.footer-info p {
  color: #a0aab5;
}
#age-reopen {
  color: var(--color-pink);
  text-decoration: underline;
}

/* Animations */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.confetti {
  position: fixed;
  top: -20px;
  width: 12px;
  height: 12px;
  z-index: 10000;
  pointer-events: none;
  animation: fall linear forwards;
}
@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Mobile Adjustments */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--color-rules);
  }
  .main-nav.is-open { display: flex; }
}

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .section-pad { padding: 48px 0; }
  
  .hero-inner { flex-direction: column; }
  .hero-text { width: 100%; padding: 48px 0 24px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .hero-panel { min-height: auto; }
  
  .toc-grid { grid-template-columns: 1fr; }
  
  .newsletter-section { margin: 16px; padding: 48px 16px; }
  .nl-form { flex-direction: column; }
  
  .draw-card { padding: 20px; }
  .balls-container { justify-content: center; }
}
/* ENDFILE */