.profile-shell { position: relative; width: 100%; max-width: var(--page-width); margin: 0 auto; padding: 14px 12px 30px; isolation: isolate; }
.profile-shell::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .16; background: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.5)), var(--texture-2); background-size: 900px auto; background-position: center top; mix-blend-mode: screen; }
.profile-shell::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(3,2,4,.7), rgba(3,2,4,.18) 22%, rgba(3,2,4,.66)); }
.profile-hero { position: relative; overflow: hidden; padding: 24px 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-large); background: linear-gradient(180deg, rgba(25,18,25,.85), rgba(8,7,10,.84)); box-shadow: 0 18px 46px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.025); }
.profile-hero::before { content: ''; position: absolute; inset: -80px -60px; pointer-events: none; opacity: .23; filter: grayscale(1) contrast(1.15); background: var(--texture-3) center 30% / 720px auto no-repeat; mix-blend-mode: screen; transform: rotate(-2deg); }
.profile-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px 170px at 50% 30%, transparent, rgba(0,0,0,.38)), linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.58)); }
.profile-hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .22; background: repeating-linear-gradient(98deg, transparent 0 19px, rgba(255,255,255,.015) 20px 21px); }
.profile-hero__name { position: relative; z-index: 2; margin: 0 0 18px; color: var(--ink); font-family: "IM Fell DW Pica SC", serif; font-size: clamp(25px, 6vw, 35px); font-weight: 400; line-height: 1.08; letter-spacing: .14em; text-align: center; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 20px rgba(111,38,59,.24); }
.profile-hero__portraits { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 120px); justify-content: center; gap: 14px; }
.profile-hero__portrait { position: relative; width: 120px; height: 120px; overflow: hidden; border: 1px solid rgba(216,203,187,.25); border-radius: 5px; background: linear-gradient(135deg, rgba(111,38,59,.22), rgba(5,4,6,.92)), var(--texture-4) center / cover; box-shadow: 0 10px 25px rgba(0,0,0,.58), inset 0 0 0 4px rgba(0,0,0,.2); }
.profile-hero__portrait::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 42%, transparent 40%, rgba(0,0,0,.64)), linear-gradient(180deg, transparent, rgba(66,16,32,.22)); }
.profile-hero__portrait img { width: 100%; height: 100%; display: block; object-fit: cover; filter: grayscale(.68) sepia(.15) contrast(1.14) brightness(.76); transition: filter .35s ease, transform .35s ease; }
.profile-hero__portrait:hover img { filter: grayscale(.2) sepia(.08) contrast(1.08) brightness(.9); transform: scale(1.035); }
.profile-hero__motto { position: relative; z-index: 2; max-width: 460px; margin: 20px auto 0; padding: 13px 20px 4px; color: rgba(231,216,207,.86); font-size: 17px; font-style: italic; line-height: 1.5; text-align: center; }
.profile-hero__motto::before { content: '❦'; display: block; margin-bottom: 4px; color: rgba(167,66,95,.78); font-size: 20px; font-style: normal; }
.profile-section { position: relative; overflow: hidden; margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom)); box-shadow: 0 13px 34px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.018); }
.profile-section::before { content: ''; position: absolute; inset: -55px -70px auto; height: 190px; pointer-events: none; opacity: .09; filter: grayscale(1) contrast(1.2); background: var(--texture-4) center 28% / 720px auto no-repeat; mix-blend-mode: screen; transform: rotate(2deg); }
.profile-section::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 0 64%, rgba(111,38,59,.035)); }
.profile-section__heading { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-section__heading h2 { flex: 0 0 auto; margin: 0; font-family: "IM Fell DW Pica SC", serif; font-size: 17px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.profile-section__heading span { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(167,66,95,.7), rgba(216,203,187,.14), transparent); }
.profile-subsection { position: relative; z-index: 2; margin-top: 18px; }
.profile-subsection h3 { margin: 0 0 10px; color: rgba(230,217,208,.92); font-family: Cinzel, Georgia, serif; font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.profile-kv-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 12px; }
.profile-kv { min-width: 0; padding: 10px 11px; border: 1px solid rgba(221,197,190,.12); border-radius: 9px; background: rgba(0,0,0,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.015); }
.profile-kv__key { margin-bottom: 5px; color: var(--faint); font-family: Cinzel, Georgia, serif; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.profile-kv__value { color: rgba(239,229,220,.9); font-size: 13px; line-height: 1.42; overflow-wrap: anywhere; }
.profile-prose { text-align: justify; position: relative; z-index: 2; padding: 13px 14px; border: 1px solid rgba(221,197,190,.11); border-radius: 10px; color: rgba(236,225,217,.88); font-size: 13px; line-height: 1.72; background: linear-gradient(rgba(0,0,0,.47), rgba(0,0,0,.47)), var(--texture-2) center / 780px auto; box-shadow: inset 0 0 38px rgba(0,0,0,.48); }
.profile-prose, .profile-scrollbox { position: relative; z-index: 2; max-height: 380px; overflow-y: auto; overflow-x: hidden; padding-right: 10px; scrollbar-width: thin; scrollbar-color: rgba(143,91,102,.72) rgba(8,6,8,.28); }
.profile-prose::-webkit-scrollbar, .profile-scrollbox::-webkit-scrollbar { width: 7px; }
.profile-prose::-webkit-scrollbar-track, .profile-scrollbox::-webkit-scrollbar-track { margin: 7px 0; border-radius: 999px; background: rgba(8,6,8,.28); box-shadow: inset 0 0 5px rgba(0,0,0,.5); }
.profile-prose::-webkit-scrollbar-thumb, .profile-scrollbox::-webkit-scrollbar-thumb { border: 1px solid rgba(221,197,190,.15); border-radius: 999px; background: linear-gradient(180deg, rgba(143,91,102,.82), rgba(76,45,57,.88)); box-shadow: 0 0 8px rgba(128,65,82,.22); }
.profile-prose::-webkit-scrollbar-thumb:hover, .profile-scrollbox::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(170,109,122,.92), rgba(96,55,70,.96)); box-shadow: 0 0 10px rgba(151,76,96,.38); }
.knowledge-blocks.profile-scrollbox { padding: 13px 10px 13px 14px; border: 1px solid rgba(221,197,190,.11); border-radius: 10px; background: linear-gradient(rgba(0,0,0,.47), rgba(0,0,0,.47)), var(--texture-2) center / 780px auto; box-shadow: inset 0 0 38px rgba(0,0,0,.48); }
.profile-prose p { margin: 0 0 12px; }
.profile-prose p:last-child { margin-bottom: 0; }
.profile-prompt-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 12px; margin-top: 12px; }
.profile-prompt { padding: 11px; border: 1px solid rgba(221,197,190,.12); border-radius: 9px; background: rgba(0,0,0,.2); }
.profile-prompt__title { margin-bottom: 7px; color: rgba(232,217,209,.94); font-family: Cinzel, Georgia, serif; font-size: 12px; }
.profile-prompt__label { margin-bottom: 5px; color: var(--faint); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.profile-prompt__text { color: rgba(235,223,215,.85); font-size: 12px; line-height: 1.5; }
.profile-facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 12px; }
.profile-fact { padding: 11px; border: 1px solid rgba(221,197,190,.12); border-radius: 9px; background: rgba(0,0,0,.2); }
.profile-fact--wide { grid-column: 1 / -1; }
.profile-fact__label { margin-bottom: 7px; color: var(--faint); font-family: Cinzel, Georgia, serif; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.profile-fact__value { color: rgba(235,223,215,.86); font-size: 12px; line-height: 1.53; }
.profile-fact__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.profile-fact__list li { padding: 7px 9px; border-left: 2px solid rgba(167,66,95,.48); background: rgba(111,38,59,.08); }
.profile-family-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 12px; }
.profile-family-card { position: relative; overflow: hidden; padding: 12px; border: 1px solid rgba(221,197,190,.13); border-radius: 10px; background: rgba(0,0,0,.21); }
.profile-family-card::after { content: ''; position: absolute; inset: -30px -40px auto; height: 105px; pointer-events: none; opacity: .08; background: var(--texture-3) center / 420px auto; mix-blend-mode: screen; }
.profile-family-card__role { position: relative; z-index: 1; margin-bottom: 6px; color: var(--faint); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.profile-family-card__name { position: relative; z-index: 1; margin-bottom: 5px; color: rgba(239,229,220,.94); font-family: Cinzel, Georgia, serif; font-size: 13px; }
.profile-family-card__meta { position: relative; z-index: 1; margin-bottom: 8px; color: rgba(167,66,95,.9); font-size: 11px; }
.profile-family-card__description { position: relative; z-index: 1; color: rgba(235,223,215,.84); font-size: 11px; line-height: 1.58; text-align: justify;;}
.character-timeline { position: relative; z-index: 2; display: grid; gap: 10px; padding-left: 19px; }
.character-timeline::before { content: ''; position: absolute; top: 6px; bottom: 7px; left: 6px; width: 1px; background: linear-gradient(180deg, rgba(167,66,95,.75), rgba(216,203,187,.1)); }
.character-timeline__item { position: relative; padding: 10px 11px; border: 1px solid rgba(221,197,190,.11); border-radius: 9px; background: rgba(0,0,0,.2); }
.character-timeline__item::before { content: ''; position: absolute; top: 14px; left: -18px; width: 9px; height: 9px; border: 1px solid rgba(216,203,187,.34); border-radius: 50%; background: radial-gradient(circle, rgba(167,66,95,.95), rgba(66,16,32,.7)); box-shadow: 0 0 0 5px rgba(111,38,59,.11); }
.character-timeline__date { margin-bottom: 5px; color: rgba(203,184,180,.78); font-family: Cinzel, Georgia, serif; font-size: 10px; letter-spacing: .06em; }
.character-timeline__text { color: rgba(235,223,215,.86); font-size: 12px; line-height: 1.5; }
.knowledge-blocks { position: relative; z-index: 2; display: grid; gap: 10px; }
.knowledge-heading { margin: 7px 0 0; color: rgba(232,217,209,.95); font-family: Cinzel, Georgia, serif; font-size: 13px; letter-spacing: .05em; }
.knowledge-paragraph { margin: 0; padding: 12px 13px; border: 1px solid rgba(221,197,190,.1); border-radius: 9px; color: rgba(235,223,215,.86); font-size: 13px; line-height: 1.7; background: rgba(0,0,0,.2); }
.knowledge-quote { margin: 2px 0; padding: 13px 16px; border-left: 2px solid rgba(167,66,95,.72); color: rgba(231,216,207,.89); font-size: 16px; font-style: italic; line-height: 1.5; background: linear-gradient(90deg, rgba(111,38,59,.14), transparent); }
.knowledge-spell {
  position: relative;
  overflow: visible;
  padding: 13px;
  border: 1px solid rgba(167,66,95,.3);
  border-radius: 10px;
  background:
    radial-gradient(260px 100px at 100% 0, rgba(111,38,59,.19), transparent),
    rgba(0,0,0,.27);
}

.knowledge-spell::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; background: var(--texture-4) center / cover; mix-blend-mode: screen; }
.knowledge-spell__name { position: relative; z-index: 1; margin-bottom: 6px; color: rgba(239,229,220,.96); font-family: Cinzel, Georgia, serif; font-size: 13px; }
.knowledge-spell__meta { position: relative; z-index: 1; margin-bottom: 8px; color: rgba(253,187,206,.9); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.knowledge-spell__description { position: relative; z-index: 1; color: rgba(235,223,215,.84); font-size: 12px; line-height: 1.58; }
.profile-list { position: relative; z-index: 2; display: grid; gap: 8px; }
.profile-list__item { padding: 10px 12px; border: 1px solid rgba(221,197,190,.11); border-radius: 9px; color: rgba(235,223,215,.87); font-size: 12px; line-height: 1.52; background: rgba(0,0,0,.2); }
.profile-list__item strong { display: block; margin-bottom: 4px; color: rgba(239,229,220,.94); font-family: Cinzel, Georgia, serif; font-size: 11px; font-weight: 500; }
.profile-sources { position: relative; z-index: 2; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.profile-source { position: relative; overflow: hidden; border: 1px solid rgba(221,197,190,.11); border-radius: 9px; background: rgba(0,0,0,.2); transition: transform .2s ease, border-color .2s ease; }
.profile-source::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(111,38,59,.2), transparent); transition: opacity .2s ease; }
.profile-source:hover { border-color: rgba(167,66,95,.36); transform: translateX(3px); }
.profile-source:hover::before { opacity: 1; }
.profile-source a { position: relative; z-index: 1; display: block; padding: 10px 12px; color: rgba(216,203,187,.9); font-size: 12px; line-height: 1.4; text-decoration: none; }
.profile-source small { display: block; margin-top: 4px; color: var(--faint); }
.profile-footer { padding: 17px 0 2px; text-align: center; }
.profile-footer a { color: var(--muted); font-family: Cinzel, Georgia, serif; font-size: 10px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.story-intro { position: relative; z-index: 2; margin-bottom: 13px; padding: 10px 12px; border-left: 2px solid rgba(167,66,95,.64); color: var(--muted); font-size: 12px; line-height: 1.55; background: linear-gradient(90deg, rgba(111,38,59,.1), transparent); }
.knowledge-paragraph, .knowledge-spell__description { text-align: justify; text-justify: inter-word; }
.knowledge-paragraph {white-space: pre-line;}

.knowledge-spell__title {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.knowledge-spell__name {
  margin-bottom: 0;
}

.knowledge-spell__status {
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: help;
  opacity: .9;
  transform: rotate(45deg);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, .45),
    0 0 9px currentColor;
}

.knowledge-spell__status::before {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
  transform: rotate(-45deg);
}

.knowledge-spell__status--supported {
  color: rgba(106, 181, 128, .95);
  background: rgba(48, 105, 66, .35);
}

.knowledge-spell__status--tolerated {
  color: rgba(220, 152, 76, .96);
  background: rgba(127, 75, 26, .38);
}

.knowledge-spell__status--forbidden {
  color: rgba(203, 72, 83, .96);
  background: rgba(119, 28, 39, .4);
}

.knowledge-spell-tooltip {
  position: fixed;
  z-index: 99999;

  box-sizing: border-box;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));

  padding: 10px 12px;
  border: 1px solid rgba(221, 197, 190, .2);
  border-radius: 7px;

  color: rgba(239, 229, 220, .95);
  background:
    linear-gradient(
      180deg,
      rgba(31, 22, 29, .98),
      rgba(9, 7, 10, .98)
    );

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .72),
    inset 0 0 18px rgba(111, 38, 59, .09);

  font-family: inherit;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;

  pointer-events: none;
  visibility: hidden;
  opacity: 0;

  transform: translateY(5px);

  transition:
    opacity .16s ease,
    transform .16s ease,
    visibility .16s ease;
}

.knowledge-spell-tooltip.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
overflow: hidden;
}


/* ===== FEJLÉCEK / FINOMABB VIZUÁLIS RANGSOR ===== */

.profile-section__heading {
  position: relative;
  padding-bottom: 2px;
}

.profile-section__heading::before,
.profile-section__heading::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(216,203,187,.32);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,66,95,.88), rgba(66,16,32,.55));
  box-shadow: 0 0 10px rgba(167,66,95,.18);
  transform: translateY(-50%);
}

.profile-section__heading::before { left: -2px; }
.profile-section__heading::after { right: -2px; }

.profile-section__heading h2 {
  position: relative;
}

.profile-section__heading h2::before {
  content: '✦';
  margin-right: 9px;
  color: rgba(167,66,95,.84);
  font-size: 11px;
  vertical-align: middle;
}

/* ===== CSALÁDI KÁRTYÁK HOVER PORTRÉ ===== */

.profile-family-card {
  min-height: 170px;
  isolation: isolate;
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    background .28s ease;
}

.profile-family-card:hover {
  border-color: rgba(167,66,95,.36);
  background: rgba(8,6,9,.34);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.34);
}

.profile-family-card__portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .32s ease, transform .42s ease, filter .42s ease;
  transform: scale(1.03);
  pointer-events: none;
}

.profile-family-card__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,3,4,.10), rgba(4,3,4,.82)),
    radial-gradient(circle at 50% 32%, transparent 20%, rgba(0,0,0,.52) 100%);
}

.profile-family-card__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(.75) sepia(.18) contrast(1.08) brightness(.62);
  transform: scale(1.04);
  transition: transform .42s ease, filter .42s ease;
}

.profile-family-card:hover .profile-family-card__portrait {
  opacity: .52;
  transform: scale(1);
}

.profile-family-card:hover .profile-family-card__portrait img {
  filter: grayscale(.42) sepia(.10) contrast(1.03) brightness(.7);
  transform: scale(1.02);
}

.profile-family-card__role,
.profile-family-card__name,
.profile-family-card__meta,
.profile-family-card__description {
  position: relative;
  z-index: 2;
}

.profile-family-card__name {
  padding-right: 30px;
}

.profile-family-card__name::after {
  content: '✦';
  position: absolute;
  top: 1px;
  right: 0;
  color: rgba(216,203,187,.26);
  font-size: 13px;
  text-shadow: 0 0 8px rgba(167,66,95,.14);
}

/* opcionális: ha nincs kép, akkor ne történjen semmi */
.profile-family-card:not([data-portrait]) .profile-family-card__name::after {
  opacity: .45;
}

/* ===== TIMELINE FINOMÍTÁS ===== */

.character-timeline__item {
  transition:
    transform .24s ease,
    border-color .24s ease,
    background .24s ease,
    box-shadow .24s ease;
}

.character-timeline__item:hover {
  transform: translateX(2px);
  border-color: rgba(167,66,95,.28);
  background: rgba(12,9,14,.32);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.character-timeline__item--dynamic {
  border-color: rgba(167,66,95,.22);
  background:
    radial-gradient(180px 80px at 0 0, rgba(111,38,59,.12), transparent),
    rgba(0,0,0,.2);
}

.character-timeline__date {
  display: flex;
  align-items: center;
  gap: 7px;
}

.character-timeline__date-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid rgba(221,197,190,.16);
  border-radius: 999px;
  color: rgba(239,229,220,.8);
  font-size: 9px;
  background: rgba(0,0,0,.28);
}

/* ===== HANGULAT / INICIÁLÉ A HOSSZABB PRÓZÁKHOZ ===== */

.profile-prose > p:first-child::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: rgba(167,66,95,.9);
  font-family: "IM Fell DW Pica SC", serif;
  font-size: 3.1em;
  line-height: .78;
  text-shadow: 0 0 12px rgba(111,38,59,.18);
}

/* scrollbox teteje-alja finom fade */
.profile-prose,
.profile-scrollbox {
  mask-image: linear-gradient(to bottom, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 12px, black calc(100% - 12px), transparent 100%);
}

/* =========================================================
   CSALÁDI KÁRTYÁK — PORTRÉ ALAPÁLLAPOT, SZÖVEG HOVERRE
   ========================================================= */
.profile-family-grid { align-items: stretch; }
.profile-family-card {
  height: 238px;
  min-height: 238px;
  padding: 15px;
  background: linear-gradient(180deg, rgba(5,4,6,.18), rgba(5,4,6,.5)), rgba(0,0,0,.32);
}
.profile-family-card[data-portrait] { cursor: default; }
.profile-family-card[data-portrait]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 20%, rgba(111,38,59,.16), transparent 42%), linear-gradient(180deg, rgba(10,7,11,.94), rgba(4,3,5,.985));
  transition: opacity .34s ease;
}
.profile-family-card__portrait {
  opacity: 1;
  transform: scale(1);
  transition: opacity .34s ease, transform .46s ease, filter .46s ease;
}
.profile-family-card__portrait::after {
  background: linear-gradient(180deg, rgba(3,2,3,.04) 28%, rgba(3,2,3,.74) 100%), radial-gradient(circle at 50% 34%, transparent 30%, rgba(0,0,0,.34) 100%);
}
.profile-family-card__portrait img {
  filter: grayscale(.38) sepia(.10) contrast(1.08) brightness(.82);
  transform: scale(1.015);
}
.profile-family-card__role,
.profile-family-card__name,
.profile-family-card__meta,
.profile-family-card__description {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .26s ease, transform .34s ease;
}
.profile-family-card__role { margin-bottom: 5px; }
.profile-family-card__name { margin-bottom: 5px; padding-right: 24px; }
.profile-family-card__meta { margin-bottom: 8px; }
.profile-family-card__description {
  max-height: 148px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 7px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgba(143,91,102,.78) rgba(8,6,8,.34);
}
.profile-family-card__description::-webkit-scrollbar { width: 6px; }
.profile-family-card__description::-webkit-scrollbar-track { border-radius: 999px; background: rgba(8,6,8,.34); }
.profile-family-card__description::-webkit-scrollbar-thumb {
  border: 1px solid rgba(221,197,190,.13);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(154,95,109,.88), rgba(76,45,57,.94));
}
.profile-family-card[data-portrait]:hover,
.profile-family-card[data-portrait]:focus-within {
  transform: translateY(-3px);
  border-color: rgba(167,66,95,.42);
  box-shadow: 0 16px 30px rgba(0,0,0,.46), 0 0 20px rgba(111,38,59,.12);
}
.profile-family-card[data-portrait]:hover::before,
.profile-family-card[data-portrait]:focus-within::before { opacity: 1; }
.profile-family-card[data-portrait]:hover .profile-family-card__portrait,
.profile-family-card[data-portrait]:focus-within .profile-family-card__portrait {
  opacity: 0;
  transform: scale(1.075);
  filter: blur(4px);
}
.profile-family-card[data-portrait]:hover .profile-family-card__role,
.profile-family-card[data-portrait]:hover .profile-family-card__name,
.profile-family-card[data-portrait]:hover .profile-family-card__meta,
.profile-family-card[data-portrait]:hover .profile-family-card__description,
.profile-family-card[data-portrait]:focus-within .profile-family-card__role,
.profile-family-card[data-portrait]:focus-within .profile-family-card__name,
.profile-family-card[data-portrait]:focus-within .profile-family-card__meta,
.profile-family-card[data-portrait]:focus-within .profile-family-card__description {
  opacity: 1;
  transform: translateY(0);
}
.profile-family-card[data-portrait]:hover .profile-family-card__role,
.profile-family-card[data-portrait]:focus-within .profile-family-card__role { transition-delay: .06s; }
.profile-family-card[data-portrait]:hover .profile-family-card__name,
.profile-family-card[data-portrait]:focus-within .profile-family-card__name { transition-delay: .10s; }
.profile-family-card[data-portrait]:hover .profile-family-card__meta,
.profile-family-card[data-portrait]:focus-within .profile-family-card__meta { transition-delay: .14s; }
.profile-family-card[data-portrait]:hover .profile-family-card__description,
.profile-family-card[data-portrait]:focus-within .profile-family-card__description { transition-delay: .18s; }
.profile-family-card:not([data-portrait]) .profile-family-card__role,
.profile-family-card:not([data-portrait]) .profile-family-card__name,
.profile-family-card:not([data-portrait]) .profile-family-card__meta,
.profile-family-card:not([data-portrait]) .profile-family-card__description {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RAVASZ EREDMÉNYEK
   ========================================================= */
.ravasz-results {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(221,197,190,.12);
  border-radius: 10px;
  background: radial-gradient(260px 120px at 100% 0, rgba(111,38,59,.14), transparent 72%), rgba(0,0,0,.25);
  box-shadow: inset 0 0 24px rgba(0,0,0,.34);
}
.ravasz-results::after {
  content: '✦';
  position: absolute;
  top: 9px;
  right: 12px;
  color: rgba(216,203,187,.09);
  font-size: 42px;
  line-height: 1;
  pointer-events: none;
}
.ravasz-results__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ravasz-results__eyebrow {
  margin-bottom: 2px;
  color: var(--faint);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ravasz-results h4 {
  margin: 0;
  color: rgba(239,229,220,.94);
  font-family: Cinzel, Georgia, serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .055em;
}
.ravasz-results__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 8px;
  max-width: 310px;
  color: rgba(203,184,180,.68);
  font-size: 8px;
  line-height: 1.3;
}
.ravasz-results__legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ravasz-results__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 6px 8px;
}
.ravasz-result {
  display: flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 7px 8px 7px 10px;
  border: 1px solid rgba(221,197,190,.09);
  border-radius: 8px;
  color: rgba(235,223,215,.85);
  font-size: 10px;
  line-height: 1.28;
  background: rgba(0,0,0,.2);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ravasz-result:hover { transform: translateY(-1px); border-color: rgba(167,66,95,.26); background: rgba(18,12,18,.34); }
.ravasz-result > span { min-width: 0; overflow-wrap: anywhere; }
.ravasz-grade {
  display: inline-grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Cinzel, Georgia, serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.32), 0 0 9px currentColor;
}
.ravasz-grade--e { color: rgba(166,174,190,.92); background: rgba(76,83,101,.4); }
.ravasz-grade--v { color: rgba(194,125,154,.96); background: rgba(105,48,72,.44); }
.ravasz-grade--k {
  color: rgba(237,196,92,.98);
  background: rgba(125,88,18,.48);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.3), 0 0 11px rgba(237,196,92,.52);
}
.ravasz-results__legend .ravasz-grade {
  width: 17px;
  height: 17px;
  font-size: 7px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.32), 0 0 6px currentColor;
}
