/* TENIMPER v53.17 — personal chapter footprint */

.reader-chapter-footprint-v5317{
  width:min(760px,calc(100% - 24px));
  margin:22px auto 28px;
  padding:15px 16px;
  border:1px solid rgba(188,144,79,.12);
  border-radius:16px;
  background:
    linear-gradient(135deg,rgba(188,144,79,.025),transparent 48%),
    rgba(255,255,255,.009);
  box-sizing:border-box;
}

.reader-chapter-footprint-v5317__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.reader-chapter-footprint-v5317__eyebrow{
  display:block;
  margin-bottom:4px;
  color:rgba(198,154,96,.67);
  font-size:.54rem;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.reader-chapter-footprint-v5317 h3{
  margin:0;
  color:rgba(238,221,198,.88);
  font-family:Georgia,"Times New Roman",serif;
  font-size:.95rem;
  line-height:1.25;
}

.reader-chapter-footprint-v5317__progress{
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid rgba(188,144,79,.10);
  border-radius:999px;
  color:rgba(216,178,128,.60);
  font-size:.58rem;
}

.reader-chapter-footprint-v5317__stats{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:12px;
}

.reader-chapter-footprint-v5317__stats span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:30px;
  padding:6px 9px;
  border:1px solid rgba(188,144,79,.085);
  border-radius:10px;
  color:rgba(221,199,168,.54);
  font-size:.60rem;
}

.reader-chapter-footprint-v5317__stats b{
  color:rgba(220,181,128,.78);
  font-weight:600;
}

.reader-chapter-footprint-v5317__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.reader-chapter-footprint-v5317__actions a,
.reader-chapter-footprint-v5317__actions button{
  min-height:34px;
  padding:7px 10px;
  border:1px solid rgba(188,144,79,.11);
  border-radius:10px;
  background:rgba(255,255,255,.008);
  color:rgba(215,178,128,.74);
  font:inherit;
  font-size:.60rem;
  text-decoration:none;
  cursor:pointer;
}

.reader-chapter-footprint-v5317__actions a:hover,
.reader-chapter-footprint-v5317__actions button:hover{
  border-color:rgba(188,144,79,.18);
  background:rgba(188,144,79,.025);
  color:rgba(229,194,145,.90);
}

html[data-theme="light"] .reader-chapter-footprint-v5317{
  border-color:rgba(126,84,45,.10);
  background:rgba(255,250,242,.24);
}

html[data-theme="light"] .reader-chapter-footprint-v5317 h3{
  color:rgba(58,40,29,.90);
}

html[data-theme="light"] .reader-chapter-footprint-v5317__stats span{
  color:rgba(76,53,38,.56);
}

@media(max-width:760px){
  .reader-chapter-footprint-v5317{
    width:calc(100% - 18px);
    margin:18px auto 24px;
    padding:13px;
  }

  .reader-chapter-footprint-v5317__head{
    display:grid;
    gap:8px;
  }

  .reader-chapter-footprint-v5317__progress{
    justify-self:start;
  }

  .reader-chapter-footprint-v5317__actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .reader-chapter-footprint-v5317__actions button{
    grid-column:1 / -1;
  }
}


/* TENIMPER v53.18 — chapter ↔ world memory threads */
.reader-chapter-footprint-v5317__world{
  margin-top:13px;
  padding-top:12px;
  border-top:1px solid rgba(188,144,79,.075);
}

.reader-chapter-footprint-v5317__world-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.reader-chapter-footprint-v5317__world-head > span{
  color:rgba(219,184,137,.60);
  font-size:.57rem;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.reader-chapter-footprint-v5317__world-head > a{
  color:rgba(211,177,132,.58);
  font-size:.56rem;
  text-decoration:none;
}

.reader-chapter-footprint-v5317__world-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}

.reader-chapter-footprint-v5317__character{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:8px;
  align-items:center;
  min-width:0;
  padding:7px 8px;
  border:1px solid rgba(188,144,79,.075);
  border-radius:11px;
  background:rgba(255,255,255,.006);
  color:inherit;
  text-decoration:none;
}

.reader-chapter-footprint-v5317__character:hover{
  border-color:rgba(188,144,79,.14);
  background:rgba(188,144,79,.018);
}

.reader-chapter-footprint-v5317__character img,
.reader-chapter-footprint-v5317__avatar-fallback{
  width:32px;
  height:32px;
  border-radius:9px;
  object-fit:cover;
  border:1px solid rgba(188,144,79,.10);
}

.reader-chapter-footprint-v5317__avatar-fallback{
  display:grid;
  place-items:center;
  color:rgba(204,160,104,.66);
  font-size:.58rem;
}

.reader-chapter-footprint-v5317__character > span:last-child{
  min-width:0;
  display:grid;
  gap:2px;
}

.reader-chapter-footprint-v5317__character strong{
  overflow:hidden;
  color:rgba(238,221,198,.82);
  font-family:Georgia,"Times New Roman",serif;
  font-size:.68rem;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reader-chapter-footprint-v5317__character small{
  overflow:hidden;
  color:rgba(221,199,168,.44);
  font-size:.53rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

html[data-theme="light"] .reader-chapter-footprint-v5317__world{
  border-top-color:rgba(126,84,45,.075);
}

html[data-theme="light"] .reader-chapter-footprint-v5317__character{
  border-color:rgba(126,84,45,.075);
  background:rgba(255,250,242,.15);
}

html[data-theme="light"] .reader-chapter-footprint-v5317__character strong{
  color:rgba(58,40,29,.88);
}

html[data-theme="light"] .reader-chapter-footprint-v5317__character small{
  color:rgba(76,53,38,.46);
}

@media(max-width:560px){
  .reader-chapter-footprint-v5317__world-list{
    grid-template-columns:1fr;
  }
}


/* TENIMPER v53.19 — chapter world lexicon */
.reader-chapter-footprint-v5317__lexicon{
  margin-top:13px;
  padding-top:12px;
  border-top:1px solid rgba(188,144,79,.075);
}

.reader-chapter-footprint-v5317__term-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.reader-chapter-footprint-v5317__term{
  display:grid;
  gap:2px;
  min-width:120px;
  padding:7px 9px;
  border:1px solid rgba(188,144,79,.075);
  border-radius:10px;
  background:rgba(255,255,255,.006);
}

.reader-chapter-footprint-v5317__term small{
  color:rgba(188,144,79,.50);
  font-size:.49rem;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.reader-chapter-footprint-v5317__term strong{
  color:rgba(238,221,198,.78);
  font-family:Georgia,"Times New Roman",serif;
  font-size:.62rem;
  font-weight:600;
}

html[data-theme="light"] .reader-chapter-footprint-v5317__lexicon{
  border-top-color:rgba(126,84,45,.075);
}

html[data-theme="light"] .reader-chapter-footprint-v5317__term{
  border-color:rgba(126,84,45,.075);
  background:rgba(255,250,242,.15);
}

html[data-theme="light"] .reader-chapter-footprint-v5317__term strong{
  color:rgba(58,40,29,.86);
}


/* TENIMPER v53.20 — inline chapter lexicon definitions */
.reader-chapter-footprint-v5317__term{
  appearance:none;
  -webkit-appearance:none;
  text-align:left;
  cursor:pointer;
  font:inherit;
}

.reader-chapter-footprint-v5317__term.is-active,
.reader-chapter-footprint-v5317__term[aria-expanded="true"]{
  border-color:rgba(188,144,79,.18);
  background:rgba(188,144,79,.035);
}

.reader-chapter-footprint-v5320__definition{
  margin-top:8px;
  padding:10px 11px;
  border-left:2px solid rgba(188,144,79,.26);
  background:rgba(188,144,79,.018);
  border-radius:0 9px 9px 0;
}

.reader-chapter-footprint-v5320__definition > span{
  display:block;
  margin-bottom:3px;
  color:rgba(188,144,79,.52);
  font-size:.48rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.reader-chapter-footprint-v5320__definition > strong{
  display:block;
  color:rgba(238,221,198,.84);
  font-family:Georgia,"Times New Roman",serif;
  font-size:.67rem;
}

.reader-chapter-footprint-v5320__definition > p{
  margin:5px 0 0;
  color:rgba(224,204,178,.56);
  font-size:.59rem;
  line-height:1.48;
}

html[data-theme="light"] .reader-chapter-footprint-v5320__definition{
  border-left-color:rgba(126,84,45,.22);
  background:rgba(126,84,45,.025);
}

html[data-theme="light"] .reader-chapter-footprint-v5320__definition > strong{
  color:rgba(58,40,29,.88);
}

html[data-theme="light"] .reader-chapter-footprint-v5320__definition > p{
  color:rgba(76,53,38,.54);
}


/* TENIMPER v53.40 — discovery ceremony after chapter completion */
.reader-chapter-discovery-v5340{
  width:min(760px,calc(100% - 28px));
  box-sizing:border-box;
  margin:18px auto 26px;
  padding:14px;
  border:1px solid rgba(188,144,79,.12);
  border-radius:14px;
  background:
    linear-gradient(180deg,rgba(188,144,79,.030),rgba(188,144,79,.008));
  opacity:0;
  transform:translateY(8px);
  transition:opacity .28s ease,transform .28s ease;
}

.reader-chapter-discovery-v5340.is-visible{
  opacity:1;
  transform:none;
}

.reader-chapter-discovery-v5340__head{
  display:flex;
  align-items:center;
  gap:11px;
}

.reader-chapter-discovery-v5340__seal{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(165,70,65,.16);
  border-radius:9px;
  color:rgba(184,88,80,.76);
  font-family:Georgia,"Times New Roman",serif;
  font-size:1rem;
}

.reader-chapter-discovery-v5340__head>span:last-child{
  min-width:0;
  display:grid;
  gap:2px;
}

.reader-chapter-discovery-v5340__head small,
.reader-chapter-discovery-v5340__group>span{
  color:rgba(188,144,79,.50);
  font-size:.52rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.reader-chapter-discovery-v5340__head strong{
  color:rgba(235,214,185,.88);
  font-family:Georgia,"Times New Roman",serif;
  font-size:.82rem;
  font-weight:600;
}

.reader-chapter-discovery-v5340__head em{
  color:rgba(223,202,175,.48);
  font-size:.54rem;
  font-style:normal;
}

.reader-chapter-discovery-v5340__group{
  display:grid;
  gap:7px;
  margin-top:12px;
}

.reader-chapter-discovery-v5340__cards,
.reader-chapter-discovery-v5340__terms{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}

.reader-chapter-discovery-v5340__cards a,
.reader-chapter-discovery-v5340__terms a{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px;
  border:1px solid rgba(188,144,79,.08);
  border-radius:9px;
  background:rgba(255,255,255,.004);
  color:inherit;
  text-decoration:none;
}

.reader-chapter-discovery-v5340__cards img,
.reader-chapter-discovery-v5340__cards b{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:8px;
  object-fit:cover;
}

.reader-chapter-discovery-v5340__cards b{
  display:grid;
  place-items:center;
  background:rgba(188,144,79,.035);
  color:rgba(188,144,79,.54);
  font-weight:400;
}

.reader-chapter-discovery-v5340__cards a>span,
.reader-chapter-discovery-v5340__terms a{
  min-width:0;
}

.reader-chapter-discovery-v5340__cards strong,
.reader-chapter-discovery-v5340__terms strong{
  display:block;
  overflow:hidden;
  color:rgba(232,208,177,.76);
  font-family:Georgia,"Times New Roman",serif;
  font-size:.60rem;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reader-chapter-discovery-v5340__cards small,
.reader-chapter-discovery-v5340__terms small{
  display:block;
  overflow:hidden;
  color:rgba(188,144,79,.46);
  font-size:.48rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.reader-chapter-discovery-v5340__terms a{
  display:grid;
  align-content:center;
}

.reader-chapter-discovery-v5340__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  margin-top:12px;
}

.reader-chapter-discovery-v5340__actions a,
.reader-chapter-discovery-v5340__actions button{
  min-height:31px;
  padding:6px 9px;
  border:1px solid rgba(188,144,79,.09);
  border-radius:8px;
  background:rgba(255,255,255,.004);
  color:rgba(211,177,132,.62);
  font:inherit;
  font-size:.52rem;
  text-decoration:none;
  cursor:pointer;
}

html[data-theme="light"] .reader-chapter-discovery-v5340{
  border-color:rgba(126,84,45,.11);
  background:rgba(126,84,45,.014);
}

html[data-theme="light"] .reader-chapter-discovery-v5340__head strong,
html[data-theme="light"] .reader-chapter-discovery-v5340__cards strong,
html[data-theme="light"] .reader-chapter-discovery-v5340__terms strong{
  color:rgba(76,53,38,.76);
}

@media(max-width:640px){
  .reader-chapter-discovery-v5340__cards,
  .reader-chapter-discovery-v5340__terms{
    grid-template-columns:1fr 1fr;
  }

  .reader-chapter-discovery-v5340__actions{
    align-items:stretch;
    flex-direction:column;
  }

  .reader-chapter-discovery-v5340__actions a,
  .reader-chapter-discovery-v5340__actions button{
    width:100%;
    box-sizing:border-box;
    text-align:center;
  }
}

@media(max-width:420px){
  .reader-chapter-discovery-v5340__cards,
  .reader-chapter-discovery-v5340__terms{
    grid-template-columns:1fr;
  }
}

@media(prefers-reduced-motion:reduce){
  .reader-chapter-discovery-v5340{
    transition:none;
    transform:none;
  }
}


/* TENIMPER v53.41 — post-chapter reflection */
.reader-chapter-discovery-v5340__actions{
  flex-wrap:wrap;
}

.reader-chapter-discovery-v5340__actions [data-reader-discovery-reflection]{
  border-color:rgba(188,144,79,.14);
  background:rgba(188,144,79,.025);
  color:rgba(231,195,145,.78);
}

.reader-chapter-discovery-v5340__actions [data-reader-discovery-reflection]:hover{
  border-color:rgba(188,144,79,.22);
  background:rgba(188,144,79,.045);
}

html[data-theme="light"] .reader-chapter-discovery-v5340__actions [data-reader-discovery-reflection]{
  border-color:rgba(126,84,45,.13);
  background:rgba(126,84,45,.022);
  color:rgba(105,72,45,.74);
}

@media(max-width:720px){
  .reader-chapter-discovery-v5340__actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .reader-chapter-discovery-v5340__actions a,
  .reader-chapter-discovery-v5340__actions button{
    width:100%;
    box-sizing:border-box;
    text-align:center;
  }
}

@media(max-width:480px){
  .reader-chapter-discovery-v5340__actions{
    grid-template-columns:1fr;
  }
}
