/* Site theme, shared by every page: her cobalt poster look with white cards,
   cherry and yellow accents. Loaded after each page's own styles. */
:root {
  --bg: #1f3fd6;
  --bg2: #ffffff;
  --cherry: #e8173f;
  --cobalt: #1f3fd6;
  --yellow: #ffcd2e;
  --ink: #101b5c;
  --text: #17215a;
  --muted: #5a659c;
  --on-bg: #ffffff;
  --on-bg-muted: rgba(255,255,255,0.82);
}

body {
  background: var(--bg);
  background-image: none;
}

/* the poster graphics stay put while the page scrolls */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/bg.svg') center top / cover no-repeat;
}

h1 .split,
.not-found h1 {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--on-bg);
  text-shadow: 3px 3px 0 var(--cherry);
}

.tagline,
.fine,
.empty,
.loading,
footer {
  color: var(--on-bg-muted);
}

/* small white text can cross the crescent or a star on narrow screens */
.tagline,
.fine,
.empty,
.loading,
footer,
.back-link,
.not-found p {
  text-shadow: 0 1px 2px rgba(16,27,92,0.55);
}

footer .moon {
  color: var(--yellow);
}

.back-link {
  color: var(--on-bg-muted);
}

.back-link:hover {
  color: var(--yellow);
}

.avatar-ring {
  background: linear-gradient(135deg, var(--cherry), var(--yellow));
}

/* white cards with a bold outline and a cherry offset shadow, like her lineart */
.bio,
.profile,
.link-btn,
.game-box,
.entry,
.section,
.shelf-item {
  background: var(--bg2);
  color: var(--text);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--cherry);
}

.link-btn:hover {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--yellow);
}

.profile-row {
  border-bottom-color: rgba(16,27,92,0.12);
}

.status-line {
  color: var(--ink);
  background: var(--bg2);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--cherry);
}

.status-line:hover {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--yellow);
}

.status-line::after {
  background: var(--bg2);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  bottom: -8px;
}

.game-board {
  background:
    radial-gradient(circle at 20% 30%, rgba(232,23,63,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,205,46,0.22), transparent 45%),
    var(--cobalt);
  border: 2px solid var(--ink);
}

.game-overlay {
  background: rgba(16,27,92,0.72);
}

.game-msg {
  color: var(--on-bg);
}

.game-btn {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--cherry);
}

.target {
  background: var(--bg2);
  border: 2px solid var(--cherry);
}

#reveal .backdrop,
#lightbox {
  background: rgba(16,27,92,0.92);
}

#reveal .close-btn {
  background: var(--bg2);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.grid img {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--cherry);
}

.grid img:hover {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--yellow);
}

.entry .illust {
  border: 2px solid var(--ink);
}

/* page links on the cobalt background */
a {
  color: var(--yellow);
}

a:hover {
  color: var(--on-bg);
}

.link-btn,
.link-btn:hover {
  color: var(--text);
}

/* links inside the white cards */
.bio a,
.profile a,
.entry a,
.section a {
  color: var(--cherry);
}

.bio a:hover,
.profile a:hover,
.entry a:hover,
.section a:hover {
  color: var(--cobalt);
}

.not-found p {
  color: var(--on-bg-muted);
}

/* shelf: filter tabs and the little labels on each card */
.tab {
  background: var(--bg2);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--cherry);
}

.tab:hover {
  box-shadow: 2px 2px 0 var(--yellow);
}

.tab.active {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
}

.shelf-item .pill {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.shelf-item .type-record { background: var(--cherry); color: #fff; }
.shelf-item .type-anime { background: var(--cobalt); color: #fff; }
.shelf-item .type-game { background: var(--ink); color: #fff; }
.shelf-item .now { background: var(--yellow); }

.shelf-item .stars .on { color: var(--cherry); }
.shelf-item .stars .off { color: var(--muted); }
.shelf-item .title { color: var(--ink); }
.shelf-item .by { color: var(--muted); }
