/* ============ 点读 / 快捷键提示 / 确认框 ============ */
.modal.confirm-m { max-width: 420px; text-align: center; }
.modal.confirm-m .mtitle { margin: 10px 0 4px; }

/* 选项上的小喇叭：点一下只朗读，不作答 */
.csay { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.88); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: pointer; z-index: 3; transition: transform .15s; opacity: .9; }
.csay .emo { width: 18px; height: 18px; pointer-events: none; }
.csay:hover { transform: scale(1.15); opacity: 1; }
/* 只给原本是静态定位的选项容器加 relative（漂浮 / 拖拽类元素本身就是 absolute，不能覆盖） */
.choice, .tile, .cnode { position: relative; }
.food .csay, .sortitem .csay { display: none; }
.choices.compact .csay, .tile .csay, .cnode .csay { width: 24px; height: 24px; right: 3px; bottom: 3px; }
.choices.compact .csay .emo, .tile .csay .emo, .cnode .csay .emo { width: 14px; height: 14px; }
.mcard .mface.back .csay, .sortitem .csay { display: none; }
/* 漂浮 / 移动中的目标、会被喇叭挡住内容的小标签不放喇叭（「读选项」仍可读） */
.bub .csay, .bal .csay, .flabel .csay, .sign .csay, .drop-item .csay, .plabel .csay, .clabel .csay,
.dn-label .csay, .bd-label .csay, .sp-label .csay, .rg-arch .csay, .ar-label .csay, .rh-note .csay,
.sn-item .csay, .mz-tok .csay, .bo-brick .csay, .fd-it .csay, .sl-crate .csay { display: none; }
body[data-theme="pro"] .csay, body[data-theme="neon"] .csay { background: rgba(255,255,255,.16); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.sayall { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 8px; border-radius: 20px; background: var(--panel2); font-size: 14px; font-weight: 600; }
.sayall .emo { width: 22px; height: 22px; }
.reading { animation: reading .9s ease; }
.choice.reading, .tile.reading, .cnode.reading { box-shadow: 0 0 0 4px var(--accent2), var(--shadow) !important; }
@keyframes reading { 0% { transform: scale(1); } 30% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* 键帽：键鼠模式下标在可选项角上 */
.kcap { display: none; position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 6px; font: 700 12px/20px 'Fredoka', sans-serif; text-align: center; color: #2b3a67; background: linear-gradient(#fff, #e6ebf5); border: 1px solid rgba(43,58,103,.35); box-shadow: 0 2px 0 rgba(43,58,103,.35); z-index: 4; pointer-events: none; font-style: normal; letter-spacing: 0; }
body.kbm .kcap { display: block; }
.dbtn > .kcap, .hud-btn > .kcap, .sk > .kcap { left: auto; right: 2px; top: 2px; min-width: 18px; height: 18px; font-size: 10px; line-height: 16px; padding: 0 3px; }
.btn > .kcap { left: auto; right: -6px; top: -8px; }
.back > .kcap, .mclose > .kcap { display: none !important; }
body[data-theme="pro"] .kcap, body[data-theme="neon"] .kcap { color: #eef1ff; background: linear-gradient(#3a3f7a, #23264f); border-color: rgba(255,255,255,.25); box-shadow: 0 2px 0 rgba(0,0,0,.5); }

/* 悬停提示 */
.ktip { position: fixed; z-index: 3000; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(20,24,52,.92); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.ktip.show { opacity: 1; transform: none; }
.ktip kbd, .kb-legend kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 5px; font: 700 12px/18px 'Fredoka', sans-serif; text-align: center; color: #1b1d48; background: linear-gradient(#fff, #dfe4f0); box-shadow: 0 2px 0 #8890b0; margin: 0 1px; }

/* 大游戏按键说明 */
.kb-legend { position: absolute; left: 12px; bottom: 12px; z-index: 30; padding: 8px 12px; border-radius: 12px; background: rgba(10,14,40,.55); color: #fff; font-size: 12px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; backdrop-filter: blur(6px); max-width: 46vw; }
.kb-legend div { display: flex; align-items: center; gap: 8px; }
.kb-legend span { white-space: nowrap; }
.kb-legend b { font-weight: 600; opacity: .9; }
@media (max-height: 520px) { .kb-legend { display: none !important; } }

/* 3D 立绘加载占位：柔光呼吸，渲染好后淡入（不再先闪一下黄色表情） */
img.av-wait { border-radius: 50%; background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.9) 0 18%, rgba(200,215,240,.55) 19% 34%, transparent 35%), radial-gradient(ellipse at 50% 95%, rgba(200,215,240,.55) 0 38%, transparent 40%); animation: avwait 1.2s ease-in-out infinite; }
@keyframes avwait { 50% { opacity: .45; } }
img.av3d { animation: avfade .35s ease-out; }
@keyframes avfade { from { opacity: 0; transform: scale(.96); } }
