:root {
  --acid: #c7ff19;
  --ink: #0b0d0c;
  --panel: #121513;
  --muted: #969d97;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: #fff; background: var(--ink); }
a { color: inherit; text-decoration: none; }

.events-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 13, 12, .94);
  border-bottom: 1px solid #282c29;
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 900; letter-spacing: -.06em; }
.brand > span:last-child > span { color: var(--acid); }
.brand small { display: block; margin-top: -2px; font-size: 7px; letter-spacing: .22em; color: #aab0ab; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: var(--acid); transform: skew(-7deg); }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.map-link { padding: 12px 18px; font-weight: 800; font-size: 13px; border: 1px solid #3a403b; }
.map-link span { color: var(--acid); margin-left: 8px; }
.events-actions { display: flex; align-items: center; gap: 10px; }
.language-picker { height: 40px; display: flex; align-items: center; gap: 5px; padding: 0 8px; border: 1px solid #3a403b; background: #151916; }
.language-picker > span { color: var(--acid); }
.language-picker select { width: 82px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 10px; }

main { width: min(1120px, 90vw); margin: 0 auto; padding: 72px 0 110px; }
.events-hero { max-width: 800px; }
.eyebrow { color: #cbd0cc; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 800; }
.eyebrow span { display: inline-block; width: 22px; height: 3px; margin-right: 7px; background: var(--acid); vertical-align: middle; }
h1 { margin: 18px 0 12px; font-size: clamp(48px, 8vw, 105px); line-height: .82; letter-spacing: -.075em; }
h1 em { color: var(--acid); font-style: normal; }
.events-hero p { color: var(--muted); font-size: 17px; }

.events-toolbar { margin: 58px 0 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.events-toolbar label span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
select { min-width: 220px; padding: 14px 40px 14px 15px; color: #fff; background: #171a18; border: 1px solid #343a35; font: inherit; font-weight: 700; }
#eventsCount { color: var(--muted); font-size: 13px; }
.events-list { display: grid; gap: 12px; }

.event-card {
  --country: var(--acid);
  display: grid;
  grid-template-columns: 92px 1fr auto;
  min-height: 128px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #292e2a;
  border-left: 6px solid var(--country);
  transition: transform .2s ease, border-color .2s ease;
}
.event-card:hover { transform: translateY(-2px); border-color: var(--country); }
.event-date { display: grid; place-content: center; text-align: center; background: color-mix(in srgb, var(--country) 16%, #101210); }
.event-date strong { font-size: 39px; line-height: .9; }
.event-date span { margin-top: 7px; color: var(--country); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.event-copy { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.event-country { width: fit-content; margin-bottom: 8px; color: var(--country); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.event-copy h2 { margin: 0 0 8px; font-size: clamp(21px, 3vw, 31px); letter-spacing: -.04em; }
.event-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.event-arrow { width: 78px; display: grid; place-items: center; color: var(--country); font-size: 27px; border-left: 1px solid #292e2a; }
.empty { padding: 50px; text-align: center; color: var(--muted); background: var(--panel); border: 1px solid #292e2a; }
.live-status { position: fixed; right: 22px; bottom: 20px; padding: 11px 14px; color: #b8beb9; background: #161916; border: 1px solid #303530; font-size: 11px; font-weight: 800; }
.live-status span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.mobile-nav { display: none; }

.founder-popup {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  width: min(620px, calc(100vw - 32px));
  padding: 18px 48px 18px 21px;
  transform: translateX(-50%);
  background: rgba(17, 21, 18, .97);
  border: 1px solid #3a433c;
  border-left: 5px solid var(--acid);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
  animation: founder-arrival .45s ease both;
}
.founder-popup[hidden] { display: none; }
.founder-label { color: var(--acid); font-size: 8px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.founder-popup p { margin: 8px 0 5px; font-size: 18px; line-height: 1.2; font-style: italic; font-weight: 800; }
.founder-popup strong { display: block; color: #aeb6af; font-size: 10px; line-height: 1.45; }
.founder-popup small { display: block; margin-top: 10px; color: #7f8881; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.founder-popup small b { color: #fff; }
.founder-close { position: absolute; top: 10px; right: 11px; width: 28px; height: 28px; border: 1px solid #414a43; background: transparent; color: #aeb6af; font-size: 18px; cursor: pointer; }
.founder-close:hover { color: var(--acid); border-color: var(--acid); }
@keyframes founder-arrival {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 650px) {
  body { padding-bottom: 66px; }
  .events-topbar { height: 66px; padding: 0 16px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 34px; height: 34px; }
  .map-link { padding: 10px; font-size: 0; }
  .map-link span { margin: 0; font-size: 18px; }
  .events-actions { gap: 6px; }
  .language-picker { height: 36px; padding: 0 5px; }
  .language-picker > span { display: none; }
  .language-picker select { width: 36px; font-size: 8px; }
  main { width: calc(100% - 28px); padding-top: 45px; }
  .events-toolbar { align-items: stretch; flex-direction: column; }
  select { width: 100%; }
  .event-card { grid-template-columns: 72px 1fr 48px; min-height: 118px; }
  .event-date strong { font-size: 31px; }
  .event-copy { padding: 17px 14px; }
  .event-copy p { line-height: 1.5; }
  .event-arrow { width: 48px; }
  .live-status { right: 14px; bottom: 14px; }
  .live-status { bottom: 80px; }
  .founder-popup { bottom: 58px; padding: 16px 43px 16px 17px; }
  .founder-popup p { font-size: 16px; }
  .mobile-nav {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    padding: 0 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: #0b0d0c;
    border-top: 1px solid #2e3430;
  }
  .mobile-nav a {
    height: 100%;
    display: grid;
    place-content: center;
    gap: 4px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .08em;
  }
  .mobile-nav a span { font-size: 19px; line-height: 1; }
  .mobile-nav a.active { color: var(--acid); }
  .mobile-nav .mobile-create {
    width: 46px;
    height: 46px;
    place-self: center;
    background: var(--acid);
    color: var(--ink);
    transform: rotate(3deg);
  }
  .mobile-nav .mobile-create span { font-size: 28px; }
}
