/* T-108 (TD-185, Vahid M-0108): play with the mouse, with no phone (game/mousemode.js).
   - (T-109: no start popup any more: a computer with a mouse starts in mouse play by itself.)
   - #pad: the mouse player's corner controller (the phone page in a frame), top right under the film bar, a little
     see-through so the fight stays seen behind it (TD-149); solid under the mouse and while paused (body.padpause).
   - #pauseMouse: the Paused sign's Play button and QR code in mouse play: "For a better game, use your phone."
   - #mouseStart: the lobby's Start in mouse play; #mouseInstead: the phone game's lobby offers mouse play. */

/* ---------- the lobby in mouse play: Start under the slots; the phone game's lobby: "No phone? Play with the mouse" ---------- */
#mouseStart { display: none; width: 100%; margin-top: 10px; min-height: 46px; font-size: 17px; letter-spacing: .04em; }
body.mouse.lobby #mouseStart { display: inline-flex; }
#mouseStart.off { filter: saturate(.35) brightness(.75); }
#mouseInstead[hidden], body:not(.canmouse) #mouseInstead, body.mouse #mouseInstead { display: none; }
#mouseInstead { color: var(--ember); }

/* ---------- the corner controller ---------- */
#pad { position: fixed; right: 22px; top: calc(var(--bar) + 10px); z-index: 9; overflow: hidden; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); box-shadow: var(--shadow);
  visibility: hidden; opacity: 0; transition: opacity var(--t-panel) var(--ease), visibility 0s linear var(--t-panel); }
body.pad #pad { visibility: visible; opacity: .76; transition: opacity var(--t-hover) var(--ease); }
body.pad #pad:hover, body.padpause #pad { opacity: 1; }
#pad iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #14110d; }
/* (the film titles in the middle ("Protect your home", "Wave 3") stand under it, not behind it: --pad-h from mousemode.js) */
body.pad:not(.lineup) #center { top: max(34%, calc(var(--bar) + 10px + var(--pad-h, 260px) + 3vh)); }

/* ---------- the pause in mouse play: Play beside the QR code ---------- */
#pauseMouse { display: none; align-items: center; gap: clamp(16px, 2vw, 30px); margin-top: clamp(10px, 2vh, 22px); pointer-events: auto; }
body.padpause #pauseMouse { display: flex; }
#pausePlay { min-height: 54px; padding: 0 30px; font-size: 19px; }
#pausePlay svg { width: 16px; height: 16px; }
#pauseMouse .pq { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; text-align: left; }
#pauseQr img { display: block; width: clamp(120px, 10vw, 160px); height: auto; border-radius: 8px; background: #fff; }
#pauseMouse .pq p { margin: 0; max-width: 17em; display: flex; flex-direction: column; gap: 6px; }
#pauseMouse .pq b { font: 600 clamp(16px, 1.3vw, 20px)/1.3 var(--font-ui); letter-spacing: 0; text-indent: 0; text-transform: none;
  color: var(--text); text-shadow: none; }
#pauseMouse .pq span { font: 500 clamp(13px, 1vw, 15px)/1.4 var(--font-ui); color: var(--text-dim); opacity: 1; text-shadow: none; }
