:root {
  --red: #e8152a;
  --dark: #080b0f;
  --darker: #04060a;
  --mid: #111620;
  --light: #c8d4e8;
  --white: #f0f4ff;
  --accent: #00aaff;
  --gold: #f0a500;
  --green: #00cc66;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--darker); color: var(--white); font-family: "Barlow", sans-serif; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: linear-gradient(to bottom, rgba(4,6,10,0.95), transparent);
  backdrop-filter: blur(4px);
}
.nav-brand { display: flex; align-items: center; pointer-events: none; }
.nav-brand img { height: 160px; width: auto; display: block; border-radius: 8px; }

/* NAV WHEELS — shared scroll/drag picker used for both the year and class
   selectors (in that order in the markup). Item height lives in
   --wheel-item-h so the mobile breakpoint can resize it purely in CSS;
   app.js reads the same custom property at runtime, so the scroll/drag math
   never gets out of sync with what's drawn. */
.wheel-group { display: flex; align-items: center; gap: 0.6rem; }
.nav-wheel {
  --wheel-item-h: 34px;
  position: relative;
  height: calc(var(--wheel-item-h) * 3); width: 84px;
  overflow: hidden;
  cursor: ns-resize;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 32%, black 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 32%, black 68%, transparent 100%);
  user-select: none;
  touch-action: none;
  flex-shrink: 0;
}
.nav-wheel-track {
  position: absolute; top: 0; left: 0; right: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.nav-wheel-item {
  height: var(--wheel-item-h); line-height: var(--wheel-item-h); text-align: center;
  font-family: "Bebas Neue", sans-serif; font-size: 1rem; letter-spacing: 0.05em;
  color: rgba(240,244,255,0.3);
  transition: color 0.3s, font-size 0.3s;
}
.nav-wheel-item.center { color: var(--red); font-size: 1.65rem; cursor: pointer; }

/* HERO */
#hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
#hero-bg {
  position: absolute; inset: 0;
  background: url("brand/hero-bg.jpg") center/cover no-repeat;
  filter: brightness(0.3) saturate(1.4);
  transform: scale(1.05);
  animation: slowzoom 20s ease-in-out infinite alternate;
}
@keyframes slowzoom { from { transform: scale(1.05); } to { transform: scale(1.15); } }
#hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--darker) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 300;
  letter-spacing: 0.4em; font-size: 0.85rem; color: var(--accent);
  text-transform: uppercase; margin-bottom: 1rem;
  animation: fadeup 1s ease both;
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 14vw, 12rem); line-height: 0.9; letter-spacing: 0.02em;
  animation: fadeup 1s 0.2s ease both;
}
.hero-title span { color: var(--red); }
.hero-sub {
  font-family: "Barlow Condensed", sans-serif; font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.5rem); letter-spacing: 0.25em; color: var(--light);
  margin-top: 1rem; animation: fadeup 1s 0.4s ease both;
}
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0.5; font-family: "Barlow Condensed", sans-serif; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase; animation: fadeup 1s 1s ease both;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 40px; background: var(--white);
  animation: scrollline 1.5s ease-in-out infinite;
}
@keyframes scrollline { 0%,100% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* SECTION */
.section-header { text-align: center; padding: 5rem 2rem 3rem; }
.section-label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 300;
  letter-spacing: 0.4em; font-size: 0.75rem; color: var(--accent);
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title { font-family: "Bebas Neue", sans-serif; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; }

/* EVENTS GRID */
#events { padding: 0 2rem 6rem; max-width: 1400px; margin: 0 auto; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2px; }
.event-card { position: relative; height: 460px; overflow: hidden; cursor: pointer; background: var(--mid); }
.event-card:first-child { grid-column: span 2; }
.event-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.38) saturate(1.2);
}
.event-card:hover .event-card-img { transform: scale(1.08); filter: brightness(0.3) saturate(1.5); }
.event-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,6,10,0.95) 0%, transparent 60%); }
.event-card-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem;
  transition: transform 0.4s ease;
}

.event-type { font-family: "Barlow Condensed", sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.4rem; }
.type-world { color: var(--gold); }
.type-euro  { color: var(--accent); }
.event-round { font-family: "Barlow Condensed", sans-serif; font-weight: 300; font-size: 0.8rem; letter-spacing: 0.2em; color: var(--light); margin-bottom: 0.3rem; }
.event-name { font-family: "Bebas Neue", sans-serif; font-size: 2.4rem; line-height: 1; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.event-flag { height: 1.1em; width: auto; border-radius: 2px; box-shadow: 0 0 4px rgba(0,0,0,0.6); flex-shrink: 0; }
.modal-flag { height: 0.8em; width: auto; vertical-align: -0.05em; border-radius: 2px; box-shadow: 0 0 4px rgba(0,0,0,0.6); margin-right: 0.4rem; }
.event-dates { font-family: "Barlow", sans-serif; font-size: 0.85rem; color: var(--light); margin-bottom: 1.2rem; }
.entry-count-badge {
  display: inline-block; font-family: "Barlow Condensed", sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.15em; color: var(--accent);
  margin-bottom: 0.8rem;
}
.btn-register {
  display: inline-block; font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  padding: 0.7rem 1.8rem; background: var(--red); color: var(--white); border: none;
  cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  transition: background 0.2s;
}

.btn-register:hover { background: #ff2040; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(4,6,10,0.92); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(8px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--mid); width: 100%; max-width: 820px; max-height: 90vh; overflow-y: auto;
  position: relative; border-top: 3px solid var(--red);
  transform: translateY(40px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-hero { position: relative; height: 260px; overflow: hidden; }
.modal-hero > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(1.3); }
.modal-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--mid) 0%, transparent 60%); }
.modal-hero-content { position: absolute; bottom: 1.5rem; left: 2rem; right: 2rem; }
.modal-type { font-family: "Barlow Condensed", sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 0.3rem; }
.modal-title { font-family: "Bebas Neue", sans-serif; font-size: 3rem; line-height: 1; }
.modal-meta { font-size: 0.85rem; color: var(--light); margin-top: 0.3rem; }
.modal-class-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  background: var(--red); color: var(--white);
  font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem 0.25rem; border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.55);
}
.class-locked {
  background: rgba(232,21,42,0.12); border: 1px solid rgba(232,21,42,0.5);
  color: var(--red); padding: 0.75rem 1rem; font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem; letter-spacing: 0.1em; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.class-locked::after { content: "🔒 Set from class selector above"; font-family: "Barlow", sans-serif; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--light); text-transform: none; opacity: 0.7; }
.modal-body { padding: 2rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2); color: var(--white);
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 10;
}
.modal-close:hover { background: var(--red); }

/* TABS */
.tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem; }
.tab-btn {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 0.8rem 1.5rem;
  background: none; border: none; color: var(--light); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active { color: var(--white); border-bottom-color: var(--red); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: span 2; }
.form-section-title {
  grid-column: span 2;
  font-family: "Bebas Neue", sans-serif; font-size: 1.4rem; letter-spacing: 0.08em;
  color: var(--red); margin: 1.4rem 0 0.2rem; padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(232,21,42,0.3);
}
.form-section-title:first-child { margin-top: 0; }
.cockpit-section {
  grid-column: span 2;
  background: rgba(0,170,255,0.06); border: 1px solid rgba(0,170,255,0.25);
  padding: 1rem; border-radius: 4px;
}
.cockpit-header { font-size: 0.85rem; color: var(--light); margin-bottom: 0.8rem; line-height: 1.4; }
.cockpit-header strong { color: var(--accent); }
.cockpit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cockpit-fields .form-group.full { grid-column: span 2; }
.checkbox-row {
  display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer;
  font-size: 0.85rem; color: var(--light); line-height: 1.4;
  font-family: "Barlow", sans-serif; letter-spacing: 0; text-transform: none; font-weight: 400;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 0.15rem; flex-shrink: 0; width: 1.1rem; height: 1.1rem; cursor: pointer;
  accent-color: var(--red);
}
.form-group label {
  font-family: "Barlow Condensed", sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); padding: 0.75rem 1rem; font-family: "Barlow", sans-serif;
  font-size: 0.95rem; transition: border-color 0.2s; outline: none; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); background: rgba(0,170,255,0.06);
}
.form-group select option { background: var(--mid); }
.btn-submit {
  margin-top: 1.5rem; width: 100%; padding: 1rem; background: var(--red); color: var(--white);
  border: none; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1rem;
  letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 12px 100%); transition: background 0.2s;
}
.btn-submit:hover { background: #ff2040; }
.btn-submit:disabled { background: #555; cursor: not-allowed; }

/* HONEYPOT — hidden from real users, only bots fill it in */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ENTRIES */
.entries-list { display: flex; flex-direction: column; gap: 1px; }
.entry-item {
  background: rgba(255,255,255,0.04); padding: 1rem 1.5rem;
  display: grid; align-items: center; gap: 1rem;
  border-left: 3px solid var(--red);
  animation: slideIn 0.3s ease;
}
.entry-item.public-view { grid-template-columns: 3rem 1fr auto; }
.entry-item.admin-view  { grid-template-columns: 3rem 1fr 1fr auto; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.entry-num { font-family: "Bebas Neue", sans-serif; font-size: 2rem; color: var(--red); text-align: center; }
.entry-info .name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.1rem; }
.entry-info .nat { font-size: 0.8rem; color: var(--light); margin-top: 0.15rem; }
.entry-details { font-size: 0.8rem; color: var(--light); line-height: 1.6; }
.entry-flag { font-size: 1.8rem; text-align: right; }
.entries-empty {
  text-align: center; padding: 3rem; color: rgba(255,255,255,0.3);
  font-family: "Barlow Condensed", sans-serif; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.success-msg {
  background: rgba(0,204,102,0.1); border: 1px solid var(--green);
  padding: 1rem 1.5rem; margin-bottom: 1.5rem;
  font-family: "Barlow Condensed", sans-serif; font-size: 0.9rem; letter-spacing: 0.1em;
  color: var(--green); display: none;
}
.success-msg.show { display: block; }
.error-msg {
  background: rgba(232,21,42,0.1); border: 1px solid var(--red);
  padding: 1rem 1.5rem; margin-bottom: 1.5rem;
  font-family: "Barlow Condensed", sans-serif; font-size: 0.9rem; letter-spacing: 0.05em;
  color: var(--red); display: none;
}
.error-msg.show { display: block; }
.loading-msg {
  text-align: center; padding: 2rem; color: rgba(255,255,255,0.4);
  font-family: "Barlow Condensed", sans-serif; font-size: 0.85rem; letter-spacing: 0.2em;
}

/* RESULTS TABLE */
.results-block { margin-bottom: 2rem; }
.results-block:last-child { margin-bottom: 0; }
.results-block-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.8rem; flex-wrap: wrap; gap: 0.6rem;
}
.results-block-header .name {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.1rem;
}
.results-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: rgba(255,255,255,0.03); }
.results-table th, .results-table td {
  padding: 0.55rem 0.9rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08); white-space: nowrap;
}
.results-table th {
  font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.7rem; color: var(--accent); border-bottom: 2px solid var(--red);
}
.results-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* CHAMPIONSHIP STANDINGS */
.standings-section { padding: 0 2rem 6rem; max-width: 1400px; margin: 0 auto; }
.standings-table .standings-pos { font-family: "Bebas Neue", sans-serif; font-size: 1.1rem; }
.standings-table .standings-total { font-family: "Bebas Neue", sans-serif; font-size: 1.1rem; color: var(--white); }
.standings-table tr.standings-pos-1 td { background: rgba(240,165,0,0.12); }
.standings-table tr.standings-pos-1 .standings-pos { color: var(--gold); }
.standings-table tr.standings-pos-2 .standings-pos { color: var(--light); }
.standings-table tr.standings-pos-3 .standings-pos { color: #c47a3a; }

/* CHAMPION PODIUM */
.podium-wrap { text-align: center; padding: 1rem 0 2.5rem; }
.podium-champion-label {
  font-family: "Bebas Neue", sans-serif; font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.08em; color: var(--gold); margin-bottom: 2.5rem;
  text-shadow: 0 0 18px rgba(240,165,0,0.45);
}
/* flex-wrap: nowrap + shrinkable flex-basis (not a fixed width) means this
   fits 3-in-a-row at every viewport width by construction — no breakpoint
   needed, and nothing to overflow past `body`'s `overflow-x: hidden` and
   silently vanish. */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(0.4rem, 3vw, 1.2rem); flex-wrap: nowrap; width: 100%; max-width: 100%; box-sizing: border-box; }
.podium-step { position: relative; display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 0; max-width: 200px; opacity: 0; animation: podiumRise 0.6s ease forwards; }
.podium-step.podium-2 { animation-delay: 0.1s; }
.podium-step.podium-1 { animation-delay: 0.35s; }
.podium-step.podium-3 { animation-delay: 0.6s; }
@keyframes podiumRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.podium-driver { margin-bottom: 1rem; }
.podium-crown { font-size: 1.8rem; animation: podiumBounce 1.6s ease-in-out infinite; }
@keyframes podiumBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.podium-medal { font-size: 1.6rem; margin-bottom: 0.2rem; }
.podium-1 .podium-medal { font-size: 2.1rem; }
.podium-name {
  font-family: "Bebas Neue", sans-serif; letter-spacing: 0.05em; line-height: 1.05;
  font-size: 1.25rem; text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  overflow-wrap: anywhere; word-break: break-word;
}
.podium-1 .podium-name { font-size: 1.7rem; color: var(--gold); text-shadow: 0 0 14px rgba(240,165,0,0.55); }
.podium-nat { font-size: 0.75rem; color: var(--light); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }
.podium-pts { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.15em; color: var(--accent); margin-top: 0.4rem; }

.podium-block {
  width: 100%; border-radius: 6px 6px 0 0; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 0.6rem; font-family: "Bebas Neue", sans-serif; font-size: 2.2rem; color: rgba(4,6,10,0.55);
  box-shadow: 0 -2px 0 rgba(255,255,255,0.25) inset;
}
.podium-1 .podium-block { height: 160px; background: linear-gradient(180deg, #ffd35c, var(--gold)); }
.podium-2 .podium-block { height: 118px; background: linear-gradient(180deg, #e7edf7, #aab6c8); }
.podium-3 .podium-block { height: 88px;  background: linear-gradient(180deg, #d69a63, #a5652e); }

.podium-fx { position: absolute; inset: -60px 0 auto 0; height: 220px; pointer-events: none; overflow: visible; z-index: 3; }
.confetti-piece {
  position: absolute; top: -20px; width: 7px; height: 12px; opacity: 0.9;
  animation-name: confettiFall; animation-timing-function: ease-in; animation-iteration-count: infinite;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  100% { transform: translateY(240px) rotate(540deg); opacity: 0; }
}
.champagne-drop {
  position: absolute; bottom: 40px; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold));
  animation-name: champagnePop; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); animation-iteration-count: infinite;
}
@keyframes champagnePop {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  60%  { transform: translate(var(--drift), -70px) scale(1); opacity: 1; }
  100% { transform: translate(var(--drift), 30px) scale(0.7); opacity: 0; }
}
.podium-full-standings { max-width: 900px; margin: 2rem auto 0; }

@media (max-width: 640px) {
  /* Row-fitting itself is handled by .podium's width-independent flex
     rules above (fires at every width, not just this breakpoint) — this
     block is just smaller type for narrow screens. */
  .podium-name { font-size: 0.85rem; }
  .podium-1 .podium-name { font-size: 1.05rem; }
  .podium-nat { font-size: 0.65rem; }
  .podium-pts { font-size: 0.7rem; }
  .podium-medal { font-size: 1.2rem; }
  .podium-1 .podium-medal { font-size: 1.6rem; }
}

/* RESULTS ACCORDION (Qualification / Heats / Final Standings) */
.results-accordion { margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }
.results-accordion summary {
  cursor: pointer; padding: 1rem 1.2rem; font-family: "Bebas Neue", sans-serif; font-size: 1.3rem;
  letter-spacing: 0.06em; color: var(--accent); list-style: none;
  display: flex; align-items: center; justify-content: space-between; user-select: none;
}
.results-accordion summary::-webkit-details-marker { display: none; }
.results-accordion summary::after { content: "+"; font-size: 1.4rem; color: var(--red); line-height: 1; }
.results-accordion[open] summary::after { content: "\2212"; }
.results-accordion[open] summary { border-bottom: 1px solid rgba(255,255,255,0.1); }
.results-accordion-body { padding: 1rem 1.2rem; }
.results-heat-block { margin-bottom: 1.4rem; }
.results-heat-block:last-child { margin-bottom: 0; }
.results-heat-label {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--gold); margin-bottom: 0.5rem;
}
.results-docs { margin-top: 0.5rem; }
.results-docs-title {
  font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.15em; text-transform: uppercase;
  font-size: 0.7rem; color: var(--light); margin-bottom: 0.6rem; opacity: 0.7;
}

/* ADMIN LOGIN LINK PANEL (kept for visual parity — real auth lives server-side) */
.admin-login-panel {
  position: fixed; inset: 0; background: rgba(4,6,10,0.96); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  backdrop-filter: blur(12px);
}
.admin-login-panel.open { opacity: 1; pointer-events: all; }
.admin-login-box {
  background: var(--mid); padding: 3rem; width: 100%; max-width: 400px;
  border-top: 3px solid var(--gold); text-align: center;
}
.admin-login-box h2 {
  font-family: "Bebas Neue", sans-serif; font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--gold);
}
.admin-login-box p { font-size: 0.85rem; color: var(--light); margin-bottom: 2rem; letter-spacing: 0.05em; }
.admin-login-box input {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); padding: 0.9rem 1rem; font-family: "Barlow", sans-serif;
  font-size: 1rem; outline: none; margin-bottom: 1rem; text-align: center; letter-spacing: 0.1em;
}
.admin-login-box input:focus { border-color: var(--gold); }
.btn-admin-login {
  width: 100%; padding: 0.9rem; background: var(--gold); color: var(--darker);
  border: none; font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.3em; text-transform: uppercase; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%); transition: opacity 0.2s;
}
.btn-admin-login:hover { opacity: 0.85; }
.admin-error { color: var(--red); font-size: 0.8rem; margin-top: 0.5rem; min-height: 1.2rem; }
.btn-cancel-login {
  background: none; border: none; color: rgba(255,255,255,0.3); cursor: pointer;
  font-family: "Barlow Condensed", sans-serif; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-top: 1rem;
}
.btn-cancel-login:hover { color: var(--white); }

/* EXPORT BTN */
.export-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; padding: 1rem 1.5rem;
  background: rgba(240,165,0,0.08); border: 1px solid rgba(240,165,0,0.3);
}
.export-bar span {
  font-family: "Barlow Condensed", sans-serif; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
}
.btn-export {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 0.6rem 1.5rem;
  background: var(--gold); color: var(--darker); border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%); transition: opacity 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-export:hover { opacity: 0.85; }
.btn-delete {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 0.65rem;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 0.35rem 0.8rem;
  background: transparent; border: 1px solid rgba(232,21,42,0.5); color: var(--red);
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-delete:hover { background: var(--red); color: var(--white); }

footer {
  text-align: center; padding: 3rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-family: "Barlow Condensed", sans-serif; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3);
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--red); }
@media (max-width: 768px) {
  nav { padding: 0.6rem 0.8rem; gap: 0.5rem; }
  .nav-brand img { height: 42px; }
  .wheel-group { gap: 0.4rem; }
  .nav-wheel { --wheel-item-h: 22px; width: 52px; }
  .nav-wheel-item { font-size: 0.68rem; }
  .nav-wheel-item.center { font-size: 1.15rem; }
  .events-grid { grid-template-columns: 1fr; }
  .event-card:first-child { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: span 1; }
  #events { padding: 0 0 4rem; }
  .entry-item.admin-view { grid-template-columns: 3rem 1fr auto; }
  .entry-details { display: none; }
}
