@font-face {
  font-family: "MontserratRegular";
  src: url("/monitor/montserrat/montserrat-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

:root {
  --cinema-black: #070504;
  --cinema-night: #0f1218;
  --cinema-ink: #15110f;
  --cinema-panel: rgba(21, 17, 15, 0.88);
  --cinema-panel-soft: rgba(32, 25, 22, 0.78);
  --cinema-velvet: #681824;
  --cinema-velvet-dark: #351018;
  --cinema-curtain: #8f2430;
  --cinema-gold: #c9a45b;
  --cinema-gold-soft: #f1d79d;
  --cinema-ivory: #f3ead7;
  --cinema-muted: #b9a996;
  --cinema-danger: #b53a2e;
  --cinema-success: #9fb66d;
  --cinema-border: rgba(201, 164, 91, 0.34);
  --cinema-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
  --cinema-warm-glow: 0 0 34px rgba(201, 164, 91, 0.22);
  --font-body: "MontserratRegular", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  font-weight: inherit;
}

html {
  min-height: 100%;
  background: var(--cinema-black);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.45;
  color: var(--cinema-ivory);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 225, 170, 0.2), transparent 28rem),
    radial-gradient(circle at 12% 18%, rgba(143, 36, 48, 0.38), transparent 24rem),
    radial-gradient(circle at 86% 8%, rgba(201, 164, 91, 0.16), transparent 21rem),
    linear-gradient(135deg, #070504 0%, #10131a 42%, #170c0e 100%);
  background-color: var(--cinema-black);
  background-size: auto;
  background-position: center;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: 0.07;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px);
  background-size: 9px 11px, 17px 19px;
  mix-blend-mode: screen;
}

body::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.54), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.54)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 231, 177, 0.14), transparent 62%);
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(201, 164, 91, 0.35);
  color: var(--cinema-ivory);
  text-shadow: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #100c0b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--cinema-velvet), var(--cinema-gold));
  border: 2px solid #100c0b;
  border-radius: 999px;
}

.logo {
  filter: sepia(0.35) saturate(0.78) brightness(0.96) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.44));
}

h1,
.h1,
#final-ranking h2,
.pause-message {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cinema-gold-soft);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72), 0 0 22px rgba(201, 164, 91, 0.22);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.join-url {
  overflow-wrap: anywhere;
}

.header,
#players {
  background:
    linear-gradient(180deg, rgba(25, 16, 14, 0.94), rgba(8, 6, 6, 0.88)),
    linear-gradient(90deg, transparent, rgba(201, 164, 91, 0.08), transparent);
  color: var(--cinema-gold-soft);
  border-bottom: 1px solid var(--cinema-border);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), inset 0 -1px rgba(255, 255, 255, 0.04);
  text-shadow: none;
  backdrop-filter: blur(12px);
}

#players li {
  color: var(--cinema-ivory);
  text-shadow: none;
}

#players li:hover {
  color: var(--cinema-gold-soft);
  text-shadow: none;
}

form,
#game-options,
.avatar-grid,
.ranking-list,
.player-count-container,
#suggestions,
#question-title,
#final-ranking,
#intro {
  background:
    linear-gradient(180deg, rgba(41, 32, 27, 0.92), rgba(13, 10, 10, 0.92)),
    radial-gradient(circle at 50% 0, rgba(201, 164, 91, 0.08), transparent 60%);
  color: var(--cinema-ivory);
  border: 1px solid var(--cinema-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--cinema-shadow), var(--cinema-warm-glow), inset 0 1px rgba(255, 255, 255, 0.05);
  text-shadow: none;
  backdrop-filter: blur(12px);
}

#intro,
#final-ranking {
  background:
    linear-gradient(90deg, rgba(45, 7, 14, 0.34) 0 8px, transparent 8px 28px, rgba(45, 7, 14, 0.2) 28px 36px, transparent 36px 58px),
    radial-gradient(circle at 50% 4%, rgba(248, 214, 152, 0.18), transparent 34rem),
    linear-gradient(145deg, rgba(9, 7, 7, 0.97), rgba(23, 15, 14, 0.95));
  border-radius: 0;
}

#intro {
  min-height: 100vh;
  height: auto;
}

form::before,
#game-options::before,
#hint::before,
#answer::before,
#winner::before,
#start::before,
#new-round::before,
#stop-game::before,
#suggestions li::before {
  background: linear-gradient(105deg, transparent, rgba(255, 233, 179, 0.16), transparent);
}

form::after,
#game-options::after,
.ranking-list::before {
  content: "";
  display: block;
  height: 4px;
  margin: 18px auto 0;
  max-width: 210px;
  opacity: 0.75;
  background:
    linear-gradient(90deg, transparent, var(--cinema-gold), transparent),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(243, 234, 215, 0.38) 12px 16px);
  border-radius: 999px;
}

form input[type="text"],
.option-group input[type="number"],
.option-group select {
  background: rgba(8, 7, 7, 0.78);
  color: var(--cinema-ivory);
  border: 1px solid rgba(201, 164, 91, 0.36);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.36);
  outline: none;
}

.advanced-options summary {
  background: rgba(18, 13, 10, 0.78);
  color: var(--cinema-gold-soft);
  border-color: rgba(201, 164, 91, 0.36);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.24);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.46);
}

.advanced-options summary:hover,
.advanced-options summary:focus {
  outline: none;
  border-color: var(--cinema-gold-soft);
  box-shadow: 0 0 0 3px rgba(201, 164, 91, 0.16), 0 12px 32px rgba(0, 0, 0, 0.32);
}

.advanced-options__content {
  background: rgba(8, 7, 7, 0.42);
  border-color: rgba(201, 164, 91, 0.26);
  border-radius: var(--radius-md);
}

form input[type="text"]::placeholder {
  color: rgba(243, 234, 215, 0.56);
}

form input[type="text"]:focus,
.option-group input[type="number"]:focus,
.option-group select:focus {
  border-color: var(--cinema-gold-soft);
  box-shadow: 0 0 0 3px rgba(201, 164, 91, 0.16), inset 0 2px 12px rgba(0, 0, 0, 0.36);
}

form input[type="submit"],
#start,
#new-round,
#next,
.next-song-button,
#stop-game {
  background: linear-gradient(180deg, #d7b66e 0%, #a47b34 48%, #6c2a23 100%);
  color: #120d09;
  border: 1px solid rgba(255, 231, 177, 0.58);
  border-radius: var(--radius-sm);
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(201, 164, 91, 0.2), inset 0 1px rgba(255, 255, 255, 0.34);
  text-shadow: 0 1px rgba(255, 238, 194, 0.5);
  font-weight: 700;
  letter-spacing: 0.1em;
}

form input[type="submit"]:hover,
#start:hover,
#new-round:hover,
#next:hover,
.next-song-button:hover,
#stop-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 34px rgba(201, 164, 91, 0.34);
}

#stop-game {
  background: linear-gradient(180deg, #b64a3d, #7e1f24);
  color: var(--cinema-ivory);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.confirmation-modal {
  background: rgba(7, 5, 4, 0.78);
}

.confirmation-modal__panel {
  background: linear-gradient(180deg, rgba(32, 25, 22, 0.98), rgba(14, 10, 9, 0.98));
  border-color: var(--cinema-border);
  border-radius: var(--radius-md);
  box-shadow: var(--cinema-shadow), var(--cinema-warm-glow);
}

.confirmation-modal__panel h2 {
  color: var(--cinema-gold-soft);
  font-family: var(--font-display);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72), 0 0 22px rgba(201, 164, 91, 0.22);
}

.confirmation-modal__panel p {
  color: var(--cinema-ivory);
}

.confirmation-modal__button {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
}

.confirmation-modal__button--primary {
  background: linear-gradient(180deg, #d7b66e 0%, #a47b34 48%, #6c2a23 100%);
  color: #120d09;
  border-color: rgba(255, 231, 177, 0.58);
  box-shadow: 0 13px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(201, 164, 91, 0.2), inset 0 1px rgba(255, 255, 255, 0.34);
  text-shadow: 0 1px rgba(255, 238, 194, 0.5);
}

.confirmation-modal__button--secondary {
  background: rgba(18, 13, 10, 0.78);
  color: var(--cinema-ivory);
  border-color: rgba(201, 164, 91, 0.28);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.confirmation-modal__button:hover,
.confirmation-modal__button:focus {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 34px rgba(201, 164, 91, 0.34);
}

#start.disabled,
#start.disabled:hover {
  background: linear-gradient(180deg, #5d554b, #2a2522);
  color: rgba(243, 234, 215, 0.62);
  box-shadow: none;
}

.avatar-preview,
.avatar-option,
.player-avatar,
.podium-avatar,
.ranking-avatar {
  background: radial-gradient(circle at 50% 38%, rgba(201, 164, 91, 0.14), rgba(14, 10, 9, 0.88));
  border-color: rgba(201, 164, 91, 0.48);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
}

.avatar-preview:hover,
.avatar-option:hover {
  border-color: var(--cinema-gold-soft);
  box-shadow: 0 0 0 4px rgba(201, 164, 91, 0.14), 0 14px 28px rgba(0, 0, 0, 0.45);
}

.avatar-modal,
.pause-overlay {
  background: rgba(5, 3, 3, 0.84);
  backdrop-filter: blur(10px);
}

#question-title {
  color: var(--cinema-ivory);
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
}

#question-image img {
  background: rgba(9, 7, 7, 0.78);
  border: 1px solid rgba(201, 164, 91, 0.46);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.46), 0 0 28px rgba(201, 164, 91, 0.16);
}

#suggestions {
  overflow: hidden;
}

#suggestions li,
.ranking-item {
  background:
    linear-gradient(90deg, rgba(104, 24, 36, 0.34), rgba(27, 22, 20, 0.9)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  color: var(--cinema-ivory);
  border-color: rgba(201, 164, 91, 0.22);
  border-radius: var(--radius-md);
  box-shadow: inset 4px 0 0 rgba(201, 164, 91, 0.48), 0 10px 28px rgba(0, 0, 0, 0.22);
  text-shadow: none;
}

#suggestions li:hover,
.ranking-item:hover {
  background:
    linear-gradient(90deg, rgba(143, 36, 48, 0.46), rgba(43, 30, 25, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  box-shadow: inset 6px 0 0 var(--cinema-gold), 0 15px 34px rgba(0, 0, 0, 0.34);
  transform: translateX(4px);
}

.wait,
.other-right,
.ranking-position,
.restart-message,
.option-group label,
#intro h2,
.player-count-label,
.user-score {
  color: var(--cinema-gold-soft);
  text-shadow: none;
}

.range-inputs span,
.ranking-score,
.restart-message .seconds {
  color: var(--cinema-gold);
  text-shadow: none;
}

.option-group input[type="checkbox"],
.radio-option input[type="radio"] {
  accent-color: var(--cinema-gold);
  box-shadow: none;
}

.radio-option label {
  color: var(--cinema-ivory);
  text-shadow: none;
}

.user-score,
.user-rank,
.restart-message,
.song-progress {
  background: rgba(13, 10, 9, 0.82);
  border: 1px solid rgba(201, 164, 91, 0.36);
  border-radius: 999px;
  color: var(--cinema-gold-soft);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
  text-shadow: none;
}

.user-score {
  background: rgba(58, 38, 12, 0.78);
  border-color: rgba(231, 191, 112, 0.62);
  color: var(--cinema-gold-soft);
}

.user-rank {
  background: rgba(72, 18, 26, 0.72);
  border-color: rgba(185, 64, 70, 0.62);
  color: var(--cinema-ivory);
}

.user-status-label {
  color: rgba(243, 234, 215, 0.72);
  letter-spacing: 0.08em;
}

.song-progress:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.44), 0 0 20px rgba(201, 164, 91, 0.2);
}

#player {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 233, 181, 0.08), transparent 42%),
    repeating-radial-gradient(circle, #15100e 0 10px, #0c0908 10px 18px);
  border: 2px solid rgba(201, 164, 91, 0.38);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.55), 0 0 36px rgba(201, 164, 91, 0.18), inset 0 0 34px rgba(0, 0, 0, 0.54);
}

#visualization {
  filter: sepia(0.8) saturate(0.82) hue-rotate(330deg) brightness(1.02);
}

#timer {
  color: var(--cinema-gold-soft);
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.85), 0 0 24px rgba(201, 164, 91, 0.25);
  font-family: var(--font-display);
}

.pause-button {
  border-color: transparent transparent transparent rgba(243, 234, 215, 0.38);
}

.pause-button:hover {
  border-color: transparent transparent transparent var(--cinema-gold-soft);
}

.next-song-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  font-size: 0;
  letter-spacing: 0;
  text-shadow: none;
}

.next-song-button:hover {
  transform: none;
  box-shadow: none;
}

.next-song-button img {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(201, 164, 91, 0.24));
}

#hint,
#answer,
#winner {
  background:
    linear-gradient(90deg, var(--cinema-velvet-dark), var(--cinema-velvet), var(--cinema-velvet-dark)),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(0, 0, 0, 0.18) 20px 24px);
  color: var(--cinema-ivory);
  border: 1px solid rgba(201, 164, 91, 0.52);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.58), 0 0 38px rgba(201, 164, 91, 0.24);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.62);
}

#hint {
  background: linear-gradient(90deg, #1d1712, #4d3824, #1d1712);
}

#winner {
  background: linear-gradient(90deg, #4b160f, #996728, #4b160f);
}

#answer.no-winner,
.wrong {
  background: linear-gradient(90deg, rgba(31, 25, 24, 0.72), rgba(18, 15, 15, 0.72)) !important;
}

.right {
  color: var(--cinema-success);
  text-shadow: 0 5px 22px rgba(0, 0, 0, 0.56);
}

.wrong {
  color: rgba(243, 234, 215, 0.48) !important;
  text-shadow: none !important;
}

.correct-answer {
  color: var(--cinema-ivory);
  text-shadow: none;
}

#player .warning {
  color: var(--cinema-danger);
  text-shadow: 0 0 20px rgba(181, 58, 46, 0.42) !important;
}

#podium {
  background: linear-gradient(180deg, transparent, rgba(7, 5, 4, 0.45));
}

#podium::before {
  background: linear-gradient(90deg, transparent, rgba(201, 164, 91, 0.66), transparent);
  animation: none;
}

.podium-item {
  border: 1px solid rgba(255, 231, 177, 0.22);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

#first-place {
  background: linear-gradient(to bottom, #f1d79d, #b88b3e 56%, #5b3b16);
  color: #120d09;
}

#second-place {
  background: linear-gradient(to bottom, #d8d0c1, #988d7d 58%, #4a4137);
  color: #120d09;
}

#third-place {
  background: linear-gradient(to bottom, #d49b65, #8e5434 58%, #462416);
  color: #130c08;
}

.ranking-item.current-user {
  background:
    linear-gradient(90deg, rgba(143, 36, 48, 0.68), rgba(60, 43, 30, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  border-color: rgba(241, 215, 157, 0.68);
  box-shadow: 0 0 0 3px rgba(201, 164, 91, 0.16), 0 18px 40px rgba(0, 0, 0, 0.42);
}

.ranking-item.current-user .ranking-username {
  color: var(--cinema-gold-soft);
  text-shadow: none;
}

.player-count-container {
  min-width: 180px;
  animation: none;
}

.player-count-container::before {
  background: linear-gradient(90deg, transparent, rgba(201, 164, 91, 0.5), transparent);
  border-radius: inherit;
  animation: none;
}

.player-count-container::after {
  display: none;
}

.player-count-number {
  color: var(--cinema-ivory);
  font-family: var(--font-display);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.62);
  animation: none;
}

.player-count-icon {
  filter: drop-shadow(0 0 7px rgba(201, 164, 91, 0.45));
  animation: none;
}

.player-count-container.count-updated {
  animation: count-update-warm 0.45s ease-out;
}

@keyframes count-update-warm {
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 34px rgba(201, 164, 91, 0.36), inset 0 0 22px rgba(201, 164, 91, 0.12);
  }
}

.qrcode img {
  filter: sepia(0.28) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.48));
}

.floating-points {
  color: var(--cinema-gold-soft);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

@media (max-width: 1024px) {
  .header {
    padding: 18px 28px;
  }

  #game-options {
    margin-left: 0;
  }

  #question-title,
  #question-image,
  #suggestions {
    margin-right: 20px;
  }

  #song-progress-container {
    right: 12px;
  }
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 50% 0, rgba(255, 225, 170, 0.16), transparent 18rem),
      linear-gradient(145deg, #070504, #160c0e);
  }

  .header {
    font-size: 1rem;
    padding: 14px;
  }

  .header h1,
  #game .h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.1rem);
    line-height: 1.05;
    text-align: center;
    padding-top: 0;
    margin: 18px 0;
  }

  form,
  #game-options,
  .ranking-list {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  #question-title {
    font-size: 1.25rem;
    margin: 14px;
    padding: 16px;
  }

  #question-image {
    margin: 14px;
  }

  #question-image img {
    max-height: 24vh;
  }

  #suggestions {
    margin: 14px;
  }

  #suggestions li,
  .ranking-item {
    font-size: 1.15rem;
    padding: 14px 16px;
  }

  #layer {
    top: 180px;
    transform: none;
  }

  #hint,
  #answer,
  #winner {
    font-size: clamp(2rem, 12vw, 4.5rem);
  }

  .pause-message {
    font-size: clamp(2.75rem, 14vw, 5rem);
  }
}

@media (max-width: 700px) {
  body {
    min-height: 100dvh;
  }

  #intro {
    position: relative;
    min-height: 100dvh;
    height: auto;
    padding: 16px;
    font-size: 18px;
    overflow-y: auto;
  }

  .intro-container {
    gap: 18px;
    margin-top: 12px;
  }

  .logo-container,
  #game .logo-container {
    width: 100%;
    text-align: center;
  }

  .logo {
    width: min(190px, 60vw);
  }

  .player-count-wrapper {
    width: 100%;
    padding-top: 0;
  }

  .player-count-container {
    min-width: 0;
    padding: 14px;
  }

  .qrcode {
    padding: 12px;
  }

  .qrcode--header {
    display: none;
  }

  #game-options {
    width: 100%;
    padding: 16px;
  }

  .option-group {
    margin-bottom: 18px;
  }

  .option-group label {
    font-size: 14px;
    line-height: 1.35;
  }

  .advanced-options summary {
    width: 100%;
    justify-content: center;
    font-size: 14px;
  }

  .advanced-options__content {
    padding: 14px 14px 1px;
  }

  .radio-option {
    align-items: flex-start;
  }

  .radio-option label {
    font-size: 14px;
  }

  .option-group select,
  .option-group input[type="number"] {
    min-height: 44px;
    font-size: 16px;
  }

  .range-inputs {
    gap: 10px;
  }

  .range-inputs span {
    margin: 0;
  }

  #start {
    width: min(100%, 280px);
    min-height: 58px;
    font-size: 22px;
  }

  #game {
    min-height: 100dvh;
    padding: 0 0 calc(128px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  #game .header {
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
  }

  #game .h1 {
    margin: 4px 0 8px;
    font-size: clamp(1.5rem, 8vw, 2.4rem);
    word-break: break-word;
  }

  #player {
    float: none;
    width: min(220px, 58vw);
    height: min(220px, 58vw);
    margin: 8px auto 14px;
  }

  #timer {
    inset: 50% auto auto 50%;
    width: auto;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 23vw, 6.5rem);
  }

  #song-progress-container {
    position: fixed;
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 1200;
    gap: 10px;
    pointer-events: none;
  }

  .song-progress,
  .pause-button,
  .next-song-button {
    pointer-events: auto;
  }

  .song-progress {
    min-width: 74px;
    padding: 8px 12px;
    margin-bottom: 0;
    font-size: 1.2rem;
    text-align: center;
  }

  .pause-button {
    height: 48px;
    border-width: 0 0 0 38px;
    margin-top: 0;
  }

  .pause-button.play-mode {
    border-width: 24px 0 24px 38px;
  }

  .next-song-button {
    width: 96px;
    height: 96px;
    margin-top: 0;
    border-radius: 50%;
    background: rgba(7, 5, 4, 0.72);
    border: 1px solid rgba(255, 231, 177, 0.34);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 24px rgba(201, 164, 91, 0.22);
    backdrop-filter: blur(8px);
  }

  .next-song-button img {
    width: 76%;
    height: 76%;
  }

  #question-title,
  #question-image {
    margin-left: 12px;
    margin-right: 112px;
  }

  #suggestions {
    width: calc(100% - 28px);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  #suggestions li {
    line-height: 1.25;
  }

  #layer {
    top: 145px;
    left: 8px;
    right: 8px;
  }

  #hint,
  #answer,
  #winner {
    padding: 18px 12px;
    line-height: 1.1;
    word-break: break-word;
  }

  #podium {
    padding: 16px 8px;
  }

  .podium-container {
    height: 170px;
    max-width: 100%;
  }

  .podium-item {
    width: 31%;
    margin: 0 3px;
  }

  #first-place {
    height: 170px;
  }

  #second-place {
    height: 140px;
  }

  #third-place {
    height: 115px;
  }

  .podium-name {
    font-size: 13px;
    padding: 0 4px;
  }

  .podium-score {
    font-size: 20px;
  }

  .podium-position {
    font-size: 32px;
  }

  .player-count-display {
    position: static;
    transform: none;
    margin-top: 18px;
  }

  #players {
    padding: 10px;
    font-size: 0.9rem;
  }

  #players li {
    margin: 0 10px 8px 0;
  }

  #final-ranking {
    padding: 22px 12px;
  }

  #final-ranking h2 {
    font-size: clamp(2rem, 12vw, 3rem);
    margin-bottom: 24px;
  }

  .ranking-list {
    padding: 12px;
  }

  .ranking-item {
    gap: 10px;
    padding: 12px;
  }

  .ranking-username {
    min-width: 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .ranking-score {
    font-size: 1.2rem;
    margin-left: 0;
  }

  #new-round {
    width: min(100%, 300px);
    min-height: 58px;
    font-size: 1.25rem;
  }

  #stop-game-container {
    width: auto;
    height: auto;
    left: 12px;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    opacity: 0.45;
  }

  #stop-game {
    padding: 10px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 420px) {
  #question-title,
  #question-image {
    margin-right: 104px;
  }

  .next-song-button {
    width: 88px;
    height: 88px;
  }

  .pause-button {
    height: 42px;
    border-width: 0 0 0 34px;
  }

  .pause-button.play-mode {
    border-width: 21px 0 21px 34px;
  }
}
