:root {
  color-scheme: dark;
  --ink: #f3f3f5;
  --muted: #c0bfd1;
  --night: #201d36;
  --night-soft: #313157;
  --panel: rgba(49, 49, 87, 0.88);
  --line: rgba(243, 243, 245, 0.16);
  --accent: #cf224f;
  --accent-deep: #a2274a;
  --violet: #4a4d6f;
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--night);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background-color: var(--night);
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--night);
}

.backdrop__image,
.backdrop__veil {
  position: absolute;
  inset: 0;
}

.backdrop__image {
  inset: 0;
  background: url("./assets/pokelandia-background.jpg") center / cover no-repeat;
}

.backdrop__veil {
  background:
    linear-gradient(90deg, rgba(32, 29, 54, 0.9) 0%, rgba(32, 29, 54, 0.78) 48%, rgba(32, 29, 54, 0.88) 100%),
    linear-gradient(rgba(17, 14, 34, 0.16), rgba(17, 14, 34, 0.36));
}

.shell {
  height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.topbar,
.screen,
footer {
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(32, 29, 54, 0.56);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-logo {
  display: block;
  width: 178px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(10, 8, 25, 0.48));
}

.language-switch {
  display: flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.2);
}

.language-switch button {
  min-width: 64px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(207, 34, 79, 0.28);
}

.screen {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vh, 86px) clamp(24px, 6vw, 92px);
  opacity: 0;
  transform: translateY(5px);
}

.screen--entered {
  animation: screen-enter 220ms ease-out both;
}

.intro-copy,
.question-copy,
.result-copy {
  text-shadow: 0 2px 20px rgba(15, 12, 32, 0.42);
}

.intro-copy {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(243, 243, 245, 0.14);
  border-radius: 32px;
  background: rgba(32, 29, 54, 0.74);
  box-shadow: 0 28px 70px rgba(10, 8, 25, 0.24);
  backdrop-filter: blur(14px);
}

.screen[data-screen="intro"] {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.screen[data-screen="age"] {
  display: grid;
  place-items: center;
}

.age-panel {
  width: min(100%, 980px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(243, 243, 245, 0.15);
  border-radius: 34px;
  background: rgba(32, 29, 54, 0.82);
  box-shadow: 0 32px 80px rgba(8, 6, 20, 0.34);
  backdrop-filter: blur(16px);
  text-align: center;
}

.age-back {
  display: flex;
  margin: -20px 0 10px -18px;
}

.age-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.age-lead {
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.45;
}

.age-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.age-option {
  min-height: 126px;
  display: grid;
  place-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.age-option strong {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.age-option span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.age-option:hover,
.age-option:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(243, 243, 245, 0.38);
  background: rgba(207, 34, 79, 0.17);
  box-shadow: 0 16px 34px rgba(10, 8, 25, 0.28);
}

.eyebrow,
.result-kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.16em;
  font-size: 0.86rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.7vw, 1.5rem);
  line-height: 1.55;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.meta-row span {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 72px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: min(100%, 330px);
  padding: 0 28px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 16px 42px rgba(207, 34, 79, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  isolation: isolate;
}

.primary-button::before {
  content: none;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(207, 34, 79, 0.3);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
  box-shadow: none;
}

.privacy {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.signal-card {
  aspect-ratio: 0.88;
  width: min(100%, 520px);
  justify-self: end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(74, 77, 111, 0.88), rgba(32, 29, 54, 0.96) 48%, rgba(207, 34, 79, 0.4));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

.entrance-visual {
  transform-origin: 60% 55%;
}

.signal-card__grid {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 34px, rgba(255, 255, 255, 0.08) 35px 36px);
}

.signal-card__grid::before,
.signal-card__grid::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(207, 34, 79, 0.56);
  border-radius: 50%;
  transform: rotate(24deg) scaleX(0.72);
}

.signal-card__grid::after {
  border-color: rgba(243, 243, 245, 0.28);
  transform: rotate(-40deg) scaleY(0.7);
}

.signal-card__core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%) rotate(-2deg);
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 0 18px rgba(207, 34, 79, 0.09), 0 0 70px rgba(207, 34, 79, 0.28);
}

.signal-card__core span {
  font-size: 4.2rem;
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.signal-card__core small {
  max-width: 110px;
  margin-top: 10px;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
}

.signal-card__label {
  position: absolute;
  bottom: 30px;
  left: 34px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.screen[data-screen="question"] {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
}

.progress-label {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.progress-track {
  height: 8px;
  margin: 16px 0 clamp(38px, 7vh, 82px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--ink));
  transform-origin: left;
  animation: progress-fill 320ms ease-out both;
}

.question-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: clamp(24px, 4vh, 42px);
  align-content: center;
  align-items: center;
  justify-items: center;
}

.question-copy {
  width: 100%;
  text-align: center;
}

.question-copy h2,
.result-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.question-copy h2 {
  max-width: 1180px;
  margin: 0 auto;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.answers {
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.answers[data-option-count="9"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.answers label {
  min-height: 94px;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  font-size: clamp(1.08rem, 1.65vw, 1.34rem);
  font-weight: 720;
  line-height: 1.35;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.answers label:hover {
  transform: translateX(5px);
  border-color: rgba(243, 243, 245, 0.35);
}

.answers label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(207, 34, 79, 0.14);
  box-shadow: inset 4px 0 var(--accent);
  animation: answer-confirm 180ms ease-out;
}

.answers input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  font-weight: 900;
}

.answers label:has(input:checked) .answer-index {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.question-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: clamp(34px, 6vh, 70px);
}

.question-actions p {
  margin: 0;
  color: var(--muted);
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.result-visual {
  text-align: center;
}

.pokemon-card {
  width: min(100%, 430px);
  margin: 0 auto 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 52% 24%, color-mix(in srgb, var(--pokemon-accent) 42%, transparent), transparent 38%),
    linear-gradient(165deg, rgba(49, 49, 87, 0.96), rgba(18, 16, 34, 0.98) 64%);
  box-shadow: 0 34px 80px rgba(8, 6, 20, 0.46), inset 0 1px rgba(255, 255, 255, 0.08);
  text-align: left;
  isolation: isolate;
}

.pokemon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 35%, rgba(255, 255, 255, 0.055), transparent 67%),
    linear-gradient(to bottom, transparent 58%, rgba(10, 8, 24, 0.88));
  pointer-events: none;
}

.pokemon-card__topline {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pokemon-card__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--pokemon-accent);
  font-size: 1.5rem;
}

.pokemon-card__artwork {
  height: 300px;
  display: grid;
  place-items: center;
  position: relative;
}

.pokemon-card__orb {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px solid color-mix(in srgb, var(--pokemon-accent) 52%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pokemon-accent) 26%, transparent), transparent 68%);
  box-shadow: 0 0 70px color-mix(in srgb, var(--pokemon-accent) 20%, transparent);
}

.pokemon-card__artwork img {
  width: min(88%, 340px);
  height: 96%;
  position: relative;
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 28px 26px rgba(4, 3, 14, 0.58));
}

.pokemon-card__fallback {
  display: none;
  position: relative;
  z-index: 1;
  color: var(--pokemon-accent);
  font-size: 7rem;
  font-weight: 950;
}

.pokemon-card.image-missing .pokemon-card__artwork img {
  display: none;
}

.pokemon-card.image-missing .pokemon-card__fallback {
  display: block;
}

.pokemon-card__identity {
  position: relative;
  z-index: 2;
  padding: 16px 28px 26px;
  background: linear-gradient(to bottom, rgba(18, 16, 34, 0.76), rgba(18, 16, 34, 0.94));
  text-align: center;
}

.pokemon-card__identity h3 {
  margin: 0 0 5px;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.pokemon-card__identity p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.type-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.type-badges span {
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--pokemon-accent) 62%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pokemon-accent) 14%, transparent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 850;
}

.pokemon-card__detail {
  padding: 22px 26px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(10, 8, 24, 0.34);
}

.pokemon-card__detail > span {
  color: var(--pokemon-accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.pokemon-card__detail p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.55;
}

.artwork-license-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  line-height: 1.4;
}

.artwork-placeholder {
  width: min(100%, 410px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(207, 34, 79, 0.58);
  border-radius: 42% 58% 52% 48% / 47% 42% 58% 53%;
  background: radial-gradient(circle, rgba(207, 34, 79, 0.22), rgba(74, 77, 111, 0.12) 56%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(207, 34, 79, 0.09), 0 36px 90px rgba(0, 0, 0, 0.28);
}

.artwork-placeholder span {
  font-size: 8rem;
  font-weight: 950;
  color: var(--accent);
  text-shadow: 0 0 45px rgba(207, 34, 79, 0.3);
}

.result-visual > p {
  color: var(--muted);
  font-size: 0.85rem;
}

.match-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.1rem;
}

.match-line strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.score {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 0 8px 26px rgba(207, 34, 79, 0.3);
}

.result-summary {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.trait-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.trait-list div {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
}

.trait-list span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.trait-list strong {
  color: var(--accent);
  font-size: 1.8rem;
}

.trait-meter {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--trait-value);
  height: 4px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--ink));
  transform: scaleX(0);
  transform-origin: left;
}

.screen--entered .trait-meter {
  animation: meter-grow 900ms cubic-bezier(0.2, 0.82, 0.25, 1) 780ms forwards;
}

.result-reveal {
  opacity: 0;
  transform: translateY(20px);
}

.screen--entered .result-reveal--one {
  animation: result-reveal 260ms ease-out 40ms forwards;
}

.screen--entered .result-reveal--two {
  animation: result-reveal 260ms ease-out 110ms forwards;
}

.screen--entered .result-reveal--three {
  animation: result-reveal 260ms ease-out 180ms forwards;
}

.touch-effect {
  -webkit-tap-highlight-color: transparent;
}

.tap-ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
  pointer-events: none;
  transform: scale(0);
  animation: tap-ripple 520ms ease-out forwards;
}

.difference {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: rgba(207, 34, 79, 0.1);
  line-height: 1.55;
}

.difference > span:first-child {
  color: var(--accent);
  font-weight: 900;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.secondary-button {
  min-width: 190px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
}

.session-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  line-height: 1.4;
}

.email-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.venue-card,
.email-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(10, 8, 25, 0.3);
  backdrop-filter: blur(16px);
}

.venue-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 38px;
  background:
    radial-gradient(circle at 78% 16%, rgba(207, 34, 79, 0.36), transparent 32%),
    linear-gradient(145deg, rgba(49, 49, 87, 0.94), rgba(24, 21, 45, 0.96));
}

.venue-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -85px;
  width: 250px;
  height: 250px;
  border: 42px solid rgba(207, 34, 79, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.venue-card__logo {
  width: 150px;
  height: 112px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(8, 6, 20, 0.46));
}

.venue-card h2 {
  max-width: 520px;
  margin-bottom: 26px;
  font-size: clamp(2.3rem, 4.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.venue-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.venue-details > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(10, 8, 24, 0.24);
}

.venue-details > div > span {
  color: var(--accent);
  font-size: 1.25rem;
}

.venue-details p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.venue-details strong {
  color: var(--ink);
}

.venue-card__tagline {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.email-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 42px;
  background: rgba(32, 29, 54, 0.86);
}

.email-back {
  align-self: flex-start;
  min-height: 44px;
  margin: -18px 0 16px -12px;
}

.email-panel h2 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.email-result-chip {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(74, 77, 111, 0.5);
}

.email-result-chip img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.email-result-chip span {
  display: grid;
  gap: 4px;
}

.email-result-chip small {
  color: var(--muted);
}

.email-result-chip strong {
  font-size: 1.15rem;
}

#email-form > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

#result-email {
  width: 100%;
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  outline: none;
  background: rgba(10, 8, 24, 0.42);
  color: var(--ink);
  font-size: 1.05rem;
}

#result-email:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(207, 34, 79, 0.16);
}

.email-privacy,
.form-status,
.return-countdown {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.email-privacy {
  margin: 9px 0 0;
}

.form-status {
  min-height: 20px;
  margin: 6px 0;
  color: #ff9db5;
  font-weight: 750;
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-actions .primary-button,
.email-actions .secondary-button {
  min-height: 58px;
}

.email-success {
  text-align: center;
}

.email-success__icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 2.2rem;
  font-weight: 950;
  box-shadow: 0 18px 45px rgba(207, 34, 79, 0.28);
}

.email-success .secondary-button {
  margin-top: 12px;
}

footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(32, 29, 54, 0.66);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* Headings receive programmatic focus after screen changes for assistive technology. */
.screen-focus-target:focus,
.screen-focus-target:focus-visible {
  outline: none;
}

@keyframes screen-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progress-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes answer-confirm {
  0% { transform: scale(1); }
  52% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@keyframes result-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes meter-grow {
  to { transform: scaleX(1); }
}

@keyframes tap-ripple {
  to { opacity: 0; transform: scale(8); }
}

@media (max-width: 900px) {
  .screen[data-screen="intro"],
  .question-layout,
  .result-layout {
    grid-template-columns: 1fr;
  }

  .signal-card {
    width: min(72vw, 430px);
    justify-self: center;
  }

  .result-visual {
    width: min(100%, 480px);
    justify-self: center;
  }

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

  .age-option:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .shell {
    height: 100dvh;
    min-height: 0;
    grid-template-rows: 76px minmax(0, 1fr);
  }

  .topbar {
    min-height: 76px;
    padding: 6px 14px;
  }

  .brand-logo {
    width: 112px;
    height: 56px;
  }

  .language-switch button {
    min-width: 52px;
    min-height: 44px;
    padding: 0 10px;
  }

  .screen {
    min-height: 0;
    padding: 14px;
    overflow: hidden;
  }

  .screen[data-screen="intro"] {
    display: block;
  }

  .age-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    border-radius: 22px;
  }

  .age-back {
    min-height: 38px;
    margin: -4px 0 4px -7px;
    align-self: flex-start;
  }

  .age-panel .eyebrow {
    margin-bottom: 8px;
    font-size: 0.62rem;
  }

  .age-panel h2 {
    margin-bottom: 7px;
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .age-lead {
    margin-bottom: 12px;
    font-size: 0.75rem;
  }

  .age-options {
    gap: 7px;
  }

  .age-option {
    min-height: 64px;
    gap: 3px;
    border-radius: 14px;
  }

  .age-option strong {
    font-size: 1.35rem;
  }

  .age-option span {
    font-size: 0.64rem;
  }

  .intro-copy {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border-radius: 24px;
  }

  .intro-copy .eyebrow {
    margin-bottom: 12px;
    font-size: 0.7rem;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(2.6rem, 10.5vw, 3.8rem);
    line-height: 0.94;
  }

  .lead {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .meta-row {
    margin-bottom: 14px;
  }

  .meta-row span {
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .privacy {
    margin-top: 12px;
    font-size: 0.68rem;
  }

  .signal-card {
    display: none;
  }

  .primary-button,
  .secondary-button,
  .text-button {
    min-height: 52px;
  }

  .screen[data-screen="question"] {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .quiz-head {
    min-height: 40px;
  }

  .text-button {
    padding: 0 7px;
  }

  .progress-label {
    font-size: 0.76rem;
  }

  .progress-track {
    height: 5px;
    margin: 5px 0 10px;
  }

  .question-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    align-content: center;
    align-items: center;
  }

  .question-copy .eyebrow {
    margin-bottom: 7px;
    font-size: 0.6rem;
  }

  .question-copy h2,
  .result-copy h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 6.3vw, 2.55rem);
    line-height: 1.02;
  }

  .answers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-content: center;
  }

  .answers label {
    min-height: 58px;
    grid-template-columns: 32px 1fr;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 13px;
    font-size: 0.84rem;
    line-height: 1.18;
  }

  .answer-index {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: 0.78rem;
  }

  .answers[data-option-count="9"] label {
    font-size: 0.66rem;
  }

  .question-actions {
    min-height: 54px;
    align-items: center;
    flex-direction: row;
    margin-top: 8px;
  }

  .question-actions p {
    display: none;
  }

  .question-actions .primary-button,
  .result-actions .primary-button,
  .result-actions .secondary-button {
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.76rem;
  }

  .question-actions .primary-button {
    width: 100%;
  }

  .result-layout {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1.18fr);
    gap: 12px;
  }

  .result-kicker {
    display: block;
    margin-bottom: 5px;
    font-size: 0.58rem;
  }

  .pokemon-card {
    width: 100%;
    margin: 0;
    border-radius: 20px;
  }

  .pokemon-card__topline {
    min-height: 38px;
    padding: 8px 12px 0;
    font-size: 0.66rem;
  }

  .pokemon-card__mark {
    width: 27px;
    height: 27px;
  }

  .pokemon-card__artwork {
    height: 142px;
  }

  .pokemon-card__orb {
    width: 125px;
    height: 125px;
  }

  .pokemon-card__artwork img {
    width: min(88%, 170px);
  }

  .pokemon-card__identity {
    padding: 7px 10px 11px;
  }

  .pokemon-card__identity h3 {
    font-size: 1.45rem;
  }

  .pokemon-card__identity p {
    margin-bottom: 7px;
    font-size: 0.62rem;
  }

  .type-badges {
    gap: 4px;
  }

  .type-badges span {
    padding: 4px 7px;
    font-size: 0.56rem;
  }

  .pokemon-card__detail {
    padding: 9px 11px 10px;
  }

  .pokemon-card__detail > span {
    font-size: 0.5rem;
  }

  .pokemon-card__detail p {
    margin-top: 4px;
    font-size: 0.6rem;
    line-height: 1.25;
  }

  .artwork-license-note {
    display: none;
  }

  .result-copy .eyebrow {
    margin-bottom: 5px;
    font-size: 0.58rem;
  }

  .match-line {
    gap: 5px;
    margin: 7px 0;
    font-size: 0.68rem;
  }

  .match-line strong {
    font-size: 0.78rem;
  }

  .score {
    padding: 4px 6px;
    border-radius: 7px;
  }

  .result-summary {
    margin-bottom: 7px;
    font-size: 0.66rem;
    line-height: 1.28;
  }

  .trait-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 7px 0;
  }

  .trait-list div {
    min-height: 50px;
    padding: 7px;
    border-radius: 10px;
  }

  .trait-list span {
    font-size: 0.5rem;
  }

  .trait-list strong {
    font-size: 0.9rem;
  }

  .difference {
    margin: 7px 0 0;
    padding: 7px 8px;
    font-size: 0.58rem;
    line-height: 1.25;
  }

  .result-actions {
    gap: 5px;
    margin-top: 7px;
  }

  .session-note {
    display: none;
  }

  .email-layout {
    grid-template-columns: minmax(170px, 0.76fr) minmax(0, 1.24fr);
    gap: 8px;
  }

  .venue-card,
  .email-panel {
    min-height: 0;
    height: 100%;
    border-radius: 18px;
  }

  .venue-card {
    padding: 12px;
  }

  .venue-card__logo {
    width: 76px;
    height: 58px;
    margin-bottom: 7px;
  }

  .venue-card .eyebrow {
    margin-bottom: 6px;
    font-size: 0.48rem;
  }

  .venue-card h2 {
    margin-bottom: 10px;
    font-size: 1.25rem;
  }

  .venue-details {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .venue-details > div {
    grid-template-columns: 18px 1fr;
    gap: 5px;
    padding: 7px;
    border-radius: 10px;
  }

  .venue-details > div > span {
    font-size: 0.8rem;
  }

  .venue-details p {
    font-size: 0.56rem;
    line-height: 1.3;
  }

  .venue-card__tagline {
    margin-top: 8px;
    font-size: 0.56rem;
    line-height: 1.3;
  }

  .email-panel {
    padding: 13px;
  }

  .email-back {
    min-height: 32px;
    margin: -4px 0 5px -6px;
    font-size: 0.62rem;
  }

  .email-panel .eyebrow {
    margin-bottom: 5px;
    font-size: 0.48rem;
  }

  .email-panel h2 {
    margin-bottom: 7px;
    font-size: 1.4rem;
  }

  .email-result-chip {
    min-height: 50px;
    gap: 7px;
    margin-bottom: 7px;
    padding: 4px 7px 4px 4px;
    border-radius: 11px;
  }

  .email-result-chip img {
    width: 42px;
    height: 42px;
  }

  .email-result-chip small {
    font-size: 0.54rem;
  }

  .email-result-chip strong {
    font-size: 0.72rem;
  }

  #email-form > label {
    margin-bottom: 4px;
    font-size: 0.58rem;
  }

  #result-email {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 11px;
    font-size: 0.76rem;
  }

  .email-privacy {
    margin-top: 5px;
    font-size: 0.53rem;
    line-height: 1.25;
  }

  .form-status {
    min-height: 15px;
    margin: 2px 0;
    font-size: 0.54rem;
  }

  .email-actions {
    gap: 5px;
  }

  .email-actions .primary-button,
  .email-actions .secondary-button {
    min-height: 43px;
    padding: 0 9px;
    border-radius: 11px;
    font-size: 0.62rem;
  }

  .email-success__icon {
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    font-size: 1.5rem;
  }

  .email-success > p,
  .return-countdown {
    font-size: 0.62rem;
  }

  footer {
    display: none;
  }
}

/* Dedicated 13.4-inch Android tablet layout: portrait, one viewport, no scrolling. */
@media (orientation: portrait) and (min-width: 621px) and (max-width: 1200px) {
  .shell {
    height: 100dvh;
    min-height: 0;
    grid-template-rows: 86px minmax(0, 1fr) 38px;
  }

  .topbar {
    min-height: 86px;
    padding: 8px 28px;
  }

  .brand-logo {
    width: 138px;
    height: 66px;
  }

  .language-switch button {
    min-width: 58px;
    min-height: 48px;
    padding: 0 14px;
  }

  .screen {
    width: 100%;
    min-height: 0;
    padding: 18px 28px;
    overflow: hidden;
  }

  .screen[data-screen="intro"] {
    grid-template-columns: minmax(0, 1.3fr) minmax(230px, 0.7fr);
    gap: 26px;
  }

  .age-panel {
    width: min(100%, 760px);
    padding: 28px;
    border-radius: 28px;
  }

  .age-back {
    margin: -12px 0 6px -10px;
  }

  .age-panel .eyebrow {
    margin-bottom: 12px;
  }

  .age-panel h2 {
    margin-bottom: 10px;
    font-size: clamp(3rem, 7vw, 4.7rem);
  }

  .age-lead {
    margin-bottom: 22px;
  }

  .age-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .age-option {
    min-height: 88px;
  }

  .age-option:last-child {
    grid-column: 1 / -1;
  }

  .intro-copy {
    padding: 26px;
    border-radius: 26px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: clamp(3rem, 7.6vw, 5.4rem);
  }

  .lead {
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.42;
  }

  .meta-row {
    margin-bottom: 20px;
  }

  .signal-card {
    width: min(100%, 290px);
    border-radius: 30px;
  }

  .signal-card__core {
    width: 124px;
    height: 124px;
  }

  .signal-card__core span {
    font-size: 3.2rem;
  }

  .primary-button,
  .secondary-button,
  .text-button {
    min-height: 56px;
  }

  .screen[data-screen="question"] {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .quiz-head {
    min-height: 48px;
  }

  .text-button {
    padding: 0 10px;
  }

  .progress-track {
    height: 6px;
    margin: 7px 0 16px;
  }

  .question-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 22px;
    align-content: center;
    align-items: center;
  }

  .question-copy .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .question-copy h2 {
    margin-bottom: 0;
    max-width: 920px;
    font-size: clamp(2.75rem, 5.2vw, 4rem);
    line-height: 1.05;
  }

  .answers {
    width: min(100%, 900px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-content: center;
  }

  .answers label {
    min-height: 76px;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 17px;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.25;
  }

  .answer-index {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    font-size: 1.05rem;
  }

  .question-actions {
    min-height: 64px;
    margin-top: 12px;
  }

  .question-actions p {
    max-width: 42%;
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .question-actions .primary-button {
    min-width: 250px;
  }

  .result-layout {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.18fr);
    gap: 26px;
  }

  .result-visual {
    width: 100%;
  }

  .result-kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .pokemon-card {
    width: min(100%, 310px);
    margin-bottom: 0;
    border-radius: 25px;
  }

  .pokemon-card__topline {
    min-height: 48px;
    padding: 12px 18px 0;
    font-size: 0.78rem;
  }

  .pokemon-card__mark {
    width: 32px;
    height: 32px;
  }

  .pokemon-card__artwork {
    height: 205px;
  }

  .pokemon-card__orb {
    width: 180px;
    height: 180px;
  }

  .pokemon-card__artwork img {
    width: min(84%, 255px);
    height: 94%;
  }

  .pokemon-card__identity {
    padding: 10px 18px 16px;
  }

  .pokemon-card__identity h3 {
    font-size: 2rem;
  }

  .pokemon-card__identity p {
    margin-bottom: 10px;
    font-size: 0.75rem;
  }

  .type-badges span {
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .pokemon-card__detail {
    padding: 13px 18px 15px;
  }

  .pokemon-card__detail p {
    margin-top: 5px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .artwork-license-note {
    display: none;
  }

  .result-copy .eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
  }

  .result-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 4.2vw, 3rem);
  }

  .match-line {
    gap: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .match-line strong {
    font-size: 1.05rem;
  }

  .score {
    padding: 6px 9px;
  }

  .result-summary {
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .trait-list {
    gap: 7px;
    margin: 10px 0;
  }

  .trait-list div {
    min-height: 68px;
    padding: 10px;
    border-radius: 13px;
  }

  .trait-list span {
    font-size: 0.68rem;
  }

  .trait-list strong {
    font-size: 1.25rem;
  }

  .difference {
    margin: 10px 0 0;
    padding: 10px 12px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .result-actions {
    gap: 9px;
    margin-top: 12px;
  }

  .result-actions .primary-button,
  .result-actions .secondary-button {
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 0.82rem;
  }

  .email-layout {
    grid-template-columns: minmax(250px, 0.86fr) minmax(0, 1.14fr);
    gap: 22px;
  }

  .venue-card,
  .email-panel {
    min-height: 0;
    height: min(100%, 640px);
    border-radius: 24px;
  }

  .venue-card {
    padding: 24px;
  }

  .venue-card__logo {
    width: 110px;
    height: 82px;
    margin-bottom: 12px;
  }

  .venue-card .eyebrow {
    margin-bottom: 10px;
    font-size: 0.64rem;
  }

  .venue-card h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 3.8vw, 3rem);
  }

  .venue-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .venue-details > div {
    padding: 10px;
  }

  .venue-details p,
  .venue-card__tagline {
    font-size: 0.74rem;
  }

  .venue-card__tagline {
    margin-top: 14px;
  }

  .email-panel {
    padding: 26px;
  }

  .email-back {
    margin: -12px 0 10px -8px;
  }

  .email-panel .eyebrow {
    margin-bottom: 8px;
    font-size: 0.64rem;
  }

  .email-panel h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 3.8vw, 3rem);
  }

  .email-result-chip {
    min-height: 68px;
    margin-bottom: 12px;
  }

  .email-result-chip img {
    width: 54px;
    height: 54px;
  }

  #result-email {
    min-height: 56px;
  }

  .email-actions .primary-button,
  .email-actions .secondary-button {
    min-height: 52px;
    padding: 0 15px;
    font-size: 0.8rem;
  }

  footer {
    min-height: 38px;
    padding: 7px 28px;
    font-size: 0.58rem;
  }
}

@media (orientation: portrait) and (min-width: 621px) and (max-width: 1200px) and (max-height: 900px) {
  .shell {
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .topbar {
    min-height: 72px;
  }

  .brand-logo {
    width: 118px;
    height: 56px;
  }

  .screen {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  footer {
    display: none;
  }

  .answers label {
    min-height: 62px;
  }

  .pokemon-card__artwork {
    height: 165px;
  }

  .pokemon-card__detail {
    display: none;
  }
}

@media (orientation: portrait) and (max-height: 600px) {
  .screen[data-screen="email"] {
    padding: 8px 14px;
  }

  .email-layout {
    grid-template-columns: 1fr;
  }

  .venue-card {
    display: none;
  }

  .email-panel {
    width: min(100%, 620px);
    height: 100%;
    justify-self: center;
  }

  .email-result-chip,
  .email-privacy {
    display: none;
  }
}

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

.result-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.46);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 850;
}

.result-tabs span {
  padding: 8px 4px 10px;
}

.result-tabs .is-active {
  position: relative;
  color: var(--ink);
}

.result-tabs .is-active::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: -1px;
  left: 28%;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

/* Portrait result inspired by the supplied Pokédex reference, in Pokélandia colours. */
@media (orientation: portrait) {
  .screen[data-screen="result"] {
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 12px 20px;
  }

  .result-layout {
    width: min(100%, 760px);
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 42% 58%;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 36px;
    background:
      radial-gradient(circle at 82% 6%, color-mix(in srgb, var(--pokemon-accent, var(--accent)) 32%, transparent), transparent 28%),
      linear-gradient(165deg, rgba(44, 40, 76, 0.97), rgba(14, 12, 29, 0.99) 68%);
    box-shadow: 0 34px 90px rgba(4, 3, 15, 0.48), inset 0 1px rgba(255, 255, 255, 0.08);
  }

  .result-visual {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
  }

  .result-kicker {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 4;
    margin: 0;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    white-space: nowrap;
  }

  .pokemon-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    display: grid;
    grid-template-rows: 52px minmax(0, 1fr) 82px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .pokemon-card__topline {
    position: relative;
    z-index: 5;
  }

  .pokemon-card::before {
    background:
      linear-gradient(145deg, transparent 38%, rgba(255, 255, 255, 0.045), transparent 72%),
      radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--pokemon-accent) 24%, transparent), transparent 48%);
  }

  .pokemon-card__topline {
    min-height: 58px;
    padding: 18px 24px 0;
  }

  .pokemon-card__artwork {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .pokemon-card__orb {
    width: min(54vw, 330px);
    height: min(54vw, 330px);
    border-color: color-mix(in srgb, var(--pokemon-accent) 34%, transparent);
  }

  .pokemon-card__artwork img {
    width: min(76%, 390px);
    height: 100%;
    max-height: 100%;
    position: absolute;
    inset: 0;
    margin: auto;
    object-fit: contain;
  }

  .pokemon-card__identity {
    padding: 6px 24px 14px;
    background: linear-gradient(to bottom, transparent, rgba(13, 11, 27, 0.74));
  }

  .pokemon-card__identity h3 {
    margin-bottom: 3px;
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .pokemon-card__identity p {
    margin-bottom: 8px;
  }

  .pokemon-card__detail,
  .artwork-license-note {
    display: none;
  }

  .result-copy {
    min-height: 0;
    padding: 14px 34px 20px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 8, 21, 0.6);
    text-shadow: none;
  }

  .result-copy > .eyebrow {
    margin-bottom: 4px;
    text-align: center;
    font-size: 0.62rem;
  }

  .result-copy h2 {
    margin-bottom: 5px;
    text-align: center;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1;
  }

  .match-line {
    justify-content: center;
    margin: 0 0 8px;
    font-size: 0.82rem;
  }

  .match-line strong {
    font-size: 0.95rem;
  }

  .score {
    padding: 5px 8px;
    border-radius: 9px;
  }

  .result-summary {
    max-width: 660px;
    margin: 0 auto 9px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .result-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 850;
  }

  .result-tabs span {
    padding: 7px 4px 8px;
  }

  .result-tabs .is-active {
    position: relative;
    color: var(--ink);
  }

  .result-tabs .is-active::after {
    content: "";
    position: absolute;
    right: 28%;
    bottom: -1px;
    left: 28%;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 18px rgba(207, 34, 79, 0.65);
  }

  .trait-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 0;
  }

  .trait-list div {
    min-height: 30px;
    display: grid;
    grid-template-columns: minmax(105px, 0.7fr) 42px minmax(150px, 1.5fr);
    align-items: center;
    gap: 10px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .trait-list span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
  }

  .trait-list strong {
    color: var(--ink);
    font-size: 0.85rem;
    text-align: right;
  }

  .trait-meter {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 13px;
    overflow: hidden;
    border-radius: 3px;
    background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.1) 0 11px, transparent 11px 16px);
    transform: none;
  }

  .trait-meter::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--trait-value);
    background: repeating-linear-gradient(100deg, var(--accent) 0 11px, transparent 11px 16px);
    filter: drop-shadow(0 0 5px rgba(207, 34, 79, 0.5));
  }

  .screen--entered .trait-meter {
    animation: none;
  }

  .difference {
    margin: 8px 0 0;
    padding: 7px 10px;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8px;
    margin-top: 9px;
  }

  .result-actions .primary-button,
  .result-actions .secondary-button {
    min-width: 0;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.75rem;
  }

  .session-note {
    display: none;
  }
}

@media (orientation: portrait) and (max-width: 620px) {
  .screen[data-screen="result"] {
    padding: 8px 12px;
  }

  .result-layout {
    grid-template-rows: 40% 60%;
    border-radius: 24px;
  }

  .result-kicker {
    top: 11px;
    font-size: 0.52rem;
  }

  .pokemon-card {
    grid-template-rows: 36px minmax(0, 1fr) 52px;
  }

  .pokemon-card__topline {
    min-height: 36px;
    padding: 9px 14px 0;
  }

  .pokemon-card__artwork img {
    width: min(68%, 250px);
  }

  .pokemon-card__orb {
    width: 160px;
    height: 160px;
  }

  .pokemon-card__identity {
    padding: 0 12px 7px;
  }

  .pokemon-card__identity h3 {
    font-size: 1.45rem;
  }

  .pokemon-card__identity p {
    display: none;
  }

  .type-badges span {
    padding: 3px 6px;
    font-size: 0.52rem;
  }

  .result-copy {
    padding: 8px 12px 10px;
  }

  .result-copy > .eyebrow,
  .result-summary,
  .difference {
    display: none;
  }

  .result-copy h2 {
    margin-bottom: 3px;
    font-size: 1.35rem;
  }

  .match-line {
    margin-bottom: 4px;
    font-size: 0.65rem;
  }

  .result-tabs {
    margin-bottom: 4px;
    font-size: 0.6rem;
  }

  .result-tabs span {
    padding: 4px;
  }

  .trait-list {
    gap: 2px;
  }

  .trait-list div {
    min-height: 23px;
    grid-template-columns: 88px 32px 1fr;
    gap: 6px;
  }

  .trait-list span {
    font-size: 0.59rem;
  }

  .trait-list strong {
    font-size: 0.68rem;
  }

  .trait-meter {
    height: 10px;
    background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.1) 0 8px, transparent 8px 12px);
  }

  .trait-meter::after {
    background: repeating-linear-gradient(100deg, var(--accent) 0 8px, transparent 8px 12px);
  }

  .result-actions {
    margin-top: 5px;
  }

  .result-actions .primary-button,
  .result-actions .secondary-button {
    min-height: 40px;
    font-size: 0.62rem;
  }
}

@media (orientation: portrait) and (max-height: 900px) {
  .result-layout {
    grid-template-rows: 46% 54%;
  }

  .pokemon-card {
    grid-template-rows: 38px minmax(0, 1fr) 54px;
  }

  .pokemon-card__topline {
    min-height: 38px;
    padding: 9px 14px 0;
  }

  .pokemon-card__identity {
    padding: 0 12px 7px;
  }

  .pokemon-card__identity h3 {
    font-size: 1.5rem;
  }

  .pokemon-card__identity p {
    display: none;
  }

  .result-copy {
    padding: 8px 18px 10px;
  }

  .result-copy > .eyebrow,
  .result-summary,
  .difference {
    display: none;
  }

  .result-copy h2 {
    margin-bottom: 3px;
    font-size: 1.45rem;
  }

  .match-line {
    margin-bottom: 4px;
  }

  .result-tabs {
    margin-bottom: 4px;
  }

  .result-tabs span {
    padding-top: 4px;
    padding-bottom: 5px;
  }

  .trait-list {
    gap: 2px;
  }

  .trait-list div {
    min-height: 25px;
  }

  .result-actions {
    margin-top: 5px;
  }
}

/* Refined portrait introduction: calm, premium and free of the target-like portal. */
@media (orientation: portrait) {
  .screen[data-screen="intro"] {
    display: grid;
    place-items: center;
  }

  .screen[data-screen="intro"] .signal-card {
    display: none !important;
  }

  .intro-copy {
    position: relative;
    width: min(100%, 760px);
    padding: clamp(34px, 6vh, 66px) clamp(28px, 7vw, 70px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 34px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 38%),
      radial-gradient(circle at 86%  14%, rgba(207, 34, 79, 0.24), transparent 32%),
      linear-gradient(165deg, rgba(38, 35, 67, 0.94), rgba(19, 17, 38, 0.94));
    box-shadow: 0 32px 80px rgba(7, 5, 22, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
  }

  .intro-copy::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    top: -105px;
    right: -72px;
    border: 24px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(207, 34, 79, 0.035);
    pointer-events: none;
  }

  .intro-copy::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: 0;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(207, 34, 79, 0.8), transparent);
    pointer-events: none;
  }

  .intro-copy h1 {
    max-width: 650px;
    font-size: clamp(3.2rem, 8vw, 5.8rem);
  }

  .intro-copy .lead {
    max-width: 570px;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
  }

  .intro-copy .primary-button {
    width: min(100%, 460px);
  }
}

@media (orientation: portrait) and (max-height: 900px) {
  .intro-copy {
    padding: 30px 34px;
    border-radius: 26px;
  }

  .intro-copy h1 {
    font-size: clamp(2.55rem, 7vw, 4rem);
  }
}

/* Cohesive portrait kiosk journey. */
.quiz-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 10px;
}

.quiz-phases span {
  position: relative;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 8, 24, 0.2);
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.quiz-phases span.is-complete {
  color: rgba(255, 255, 255, 0.68);
}

.quiz-phases span.is-complete::before {
  content: "✓ ";
  color: var(--accent);
}

.quiz-phases span.is-active {
  border-color: rgba(207, 34, 79, 0.72);
  background: rgba(207, 34, 79, 0.16);
  color: var(--ink);
  box-shadow: 0 8px 28px rgba(207, 34, 79, 0.13);
}

.answers label:has(input:checked)::after {
  content: "✓";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 950;
  box-shadow: 0 6px 18px rgba(207, 34, 79, 0.35);
}

.screen[data-screen="evaluating"] {
  display: grid;
  place-items: center;
}

.evaluation-card {
  width: min(100%, 760px);
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 28%, rgba(207, 34, 79, 0.2), transparent 34%),
    linear-gradient(155deg, rgba(47, 43, 79, 0.9), rgba(15, 13, 31, 0.96));
  box-shadow: 0 34px 90px rgba(5, 4, 17, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(18px);
}

.evaluation-orbit {
  width: clamp(190px, 32vw, 290px);
  height: clamp(190px, 32vw, 290px);
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto 28px;
}

.evaluation-orbit__ring,
.evaluation-orbit::before,
.evaluation-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.evaluation-orbit__ring {
  inset: 4%;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-top-color: var(--accent);
  border-right-color: rgba(207, 34, 79, 0.56);
  animation: evaluation-spin 5s linear infinite;
}

.evaluation-orbit::before {
  inset: 17%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  animation: evaluation-spin 8s linear infinite reverse;
}

.evaluation-orbit::after {
  inset: 31%;
  background: radial-gradient(circle at 42% 36%, #fff 0 5%, #ef496f 7% 22%, #b61f49 48%, #4d244d 72%);
  box-shadow: 0 0 0 12px rgba(207, 34, 79, 0.1), 0 0 70px rgba(207, 34, 79, 0.42);
}

.evaluation-orbit__core {
  width: 23%;
  height: 23%;
  z-index: 2;
  border: 8px solid #f2f1f5;
  border-radius: 50%;
  background: #242039;
  box-shadow: 0 0 0 5px #312c4f, 0 0 30px rgba(255, 255, 255, 0.28);
}

.evaluation-orbit i {
  width: 10px;
  height: 10px;
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

.evaluation-orbit i:nth-of-type(1) { top: 13%; left: 27%; }
.evaluation-orbit i:nth-of-type(2) { right: 12%; bottom: 30%; width: 7px; height: 7px; }
.evaluation-orbit i:nth-of-type(3) { bottom: 13%; left: 19%; width: 6px; height: 6px; }

.evaluation-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.evaluation-card > p:not(.eyebrow) {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1rem;
}

.evaluation-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.evaluation-steps span {
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  font-weight: 850;
  transition: color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.evaluation-steps span.is-active {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 24px rgba(207, 34, 79, 0.3);
}

@keyframes evaluation-spin {
  to { transform: rotate(360deg); }
}

@media (orientation: portrait) {
  .screen[data-screen="intro"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .signal-card {
    display: block;
    order: -1;
    width: min(44vw, 310px);
    aspect-ratio: 1;
    justify-self: auto;
    flex: 0 0 auto;
    border-radius: 50%;
    transform: none;
    background:
      radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.18), transparent 12%),
      radial-gradient(circle, rgba(207, 34, 79, 0.6), rgba(72, 38, 83, 0.72) 45%, rgba(19, 17, 37, 0.96) 72%);
    box-shadow: 0 0 0 14px rgba(207, 34, 79, 0.07), 0 0 90px rgba(207, 34, 79, 0.34);
    animation: portal-float 6s ease-in-out infinite alternate;
  }

  .signal-card__grid {
    inset: 8%;
  }

  .signal-card__core {
    width: 42%;
    height: 42%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #f1f0f4, #aaa7bb);
    color: #211d38;
    box-shadow: 0 0 0 11px rgba(30, 26, 51, 0.88), 0 0 55px rgba(255, 255, 255, 0.24);
  }

  .signal-card__core span {
    font-size: 2.8rem;
  }

  .signal-card__core small {
    max-width: 92px;
    margin-top: 4px;
    font-size: 0.54rem;
  }

  .signal-card__label {
    display: none;
  }

  .intro-copy {
    width: min(100%, 760px);
    padding: 24px 30px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    text-align: center;
  }

  .intro-copy h1,
  .intro-copy .lead,
  .intro-copy .privacy {
    margin-right: auto;
    margin-left: auto;
  }

  .intro-copy h1 {
    font-size: clamp(3rem, 8vw, 5.6rem);
  }

  .intro-copy .meta-row {
    justify-content: center;
  }

  .intro-copy .primary-button {
    margin: 0 auto;
  }

  .age-option {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 82% 18%, rgba(207, 34, 79, 0.18), transparent 34%),
      rgba(49, 49, 87, 0.86);
  }

  .age-option::before {
    content: "";
    width: 72px;
    height: 72px;
    position: absolute;
    right: -24px;
    bottom: -26px;
    border: 12px solid rgba(255, 255, 255, 0.045);
    border-radius: 50%;
  }

  .screen[data-screen="question"] {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  }

  .quiz-phases {
    width: min(100%, 720px);
    justify-self: center;
  }

  .progress-track {
    width: min(100%, 900px);
    justify-self: center;
  }

  .evaluation-card {
    max-height: 100%;
  }
}

@media (orientation: portrait) and (max-height: 900px) {
  .signal-card {
    width: min(30vw, 190px);
  }

  .intro-copy {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .intro-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(2.7rem, 7vw, 4rem);
  }

  .intro-copy .lead {
    margin-bottom: 10px;
  }

  .evaluation-card {
    padding: 22px;
  }

  .evaluation-orbit {
    width: 170px;
    height: 170px;
    margin-bottom: 16px;
  }

  .evaluation-card h2 {
    font-size: 2.35rem;
  }
}

@keyframes portal-float {
  from { transform: translateY(4px) scale(0.99); }
  to { transform: translateY(-5px) scale(1.015); }
}

@media (prefers-reduced-motion: reduce) {
  .signal-card,
  .evaluation-orbit__ring,
  .evaluation-orbit::before {
    animation: none;
  }
}

/* Type-reactive artwork atmosphere. Motion is deliberately slow and never flashes. */
.pokemon-card__artwork {
  isolation: isolate;
  background:
    linear-gradient(rgba(14, 12, 29, 0.08), rgba(14, 12, 29, 0.28)),
    var(--type-backdrop, radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--pokemon-accent) 62%, #25213e), #17142b 76%));
}

.pokemon-card__artwork::before,
.pokemon-card__artwork::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.pokemon-card__artwork::before {
  inset: -12% -8%;
  z-index: 0;
  border-radius: 38% 62% 54% 46% / 56% 42% 58% 44%;
  background: var(--type-art, radial-gradient(circle, color-mix(in srgb, var(--pokemon-accent) 34%, transparent), transparent 68%));
  filter: saturate(1.24) contrast(1.05);
  animation: type-art-drift 14s ease-in-out infinite alternate;
}

.pokemon-card__artwork::after {
  inset: 2% 4%;
  z-index: 0;
  border-radius: 50%;
  background: var(--type-pattern, radial-gradient(circle at 50% 50%, transparent 48%, color-mix(in srgb, var(--pokemon-accent) 24%, transparent) 49% 50%, transparent 51%));
  mix-blend-mode: screen;
  opacity: 1;
}

.pokemon-card__orb {
  z-index: 1;
  opacity: 0.7;
}

.pokemon-card__artwork img,
.pokemon-card__fallback {
  z-index: 2;
}

.pokemon-card[data-pokemon-type="fire"] {
  --type-backdrop: radial-gradient(circle at 72% 25%, #d95b32 0, #8b293d 33%, #36203e 68%, #17142b 100%);
  --type-art:
    radial-gradient(ellipse at 22% 86%, rgba(255, 197, 84, 0.58), transparent 31%),
    radial-gradient(ellipse at 72% 78%, rgba(255, 76, 45, 0.5), transparent 38%),
    conic-gradient(from 210deg at 50% 90%, transparent 0 13%, rgba(255, 112, 39, 0.42) 15% 23%, transparent 25% 42%, rgba(207, 34, 79, 0.34) 45% 55%, transparent 58%);
  --type-pattern: radial-gradient(circle at 30% 35%, rgba(255, 218, 138, 0.42) 0 3px, transparent 4px), radial-gradient(circle at 76% 48%, rgba(255, 99, 52, 0.42) 0 4px, transparent 5px);
}

.pokemon-card[data-pokemon-type="water"] {
  --type-backdrop: radial-gradient(circle at 30% 30%, #3aa7d5 0, #2366a3 34%, #26365f 68%, #15152c 100%);
  --type-art:
    radial-gradient(circle at 28% 32%, rgba(129, 226, 255, 0.52), transparent 23%),
    radial-gradient(circle at 74% 66%, rgba(32, 132, 230, 0.54), transparent 34%),
    linear-gradient(155deg, rgba(23, 78, 170, 0.16), rgba(48, 188, 226, 0.38));
  --type-pattern: radial-gradient(circle at 24% 72%, transparent 0 11px, rgba(183, 239, 255, 0.38) 12px 13px, transparent 14px), radial-gradient(circle at 76% 28%, transparent 0 18px, rgba(128, 215, 255, 0.32) 19px 20px, transparent 21px);
}

.pokemon-card[data-pokemon-type="grass"] {
  --type-backdrop: radial-gradient(circle at 70% 28%, #68b773 0, #307958 34%, #263a48 68%, #15172c 100%);
  --type-art:
    radial-gradient(ellipse at 22% 70%, rgba(68, 196, 121, 0.48), transparent 34%),
    radial-gradient(ellipse at 75% 28%, rgba(136, 221, 100, 0.42), transparent 32%),
    linear-gradient(140deg, rgba(22, 98, 72, 0.28), rgba(70, 147, 75, 0.36));
  --type-pattern: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 28px, rgba(154, 235, 139, 0.18) 29px 31px, transparent 32px 48px);
}

.pokemon-card[data-pokemon-type="electric"] {
  --type-backdrop: radial-gradient(circle at 48% 38%, #e9c949 0, #9d6b2e 30%, #4b3445 64%, #18152c 100%);
  --type-art:
    conic-gradient(from 195deg at 52% 52%, transparent 0 8%, rgba(255, 225, 69, 0.56) 9% 14%, transparent 15% 35%, rgba(250, 184, 38, 0.48) 36% 43%, transparent 44% 72%, rgba(255, 237, 124, 0.42) 73% 78%, transparent 79%),
    radial-gradient(circle, rgba(245, 209, 44, 0.32), transparent 64%);
  --type-pattern: repeating-conic-gradient(from 18deg, transparent 0 16deg, rgba(255, 233, 108, 0.18) 17deg 19deg, transparent 20deg 38deg);
}

.pokemon-card[data-pokemon-type="psychic"] {
  --type-backdrop: radial-gradient(circle at 62% 34%, #b75fc5 0, #654894 36%, #34284f 66%, #17142b 100%);
  --type-art: conic-gradient(from 40deg, rgba(227, 105, 205, 0.35), rgba(92, 73, 196, 0.44), rgba(207, 34, 117, 0.34), rgba(227, 105, 205, 0.35));
  --type-pattern: repeating-radial-gradient(circle, transparent 0 28px, rgba(245, 171, 236, 0.18) 29px 31px, transparent 32px 48px);
}

.pokemon-card[data-pokemon-type="fighting"] {
  --type-backdrop: radial-gradient(circle at 50% 42%, #c95749 0, #74333d 38%, #35233b 70%, #17142b 100%);
  --type-art: repeating-conic-gradient(from 8deg at 50% 56%, rgba(210, 49, 62, 0.36) 0 7deg, transparent 8deg 24deg), radial-gradient(circle, rgba(236, 96, 63, 0.38), transparent 58%);
  --type-pattern: radial-gradient(circle, transparent 0 48%, rgba(255, 151, 103, 0.28) 49% 51%, transparent 52%);
}

.pokemon-card[data-pokemon-type="ghost"] {
  --type-backdrop: radial-gradient(circle at 64% 30%, #765e9e 0, #443665 38%, #28213f 70%, #141226 100%);
  --type-art: radial-gradient(ellipse at 28% 65%, rgba(131, 93, 171, 0.48), transparent 38%), radial-gradient(ellipse at 72% 38%, rgba(76, 47, 128, 0.56), transparent 40%), linear-gradient(145deg, rgba(38, 24, 70, 0.2), rgba(118, 80, 143, 0.3));
  --type-pattern: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 34px, rgba(209, 184, 237, 0.13) 35px 38px, transparent 39px 55px);
}

.pokemon-card[data-pokemon-type="ground"] {
  --type-backdrop: radial-gradient(circle at 65% 30%, #c58b54 0, #785338 38%, #3d302f 68%, #17142b 100%);
  --type-art: linear-gradient(155deg, rgba(216, 162, 91, 0.42), transparent 40%), radial-gradient(ellipse at 70% 72%, rgba(143, 94, 53, 0.48), transparent 45%);
  --type-pattern: repeating-linear-gradient(168deg, transparent 0 22px, rgba(241, 200, 133, 0.15) 23px 25px, transparent 26px 42px);
}

.pokemon-card[data-pokemon-type="bug"] {
  --type-backdrop: radial-gradient(circle at 66% 28%, #8fad4d 0, #526f3c 36%, #30413c 68%, #15162a 100%);
  --type-art: radial-gradient(circle at 35% 35%, rgba(175, 212, 68, 0.46), transparent 32%), radial-gradient(circle at 68% 70%, rgba(87, 143, 62, 0.46), transparent 38%);
  --type-pattern: radial-gradient(circle, transparent 0 16px, rgba(203, 232, 111, 0.18) 17px 19px, transparent 20px) 0 0 / 46px 40px;
}

.pokemon-card[data-pokemon-type="dragon"] {
  --type-backdrop: radial-gradient(circle at 60% 30%, #696ac4 0, #514080 38%, #34284e 68%, #151329 100%);
  --type-art: conic-gradient(from 230deg at 50% 62%, rgba(75, 70, 186, 0.48), rgba(200, 64, 148, 0.3), rgba(67, 139, 211, 0.4), rgba(75, 70, 186, 0.48));
  --type-pattern: repeating-conic-gradient(from 45deg, transparent 0 28deg, rgba(179, 164, 255, 0.16) 29deg 31deg, transparent 32deg 58deg);
}

.pokemon-card[data-pokemon-type="ice"] {
  --type-backdrop: radial-gradient(circle at 55% 34%, #b7e7ed 0, #569bb9 34%, #354d6c 68%, #15162d 100%);
  --type-art: linear-gradient(145deg, rgba(202, 247, 255, 0.42), rgba(80, 175, 213, 0.35), transparent 72%);
  --type-pattern: repeating-conic-gradient(from 15deg, transparent 0 42deg, rgba(218, 250, 255, 0.2) 43deg 46deg, transparent 47deg 88deg);
}

.pokemon-card[data-pokemon-type="fairy"] {
  --type-backdrop: radial-gradient(circle at 55% 32%, #e8a4d5 0, #9d5f9e 36%, #4d355d 68%, #18142c 100%);
  --type-art: radial-gradient(circle at 32% 32%, rgba(255, 186, 232, 0.48), transparent 30%), radial-gradient(circle at 72% 68%, rgba(184, 132, 238, 0.4), transparent 36%);
  --type-pattern: radial-gradient(circle at 22% 30%, rgba(255, 235, 251, 0.65) 0 2px, transparent 3px), radial-gradient(circle at 76% 58%, rgba(255, 212, 241, 0.58) 0 3px, transparent 4px), radial-gradient(circle at 52% 18%, rgba(255, 255, 255, 0.52) 0 2px, transparent 3px);
}

.pokemon-card[data-pokemon-type="steel"] {
  --type-backdrop: radial-gradient(circle at 58% 30%, #aebdca 0, #657585 36%, #384252 68%, #16162b 100%);
  --type-art: linear-gradient(135deg, rgba(213, 226, 238, 0.34), transparent 24%, rgba(102, 133, 165, 0.36) 48%, transparent 72%, rgba(210, 224, 235, 0.24));
  --type-pattern: repeating-linear-gradient(135deg, transparent 0 26px, rgba(224, 234, 243, 0.13) 27px 29px, transparent 30px 50px);
}

.pokemon-card[data-pokemon-type="poison"] {
  --type-backdrop: radial-gradient(circle at 58% 32%, #9c50b4 0, #603472 38%, #382641 70%, #171329 100%);
  --type-art: radial-gradient(circle at 28% 72%, rgba(175, 67, 201, 0.48), transparent 34%), radial-gradient(circle at 72% 36%, rgba(107, 56, 155, 0.5), transparent 38%);
  --type-pattern: radial-gradient(circle at 26% 34%, rgba(225, 151, 240, 0.3) 0 5px, transparent 6px), radial-gradient(circle at 74% 66%, rgba(191, 105, 218, 0.25) 0 8px, transparent 9px);
}

.pokemon-card[data-pokemon-type="flying"] {
  --type-backdrop: radial-gradient(circle at 52% 28%, #9bcbe5 0, #557fa8 36%, #354662 68%, #15162c 100%);
  --type-art: linear-gradient(155deg, rgba(171, 220, 255, 0.38), transparent 42%), radial-gradient(ellipse at 70% 70%, rgba(105, 147, 211, 0.36), transparent 42%);
  --type-pattern: repeating-radial-gradient(ellipse at 0 100%, transparent 0 28px, rgba(222, 241, 255, 0.15) 29px 31px, transparent 32px 48px);
}

.pokemon-card[data-pokemon-type="normal"] {
  --type-backdrop: radial-gradient(circle at 68% 28%, #c99354 0, #795039 34%, #493044 64%, #19152d 100%);
  --type-art: radial-gradient(circle at 35% 38%, rgba(226, 207, 179, 0.34), transparent 34%), radial-gradient(circle at 70% 70%, rgba(168, 137, 119, 0.34), transparent 42%);
  --type-pattern: repeating-radial-gradient(circle, transparent 0 34px, rgba(255, 255, 255, 0.1) 35px 37px, transparent 38px 54px);
}

@keyframes type-art-drift {
  from { transform: translate3d(-1.5%, 1%, 0) rotate(-1.2deg) scale(1); }
  to { transform: translate3d(1.5%, -1%, 0) rotate(1.2deg) scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .pokemon-card__artwork::before {
    animation: none;
  }

  .screen--entered .pokeball-flight,
  .screen--entered .pokeball__half,
  .screen--entered .pokeball__band,
  .screen--entered .pokeball__button,
  .screen--entered .pokeball-burst,
  .screen--entered .evaluation-pokemon {
    animation-duration: 5.25s !important;
  }

  .screen--entered .pokeball-speed-line {
    animation-duration: 1.75s !important;
  }
}

/* Pokéball capture-and-reveal sequence during profile evaluation. */
.pokeball-scene {
  width: clamp(210px, 34vw, 310px);
  height: clamp(210px, 34vw, 310px);
  position: relative;
  margin: 0 auto 22px;
  overflow: visible;
  isolation: isolate;
}

.pokeball-scene::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 34, 79, 0.14), transparent 64%);
  box-shadow: 0 0 80px rgba(207, 34, 79, 0.2);
}

.pokeball-flight {
  width: 112px;
  height: 112px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  margin: -56px 0 0 -56px;
  transform: translate(220px, 180px) scale(0.35) rotate(540deg);
}

.screen--entered .pokeball-flight {
  animation: pokeball-arrive 5.25s cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

.pokeball {
  width: 100%;
  height: 100%;
  position: relative;
  filter: drop-shadow(0 20px 24px rgba(5, 4, 16, 0.48));
}

.pokeball__half {
  position: absolute;
  right: 0;
  left: 0;
  height: 50%;
  overflow: hidden;
  border: 6px solid #171526;
}

.pokeball__half--top {
  top: 0;
  border-bottom-width: 3px;
  border-radius: 62px 62px 0 0;
  background: radial-gradient(circle at 35% 20%, #ff738f 0 7%, transparent 8%), linear-gradient(150deg, #f12753, #a5143a 72%);
}

.pokeball__half--bottom {
  bottom: 0;
  border-top-width: 3px;
  border-radius: 0 0 62px 62px;
  background: linear-gradient(150deg, #fff, #b9b7c3 76%);
}

.pokeball__band {
  height: 12px;
  position: absolute;
  top: 50%;
  right: 3px;
  left: 3px;
  z-index: 3;
  margin-top: -6px;
  border-radius: 999px;
  background: #171526;
}

.pokeball__button {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  border: 7px solid #171526;
  border-radius: 50%;
  background: #f7f7fa;
  box-shadow: inset 0 0 0 3px #b9b7c3, 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.screen--entered .pokeball__half--top { animation: pokeball-open-top 5.25s ease both; }
.screen--entered .pokeball__half--bottom { animation: pokeball-open-bottom 5.25s ease both; }
.screen--entered .pokeball__band { animation: pokeball-band-release 5.25s ease both; }
.screen--entered .pokeball__button { animation: pokeball-button-release 5.25s ease both; }

.pokeball-burst {
  width: 48px;
  height: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 22px white, 0 0 65px #ff7898, 0 0 120px rgba(207, 34, 79, 0.9);
  opacity: 0;
}

.screen--entered .pokeball-burst { animation: pokeball-light-burst 5.25s ease both; }

.evaluation-pokemon {
  width: 76%;
  height: 76%;
  position: absolute;
  top: 12%;
  left: 12%;
  z-index: 3;
  object-fit: contain;
  transform: translateY(38px) scale(0.08);
  filter: brightness(2.4) drop-shadow(0 0 25px white);
  opacity: 0;
}

.screen--entered .evaluation-pokemon {
  animation: pokemon-emerge 5.25s cubic-bezier(0.2, 0.76, 0.24, 1) both;
}

.pokeball-speed-line {
  height: 2px;
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
  opacity: 0;
}

.pokeball-speed-line--one { width: 52%; top: 35%; left: 8%; }
.pokeball-speed-line--two { width: 44%; top: 51%; left: 0; }
.pokeball-speed-line--three { width: 37%; top: 66%; left: 16%; }
.screen--entered .pokeball-speed-line { animation: speed-line-pass 1.75s ease-out both; }
.screen--entered .pokeball-speed-line--two { animation-delay: 0.1s; }
.screen--entered .pokeball-speed-line--three { animation-delay: 0.2s; }

@keyframes pokeball-arrive {
  0% { transform: translate(220px, 180px) scale(0.35) rotate(540deg); opacity: 1; }
  34% { transform: translate(0, 0) scale(1) rotate(0deg); }
  44% { transform: translateY(-10px) scale(1.05) rotate(-9deg); }
  52% { transform: translateY(0) scale(1) rotate(8deg); }
  60% { transform: translateY(-4px) scale(1.02) rotate(-5deg); }
  68% { transform: translateY(0) scale(1) rotate(0deg); }
  76% { transform: translateY(0) scale(1.04) rotate(0deg); opacity: 1; }
  100% { transform: translateY(24px) scale(0.72); opacity: 0; }
}

@keyframes pokeball-open-top {
  0%, 71% { transform: translateY(0); opacity: 1; }
  83%, 100% { transform: translateY(-62px) rotate(-7deg); opacity: 0; }
}

@keyframes pokeball-open-bottom {
  0%, 71% { transform: translateY(0); opacity: 1; }
  83%, 100% { transform: translateY(62px) rotate(7deg); opacity: 0; }
}

@keyframes pokeball-band-release {
  0%, 70% { transform: scaleX(1); opacity: 1; }
  78%, 100% { transform: scaleX(1.45); opacity: 0; }
}

@keyframes pokeball-button-release {
  0%, 70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  78%, 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes pokeball-light-burst {
  0%, 69% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  75% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  88% { transform: translate(-50%, -50%) scale(4.5); opacity: 0.38; }
  100% { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

@keyframes pokemon-emerge {
  0%, 73% { transform: translateY(38px) scale(0.08); filter: brightness(2.4) drop-shadow(0 0 25px white); opacity: 0; }
  82% { transform: translateY(-5px) scale(1.12); filter: brightness(1.7) drop-shadow(0 0 24px rgba(255, 255, 255, 0.85)); opacity: 1; }
  100% { transform: translateY(0) scale(1); filter: brightness(1) drop-shadow(0 16px 20px rgba(8, 6, 22, 0.45)); opacity: 1; }
}

@keyframes speed-line-pass {
  0% { transform: translateX(160px); opacity: 0; }
  25% { opacity: 0.65; }
  100% { transform: translateX(-70px); opacity: 0; }
}

@media (orientation: portrait) and (max-height: 900px) {
  .pokeball-scene {
    width: 180px;
    height: 180px;
    margin-bottom: 12px;
  }

  .pokeball-flight {
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
  }
}


/* Final Pokédex-detail composition based on the supplied reference. */
.result-tabs button {
  position: relative;
  padding: 8px 4px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.result-tabs button.is-active {
  color: var(--ink);
}

.result-tabs button.is-active::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: -1px;
  left: 28%;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(207, 34, 79, 0.55);
}

.result-panel[hidden] {
  display: none !important;
}

@media (orientation: portrait) {
  .result-layout {
    grid-template-rows: 58% 42%;
  }

  .pokemon-card {
    grid-template-rows: 50px minmax(0, 1fr) 112px;
  }

  .pokemon-card__topline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 22px 0;
  }

  .result-kicker {
    position: static;
    transform: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
  }

  .pokemon-card__mark {
    justify-self: end;
  }

  .pokemon-card__artwork img {
    width: min(82%, 430px);
  }

  .pokemon-card__identity {
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 5px 22px 12px;
  }

  .pokemon-card__identity h3 {
    font-size: clamp(2.15rem, 5.8vw, 3.35rem);
  }

  .pokemon-card__identity p {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  .result-identity-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 7px;
  }

  .result-identity-line strong {
    font-size: 0.88rem;
  }

  .result-identity-line .score {
    padding: 4px 7px;
    font-size: 0.72rem;
  }

  .result-copy {
    display: flex;
    flex-direction: column;
    padding: 0 28px 16px;
  }

  .result-tabs {
    flex: 0 0 auto;
    margin: 0 0 8px;
  }

  .result-panels {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    align-items: center;
  }

  .result-panel {
    width: 100%;
  }

  .result-panel .trait-list {
    margin: 0;
  }

  .result-panel .pokemon-card__detail {
    display: block;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .result-panel .pokemon-card__detail p {
    font-size: 0.78rem;
  }

  .panel-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    text-align: center;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.14em;
  }

  .result-panel .result-summary {
    display: block;
    margin: 0 auto;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .result-panel .difference {
    display: block;
    margin-top: 9px;
  }

  .result-actions {
    flex: 0 0 auto;
    margin-top: 8px;
  }
}

@media (orientation: portrait) and (max-height: 900px) {
  .result-layout {
    grid-template-rows: 55% 45%;
  }

  .pokemon-card {
    grid-template-rows: 38px minmax(0, 1fr) 88px;
  }

  .pokemon-card__topline {
    padding-top: 5px;
  }

  .pokemon-card__artwork img {
    width: min(78%, 330px);
  }

  .pokemon-card__identity {
    padding: 3px 14px 7px;
  }

  .pokemon-card__identity h3 {
    font-size: 1.8rem;
  }

  .pokemon-card__identity p {
    margin-bottom: 3px;
    font-size: 0.6rem;
  }

  .type-badges span {
    padding: 3px 7px;
    font-size: 0.55rem;
  }

  .result-identity-line {
    margin-top: 4px;
  }

  .result-identity-line strong {
    font-size: 0.75rem;
  }

  .result-copy {
    padding: 0 16px 10px;
  }

  .result-tabs {
    margin-bottom: 4px;
  }

  .result-tabs button {
    padding-top: 5px;
    padding-bottom: 6px;
    font-size: 0.64rem;
  }

  .trait-list div {
    min-height: 24px;
  }

  .result-actions {
    margin-top: 5px;
  }

  .result-actions .primary-button,
  .result-actions .secondary-button {
    min-height: 40px;
  }

  .result-panel .pokemon-card__detail {
    padding: 9px 11px;
  }

  .result-panel .pokemon-card__detail p,
  .result-panel .result-summary,
  .result-panel .difference {
    font-size: 0.68rem;
    line-height: 1.35;
  }
}

/* Final tablet intro override. */
@media (orientation: portrait) {
  .screen[data-screen="intro"] {
    display: grid;
    place-items: center;
    gap: 0;
  }

  .screen[data-screen="intro"] .signal-card {
    display: none !important;
  }

  .screen[data-screen="intro"] .intro-copy {
    position: relative;
    width: min(100%, 760px);
    padding: clamp(34px, 6vh, 66px) clamp(28px, 7vw, 70px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 34px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 38%),
      radial-gradient(circle at 86% 14%, rgba(207, 34, 79, 0.24), transparent 32%),
      linear-gradient(165deg, rgba(38, 35, 67, 0.94), rgba(19, 17, 38, 0.94));
    box-shadow: 0 32px 80px rgba(7, 5, 22, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    text-align: center;
  }

  .screen[data-screen="intro"] .intro-copy h1 {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(3.2rem, 8vw, 5.8rem);
  }

  .screen[data-screen="intro"] .intro-copy .lead {
    max-width: 570px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
  }

  .screen[data-screen="intro"] .intro-copy .meta-row {
    justify-content: center;
  }

  .screen[data-screen="intro"] .intro-copy .primary-button {
    width: min(100%, 460px);
    margin-right: auto;
    margin-left: auto;
  }
}

@media (orientation: portrait) and (max-height: 900px) {
  .screen[data-screen="intro"] .intro-copy {
    padding: 30px 34px;
    border-radius: 26px;
  }

  .screen[data-screen="intro"] .intro-copy h1 {
    font-size: clamp(2.55rem, 7vw, 4rem);
  }
}

/* Cinematic elemental scenes behind the matched Pokémon. */
.pokemon-card__artwork {
  --type-atlas-position: 33.333% 100%;
  background-image:
    linear-gradient(180deg, rgba(9, 8, 22, 0.16), rgba(9, 8, 22, 0.38)),
    url("./assets/elemental-background-atlas-v1.png");
  background-repeat: no-repeat;
  background-position: center, var(--type-atlas-position);
  background-size: 100% 100%, 400% 400%;
}

.pokemon-card__artwork::before {
  background:
    radial-gradient(circle at 50% 48%, transparent 15%, rgba(8, 7, 19, 0.08) 48%, rgba(8, 7, 19, 0.34) 100%);
  filter: none;
  opacity: 1;
  animation: elemental-breathe 8s ease-in-out infinite alternate;
}

.pokemon-card__artwork::after {
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(7, 6, 18, 0.16), transparent 24% 76%, rgba(7, 6, 18, 0.16));
  mix-blend-mode: screen;
  opacity: 0.72;
}

.pokemon-card[data-pokemon-type="fire"] .pokemon-card__artwork { --type-atlas-position: 0% 0%; }
.pokemon-card[data-pokemon-type="water"] .pokemon-card__artwork { --type-atlas-position: 33.333% 0%; }
.pokemon-card[data-pokemon-type="electric"] .pokemon-card__artwork { --type-atlas-position: 66.667% 0%; }
.pokemon-card[data-pokemon-type="grass"] .pokemon-card__artwork { --type-atlas-position: 100% 0%; }
.pokemon-card[data-pokemon-type="ice"] .pokemon-card__artwork { --type-atlas-position: 0% 33.333%; }
.pokemon-card[data-pokemon-type="psychic"] .pokemon-card__artwork { --type-atlas-position: 33.333% 33.333%; }
.pokemon-card[data-pokemon-type="ghost"] .pokemon-card__artwork { --type-atlas-position: 66.667% 33.333%; }
.pokemon-card[data-pokemon-type="fairy"] .pokemon-card__artwork { --type-atlas-position: 100% 33.333%; }
.pokemon-card[data-pokemon-type="ground"] .pokemon-card__artwork { --type-atlas-position: 0% 66.667%; }
.pokemon-card[data-pokemon-type="fighting"] .pokemon-card__artwork { --type-atlas-position: 33.333% 66.667%; }
.pokemon-card[data-pokemon-type="bug"] .pokemon-card__artwork { --type-atlas-position: 66.667% 66.667%; }
.pokemon-card[data-pokemon-type="dragon"] .pokemon-card__artwork { --type-atlas-position: 100% 66.667%; }
.pokemon-card[data-pokemon-type="steel"] .pokemon-card__artwork { --type-atlas-position: 0% 100%; }
.pokemon-card[data-pokemon-type="normal"] .pokemon-card__artwork { --type-atlas-position: 33.333% 100%; }
.pokemon-card[data-pokemon-type="flying"] .pokemon-card__artwork { --type-atlas-position: 66.667% 100%; }
.pokemon-card[data-pokemon-type="poison"] .pokemon-card__artwork { --type-atlas-position: 100% 100%; }

@keyframes elemental-breathe {
  from { transform: scale(1); opacity: 0.78; }
  to { transform: scale(1.035); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pokemon-card__artwork::before {
    animation: none;
  }
}
