/* KÖZÜGY comic edition — original ink, paper and object-mascot artwork.
   Load after styles.css, playful.css, party.css and intelligence.css. */
:root {
  --ink: #25243e;
  --muted: #5b586c;
  --bg: #fff9ef;
  --line: #25243e;
  --navy: #25243e;
  --lime: #ffd166;
  --purple: #c8b3ff;
  --blue: #bcebe7;
  --orange: #ffb7a9;
  --radius: 24px;
  --comic-cobalt: #3156e8;
  --comic-coral: #ff7969;
  --comic-teal: #53d5c8;
  --comic-mustard: #ffd166;
  --comic-lavender: #c8b3ff;
  --comic-paper: #fffdf6;
  --comic-shadow: 5px 5px 0 #25243e;
}
body { background: var(--bg); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--comic-cobalt);
  outline-offset: 5px;
}
.sidebar a:focus-visible, .sidebar button:focus-visible {
  outline-color: var(--comic-mustard);
}
button:disabled { opacity: .55; }
button, input, select, textarea { color: var(--ink); }
textarea { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.app-shell, .workspace, main, .hero-copy, .mission-copy,
.party-welcome-copy, .game-side, .report-grid > *, .lower-grid > * { min-width: 0; }

/* A blue frame, a warm paper canvas, and a bright selected tab. */
.sidebar {
  background: var(--comic-cobalt);
  border-right: 3px solid var(--ink);
  padding-top: 29px;
}
.brand .brand-tagline { color: #fff7db; letter-spacing: 1.45px; }
.sidebar-caption { color: #fff3cc; font-size: 9px; }
.sidebar nav { gap: 6px; }
.sidebar nav a {
  color: #fffdf6;
  border: 2px solid transparent;
  border-radius: 12px 15px 12px 7px;
  padding: 10px 11px;
  font-weight: 600;
}
.sidebar nav a:hover { background: #2444be; border-color: #b9c9ff; }
.sidebar nav a.active {
  background: var(--comic-mustard);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1deg);
}
.nav-count, .sidebar nav a.active .nav-count {
  background: var(--comic-paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.sidebar-bottom { padding-left: 9px; padding-right: 9px; }
.free-label, .save-status, .quiet-button { color: #fff8e9; }
.save-status { border-color: #bac8ff; line-height: 1.7; }
.sidebar-bottom p { font-size: 20px; color: #fffdf6; }
.topbar {
  background: var(--comic-paper);
  border-bottom: 2px solid var(--ink);
}
.breadcrumb, .breadcrumb span { color: var(--muted); }
.edition { color: var(--ink); font-weight: 700; }
.edition i, .free-label i {
  width: 8px; height: 8px;
  background: var(--comic-teal);
  border: 1.5px solid var(--ink);
}
.topbar .avatar { border: 2px solid var(--ink); background: var(--comic-mustard); }
main { padding-top: 29px; }
.page-title { align-items: center; gap: 20px; margin-bottom: 27px; }
.page-title h1 { font-size: clamp(29px, 2.65vw, 39px); line-height: 1.16; font-weight: 700; }
.page-title p { color: var(--muted); font-size: 13px; max-width: 690px; }
.eyebrow, .party-kicker { color: var(--comic-cobalt); font-weight: 700; }
.mini-link {
  background: var(--comic-paper);
  border: 2px solid var(--ink);
  border-radius: 11px 11px 4px 11px;
  padding: 11px 13px;
  box-shadow: 3px 3px 0 var(--ink);
  max-width: 100%;
  flex-shrink: 0;
}
.mini-link:hover { background: var(--comic-mustard); }

/* The cover panel: big friendly copy, completely original SVG city. */
.hero-grid { grid-template-columns: minmax(0, 2.65fr) minmax(240px, 1fr); gap: 22px; }
.hero {
  border: 3px solid var(--ink);
  border-radius: 26px 26px 26px 8px;
  box-shadow: var(--comic-shadow);
  background: #ddd0ff;
  padding: 30px;
  min-height: 439px;
  isolation: isolate;
}
.hero::before {
  background-image: radial-gradient(#25243e1a 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: -1;
}
.hero-copy { width: 54%; }
.hero .tag {
  background: var(--comic-paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 8px;
  letter-spacing: .65px;
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--comic-cobalt);
}
.hero h2 {
  font-size: clamp(33px, 3vw, 45px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 24px 0 17px;
  color: var(--ink);
}
.hero p { font-size: 13px; line-height: 1.75; max-width: 310px; color: #454159; }
.hero-art {
  width: 55%; height: 95%;
  right: -8px; bottom: -17px;
  opacity: 1;
  object-fit: contain;
  animation: comic-art-bob 6s ease-in-out infinite;
}
.hero .primary { margin-top: 23px; }
.hero-meta { color: #454159; font-size: 9px; flex-wrap: wrap; gap: 8px; line-height: 1.7; }
.hero-meta span + span::before { margin-right: 8px; }
.sparkle {
  width: 17px; height: 17px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--comic-coral);
  rotate: 16deg;
  right: 18px; top: 19px;
  box-shadow: none;
  pointer-events: none;
  animation: none;
}
.role-teaser {
  background: var(--comic-coral);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 24px 8px 24px 24px;
  box-shadow: var(--comic-shadow);
  padding: 25px;
}
.role-orbit { margin-bottom: 32px; height: 86px; }
.role-orbit::before, .role-orbit::after { border: 2px dashed #25243e66; pointer-events: none; }
.orb {
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  width: 47px; height: 47px;
  font-size: 27px;
  animation: none;
}
.orb:nth-child(1) { background: var(--comic-mustard); left: 0; }
.orb:nth-child(2) { background: var(--comic-lavender); left: 60px; }
.orb:nth-child(3) { background: var(--comic-teal); left: 121px; }
.role-teaser h3 { color: var(--ink); font-size: 26px; line-height: 1.16; }
.role-teaser p { color: #482b35; font-size: 12px; line-height: 1.8; }
.role-teaser button {
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--comic-paper);
  padding: 13px 12px;
  margin-top: 25px;
  box-shadow: 3px 3px 0 var(--ink);
  min-height: 44px;
  gap: 10px;
}

/* Every action is a tactile paper tab, with a visible keyboard focus. */
.primary, .secondary, .motion-toggle, .coach-video, .tab {
  border: 2px solid var(--ink);
  border-radius: 12px 12px 12px 4px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  line-height: 1.5;
  max-width: 100%;
  white-space: normal;
}
.primary { background: var(--comic-cobalt); color: #fff; gap: 16px; }
.primary:hover { background: #2444be; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.primary.lime { background: var(--comic-mustard); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.primary.lime:hover { background: #ffdc88; }
.secondary, .motion-toggle { background: var(--comic-paper); color: var(--ink); }
.secondary:hover, .motion-toggle:hover { background: #dbf5ef; }
.primary:active, .secondary:active, .tab:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tab.active { background: var(--comic-cobalt); color: #fff; border-color: var(--ink); }
.circle-button, .close-button {
  border: 2px solid var(--ink); background: var(--comic-paper); color: var(--ink);
  width: 42px; height: 42px;
  box-shadow: 2px 2px 0 var(--ink);
}
.tag, .source-tag { border: 1.5px solid var(--ink); background: var(--comic-paper); color: var(--ink); }
.badge { background: #e8e2f8; color: #494260; border: 1.5px solid var(--ink); font-weight: 700; line-height: 1.5; }
.badge.verified { background: #bcebe7; color: #284b48; }
.badge.pending { background: #ffe7ab; color: #534020; }
.section-head { gap: 14px; }
.section-head h2, .panel-head h2 { font-size: 21px; font-weight: 700; }
.section-head .caption { color: var(--muted); line-height: 1.5; text-align: right; }

/* Small dashboard panels form a row of colored index cards. */
.kpis { gap: 14px; }
.kpi {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 18px 18px 7px 18px;
  background: #ffedc1;
  padding: 17px 15px;
}
.kpi:nth-child(5n+2) { background: #d8cff8; }
.kpi:nth-child(5n+3) { background: #bcebe7; }
.kpi:nth-child(5n+4) { background: #ffd1c8; }
.kpi:nth-child(5n+5) { background: #d8e4ff; }
.kpi-icon { width: 31px; height: 31px; border: 1.5px solid var(--ink); background: var(--comic-paper); }
.kpi-top .tiny, .kpi-label { color: #514b60; }
.kpi-label { font-weight: 600; font-size: 11px; }
.kpi-number { font-weight: 700; font-size: 31px; }
.kpi-number small { color: #514b60; }
.progress { background: #fffdf69e; height: 7px; border: 1px solid var(--ink); }
.progress span { background: var(--comic-cobalt); border-right: 1px solid var(--ink); }
.panel {
  background: var(--comic-paper);
  border: 2px solid var(--ink);
  border-radius: 23px 23px 23px 7px;
  box-shadow: 4px 4px 0 var(--ink);
}
.lower-grid { gap: 23px; }
.mission-preview { background: #ffe6c5; border: 2px solid var(--ink); border-radius: 14px; }
.mission-icon { border: 2px solid var(--ink); background: var(--comic-mustard); }
.mission-copy .eyebrow { color: #705025; }
.mission-copy h3 { font-weight: 700; }
.mission-copy p, .panel-note, .skill-disclaimer, .skill-value { color: var(--muted); }
.skill-dot { border: 1px solid var(--ink); width: 11px; height: 11px; }
.skill-row .bar { background: #e8e2f3; height: 7px; border: 1px solid var(--ink); overflow: hidden; }
.skill-disclaimer { border-top: 1px dashed var(--ink); }
.coach-banner {
  background: var(--comic-mustard);
  border: 2px solid var(--ink);
  border-radius: 20px 20px 20px 5px;
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
  margin-bottom: 25px;
}
.coach-banner p { color: #564328; }
.coach-video { background: var(--comic-paper); color: var(--ink); padding: 11px 14px; min-height: 44px; }
.journey-board {
  border: 2px solid var(--ink); background: #d8e4ff;
  box-shadow: 4px 4px 0 var(--ink);
  border-radius: 24px 8px 24px 24px;
}
.journey-board > p, .journey-island small { color: #484c68; }
.journey-island { border: 2px solid var(--ink); background: var(--comic-paper); border-radius: 12px; }
.journey-island.done { background: #bcebe7; border-color: var(--ink); }
.journey-island.current { background: var(--comic-mustard); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.journey-island + .journey-island::before { color: var(--ink); pointer-events: none; }
.journey-island strong { font-size: 11px; }

/* Roles, missions and playable decisions retain their exact mechanics. */
.role-card, .mission-card, .institution-row, .scenario-panel, .decision-option,
.quiz-option, .result-match, .fund-card, .operation-slot,
.party-how article, .party-seat, .party-candidate, .substitution-card {
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 20px 20px 7px 20px;
}
.role-card { background: var(--comic-paper); }
.role-card:nth-child(3n+1) { border-top: 7px solid var(--comic-cobalt); }
.role-card:nth-child(3n+2) { border-top: 7px solid var(--comic-coral); }
.role-card:nth-child(3n+3) { border-top: 7px solid var(--comic-teal); }
.role-card .role-symbol { border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.role-card p, .mission-card p { color: var(--muted); }
.role-card:hover, .mission-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.mission-card:nth-child(4n+1) { background: #ffedc1; }
.mission-card:nth-child(4n+2) { background: #e2d5ff; }
.mission-card:nth-child(4n+3) { background: #cef1ea; }
.mission-card:nth-child(4n+4) { background: #ffd9d0; }
.notice { border: 2px solid var(--ink); background: #dbf5ef; color: #344743; }
.notice.purple { background: #e9ddff; border-color: var(--ink); color: #45405a; }
.institution-row { box-shadow: 2px 2px 0 var(--ink); background: var(--comic-paper); }
.institution-row p, .institution-row .family { color: var(--muted); }
.scenario-panel { background: var(--comic-paper); padding: 30px; border-width: 3px; box-shadow: var(--comic-shadow); }
.scenario-panel > p { color: var(--muted); line-height: 1.85; }
.decision-option { background: #fff2d7; border-radius: 15px; }
.decision-option:nth-child(3n+2) { background: #e8dcff; }
.decision-option:nth-child(3n+3) { background: #d7f3ed; }
.decision-option > span { background: var(--comic-paper); border: 2px solid var(--ink); border-radius: 6px; }
.decision-option strong { font-weight: 700; }
.decision-option p { color: var(--muted); }
.decision-option:hover { background: #ffe6a6; border-color: var(--ink); transform: translate(-1px, -1px); }
.journey-step { border-color: #d5cadf; color: var(--muted); }
.journey-step b { border: 1.5px solid var(--ink); background: var(--comic-paper); }
.journey-step.done b { background: var(--comic-teal); }
.journey-step.current b { background: var(--comic-mustard); }
.effect { background: #bcebe7; color: #284b48; border: 1.5px solid var(--ink); font-weight: 600; }
.effect.negative { background: #ffd1c8; color: #652f32; }
.lesson, .modal-body .lesson { border-left: 4px solid var(--comic-cobalt); background: #dfe8ff; color: #45405a; }
.report-hero { background: var(--comic-cobalt); border: 3px solid var(--ink); box-shadow: var(--comic-shadow); }
.report-hero p, .score-inner span { color: #f2efff; }
.score-inner { background: var(--comic-cobalt); }
.report-hero .secondary { color: var(--ink); }
.history-card .chosen { color: #245953; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: #2641ae; }
.method-step > span { border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); background: var(--comic-mustard); }
.connection-links a, .role-source-links a { border: 1.5px solid var(--ink); background: #e8dcff; color: #494260; }
.integrity-lesson { border: 2px solid var(--ink); background: #ffe4bf; }
.coach-quip { color: #624325; background: var(--comic-paper); border: 1px dashed var(--ink); }
.lesson-provenance { color: #5c4b35; }

/* The same comic language continues through the platform's other rooms. */
.party-welcome {
  background: #bcebe7;
  border: 3px solid var(--ink);
  box-shadow: var(--comic-shadow);
  border-radius: 28px 28px 28px 8px;
}
.party-welcome::before { background: radial-gradient(#25243e1a 1.5px, transparent 1.5px) 0 0 / 16px 16px; }
.party-welcome .tag, .party-welcome-copy > p, .party-your-avatar { color: #304e4d; }
.party-welcome .tag { background: var(--comic-paper); }
.party-clubhouse { animation: none; }
.party-how article { background: #ffedc1; }
.party-how article:nth-child(2) { background: #e2d5ff; }
.party-how article:nth-child(3) { background: #cef1ea; }
.party-how article > span { background: var(--comic-paper); border: 2px solid var(--ink); color: var(--ink); }
.party-how p, .party-bottom-note, .party-room .party-section-head p,
.party-seat p, .party-seat summary, .party-room-footer > span,
.party-text-button, .party-welcome-note, .party-observation > span,
.party-candidate-copy p, .party-filter, .party-share p { color: var(--muted); }
.party-room { background: #d9f2ed; }
.party-seat { background: var(--comic-paper); }
.party-seat h3 > span { background: #e8dcff; color: #494260; }
.party-empty-seat { border: 2px dashed #514b60; background: #fffdf677; box-shadow: none; }
.party-empty-seat > span { background: var(--comic-teal); color: var(--ink); border: 2px solid var(--ink); }
.party-empty-seat h3 { color: #365c56; }
.party-room-count, .party-count { background: var(--comic-paper); color: var(--ink); border: 1.5px solid var(--ink); }
.party-dashboard-teaser {
  background: #ffd1c8; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); border-radius: 24px 7px 24px 24px;
}
.party-dashboard-teaser p { color: #624048; }
.party-teaser-icon { background: var(--comic-mustard); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.party-dashboard-teaser .primary { white-space: normal; }
.party-form > label, .party-share > label, .party-share details label,
.party-colors legend { color: var(--ink); }
.intel-hero { background: #e2d5ff; border: 3px solid var(--ink); box-shadow: var(--comic-shadow); border-radius: 26px 8px 26px 26px; }
.intel-hero h2 { font-weight: 700; }
.intel-hero p { color: #514564; }
.intel-orbit { color: var(--comic-cobalt); }
.intel-orbit span, .news-illustration span { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.intel-stats article { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: #ffedc1; }
.intel-stats article:nth-child(2) { background: #cef1ea; }
.intel-stats article:nth-child(3) { background: #e2d5ff; }
.intel-stats span { color: var(--muted); }
.fund-card:nth-child(3n+1) { background: #d9f2ed; }
.fund-card:nth-child(3n+2) { background: #dfe8ff; }
.fund-card:nth-child(3n+3) { background: #ffe5d5; }
.fund-card p, .fund-period, .fund-provenance, .source-list small,
.intel-footnote, .news-card-top small, .operations-note,
.operation-slot small, .media-workflows p { color: var(--muted); }
.fund-provenance a, .source-list a, .news-card a { color: #2641ae; }
.news-hero { background: #bcebe7; border-color: var(--ink); }
.news-hero p { color: #304e4d; }
.media-workflows article { border: 2px solid var(--ink); background: #ffedc1; box-shadow: 3px 3px 0 var(--ink); }
.media-workflows article:nth-child(2) { background: #e2d5ff; }
.media-workflows article:nth-child(3) { background: #cef1ea; }
.operation-slot.human-slot { background: #bcebe7; border-color: var(--ink); }
.parliament-hero { background: #ffe5bf; border-color: var(--ink); }
.parliament-stages span { border: 2px solid var(--ink); background: var(--comic-paper); color: var(--ink); }
.parliament-stages .current { background: var(--comic-mustard); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.parliament-chamber { border: 3px solid var(--ink); background: #303468; box-shadow: var(--comic-shadow); }
.parliament-seats i { border: 1.5px solid #12162f; background: var(--comic-lavender); }
.parliament-seats i.yes { background: var(--comic-teal); }
.parliament-seats i.no { background: var(--comic-coral); }
.parliament-seats i.abstain { background: var(--comic-mustard); }
.parliament-chamber small { color: #eeecff; }
.parliament-result { background: #bcebe7; border: 2px solid var(--ink); }
.parliament-warning { background: #ffe5bf; border: 2px solid var(--ink); }
.atlas-stats > div { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: #e2d5ff; }
.atlas-stats > div:nth-child(2) { background: #bcebe7; border-color: var(--ink); }
.atlas-stats > div:nth-child(3) { background: #d8e4ff; border-color: var(--ink); }
.atlas-stats > div:nth-child(4) { background: #ffedc1; border-color: var(--ink); }
.atlas-stats span, .atlas-node small, .position-parent span,
.role-task-list li, .substitution-card p, .atlas-empty,
.position-context > p, .position-context li { color: var(--muted); }
.atlas-node { border: 1.5px solid var(--ink); background: var(--comic-paper); color: var(--ink); }
.atlas-node.selected { background: var(--comic-mustard); border-color: var(--ink); }
.atlas-node-icon, .atlas-chevron { color: var(--comic-cobalt); }
.hierarchy-breadcrumb button, .direct-reports button { background: #e8dcff; color: #494260; border: 1px solid var(--ink); }
.role-area-chips span { background: #bcebe7; color: #284b48; border: 1px solid var(--ink); }
.avatar-stage { background: #e2d5ff; border: 3px solid var(--ink); box-shadow: var(--comic-shadow); }
.avatar-stage .tag, .avatar-stage > p, .avatar-small-preview p { color: #514564; }
.avatar-level span { border: 1.5px solid var(--ink); background: var(--comic-paper); }
.avatar-option { background: var(--comic-paper); border: 1.5px solid var(--ink); color: var(--ink); }
.avatar-option.selected { background: var(--comic-mustard); border-color: var(--ink); color: var(--ink); }
.guide-chapters button { background: #e2d5ff; border: 1.5px solid var(--ink); color: #494260; }

/* Inputs and dialogs: the important information always stays readable. */
.search-row input, .atlas-toolbar input, .avatar-controls input,
.decision-notes textarea, .parliament-input, .json-fallback textarea,
.party-form input:not([type="radio"]):not([type="checkbox"]),
.party-form textarea, .party-form select, .party-share input, .party-filter select {
  border: 2px solid var(--ink);
  background: var(--comic-paper);
  color: var(--ink);
  border-radius: 11px;
}
input::placeholder, textarea::placeholder { color: #716a7c; opacity: 1; }
.muted { color: var(--muted); }
dialog { background: var(--comic-paper); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink), 0 20px 80px #25243e44; border-radius: 24px 24px 24px 7px; }
dialog::backdrop { background: #25243ebf; backdrop-filter: blur(4px); }
.modal-body p, .quiz-option span, .quiz-step { color: var(--muted); }
.quiz-progress { border: 1px solid var(--ink); background: #e8dcff; height: 8px; }
.quiz-progress span { background: var(--comic-cobalt); }
.quiz-option { background: #fff2d7; }
.quiz-option:nth-child(3n+2) { background: #e8dcff; }
.quiz-option:nth-child(3n+3) { background: #d7f3ed; }
.quiz-option:hover { background: #ffe5a8; border-color: var(--ink); }
.quiz-back { color: #2641ae; min-height: 35px; }
.empty-state { background: #fffdf6; border: 2px dashed var(--ink); border-radius: 22px; }
.empty-state .empty-icon { color: var(--comic-cobalt); }
.toast { background: var(--ink); border: 2px solid #fffdf6; box-shadow: 4px 4px 0 var(--comic-cobalt); }
.skip-link { color: var(--ink); border: 2px solid var(--ink); background: var(--comic-mustard); }
footer { border-top: 2px solid var(--ink); background: var(--comic-paper); color: var(--muted); line-height: 1.7; }
footer > span:first-child, footer a { color: #514b60; }
.footer-dot { color: var(--comic-cobalt); }

/* Optional original Pecsét-labirintus module, designed to fit a modal. */
.comic-mini, .comic-mini-panel {
  padding: 20px;
  background: #dfe8ff;
  border: 2px solid var(--ink);
  border-radius: 22px 22px 6px 22px;
  box-shadow: 4px 4px 0 var(--ink);
}
.comic-mini-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.comic-mini-head h2, .comic-mini h3 { color: var(--ink); }
.comic-mini p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.comic-mini-grid, .comic-mini-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.comic-mini-card, .comic-mini-option {
  background: #ffedc1;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  border-radius: 14px 14px 4px 14px;
  padding: 16px;
  min-width: 0;
  text-align: left;
  color: var(--ink);
}
.comic-mini-card:nth-child(3n+2), .comic-mini-option:nth-child(3n+2) { background: #e2d5ff; }
.comic-mini-card:nth-child(3n+3), .comic-mini-option:nth-child(3n+3) { background: #bcebe7; }
.comic-mini-option:hover { background: #ffe5a8; }
.comic-mini-kicker, .comic-mini-score { font-weight: 700; color: var(--comic-cobalt); font-size: 11px; }
.comic-mini-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.comic-mini-result { padding: 17px; background: #bcebe7; border: 2px solid var(--ink); border-radius: 15px; }
.comic-mini-note { color: var(--muted); font-size: 11px; line-height: 1.75; }
.comic-stamp, .comic-stamp-mascot {
  display: block;
  width: 110px; height: 110px;
  background: url('assets/illustrations/kozugy-stamp.svg') center / contain no-repeat;
  flex: none;
}
.comic-stamp-label { display: inline-flex; padding: 7px 10px; border: 2px solid var(--ink); background: var(--comic-mustard); border-radius: 5px; rotate: -3deg; font-size: 11px; font-weight: 700; }
.comic-mini-teaser {
  display: flex; align-items: center; gap: 23px;
  margin: 24px 0; padding: 23px;
  background: var(--comic-mustard); border: 2px solid var(--ink);
  border-radius: 24px 7px 24px 24px; box-shadow: 4px 4px 0 var(--ink);
}
.comic-mini-teaser > img { width: 104px; height: 104px; object-fit: contain; flex: none; rotate: -7deg; }
.comic-mini-teaser > div { flex: 1; min-width: 0; }
.comic-mini-teaser h2 { font-size: 27px; letter-spacing: -.8px; margin: 7px 0 9px; }
.comic-mini-teaser p { color: #564328; font-size: 12px; line-height: 1.75; }
.comic-mini-teaser > .primary { flex: none; }
.comic-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 25px 0 29px; }
.comic-hub > a {
  display: flex; flex-direction: column; gap: 13px; min-width: 0;
  padding: 22px; background: #d8e4ff;
  border: 2px solid var(--ink); border-radius: 22px 22px 6px 22px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.comic-hub > a:nth-child(2) { background: #bcebe7; }
.comic-hub > a:nth-child(3) { background: #e2d5ff; }
.comic-hub > a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.comic-hub > a > span { width: 48px; height: 48px; display: grid; place-items: center; background: var(--comic-paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); font-size: 25px; rotate: -5deg; }
.comic-hub strong { font: 700 21px/1.3 'Space Grotesk', system-ui, sans-serif; }
.comic-hub small { color: #48445b; font-size: 12px; line-height: 1.75; }
.comic-hub b { display: block; margin-top: auto; padding-top: 6px; color: #2641ae; font-size: 12px; }
.modal-body.comic-mini { border: 0; box-shadow: none; border-radius: 0; background: var(--comic-paper); padding: 28px; }
.comic-mini-label { font-size: 10px !important; font-weight: 700; color: #2641ae !important; margin-top: -10px; margin-bottom: 21px; }
.comic-mini-meters { display: flex; flex-wrap: wrap; gap: 10px; margin: 17px 0 23px; }
.comic-mini-meters > span { display: inline-flex; gap: 6px; align-items: center; padding: 9px 11px; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 11px; color: var(--ink); }
.comic-stamp-paper { background: #ffedc1; }
.comic-stamp-solved { background: #bcebe7; }
.comic-mini-meters b { font-size: 13px; }
.comic-mini-progress { display: inline-block; padding: 7px 10px; background: var(--comic-cobalt); color: white; border: 2px solid var(--ink); border-radius: 7px; font-size: 10px; font-weight: 700; }
.comic-mini-case { position: relative; padding: 22px 20px; margin: 15px 0 23px; background: #e2d5ff; border: 2px solid var(--ink); border-radius: 21px 21px 21px 6px; box-shadow: 3px 3px 0 var(--ink); }
.comic-mini-case h3 { padding-right: 42px; font-size: 23px; margin-bottom: 12px; }
.comic-mini-case p { font-size: 13px; color: #514564; }
.comic-stamp-icon { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 8px; background: var(--comic-mustard); color: var(--ink); font-size: 22px; rotate: 6deg; }
.comic-mini-options { grid-template-columns: 1fr; }
.comic-mini-choice { display: flex; flex-direction: column; gap: 7px; padding: 15px 17px; background: #ffedc1; border: 2px solid var(--ink); border-radius: 14px 14px 4px 14px; text-align: left; }
.comic-mini-choice:nth-child(2) { background: #d8e4ff; }
.comic-mini-choice:nth-child(3) { background: #bcebe7; }
.comic-mini-choice strong { font-size: 13px; line-height: 1.45; }
.comic-mini-choice span { color: #514b60; font-size: 11px; font-weight: 400; line-height: 1.7; }
.comic-mini-choice:hover { background: #ffe5a8; }
.comic-mini-feedback { padding: 22px 20px; margin: 22px 0; border: 2px solid var(--ink); border-radius: 18px 18px 6px 18px; background: #bcebe7; }
.comic-mini-feedback h3 { font-size: 21px; }
.comic-mini-feedback p { color: #304e4d; margin: 12px 0 20px; }
.comic-mini-result { position: relative; }
.comic-mini-result > h3 { padding-right: 65px; }
.comic-mini-result p { color: #304e4d; }
.comic-stamp-seal { position: absolute; right: 13px; top: 13px; display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 12px; background: var(--comic-mustard); color: var(--ink); font-size: 32px; rotate: 9deg; }
.comic-mini-note { margin-top: 20px; padding-top: 13px; border-top: 1px dashed var(--ink); font-size: 10px !important; line-height: 1.8; }

@keyframes comic-art-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (min-width: 1600px) {
  .hero { min-height: 455px; padding: 35px; }
  .hero h2 { font-size: 49px; }
  .hero-copy { width: 52%; }
}
@media (max-width: 1190px) {
  .hero-grid { grid-template-columns: 1fr; gap: 21px; }
  .hero { min-height: 410px; padding: 29px; }
  .hero-copy { width: 53%; }
  .hero h2 { font-size: 40px; }
  .hero-art { right: 0; width: 53%; height: 100%; opacity: 1; bottom: -13px; }
  .role-teaser { display: grid; grid-template-columns: 152px 1fr; gap: 0 21px; min-height: 170px; padding: 22px; }
  .role-orbit { grid-row: 1 / 4; margin: 5px 0 0; height: 100px; }
  .role-orbit::before, .role-orbit::after { display: none; }
  .role-orbit .orb:nth-child(1) { left: 2px; top: 9px; }
  .role-orbit .orb:nth-child(2) { left: 54px; top: 38px; }
  .role-orbit .orb:nth-child(3) { left: 104px; top: 4px; }
  .role-teaser h3 { font-size: 24px; }
  .role-teaser h3 br { display: none; }
  .role-teaser button { margin-top: 15px; max-width: 290px; }
}
@media (max-width: 930px) {
  .sidebar { border-right-width: 2px; padding-left: 9px; padding-right: 9px; }
  .sidebar nav a { padding: 11px 9px; }
  .page-title { flex-wrap: wrap; gap: 15px; }
  .page-title .mini-link { font-size: 11px; }
  .comic-mini-teaser { flex-wrap: wrap; gap: 16px; }
  .comic-mini-teaser > .primary { margin-left: 120px; }
  .comic-hub { gap: 14px; }
  .comic-hub > a { padding: 18px; }
  .comic-hub strong { font-size: 19px; }
  .hero h2 { font-size: 36px; }
  .hero p { max-width: 280px; font-size: 12px; }
  .hero .tag { font-size: 7px; letter-spacing: .5px; }
  .kpi { padding: 13px 11px; }
  .kpi-number { font-size: 27px; }
  .kpi-label { font-size: 10px; }
  .mission-preview { flex-wrap: wrap; }
  .mission-copy { min-width: 140px; }
  .mission-preview .circle-button { margin-left: auto; }
}
@media (max-width: 700px) {
  .sidebar { background: var(--comic-cobalt); border-top: 2px solid var(--ink); border-right: 0; height: 69px; padding: 4px 7px; }
  .sidebar nav { gap: 5px; align-items: center; justify-content: flex-start; overflow-x: auto; padding: 1px 2px 6px; scrollbar-width: thin; scrollbar-color: #ffd166 transparent; }
  .sidebar nav a { min-width: 50px; min-height: 50px; font-size: 7px; padding: 5px 5px; gap: 2px; flex: none; border-radius: 9px; }
  .sidebar nav a.active { transform: none; box-shadow: 2px 2px 0 var(--ink); }
  .sidebar nav a[data-route='roles'], .sidebar nav a[data-route='method'] { display: none; }
  .sidebar nav .nav-icon { font-size: 19px; line-height: 21px; }
  .workspace { padding-bottom: 69px; width: 100%; }
  .topbar { padding: 0 17px; height: 67px; }
  .topbar-right { gap: 11px; }
  .edition { font-size: 6px; letter-spacing: .6px; }
  .edition i { width: 7px; height: 7px; }
  .mobile-brand img { width: 128px; }
  main { padding: 22px 17px 29px; }
  .page-title { align-items: flex-start; margin-bottom: 22px; gap: 13px; }
  .page-title h1 { font-size: 29px; letter-spacing: -.9px; }
  .page-title p { font-size: 12px; }
  .page-title .mini-link { margin-top: 0; padding: 8px 11px; font-size: 10px; white-space: normal; }
  .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .coach-banner { padding: 13px; gap: 9px; margin-bottom: 23px; }
  .coach-banner > div:nth-child(2) { min-width: 0; }
  .coach-banner strong { font-size: 12px; }
  .coach-banner p { font-size: 11px; }
  .coach-video { margin-left: 52px; padding: 9px 12px; font-size: 10px; box-shadow: 2px 2px 0 var(--ink); }
  .hero-grid { gap: 20px; }
  .hero { min-height: 0; padding: 24px 22px 0; flex-direction: column; border-radius: 24px 24px 24px 7px; }
  .hero-copy { width: 100%; }
  .hero h2 { font-size: 37px; letter-spacing: -1.4px; margin-top: 22px; }
  .hero p { font-size: 13px; max-width: 100%; line-height: 1.75; }
  .hero .tag { font-size: 7px; padding: 7px 8px; letter-spacing: .4px; }
  .hero .primary { margin-top: 20px; font-size: 12px; padding: 12px 16px; }
  .hero-meta { font-size: 9px; margin-top: 18px; }
  .hero-art { position: relative; align-self: center; width: 108%; height: auto; aspect-ratio: 680 / 650; right: auto; bottom: auto; margin: -17px -4% -25px; opacity: 1; max-width: none; }
  .sparkle { width: 14px; height: 14px; top: 15px; right: 13px; }
  .role-teaser { padding: 22px 19px; grid-template-columns: 74px minmax(0,1fr); gap: 0 15px; min-height: 175px; border-radius: 24px 7px 24px 24px; }
  .role-orbit { height: 80px; margin: 0; }
  .role-orbit .orb:nth-child(1) { left: 3px; top: 20px; width: 58px; height: 58px; }
  .role-orbit .orb:nth-child(2), .role-orbit .orb:nth-child(3) { display: none; }
  .role-teaser h3 { font-size: 22px; margin-bottom: 9px; }
  .role-teaser p { font-size: 11px; }
  .role-teaser button { font-size: 10px; padding: 10px 11px; margin-top: 15px; gap: 8px; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi:last-child { grid-column: 1 / -1; }
  .kpi-label { font-size: 11px; }
  .kpi-number { font-size: 29px; }
  .kpi-top .tiny { font-size: 8px; }
  .game-kpis { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .game-kpis .kpi { padding: 12px 9px; border-radius: 12px; }
  .game-kpis .kpi:last-child { grid-column: auto; }
  .game-kpis .kpi-label { font-size: 9px; line-height: 1.5; }
  .game-kpis .kpi-number { font-size: 23px; gap: 4px; }
  .game-kpis .kpi-number small { font-size: 9px; }
  .section-head h2, .panel-head h2 { font-size: 19px; }
  .section-head .caption { font-size: 9px; max-width: 45%; }
  .panel { padding: 19px; }
  .panel-head { gap: 10px; flex-wrap: wrap; }
  .lower-grid { gap: 22px; margin-top: 25px; }
  .mission-preview { gap: 12px; padding: 15px; }
  .mission-icon { width: 55px; height: 62px; }
  .mission-copy { min-width: 145px; }
  .mission-copy h3 { font-size: 18px; }
  .mission-copy p { font-size: 11px; }
  .panel-note, .skill-disclaimer { font-size: 11px; }
  .skill-row { font-size: 11px; gap: 9px; }
  .journey-board { margin-top: 26px; padding: 20px 15px; }
  .journey-islands { gap: 11px; }
  .journey-island { padding: 12px 6px; }
  .journey-island.current { padding: 12px 6px; }
  .journey-island strong { font-size: 10px; }
  .journey-island small { font-size: 9px; }
  .scenario-panel { padding: 22px 18px; }
  .scenario-panel h2 { font-size: 28px; }
  .scenario-panel > p { font-size: 13px; }
  .scenario-banner { gap: 10px; flex-wrap: wrap; }
  .scenario-banner .tag { font-size: 7px; }
  .decision-option { padding: 16px 13px; }
  .decision-option strong { font-size: 13px; }
  .decision-option p { font-size: 11px; }
  .party-dashboard-teaser { padding: 20px 17px; gap: 12px; margin: 24px 0; }
  .party-dashboard-teaser h2 { font-size: 21px; }
  .party-dashboard-teaser p { font-size: 11px; }
  .party-dashboard-teaser .primary { justify-content: center; }
  .party-welcome { padding: 24px 20px; }
  .party-welcome h2 { font-size: 33px; }
  .party-welcome-copy > p { font-size: 12px; }
  .party-candidate > .secondary { white-space: normal; }
  .intel-hero { padding: 24px 20px; }
  .intel-hero h2 { font-size: 29px; }
  .intel-stats { grid-template-columns: 1fr; gap: 11px; }
  .intel-stats article { padding: 15px; flex-direction: row; align-items: center; gap: 15px; }
  .intel-stats b { font-size: 25px; }
  .intel-stats span { font-size: 11px; }
  .report-hero { padding: 23px 19px; }
  .report-hero h2 { font-size: 25px; }
  .report-hero p { font-size: 12px; }
  .atlas-stats { gap: 13px; }
  .atlas-stats span { font-size: 10px; }
  .avatar-stage { position: static; }
  dialog { width: calc(100% - 28px); max-height: 90dvh; }
  .modal-body { padding: 24px 19px; }
  .modal-head { align-items: flex-start; }
  .modal-head h2 { font-size: 23px; }
  .modal-body p { font-size: 12px; }
  .quiz-option { padding: 15px; }
  .quiz-option span { font-size: 11px; }
  .result-match .primary { white-space: normal; }
  .comic-mini, .comic-mini-panel { padding: 17px; }
  .comic-mini-head { align-items: flex-start; }
  .comic-mini-grid, .comic-mini-options { grid-template-columns: 1fr; }
  .comic-stamp, .comic-stamp-mascot { width: 76px; height: 76px; }
  .comic-mini-teaser { padding: 20px 17px; }
  .comic-mini-teaser > img { width: 71px; height: 71px; }
  .comic-mini-teaser h2 { font-size: 23px; }
  .comic-mini-teaser p { font-size: 11px; }
  .comic-mini-teaser > .primary { width: 100%; justify-content: center; margin-left: 0; font-size: 12px; }
  .comic-hub { grid-template-columns: 1fr; gap: 17px; margin: 25px 0; }
  .comic-hub > a { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 8px 16px; padding: 20px 18px; }
  .comic-hub > a > span { grid-row: 1 / 4; }
  .comic-hub strong { font-size: 22px; }
  .comic-hub small { font-size: 11px; }
  .comic-hub b { font-size: 11px; padding-top: 5px; }
  .modal-body.comic-mini { padding: 24px 18px; }
  .comic-mini-case, .comic-mini-feedback { padding: 20px 15px; }
  .comic-mini-case h3 { font-size: 22px; }
  .comic-mini-case p { font-size: 12px; }
  .comic-mini-result > h3 { font-size: 22px; }
  .comic-mini-meters { gap: 8px; }
  .comic-mini-meters > span { padding: 8px 9px; font-size: 10px; }
  .comic-mini-label { font-size: 9px !important; }
  footer { padding: 22px 19px; font-size: 9px; }
}
@media (max-width: 580px) {
  .coach-banner { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 9px 12px; align-items: start; }
  .coach-avatar { width: 44px; height: 44px; }
  .coach-avatar svg { width: 44px; height: 44px; }
  .coach-banner > div:nth-child(2) { width: 100%; min-width: 0; }
  .coach-video { grid-column: 2; margin-left: 0; justify-self: start; max-width: 100%; white-space: normal; }
}
@media (max-width: 360px) {
  main { padding-left: 13px; padding-right: 13px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero h2 { font-size: 33px; }
  .role-teaser { grid-template-columns: 56px minmax(0,1fr); gap: 0 11px; padding: 20px 15px; }
  .role-orbit .orb:nth-child(1) { width: 47px; height: 47px; }
  .role-teaser h3 { font-size: 20px; }
  .mission-copy { min-width: 125px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
body.motion-off *, body.motion-off *::before, body.motion-off *::after {
  animation: none !important;
  transition: none !important;
}
