/* Bzz TV, the TV page. Sizes in vw/vh: TV browsers report anything from 960 to 1920 CSS pixels wide. */
@font-face { font-family: Bricolage; src: url("/static/bricolage.woff2") format("woff2"); font-weight: 400 800; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: Bricolage, sans-serif; background: #f6f3eb; color: #242328; cursor: default; }
body.hide-cursor, body.hide-cursor * { cursor: none !important; }
[hidden] { display: none !important; }
h1, p { margin: 0; }

#video { position: fixed; left: 0; top: 0; width: 100%; height: 100%; background: #000; display: none; }
body.is-playing { background: #000; }
body.is-playing #video { display: block; }
body.is-playing .idle { display: none; }

.idle { position: fixed; left: 0; top: 0; right: 0; bottom: 0; padding: 6vh 7vw; display: flex; flex-direction: column; justify-content: center; }
.brand { position: absolute; top: 6vh; left: 7vw; display: flex; align-items: center; font-size: 4.2vw; font-weight: 800; letter-spacing: -.08em; }
.brand small { font-size: 1.4vw; letter-spacing: .06em; text-transform: uppercase; background: #242328; color: #fffdf7; border-radius: .6vw; padding: .4vw .6vw .3vw; margin-left: .8vw; }
.key-mark { display: inline-block; width: 4.6vw; height: 4.6vw; border-radius: 1.3vw; background: #242328; position: relative; margin-right: 1.1vw; }
.key-mark i { position: absolute; width: .95vw; height: .95vw; }
.key-mark i:nth-child(1) { left: .8vw; top: 1.1vw; border-radius: 50%; background: #ffb5a4; }
.key-mark i:nth-child(2) { left: 1.85vw; top: 1.1vw; border-radius: .2vw; background: #ffdc86; }
.key-mark i:nth-child(3) { left: 2.9vw; top: 1.1vw; background: #d7ed9f; -webkit-clip-path: polygon(50% 0, 100% 100%, 0 100%); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.key-mark i:nth-child(4) { left: 1.3vw; top: 2.4vw; background: #accbfa; -webkit-clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.key-mark i:nth-child(5) { left: 2.4vw; top: 2.4vw; background: #d8ccf8; -webkit-clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%); clip-path: polygon(50% 0, 100% 38%, 81% 100%, 19% 100%, 0 38%); }

.kicker { font-size: 1.6vw; font-weight: 740; text-transform: uppercase; letter-spacing: .085em; color: #625e59; }
.code { font-size: 15vw; font-weight: 800; letter-spacing: .12em; line-height: 1; margin: 1vh 0 3vh; font-variant-numeric: tabular-nums; }
.steps { font-size: 2.4vw; line-height: 1.5; padding-left: 3.2vw; margin: 0; }
.steps strong { background: #d8ccf8; border-radius: .6vw; padding: 0 .5vw; }
.ready h1 { font-size: 6vw; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 1.5vh 0 2vh; max-width: 80vw; }
.small { font-size: 2vw; color: #625e59; }
.status { position: absolute; bottom: 5vh; left: 7vw; font-size: 1.6vw; color: #625e59; }

.title-card { position: fixed; left: 5vw; bottom: 8vh; max-width: 70vw; padding: 2.2vw 2.6vw; background: rgba(36, 35, 40, .82); color: #fffdf7; border-radius: 1.8vw; }
.title-card .kicker, .pause-card .kicker { color: #d7ed9f; }
.title-card h1 { font-size: 3.6vw; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: .6vw; }
.pause-card { position: fixed; left: 5vw; right: 5vw; bottom: 8vh; padding: 2.4vw 2.8vw; background: rgba(36, 35, 40, .86); color: #fffdf7; border-radius: 1.8vw; }
.pause-card h1 { font-size: 3.4vw; font-weight: 800; margin: .6vw 0 1.4vw; }
.pause-card .small { color: #d9d4c8; margin-top: 1vw; }
.bar { height: .7vw; border-radius: .35vw; background: rgba(255, 253, 247, .25); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: #d7ed9f; }

.blocked { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(36, 35, 40, .9); color: #fffdf7; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.blocked h1 { font-size: 5vw; font-weight: 800; }
.blocked p { font-size: 2.4vw; margin: 1vh 0 4vh; color: #d9d4c8; }
.blocked button { font: inherit; font-size: 3vw; font-weight: 800; padding: 1.4vw 4vw; border-radius: 1.6vw; border: .3vw solid #d7ed9f; background: #d7ed9f; color: #242328; }
.blocked button:focus { outline: .4vw solid #fffdf7; outline-offset: .4vw; }

.qr-box { position: absolute; right: 7vw; top: 50%; margin-top: -15vw; width: 22vw; text-align: center; }
.qr { background: #fffdf7; border: .2vw solid #ded8cb; border-radius: 1.6vw; padding: 1.2vw; }
.qr svg { display: block; width: 100%; height: auto; }
.qr-box p { font-size: 1.7vw; color: #625e59; margin-top: 1.2vw; line-height: 1.3; }
.pairing, .ready { max-width: 58vw; }
