:root {
  --card-color: #fafafa;
  --text-color: #fafafa;
  --text-color-dark: #0a0a0a;
  --Backgrounds-bg-card-secondary: #fafafa;
  --Backgrounds-bg-page: #0a0a0a;
  --Backgrounds-bg-nav: #010101;
  --Border-Radius-rounded-lg: 16px;
  --Border-Radius-rounded-xs: 4px;
  --Borders-border-secondary: #ededed;
  --Buttons-btn-primary-bg: #0a0a0a;
  --Buttons-btn-primary-text: #fafafa;
  --Buttons-btn-inverted-bg: #fff;
  --Primitives-Gray-gray-400: #a3a3a3;
  --Primitives-Gray-gray-700: #222;
  --Primitives-Gray-gray-500: #737373;
  --Spacing-2: 8px;
  --Spacing-3: 12px;
  --Spacing-4: 16px;
  --Spacing-6: 24px;
  --Text-heading-font-family: "All Round Gothic";
  --Text-body-font-family: "Poppins";
  --bs-secondary-color: #6c757d;
  --deprecated-border-radius-rounded-full: 9999px;
  --padding-lg: 8px;
}

/** TEMP TODO: Remove when design system is ready **/
/* .container {
  max-width: 760px !important;
} */
.container {
  --bs-gutter-x: 2rem !important;
}

@font-face {
  font-family: 'GT Walsheim';
  src: url('/fonts/GT-Walsheim-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: var(--Text-body-font-family, "Poppins");
  src: url('/fonts/InterTight-VariableFont_wght.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 700;
  src: url('/fonts/InterTight-VariableFont_wght.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'All Round Gothic';
  src: url('../fonts/allround/All_Round_Gothic_Bold.otf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'All Round Gothic Medium';
  src: url('../fonts/allround/All_Round_Gothic_Medium.otf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  color: var(--text-color);
  font-family: var(--Text-body-font-family, "Poppins"), sans-serif;
  letter-spacing: 0.28px;
  background-color: var(--Backgrounds-bg-page);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;

  background-image: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.00) 100%);
  background-repeat: no-repeat;
  background-size: 200% 240px;
  background-position: 50% -120px;
}

.emc-bg {
  background-image: url('/images/errbg.jpg');
  background-size: cover;
  background-position: center;

}

.description {
  color: #D4D4D4;
}

.bold {
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
}

.layout-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.layout-main-content {
  flex: 1 0 auto;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.bg-nav {
  background-color: var(--Backgrounds-bg-nav) !important;
}

.navbar-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.small-header {
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px; /* 140% */
  letter-spacing: 0.4px;
}

.navbar-center .navbar-brand {
  margin: 0;
}

.navbar {
  height: 64px;
  margin-bottom: 0 !important;
}

.navbar-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: 100%;
}

.nav-right {
  justify-self: end;
  display: flex;
  flex-direction: row;
  gap: var(--Spacing-4, 16px);
}

.nav-hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.nav-hamburger-icon {
  width: 18px;
  height: 16px;
  display: block;
}

.nav-logo-desktop {
  display: none;
}

.nav-logo-mobile {
  display: inline-flex;
}

.nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--Text-body-font-family, "Poppins");
  font-size: 14px;
  letter-spacing: 0.28px;
}

.nav-link-active {
  position: relative;
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ffffff;
}

.nav-avatar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #ffffff;
  overflow: hidden;
}

.nav-avatar-button {
  background: transparent;
  padding: 0;
  border: none;
}

.main-row {
  margin-top: 24px;
}

@media (min-width: 768px) {
  .navbar-shell {
    grid-template-columns: auto 1fr auto;
  }

  .navbar {
    height: 80px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-hamburger {
    display: none;
  }

  .nav-logo-desktop {
    display: inline-flex;
  }

  .nav-logo-mobile {
    display: none;
  }

  .nav-links {
    display: flex;
    justify-content: start;
    align-self: stretch;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    height: 100%;
  }

  .main-row {
    margin-top: 56px;
  }
}



.nav-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid #ffffff;
  border-radius: 999px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1040;
}

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

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(80vw, 320px);
  height: 100%;
  background: #0a0a0a;
  color: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1050;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-drawer-title {
  font-family: "GT Walsheim", sans-serif;
  font-size: 18px;
  letter-spacing: 0.4px;
}

.nav-drawer-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  padding: 4px;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-6, 24px);
  padding: var(--Spacing-6, 24px) var(--Spacing-4, 16px);
}

.nav-drawer-links .nav-drawer-link {
  display: flex;
  align-items: center;
  gap: var(--Spacing-2, 8px);
  .img {
    width: 26px;
    text-align: center;
  }
}
.nav-drawer-links .nav-drawer-social {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-drawer-links a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
}

.nav-drawer-button {
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 0;
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
}

.nav-open {
  overflow: hidden;
}

.medal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.medal-modal-close img {
  display: block;
  width: 30px;
  height: 30px;
}

.challenge-event-header {
  margin-top:80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
#challenge-event-medal {
  width: 150px;
  img { width: 100%;}
}

.dark-modal .modal-content {
  background-color: #000000;
}

.emc-modal-fullscreen .modal-dialog,
.emc-modal-fullscreen .modal-content {
  width: 100dvw;
  height: 100dvh;
  margin: 0;
  max-width: 100dvw;
  max-height: 100dvh;
  background: #000000;
  border: none;
  border-radius: 0;
}

@media (min-width: 768px) {
  .emc-modal-fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 548px;
    max-height: 760px;
    transform: translate(-50%, -50%);
  }
  .emc-modal-fullscreen .modal-dialog,
  .emc-modal-fullscreen .modal-content {
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: 100%;
    max-height: 760px;
    background: #000000;
    border: none;
    border-radius: 0;
  }
}

.bg-black {
  background-color: #000 !important;
}

.link-bold {
  font-family: "inter Tight Bold", sans-serif;
  color: var(--text-color);
  &:hover, &:active, &:focus, &:visited {
    color: var(--text-color);
  }
}

.spacing-column {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-4, 16px);
  /* margin-top: var(--Spacing-4, 16px); */
}
@media (min-width: 768px) {
  .spacing-column {
    gap: 56px;
    /* margin-top: 56px; */
  }
}
.card-outer {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-4, 16px);
}
@media (width > 768px) {
  .card-outer {
    gap: var(--Spacing-6, 24px);
  }
}

.card_ {
  display: flex;
  padding: var(--Spacing-4, 16px);
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-radius: var(--Border-Radius-rounded-lg, 16px);
  border: 1px solid var(--Primitives-Gray-gray-700, #EDEDED);
  background: var(--Primitives-Gray-gray-700, #FAFAFA);
}
.card_.corner8 {
  border-radius: 8px;
}
.card_.corner4 {
  border-radius: 4px;
}

.card_ > * {
  width: 100%;
}
.card_.card-white {
  background-color: var(--card-color-white, #FFFFFF) !important;
  color: var(--text-color-dark, #0A0A0A) !important;
  .separator {
    background: var(--Borders-border-secondary, #EDEDED) !important;
  }
}

.card_.card-white.card-dismissible {
  position: relative;
}

.card_.card-white.card-dismissible.is-hidden {
  display: none;
}

.card_.card-white .card-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.card_.card-white .card-close img {
  display: block;
  width: 16px;
  height: 16px;
}

.request-card {
  .form-label {
    color: var(--Text-text-secondary, #A3A3A3);
    font-size: 12px;
  }
}

 .separator {
    background: rgb(255,255,255,0.2) !important;
    width: 100% !important;
    height: 1px;
  }


.card-header {
  font-family: var(--Text-heading-font-family, "GT Walsheim");
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px; /* 140% */
  letter-spacing: -0.2px;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.card-header-2 {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px; /* 140% */
  letter-spacing: -0.2px;
}
.card-header > * {
  align-self: center;
}
.card-header .button {
  line-height: 20px;
}

.card_ .separator {
  background: var(--Primitives-Gray-gray-500, #EDEDED);
  height: 1px;
  width: 100%;
}

@media (min-width: 768px) {
  .card-header{
    font-size: 36px;
    line-height: 40px;
    align-items: center;
  }
}

.form-label {
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
  margin-bottom: 8px !important;
}
.sub-label {
      display: block;
    font-size: 14px;
    margin-bottom: var(--Spacing-2);
}
.form-control {
  padding: 10px !important;
  border-radius: var(--Border-Radius-rounded-sm, 8px);
  border: 1px solid var(--Borders-border-default, #222);
  background: var(--Backgrounds-input-inner-bg, #0A0A0A);
  color: var(--Text-text-secondary, #A3A3A3);
}
.form-control:focus,
.form-control:active {
  border-radius: var(--Border-Radius-rounded-sm, 8px);
  border: 1px solid var(--Borders-border-default, #222);
  background: var(--Backgrounds-input-inner-bg, #0A0A0A);
  color: var(--Text-text-secondary, #A3A3A3);
  box-shadow: none;
  outline: none;
}
.form-check-input {
  margin-top: 4px !important;
  border-radius: var(--Border-Radius-rounded-xs, 4px);
border: 1px solid var(--Primitives-Gray-gray-400, #A3A3A3);
background: var(--Backgrounds-bg-page, #FAFAFA);
}

.register-checkboxes {
  display: flex;
  padding: var(--Spacing-2, 8px) 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Spacing-4, 16px);
  align-self: stretch;
  .check-validation {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .check {
    display: flex;
    align-items: flex-start;
    gap: var(--Spacing-3, 12px);
    align-self: stretch;
  }
}
.gdpr-info {
  font-size: 10px;
  margin-top: var(--Spacing-4, 16px) !important;
}
.button {
  display: flex;
  min-height: 40px;
  padding: var(--padding-lg, 8px) var(--Spacing-6, 24px);
  justify-content: center;
  align-items: center;
  gap: var(--Spacing-2, 8px);
  align-self: center;
  border-radius: var(--deprecated-border-radius-rounded-full, 9999px);
  border: 1px solid var(--Buttons-btn-primary-bg, #0A0A0A);
  background: var(--Buttons-inverted-bg, #FFF);
  color: var(--text-color-dark, #FAFAFA);
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
  font-size: 14px;
}
.button:disabled,
.button[disabled],
.button[aria-disabled="true"] {
  color: var(--Primitives-Gray-gray-400, #A3A3A3);
  background-color: transparent;
  border: 1px solid transparent;
}
a.button {
  text-align: center;
  text-decoration: none;
}
.button-dark {
  background-color: var(--Buttons-btn-primary-bg);
  border-color: var(--Buttons-btn-inverted-text, #D4D4D4);
  color: white;
}
.button-red {
  background-color: var(--Primitives-Red-red-700, #B91C1C);
  border-color: var(--Primitives-Red-red-700, #B91C1C);
  color: white;
}

/** PROFILE PAGE **/

.page-profile {
  background-image: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.00) 100%);
  background-repeat: no-repeat;
  background-size: 200% 240px;
  background-position: 50% -120px;
}

.profile-header {
  display: flex;
  padding: 16px var(--Spacing-4, 16px);
  margin-top: -24px;
  align-items: center;
  gap: 16px;
  .name-loc {
    display: flex;
    flex-direction: column;
    gap: 4px;
    .name {
      font-family: var(--Text-heading-font-family, "GT Walsheim");
      font-size: 20px;
      font-style: normal;
      font-weight: 600;
      line-height: 28px; /* 140% */
      letter-spacing: -0.2px;
    }
    .flag-location {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .flag {
      img {
        height: 16px;
      }
    }
    .location {
      font-family: var(--Text-body-font-family, "Poppins");
      font-weight: 600;
      font-size: 16px;
    }
  }
}

@media (min-width: 768px) {
  .profile-header {
    margin-top: 0px;
    border-radius: var(--Border-Radius-rounded-lg, 16px);
    background-color: var(--Primitives-Gray-gray-700, #222);
  }
}

.profile-image-container {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-image-card-row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.profile-image-card-row .profile-image-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.profile-image-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.profile-map-container {
  position: relative;
  img {
    width: 100%;
  }
  .medal-map {
    position: absolute;
    top: 0;
    left: 0;
  }
}

.profile-achievements {
  
  .achievement-info {
    flex-direction: column;
    text-align: center;
    display: flex;
    img {
      width: 80%;
      margin: 0 auto;
      margin-bottom: 16px;
    }
    .achievement-title {
      color: var(--Text-text-inverted, #FAFAFA);
      font-family: var(--Text-heading-font-family, "GT Walsheim");
      font-size: 36px;
      font-style: normal;
      font-weight: 700;
      line-height: 40px; /* 111.111% */
      letter-spacing: -0.36px;
    }
  }  
}

.temp_achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--Spacing-2, 8px);
  /* margin-bottom: var(--Spacing-4, 16px); */
  align-items: center;
  justify-items: center;
}

.temp_achievements > * {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-image: url("/images/achievements/medal_empty.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.temp_achievements .warsaw {
  background-image: url("/images/icons/coin1.png");
}

.event-placeholder {
  display: flex;
  flex-direction: row;
  padding: var(--Spacing-2, 8px) var(--Spacing-4, 16px) var(--Spacing-2, 8px) var(--Spacing-2, 8px);
  align-items: center;
  gap: var(--Spacing-4, 16px);
  border-radius: var(--Border-Radius-rounded-lg, 16px);
  border: 1px dashed var(--Text-text-inverted, #FAFAFA);
  .img {
    width: 72px;
    height: 72px;
    aspect-ratio: 1/1;
    border-radius: var(--Border-Radius-rounded-sm, 8px);
    background: var(--Text-text-default, #0A0A0A);
  }
  .event-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--Spacing-1, 4px);
    padding: 0 !important;
    flex: 1 0 0;
    .title {
      width: 106px;
      height: 24px;
      border-radius: var(--Border-Radius-rounded-xs, 4px);
      background: #0A0A0A;
    }
    .detail {
      display: flex;
      align-items: center;
      gap: 4px;
      .icon {
        width: 12px;
        height: 12px;
        border-radius: var(--Border-Radius-rounded-full, 9999px);
        background: #0A0A0A;
      }
    }
  }
}

.info-box {
  display: flex;
  padding: var(--Spacing-3, 12px);
  align-items: flex-start;
  gap: var(--Spacing-1, 4px);
  align-self: stretch;
  border-radius: var(--Border-Radius-rounded-md, 12px);
  border: 1px solid var(--Borders-border-default, #D4D4D4);
  background: var(--Backgrounds-bg-card-secondary, #F5F5F5);
  color: var(--text-color-dark, #0A0A0A);
}
.info-box .info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.info-box .info {
  display: flex;
  padding: var(--Spacing-05, 2px) 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Spacing-1, 4px);
  flex: 1 0 0;
}
.info-box .info .info-header {
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 700;
}
.info-box.alert-box {
  background: var(--Callouts-Error-error-bg, #450A0A);
  border-color: var(--Callouts-Error-error-bg, #450A0A);
  color: white;
}

.event-image-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #f5f5f5;
}

.page-header {
  color: var(--Text-text-inverted, #FAFAFA);
  font-family: var(--Text-heading-font-family, "All Round Gothic");
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 111.111% */
  margin-bottom: 12px;
  letter-spacing: -0.36px;
}

.event-header {
  position: relative;
  width: 100%;
  aspect-ratio: 375 / 172;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.event-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--event-image);
  background-size: cover;
  background-position: center;
  /* filter: grayscale(100%); */
}
.event-pill {
  display: flex;
  padding: var(--Spacing-1, 4px) var(--Spacing-15, 6px);
  justify-content: center;
  align-items: center;
  border-radius: var(--Border-Radius-rounded-xs, 4px);
  background: var(--Backgrounds-bg-card-secondary, #F5F5F5);
  font-size: 10px;
  font-weight: 600;
}
.event-coin {
  position: relative;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: flex-end;
}
.event-coin::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--event-coin);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.event-details {
  transform: translateY(-80px);
  margin-bottom: -80px;
}
.event-info {
  padding-top: var(--Spacing-6, 24px);
  padding-bottom: var(--Spacing-6, 24px);
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-4, 16px);
  align-items: center;
  .event-name {
    font-family: "GT Walsheim", sans-serif;
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    text-align: center;
    .event-completion {
      margin-top: 10px;
      font-family: var(--Text-body-font-family, "Poppins");
      font-weight: 700;
      font-size: 14px;
      line-height: 20px;
    }
  }
}
.event-results {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-2, 8px);
  align-items: center;
  .event-results-header {
    font-family: var(--Text-heading-font-family, "GT Walsheim");
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px; /* 140% */
    letter-spacing: -0.3px;
  }
  .event-result {
    display: flex;
    flex-direction: column;
    text-align: center;
    .result {
      font-family: var(--Text-body-font-family, "Poppins");
      font-weight: 700;
      font-size: 20px;
      line-height: 28px;
    }
    .result-year {
      font-family: var(--Text-body-font-family, "Poppins");
      font-size: 14px;
      line-height: 20px;
  }
}
}

.tag {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; /* 133.333% */
  padding: var(--Spacing-1, 4px) var(--Spacing-2, 8px) var(--Spacing-1, 4px) var(--Spacing-1, 4px);
  letter-spacing: 0.24px;
  background-color: white;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  .icon {
    width: 15px;
    height: 15px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  &.pending, &.uploaded, &.running {
    background: var(--Badges-badge-outlined-orange-bg, #FFF5C2);
    color: var(--Badges-badge-outlined-orange-text, #A56A0C);
    .icon {
      background-image: url("/images/icons/pending.svg");
    }
  }
  &.declined, &.denied, &.failed {
    background: var(--Badges-badge-outlined-red-bg, #FAEAEA);
    color: var(--Badges-badge-outlined-red-text, #B91C1C);
    .icon {
      background-image: url("/images/icons/declined.svg");
    } 
  }
  &.approved, &.completed {
    background: var(--Badges-badge-outlined-green-bg, #E7FFE5);
    color: var(--Badges-badge-outlined-green-text, #0D753C);
    .icon {
      background-image: url("/images/icons/approved.svg");
    }
  }
}

@media (min-width: 768px) {
  .event-pill {
    display: flex;
    padding: var(--Spacing-15, 6px);
    justify-content: center;
    align-items: center;
    border-radius: var(--Border-Radius-rounded-xs, 4px);
    background: var(--Backgrounds-bg-card-secondary, #F5F5F5);
    font-size: 12px;
    font-weight: 600;
  }
}
/* 
.event-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
}

.event-header-title {
  position: relative;
  font-family: var(--Text-display-font-family, "GT Walsheim");
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.36px;
} */

.events-section {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-4, 16px);
}
.events-section .label {
  font-family: var(--Text-heading-font-family, "GT Walsheim");
  font-family: var(--Text-body-font-family, "Poppins");
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px; /* 133.333% */
  letter-spacing: -0.24px;
}

.profile-results-list {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-4, 16px);
}

.profile-result-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--text-color);
  font-size: 14px;
  line-height: 20px;
}

.profile-result-location {
  justify-self: start;
}
.profile-result-location img {
  height: 24px;
}

.profile-result-year {
  justify-self: center;
}

.profile-result-time {
  justify-self: end;
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 700;
}

.profile-result-tag {
  justify-self: end;
  width: fit-content;
  min-width: 0;
  max-width: max-content;
  white-space: nowrap;
}

.profile-result-time.is-pending {
  color: var(--Primitives-Gray-gray-400, #A3A3A3);
}

.event {
  display: flex;
  background-color: var(--text-color-dark, #0A0A0A);
  border-radius: var(--Border-Radius-rounded-lg, 16px);
  flex-direction: row;
  padding: var(--Spacing-2, 8px) var(--Spacing-4, 16px) var(--Spacing-2, 8px) var(--Spacing-2, 8px);
  align-items: top;
  gap: var(--Spacing-4, 16px);
  .img {
    width: 72px;
    height: 72px;
    aspect-ratio: 1/1;
    border-radius: var(--Border-Radius-rounded-sm, 8px);
    background-size: cover;
    /* filter: grayscale(100%); */
  }
  .event-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--Spacing-1, 4px);
    padding: 0 !important;
    flex: 1 0 0;
    .title {
      font-family: var(--Text-body-font-family, "Poppins");
      font-weight: 600;
      font-size: 16px;
    }
    .detail {
      font-size: 12px;
      color: var(--Primitives-Gray-gray-300, #D4D4D4);
      display: flex;
      align-items: center;
      gap: 4px;
      .icon {
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        line-height: 16px;
        width: 16px !important;
        height: 16px;
        aspect-ratio: 1/1;
      }
    }
  }

  .event-action {
    margin-left: auto;
    display: flex;
    align-items: start;
    margin-top: 13px;
  }

  .event-toggle {
    height: 40px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--deprecated-border-radius-rounded-full, 9999px);
    text-decoration: none;
    border: 1px solid #0A0A0A;
    line-height: 1;
  }

  .event-toggle img {
    width: 10px;
    height: 10px;
    display: block;
  }

  .event-toggle.add {
    background: #FFFFFF;
    color: #0A0A0A;
  }

  .event-toggle.remove {
    background: #0A0A0A;
    color: #FFFFFF;
    border-color: #FFFFFF;
  }

  .event-action-text {
    display: none;
  }
}

@media (min-width: 768px) {
  .event {
    align-items: center;
    gap: var(--spacing-8, 32px);
    .img {
      height: 180px;
      width: auto;
      aspect-ratio: 22/15;
    }
    .event-info {
      .title {
        font-size: 24px;
      }
    }

    .event-toggle {
      width: auto;
      /* min-width: 98px; */
      height: 40px;
      padding: 0 24px 0 20px;
      gap: 8px;
    }

    .event-action {
      margin-top: 0;
    }

    .event-action-text {
      display: inline;
      font-family: var(--Text-body-font-family, "Poppins");
      font-weight: 700;
      font-size: 14px;
      line-height: 20px;
    }
  }
}

.result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Spacing-2, 8px);
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
  font-size: 16px;;
  .data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}



.footer {
  width: 100%;
  display: inline-flex;
  padding-top: var(--Spacing-4, 16px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--Spacing-6, 24px);
  margin-bottom: 24px;
  .footer-logo {
    width: 70%;
    height: auto;
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--Spacing-4, 16px);
    a {
      color: var(--text-color);
      text-decoration: none;
      font-family: var(--Text-body-font-family, "Poppins");
      font-size: 14px;
    }
  }
  .race-name-stack {
    width: 80%;
    height: auto;
  }
  .name-stack {
    transform: rotate(90deg);
    aspect-ratio: 83/96;
    background-image: url('/images/stackednames.png');
    width: 80%;
    background-size: contain;
  }
  .powered-by {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    font-family: var(--Text-body-font-family, "Poppins");
    font-weight: 600;
    img {
      height: 20px;
    }
  }
}
@media (min-width: 768px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0;
    .footer-logo {
      width: 200px;
    }
    .footer-links {
      flex-direction: row;
      flex-grow: 1;
    }
    .name-stack {
      display: none;
    }
  }
}

.achievments-section {
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-4, 16px);
  .achievement-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--Spacing-4, 16px);
  }
  .achievement-stat {
    display: flex;
    flex-direction: column;
    gap: var(--Spacing-1, 4px);
    padding: var(--Spacing-2, 8px);
    border-radius: var(--Border-Radius-rounded-sm, 8px);
    background: var(--Primitives-Gray-gray-700, #222);
    .achievement-stat-label {
      display: flex;
      gap: var(--Spacing-1, 4px);
      align-items: center;
      font-size: 14px;
      font-family: var(--Text-body-font-family, "Poppins");
      font-weight: 600;
    }
  }
  .achievement-challenges {
    display: flex;
    flex-direction: row;
    gap: var(--Spacing-5, 24px);
    justify-content: center;
    .challenge {
      display: flex;
      flex-direction: column;
      gap: var(--Spacing-4, 16px);
      align-items: center;
      img {
        width: 88px;
        height: auto;
      }
    }
  }
  .achievement-medal {
    img {
      width: 100%;
      height: auto;
      border-radius: 8px;
    }
  }
  .achievement-medals {
    .challenges{
      display: flex;
      flex-direction: row;
      gap: 24px;
      align-items: center;
      justify-content: center;
      margin-bottom: 24px;
      img {
        width: 88px;
        height: auto;
      }
    }
    .medal {
      display: flex;
      flex-direction: column;
      gap: var(--Spacing-1, 4px);
      align-items: center;
      img {
        width: 88px;
        height: auto;
      }
      .medal-label {
        font-family: var(--Text-body-font-family, "Poppins");
        font-weight: 600;
        font-size: 14px;
      }
      .medal-data {
        color: var(--Primitives-Gray-gray-400, #A3A3A3);
        font-size: 12px;
      }
      .medal-subdata {
        font-family: var(--Text-body-font-family, "Poppins");
        font-size: 12px;
      }
    }
    .medals {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      justify-items: center;
    }
  }
}
@media (min-width: 1200px) {
  .achievments-section {
    display: flex;
    flex-direction: column;
    gap: var(--Spacing-4, 16px);
    .achievement-stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--Spacing-4, 16px);
    }
    .achievement-stat {
      display: flex;
      flex-direction: column;
      gap: var(--Spacing-1, 4px);
      padding: var(--Spacing-2, 8px);
      border-radius: var(--Border-Radius-rounded-sm, 8px);
      background: var(--Primitives-Gray-gray-700, #222);
      .achievement-stat-label {
        display: flex;
        gap: var(--Spacing-1, 4px);
        align-items: center;
        font-size: 14px;
        font-family: var(--Text-body-font-family, "Poppins");
        font-weight: 600;
      }
    }
    .achievement-challenges {
      display: flex;
      flex-direction: row;
      gap: var(--Spacing-5, 24px);
      justify-content: center;
      .challenge {
        display: flex;
        flex-direction: column;
        gap: var(--Spacing-4, 16px);
        align-items: center;
        img {
          width: 88px;
          height: auto;
        }
      }
    }
    .achievement-medals {
      .challenges{
        display: flex;
        flex-direction: row;
        gap: 24px;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;
        img {
          width: 88px;
          height: auto;
        }
      }
      .medal {
        display: flex;
        flex-direction: column;
        gap: var(--Spacing-1, 4px);
        align-items: center;
        width: 100%;
        img {
          width: 100%;
          height: auto;
          display: block;
        }
        .medal-label {
          font-family: var(--Text-body-font-family, "Poppins");
          font-weight: 600;
          font-size: 14px;
        }
        .medal-data {
          color: var(--Primitives-Gray-gray-400, #A3A3A3);
          font-size: 12px;
        }
        .medal-subdata {
          font-family: var(--Text-body-font-family, "Poppins");
          font-size: 12px;
        }
      }
      .medals {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 64px;
        row-gap: 16px;
        margin: 0 64px;
        justify-items: stretch;
        align-items: stretch;
      }
    }
  }
}
.medal-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: auto;
}

/* ADMIN */

.admin-table, .admin-table tr, .admin-table td, .admin-table th {
  background-color: transparent;
  color: var(--text-color);
  font-size: 14px;
  vertical-align: middle;
}
.admin-table tr {
  border-color: #FAFAFA33;
}
.admin-table th {
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
  font-size: 16px;;
}
.admin-table td > a {
  color: var(--Primitives-Gray-gray-300);
}


.admin-actions-cell {
  white-space: nowrap;
  text-align: end;
}

.admin-action-buttons {
  display: inline-flex;
  gap: 8px;
}

.admin-action-button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
}

.admin-modal-content {
  background-color: #111;
  .modal-header, .modal-footer {
    border: none;
  }
  .modal-header {
    font-family: var(--Text-body-font-family, "Poppins");
    font-weight: 600;
    justify-content: space-between;
  }
  .form-select {
    background-color: #000;
    border-color: rgb(34,34,34);
    color: rgb(163,163,163);
  }
  input[type="file"]::file-selector-button {
    background-color: #000;
    color: #fafafa;
    border: 1px solid #222;
  }
  input[type="file"]::-webkit-file-upload-button {
    background-color: #000;
    color: #fafafa;
    border: 1px solid #222;
  }
}

.event-editions-header {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  img {
    height: 32px;
  }
}
.event-editions-actions {
  white-space: nowrap;
  display: inline-flex;
  gap: 8px;
}

.admin-result-requests-tab-holder {
  border-bottom: 1px solid var(--Borders-border-default, #525252);
  display: flex;
  width: 100%;
  margin-bottom: var(--Spacing-3);
}

.admin-result-requests-tab {
  color: var(--Text-text-secondary, #d4d4d4);
  display: inline-flex;
  padding: var(--Spacing-4, 16px);
  border: 0;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  background: transparent;
}

.admin-result-requests-tab.active {
  border-bottom: 4px solid var(--Text-text-default, #FAFAFA);
}

.admin-result-requests-tab:hover {
  color: var(--Text-text-default, #FAFAFA);
}

.admin-result-requests-table .admin-match-result-checkbox,
.admin-match-result-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #0A0A0A;
  border-radius: var(--Border-Radius-rounded-xs, 4px);
  background-color: #ffffff;
  position: relative;
  cursor: pointer;
}

.admin-result-requests-table .admin-match-result-checkbox:focus,
.admin-match-result-checkbox:focus {
  box-shadow: none;
  outline: none;
}

.admin-result-requests-table .admin-match-result-checkbox:disabled,
.admin-match-result-checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-result-requests-table .admin-match-result-checkbox:checked,
.admin-match-result-checkbox:checked {
  background-color: #ffffff;
  border-color: #0A0A0A;
}

.admin-result-requests-table .admin-match-result-checkbox:checked::before,
.admin-match-result-checkbox:checked::before {
  content: "";
  position: absolute;
  inset: 0.2rem;
  border-bottom: 2px solid #0A0A0A;
  border-right: 2px solid #0A0A0A;
  width: 0.35rem;
  height: 0.6rem;
  transform: rotate(45deg);
  transform-origin: center;
  top: 0.02rem;
  left: 0.3rem;
}

.matching-result-success-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

select.form-control:disabled {
  background-color: var(--Backgrounds-input-inner-bg);
}
select,
select.form-select,
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("/images/icons/ChevronDown.svg");
  background-repeat: no-repeat;
  background-position: right var(--Spacing-3, 12px) center;
  background-size: 16px 16px;
  padding-right: 2.25rem;
}
select:focus,
select.form-select:focus,
select.form-control:focus {
  background-image: url("/images/icons/ChevronDown.svg");
  background-repeat: no-repeat;
  background-position: right var(--Spacing-3, 12px) center;
  background-size: 16px 16px;
}
select:disabled,
select.form-select:disabled,
select.form-control:disabled {
  background-image: none;
  padding-right: 10px;
}
input.form-control:disabled {
  background-color: transparent;
}
input[type="file"]::-webkit-file-upload-button {
    background-color: var(--Backgrounds-input-inner-bg);
    color: #fafafa;
    border: 1px solid #222;
  }
input[type="file"]:disabled {
  background-color: var(--Backgrounds-input-inner-bg);
}

.dial-code-picker {
  position: relative;
  width: 111px;
  min-width: 111px;
}

.dial-code-trigger {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.dial-code-trigger-content {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.dial-code-trigger-content img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.dial-code-caret {
  font-size: 10px;
  line-height: 1;
}

.dial-code-menu {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  margin-top: 6px;
  max-height: 240px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 30;
}

.dial-code-option {
  align-items: center;
  background: transparent;
  border: none;
  color: #fafafa;
  cursor: pointer;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.dial-code-option:hover {
  background: #1f1f1f;
}

.dial-code-option img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.dial-code-native-select {
  left: -10000px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
}

.user-action {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.results_coming {
  font-size: 18px;
  font-family: var(--Text-body-font-family, "Poppins");
  font-weight: 600;
  line-height: 20px;
  padding: 40px 0;
  text-align: center;
}
@media (width > 768px) {
  .results_coming {
    font-size: 24px;
    line-height: 32px;
    padding: 91px 0;
  }
}

.app-toast {
  align-items: center;
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  display: flex;
  flex-direction: row;
  gap: var(--Spacing-3, 12px);
  background: #fff;
  color: #111;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: var(--Spacing-4);
  font-family: var(--Text-body-font-family, "Poppins");
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: min(90vw, 560px);
  text-align: center;
}

.app-toast-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.start-head-message {
  background-color: #222;
  .container {
    background-color: #222;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--Spacing-4, 16px);
  }
}
.start-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.start-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  .header {
    font-family: var(--Text-heading-font-family);
    font-size: 32px;
    line-height: 120%;
  }
}
.steps-header {
    font-family: var(--Text-heading-font-family);
    font-size: 32px;
}
.info-step {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: var(--Spacing-4);
  .step {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background-image: url('/images/icons/gold-circle.png');
    padding: 6px;
    .white {
      background-color: white;
      border-radius: 999px;
      height: 100%;
      width: 100%;
      padding: 6px;
    }
    .black {
      background-color: black;
      border-radius: 999px;
      height: 100%;
      width: 100%;
      text-align: center;
      font-family: var(--Text-heading-font-family);
    }
  }
}
.start-buttons {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-4);
  margin: 0 auto;
}
.start-fineprint {
  font-size: 12px;
  text-align: center;
}
.modal-spacing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.breadcrumb {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-family: var(--Text-body-font-family, "Poppins");
  font-size: 14px;
  color: white;
  .breadcrumb-link {
    color: white;
    text-decoration: none;
  }
  .breadcrumb-separator {
    width:24px;
    height: 24px;
    background-image: url('/images/icons/ChevronRight.svg');
  }
  .current-page {
    font-family: var(--Text-body-font-family, "Poppins");
    font-weight: 600;
  }
}

.white-link {
  color: white;
  text-decoration: none;
}
.admin-card-label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
