*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  user-select: none;
}

body {
  min-height: 100vh;
  color: #cef6cd;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background-color: #1f085c;
  background-image: url("../imgs/background.png");
  background-position: center 12%;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  padding: 0;
  border: 0;
}

.brand {
  position: fixed;
  top: 30px;
  left: 50%;
  z-index: 5;
  display: flex;
  width: 152px;
  height: 76px;
  align-items: flex-start;
  justify-content: center;
  transform: translateX(-50%);
}

.brand img {
  width: 104px;
  height: 40px;
  object-fit: contain;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  justify-content: center;
  overflow: clip;
}

.frame {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 1024px);
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.content {
  position: fixed;
  top: calc(50vh - 190px);
  left: 50%;
  z-index: 2;
  display: flex;
  width: min(100% - 48px, 824px);
  min-width: 300px;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  border: 2px solid rgba(255, 255, 255, 0);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0);
  text-align: center;
  transform: translateX(-50%);
}

.content-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.content h1 {
  color: #cef6cd;
  font-family: "League Spartan", Arial, Helvetica, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: 0;
}

.content p {
  max-width: 800px;
  color: #cef6cd;
  font-family: "League Spartan", Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
}

.help {
  position: fixed;
  right: max(24px, calc((100vw - 1024px) / 2 + 24px));
  bottom: 62px;
  left: max(24px, calc((100vw - 1024px) / 2 + 24px));
  z-index: 4;
  display: flex;
  max-width: 976px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin: 0 auto;
}

.help-toggle {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  cursor: default;
}

.help-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c1acfc;
  font-family: "League Spartan", Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
  white-space: nowrap;
}

.help-text-mobile,
.toggle-icon {
  display: none;
}

.toggle-icon::before {
  content: "";
}

.info-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 2px solid #c1acfc;
  border-radius: 50%;
  color: #c1acfc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.help-content {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.actions {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  gap: 16px;
}

.action-card {
  display: flex;
  min-width: 0;
  min-height: 72px;
  flex: 1 0 0;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #5d2aea;
  border-radius: 16px;
  background: #4818ca;
  color: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.action-card:hover,
.action-card:focus-visible,
.action-card:active {
  border-color: #774bf1;
  background: #774bf1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 32px rgba(45, 4, 139, 0.26);
  outline: none;
}

.action-card:focus-visible {
  outline: 3px solid rgba(229, 192, 255, 0.88);
  outline-offset: 3px;
}

.action-img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 16px;
  background: #19006c;
  object-fit: cover;
}

.action-text {
  display: flex;
  min-width: 0;
  flex: 1 0 0;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.action-text span {
  width: 100%;
  color: #ffffff;
  font-family: Archivo, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
}

.action-text small {
  width: 100%;
  color: #a9fef8;
  font-family: Archivo, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

@media (max-aspect-ratio: 3 / 2) {
  body {
    background-size: 120vw auto;
  }
}

@media (max-width: 1023px) {
  body {
    background-image: url("../imgs/background-mobile.png");
    background-position: center top;
    background-size: cover;
  }
}

@media (max-width: 767px) {
  body,
  main {
    min-height: 100vh;
  }

  .brand {
    width: 128px;
    height: 64px;
  }

  .brand img {
    width: 104px;
    height: 40px;
  }

  .content {
    top: 42vh;
    width: min(100% - 32px, 824px);
  }

  .content h1 {
    font-size: 30px;
    line-height: 48px;
  }

  .content p {
    font-size: 20px;
    line-height: 24px;
  }

  .help {
    right: 16px;
    bottom: 32px;
    left: 16px;
    gap: 12px;
  }

  .help-toggle {
    width: 100%;
    cursor: pointer;
  }

  .help-label {
    font-size: 20px;
    line-height: 24px;
  }

  .help-text-desktop {
    display: none;
  }

  .help-text-mobile,
  .toggle-icon {
    display: block;
  }

  .toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    transition: transform 180ms ease;
  }

  .toggle-icon::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #c1acfc;
    border-left: 2px solid #c1acfc;
    transform: rotate(45deg);
  }

  .help-toggle[aria-expanded="false"] .toggle-icon {
    transform: rotate(180deg);
  }

  .help-content {
    max-height: 196px;
    opacity: 1;
    overflow: hidden;
    transition:
      max-height 240ms ease,
      opacity 180ms ease;
  }

  .help-content[aria-hidden="true"] {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
  }

  .actions {
    flex-direction: column;
  }

  .action-card {
    width: 100%;
    flex: none;
  }

}
