/* Luno 綸諾｜原卷直上的畫面樣式。2026-10-21 從 index.html 原樣拆出，檔案順序見 index.html 底部 */

  /* 卷面容器：所有作答區都用百分比定位在影像上，換螢幕寬度不用重算座標 */
  /* 作答控制項的尺寸一律用 em，跟著卷面寬度縮放：卷子在手機上本來就縮小了，
     選項按鈕若維持固定 34px，就會脹得比作答框還大、壓到下一題（實測踩過） */
  .pp-stage { position: relative; display: block; width: 100%; margin: 0 auto 18px; background: #fff;
              box-shadow: 0 2px 10px rgba(0,0,0,.12); border-radius: 6px; overflow: hidden;
              touch-action: manipulation; font-size: clamp(9px, 2.4vw, 15px); }
  .pp-stage > img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
  .pp-region { position: absolute; box-sizing: border-box; border: 2px solid #10b981;
               background: rgba(16,185,129,.10); border-radius: 4px; }
  .pp-region.pp-hand { border-color: #6366f1; background: rgba(99,102,241,.08); }
  .pp-region.pp-fill { border-color: #f59e0b; background: rgba(245,158,11,.08); }
  .pp-region.sel { border-width: 3px; border-color: #ef4444; background: rgba(239,68,68,.10); z-index: 5; }
  /* 編輯模式的框要能拖，作答模式的框不能拖（免得學生把題目拖走） */
  .pp-edit .pp-region { cursor: move; touch-action: none; }
  .pp-region .pp-no { position: absolute; top: -1px; left: -1px; background: #10b981; color: #fff;
                      font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 4px 0 4px 0; pointer-events: none; }
  .pp-region .pp-grip { position: absolute; right: -7px; bottom: -7px; width: 16px; height: 16px;
                        background: #fff; border: 2px solid #ef4444; border-radius: 50%; cursor: nwse-resize; touch-action: none; }
  /* 學生端：作答控制項疊在框裡 */
  .pp-ans { position: absolute; box-sizing: border-box; display: flex; align-items: center; flex-wrap: wrap; }
  .pp-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2em; height: 2.2em;
            margin: .1em; padding: 0 .4em; border: 2px solid #cbd5e1; border-radius: .5em; background: #fff;
            font-weight: 700; color: #334155; cursor: pointer; font-size: 1em; line-height: 1; }
  .pp-opt.on { background: #10b981; border-color: #059669; color: #fff; }
  .pp-fillbox { box-sizing: border-box; width: 100%; height: 100%; min-height: 2em;
                border: 2px solid #f59e0b; border-radius: .4em;
                background: rgba(255,255,255,.92); padding: .2em .5em; font-size: 1em; }
  .pp-handcanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
  .pp-tool { padding: 6px 10px; border: 2px solid #e5e7eb; border-radius: 8px; background: #fff;
             font-size: 13px; font-weight: 700; color: #475569; cursor: pointer; }
  .pp-tool.on { background: #6366f1; border-color: #4f46e5; color: #fff; }
  .pp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
  .pp-btn { padding: 10px 16px; border-radius: 10px; font-weight: 700; border: 2px solid transparent; cursor: pointer; }
  .pp-btn-main { background: #10b981; color: #fff; }
  .pp-btn-ghost { background: #fff; color: #475569; border-color: #e5e7eb; }
  .pp-in { border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 8px; font-size: 14px; }
