html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #eff8ff;
    background: #102542;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

body {
    font-size: 16px;
}

[hidden] {
    display: none !important;
}

.page-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    background: #102542;
}

.hero-panel,
.card {
    border: 2px solid #2f6f8c;
    border-radius: 16px;
    background: #0b1e33;
}

.hero-panel {
    position: absolute;
    left: 2%;
    right: 27.92%;
    top: 2%;
    height: 15%;
    overflow: visible;
}

.hero-info-wrapper {
    position: absolute;
    left: 1.3em;
    right: 1.3em;
    top: 0.62em;
    bottom: 0.45em;
    overflow: hidden;
}

.hero-join-wrapper {
    position: fixed;
    right: 2.6%;
    top: auto;
    bottom: 2.6%;
    width: 125px;
    height: 175px;
    z-index: 20;
}

.eyebrow {
    margin: 0 0 0.55em 0;
    color: #ffd166;
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-panel h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2.5em;
    line-height: 1;
    cursor: pointer;
}

.hero-copy {
    margin: 0.35em 0 0 0;
    color: #bfd6e5;
    font-size: 1.12em;
    line-height: 1.25;
    cursor: pointer;
}

.join-panel {
    position: absolute;
    right: 0;
    top: 0;
    text-align: right;
}


.content-grid {
    position: absolute;
    left: 2%;
    right: 2%;
    top: 19%;
    bottom: 2%;
}

.question-panel {
    position: absolute;
    left: 0;
    right: 27%;
    top: 0;
    bottom: 0;
    padding: 1.05em 1.25em;
    overflow: hidden;
    background: #0a1b2d;
    border-radius: 16px;
}

.side-column {
    position: absolute;
    right: 0;
    top: -21%;
    bottom: 0;
    width: 25%;
}

.roster-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 34%;
    padding: 1em;
    overflow: hidden;
}

.question-topbar,
.question-meta,
.roster-header {
    position: relative;
    min-height: 2.2em;
}

.timer-block {
    position: absolute;
    right: 0;
    top: 0;
    text-align: right;
}

.timer-label {
    display: block;
    color: #bfd6e5;
    font-size: 0.72em;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timer-value {
    display: block;
    color: #ffffff;
    font-size: 3.2em;
    font-weight: bold;
    line-height: 0.85;
}

.phase-badge {
    display: inline-block;
    padding: 0.55em 0.85em;
    color: #ffd166;
    background: #1f3d52;
    border: 1px solid #856b2b;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.question-meta {
    margin-top: 0.75em;
    color: #bfd6e5;
    font-size: 1em;
}

#answerSummary {
    position: static;
    display: block;
    margin-top: 0.28em;
    padding-right: 8em;
    text-align: left;
}

.question-title {
    height: 4.7em;
    margin: 0.62em 0 0.5em 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 2.6em;
    line-height: 1.12;
}

.option-list,
.participant-list,
.leaderboard-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.option-list {
    position: absolute;
    left: 1.25em;
    right: 1.25em;
    top: 17em;
    bottom: 1.1em;
    overflow: hidden;
}

.option-item,
.participant-item,
.leaderboard-item {
    position: relative;
    display: block;
    min-height: 2.25em;
    margin: 0 0 0.45em 0;
    padding: 0.48em 0.75em;
    overflow: hidden;
    color: #eff8ff;
    background: #14314b;
    border: 1px solid #3a7893;
    border-radius: 12px;
}

.option-item {
    line-height: 2.25em;
}

.option-item.playable {
    cursor: pointer;
}

.option-item.selected {
    background: #403924;
    border-color: #ffd166;
}

.option-item.correct {
    background: #163c34;
    border-color: #59e3a7;
}

.option-item.incorrect {
    background: #4b2026;
    border-color: #ff7474;
}

.option-item.dimmed {
    color: #9fb6c8;
}

.option-index,
.leaderboard-rank {
    float: left;
    width: 2em;
    height: 2em;
    margin-right: 0.7em;
    color: #ffd166;
    background: #0b1e33;
    border: 1px solid #4b88a1;
    border-radius: 10px;
    font-weight: bold;
    line-height: 2em;
    text-align: center;
}

.option-label {
    display: block;
    margin: 0 6.7em 0 2.9em;
    font-size: 1.35em;
    line-height: 2.08em;
}

.option-state {
    position: absolute;
    right: 0.8em;
    top: 0.48em;
    width: 6em;
    color: #bfd6e5;
    font-size: 1em;
    font-weight: bold;
    text-align: right;
}

.correct-text {
    color: #59e3a7;
}

.incorrect-text {
    color: #ffbcbc;
}

.leaderboard-panel,
.stopped-panel {
    margin-top: 0.8em;
    padding-top: 0.8em;
    border-top: 1px solid #2f6f8c;
}

.stopped-panel {
    padding: 1em;
    background: #4b2026;
    border: 1px solid #ff7474;
}

.stopped-panel h3,
.leaderboard-panel h3,
.roster-panel h3 {
    margin: 0 0 0.65em 0;
    color: #ffffff;
    font-size: 1.15em;
}

.question-panel.summary-mode .leaderboard-panel {
    margin-top: 0.4em;
    padding-top: 0.6em;
}

.question-panel.summary-mode .question-title {
    height: auto;
    margin-bottom: 0.35em;
}

.leaderboard-item.winner {
    background: #403924;
    border-color: #ffd166;
}

.leaderboard-main,
.participant-main {
    display: block;
    margin-right: 5.8em;
}

.leaderboard-main strong,
.participant-main strong {
    display: block;
    padding-top: 0.2em;
    font-size: 1em;
}

.leaderboard-score,
.participant-score {
    position: absolute;
    right: 0.8em;
    top: 0.9em;
    color: #bfd6e5;
    font-size: 0.85em;
    font-weight: bold;
}

.winner-badge {
    display: inline-block;
    margin-top: 0.3em;
    padding: 0.22em 0.5em;
    color: #ffd166;
    background: #0b1e33;
    border: 1px solid #856b2b;
    font-size: 0.72em;
    font-weight: bold;
    text-transform: uppercase;
}

.roster-header h3 {
    margin: 0;
}

#participantCount {
    position: absolute;
    right: 0;
    top: 0.2em;
    color: #bfd6e5;
    font-size: 0.86em;
}

.participant-list {
    position: absolute;
    left: 1em;
    right: 1em;
    top: 3.8em;
    bottom: 1em;
    overflow: hidden;
}

.participant-status {
    color: #bfd6e5;
    font-size: 0.78em;
}

.participant-status.waiting {
    color: #ffd166;
}

.participant-status.answered {
    color: #59e3c1;
}

.participant-status.incorrect,
.participant-status.inactive {
    color: #ff7474;
}

.empty-text {
    margin: 0;
    color: #bfd6e5;
}

.portrait-layout .page-shell {
    min-width: 0;
    min-height: 0;
}

.portrait-layout .hero-panel {
    left: 3%;
    right: 3%;
    top: 2%;
    height: 8.8%;
}

.portrait-layout .hero-info-wrapper {
    left: 1em;
    right: 1em;
    top: 0.42em;
    bottom: 0.22em;
}

.portrait-layout .hero-join-wrapper {
    right: 3.6%;
    top: auto;
    bottom: 2.9%;
    width: 108px;
    height: 151px;
}

.portrait-layout .eyebrow {
    margin-bottom: 0.26em;
    font-size: 0.72em;
}

.portrait-layout .hero-panel h1 {
    font-size: 2.25em;
}

.portrait-layout .hero-copy {
    margin-top: 0.18em;
    font-size: 0.8em;
    line-height: 1.2;
}

.portrait-layout .content-grid {
    left: 3%;
    right: 3%;
    top: 13%;
    bottom: 2%;
}

.portrait-layout .question-panel {
    left: 0;
    right: 0;
    top: 0;
    bottom: 25%;
    padding: 1em;
}

.portrait-layout .side-column {
    position: fixed;
    left: 3%;
    right: calc(3.6% + 118px);
    top: auto;
    bottom: 2.9%;
    height: 151px;
    width: auto;
    z-index: 10;
}

.portrait-layout .roster-panel {
    bottom: 0;
    padding: 0.7em;
}

.portrait-layout .participant-list {
    left: 0.7em;
    right: 0.7em;
    top: 3.1em;
    bottom: 0.7em;
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 0.45em;
    -moz-column-gap: 0.45em;
    column-gap: 0.45em;
}

.portrait-layout .question-topbar {
    min-height: 3.7em;
}

.portrait-layout .timer-value {
    font-size: 2.65em;
}

.portrait-layout .question-meta {
    margin-top: 0.55em;
    padding-right: 7.5em;
    font-size: 0.95em;
}

.portrait-layout #answerSummary {
    padding-right: 0;
}

.portrait-layout .question-title {
    height: 4.8em;
    margin-top: 0.65em;
    margin-bottom: 0.45em;
    font-size: 2.25em;
    line-height: 1.1;
}

.portrait-layout .option-list {
    left: 1em;
    right: 1em;
    top: 17.8em;
    bottom: 1em;
}

.portrait-layout .option-item {
    min-height: 2.55em;
    margin-bottom: 0.5em;
    padding: 0.55em 0.65em;
}

.portrait-layout .option-label {
    margin-right: 5.5em;
    font-size: 1.22em;
    line-height: 2.24em;
}

.portrait-layout .option-state {
    width: 5em;
    right: 0.65em;
}

.portrait-layout .participant-item {
    display: inline-block;
    width: 100%;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.portrait-layout .participant-item,
.portrait-layout .leaderboard-item {
    min-height: 2.2em;
    margin: 0 0 0.45em 0;
    padding: 0.42em 0.5em;
}

.portrait-layout .leaderboard-main,
.portrait-layout .participant-main {
    margin-right: 4.8em;
}

.portrait-layout .leaderboard-score,
.portrait-layout .participant-score {
    right: 0.55em;
    top: 0.7em;
}




.rcRoomQrCodeLink {
    display: block;
    width: 150px;
    margin: 0;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    box-shadow: 0 0 0 1px #fff;
    text-align: center;
    transition: opacity 1s ease;
    text-decoration: none;
    transform-origin: top right;
    transform: scale(0.75);
}

.rcTechLabel {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    margin: 0 0 8px 0;
    padding: 4px;
    letter-spacing: 0.2em;
}

.rcRoomQrCode {
    width: 150px;
    height: 150px;
}

.rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 4px;
    margin: 8px 0 0 0;
    letter-spacing: 0.25em;
}

.portrait-layout .rcRoomQrCodeLink {
    transform: scale(0.65);
}