:root {
  --bg: #090709;
  --panel: rgba(28, 20, 28, 0.88);
  --panel-2: rgba(42, 29, 41, 0.92);
  --text: #f2e8df;
  --muted: #b9aaa0;
  --accent: #9e1b32;
  --accent-2: #c02a43;
  --gold: #c8a45e;
  --border: rgba(255,255,255,0.13);
  --shadow: rgba(0,0,0,0.48);
  --ok: #7bd196;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(158,27,50,0.27), transparent 28rem),
    radial-gradient(circle at 85% 40%, rgba(199,161,90,0.08), transparent 30rem),
    linear-gradient(180deg, #050405, #120c12 48%, #080608);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.9;
}

.fog {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,0.04), transparent 20%),
    radial-gradient(circle at 75% 40%, rgba(255,255,255,0.035), transparent 24%);
  filter: blur(22px);
  opacity: 0.65;
  animation: drift 18s ease-in-out infinite alternate;
}

.blood-drop {
  position: fixed;
  top: -90px;
  right: 10vw;
  width: 3px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(192,42,67,0.88));
  box-shadow: 0 0 22px rgba(192,42,67,0.4);
  pointer-events: none;
  opacity: 0;
  animation: drop 9s linear infinite;
}

.blood-drop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 14px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50% 50% 58% 58%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.2), transparent 35%), rgba(192,42,67,0.92);
  box-shadow: 0 0 18px rgba(192,42,67,0.3);
}

.blood-drop-1 {
  right: 10vw;
  animation-duration: 8.5s;
  animation-delay: 0s;
}

.blood-drop-2 {
  right: 24vw;
  width: 2px;
  height: 78px;
  animation-duration: 10.5s;
  animation-delay: 1.4s;
  filter: saturate(1.15);
}

.blood-drop-2::after {
  width: 11px;
  height: 14px;
}

.blood-drop-3 {
  right: 42vw;
  width: 4px;
  height: 112px;
  animation-duration: 11.5s;
  animation-delay: 3.2s;
}

.blood-drop-3::after {
  width: 16px;
  height: 22px;
}

.blood-drop-4 {
  right: 67vw;
  width: 2px;
  height: 88px;
  animation-duration: 9.8s;
  animation-delay: 2.1s;
  opacity: 0;
}

.blood-drop-4::after {
  width: 12px;
  height: 16px;
}

.blood-drop-5 {
  right: 84vw;
  width: 3px;
  height: 104px;
  animation-duration: 12.6s;
  animation-delay: 4.6s;
  filter: brightness(1.08);
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.05); }
}

@keyframes drop {
  0%, 66% { transform: translateY(-150px) scaleY(0.9); opacity: 0; }
  72% { opacity: 0.9; }
  84% { opacity: 1; }
  100% { transform: translateY(125vh) scaleY(1.05); opacity: 0; }
}

.app {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 70px;
}

.app > * + * {
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
    var(--panel);
  box-shadow: 0 20px 70px var(--shadow);
  padding: 24px;
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 28px 34px;
}

.hero-audio-dock {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: min(320px, calc(100% - 44px));
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.hero::after {
  content: "V5";
  position: absolute;
  right: 22px;
  top: 8px;
  font-size: clamp(92px, 20vw, 210px);
  line-height: 1;
  opacity: 0.035;
  font-weight: 900;
  letter-spacing: -10px;
}

#top.hero .eyebrow,
#top.hero h1,
#top.hero > p {
  max-width: min(760px, calc(100% - 360px));
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  margin-bottom: 12px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.hero p { max-width: 760px; font-size: 1.13rem; }

.notice {
  font-size: 0.9rem !important;
  opacity: 0.82;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 7, 9, 0.76);
  backdrop-filter: blur(16px);
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: rgba(199,161,90,0.32);
  background: rgba(158,27,50,0.22);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.half { grid-column: span 6; }

.full { grid-column: 1 / -1; }

.sticky {
  align-self: start;
  position: sticky;
  top: 88px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-action-groups {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 22px;
}

.action-cluster,
.hero-audio-panel {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.03);
  padding: 16px 18px 18px;
}

.action-cluster .actions {
  margin-top: 10px;
}

.action-cluster-builder {
  background:
    radial-gradient(circle at top right, rgba(200,164,94,0.16), transparent 55%),
    linear-gradient(180deg, rgba(158,27,50,0.18), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.035);
  border-color: rgba(200,164,94,0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.action-cluster-label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.action-cluster-text {
  margin: 8px 0 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--muted);
}

.builder-cta {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(200,164,94,0.92), rgba(158,27,50,0.95));
  border-color: rgba(200,164,94,0.4);
  box-shadow: 0 16px 28px rgba(158,27,50,0.24);
}

.builder-cta:hover {
  border-color: rgba(200,164,94,0.62);
  box-shadow: 0 18px 34px rgba(158,27,50,0.32);
}

.hero-audio-panel {
  margin-top: 16px;
  max-width: 560px;
  background:
    radial-gradient(circle at top left, rgba(200,164,94,0.08), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(255,255,255,0.03);
}

.hero-audio-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.hero-audio-head .action-cluster-text {
  margin: 8px 0 0;
  max-width: 340px;
}

.hero-audio {
  margin-top: 14px;
}

.audio-toggle {
  flex: 0 0 auto;
  border-color: rgba(200,164,94,0.22);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.26), rgba(0,0,0,0.12)),
    rgba(255,255,255,0.03);
}

.compact-volume {
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 14, 20, 0.78);
  backdrop-filter: blur(12px);
}

.compact-volume span {
  font-size: 0.92rem;
}

.compact-volume strong {
  font-size: 0.92rem;
}

.wiki-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.external-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(200,164,94,0.26);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.external-link:hover {
  background: rgba(158,27,50,0.18);
  border-color: rgba(200,164,94,0.45);
  transform: translateY(-1px);
}

.volume-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.035);
}

.volume-control span,
.volume-control strong {
  color: var(--text);
}

.volume-control span {
  font-weight: 700;
}

.volume-control strong {
  color: var(--gold);
  justify-self: end;
}

.volume-control input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  accent-color: var(--accent-2);
}

.btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  min-height: 44px;
  padding: 11px 17px;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, border 140ms ease;
}

.btn.secondary {
  background: rgba(255,255,255,0.07);
}

.btn.ghost {
  background: rgba(0,0,0,0.15);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(199,161,90,0.38);
}

.quote {
  border-left: 3px solid var(--accent-2);
  background: linear-gradient(90deg, rgba(158,27,50,0.14), transparent);
  color: #f4ded8;
  padding: 10px 0 10px 16px;
  border-radius: 0 12px 12px 0;
  margin-top: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  border: 1px solid rgba(199,161,90,0.28);
  color: #ead6aa;
  background: rgba(199,161,90,0.07);
  border-radius: 999px;
  padding: 7px 10px;
}

.clan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.clan-card {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}

.clan-image {
  appearance: none;
  width: 100%;
  height: 150px;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.72)),
    var(--image, linear-gradient(135deg, #2b1b27, #130d13));
  background-size: cover;
  background-position: center;
}

.clan-image:hover {
  filter: brightness(1.06);
}

.clan-image:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.clan-body {
  padding: 16px;
}

.clan-mark {
  position: absolute;
  top: 105px;
  right: 14px;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(199,161,90,0.4);
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0,0,0,0.36);
}

.clan-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.clan-card h3 {
  margin-right: 84px;
}

.clan-card p {
  font-size: 0.96rem;
  margin: 8px 0 0;
}

.clan-card .small {
  font-size: 0.88rem;
  color: #d0c1b8;
}

.hidden {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 4, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 92vh;
  display: grid;
  gap: 14px;
}

.lightbox-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(10, 8, 10, 0.94);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
}

.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-fallback {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.lightbox-caption {
  color: var(--text);
  text-align: center;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  color: var(--text);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  filter: brightness(1.08);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.quiz {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.question {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.035);
}

.question-title {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
}

.answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.answer {
  display: flex;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px;
  color: var(--muted);
  background: rgba(0,0,0,0.16);
  cursor: pointer;
}

.answer input {
  accent-color: var(--accent-2);
  margin-top: 3px;
}

.answer:has(input:checked) {
  border-color: rgba(199,161,90,0.48);
  background: rgba(158,27,50,0.18);
  color: var(--text);
}

.quiz-result {
  margin-top: 18px;
  border: 1px solid rgba(199,161,90,0.24);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(199,161,90,0.07), rgba(255,255,255,0.015));
}

.quiz-result strong {
  color: var(--gold);
}

form {
  display: grid;
  gap: 15px;
  margin-top: 10px;
}

label, legend {
  color: var(--text);
  font-weight: 700;
}

.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.help-badge {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(200,164,94,0.35);
  background: rgba(200,164,94,0.08);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: help;
  touch-action: manipulation;
}

.help-badge::before,
.help-badge::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.help-badge::before {
  content: "";
  bottom: calc(100% + 4px);
  transform: translate(-50%, 6px);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(7, 5, 7, 0.96);
  z-index: 12;
}

.help-badge::after {
  content: attr(title);
  bottom: calc(100% + 10px);
  transform: translate(-50%, 8px);
  width: min(320px, calc(100vw - 40px));
  padding: 10px 12px;
  border: 1px solid rgba(200,164,94,0.26);
  border-radius: 12px;
  background: rgba(7, 5, 7, 0.96);
  box-shadow: 0 14px 32px rgba(0,0,0,0.36);
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
  white-space: pre-line;
  z-index: 11;
}

.help-badge:hover::before,
.help-badge:hover::after,
.help-badge:focus-visible::before,
.help-badge:focus-visible::after,
.help-badge:focus::before,
.help-badge:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.help-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

input[type="text"], textarea, select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(199,161,90,0.58);
  box-shadow: 0 0 0 4px rgba(199,161,90,0.08);
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.checks label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 400;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px;
  background: rgba(255,255,255,0.035);
}

.checks input { accent-color: var(--accent-2); }

.preview {
  white-space: pre-wrap;
  min-height: 440px;
  border: 1px solid rgba(199,161,90,0.24);
  background:
    linear-gradient(180deg, rgba(199,161,90,0.06), rgba(255,255,255,0.02)),
    rgba(0,0,0,0.22);
  border-radius: 18px;
  padding: 18px;
  color: #f6eee6;
  line-height: 1.55;
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  overflow: auto;
}

.muted { color: var(--muted); }

.status {
  min-height: 24px;
  color: var(--ok);
  margin-top: 10px;
}

.quick-settings {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

.quick-setting {
  display: block;
}

.compact {
  margin: 0;
  font-size: 0.92rem;
}

.builder-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.builder-section {
  scroll-margin-top: 84px;
}

.summary-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.steps-list {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.steps-list li + li {
  margin-top: 10px;
}

.summary-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  padding: 14px;
}

.summary-card strong,
.metric strong,
.budget-line strong {
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
}

.derived-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric {
  min-width: 104px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  padding: 12px 14px;
}

.metric span {
  font-size: 1.15rem;
  color: var(--text);
}

.form-grid {
  display: grid;
  gap: 15px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.priority-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  padding: 14px;
}

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

.category-grid.single {
  grid-template-columns: 1fr;
}

.category-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  padding: 16px;
}

.category-card.is-valid {
  border-color: rgba(123,209,150,0.36);
}

.category-card.is-invalid {
  border-color: rgba(192,42,67,0.48);
}

.budget-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.budget-pill,
.validation-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.validation-pill.ok {
  border-color: rgba(123,209,150,0.4);
  color: #d9f6e2;
}

.validation-pill.warn {
  border-color: rgba(192,42,67,0.42);
  color: #ffd1d8;
}

.budget-summary,
.validation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dot-list {
  display: grid;
  gap: 10px;
}

.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(0,0,0,0.16);
}

.dot-row span {
  display: grid;
  gap: 4px;
}

.dot-row small {
  color: var(--muted);
}

.dot-row select,
.dot-row input {
  margin-top: 0;
}

.dot-row.split {
  grid-template-columns: minmax(0, 1fr) 100px;
}

.notice-card {
  border: 1px solid rgba(199,161,90,0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(199,161,90,0.07), rgba(255,255,255,0.015));
  padding: 14px;
  margin-top: 16px;
}

.notice-card p {
  margin: 8px 0 0;
}

.builder-subsection + .builder-subsection {
  margin-top: 22px;
}

.subsection-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.trait-list {
  display: grid;
  gap: 10px;
}

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

.btn.small {
  min-height: 36px;
  padding: 8px 12px;
}

footer {
  color: var(--muted);
  text-align: center;
  margin-top: 28px;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  #top.hero .eyebrow,
  #top.hero h1,
  #top.hero > p { max-width: none; }
  .hero-audio-dock {
    position: static;
    width: 100%;
    margin-bottom: 18px;
  }
  .hero-action-groups { grid-template-columns: 1fr; }
  .audio-toggle,
  .builder-cta { width: 100%; }
  .action-cluster { padding: 14px; border-radius: 18px; }
  .action-cluster .actions { flex-direction: column; }
  .action-cluster .actions .btn { width: 100%; }
  .half { grid-column: span 12; }
  .clan-grid { grid-template-columns: 1fr; }
  .answers { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .trait-row { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .nav { border-radius: 22px; }
  .nav a { flex: 1; text-align: center; }
  .budget-line,
  .subsection-head { align-items: start; flex-direction: column; }
  .lightbox { padding: 12px; }
  .lightbox-dialog { width: 100%; }
  .lightbox-frame { min-height: 220px; border-radius: 18px; }
  .lightbox-frame img { max-height: 72vh; }
  .blood-drop-4,
  .blood-drop-5 { display: none; }
}

@media print {
  .nav, .actions, .hero-audio-dock, .fog, .blood-drop, audio { display: none !important; }
  body { background: white; color: #111; }
  .panel, .clan-card, .preview { background: white; color: #111; box-shadow: none; border-color: #bbb; }
  p, .muted { color: #333; }
}
