/* 月読堂 — themes are CSS variables on <html> */
html, html.th-arc {
  --bg0:#0a1024; --bg1:#0f1730; --bg2:#121b36; --bg3:#0d152c; --strip:#0b1226;
  --bd:#2c4680; --bd2:#3a5088; --bd3:#4d68a6; --btn:#18244a; --row:#26365e;
  --win1:#24386a; --win2:#1a2a52;
  --acc:#e6c873; --acc2:#f0d58a; --hi:#c0303e; --mut:#a7b4d0;
  --tx:#e8edf7; --tx2:#f4f6fb;
  --theme-bg:url(/img/theme/arc/bg.jpg); --theme-hdr:url(/img/theme/arc/header.jpg);
}
html.th-ao {
  --bg0:#0c0808; --bg1:#17100f; --bg2:#1d1414; --bg3:#140d0d; --strip:#120a0a;
  --bd:#6b1f24; --bd2:#5a2a2c; --bd3:#8a3a3e; --btn:#2a1a1b; --row:#3a2224;
  --win1:#4a1c1f; --win2:#2e1415;
  --acc:#5fc7d6; --acc2:#8fe0ea; --hi:#e04a50; --mut:#c8b4b2;
  --theme-bg:url(/img/theme/ao/bg.jpg); --theme-hdr:url(/img/theme/ao/header.jpg);
}
html.th-al {
  --bg0:#09080c; --bg1:#121117; --bg2:#17161d; --bg3:#0f0e13; --strip:#0b0a0e;
  --bd:#3c3650; --bd2:#3a3646; --bd3:#5d5670; --btn:#201e28; --row:#2a2733;
  --win1:#2b2838; --win2:#1c1a24;
  --acc:#d8d4e4; --acc2:#ece8f6; --hi:#8e7cc3; --mut:#b1acc0;
  --theme-bg:url(/img/theme/al/bg.jpg); --theme-hdr:url(/img/theme/al/header.jpg);
}
html.th-ar {
  --bg0:#0a1024; --bg1:#0e1838; --bg2:#122046; --bg3:#0d152c; --strip:#0b1226;
  --bd:#1f3f8f; --bd2:#3a5088; --bd3:#4d68a6; --btn:#18244a; --row:#26365e;
  --win1:#24386a; --win2:#1a2a52;
  --acc:#f1cf63; --acc2:#f7dd85; --hi:#4fb08a; --mut:#a7b4d0;
  --theme-bg:url(/img/theme/ar/bg.jpg); --theme-hdr:url(/img/theme/ar/header.jpg);
}

* { box-sizing: border-box; }
body {
  margin: 0; min-width: 1220px; padding: 40px 0 56px; position: relative;
  background: var(--bg0) var(--theme-bg) no-repeat center 35% / cover fixed;
  color: var(--tx); font: 12px/1.7 'Zen Kaku Gothic New', sans-serif;
}
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc2); text-decoration: underline; }
img { display: block; }
.min { font-family: 'Shippori Mincho', serif; }
.pix { font-family: 'DotGothic16', sans-serif; }
.mut { color: var(--mut); }

/* margin lettering */
.lettering { position: absolute; left: 78px; top: 64px; writing-mode: vertical-rl; font: 92px/1 'Zen Antique', serif; letter-spacing: .2em; color: var(--tx2); text-shadow: 0 0 22px rgba(150,180,240,.55), 3px 3px 0 rgba(230,200,115,.45); pointer-events: none; }
.lettering-rule { position: absolute; left: 62px; top: 64px; width: 1px; height: 700px; background: linear-gradient(var(--acc), transparent); }
.lettering-small { position: absolute; left: 188px; top: 64px; writing-mode: vertical-rl; font: 12px 'Shippori Mincho', serif; letter-spacing: .5em; color: var(--acc); }

.wrap { width: 1180px; margin: 0 auto; background: var(--bg1); border: 1px solid var(--bd2); box-shadow: 0 0 0 4px var(--bg0), 0 0 0 5px var(--bd), 0 0 60px rgba(0,0,0,.6); position: relative; }
.strip { display: flex; justify-content: space-between; padding: 3px 10px; border-bottom: 1px solid var(--bd); font: 11px 'DotGothic16', sans-serif; color: #b4c0da; background: var(--strip); }

/* header */
.hdr { position: relative; overflow: hidden; border-bottom: 1px solid var(--acc); background: var(--bg0) var(--theme-hdr) center / cover no-repeat; }
.hdr::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,12,24,.9) 0%, rgba(8,12,24,.5) 34%, rgba(8,12,24,0) 58%); }
.hdr.home { height: 260px; }
.hdr.sub { height: 140px; }
.logo { position: absolute; left: 56px; top: 50px; z-index: 1; }
.logo .name { font: 800 84px/1 'Shippori Mincho', serif; color: var(--tx2); letter-spacing: .08em; text-shadow: 0 0 18px rgba(0,0,0,.8); }
.logo .name { padding-bottom: 6px; }
.logo .kana { margin-top: 14px; font: 13px 'Shippori Mincho', serif; letter-spacing: 1.05em; color: var(--acc); }
.logo .rule { margin-top: 16px; width: 200px; border-top: 1px solid var(--acc); }
.logo .tagline { margin-top: 10px; font: 14px 'Shippori Mincho', serif; letter-spacing: .2em; text-shadow: 0 0 4px #000; }
.sublogo { position: absolute; left: 40px; top: 46px; z-index: 1; display: flex; flex-direction: column; }
.sublogo:hover { text-decoration: none; }
.sublogo .name { font: 800 44px/1 'Shippori Mincho', serif; color: var(--tx2); letter-spacing: .08em; text-shadow: 0 0 12px rgba(0,0,0,.8); }
.sublogo .kana { margin-top: 8px; font: 10px 'Shippori Mincho', serif; letter-spacing: .95em; color: var(--acc); }
.pagetitle { position: absolute; left: 300px; top: 44px; z-index: 1; display: flex; align-items: center; gap: 14px; }
.pagetitle span { width: 1px; height: 52px; background: var(--acc); }
.pagetitle h1 { margin: 0; font: 800 34px 'Shippori Mincho', serif; color: var(--tx2); letter-spacing: .14em; text-shadow: 0 0 10px rgba(0,0,0,.8); }

/* columns */
.cols { display: flex; align-items: stretch; }
.side { width: 184px; flex: none; border-right: 1px solid var(--bd); background: var(--bg3); padding: 14px 12px; display: flex; flex-direction: column; gap: 18px; }
.main { flex: 1; min-width: 0; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 22px; position: relative; }
.right { width: 300px; flex: none; border-left: 1px solid var(--bd); background: var(--bg3); padding: 14px 16px; display: flex; flex-direction: column; gap: 18px; }

/* section headings */
.bar { margin: 0; color: var(--tx2); font: 600 16px 'Shippori Mincho', serif; letter-spacing: .16em; padding: 0 2px 5px; border-bottom: 1px solid rgba(244,246,251,.5); position: relative; }
.bar::after, .bar-s::after { content: ''; position: absolute; right: 2px; width: 6px; height: 6px; background: var(--hi); transform: rotate(45deg); bottom: -4px; }
.bar-s { margin: 0; color: var(--tx2); font: 600 13px 'Shippori Mincho', serif; letter-spacing: .14em; padding: 0 2px 4px; border-bottom: 1px solid rgba(244,246,251,.45); position: relative; }
.bar-s::after { width: 5px; height: 5px; bottom: -3px; }
.bar .gold { color: var(--acc); }
.panel { margin-top: 8px; border: 1px solid var(--bd); background: var(--bg2); }

/* menu */
.menu { display: flex; flex-direction: column; gap: 4px; }
.mi { position: relative; display: block; width: 160px; height: 44px; border: 1px solid var(--bd2); overflow: hidden; }
.mi img { width: 160px; height: 44px; object-fit: cover; filter: brightness(.62) saturate(.85); }
.mi span { position: absolute; right: 8px; bottom: 5px; font: 800 15px 'Shippori Mincho', serif; color: #fff; letter-spacing: .08em; text-shadow: 0 0 4px #000, 0 0 2px #000; }
.mi:hover { border-color: var(--acc); text-decoration: none; }
.mi:hover img, .mi.on img { filter: brightness(.9); }
.mi.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }

/* BGM */
.bgm { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.bgm .cover { width: 138px; height: 138px; object-fit: cover; border: 1px solid var(--bd3); }
.ticker { height: 40px; overflow: hidden; border-top: 1px dotted var(--bd2); border-bottom: 1px dotted var(--bd2); }
.ticker-in { animation: tick 9s linear infinite; }
.ticker-in div { height: 40px; display: flex; flex-direction: column; justify-content: center; }
.ticker-in small { font-size: 9px; color: var(--mut); }
.ticker-in b { font: 400 13px 'Shippori Mincho', serif; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes tick { 0%,18% { transform: translateY(0) } 33%,51% { transform: translateY(-40px) } 66%,84% { transform: translateY(-80px) } 100% { transform: translateY(-120px) } }
.ctrls { display: flex; justify-content: space-between; }
.cbtn { width: 30px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bd3); background: var(--btn); color: var(--tx); padding: 0; cursor: pointer; }
.cbtn:hover { border-color: var(--acc); color: var(--acc); }
.cbtn svg { width: 12px; height: 12px; fill: currentColor; }
.vol { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--mut); }
.vol input { flex: 1; min-width: 0; accent-color: var(--acc); }

/* theme picker */
.themes { padding: 10px 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.thbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; padding: 0; cursor: pointer; color: var(--mut); font: 9px inherit; }
.thbtn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(244,246,251,.3); filter: grayscale(.6) brightness(.75); }
.thbtn:hover img { filter: none; }
.thbtn.on { color: var(--tx2); }
.thbtn.on img { border-color: var(--acc); filter: none; box-shadow: 0 0 10px var(--acc); }

/* feed */
.feedwin { height: 290px; overflow: hidden; position: relative; background: var(--bg2); }
.feedwin::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(transparent, var(--bg2)); pointer-events: none; }
.feed.pre { transform: translateY(-58px); }
.feed.slide { animation: slide .6s cubic-bezier(.2,.8,.2,1) both; }
.feed.fade { animation: fadein .9s ease both; }
@keyframes slide { from { transform: translateY(-58px) } to { transform: none } }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }
.row { position: relative; height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-bottom: 1px solid var(--row); }
.row img { width: 32px; height: 43px; object-fit: cover; border: 1px solid var(--bd2); flex: none; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font: 400 14px 'Shippori Mincho', serif; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { font-size: 11px; color: var(--mut); }
.row .d { flex: none; font: 11px 'DotGothic16', sans-serif; color: #c6d0e6; }
.row.fresh::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255,240,200,.32) 50%, transparent 65%); background-size: 260% 100%; animation: sweep 1.2s .4s ease-out both, glow 1.6s .3s ease-out both; }
@keyframes sweep { from { background-position: 130% 0 } to { background-position: -70% 0 } }
@keyframes glow { 0% { box-shadow: inset 0 0 0 1px var(--acc) } 100% { box-shadow: inset 0 0 0 1px transparent } }
.ktag { flex: none; width: 72px; text-align: center; font: 10px 'DotGothic16', sans-serif; padding: 1px 0; border: 1px solid; }
.k-read { color: #f0d58a; border-color: #a8904c; } .k-anime { color: #a9c4ee; border-color: #5774ad; } .k-vn { color: #f3a0a8; border-color: #a9434f; } .k-time { color: #d6dbe6; border-color: #6f7891; }

/* VN window */
.vnwin { border: 1px solid var(--bd3); background: var(--bg2); box-shadow: 3px 3px 0 var(--bg0); }
.vnwin .tb { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(var(--win1), var(--win2)); border-bottom: 1px solid var(--bd3); padding: 2px 8px; font: 11px 'DotGothic16', sans-serif; }
.vnwin .tb i { display: inline-block; width: 11px; height: 9px; border: 1px solid #8fa8d4; margin-left: 3px; }
.vnwin .body { position: relative; padding: 26px 16px 14px; }
.nametag { position: absolute; left: 16px; top: 10px; background: var(--acc); color: var(--bg1); font: 600 12px 'Shippori Mincho', serif; padding: 1px 14px; letter-spacing: .2em; }
.vnbox { border: 1px solid var(--bd3); background: rgba(10,16,36,.75); border-radius: 4px; padding: 16px 18px; height: 300px; display: flex; justify-content: space-between; }
.vnbox p { margin: 0; writing-mode: vertical-lr; font: 15px/2.1 'Shippori Mincho', serif; letter-spacing: .12em; color: var(--tx2); }
.vnbox .more { align-self: flex-end; color: var(--acc); font-size: 11px; }

/* stat tiles */
.stat { border: 1px solid var(--bd2); padding: 4px 8px; }
.stat small { display: block; font-size: 9px; color: var(--mut); }
.stat b { font: 400 15px 'DotGothic16', sans-serif; color: var(--acc2); }
.tile-big { border: 1px solid var(--bd2); background: var(--bg2); padding: 10px 12px; }
.tile-big small { display: block; font-size: 10px; color: var(--mut); }
.tile-big b { display: block; font: 400 22px/1.4 'DotGothic16', sans-serif; color: var(--acc2); }
.tile-big b.off { color: #c6d0e6; }
.tile-big i { font-style: normal; font-size: 10px; color: #8d9abb; }

/* grids */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.g5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.g6 { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.tile { display: block; border: 1px solid var(--bd2); overflow: hidden; background: var(--bg0); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover { border-color: var(--acc); }
.r34 { aspect-ratio: 3/4; } .r11 { aspect-ratio: 1/1; } .r169 { aspect-ratio: 16/9; }

/* right column */
.digits { display: flex; justify-content: center; gap: 4px; margin: 8px 0; }
.digits span { width: 34px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bd3); background: var(--bg0); font: 22px 'DotGothic16', sans-serif; color: var(--acc2); }
.card { position: relative; width: 248px; height: 347px; border: 1px solid var(--acc); box-shadow: 0 0 0 3px var(--bg0), 0 0 0 4px var(--bd3); overflow: hidden; background: var(--bg0); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.card img.on { opacity: 1; }
.dots { display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--acc); background: transparent; padding: 0; cursor: pointer; }
.dots button.on { background: var(--hi); }
.sitebnr { width: 268px; height: 54px; border: 1px solid var(--acc); background: linear-gradient(180deg, var(--bg0), var(--win1)); display: flex; align-items: center; padding-left: 14px; gap: 12px; }
.sitebnr .n { font: 800 24px 'Shippori Mincho', serif; color: var(--tx2); letter-spacing: .1em; }
.sitebnr .s { font: 10px 'DotGothic16', sans-serif; color: var(--acc); }
.btns { padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

/* buttons / tabs */
.tab { border: 1px solid var(--bd2); background: var(--bg2); color: #c6d0e6; font: 12px 'Zen Kaku Gothic New', sans-serif; padding: 4px 14px; cursor: pointer; }
.tab:hover { border-color: var(--acc); color: var(--tx2); }
.tab.on { background: var(--bd); color: #fff; border-color: var(--acc); }
select { background: var(--bg2); color: var(--tx); border: 1px solid var(--bd3); padding: 3px 6px; font: inherit; }

/* stats page */
.heat { display: flex; gap: 2px; }
.heat div { display: flex; flex-direction: column; gap: 2px; }
.heat span { width: 10px; height: 10px; background: #16203f; }
.cv { position: relative; display: block; width: 100%; aspect-ratio: 3/4; border: 1px solid var(--bd2); background: var(--bg0); padding: 0; cursor: pointer; overflow: hidden; }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.cv .tip { display: none; position: absolute; left: 0; right: 0; bottom: 0; background: rgba(10,16,36,.93); border-top: 1px solid var(--acc); padding: 6px 7px; text-align: left; color: var(--tx); font-size: 10px; line-height: 1.55; }
.cv .tip b { display: block; font: 600 12px 'Shippori Mincho', serif; color: #fff; margin-bottom: 2px; }
.cv:hover { border-color: var(--acc); }
.cv:hover .tip { display: block; }
.modal { position: absolute; left: -8px; right: -8px; top: 40px; background: var(--bg1); border: 1px solid var(--acc); box-shadow: 0 0 0 4px var(--bg0), 0 10px 40px rgba(0,0,0,.7); padding: 18px; display: flex; gap: 18px; z-index: 5; }
.modal[hidden] { display: none; }
.modal > img { width: 170px; height: 227px; object-fit: cover; border: 1px solid var(--bd3); flex: none; }
.bargrey { height: 10px; background: repeating-linear-gradient(135deg, var(--bd) 0 4px, var(--win2) 4px 8px); }

/* idol page */
.idolnav { display: flex; gap: 8px; }
.idolnav a { flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--bd2); background: var(--bg2); padding: 8px 12px; font: 600 15px 'Shippori Mincho', serif; color: var(--tx2); }
.idolnav a span { width: 10px; height: 26px; }
.intro { position: relative; border: 1px solid var(--bd2); overflow: hidden; display: flex; gap: 20px; padding: 18px; }
.intro .ghost { position: absolute; right: -10px; top: -10px; writing-mode: vertical-rl; font: 800 120px/1 'Shippori Mincho', serif; opacity: .08; }
.intro .art { width: 270px; height: 360px; flex: none; overflow: hidden; position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--bg0), 0 0 0 4px var(--bd2); }
.intro .art img { width: 100%; height: 100%; object-fit: cover; }
.intro .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.intro .nm { font: 800 42px/1 'Shippori Mincho', serif; color: #fff; letter-spacing: .1em; }
.prof { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 16px; background: rgba(10,16,36,.6); border: 1px solid var(--bd); padding: 8px 12px; }
.prof div { display: flex; border-bottom: 1px dotted var(--bd2); padding: 3px 0; }
.prof dt { width: 64px; flex: none; font-size: 11px; }
.prof dd { margin: 0; font-size: 12px; }
.shots { display: flex; flex-wrap: wrap; gap: 8px; }
.shots .h { width: 356px; height: 200px; } .shots .v { width: 113px; height: 200px; }
.rotwrap.shots { justify-content: center; }
.shots .x { width: 171px; height: 200px; }
.rot.moving { z-index: 2; box-shadow: 0 0 18px rgba(255,255,255,.25); }
.rot { cursor: default; }
.rot:hover { border-color: var(--bd2); }
.ph { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--mut); border: 1px dashed; }
.sub { display: flex; align-items: center; gap: 8px; font: 600 14px 'Shippori Mincho', serif; color: var(--tx2); margin-bottom: 8px; }
.sub span { width: 4px; height: 16px; }

/* writing */
.post { border: 1px solid var(--bd2); background: var(--bg2); }
.post header { padding: 12px 18px; border-bottom: 1px solid var(--bd); display: flex; gap: 16px; align-items: center; }
.post .author { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; flex: none; }
.post .avatar { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--bd3); background: var(--bg0); }
.post .uname { font-size: 11px; color: var(--acc2); max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .ptitle { flex: 1; min-width: 0; padding-left: 16px; border-left: 1px solid var(--bd); }
.post .pcat { font-size: 10px; color: var(--acc); }
.post .pdate { font-size: 11px; align-self: flex-end; }
.post h2 { margin: 0; font: 800 26px 'Shippori Mincho', serif; color: #fff; letter-spacing: .1em; }
.post .content { display: flex; gap: 20px; padding: 20px 18px; }
.post .content > img { width: 240px; height: 427px; object-fit: cover; border: 1px solid var(--bd3); flex: none; }
.post .content.noart .tate { height: 427px; }
.yoko { flex: 1; min-width: 0; min-height: 427px; }
.yoko div { font: 16px/2 'Shippori Mincho', serif; letter-spacing: .04em; color: var(--tx2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tate { flex: 1; min-width: 0; height: 427px; overflow-x: auto; display: flex; justify-content: flex-end; }
.tate div { writing-mode: vertical-rl; font: 17px/2.2 'Shippori Mincho', serif; letter-spacing: .12em; color: var(--tx2); height: 100%; white-space: pre-wrap; }
.tcy { text-combine-upright: all; }
.list a { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px dotted var(--bd2); color: var(--tx); }

footer { background: var(--bg0); border-top: 1px solid var(--acc); text-align: center; padding: 10px; font-size: 10px; color: #b4c0da; }
footer b { display: block; font: 400 13px 'Shippori Mincho', serif; letter-spacing: .25em; color: var(--tx2); }
.heat .lv1, .sw.lv1 { background: #22336a; } .heat .lv2, .sw.lv2 { background: #2f4f9a; } .heat .lv3, .sw.lv3 { background: #4a73c8; } .heat .lv4, .sw.lv4 { background: #8fb0ea; }
.sw { display: inline-block; width: 10px; height: 10px; background: #16203f; }
.barfill { height: 10px; background: linear-gradient(90deg, var(--bd3), var(--acc)); }
.nocover { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 6px; text-align: center; font-size: 11px; color: var(--tx2); background: linear-gradient(160deg, var(--win1), var(--bg0)); }
.cv[hidden] { display: none; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.pager .tab[disabled] { opacity: .4; cursor: default; }
.chart { padding: 12px 10px 10px; color: var(--mut); }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 10px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.sublogo .name, .sublogo .kana, .logo .name, .logo .kana, .logo .tagline, .pagetitle h1 { white-space: nowrap; }
.chart { position: relative; }
.charttip { position: absolute; z-index: 3; pointer-events: none; background: rgba(6,10,22,.95); border: 1px solid var(--bd3); padding: 6px 10px; font-size: 11px; line-height: 1.6; color: var(--tx); white-space: nowrap; }
.charttip b { display: block; color: var(--tx2); }
.charttip i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; }
.chart .hit:hover { fill: rgba(255,255,255,.04); }

@media (max-width: 1599px) { .lettering, .lettering-rule, .lettering-small { display: none; } }
.thbtn span { white-space: nowrap; }

.rot { position: relative; overflow: hidden; }
.rot img.in { animation: popin .8s ease-out; }
.rot.flash::after { content: ''; position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,250,230,.55) 30%, transparent 62%); animation: flash .8s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; transform: scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes popin { from { opacity: 0; filter: brightness(2.4) blur(4px); transform: scale(1.08); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rot img.in, .rot.flash::after { animation: none; } }

.g7 { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; }

.fanstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; }
.fanstrip::-webkit-scrollbar { display: none; }
.fanstrip.dragging { cursor: grabbing; }
.fanitem { flex: 0 0 calc((100% - 32px) / 5); aspect-ratio: 1 / 1; border: 1px solid var(--bd2); overflow: hidden; background: var(--bg0); }
.fanitem img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.fanitem:hover { border-color: var(--acc); }
#lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(4,6,14,.9); display: flex; align-items: center; justify-content: center; }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border: 1px solid var(--bd3); box-shadow: 0 0 40px rgba(0,0,0,.8); user-select: none; -webkit-user-drag: none; }
.lb-x { position: fixed; top: 18px; right: 24px; width: 44px; height: 44px; border: 1px solid var(--bd3); background: var(--bg1); color: var(--tx2); font-size: 26px; line-height: 1; cursor: pointer; }
.lb-x:hover { border-color: var(--acc); color: var(--acc); }

/* eroge screenshots */
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.ebtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.ebtn { background: var(--btn); color: var(--tx); border: 1px solid var(--bd2); padding: 3px 10px; font: inherit; cursor: pointer; }
.ebtn i { font-style: normal; color: var(--mut); margin-left: 6px; font-size: 10px; }
.ebtn.on, .ebtn:hover { border-color: var(--acc); color: var(--acc2); }
.egame { margin-top: 14px; }
.egame .bar-s i { font: 400 10px sans-serif; font-style: normal; letter-spacing: 0; }
.estrip { margin-top: 8px; }
.estrip + .estrip { margin-top: 8px; }
.estrip .fanitem { flex-basis: calc((100% - 16px) / 3); aspect-ratio: 16 / 9; }
.egame[hidden] { display: none; }
#lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: #0008; color: #fff; border: 0; font-size: 28px; padding: 14px 10px; cursor: pointer; }
#lightbox .lb-prev { left: 12px; } #lightbox .lb-next { right: 12px; }
figure.vid { margin: 0; }
figure.vid figcaption { font-size: 12px; color: var(--tx2); padding: 4px 2px 0; }
.sitebnr-img { display: block; width: 268px; height: 54px; }

/* the site's own pictures: no drag, no long-press save menu (site.js blocks the right-click menu on them) */
.estrip img, .banner img, .menu img, .side img, .thpick img, .btns img, .mat img, .foot img, #net img, #arc img, #arcchat img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
