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

  -webkit-tap-highlight-color: transparent;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bgColor2);

  -ms-overflow-style: none;
  scrollbar-width: none;

  -webkit-touch-callout: none;
}
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: #fff;
  line-height: 1.5;

  padding:
    calc(env(safe-area-inset-top) + 4.5rem)
    max(1rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  overflow-x: hidden;

  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--bgColor) 0%, var(--bgColor2) 100%);
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

img, svg, a {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

::selection { background: transparent; color: inherit; }
input::selection, textarea::selection { background: rgba(255,255,255,.35); }

.container {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: auto;
  text-align: center;
  padding: clamp(1.25rem, 5vw, 2.25rem);
  border-radius: 24px;

  background: linear-gradient(165deg,
              rgba(255, 255, 255, .12) 0%,
              rgba(255, 255, 255, .05) 45%,
              rgba(255, 255, 255, .02) 100%);

  border: 1px solid rgba(255, 255, 255, 0.22);

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 4px 18px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
              transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

@supports (background: linear-gradient(0deg, #000, #000) padding-box,
           linear-gradient(0deg, #000, #000) border-box) {
  .container {
    border-color: transparent;
    background:
      linear-gradient(165deg,
        rgba(255, 255, 255, .12) 0%,
        rgba(255, 255, 255, .05) 45%,
        rgba(255, 255, 255, .02) 100%) padding-box,
      linear-gradient(135deg,
        rgba(255, 255, 255, 0.7),
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.25)) border-box;
  }
}

.column:has(> .button-entrance ~ .button-entrance
            ~ .button-entrance ~ .button-entrance
            ~ .button-entrance ~ .button-entrance
            ~ .button-entrance) {
  margin-top: 0 !important;
}

.row { width: 100%; }
.column { width: 100%; }

h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p {
  margin: 0.75rem 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #e8eefc;
  overflow-wrap: anywhere;
}

a {
  color: #fff;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}
@media (hover: hover) {
  a:hover { color: #dbe6ff; }
}

.spacing {
  padding: 0 10px;
  padding-top: 50px;
}

code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
}
pre > code { display: block; padding: 1rem 1.5rem; white-space: pre; overflow-x: auto; }
hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.25);
}
.u-full-width { width: 100%; }
.u-max-full-width { max-width: 100%; }

.credit-txt {
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.credit-icon { display: none; }
.credit-footer { position: static; }
.credit-txt-clr { color: #fff !important; }

.container .container {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.container .container::before,
.container .container::after { content: none; }

.container .container:not(:has(*:not(.footer))):not(:has(.footer *)) {
  display: none;
}
.container:has(> .footer):not(:has(a, img, svg, h1, h2, h3, h4, p, button, i, span, .icon, .credit-txt)):not(:has(.footer > *)):not(.sg-footer-live) {
  display: none;
}
.sg-footer-empty { display: none !important; }
.sg-footer-live { display: block !important; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .container {
    background: linear-gradient(165deg, #274a85 0%, #1b3565 100%);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .container {
    background: linear-gradient(165deg, #274a85 0%, #1b3565 100%);
    border-color: rgba(255, 255, 255, 0.14);
  }
  .container::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-image: none;
  }
}
