:root {
  color-scheme: light;
  --ink: #171717;
  --paper: #f7f0e4;
  --yellow: #f9d84a;
  --coral: #ff6b57;
  --blue: #3f62df;
  --white: #fffdf8;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 16%, var(--yellow) 0 5px, transparent 6px),
    radial-gradient(circle at 94% 34%, var(--coral) 0 7px, transparent 8px),
    var(--paper);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
.site-footer,
.page-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  width: clamp(9.5rem, 23vw, 11.5rem);
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promedex-button {
  min-height: 2.8rem;
  padding: 0.42rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 900 0.72rem/1 "Courier New", Courier, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.promedex-button strong {
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
  background: var(--yellow);
}

.page-shell {
  padding: clamp(0.85rem, 2vw, 1.35rem) 0 4rem;
}

.scratch-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glare-x: 50%;
  --card-accent: var(--blue);
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 5 / 7;
  margin: 0 auto;
  padding: 0.42rem;
  display: grid;
  grid-template-rows: 2.4rem 4.4rem 7.2rem minmax(10rem, 1fr) 7.1rem;
  scroll-margin-top: 1rem;
  overflow: hidden;
  border: 2px solid #0d0d0d;
  border-radius: 1.45rem;
  background: var(--card-accent);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.72) inset,
    0 -3px 0 rgba(0, 0, 0, 0.22) inset,
    8px 11px 0 var(--ink),
    0 24px 38px rgba(23, 23, 23, 0.2);
  transform: perspective(60rem) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.scratch-card > * {
  min-width: 0;
}

.scratch-card.is-tilted {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.72) inset,
    0 -4px 0 rgba(0, 0, 0, 0.24) inset,
    17px 22px 0 rgba(23, 23, 23, 0.9),
    0 34px 56px rgba(23, 23, 23, 0.26);
  transform: perspective(60rem) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-7px) scale(1.02);
}

.scratch-card.is-shiny,
.scratch-card.is-gold {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.82) inset,
    0 -3px 0 rgba(0, 0, 0, 0.2) inset,
    9px 12px 0 var(--ink),
    0 0 0 5px #fffdf8,
    0 0 0 8px var(--card-accent),
    0 26px 44px rgba(23, 23, 23, 0.24);
}

.scratch-card.is-shiny.is-tilted,
.scratch-card.is-gold.is-tilted {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.82) inset,
    0 -4px 0 rgba(0, 0, 0, 0.22) inset,
    17px 22px 0 rgba(23, 23, 23, 0.9),
    0 0 0 5px #fffdf8,
    0 0 0 8px var(--card-accent),
    0 36px 58px rgba(23, 23, 23, 0.28);
}

.draw-control {
  width: min(100%, 30rem);
  margin: 1.6rem auto 0;
  display: flex;
  justify-content: center;
}

.draw-control button {
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: 950 0.78rem/1 "Courier New", Courier, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.draw-control button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.scratch-card.is-dealt {
  animation: deal-card 420ms cubic-bezier(0.16, 0.85, 0.28, 1);
}

@keyframes deal-card {
  from {
    opacity: 0;
    transform: perspective(70rem) translateY(-2.5rem) rotateZ(-3deg) scale(0.94);
  }
}

.scratch-card::before,
.scratch-card::after {
  position: absolute;
  content: "";
  inset: 0.2rem;
  z-index: 7;
  border-radius: 1.15rem;
  pointer-events: none;
}

.scratch-card::before {
  border: 2px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 1px rgba(23, 23, 23, 0.38) inset;
}

.scratch-card::after {
  background: radial-gradient(circle at var(--glare-x) 4%, rgba(255, 255, 255, 0.38), transparent 27%);
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.scratch-card__topline {
  padding: 0.55rem 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 2px solid var(--ink);
  border-bottom-style: dashed;
  border-radius: 0.78rem 0.78rem 0 0;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 2rem, #ffd326 2rem 4rem);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.person,
.promise,
.after-scratch {
  padding-inline: 1rem;
}

.person {
  padding-top: 0.45rem;
  padding-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-inline: 2px solid var(--ink);
  background: var(--white);
}

.person__badge {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 1.1rem;
  font-weight: 950;
  transform: rotate(-4deg);
}

h2,
.person p,
.promise p,
.result p {
  margin: 0;
}

h2 {
  font-size: clamp(1.32rem, 4.5vw, 1.82rem);
  line-height: 1;
  letter-spacing: -0.045em;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

h2[data-fit="compact"] {
  font-size: clamp(1.12rem, 3.8vw, 1.52rem);
}

h2[data-fit="tight"] {
  font-size: clamp(0.96rem, 3.25vw, 1.28rem);
  letter-spacing: -0.03em;
}

.person p {
  margin-top: 0.25rem;
  color: #555;
  font-size: 0.85rem;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.person__identity {
  flex: 1 1 auto;
  min-width: 0;
}

.promise {
  padding-top: 0.3rem;
  padding-bottom: 0.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-content: stretch;
  overflow: hidden;
  border-inline: 2px solid var(--ink);
  background:
    radial-gradient(circle at 8% 22%, color-mix(in srgb, var(--card-accent) 35%, white) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 75%, color-mix(in srgb, var(--card-accent) 35%, white) 0 4px, transparent 5px),
    var(--white);
  text-align: center;
}

.label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promise__number {
  max-width: 100%;
  margin-top: 0.1rem !important;
  overflow: hidden;
  font-size: clamp(2.8rem, 9vw, 4.15rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.promise__number[data-fit="compact"] {
  font-size: clamp(2.35rem, 7.5vw, 3.35rem);
  letter-spacing: -0.045em;
}

.promise__number[data-fit="tight"] {
  font-size: clamp(1.85rem, 5.8vw, 2.55rem);
  letter-spacing: -0.025em;
}

.result__number {
  max-width: 100%;
  margin-top: 0.2rem !important;
  overflow: hidden;
  font-size: clamp(3rem, 11vw, 4.9rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.result__number[data-fit="compact"] {
  font-size: clamp(2.55rem, 8.5vw, 3.75rem);
  letter-spacing: -0.05em;
}

.result__number[data-fit="tight"] {
  font-size: clamp(2rem, 6.8vw, 3rem);
  letter-spacing: -0.03em;
}

.promise > p:nth-of-type(3) {
  width: 100%;
  max-width: 29rem;
  margin: 0.18rem auto 0;
  padding-inline: 0.25rem;
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.promise > p:nth-of-type(3)[data-fit="compact"] {
  font-size: 0.8rem;
  line-height: 1.12;
}

.promise > p:nth-of-type(3)[data-fit="tight"] {
  font-size: 0.7rem;
  line-height: 1.08;
}

.promise[data-layout-fit="compact"] {
  padding-block: 0.2rem 0.25rem;
}

.promise[data-layout-fit="compact"] .label {
  font-size: 0.65rem;
}

.promise[data-layout-fit="compact"] .promise__number {
  font-size: clamp(2.25rem, 7.3vw, 3.35rem);
}

.promise[data-layout-fit="compact"] > p:nth-of-type(3) {
  margin-top: 0.1rem;
  font-size: 0.74rem;
  line-height: 1.05;
}

.promise[data-layout-fit="tight"] {
  padding-block: 0.14rem 0.18rem;
}

.promise[data-layout-fit="tight"] .label {
  font-size: 0.58rem;
}

.promise[data-layout-fit="tight"] .promise__number {
  margin-top: 0.04rem !important;
  font-size: clamp(1.75rem, 5.8vw, 2.65rem);
}

.promise[data-layout-fit="tight"] > p:nth-of-type(3) {
  margin-top: 0.06rem;
  font-size: 0.63rem;
  line-height: 1.02;
}

.result__comparison {
  width: min(96%, 27rem);
  max-width: min(96%, 27rem);
  max-height: 4.4rem;
  margin: 0.45rem auto 0 !important;
  padding: 0.3rem 0.55rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: max-content max-content;
  align-content: center;
  justify-items: center;
  gap: 0.08rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  background: var(--white);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.05;
  box-shadow: 2px 2px 0 var(--ink);
}

.result__comparison strong {
  width: 100%;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 950;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result__comparison span {
  width: 100%;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.64rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result__comparison strong[data-fit="compact"] {
  font-size: 0.7rem;
}

.result__comparison strong[data-fit="tight"] {
  font-size: 0.62rem;
}

.result__comparison span[data-fit="compact"] {
  font-size: 0.58rem;
}

.result__comparison span[data-fit="tight"] {
  font-size: 0.53rem;
}

.result[data-layout-fit="compact"] {
  padding-block: 0.55rem;
}

.result[data-layout-fit="compact"] .result__stamp {
  margin-bottom: 0.3rem !important;
}

.result[data-layout-fit="compact"] .result__number {
  font-size: clamp(2.5rem, 8.5vw, 3.75rem);
}

.result[data-layout-fit="tight"] {
  padding-block: 0.38rem;
}

.result[data-layout-fit="tight"] .result__stamp {
  margin-bottom: 0.18rem !important;
}

.result[data-layout-fit="tight"] .result__number {
  margin-top: 0.08rem !important;
  font-size: clamp(2rem, 6.8vw, 3rem);
}

.result[data-layout-fit="tight"] .result__comparison {
  margin-top: 0.2rem !important;
}

.scratch-zone {
  position: relative;
  height: calc(100% - 0.55rem);
  min-height: 0;
  margin: 0.15rem 0.35rem 0.4rem;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 0.62rem;
  background: var(--coral);
}

.result {
  position: relative;
  isolation: isolate;
  height: 100%;
  min-height: 0;
  padding: 0.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: max-content max-content max-content max-content;
  align-content: center;
  justify-content: stretch;
  text-align: center;
}

.result > * {
  position: relative;
  z-index: 1;
}

.result__stamp {
  width: fit-content;
  margin: 0 auto 0.5rem !important;
  padding: 0.28rem 0.55rem;
  border: 3px solid var(--ink);
  background: var(--yellow);
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  touch-action: none;
  cursor: grab;
}

.scratch-canvas:active {
  cursor: grabbing;
}

.scratch-canvas:focus-visible {
  outline: 5px solid var(--blue);
  outline-offset: -7px;
}

.scratch-flake {
  position: absolute;
  z-index: 5;
  width: 0.48rem;
  height: 0.24rem;
  border-radius: 40% 60% 55% 45%;
  pointer-events: none;
  animation: flake 720ms cubic-bezier(0.18, 0.72, 0.24, 1) forwards;
}

@keyframes flake {
  to {
    opacity: 0;
    transform: translate(var(--flake-x), var(--flake-y)) rotate(var(--flake-r));
  }
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.after-scratch {
  position: relative;
  padding: 0.45rem 0.7rem 0.5rem;
  display: grid;
  align-content: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-top-style: dashed;
  border-radius: 0 0 0.78rem 0.78rem;
  background:
    repeating-linear-gradient(135deg, rgba(23, 23, 23, 0.055) 0 7px, transparent 7px 14px),
    #e9e6dc;
}

.after-scratch::before {
  position: absolute;
  content: "";
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(135deg, #cac8c0 0 8px, #e8e5dc 8px 16px),
    #dedbd2;
  opacity: 0.2;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.after-scratch > * {
  position: relative;
  z-index: 2;
  transition: opacity 220ms ease, transform 220ms ease;
}

.after-scratch.is-locked::before {
  opacity: 1;
}

.after-scratch.is-locked > * {
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.5rem);
}

.source-links {
  height: 2.15rem;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.source-links a {
  min-height: 2.15rem;
  padding: 0.35rem 0.5rem;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
  font: 900 0.6rem/1 "Courier New", Courier, monospace;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.05rem;
  text-align: center;
  text-underline-offset: 0.18em;
  text-transform: uppercase;
}

.share-button {
  width: 100%;
  min-height: 2.35rem;
  margin-top: 0.38rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

.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;
}

.share-status {
  position: absolute;
  right: 0.5rem;
  bottom: 0.12rem;
  min-height: 0;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.56rem;
  font-weight: 800;
  text-align: center;
}

.promedex {
  width: min(calc(100% - 2rem), 58rem);
  max-height: min(48rem, calc(100dvh - 2rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 3px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

.promedex::backdrop {
  background: rgba(23, 23, 23, 0.72);
}

.promedex__header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid var(--ink);
  background: var(--yellow);
}

.promedex__eyebrow,
.promedex__storage {
  margin: 0;
  font: 900 0.68rem/1.2 "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promedex h2 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.4rem);
}

.promedex__close {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font: 900 1.8rem/1 Arial, sans-serif;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.promedex__progress {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
  font: 850 0.82rem/1.2 "Courier New", Courier, monospace;
  text-transform: uppercase;
}

.promedex__progress strong {
  font: 950 1.65rem/1 Arial, sans-serif;
}

.promedex__bar {
  grid-column: 1 / -1;
  height: 0.8rem;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}

.promedex__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 240ms ease;
}

.promedex__grid {
  padding: 0 1.2rem 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.promedex-card {
  position: relative;
  min-height: 12.5rem;
  padding: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: 0.8rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  box-shadow: 4px 4px 0 var(--ink);
}

button.promedex-card {
  cursor: pointer;
}

.promedex-card.is-locked {
  justify-content: center;
  background:
    linear-gradient(45deg, transparent 46%, var(--ink) 47% 53%, transparent 54%) 0 0 / 1rem 1rem,
    #deddd6;
  text-align: center;
  box-shadow: none;
}

.promedex-card.is-shiny {
  background: linear-gradient(125deg, #ff9d8e 0 20%, #f9e77d 20% 40%, #9aefcf 40% 60%, #aab8ff 60% 80%, #efb2ff 80% 100%);
}

.promedex-card.is-gold {
  background: linear-gradient(125deg, #8f6418, #f6cf62, #fff0a6, #b77b16, #ffe693);
}

.promedex-card__number,
.promedex-card__category,
.promedex-card__rarity {
  font: 900 0.62rem/1.2 "Courier New", Courier, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promedex-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
}

.promedex-card__rarity {
  padding: 0.16rem 0.3rem;
  border: 1px solid var(--ink);
  background: var(--white);
}

.promedex-card__initials {
  width: 3rem;
  height: 3rem;
  margin: 1rem 0 0.7rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: white;
  font-weight: 950;
}

.promedex-card__actor {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.promedex-card__score {
  margin: auto 0 0;
  padding-top: 0.75rem;
  font: 900 0.7rem/1.25 "Courier New", Courier, monospace;
}

.promedex-card__unknown {
  margin: 0;
  padding: 0.25rem;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 950;
}

.promedex__storage {
  margin: 0 1.2rem 1.2rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--ink);
  text-align: center;
}

.site-footer {
  padding: 1.25rem 0 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 3px solid var(--ink);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 36rem) {
  .promedex-button > span {
    display: none;
  }

  .page-shell {
    padding-top: 0.85rem;
  }

  .scratch-card {
    width: calc(100% - 8px);
    grid-template-rows: 2.15rem 3.7rem 5.7rem minmax(8.4rem, 1fr) 6.9rem;
    box-shadow:
      0 2px 0 rgba(255, 255, 255, 0.72) inset,
      0 -3px 0 rgba(0, 0, 0, 0.22) inset,
      7px 8px 0 var(--ink),
      0 20px 30px rgba(23, 23, 23, 0.18);
  }

  .scratch-card__topline {
    font-size: 0.66rem;
  }

  .person {
    padding-top: 0.3rem;
    padding-bottom: 0.25rem;
    gap: 0.7rem;
  }

  .person__badge {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.95rem;
  }

  .promise {
    padding-top: 0.25rem;
    padding-bottom: 0.3rem;
  }

  .promise__number,
  .result__number {
    font-size: clamp(2.65rem, 12vw, 3.55rem);
  }

  .promise__number[data-fit="compact"] {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .promise__number[data-fit="tight"] {
    font-size: clamp(1.7rem, 7.2vw, 2.3rem);
  }

  .result__number[data-fit="compact"] {
    font-size: clamp(2.25rem, 10.5vw, 3.15rem);
  }

  .result__number[data-fit="tight"] {
    font-size: clamp(1.8rem, 7.6vw, 2.55rem);
  }

  .result__stamp {
    font-size: 1.05rem;
  }

  .result__comparison {
    margin-top: 0.28rem !important;
    padding: 0.24rem 0.4rem;
  }

  .result__comparison strong {
    font-size: 0.66rem;
  }

  .result__comparison span {
    font-size: 0.54rem;
  }

  .result__comparison strong[data-fit="tight"] {
    font-size: 0.57rem;
  }

  .result__comparison span[data-fit="tight"] {
    font-size: 0.48rem;
  }

  .after-scratch {
    padding: 0.35rem 0.5rem 0.4rem;
  }

  .source-links {
    height: 1.95rem;
    margin-top: 0;
  }

  .source-links a {
    min-height: 1.95rem;
    line-height: 0.95rem;
  }

  .share-button {
    min-height: 2.15rem;
    margin-top: 0.32rem;
  }

  .promedex__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promedex-card {
    min-height: 11.5rem;
  }
}

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

  .scratch-flake {
    display: none;
  }

  .scratch-card.is-dealt {
    animation: none;
  }
}
