:root{
  --bg:            #050505;
  --bg-panel:      #111111;
  --bg-panel-2:    #1b1b1b;
  --line:          #333333;
  --red:           #e91e63;
  --red-bright:   #e91e63;
  --violet:       #555555;
  --bone:         #f2f2f2;
  --bone-dim:     #a8a8a8;
  --shadow:       rgba(0,0,0,.65);
}

*{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--bone);
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:15px;
  line-height:1.65;
  position:relative;
}

body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  z-index:999;
  opacity:.05;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a{ color:var(--red-bright); text-decoration:none; }
a:hover{ text-decoration:underline; text-decoration-color:var(--violet); }
a:focus-visible, button:focus-visible, .pill:focus-visible{
  outline:2px solid var(--red-bright);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; }
}


.shell{
  max-width:1040px;
  margin:0 auto;
  padding:36px 20px 80px;
  display:grid;
  grid-template-columns:250px 1fr;
  gap:34px;
  align-items:start;
}

@media (max-width:760px){
  .shell{ grid-template-columns:1fr; }
}

.sidebar{
  background:var(--bg-panel);
  border:1px solid var(--line);
  padding:22px 20px 26px;
  position:relative;
}

.sidebar::after{
  content:"";
  position:absolute; left:14px; right:14px; bottom:10px; height:1px;
  background:linear-gradient(90deg, transparent, var(--red), transparent);
  opacity:.6;
}

.site-title{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:2.5rem;
  line-height:1;
  color:var(--bone);
  text-shadow:0 0 14px rgba(233,30,99,.35);
  margin:0 0 2px;
}

.site-tagline{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:1.15rem;
  color:var(--red-bright);
  margin:0 0 18px;
}

nav.pills{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:22px;
}

.pill{
  display:block;
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-weight:500;
  letter-spacing:.03em;
  font-size:.92rem;
  color:var(--bone-dim);
  background:var(--bg-panel-2);
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 16px;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}

.pill:hover{
  color:var(--bone);
  border-color:var(--red);
  background:#222222;
  text-decoration:none;
}

.pill.active{
  color:var(--bone);
  background:var(--red);
  border-color:transparent;
}

.widget{
  border-top:1px dashed var(--line);
  padding-top:14px;
  margin-top:14px;
}

.widget h3{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--bone-dim);
  margin:0 0 8px;
}

.marquee{
  overflow:hidden;
  white-space:nowrap;
  border:1px solid var(--line);
  background:#000;
  padding:6px 0;
}

.marquee span{
  display:inline-block;
  padding-left:100%;
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:1.05rem;
  color:var(--red-bright);
  animation:scroll-left 22s linear infinite;
}

@keyframes scroll-left{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-100%); }
}

.badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.badge{
  width:44px; height:44px;
  border:1px solid var(--line);
  background:var(--bg-panel-2);
  display:flex; align-items:center; justify-content:center;
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:.6rem;
  color:var(--bone-dim);
  text-align:center;
}

main{
  background:var(--bg-panel);
  border:1px solid var(--line);
  padding:34px 38px;
  min-width:0;
}

@media (max-width:520px){
  main{ padding:26px 20px; }
}

.page-heading{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-weight:600;
  font-size:1.7rem;
  letter-spacing:.01em;
  color:var(--bone);
  margin:0 0 4px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}

.deck{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:1.2rem;
  color:var(--red-bright);
  margin:14px 0 26px;
}

main p{ max-width:62ch; color:var(--bone); }
main p.muted{ color:var(--bone-dim); }

h2.section{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-weight:600;
  font-size:1.1rem;
  color:var(--bone);
  margin:34px 0 10px;
  padding-left:12px;
  border-left:3px solid var(--red);
}

.torn{
  height:14px;
  margin:30px 0;
  background:
    linear-gradient(135deg, var(--bg-panel) 50%, transparent 50%) 0 0/16px 16px repeat-x,
    linear-gradient(225deg, var(--bg-panel) 50%, transparent 50%) 0 100%/16px 16px repeat-x;
  background-color:transparent;
  border-top:1px solid var(--line);
  position:relative;
}

.book-entry{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}

.book-entry:last-child{ border-bottom:none; }

.book-spine{
  width:56px; height:78px;
  background:linear-gradient(160deg, var(--violet), var(--red));
  border:1px solid var(--line);
  flex-shrink:0;
}

.book-entry h3{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:1rem;
  margin:0 0 4px;
  color:var(--bone);
}

.book-entry .author{
  font-size:.82rem;
  color:var(--bone-dim);
  margin-bottom:8px;
}

.book-entry .note{
  font-size:.9rem;
  color:var(--bone-dim);
  margin:0;
}

.tag{
  display:inline-block;
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:.65rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--red-bright);
  border:1px solid var(--red);
  border-radius:999px;
  padding:2px 9px;
  margin:0 6px 6px 0;
}

.band-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(190px,1fr));
  gap:14px;
  margin-top:18px;
}

.band-card{
  border:1px solid var(--line);
  background:var(--bg-panel-2);
  padding:16px 16px 14px;
  position:relative;
  overflow:hidden;
}

.band-card::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--red), var(--violet));
}

.band-image{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  background:#000;
  border:1px solid var(--line);
  margin:0 0 12px;
}

.band-card h3{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:.98rem;
  margin:6px 0 4px;
  color:var(--bone);
}

.band-card p{
  font-size:.82rem;
  color:var(--bone-dim);
  margin:0;
}

.link-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:16px;
}

.link-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid var(--line);
  background:var(--bg-panel-2);
  padding:13px 18px;
}

.link-row .label{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:.9rem;
  color:var(--bone);
}

.link-row .desc{
  font-size:.8rem;
  color:var(--bone-dim);
}

.btn88{
  width:88px; height:31px;
  border:1px solid var(--line);
  background:var(--red);
  display:flex; align-items:center; justify-content:center;
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-size:.6rem;
  letter-spacing:.04em;
  color:var(--bone);
  text-align:center;
  flex-shrink:0;
}

footer{
  max-width:1040px;
  margin:0 auto;
  padding:0 20px 40px;
  text-align:center;
  font-size:.75rem;
  color:var(--bone-dim);
}

footer .visits{
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  letter-spacing:.05em;
}

.index-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
  margin:22px 0 8px;
}

.index-gallery figure{
  margin:0;
  border:1px solid var(--line);
  background:#080808;
  padding:7px;
}

.index-gallery img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  background:#000;
}

.index-gallery figcaption{
  padding:7px 4px 2px;
  color:var(--bone-dim);
  font-size:.72rem;
  text-align:center;
}

.reading-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 10px}
.reading-btn{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border:1px solid var(--red);background:transparent;color:var(--red-bright);font-family:'MS Gothic','ＭＳ ゴシック','Yu Gothic',monospace;font-size:.72rem;line-height:1.2;text-decoration:none;transition:background .15s ease,color .15s ease,border-color .15s ease}
.reading-btn:hover{background:var(--red);color:var(--bone);border-color:var(--red);text-decoration:none}

.category{
  margin:34px 0 10px;
  border:1px solid var(--line);
  background:var(--bg-panel-2);
}
.category > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  font-family:'MS Gothic', 'ＭＳ ゴシック', 'Yu Gothic', monospace;
  font-weight:600;
  font-size:1.1rem;
  color:var(--bone);
  padding:12px 16px 12px 38px;
  position:relative;
  border-left:3px solid var(--red);
  transition:background .15s ease, color .15s ease;
}
.category > summary::-webkit-details-marker{display:none;}
.category > summary::before{
  content:"[+]";
  position:absolute;
  left:12px;
  color:var(--red-bright);
  font-size:.85rem;
}
.category[open] > summary::before{content:"[-]";}
.category > summary:hover{background:#222222;color:var(--red-bright);}
.category-content{padding:0 16px;border-top:1px solid var(--line);}
.category-content .book-entry:first-child{padding-top:16px;}
.category-content .book-entry:last-child{border-bottom:none;padding-bottom:16px;}
