:root {
  --bg: #ffe09a;
  --ink: #22312d;
  --muted: #6d7a73;
  --line: rgba(34, 49, 45, 0.12);
  --paper: rgba(255, 252, 242, 0.86);
  --paper-strong: #fffcf2;
  --primary: #2f7f73;
  --primary-dark: #235f57;
  --gold: #c99542;
  --result-color: #2f7f73;
  --result-accent: #d9c581;
  --shadow: 0 24px 80px rgba(38, 58, 52, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  font-family: Satoshi, Outfit, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 246, 190, 0.75), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(187, 69, 54, 0.2), transparent 28%),
    linear-gradient(145deg, #ffe39d 0%, #ffd37a 48%, #f6c26f 100%);
  overflow-x: hidden;
  padding-bottom: 34px;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

main {
  min-height: 100dvh;
  position: relative;
  z-index: 2;
}

.ambient {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
  animation: floatAmbient 9s var(--ease) infinite alternate;
}

.ambient-one {
  left: -140px;
  top: 60px;
  background: rgba(47, 127, 115, 0.26);
}

.ambient-two {
  right: -150px;
  bottom: 80px;
  background: rgba(201, 149, 66, 0.24);
  animation-delay: -3s;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(34, 49, 45, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 49, 45, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
}

.screen {
  display: none;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.screen.is-active {
  display: grid;
  animation: screenIn 520ms var(--ease) both;
}

.start-screen {
  place-items: center;
  gap: 22px;
}

.hero-cover-only {
  display: grid;
  gap: 18px;
  width: min(100%, 520px);
  place-items: center;
}

.home-qr,
.poster-qr-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.home-qr img,
.poster-qr {
  width: 92px;
  height: 92px;
  padding: 8px;
  border-radius: 18px;
  background: #fffdf4;
  box-shadow: 0 14px 34px rgba(34, 49, 45, 0.14);
}

.poster-qr {
  width: 66px;
  height: 66px;
  padding: 6px;
  border-radius: 14px;
}

.icp-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.icp-footer a {
  color: rgba(34, 49, 45, 0.62);
  text-decoration: none;
}

.icp-footer a:hover {
  text-decoration: underline;
}

.brand-mark {
  width: max-content;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 242, 0.72);
  font-weight: 900;
  letter-spacing: 0.14em;
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  gap: 22px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 18px;
  font-size: clamp(48px, 14vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-desc {
  max-width: 32ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.hero-actions,
.result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.close-btn {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), #67a66f);
  color: #fffdf4;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(47, 127, 115, 0.24);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: rgba(255, 252, 242, 0.7);
  color: var(--ink);
  font-weight: 800;
}

.ghost-btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.primary-btn:hover,
.ghost-btn:hover,
.close-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:active,
.ghost-btn:active,
.close-btn:active,
.option-card:active {
  transform: scale(0.98);
}

button:focus-visible {
  outline: 3px solid rgba(201, 149, 66, 0.65);
  outline-offset: 3px;
}

.hero-card {
  position: relative;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 252, 242, 0.78), rgba(255, 252, 242, 0.34)),
    radial-gradient(circle at 70% 30%, rgba(201, 149, 66, 0.2), transparent 34%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.official-cover {
  min-height: auto;
  padding: 10px;
  background: rgba(255, 252, 242, 0.62);
  transform: rotate(0deg);
}

.official-cover img {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(120, 74, 35, 0.18);
}

.rkti-card-stack {
  position: absolute;
  inset: 34px 24px;
}

.mini-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 190px;
  height: 116px;
  border: 1px solid rgba(34, 49, 45, 0.14);
  border-radius: 24px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: 0 18px 45px rgba(34, 49, 45, 0.12);
}

.mini-card-a {
  left: 8px;
  top: 12px;
  transform: rotate(-8deg);
}

.mini-card-b {
  right: 6px;
  top: 82px;
  color: #6c5588;
  transform: rotate(7deg);
}

.mini-card-c {
  left: 54px;
  bottom: 4px;
  color: #8b6f47;
  transform: rotate(-1deg);
}

.orbital-lines,
.result-orbit,
.poster-orbit {
  position: absolute;
  border: 1px solid rgba(47, 127, 115, 0.2);
  border-radius: 999px;
  pointer-events: none;
}

.orbital-lines {
  width: 360px;
  height: 180px;
  right: -112px;
  bottom: 18px;
  transform: rotate(-25deg);
}

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

.feature-strip span {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 242, 0.62);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.quiz-screen {
  align-content: start;
  gap: 18px;
}

.quiz-header,
.quiz-footer,
.progress-info,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-header h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.08em;
}

.quiz-header h2 small {
  color: var(--muted);
  font-size: 18px;
  padding: 0 6px;
}

.progress-wrap {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 242, 0.7);
}

.progress-info {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-track,
.score-track,
.poster-bar-row i {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(34, 49, 45, 0.09);
}

.progress-track i,
.score-track i,
.poster-bar-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 420ms var(--ease);
}

.question-card,
.result-panel,
.score-panel,
.loading-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 242, 0.78);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
}

.question-card {
  padding: 22px;
}

.question-card h3 {
  min-height: 88px;
  margin-bottom: 20px;
  font-size: clamp(25px, 7vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.options {
  display: grid;
  gap: 12px;
}

.option-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(34, 49, 45, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
}

.option-card:hover,
.option-card.is-selected {
  border-color: rgba(47, 127, 115, 0.45);
  background: rgba(248, 252, 239, 0.96);
  box-shadow: 0 14px 36px rgba(47, 127, 115, 0.14);
}

.option-letter {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: rgba(47, 127, 115, 0.1);
  color: var(--primary-dark);
  font-weight: 950;
}

.option-text {
  font-weight: 800;
  line-height: 1.5;
}

.quiz-footer {
  color: var(--muted);
  font-size: 13px;
}

.quiz-footer p {
  margin: 0;
}

.loading-screen,
.result-screen {
  place-items: center;
}

.loading-card {
  position: relative;
  width: 100%;
  padding: 34px 24px;
  text-align: center;
  overflow: hidden;
}

.loading-card h2 {
  margin-bottom: 10px;
  font-size: 30px;
  letter-spacing: -0.05em;
}

.loading-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.loader-orb {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  border: 14px solid rgba(47, 127, 115, 0.14);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

.result-screen {
  align-content: start;
}

.result-layout {
  width: 100%;
}

.result-hero {
  position: relative;
  min-height: 330px;
  margin-bottom: 14px;
  padding: 28px 22px;
  border: 1px solid rgba(34, 49, 45, 0.14);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 18%, color-mix(in srgb, var(--result-accent) 50%, transparent), transparent 34%),
    linear-gradient(150deg, color-mix(in srgb, var(--result-color) 92%, #ffffff 8%), color-mix(in srgb, var(--result-color) 62%, #ffffff 38%));
  color: #fffdf4;
  box-shadow: var(--shadow);
}

.result-hero .eyebrow {
  color: rgba(255, 253, 244, 0.76);
}

.result-hero h2 {
  position: relative;
  z-index: 2;
  margin: 30px 0 0;
  font-size: clamp(62px, 19vw, 90px);
  line-height: 0.86;
  letter-spacing: -0.1em;
}

.result-hero h3 {
  position: relative;
  z-index: 2;
  margin: 6px 0 18px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.result-quote {
  position: relative;
  z-index: 2;
  max-width: 26ch;
  margin: 0;
  color: rgba(255, 253, 244, 0.86);
  font-weight: 800;
  line-height: 1.7;
}

.result-symbol {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(255, 253, 244, 0.14);
  font-size: 82px;
  font-weight: 950;
  letter-spacing: -0.12em;
  z-index: 1;
}

.official-poster {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 320px);
  max-height: 560px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  transform: rotate(0deg);
}

.result-hero-poster-only {
  min-height: auto;
  padding: 16px;
}

.result-hero:has(.official-poster) {
  padding-top: 18px;
}

.result-hero:has(.official-poster) h2 {
  margin-top: 10px;
  font-size: clamp(48px, 15vw, 72px);
}

.result-orbit {
  width: 280px;
  height: 148px;
  right: -72px;
  top: 34px;
  border-color: rgba(255, 253, 244, 0.24);
  transform: rotate(-24deg);
}

.result-panel,
.score-panel {
  padding: 20px;
  margin-bottom: 14px;
}

.result-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.result-meta span,
.section-heading small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-meta strong {
  font-size: 18px;
  line-height: 1.4;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--result-color) 13%, #ffffff 87%);
  color: color-mix(in srgb, var(--result-color) 70%, #1d2825 30%);
  font-size: 12px;
  font-weight: 900;
}

.trait-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2px;
  row-gap: 8px;
  margin: 0 0 16px;
}

.trait-panel .talent-badge {
  grid-column: 1 / -1;
  min-height: 82px;
}

.trait-badge {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 16px;
  background: #1f2725;
  color: #fffdf4;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 244, 0.08);
}

.trait-badge span,
.poster-trait b {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 253, 244, 0.62);
  font-size: 11px;
  font-weight: 900;
}

.trait-badge strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.32);
}

.talent-badge[data-talent="一般般的天分"] { background: url("../images/traits/talent-normal.png") center / contain no-repeat; color: #22312d; }
.talent-badge[data-talent="还不错的天分"] { background: url("../images/traits/talent-ok.png") center / contain no-repeat; color: #22312d; }
.talent-badge[data-talent="相当好的天分"] { background: url("../images/traits/talent-good.png") center / contain no-repeat; color: #22312d; }
.talent-badge[data-talent="了不起的天分"] { background: url("../images/traits/talent-great.png") center / contain no-repeat; color: #fffdf4; }
.nature-badge { background: url("../images/traits/nature-base.png") center / contain no-repeat; }
.specialty-badge { background: url("../images/traits/specialty-base.png") center / contain no-repeat; }
.talent-badge[data-talent] span,
.talent-badge[data-talent] strong { opacity: 0; }
.talent-badge[data-talent="一般般的天分"] span,
.talent-badge[data-talent="还不错的天分"] span,
.talent-badge[data-talent="相当好的天分"] span { color: rgba(34, 49, 45, 0.58); }

.analysis {
  margin: 0;
  color: #40504a;
  font-size: 15px;
  line-height: 1.9;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading span {
  font-size: 18px;
  font-weight: 950;
}

.score-row {
  display: grid;
  grid-template-columns: 76px 1fr 26px;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}

.score-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.score-label strong {
  font-size: 18px;
}

.score-label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score-row b {
  text-align: right;
}

.result-actions {
  padding-bottom: 10px;
}

.poster-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(29, 40, 37, 0.58);
  backdrop-filter: blur(16px);
}

.poster-overlay.is-open {
  display: grid;
  animation: fadeIn 240ms var(--ease) both;
}

.poster-modal {
  position: relative;
  width: min(100%, 390px);
}

.close-btn {
  display: block;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #fffdf4;
  color: var(--ink);
  font-weight: 900;
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -4px;
  z-index: 4;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border: 1.5px solid rgba(255, 253, 244, 0.92);
  background: rgba(255, 253, 244, 0.18);
  backdrop-filter: blur(8px);
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 15px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #fffdf4;
}

.close-btn::before { transform: rotate(45deg); }
.close-btn::after { transform: rotate(-45deg); }

.poster-card {
  position: relative;
  min-height: 0;
  max-height: calc(100dvh - 76px);
  padding: 18px 18px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 12%, color-mix(in srgb, var(--result-accent) 38%, transparent), transparent 30%),
    linear-gradient(160deg, color-mix(in srgb, var(--result-color) 92%, #ffffff 8%), color-mix(in srgb, var(--result-color) 60%, #ffffff 40%));
  color: #fffdf4;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.poster-card.is-image-preview {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.generated-share-preview {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.generated-share-image {
  display: block;
  width: min(100%, 360px);
  max-height: calc(100dvh - 126px);
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  -webkit-touch-callout: default;
  user-select: auto;
}

.share-image-hint {
  margin: 0;
  color: #fffdf4;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.share-image-loading {
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 253, 244, 0.92);
  color: var(--ink);
  font-weight: 900;
}

.poster-brand {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgba(255, 253, 244, 0.76);
}

.poster-symbol {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 44px auto 30px;
  border: 1px solid rgba(255, 253, 244, 0.32);
  border-radius: 42px;
  background: rgba(255, 253, 244, 0.12);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.08em;
  transform: rotate(-4deg);
}

.poster-image {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 250px);
  margin: 10px auto 10px;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.poster-main-image {
  width: min(100%, 260px);
  max-height: min(48dvh, 360px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.poster-code {
  position: relative;
  z-index: 2;
  font-size: 58px;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.1em;
  text-align: center;
}

.poster-name {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 950;
  text-align: center;
}

.poster-quote,
.poster-visual,
.poster-footer {
  position: relative;
  z-index: 2;
  text-align: center;
}

.poster-quote {
  margin: 18px auto;
  max-width: 23ch;
  color: rgba(255, 253, 244, 0.86);
  font-weight: 800;
  line-height: 1.7;
}

.poster-visual {
  padding: 12px;
  border: 1px solid rgba(255, 253, 244, 0.24);
  border-radius: 18px;
  background: rgba(255, 253, 244, 0.1);
  font-size: 14px;
  font-weight: 850;
}

.poster-traits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 5px;
  margin: 0 0 8px;
}

.poster-traits .talent-badge {
  grid-column: 1 / -1;
  min-height: 52px;
}

.poster-trait {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 6px;
  border-radius: 15px;
  background: rgba(29, 40, 37, 0.72);
  color: #fffdf4;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.poster-trait.nature-badge,
.poster-trait.specialty-badge {
  width: 126px;
}

.poster-trait.nature-badge {
  justify-self: end;
  margin-right: 3px;
}

.poster-trait.specialty-badge {
  justify-self: start;
  margin-left: 3px;
}

.poster-trait.nature-badge { background: url("../images/traits/nature-base.png") center / contain no-repeat; }
.poster-trait.specialty-badge { background: url("../images/traits/specialty-base.png") center / contain no-repeat; }

.poster-trait strong {
  font-size: 14px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.poster-bars {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.poster-bar-row {
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
}

.poster-bar-row i {
  height: 8px;
  background: rgba(255, 253, 244, 0.18);
}

.poster-qr-wrap {
  margin-top: 6px;
  color: rgba(255, 253, 244, 0.78);
  font-size: 11px;
}

.poster-footer {
  margin-top: 14px;
  color: rgba(255, 253, 244, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.poster-orbit {
  width: 320px;
  height: 180px;
  right: -90px;
  top: 64px;
  border-color: rgba(255, 253, 244, 0.22);
  transform: rotate(-26deg);
}

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

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes floatAmbient {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -18px, 0) scale(1.08); }
}

@media (min-width: 760px) {
  .app-shell {
    width: min(100%, 960px);
  }

  .screen {
    padding-inline: 32px;
  }

  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .hero-actions,
  .result-actions {
    grid-template-columns: max-content max-content;
  }

  .question-card,
  .result-layout {
    width: min(100%, 680px);
    margin: 0 auto;
  }
}

@media (min-width: 900px) and (orientation: landscape) {
  .app-shell {
    width: min(100%, 1180px);
  }

  .start-screen {
    align-content: center;
    padding-inline: clamp(34px, 6vw, 80px);
  }

  .hero-cover-only {
    grid-template-columns: minmax(420px, 0.96fr) minmax(280px, 0.64fr);
    grid-template-areas:
      "cover copy"
      "cover actions"
      "cover qr";
    column-gap: clamp(28px, 5vw, 72px);
    row-gap: 18px;
    width: min(100%, 1040px);
    align-items: center;
    justify-items: start;
  }

  .hero-cover-only .official-cover {
    grid-area: cover;
    justify-self: stretch;
  }

  .hero-cover-only .official-cover img {
    width: 100%;
    max-height: min(74vh, 620px);
    object-fit: contain;
  }

  .hero-cover-only .hero-desc {
    grid-area: copy;
    max-width: 20em;
    text-align: left;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 900;
    color: var(--primary-dark);
  }

  .hero-cover-only .hero-actions {
    grid-area: actions;
    margin-top: 0;
    width: min(100%, 320px);
  }

  .hero-cover-only .primary-btn,
  .hero-cover-only .ghost-btn {
    min-height: 58px;
    font-size: 17px;
  }

  .hero-cover-only .home-qr {
    grid-area: qr;
    justify-items: start;
  }

  .hero-cover-only .home-qr img {
    width: 108px;
    height: 108px;
  }
}

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