/* frame.css: the team's book intro in front of the game (js/intro_bridge.js)
   and the notebook as cuff-checklist pages (js/checklist.js). Loaded after style.css. */

/* ---- intro iframe + the game's sound / language bar over it ---- */
#introFrame { position: fixed; inset: 0; z-index: 30; background: #19150f; }
#introFrame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
#introFrame .ibar { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: calc(10px + env(safe-area-inset-left)); display: flex; align-items: center; gap: 6px; z-index: 1; }
#introFrame .ibtn { width: 36px; height: 36px; background: rgba(25, 21, 15, 0.55); border-color: rgba(221, 203, 176, 0.25); }
#introFrame .ibtn svg { width: 18px; height: 18px; stroke: #ddcbb0; }
#introFrame .ibtn .code { color: #ddcbb0; font-size: 13px; font-weight: 700; }
#introFrame .ibtn[data-tip]:hover::after, #introFrame .ibtn[data-tip]:focus-visible::after { left: 0; right: auto; }
#introFrame .soundHint { margin: 0 0 0 4px; font-size: 12px; color: #b5a48a; text-shadow: 0 1px 4px #000; }
#introFrame .iskip { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: calc(56px + env(safe-area-inset-right)); z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px; font-size: 13px; color: #ddcbb0; background: rgba(25, 21, 15, 0.55); border-color: rgba(221, 203, 176, 0.25); }
@media (max-width: 560px) { #introFrame .soundHint span[data-t] { display: none; } }

/* ---- notebook: written on the raised cuff checklist (3D); the zoomed view is the team field notes (css/kit/a17-kit.css) ---- */
/* bar by the raised paper: turn + zoom. Desktop: placed under the paper by js/checklist.js; touch: fixed, large */
#noteBar { position: fixed; z-index: 9; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; }
#noteBar[hidden] { display: none; }
#noteBar .ghost { min-width: 44px; padding: 6px 10px; color: #eef3f6; background: rgba(6, 11, 17, 0.72); border-color: rgba(150, 215, 235, 0.3); }
#noteBar .ghost:disabled { opacity: 0.3; }
#noteBar .ar { font-size: 26px; line-height: 1; font-weight: 700; }
#noteBar .zoom { min-height: 44px; padding: 8px 16px; font-size: 15px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); }
body.touch #noteBar { left: 50%; top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); gap: 10px; }
body.touch #noteBar .zoom { min-height: 60px; min-width: 180px; padding: 12px 26px; font-size: 19px; }
body.touch #noteBar .ghost { min-width: 60px; min-height: 60px; }
/* dim the HUD behind the open notebook so its header and pages read clearly */
body.wrist #topleft, body.wrist #topbtns, body.wrist #legend, body.wrist #stack, body.wrist #joy, body.wrist #marker, body.wrist #edge { opacity: 0.22; }

/* sound button over the intro when the browser blocks sound until a tap */
#soundGate { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; min-height: 52px; border-radius: 999px; border: 1px solid rgba(255,230,180,.45); background: rgba(20,16,10,.82); color: #fbeed3;
  font: 700 18px/1 'Noto Sans KR', system-ui, sans-serif; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
#soundGate svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
#soundGate[hidden] { display: none; }

/* no skip buttons anywhere: intro, arrival and ending play through (user decision) */
.iskip, #intro .skip { display: none !important; }
