@font-face {
  font-family: Gilroy;
  src: url("/fonts/Gilroy-Regular.a3a4c948fe.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Gilroy;
  src: url("/fonts/Gilroy-Medium.9a4a6b606a.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Gilroy;
  src: url("/fonts/Gilroy-SemiBold.f9b8ea1c92.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Gilroy;
  src: url("/fonts/Gilroy-Bold.5b05489720.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Gilroy;
  src: url("/fonts/Gilroy-ExtraBold.9f7786ee14.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

/*
 * The design is drawn for two phones: a modern one 852 points tall, and a
 * small, low-DPI one (360 x 640, older Android, iPhone SE class). device.ts
 * sets --k to the phone's height over 852, which scales the game logo and
 * the space around it, and `compact` below 0.9, which tightens the answer
 * buttons, the final standings and the share screen the way the small
 * phone's version of the design does.
 */
:root {
  --k: 1;
  --status: env(safe-area-inset-top, 0px);
  /* The bar under the status bar. In the design the status bar is part of
     it, which is what gives it its height; a browser keeps the status bar
     to itself, so on a phone the bar is taller and the mark centred in it. */
  --nav: 72px;
  --nav-bottom: 27px;
  --side: 24px;
  --screen-bg: linear-gradient(
    180deg,
    #2b1250 0%,
    #1c0f38 30%,
    #120c22 60%,
    #0f0c1a 100%
  );
  --nav-bg: linear-gradient(180deg, #1c0b36 0%, #2a1250 100%);
  --text: #ffffff;
  --muted: #b5b3c0;
  --quiet: #9a9ab0;
  --label: #8d8b9c;
  --field: rgba(255, 255, 255, 0.06);
  --field-edge: rgba(255, 255, 255, 0.18);
  --row-edge: rgba(255, 255, 255, 0.12);
  --peach: #ffdab7;
  --gold: #f5c24a;
  --you: #d42a32;
  --you-bg: rgba(212, 42, 50, 0.15);
  --button: linear-gradient(180deg, #e53a41, #c81f28);
  --status-in: #2b7fff;
  --correct: #23c552;
  --wrong: #ff5a5f;
  --wrong-text: #ff8a8e;
  --late: #f5a524;
  --a: #e5484d;
  --b: #3e63dd;
  --c: #f5a524;
  --d: #30a46c;
}
.compact {
  --side: 18px;
  --nav: 62px;
  --nav-bottom: 22px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  background: #0f0c1a;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

button,
img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

[hidden] {
  display: none !important;
}

/* On a phone the device is the page itself; see the desktop block at the
   end for the phone it becomes on a bigger screen. */
.device-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--screen-bg);
}
.device-clock,
.device-home {
  display: none;
}

/* The ROXi mark, centred in a bar along the top. */
.navbar {
  position: relative;
  z-index: 1;
  height: calc(var(--status) + var(--nav));
  padding: var(--status) 0 var(--nav-bottom);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--nav-bg);
  box-shadow: 0 10px 30px rgba(10, 4, 12, 0.45);
}
.navbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 218, 183, 0) 0%,
    rgba(255, 218, 183, 0.55) 50%,
    rgba(255, 218, 183, 0) 100%
  );
}
.navbar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 160px;
  height: 28px;
  margin-left: -80px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 150, 120, 0.22),
    rgba(255, 150, 120, 0)
  );
  pointer-events: none;
}
.navbar img {
  position: relative;
  width: 78px;
  height: 18px;
}

#app {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 var(--side) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The game is the hero of every screen, a little smaller over the form. */
.game-logo {
  display: block;
  width: calc(192px * var(--k));
  margin-top: calc(36px * var(--k));
}
#app[data-screen="join"] .game-logo {
  width: calc(160px * var(--k));
}
.game-genre {
  margin: 6px 0 0;
  color: #c9c9dd;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.screen {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.screen > * {
  margin: 0;
}

.title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.eyebrow {
  margin-top: 40px !important;
  color: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}
.muted {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-wrap: pretty;
}
.muted strong {
  color: #d7d5e0;
}

/* Join */
#join-title {
  margin-top: 26px;
}
.game-logo[hidden] ~ #screen-join #join-title {
  margin-top: calc(36px * var(--k));
}
form {
  align-self: stretch;
  margin-top: 30px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
label {
  color: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
label[for="name"] {
  margin-top: 6px;
}
input {
  width: 100%;
  height: 64px;
  padding: 0 22px;
  border-radius: 20px;
  border: 1.5px solid var(--field-edge);
  background: var(--field);
  color: var(--text);
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
input:focus {
  outline: none;
  border-color: rgba(255, 218, 183, 0.6);
}
#code {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
#code.invalid {
  border-color: var(--wrong);
}
.field-error {
  margin-top: -2px;
  color: var(--wrong-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-wrap: pretty;
}

button.primary {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: var(--button);
  color: #fff;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
}
button.primary:disabled {
  opacity: 0.5;
}
button.primary:active {
  transform: scale(0.98);
}
#join-button {
  margin-top: 10px;
}

button.primary.busy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
button.primary.busy::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}

.error {
  color: var(--wrong-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

/* Waiting for the TV: lobby, ready, locked in */
#lobby-title,
#ready-name {
  margin-top: 20px;
}
#lobby-sub,
#ready-name + .muted {
  margin-top: 14px;
}
.status-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}
#screen-lobby .status-slot {
  margin-top: 32px;
  height: 44px;
}
#lobby-note {
  margin-top: 32px;
}
#ready-button {
  margin-top: 32px;
}
#ready-error {
  margin-top: 14px;
}

/* In, or locked in: the blue tick the TV shows too. */
.tick {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--status-in);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
/* Waiting on the TV. */
.spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  font-size: 0;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*
 * The connection, when it is not good: one bar of four for a weak one, a
 * spinner while reconnecting. Under a screen's label, beside the question
 * in a round, or at the top of the result and the final scores.
 */
.net {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.net.weak {
  color: var(--late);
}
.net.lost {
  color: var(--wrong-text);
}
.eyebrow + .net {
  margin-top: 12px;
}
.net-top {
  margin-top: 40px;
}
.net-top:not([hidden]) + .verdict,
.net-top:not([hidden]) + #over-title {
  margin-top: 12px !important;
}
/* where the screen itself says it is reconnecting */
.screen[data-net-off] .net {
  display: none;
}
.net-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.net-bars i {
  width: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.net-bars i:nth-child(1) {
  height: 5px;
  background: currentColor;
}
.net-bars i:nth-child(2) {
  height: 8px;
}
.net-bars i:nth-child(3) {
  height: 11px;
}
.net-bars i:nth-child(4) {
  height: 14px;
}
.net-spin {
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  animation: spin 0.9s linear infinite;
}
.net.weak .net-spin,
.net.lost .net-bars {
  display: none;
}

#screen-answered .eyebrow,
#screen-sending .eyebrow {
  color: var(--quiet);
  letter-spacing: 2px;
}
#screen-answered .status-slot,
#screen-sending .status-slot {
  margin-top: 20px;
  height: 46px;
}
#answered-choice,
#sending-choice {
  margin-top: 20px;
}
#screen-answered .muted,
#screen-sending .muted {
  margin-top: 20px;
  color: var(--quiet);
}

/* Answered, but the answer is still on its way */
#screen-sending .eyebrow {
  color: var(--late);
}

/* Round */
.round-header {
  align-self: stretch;
  margin-top: calc(56px * var(--k)) !important;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--quiet);
}
.round-seconds {
  color: #fff;
  text-transform: none;
}
.timer {
  align-self: stretch;
  margin-top: 12px !important;
  height: 6px;
  border-radius: 3px;
  background: #1e1e2b;
  overflow: hidden;
}
.timer-fill {
  height: 100%;
  width: 100%;
  background: #cd1e25;
  transform-origin: left center;
}
.question-row {
  align-self: stretch;
  margin-top: 14px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.question {
  flex: none;
  margin: 0;
  color: var(--quiet);
  font-size: 15px;
  white-space: nowrap;
}
.answers {
  align-self: stretch;
  margin-top: 12px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.answer {
  min-height: 64px;
  padding: 10px 18px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  display: flex;
  align-items: center;
}
.answer-text {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-wrap: pretty;
}
/* The title with its artist under it (Name the Song and Artist). */
.answer-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.answer-lines .answer-text {
  flex: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}
.answer-detail {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.94);
  text-wrap: pretty;
}
.answer:active {
  transform: scale(0.98);
}
.answer:disabled {
  opacity: 0.45;
}
.answer:nth-child(1) {
  background: var(--a);
}
.answer:nth-child(2) {
  background: var(--b);
}
.answer:nth-child(3) {
  background: var(--c);
}
.answer:nth-child(4) {
  background: var(--d);
}
.compact .answers {
  gap: 10px;
}
.compact .answer {
  min-height: 56px;
  padding: 7px 18px;
}
/* Answers with a second line that would run off the screen: tighter, then
   titles on one line (see fitAnswers in screens/round.ts). */
#app[data-screen="round"][data-fit] .game-logo {
  width: calc(192px * var(--k) * 0.72);
}
#app[data-fit] .round-header {
  margin-top: calc(56px * var(--k) * 0.4) !important;
}
#app[data-fit] .answers {
  gap: 6px;
}
#app[data-fit] .answer {
  padding-top: 5px;
  padding-bottom: 5px;
}
#app[data-fit="2"] .answer-lines .answer-text {
  -webkit-line-clamp: 1;
}

/* Round result */
.verdict {
  margin-top: 40px !important;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 800;
}
.verdict.correct {
  font-size: 90px;
  color: var(--correct);
}
.verdict.wrong {
  font-size: 80px;
  color: var(--wrong);
}
.verdict.late {
  font-size: 72px;
  color: var(--late);
}
/* An answer that reached the TV after the round was scored */
.verdict.too-late {
  font-size: 80px;
  color: var(--late);
}
#result-title {
  margin-top: 14px;
}
.result-line {
  margin-top: 14px !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: #d7d5e0;
  text-wrap: pretty;
}
.result-line.note {
  font-size: 16px;
  font-weight: 500;
}
/* the right answer's artist, under its title: as .answer-detail */
.result-detail {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.94);
}
.result-line.gained {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.standing {
  margin-top: 14px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  color: var(--quiet);
}
.delta {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.delta.up {
  color: #5fe08a;
  background: rgba(35, 197, 82, 0.17);
}
.delta.down {
  color: var(--wrong-text);
  background: rgba(255, 90, 95, 0.17);
}

/* Game over */
#over-title {
  margin-top: 36px;
}
.standings {
  align-self: stretch;
  margin-top: 22px !important;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.standings li {
  height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid var(--row-edge);
  background: var(--field);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}
.standings li.me {
  border-color: var(--you);
  background: var(--you-bg);
}
.standings .rank {
  flex: none;
  width: 44px;
  text-align: left;
  font-weight: 700;
  color: var(--gold);
}
.standings .who {
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.standings .you {
  flex: none;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--you);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.standings .pts {
  margin-left: auto;
  font-weight: 700;
}
#share-button {
  margin-top: 24px;
}
#screen-over > .muted {
  margin-top: 16px;
}
.compact #over-title {
  margin-top: 20px;
}
.compact .standings {
  margin-top: 14px !important;
}
.compact .standings li {
  height: 44px;
}
.compact #share-button {
  margin-top: 16px;
}

/* The score picture, full screen. */
.share-viewer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--screen-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--status) + 42px) var(--side)
    calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.share-viewer img {
  flex: none;
  width: 100%;
  max-width: calc(70vh * 0.8);
  max-width: calc(70svh * 0.8);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  /* the long press is the point: keep the browser's image menu available */
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
}
.share-viewer .muted {
  margin: 24px 0 0;
  line-height: 1.45;
}
.share-viewer button.primary {
  flex: none;
  margin-top: 30px;
}
.compact .share-viewer {
  padding-top: calc(var(--status) + 12px);
}
.compact .share-viewer .muted {
  margin-top: 16px;
}
.compact .share-viewer button.primary {
  margin-top: 18px;
}

/*
 * A desktop or a tablet: the page inside a phone, as in the design - the
 * modern one, scaled down (device.ts sets --frame-scale) when the window is
 * too short for it.
 */
@media (min-width: 600px) and (min-height: 600px) {
  :root {
    /* the design's own: a status bar of 54 and a bar of 100 in all */
    --status: 54px;
    --nav: 46px;
    --nav-bottom: 18px;
  }
  html,
  body {
    height: 100%;
    overflow: hidden;
    background: #0c0c10;
  }
  .device {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 414px;
    height: 880px;
    margin: -440px 0 0 -207px;
    padding: 14px;
    border-radius: 60px;
    background: #050507;
    box-shadow: 0 0 0 2px #2a2a33;
    transform: scale(var(--frame-scale, 1));
  }
  .device-screen {
    width: 386px;
    height: 852px;
    min-height: 0;
    border-radius: 46px;
    overflow: hidden;
    /* holds the share viewer, fixed to the screen, inside the phone */
    transform: translateZ(0);
  }
  .device-scroll {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .device-scroll::-webkit-scrollbar {
    display: none;
  }
  .device-clock {
    display: block;
    position: absolute;
    left: 34px;
    top: 16px;
    /* over the share viewer too: it is the phone's, not the page's */
    z-index: 12;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .device-home {
    display: block;
    position: absolute;
    left: 126px;
    bottom: 8px;
    z-index: 11;
    width: 134px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.55);
  }
  .share-viewer img {
    max-width: none;
  }
}
