/* 月読堂 — テーマ2 アルクェイド・夜. Active when <html> has the class "night" (set from the visitor's saved choice).
   Same layout as テーマ1 (aoko.css); only colours, pictures and a few pieces change. Values from the design handoff.
   Every rule starts with html.aoko.night so it outranks the matching aoko.css rule. */

html.aoko.night {
  --blue: #1ccee0; --navy: #0a1a5e; --orange: #ff6070; --ink: #e6f4fa; --sub: #8cc3dd;
  --site: #0a1434; --panel: #0e1c48; --alt: #13285a; --line: #2d6a98; --track: #2d6a98;
  --bg0: #0a1434; --bg1: #0e1c48; --bg2: #0e1c48; --bg3: #13285a; --strip: #000; --bd: #1ccee0; --bd2: #2d6a98; --bd3: #1ccee0;
  --btn: #0e1c48; --row: #13285a; --acc: #9cf1f5; --acc2: #9cf1f5; --hi: #1ccee0; --mut: #8cc3dd; --tx: #e6f4fa; --tx2: #e6f4fa;
  --c-chars: #0f78d0; --c-time: #9cf1f5;
}
html.aoko.night body { background: #08112f; color: var(--ink); }
html.aoko.night a { color: #dff5fb; }

/* ---- page background: sky, then the sliding star tile, then moon + lilies on top (stars never cross them) ----
   All three use the sky's own scale (cover of 2560×1440, centred at 35% height). The star tile is as tall as the sky
   and one loop is exactly one tile width (sky height × 3840 ÷ 1440). */
html.aoko.night .sky-drift { background: var(--d2-sky, url(/img/design/t2/bg_sky.webp)) center 35% / cover no-repeat #08112f; }
html.aoko.night .sky-drift::after { content: ''; position: absolute; inset: 0; background: var(--d2-front, url(/img/design/t2/bg_front.webp)) center 35% / cover no-repeat; }
html.aoko.night .sky-drift div {
  --h: max(56.25vw, 100vh); --loop: calc(var(--h) * var(--d2-sr, 2.66667));
  top: calc((100vh - var(--h)) * .35); height: var(--h); width: calc(100vw + var(--loop));
  background: var(--d2-stars, url(/img/design/t2/bg_stars.webp)) 0 0 / auto 100% repeat-x;
  animation: star-drift 240s linear infinite;
}
@keyframes star-drift { to { transform: translateX(calc(-1 * var(--loop))); } }
@media (prefers-reduced-motion: reduce) { html.aoko.night .sky-drift div { animation: none; } }

/* ---- frame ---- */
html.aoko.night .wrap { background: #0a1434; border: 1px solid #0a1434; outline: 1px solid #cfeef8; }
html.aoko.night .strip { background: #000; color: #fff; border-bottom: 1px solid #cfeef8; }

/* ---- banner ---- */
html.aoko.night .banner .sky { border: 1px solid #cfeef8; outline: 3px solid #0a1434; outline-offset: -4px; }
html.aoko.night .banner .chara { position: absolute; left: 640px; top: -128px; width: 463px; height: 660px; z-index: 5; pointer-events: none; clip-path: inset(0 0 236px 0); }
html.aoko.night .banner.inner .chara { clip-path: inset(0 0 356px 0); }
html.aoko.night .banner .kana { display: block; position: absolute; left: 44px; top: 164px; z-index: 6; color: #fff; font: 10px/1 Px10, sans-serif; letter-spacing: 19px; }
html.aoko.night .banner .tagline { top: 190px; background: #fff; color: #000; }
html.aoko.night .banner.inner .tagline { top: 107px; letter-spacing: 2px; }
html.aoko.night .banner.inner .vcap { top: 14px; font-size: 13px; letter-spacing: 5px; }
html.aoko.night .banner .vcap { text-shadow: 0 0 6px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); }
html.aoko.night .banner .ptitle h1 { -webkit-text-stroke-color: #0a1a5e; filter: drop-shadow(0 0 5px rgba(156, 241, 245, .40)); }

/* ---- columns: same grid; menu buttons ---- */
html.aoko.night .mi { border: 1px solid #0a1434; outline: 1px solid #2d6a98; }
html.aoko.night .mi img { object-position: left center; }
html.aoko.night .mi:hover { outline: 1px solid #2d6a98; }
html.aoko.night .mi.on, html.aoko.night .mi.on:hover { outline: 2px solid #c0303e; }
html.aoko.night .mi span, html.aoko.night .mi.on span {
  font: 700 18px/1 Px, sans-serif;
  text-shadow: -2px -2px 0 #0a1434, -2px -1px 0 #0a1434, -2px 0 0 #0a1434, -2px 1px 0 #0a1434, -2px 2px 0 #0a1434, -1px -2px 0 #0a1434, -1px 2px 0 #0a1434, 0 -2px 0 #0a1434,
               0 2px 0 #0a1434, 1px -2px 0 #0a1434, 1px 2px 0 #0a1434, 2px -2px 0 #0a1434, 2px -1px 0 #0a1434, 2px 0 0 #0a1434, 2px 1px 0 #0a1434, 2px 2px 0 #0a1434,
               -1px -1px 0 #0a1434, 1px -1px 0 #0a1434, -1px 1px 0 #0a1434, 1px 1px 0 #0a1434;
}
html.aoko.night .mi span.s { font-size: 14px; }

/* ---- heading bars: black, cyan edge, crescent, a star strip that fades in, label at the right ---- */
html.aoko.night .bar { gap: 7px; background: #000; border: 1px solid #1ccee0; color: #fff; font: 700 13px/1.4 Px, sans-serif; letter-spacing: 1px; }
html.aoko.night .bar::before { width: 14px; height: 14px; background: url(/img/design/t2/crescent.svg) center / 14px 14px no-repeat; }
html.aoko.night .bar::after {
  display: block; content: ''; position: static; order: 2; flex: 1; align-self: stretch; min-height: 18px; width: auto; height: auto; transform: none;
  background: url(/img/design/t2/bar_stars.svg) var(--o, 0px) center / auto 18px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .7) 40%, #000 75%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .7) 40%, #000 75%);
}
html.aoko.night .bar b { order: 1; }
html.aoko.night .bar i { order: 3; margin-left: 0; background: #000; padding: 0 4px; text-shadow: none; color: #fff; }

/* ---- panels and tables ---- */
html.aoko.night .panel { background: #0e1c48; border: 1px solid #1ccee0; border-top: 0; }
html.aoko.night .sm { color: #8cc3dd; }
html.aoko.night table.rows td { border-bottom-color: #2d6a98; }
html.aoko.night table.rows td.d { color: #ff6070; }
html.aoko.night table.rows td.tt img, html.aoko.night table.rows td.tt .nc { background: #0a1434; border-color: #2d6a98; }
html.aoko.night .rows.clog td.pd { color: #ff6070; font: 10px Px10, sans-serif; }

/* いま読んでいるもの */
html.aoko.night .now .nowtitle { color: #e6f4fa; }
html.aoko.night .now .nowcover.ph { background: #0a1434; }
html.aoko.night .kv b { color: #9cf1f5; }

/* 音楽 */
html.aoko.night .bgm .cover { border-color: #2d6a98; }
html.aoko.night .bgm .prog { background: #2d6a98; }
html.aoko.night .bgm .prog div { background: #1ccee0; }
html.aoko.night .bgm .ctl button { border-color: #dff5fb; background: transparent; color: #dff5fb; }
html.aoko.night .bgm .ctl button.on { background: #dff5fb; color: #0e1c48; }
html.aoko.night .bgm .ctl button:hover { border-color: #9cf1f5; color: #9cf1f5; }
html.aoko.night .bgm .ctl button.on:hover { color: #0e1c48; }

/* キリ番 */
html.aoko.night .kiri .cnt span { background: #000; color: #fff; border-color: #2d6a98; }

/* 御挨拶: the art is the whole panel background (626×199) */
html.aoko.night .greet .gart { left: 0; top: 0; right: auto; bottom: auto; width: 626px; height: 199px; }

/* お気に入り */
html.aoko.night .fav > div, html.aoko.night .fav .more { background: #000; border-color: #2d6a98; }
html.aoko.night .fav i { background: #000; color: #fff; }
html.aoko.night .fav .more { background: #13285a; color: #dff5fb; }
html.aoko.night .fav .empty { background: #13285a; }

/* right column */
html.aoko.night .sitebnr-img, html.aoko.night .minibnr { border-color: #fff; outline-color: #2d6a98; }

/* テーマ panel */
html.aoko.night .thpick { color: #8cc3dd; }
html.aoko.night .thpick .thimg { background: #0a1434; border-color: #2d6a98; }
html.aoko.night .thpick:hover .thimg { border-color: #9cf1f5; }
html.aoko.night .thpick.on .thimg { border-color: #c0303e; outline: 1px solid #c0303e; }
html.aoko.night .thpick.on .thname { color: #fff; }

/* Web拍手 */
html.aoko.night .clap-btn, html.aoko.night .clap-send { background: #13285a; color: #dff5fb; font-weight: 700; border: 1px solid #1ccee0; outline: 1px solid #0a1434; outline-offset: -5px; }
html.aoko.night .clap-btn:hover, html.aoko.night .clap-send:hover { filter: none; background: #17336e; border-color: #9cf1f5; color: #9cf1f5; }
html.aoko.night .clap-done p { font-size: 13px; color: #9cf1f5; margin-top: 8px; }
html.aoko.night .clap-done textarea { background: #0a1434; border: 1px solid #2d6a98; color: #e6f4fa; }
html.aoko.night .clap-done textarea:focus { border-color: #1ccee0; outline: 0; }

/* ---- footer: water, then the petals, text at the bottom left ---- */
html.aoko.night .foot { margin-top: 10px; border-top: 1px solid #1ccee0; overflow: hidden;
  background: var(--d2-petals, url(/img/design/t2/petals.webp)) left top / 1180px 230px no-repeat, var(--d2-foot, url(/img/design/t2/footer.webp)) left top / 1180px 230px no-repeat, #0a1434; }
html.aoko.night .foot .ft { left: 24px; right: auto; bottom: 22px; text-align: left; font: 10px/1.4 Px10, sans-serif; text-shadow: 0 0 4px #0a1434, 0 0 8px #0a1434, 0 0 12px #0a1434; }
html.aoko.night .foot .ft b { display: block; margin-bottom: 4px; font: 800 26px/1.2 'Shippori Mincho', serif; letter-spacing: 8px; }
html.aoko.night .foot .ft br { display: none; }

/* ================= inner pages ================= */

/* tabs and the count box */
html.aoko.night .tabs { gap: 4px; }
html.aoko.night .tabs .tab { background: #0e1c48; border: 1px solid #1ccee0; color: #dff5fb; font: 700 12px/1.2 Px, sans-serif; padding: 4px 16px; }
html.aoko.night .tabs .tab i { color: #8cc3dd; opacity: 1; }
html.aoko.night .tabs .tab:hover { background: #13285a; border-color: #9cf1f5; color: #9cf1f5; }
html.aoko.night .tabs .tab:hover i { color: #9cf1f5; }
html.aoko.night .tabs .tab.on, html.aoko.night .tabs .tab.on:hover { background: #c0303e; border-color: #c0303e; color: #fff; }
html.aoko.night .tabs .tab.on i { color: #fff; }
html.aoko.night .countbox { background: #0e1c48; border: 1px solid #1ccee0; padding: 4px 12px; color: #e6f4fa; }
html.aoko.night .countbox b { color: #9cf1f5; }

/* 日本語記録: totals, covers, pages, chart */
html.aoko.night .tile-big { background: #13285a; border: 1px solid #2d6a98; padding: 8px 12px; }
html.aoko.night .tile-big small { color: #8cc3dd; }
html.aoko.night .tile-big b { color: #9cf1f5; }
html.aoko.night .tile-big i { color: #8cc3dd; }
html.aoko.night .cv { background: #000; border: 1px solid #2d6a98; padding: 2px; }
html.aoko.night .cv:hover { border-color: #9cf1f5; }
html.aoko.night .cv .tip { background: rgba(14, 28, 72, .95); border-top: 1px solid #1ccee0; color: #e6f4fa; }
html.aoko.night .nocover { background: #13285a; color: #8cc3dd; }
html.aoko.night .pglink { color: #dff5fb; }
html.aoko.night .pager b { color: #9cf1f5; }
html.aoko.night .chart { color: #8cc3dd; }
html.aoko.night .chart text { opacity: 1; font-family: Px10, sans-serif; }
html.aoko.night .chart text.cur { fill: #ff6070; }
html.aoko.night .chart line.gl { stroke: #1d3a6e; opacity: 1; }
html.aoko.night .chart line.ax { stroke: #2d6a98; opacity: 1; }
html.aoko.night .chart .legend { margin-top: 12px; color: #e6f4fa; font: 10px Px10, sans-serif; }
html.aoko.night .chart .legend i { border-radius: 0; }
html.aoko.night .charttip { min-width: 132px; padding: 0; background: #0e1c48; border: 1px solid #1ccee0; box-shadow: 0 2px 0 #0a1434; color: #e6f4fa; font: 12px/1.4 Px, sans-serif; }
html.aoko.night .charttip b { display: block; background: #000; color: #fff; font: 10px/1.4 Px10, sans-serif; padding: 2px 8px; border-bottom: 1px solid #1ccee0; }
html.aoko.night .charttip span { display: flex; justify-content: space-between; gap: 14px; padding: 5px 8px; }
html.aoko.night .charttip i { display: none; }
html.aoko.night .charttip em { margin: 0; color: #9cf1f5; }
html.aoko.night .modal { background: #0e1c48; border: 1px solid #1ccee0; box-shadow: 0 0 0 4px #0a1434, 0 10px 40px rgba(0, 0, 0, .6); color: #e6f4fa; }
html.aoko.night .modal [data-m=title] { color: #9cf1f5 !important; }
html.aoko.night .modal > img { border-color: #2d6a98; }
html.aoko.night .stat { background: #13285a; border: 1px solid #2d6a98; }
html.aoko.night .stat b { color: #9cf1f5; }

/* 書き物 */
html.aoko.night .panel.post { background: #0e1c48; border: 1px solid #1ccee0; border-top: 0; }
html.aoko.night .post header { padding: 12px 14px; border-bottom: 1px solid #2d6a98; background: none; overflow: hidden; }
html.aoko.night .post header::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 420px; pointer-events: none;
  background: var(--d2-stars, url(/img/design/t2/bg_stars.webp)) -900px -420px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
html.aoko.night .post header > * { position: relative; }
html.aoko.night .post .avatar { background: #0a1434; border: 1px solid #1ccee0; }
html.aoko.night .post .uname { color: #8cc3dd; }
html.aoko.night .ptag { background: #0a1434; color: #9cf1f5; border: 1px solid #1ccee0; line-height: 14px; }
html.aoko.night .post h2 { font: 800 24px/1.3 'Shippori Mincho', serif; letter-spacing: 2px; color: #e6f4fa; text-shadow: 0 0 10px rgba(28, 206, 224, .45); }
html.aoko.night .post .content { padding: 16px; gap: 18px; }
html.aoko.night .post .part.mat { padding: 6px; }
html.aoko.night .post .pbody { font: 14px/2.1 Px, sans-serif; color: #e6f4fa; }
html.aoko.night .post .pbody p { margin: 0 0 14px; }
html.aoko.night table.plist td { padding: 7px 10px; }
html.aoko.night table.plist tr:hover { background: #17336e; }
html.aoko.night table.plist .pd { color: #ff6070; width: 96px; }
html.aoko.night table.plist .ptt a { color: #e6f4fa; font-size: 13px; }
html.aoko.night table.plist .ptt a:hover, html.aoko.night table.plist tr.cur .ptt a { color: #9cf1f5; }
html.aoko.night table.plist .pa a { color: #dff5fb; }
html.aoko.night .spoil { color: #13285a; background: #13285a; padding: 0 2px; }
html.aoko.night .spoil::selection { color: #0a1434; background: #1ccee0; }

/* shared tile: thumbnails and framed screenshots (hover adds a glow and a 拡大 label) */
html.aoko.night .tile, html.aoko.night .fanitem { position: relative; background: #0a1434; border: 1px solid #2d6a98; padding: 3px; }
html.aoko.night .tile:hover, html.aoko.night .fanitem:hover { border-color: #9cf1f5; outline: 0; box-shadow: 0 0 0 1px #9cf1f5, 0 0 12px rgba(28, 206, 224, .45); }
html.aoko.night .tile.lbx:hover::after, html.aoko.night .fanitem:hover::after { content: '拡大'; position: absolute; right: 0; bottom: 0; z-index: 2; background: #000; color: #9cf1f5;
  font: 10px/1.4 Px10, sans-serif; padding: 0 5px; border-left: 1px solid #1ccee0; border-top: 1px solid #1ccee0; }

/* lightbox (stays dark) */
html.aoko.night #lightbox { background: rgba(2, 4, 12, .93); }
html.aoko.night #lightbox img { background: #000; padding: 4px; border: 1px solid #cfeef8; box-shadow: none; }
html.aoko.night .lb-x, html.aoko.night #lightbox .lb-nav { background: #0e1c48; border: 1px solid #1ccee0; color: #dff5fb; }
html.aoko.night .lb-x { width: 36px; height: 36px; right: 28px; top: 24px; font-size: 22px; }
html.aoko.night #lightbox .lb-nav { width: 40px; height: 72px; padding: 0; font-size: 24px; }
html.aoko.night #lightbox .lb-prev { left: 28px; } html.aoko.night #lightbox .lb-next { right: 28px; }
html.aoko.night .lb-x:hover, html.aoko.night #lightbox .lb-nav:hover { background: #13285a; border-color: #9cf1f5; color: #9cf1f5; }

/* 動画 */
html.aoko.night figure.vid { background: #0a1434; border: 1px solid #2d6a98; padding: 3px; }
html.aoko.night .vbig { width: 64px; height: 44px; margin: -22px 0 0 -32px; border-radius: 0; border: 1px solid #1ccee0; background: rgba(14, 28, 72, .85); color: #dff5fb; padding: 0; box-shadow: none; }
html.aoko.night .vc { gap: 6px; padding: 6px 8px; background: #0e1c48; border-top: 1px solid #1ccee0; }
html.aoko.night .vc button, html.aoko.night .vc button[data-v=play] { width: 24px; height: 16px; border: 1px solid #dff5fb; background: transparent; color: #dff5fb; font-size: 8px; }
html.aoko.night .vc button.on { background: #dff5fb; color: #0e1c48; }
html.aoko.night .vc button:hover { border-color: #9cf1f5; color: #9cf1f5; }
html.aoko.night .vc button.on:hover { color: #0e1c48; }
html.aoko.night .vt { color: #8cc3dd; }
html.aoko.night .vseek { height: 8px; background: #0a1434; border: 1px solid #2d6a98; }
html.aoko.night .vseek div { background: #1ccee0; }
html.aoko.night figure.vid figcaption { padding: 6px 6px 4px; color: #e6f4fa; }
html.aoko.night figure.vid figcaption i { background: #0a1434; color: #9cf1f5; border: 1px solid #1ccee0; line-height: 14px; padding: 0 6px; }

/* アイドルマスター */
html.aoko.night .panel.iprof { background: #0e1c48; }
html.aoko.night .panel.iprof::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 260px; pointer-events: none;
  background: var(--d2-stars, url(/img/design/t2/bg_stars.webp)) -1400px -300px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
html.aoko.night .iprof .ghost { right: 10px; top: 4px; font-size: 66px; color: rgba(156, 241, 245, .11); -webkit-text-stroke: 0; }
html.aoko.night .iprof .iart.mat { padding: 6px; }
html.aoko.night .iprof .unit { color: #9cf1f5; }
html.aoko.night .iprof .nm { color: #fff; letter-spacing: 4px; -webkit-text-stroke: 6px #0a1a5e; filter: drop-shadow(0 0 5px rgba(156, 241, 245, .40)); }
html.aoko.night .iprof .bio { color: #e6f4fa; font-size: 13px; line-height: 1.9; }
html.aoko.night .prof div { border-bottom-color: #2d6a98; padding: 5px 0; }
html.aoko.night .prof dt { color: #9cf1f5; }
html.aoko.night .prof dd { color: #e6f4fa; }
html.aoko.night .iprof .icv { color: #8cc3dd; font: 10px Px10, sans-serif; }
html.aoko.night .iprof .icv b { color: #9cf1f5; }

/* リンク */
html.aoko.night table.mine td { padding: 7px 10px; }
html.aoko.night table.mine tr:hover { background: #17336e; }
html.aoko.night table.mine .ln { width: 160px; }
html.aoko.night table.mine .ln a { color: #e6f4fa; }
html.aoko.night table.mine .ld { color: #8cc3dd; }
html.aoko.night .panel.bnrpanel { position: relative; padding: 14px 12px; background: #0e1c48; overflow: hidden; }
html.aoko.night .panel.bnrpanel::before { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 420px; pointer-events: none;
  background: var(--d2-stars, url(/img/design/t2/bg_stars.webp)) -900px -420px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
html.aoko.night .panel.bnrpanel > * { position: relative; }
html.aoko.night .bnrtext { color: #e6f4fa; }
html.aoko.night .urlbox { background: #0a1434; border-color: #2d6a98; color: #e6f4fa; }

/* ================= talking アルクェイド (mascot.js), テーマ2 only =================
   Fixed in the right margin; the sprite files are 644×2200 (2×), shown 322×1100 and cut off below mid-thigh by the screen edge. */
#arc { display: none; }
html.aoko.night #arc.show { display: block; }
#arc .arc-body { position: fixed; right: 22px; bottom: -330px; width: 322px; height: 1100px; z-index: 40; animation: arc-rise .35s ease-out; }
#arc .arc-sprite { position: absolute; left: 0; bottom: 0; width: 322px; height: 1100px; pointer-events: none; user-select: none; }
#arc .arc-hit-body { position: absolute; inset: 0; cursor: pointer; }
#arc .arc-hit-head { position: absolute; left: 128px; top: 30px; width: 175px; height: 185px; z-index: 2; cursor: pointer; }
#arc .arc-tip { position: absolute; left: 96px; top: -26px; padding: 2px 8px; background: rgba(0, 0, 0, .65); color: #9cf1f5; font: 10px/1.6 Px10, sans-serif; white-space: nowrap; pointer-events: none; }
#arc .arc-tip[hidden] { display: none; }
#arc .arc-bubble { position: fixed; right: 300px; top: 340px; width: 400px; z-index: 41; cursor: pointer; animation: arc-rise .35s ease-out;
  background: #0e1c48; border: 1px solid #1ccee0; box-shadow: 0 0 0 3px #0a1434, 0 0 16px rgba(28, 206, 224, .35); color: #e6f4fa; }
#arc .arc-bubble::after { content: ''; position: absolute; right: -12px; top: 34px; border: 12px solid transparent; border-right: 0; border-left-color: #1ccee0; }
#arc .arc-bubble::before { content: ''; position: absolute; right: -10px; top: 35px; z-index: 1; border: 11px solid transparent; border-right: 0; border-left-color: #0e1c48; }
#arc .arc-head { display: flex; justify-content: space-between; align-items: center; padding: 3px 10px; background: #000; border-bottom: 1px solid #1ccee0; color: #fff; font: 10px/1.6 Px10, sans-serif; cursor: default; }
#arc .arc-head b { font-weight: 400; color: #9cf1f5; }
#arc .arc-x { padding: 0 2px; border: 0; background: none; color: #dff5fb; font: 14px/1 sans-serif; cursor: pointer; }
#arc .arc-x:hover { color: #9cf1f5; }
#arc .arc-text { min-height: 56px; padding: 12px 14px 10px; font: 15px/1.9 'Zen Kaku Gothic New', sans-serif; white-space: pre-wrap; }
#arc .arc-choices { display: flex; flex-direction: column; gap: 5px; padding: 0 12px; }
#arc .arc-choices:not(:empty) { padding-bottom: 12px; }
#arc .arc-choices button { padding: 5px; background: #0e1c48; border: 1px solid #1ccee0; color: #dff5fb; font: 700 13px/1.4 Px, sans-serif; cursor: pointer; }
#arc .arc-choices button:hover { background: #13285a; border-color: #9cf1f5; color: #9cf1f5; }
#arc .arc-hint { padding: 0 12px 8px; text-align: right; color: #8cc3dd; font: 10px/1.6 Px10, sans-serif; }
#arc .arc-hint:empty { display: none; }
@keyframes arc-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #arc .arc-body, #arc .arc-bubble { animation: none; } }
/* the button that calls her (home, リンク panel) */
.arcbtn, .arcchatbtn { display: block; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.arcbtn img, .arcchatbtn img { width: 88px; height: 31px; outline: 1px solid #2d6a98; }
.arcbtn:hover img, .arcbtn.on img, .arcchatbtn:hover img, .arcchatbtn.on img { outline: 2px solid #9cf1f5; }

/* ================= アルクとチャット (arcchat.js): a 2000s messenger window, テーマ2 only =================
   470px wide, starts at the right of the middle column (left 1180 on a 1920 screen), draggable by its title bar. */
#arcchat { display: none; position: fixed; left: calc(50% + 220px); top: 250px; z-index: 42; width: 470px; font: 12px/1.5 'Zen Kaku Gothic New', sans-serif; color: #e6f4fa; user-select: none;
  background: #0a1434; border: 1px solid #9cf1f5; outline: 2px solid #0a1434; box-shadow: 0 0 0 3px #1ccee0, 6px 8px 0 rgba(0, 0, 0, .45); }
html.aoko.night #arcchat.show { display: block; }
#arcchat.shake { animation: ac-shake .5s linear; }
@keyframes ac-shake { 0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-9px, 3px); } 20% { transform: translate(8px, -4px); } 30% { transform: translate(-7px, -3px); }
  40% { transform: translate(9px, 4px); } 50% { transform: translate(-6px, 2px); } 60% { transform: translate(7px, -3px); } 70% { transform: translate(-5px, 3px); } 80% { transform: translate(4px, -2px); } 90% { transform: translate(-2px, 1px); } }
#arcchat button, #arcchat textarea { font-family: inherit; }
#arcchat .ac-tb { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 8px; background: linear-gradient(#2a62b8, #13285a 55%, #0e1c48); border-bottom: 1px solid #1ccee0; color: #fff; font-weight: 700; cursor: move; }
#arcchat .ac-ic { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e8fbff, #1ccee0 55%, #0f78d0); box-shadow: 0 0 4px #9cf1f5; }
#arcchat .ac-tt { flex: 1; text-shadow: 1px 1px 0 #000; }
#arcchat .ac-bt { width: 20px; height: 18px; padding: 0; border: 1px solid #9cf1f5; background: linear-gradient(#3b7bd0, #13285a); color: #fff; font: 700 11px/16px sans-serif; text-align: center; cursor: pointer; }
#arcchat .ac-bt:hover { background: linear-gradient(#5aa0f0, #1d3a6e); }
#arcchat .ac-bt.x { background: linear-gradient(#e0606e, #8a1f2a); border-color: #ffb0b8; }
#arcchat span.ac-bt { cursor: default; }
#arcchat .ac-menu { display: flex; gap: 14px; padding: 3px 10px; background: #0e1c48; border-bottom: 1px solid #2d6a98; color: #dff5fb; font-size: 11px; }
#arcchat .ac-menu span:hover { color: #9cf1f5; }
#arcchat .ac-to { padding: 6px 10px; background: linear-gradient(#13285a, #0e1c48); border-bottom: 1px solid #2d6a98; font-size: 11px; line-height: 1.6; }
#arcchat .ac-to b { color: #9cf1f5; } #arcchat .ac-to .st { color: #8cc3dd; } #arcchat .ac-to .pm { color: #e6f4fa; font-style: italic; }
#arcchat .ac-body { display: flex; gap: 8px; padding: 8px; }
#arcchat .ac-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#arcchat .ac-log { height: 270px; overflow-y: auto; padding: 6px 8px; background: #061030; border: 1px solid #2d6a98; font-size: 13px; line-height: 1.55; user-select: text; }
#arcchat .ac-log .who { margin-top: 6px; color: #8cc3dd; font-size: 11px; }
#arcchat .ac-log .who.me { color: #7fb0d6; }
#arcchat .ac-log .msg { padding-left: 10px; color: #e6f4fa; white-space: pre-wrap; word-break: break-all; }
#arcchat .ac-log .msg.her { color: #fff; }
#arcchat .ac-log .sys { margin: 6px 0; padding-top: 4px; border-top: 1px dotted #2d6a98; color: #8cc3dd; font-size: 11px; }
#arcchat .ac-log .sys.nudge { color: #ff6070; }
#arcchat .ac-typing { height: 16px; color: #8cc3dd; font-size: 11px; }
#arcchat .ac-tools { display: flex; gap: 4px; }
#arcchat .ac-tools button { padding: 2px 8px; background: #0e1c48; border: 1px solid #1ccee0; color: #dff5fb; font-weight: 700; font-size: 11px; cursor: pointer; }
#arcchat .ac-tools button:hover { background: #13285a; border-color: #9cf1f5; color: #9cf1f5; }
#arcchat .ac-in { display: flex; gap: 6px; }
#arcchat .ac-in textarea { flex: 1; height: 52px; padding: 4px 6px; resize: none; background: #e6f4fa; color: #0a1434; border: 1px solid #1ccee0; font-size: 13px; line-height: 1.5; user-select: text; }
#arcchat .ac-in button { width: 64px; background: linear-gradient(#3b7bd0, #13285a); border: 1px solid #9cf1f5; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
#arcchat .ac-in button:hover { background: linear-gradient(#5aa0f0, #1d3a6e); }
#arcchat .ac-right { width: 108px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#arcchat .ac-dp { width: 100px; height: 100px; box-sizing: border-box; padding: 3px; background: #13285a; border: 1px solid #9cf1f5; }
#arcchat .ac-dp img { display: block; width: 100%; height: 100%; }
#arcchat .ac-dp.me { display: flex; align-items: center; justify-content: center; color: #2d6a98; font-size: 34px; }
#arcchat .ac-cap { margin-top: -4px; color: #8cc3dd; font-size: 10px; }
#arcchat .ac-sb { display: flex; justify-content: space-between; padding: 3px 8px; background: #0e1c48; border-top: 1px solid #2d6a98; color: #8cc3dd; font-size: 10px; }

/* エロゲ撮影帖: thumbnails only, no preview */
html.aoko.night .estrip .fanitem:hover::after { content: none; }
