html, body { margin: 0; padding: 0; width: 100%; height: 100%; background: #000; color: #fff; overflow: hidden;
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif; cursor: none; }
#stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; transform-origin: center center; }
/* Orientações (o JS ajusta largura/altura do #stage quando gira) */
#stage.rot90  { transform: rotate(90deg); }
#stage.rot180 { transform: rotate(180deg); }
#stage.rot270 { transform: rotate(-90deg); }

.screen { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.hidden { display: none !important; }

.media { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0;
  transition: opacity .4s ease; }
.media.show { opacity: 1; }

.logo { font-size: 44px; font-weight: 700; letter-spacing: 1px; }
.logo .dot { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 24px #22c55e; vertical-align: middle; margin-right: 10px; }

#pairing { background: radial-gradient(ellipse at center, #1e293b 0%, #0f172a 70%); display: flex; align-items: center; justify-content: center; text-align: center; }
.pair-box { max-width: 1400px; padding: 40px; }
.lead { font-size: 40px; margin: 30px 0 20px; color: #cbd5e1; }
.code { font-size: 200px; font-weight: 800; letter-spacing: 30px; font-family: Consolas, "Courier New", monospace; line-height: 1; margin: 10px 0 30px; color: #fff; text-shadow: 0 0 30px rgba(34,197,94,.5); }
.url { font-size: 34px; color: #38bdf8; margin: 0 0 20px; }
.status { font-size: 28px; color: #94a3b8; min-height: 36px; }
.hint { font-size: 26px; color: #64748b; }

.empty { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 36px; color: #cbd5e1; background: #0f172a; }

#overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; z-index: 10; }
.menu { background: #1e293b; border: 2px solid #334155; border-radius: 20px; padding: 50px 70px; text-align: center; min-width: 1000px; }
.info { font-size: 28px; color: #cbd5e1; margin: 24px 0 36px; line-height: 1.5; }
.buttons { display: flex; gap: 20px; justify-content: center; }
.buttons button { font-size: 30px; padding: 22px 36px; border-radius: 14px; border: 4px solid transparent; background: #334155; color: #fff; min-width: 220px; }
.buttons button.focus { border-color: #22c55e; background: #14532d; transform: scale(1.06); }

#toast { position: absolute; right: 40px; bottom: 40px; background: rgba(30,41,59,.95); border: 2px solid #334155; border-radius: 12px; padding: 18px 26px; font-size: 28px; z-index: 11; }
