@font-face { font-family: "Cormorant Garamond"; src: url(fonts/CormorantGaramond-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/IBMPlexSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(fonts/IBMPlexSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/IBMPlexMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
:root { --bone: #F3EFE6; --ink: #14161A; --red: #B7372F; --sand: #E9E3D6; --grey: #6B6A66; --rule: #D9D3C4; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bone); color: var(--ink); font-family: "IBM Plex Sans", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
.wrap { max-width: 560px; margin: 0 auto; padding: 18px 16px 90px; min-height: 100vh; }
.top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--red); padding-bottom: 10px; margin-bottom: 18px; }
.brand { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.batch { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--grey); letter-spacing: .08em; text-transform: uppercase; }
.label { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 6px 0 8px; }
h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.12; margin: 0 0 18px; }
.opt { display: block; width: 100%; text-align: left; font: 600 19px "IBM Plex Sans", sans-serif; color: var(--ink); background: #fff; border: 1.5px solid var(--ink);
       border-radius: 10px; padding: 16px 18px; margin: 0 0 12px; cursor: pointer; }
.opt.on { background: var(--ink); color: var(--bone); }
.opt:disabled { opacity: .55; cursor: default; }
textarea { width: 100%; min-height: 120px; font: 17px "IBM Plex Sans", sans-serif; padding: 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; }
.send { display: inline-block; margin-top: 12px; font: 600 17px "IBM Plex Sans"; background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 14px 22px; cursor: pointer; text-decoration: none; }
.note { font-size: 14px; color: var(--grey); margin-top: 10px; }
.timer { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: var(--red); }
.foot { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bone); border-top: 1px dashed var(--red); padding: 10px 16px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.foot b { color: var(--red); font-weight: 400; }
.small { font-size: 12px; color: var(--grey); }
/* the results screen */
.screen { padding: 3.2vw 4vw 7vw; min-height: 100vh; }
.screen h1 { font-size: 4.2vw; margin-bottom: 2.2vw; max-width: 80vw; }
.screen .label { font-size: 1.3vw; }
.screen .top { font-size: 1.2vw; }
.screen .brand, .screen .batch { font-size: 1.15vw; }
.bars { margin-top: 1vw; }
.bar { display: grid; grid-template-columns: 27vw 1fr 10vw; align-items: center; gap: 1.4vw; margin: 0 0 1.3vw; font-size: 2.2vw; }
.bar .track { height: 3.4vw; background: var(--sand); border-radius: .5vw; overflow: hidden; }
.bar .fill { height: 100%; background: var(--ink); width: 0; transition: width .4s; }
.bar.win .fill { background: var(--red); }
.bar .n { font-family: "IBM Plex Mono"; font-size: 2vw; text-align: right; }
.meta { font-family: "IBM Plex Mono"; font-size: 1.5vw; color: var(--grey); margin-top: 1.5vw; }
.maj { font-family: "Cormorant Garamond"; font-size: 3vw; color: var(--red); margin-top: 1vw; }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2vw; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: .6vw; padding: 1.2vw; font-size: 1.6vw; line-height: 1.3; }
table.sb { border-collapse: collapse; width: 100%; font-size: 2.2vw; margin-top: 1vw; }
table.sb th { font-family: "IBM Plex Mono"; font-weight: 400; font-size: 1.2vw; letter-spacing: .12em; text-transform: uppercase; text-align: left; border-bottom: 2px solid var(--ink); padding: .6vw .4vw; }
table.sb td { border-bottom: 1px solid var(--rule); padding: 1vw .4vw; }
table.sb td.big { font-family: "IBM Plex Mono"; font-size: 2.6vw; }
.qr { display: flex; gap: 4vw; align-items: center; }
.qr .code { background: #fff; padding: 1.4vw; border-radius: .8vw; }
.qr .code img, .qr .code canvas { width: 28vw; height: 28vw; image-rendering: pixelated; display: block; }
.qr .url { font-family: "IBM Plex Mono"; font-size: 2vw; word-break: break-all; }
.screen .foot { font-size: 1vw; position: fixed; }
/* the console */
.con button { font: 600 15px "IBM Plex Sans"; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); border-radius: 8px; padding: 9px 12px; margin: 3px 4px 3px 0; cursor: pointer; }
.con button.go { background: var(--ink); color: var(--bone); }
.con button.red { background: var(--red); border-color: var(--red); color: #fff; }
.con .row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.con .row .id { font-family: "IBM Plex Mono"; font-size: 13px; width: 44px; }
.con .row .p { flex: 1 1 200px; font-size: 14px; }
.con .row.cur { background: #fff; outline: 2px solid var(--red); }
.con h2 { font-family: "Cormorant Garamond"; font-size: 22px; margin: 18px 0 6px; }
.con .live { background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px; }
.con .cnt { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 15px; }
.con .cnt span.o { flex: 1; }
.con input, .con select { font: 15px "IBM Plex Sans"; padding: 8px; border: 1.5px solid var(--ink); border-radius: 8px; }
.err { color: var(--red); font-weight: 600; }
.con .pres { font: 600 16px "IBM Plex Mono", monospace; background: var(--ink); color: var(--bone); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; }
.con a { color: var(--red); }
/* v1.6: timers, nudges, the questionnaire */
[hidden] { display: none !important; }
.vtimer { display: flex; align-items: center; gap: 12px; margin: -6px 0 16px; }
.vtimer .track { flex: 1; height: 10px; background: var(--sand); border-radius: 6px; overflow: hidden; }
.vtimer .fill { height: 100%; width: 100%; background: var(--ink); transition: width .2s linear; }
.vtimer .num { font: 600 22px "IBM Plex Mono", monospace; min-width: 58px; text-align: right; }
.vtimer.hot .fill { background: var(--red); }
.vtimer.hot + * , .vtimer.hot .num { color: var(--red); }
.nudge { background: var(--red); color: #fff; font: 600 16px "IBM Plex Sans", sans-serif; border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.02); } }
.clockbar { position: relative; display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--bone); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; overflow: hidden; font: 13px "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.clockbar .t { font: 600 18px "IBM Plex Mono", monospace; letter-spacing: 0; position: relative; z-index: 1; }
.clockbar span { position: relative; z-index: 1; }
.clockbar .cfill { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--bone); width: 100%; transition: width .2s linear; }
.clockbar.hot { background: var(--red); }
.sprog { height: 6px; background: var(--sand); border-radius: 4px; overflow: hidden; margin: -2px 0 14px; }
.sprog .fill { height: 100%; background: var(--red); }
h1.sq { font-size: 26px; }
.snav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.snav .send { margin-top: 0; margin-left: auto; }
.send:disabled { opacity: .45; cursor: default; }
.back { font: 600 16px "IBM Plex Sans", sans-serif; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px 18px; cursor: pointer; margin-top: 12px; }
.snav .back { margin-top: 0; }
input.sin { width: 100%; font: 18px "IBM Plex Sans", sans-serif; padding: 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; margin: 0 0 10px; }
.rs { display: flex; align-items: center; gap: 8px; }
.rs span { font: 600 24px "IBM Plex Sans", sans-serif; }
.rs input.sin { margin: 0; }
/* the screen's countdown and clock */
.stimer { display: flex; align-items: center; gap: 1.6vw; margin: -1vw 0 1.6vw; }
.stimer .track { flex: 1; height: 1.1vw; background: var(--sand); border-radius: .6vw; overflow: hidden; }
.stimer .fill { height: 100%; background: var(--ink); transition: width .2s linear; }
.stimer .num { font: 600 4vw "IBM Plex Mono", monospace; min-width: 12vw; text-align: right; }
.stimer.hot .fill { background: var(--red); } .stimer.hot .num { color: var(--red); }
.sclock { font: 600 14vw "IBM Plex Mono", monospace; line-height: 1; margin: 2vw 0; }
.sclock.hot { color: var(--red); }
.scorner { position: fixed; top: 2.4vw; right: 4vw; font: 600 1.8vw "IBM Plex Mono", monospace; background: var(--ink); color: var(--bone); border-radius: .6vw; padding: .5vw 1vw; }
.answered { font: 600 2vw "IBM Plex Mono", monospace; color: var(--ink); }
/* the console's timer controls */
.con .big { font: 600 34px "IBM Plex Mono", monospace; }
.con .big.hot { color: var(--red); }
.con .hint { background: var(--red); color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 600; }
