/* Regelstand 13: lesbarer Gebäudezustand, Ahnengalerie und Aktfortsetzung */
.wear{display:none!important}
.condition-orb{position:absolute;z-index:13;right:-.65rem;top:-.4rem;display:grid;place-items:center;width:3.15rem;height:3.15rem;border:.22rem solid #111;border-radius:50%;background:#68716a;color:#fff;box-shadow:0 0 0 2px #e8d7a5,0 5px 14px #000b;text-align:center;line-height:1;pointer-events:none}
.condition-orb::after{content:"";position:absolute;inset:.2rem;border:1px solid #ffffff55;border-radius:50%}
.condition-orb b{position:relative;z-index:1;margin-top:.25rem;font:900 .85rem Georgia,serif;text-shadow:0 1px 2px #000}
.condition-orb small{position:relative;z-index:1;margin-top:-.35rem;font-size:.38rem;font-weight:900;letter-spacing:.03em;text-transform:uppercase}
.condition-orb.good{background:radial-gradient(circle at 35% 28%,#65bd67,#276631 65%,#14371c)}
.condition-orb.warning{background:radial-gradient(circle at 35% 28%,#f5d46e,#b7791b 65%,#67400f);color:#211506}
.condition-orb.critical{background:radial-gradient(circle at 35% 28%,#ef7d6e,#a02d25 65%,#5a1714)}

.family-command{display:block;padding:0;overflow:hidden;background:#17110b}
.family-command>.section-title{position:relative;z-index:3;margin:0;padding:.8rem 1rem;border-bottom:1px solid #725735;background:linear-gradient(90deg,#17110bf2,#2a1d10e8 60%,#17110bf2)}
.family-org{max-width:none;margin:0}
.ancestor-gallery{position:relative;display:grid;grid-template-columns:.95fr 1.7fr 2.45fr;gap:1.2rem;align-items:center;min-height:36rem;padding:4.5rem 2rem 3.5rem;background:linear-gradient(#120c0666,#120c0622 60%,#0a0705aa),url("../assets/visuals/ahnengalerie-stammhaus-1807.png") center 42%/cover no-repeat;box-shadow:inset 0 0 70px #060402}
.ancestor-gallery::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0805038c,transparent 13% 87%,#0805038c),linear-gradient(0deg,#0805038c,transparent 18% 86%,#08050370)}
.gallery-inscription{position:absolute;z-index:2;left:50%;top:1.15rem;display:grid;justify-items:center;padding:.45rem 1.4rem;border:1px solid #b48a47;background:#1a100bd9;box-shadow:0 4px 12px #0009;transform:translateX(-50%)}
.gallery-inscription strong{font:700 1rem Georgia,serif;color:#f0d79a}
.gallery-inscription span{color:#b8a281;font-size:.5rem;letter-spacing:.12em;text-transform:uppercase}
.gallery-generation{position:relative;z-index:2;display:grid;gap:.8rem;justify-items:center}
.gallery-parents{grid-template-columns:repeat(2,minmax(0,1fr))}
.gallery-children{grid-template-columns:repeat(3,minmax(0,1fr))}
.generation-label{grid-column:1/-1;justify-self:stretch;padding:.27rem .4rem;border-bottom:1px solid #a7824f;background:#1d130bd4;color:#e7cb8c;font-size:.52rem;font-weight:900;letter-spacing:.11em;text-align:center;text-transform:uppercase}
.ancestor-card{position:relative;display:grid;justify-items:center;width:100%;min-width:0;padding:.55rem .35rem .4rem;border:0;background:transparent;color:#efe3cc;cursor:pointer}
.ancestor-card:hover,.ancestor-card:focus-visible{outline:0}
.ancestor-frame{position:relative;display:block;width:min(8.2rem,100%);aspect-ratio:4/5;padding:.48rem;border:.35rem ridge #7b542d;background:linear-gradient(135deg,#9b6f3c,#382010 43%,#b48a4c 47%,#3b210e 55%,#936438);box-shadow:0 0 0 2px #241205,0 7px 16px #000b;transition:transform .18s,filter .18s}
.ancestor-frame::before{content:"";position:absolute;inset:.18rem;border:1px solid #e1bd70aa;pointer-events:none}
.ancestor-card:hover .ancestor-frame,.ancestor-card:focus-visible .ancestor-frame,.ancestor-card.selected .ancestor-frame{filter:brightness(1.18);transform:translateY(-4px)}
.ancestor-card.selected .ancestor-frame{box-shadow:0 0 0 3px #f1d27d,0 0 24px #e3b95799,0 8px 18px #000c}
.ancestor-portrait{width:100%;height:100%;border:1px solid #2a170c;border-radius:0;background-color:#3a2b20;box-shadow:inset 0 0 18px #100b08}
.ancestor-status{position:absolute;right:-.3rem;bottom:-.3rem;width:1.25rem;height:1.25rem;border:.18rem solid #21150b;border-radius:50%;background:#55925a;box-shadow:0 2px 6px #000}
.ancestor-card.busy .ancestor-status{background:#d09436}
.ancestor-card.blocked .ancestor-status{background:#b44037}
.ancestor-plaque{display:grid;width:min(10rem,100%);min-height:3.55rem;margin-top:.65rem;padding:.42rem .38rem;border:1px solid #a77b3d;background:linear-gradient(#2c1d10ee,#130d08f5);box-shadow:0 4px 10px #000b;text-align:center}
.ancestor-plaque strong{overflow:hidden;color:#f0d28c;font:700 .65rem/1.08 Georgia,serif;text-overflow:ellipsis;white-space:normal}
.ancestor-plaque small{margin-top:.12rem;color:#c7b18e;font-size:.45rem;line-height:1.2}
.ancestor-plaque em{align-self:end;margin-top:.3rem;padding-top:.25rem;border-top:1px solid #6b4b2c;color:#a9c9a4;font-size:.43rem;font-style:normal;white-space:nowrap}
.ancestor-card.busy .ancestor-plaque em{color:#e4b96e}
.ancestor-card.blocked .ancestor-plaque em{color:#e49b91}
.gallery-hint{position:absolute;z-index:2;right:1rem;bottom:.65rem;color:#d4c3a5;font-size:.52rem;text-shadow:0 1px 3px #000}

.inline-effects b i.delta-positive{color:#78d17c}
.inline-effects b i.delta-negative{color:#ef8178}
.inline-effects b i.delta-neutral{color:#d9bd82}
.act-objectives{margin:.5rem 0 .8rem;border:1px solid #80633a;background:#151d18}
.act-objectives>header{display:flex;justify-content:space-between;gap:.5rem;padding:.6rem;border-bottom:1px solid #6a5435;background:#28311f}
.act-objectives>header span{color:#e7ca84;font:700 .78rem Georgia,serif}
.act-objectives>header strong{color:#9bd09a;font-size:.64rem}
.act-objectives>p{margin:.55rem .65rem;color:#c7bca8;font-size:.61rem;line-height:1.4}
.act-objective-list{display:grid;gap:.4rem;padding:.15rem .55rem .6rem}
.act-objective{padding:.55rem;border:1px solid #4d4230;background:#211a12}
.act-objective.met{border-color:#547b55;background:#172619}
.act-objective>div:first-child strong,.act-objective>div:first-child small{display:block}
.act-objective>div:first-child strong{color:#e7cc8f;font-size:.68rem}
.act-objective.met>div:first-child strong{color:#9fd09d}
.act-objective>div:first-child small{margin-top:.15rem;color:#afa18c;font-size:.55rem;line-height:1.35}
.act-requirements{display:grid;gap:.2rem;margin-top:.4rem}
.act-objectives.upcoming{background:#182128}

@media(max-width:900px){
  .ancestor-gallery{grid-template-columns:1fr;gap:1.5rem;min-height:auto;padding:4.5rem 1rem 3rem;background-position:center}
  .gallery-elder{grid-template-columns:1fr}
  .gallery-parents{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-children{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ancestor-frame{width:min(8rem,100%)}
}
@media(max-width:560px){
  .gallery-parents,.gallery-children{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-children .ancestor-card:last-child{grid-column:1/-1;width:50%}
  .condition-orb{right:-.2rem;top:-.2rem;width:2.6rem;height:2.6rem}
  .condition-orb b{font-size:.72rem}
  .condition-orb small{font-size:.31rem}
}