.hina-engine-studio{--hne-sun:#ffc93c;max-width:520px;margin:0 auto;font-family:"Noto Sans JP",system-ui,sans-serif}
.hne-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}
.hne-studio select{width:100%;font-size:15px;padding:9px;border-radius:9px}
.hne-btn{border:0;border-radius:12px;padding:13px 18px;font-weight:700;font-size:15px;cursor:pointer;font-family:inherit;flex:1 1 auto}
.hne-play{background:var(--hne-sun);color:#3a2b00}
.hne-rec{background:#e0576b;color:#fff}
.hne-rec[disabled]{opacity:.5}
.hne-cvwrap{background:#0a1119;border-radius:14px;padding:10px}
.hne-studio canvas{width:100%;height:auto;border-radius:10px;display:block;background:#000}
.hne-status{font-size:13px;min-height:18px;margin-top:8px;color:#333}
.hne-status.ok{color:#0a7d28}.hne-status.err{color:#b32d2e}
.hne-note{font-size:12px;color:#666;line-height:1.6;margin-top:8px}
.hne-paste summary{cursor:pointer;font-size:13px;color:#555;margin-top:10px}
.hne-paste textarea{width:100%;height:130px;font:12px/1.5 ui-monospace,monospace;margin-top:6px}

/* 編集フォーム (v0.2) */
.hne-editor{background:#fff;border:1px solid #dde3e8;border-radius:12px;padding:12px;margin:10px 0}
.hne-editor label{display:block;font-size:12px;color:#666;margin:10px 0 3px}
.hne-editor label:first-child{margin-top:0}
.hne-editor textarea,.hne-editor input[type=text],.hne-editor input[type=number]{width:100%;font-size:14px;padding:8px;border:1px solid #ccd3d8;border-radius:8px;box-sizing:border-box;font-family:inherit}
.hne-opts{display:flex;flex-direction:column;gap:6px;margin-top:2px}
.hne-optrow{display:flex;gap:6px;align-items:center}
.hne-optrow input[type=radio]{flex:0 0 auto;width:18px;height:18px}
.hne-optrow input[type=text]{flex:1 1 auto}
.hne-oprm{flex:0 0 auto;border:1px solid #ddd;background:#f7f7f7;border-radius:6px;width:32px;height:32px;cursor:pointer;font-size:16px}
.hne-addopt{margin-top:6px;border:1px dashed #bbb;background:#fff;border-radius:8px;padding:6px 10px;font-size:12.5px;cursor:pointer}
.hne-editmsg{font-size:12.5px;margin-top:8px;min-height:16px}
.hne-editmsg.ok{color:#0a7d28}.hne-editmsg.err{color:#b32d2e}
.hne-new{background:#eef3f7;color:#1a4d6e;flex:0 0 auto}
.hne-save{background:var(--hne-sun);color:#3a2b00}
.hne-del{background:#fdecea;color:#a3271f;flex:0 0 auto}

/* プレイ用ショートコード */
.hina-engine-quiz{max-width:460px;margin:0 auto}
.hina-engine-quiz canvas{width:100%;height:auto;display:block;border-radius:14px;background:#0b2135;
  box-shadow:0 8px 30px rgba(6,23,42,.28);cursor:pointer;touch-action:manipulation}

/* 全画面プレイ */
.hina-engine-quiz{position:relative}
.hne-fs-btn{display:block;width:100%;margin-top:10px;padding:13px 18px;border:0;border-radius:12px;
  background:#0E2C48;color:#fff;font-weight:700;font-size:15px;font-family:inherit;cursor:pointer}
.hne-fs-btn:hover{background:#143A5E}
.hne-fs-exit{display:none;align-items:center;justify-content:center;position:absolute;top:14px;right:14px;z-index:5;width:52px;height:52px;
  border:0;border-radius:50%;background:rgba(6,18,31,.62);color:#fff;font-size:22px;line-height:1;
  cursor:pointer;font-family:inherit}
.hne-fs-exit:hover{background:rgba(6,18,31,.85)}
.hina-engine-quiz.hne-full,.hina-engine-quiz:fullscreen,.hina-engine-quiz:-webkit-full-screen{
  background:#06121f;display:flex;align-items:center;justify-content:center;max-width:none;margin:0;padding:0}
.hina-engine-quiz.hne-pseudo{position:fixed;inset:0;z-index:2147483000}
.hina-engine-quiz.hne-full canvas,.hina-engine-quiz:fullscreen canvas,.hina-engine-quiz:-webkit-full-screen canvas{
  width:auto;height:auto;max-width:100vw;max-height:100vh;border-radius:0;box-shadow:none}
.hina-engine-quiz.hne-full .hne-fs-btn{display:none}
html.hne-noscroll,html.hne-noscroll body{overflow:hidden;overscroll-behavior:none}
.hina-engine-battle{position:relative;max-width:460px;margin:0 auto}
.hina-engine-battle canvas{width:100%;height:auto;display:block;border-radius:14px;background:#0b2135;
  box-shadow:0 8px 30px rgba(6,23,42,.28);cursor:pointer;touch-action:manipulation}
.hina-engine-battle.hne-full,.hina-engine-battle:fullscreen,.hina-engine-battle:-webkit-full-screen{
  background:#06121f;display:flex;align-items:center;justify-content:center;max-width:none;margin:0;padding:0}
.hina-engine-battle.hne-pseudo{position:fixed;inset:0;z-index:2147483000}
.hina-engine-battle.hne-full canvas,.hina-engine-battle:fullscreen canvas,.hina-engine-battle:-webkit-full-screen canvas{
  width:auto;height:auto;max-width:100vw;max-height:100vh;border-radius:0;box-shadow:none}
.hina-engine-battle.hne-full .hne-fs-btn{display:none}
