body {

  margin: 0;

  font-family: Arial, sans-serif;

  background: #0b0b0f;

  color: #ffffff;

}





.container {

  max-width: 900px;

  margin: 0 auto;

  padding: 40px 20px;

}







header {

  text-align: center;

  margin-bottom: 40px;

}







.logo {

  width: 360px;

  max-width: 95%;

  display: block;

  margin: 0 auto 25px auto;

}







h1 {

  font-size: 42px;

  letter-spacing: 2px;

  margin-bottom: 10px;

}







.tagline {

  color: #aaaaaa;

  font-size: 18px;

}



.slogan {

  color: #ffffff;

  font-weight: bold;

  letter-spacing: 2px;

}







.card {


  background: #15151d;


  padding: 25px;


  margin-bottom: 20px;


  border-radius: 10px;


}







.highlight {


  border-left: 4px solid #ff2d2d;


}







.button {


  display: inline-block;


  margin-top: 10px;


  padding: 12px 20px;


  background: #5865F2;


  color: white;


  text-decoration: none;


  border-radius: 6px;


  font-weight: bold;


}







.button:hover {


  opacity: 0.85;


}







.button.secondary {


  background: #ff2d2d;


}







footer {


  text-align: center;


  margin-top: 40px;


  color: #666;


  font-size: 12px;


}

.logo-small {
  width: 240px;
}

.join-card {
  padding: 30px;
}

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.join-panel h2 {
  margin-top: 0;
  font-size: 22px;
}

.hint {
  color: #aaaaaa;
  line-height: 1.5;
}

.hint-small {
  font-size: 13px;
  margin-top: 12px;
}

.join-button {
  margin-top: 16px;
  font-size: 16px;
  padding: 14px 24px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.link-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: #cccccc;
  word-break: break-all;
}

.button-copy {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: bold;
}

.button-copy:hover {
  background: #333;
}

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
  margin: 16px 0 12px;
}

.qr-image {
  display: block;
  width: 256px;
  height: 256px;
}

.download-qr {
  margin-top: 0;
}

.join-steps {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.back-link {
  text-align: center;
  margin: 24px 0;
}

.back-link a {
  color: #5865F2;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .join-grid {
    grid-template-columns: 1fr;
  }

  .qr-panel {
    order: -1;
  }
}

/* ——— Calendar ——— */

.container--wide {
  max-width: 1200px;
}

.cal-page-header {
  text-align: center;
  margin-bottom: 24px;
}

.cal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.cal-nav__label {
  min-width: 160px;
  font-size: 18px;
}

.cal-nav__btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: bold;
}

.cal-nav__btn:hover {
  background: #333;
}

.cal-nav__btn--today {
  background: #5865F2;
  border-color: #5865F2;
}

.cal-nav__btn--today:hover {
  background: #4752c4;
}

.cal-status {
  text-align: center;
  opacity: 0.7;
  font-size: 13px;
  margin-top: 10px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.cal-head {
  background: #222;
  text-align: center;
  font-weight: bold;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 13px;
}

.cal-day {
  background: #15151d;
  border-radius: 8px;
  min-height: 130px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  border: 1px solid #222;
}

.cal-day--empty {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.cal-day--today {
  border-color: #5865F2;
  box-shadow: inset 0 0 0 1px #5865F2;
}

.cal-day__num {
  font-weight: bold;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cal-day__count {
  background: #5865F2;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
}

.cal-day__events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 220px;
}

.event-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 68px;
  flex-shrink: 0;
}

.event-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.event-card--ride .event-card__overlay {
  background: linear-gradient(to bottom, rgba(80, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.event-card--event .event-card__overlay {
  background: linear-gradient(to bottom, rgba(30, 35, 100, 0.45) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.event-card__content {
  position: relative;
  z-index: 1;
  padding: 6px;
  color: #fff;
  font-size: 10px;
  line-height: 1.35;
  min-height: 68px;
  display: flex;
  flex-direction: column;
}

.event-card__title {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__sponsor {
  opacity: 0.9;
  font-size: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__details {
  margin-top: auto;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.event-card__details:hover {
  background: rgba(255, 255, 255, 0.28);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal-panel {
  position: relative;
  background: #15151d;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: #fff;
}

.modal-header {
  margin-bottom: 16px;
  padding-right: 28px;
}

.modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.modal-badge--ride {
  background: #ff2d2d;
  color: #fff;
}

.modal-badge--event {
  background: #5865F2;
  color: #fff;
}

.modal-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.modal-sponsor {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

.modal-flyer {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.detail-list {
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #222;
  font-size: 14px;
}

.detail-row dt {
  color: #888;
  font-weight: bold;
}

.detail-row dd {
  margin: 0;
  word-break: break-word;
}

.detail-row a {
  color: #5865F2;
}

@media (max-width: 900px) {
  .cal-grid {
    gap: 4px;
  }

  .cal-day {
    min-height: 100px;
  }

  .cal-day__events {
    max-height: 160px;
  }

  .event-card {
    min-height: 58px;
  }

  .event-card__content {
    min-height: 58px;
  }
}

@media (max-width: 600px) {
  .cal-head {
    font-size: 11px;
    padding: 8px 2px;
  }

  .cal-day__num {
    font-size: 11px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}