:root {
  --bg: #f5efe4;
  --surface: #fffaf2;
  --surface-2: rgba(255,250,242,.86);
  --peach: #e9ad6e;
  --pill: #f7dda8;
  --pill-active: #fffdf8;
  --text: #1d1a16;
  --muted: #6f675c;
  --line: #cbb99a;
  --green: #3f9a54;
  --red: #c94e42;
  --play-border: #756147;
  --control-bg: #fff;
  --skip-bg: #5f6d8c;
  --guess-bg: #1494d0;
  --shadow: rgba(77,56,31,.16);
  --texture-dot: rgba(78, 58, 35, .095);
  --texture-accent: rgba(78, 58, 35, .026);
}


body[data-theme="azul"] {
  --bg: #eef5fb;
  --surface: #f9fcff;
  --surface-2: rgba(249,252,255,.92);
  --peach: #9ec8ea;
  --pill: #d7eafb;
  --pill-active: #ffffff;
  --text: #14243a;
  --muted: #5d7188;
  --line: #aac4da;
  --green: #2d83bd;
  --red: #c95555;
  --play-border: #47708f;
  --control-bg: #ffffff;
  --skip-bg: #687b9b;
  --guess-bg: #1e8fd0;
  --shadow: rgba(32,73,104,.15);
  --texture-dot: rgba(30,83,122,.075);
  --texture-accent: rgba(30,83,122,.020);
}

body[data-theme="verde"] {
  --bg: #eef4ec;
  --surface: #fbfdf9;
  --surface-2: rgba(251,253,249,.92);
  --peach: #a8c99b;
  --pill: #dbe9d4;
  --pill-active: #ffffff;
  --text: #1f2a20;
  --muted: #627064;
  --line: #afc2aa;
  --green: #4f8d57;
  --red: #bf5750;
  --play-border: #55715a;
  --control-bg: #ffffff;
  --skip-bg: #6e7f78;
  --guess-bg: #4f9f69;
  --shadow: rgba(52,81,57,.15);
  --texture-dot: rgba(52,81,57,.072);
  --texture-accent: rgba(52,81,57,.020);
}

body[data-theme="rosa"] {
  --bg: #fbf0f2;
  --surface: #fffafb;
  --surface-2: rgba(255,250,251,.92);
  --peach: #e7aab6;
  --pill: #f3d7dd;
  --pill-active: #ffffff;
  --text: #342026;
  --muted: #80646c;
  --line: #d6b3bc;
  --green: #bb637b;
  --red: #bf4c59;
  --play-border: #8a6470;
  --control-bg: #ffffff;
  --skip-bg: #816f80;
  --guess-bg: #d06f88;
  --shadow: rgba(97,52,65,.14);
  --texture-dot: rgba(105,49,65,.068);
  --texture-accent: rgba(105,49,65,.018);
}

body[data-theme="lilas"] {
  --bg: #f3effa;
  --surface: #fcfaff;
  --surface-2: rgba(252,250,255,.92);
  --peach: #b9a6df;
  --pill: #e1d8f3;
  --pill-active: #ffffff;
  --text: #29223a;
  --muted: #716780;
  --line: #c7bade;
  --green: #8066b8;
  --red: #bd5568;
  --play-border: #6d6182;
  --control-bg: #ffffff;
  --skip-bg: #736d8f;
  --guess-bg: #8a6dc8;
  --shadow: rgba(62,48,91,.14);
  --texture-dot: rgba(68,50,105,.068);
  --texture-accent: rgba(68,50,105,.018);
}

body[data-theme="grafite"] {
  --bg: #202428;
  --surface: #202428;
  --surface-2: #181c20;
  --peach: #2b3035;
  --pill: #171b1f;
  --pill-active: #242a2f;
  --text: #f7f7f7;
  --muted: #a7adb3;
  --line: #343a40;
  --green: #538d4e;
  --red: #d3625b;
  --play-border: #5a626a;
  --control-bg: #f4f4f4;
  --skip-bg: #31383f;
  --guess-bg: #538d4e;
  --shadow: rgba(0,0,0,.30);
  --texture-dot: rgba(255,255,255,.040);
  --texture-accent: rgba(255,255,255,.012);
}

body[data-theme="noite"] {
  --bg: #071632;
  --surface: #0c2148;
  --surface-2: rgba(12,33,72,.94);
  --peach: #193864;
  --pill: #142d56;
  --pill-active: #1b3b6b;
  --text: #f5f7ff;
  --muted: #b6c1d7;
  --line: rgba(255,255,255,.17);
  --green: #6dca82;
  --red: #ff766d;
  --play-border: #efe3cf;
  --control-bg: #f9f6ef;
  --skip-bg: #2c4068;
  --guess-bg: #168bc6;
  --shadow: rgba(0,0,0,.24);
  --texture-dot: rgba(255,255,255,.050);
  --texture-accent: rgba(255,255,255,.014);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, var(--texture-dot) 1.05px, transparent 1.2px),
    repeating-linear-gradient(135deg, var(--texture-accent) 0, var(--texture-accent) .7px, transparent .7px, transparent 12px),
    radial-gradient(circle at 12% 5%, rgba(234,173,110,.13), transparent 27rem);
  background-size: 17px 17px, 18px 18px, auto;
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
  transition: background-color .2s ease, color .2s ease;
  overflow-x: hidden;
}

body::before { display: none; }

body[data-theme="grafite"] {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, var(--texture-dot) 1px, transparent 1.15px),
    repeating-linear-gradient(135deg, var(--texture-accent) 0, var(--texture-accent) .7px, transparent .7px, transparent 12px),
    radial-gradient(circle at 50% -12%, rgba(255,255,255,.045), transparent 35rem),
    linear-gradient(180deg,#22272c 0%,#202428 100%);
  background-size:17px 17px,18px 18px,auto,auto;
}

body[data-theme="noite"] {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, var(--texture-dot) 1px, transparent 1.15px),
    repeating-linear-gradient(135deg, var(--texture-accent) 0, var(--texture-accent) .7px, transparent .7px, transparent 12px),
    radial-gradient(circle at 12% 5%, rgba(38,88,166,.18), transparent 27rem);
  background-size: 17px 17px, 18px 18px, auto;
}


button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(600px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 18px 22px;
}

.topbar {
  min-height: 60px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.theme-toggle,
.day-chip {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.theme-toggle {
  cursor: pointer;
  font-size: 24px;
}

.day-chip { font-size: 11px; }

.theme-picker {
  position: relative;
  z-index: 120;
}

.palette-icon {
  width: 21px;
  height: 21px;
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 3px;
  place-content: center;
}

.palette-icon i {
  position: static;
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
}

.palette-icon i:nth-child(1) { background: #e9ad6e; }
.palette-icon i:nth-child(2) { background: #65a9d7; }
.palette-icon i:nth-child(3) { background: #78aa78; }
.palette-icon i:nth-child(4) { background: #a486d2; }

.theme-menu {
  position: absolute;
  top: 49px;
  left: 0;
  width: 174px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 32px var(--shadow);
  z-index: 200;
}

.theme-option {
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.theme-option:hover,
.theme-option.active {
  background: var(--pill);
}

.theme-swatch {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.48);
}

.swatch-creme { background: #e9ad6e; }
.swatch-azul { background: #65a9d7; }
.swatch-verde { background: #78aa78; }
.swatch-rosa { background: #d88499; }
.swatch-lilas { background: #9a7bc9; }
.swatch-noite { background: #0d244a; }
.swatch-grafite { background: linear-gradient(135deg,#353b41,#15191d); }


.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: block;
}

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

.brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.brand p {
  margin: 4px 0 0;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.game-card { background: transparent; }

.game-title {
  text-align: center;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
  margin: 5px 0 11px;
}

.info-card {
  background: var(--peach);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 0 var(--shadow);
  padding: 9px 8px;
  display: grid;
  grid-template-columns: .72fr 1.45fr 1fr;
  gap: 4px;
  margin-bottom: 9px;
}

.info-item {
  min-width: 0;
  text-align: center;
}

.info-item span {
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
  color: var(--muted);
}

.info-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.song-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0 0 8px;
}

.song-stat {
  min-width: 0;
  min-height: 42px;
  padding: 5px 6px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: 0 1px 0 var(--shadow);
  text-align: center;
}

.song-stat span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.05;
}

.song-stat strong {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.song-stat:last-child strong { color: #8b6331; }
body[data-theme="noite"] .song-stat:last-child strong { color: #ffd38e; }

.rounds {
  display: grid;
  gap: 7px;
}

.round {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--pill);
  box-shadow: 0 2px 0 var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  color: var(--text);
  position: relative;
  transition: transform .15s ease, background .15s ease;
}

.round span {
  width: 20px;
  font-size: 16px;
  font-weight: 900;
}

.round small {
  font-size: 16px;
  font-weight: 900;
}

.round.active {
  background: var(--pill-active);
  transform: translateY(-1px);
}

.round.active span,
.round.active small {
  color: var(--green);
}

.round.active::after {
  content: "♫";
  position: absolute;
  right: 16px;
  font-size: 21px;
  color: var(--green);
  font-weight: 900;
}

.round.wrong::after {
  content: "×";
  position: absolute;
  right: 17px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.round.correct::after {
  content: "✓";
  position: absolute;
  right: 16px;
  color: var(--green);
  font-size: 21px;
  font-weight: 1000;
}

.round.active:not(.wrong):not(.correct)::after {
  content: "♫";
  color: var(--green);
}

.player-area {
  margin: 6px 3px 0;
}

.visualizer {
  height: 10px;
  margin: 0 0 3px;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 3px;
  opacity: .75;
}

.visualizer span {
  width: 3px;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
}

.visualizer.playing span {
  animation: tinyBounce .6s ease-in-out infinite alternate;
}

.visualizer span:nth-child(2) { height: 7px; animation-delay: -.15s; }
.visualizer span:nth-child(3) { height: 5px; animation-delay: -.3s; }
.visualizer span:nth-child(4) { height: 9px; animation-delay: -.1s; }
.visualizer span:nth-child(5) { height: 4px; animation-delay: -.25s; }

@keyframes tinyBounce {
  from { transform: scaleY(.45); }
  to { transform: scaleY(1.15); }
}

.player-controls {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 3px 0 5px;
}

.seek-circle,
.play-btn {
  border-radius: 50%;
  cursor: pointer;
  color: #191713;
  background: var(--control-bg);
  border: 1px solid #c7b99f;
  box-shadow: 0 2px 0 var(--shadow);
}

.seek-circle {
  width: 54px;
  height: 54px;
  padding: 5px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.seek-arrow-svg {
  width: 25px;
  height: 25px;
  display: block;
  overflow: visible;
}

.seek-arrow-forward {
  transform: scaleX(-1);
}

.seek-arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seek-number {
  position: static;
  display: block;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
}

.seek-number::after {
  content: "s";
  font-size: 7px;
  margin-left: 1px;
}

.play-btn {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 3px solid var(--play-border);
  outline: 3px solid var(--surface);
  display: grid;
  place-items: center;
}

.play-symbol {
  display: block;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #171512;
  margin-left: 5px;
}

.play-btn[aria-label="Pausar"] .play-symbol {
  width: 18px;
  height: 25px;
  border: 0;
  margin-left: 0;
  position: relative;
}

.play-btn[aria-label="Pausar"] .play-symbol::before,
.play-btn[aria-label="Pausar"] .play-symbol::after {
  content: "";
  position: absolute;
  top: 0;
  width: 6px;
  height: 25px;
  border-radius: 1px;
  background: #171512;
}

.play-btn[aria-label="Pausar"] .play-symbol::before { left: 1px; }
.play-btn[aria-label="Pausar"] .play-symbol::after { right: 1px; }

body[data-theme="noite"] .seek-circle,
body[data-theme="noite"] .play-btn {
  color: #111;
}

.play-btn:disabled,
.seek-circle:disabled,
input:disabled,
button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.audio-progress {
  margin-top: 10px;
}

.seek-bar {
  width: 100%;
  height: 6px;
  accent-color: var(--green);
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 9px auto 0;
  max-width: 420px;
}

.skip-action,
.guess-action {
  min-height: 48px;
  border-radius: 13px;
  padding: 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
}

.skip-action {
  background: var(--skip-bg);
  border: 1px solid rgba(255,255,255,.5);
}

.guess-action {
  background: var(--guess-bg);
  border: 1px solid transparent;
}

.guess-form {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.guess-form-top {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 8px;
}

.guess-form label {
  grid-column: 2;
  display: block;
  text-align: center;
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.guess-close {
  grid-column: 3;
  width: 34px;
  height: 34px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.guess-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.guess-row input {
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.guess-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(63,154,84,.13);
}

.guess-row button {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  background: var(--guess-bg);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}


.attempts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 4px;
  margin-top: 6px;
}

.attempt {
  min-width: 0;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 4px 6px;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attempt strong {
  color: var(--red);
  margin-right: 3px;
  flex: 0 0 auto;
}

.message {
  min-height: 14px;
  margin: 5px 2px 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.message.success { color: var(--green); }

.reveal {
  margin-top: 12px;
  padding: 17px 15px;
  text-align: center;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 40px var(--shadow);
}

.result-status {
  margin: 0 0 6px;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.025em;
}

.reveal > .result-status.success { color: #23964b; }
.reveal > .result-status.fail { color: #d6473f; }

.reveal-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.reveal h2 {
  margin: 5px 0 3px;
  font-size: 23px;
  line-height: 1.05;
}

.reveal > p:not(.reveal-kicker) {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.reveal-actions {
  margin-top: 13px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.reveal a,
.secondary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.hidden { display: none !important; }

.footer-note {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.15;
  font-weight: 700;
}

@media (max-width: 600px) {
  body {
    height: 100dvh;
    overflow: hidden;
  }

  .shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .topbar {
    min-height: 56px;
    grid-template-columns: 40px 1fr 40px;
    gap: 7px;
    margin-bottom: 3px;
  }

  .theme-toggle,
  .day-chip {
    width: 40px;
    height: 40px;
  }

  .theme-toggle { font-size: 22px; }
  .day-chip { font-size: 12px; }

  .brand { gap: 7px; }

  .brand-logo {
    width: 39px;
    height: 39px;
  }

  .brand h1 { font-size: 22px; }
  .brand p { font-size: 10px; margin-top: 3px; }

  .game-title {
    font-size: 17px;
    margin: 4px 0 8px;
  }

  .info-card {
    min-height: 58px;
    padding: 8px 7px;
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .info-item span {
    font-size: 9.5px;
    margin-bottom: 3px;
  }

  .info-item strong { font-size: 12.5px; }

  .song-stats {
    gap: 6px;
    margin-bottom: 9px;
  }

  .song-stat {
    min-height: 42px;
    padding: 5px 6px 4px;
    border-radius: 10px;
  }

  .song-stat span {
    font-size: 8.5px;
    margin-bottom: 4px;
  }

  .song-stat strong { font-size: 12.5px; }

  .rounds { gap: 7px; }

  .round {
    min-height: 46px;
    padding: 0 15px;
  }

  .round span {
    width: 21px;
    font-size: 16px;
  }

  .round small { font-size: 16px; }

  .round.active::after {
    right: 16px;
    font-size: 20px;
  }

  .round.done::after {
    right: 17px;
    font-size: 21px;
  }

  .player-area {
    margin: 4px 4px 0;
  }

  .visualizer {
    height: 8px;
    margin-bottom: 1px;
  }

  .player-controls {
    gap: 14px;
    margin: 1px 0 3px;
  }

  .play-btn {
    width: 68px;
    height: 68px;
    border-width: 3px;
    outline-width: 3px;
  }

  .play-symbol {
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 23px;
  }

  .seek-circle {
    width: 47px;
    height: 47px;
  }

  .seek-arrow-svg { width: 24px; height: 24px; }
  .seek-number { font-size: 9px; }

  .audio-progress { margin-top: 4px; }
  .time-row { font-size: 10px; }

  .primary-actions {
    gap: 10px;
    margin-top: 5px;
  }

  .skip-action,
  .guess-action {
    min-height: 44px;
    border-radius: 13px;
    font-size: 14px;
  }

  .message {
    min-height: 13px;
    margin-top: 4px;
    font-size: 10.5px;
  }

  .footer-note { display: none; }

  .guess-form,
  .reveal {
    position: fixed;
    z-index: 50;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    margin: 0 auto;
    max-width: 500px;
  }

  .reveal {
    max-height: 68dvh;
    overflow: auto;
  }
}

@media (max-width: 390px) {
  .brand { gap: 5px; }
  .brand h1 { font-size: 21px; }
  .brand p { display: none; }
  .player-controls { gap: 12px; }
}

/* Compact only on genuinely short phone viewports. */
@media (max-height: 690px) and (max-width: 600px) {
  .topbar { min-height: 45px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand h1 { font-size: 19px; }

  .theme-toggle,
  .day-chip {
    width: 34px;
    height: 34px;
  }

  .game-title {
    font-size: 14px;
    margin: 1px 0 5px;
  }

  .info-card {
    min-height: 45px;
    padding: 5px;
    margin-bottom: 5px;
  }

  .song-stat {
    min-height: 42px;
    padding: 5px 3px;
  }

  .song-stats { margin-bottom: 5px; }

  .rounds { gap: 4px; }
  .round { min-height: 36px; }
  .round small { font-size: 13px; }
  .round span { font-size: 13px; }

  .visualizer { display: none; }

  .play-btn {
    width: 62px;
    height: 62px;
  }

  .seek-circle {
    width: 44px;
    height: 44px;
  }

  .audio-progress { margin-top: 4px; }
  .primary-actions { margin-top: 5px; }

  .skip-action,
  .guess-action {
    min-height: 39px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visualizer.playing span { animation: none; }
  .round { transition: none; }
}


.platform-section {
  margin-top: 14px;
}

.platform-label,
.result-mini-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.platform-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.platform-link {
  min-height: 39px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 1px 0 var(--shadow);
}

.platform-link:hover {
  background: var(--pill-active);
}

.platform-logo{width:18px;height:18px;flex:0 0 18px;display:block}
.platform-youtube .platform-logo{color:#ff0033}
.platform-spotify .platform-logo{color:#1ed760}
.platform-apple .platform-logo{color:#8a8a8f}
body[data-theme="noite"] .platform-apple .platform-logo{color:#f3f3f5}
.platform-deezer .platform-logo{color:#8b5cf6}

.result-insights {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 8px;
  margin-top: 9px;
}

.community-card,
.next-card {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: left;
}

.community-card strong,
.next-card strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.next-card {
  text-align: center;
}

.next-card strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.next-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.community-bars {
  height: 42px;
  margin-top: 8px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}

.community-bar-item {
  width: 13px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 2px;
}

.community-bar-item i {
  width: 7px;
  min-height: 5px;
  border-radius: 4px 4px 2px 2px;
  background: var(--green);
  opacity: .82;
}

.community-bar-item small {
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

@media (max-width: 600px) {
  .platform-section {
    margin-top: 11px;
  }

  .platform-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .platform-link {
    min-height: 35px;
    padding: 0 4px;
    gap: 4px;
    border-radius: 9px;
    font-size: 9px;
  }

  .platform-logo{width:15px;height:15px;flex-basis:15px}

  .result-insights {
    margin-top: 7px;
    gap: 6px;
  }

  .community-card,
  .next-card {
    padding: 9px 9px;
  }

  .community-card strong {
    font-size: 11px;
  }

  .next-card strong {
    font-size: 16px;
  }

  .result-mini-label {
    margin-bottom: 5px;
    font-size: 8px;
  }

  .next-card small {
    font-size: 7px;
  }
}

@media (max-width: 370px) {
  .platform-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reveal-song{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:2px}
.reveal-song-copy{min-width:0;text-align:left}
.reveal-song-copy h2{margin:0}.reveal-song-copy p{margin:4px 0 0}
.reveal-cover{width:74px;height:74px;flex:0 0 74px;border-radius:12px;object-fit:cover;border:1px solid var(--line);box-shadow:0 4px 16px var(--shadow);background:var(--surface-2)}
@media(max-width:600px){.reveal-cover{width:62px;height:62px;flex-basis:62px;border-radius:10px}.reveal-song{gap:10px}}


@media (max-width: 600px) {
  .result-status {
    margin-bottom: 5px;
    font-size: 22px;
  }
}


@media (max-width: 600px) {
  .guess-form {
    padding: 11px;
  }

  .guess-form-top {
    margin-bottom: 7px;
  }
}


.round.unlocked {
  cursor: pointer;
}

.round.unlocked:hover {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  transform: translateY(-1px);
}

.round.unlocked:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.round:not(.unlocked) {
  cursor: default;
}


/* Navegação simples entre os jogos. Preparada para receber novos atalhos. */
.game-switcher {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 5px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  box-shadow: 0 2px 0 var(--shadow);
}

.game-switcher-link {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.game-switcher-link:hover {
  color: var(--text);
  background: var(--pill);
}

.game-switcher-link.active {
  color: var(--text);
  background: var(--pill-active);
}

@media(max-width:420px){
  .game-switcher-link{padding:0 9px;font-size:10px}
}

body[data-theme="grafite"] .platform-apple .platform-logo{color:#f3f3f5}


/* Seletor compacto de jogos integrado ao título. */
.game-menu{
  position:relative;
  justify-self:center;
  min-width:0;
  z-index:115;
}

.game-menu-trigger{
  cursor:pointer;
  user-select:none;
  list-style:none;
  border-radius:12px;
  padding:3px 7px 3px 3px;
  transition:background .15s ease, transform .15s ease;
}

.game-menu-trigger::-webkit-details-marker{display:none}
.game-menu-trigger::marker{content:""}

.game-menu-trigger:hover{
  background:color-mix(in srgb,var(--surface-2) 62%,transparent);
}

.game-menu-chevron{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  flex:0 0 18px;
  margin-left:1px;
  color:var(--muted);
  font-size:17px;
  font-weight:900;
  line-height:1;
  transform:translateY(-1px);
  transition:transform .16s ease,color .16s ease;
}

.game-menu[open] .game-menu-chevron{
  transform:translateY(1px) rotate(180deg);
  color:var(--text);
}

.game-menu-popover{
  position:absolute;
  top:calc(100% + 7px);
  left:50%;
  width:220px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:14px;
  background:color-mix(in srgb,var(--surface) 96%,transparent);
  box-shadow:0 14px 36px var(--shadow);
  transform:translateX(-50%);
  display:grid;
  gap:4px;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.game-menu-option{
  min-height:43px;
  padding:5px 8px;
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  text-decoration:none;
  font-size:12px;
  font-weight:900;
  transition:background .15s ease,color .15s ease;
}

.game-menu-option:hover{
  color:var(--text);
  background:var(--pill);
}

.game-menu-option.active{
  color:var(--text);
  background:var(--pill-active);
}

.game-menu-option-icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border-radius:8px;
  object-fit:contain;
}

.game-menu-term-icon{
  background:#58a354;
  color:#fff;
  font-size:17px;
  font-weight:1000;
}

@media(max-width:600px){
  .game-menu-trigger{
    padding:2px 5px 2px 2px;
  }

  .game-menu-chevron{
    width:16px;
    height:16px;
    flex-basis:16px;
    font-size:15px;
  }

  .game-menu-popover{
    width:205px;
    top:calc(100% + 6px);
  }

  .game-menu-option{
    min-height:41px;
    font-size:11px;
  }
}


/* Controle de volume do player. */
.volume-control{
  position:absolute;
  left:calc(50% - 168px);
  top:50%;
  z-index:4;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
}

.volume-btn{
  width:38px;
  height:38px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  cursor:pointer;
  color:#191713;
  background:var(--control-bg);
  border:1px solid #c7b99f;
  box-shadow:0 2px 0 var(--shadow);
}

.volume-icon{
  width:21px;
  height:21px;
  display:block;
  fill:currentColor;
}

.volume-wave{
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
}

.volume-btn[data-volume-level="low"] .volume-wave-2,
.volume-btn[data-volume-level="muted"] .volume-wave{
  display:none;
}

.volume-btn[data-volume-level="muted"] .volume-icon{
  opacity:.58;
}

.volume-popover{
  position:absolute;
  z-index:140;
  left:50%;
  bottom:calc(100% + 10px);
  width:166px;
  min-height:42px;
  padding:8px 10px;
  display:flex;
  align-items:center;
  gap:8px;
  transform:translateX(-50%);
  border:1px solid var(--line);
  border-radius:12px;
  background:color-mix(in srgb,var(--surface) 96%,transparent);
  box-shadow:0 10px 28px var(--shadow);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.volume-popover.hidden{
  display:none;
}

.volume-slider{
  min-width:0;
  width:112px;
  height:5px;
  accent-color:var(--green);
  cursor:pointer;
}

.volume-value{
  width:34px;
  flex:0 0 34px;
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  text-align:right;
}

body[data-theme="noite"] .volume-btn,
body[data-theme="grafite"] .volume-btn{
  color:#111;
}

@media(max-width:600px){
  .volume-control{
    left:calc(50% - 145px);
  }

  .volume-btn{
    width:34px;
    height:34px;
  }

  .volume-icon{
    width:19px;
    height:19px;
  }

  .volume-popover{
    width:154px;
    bottom:calc(100% + 8px);
    padding:7px 9px;
  }

  .volume-slider{
    width:101px;
  }
}

@media(max-height:690px) and (max-width:600px){
  .volume-control{
    left:calc(50% - 135px);
  }

  .volume-btn{
    width:32px;
    height:32px;
  }
}


/* Repeat fica simétrico ao volume sem mexer nos três controles centrais. */
.repeat-btn{
  position:absolute;
  right:calc(50% - 168px);
  top:50%;
  z-index:4;
  width:38px;
  height:38px;
  padding:0;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  border-radius:50%;
  cursor:pointer;
  color:#191713;
  background:var(--control-bg);
  border:1px solid #c7b99f;
  box-shadow:0 2px 0 var(--shadow);
}

.repeat-icon{
  width:21px;
  height:21px;
  display:block;
  fill:currentColor;
}

.repeat-btn[aria-pressed="true"]{
  color:#fff;
  background:var(--green);
  border-color:color-mix(in srgb,var(--green) 78%,#fff);
}

body[data-theme="noite"] .repeat-btn:not([aria-pressed="true"]),
body[data-theme="grafite"] .repeat-btn:not([aria-pressed="true"]){
  color:#111;
}

@media(max-width:600px){
  .repeat-btn{
    right:calc(50% - 145px);
    width:34px;
    height:34px;
  }

  .repeat-icon{
    width:19px;
    height:19px;
  }
}

@media(max-height:690px) and (max-width:600px){
  .repeat-btn{
    right:calc(50% - 135px);
    width:32px;
    height:32px;
  }
}


.auto-license-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--muted);
}

.auto-license-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
