* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #24105e;
    background-image: linear-gradient(145deg, #24105e 0%, #6032a8 42%, #ff4d79 100%);
    color: #fff8e7;
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.confetti {
    position: fixed;
    z-index: 0;
    width: 2.2vh;
    height: 2.2vh;
    border: 0.55vh solid #ffd84d;
    transform: rotate(18deg);
    opacity: 0.7;
    pointer-events: none;
}

.confetti-one {
    top: 5vh;
    left: 45vw;
}

.app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    padding: 1.8vh;
    flex-direction: column;
}

.topbar,
.visual-card,
.choice-column,
.join-card,
.score-card {
    border: 0.18vh solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 1.4vh 3.2vh rgba(24, 7, 64, 0.3);
}

.topbar {
    display: flex;
    height: 11.2vh;
    min-height: 74px;
    padding: 1.3vh 1.6vh;
    border-radius: 2.2vh;
    background: rgba(31, 12, 79, 0.84);
    flex: 0 0 auto;
    align-items: center;
}

.brand-mark {
    position: relative;
    width: 7.3vh;
    height: 7.3vh;
    min-width: 52px;
    min-height: 52px;
    margin-right: 1.3vh;
    overflow: hidden;
    border: 0.42vh solid #fff8e7;
    border-radius: 1.65vh;
    background: #ff4d79;
    transform: rotate(-4deg);
}

.film-hole {
    position: absolute;
    top: 0.5vh;
    bottom: 0.5vh;
    width: 0.72vh;
    min-width: 5px;
    background: repeating-linear-gradient(to bottom, #fff8e7 0, #fff8e7 0.72vh, transparent 0.72vh, transparent 1.35vh);
}

.film-hole-one {
    left: 0.55vh;
}

.film-hole-two {
    right: 0.55vh;
}

.film-star {
    display: block;
    color: #fff8e7;
    font-size: 5.1vh;
    font-weight: 900;
    line-height: 6.6vh;
    text-align: center;
}

.brand-copy {
    min-width: 0;
}

.eyebrow,
.caption-kicker,
.timer-card span,
.overlay-kicker {
    margin: 0;
    color: #ffd84d;
    font-size: 1.25vh;
    font-weight: 900;
    letter-spacing: 0.19em;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 0.35vh 0 0;
    font-size: 4.2vh;
    line-height: 0.95;
    text-shadow: 0 0.35vh 0 #a82571;
}

.round-meta {
    margin-left: auto;
    padding: 0 2.2vh;
    text-align: right;
}

.round-meta strong {
    display: block;
    margin-top: 0.55vh;
    font-size: 1.7vh;
}

.phase-badge,
.answer-progress,
.player-count {
    display: inline-block;
    padding: 0.55vh 1vh;
    border-radius: 2vh;
    background: #58ebdf;
    color: #20104f;
    font-size: 1.3vh;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.timer-card {
    width: 8.5vh;
    min-width: 62px;
    padding: 0.9vh;
    border-radius: 1.5vh;
    background: #fff8e7;
    color: #2b1262;
    text-align: center;
}

.timer-card span {
    display: block;
    color: #a82571;
}

.timer-card strong {
    display: block;
    margin-top: 0.2vh;
    font-size: 3.15vh;
    line-height: 1;
}

.game-layout {
    display: flex;
    min-height: 0;
    height: auto;
    padding-top: 1.5vh;
    flex: 1 1 auto;
}

.play-area {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
}

.visual-column {
    display: flex;
    min-width: 0;
    margin-right: 1.4vh;
    flex: 1.12 1 0;
    flex-direction: column;
}

.visual-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 0.55vh solid #fff8e7;
    border-radius: 2.6vh;
    background: #000;
    flex: 1 1 auto;
}

.attract-image,
.clue-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    image-rendering: pixelated;
}

.attract-image {
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
}

.visual-card.is-attract .attract-image.is-visible {
    opacity: 1;
}

.visual-card.is-attract .clue-image {
    visibility: hidden;
    opacity: 0;
}

.clue-image {
    filter: blur(20px);
}

.visual-card.is-sharpening .clue-image,
.visual-card.is-sharp .clue-image {
    filter: blur(0);
}

.visual-card.is-sharpening .clue-image {
    transition: filter 5s linear;
}

.visual-card.is-sharp .clue-image {
    transition: none;
}

.image-vignette {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(20, 7, 52, 0.3), transparent 34%);
    pointer-events: none;
}

.pixel-veil {
    display: none;
}

.stage-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76%;
    padding: 2.4vh;
    border: 0.3vh solid rgba(255, 255, 255, 0.75);
    border-radius: 2.2vh;
    background: rgba(35, 13, 86, 0.93);
    box-shadow: 0 1vh 3vh rgba(14, 4, 40, 0.52);
    text-align: center;
    transform: translate(-50%, -50%);
}

.stage-overlay h2 {
    margin: 0.7vh 0 0.8vh;
    color: #fff;
    font-size: 3.3vh;
    line-height: 1.03;
}

.stage-overlay p:not(.overlay-kicker) {
    max-width: 46vh;
    margin: 0 auto;
    color: #e9dcff;
    font-size: 1.7vh;
    line-height: 1.35;
}

.primary-button {
    min-height: 5.2vh;
    margin-top: 1.7vh;
    padding: 1vh 2.2vh;
    border: 0;
    border-radius: 2.6vh;
    background: #ffd84d;
    color: #281057;
    box-shadow: 0 0.55vh 0 #e9862d;
    cursor: pointer;
    font-size: 1.65vh;
    font-weight: 900;
}

.primary-button:active {
    box-shadow: none;
    transform: translateY(0.45vh);
}

.reveal-ribbon {
    position: absolute;
    right: 2vh;
    bottom: 2vh;
    left: 2vh;
    padding: 1.2vh 1.7vh;
    border: 0.26vh solid #fff8e7;
    border-radius: 1.6vh;
    background: #ff4d79;
    box-shadow: 0 0.7vh 0 #9f245f;
    text-align: center;
}

.reveal-ribbon span,
.reveal-ribbon strong {
    display: block;
}

.reveal-ribbon span {
    color: #ffe4a4;
    font-size: 1.15vh;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.reveal-ribbon strong {
    margin-top: 0.2vh;
    font-size: 2.65vh;
}

.answer-progress {
    white-space: nowrap;
}

.choice-column {
    display: flex;
    width: 34%;
    min-width: 280px;
    padding: 1.6vh;
    border-radius: 2.4vh;
    background: rgba(30, 11, 76, 0.84);
    flex-direction: column;
}

.choice-heading,
.side-heading {
    display: flex;
    align-items: center;
}

.choice-heading-meta {
    margin-left: auto;
    text-align: right;
}

.choice-heading-meta .points-legend {
    margin-left: 0;
}

.choice-heading-meta .answer-progress {
    margin-top: 0.65vh;
    font-size: 1.05vh;
}

.compact-game-title {
    display: none;
}

.choice-heading h2,
.side-heading h2 {
    margin: 0.25vh 0 0;
    color: #fff;
    font-size: 2.25vh;
    line-height: 1.05;
}

.points-legend {
    margin-left: auto;
    color: #e9dcff;
    font-size: 1.13vh;
    line-height: 1.45;
    text-align: right;
}

.points-legend span {
    display: block;
}

.points-legend strong {
    color: #ffd84d;
}

.choice-list {
    display: flex;
    min-height: 0;
    margin-top: 1.3vh;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: space-between;
}

.movie-choice {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 8.6vh;
    margin: 0;
    padding: 1vh 1.2vh 1vh 5.4vh;
    overflow: hidden;
    border: 0.24vh solid rgba(255, 255, 255, 0.2);
    border-radius: 1.45vh;
    background: #3f2085;
    color: #fff;
    cursor: pointer;
    font-size: 1.62vh;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
    align-items: center;
}

.movie-choice + .movie-choice {
    margin-top: 0.7vh;
}

.movie-choice:hover,
.movie-choice:focus {
    background: #5832a7;
    border-color: #ffd84d;
    outline: none;
}

.movie-choice:disabled {
    cursor: default;
}

.choice-letter {
    position: absolute;
    top: 50%;
    left: 1.1vh;
    width: 3.35vh;
    height: 3.35vh;
    border-radius: 50%;
    background: #fff8e7;
    color: #3a1b79;
    font-size: 1.6vh;
    line-height: 3.35vh;
    text-align: center;
    transform: translateY(-50%);
}

.movie-choice.is-selected {
    background: #7050cc;
    border-color: #ffd84d;
}

.movie-choice.is-correct {
    background: #138b71;
    border-color: #7dffe3;
}

.movie-choice.is-wrong {
    background: #a72c67;
    border-color: #ffabc5;
}

.choice-status {
    min-height: 2.2vh;
    margin: 1.1vh 0 0;
    color: #d9c8ff;
    font-size: 1.28vh;
    line-height: 1.25;
    text-align: center;
}

.side-rail {
    display: flex;
    width: 24.5vh;
    min-width: 190px;
    margin-left: 1.4vh;
    flex: 0 0 auto;
    flex-direction: column;
}

.join-card,
.score-card {
    padding: 1.25vh;
    overflow: hidden;
    border-radius: 2.1vh;
    background: rgba(31, 12, 79, 0.84);
}

.join-card {
    flex: 0 0 auto;
}

.score-card {
    min-height: 0;
    margin-top: 1.3vh;
    flex: 1 1 auto;
}

.network-dot {
    width: 1.25vh;
    height: 1.25vh;
    margin-left: auto;
    border-radius: 50%;
    background: #ffd84d;
    box-shadow: 0 0 1vh #ffd84d;
}

.network-dot.is-online {
    background: #58ebdf;
    box-shadow: 0 0 1vh #58ebdf;
}

.qr-panel {
    height: 19.5vh;
    margin-top: 0.8vh;
    overflow: hidden;
    text-align: center;
}

.qr-placeholder {
    margin: 5vh 1vh 0;
    color: #d9c8ff;
    font-size: 1.2vh;
}

.qr-modal-button {
    display: none;
}

.qr-modal {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.qr-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(14, 4, 40, 0.84);
}

.qr-modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 310px;
    max-width: 88vw;
    padding: 24px 20px 20px;
    border: 3px solid #fff8e7;
    border-radius: 22px;
    background: #321271;
    box-shadow: 0 18px 50px rgba(8, 2, 26, 0.6);
    text-align: center;
    transform: translate(-50%, -50%);
}

.qr-modal-card h2 {
    margin: 7px 0 5px;
    font-size: 27px;
}

.qr-modal-card > p:not(.overlay-kicker) {
    margin: 0;
    color: #e9dcff;
    font-size: 14px;
    line-height: 1.35;
}

.qr-modal-close {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ff4d79;
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    font-weight: 900;
    line-height: 38px;
}

.qr-modal-panel {
    height: 244px;
    margin-top: 12px;
    overflow: hidden;
}

.qr-modal-panel .rcRoomQrCodeLink {
    margin-top: 0;
    transform: scale(1);
    transform-origin: top center;
}

.rcRoomQrCodeLink,
.rcRoomQrCodeLink * {
    box-sizing: content-box;
}

.rcRoomQrCodeLink {
    display: block;
    width: 150px;
    margin: 0.5vh auto 0;
    overflow: hidden;
    border: solid 8px #fff;
    border-radius: 8px;
    background: #fff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transform: scale(0.68);
    transform-origin: top center;
}

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

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

.rcRoomQrCode img,
.rcRoomQrCode canvas {
    display: block;
    width: 150px !important;
    height: 150px !important;
}

.rcRoomId {
    margin: 8px 0 0;
    padding: 4px;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 0.25em;
    text-overflow: clip;
    white-space: nowrap;
}

.player-count {
    margin-left: auto;
    padding-right: 0.75vh;
    padding-left: 0.75vh;
    font-size: 1.05vh;
}

.score-list {
    margin: 1.1vh 0 0;
    padding: 0;
    list-style: none;
}

.score-row {
    display: flex;
    min-height: 5.3vh;
    padding: 0.8vh 0.9vh;
    border-radius: 1.15vh;
    background: rgba(255, 255, 255, 0.09);
    align-items: center;
}

.score-row + .score-row {
    margin-top: 0.65vh;
}

.score-rank {
    width: 2.5vh;
    color: #ffd84d;
    font-size: 1.45vh;
    font-weight: 900;
}

.score-name {
    min-width: 0;
    overflow: hidden;
    font-size: 1.35vh;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
}

.score-points {
    margin-left: 0.7vh;
    color: #7dffe3;
    font-size: 1.4vh;
    font-weight: 900;
    white-space: nowrap;
}

.score-row.is-fastest {
    background: #78449b;
}

.score-row.is-fastest .score-name:after {
    content: " ⚡";
    color: #ffd84d;
}

.lean-paint body,
body.lean-paint {
    background: #3d1d79;
    background-image: none;
}

.lean-paint .confetti,
.lean-paint .image-vignette {
    display: none;
}

.lean-paint .film-hole {
    background: #fff8e7;
}

.lean-paint .topbar,
.lean-paint .visual-card,
.lean-paint .choice-column,
.lean-paint .join-card,
.lean-paint .score-card,
.lean-paint .stage-overlay,
.lean-paint .primary-button,
.lean-paint .reveal-ribbon,
.lean-paint .network-dot {
    box-shadow: none;
}

.lean-paint .qr-modal-card {
    box-shadow: none;
}

.lean-paint .clue-image,
.lean-paint .visual-card.is-sharpening .clue-image,
.lean-paint .visual-card.is-sharp .clue-image {
    filter: none;
    transform: none;
    transition: none;
}

.lean-paint .pixel-veil {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background: #2b1559;
    opacity: 0.78;
}

.lean-paint .visual-card.is-sharpening .pixel-veil {
    opacity: 0;
    transition: opacity 5s linear;
}

.lean-paint .visual-card.is-sharp .pixel-veil {
    opacity: 0;
}

@media (orientation: landscape) and (min-width: 1101px),
       (orientation: landscape) and (min-height: 601px) {
    .app-shell {
        display: block;
        padding: 1vh;
    }

    .topbar {
        position: absolute;
        z-index: 8;
        top: 1vh;
        right: 34vh;
        left: auto;
        width: 44vh;
        height: 9vh;
        min-height: 74px;
        max-height: 96px;
        padding: 1vh 1.6vh;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .brand-mark {
        display: flex;
        width: 5.4vh;
        height: 5.4vh;
        min-width: 52px;
        min-height: 52px;
        max-width: 64px;
        max-height: 64px;
        margin-right: 0.8vh;
        align-items: center;
        justify-content: center;
    }

    .film-star {
        font-size: 4vh;
        line-height: 1;
    }

    .brand-copy {
        display: none;
    }

    .round-meta {
        margin-left: 0;
        padding: 0 1.4vh 0 0.4vh;
        text-align: left;
    }

    .round-meta strong {
        font-size: 1.4vh;
        white-space: nowrap;
    }

    .topbar .timer-card {
        margin-left: auto;
    }

    .phase-badge {
        font-size: 1.1vh;
    }

    .game-layout,
    .play-area,
    .visual-column,
    .side-rail {
        height: 100%;
    }

    .game-layout {
        padding-top: 0;
    }

    .visual-column {
        width: 98vh;
        margin-right: 1vh;
        flex: 0 1 98vh;
    }

    .attract-image,
    .clue-image {
        object-fit: contain;
    }

    .choice-column {
        width: auto;
        min-width: 280px;
        max-width: none;
        height: 100%;
        padding-top: 11vh;
        flex: 1 1 auto;
    }

    .choice-heading {
        align-items: flex-start;
    }

    .compact-game-title {
        display: block;
        margin-bottom: 0.75vh;
        color: #ffd84d;
        font-size: 2.1vh;
        font-weight: 900;
        line-height: 1.1;
    }

    .choice-heading .caption-kicker {
        display: block;
        margin-bottom: 0.45vh;
    }

    .choice-heading h2 {
        margin-top: 0;
        line-height: 1.15;
    }

    .choice-heading-meta .answer-progress {
        margin-top: 1vh;
        font-size: 1.2vh;
    }

    .choice-list {
        margin-top: 1.7vh;
    }

    .side-rail {
        width: 32vh;
        min-width: 200px;
        max-width: 350px;
        margin-left: 1vh;
    }

    .qr-panel {
        height: 178px;
        margin-top: 1.4vh;
    }

    .join-card {
        padding: 1.8vh;
    }

    .join-card .caption-kicker {
        display: block;
        margin-bottom: 0.45vh;
    }

    .join-card .side-heading h2 {
        margin-top: 0;
        line-height: 1.15;
    }

    .score-name,
    .score-points {
        font-size: 1.55vh;
    }
}

@media (orientation: landscape) and (max-width: 1100px) and (max-height: 600px) {
    .app-shell {
        display: block;
        padding: 1vh;
    }

    .topbar {
        position: absolute;
        z-index: 8;
        top: 1vh;
        right: 34vh;
        left: auto;
        width: 44vh;
        height: 58px;
        min-height: 0;
        padding: 7px 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        margin-right: 6px;
        border-width: 2px;
        border-radius: 9px;
        transform: none;
    }

    .film-hole {
        display: none;
    }

    .film-star {
        font-size: 28px;
        line-height: 31px;
    }

    .brand-copy {
        display: none;
    }

    .round-meta {
        margin-left: 0;
        padding: 0 8px 0 2px;
        text-align: left;
    }

    .phase-badge {
        padding: 3px 6px;
        font-size: 8px;
        letter-spacing: 0.05em;
    }

    .round-meta strong {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .topbar .timer-card {
        margin-left: auto;
    }

    .timer-card {
        width: 42px;
        min-width: 42px;
        padding: 4px;
        border-radius: 9px;
    }

    .timer-card span {
        font-size: 8px;
    }

    .timer-card strong {
        margin-top: 1px;
        font-size: 20px;
    }

    .game-layout,
    .play-area,
    .visual-column,
    .side-rail {
        height: 100%;
    }

    .game-layout {
        padding-top: 0;
    }

    .visual-column {
        position: relative;
        width: 98vh;
        margin-right: 1vh;
        flex: 0 1 98vh;
    }

    .visual-card {
        border-width: 3px;
        border-radius: 16px;
    }

    .attract-image,
    .clue-image {
        object-fit: contain;
    }

    .stage-overlay {
        width: 78%;
        padding: 10px;
        border-width: 2px;
        border-radius: 12px;
    }

    .stage-overlay h2 {
        margin: 5px 0 6px;
        font-size: 16px;
    }

    .stage-overlay p:not(.overlay-kicker) {
        font-size: 10px;
    }

    .primary-button {
        min-height: 32px;
        margin-top: 8px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .reveal-ribbon {
        right: 8px;
        bottom: 8px;
        left: 8px;
        padding: 7px 9px;
        border-radius: 10px;
    }

    .reveal-ribbon span {
        font-size: 8px;
    }

    .reveal-ribbon strong {
        font-size: 16px;
    }

    .choice-column {
        width: auto;
        min-width: 180px;
        max-width: none;
        height: 100%;
        padding: 68px 10px 10px;
        border-radius: 16px;
        flex: 1 1 auto;
    }

    .choice-heading {
        align-items: flex-start;
    }

    .compact-game-title {
        display: block;
        margin-bottom: 5px;
        color: #ffd84d;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.1;
    }

    .choice-heading .caption-kicker {
        display: block;
        margin-bottom: 3px;
        font-size: 8px;
    }

    .choice-heading h2 {
        margin-top: 0;
        font-size: 15px;
        line-height: 1.15;
    }

    .points-legend {
        font-size: 9px;
        line-height: 1.3;
    }

    .choice-heading-meta .answer-progress {
        margin-top: 7px;
        padding: 3px 6px;
        font-size: 9px;
    }

    .choice-list {
        margin-top: 10px;
    }

    .movie-choice {
        min-height: 0;
        height: auto;
        padding: 5px 6px 5px 32px;
        border-width: 1px;
        border-radius: 8px;
        font-size: 12px;
        line-height: 1.15;
        flex: 1 1 0;
    }

    .movie-choice + .movie-choice {
        margin-top: 3px;
    }

    .choice-letter {
        left: 5px;
        width: 21px;
        height: 21px;
        font-size: 10px;
        line-height: 21px;
    }

    .choice-status {
        min-height: 0;
        margin: 7px 0 0;
        overflow: hidden;
        font-size: 9px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .side-rail {
        width: 32vh;
        min-width: 120px;
        max-width: 180px;
        margin-left: 1vh;
    }

    .join-card,
    .score-card {
        padding: 8px;
        border-radius: 12px;
    }

    .join-card .side-heading h2 {
        display: block;
        margin-top: 3px;
        font-size: 12px;
        line-height: 1.15;
    }

    .join-card .caption-kicker {
        display: block;
        margin-bottom: 3px;
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .network-dot {
        width: 8px;
        height: 8px;
    }

    .qr-panel {
        position: relative;
        height: 132px;
        margin-top: 8px;
    }

    .qr-panel .rcRoomQrCodeLink {
        position: absolute;
        top: 6px;
        left: 50%;
        margin: 0 0 0 -83px;
        transform: scale(0.5);
        transform-origin: top center;
    }

    .score-card {
        margin-top: 1vh;
        padding: 7px;
    }

    .score-card .caption-kicker {
        display: none;
    }

    .score-card .side-heading h2 {
        font-size: 12px;
    }

    .player-count {
        padding: 2px 4px;
        font-size: 9px;
    }

    .score-list {
        margin-top: 5px;
    }

    .score-row {
        min-height: 0;
        padding: 4px 3px;
        border-radius: 6px;
    }

    .score-row + .score-row {
        margin-top: 3px;
    }

    .score-rank {
        width: 13px;
        font-size: 10px;
    }

    .score-name,
    .score-points {
        font-size: 11px;
    }

    .score-points {
        margin-left: 2px;
    }

    .qr-modal-card {
        width: 260px;
        max-height: calc(100% - 16px);
        padding: 12px 14px 10px;
        border-width: 2px;
        border-radius: 14px;
    }

    .qr-modal-card h2 {
        margin: 3px 0;
        font-size: 18px;
    }

    .qr-modal-card > p:not(.overlay-kicker) {
        display: none;
    }

    .qr-modal-close {
        top: 5px;
        right: 5px;
        width: 32px;
        height: 32px;
        font-size: 24px;
        line-height: 30px;
    }

    .qr-modal-panel {
        height: 194px;
        margin-top: 5px;
    }

    .qr-modal-panel .rcRoomQrCodeLink {
        margin: 0 auto;
        transform: scale(0.82);
        transform-origin: top center;
    }
}

@media (orientation: landscape) and (max-width: 700px) and (max-height: 600px) {
    .topbar {
        right: calc(120px + 2vh);
        width: 190px;
    }

    .choice-column {
        min-width: 190px;
    }
}

@media (orientation: landscape) and (max-width: 540px) and (max-height: 600px) {
    .topbar {
        right: calc(110px + 2vh);
        width: 170px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .topbar .brand-mark {
        display: none;
    }

    .topbar .round-meta {
        padding-right: 5px;
        padding-left: 0;
    }

    .choice-column {
        width: 32%;
        min-width: 170px;
    }

    .choice-heading {
        align-items: center;
    }

    .choice-heading .caption-kicker,
    .choice-heading h2 {
        display: none;
    }

    .compact-game-title {
        margin-bottom: 0;
    }

    .choice-heading-meta .answer-progress {
        margin-top: 0;
    }

    .movie-choice {
        padding: 3px 5px 3px 28px;
        font-size: 10px;
        line-height: 1.05;
    }

    .choice-letter {
        left: 4px;
        width: 19px;
        height: 19px;
        font-size: 9px;
        line-height: 19px;
    }

    .choice-status {
        display: none;
    }

    .points-legend {
        display: none;
    }

    .side-rail {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
    }

    .join-card {
        position: relative;
        height: 58px;
        padding: 5px;
    }

    .join-card .side-heading,
    .join-card .qr-panel {
        display: none;
    }

    .qr-modal-button {
        display: block;
        width: 100%;
        height: 100%;
        padding: 4px;
        border: 2px solid #fff8e7;
        border-radius: 8px;
        background: #ffd84d;
        color: #2b1262;
        font-size: 10px;
        font-weight: 900;
    }
}

@media (orientation: portrait) {
    .app-shell {
        padding: 1.2vh;
    }

    .topbar,
    .visual-card,
    .choice-column,
    .join-card,
    .score-card {
        border: 2px solid rgba(255, 248, 231, 0.38);
        border-radius: 2vh;
    }

    .topbar {
        height: 9.5vh;
        min-height: 68px;
        padding: 1.1vh;
    }

    .brand-mark {
        width: 6.4vh;
        height: 6.4vh;
        min-width: 46px;
        min-height: 46px;
        margin-right: 0.9vh;
    }

    .film-star {
        font-size: 4.4vh;
        line-height: 5.7vh;
    }

    .brand-copy h1 {
        font-size: 3vh;
    }

    .eyebrow {
        font-size: 0.95vh;
    }

    .round-meta {
        display: none;
    }

    .timer-card {
        width: 6.8vh;
        min-width: 53px;
        margin-left: auto;
    }

    .timer-card strong {
        font-size: 2.6vh;
    }

    .game-layout {
        display: block;
        height: 88.1vh;
        padding-top: 1vh;
    }

    .play-area {
        display: block;
        height: 74.2vh;
    }

    .visual-column {
        display: block;
        height: 42vh;
        margin: 0;
    }

    .visual-card {
        height: 42vh;
    }

    .stage-overlay {
        width: 86%;
        padding: 1.6vh;
    }

    .stage-overlay h2 {
        font-size: 2.5vh;
    }

    .stage-overlay p:not(.overlay-kicker) {
        font-size: 1.4vh;
    }

    .primary-button {
        min-height: 4.7vh;
        font-size: 1.4vh;
    }

    .caption-kicker {
        font-size: 0.9vh;
    }

    .answer-progress {
        font-size: 0.92vh;
    }

    .choice-column {
        display: flex;
        width: 100%;
        min-width: 0;
        height: 31.3vh;
        padding: 1.1vh;
        flex-direction: column;
    }

    .choice-heading h2 {
        font-size: 1.65vh;
    }

    .points-legend {
        font-size: 0.9vh;
    }

    .choice-list {
        display: flex;
        min-height: 0;
        height: auto;
        margin-top: 0.7vh;
        flex: 1 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: space-between;
        justify-content: space-between;
    }

    .movie-choice {
        width: calc(50% - 0.45vh);
        min-height: 0;
        height: 31.5%;
        border-width: 2px;
        padding: 0.6vh 0.7vh 0.6vh 4.1vh;
        border-radius: 1.1vh;
        font-size: 1.22vh;
    }

    .movie-choice + .movie-choice {
        margin-top: 0;
    }

    .choice-letter {
        left: 0.65vh;
        width: 2.75vh;
        height: 2.75vh;
        font-size: 1.25vh;
        line-height: 2.75vh;
    }

    .choice-status {
        display: none;
    }

    .side-rail {
        display: flex;
        width: 100%;
        min-width: 0;
        height: 12.9vh;
        margin: 0.9vh 0 0;
        flex-direction: row;
    }

    .join-card,
    .score-card {
        height: 100%;
        padding: 1.1vh;
    }

    .join-card {
        position: relative;
        width: 35%;
    }

    .score-card {
        width: calc(65% - 1.2vh);
        margin: 0 0 0 1.2vh;
    }

    .side-heading h2 {
        font-size: 1.35vh;
    }

    .join-card .caption-kicker,
    .join-card .side-heading h2,
    .join-card .network-dot {
        display: none;
    }

    .qr-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        height: auto;
        margin: 0;
        overflow: hidden;
    }

    .rcRoomQrCodeLink {
        position: absolute;
        top: 0.7vh;
        left: 50%;
        margin: 0;
        transform: translateX(-50%) scale(0.48);
        transform-origin: top left;
    }

    .player-count {
        font-size: 0.8vh;
    }

    .score-list {
        display: flex;
        margin-top: 0.55vh;
        flex-wrap: wrap;
    }

    .score-row {
        width: 49%;
        min-height: 3.1vh;
        padding: 0.35vh 0.55vh;
    }

    .score-row:nth-child(even) {
        margin-left: 2%;
    }

    .score-row + .score-row {
        margin-top: 0;
    }

    .score-row:nth-child(n+3) {
        margin-top: 0.45vh;
    }

    .score-rank,
    .score-name,
    .score-points {
        font-size: 0.95vh;
    }

    .score-rank {
        width: 1.8vh;
    }
}

@media (orientation: portrait) and (max-width: 540px) {
    .brand-copy h1 {
        font-size: 2.65vh;
    }

    .stage-overlay {
        width: 90%;
    }

    .join-card .qr-panel {
        display: none;
    }

    .qr-modal-button {
        position: absolute;
        top: 50%;
        left: 50%;
        display: block;
        width: 86%;
        min-height: 7.4vh;
        padding: 0.7vh;
        border: 0.25vh solid #fff8e7;
        border-radius: 1.5vh;
        background: #ffd84d;
        color: #2b1262;
        font-size: 1.35vh;
        font-weight: 900;
        transform: translate(-50%, -50%);
    }

    .qr-modal-panel .rcRoomQrCodeLink {
        position: static;
        top: auto;
        left: auto;
        margin: 0 auto;
        transform: none;
    }

    .reveal-ribbon {
        right: 1vh;
        bottom: 1vh;
        left: 1vh;
    }

    .reveal-ribbon strong {
        font-size: 2vh;
    }
}
