/* 布局：顶部一条工具栏（模式 + 武器），下面要么是可滚动的检查面板，要么是铺满的试玩画布 */
:root { --bg: #14211d; --panel: #1c2d27; --line: #33503f; --fg: #eef4e4; --dim: #a3b8a4; --ember: #ffc94a; --ember-ink: #2a1c05;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
html { padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); background: var(--bg); }
body { background: var(--bg); color: var(--fg); font: 14px/1.5 var(--font); overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
#app { height: 100%; display: flex; flex-direction: column; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px)); background: #101a17; border-bottom: 1px solid var(--line); flex: none; }
.brand { margin-right: auto; display: flex; gap: 8px; align-items: baseline; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.brand em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--dim); }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 2px; gap: 2px; }
.seg button { padding: 4px 12px; border-radius: 7px; color: var(--dim); min-height: 28px; font-size: 13px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ember); color: var(--ember-ink); font-weight: 700; }
@media (max-width: 620px) { .brand em { display: none; } }
@media (max-height: 430px) and (orientation: landscape) { .bar { padding-block: 3px; flex-wrap: nowrap; } .brand span { display: none; } .brand em { display: block; } }
.lab { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 14px; align-content: start; max-width: 1180px; width: 100%; margin-inline: auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 8px; min-width: 0; }
.panel h2 { font-size: 13px; margin: 0; color: var(--dim); font-weight: 600; letter-spacing: .06em; }
.phead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.cv { width: 100%; display: block; border-radius: 9px; touch-action: pan-y; }
.note { margin: 0; font-size: 12px; color: var(--dim); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.realwrap { display: grid; gap: 6px; justify-items: center; max-width: 150px; text-align: center; }
#real { border-radius: 9px; display: block; }
.stage { flex: 1; position: relative; min-height: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud > * { position: absolute; }
.joy { left: max(22px, calc(env(safe-area-inset-left, 0px) + 8px)); bottom: 22px; width: 112px; height: 112px; border-radius: 50%; background: rgba(16, 26, 23, .3); border: 1.5px solid rgba(255, 255, 255, .34); pointer-events: auto; }
.joy i { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; background: rgba(255, 255, 255, .82); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.hint { left: 50%; top: 10px; transform: translateX(-50%); font-size: 12px; padding: 4px 12px; border-radius: 99px; background: rgba(16, 26, 23, .7); white-space: nowrap; transition: opacity .6s; }
.hint:empty, .hint.off { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hint { transition: none; } }
