:root {
  color-scheme: light;
  --teal: #0f766e;
  --teal-dark: #0b625d;
  --ink: #102a2e;
  --mint: #ddf4ec;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  background: #317d76 url('/cat-background.jpg') center center / cover no-repeat fixed;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(1rem, 4vh, 3rem) clamp(1.5rem, 5.7vw, 5.125rem);
}

.success-panel {
  width: min(53.75rem, 56vw);
  min-height: min(51.75rem, calc(100svh - clamp(2rem, 8vh, 6rem)));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1.75rem, 4vh, 3.5rem) clamp(2rem, 5vw, 5.5rem) clamp(1.5rem, 3vh, 2.5rem);
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 5rem rgba(4, 47, 46, 0.22);
  backdrop-filter: blur(0.75rem);
}

.check {
  width: clamp(6rem, 15vh, 10rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
  color: var(--teal);
  background: rgba(255, 255, 255, 0.55);
  border: 0.125rem solid rgba(15, 118, 110, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 0.75rem rgba(221, 244, 236, 0.58), 0 1rem 2.5rem rgba(15, 118, 110, 0.1);
}

.check svg {
  width: 58%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.5;
}

h1 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(3rem, 5vw, 5.25rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.welcome {
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  font-weight: 540;
  line-height: 1.4;
}

.rule {
  width: 88%;
  height: 1px;
  margin: clamp(1.25rem, 2.5vh, 2rem) 0;
  background: rgba(15, 118, 110, 0.25);
}

.detail {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 1.5;
}

.primary-action {
  width: min(100%, 29rem);
  min-height: clamp(4rem, 9vh, 5.125rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(1.25rem, 2.5vh, 2rem);
  padding: 1.1rem 2rem;
  color: var(--white);
  background: var(--teal);
  border-radius: 0.875rem;
  box-shadow: 0 0.8rem 1.8rem rgba(15, 118, 110, 0.2);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-action svg {
  width: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.primary-action:hover {
  background: var(--teal-dark);
  box-shadow: 0 1rem 2.2rem rgba(15, 118, 110, 0.27);
  transform: translateY(-0.125rem);
}

.primary-action:focus-visible {
  outline: 0.25rem solid #1677ff;
  outline-offset: 0.25rem;
}

.host {
  margin: auto 0 0;
  padding-top: clamp(1.5rem, 3vh, 3rem);
  color: var(--teal);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 550;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  body {
    background-position: 68% center;
    background-attachment: scroll;
  }

  .page-shell {
    align-items: flex-end;
    padding: 1rem;
  }

  .success-panel {
    width: 100%;
    min-height: auto;
    padding: 2.4rem 1.5rem 1.4rem;
    border-radius: 1.25rem;
  }

  .check {
    margin-bottom: 1.8rem;
  }

  .host {
    padding-top: 2rem;
  }
}

@media (max-width: 520px) {
  body {
    background-position: 72% center;
  }

  .page-shell {
    padding: 0.75rem;
  }

  .success-panel {
    background: rgba(255, 255, 255, 0.96);
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.4rem);
  }

  .primary-action {
    min-height: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-action {
    transition: none;
  }
}
