:root {
  --web-gutter: max(24px, calc((100vw - 1180px) / 2));
  --web-footer-height: 56px;
  color-scheme: dark;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  background: #12161d;
  color: #e8eaef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
html {
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--web-header-height, 72px) + 80px);
  scroll-padding-bottom: var(--web-footer-height);
}
#application {
  padding-bottom: var(--web-footer-height);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
}
a {
  color: #c99e58;
}
:focus-visible {
  outline: 2px solid #d5aa64;
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 2147483647;
  padding: 12px;
  background: #181c26;
}
.skip-link:focus {
  top: 12px;
}
.web-footer {
  min-height: calc(56px + env(safe-area-inset-bottom));
  position: fixed;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 24px;
  padding: 4px max(12px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  border-top: 1px solid #ffffff14;
  background: #12161d;
  z-index: 30;
  font-size: 12px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}
.web-footer[hidden],
.web-footer [hidden] {
  display: none;
}
.web-extension-promo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.web-extension-promo a {
  max-width: calc(100% - 320px);
  gap: 8px;
}
.web-extension-promo a:not([href]):not([role='button']) {
  cursor: default;
}
.web-extension-promo img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.web-footer [data-dismiss-extension] {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  min-width: 44px;
  font-size: 22px;
}
.web-footer--visible {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.web-footer a,
.web-footer button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  color: #b8c0cf;
  text-decoration: none;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.web-footer [data-policy-privacy] {
  position: absolute;
  left: max(16px, env(safe-area-inset-left));
}
.web-footer--privacy-only {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.web-footer--privacy-only [data-policy-privacy] {
  bottom: max(4px, env(safe-area-inset-bottom));
  pointer-events: auto;
}
.web-footer a:hover,
.web-footer button:hover {
  background: #b48a471f;
  color: #d5aa64;
}
.web-boot {
  width: calc(100% - 2 * var(--web-gutter));
  max-width: 1180px;
  min-height: 100dvh;
  margin-inline: auto;
  border-inline: 1px solid #ffffff1f;
  background: linear-gradient(180deg, #1e2430, #12161d);
}
.web-boot[hidden] {
  display: none;
}
.web-boot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 18px 32px;
  border-bottom: 1px solid #ffffff14;
}
.web-boot-body {
  padding: 24px;
}
.web-boot-search {
  padding: 16px;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  color: #8491a5;
  font-size: 14px;
}
#boot-status {
  margin-block: 24px 12px;
  color: #a0aec0;
  font-size: 13px;
}
#boot-retry[hidden] {
  display: none;
}
#boot-retry {
  display: inline-block;
  min-height: 44px;
  margin-bottom: 16px;
  padding: 10px 16px;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  background: #181c26;
  color: #e8eaef;
  cursor: pointer;
  text-decoration: none;
}
.web-boot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 24px 18px;
}
.web-boot-grid span {
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  background: #ffffff08;
  animation: web-boot-pulse 1.4s ease-in-out infinite alternate;
}
@keyframes web-boot-pulse {
  to {
    opacity: 0.4;
  }
}
@media (max-width: 760px) {
  .web-footer {
    flex-wrap: wrap;
    gap: 0 4px;
    font-size: 11px;
  }
  .web-footer [data-policy-privacy] {
    position: static;
    order: 2;
  }
  .web-extension-promo {
    position: relative;
  }
  .web-footer [data-dismiss-extension] {
    right: 0;
  }
  .web-extension-promo a {
    max-width: calc(100% - 56px);
    margin-right: 44px;
  }
  .web-boot {
    width: 100%;
    border: 0;
  }
  .web-boot-header {
    padding-inline: 16px;
  }
  .web-boot-body {
    padding: 20px 12px;
  }
  .web-boot-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 18px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
