@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/space-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-mono-700.woff2") format("woff2");
}

:root {
  --navy-deepest: #0a1929;
  --navy: #00263f;
  --blue: #003d66;
  --teal: #16c7c0;
  --cyan: #00b7d9;
  --aqua: #4ce0d2;
  --grey-light: #e9eef1;
  --grey-cool: #a9b6bf;
  --charcoal: #39434d;
  --ink-on-teal: #00263f;

  --maker: #ff8a50;
  --solver: #16c7c0;
  --creator: #b78cff;
  --connector: #ff8fa3;
  --starter: #ffd166;
  --organizer: #5ca9ff;

  --panel: rgba(0, 61, 102, 0.42);
  --panel-strong: rgba(0, 61, 102, 0.62);
  --hairline: rgba(76, 224, 210, 0.22);
  --hairline-strong: rgba(76, 224, 210, 0.4);
  --shadow: 0 22px 50px rgba(2, 10, 20, 0.45);
  --glow-teal: 0 0 26px rgba(22, 199, 192, 0.38);
  --focus: 0 0 0 4px rgba(76, 224, 210, 0.45);
  --radius-card: 16px;
  --radius-pill: 999px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  font-family: var(--font-display);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--grey-light);
  background-color: var(--navy);
  background-image:
    radial-gradient(1100px 720px at 12% -8%, rgba(22, 199, 192, 0.16), transparent 60%),
    radial-gradient(900px 620px at 94% 106%, rgba(0, 183, 217, 0.12), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deepest) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%2316C7C0' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M0 40 L40 0 M60 140 L140 60 M0 110 L30 140 M100 0 L140 40'/%3E%3C/g%3E%3Ccircle cx='40' cy='0' r='1.6' fill='%2316C7C0' fill-opacity='0.16'/%3E%3Ccircle cx='140' cy='60' r='1.6' fill='%2316C7C0' fill-opacity='0.16'/%3E%3Ccircle cx='0' cy='40' r='1.6' fill='%2316C7C0' fill-opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed, fixed;
}

button {
  font: inherit;
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.app,
.screen {
  min-height: 100vh;
}

.screen {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ---------- buttons & chips ---------- */

.primary-action,
.secondary-action,
.ghost-button,
.prompt-button,
.feedback-button {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 176px;
  padding: 0 28px;
  background: linear-gradient(120deg, var(--teal), var(--aqua));
  color: var(--ink-on-teal);
  box-shadow: var(--glow-teal);
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(22, 199, 192, 0.55);
}

.secondary-action,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  padding: 0 20px;
  background: rgba(233, 238, 241, 0.06);
  color: var(--grey-light);
  border: 1px solid var(--hairline-strong);
}

.secondary-action:hover,
.ghost-button:hover,
.secondary-action:focus-visible,
.ghost-button:focus-visible {
  border-color: var(--teal);
  background: rgba(22, 199, 192, 0.1);
}

.button-mark {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 38, 63, 0.28);
  font-weight: 900;
}

.icon-text-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: rgba(233, 238, 241, 0.05);
  color: var(--grey-light);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease;
}

.icon-text-button:hover,
.icon-text-button:focus-visible {
  border-color: var(--teal);
  background: rgba(22, 199, 192, 0.1);
}

.icon-text-button span {
  font-size: 20px;
  line-height: 1;
}

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

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  background: rgba(233, 238, 241, 0.05);
  border-radius: var(--radius-pill);
  color: var(--grey-light);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- welcome ---------- */

.welcome-screen {
  display: grid;
  place-items: center;
}

.welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px 40px;
  gap: 26px;
}

.hero-title {
  margin: 0;
  max-width: 900px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.01em;
}

.hero-title .accent-line {
  display: block;
  background: linear-gradient(120deg, var(--teal), var(--aqua) 60%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(22, 199, 192, 0.35));
}

.welcome-lead {
  margin: 0;
  color: var(--grey-cool);
  font-size: clamp(13.5px, 2vw, 20px);
  line-height: 1.4;
  white-space: nowrap;
}

.emblem-arc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 4px 0;
}

.emblem-float {
  display: block;
  animation: floaty 6s ease-in-out infinite;
}

.emblem-float:nth-child(1) { animation-delay: 0s; }
.emblem-float:nth-child(2) { animation-delay: 0.6s; }
.emblem-float:nth-child(3) { animation-delay: 1.2s; }
.emblem-float:nth-child(4) { animation-delay: 1.8s; }
.emblem-float:nth-child(5) { animation-delay: 2.4s; }
.emblem-float:nth-child(6) { animation-delay: 3s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

.disclaimer {
  max-width: 640px;
  margin: 0;
  color: var(--grey-cool);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- question flow ---------- */

.flow-header,
.detail-header {
  min-height: 92px;
  display: grid;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(10, 25, 41, 0.5);
}

.flow-header {
  grid-template-columns: 150px minmax(0, 1fr);
}

.detail-header {
  grid-template-columns: 150px minmax(0, 1fr) 150px;
}

.power-meter {
  min-width: 0;
}

.power-meter-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  color: var(--grey-cool);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.power-meter-meta strong {
  color: var(--teal);
}

.power-pips {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.power-pips::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(233, 238, 241, 0.12);
  z-index: 0;
}

.power-pip {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(233, 238, 241, 0.14);
}

.power-pip.is-charged {
  background: var(--teal);
  box-shadow: 0 0 10px rgba(22, 199, 192, 0.65);
}

.power-pip.pip-flash {
  animation: pipFlash 520ms ease;
}

@keyframes pipFlash {
  0% { transform: scale(0.7); box-shadow: 0 0 0 rgba(22, 199, 192, 0); }
  55% { transform: scale(1.35); box-shadow: 0 0 18px rgba(22, 199, 192, 0.85); }
  100% { transform: scale(1); box-shadow: 0 0 10px rgba(22, 199, 192, 0.65); }
}

.question-layout {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0 42px;
}

.question-copy {
  max-width: 980px;
  margin-bottom: 12px;
}

.question-copy .eyebrow {
  margin: 0;
}

.question-copy h2 {
  margin: 6px 0 28px;
  width: 100%;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.answer-card {
  min-height: 152px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--grey-light);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(2, 10, 20, 0.3);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.answer-card:hover,
.answer-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--aqua);
  box-shadow: var(--glow-teal);
}

.answer-card:disabled {
  cursor: default;
}

.answer-card.is-selected {
  border-color: var(--teal);
  background: rgba(22, 199, 192, 0.16);
  transform: translateY(-3px);
  box-shadow: var(--glow-teal);
}

.choice-letter {
  flex: none;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-strong);
  background: rgba(22, 199, 192, 0.1);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
}

.answer-card.is-selected .choice-letter {
  background: var(--teal);
  color: var(--ink-on-teal);
}

.choice-text {
  max-width: 100%;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  font-weight: 500;
}

/* ---------- pattern / scan ---------- */

.pattern-screen {
  display: grid;
  place-items: center;
  padding: 32px;
}

.scan-panel {
  width: min(640px, 100%);
  text-align: center;
}

.scan-hex-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto 30px;
}

.scan-hex-outline {
  position: absolute;
  inset: 0;
}

.scan-sweep {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: conic-gradient(from 0deg, rgba(22, 199, 192, 0) 0deg, rgba(22, 199, 192, 0.9) 22deg, rgba(22, 199, 192, 0) 90deg);
  animation: spin 1.1s linear infinite;
}

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

.scan-panel h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
}

.scan-line {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: opacity 140ms ease;
}

/* ---------- reveal ---------- */

.reveal-screen {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.reveal-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 420px at 50% 34%, var(--flash-color, rgba(22, 199, 192, 0.5)), transparent 68%);
  opacity: 0;
  animation: flashBloom 900ms ease-out 140ms forwards;
}

@keyframes flashBloom {
  0% { opacity: 0; transform: scale(0.7); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3); }
}

.reveal-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.reveal-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 40px));
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reveal-emblem {
  opacity: 0;
  transform: scale(0.5);
  animation: emblemIn 620ms cubic-bezier(0.2, 1.4, 0.4, 1) 120ms forwards;
  filter: drop-shadow(0 0 24px var(--flash-color, rgba(22, 199, 192, 0.5)));
  margin-bottom: 8px;
}

@keyframes emblemIn {
  0% { opacity: 0; transform: scale(0.5) rotate(-8deg); }
  70% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.reveal-content .eyebrow {
  opacity: 0;
  animation: fadeUp 420ms ease 420ms forwards;
}

.power-name {
  margin: 0;
  font-size: clamp(64px, 11vw, 116px);
  line-height: 0.96;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--accent, var(--teal));
  text-shadow: 0 0 40px var(--flash-color, rgba(22, 199, 192, 0.45));
  opacity: 0;
  filter: blur(6px);
  animation: stampIn 520ms cubic-bezier(0.2, 0.9, 0.3, 1) 560ms forwards;
}

@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.16); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

.strength-line {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--grey-light);
  font-style: italic;
  opacity: 0;
  animation: fadeUp 420ms ease 780ms forwards;
}

.alias-ribbon {
  margin-top: 14px;
  padding: 8px 20px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: rgba(233, 238, 241, 0.06);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-light);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 420ms ease 900ms forwards;
}

.supported-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: rgba(233, 238, 241, 0.04);
  font-size: 15px;
  color: var(--grey-cool);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 420ms ease 1050ms forwards;
}

.supported-chip strong {
  color: var(--grey-light);
}

.combo-sentence {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--grey-light);
  font-size: 19px;
  line-height: 1.42;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 420ms ease 1200ms forwards;
}

.reveal-content .result-actions {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 420ms ease 1350ms forwards;
}

.reveal-content .fine-print {
  max-width: 560px;
  margin-top: 20px;
  color: var(--grey-cool);
  font-size: 14px;
  opacity: 0;
  animation: fadeUp 420ms ease 1450ms forwards;
}

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

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- opportunity / dossier ---------- */

.detail-screen,
.board-screen {
  min-height: 100vh;
  padding-bottom: 28px;
}

.detail-title {
  min-width: 0;
  text-align: center;
}

.detail-title span,
.detail-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-title span {
  color: var(--grey-cool);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-title strong {
  margin-top: 3px;
  font-size: 19px;
}

.dossier-grid {
  width: min(1180px, calc(100vw - 48px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 1.05fr 1.9fr;
  gap: 18px;
  align-items: start;
}

.dossier-left,
.dossier-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.dossier-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.board-cta-card {
  padding: 18px;
}

.board-cta-button {
  width: 100%;
}

.hero-panel,
.dossier-card,
.board-card,
.empty-board {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-accent, var(--teal)), var(--secondary-accent, var(--aqua)));
}

.hero-emblem {
  margin-bottom: 6px;
}

.hero-panel h2 {
  margin: 6px 0 4px;
  font-size: 46px;
  line-height: 1.02;
  color: var(--primary-accent, var(--teal));
}

.hero-alias {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-cool);
}

.hero-panel p.hero-meaning {
  margin: 0;
  color: var(--grey-light);
  font-size: 18px;
  line-height: 1.4;
}

.pair-lockup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  align-items: center;
}

.pair-lockup .pair-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius-pill);
  background: rgba(233, 238, 241, 0.06);
  border: 1px solid var(--hairline);
  font-weight: 700;
}

.pair-lockup .pair-plus {
  color: var(--grey-cool);
}

.dossier-card {
  padding: 22px;
}

.dossier-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.dossier-card p {
  margin: 0;
  color: var(--grey-light);
  font-size: 17px;
  line-height: 1.45;
}

.useful-section,
.tip-section,
.follow-section {
  grid-column: span 2;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-grid span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(233, 238, 241, 0.06);
  border: 1px solid var(--hairline);
  color: var(--grey-light);
  font-weight: 500;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.job-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 12px;
}

.job-list li:hover {
  background: rgba(233, 238, 241, 0.04);
}

.job-list .job-icon {
  flex: none;
  display: block;
}

.job-list span {
  font-size: 17px;
  font-weight: 500;
  color: var(--grey-light);
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.skill-list li {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding-left: 14px;
  border-left: 3px solid var(--teal);
  color: var(--grey-light);
  font-size: 17px;
  font-weight: 500;
}

.tip-card {
  border-left: 3px solid var(--teal);
}

.ai-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-cool);
}

.follow-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.prompt-button,
.feedback-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  background: rgba(233, 238, 241, 0.04);
  color: var(--grey-light);
}

.prompt-button.is-active,
.feedback-button.is-active {
  background: var(--teal);
  color: var(--ink-on-teal);
  border-color: var(--teal);
}

.feedback-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--panel);
}

.feedback-strip strong {
  display: block;
}

.feedback-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions {
  width: min(1180px, calc(100vw - 48px));
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- event board ---------- */

.board-layout {
  width: min(1180px, calc(100vw - 48px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.board-intro {
  display: flex;
}

.brand-card {
  width: 100%;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand-card .eyebrow {
  align-self: flex-start;
}

.brand-attribution {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand-powered-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-cool);
}

.brand-tile {
  width: 100%;
  max-width: 240px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 14px;
  background: #ffffff;
}

.brand-tile img {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
}

.empty-board {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 28px;
  text-align: center;
}

.empty-board .countdown {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: rgba(22, 199, 192, 0.1);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 700;
}

.empty-board p {
  max-width: 300px;
  margin: 18px 0 0;
  color: var(--grey-cool);
  font-size: 18px;
  line-height: 1.4;
}

.board-card {
  padding: 22px;
}

.board-card + .board-card {
  margin-top: 18px;
}

.board-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 32px 108px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
}

.bar-row .bar-emblem {
  display: block;
}

.bar-row span,
.bar-row strong {
  font-weight: 700;
  color: var(--grey-light);
}

.bar-track {
  height: 16px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(233, 238, 241, 0.1);
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 400ms ease;
}

.pair-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.pair-list li {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(233, 238, 241, 0.05);
  color: var(--grey-light);
}

.board-bridge {
  width: min(1180px, calc(100vw - 48px));
  margin: 18px auto 0;
  padding: 16px 20px;
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  background: rgba(22, 199, 192, 0.06);
  color: var(--grey-cool);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--ink-on-teal);
  font-weight: 700;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--grey-light);
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }

  .dossier-cards {
    grid-template-columns: 1fr;
  }

  .useful-section,
  .tip-section,
  .follow-section {
    grid-column: auto;
  }

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

@media (max-width: 900px) {
  .welcome-inner {
    padding: 48px 20px 32px;
  }

  .flow-header {
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 14px;
  }

  .detail-header {
    grid-template-columns: 110px minmax(0, 1fr) 110px;
    padding: 14px;
  }

  .question-layout,
  .dossier-grid,
  .detail-actions,
  .board-layout,
  .board-bridge {
    width: calc(100vw - 28px);
  }

  .answer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: 38px;
  }

  .welcome-lead {
    font-size: 16px;
    white-space: normal;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .emblem-arc svg {
    width: 44px;
    height: 44px;
  }

  .flow-header,
  .detail-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-title {
    order: -1;
  }

  .question-layout {
    padding-top: 26px;
  }

  .answer-card {
    min-height: 108px;
    padding: 16px;
  }

  .choice-text {
    font-size: 19px;
  }

  .power-name {
    font-size: 54px;
  }

  .hero-panel h2 {
    font-size: 36px;
  }

  .bar-row {
    grid-template-columns: 26px 84px minmax(0, 1fr) 26px;
  }
}

@media (max-height: 800px) {
  .welcome-inner {
    padding: 32px 24px;
    gap: 16px;
  }

  .emblem-arc {
    margin: 0;
  }
}

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

@media print {
  body {
    background: #ffffff !important;
    color: var(--charcoal);
  }

  .detail-header,
  .feedback-strip,
  .detail-actions,
  .board-cta-card,
  .toast {
    display: none !important;
  }

  .detail-screen {
    min-height: auto;
    padding: 0;
  }

  .dossier-grid {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .dossier-card {
    background: #f5f8f8 !important;
    border-color: #cdd8d8 !important;
    box-shadow: none !important;
  }

  .hero-panel h2,
  .power-name {
    color: #0f6b66 !important;
  }

  .hero-panel p,
  .dossier-card p,
  .job-list span,
  .skill-list li {
    color: var(--charcoal) !important;
  }

  .job-icon rect:first-child {
    fill: #eaf6f5 !important;
    stroke: #0f6b66 !important;
  }

  .job-icon,
  .job-icon * {
    color: #0f6b66 !important;
  }
}
