/**
 * ============================================================================
 * Chaitanya 2k26 — Events Page & Competition Arena Styles
 * ============================================================================
 * High-impact brutalist glassmorphic aesthetic matching the main site & /contact:
 * - Frosted ethereal glassmorphism with subtle noise texture
 * - Bold display headers in DrukMedium
 * - Monospace tags, brackets, and badges in IBM Plex Mono
 * - High-contrast responsive card grid and slide-in dossier drawer
 */

/* Main Page Container */
.events-page-root {
  min-height: 100vh;
  width: 100%;
  padding: 85px 24px 60px;
  background-image: url(/images/footerPatern.png), linear-gradient(0deg, #b4cbf5, #f7faff), linear-gradient(0deg, #96bbff, #edf4ff);
  background-repeat: repeat;
  background-size: 80px;
  background-attachment: fixed;
  box-sizing: border-box;
  position: relative;
}

body:has(.events-page-root) .transition-component,
.has-events-page .transition-component {
  display: none !important;
  opacity: 0 !important;
  clip-path: circle(0 at 50% 50%) !important;
  -webkit-clip-path: circle(0 at 50% 50%) !important;
  pointer-events: none !important;
}

@media (max-width: 991px) {
  .events-page-root {
    padding: 72px 12px 48px;
  }
}

.events-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================================================
 * 1. HERO SECTION
 * ============================================================================ */
.events-hero {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  width: 100%;
  opacity: 1;
}

.events-hero-tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #000000;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
}

.events-hero-title {
  font-family: "DrukMedium", sans-serif;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.85;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 10px;
}

.events-hero-subtitle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.75);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.4;
}

/* Stats Pill Strip */
.events-stats-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.events-stat-pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 40, 100, 0.06);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.events-stat-pill.highlight {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* ============================================================================
 * 2. STICKY FILTER BAR & SEARCH
 * ============================================================================ */
.events-toolbar {
  position: sticky;
  top: 70px;
  z-index: 50;
  margin-bottom: 32px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1.5px solid #ffffff;
  border-radius: 40px;
  box-shadow: 0 12px 36px rgba(0, 40, 120, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-toolbar.is-pinned {
  top: 70px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 16px 40px rgba(0, 30, 90, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateZ(0);
}

@media (max-width: 991px) {
  .events-toolbar {
    top: 62px;
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    gap: 12px;
  }
}

/* Category Filter Tabs */
.events-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
  max-width: 100%;
}

.events-categories::-webkit-scrollbar {
  display: none;
}

.events-cat-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 30px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.events-cat-btn:hover {
  background: #ffffff;
  border-color: #000000;
  transform: translateY(-1px);
}

.events-cat-btn.active {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.events-cat-btn .cat-count {
  font-size: 10px;
  opacity: 0.7;
}

/* Search Box */
.events-search-wrap {
  position: relative;
  min-width: 260px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .events-search-wrap {
    width: 100%;
  }
}

.events-search-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 30px;
  padding: 8px 36px 8px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  color: #000000;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
}

.events-search-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.events-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #666666;
  padding: 0;
  display: none;
}

.events-search-clear.active {
  display: block;
}

/* ============================================================================
 * 3. EVENT CARDS GRID
 * ============================================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

@media (max-width: 767px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Individual Event Card */
.event-card {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  background-image: url(/images/footerPatern.png);
  background-repeat: repeat;
  background-size: 70px;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 2px solid #ffffff;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 20px 48px rgba(0, 30, 90, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 #ffffff;
  opacity: 0;
  transform: translateY(36px) scale(0.975);
  transition: 
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.event-card.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.event-card.is-revealed:hover {
  transform: translateY(-5px) scale(1.008);
  box-shadow: 
    0 32px 64px rgba(0, 30, 90, 0.14),
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 #ffffff;
  border-color: #000000;
}

/* Corner plus glyphs */
.event-card .corner {
  position: absolute;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.25);
  user-select: none;
}
.event-card .corner-tl { top: 8px; left: 10px; }
.event-card .corner-tr { top: 8px; right: 10px; }
.event-card .corner-bl { bottom: 8px; left: 10px; }
.event-card .corner-br { bottom: 8px; right: 10px; }

/* Card Top Badges */
.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.event-badge-category {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid currentColor;
}

.event-badge-format {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #333333;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Card Titles */
.event-card-title {
  font-family: "DrukMedium", sans-serif;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 8px;
}

.event-card-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.4;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Card Metadata Grid */
.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 18px;
}

.event-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.event-meta-label {
  color: #666666;
  font-weight: 500;
  text-transform: uppercase;
}

.event-meta-val {
  color: #000000;
  font-weight: 600;
  text-transform: uppercase;
  text-align: right;
}

.event-meta-val.prize {
  color: #005a3c;
  font-weight: 700;
}

/* Card Action Buttons */
.event-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.event-btn-details {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #000000;
  color: #000000;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-btn-details:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.event-btn-register {
  flex: 1.2;
  background: #000000;
  border: 1.5px solid #000000;
  color: #ffffff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-btn-register:hover {
  background: #222222;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.event-btn-register.registered {
  background: #005a3c;
  border-color: #005a3c;
  color: #ffffff;
}

/* Empty State */
.events-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: "IBM Plex Mono", monospace;
  color: #666666;
  grid-column: 1 / -1;
}

.events-empty h3 {
  font-family: "DrukMedium", sans-serif;
  font-size: 32px;
  color: #000000;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ============================================================================
 * 4. EVENT DETAILS DOSSIER DRAWER
 * ============================================================================ */
.event-dossier-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999 !important;
  background: rgba(220, 232, 252, 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: flex-end;
}

.event-dossier-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.event-dossier-panel {
  width: 100%;
  max-width: 620px;
  height: 100%;
  background: rgba(255, 255, 255, 0.94);
  background-image: url(/images/footerPatern.png);
  background-repeat: repeat;
  background-size: 80px;
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border-left: 2px solid #ffffff;
  box-shadow: -20px 0 60px rgba(0, 30, 90, 0.15);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 32px 28px 40px;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.event-dossier-panel::-webkit-scrollbar {
  display: none;
}

.event-dossier-overlay.active .event-dossier-panel {
  transform: translateX(0);
}

.event-dossier-close {
  align-self: flex-end;
  background: #ffffff;
  border: 1.5px solid #000000;
  color: #000000;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.event-dossier-close:hover {
  background: #000000;
  color: #ffffff;
}

/* Dossier Header */
.event-dossier-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid currentColor;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.event-dossier-title {
  font-family: "DrukMedium", sans-serif;
  font-size: 38px;
  line-height: 0.92;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 10px;
}

.event-dossier-tagline {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  color: #444444;
  margin-bottom: 20px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Dossier Specs Grid */
.event-dossier-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

@media (max-width: 480px) {
  .event-dossier-specs {
    grid-template-columns: 1fr;
  }
}

.event-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-spec-k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: #777777;
  text-transform: uppercase;
}

.event-spec-v {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  text-transform: uppercase;
}

/* Dossier Content Blocks */
.event-dossier-section {
  margin-bottom: 24px;
}

.event-dossier-heading {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #000000;
  border-bottom: 1.5px solid #000000;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.event-dossier-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #222222;
  line-height: 1.6;
}

.event-dossier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-dossier-list li {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #111111;
  position: relative;
  padding-left: 20px;
}

.event-dossier-list li:before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #000000;
}

/* Coordinator Box */
.event-coordinator-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.event-coord-info {
  display: flex;
  flex-direction: column;
}

.event-coord-name {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #000000;
}

.event-coord-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: #666666;
  text-transform: uppercase;
}

.event-coord-actions {
  display: flex;
  gap: 8px;
}

.event-coord-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: #000000;
  background: #ffffff;
  border: 1px solid #000000;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.event-coord-btn:hover {
  background: #000000;
  color: #ffffff;
}

/* ============================================================================
 * 5. REGISTRATION & PAYMENT MODAL
 * ============================================================================ */
.event-reg-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000 !important;
  background: rgba(220, 232, 252, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.event-reg-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.event-reg-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.94);
  background-image: url(/images/footerPatern.png);
  background-repeat: repeat;
  background-size: 80px;
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  border: 2px solid #ffffff;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 30px 90px rgba(0, 40, 120, 0.15);
  box-sizing: border-box;
}

.event-reg-card::-webkit-scrollbar {
  display: none;
}

.event-reg-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #ffffff;
  border: 1.5px solid #000000;
  color: #000000;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
}

.event-reg-close:hover {
  background: #000000;
  color: #ffffff;
}

.event-reg-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.event-reg-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-reg-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.event-reg-input {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: #000000;
  outline: none;
  transition: border-color 0.2s ease;
}

.event-reg-input:focus {
  border-color: #000000;
}

/* Payment Box with QR Code */
.event-upi-payment-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #000000;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.event-qr-display {
  width: 140px;
  height: 140px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
}

.event-qr-display img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-upi-id-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: #000000;
}

.event-upi-copy-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 3px 8px;
  border-radius: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  cursor: pointer;
  text-transform: uppercase;
}

.event-submit-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.event-submit-btn:hover {
  background: #222222;
  transform: translateY(-1px);
}

/* ============================================================================
 * 9. SCROLL MOTION UI & FLOATING HUD
 * ============================================================================ */

/* Top Scroll Progress Accent Bar */
#events-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #005a3c 0%, #0047bb 50%, #7c3aed 100%);
  z-index: 100001;
  pointer-events: none;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(0, 71, 187, 0.45);
}

/* Hero Ambient Parallax Coordinates */
.events-hero-coords {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.42);
  letter-spacing: 2px;
  margin-bottom: 8px;
  user-select: none;
  transition: transform 0.1s linear;
}

/* Brutalist Floating Scroll HUD */
.events-scroll-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid #000000;
  padding: 8px 16px;
  border-radius: 40px;
  box-shadow: 0 16px 36px rgba(0, 30, 90, 0.15), inset 0 1px 0 #ffffff;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-scroll-hud.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.events-scroll-metric {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.events-scroll-metric .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #005a3c;
  animation: hudPulse 2s infinite ease-in-out;
}

@keyframes hudPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.35; }
}

.events-scroll-top-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-scroll-top-btn:hover {
  background: #005a3c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 90, 60, 0.3);
}

/* Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
  .event-card {
    transition: opacity 0.2s ease !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .events-scroll-hud {
    transition: opacity 0.2s ease !important;
    transform: none !important;
  }
  #events-scroll-progress {
    transition: none !important;
  }
}

/* ==========================================================================
   Registration modal & entry pass (v2)
   ========================================================================== */
.events-hero-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #555555;
  margin-top: 14px;
  letter-spacing: 0.3px;
}

.event-reg-head {
  text-align: center;
  margin-bottom: 18px;
}

.event-reg-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  color: #005a3c;
  letter-spacing: 0.6px;
}

.event-reg-title {
  font-family: "DrukMedium", sans-serif;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1;
  margin: 6px 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.event-reg-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #555555;
  line-height: 1.5;
}

.event-reg-sub a,
.event-reg-closed-note a {
  color: #000000;
  text-decoration: underline;
}

.event-reg-mode {
  border: none;
  padding: 0;
  margin: 0;
}

.event-reg-mode label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
}

.event-reg-hint {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: #666666;
}

.event-reg-code,
.event-reg-utr {
  letter-spacing: 1.5px;
  font-weight: 700;
}

.event-reg-code {
  text-transform: uppercase;
}

.event-reg-input:focus-visible,
.event-submit-btn:focus-visible,
.event-upi-copy-btn:focus-visible,
.event-upi-app-btn:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.event-reg-input[readonly] {
  background: #f4f4f4;
  color: #555555;
}

.event-reg-free-note,
.event-reg-closed-note {
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
}

.event-reg-free-note {
  background: #eafaf1;
  border: 1.5px solid #2ecc71;
  color: #1e7a46;
  font-weight: 700;
  text-align: center;
}

.event-reg-closed-note {
  background: #fff8e6;
  border: 1.5px solid #f5a623;
  color: #5c4100;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-upi-amount {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.event-upi-app-btn {
  display: inline-block;
  background: #005a3c;
  color: #ffffff;
  border-radius: 30px;
  padding: 10px 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.event-upi-help {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: #444444;
  line-height: 1.5;
  margin: 0;
}

#reg-payment-box .event-reg-group {
  width: 100%;
  text-align: left;
}

.event-reg-error {
  color: #b00020;
  background: #fdecee;
  border: 1px solid #f5c2c7;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.event-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.event-submit-btn.secondary {
  background: transparent;
  color: #000000;
  border: 1.5px solid #000000;
  box-shadow: none;
  width: 100%;
}

.event-pass,
.event-pass-loading {
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
}

.event-pass-loading {
  padding: 40px 0;
  font-size: 12px;
  color: #555555;
}

.event-pass-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

.event-pass-status.ok {
  color: #005a3c;
  background: #eafaf1;
}

.event-pass-status.pending {
  color: #6b4a00;
  background: #fff3cd;
}

.event-pass-status.bad {
  color: #8a1020;
  background: #fdecee;
}

.event-pass-ticket {
  background: #ffffff;
  border: 2px dashed #000000;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0 12px;
  text-align: left;
}

.event-pass-ticket dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.event-pass-ticket dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  font-size: 11.5px;
}

.event-pass-ticket dt {
  color: #777777;
  font-weight: 600;
}

.event-pass-ticket dd {
  margin: 0;
  color: #000000;
  overflow-wrap: anywhere;
}

.event-pass-ticket .mono {
  letter-spacing: 1px;
  font-weight: 700;
}

.event-pass-code {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #555555;
}

.event-pass-code strong {
  font-family: "DrukMedium", sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: #000000;
}

.event-pass-note {
  font-size: 11px;
  color: #444444;
  line-height: 1.5;
  margin: 0 0 12px;
}

@media (max-width: 480px) {
  .event-reg-card {
    padding: 26px 18px;
    border-radius: 20px;
  }
}

/* ==========================================================================
   Performance: phones, tablets and low-power devices
   Backdrop blur is the most expensive effect while scrolling; the cards are
   already near-opaque, so swap blur for a solid tint where it costs most.
   ========================================================================== */
@media (hover: none), (max-width: 1024px) {
  .event-card,
  .events-toolbar,
  .events-toolbar.is-pinned,
  .events-scroll-hud,
  .event-dossier-panel,
  .event-reg-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .event-card {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(0, 40, 120, 0.08);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .events-toolbar.is-pinned,
  .events-scroll-hud,
  .event-dossier-panel,
  .event-reg-card {
    background-color: rgba(255, 255, 255, 0.97);
  }

  .event-reg-modal,
  .event-dossier-overlay {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(220, 226, 236, 0.75);
  }
}

.event-card {
  contain: layout paint;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.event-btn-register.is-closed,
.event-btn-register:disabled {
  background: transparent;
  color: #777777;
  border-color: rgba(0, 0, 0, 0.2);
  cursor: not-allowed;
  box-shadow: none;
}

/* Display headings: open up the condensed Druk letterforms for readability */
.events-hero-title,
.event-card-title,
.events-empty h3,
.event-dossier-title,
.event-reg-title {
  letter-spacing: 0.04em;
  word-spacing: 0.08em;
}

.event-pass-code strong {
  letter-spacing: 0.12em;
}

/* ==========================================================================
   Cart, checkout & event actions
   ========================================================================== */
.event-btn-register.in-cart,
.event-action-large.in-cart {
  background: #ffffff;
  color: #000000;
}

.event-btn-register.registered,
.event-action-large.registered {
  background: #eafaf1;
  border-color: #2ecc71;
  color: #005a3c;
  box-shadow: none;
}

.event-dossier-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.event-action-large {
  width: 100%;
  border: 1.5px solid #000000;
}

.event-link-btn {
  border: none;
  background: none;
  padding: 4px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #000000;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

/* Floating cart button */
.events-cart-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 30px;
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.events-cart-fab.has-items {
  background: #000000;
  color: #ffffff;
}

.events-cart-fab-count {
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e63b7a;
  color: #ffffff;
  font-size: 11px;
  padding: 0 6px;
}

/* Cart drawer */
.events-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(214, 220, 232, 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.events-cart-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0s;
}

.events-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border-left: 2px solid #ffffff;
  box-shadow: -20px 0 60px rgba(0, 40, 120, 0.12);
  font-family: "IBM Plex Mono", monospace;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.events-cart-overlay.active .events-cart-panel {
  transform: none;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 22px 12px;
}

.cart-head h3 {
  font-family: "DrukMedium", sans-serif;
  font-size: 30px;
  margin: 0;
  letter-spacing: 0.04em;
}

.cart-close {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0 22px;
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cart-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
}

.cart-item-main strong {
  font-size: 12px;
}

.cart-item-main span {
  color: #555555;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.cart-amount {
  font-size: 12px;
  font-weight: 700;
}

.cart-remove {
  border: none;
  background: none;
  padding: 2px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: #b00020;
  text-decoration: underline;
  cursor: pointer;
}

.cart-type {
  font-size: 10px !important;
  font-weight: 700;
  color: #000000 !important;
}

.cart-mode {
  display: inline-flex;
  border: 1.5px solid #000000;
  border-radius: 20px;
  overflow: hidden;
  width: max-content;
  margin-top: 2px;
}

.cart-mode button {
  border: none;
  background: transparent;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.cart-mode button.active {
  background: #000000;
  color: #ffffff;
}

.cart-foot {
  padding: 16px 22px 22px;
  border-top: 2px solid #000000;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 12px;
}

.cart-done {
  width: 100%;
}

.cart-empty {
  padding: 40px 22px;
  text-align: center;
  font-size: 12px;
  color: #555555;
}

/* Toast */
.events-toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 100002;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: #000000;
  color: #ffffff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 30px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.events-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Checkout */
.checkout-steps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 18px 0 14px;
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.checkout-steps li {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.06);
  color: #777777;
}

.checkout-steps li.current {
  background: #000000;
  color: #ffffff;
}

.checkout-steps li.done {
  background: #eafaf1;
  color: #005a3c;
}

.checkout-step {
  animation: pp-fade-in 0.26s ease both;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-nav {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.checkout-nav .event-submit-btn {
  flex: 1;
}

.co-team {
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-team legend {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
}

.co-team legend span {
  font-weight: 400;
  color: #666666;
}

.co-leader {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f4f4f4;
}

.co-member {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.checkout-summary {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.checkout-summary li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

.checkout-summary em {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: #666666;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  margin: 12px 0 14px;
}

.checkout-codes {
  background: #ffffff;
  border: 2px dashed #000000;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.checkout-codes ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.checkout-codes li {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.checkout-codes .mono {
  letter-spacing: 1.5px;
}

select.event-reg-input {
  appearance: auto;
}

@media (max-width: 600px) {
  .events-cart-fab {
    left: 16px;
    bottom: 16px;
  }
  .checkout-row,
  .co-member {
    grid-template-columns: 1fr;
  }
  .co-member .cart-remove {
    justify-self: end;
  }
}

@media (hover: none), (max-width: 1024px) {
  .events-cart-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(214, 220, 232, 0.75);
  }
}

/* Event details: rounds & scoring */
.event-rounds {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-round {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: "IBM Plex Mono", monospace;
}

.event-round-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
}

.event-round-head span {
  color: #555555;
  font-size: 10.5px;
  text-align: right;
}

.event-round p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #333333;
  line-height: 1.5;
}

.event-scoring {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
}

.event-score-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.event-score-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Performance
   ========================================================================== */
/* The cards are near-opaque, so the blur behind them was invisible but forced
   the browser to re-blur 20 card areas on every scroll frame. */
.event-card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: rgba(255, 255, 255, 0.92);
}

/* Once revealed, drop the permanent GPU layer and let the hover tilt follow
   the mouse quickly (the 0.6s reveal transition made it trail behind). */
.event-card.is-revealed {
  will-change: auto;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s ease-out,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* A fixed background repaints the whole page on every scroll frame. */
.events-page-root {
  background-attachment: scroll;
}

/* The sticky toolbar and scroll counter sit over cards that move on every
   scroll frame, so their backdrop blur had to be recomputed constantly. */
.events-toolbar,
.events-toolbar.is-pinned,
.events-scroll-hud {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.events-toolbar {
  background: rgba(255, 255, 255, 0.95);
}

.events-toolbar.is-pinned,
.events-scroll-hud {
  background: rgba(255, 255, 255, 0.97);
}
