/* Host screen extras, loaded after theme.css: the offline warning, the big join-QR slide,
   and a slimmer bottom bar (same layout as before, less height). */

/* ---------- offline warning (only shows when phones can't buzz in) ---------- */
#app { grid-template-rows: auto minmax(0, 1fr) auto auto; }
#offline { grid-row: 1; }
#viewport { grid-row: 2; }
#buzzer { grid-row: 3; }
#bar { grid-row: 4; }
#offline { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 8px 16px; background: #B3261E; color: #fff; font: 500 17px Rubik, sans-serif; text-align: center; }
#offline[hidden] { display: none; }
#offline b { letter-spacing: 3px; font-weight: 700; }
#offline button { min-height: 34px; background: #fff; color: #B3261E; border: 0; font-weight: 700; font-size: 16px; }

/* ---------- big join-QR slide ---------- */
#stage section.scan { padding: 70px 120px; justify-content: center; align-items: center; text-align: center; gap: 20px; }
.scan-t { margin: 0; font: 700 64px/1.05 'Oswald', Arial, sans-serif; letter-spacing: 6px; text-transform: uppercase; color: var(--gold); }
.scan-qr { width: 760px; height: 760px; flex: none; padding: 34px; background: #fff; border-radius: 28px; box-shadow: 0 0 0 6px rgba(232, 181, 58, .6), 0 24px 80px rgba(0, 0, 0, .5); }
.scan-qr svg { width: 100%; height: 100%; display: block; }
.scan-u { margin: 0; font: 700 56px/1.05 'Oswald', Arial, sans-serif; letter-spacing: 1px; color: var(--cream); }

/* ---------- slimmer bottom bar: same panels and layout, less height ---------- */
#bar { padding: 6px 10px; gap: 8px; border-top-width: 2px; }
#bar .panel { padding: 4px 8px; gap: 6px; border-radius: 10px; }
#nav button { min-height: 34px; min-width: 34px; padding: 0 8px; }
#nav .count { font-size: clamp(17px, 1.3vw, 26px); }
#nav .sec { font-size: clamp(12px, .8vw, 15px); }
#teams { gap: 6px; }
.team { padding: 3px 10px 5px; border-top-width: 4px; row-gap: 2px; border-radius: 10px; }
.team .nm { font-size: clamp(15px, 1.1vw, 22px); }
.team .sc { font-size: clamp(34px, 3.2vw, 62px); }
.team .btns button { min-height: 28px; min-width: clamp(32px, 2.3vw, 46px); font-size: clamp(13px, .9vw, 17px); }
.team .pc { top: 4px; font-size: 11px; }
#teamtools { gap: 4px; }
#teamtools button { min-height: 26px; padding: 0 8px; font-size: clamp(12px, .85vw, 15px); }
#tdisp { font-size: clamp(32px, 3.2vw, 62px); }
#tring { width: clamp(26px, 2.2vw, 42px); height: clamp(26px, 2.2vw, 42px); }
#timer > button { min-height: 34px; min-width: 34px; }
#presets button { min-height: 25px; min-width: clamp(38px, 2.6vw, 50px); font-size: clamp(12px, .85vw, 15px); }
#tools { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; max-width: clamp(236px, 16vw, 320px); gap: 4px; }
#tools #conn { flex-basis: 100%; justify-content: center; font-size: 13px; }
#tools button { min-height: 26px; padding: 0 8px; font-size: clamp(12px, .85vw, 15px); }

#buzzer { padding: 6px 10px; gap: 10px; }
#bctl { max-width: none; gap: 6px; justify-content: flex-end; }
#bctl button { min-height: 32px; font-size: clamp(13px, .95vw, 17px); }
#bctl label { font-size: 13px; }
#bctl input[type=number] { min-height: 30px; }

/* no link text under the QR codes */
.scan-u, #joindlg .ju { display: none !important; }
