/* TakeBigFive — single stylesheet */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf8f3;
  --bg-soft: #f4eee4;
  --card: #ffffff;
  --ink: #1d1b2f;
  --ink-2: #3c3852;
  --muted: #6b6680;
  --line: #e7dfd2;
  --brand: #5b47e0;
  --brand-ink: #4232c2;
  --brand-soft: #eeebff;
  --O: #8b5cf6;
  --C: #14a39a;
  --E: #f59e0b;
  --A: #ec5d8a;
  --N: #3b82f6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(29, 27, 47, 0.04), 0 10px 30px rgba(29, 27, 47, 0.07);
  --shadow-lg: 0 2px 4px rgba(29, 27, 47, 0.05), 0 24px 60px rgba(29, 27, 47, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--sans); padding: 15px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(29, 27, 47, 0.18); }
.btn-primary:hover { background: #2c2944; color: #fff; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(91, 71, 224, 0.28); }
.btn-brand:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; display: block; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 243, 0.82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(231, 223, 210, 0.7);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 650 21px/1 var(--serif); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; }
.logo b { color: var(--brand); font-weight: 650; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.16), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.14), transparent 55%),
              radial-gradient(circle at 40% 80%, rgba(20, 163, 154, 0.12), transparent 55%);
  filter: blur(10px); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 14px; }
.hero h1 .accent { background: linear-gradient(100deg, var(--O), var(--A) 45%, var(--E)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: var(--ink-2); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; list-style: none; }
.hero-sub li { display: inline-flex; align-items: center; gap: 7px; }
.hero-sub li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--C); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .bloom-hero { width: min(420px, 100%); height: auto; animation: breathe 9s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(91, 71, 224, 0.14)); }
.hero-art .float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); display: inline-flex; gap: 8px; align-items: center; }
.hero-art .float .dot { width: 9px; height: 9px; border-radius: 50%; }
.hero-art .f1 { top: 1%; left: 38%; } .hero-art .f2 { top: 30%; right: -4%; } .hero-art .f3 { bottom: 8%; right: 2%; } .hero-art .f4 { bottom: 8%; left: 0; } .hero-art .f5 { top: 30%; left: -6%; }
@keyframes breathe { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(8deg) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .hero-art .bloom-hero { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .hero { padding: 28px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { display: none; }
}

/* ---------- question card & scale ---------- */
.q-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; box-shadow: var(--shadow-lg); }
.q-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.q-text { font: 600 clamp(1.35rem, 2.6vw, 1.7rem)/1.3 var(--serif); letter-spacing: -0.01em; margin: 0 0 24px; min-height: 2.6em; }
.scale { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.scale li { flex: 1; display: flex; justify-content: center; }
.opt {
  --c: var(--muted); --s: 40px;
  width: var(--s); height: var(--s); border-radius: 50%; border: 2.5px solid var(--c); background: #fff; cursor: pointer;
  display: grid; place-items: center; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; text-decoration: none; padding: 0;
}
.opt:hover { transform: scale(1.08); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent); }
.opt[aria-checked="true"], .opt.is-on { background: var(--c); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent); }
.opt[aria-checked="true"]::after, .opt.is-on::after { content: ""; width: 34%; height: 34%; border-radius: 50%; background: #fff; }
.opt.o1 { --c: #8b5cf6; --s: 52px; } .opt.o2 { --c: #a68cf7; --s: 42px; } .opt.o3 { --c: #b3adc4; --s: 34px; } .opt.o4 { --c: #4fbfb3; --s: 42px; } .opt.o5 { --c: #14a39a; --s: 52px; }
.scale-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.scale-labels .l { color: #7b55e8; } .scale-labels .r { color: #0f8a82; }
.q-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 14px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.q-foot .q-note { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 420px) { .opt.o1, .opt.o5 { --s: 46px; } .opt.o2, .opt.o4 { --s: 38px; } .opt.o3 { --s: 30px; } .q-card { padding: 22px 18px 18px; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
h2 a.page { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.25s; }
h2 a.page:hover { background-size: 100% 2px; }
h2 a.page .arr { display: inline-block; transition: transform 0.2s; color: var(--brand); }
h2 a.page:hover .arr { transform: translateX(4px); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font: 700 18px/1 var(--serif); margin-bottom: 16px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-2); margin: 0; font-size: 16px; }
.tips { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; list-style: none; }
.tips li { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; color: var(--ink-2); }
.tips b { color: var(--ink); }

.preview { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.preview ul { padding-left: 1.1em; color: var(--ink-2); }
.preview li { margin-bottom: 8px; }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; }
.mock-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.mock-top svg { width: 92px; height: 92px; flex: none; }
.mock-top .k { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mock-top .t { font: 600 1.6rem/1.15 var(--serif); }

.trait-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.trait-card {
  --c: var(--brand); position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease; overflow: hidden;
}
.trait-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.trait-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.trait-card .letter { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 22px/1 var(--serif); color: #fff; background: var(--c); margin-bottom: 14px; }
.trait-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.trait-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }

.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-tile {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.type-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.type-tile svg { width: 52px; height: 52px; flex: none; }
.type-tile .nm { font: 600 1.05rem/1.2 var(--serif); }
.type-tile .cd { font-size: 12.5px; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.compare .box.hi { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.compare h3 { font-size: 1.15rem; }
.compare ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.compare li { margin-bottom: 6px; }

.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.use { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; }
.use .ic { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 22px; }
.use h3 { font-size: 1.12rem; margin-bottom: 4px; }
.use p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise div { background: var(--card); border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 20px; }
.promise b { display: block; font: 600 1.05rem/1.3 var(--serif); margin-bottom: 4px; }
.promise span { color: var(--ink-2); font-size: 15px; }

.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; margin-bottom: 12px; transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; }

.cta-band { background: var(--ink); color: #fff; border-radius: 32px; padding: 64px 48px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfcbe0; font-size: 18px; }
.cta-band svg { width: 240px; height: 240px; justify-self: center; opacity: 0.95; }
.cta-band svg g { mix-blend-mode: normal !important; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #f1eefc; color: var(--ink); }
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .steps, .tips, .preview, .compare, .uses { grid-template-columns: 1fr; }
  .trait-cards { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 44px 26px; border-radius: 26px; }
  .cta-band svg { display: none; }
}
@media (max-width: 480px) {
  .trait-cards, .promise { grid-template-columns: 1fr; }
  .type-tile { padding: 12px; } .type-tile svg { width: 42px; height: 42px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; color: var(--ink-2); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font: 600 13px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- article pages ---------- */
.page-hero { padding: 48px 0 30px; }
.page-hero .wrap { max-width: 760px; }
.trait-hero h1, .page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #bbb3a5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.lede { font-size: 20px; color: var(--ink-2); line-height: 1.6; }
.prose { max-width: 760px; margin: 0 auto; padding: 0 24px 40px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.55rem, 3vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose .callout { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 18px 20px; margin: 1.4em 0; }
.page-cta { max-width: 760px; margin: 10px auto 40px; padding: 0 24px; }
.page-cta .inner { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow); }
.page-cta p { margin: 0; font: 600 1.25rem/1.3 var(--serif); }
@media (max-width: 640px) { .page-cta .inner { flex-direction: column; align-items: flex-start; } .lede { font-size: 18px; } }

/* trait & type page headers */
.trait-hero { display: flex; gap: 22px; align-items: center; margin-bottom: 10px; }
.trait-hero .letter { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; font: 700 34px/1 var(--serif); color: #fff; flex: none; }
.type-head { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; }
.type-head svg { width: 180px; height: 180px; }
.type-head .cd { font: 600 14px/1 var(--sans); letter-spacing: 0.16em; color: var(--muted); }
.kw { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 640px) { .type-head { grid-template-columns: 1fr; gap: 16px; } .type-head svg { width: 130px; height: 130px; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.2em 0; }
.two-col > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.two-col h3 { margin-top: 0; font-size: 1.1rem; }
.two-col ul { margin: 0; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1em 0 1.6em; }
@media (max-width: 640px) { .related { grid-template-columns: 1fr; } }
.letters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 1.2em 0; }
.letters a { text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; font-size: 14px; }
.letters a b { display: block; font: 700 1.4rem/1.2 var(--serif); }
@media (max-width: 640px) { .letters { grid-template-columns: repeat(2, 1fr); } }

/* ---------- quiz ---------- */
.quiz-main { min-height: calc(100vh - 68px); padding: 34px 0 60px; }
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.progress .track { flex: 1; height: 10px; background: #ebe4d8; border-radius: 999px; overflow: hidden; }
.progress .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--O), var(--A), var(--E)); border-radius: 999px; transition: width 0.35s ease; }
.progress .num { font: 600 15px/1 var(--sans); color: var(--ink-2); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.quiz .q-card { padding: 40px 34px 30px; }
.quiz .q-text { font-size: clamp(1.5rem, 3.4vw, 2.1rem); min-height: 3.2em; display: flex; align-items: center; }
.quiz .q-text.swap { animation: qin 0.32s ease; }
@keyframes qin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-done { text-align: center; padding: 40px 10px; }
.quiz-done svg { width: 140px; height: 140px; margin: 0 auto 18px; animation: breathe 6s ease-in-out infinite; }
.kbd { font: 600 12px/1 var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; background: #fff; }
@media (max-width: 640px) { .quiz .q-card { padding: 28px 18px 22px; } .hide-sm { display: none; } }

/* ---------- result ---------- */
.res-hero { padding: 44px 0 20px; }
.res-hero .wrap { max-width: 980px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.res-hero .bloom-res { width: 260px; height: 260px; filter: drop-shadow(0 24px 30px rgba(29, 27, 47, 0.12)); }
.res-hero .who { font: 600 14px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.res-hero h1 { margin-bottom: 6px; }
.res-hero .code { font: 600 16px/1 var(--sans); letter-spacing: 0.2em; color: var(--brand-ink); margin-bottom: 14px; }
.res-hero .one { font-size: 19px; color: var(--ink-2); }
@media (max-width: 760px) { .res-hero .wrap { grid-template-columns: 1fr; gap: 10px; text-align: center; } .res-hero .bloom-res { width: 190px; height: 190px; margin: 0 auto; } .res-hero .kw { justify-content: center; } }
.res-body { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 22px; }
.panel h2 { font-size: 1.6rem; }
.bars { display: grid; gap: 22px; }
.bar-row { display: grid; grid-template-columns: 200px 1fr; gap: 6px 22px; align-items: center; }
.bar-row .lab { font-weight: 600; }
.bar-row .lab a { color: var(--ink); text-decoration: none; }
.bar-row .lab a:hover { text-decoration: underline; }
.bar-row .lab small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.bar { position: relative; height: 14px; background: #efe9df; border-radius: 999px; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--c); width: 0; transition: width 0.9s cubic-bezier(.2,.8,.2,1); }
.bar-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-top: 6px; }
.bar-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lvl { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg-soft); color: var(--ink-2); }
.bar-row .txt { grid-column: 2; color: var(--ink-2); font-size: 15.5px; margin: 4px 0 0; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr; } .bar-row .txt { grid-column: 1; } .panel { padding: 22px 18px; } }
.note { border-radius: var(--radius-sm); padding: 14px 18px; background: #fff7e6; border: 1px solid #f6dfae; color: #6b4b10; font-size: 15px; margin-bottom: 18px; }
.note.info { background: var(--brand-soft); border-color: #dad4ff; color: #2f2785; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.card-preview { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; }
.card-preview canvas, .card-preview img { width: 200px; height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); background: #f3efe8; }
@media (max-width: 640px) { .card-preview { grid-template-columns: 1fr; } .card-preview canvas { margin: 0 auto; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; opacity: 0; transition: 0.25s; pointer-events: none; z-index: 60; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.disclaimer { font-size: 14px; color: var(--muted); text-align: center; max-width: 640px; margin: 20px auto 0; }
.notfound { text-align: center; padding: 100px 20px; }
.notfound svg { width: 160px; height: 160px; margin: 0 auto 20px; }

/* owner vs. viewer on result pages */
.owner-only { display: none; }
.is-owner .owner-only { display: block; }
.is-owner .viewer-only { display: none; }

/* grid variants (no inline widths, so mobile rules apply) */
.type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.type-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.type-tile { min-width: 0; }
.letters.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.letters.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.letters a { overflow-wrap: anywhere; }
@media (max-width: 900px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .letters.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .type-grid.cols-2 { grid-template-columns: 1fr; } }
h1, h2 { overflow-wrap: break-word; }
.trait-hero > div { min-width: 0; }
@media (max-width: 640px) {
  .trait-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .trait-hero .letter { width: 54px; height: 54px; font-size: 26px; border-radius: 16px; }
}

/* formula line, type fit, code chips, likes */
.formula { font: 600 17px/1.55 var(--sans); color: var(--ink-2); margin: 2px 0 12px; }
.formula .lv { white-space: nowrap; }
.formula .lv-high { color: var(--c); }
.formula .lv-mid { color: var(--ink-2); }
.formula .lv-low { color: #8a8599; font-weight: 500; }
.formula .sep { color: #c4bdcf; margin: 0 2px; }
.formula .tag { font: 500 18px/1.4 var(--serif); color: var(--muted); }
.fit { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 14px; }
.fit-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
.fit-pill b { font-weight: 600; margin-right: 4px; }
.fit-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.fit-pill i.on { background: var(--brand); }
.fit-txt { font-size: 14.5px; color: var(--muted); flex: 1 1 260px; }
.codebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; }
.codebar .lbl { font: 700 13px/1 var(--sans); letter-spacing: 0.08em; color: var(--brand-ink); margin-right: 2px; }
.codebar > span:not(.lbl) { display: contents; }
.codechip { display: inline-flex; align-items: baseline; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; color: var(--ink-2); }
.codechip b { font: 700 16px/1 var(--serif); color: var(--c); }
.codechip em { font-style: normal; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.codebar a { margin-left: 4px; }
.type-head .formula { margin-bottom: 10px; }
.likes h3 { font-size: 1.1rem; }
.likes li::marker { color: var(--brand); }
.share-row.social { align-items: center; margin-top: 12px; }
@media (max-width: 760px) {
  .res-hero .fit, .res-hero .codebar { justify-content: center; }
  .fit-txt { flex-basis: 100%; }
}
.panel .two-col { margin: 0; }
.panel .two-col > div { border: 0; padding: 0; background: none; }
