* { box-sizing: border-box; }
html { min-height: 100%; background: #09242c; }
body { min-width: 280px; min-height: 100%; margin: 0; color: #f8f0df; background: #09242c; font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.control-header { position: relative; z-index: 4; height: 64px; padding: 12px 70px; color: #102d35; background: #f3ead8; box-shadow: 0 4px 18px rgba(0,0,0,.24); }
.back-button { position: absolute; left: 10px; top: 10px; width: 44px; height: 44px; border-radius: 12px; color: #fff8e8; background: #1c5660; font-size: 35px; line-height: 39px; text-align: center; text-decoration: none; }
.control-brand { text-align: center; white-space: nowrap; }
.control-brand span, .control-brand b { display: inline-block; padding: 5px 7px 4px; border-radius: 5px; color: #fff8e8; font-size: 17px; line-height: 1; letter-spacing: -.04em; }
.control-brand span { background: #167b79; }
.control-brand b { background: #d7504c; }
.control-brand i { display: inline-block; margin: 0 4px; color: #a56f1d; font: italic 16px Georgia, serif; }
.name-button { position: absolute; right: 10px; top: 12px; min-width: 50px; height: 40px; padding: 0 9px; border: 0; border-radius: 10px; color: #fff8e8; background: #1c5660; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.network-status { min-height: 28px; padding: 7px 14px 6px; color: #b8d1cb; background: #0f353e; font-size: 12px; font-weight: bold; text-align: center; }
.network-status.offline { color: #3c221d; background: #efad78; }
.control-main { width: 100%; padding: 18px 12px 32px; }
.card { width: 100%; max-width: 520px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: #143c47; box-shadow: 0 12px 30px rgba(0,0,0,.24); }
.name-card, .waiting-card { padding: 28px 22px; text-align: center; }
.kicker { margin: 0 0 10px; color: #e7bd5a; font-size: 11px; font-weight: bold; letter-spacing: .2em; text-transform: uppercase; }
.name-card h1, .waiting-card h1 { margin: 0 0 10px; color: #fff8e8; font-size: 28px; line-height: 1.05; }
.name-card > p, .waiting-card > p { color: #c6d8d3; font-size: 15px; line-height: 1.4; }
.name-card form { margin-top: 24px; text-align: left; }
.name-card label { display: block; margin: 0 0 7px; color: #dbe7e2; font-size: 13px; font-weight: bold; }
.name-card input { display: block; width: 100%; height: 54px; padding: 0 15px; border: 2px solid #2f6972; border-radius: 12px; outline: none; color: #102d35; background: #fffaf0; font-size: 18px; }
.name-card input:focus { border-color: #e7bd5a; }
.primary-button, .secondary-button { width: 100%; min-height: 54px; margin-top: 13px; border: 0; border-radius: 12px; font-weight: bold; cursor: pointer; }
.primary-button { color: #fff8e8; background: #167b79; }
.secondary-button { color: #d9e5e0; background: #29525b; }
.waiting-orbit { width: 90px; height: 90px; margin: 5px auto 21px; border: 8px solid #167b79; border-right-color: #e7bd5a; border-radius: 50%; }
.waiting-orbit span { display: block; color: #fff8e8; font-size: 46px; line-height: 74px; font-weight: bold; }

.game-card { padding-bottom: 22px; }
.status-row { height: 58px; padding: 18px 16px 0; text-align: center; }
.status-row > span { float: left; color: #c6d8d3; font-size: 13px; font-weight: bold; }
.status-row > span:last-child { float: right; }
.status-row > strong { display: inline-block; margin-top: -7px; min-width: 48px; padding: 7px 10px; border-radius: 10px; color: #fff8e8; background: #bb3f43; font-size: 19px; }
.timer-track { height: 6px; margin: 0 16px 14px; overflow: hidden; border-radius: 5px; background: #09272f; }
.timer-track span { display: block; width: 0; height: 100%; background: #e7bd5a; transition: width .25s linear; }
.question-image-wrap { position: relative; width: calc(100% - 32px); height: 0; margin: 0 16px; padding-top: calc(100% - 32px); overflow: hidden; border-radius: 17px; background: #0c3038; }
.question-image-wrap img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.phase-badge { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 20px; color: #16343b; background: #f3ead8; font-size: 10px; font-weight: bold; letter-spacing: .12em; }
.statement-text { margin: 18px 18px 12px; color: #fff8e8; font-size: 25px; line-height: 1.08; text-align: center; letter-spacing: -.02em; }
.vote-panel { padding: 0 16px; }
.vote-panel > p:first-child { margin: 0 0 10px; color: #c6d8d3; font-size: 13px; font-weight: bold; text-align: center; }
.vote-buttons { display: -webkit-flex; display: flex; }
.vote-button { -webkit-flex: 1 1 50%; flex: 1 1 50%; min-height: 82px; padding: 9px 5px; border: 0; border-radius: 14px; color: #fff8e8; cursor: pointer; }
.vote-button:first-child { margin-right: 8px; }
.true-button { background: #167b79; }
.false-button { background: #d7504c; }
.vote-button span, .vote-button strong { display: block; }
.vote-button span { font-size: 29px; line-height: 30px; }
.vote-button strong { margin-top: 4px; font-size: 15px; letter-spacing: .12em; }
.vote-button:disabled { opacity: .42; cursor: default; }
.vote-button.selected { opacity: 1; outline: 4px solid #e7bd5a; outline-offset: -4px; }
.vote-hint { min-height: 34px; margin: 11px 4px 0; color: #a9c2bd; font-size: 12px; line-height: 1.35; text-align: center; }

.reveal-panel { margin: 8px 16px 0; padding: 18px; border-radius: 16px; background: #0d3038; text-align: center; }
.verdict-badge { display: inline-block; padding: 7px 13px; border-radius: 7px; color: #fff8e8; background: #167b79; font-size: 15px; font-weight: bold; letter-spacing: .16em; }
.verdict-badge.fiction { background: #d7504c; }
.reveal-panel h2 { margin: 12px 0 7px; color: #e7bd5a; font-size: 24px; }
.reveal-panel p { margin: 0; color: #dbe7e2; font-size: 14px; line-height: 1.45; }
.reveal-panel a { display: inline-block; margin-top: 13px; color: #e7bd5a; font-size: 12px; font-weight: bold; }
.finished-panel { margin: 8px 16px 0; padding: 22px 18px; border-radius: 16px; background: #0d3038; text-align: center; }
.finished-panel h2 { margin: 0 0 7px; color: #fff8e8; font-size: 25px; }
.finished-panel > p:not(.kicker) { margin: 0; color: #c6d8d3; font-size: 14px; line-height: 1.4; }
.leaderboard-list { margin: 18px 0 0; padding: 0; list-style: none; text-align: left; }
.leaderboard-list li { position: relative; min-height: 42px; margin-top: 7px; padding: 12px 58px 10px 42px; overflow: hidden; border-radius: 10px; color: #e7efeb; background: #174651; font-size: 13px; font-weight: bold; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-list li.you { background: #17685f; }
.leaderboard-rank { position: absolute; left: 13px; top: 11px; color: #e7bd5a; }
.leaderboard-score { position: absolute; right: 13px; top: 11px; color: #e7bd5a; }

@media (max-width: 360px) {
    .control-header { padding-left: 56px; padding-right: 56px; }
    .control-brand span, .control-brand b { font-size: 14px; }
    .statement-text { font-size: 22px; }
    .control-main { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 600px) {
    .control-main { padding-top: 28px; }
    .game-card { max-width: 540px; }
}
