
:root {
  --page-bg: #f5efe8;
  --page-bg-2: #efe8df;
  --page-line: rgba(79, 60, 38, 0.12);
  --text-strong: #171411;
  --text-body: #4f443a;
  --text-muted: #7f7368;
  --gold: #d5b067;
  --gold-strong: #e4be6d;
  --dark: #0b0d11;
  --dark-2: #12161c;
  --dark-3: #1a1f26;
  --white: #ffffff;
  --card-border: rgba(255,255,255,0.10);
  --answer-border: rgba(255,255,255,0.16);
  --shadow-soft: 0 26px 70px rgba(36, 24, 12, 0.10);
  --shadow-card: 0 28px 68px rgba(5, 7, 10, 0.28);
  --radius-xl: 30px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.7), transparent 28%),
    radial-gradient(circle at 76% 12%, rgba(255,255,255,0.45), transparent 24%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-2) 100%);
  color: var(--text-strong);
  font-family: Inter, Arial, sans-serif;
}

a { color: inherit; }

.themeqpsy-site-shell { min-height: 100vh; }
.themeqpsy-site-header {
  border-bottom: 1px solid var(--page-line);
  background: rgba(245, 239, 232, 0.92);
}
.themeqpsy-site-header-inner,
.themeqpsy-site-hero-inner,
.themeqpsy-page,
.themeqpsy-site-footer-inner {
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
}
.themeqpsy-site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.themeqpsy-brand {
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #1a1612;
}
.themeqpsy-site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.themeqpsy-site-nav a,
.themeqpsy-site-footer-nav a,
.themeqpsy-site-footer-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 14px;
}
.themeqpsy-site-nav a:hover,
.themeqpsy-site-footer-nav a:hover,
.themeqpsy-site-footer-links a:hover { color: var(--text-strong); }

.themeqpsy-site-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(79, 60, 38, 0.10);
}
.themeqpsy-site-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(54vw, 760px);
  background: url("./images/themes/f1-hero-banner.jpg") right center / contain no-repeat;
  opacity: 0.72;
  pointer-events: none;
}
.themeqpsy-site-hero-inner {
  position: relative;
  z-index: 1;
  padding: 34px 0 38px;
}
.themeqpsy-site-kicker {
  margin: 0 0 18px;
  color: #a17c43;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.themeqpsy-site-heading {
  margin: 0;
  max-width: 650px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #11100f;
}
.themeqpsy-site-description {
  margin: 16px 0 0;
  max-width: 530px;
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
}

.themeqpsy-page {
  padding: 32px 0 34px;
}
.themeqpsy-app {
  width: min(1020px, 100%);
  margin: 0 auto;
  --themeqpsy-question-bg-image: none;
  --themeqpsy-question-bg-opacity: 0.9;
}

.themeqpsy-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 0%, rgba(255,255,255,0.10), transparent 26%),
    linear-gradient(180deg, rgba(18, 22, 28, 0.96), rgba(9, 12, 16, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
}
.themeqpsy-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.005) 14%, rgba(255,255,255,0.03) 28%, rgba(255,255,255,0.006) 42%, rgba(255,255,255,0.028) 56%, rgba(255,255,255,0.006) 70%, rgba(255,255,255,0.026) 84%, rgba(255,255,255,0.005) 100%);
  opacity: 0.22;
  pointer-events: none;
}
.themeqpsy-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 8%, rgba(255,255,255,0.08), transparent 24%), radial-gradient(circle at 82% 42%, rgba(230, 183, 96, 0.12), transparent 28%);
  opacity: 0.5;
}
.themeqpsy-shell-question::after {
  background:
    linear-gradient(90deg, rgba(8,10,14,0.82) 0%, rgba(8,10,14,0.72) 45%, rgba(8,10,14,0.24) 72%, rgba(8,10,14,0.14) 100%),
    var(--themeqpsy-question-bg-image) center / cover no-repeat;
  opacity: 1;
}
.themeqpsy-shell-result::after,
.themeqpsy-shell-intro::after,
.themeqpsy-shell-name::after {
  background: radial-gradient(circle at 78% 20%, rgba(218, 176, 104, 0.14), transparent 20%), radial-gradient(circle at 18% 0%, rgba(255,255,255,0.05), transparent 26%);
}
.themeqpsy-inner {
  position: relative;
  z-index: 2;
  padding: 34px 34px 32px;
}

/* Intro card */
.themeqpsy-shell-intro .themeqpsy-inner { padding: 28px 30px; }
.themeqpsy-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 9px 14px;
  border: 1px solid rgba(213,176,103,0.35);
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(213,176,103,0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.themeqpsy-title {
  margin: 0;
  max-width: 560px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.themeqpsy-title span { color: var(--gold-strong); }
.themeqpsy-subtitle {
  margin: 14px 0 0;
  max-width: 620px;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.6;
}
.themeqpsy-form {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.themeqpsy-input {
  flex: 1 1 240px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  padding: 0 18px;
  font-size: 15px;
  outline: none;
}
.themeqpsy-input:focus {
  border-color: rgba(213,176,103,0.55);
  box-shadow: 0 0 0 4px rgba(213,176,103,0.08);
}
.themeqpsy-btn, .themeqpsy-btn:link, .themeqpsy-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5c38, #f3c96b);
  color: #0f0d0a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(225, 109, 65, 0.20);
  transition: transform 160ms ease, filter 160ms ease;
}
.themeqpsy-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.themeqpsy-btn:active { transform: translateY(1px); }
.themeqpsy-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  box-shadow: none;
}
.themeqpsy-btn:disabled {
  opacity: 0.75;
  cursor: progress;
}
.themeqpsy-note {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.60);
  font-size: 13px;
  line-height: 1.55;
}

/* Question shell */
.themeqpsy-progress-wrap { margin-bottom: 24px; }
.themeqpsy-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.themeqpsy-question-number {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.themeqpsy-question-number strong {
  font-size: 24px;
  letter-spacing: -0.05em;
}
.themeqpsy-progress-label {
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 800;
}
.themeqpsy-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.themeqpsy-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d0a354, #f1c969);
  transition: width 260ms ease;
}
.themeqpsy-question-card { animation: themeqpsySlideIn 260ms ease; }
.themeqpsy-question {
  margin: 0 0 28px;
  max-width: 720px;
  color: var(--white);
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.themeqpsy-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.themeqpsy-answer {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--answer-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
  color: var(--white);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.themeqpsy-answer:hover {
  transform: translateY(-1px);
  border-color: rgba(213,176,103,0.45);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
}
.themeqpsy-answer.themeqpsy-selected {
  border-color: rgba(213,176,103,0.72);
  background: linear-gradient(180deg, rgba(213,176,103,0.10), rgba(255,255,255,0.05));
}
.themeqpsy-answer-letter {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(213,176,103,0.42);
  background: rgba(213,176,103,0.07);
  color: var(--gold-strong);
  font-size: 24px;
  font-weight: 900;
}
.themeqpsy-answer-copy strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.12;
}
.themeqpsy-answer-copy em {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.74);
  font-style: normal;
  font-size: 14px;
  line-height: 1.45;
}

/* Analyzing and name */
.themeqpsy-analyzing {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
}
.themeqpsy-loader {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.10);
  border-top-color: var(--gold-strong);
  animation: themeqpsySpin 900ms linear infinite;
}
.themeqpsy-analyzing h2,
.themeqpsy-name-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.themeqpsy-analyzing p { color: rgba(255,255,255,0.72); font-size: 16px; }
.themeqpsy-name-step { max-width: 720px; }

/* Result */
.themeqpsy-result-layout {
  display: grid;
  grid-template-columns: minmax(290px, 360px) 1fr;
  gap: 28px;
  align-items: start;
}
.themeqpsy-driver-illustration {
  min-height: 540px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.themeqpsy-driver-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}
.themeqpsy-result-kicker {
  margin-bottom: 10px;
  color: var(--gold-strong);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.themeqpsy-driver-name {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}
.themeqpsy-driver-title {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 24px;
  font-weight: 700;
}
.themeqpsy-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}
.themeqpsy-trait {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(213,176,103,0.35);
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 800;
}
.themeqpsy-result-line {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}
.themeqpsy-description {
  margin: 18px 0 0;
  max-width: 560px;
  color: rgba(255,255,255,0.76);
  font-size: 17px;
  line-height: 1.7;
}
.themeqpsy-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.themeqpsy-actions .themeqpsy-btn:first-child { grid-column: 1 / -1; }

.themeqpsy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(9,12,16,0.95);
  color: #fff;
  border: 1px solid rgba(213,176,103,0.30);
  font-size: 13px;
  font-weight: 800;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 99;
}
.themeqpsy-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
.themeqpsy-site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--page-line);
}
.themeqpsy-site-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr;
  gap: 32px;
  padding: 34px 0 42px;
}
.themeqpsy-site-footer-brand {
  color: #171411;
  font-size: 16px;
  font-weight: 900;
}
.themeqpsy-site-footer-copy,
.themeqpsy-site-footer-text,
.themeqpsy-site-footer-legal {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.7;
}
.themeqpsy-site-footer-heading {
  margin: 0 0 8px;
  color: #171411;
  font-size: 14px;
  font-weight: 800;
}
.themeqpsy-site-footer-links,
.themeqpsy-site-footer-nav {
  display: grid;
  gap: 8px;
}
.themeqpsy-site-footer-socials {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.themeqpsy-site-footer-socials span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #171411;
  font-size: 18px;
}

.themeqpsy-question-number.themeqpsy-pop { animation: themeqpsyPop 280ms ease; }
@keyframes themeqpsyPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes themeqpsySpin {
  to { transform: rotate(360deg); }
}
@keyframes themeqpsySlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .themeqpsy-site-header-inner,
  .themeqpsy-site-hero-inner,
  .themeqpsy-page,
  .themeqpsy-site-footer-inner { width: min(100% - 28px, 1160px); }

  .themeqpsy-site-hero::after { width: 56vw; opacity: 0.52; }
  .themeqpsy-shell .themeqpsy-inner { padding: 26px; }
  .themeqpsy-answers { grid-template-columns: 1fr; }
  .themeqpsy-result-layout { grid-template-columns: 1fr; }
  .themeqpsy-driver-illustration,
  .themeqpsy-driver-illustration img { min-height: 380px; }
  .themeqpsy-site-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .themeqpsy-site-header-inner { min-height: 62px; }
  .themeqpsy-site-nav { gap: 18px; }
  .themeqpsy-site-nav a { font-size: 13px; }
  .themeqpsy-site-hero-inner { padding: 28px 0 30px; }
  .themeqpsy-site-heading { max-width: 360px; }
  .themeqpsy-site-description { font-size: 15px; max-width: 320px; }
  .themeqpsy-site-hero::after { opacity: 0.36; }
  .themeqpsy-question { font-size: 28px; }
  .themeqpsy-answer { grid-template-columns: 52px 1fr; padding: 16px; }
  .themeqpsy-answer-letter { width: 44px; height: 44px; font-size: 22px; }
  .themeqpsy-actions { grid-template-columns: 1fr; }
  .themeqpsy-site-footer-inner { grid-template-columns: 1fr; gap: 18px; }
}


/* ===== User patch: simplified header/footer + replaceable intro image ===== */
.themeqpsy-site-nav {
  gap: 0;
}

.themeqpsy-site-footer-inner {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.themeqpsy-shell-intro .themeqpsy-inner {
  position: relative;
  min-height: 330px;
  overflow: hidden;
}

.themeqpsy-shell-intro .themeqpsy-inner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(52%, 560px);
  background:
    linear-gradient(90deg, rgba(11, 13, 17, 0) 0%, rgba(11, 13, 17, 0.16) 42%, rgba(11, 13, 17, 0.02) 100%),
    url("./images/themes/f1-intro-card-bg.jpg") center right / cover no-repeat;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.themeqpsy-shell-intro .themeqpsy-kicker,
.themeqpsy-shell-intro .themeqpsy-title,
.themeqpsy-shell-intro .themeqpsy-subtitle,
.themeqpsy-shell-intro .themeqpsy-form,
.themeqpsy-shell-intro .themeqpsy-note {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .themeqpsy-site-footer-inner {
    grid-template-columns: 1fr;
  }

  .themeqpsy-shell-intro .themeqpsy-inner {
    min-height: 0;
  }

  .themeqpsy-shell-intro .themeqpsy-inner::after {
    width: 100%;
    opacity: 0.22;
  }
}


/* ===== Title section compact + right-side hero image fix ===== */
.themeqpsy-site-hero {
  min-height: 0;
}

.themeqpsy-site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245,239,232,0) 0%, rgba(245,239,232,0) 46%, rgba(245,239,232,0.16) 62%, rgba(245,239,232,0.36) 100%);
  pointer-events: none;
  z-index: 0;
}

.themeqpsy-site-hero::after {
  right: 38px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: min(42vw, 600px);
  height: 165px;
  background: url("./images/themes/f1-hero-banner.jpg") right center / contain no-repeat;
  opacity: 0.92;
  z-index: 0;
}

.themeqpsy-site-hero-inner {
  padding: 26px 0 28px;
}

.themeqpsy-site-heading {
  max-width: 520px;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.02;
}

.themeqpsy-site-description {
  margin-top: 12px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .themeqpsy-site-hero::after {
    right: 14px;
    width: min(44vw, 340px);
    height: 130px;
    opacity: 0.72;
  }
  .themeqpsy-site-heading,
  .themeqpsy-site-description {
    max-width: 58%;
  }
}

@media (max-width: 680px) {
  .themeqpsy-site-hero-inner {
    padding: 22px 0 22px;
  }
  .themeqpsy-site-hero::after {
    width: 46vw;
    height: 104px;
    opacity: 0.38;
  }
  .themeqpsy-site-heading,
  .themeqpsy-site-description {
    max-width: 100%;
  }
}


/* ===== Question panel thematic top-right image ===== */
.themeqpsy-shell-question .themeqpsy-inner {
  position: relative;
  overflow: hidden;
}

.themeqpsy-shell-question .themeqpsy-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(48%, 500px);
  height: 250px;
  background:
    linear-gradient(90deg, rgba(10, 13, 18, 0) 0%, rgba(10, 13, 18, 0.10) 42%, rgba(10, 13, 18, 0.02) 100%),
    url("./images/themes/f1-question-theme-bg.jpg") top right / cover no-repeat;
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.82) 68%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.82) 68%, rgba(0,0,0,0) 100%);
}

.themeqpsy-shell-question .themeqpsy-progress-wrap,
.themeqpsy-shell-question .themeqpsy-question-card {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .themeqpsy-shell-question .themeqpsy-inner::before {
    width: 46%;
    height: 210px;
    opacity: 0.22;
  }
}

@media (max-width: 680px) {
  .themeqpsy-shell-question .themeqpsy-inner::before {
    width: 54%;
    height: 160px;
    opacity: 0.16;
  }
}


/* ===== Premium gold answer buttons + progress bar ===== */
.themeqpsy-progress-wrap {
  margin-bottom: 28px;
}

.themeqpsy-progress-top {
  margin-bottom: 14px;
}

.themeqpsy-progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.themeqpsy-progress-bar {
  position: relative;
  background: linear-gradient(90deg, #c99343 0%, #f0c96b 58%, #ffe3a1 100%);
  box-shadow: 0 0 14px rgba(240, 201, 107, 0.28);
}

.themeqpsy-progress-bar::after {
  content: "";
  position: absolute;
  top: 1px;
  right: -2px;
  width: 54px;
  height: calc(100% - 2px);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,226,159,0.12), rgba(255,255,255,0.9));
  filter: blur(1px);
}

.themeqpsy-question {
  margin: 0 0 34px;
}

.themeqpsy-answers {
  gap: 20px;
}

.themeqpsy-answer {
  position: relative;
  overflow: hidden;
  min-height: 110px;
  padding: 20px 22px;
  gap: 20px;
  border-radius: 24px;
  border: 1px solid rgba(221, 176, 84, 0.72);
  background:
    linear-gradient(180deg, rgba(32, 36, 44, 0.92), rgba(14, 17, 23, 0.98)),
    linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 35px rgba(0,0,0,0.14);
  backdrop-filter: blur(4px);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, filter 170ms ease;
}

.themeqpsy-answer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(255,195,83,0.12), transparent 22%),
    linear-gradient(90deg, rgba(255,195,83,0.16), rgba(255,195,83,0.03) 18%, transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.themeqpsy-answer::after {
  content: "»»";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(224, 172, 74, 0.42);
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.18em;
  line-height: 1;
  pointer-events: none;
}

.themeqpsy-answer:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 202, 106, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(255, 210, 113, 0.20),
    0 18px 42px rgba(0,0,0,0.20),
    0 0 24px rgba(230, 175, 73, 0.12);
  filter: brightness(1.03);
}

.themeqpsy-answer.themeqpsy-selected {
  border-color: rgba(255, 216, 121, 1);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(255, 220, 141, 0.22),
    0 0 28px rgba(240, 201, 107, 0.18);
}

.themeqpsy-answer-letter {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 0;
  border: 1px solid rgba(255, 214, 119, 0.7);
  background:
    linear-gradient(180deg, rgba(17,20,26,0.92), rgba(8,10,15,1));
  clip-path: polygon(22% 4%, 78% 4%, 100% 28%, 88% 78%, 68% 96%, 18% 96%, 4% 72%, 4% 24%);
  color: #ffd265;
  font-size: 30px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 215, 120, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(242, 194, 85, 0.12),
    0 0 20px rgba(228, 180, 77, 0.18);
}

.themeqpsy-answer-letter::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 216, 121, 0.14), transparent 26%),
    radial-gradient(circle, rgba(255, 209, 98, 0.18) 1px, transparent 1.6px);
  background-size: auto, 8px 8px;
  opacity: 0.35;
  pointer-events: none;
}

.themeqpsy-answer-copy {
  position: relative;
  z-index: 1;
  padding-right: 72px;
}

.themeqpsy-answer-copy strong {
  font-size: 18px;
  line-height: 1.15;
}

.themeqpsy-answer-copy em {
  margin-top: 8px;
  color: rgba(255,255,255,0.80);
  font-size: 14px;
}

@media (max-width: 900px) {
  .themeqpsy-answer {
    min-height: 104px;
    padding: 18px 18px;
  }
  .themeqpsy-answer-letter {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}

@media (max-width: 760px) {
  .themeqpsy-answer {
    grid-template-columns: 68px 1fr;
  }
  .themeqpsy-answer::after {
    right: 18px;
    font-size: 44px;
  }
}

@media (max-width: 560px) {
  .themeqpsy-progress-wrap {
    margin-bottom: 22px;
  }
  .themeqpsy-question {
    margin-bottom: 24px;
  }
  .themeqpsy-answer {
    min-height: 96px;
    border-radius: 20px;
    gap: 16px;
    padding: 16px 16px;
  }
  .themeqpsy-answer-letter {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
  .themeqpsy-answer-copy {
    padding-right: 46px;
  }
  .themeqpsy-answer-copy strong {
    font-size: 17px;
  }
  .themeqpsy-answer::after {
    right: 14px;
    font-size: 34px;
  }
}


/* =========================================================
   PREMIUM ANSWER BUTTONS — exact visual direction from ref
   ========================================================= */
.themeqpsy-answers {
  gap: 22px;
}

.themeqpsy-answer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 22px;
  min-height: 138px;
  padding: 18px 28px 18px 20px;
  border-radius: 26px;
  border: 1.5px solid rgba(224, 171, 61, 0.80);
  background:
    radial-gradient(120% 180% at 0% 50%, rgba(255, 194, 84, 0.18) 0%, rgba(255, 194, 84, 0.10) 10%, rgba(255, 194, 84, 0.02) 21%, rgba(255, 194, 84, 0) 40%),
    linear-gradient(90deg, rgba(10, 12, 19, 0.98) 0%, rgba(11, 16, 26, 0.97) 42%, rgba(11, 15, 23, 0.98) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 148, 0.06),
    inset 0 14px 30px rgba(255, 255, 255, 0.02),
    inset 0 -16px 28px rgba(0, 0, 0, 0.28),
    0 16px 34px rgba(0, 0, 0, 0.22);
  isolation: isolate;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    background 160ms ease;
}

.themeqpsy-answer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 223, 154, 0.18), rgba(255, 223, 154, 0.03) 7%, transparent 16%) 0 0 / 100% 100% no-repeat,
    radial-gradient(55% 90% at 62% 6%, rgba(255, 214, 118, 0.16), rgba(255, 214, 118, 0.02) 42%, transparent 70%) 0 0 / 100% 100% no-repeat,
    linear-gradient(90deg, transparent 0%, transparent 68%, rgba(255, 214, 118, 0.07) 69%, rgba(255, 214, 118, 0.015) 84%, transparent 100%) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

.themeqpsy-answer::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 88px;
  height: 40px;
  transform: translateY(-50%);
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.76) 39% 61%, transparent 62%) 0 50% / 24px 30px no-repeat,
    linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.76) 39% 61%, transparent 62%) 24px 50% / 24px 30px no-repeat,
    linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.76) 39% 61%, transparent 62%) 48px 50% / 24px 30px no-repeat,
    linear-gradient(90deg, rgba(255, 214, 118, 0.14), rgba(255, 214, 118, 0.03) 28%, transparent 62%) 0 50% / 100% 100% no-repeat;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}

.themeqpsy-answer:hover,
.themeqpsy-answer:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245, 203, 103, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 172, 0.12),
    inset 0 14px 32px rgba(255, 255, 255, 0.03),
    inset 0 -16px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 210, 105, 0.16),
    0 0 26px rgba(230, 177, 70, 0.15),
    0 18px 36px rgba(0, 0, 0, 0.24);
  filter: brightness(1.03);
}

.themeqpsy-answer.themeqpsy-selected {
  border-color: rgba(255, 222, 133, 1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 190, 0.12),
    inset 0 14px 34px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 226, 148, 0.18),
    0 0 32px rgba(238, 186, 77, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.24);
}

.themeqpsy-answer-letter {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  clip-path: polygon(22% 4%, 78% 4%, 96% 22%, 96% 78%, 78% 96%, 22% 96%, 4% 78%, 4% 22%);
  border-radius: 0;
  border: 1px solid rgba(255, 212, 112, 0.42);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 214, 118, 0.07), rgba(255, 214, 118, 0) 45%),
    radial-gradient(circle, rgba(255, 197, 83, 0.28) 1px, transparent 1.7px),
    linear-gradient(180deg, rgba(9, 12, 19, 0.97), rgba(4, 6, 12, 0.99));
  background-size: auto, 10px 10px, auto;
  color: #ffd76f;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 212, 112, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 18px rgba(0, 0, 0, 0.30);
}

.themeqpsy-answer-letter::before {
  content: "";
  position: absolute;
  inset: -10px;
  pointer-events: none;
  background:
    linear-gradient(#ffc75d 0 0) left 4px bottom 6px / 28px 4px no-repeat,
    linear-gradient(#ffc75d 0 0) left 4px bottom 6px / 4px 24px no-repeat,
    linear-gradient(#ffc75d 0 0) right 4px top 8px / 28px 4px no-repeat,
    linear-gradient(#ffc75d 0 0) right 4px top 8px / 4px 24px no-repeat,
    linear-gradient(#ffc75d 0 0) left 8px top 14px / 22px 3px no-repeat,
    linear-gradient(#ffc75d 0 0) left 8px top 14px / 3px 18px no-repeat,
    radial-gradient(circle at left bottom, rgba(255, 210, 100, 0.95), rgba(255, 210, 100, 0) 62%),
    radial-gradient(circle at right top, rgba(255, 210, 100, 0.70), rgba(255, 210, 100, 0) 65%);
  filter: drop-shadow(0 0 5px rgba(255, 203, 92, 0.70)) drop-shadow(0 0 16px rgba(255, 203, 92, 0.16));
  opacity: 1;
}

.themeqpsy-answer-letter::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}

.themeqpsy-answer-copy {
  position: relative;
  z-index: 1;
  padding-right: 86px;
}

.themeqpsy-answer-copy strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.themeqpsy-answer-copy em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.80);
  font-style: normal;
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .themeqpsy-answers {
    gap: 18px;
  }

  .themeqpsy-answer {
    grid-template-columns: 88px 1fr;
    min-height: 126px;
    padding: 16px 22px 16px 18px;
  }

  .themeqpsy-answer::after {
    right: 18px;
    width: 72px;
    height: 34px;
    background:
      linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.76) 39% 61%, transparent 62%) 0 50% / 20px 26px no-repeat,
      linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.76) 39% 61%, transparent 62%) 20px 50% / 20px 26px no-repeat,
      linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.76) 39% 61%, transparent 62%) 40px 50% / 20px 26px no-repeat;
  }

  .themeqpsy-answer-letter {
    width: 70px;
    height: 70px;
    font-size: 31px;
  }

  .themeqpsy-answer-copy {
    padding-right: 70px;
  }

  .themeqpsy-answer-copy strong {
    font-size: 20px;
  }
}

@media (max-width: 760px) {
  .themeqpsy-answer {
    grid-template-columns: 80px 1fr;
    min-height: 118px;
    border-radius: 24px;
  }

  .themeqpsy-answer-copy strong {
    font-size: 18px;
  }

  .themeqpsy-answer-copy em {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .themeqpsy-answer {
    grid-template-columns: 74px 1fr;
    gap: 14px;
    min-height: 108px;
    padding: 14px 16px 14px 14px;
    border-radius: 22px;
  }

  .themeqpsy-answer::after {
    right: 12px;
    width: 56px;
    height: 26px;
    background:
      linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.72) 39% 61%, transparent 62%) 0 50% / 16px 22px no-repeat,
      linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.72) 39% 61%, transparent 62%) 16px 50% / 16px 22px no-repeat,
      linear-gradient(135deg, transparent 0 38%, rgba(191, 143, 44, 0.72) 39% 61%, transparent 62%) 32px 50% / 16px 22px no-repeat;
    opacity: 0.66;
  }

  .themeqpsy-answer-letter {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .themeqpsy-answer-letter::before {
    inset: -8px;
    background:
      linear-gradient(#ffc75d 0 0) left 3px bottom 5px / 24px 4px no-repeat,
      linear-gradient(#ffc75d 0 0) left 3px bottom 5px / 4px 20px no-repeat,
      linear-gradient(#ffc75d 0 0) right 3px top 6px / 22px 4px no-repeat,
      linear-gradient(#ffc75d 0 0) right 3px top 6px / 4px 20px no-repeat,
      radial-gradient(circle at left bottom, rgba(255, 210, 100, 0.95), rgba(255, 210, 100, 0) 62%),
      radial-gradient(circle at right top, rgba(255, 210, 100, 0.70), rgba(255, 210, 100, 0) 65%);
  }

  .themeqpsy-answer-copy {
    padding-right: 48px;
  }

  .themeqpsy-answer-copy strong {
    font-size: 17px;
    line-height: 1.08;
  }

  .themeqpsy-answer-copy em {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.28;
  }
}


/* =========================================================
   NORMAL EXTERNALIZED ANSWER BUTTONS (desktop + mobile JPG)
   Assets path:
   assets/quiz/f1/f1-quiz-psy/images/themes/
   ========================================================= */
.themeqpsy-answer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 16px 24px 16px 16px;
  border-radius: 22px;
  border: 1px solid rgba(228, 183, 84, 0.58);
  background: url("./images/themes/f1-answer-button-desktop.jpg") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 28px rgba(0,0,0,0.20);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.themeqpsy-answer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 26%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.themeqpsy-answer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 231, 167, 0.03);
  pointer-events: none;
}

.themeqpsy-answer:hover,
.themeqpsy-answer:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(243, 203, 110, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(244, 200, 103, 0.14),
    0 16px 36px rgba(0,0,0,0.24),
    0 0 18px rgba(236, 188, 88, 0.10);
  filter: brightness(1.05);
}

.themeqpsy-answer.themeqpsy-selected {
  border-color: rgba(255, 214, 121, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(244, 200, 103, 0.18),
    0 0 20px rgba(236, 188, 88, 0.12),
    0 16px 36px rgba(0,0,0,0.24);
  filter: brightness(1.03);
}

.themeqpsy-answer-letter {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(236, 188, 88, 0.50);
  background: linear-gradient(180deg, rgba(18, 22, 31, 0.95), rgba(8, 11, 17, 0.98));
  color: #ffd66f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 6px 14px rgba(0,0,0,0.26);
}

.themeqpsy-answer-copy {
  position: relative;
  z-index: 1;
  padding-right: 74px;
}

.themeqpsy-answer-copy strong {
  display: block;
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.themeqpsy-answer-copy em {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,0.78);
  font-style: normal;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .themeqpsy-answer {
    background-image: url("./images/themes/f1-answer-button-mobile.jpg");
    grid-template-columns: 70px 1fr;
    gap: 14px;
    min-height: 96px;
    padding: 14px 18px 14px 14px;
    border-radius: 20px;
  }

  .themeqpsy-answer-letter {
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 14px;
  }

  .themeqpsy-answer-copy {
    padding-right: 54px;
  }

  .themeqpsy-answer-copy strong {
    font-size: 17px;
  }

  .themeqpsy-answer-copy em {
    margin-top: 5px;
    font-size: 13px;
  }
}


/* =========================================================
   Share buttons in platform colors
   ========================================================= */
#themeqpsy-share-facebook {
  background: #4267B2;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(66, 103, 178, 0.28);
}
#themeqpsy-share-facebook:hover,
#themeqpsy-share-facebook:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(66, 103, 178, 0.34);
}

#themeqpsy-share-x {
  background: #111111;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 26px rgba(0, 0, 0, 0.28);
}
#themeqpsy-share-x:hover,
#themeqpsy-share-x:focus-visible {
  filter: brightness(1.08);
  border-color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 28px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255,255,255,0.24);
}

#themeqpsy-share-reddit {
  background: #FF5700;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(255, 87, 0, 0.28);
}
#themeqpsy-share-reddit:hover,
#themeqpsy-share-reddit:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 14px 28px rgba(255, 87, 0, 0.34);
}

#themeqpsy-share-link {
  background: #ffffff;
  color: #1b1b1b;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.12);
}
#themeqpsy-share-link:hover,
#themeqpsy-share-link:focus-visible {
  filter: brightness(0.98);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.16);
}


/* ===== Final result card image update ===== */
.themeqpsy-driver-illustration {
  background: radial-gradient(circle at 50% 18%, rgba(247,203,86,0.14), rgba(255,255,255,0.04) 34%, rgba(0,0,0,0.20) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 22px 52px rgba(0,0,0,0.25);
}

.themeqpsy-driver-illustration img {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}


/* ===== Fix final result image cropping ===== */
.themeqpsy-driver-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(247,203,86,0.10), rgba(255,255,255,0.035) 34%, rgba(0,0,0,0.28) 100%),
    #0a0d12;
}

.themeqpsy-driver-illustration img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  background: #0a0d12;
}

/* Keep the portrait card fully visible on desktop and mobile */
.themeqpsy-result-layout .themeqpsy-driver-illustration {
  aspect-ratio: 4 / 5;
  min-height: auto;
}

@media (max-width: 900px) {
  .themeqpsy-driver-illustration,
  .themeqpsy-driver-illustration img {
    min-height: 0;
  }
}


/* ===== Stretch final visual vertically to fill empty desktop space ===== */
@media (min-width: 901px) {
  .themeqpsy-result-layout {
    align-items: stretch;
  }

  .themeqpsy-result-layout .themeqpsy-driver-illustration {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
    align-self: stretch;
  }

  .themeqpsy-result-layout .themeqpsy-driver-illustration img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center top;
  }
}


/* ===== Version without transparent SVG-like overlay effects ===== */
.themeqpsy-shell::before,
.themeqpsy-shell::after,
.themeqpsy-site-hero::before,
.themeqpsy-shell-question .themeqpsy-inner::before,
.themeqpsy-answer::before,
.themeqpsy-answer::after,
.themeqpsy-answer-letter::before,
.themeqpsy-answer-letter::after {
  content: none !important;
  display: none !important;
}

/* Keep intro and hero visuals, but without extra transparent overlays */
.themeqpsy-shell-intro .themeqpsy-inner::after {
  background: url("./images/themes/f1-intro-card-bg.jpg") center right / cover no-repeat !important;
  opacity: 0.50 !important;
}

.themeqpsy-shell-question::after {
  background:
    linear-gradient(90deg, rgba(8,10,14,0.90) 0%, rgba(8,10,14,0.76) 48%, rgba(8,10,14,0.24) 74%, rgba(8,10,14,0.12) 100%),
    var(--themeqpsy-question-bg-image) center / cover no-repeat !important;
  opacity: 1 !important;
}

.themeqpsy-site-hero::after {
  opacity: 0.88 !important;
}

/* Simplify answer buttons */
.themeqpsy-answer {
  background: linear-gradient(180deg, rgba(15, 18, 24, 0.98), rgba(9, 12, 18, 0.98)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 224, 148, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.22) !important;
}

.themeqpsy-answer-letter {
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.98), rgba(6, 8, 13, 1)) !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 16px rgba(0,0,0,0.26) !important;
}


/* ===== Remove remaining halo / glow background effects ===== */
.themeqpsy-shell {
  background: linear-gradient(180deg, rgba(18, 22, 28, 0.96), rgba(9, 12, 16, 0.98)) !important;
}

.themeqpsy-shell-question::after,
.themeqpsy-shell-result::after,
.themeqpsy-shell-intro::after,
.themeqpsy-shell-name::after {
  background: none !important;
}

.themeqpsy-shell-intro .themeqpsy-inner::after {
  background: url("./images/themes/f1-intro-card-bg.jpg") center right / cover no-repeat !important;
  opacity: 0.34 !important;
}

.themeqpsy-site-hero,
.themeqpsy-site-hero::before {
  background: none !important;
}

.themeqpsy-driver-illustration {
  background: #0a0d12 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 42px rgba(0,0,0,0.22) !important;
}

.themeqpsy-driver-illustration img {
  background: #0a0d12 !important;
}


/* ===== Use the same intro background image on quiz screens ===== */
.themeqpsy-shell-question::after,
.themeqpsy-shell-name::after {
  background:
    linear-gradient(90deg, rgba(8,10,14,0.92) 0%, rgba(8,10,14,0.78) 46%, rgba(8,10,14,0.38) 72%, rgba(8,10,14,0.18) 100%),
    url("./images/themes/f1-intro-card-bg.jpg") center right / cover no-repeat !important;
  opacity: 1 !important;
}


/* ===== Fix question/name background image visibility ===== */
.themeqpsy-shell-question::after,
.themeqpsy-shell-name::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 0 !important;
  background:
    linear-gradient(90deg, rgba(8,10,14,0.92) 0%, rgba(8,10,14,0.78) 46%, rgba(8,10,14,0.38) 72%, rgba(8,10,14,0.18) 100%),
    url("./images/themes/f1-intro-card-bg.jpg") center right / cover no-repeat !important;
  opacity: 1 !important;
}

.themeqpsy-shell-question > *,
.themeqpsy-shell-name > * {
  position: relative;
  z-index: 1;
}


/* ===== Clean result action hierarchy ===== */
.themeqpsy-actions-clean {
  display: block;
  margin-top: 28px;
}

.themeqpsy-primary-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.themeqpsy-primary-actions .themeqpsy-btn {
  width: 100%;
}

.themeqpsy-share-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.themeqpsy-share-btn {
  min-height: 44px;
  border: none;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.themeqpsy-share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.themeqpsy-share-x {
  background: #111111;
  border: 2px solid rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 20px rgba(0,0,0,0.22);
}

.themeqpsy-share-facebook {
  background: #4267B2;
  box-shadow: 0 10px 20px rgba(66,103,178,0.26);
}

.themeqpsy-share-reddit {
  background: #FF5700;
  box-shadow: 0 10px 20px rgba(255,87,0,0.26);
}

.themeqpsy-share-link {
  background: #ffffff;
  color: #181818;
  box-shadow: 0 10px 20px rgba(255,255,255,0.12);
}

.themeqpsy-result-links {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.42);
  font-size: 14px;
}

.themeqpsy-text-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255,255,255,0.68);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.themeqpsy-text-link:hover {
  color: #f7cb56;
}

@media (max-width: 760px) {
  .themeqpsy-primary-actions,
  .themeqpsy-share-panel {
    grid-template-columns: 1fr;
  }

  .themeqpsy-result-links {
    flex-wrap: wrap;
  }
}


/* ===== Better balanced result actions ===== */
.themeqpsy-actions-clean {
  max-width: 640px;
}

.themeqpsy-primary-actions {
  grid-template-columns: 1fr !important;
  gap: 14px;
  max-width: 100%;
}

.themeqpsy-primary-actions .themeqpsy-btn,
.themeqpsy-share-panel {
  width: 100%;
}

.themeqpsy-share-panel {
  max-width: 100%;
}

.themeqpsy-primary-actions #themeqpsy-download {
  min-height: 54px;
}

.themeqpsy-result-links {
  margin-top: 18px;
  justify-content: center;
}

@media (min-width: 761px) {
  .themeqpsy-actions-clean {
    margin-right: auto;
  }
}


/* Worker direct test links on final screen */
.themeqpsy-worker-direct-tests {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.36);
  font-size: 13px;
}

.themeqpsy-worker-direct-tests .themeqpsy-text-link {
  color: rgba(255, 211, 111, 0.80);
}

.themeqpsy-worker-direct-tests .themeqpsy-text-link:hover {
  color: #ffd36f;
}


/* ===== Multi-theme color variables ===== */
:root {
  --theme-site-bg: #e9e3da;
}

body {
  background: var(--theme-site-bg);
}

#themeqpsy-app {
  --theme-panel-start: #1b212c;
  --theme-panel-end: #0d1118;
  --theme-button-start: #ff623d;
  --theme-button-end: #f1c763;
  --theme-accent: #f1c763;
}

.themeqpsy-shell {
  background: linear-gradient(135deg, var(--theme-panel-start), var(--theme-panel-end)) !important;
}

.themeqpsy-btn:not(.themeqpsy-btn-secondary),
.themeqpsy-primary-actions .themeqpsy-btn:not(.themeqpsy-btn-secondary),
.themeqpsy-share-btn.themeqpsy-share-link:hover {
  background: linear-gradient(90deg, var(--theme-button-start), var(--theme-button-end)) !important;
}

.themeqpsy-kicker,
.themeqpsy-result-kicker,
.themeqpsy-trait,
.themeqpsy-text-link:hover {
  color: var(--theme-accent) !important;
}

.themeqpsy-trait {
  border-color: color-mix(in srgb, var(--theme-accent) 48%, transparent) !important;
}
