:root {
  --bg: #6f5a60;
  --bg-soft: #d9b5c0;
  --panel: #efc8d4;
  --surface: #f4edf0;
  --text: #ffffff;
  --text-dark: #1c1316;
  --muted: rgba(255, 255, 255, 0.84);
  --legal: rgba(255, 255, 255, 0.74);
  --line: rgba(255, 255, 255, 0.26);
  --shadow: 0 28px 70px rgba(58, 27, 40, 0.26);
  --shadow-soft: 0 16px 34px rgba(58, 27, 40, 0.22);
  --cta: #ff3131;
  --cta-hover: #f02222;
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #4f3a45 0%, #69575d 12%, #84777a 48%, #6c5d60 100%);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("assets/kira-top-close-test.png") center top / cover no-repeat;
  filter: blur(28px) saturate(0.9);
  opacity: 0.32;
  transform: scale(1.1);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at left center, rgba(236, 141, 168, 0.45), transparent 22%),
    radial-gradient(circle at center bottom, rgba(255, 229, 240, 0.36), transparent 24%),
    linear-gradient(90deg, rgba(64, 48, 55, 0.42), rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 76%, rgba(64, 48, 55, 0.42));
  content: "";
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  border-radius: 999px;
  background: #fff;
  color: #000;
  z-index: 10;
}

.gateway {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 16px 16px;
}

.gateway-shell {
  width: min(100%, 520px);
}

.panel {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(248, 227, 235, 0.84), rgba(237, 200, 214, 0.9));
  box-shadow: var(--shadow);
}

.media-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 30px;
  background: var(--surface);
}

.media-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-card-top img {
  object-position: center top;
}

.media-card-top::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 12, 15, 0) 48%, rgba(241, 206, 223, 0.86) 78%, rgba(241, 206, 223, 0.96) 100%);
  content: "";
}

.hero-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  text-align: center;
}

.hero-copy h2,
.bottom-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.9rem, 9vw, 5.2rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.hero-copy p {
  margin: 16px auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.12rem);
  line-height: 1.45;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(58, 27, 40, 0.2);
}

.cta-block {
  padding: 14px 8px 16px;
}

.primary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 34px rgba(255, 49, 49, 0.28);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible,
.arrow-link:hover,
.arrow-link:focus-visible,
.legal-footer a:hover,
.legal-footer a:focus-visible {
  transform: translateY(-1px);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--cta-hover);
}

.media-card-bottom {
  background: #e9dce3;
}

.media-card-bottom img {
  object-position: center top;
}

.bottom-copy {
  padding: 14px 8px 6px;
  text-align: center;
}

.bottom-copy h3 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.bottom-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 700;
}

.legal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px 22px;
  color: var(--legal);
  font-size: 0.84rem;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.legal-footer nav a,
.arrow-link {
  transition: color 180ms ease, transform 180ms ease;
}

.legal-footer nav a:hover,
.legal-footer nav a:focus-visible,
.arrow-link:hover,
.arrow-link:focus-visible {
  color: #fff;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
}

@media (min-width: 900px) {
  .gateway {
    padding: 6px 16px 8px;
  }

  .gateway-shell {
    width: min(100%, 245px);
  }

  .panel {
    padding: 4px;
    border-radius: 16px;
  }

  .media-card {
    border-radius: 12px;
  }

  .hero-copy {
    left: 9px;
    right: 9px;
    bottom: 7px;
  }

  .hero-copy h2 {
    font-size: clamp(1.24rem, 1.72vw, 1.56rem);
  }

  .hero-copy p {
    margin-top: 2px;
    max-width: 11.5rem;
    font-size: clamp(0.54rem, 0.58vw, 0.58rem);
    line-height: 1.24;
  }

  .cta-block {
    padding: 4px 2px 5px;
  }

  .primary-link {
    min-height: 31px;
    font-size: clamp(0.6rem, 0.62vw, 0.64rem);
  }

  .bottom-copy {
    padding: 4px 5px 2px;
  }

  .bottom-copy h3 {
    font-size: clamp(0.88rem, 1.18vw, 1.02rem);
  }

  .bottom-copy p {
    margin-top: 2px;
    font-size: 0.6rem;
  }

  .legal-footer {
    gap: 6px;
    padding: 8px 16px 16px;
  }
}

@media (min-width: 900px) and (max-height: 860px) {
  .gateway {
    padding-top: 5px;
  }

  .gateway-shell {
    width: min(100%, 200px);
  }

  .panel {
    padding: 3px;
    border-radius: 14px;
  }

  .media-card {
    border-radius: 10px;
  }

  .hero-copy h2 {
    font-size: clamp(1rem, 1.36vw, 1.2rem);
  }

  .hero-copy p {
    margin-top: 1px;
    font-size: 0.46rem;
  }

  .primary-link {
    min-height: 28px;
  }

  .cta-block {
    padding: 3px 2px 4px;
  }
}

@media (max-width: 479px) {
  .gateway {
    padding-top: 12px;
  }

  .panel {
    padding: 10px;
    border-radius: 28px;
  }

  .media-card {
    border-radius: 24px;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }

  .hero-copy p {
    margin-top: 14px;
  }

  .cta-block {
    padding: 16px 4px 18px;
  }

  .primary-link {
    min-height: 68px;
    font-size: 1rem;
  }
}
