/* Generated cream plaque overlay aligned over the Sea Monsters drawer face. */
#archive-subject .subject-sea-monsters-generated-plaque{
  position:absolute!important;
  z-index:1!important;
  left:11.05%!important;
  top:30.05%!important;
  width:40.5%!important;
  height:auto!important;
  max-width:none!important;
  pointer-events:none!important;
  user-select:none!important
}
#archive-subject .subject-sea-monsters{
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important
}

/* Fit the complete Froguette image inside the fixed modal rows on short screens. */
.froguette-examination{
  height:100dvh!important;
  max-height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
.froguette-examination[open]{
  display:grid!important;
  grid-template-rows:44px minmax(0,1fr) 64px!important;
  gap:0!important;
  align-content:stretch!important;
  align-items:stretch!important;
  justify-items:stretch!important;
}
.froguette-examination header{height:44px!important;min-height:0!important}
.froguette-exam-stage{
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:4px 0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.froguette-examination .froguette-exam-art{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:min(90vw,100%)!important;
  max-height:100%!important;
  min-width:0!important;
  min-height:0!important;
  flex:none!important;
  object-fit:contain!important;
  margin:auto!important;
}
.froguette-exam-return-slot{
  align-items:flex-start!important;
  justify-content:flex-start!important;
  height:64px!important;
  padding-left:1.8%!important;
}
.froguette-examination .froguette-exam-return{
  align-self:flex-start!important;
  width:min(42vw,280px)!important;
  height:64px!important;
  max-height:64px!important;
  transform:none!important;
}

/* The Cults shade belongs over the closed Cults drawer, never the open Sea Monsters plaque. */
#archive-subject .subject-shade-cults{left:30.7%!important}

/* One flat amber stroke, fitted to the printed face of each open Subject Index plaque. */
#archive-subject .subject-open-link{
  background:transparent!important;
  box-shadow:none!important;
  animation:none!important;
  outline:none!important;
}
#archive-subject .subject-open-link::before{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  box-sizing:border-box;
  border:0!important;
  border-radius:1px;
  box-shadow:0 0 5px rgba(255,168,65,.58),0 0 10px rgba(225,98,22,.32);
  opacity:.82;
  pointer-events:none;
  animation:subject-plaque-ember 2.15s steps(8,end) var(--link-glow-delay,-.35s) infinite alternate;
}
#archive-subject #open-demonic-phenomena::before{inset:7% -4% 0 5%}
#archive-subject #open-vampiric-revenants::before{inset:1.3% 4.5% 4.4% -.7%}
#archive-subject #open-werewolves-lycanthropy::before{inset:1.3% 1.5% 4% -2.3%}
#archive-subject #open-sea-monsters::before{inset:23% 2.5% 13% 9.5%}
#archive-subject .subject-open-link:hover::before,
#archive-subject .subject-open-link:focus-visible::before{opacity:1;box-shadow:0 0 6px rgba(255,204,126,.72),0 0 12px rgba(225,98,22,.44)}
@keyframes subject-plaque-ember{
  0%,12%{opacity:.68;box-shadow:0 0 3px rgba(255,198,112,.44),0 0 7px rgba(210,94,19,.24)}
  37%{opacity:.96;box-shadow:0 0 6px rgba(255,224,158,.68),0 0 12px rgba(255,125,31,.42)}
  58%{opacity:.74;box-shadow:0 0 4px rgba(255,190,105,.52),0 0 8px rgba(210,85,12,.28)}
  76%,100%{opacity:.88;box-shadow:0 0 5px rgba(255,211,139,.6),0 0 10px rgba(225,98,22,.34)}
}
@media(prefers-reduced-motion:reduce){#archive-subject .subject-open-link::before{animation:none!important;opacity:.84}}
