/* ============================================================
   50 jaar Ton & Marie-Louise – Bierproeverij Zeeland
   ============================================================ */

:root {
  --gold: #c9a23d;
  --gold-deep: #a17e22;
  --gold-light: #e9d391;
  --green: #2c4a37;
  --green-deep: #1a2f23;
  --green-mid: #3f6b50;
  --cream: #faf4e6;
  --cream-deep: #f1e6cc;
  --paper: #fdf8ec;
  --ink: #2b2418;
  --ink-soft: #5a4a35;
  --burgundy: #7a2e2e;
  --sea: #4a7a8c;
  --sea-deep: #2c4d5c;
  --shadow-soft: 0 4px 18px rgba(43, 36, 24, 0.10);
  --shadow-mid: 0 8px 32px rgba(43, 36, 24, 0.16);
  --shadow-deep: 0 16px 50px rgba(43, 36, 24, 0.22);
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(circle at 10% 0%, rgba(201, 162, 61, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(74, 122, 140, 0.08), transparent 40%),
    var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Decorative paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,0.018) 1px, transparent 1px),
    radial-gradient(circle at 70% 65%, rgba(0,0,0,0.018) 1px, transparent 1px);
  background-size: 100px 100px, 80px 80px;
  pointer-events: none;
  z-index: 0;
}

main, header, section, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--green-deep); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }

p { margin-bottom: 0.8em; }
a { color: var(--green-mid); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

/* ============================================================ NAV */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 61, 0.25);
  box-shadow: 0 2px 0 rgba(255,255,255,0.6) inset;
}
.topnav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.5rem;
}
.brand {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--green-deep);
  display: flex; align-items: center; gap: 0.6rem;
}
.brand-mark { color: var(--gold); }

/* ============================================================ HOST/PARTICIPANT MODE */
body:not(.mode-host) [data-host-only] { display: none !important; }
body.mode-host [data-participant-only] { display: none !important; }

.lock-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(201, 162, 61, 0.5);
  color: var(--green-deep);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lock-btn:hover { background: var(--gold-light); border-color: var(--gold); }
.lock-btn .lock-icon { font-size: 0.85rem; }
body.mode-host .lock-btn { background: var(--green-deep); color: var(--gold-light); border-color: var(--green-deep); }
body.mode-host .lock-btn:hover { background: var(--green); }

.host-banner {
  display: none;
  position: relative;
  z-index: 40;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  color: var(--gold-light);
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}
body.mode-host .host-banner { display: block; }

.host-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 47, 35, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}
.host-overlay.open { display: flex; }
.host-card {
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--gold);
  padding: 2.4rem 2.4rem 2rem;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-deep);
}
.host-card .lock-emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.6rem;
}
.host-card h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.host-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.host-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gold);
  background: var(--cream);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.15em;
  color: var(--green-deep);
  margin-bottom: 1rem;
}
.host-card input:focus { outline: 2px solid var(--gold-deep); border-color: var(--gold-deep); background: white; }
.host-card .host-actions {
  display: flex; gap: 0.6rem; justify-content: center;
}
.host-card .error {
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.nav-links { display: flex; gap: 0.3rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--green-deep); background: rgba(201, 162, 61, 0.12); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--green-deep); padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; right: 1rem; background: var(--paper); padding: 0.5rem; border-radius: 8px; box-shadow: var(--shadow-mid); border: 1px solid var(--gold-light); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 1rem; }
  .nav-toggle { display: block; }
}

/* ============================================================ HERO */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 5vw 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text { animation: fadeRise 1s ease both; }
.hero-dates {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.hero-dates::before, .hero-dates::after { content: ''; display: inline-block; width: 30px; height: 1px; background: var(--gold); }
.hero-heart { color: var(--burgundy); font-size: 0.9em; }

.hero h1 {
  font-family: var(--display);
  margin-bottom: 0.4rem;
}
.hero h1 .gold { color: var(--gold-deep); }
.hero-script {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--green-mid);
  margin-bottom: 1.5rem;
  display: block;
}
.hero-couple {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--burgundy);
  margin: 1rem 0 2rem;
}
.hero-tagline {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  border: none; cursor: pointer;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--green-deep); color: var(--cream);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-mid); color: var(--cream); }
.btn-ghost {
  background: transparent; color: var(--green-deep);
  border: 1.5px solid var(--gold);
}
.btn-ghost:hover { background: var(--gold-light); color: var(--green-deep); }

.hero-visual {
  position: relative;
  animation: fadeIn 1.4s ease 0.2s both;
}
.hero-visual img {
  width: 100%; max-width: 620px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  border: 6px solid var(--cream);
  transition: filter 0.5s ease;
}

/* Deelnemers zien een geblurd hero-beeld zodat ze biernamen niet kunnen lezen */
body:not(.mode-host) .hero-visual img {
  filter: blur(16px) saturate(0.85) brightness(1.04);
}

.hero-veil {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(26, 47, 35, 0.92);
  color: var(--gold-light);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-mid);
  font-family: var(--display);
  font-size: 0.92rem;
  text-align: left;
  max-width: calc(100% - 3rem);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-veil-icon { font-size: 1.3rem; }
.hero-veil-text { line-height: 1.25; }
.hero-veil-text em {
  display: block;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(233, 211, 145, 0.75);
  letter-spacing: 0.02em;
}
.hero-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--green-deep);
  color: var(--gold-light);
  border-radius: 50%;
  width: 130px; height: 130px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-mid);
  font-family: var(--display);
  transform: rotate(-12deg);
  padding: 0.5rem;
}
.hero-badge .small { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }
.hero-badge .big { font-size: 1.5rem; font-weight: 700; line-height: 1; margin: 0.2rem 0; color: var(--gold); }
.hero-badge .heart { color: var(--burgundy); font-size: 0.9rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 2rem 1.2rem 2rem; gap: 2rem; min-height: auto; }
  .hero-badge { width: 100px; height: 100px; }
  .hero-badge .big { font-size: 1.2rem; }
}

/* ============================================================ SECTIONS */
section {
  padding: 5rem 5vw;
  max-width: 1400px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
  position: relative;
  padding: 0 2rem;
}
.section-head .eyebrow::before, .section-head .eyebrow::after {
  content: ''; position: absolute; top: 50%; width: 24px; height: 1px; background: var(--gold);
}
.section-head .eyebrow::before { left: -8px; }
.section-head .eyebrow::after  { right: -8px; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

@media (max-width: 700px) { section { padding: 3.5rem 1.2rem; } }

/* ============================================================ PROGRAMMA */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.program-step {
  background: var(--cream);
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
}
.program-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-mid); border-color: var(--gold); }
.program-step .num {
  position: absolute; top: -16px; left: 1rem;
  width: 36px; height: 36px;
  background: var(--green-deep); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: var(--display); font-weight: 700;
  border: 2px solid var(--gold);
}
.program-step h3 { font-size: 1.1rem; margin: 0.5rem 0 0.4rem; color: var(--green-deep); }
.program-step .duration {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.program-step p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ============================================================ ROUNDS */
.round-section { margin-top: 3rem; }
.round-header {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
  color: var(--gold-light);
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--green-deep);
  border-bottom: none;
}
.round-header .num-big {
  font-family: var(--display);
  font-size: 2.6rem; font-weight: 700;
  color: var(--gold);
  line-height: 1;
  border-right: 1px solid rgba(201, 162, 61, 0.4);
  padding-right: 1.2rem;
}
.round-header .info h3 { color: var(--cream); margin-bottom: 0.15rem; }
.round-header .info .sub { font-style: italic; color: var(--gold-light); font-family: var(--display); font-size: 1rem; opacity: 0.9; }
.round-emoji { margin-left: auto; font-size: 2rem; }
.round-description {
  background: var(--cream);
  border: 1px solid var(--gold-light);
  border-top: none;
  padding: 1rem 1.8rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 0 0 14px 14px;
  margin-bottom: 1.8rem;
}

/* ============================================================ BEER CARDS */
.beer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.beer-card {
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.6rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.beer-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.beer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); border-color: var(--gold); }
.beer-card .top {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem;
}
.beer-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-deep); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid var(--gold);
}
.beer-glass {
  width: 28px; height: 38px;
  border-radius: 4px 4px 12px 12px;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  border: 1.5px solid rgba(0,0,0,0.15);
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.4);
}
.beer-glass::before {
  content: '';
  position: absolute; top: -3px; left: -3px; right: -3px;
  height: 6px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.beer-card h3 {
  font-size: 1.25rem;
  color: var(--green-deep);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.beer-type {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.beer-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0.6rem 0 1rem;
}
.beer-pill {
  font-size: 0.78rem;
  background: var(--cream-deep);
  color: var(--ink-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 61, 0.35);
  white-space: nowrap;
}
.beer-pill.abv { background: var(--green-deep); color: var(--gold-light); border-color: var(--green-deep); font-weight: 600; }
.beer-flavor {
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex: 1;
}
.beer-card .footer-hint {
  margin-top: 1rem; padding-top: 0.8rem;
  border-top: 1px dashed rgba(201, 162, 61, 0.4);
  font-size: 0.8rem;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.4rem;
}

/* ============================================================ MODAL */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(26, 47, 35, 0.7);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.25s ease; }
.modal {
  background: var(--paper);
  border-radius: 18px;
  max-width: 720px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--gold);
  position: relative;
}
.modal-head {
  padding: 2rem 2.2rem 1.5rem;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: var(--gold-light);
  border-radius: 18px 18px 0 0;
  position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201, 162, 61, 0.3);
  color: var(--gold-light);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover { background: rgba(201, 162, 61, 0.3); }
.modal-head .num-modal {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  font-family: var(--display);
  font-weight: 700;
  width: 38px; height: 38px;
  border-radius: 50%;
  text-align: center; line-height: 38px;
  margin-bottom: 0.7rem;
}
.modal-head h3 { color: var(--cream); font-size: 1.8rem; margin-bottom: 0.2rem; }
.modal-head .modal-type {
  font-style: italic;
  color: var(--gold-light);
  font-family: var(--display);
}
.modal-body { padding: 1.6rem 2.2rem 2rem; }
.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.stat-box {
  background: var(--cream);
  border: 1px solid var(--gold-light);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
}
.stat-box .label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.stat-box .value {
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 0.15rem;
  font-weight: 500;
}
.modal-section { margin-bottom: 1.4rem; }
.modal-section h4 { margin-bottom: 0.5rem; }
.modal-section p { font-size: 0.95rem; color: var(--ink); }
.fun-fact {
  background: linear-gradient(135deg, rgba(201, 162, 61, 0.15), rgba(201, 162, 61, 0.05));
  border-left: 3px solid var(--gold);
  padding: 1rem 1.2rem;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
}

.deep-dive {
  background: linear-gradient(135deg, rgba(44, 74, 55, 0.06), rgba(44, 74, 55, 0.02));
  border: 1px solid rgba(44, 74, 55, 0.18);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 0.6rem;
  margin-top: 1.6rem !important;
}
.deep-dive > h4 {
  color: var(--green-deep);
  font-size: 0.95rem;
  margin-bottom: 1rem !important;
  border-bottom: 1px solid rgba(44, 74, 55, 0.15);
  padding-bottom: 0.6rem;
}
.dive-block {
  margin-bottom: 1.1rem;
}
.dive-block:last-child {
  margin-bottom: 0.6rem;
}
.dive-block h5 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 0.35rem;
  letter-spacing: 0;
  text-transform: none;
}
.dive-block p {
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
}

.sources-section h4 {
  color: var(--ink-soft);
  font-size: 0.7rem;
}
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sources-list li {
  margin: 0;
}
.sources-list a {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--cream);
  border: 1px solid rgba(201, 162, 61, 0.35);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.sources-list a:hover {
  background: var(--gold-light);
  color: var(--green-deep);
  border-color: var(--gold);
}

/* ============================================================ TASTING FORM */
.tasting-section { background: linear-gradient(180deg, transparent, rgba(201, 162, 61, 0.06)); }
.tasting-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.tab-btn {
  background: var(--cream);
  border: 1px solid var(--gold-light);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.tab-btn:hover { border-color: var(--gold); }
.tab-btn.active { background: var(--green-deep); color: var(--gold-light); border-color: var(--green-deep); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }

.score-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gold-light);
}
.score-table thead {
  background: var(--green-deep);
  color: var(--gold-light);
}
.score-table th {
  padding: 0.85rem 0.6rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.score-table th:first-child, .score-table td:first-child { padding-left: 1rem; }
.score-table th:last-child, .score-table td:last-child { padding-right: 1rem; }
.score-table tbody tr { background: var(--paper); transition: background 0.2s ease; }
.score-table tbody tr:nth-child(even) { background: rgba(201, 162, 61, 0.04); }
.score-table tbody tr:hover { background: rgba(201, 162, 61, 0.10); }
.score-table td {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(201, 162, 61, 0.18);
}
.score-table input[type="text"] {
  width: 100%;
  border: 1px solid rgba(201, 162, 61, 0.3);
  background: var(--cream);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink);
  text-align: left;
}
.score-table input[type="number"] {
  width: 60px;
  border: 1px solid rgba(201, 162, 61, 0.3);
  background: var(--cream);
  padding: 0.4rem 0.4rem;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.92rem;
  text-align: center;
  font-weight: 600;
  color: var(--green-deep);
}
.score-table input:focus { outline: 2px solid var(--gold); border-color: var(--gold); background: white; }
.score-table .score-num {
  width: 36px; height: 36px;
  background: var(--green-deep); color: var(--gold);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700;
  border: 2px solid var(--gold);
}
.total-cell {
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 1.05rem;
}
.score-table-wrap { overflow-x: auto; padding-bottom: 0.5rem; }

.tasting-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: 12px;
  border: 1px dashed var(--gold);
}
.total-display {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--green-deep);
}
.total-display strong { font-size: 2rem; color: var(--gold-deep); }

.player-name-input {
  background: var(--paper);
  border: 1px solid var(--gold);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  min-width: 180px;
}

.submit-status {
  margin-top: 1rem;
  padding: 0;
  font-size: 0.92rem;
  text-align: right;
  min-height: 1.4em;
  font-weight: 500;
}
.submit-status.ok { color: var(--green-mid); }
.submit-status.err { color: var(--burgundy); }
.submit-status.pending { color: var(--gold-deep); }

/* Host inbox */
.inbox-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--cream);
  border-radius: 12px;
  border: 1px dashed var(--gold);
}
.inbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
}
.inbox-card {
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-soft);
}
.inbox-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-mid); }
.inbox-card .name {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}
.inbox-card .meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}
.inbox-card .actions {
  display: flex; gap: 0.4rem; flex-wrap: wrap;
}
.inbox-card a, .inbox-card button {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--gold);
  color: var(--green-deep);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  transition: background 0.2s ease;
}
.inbox-card a:hover, .inbox-card button:hover { background: var(--gold-light); }
.inbox-detail {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(201, 162, 61, 0.4);
  font-size: 0.85rem;
  color: var(--ink);
}
.inbox-detail .row {
  display: flex; gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px dotted rgba(0,0,0,0.05);
}
.inbox-detail .row:last-child { border: 0; }
.inbox-detail .lbl { color: var(--ink-soft); min-width: 56px; }
.inbox-detail .val { font-weight: 600; }

/* ====== Results panel ====== */
.results-panel {
  margin-top: 2.4rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(201, 162, 61, 0.10), rgba(44, 74, 55, 0.04));
  border: 1px solid var(--gold);
  border-radius: 16px;
}
.results-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 162, 61, 0.3);
}
.results-head h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--green-deep);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.result-card {
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--gold-light);
  padding: 1.2rem 1.3rem 1rem;
  box-shadow: var(--shadow-soft);
}
.result-card h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 0.2rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.result-card .sub {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
}
.result-table tr { border-bottom: 1px dashed rgba(201, 162, 61, 0.25); }
.result-table tr:last-child { border-bottom: 0; }
.result-table td {
  padding: 0.5rem 0.3rem;
  vertical-align: middle;
}
.result-table .rank {
  width: 32px;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink-soft);
}
.result-table .rank-1 { color: var(--gold-deep); font-size: 1.2rem; }
.result-table .rank-2 { color: #8a7a3a; font-size: 1.1rem; }
.result-table .rank-3 { color: #a07b3a; font-size: 1.05rem; }
.result-table .name-cell {
  font-weight: 600;
  color: var(--ink);
}
.result-table .sub-cell {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.result-table .score-cell {
  text-align: right;
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold-deep);
  white-space: nowrap;
  font-size: 0.98rem;
}
.result-table .bar {
  width: 100%; height: 4px;
  background: rgba(201, 162, 61, 0.18);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.2rem;
}
.result-table .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 2px;
}
.result-empty {
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-align: center;
  padding: 1rem 0;
}

/* Open proeven cards */
.open-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}
.open-card {
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.open-card .num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: var(--green-deep); color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700;
  border: 2px solid var(--gold);
}
.open-card .body { flex: 1; }
.open-card h4 { color: var(--green-deep); font-family: var(--display); font-size: 1.1rem; text-transform: none; letter-spacing: 0; margin-bottom: 0.15rem; }
.open-card .sub { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.open-card .scoring { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.open-card .scoring label { font-size: 0.78rem; color: var(--ink-soft); }
.open-card input[type="number"] {
  width: 60px;
  border: 1px solid rgba(201, 162, 61, 0.3);
  background: var(--cream);
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: var(--green-deep);
}

/* ============================================================ TASTING TECHNIQUE */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.tech-card {
  background: var(--cream);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--gold-light);
  text-align: center;
  position: relative;
}
.tech-card::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: var(--green-deep);
  border: 3px solid var(--gold);
  border-radius: 50%;
  z-index: 1;
}
.tech-card .icon {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.tech-card h4 { margin-top: 1.6rem; margin-bottom: 0.5rem; color: var(--green-deep); font-size: 0.85rem; }
.tech-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================ VOTES + SUMMARY */
.vote-card {
  background: var(--paper);
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.vote-card label { display: block; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 0.4rem; }
.vote-card input, .vote-card textarea, .vote-card select {
  width: 100%;
  border: 1px solid rgba(201, 162, 61, 0.3);
  background: var(--cream);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.vote-card textarea { resize: vertical; min-height: 70px; }

/* ============================================================ FOOTER */
.site-footer {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: var(--gold-light);
  padding: 4rem 5vw 2rem;
  margin-top: 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.site-footer .toast {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.site-footer p { color: rgba(255,255,255,0.85); font-size: 0.95rem; max-width: 600px; margin: 0 auto 0.5rem; }
.site-footer .small { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 1.5rem; }

/* ============================================================ ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeRise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================ MISC HELPERS */
.divider {
  text-align: center;
  margin: 2.5rem auto;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--gold);
  font-size: 1.4rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; max-width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.toast-msg {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(2rem);
  background: var(--green-deep);
  color: var(--gold-light);
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--gold);
  font-size: 0.95rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 200;
}
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media print {
  .topnav, .nav-toggle, .hero-actions, .btn, .modal-backdrop { display: none !important; }
  body { background: white; }
}
