*,
*::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: #00140f;
  -webkit-font-smoothing: antialiased;
}

.background-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

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

button {
  padding: 0;
  border: 0;
}

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

.frame {
  display: flex;
  width: min(100%, 1024px);
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0 16px;
}

.brand {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  height: 100px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 20, 15, 0.9), rgba(0, 20, 15, 0));
  pointer-events: none;
}

.brand img {
  width: 100px;
  height: 100px;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(100% - 48px, 824px);
  min-width: 300px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  border: 2px solid rgba(255, 255, 255, 0);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0);
  text-align: center;
  transform: translate(-50%, -50%);
}

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

.content h1 {
  color: #c6f4ef;
  font-family: "Press Start 2P", monospace;
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.content p {
  color: #c6f4ef;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.help {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: auto;
  padding: 24px;
}

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

.help-toggle:focus-visible {
  outline: 2px solid #6bed6a;
  outline-offset: 4px;
}

.help-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #dce5ea;
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

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

.info-icon {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.info-icon::before {
  width: 16px;
  height: 16px;
  border: 2px solid #15eadd;
  border-radius: 50%;
  content: "";
}

.info-icon::after {
  position: absolute;
  color: #15eadd;
  content: "i";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.help-content {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 24px;
  max-height: 300px;
  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 {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: flex-start;
  gap: 16px;
}

.action-card {
  display: flex;
  max-width: calc((100% - 16px) / 2);
  min-width: 0;
  min-height: 72px;
  flex: 1 0 0;
  align-self: stretch;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 2px solid #084656;
  border-radius: 4px;
  background: #1f2932;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: default;
}

a.action-card {
  cursor: pointer;
}

a.action-card:hover,
a.action-card:focus-visible {
  border-color: #4d5965;
  background: #293a44;
  outline: none;
}

.action-img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 250, 255, 0.1);
  border-radius: 4px;
  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: #c6f4ef;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0;
}

.action-text small {
  width: 100%;
  color: #eafdfb;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .frame {
    position: relative;
    min-height: 100svh;
    justify-content: flex-start;
    padding: 116px 0 0;
  }

  .content {
    position: absolute;
    top: calc(50% - 16px);
    left: 50%;
    width: min(100% - 32px, 824px);
    min-width: 0;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .content h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .content p {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
  }

  .help {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    gap: 12px;
    padding: 16px;
  }

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

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

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

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

  .toggle-icon {
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-top: 2px solid #15eadd;
    border-left: 2px solid #15eadd;
    transition: transform 180ms ease;
    transform: rotate(45deg);
  }

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

  .actions {
    flex-direction: column;
  }

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

@media (max-width: 767px) and (max-height: 560px) {
  .frame {
    gap: 32px;
    padding: 116px 0 16px;
  }

  .content,
  .help {
    position: static;
    transform: none;
  }

  .content {
    margin: auto 0;
  }

  .help {
    margin-top: auto;
  }
}

@media (min-width: 768px) and (max-height: 560px) {
  .frame {
    gap: 32px;
  }

  .content {
    position: static;
    margin: auto 0;
    transform: none;
  }
}
