:root { --ink: #2b211b; --paper: #f4efe6; --brown: #5b3a29; --red: #9a2b1d; --line: #d8cdbd; --gold: #e0a43a; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; color: var(--ink); background: var(--paper); }
header { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--brown); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { font-size: 16px; letter-spacing: 1px; } .brand small { display: block; opacity: .75; font-size: 11px; }
.seal { background: var(--red); color: #fff; font-family: "STKaiti", "KaiTi", serif; font-size: 18px; padding: 4px 6px; border-radius: 3px; writing-mode: vertical-rl; line-height: 1; }
nav { display: flex; gap: 6px; align-items: center; }
nav button, nav a, #vrSlot button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 6px 12px; border-radius: 16px; font-size: 13px; cursor: pointer; text-decoration: none; }
nav button.on { background: #fff; color: var(--brown); }
#explodeBox { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 3px 10px; border-radius: 16px; }
#explodeBox input { width: 110px; accent-color: var(--gold); }
#vrSlot button { position: static !important; width: auto !important; left: auto !important; bottom: auto !important; opacity: 1 !important; font: inherit !important; font-size: 13px !important; padding: 6px 12px !important; border-radius: 16px !important; background: transparent !important; }
main { display: grid; grid-template-columns: 220px 1fr 300px; height: calc(100% - 58px); }
#list { overflow: auto; border-right: 1px solid var(--line); background: #fbf8f2; }
.item { padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:hover { background: #f1e8da; } .item.on { background: #ead9c2; border-left: 4px solid var(--red); padding-left: 10px; }
.item b { display: block; font-size: 14px; } .item small { color: #7a6a5c; font-size: 12px; }
.tag { font-size: 10px; padding: 1px 5px; border-radius: 8px; background: #ddd; color: #555; margin-left: 4px; vertical-align: 1px; }
.tag.demo { background: #f6e3c1; color: #8a5a10; } .tag.real { background: #d6ead2; color: #2d6a2d; }
#stage { position: relative; overflow: hidden; background: #dfe3e0; }
#stage canvas { display: block; }
#badge { position: absolute; left: 12px; top: 12px; background: rgba(43,33,27,.78); color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; z-index: 2; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(244,239,230,.85); z-index: 3; font-size: 14px; }
#tip { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; padding: 6px 12px; border-radius: 14px; font-size: 12px; white-space: nowrap; z-index: 2; }
#pad { position: absolute; right: 16px; bottom: 16px; display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(2, 48px); gap: 6px; z-index: 2; }
#pad button { border: none; border-radius: 10px; background: rgba(255,255,255,.8); font-size: 18px; touch-action: none; }
#pad [data-k=f] { grid-column: 2; } #pad [data-k=l] { grid-column: 1; grid-row: 2; } #pad [data-k=b] { grid-column: 2; grid-row: 2; } #pad [data-k=r] { grid-column: 3; grid-row: 2; }
#info { padding: 18px; overflow: auto; border-left: 1px solid var(--line); background: #fbf8f2; }
#info h2 { margin: 0 0 4px; font-family: "STKaiti", "KaiTi", serif; font-size: 24px; }
.meta { color: #7a6a5c; font-size: 12px; margin: 0 0 12px; }
#info p { font-size: 14px; line-height: 1.75; }
#hot { border-top: 2px solid var(--gold); margin-top: 16px; padding-top: 8px; }
#hot h3 { margin: 6px 0; color: var(--red); }
.hint { color: #8a7a6c; font-size: 12px !important; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #ffb648; margin: 0 3px; }
@media (max-width: 820px) {
  main { grid-template-columns: 1fr; grid-template-rows: auto 55vh auto; height: auto; }
  #list { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .item { min-width: 130px; border-bottom: none; border-right: 1px solid var(--line); }
  header { height: auto; flex-wrap: wrap; padding: 8px 10px; gap: 6px; }
  nav button, nav a { padding: 5px 9px; font-size: 12px; }
}
#tour { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 92%; z-index: 2; }
#tour button { background: rgba(43,33,27,.78); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 5px 11px; font-size: 12px; cursor: pointer; }
#tour button.on, #tour #tourPlay { background: #b5622a; border-color: #b5622a; }
#map { position: absolute; right: 12px; top: 12px; background: rgba(255,255,255,.55); border-radius: 4px; z-index: 2; pointer-events: none; }
