/* Copy of the #puzzlepanel and #puzzlegate rules from style.css, for pages outside the game (the puzzle hall). */
#puzzlepanel { position:fixed; inset:0; z-index:64; background:rgba(6,10,16,.9); display:flex; align-items:center; justify-content:center; padding:10px; overflow-y:auto; }
#puzzlepanel .pzbox { width:min(96vw,460px); background:var(--panel); border:1px solid var(--gold); border-radius:14px; padding:14px; box-shadow:0 10px 40px #000c; }
#puzzlepanel h2 { margin:0 0 6px; font-size:20px; }
#puzzlepanel .pzintro { margin:0 0 8px; font-size:14px; line-height:1.4; }
#puzzlepanel .pzstat { display:flex; justify-content:space-between; font-size:13px; opacity:.85; margin-bottom:6px; gap:8px; flex-wrap:wrap; }
#puzzlepanel .pzboard { position:relative; width:100%; aspect-ratio:1; background:#141b24; border:2px solid var(--line); border-radius:10px; margin-bottom:8px; background-image:linear-gradient(#ffffff0d 1px,transparent 1px),linear-gradient(90deg,#ffffff0d 1px,transparent 1px); background-size:calc(100%/6) calc(100%/6); }
#puzzlepanel .pzexit { position:absolute; right:-4px; top:calc(100%/6*2); height:calc(100%/6); width:16px; display:flex; align-items:center; justify-content:center; color:var(--gold); font-size:14px; pointer-events:none; z-index:3; }
#puzzlepanel .pzcar { position:absolute; box-sizing:border-box; padding:0; margin:0; border:3px solid #0d1218; border-radius:10px; background:var(--pz,#6f8fb0); color:#0d1218; font-weight:700; font-size:18px; cursor:pointer; transition:left .18s,top .18s; }
#puzzlepanel .pzcar.target { background:#e8b24a; }
#puzzlepanel .pzcar.sel { outline:3px solid #fff; outline-offset:-1px; z-index:2; }
#puzzlepanel .pzcar:disabled { cursor:default; opacity:.9; }
#puzzlepanel .pzspot { position:absolute; box-sizing:border-box; padding:0; margin:0; border:2px dashed var(--gold); border-radius:10px; background:rgba(232,178,74,.18); cursor:pointer; z-index:1; }
#puzzlepanel .pzmsg { min-height:2.6em; font-size:14px; margin-bottom:6px; }
#puzzlepanel .pzbtns { display:flex; gap:8px; margin-bottom:8px; }
#puzzlepanel .pzbtns button { flex:1; }
#puzzlepanel .pzfoot { margin:0; font-size:12px; opacity:.7; }
#puzzlepanel .pzcar.veh { background:none; border:0; padding:0; border-radius:8px; overflow:visible; color:inherit; }
#puzzlepanel .pzcar.veh svg { display:block; width:100%; height:100%; pointer-events:none; filter:drop-shadow(0 2px 2px #0008); }
#puzzlepanel .pzcar.veh.sel { outline:3px solid #fff; outline-offset:0; }
#puzzlepanel .pzbadge { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); min-width:20px; height:20px; padding:0 3px; border-radius:10px; background:#0d1218cc; color:#f3ecd8; font:700 13px/20px system-ui,sans-serif; text-align:center; pointer-events:none; }
#puzzlepanel .pzcar.target .pzbadge { background:#0d1218; color:#e8b24a; }
#puzzlegate { position:fixed; inset:0; z-index:66; background:rgba(6,10,16,.82); display:flex; align-items:center; justify-content:center; padding:16px; }
