html, body { margin: 0; height: 100%; overflow: hidden; background: #c9cfc8; font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif; }
canvas { display: block; touch-action: none; }
#panel { position: fixed; left: 16px; top: 16px; width: 300px; max-width: calc(100vw - 32px); box-sizing: border-box;
         padding: 16px 18px; background: rgba(28, 26, 24, 0.82); color: #f3efe8; border-radius: 10px; line-height: 1.6; font-size: 13px; }
#panel h1 { font-size: 17px; margin: 0 0 6px; font-weight: 600; letter-spacing: 0.02em; }
#panel p { margin: 0 0 10px; color: #d9d2c6; }
#spots, #actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 12px; }
#actions { grid-template-columns: 1fr; margin-top: 0; }
#actions:empty { display: none; }
#spots button, #actions button, #vr { font: inherit; border: 1px solid #8a7f70; background: #3a352f; color: #f3efe8; border-radius: 6px; padding: 7px 6px; cursor: pointer; }
#actions button { border-color: #b89a5e; color: #f6e7c6; }
#spots button.on { background: #e8dcc8; color: #2a2622; border-color: #e8dcc8; }
#vr { width: 100%; padding: 10px; font-size: 15px; font-weight: 600; background: #d8c3a0; color: #231f1b; border-color: #d8c3a0; }
#vr[disabled] { background: #57514a; color: #b9b1a6; border-color: #57514a; cursor: default; font-weight: 400; font-size: 13px; }
#help { margin-top: 10px; font-size: 12px; color: #cfc6b8; }
#note { margin-top: 10px; padding-top: 8px; border-top: 1px solid #5b544b; font-size: 11px; color: #b4ab9e; }
#note:empty { display: none; }
#home { display: inline-block; margin-top: 8px; font-size: 12px; color: #d8c3a0; }
#toggle { display: none; }
#loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; color: #2a2622; font-size: 15px; pointer-events: none; }
@media (max-width: 600px) {
  #panel { top: auto; bottom: 12px; left: 12px; padding: 12px 14px; }
  #panel.min > :not(h1):not(#toggle) { display: none; }
  #toggle { display: block; position: absolute; right: 10px; top: 10px; font: inherit; background: none; border: 0; color: #d9d2c6; }
}
