:root {
  --bg: #08040f;
  --bg-deep: #030208;
  --panel: rgba(31, 11, 38, 0.72);
  --panel-strong: #13091d;
  --text: #fff7ff;
  --muted: #c9a8d8;
  --pink: #ff4fa3;
  --pink-hot: #ff2f92;
  --violet: #9d4edd;
  --violet-bright: #c77dff;
  --lavender: #e7c6ff;
  --border: rgba(255, 79, 163, 0.34);
  --shadow: 0 32px 95px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.95)),
    radial-gradient(circle at 13% 48%, rgba(191, 64, 255, 0.42), transparent 19rem),
    radial-gradient(circle at 87% 48%, rgba(255, 47, 146, 0.38), transparent 20rem),
    radial-gradient(circle at 50% -4%, rgba(157, 78, 221, 0.26), transparent 30rem),
    linear-gradient(145deg, #05030a 0%, #13081d 46%, #050309 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(102deg, transparent 0 10%, rgba(157, 78, 221, 0.12) 18%, transparent 32%),
    linear-gradient(78deg, transparent 0 66%, rgba(255, 79, 163, 0.12) 78%, transparent 92%),
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(255, 79, 163, 0.055) 39px 40px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 6px);
  opacity: 0.82;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 28%, rgba(0, 0, 0, 0.72)),
    radial-gradient(ellipse at bottom, rgba(0, 0, 0, 0.86), transparent 42%);
}

#start-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 79, 163, 0.24), transparent 17rem),
    radial-gradient(circle at 25% 70%, rgba(157, 78, 221, 0.28), transparent 16rem),
    linear-gradient(180deg, rgba(5, 2, 10, 0.72), rgba(4, 2, 8, 0.96));
  backdrop-filter: blur(20px);
  transition: opacity 360ms ease, visibility 360ms ease, transform 360ms ease;
}

#start-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
}

.start-inner {
  width: min(440px, 100%);
  min-height: min(720px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.start-brand {
  animation: topbarIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.start-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  display: block;
  border-radius: 24px;
  box-shadow: 0 26px 72px rgba(255, 79, 163, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.start-brand h1 {
  max-width: 8ch;
  margin: 8px auto 0;
  font-size: clamp(3.2rem, 15vw, 5.3rem);
}

.start-stage {
  position: relative;
  min-height: 250px;
}

.start-stage::before {
  content: "";
  position: absolute;
  inset: 42px 28px;
  border: 1px solid rgba(255, 79, 163, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 79, 163, 0.1), rgba(157, 78, 221, 0.08)),
    rgba(17, 7, 25, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.42);
}

.start-album {
  position: absolute;
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 122, 200, 0.36);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 79, 163, 0.16);
  animation: albumFloat 4200ms ease-in-out infinite;
}

.start-album-one {
  left: 8%;
  top: 52px;
  background:
    radial-gradient(circle at 34% 28%, #fff2a8 0 8%, transparent 9%),
    linear-gradient(135deg, #261f56, #ff4fa3);
  transform: rotate(-8deg);
}

.start-album-two {
  left: 50%;
  top: 10px;
  width: 158px;
  background:
    radial-gradient(circle at 50% 50%, #05030a 0 18%, transparent 19%),
    conic-gradient(from 40deg, #ff4fa3, #c77dff, #25105a, #ff4fa3);
  transform: translateX(-50%) rotate(4deg);
  animation-delay: -1100ms;
}

.start-album-three {
  right: 8%;
  bottom: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #140723, #9d4edd 48%, #ff2f92);
  transform: rotate(9deg);
  animation-delay: -2200ms;
}

.start-panel {
  display: grid;
  gap: 14px;
}

.start-stat {
  min-height: 74px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(38, 13, 48, 0.78), rgba(11, 6, 18, 0.76));
  border: 1px solid rgba(255, 79, 163, 0.28);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 52px rgba(0, 0, 0, 0.34);
}

.start-stat strong {
  color: var(--violet-bright);
  font-size: 2rem;
  line-height: 1;
}

#btn-start {
  min-height: 58px;
  color: #fff7ff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 18px 42px rgba(255, 79, 163, 0.26), 0 0 28px rgba(157, 78, 221, 0.16);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: topbarIn 700ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.eyebrow,
.score-label,
.song-label {
  color: var(--lavender);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: #ff9bd3;
}

h1 {
  margin-top: 6px;
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  line-height: 0.9;
  letter-spacing: 0;
  color: transparent;
  background: linear-gradient(90deg, #c77dff 0%, #ff7ac8 48%, #ff3d99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 34px rgba(255, 79, 163, 0.25);
}

#score-board {
  display: flex;
  gap: 10px;
  padding: 0;
  background: transparent;
}

.score-item {
  min-width: 108px;
  padding: 18px 18px;
  background: linear-gradient(180deg, rgba(38, 13, 48, 0.78), rgba(11, 6, 18, 0.68));
  border: 1px solid rgba(255, 79, 163, 0.28);
  border-radius: 8px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 52px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

#score,
#highscore {
  display: block;
  margin-top: 7px;
  font-size: 2rem;
  font-weight: 950;
}

#score {
  color: var(--pink);
}

#highscore {
  color: var(--violet-bright);
}

#game-area {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.song-card {
  min-height: 255px;
  padding: clamp(14px, 2.2vw, 22px);
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "cover info"
    "cover preview"
    "cover streams";
  align-content: center;
  align-items: center;
  gap: 12px 20px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 79, 163, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(45, 13, 55, 0.78), rgba(8, 5, 14, 0.84));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.song-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.09) 32%, transparent 52%),
    radial-gradient(circle at 50% 0%, rgba(199, 125, 255, 0.16), transparent 22rem);
  opacity: 0.86;
}

.song-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet), var(--pink), transparent);
  opacity: 0.86;
  transform: scaleX(0.72);
  transition: transform 260ms ease, opacity 260ms ease;
}

.song-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.song-card.is-entering {
  animation: cardIn 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.song-card.is-correct {
  animation: answerCorrect 780ms ease both;
}

.song-card.is-wrong {
  animation: answerWrong 650ms ease both;
}

.is-reference {
  border-color: rgba(199, 125, 255, 0.38);
}

.is-guess {
  border-color: rgba(255, 79, 163, 0.38);
  grid-template-areas:
    "label label"
    "cover info"
    "cover preview"
    "cover streams"
    "cover swipe"
    "cover buttons";
}

.song-label {
  grid-area: label;
  position: relative;
  z-index: 1;
  color: #ff8ccf;
}

.cover-frame {
  grid-area: cover;
  position: relative;
  z-index: 1;
  width: min(100%, 230px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 122, 200, 0.2), rgba(157, 78, 221, 0.12)),
    rgba(10, 4, 18, 0.56);
  border: 1px solid rgba(255, 122, 200, 0.44);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(157, 78, 221, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.song-card:hover .cover-frame {
  transform: translateY(-4px) rotateX(3deg);
  box-shadow: 0 0 46px rgba(255, 79, 163, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.song-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(157, 78, 221, 0.32), rgba(255, 79, 163, 0.22)),
    var(--panel-strong);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.song-info {
  grid-area: info;
  position: relative;
  z-index: 1;
}

.song-title {
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 0.96;
  text-align: left;
  text-wrap: balance;
  text-shadow: 0 9px 24px rgba(0, 0, 0, 0.45);
}

.song-artist {
  margin-top: 12px;
  color: var(--pink);
  font-size: 1.05rem;
  font-weight: 750;
  text-align: left;
}

.preview-player {
  grid-area: preview;
  position: relative;
  z-index: 1;
}

.preview-button {
  width: 100%;
  min-height: 48px;
  color: var(--lavender);
  background: linear-gradient(180deg, rgba(72, 24, 86, 0.72), rgba(37, 12, 48, 0.78));
  border: 1px solid rgba(255, 122, 200, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preview-button.is-playing {
  color: #fff7ff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 16px 32px rgba(199, 125, 255, 0.22);
}

.song-streams {
  grid-area: streams;
  position: relative;
  z-index: 1;
  min-height: 86px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 14, 0.56);
  border: 1px solid rgba(255, 79, 163, 0.26);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.streams-number {
  color: var(--pink);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 28px rgba(255, 79, 163, 0.32);
}

.streams-label {
  margin-top: 8px;
  color: var(--lavender);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.song-streams-hidden .streams-number {
  display: none;
}

.song-streams-hidden.is-revealed {
  border-color: rgba(255, 79, 163, 0.55);
  background: linear-gradient(180deg, rgba(157, 78, 221, 0.18), rgba(255, 79, 163, 0.1));
  animation: revealPanel 600ms ease both;
}

.song-streams-hidden.is-revealed .streams-number {
  display: block;
}

#vs-divider {
  align-self: center;
  justify-self: center;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  color: var(--pink);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 122, 200, 0.28), transparent 55%),
    rgba(17, 6, 25, 0.82);
  border: 2px solid rgba(255, 79, 163, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(199, 125, 255, 0.08), 0 0 42px rgba(255, 79, 163, 0.45);
  font-size: 1.15rem;
  font-weight: 950;
  z-index: 2;
  animation: vsPulse 2400ms ease-in-out infinite;
}

.is-guess {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.is-guess * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.is-guess.is-dragging {
  animation: none;
  cursor: grabbing;
  transition: none;
}

.is-guess.is-swipe-returning {
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 180ms ease, border-color 180ms ease;
}

.is-guess.is-swiping-out {
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 260ms ease;
  opacity: 0;
}

.is-guess.swipe-higher-active {
  border-color: rgba(199, 125, 255, 0.9);
  box-shadow: var(--shadow), 0 0 68px rgba(157, 78, 221, 0.46);
}

.is-guess.swipe-lower-active {
  border-color: rgba(255, 79, 163, 0.9);
  box-shadow: var(--shadow), 0 0 68px rgba(255, 79, 163, 0.46);
}

.swipe-rail {
  grid-area: swipe;
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--lavender);
  background: rgba(8, 4, 14, 0.46);
  border: 1px solid rgba(255, 122, 200, 0.22);
  border-radius: 8px;
}

.swipe-lower,
.swipe-higher {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swipe-lower {
  color: #ff79c1;
}

.swipe-higher {
  color: #c77dff;
  text-align: right;
}

.swipe-thumb {
  width: 34px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.32);
}

#buttons {
  position: relative;
  z-index: 1;
  grid-area: buttons;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

button:focus-visible {
  outline: 3px solid rgba(199, 125, 255, 0.95);
  outline-offset: 3px;
}

#btn-higher,
#btn-lower {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

#btn-higher span,
#btn-lower span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  line-height: 1;
}

#btn-higher {
  color: #fff7ff;
  background: linear-gradient(135deg, #b868ff, #8f3df0);
  box-shadow: 0 16px 32px rgba(157, 78, 221, 0.28);
}

#btn-lower {
  color: #fff7ff;
  background: linear-gradient(135deg, #ff66b6, #e81882);
  box-shadow: 0 16px 32px rgba(255, 79, 163, 0.26);
}

#game-over-screen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 2, 8, 0.84);
  backdrop-filter: blur(18px);
  z-index: 10;
}

#game-over-box {
  width: min(420px, 100%);
  padding: 34px;
  color: var(--text);
  text-align: center;
  background:
    linear-gradient(160deg, rgba(255, 79, 163, 0.12), transparent 36%),
    #13091d;
  border: 1px solid rgba(255, 79, 163, 0.44);
  border-radius: 8px;
  box-shadow: var(--shadow), 0 0 48px rgba(157, 78, 221, 0.18);
  animation: modalIn 340ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

#game-over-box h2 {
  margin: 6px 0 18px;
  color: var(--pink);
  font-size: 2.4rem;
}

#game-over-box p {
  color: var(--muted);
  font-weight: 750;
}

#final-score {
  display: block;
  margin: 4px 0 14px;
  color: var(--text);
  font-size: 5rem;
  font-weight: 950;
  line-height: 1;
}

#highscore-message {
  min-height: 22px;
  margin-bottom: 8px;
  color: var(--violet-bright);
}

#final-highscore {
  color: var(--violet-bright);
}

#btn-continue-ad {
  width: 100%;
  margin-top: 22px;
  color: #fff7ff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 16px 32px rgba(255, 79, 163, 0.22);
}

#btn-restart {
  width: 100%;
  margin-top: 12px;
  color: #fff7ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 122, 200, 0.24);
}

@keyframes topbarIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPanel {
  0% {
    transform: scale(0.98);
    box-shadow: inset 0 0 0 rgba(255, 79, 163, 0);
  }
  60% {
    transform: scale(1.02);
    box-shadow: inset 0 0 36px rgba(255, 79, 163, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

@keyframes answerCorrect {
  0%, 100% {
    border-color: rgba(199, 125, 255, 0.48);
  }
  45% {
    border-color: rgba(199, 125, 255, 1);
    box-shadow: var(--shadow), 0 0 58px rgba(199, 125, 255, 0.34);
  }
}

@keyframes answerWrong {
  0%, 100% {
    border-color: rgba(255, 79, 163, 0.48);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
    box-shadow: var(--shadow), 0 0 58px rgba(255, 79, 163, 0.34);
  }
  75% {
    transform: translateX(-2px);
  }
}

@keyframes vsPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes albumFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  #score-board {
    width: 100%;
  }

  .score-item {
    flex: 1;
  }

  #game-area {
    grid-template-columns: 1fr;
  }

  .song-card {
    min-height: auto;
  }

  #vs-divider {
    margin: -4px auto;
  }
}

@media (max-width: 560px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .app-shell {
    width: min(100% - 14px, 1220px);
    height: 100dvh;
    min-height: 0;
    padding: 6px 0 6px;
    gap: 6px;
  }

  #start-screen {
    padding: 16px;
  }

  .start-inner {
    min-height: calc(100dvh - 32px);
    gap: 14px;
  }

  .start-icon {
    width: 94px;
    height: 94px;
    margin-bottom: 14px;
    border-radius: 21px;
  }

  .start-brand h1 {
    font-size: clamp(2.95rem, 15vw, 4.35rem);
  }

  .start-stage {
    min-height: 220px;
  }

  .start-stage::before {
    inset: 34px 16px;
  }

  .start-album {
    width: 112px;
  }

  .start-album-two {
    width: 138px;
  }

  .start-stat {
    min-height: 62px;
  }

  #btn-start {
    min-height: 52px;
  }

  .topbar {
    gap: 8px;
  }

  .eyebrow {
    font-size: 0.58rem;
  }

  h1 {
    margin-top: 2px;
    font-size: clamp(1.72rem, 10vw, 2.35rem);
  }

  #score-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .score-item {
    min-width: 0;
    padding: 7px 8px;
  }

  .score-label,
  .song-label {
    font-size: 0.56rem;
  }

  #score,
  #highscore {
    margin-top: 2px;
    font-size: 1.2rem;
  }

  #game-area {
    min-height: 0;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 30px minmax(0, 1fr);
    align-items: stretch;
    gap: 6px;
  }

  .song-card {
    min-height: 0;
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "label"
      "cover"
      "info"
      "preview"
      "streams";
    padding: 7px;
    gap: 5px;
    align-content: stretch;
  }

  .cover-frame {
    width: min(100%, 17vh, 116px);
    padding: 4px;
  }

  .song-title {
    max-width: 100%;
    font-size: clamp(0.96rem, 4.8vw, 1.28rem);
    line-height: 1;
    text-align: center;
  }

  .song-artist {
    margin-top: 4px;
    font-size: 0.78rem;
    text-align: center;
  }

  .preview-button {
    min-height: 31px;
    font-size: 0.74rem;
  }

  .song-streams {
    min-height: 50px;
    padding: 6px 5px;
  }

  .streams-number {
    font-size: clamp(1rem, 5vw, 1.36rem);
  }

  .streams-label {
    margin-top: 5px;
    font-size: 0.58rem;
  }

  #vs-divider {
    width: 30px;
    height: 30px;
    align-self: center;
    justify-self: center;
    margin: 0;
    border-width: 1px;
    font-size: 0.72rem;
  }

  #buttons {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  button {
    min-height: 32px;
    font-size: 0.78rem;
  }

  #btn-higher span,
  #btn-lower span {
    width: 18px;
    height: 18px;
  }

  .is-guess {
    grid-template-areas:
      "label"
      "cover"
      "info"
      "preview"
      "streams"
      "swipe"
      "buttons";
  }

  .is-guess .cover-frame {
    width: min(100%, 14.5vh, 98px);
  }

  .swipe-rail {
    min-height: 29px;
    padding: 0 9px;
  }

  .swipe-lower,
  .swipe-higher {
    font-size: 0.58rem;
  }

  .swipe-thumb {
    width: 26px;
    height: 17px;
  }

  #game-over-box {
    padding: 24px;
  }
}
