/* Presentation chrome. deck.js adds .deck to <html>; the stage itself stays a fixed 1920x1080. */
html.deck, html.deck body { width: 100%; height: 100%; overflow: hidden; background: #000; }
html.deck { touch-action: manipulation; }   /* no double-tap zoom when tapping through slides */
/* maximized phone in portrait: deck.js sizes the body to the landscape box and turns it sideways */
html.rotated body { position: fixed; left: 0; top: 0; transform-origin: 0 0; }
/* fixed, so the unscaled 1920px stage doesn't widen the layout viewport (phones would zoom out to fit it) */
html.deck #stage { position: fixed; inset: auto; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; cursor: pointer; }
html.deck canvas#gl { width: 1920px; height: 1080px; }
html.deck #deck-panel { display: none; }
html.deck kbd { font: 600 0.9em/1 Inter, system-ui, sans-serif; padding: 3px 7px; border-radius: 6px; border: 1px solid currentColor; opacity: .9; }

#deck-loading { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 22px;
                background: radial-gradient(1500px 1050px at 28% 18%, #23252f 0%, #14151c 42%, #07080b 100%);
                font: 500 18px/1 Inter, system-ui, sans-serif; color: rgba(255,255,255,.75); }
#deck-loading .ring { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(230,0,126,.22); border-top-color: #e6007e;
                      animation: deck-spin .9s linear infinite; }
@keyframes deck-spin { to { transform: rotate(360deg); } }

#deck-black { position: fixed; inset: 0; z-index: 20; background: #000; opacity: 0; pointer-events: none; transition: opacity .3s; }
html.black #deck-black { opacity: 1; pointer-events: auto; }

#deck-hint { position: fixed; left: 0; right: 0; bottom: 6vh; z-index: 10; text-align: center; pointer-events: none;
             font: 500 clamp(12px, 1.3vw, 20px)/1.6 Inter, system-ui, sans-serif; color: rgba(255,255,255,.62);
             opacity: 0; transition: opacity .4s; padding: 0 16px; }
html.at-start #deck-hint { opacity: 1; }
#deck-hint .for-touch { display: none; }
@media (hover: none) { #deck-hint .for-keys { display: none; } #deck-hint .for-touch { display: inline; } }

#deck-hud { position: fixed; right: 16px; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 4px; padding: 4px;
            border-radius: 999px; background: rgba(18,20,26,.74); backdrop-filter: blur(8px); color: #fff;
            font: 600 14px/1 Inter, system-ui, sans-serif; opacity: 0; transition: opacity .3s; }
html.hud #deck-hud, html.presenter #deck-hud { opacity: 1; }
#deck-hud span { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
#deck-hud button, #deck-panel button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; border-radius: 999px; }
#deck-hud button { width: 34px; height: 34px; font-size: 18px; display: grid; place-items: center; }
#deck-hud button:hover { background: rgba(255,255,255,.14); }
@media (hover: none) { #deck-hud { opacity: 1; } }

/* presenter view: live slide on the left, notes on the right */
html.presenter, html.presenter body { background: #0b0d14; }
html.presenter #stage { cursor: default; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
html.presenter #deck-hint, html.presenter #deck-hud { display: none; }
html.presenter #deck-panel { display: flex; flex-direction: column; gap: 18px; position: fixed; top: 24px; right: 24px; bottom: 24px; width: 400px;
                             color: #e6e8f0; font: 400 16px/1.5 Inter, system-ui, sans-serif; overflow: auto; }
#deck-panel .row { display: flex; justify-content: space-between; align-items: center; color: #ff7ec2; font-weight: 600; letter-spacing: .04em; }
#p-timer { font: 700 28px/1 Inter, system-ui, sans-serif; color: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
#p-title { font: 800 27px/1.18 Jakarta, Inter, system-ui, sans-serif; letter-spacing: -0.02em; color: #fff; }
#p-notes { font-size: 20px; line-height: 1.5; color: #d2d6e4; }
#deck-panel .next { margin-top: auto; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); }
#deck-panel .next span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #868da3; }
#p-next { margin-top: 4px; font-weight: 600; color: #fff; }
#deck-panel .btns { display: flex; gap: 10px; }
#deck-panel .btns button { flex: 1; padding: 14px; border-radius: 12px; background: #e6007e; color: #fff; font-weight: 700; }
#deck-panel .btns button:first-child { background: rgba(255,255,255,.1); }
#deck-panel .keys { font-size: 13px; color: #868da3; line-height: 2; }

/* live session badge: viewers see it during a talk, the presenter only with the HUD so it isn't projected */
#deck-live { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: 8px;
             padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(18,20,26,.74); backdrop-filter: blur(8px); color: #fff;
             font: 600 13px/1 Inter, system-ui, sans-serif; white-space: nowrap; cursor: default; transition: opacity .3s; }
#deck-live[hidden] { display: none; }
#deck-live i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: deck-pulse 1.6s ease-in-out infinite; }
#deck-live b { color: #ff7ec2; }
#deck-live[data-state="behind"], #deck-live[data-state="admin"] { cursor: pointer; }
#deck-live[data-state="behind"] { background: #fff; color: #b8006a; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
html.locked #deck-hint { display: none; }
#deck-live[data-state="admin"] { opacity: 0; }
html.hud #deck-live[data-state="admin"], html.presenter #deck-live[data-state="admin"] { opacity: 1; }
html.presenter #deck-live { left: 24px; top: 32px; transform: none; }
@keyframes deck-pulse { 50% { opacity: .35; } }
