/* Arcana の部屋（2026-10-21・あんな指示「Edenと同じ環境で読みたい」）。
   Eden（lectio-app/book.html）の机・光・影・fav・音を、Arcana の本にも置く。
   本の紙とめくりは Arcana のまま。足すのは、本の下の机と、本の上に重ねる光と影だけ。
   名前は本の側の .glow などとぶつからないよう、ぜんぶ ar- を付けた */

/* ── 机。本より下（z-index:-1）。机を選んでいないときは出さず、星空のまま ── */
.ar-desk { position:fixed; inset:0; z-index:-1; pointer-events:none; display:none;
           background-color:var(--d, #3b2618); background-size:1024px auto; }
body.ar-desked .ar-desk { display:block; }
body.ar-desked .sky { display:none; }          /* 机を置いたら星空は隠す */
/* 木：木目の絵を色にかぶせる（胡桃の木） */
.ar-desk.wood { background-image:url("../lectio-app/wood.png"); background-blend-mode:overlay; }
.ar-desk.wood.dark { background-blend-mode:normal; }
/* 写真の机。--pos はその絵ごとの中心 */
.ar-desk.photo { background-image:var(--img); background-size:var(--size, cover); background-position:var(--pos, 50% 50%);
                 background-color:#1a1008; }

/* ── 光。本の上にかぶせる。Eden と同じ重ね方 ── */
.ar-light { display:contents; }
.ar-light > div { position:fixed; inset:0; z-index:3; pointer-events:none; transition:opacity .8s, background .8s; opacity:0; }
.ar-light .ar-grade { mix-blend-mode:multiply; }
.ar-light .ar-tint  { mix-blend-mode:soft-light; }
.ar-light .ar-glow  { mix-blend-mode:screen; }
.ar-light .ar-gobo  { mix-blend-mode:multiply; opacity:0; }
.ar-light .ar-gobo.on { opacity:.55 !important; filter:blur(18px); }
.ar-light .ar-gobo.on.img { opacity:1 !important; filter:none; inset:-3%; animation:none; }
.ar-light .ar-glow.flicker { animation:ar-flicker 2.6s infinite; }
@keyframes ar-flicker { 0%,100%{opacity:1} 18%{opacity:.86} 22%{opacity:.97} 47%{opacity:.9} 62%{opacity:1} 80%{opacity:.84} }

/* ── 部屋のボタン（卓上ランプの印）。右下。ノート交換のボタンと同じ見た目 ── */
.ar-roombtn { position:fixed; right:16px; bottom:16px; z-index:40; width:34px; height:34px; border-radius:50%;
  border:1px solid rgba(240,220,160,.35); background:rgba(0,0,0,.25); cursor:pointer; display:flex;
  align-items:center; justify-content:center; opacity:.6; transition:opacity .2s; padding:0; }
.ar-roombtn:hover, .ar-roombtn.on { opacity:1; }
.ar-roombtn svg { width:18px; height:18px; }
/* 「この日」のボタン（grace）が出ているときは、その左へよける */
body.book-open.peeking .peekbtn { right:58px; }

/* ── 部屋の札。ボタンの上にひらく。三枚（机・光・影／fav／音）を横になぞって移る ── */
.ar-room { position:fixed; bottom:60px; right:16px; z-index:41; width:330px; max-width:calc(100vw - 32px); overflow:hidden;
  background:rgba(24,16,10,.94); border:1px solid rgba(232,201,138,.3); border-radius:10px; padding:0 0 8px;
  font:12px "Hiragino Mincho ProN", serif; color:#f3e3c4; box-sizing:border-box;
  box-shadow:0 14px 34px rgba(0,0,0,.5); text-align:left; }
.ar-room[hidden] { display:none; }
.ar-room .pager { display:flex; align-items:flex-start; transition:transform .38s cubic-bezier(.2,.8,.2,1); }
.ar-room .rpage { flex:0 0 100%; box-sizing:border-box; padding:10px 12px 4px; max-height:calc(76vh - 22px); overflow-y:auto; }
.ar-room .dots { display:flex; justify-content:center; gap:7px; padding-top:4px; }
.ar-room .dots span { width:6px; height:6px; border-radius:50%; background:rgba(232,201,138,.3); cursor:pointer; transition:background .2s; }
.ar-room .dots span.on { background:#e8c98a; }
.ar-room h4 { margin:10px 0 6px; font-size:11px; letter-spacing:.25em; color:#e8c98a; font-weight:600; }
.ar-room .opts { display:flex; flex-wrap:wrap; gap:6px; }
.ar-room .favadd { margin-top:10px; }
.ar-room button { display:flex; align-items:center; gap:6px; font:11px "Hiragino Mincho ProN", serif; color:#f3e3c4;
  background:rgba(255,255,255,.05); border:1px solid rgba(232,201,138,.22); border-radius:999px; padding:3px 10px 3px 4px; cursor:pointer; }
.ar-room button.on { border-color:#e8c98a; background:rgba(232,201,138,.18); }
.ar-room button i { width:14px; height:14px; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); flex:none; }
.ar-room .favadd button { padding:3px 10px; }

/* 音の札（三枚目） */
.ar-room .sounds .h { padding:8px 8px 3px; font-size:10px; letter-spacing:.3em; color:#e8c98a; opacity:.8; }
.ar-room .sounds .s { display:flex; align-items:center; gap:8px; padding:6px 8px; border-radius:6px; cursor:pointer; }
.ar-room .sounds .s:hover { background:rgba(232,201,138,.12); }
.ar-room .sounds .s.on { background:rgba(232,201,138,.22); }
.ar-room .sounds .s i { width:18px; text-align:center; font-style:normal; }
.ar-room .sounds .s b { margin-left:auto; font-weight:400; font-size:10px; opacity:.6; }
.ar-room .sounds .vol { display:flex; align-items:center; gap:8px; padding:8px 8px 4px; border-top:1px solid rgba(232,201,138,.18); margin-top:4px; }
.ar-room .sounds .vol input { flex:1; accent-color:#e8c98a; }
