/* BAKORA 3D Presentation Theme — Cream, Cocoa & Roasted Amber */
:root {
  --bg: #f7f2e8;
  --paper: #fffdf8;
  --ink: #2b201b;
  --cocoa: #45271a;
  --panel: rgba(36, 23, 17, 0.93);
  --text: #f7f2e8;
  --dim: #c2b2a3;
  --sel: #d78835;
  --line: rgba(247, 242, 232, 0.14);
  color-scheme: dark;
}
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "DM Sans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", sans-serif;
}
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
  background: var(--bg);
}
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
body.idle { cursor: none; }
body.idle .ctrl-dock { opacity: 0; pointer-events: none; transform: translateY(8px); }

.ctrl-dock {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 23, 17, 0.84);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 20;
}
.ctrl-dock .brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text);
  border-right: 1px solid var(--line);
}
.ctrl-dock .brand-pill i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sel);
  color: #2b201b;
  font-style: normal;
  font-weight: 800;
}
.ctrl-dock button {
  all: unset;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--dim);
  transition: background .18s, color .18s;
}
.ctrl-dock button:hover, .ctrl-dock button:focus-visible {
  background: rgba(215, 136, 53, 0.22);
  color: var(--text);
}
.notes {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 28px calc(68px + env(safe-area-inset-bottom, 0px)) 28px;
  background: var(--panel); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px;
}
.notes p { margin: 0; max-width: 72ch; font-size: 17px; white-space: pre-line; }
.notes .meta { color: var(--dim); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.over {
  position: absolute; inset: 0; background: rgba(24, 15, 11, 0.96);
  overflow: auto; padding: 44px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 24px; align-content: start; z-index: 30;
}
.over button { all: unset; cursor: pointer; display: grid; gap: 9px; }
.over .th {
  aspect-ratio: 16 / 9; border-radius: 10px;
  background: linear-gradient(135deg, #3b2217, #20130d) center/cover no-repeat;
  border: 1px solid rgba(215, 136, 53, 0.24);
  outline: 2px solid transparent; outline-offset: 3px;
}
.over button:hover .th, .over button:focus-visible .th, .over button[aria-current=true] .th { outline-color: var(--sel); }
.over span { color: var(--text); font-size: 14px; font-weight: 500; }
.help {
  position: absolute; right: 24px; bottom: 72px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
  display: grid; grid-template-columns: auto auto; gap: 6px 22px; z-index: 25;
}
.help b { font-weight: 600; color: var(--text); } .help span { color: var(--dim); }
.toast {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; transition: opacity .4s; z-index: 25;
}
.load {
  position: absolute; inset: 0; background: var(--bg); color: var(--cocoa);
  display: grid; place-content: center; gap: 16px;
}
.load p { margin: 0; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.load div { width: min(340px, 72vw); height: 10px; border-radius: 999px; border: 1px solid rgba(69,39,26,.22); background: #e8ddca; overflow: hidden; }
.load i { display: block; height: 100%; width: 0; background: var(--sel); transition: width .15s ease; }
