@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #06070d;
  --bg2: #0c1119;
  --bg3: #101722;
  --border: rgba(255, 255, 255, 0.07);
  --border2: rgba(255, 255, 255, 0.12);
  --text: #f0f4f8;
  --muted: #8fa2b8;
  --dim: #667a92;
  --dimmer: #52667e;
  --D: #E63946;
  --I: #F4A261;
  --S: #10b981;
  --C: #4361EE;
  --green: #10b981;
  --gold: #f59e0b;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg2) 60%, #080c14 100%);
  min-height: 100vh;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
  padding: 0 0 60px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.app-root {
  min-height: 100vh;
}

.view {
  animation: fadeUp 0.45s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
}

.shell-wide {
  max-width: 740px;
  margin: 0 auto;
  padding: 24px 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.coach-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coach-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}

.coach-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
}

.coach-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

.coach-cred {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.hero-disc-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.disc-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  font-size: 18px;
  transition: transform 0.2s;
}

.disc-bubble:hover {
  transform: scale(1.08);
}

.hero-sub {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.22em;
  text-align: center;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 8px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--D), var(--I), var(--S), var(--C));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
  max-width: 460px;
  margin: 0 auto 32px;
}

.card,
.lang-card,
.panel-card,
.score-box,
.compare-box,
.dim-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.card,
.lang-card,
.panel-card,
.score-box,
.compare-box {
  padding: 28px 28px 24px;
}

.dim-section {
  padding: 16px 18px;
  margin-bottom: 14px;
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.18);
}

.lang-switch-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.lang-link {
  flex: 1 1 0;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  transition: all 0.25s;
}

.lang-link:hover,
.lang-link.active {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.08);
}

.lang-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.lang-native {
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.version-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.version-card {
  flex: 1 1 0;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.version-card:hover,
.version-card.selected {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.08);
}

.version-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.version-card-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 8px;
}

.version-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.version-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--green);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
}

.field-row {
  display: grid;
  gap: 16px;
}

.field-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  transition: all 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.btn-primary,
.primary-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s;
  background: linear-gradient(135deg, var(--green) 0%, var(--C) 100%);
  color: #fff;
}

.btn-primary:disabled,
.primary-btn:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  cursor: not-allowed;
}

.btn-primary:not(:disabled):hover,
.primary-btn:not(:disabled):hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary,
.secondary-btn,
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text);
}

.btn-secondary:hover,
.secondary-btn:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.btn-ghost {
  width: auto;
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.hint {
  text-align: center;
  color: var(--dimmer);
  font-size: 12px;
  margin-top: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}

.phase-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.phase-dot-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phase-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--dim);
  transition: all 0.3s;
}

.phase-circle.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.phase-circle.active {
  border-color: var(--green);
  color: var(--green);
}

.phase-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
}

.phase-label.active {
  color: var(--green);
}

.phase-connector {
  width: 20px;
  height: 1px;
  background: var(--border);
}

.progress-wrap {
  margin-bottom: 26px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.progress-meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--C));
  transition: width 0.4s ease;
}

.section-banner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.section-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  font-family: 'JetBrains Mono', monospace;
}

.question {
  color: #e2e8f0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.options,
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt-btn,
.option-btn {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  padding: 14px 18px;
  text-align: left;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
}

@media (hover: hover) {
  .opt-btn:hover,
  .option-btn:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.22);
    color: var(--text);
    transform: translateX(3px);
  }
}

.opt-btn.selected,
.option-btn.selected {
  border-color: rgba(16, 185, 129, 0.52);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(67, 97, 238, 0.1));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.opt-btn:active,
.option-btn:active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.32);
  transform: translateX(1px);
}

.opt-btn:focus-visible,
.option-btn:focus-visible {
  outline: none;
  border-color: rgba(16, 185, 129, 0.52);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.opt-badge,
.option-btn-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 11px;
  color: var(--dim);
  flex-shrink: 0;
  transition: all 0.2s;
}

.opt-btn.selected .opt-badge,
.option-btn.selected .option-btn-badge {
  color: #fff;
  background: var(--green);
}

.option-btn-copy {
  display: block;
}

.subtle-copy {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-peek {
  text-align: center;
  margin-bottom: 24px;
}

.contact-peek-emoji {
  font-size: 56px;
  margin-bottom: 8px;
}

.contact-peek-blur {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.result-hero {
  text-align: center;
  margin-bottom: 24px;
}

.result-emoji-big {
  font-size: 52px;
  margin-bottom: 10px;
}

.result-name {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  padding: 8px 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}

.type-letter {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 15px;
}

.type-name {
  font-size: 12px;
  color: var(--muted);
}

.assessed-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.assessed-line .by {
  color: var(--dimmer);
}

.assessed-line .who {
  color: var(--green);
  font-weight: 700;
}

.score-box {
  margin-bottom: 16px;
}

.score-box-label,
.compare-title,
.sec-lbl,
.dim-section-title,
.status-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dimmer);
  text-transform: uppercase;
}

.score-box-label,
.compare-title,
.dim-section-title {
  margin-bottom: 14px;
}

.score-row,
.compare-row {
  margin-bottom: 12px;
}

.score-row-meta,
.compare-row-meta,
.compat-head,
.compat-card-header,
.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.score-lbl,
.score-row-label,
.compat-type {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
}

.score-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--dimmer);
}

.score-track,
.compare-track,
.dim-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
  overflow: hidden;
}

.score-fill,
.compare-fill,
.dim-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s ease;
}

.compare-box {
  margin-bottom: 16px;
}

.compare-row-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}

.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.compare-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-bar-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
  width: 42px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.compare-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  width: 36px;
  text-align: right;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.insight-card {
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.insight-card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.insight-item {
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  justify-content: center;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tab-btn:hover {
  opacity: 0.8;
}

.tab-btn.active {
  font-weight: 700;
  color: #fff;
}

.panel-card {
  min-height: 200px;
  margin-bottom: 16px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.3s ease;
}

.body-text {
  font-size: 16px;
  line-height: 1.8;
  color: #cbd5e1;
}

.body-muted {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.summary-grid,
.compat-grid,
.compat-cols {
  display: grid;
  gap: 12px;
}

.summary-grid,
.compat-cols {
  grid-template-columns: 1fr 1fr;
}

.summary-card,
.coaching-note,
.compat-card,
.growth-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-dot,
.compat-item-letter {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
}

.summary-heading,
.coaching-note h4,
.growth-card h4 {
  font-size: 18px;
  line-height: 1.2;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.chip {
  border-radius: 7px;
  padding: 5px 13px;
  font-size: 12px;
  border: 1px solid;
}

.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenge-item {
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 15px;
  background: rgba(248, 113, 113, 0.06);
  border: 1px solid rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tip-row {
  display: flex;
  gap: 13px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px;
  padding: 12px 15px;
  align-items: flex-start;
}

.tip-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 3px;
}

.tip-text {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
}

.compat-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.stars {
  font-size: 13px;
  color: var(--gold);
}

.compat-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 9px;
}

.compat-item {
  font-size: 14px;
  margin-bottom: 7px;
  padding: 12px 14px;
  line-height: 1.5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compat-item-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.compat-item-note {
  color: var(--muted);
}

.dim-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.dim-bar-label {
  font-size: 13px;
  color: #e2e8f0;
  width: 158px;
  flex-shrink: 0;
}

.dim-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--dim);
  width: 24px;
  text-align: right;
}

.followup-banner {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #86efac;
  background: rgba(134, 239, 172, 0.08);
  border: 1px solid rgba(134, 239, 172, 0.2);
  border-radius: 10px;
  padding: 16px 24px;
  margin-bottom: 16px;
}

.result-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-div {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.footer-cert {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dimmer);
}

.watermark {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.watermark span {
  display: inline-block;
  max-width: 560px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .shell,
  .shell-wide {
    padding: 20px 14px;
  }

  .version-cards {
    flex-direction: column;
  }

  .summary-grid,
  .compat-grid,
  .compat-cols,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }

  .coach-right {
    width: 100%;
    gap: 8px;
  }

  .card,
  .lang-card,
  .panel-card,
  .score-box,
  .compare-box,
  .dim-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .coach-cred,
  .coach-label {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .field-label,
  .phase-label,
  .progress-meta span,
  .assessed-line,
  .score-box-label,
  .compare-title,
  .sec-lbl,
  .dim-section-title,
  .status-line,
  .compare-bar-tag,
  .compare-pct,
  .insight-card-title,
  .compat-sub,
  .footer-cert,
  .watermark span {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .btn-ghost,
  .tab-btn,
  .dim-score {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .hero {
    font-size: 34px;
  }

  .section-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .profile-badge {
    gap: 6px;
    padding: 10px 14px;
  }

  .score-row-meta,
  .compat-head {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .compare-row-label {
    line-height: 1.45;
  }

  .compare-bar-wrap {
    display: grid;
    grid-template-columns: minmax(46px, auto) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .compare-bar-tag,
  .compare-pct {
    width: auto;
  }

  .compare-track,
  .dim-track {
    min-width: 0;
  }

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

  .result-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-footer > div:first-child {
    width: 100%;
  }

  .result-footer > div:first-child button {
    flex: 1 1 180px;
    min-width: 0;
  }

  .footer-brand {
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-div {
    display: none;
  }

  .dim-bar-label {
    width: auto;
  }

  .dim-track {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .shell,
  .shell-wide {
    padding: 18px 12px;
  }

  .card,
  .lang-card,
  .panel-card,
  .score-box,
  .compare-box,
  .dim-section {
    padding: 18px 16px;
  }

  .result-name {
    font-size: 28px;
  }

  .profile-badge {
    width: 100%;
    justify-content: flex-start;
  }

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

  .result-footer > div:first-child button {
    flex-basis: 100%;
  }
}
