* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { overflow-x: hidden; background-color: #071e29; color: #fff5d9; font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.control-header { position: -webkit-sticky; position: sticky; z-index: 5; top: 0; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 70px; padding: 9px 12px; border-bottom: 3px solid #f2c14e; background-color: #0e3945; }
.back-button { -webkit-flex: 0 0 44px; flex: 0 0 44px; width: 44px; height: 44px; padding-top: 4px; border-radius: 12px; background-color: #173f49; color: #fff; font-size: 33px; line-height: 35px; text-align: center; text-decoration: none; }
.control-brand { -webkit-flex: 1; flex: 1; margin-left: 10px; font-size: 19px; font-weight: 900; letter-spacing: -.03em; }
.control-brand span { margin-right: 5px; }
.control-brand b { padding: 4px 7px; border-radius: 6px; background-color: #ef665d; color: #fff; letter-spacing: .04em; }
.score-box { -webkit-flex: 0 0 62px; flex: 0 0 62px; text-align: center; }
.score-box span { display: block; color: #9fc9c7; font-size: 10px; font-weight: bold; letter-spacing: .1em; text-transform: uppercase; }
.score-box strong { display: block; color: #f2c14e; font-size: 25px; line-height: 1; }
.network-state { min-height: 29px; padding: 6px 12px; background-color: #092b35; color: #9fc9c7; font-size: 13px; text-align: center; }
.control-main { width: 100%; max-width: 620px; margin: 0 auto; padding: 12px; }
.card, .image-card, .round-strip { margin-bottom: 12px; border: 2px solid #28515d; border-radius: 16px; background-color: #103a45; box-shadow: 0 7px 18px rgba(0,0,0,.22); }
.card { padding: 18px; }
.kicker { margin: 0 0 6px; color: #f2c14e; font-size: 12px; font-weight: bold; letter-spacing: .13em; text-transform: uppercase; }
.card h1 { margin: 0 0 9px; color: #fff5d9; font-size: 27px; line-height: 1.12; }
.card > p:not(.kicker) { margin: 0 0 15px; color: #c1dbd8; font-size: 16px; line-height: 1.42; }
label { display: block; margin: 15px 0 6px; color: #fff5d9; font-size: 15px; font-weight: bold; }
input { width: 100%; min-height: 54px; padding: 10px 12px; border: 2px solid #4c7d82; border-radius: 12px; background-color: #fffaf0; color: #102c3a; font-size: 19px; }
.primary-button { width: 100%; min-height: 54px; margin-top: 12px; padding: 10px 16px; border: 0; border-radius: 12px; background-color: #ef665d; color: #fff; box-shadow: 0 5px 0 #a9333b; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.primary-button:disabled { cursor: default; opacity: .55; }
.connection-copy { margin-top: 14px !important; color: #91c6c9 !important; font-size: 14px !important; text-align: center; }
.round-strip { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 62px; padding: 9px 11px; }
.round-strip > span { -webkit-flex: 0 0 auto; flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background-color: #f2c14e; color: #0b3540; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.round-strip > strong { -webkit-flex: 1; flex: 1; min-width: 0; margin: 0 9px; overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.round-strip > div { -webkit-flex: 0 0 48px; flex: 0 0 48px; text-align: center; }
.round-strip small { display: block; color: #91c6c9; font-size: 9px; text-transform: uppercase; }
.round-strip b { color: #f2c14e; font-size: 22px; }
.status-card.is-correct { border-color: #46b99a; background-color: #124c42; }
.status-card.is-wrong { border-color: #d45c63; background-color: #4b2930; }
.status-card.is-reveal { border-color: #f2c14e; }
.image-card { position: relative; overflow: hidden; background-color: #f2c14e; }
.image-canvas { position: relative; width: 100%; padding-top: 100%; overflow: hidden; background-color: #173c48; }
.image-canvas img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; opacity: 1; transform-origin: 50% 50%; }
.image-canvas #mysteryImage { transition: opacity 220ms ease; }
.image-canvas #mysteryImage.is-changing { opacity: .08; }
.image-canvas .transition-image { z-index: 2; opacity: 0; transition: none; }
.image-canvas .transition-image.zoom-from-1-to-2 { opacity: 1; transform: scale(1.75); }
.image-canvas .transition-image.zoom-from-1-to-3 { opacity: 1; transform: scale(3); }
.image-canvas .transition-image.zoom-from-1-to-4 { opacity: 1; transform: scale(4.5); }
.image-canvas .transition-image.zoom-from-1-to-5 { opacity: 1; transform: scale(6.25); }
.image-canvas .transition-image.zoom-from-2-to-3 { opacity: 1; transform: scale(1.7143); }
.image-canvas .transition-image.zoom-from-2-to-4 { opacity: 1; transform: scale(2.5714); }
.image-canvas .transition-image.zoom-from-2-to-5 { opacity: 1; transform: scale(3.5714); }
.image-canvas .transition-image.zoom-from-3-to-4 { opacity: 1; transform: scale(1.5); }
.image-canvas .transition-image.zoom-from-3-to-5 { opacity: 1; transform: scale(2.0833); }
.image-canvas .transition-image.zoom-from-4-to-5 { opacity: 1; transform: scale(1.3889); }
.image-canvas .transition-image.is-zooming { opacity: 1; transform: scale(1); transition: transform 1050ms ease-in-out; }
.image-card > div:last-child { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: space-between; justify-content: space-between; min-height: 42px; padding: 8px 12px; background-color: #fff5d9; color: #103a45; }
.image-card span { font-size: 13px; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; }
.image-card strong { color: #d84550; }
.answer-heading { display: -webkit-flex; display: flex; -webkit-align-items: baseline; align-items: baseline; -webkit-justify-content: space-between; justify-content: space-between; margin-bottom: 10px; }
.answer-heading h2 { margin: 0; color: #fff5d9; font-size: 20px; }
.answer-heading span { color: #9fc9c7; font-size: 12px; font-weight: bold; }
.answer-list { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: -5px; }
.answer-button { position: relative; -webkit-flex: 0 0 calc(50% - 10px); flex: 0 0 calc(50% - 10px); width: calc(50% - 10px); min-height: 64px; margin: 5px; padding: 8px 8px 8px 39px; border: 2px solid #39717a; border-radius: 12px; background-color: #092e38; color: #fff5d9; font-size: 15px; font-weight: bold; line-height: 1.18; text-align: left; }
.answer-marker { position: absolute; top: 50%; left: 8px; width: 24px; height: 24px; margin-top: -12px; padding-top: 3px; border-radius: 50%; background-color: #1f6872; color: #fff; text-align: center; }
.answer-button:disabled { cursor: default; opacity: .55; }
.answer-button.is-wrong { border-color: #ad4e57; color: #d7a6aa; }
.answer-button.is-wrong .answer-marker { background-color: #ad4e57; }
.answer-button.is-selected { border-color: #f2c14e; background-color: #58491d; opacity: 1; }
.answer-button.is-correct { border-color: #4fc7a6; background-color: #155347; color: #fff; opacity: 1; }
.answer-button.is-correct .answer-marker { background-color: #42ad90; }
.leaderboard-card ol { margin: 0; padding: 0; list-style: none; }
.leader-row { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-height: 44px; margin-top: 6px; padding: 7px 9px; border-radius: 10px; background-color: #173f49; }
.leader-row.is-you { border: 1px solid #f2c14e; }
.leader-rank { -webkit-flex: 0 0 28px; flex: 0 0 28px; color: #f2c14e; font-weight: bold; }
.leader-name { -webkit-flex: 1; flex: 1; min-width: 0; overflow: hidden; color: #fff; font-weight: bold; text-overflow: ellipsis; white-space: nowrap; }
.leader-score { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-left: 8px; color: #f2c14e; }
.lean-paint .image-canvas img { transition: none; }
.lean-paint .image-canvas .transition-image { display: none; }

@media (max-width: 539px) {
    .status-card { padding-top: 14px; padding-bottom: 14px; }
    .status-card h1 { font-size: 23px; }
    .status-card > p:not(.kicker) { margin-bottom: 8px; font-size: 15px; }
    .image-card { width: 240px; max-width: 100%; margin-left: auto; margin-right: auto; }
}

@media (max-width: 380px) {
    .control-main { padding: 8px; }
    .card { padding: 14px; }
    .control-brand { font-size: 17px; }
    .answer-button { min-height: 60px; padding-left: 35px; font-size: 14px; }
    .answer-marker { left: 6px; }
}

@media (orientation: portrait) and (max-width: 600px) {
    html, body { height: 100%; min-height: 100%; overflow: hidden; }
    .control-header { position: static; min-height: 56px; padding: 6px 9px; }
    .back-button { -webkit-flex-basis: 40px; flex-basis: 40px; width: 40px; height: 40px; padding-top: 3px; font-size: 30px; line-height: 34px; }
    .control-brand { margin-left: 8px; font-size: 17px; }
    .score-box strong { font-size: 22px; }
    .network-state { min-height: 22px; padding: 4px 9px; font-size: 11px; }
    .control-main { height: calc(100vh - 78px); padding: 7px; overflow: hidden; }
    .game-view { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
    .round-strip { -webkit-flex: 0 0 48px; flex: 0 0 48px; min-height: 48px; margin-bottom: 6px; padding: 6px 9px; }
    .round-strip > span { padding: 5px 7px; font-size: 10px; }
    .round-strip > strong { margin: 0 7px; font-size: 12px; }
    .round-strip > div { -webkit-flex-basis: 42px; flex-basis: 42px; }
    .round-strip b { font-size: 19px; }
    .status-card { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-bottom: 6px; padding: 8px 11px; }
    .status-card .kicker { display: none; }
    .status-card h1 { margin-bottom: 3px; font-size: 20px; }
    .status-card > p:not(.kicker) { margin-bottom: 0; font-size: 12px; line-height: 1.25; }
    .status-card .primary-button { min-height: 42px; margin-top: 7px; padding-top: 6px; padding-bottom: 6px; }
    .image-card { -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 210px; max-width: 52%; margin: 0 auto 6px; }
    .image-card > div:last-child { min-height: 30px; padding: 5px 7px; }
    .image-card span { font-size: 10px; }
    .image-card strong { font-size: 12px; }
    .answer-card { -webkit-flex: 0 0 auto; flex: 0 0 auto; margin-bottom: 6px; padding: 8px 10px; }
    .answer-heading { margin-bottom: 5px; }
    .answer-heading h2 { font-size: 17px; }
    .answer-heading span { font-size: 10px; }
    .answer-list { margin: -3px; }
    .answer-button { -webkit-flex-basis: calc(50% - 6px); flex-basis: calc(50% - 6px); width: calc(50% - 6px); min-height: 42px; margin: 3px; padding: 4px 6px 4px 35px; font-size: 12px; }
    .answer-marker { left: 6px; width: 23px; height: 23px; margin-top: -12px; padding-top: 3px; }
    .leaderboard-card { -webkit-flex: 1; flex: 1; display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; min-height: 0; margin-bottom: 0; padding: 8px 10px; overflow: hidden; }
    .leaderboard-card ol { min-height: 0; overflow-y: auto; }
    .leader-row { min-height: 36px; margin-top: 4px; padding: 4px 7px; font-size: 12px; }
}

@media (orientation: portrait) and (max-width: 600px) and (max-height: 760px) {
    .image-card { width: 160px; }
    .status-card > p:not(.kicker) { display: none; }
    .answer-button { min-height: 38px; padding-top: 3px; padding-bottom: 3px; }
}

@media (orientation: landscape) and (max-height: 520px) {
    .control-header { position: static; min-height: 58px; }
    .control-main { max-width: 880px; }
    .image-card { float: left; width: 42%; margin-right: 12px; }
    .answer-card { overflow: hidden; }
}
