:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09090c;
  color: #f7f7f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(229, 9, 20, 0.18), transparent 36rem),
    linear-gradient(180deg, #101014 0%, #08080a 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.page-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
}

.code-card {
  width: min(100%, 620px);
  padding: clamp(32px, 7vw, 64px);
  overflow: hidden;
  text-align: center;
  background: rgba(24, 24, 29, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 32px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b8b8c1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #e50914;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(229, 9, 20, 0.12);
}

h1 {
  margin: 22px 0 10px;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.lead {
  min-height: 1.5em;
  margin: 0;
  color: #aaaab4;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.5;
}

.code-wrap {
  display: grid;
  min-height: 146px;
  margin: 34px 0 24px;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.code {
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 14vw, 5.75rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-shadow: 0 0 36px rgba(229, 9, 20, 0.17);
}

.code.is-empty {
  color: #696972;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  color: #fff;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  background: #e50914;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

.copy-button:hover:not(:disabled) {
  background: #f6121d;
  transform: translateY(-1px);
}

.copy-button:active:not(:disabled) {
  transform: translateY(1px);
}

.copy-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.copy-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.copy-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 28px;
  color: #777781;
  font-size: 0.78rem;
}

.separator {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}

@media (max-width: 560px) {
  .page-shell {
    align-items: stretch;
    padding: 12px;
  }

  .code-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
  }

  .code-wrap {
    min-height: 128px;
    margin-top: 30px;
  }

  .meta {
    flex-direction: column;
    gap: 5px;
  }

  .separator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
