/* EQ Legends Class Combo Builder — theme tokens + base layout (matches multibox dark EQ style) */

:root {
  --eq-bg-base: #0f172a;
  --eq-bg-elevated: #1e293b;
  --eq-bg-card: linear-gradient(180deg, #243548 0%, #1e293b 100%);
  --eq-text: #f1f5f9;
  /* Minimum readable gray on dark UI (avoid below #aaa) */
  --eq-text-muted: #bbbbbb;
  --eq-text-warm: #f0e6c8;
  --eq-gold: #d4af37;
  --eq-gold-hover: #e5c04a;
  --eq-border-gold: rgba(212, 175, 55, 0.4);
  --eq-border-subtle: rgba(148, 163, 184, 0.25);
  --eq-sidebar-bg: rgba(10, 12, 20, 0.82);
  --eq-card-panel: rgba(10, 12, 20, 0.88);
  --eq-card-border: 1px solid rgba(212, 160, 23, 0.3);
  --eq-overlay-slate: rgba(15, 23, 42, 0.22);
  --eq-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --eq-radius: 8px;
  --eq-sidebar-width: 280px;
  --eq-main-panel-max: 820px;
  --eq-tier-meta: #d4af37;
  --eq-tier-popular: #22c55e;
  --eq-tier-tested: #38bdf8;
  --eq-tier-rare: #b8c4d0;
  --eq-tier-untested: #7f1d1d;
  /* Grade badge accents (see .qq-grade--* for full badge rules) */
  --eq-grade-s: #d4a017;
  --eq-grade-a: #1a4a1a;
  --eq-grade-b: #1a2a4a;
  --eq-grade-c: #3a3a1a;
  --eq-grade-d: #3a1a1a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--eq-font);
  font-size: 15px;
  line-height: 1.5;
  background: linear-gradient(var(--eq-overlay-slate), var(--eq-overlay-slate)),
    url("assets/bg_tile.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: var(--eq-bg-base);
  color: var(--eq-text);
  min-height: 100vh;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--eq-sidebar-width);
  min-width: 240px;
  flex-shrink: 0;
  background: var(--eq-sidebar-bg);
  border-right: var(--eq-card-border);
  padding: 1rem 1.25rem 1rem 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.sidebar-rule--nav {
  margin: 1rem 0 0.85rem;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.link-home {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.5rem;
  color: var(--eq-gold);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.link-home:hover {
  color: var(--eq-gold-hover);
  text-decoration: underline;
}

.sidebar-brand {
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.sidebar-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 8px auto;
  border-radius: 8px;
}

.sidebar-brand-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.05em;
}

.sidebar-tagline {
  margin: 0.45rem 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #b8c0cc;
  font-weight: 500;
  text-align: center;
}

.sidebar-rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 160, 23, 0.55) 20%,
    rgba(212, 160, 23, 0.55) 80%,
    transparent
  );
}

.your-build {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.your-build-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--eq-gold);
  letter-spacing: 0.02em;
}

.your-build-hint {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #c8c8c8;
}

.your-build-slots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.your-build-slot {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 52px;
  padding: 0.4rem 2.1rem 0.4rem 0.55rem;
  border-radius: var(--eq-radius);
  background: var(--eq-card-panel);
  border: var(--eq-card-border);
  width: 100%;
}

.your-build-slot-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.your-build-slot-main:focus-visible {
  outline: 2px solid var(--eq-gold);
  outline-offset: 2px;
  border-radius: 6px;
}

.your-build-slot-ph {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.35);
}

.your-build-slot-add {
  font-size: 0.95rem;
  color: #c4c4c4;
}

.your-build-slot-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 6px;
  background: rgba(8, 12, 20, 0.92);
  color: rgba(226, 232, 240, 0.85);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.your-build-slot-clear:hover {
  color: var(--eq-gold);
  border-color: rgba(212, 160, 23, 0.6);
}

.your-build--quiz .your-build-slots {
  opacity: 0.55;
}

.your-build--quiz .your-build-slot-main,
.your-build--quiz .your-build-slot-clear {
  pointer-events: none;
  cursor: default;
}

.your-build-slot--pulse {
  animation: slot-pulse-gold 1.4s ease-in-out infinite;
}

@keyframes slot-pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.35);
    border-color: rgba(212, 160, 23, 0.45);
  }
  50% {
    box-shadow: 0 0 14px rgba(212, 160, 23, 0.45);
    border-color: rgba(212, 160, 23, 0.85);
  }
}

.your-build-lock-ico--inline {
  flex-shrink: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

.your-build-slot-label--autosuggest {
  color: rgba(212, 160, 23, 0.92) !important;
  font-weight: 600;
  font-size: 0.85rem !important;
}

.your-build-slot--filled {
  border-color: rgba(212, 175, 55, 0.4);
}

.your-build-slot--locked {
  border-color: rgba(212, 160, 23, 0.75);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.25);
}

.your-build-slot-placeholder {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 2px dashed rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.your-build-slot-placeholder::before {
  content: "✦";
  font-size: 1rem;
  opacity: 0.4;
  color: var(--eq-text-muted);
}

.your-build-slot-label {
  font-size: 0.95rem;
  color: #c0c8d0;
}

.your-build-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: crisp-edges;
}

.your-build-slots--rolling .your-build-slot--filled .your-build-icon {
  animation: eq-bravery-slot-flash 0.08s ease-out;
}

@keyframes eq-bravery-slot-flash {
  0% {
    opacity: 0.55;
    filter: brightness(1.35);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

.your-build-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--eq-text-warm);
  line-height: 1.35;
}

.your-build-grade-wrap {
  margin-top: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.your-build-grade-wrap[hidden] {
  display: none !important;
}

.your-build-grade-score {
  font-size: 1rem;
  font-weight: 700;
  color: #e8e8e8;
  letter-spacing: 0.03em;
}

.your-build-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  max-width: 100%;
  min-height: 2rem;
  height: auto;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #0f172a;
  white-space: nowrap;
}

.your-build-grade-badge.qq-grade--s-plus,
.qq-grade-badge.qq-grade--s-plus {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 800;
}

.your-build-grade-badge.qq-grade--s,
.qq-grade-badge.qq-grade--s {
  background: transparent;
  border: 2px solid #d4a017;
  color: #d4a017;
  font-weight: 700;
}

.your-build-grade-badge.qq-grade--a-plus,
.qq-grade-badge.qq-grade--a-plus {
  background: #2a1a4a;
  border: 2px solid #9966ff;
  color: #cc99ff;
  font-weight: 700;
}

.your-build-grade-badge.qq-grade--a,
.qq-grade-badge.qq-grade--a {
  background: #1a4a1a;
  color: #ffffff;
  border: none;
}

.your-build-grade-badge.qq-grade--b,
.qq-grade-badge.qq-grade--b {
  background: #1a2a4a;
  color: #ffffff;
  border: none;
}

.your-build-grade-badge.qq-grade--c,
.qq-grade-badge.qq-grade--c {
  background: #3a3a1a;
  color: #ffffff;
  border: none;
}

.your-build-grade-badge.qq-grade--d,
.qq-grade-badge.qq-grade--d {
  background: #3a1a1a;
  color: #ffffff;
  border: none;
}

.your-build-startover {
  margin-top: 0.65rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--eq-gold);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
}

.your-build-startover:hover {
  color: var(--eq-gold-hover);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sidebar-nav-build {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.45);
  color: var(--eq-gold);
  border-radius: var(--eq-radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.sidebar-nav-build:hover {
  border-color: var(--eq-gold-hover);
  background: rgba(212, 160, 23, 0.16);
}

.sidebar-nav-quiz {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 2px solid var(--eq-gold);
  color: var(--eq-gold);
  border-radius: var(--eq-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.sidebar-nav-quiz:hover {
  background: rgba(212, 160, 23, 0.12);
  border-color: var(--eq-gold-hover);
}

.sidebar-bravery-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--eq-radius);
  border: 1px solid rgba(212, 160, 23, 0.5);
  background: transparent;
  color: #d4a017;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

.sidebar-bravery-btn:hover {
  border-color: rgba(212, 160, 23, 0.75);
  background: rgba(212, 160, 23, 0.06);
}

.eq-bravery-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 10002;
  transform: translateX(-50%) translateY(-140%);
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f0f0;
  background: rgba(12, 14, 22, 0.95);
  border: 1px solid rgba(212, 160, 23, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.eq-bravery-toast.eq-bravery-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Sidebar — Beta Watch */

.sidebar-beta-watch {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(212, 160, 23, 0.12);
}

.sidebar-beta-watch .your-build-title {
  margin-bottom: 0.25rem;
  text-align: left;
}

.sidebar-beta-watch-faq-note {
  margin: 0 0 0.5rem;
  padding: 0 2px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(140, 150, 165, 0.92);
  text-align: left;
}

.sidebar-beta-watch-scroll {
  min-width: 0;
  padding-right: 0.25rem;
}

.sidebar-beta-watch-block {
  margin-bottom: 0;
}

.sidebar-beta-watch-cat-head {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 0.28rem;
  line-height: 1.25;
}

.sidebar-beta-watch-block:not(:first-child) .sidebar-beta-watch-cat-head {
  margin-top: 8px;
}

.sidebar-beta-watch-source,
.sidebar-beta-watch-note {
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(180, 190, 200, 0.88);
  margin: 0 10px 0.45rem;
  padding: 0;
}

.sidebar-beta-watch-cat-head--confirmed {
  background: #1a4a1a;
  color: #c8e8c8;
}

.sidebar-beta-watch-cat-head--unconfirmed {
  background: #3a2a1a;
  color: #e8c8a0;
}

.sidebar-beta-watch-cat-head--likely {
  background: #1a2d4a;
  color: #a8c8f0;
}

.sidebar-beta-watch-cat-head--not {
  background: #3a1a1a;
  color: #f0b0b0;
}

.sidebar-beta-watch-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-beta-watch-item {
  display: flex;
  align-items: baseline;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 10px;
  padding-bottom: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(200, 208, 218, 0.92);
}

.sidebar-beta-watch-prefix {
  flex-shrink: 0;
  margin-right: 0.35em;
  font-size: 1em;
  line-height: 1.5;
  font-family: inherit;
  vertical-align: baseline;
}

.sidebar-beta-watch-li-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-item-info {
  color: rgba(212, 160, 23, 0.5);
  font-size: 0.7rem;
  margin-left: 4px;
  flex-shrink: 0;
  align-self: center;
  line-height: 1;
  user-select: none;
}

.beta-watch-tooltip-pop {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  max-width: 220px;
  padding: 8px 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #e6edf3;
  background: rgba(10, 12, 20, 0.95);
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: 6px;
  overflow-wrap: break-word;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.beta-watch-tooltip-pop--visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .sidebar-beta-watch-item {
    cursor: pointer;
  }
}

.main {
  flex: 1;
  min-width: 0;
  padding: 1rem 2rem 2rem;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
}

.main-content-panel {
  background: rgba(10, 12, 20, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 12px;
  padding: 32px 36px;
  max-width: var(--eq-main-panel-max);
  margin: 24px auto;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--eq-text);
}

.main > * {
  position: relative;
  z-index: 1;
}

.site-header {
  margin-bottom: 1.25rem;
}

.site-header--text .site-header-inner {
  max-width: 52rem;
}

.site-brand-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--eq-gold);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-brand-subtitle {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f0f0f0;
}

.site-header-rule {
  height: 3px;
  margin: 0.85rem 0 0.65rem;
  max-width: 280px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--eq-gold) 15%,
    #f59e0b 50%,
    var(--eq-gold) 85%,
    transparent
  );
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.site-header-tagline {
  margin: 0;
  font-size: 1rem;
  color: #c8c8c8;
  font-weight: 500;
}

.main-build {
  min-height: 8rem;
}

.quiz-panel {
  margin: 0;
}

.main-content-panel .main-build + .quiz-panel:not([hidden]) {
  margin-top: 1rem;
}

.mode-placeholder {
  padding: 1.5rem 1rem;
  border-radius: var(--eq-radius);
  background: var(--eq-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #c8c8c8;
  font-size: 1rem;
}

/* ——— Where the data comes from (below build panel) ——— */

.data-sources-divider {
  height: 1px;
  max-width: min(1100px, 100%);
  margin: 0.5rem auto 0;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 160, 23, 0.35) 20%,
    rgba(212, 160, 23, 0.75) 50%,
    rgba(212, 160, 23, 0.35) 80%,
    transparent
  );
}

.data-sources-section {
  background: rgba(10, 12, 20, 0.75);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 16px;
  padding: 40px 32px;
  backdrop-filter: blur(4px);
  margin: 40px auto;
  max-width: 1100px;
  box-sizing: border-box;
}

.data-sources-title {
  margin: 1.25rem 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  text-align: center;
  color: var(--eq-gold);
  letter-spacing: 0.03em;
}

.data-sources-subtitle {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.05rem;
  color: rgba(220, 225, 235, 0.88);
}

.data-sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

@media (max-width: 960px) {
  .data-sources-grid {
    grid-template-columns: 1fr;
  }
}

.data-sources-card {
  background: rgba(10, 12, 20, 0.88);
  border: 1px solid rgba(212, 160, 23, 0.22);
  border-radius: 12px;
  padding: 1.15rem 1.1rem 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.data-sources-card-head {
  margin-bottom: 0.85rem;
}

.data-sources-icon {
  display: block;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.data-sources-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--eq-gold);
  line-height: 1.3;
}

.data-sources-card-sub {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(230, 235, 245, 0.92);
}

.data-sources-source {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(180, 190, 205, 0.9);
}

.data-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.data-sources-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.data-sources-item:last-child {
  margin-bottom: 0;
}

.data-sources-rank {
  flex-shrink: 0;
  min-width: 1.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(180, 150, 70, 0.95);
  font-variant-numeric: tabular-nums;
}

.data-sources-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.data-sources-combo {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f4f8;
  line-height: 1.35;
}

.data-sources-reason {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(170, 180, 195, 0.95);
}

.data-sources-warn {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #fbbf24;
  opacity: 0.95;
}

.data-sources-score-line {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: rgba(170, 180, 195, 0.95);
}

.data-sources-foot {
  margin: 0.85rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(212, 160, 23, 0.12);
  font-size: 0.75rem;
  line-height: 1.45;
  font-style: italic;
  color: rgba(150, 160, 175, 0.95);
}

.data-sources-rows {
  flex: 1;
  min-height: 4rem;
}

.data-sources-loading {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(180, 188, 200, 0.9);
}

.data-sources-list--score {
  margin: 0;
  padding: 0;
}

/* STATE 3 — centered hero + horizontal ratings row (all paths) */

.state3-bravery-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 32px 24px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.state3-bravery-hero {
  width: 100%;
  max-width: 52rem;
}

.state3-bravery-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.bravery-hero-class-ico {
  width: 70px;
  height: 70px;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.state3-bravery-combo-name {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #d4a017;
  line-height: 1.3;
}

.bravery-ratings-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  padding-bottom: 2px;
}

.bravery-ratings-cores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 36px;
  flex: 0 1 auto;
}

.bravery-rating-chunk--thj {
  flex-shrink: 0;
}

.bravery-rating-chunk {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.bravery-rating-chunk .qq-grade-badge {
  font-size: 0.78rem;
}

.bravery-rating-score {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f0f0f0;
}

.bravery-rating-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(180, 190, 205, 0.95);
}

.bravery-thj-inline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e6edf3;
  white-space: nowrap;
}

.bravery-ratings-divider {
  width: 1px;
  height: 28px;
  background: rgba(212, 160, 23, 0.3);
  flex-shrink: 0;
}

.state3-bravery-dice-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.bravery-dice {
  font-size: 6rem;
  text-align: center;
  animation: dicePulse 2.5s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

.bravery-dice.bravery-dice--spinning {
  animation: diceSpin 0.1s linear infinite;
}

@keyframes dicePulse {
  0%,
  100% {
    transform: scale(1) rotate(-5deg);
  }
  50% {
    transform: scale(1.08) rotate(5deg);
  }
}

@keyframes diceSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.bravery-roll-btn {
  padding: 12px 48px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid #d4a017;
  color: #d4a017;
  background: transparent;
  border-radius: 8px;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}

.bravery-roll-btn:hover {
  background: rgba(212, 160, 23, 0.1);
  border-color: #e6b020;
}

.bravery-fate-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #8b949e;
  line-height: 1.4;
}

.state3-bravery-overview {
  width: 100%;
  text-align: left;
  margin-top: 0.25rem;
}

.state3-bravery-overview .mc-rating-explain-wrap {
  margin-bottom: 0.5rem;
}

.state3-bravery-disclaimer {
  width: 100%;
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .state3-bravery-wrap {
    padding: 24px 16px;
    gap: 22px;
  }

  .bravery-ratings-row {
    gap: 10px 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 4px;
    padding-right: 4px;
  }

  .bravery-ratings-cores {
    gap: 10px 12px;
    justify-content: center;
  }

  .bravery-ratings-divider {
    height: 24px;
  }

  .bravery-rating-chunk .qq-grade-badge {
    font-size: 0.72rem;
  }

  .bravery-rating-score {
    font-size: 0.88rem;
  }

  .bravery-rating-lbl {
    font-size: 0.8rem;
  }

  .bravery-thj-inline {
    font-size: 0.78rem;
  }
}

/* STATE 3 — combo-specific beta flags */

.mc-beta-watch-flags {
  margin: 0.85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mc-beta-watch-flag {
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(253, 224, 160, 0.96);
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.38);
  border-radius: 8px;
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.mc-beta-watch-flag-icon {
  flex-shrink: 0;
  line-height: 1.4;
}

.mc-beta-watch-flag-text {
  flex: 1;
  min-width: 0;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #b8c0cc;
}

.site-footer.site-disclaimer {
  background: rgba(10, 12, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: center;
  font-size: 0.8rem;
  color: #8b949e;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.site-footer p {
  margin: 0;
}

/* ——— Main build states (slot-driven) ——— */

.mc-state {
  max-width: 52rem;
  margin: 0 auto;
}

.mc-state.mc-state--three-bravery {
  max-width: 56rem;
}

/* STATE 0 — two-card CTA */
.state0-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.state0-cta-card {
  background: rgba(10, 12, 20, 0.8);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 12px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  backdrop-filter: blur(4px);
}

.state0-cta-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.state0-cta-heading {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #d4a017;
}

.state0-cta-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #8b949e;
  line-height: 1.5;
  flex: 1;
}

.state0-cta-btn {
  width: 100%;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  margin-top: auto;
  font-family: inherit;
  box-sizing: border-box;
}

.state0-quiz-btn {
  background: #d4a017;
  color: #0a0c14;
  border: none;
}

.state0-quiz-btn:hover {
  background: #e6b020;
}

.state0-roll-btn {
  background: transparent;
  color: #d4a017;
  border: 1px solid rgba(212, 160, 23, 0.5);
}

.state0-roll-btn:hover {
  border-color: #d4a017;
  background: rgba(212, 160, 23, 0.08);
}

.state0-cta-manual {
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #8b949e;
}

@media (max-width: 600px) {
  .state0-cta-grid {
    grid-template-columns: 1fr;
  }
}

.mc-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  text-align: center;
  color: var(--eq-gold);
}

.mc-hero-sub {
  margin: 0 0 1.5rem;
  text-align: center;
  color: #d4d4d4;
  font-size: 1.05rem;
  line-height: 1.55;
}

.mc-btn-quiz {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.55);
  background: linear-gradient(
    180deg,
    rgba(212, 160, 23, 0.25) 0%,
    rgba(212, 160, 23, 0.08) 100%
  );
  color: #fef9e7;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.mc-btn-quiz:hover {
  border-color: var(--eq-gold-hover);
}

.mc-hero-foot {
  text-align: center;
  margin: 0;
}

.mc-link-skip {
  background: none;
  border: none;
  color: #c8d0d8;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.mc-state--bravery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0.5rem 2rem;
  min-height: 14rem;
}

.mc-bravery-dice {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  animation: mc-bravery-dice-wobble 2.8s ease-in-out infinite;
}

@keyframes mc-bravery-dice-wobble {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  20% {
    transform: rotate(-10deg) scale(1.03);
  }
  40% {
    transform: rotate(8deg) scale(1.02);
  }
  60% {
    transform: rotate(-6deg) scale(1.02);
  }
  80% {
    transform: rotate(5deg) scale(1.01);
  }
}

.mc-bravery-title {
  margin: 0 0 1rem;
  max-width: 22rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--eq-gold);
  text-shadow: 0 2px 24px rgba(212, 160, 23, 0.25);
}

.mc-bravery-sub {
  margin: 0 0 2rem;
  max-width: 24rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(230, 235, 242, 0.88);
}

.mc-btn-bravery-roll {
  display: block;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  border: 2px solid rgba(212, 160, 23, 0.65);
  background: linear-gradient(
    180deg,
    rgba(212, 160, 23, 0.35) 0%,
    rgba(212, 160, 23, 0.12) 100%
  );
  color: #fff8e8;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.mc-btn-bravery-roll:hover {
  border-color: var(--eq-gold-hover);
  color: #ffffff;
}

.mc-heading {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.mc-state--one .mc-heading {
  text-align: center;
  margin-bottom: 0.35rem;
}

.mc-heading-sub {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(200, 210, 220, 0.95);
  text-align: center;
  line-height: 1.4;
}

.mc-pair-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mc-pair-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  min-height: 64px;
  border-radius: 12px;
  background: var(--eq-card-panel);
  border: var(--eq-card-border);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mc-pair-card:hover {
  border-color: rgba(212, 160, 23, 0.55);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.mc-pair-icons {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.mc-pair-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--eq-text-warm);
  margin-bottom: 0.25rem;
}

.mc-pair-reason {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(212, 190, 120, 0.95);
}

.mc-foot-hint {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: #c4c4c4;
  text-align: center;
}

.mc-third-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Quiz top picks — match STATE 2 third-class grid; explicit for results panel */
.mc-quiz-results .mc-third-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.mc-quiz-results .mc-quiz-result-card {
  display: flex;
  flex-direction: column;
}

.mc-quiz-results .mc-btn-explore {
  margin-top: auto;
}

.mc-third-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 1rem;
  border-radius: 12px;
  background: var(--eq-card-panel);
  border: var(--eq-card-border);
}

.mc-third-card .mc-third-syn {
  flex: 1 1 auto;
}

.mc-third-icons {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.mc-third-name {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  line-height: 1.35;
}

.mc-score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  width: 100%;
}

.mc-grade-badge-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.mc-score-section-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.2;
}

.mc-score-section-num .mc-score-den {
  font-weight: 600;
  font-size: 0.72em;
  color: rgba(220, 220, 220, 0.82);
  margin-left: 0.06em;
}

.mc-score-section .mc-thj-rank-wrap {
  margin: 0;
  width: 100%;
  justify-content: center;
}

.mc-score-section .thj-rank-badge {
  margin: 0;
}

.mc-score-section .mc-rating-label {
  display: block;
  width: 100%;
  text-align: center;
  white-space: normal;
}

.mc-rating-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(170, 180, 195, 0.9);
  white-space: nowrap;
}

.mc-rating-explain-wrap {
  width: 100%;
  max-width: 400px;
  margin: 0.35rem auto 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mc-rating-explain {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #8b949e;
  text-align: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.mc-thj-rank-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}

.thj-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(
    135deg,
    rgba(180, 60, 0, 0.3),
    rgba(212, 160, 23, 0.15)
  );
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: 8px;
  padding: 5px 12px;
  margin: 6px 0;
}

.thj-flame {
  font-size: 0.9rem;
}

.thj-rank-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #d4a017;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thj-rank-pipe {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(160, 170, 185, 0.95);
  margin: 0 1px;
}

.thj-rank-detail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  flex-wrap: wrap;
}

.thj-rank-detail--unranked {
  font-size: 0.95rem;
  font-weight: 700;
  color: #8b949e;
}

.thj-rank-divider {
  width: 1px;
  height: 14px;
  background: rgba(212, 160, 23, 0.4);
  margin: 0 2px;
}

.thj-rank-number {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.thj-rank-total {
  font-size: 0.75rem;
  color: #8b949e;
}

.mc-score-den {
  font-weight: 600;
  font-size: 0.82em;
  color: rgba(220, 220, 220, 0.78);
  margin-left: 0.06em;
}

.mc-quiz-results {
  padding: 0.25rem 0 1rem;
}

.mc-quiz-empty {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #c8d0d8;
  text-align: center;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.mc-quiz-results-title {
  margin-bottom: 1rem;
  text-align: center;
}

.mc-quiz-result-reason {
  font-size: 0.98rem;
  line-height: 1.5;
  color: #d0d8e0;
  text-align: left;
}

.mc-third-syn {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  text-align: center;
  color: #d0d8e0;
}

.mc-btn-complete {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 160, 23, 0.45);
  background: rgba(212, 160, 23, 0.12);
  color: var(--eq-gold);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.mc-btn-complete:hover {
  border-color: var(--eq-gold-hover);
}

.mc-class-ico {
  object-fit: contain;
  image-rendering: crisp-edges;
}

.mc-class-ico--sm {
  width: 40px;
  height: 40px;
}

.mc-class-ico--lg {
  width: 88px;
  height: 88px;
}

.mc-full-scoreline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.mc-full-score-num {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f0f0f0;
}

.mc-pet-warn {
  margin: 1rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.08);
}

.mc-disclaimer {
  margin-top: 1.25rem !important;
}

.mc-postquiz-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 1rem;
  color: rgba(220, 200, 140, 0.95);
}

/* ——— Class picker (JS-built overlay, appended to body) ——— */

.class-picker-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.class-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, 0.82);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.class-picker-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(92vh, 940px);
  overflow: auto;
  border-radius: 14px;
  background: var(--eq-card-panel);
  border: var(--eq-card-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.class-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(212, 160, 23, 0.25);
}

.class-picker-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--eq-gold);
  letter-spacing: 0.02em;
}

.class-picker-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--eq-text-muted);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.class-picker-close:hover {
  color: var(--eq-gold-hover);
  background: rgba(212, 160, 23, 0.1);
}

.class-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 1rem;
  min-height: 0;
}

.class-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.55rem 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, 0.3);
  background: rgba(8, 12, 22, 0.65);
  color: var(--eq-text-warm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.class-picker-card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: crisp-edges;
}

.class-picker-card:hover:not(:disabled) {
  border-color: rgba(212, 160, 23, 0.75);
  background: rgba(212, 160, 23, 0.12);
}

.class-picker-card--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.class-picker-card-name {
  line-height: 1.25;
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Questionnaire ——— */

.qq-shell {
  max-width: 920px;
  margin: 0 auto;
}

.qq-progress-dots-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.65rem;
}

.qq-progress-dots-wrap--inline {
  width: 100%;
  margin-bottom: 0.85rem;
}

.qq-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.qq-dot {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qq-dot--current {
  width: 10px;
  height: 10px;
  background: var(--eq-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
}

.qq-dot--past {
  width: 6px;
  height: 6px;
  background: rgba(212, 160, 23, 0.42);
}

.qq-dot--future {
  width: 7px;
  height: 7px;
  border: 2px solid rgba(148, 163, 184, 0.45);
  background: transparent;
}

.qq-nav-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.qq-nav-row[hidden] {
  display: none !important;
}

.qq-nav-spacer {
  flex: 1;
}

.qq-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--eq-radius);
  cursor: pointer;
  border: 1px solid var(--eq-border-gold);
  padding: 0.55rem 1rem;
  background: var(--eq-bg-elevated);
  color: var(--eq-text);
}

.qq-btn:hover {
  border-color: var(--eq-gold-hover);
}

.qq-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.qq-btn--back {
  background: transparent;
}

.qq-btn--try {
  width: 100%;
  margin-top: 0.75rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--eq-gold);
}

.qq-btn--ghost {
  background: transparent;
  color: var(--eq-text-muted);
  border-color: var(--eq-border-subtle);
}

.qq-stage {
  min-height: 200px;
  transition: opacity 0.28s ease;
}

.qq-fade--out {
  opacity: 0;
}

.qq-fade--in {
  opacity: 1;
}

.qq-question-section {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eq-gold);
  opacity: 0.95;
}

.qq-question-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.qq-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.qq-card {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  min-height: 64px;
  border-radius: 10px;
  background: var(--eq-card-panel);
  border: var(--eq-card-border);
  color: var(--eq-text-warm);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.15s ease;
}

.qq-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.qq-card--selected {
  border-color: var(--eq-gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
}

.qq-card-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.qq-card-emoji {
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qq-card-text {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--eq-text-warm);
}

.qq-results-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--eq-gold);
  line-height: 1.3;
}

.qq-results-sub {
  margin: 0 0 1.25rem;
  color: #d0d0d0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.qq-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1000px) {
  .qq-results-grid {
    grid-template-columns: 1fr;
  }
}

.qq-result-card {
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: 14px;
  background: var(--eq-card-panel);
  border: var(--eq-card-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.qq-result-rank {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8c0cc;
  margin-bottom: 0.5rem;
}

.qq-result-icons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.qq-class-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.qq-result-title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  color: #ffffff;
}

.qq-pet-warn {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
}

.qq-score-line {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(220, 200, 140, 0.95);
  text-align: center;
}

.qq-result-score-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.qq-grade-badge--inline {
  min-width: auto;
  height: auto;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.95rem;
  border-radius: 8px;
  white-space: nowrap;
}

.qq-result-score-compact-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0f0f0;
  font-variant-numeric: tabular-nums;
}

.qq-score-breakdown {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c8c8c8;
  text-align: center;
}

.qq-breakdown-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.qq-break-sep {
  color: #a8a8a8;
  font-weight: 400;
}

.qq-break-label {
  font-weight: 600;
  color: #c8d0d8;
}

.qq-break-blocks {
  font-family: ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.02em;
}

.qq-result-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.qq-result-synergy-note {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #d8d8d8;
  text-align: center;
}

.qq-result-synergy-note--alt {
  color: rgba(220, 200, 140, 0.9);
  font-size: 0.95rem;
}

.qq-result-score-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #d0d0d0;
}

.qq-result-score-den {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
}

.qq-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: 2.5rem;
  height: auto;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #0f172a;
  white-space: nowrap;
}

.qq-grade-badge--data-sources {
  font-size: 0.68rem;
  min-height: 1.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  vertical-align: middle;
}

.qq-thj-wrap {
  margin-bottom: 0.65rem;
}

.qq-thj-tier-line {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
}

.qq-thj-head {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.qq-thj-popularity-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.qq-thj-pop-label {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(220, 200, 140, 0.95);
}

.qq-thj-bar-track--flex {
  flex: 1;
  min-width: 0;
}

.qq-thj-retention {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: #d8dce4;
}

.qq-thj-tier {
  font-weight: 600;
  color: var(--eq-text);
}

.qq-thj-pct {
  color: #c8c8c8;
  font-variant-numeric: tabular-nums;
}

.qq-thj-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
  border: 1px solid var(--eq-border-subtle);
}

.qq-thj-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
  background: var(--eq-tier-tested);
}

.qq-thj-bar-track[data-tier="Meta"] .qq-thj-bar-fill {
  background: var(--eq-tier-meta);
}
.qq-thj-bar-track[data-tier="Popular"] .qq-thj-bar-fill {
  background: var(--eq-tier-popular);
}
.qq-thj-bar-track[data-tier="Tested"] .qq-thj-bar-fill {
  background: var(--eq-tier-tested);
}
.qq-thj-bar-track[data-tier="Rare"] .qq-thj-bar-fill {
  background: var(--eq-tier-rare);
}
.qq-thj-bar-track[data-tier="Untested"] .qq-thj-bar-fill {
  background: var(--eq-tier-untested);
}

.qq-result-blurb {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #d8dce4;
}

.qq-results-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.qq-results-disclaimer {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #b8c0cc;
  background: rgba(15, 23, 42, 0.65);
  border-radius: var(--eq-radius);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 4px solid var(--eq-gold);
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .main {
    padding: 1rem 1rem 2rem;
  }
}
