@font-face {
  font-family: 'Beaufort for LOL';
  src: url('../BeaufortForLoL-OTF/BeaufortforLOL-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Beaufort for LOL';
  src: url('../BeaufortForLoL-OTF/BeaufortforLOL-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Beaufort for LOL';
  src: url('../BeaufortForLoL-OTF/BeaufortforLOL-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Beaufort for LOL';
  src: url('../BeaufortForLoL-OTF/BeaufortforLOL-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Beaufort for LOL';
  src: url('../BeaufortForLoL-OTF/BeaufortforLOL-Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: 'Spiegel';
  src: url('../Spiegel-OTF/Spiegel-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Spiegel';
  src: url('../Spiegel-OTF/Spiegel-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Spiegel';
  src: url('../Spiegel-OTF/Spiegel-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Spiegel';
  src: url('../Spiegel-OTF/Spiegel-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg-deep: #f7f7f7;
  --bg-mid: #f7f7f7;
  --panel: #ffffff;

  --sea: #29aba7;
  --sea-text: #177f7b;
  --line: #8db6b3;
  --mint: #e6efec;
  --honeydew: #d1e8dc;
  --blossom: #f0a9ad;
  --apricot: #f8d5ad;
  --thistle: #e4c8dc;

  --panel-edge: rgba(141, 182, 179, 0.55);
  --ink: #21201d;
  --ink-body: rgba(33, 32, 29, 0.82);
  --olive: #4f7f7c;
  --olive-bright: #1f7a77;
  --gold: var(--sea-text);
  --ink-dim: rgba(33, 32, 29, 0.58);
  --accent-pink: var(--blossom);
  --accent-lilac: var(--thistle);
  --accent-apricot: var(--apricot);
  --font-display: 'Beaufort for LOL', 'Cinzel', serif;
  --font-serif: 'DM Sans', 'Inter', sans-serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;
  --font-mystic: 'Cormorant Garamond', 'DM Sans', serif;
}

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

body {
  min-height: 100vh;
  background: #f7f7f7;
  color: var(--ink);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

.bg-starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.field-star {
  position: absolute;
  border-radius: 50%;
  animation: field-star-blink var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.field-star.shape-diamond,
.click-star.shape-diamond {
  border-radius: 1px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.field-star.shape-sparkle,
.click-star.shape-sparkle {
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0% 50%, 39% 38%);
}
.field-star.shape-star5,
.click-star.shape-star5 {
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.field-star.shape-star8,
.click-star.shape-star8 {
  border-radius: 0;
  clip-path: polygon(
    50% 0%, 55.36% 37.07%, 72.63% 27.37%, 62.93% 44.64%,
    100% 50%, 62.93% 55.36%, 72.63% 72.63%, 55.36% 62.93%,
    50% 100%, 44.64% 62.93%, 27.37% 72.63%, 37.07% 55.36%,
    0% 50%, 37.07% 44.64%, 27.37% 27.37%, 44.64% 37.07%
  );
}

body:has(#view-report:not([hidden])) .bg-starfield,
body:has(#view-report:not([hidden])) .bg-click-stars {
  opacity: 0.45;
  filter: saturate(0.4);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 12%, transparent 26%, transparent 74%, black 88%, black 100%);
  mask-image: linear-gradient(to right, black 0%, black 12%, transparent 26%, transparent 74%, black 88%, black 100%);
}
@keyframes field-star-blink {
  0%, 100% { opacity: 0.3; transform: translate(var(--rx, 0px), var(--ry, 0px)) scale(0.75); }
  50% { opacity: 1; transform: translate(var(--rx, 0px), var(--ry, 0px)) scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .field-star { animation: none; opacity: 0.7; }
}

.bg-click-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.click-star {
  position: absolute;
  border-radius: 50%;
  opacity: 1;
  animation: click-star-burst var(--burst-dur, 0.6s) cubic-bezier(0.15, 0.8, 0.25, 1) forwards;
}
.click-star.twinkling {
  animation: click-star-loop var(--dur, 4.5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes click-star-burst {
  0% { opacity: 1; transform: scale(1.7) translate(0, 0); }
  100% { opacity: 0.85; transform: scale(1) translate(var(--bx, 40px), var(--by, -30px)); }
}
@keyframes click-star-loop {
  0%, 100% { opacity: 0.3; transform: scale(0.75) translate(var(--bx, 40px), var(--by, -30px)); }
  50% {
    opacity: 1;
    transform: scale(1.3) translate(calc(var(--bx, 40px) + var(--dx, 8px)), calc(var(--by, -30px) + var(--dy, -6px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .click-star, .click-star.twinkling { animation: none; opacity: 0.85; }
}

#app { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; }

.band { width: 100%; padding: 48px 24px 48px 40px; }
.band-hero { padding: 48px 24px 48px 40px; }
.band-mint { background: transparent; }
.band-thistle { background: transparent; }
.band-inner { max-width: 800px; margin: 0 auto; }
.band-inner-wide { max-width: 1080px; }

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 24px 6vh;
  overflow: hidden;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-28px);
}

.view { width: 100%; display: flex; flex-direction: column; align-items: center; }
.view[hidden] { display: none; }

.star-divider {
  font-size: 18px;
  color: var(--gold);
  text-align: center;
  margin: 0 auto 24px;
  text-shadow: none;
}
.star-divider.small { font-size: 12px; margin: 20px auto; opacity: 0.8; }

.section-divider {
  width: 100%;
  max-width: 480px;
  height: 1px;
  margin: 0 auto;
  background: var(--panel-edge);
}

.brand-logo {
  display: block;
  width: 84px;
  height: 84px;
  margin: -18px auto 6px;
  filter: drop-shadow(0 6px 12px rgba(23, 128, 124, 0.18));
}

.brand { text-align: center; line-height: 0; }
.brand-wordmark {
  height: clamp(30px, 5.5vw, 44px);
  width: auto;
}

.brand-sub {
  text-align: center;
  color: var(--ink-dim);
  margin: 22px 0 40px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.search-card {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 100px; }
.field-wide { flex: 2 1 220px; }
.field span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--olive-bright);
  opacity: 0.8;
}

select, input {
  background: #ffffff;
  border: 1px solid var(--panel-edge);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 2px;
  outline: none;
  width: 100%;
}
select:focus, input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(41, 171, 167, 0.2); }

.riot-id-input { display: flex; align-items: center; gap: 6px; }
.riot-id-input input:first-child { flex: 2; }
.riot-id-input input:last-child { flex: 1; }
.hash { color: var(--ink-dim); opacity: 0.7; }

.sentence-card {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(33, 32, 29, 0.05), 0 10px 28px rgba(33, 32, 29, 0.06);
}
.sentence {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.8;
  text-align: center;
  color: var(--ink);
}
.blank {
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--panel-edge);
  border-radius: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 2px 2px;
  width: auto;
  outline: none;
  text-align: center;
}
.blank::placeholder { color: var(--ink-dim); opacity: 0.55; text-transform: uppercase; }
.blank:focus { border-bottom-color: var(--gold); box-shadow: none; }
.blank-text { min-width: 9ch; }
.blank-text.blank-tag { min-width: 4ch; }
.blank-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 18px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2329aba7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.sentence-card .btn-reveal { flex: none; width: auto; min-width: 220px; margin-top: 4px; }

.btn-reveal {
  flex: 1 1 100%;
  margin-top: 6px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid var(--gold);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(33, 32, 29, 0.06), 0 4px 10px rgba(23, 128, 124, 0.08);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-reveal:hover {
  background: rgba(23, 128, 124, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(33, 32, 29, 0.06), 0 7px 16px rgba(23, 128, 124, 0.12);
}
.btn-reveal:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(33, 32, 29, 0.06);
}
.btn-reveal:disabled { opacity: 0.5; cursor: default; box-shadow: none; }

.error-text {
  margin-top: 18px;
  color: #e88888;
  font-size: 14px;
  text-align: center;
  max-width: 440px;
}

.star-spinner {
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 20px;
  animation: pulse-spin 1.6s ease-in-out infinite;
  text-shadow: none;
}
@keyframes pulse-spin {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
}

.loading-text {
  color: var(--ink-dim);
  letter-spacing: 1px;
  font-size: 15px;
}

.report-card {
  width: 100%;
  position: relative;
  backdrop-filter: blur(6px);
  animation: reveal 0.5s ease;
}
@keyframes reveal { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.btn-restart {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 20;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-dim);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(33, 32, 29, 0.08);
}
.btn-restart:hover { color: var(--olive-bright); }

.share-canvas-hidden {
  position: fixed;
  top: -99999px;
  left: -99999px;
}

.share-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--panel-edge);
  text-align: left;
  max-width: 736px;
}

.share-cta-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--ink);
  margin: 8px 0 10px;
}

.share-cta-sub {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
  margin-bottom: 22px;
}

.share-icon-row {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.share-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.share-pill-btn:hover { transform: translateY(-1px); }
.share-pill-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.share-pill-primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #f7f7f7;
}
.share-pill-primary:hover { opacity: 0.9; }

.share-pill-outline {
  background: transparent;
  border: 1px solid var(--panel-edge);
  color: var(--ink);
}
.share-pill-outline:hover { border-color: var(--sea); }

.share-cta-note {
  max-width: 420px;
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.5;
}

.report-header { text-align: center; }
.emblem {
  font-size: 30px;
  color: var(--gold);
  text-shadow: none;
  margin-bottom: 8px;
}
.report-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 1px;
  color: var(--ink);
}
.report-tagline {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--olive-bright);
  opacity: 0.95;
  font-size: 19px;
}
.report-subtitle {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

.report-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.9;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive-bright);
  text-align: left;
  margin-bottom: 16px;
  opacity: 0.85;
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 38px);
  color: var(--ink);
  text-align: left;
  margin: -8px 0 18px;
}

.traits { display: flex; flex-direction: column; gap: 14px; }
.trait-row { display: flex; align-items: center; gap: 12px; }
.trait-label {
  flex: 0 0 130px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.85;
}
.trait-bar {
  flex: 1;
  height: 6px;
  background: rgba(41, 171, 167, 0.18);
  border-radius: 3px;
  overflow: hidden;
}
.trait-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--olive), var(--gold));
  border-radius: 3px;
  animation: fill 0.8s ease;
}
@keyframes fill { from { width: 0; } }
.trait-value { flex: 0 0 32px; text-align: right; font-size: 12px; color: var(--gold); opacity: 0.85; }

.sticky-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 24px;
  background: rgba(247, 247, 247, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-edge);
}
.sticky-topbar-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.sticky-topbar-logo {
  width: 34px;
  height: 34px;
}
.sticky-topbar-wordmark {
  height: 20px;
  width: auto;
  display: block;
}
.sticky-topbar-riotid {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.chart-glossary-section { text-align: left; }
.chart-glossary-section .evidence-label { margin-bottom: 20px; }
.chart-glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 96px;
  row-gap: 20px;
  max-width: 736px;
  margin: 0;
  text-align: left;
}
.chart-glossary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.chart-glossary-name { font-family: var(--font-body); font-weight: 600; color: var(--sea-text); }
.chart-glossary-def { color: var(--ink-dim); text-align: left; }
@media (max-width: 560px) {
  .chart-glossary { grid-template-columns: 1fr; }
}

.report-masthead { text-align: left; margin-bottom: 6px; }
.report-logo {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  filter: drop-shadow(0 4px 9px rgba(23, 128, 124, 0.18));
}
.report-brand { text-align: center; line-height: 0; }
.report-brand-wordmark {
  height: clamp(22px, 4vw, 30px);
  width: auto;
}
.report-brand-sub {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 16px;
  text-align: center;
  color: var(--ink-dim);
}

.signature-section { text-align: left; }
.signature-radar-wrap { display: flex; justify-content: center; margin: 6px auto 4px; }
#signature-radar { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: rgba(141, 182, 179, 0.45); stroke-width: 1; }
.radar-axis-line { stroke: rgba(141, 182, 179, 0.45); stroke-width: 1; }
.radar-axis-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  fill: var(--olive);
}
.radar-axis-unmeasured { opacity: 0.4; }
.radar-data {
  fill: rgba(209, 232, 220, 0.75);
  stroke: var(--sea);
  stroke-width: 2;
  filter: drop-shadow(0 3px 4px rgba(41, 171, 167, 0.25));
}
.radar-dot { fill: var(--sea); }
.radar-value {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  fill: var(--sea-text);
}

.section-explainer {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  max-width: 736px;
  margin: -4px 0 20px;
  text-align: left;
}

.signature-note {
  font-size: 12px;
  color: var(--ink-dim);
  margin: 4px auto 0;
  max-width: 620px;
}

.axis-glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 72px;
  row-gap: 30px;
  max-width: 736px;
  margin: 8px 0 24px;
  text-align: left;
}
.axis-glossary-item { display: flex; flex-direction: column; gap: 6px; }
.axis-glossary-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--sea-text);
}
.axis-glossary-def {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.axis-glossary-hint {
  font-size: 12px;
  color: var(--ink-dim);
  opacity: 0.8;
  margin: 36px 0 28px;
}
@media (max-width: 560px) {
  .axis-glossary { grid-template-columns: 1fr; }
}

.signature-reading {
  max-width: 736px;
  margin: 18px 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-body);
  text-align: left;
}

.archetype-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 736px;
  margin-bottom: 24px;
}
.archetype-card {
  width: 100%;
  max-width: none;
  border: 1px solid var(--panel-edge);
  border-radius: 3px;
  padding: 14px 12px;
  text-align: left;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(33, 32, 29, 0.05), 0 5px 14px rgba(33, 32, 29, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (max-width: 640px) {
  .archetype-cards { grid-template-columns: 1fr; }
}
.archetype-card.primary { border-color: var(--sea); }
.archetype-card.shadow { border-color: rgba(248, 213, 173, 0.9); }
.score-bar {
  display: block;
  height: 4px;
  background: rgba(33, 32, 29, 0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.score-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--honeydew);
  border-radius: 2px;
  transition: width 0.6s ease;
}
.archetype-card.primary .score-fill { background: var(--sea); }
.archetype-card.shadow .score-fill { background: var(--apricot); }
.archetype-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 3px rgba(33, 32, 29, 0.05), 0 10px 22px rgba(33, 32, 29, 0.08);
}
.info-tip {
  cursor: help;
  font-size: 11px;
  color: var(--ink-dim);
  position: relative;
}
.info-tip::after {
  content: attr(data-tip);
  box-shadow: 0 4px 14px rgba(33, 32, 29, 0.10);
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 180px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 3px;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2px;
  text-transform: none;
  text-align: left;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.info-tip:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.archetype-card-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 6px;
}
.archetype-card-name { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.archetype-card-meaning { font-size: 12px; line-height: 1.5; color: var(--ink-dim); margin-bottom: 8px; }
.archetype-card-score { font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }

.evidence-section { max-width: 736px; margin: 0; text-align: left; }
.evidence-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0.9;
  margin-bottom: 10px;
  text-align: left;
}
.evidence-label-bold { font-weight: 700; }

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--panel-edge);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}
.evidence-cell {
  padding: 20px 24px;
  border-bottom: 1px solid var(--panel-edge);
}
.evidence-cell:nth-child(odd) { border-right: 1px solid var(--panel-edge); }
.evidence-grid .evidence-cell:last-child,
.evidence-grid .evidence-cell:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}
.evidence-cell-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.evidence-cell-value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 4px;
}
.evidence-cell-context {
  font-size: 13px;
  color: var(--sea-text);
}

@media (max-width: 560px) {
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-cell:nth-child(odd) { border-right: none; }
  .evidence-grid .evidence-cell:last-child { border-bottom: none; }
}

.report-identity {
  display: flex;
  gap: 40px;
  margin-top: 18px;
}
.report-identity-item { display: flex; flex-direction: column; gap: 10px; }
.report-identity-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.report-identity-value {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
}
.report-identity-dim { color: var(--ink-dim); }
.report-rank-lp { color: var(--ink-dim); }

.masthead-back-row {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 48px;
}
.masthead-back-row .btn-restart {
  position: static;
  box-shadow: none;
}

.population-section { max-width: 736px; margin: 26px 0 0; text-align: left; }
.population-section .evidence-label { margin-bottom: 20px; }
.population-section .signature-note { text-align: left; margin: 0 0 28px; }
.population-list { display: flex; flex-direction: column; gap: 18px; }

.population-row {
  display: grid;
  grid-template-columns: 130px 132px 1fr 36px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
}

.population-row.population-you {
  background: rgba(41, 171, 167, 0.10);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(41, 171, 167, 0.6);
  padding: 9px 8px;
  margin: -9px -8px;
}
.population-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.population-tag-slot { display: flex; align-items: center; justify-content: center; }
.population-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sea-text);
  border: 1px solid rgba(41, 171, 167, 0.6);
  border-radius: 10px;
  padding: 2px 7px;
  white-space: nowrap;
}
.population-tag.dim { color: var(--ink-dim); border-color: rgba(33, 32, 29, 0.18); }
.population-bar {
  height: 6px;
  background: rgba(33, 32, 29, 0.07);
  border-radius: 3px;
  overflow: hidden;
}
.population-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--honeydew);
  border-radius: 3px;
  transition: width 0.6s ease;
}
.population-you .population-fill { background: var(--sea); }
.population-pct { text-align: right; font-size: 12px; color: var(--ink-dim); }

.signature-radar-wrap { position: relative; }
.radar-axis-label { cursor: help; }
.axis-tip {
  position: absolute;
  transform: translate(-50%, -100%);
  width: 220px;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 3px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(33, 32, 29, 0.10);
  pointer-events: none;
  z-index: 10;
}

.link-library {
  margin-top: 38px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gold);
  cursor: pointer;
  letter-spacing: 0.3px;
}
.link-library:hover { text-decoration: underline; }

.library-section { text-align: center; }
.library-axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 0 auto;
  text-align: left;
}
.library-axis {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 3px;
  padding: 14px 16px;
}
.library-axis-name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}
.library-axis-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.library-archetypes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.archetype-card.library-card { max-width: none; width: 100%; }
@media (max-width: 700px) {
  .library-archetypes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .library-archetypes { grid-template-columns: 1fr; }
}
.library-card-share {
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 4px;
}
.library-card-share:empty { display: none; }

.report-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(41, 171, 167, 0.18);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-dim);
}
.rank-pill {
  background: rgba(23, 128, 124, 0.08);
  border: 1px solid var(--panel-edge);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.chart-list { display: flex; flex-direction: column; text-align: left; }

.chart-placement {
  padding: 26px 0;
}
.chart-placement:last-child { padding-bottom: 4px; }
.chart-placement:first-child { padding-top: 0; }

.chart-group {
  max-width: 736px;
  margin: 8px 0 4px;
  padding-top: 34px;
  border-top: 1px solid var(--panel-edge);
}
.chart-group:first-child { padding-top: 0; border-top: 0; }
.chart-group-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 8px;
}
.chart-group-blurb {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  margin: 0 0 4px;
}

.placement-glyph {
  font-size: 22px;
  color: var(--gold);
  text-shadow: none;
  margin-bottom: 6px;
}
.placement-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.placement-champ {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.placement-why-top {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.placement-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-body);
  max-width: 736px;
}
.placement-body + .placement-body { margin-top: 10px; }
.placement-why {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gold);
  opacity: 0.75;
}

.item-block { max-width: 736px; margin: 0; text-align: left; }
.item-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.item-icon {
  width: 56px; height: 56px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 2px solid var(--gold);
}
.item-header-text { flex: 1 1 auto; }
.item-name {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.item-meta {
  font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}
.item-description {
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-body);
}
.item-quote {
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--sea);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-body);
}

.btn-reveal.small {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.disclaimer {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 28px;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(33, 32, 29, 0.45);
}

body:has(#view-search:not([hidden])) .disclaimer { display: none; }

@media (max-width: 480px) {
  .report-card { padding: 32px 20px 22px; }
  .trait-label { flex-basis: 100px; font-size: 11px; }
}

@media (max-width: 640px) {
  .band, .band-hero { padding: 36px 20px; }

  .report-identity { gap: 24px; flex-wrap: wrap; }

  .population-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name tag"
      "bar bar"
      "pct pct";
    row-gap: 6px;
  }
  .population-name { grid-area: name; }
  .population-tag-slot { grid-area: tag; justify-content: flex-end; }
  .population-bar { grid-area: bar; }
  .population-pct { grid-area: pct; text-align: left; }
  .population-row.population-you { padding: 10px; margin: -10px; }

  .sticky-topbar { padding: 12px 16px; }
  .sticky-topbar-riotid { font-size: 11px; }

  .signature-radar-wrap svg { max-width: 100%; }

  .hero { height: auto; min-height: 100vh; overflow: visible; padding: 32px 20px; }
  .sentence-card { padding: 24px 18px; }
  .sentence, .blank { font-size: 15px; }
}
