:root {
  color-scheme: dark;
  --bg-top: #071a6b;
  --bg-bottom: #03081d;
  --card-width: min(100vw, 520px);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --text: #f7f8ff;
  --footer-width: min(100vw, 520px);
  --footer-offset: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top, rgba(49, 97, 255, 0.35), transparent 35%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  cursor: pointer;
  overflow-x: hidden;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

.landing-card {
  position: relative;
  display: block;
  width: var(--card-width);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.landing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}

.landing-card:focus-visible {
  outline: 3px solid #fff7a6;
  outline-offset: 6px;
}

.landing-image {
  display: block;
  width: 100%;
  height: auto;
}

.sticky-footer {
  position: fixed;
  left: 50%;
  bottom: var(--footer-offset);
  z-index: 20;
  display: block;
  width: var(--footer-width);
  transform: translateX(-50%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sticky-footer:focus-visible {
  outline: 3px solid #fff7a6;
  outline-offset: 4px;
}

.sticky-footer-image {
  display: block;
  width: 100%;
  height: auto;
}

.noscript-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), 480px);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(10, 15, 32, 0.92);
  color: var(--text);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 540px) {
  .landing-card {
    width: 100vw;
    box-shadow: none;
  }

  .landing-image {
    width: 100vw;
    height: auto;
  }

  .page-shell {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-footer {
    width: 100vw;
    bottom: 0;
    border-radius: 0;
    box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.28);
  }
}
