/* pages shown inside the see-through panel */

:root { --ink: #2a2236; --rose: #6b2f7a; --soft: #5e5068; --gold: #9a6a16; --line: rgba(107, 47, 122, 0.25); }

* { box-sizing: border-box; }
html { background: transparent; }
body {
  margin: 0;
  padding: 14px 16px 10px;
  background: transparent;
  color: var(--ink);
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: var(--rose) transparent;
}

a { color: var(--rose); text-decoration: none; border-bottom: 1px dotted var(--rose); }
a:hover { border-bottom-style: solid; }
::selection { background: var(--rose); color: #fff; }

h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.2;
  color: var(--rose);
  text-wrap: balance;
}
h2::before { content: "\263E  "; font-size: 14px; color: var(--gold); }
h3 {
  margin: 16px 0 6px;
  padding-bottom: 2px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
}
p { margin: 0 0 9px; text-wrap: pretty; }
li, dd, .why { text-wrap: pretty; }

.box { margin: 0 0 14px; }

.updates { list-style: none; margin: 0; padding: 0; }
.updates li { margin: 0 0 6px; }
.updates .date { color: var(--rose); font-weight: bold; margin-right: 6px; }

.toc { margin: 0 0 10px; text-align: center; }
.toc a { margin: 0 3px; }

.profile {
  margin: 0 0 12px;
  scroll-margin-top: 10px;
  padding: 6px 0 6px 10px;
  border-left: 3px solid var(--c, var(--rose));
}
/* senshi index: each card links to her own page */
a.card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 14px;
  align-items: center;
  color: inherit;
  border-bottom: 0;
  border-radius: 0 10px 10px 0;
  transition: background-color 0.2s ease;
}
a.card:hover, a.card:focus-visible { background: rgba(255, 255, 255, 0.55); border-bottom: 0; }
a.card { padding-left: 0; border-left: 0; }
a.card .sym {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", serif;
  font-size: 34px;
  line-height: 1;
  color: var(--c);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c);
}
a.card h4 { margin-bottom: 2px; }
a.card .why { margin: 0; font-style: italic; }
a.card .more { margin: 2px 0 0; font-size: 11px; color: var(--c); letter-spacing: 1px; }

/* a senshi's own page */
.senshi-page { --c: var(--rose); }
.senshi-hero { display: flex; gap: 18px; align-items: center; margin: 0 0 12px; }
.senshi-hero .sym {
  flex: none;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", serif;
  font-size: 62px;
  line-height: 1;
  color: var(--c);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--c), 0 4px 14px rgba(42, 34, 54, 0.15);
}
.senshi-hero .sym.portrait { overflow: hidden; }
.senshi-hero .sym.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.senshi-name { margin: 0; font-size: 28px; color: var(--c); }
.senshi-name::before { content: none; }
.senshi-civ { margin: 2px 0 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-style: italic; }
.senshi-civ span { margin-left: 6px; font-style: normal; font-size: 14px; color: var(--soft); }
.senshi-guard { margin: 2px 0 0; font-size: 11px; letter-spacing: 1px; text-transform: lowercase; color: var(--soft); }
.senshi-meaning { font-style: italic; color: var(--soft); }
.senshi-page h3 { color: var(--c); border-bottom-color: var(--c); }
.senshi-page h4 { margin: 12px 0 2px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; font-weight: 600; color: var(--ink); }
.senshi-page ul { margin: 0 0 10px; padding-left: 18px; }
.senshi-page li { margin: 0 0 5px; }
.facts { display: grid; grid-template-columns: 130px 1fr; gap: 3px 12px; margin: 0 0 10px; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }
ul.spells { list-style: none; padding-left: 0; }
ul.spells li { padding-left: 12px; border-left: 2px solid var(--c); }
.spells .when { margin-left: 6px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--soft); }
.spells .note { color: var(--soft); }
.senshi-nav { display: flex; justify-content: space-between; gap: 10px; margin: 22px 0 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.sources { font-size: 10px; color: var(--soft); }

.portrait-credit { margin-top: 4px; font-size: 11px; color: var(--soft); text-align: center; }
.profile h4 {
  margin: 0 0 3px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--c, var(--rose));
}
.profile h4 small { font-family: Verdana, sans-serif; font-weight: normal; font-size: 11.5px; color: var(--soft); }
.profile dl { display: grid; grid-template-columns: 112px 1fr; gap: 1px 8px; margin: 0 0 4px; }
.profile dt { color: var(--soft); }
.profile dd { margin: 0; }
.profile .why { margin: 4px 0 0; font-style: italic; }

textarea.code {
  width: 100%;
  height: 58px;
  padding: 6px;
  font: 12px/1.4 "Courier New", monospace;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  resize: none;
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.credit { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--soft); text-align: center; }
.credit p { margin: 0 0 2px; }

.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 50;
  font-size: 11px;
  color: var(--gold);
  text-shadow: 0 0 5px #fff;
  animation: twinkle 0.8s ease-out forwards;
}
@keyframes twinkle {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(14px) scale(0.4); }
}

@media (max-width: 420px) {
  .profile dl, .facts { grid-template-columns: 1fr; }
  .profile dt, .facts dt { margin-top: 4px; }
  .senshi-hero .sym { width: 80px; height: 80px; font-size: 46px; }
  .senshi-name { font-size: 24px; }
  .senshi-nav { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sparkle { display: none; } }
