html, body {
  height: auto;             
  min-height: 100vh;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #e8fbff;

  background: linear-gradient(
    135deg,
    #071426 0%,
    #122b3a 40%,
    #183b4a 100%
  );

  background-attachment: fixed;
  overflow-x: hidden;
  overflow-y: auto;          
  position: relative;
}


body::before,
body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;

  pointer-events: none;      
  z-index: -1;               

  filter: blur(90px);
  border-radius: 50%;
}

body::before {
  top: -140px;
  left: -120px;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 230, 255, 0.45), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0, 120, 255, 0.25), transparent 45%);
}

body::after {
  bottom: -160px;
  right: -180px;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(circle at 40% 40%, rgba(0, 180, 255, 0.35), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(0, 90, 200, 0.25), transparent 50%);
}


  
  
  @keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
 
.glass {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 20, 40, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px;
}

  

  nav {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99;
  }
  
  nav a {
    color: #dfe6ff;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 12px;
    transition: 0.25s;
  }
  
  nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(120, 160, 255, 0.5);
  }
  
  
  h1, h2, h3 {
    font-weight: 600;
    text-shadow: 0 0 8px rgba(150, 180, 255, 0.45);
  }
  
 
  .btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 15px;
    cursor: pointer;
    color: #e5eaff;
    font-weight: 500;
    transition: 0.25s;
  }
  
  .btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(150, 180, 255, 0.5);
  }
  
  
  .country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .country-card {
    text-align: center;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: 0.25s;
    cursor: pointer;
    backdrop-filter: blur(8px);
  }
  
  .country-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
  }


.participants-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.participants-table th,
.participants-table td {
  padding: 12px 10px;
  vertical-align: middle;  
}


.participants-table th {
  text-align: left;
}


.participants-table th:nth-child(1),
.participants-table td:nth-child(1) { width: 35%; }

.participants-table th:nth-child(2),
.participants-table td:nth-child(2) { width: 30%; }

.participants-table th:nth-child(3),
.participants-table td:nth-child(3) { width: 35%; }


.country-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: block;
  margin: 0;              
  flex: 0 0 auto;
}

.country-name {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: left;
}



.calendar-month {
  margin-bottom: 30px;
}

.calendar-month-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.calendar-list {
  display: flex;
  flex-direction: column;
}

.calendar-row {
  display: grid;
  grid-template-columns: 40px 1fr 70px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}

.calendar-row:first-child {
  border-top: none;
}

.calendar-day {
  font-weight: 700;
  opacity: 0.8;
}

.calendar-info span {
  display: block;
  opacity: 0.75;
  font-size: 0.9rem;
}

.calendar-time {
  text-align: right;
  opacity: 0.7;
}

.calendar-row.highlight {
  background: rgba(0, 200, 255, 0.08);
  border-radius: 8px;
  margin: 4px 0;
}


.participants-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; 
}

.participants-table thead th {
  text-align: left;
  font-weight: 700;
  padding: 14px 12px;
  opacity: 0.9;
}

.participants-table td {
  padding: 14px 12px;
  vertical-align: middle;
}


.participants-table th:nth-child(1),
.participants-table td:nth-child(1) {
  width: 90px;
  text-align: center;
}

.participants-table th:nth-child(2),
.participants-table td:nth-child(2) {
  width: 220px;
}

.participants-table th:nth-child(3),
.participants-table td:nth-child(3) {
  width: auto;
}

.participants-table th:nth-child(4),
.participants-table td:nth-child(4) {
  width: 110px;
  text-align: center;
}

.participants-table th:nth-child(5),
.participants-table td:nth-child(5) {
  width: 160px;
  text-align: center;
}


.country-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-cell img.country-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}


.participants-table td a {
  display: inline-block;
  line-height: 1.35;
}


.participants-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.country-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-cell img.country-flag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* FOR MAINTENANCE DISPLAY, REMOVE ONCE PUBLISHED */

.maintenance-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 25, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-card {
  max-width: 750px;
  text-align: center;
  padding: 45px 40px;
}

.maintenance-card h1 {
  font-size: 2.1rem;
  margin-bottom: 18px;
}

.maintenance-card p {
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.9;
}


.status-pill {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 40px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.4px;
}

.status-pill.offline {
  color: #ff4b4b;
  background: rgba(255, 75, 75, 0.15);
  box-shadow:
    0 0 22px rgba(255, 75, 75, 0.75),
    inset 0 0 12px rgba(255, 75, 75, 0.35);
}

.maintenance-actions {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


.status-pill.back-home {
  text-decoration: none;
  color: #7ddcff;
  background: rgba(125, 220, 255, 0.15);
  box-shadow:
    0 0 20px rgba(125, 220, 255, 0.7),
    inset 0 0 12px rgba(125, 220, 255, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.status-pill.back-home:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 28px rgba(125, 220, 255, 0.9),
    inset 0 0 14px rgba(125, 220, 255, 0.45);
}
/* MAINTENANCE */

nav.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px;
  justify-content: center;
  text-align: center;
}

nav.nav a {
  padding: 8px 12px;
  font-size: 1rem;
  white-space: nowrap;
}


.hero {
  margin: 40px auto;
  width: 90%;
  max-width: 1100px;
  text-align: center;
}

.hero .subtitle {
  opacity: 0.9;
  font-size: 1.1rem;
}


.main-section {
  margin: 20px auto;
  width: 90%;
  max-width: 1100px;
}

.news-container {
  margin-top: 20px;
}


.cards-section {
  margin: 40px auto;
  width: 90%;
  max-width: 1100px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  padding: 25px;
  min-width: 120px;
  text-align: center;
  flex: 1 1 calc(33.333% - 20px);
}


@media (max-width: 768px) {
  nav.nav a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .card {
    flex: 1 1 100%;
  }

  .hero {
    margin-top: 20px;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  nav.nav {
    gap: 8px;
  }
  nav.nav a {
    font-size: 0.85rem;
  }
}


@media (max-width: 768px) {
  .glass {
    backdrop-filter: blur(10px);   
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.45);  
  }

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass {
    background: rgba(20, 40, 60, 0.85);
  }
}
}

html {
  color-scheme: dark;
}

body::before,
body::after {
  filter: blur(60px);
}
nav a.active {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(120,160,255,0.55);
}
.participants-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; 
}

.participants-table td{
  overflow-wrap: anywhere;
  word-break: break-word;
}


.calendar-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
/* roadmap (DONT MODIFY SHIT) */

.roadmap {
  position: relative;
  margin-top: clamp(110px, 14vw, 180px);
  padding: 34px 18px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}


.roadmap::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 44px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 12px rgba(120, 160, 255, 0.25);
  border-radius: 999px;
}

.roadmap-item {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 4px;
}


.roadmap-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  z-index: 2;
  outline: none;


  background:
    conic-gradient(
      rgba(0, 230, 255, 0.7) var(--rm-progress, 0%),
      rgba(255, 255, 255, 0.10) 0
    );
}

.roadmap-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(7, 20, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.roadmap-dot:hover,
.roadmap-dot:focus-visible {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 0 16px rgba(120, 160, 255, 0.55);
}


.roadmap-tooltip {
  position: absolute;
  top: -6px;
  transform: translateY(-100%);
  width: min(320px, 74vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  padding: 14px 14px;
  text-align: left;
  z-index: 10;
}

.roadmap-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.07);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  rotate: 45deg;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.roadmap-item:hover .roadmap-tooltip,
.roadmap-dot:focus-visible + .roadmap-tooltip {
  opacity: 1;
  transform: translateY(-110%);
}

.rm-date {
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 6px;
}

.rm-title {
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(150, 180, 255, 0.35);
}

.rm-text {
  opacity: 0.9;
  line-height: 1.45;
  font-size: 0.95rem;
  margin-bottom: 10px;
}


.rm-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rm-progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.rm-progress-fill {
  height: 100%;
  background: rgba(0, 230, 255, 0.55);
  box-shadow: 0 0 10px rgba(0, 230, 255, 0.35);
}

.rm-progress-label {
  font-weight: 700;
  opacity: 0.9;
  font-size: 0.95rem;
}


.rm-label {
  margin-top: 14px;
  text-align: center;
  opacity: 0.9;
}

.rm-label-date {
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.85;
}

.rm-label-title {
  font-size: 0.95rem;
}


.roadmap-error {
  margin-top: 14px;
  opacity: 0.9;
}


@media (max-width: 720px) {
  .roadmap {
    grid-template-columns: 1fr;
    padding: 10px 12px 6px;
    gap: 14px;
  }

  .roadmap::before {
    left: 22px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 2px;
    height: auto;
  }

  .roadmap-item {
    grid-template-columns: 44px 1fr;
    justify-items: start;
    align-items: center;
    padding-top: 0;
    gap: 12px;
  }

  .roadmap-dot {
    margin-left: 14px;
  }

  .rm-label {
    margin-top: 0;
    text-align: left;
  }

  .roadmap-tooltip {
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
  }

  .roadmap-item:hover .roadmap-tooltip,
  .roadmap-dot:focus-visible + .roadmap-tooltip {
    transform: translateY(-50%);
  }

  .roadmap-tooltip::after {
    left: 8px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    rotate: 135deg;
  }
}
/* MAINTENANCE */
.maintenance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0b1d2a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.maintenance-box {
  background: rgba(255,255,255,0.05);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: white;
  backdrop-filter: blur(10px);
}
.offline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 25px;
  padding: 14px 40px;
  border-radius: 999px;

  font-weight: 600;
  color: #ff6b6b;

  background: rgba(255, 0, 0, 0.08);

  position: relative;
}


.offline-pill::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;

  background: radial-gradient(
    ellipse at center,
    rgba(255, 70, 70, 0.6),
    rgba(255, 70, 70, 0.3),
    transparent 70%
  );

  filter: blur(12px);
  z-index: -1;
}

.offline-pill::after {
  content: "";
  position: absolute;
  inset: -25px;
  border-radius: 999px;

  background: radial-gradient(
    ellipse at center,
    rgba(255, 70, 70, 0.25),
    transparent 70%
  );

  filter: blur(25px);
  z-index: -2;
}