@font-face {
  font-family: Bowlby;
  src: url(/fontes/bowlby.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: VT323;
  src: url(/fontes/vt323.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2190-2193;
}
@font-face {
  font-family: VT323;
  src: url(/fontes/vt323-ext.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F;
}
@font-face {
  font-family: Rubik;
  src: url(/fontes/rubik.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2190-2193, U+2212;
}
@font-face {
  font-family: Rubik;
  src: url(/fontes/rubik-ext.woff2) format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1E9F;
}

/* Videokê de 1994: plástico de videocassete, visor, papel de formulário contínuo. */
:root {
  --aparelho: #2b2825;
  --aparelho-claro: #423d38;
  --aparelho-escuro: #171513;
  --friso: #5d564f;
  --bege: #ead9b5;
  --papel: #f6f3e4;
  --papel-verde: #dcebcf;
  --tinta: #1b2a1f;
  --tinta-fraca: #56685a;
  --visor: #061f1c;
  --visor-luz: #63f5d6;
  --visor-fraca: #2f8f80;
  --amarelo: #ffd91a;
  --laranja: #ff8a1f;
  --vermelho: #f0413a;
  --magenta: #e5277f;
  --roxo: #5b2bd6;
  --azul: #1717a6;
  --ciano: #27d7f0;
  --verde: #3ddc6a;
  --creme: #fff7dd;
  --display: Bowlby, Impact, sans-serif;
  --osd: VT323, "Courier New", monospace;
  --texto: Rubik, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
[hidden] {
  display: none !important;
}
html,
body {
  height: 100%;
}
body {
  background: #0c0a14;
  color: var(--creme);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.35;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-align: inherit;
}
:focus-visible {
  outline: 3px solid var(--ciano);
  outline-offset: 2px;
}
.osd {
  font-family: var(--osd);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.arco {
  font-family: var(--display);
  line-height: 0.95;
  color: var(--creme);
  text-shadow:
    0.03em 0.03em 0 var(--amarelo),
    0.06em 0.06em 0 var(--laranja),
    0.09em 0.09em 0 var(--vermelho),
    0.12em 0.12em 0 var(--magenta),
    0.15em 0.15em 0 var(--roxo),
    0.19em 0.19em 0 #14092e;
}

/* Teclas de aparelho: têm espessura e afundam */
.bt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 5px;
  background: linear-gradient(var(--aparelho-claro), #332f2b);
  color: var(--creme);
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.16),
    inset 0 -2px 0 rgb(0 0 0 / 0.35),
    0 3px 0 #0c0b0a;
}
.bt:hover {
  filter: brightness(1.18);
}
.bt:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgb(0 0 0 / 0.5),
    0 1px 0 #0c0b0a;
}
.bt:disabled {
  opacity: 0.5;
  cursor: default;
}
.bt.forte {
  background: linear-gradient(#ffe24d, #f5b800);
  color: #2a1a00;
}
.bt.so-icone {
  width: 44px;
  padding: 0;
}
.bt[aria-pressed="true"] {
  background: linear-gradient(#0f4b43, var(--visor));
  color: var(--visor-luz);
}
.icone {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}
.par {
  display: inline-flex;
  gap: 2px;
}
.par .bt {
  border-radius: 0;
}
.par .bt:first-child {
  border-radius: 5px 0 0 5px;
}
.par .bt:last-child {
  border-radius: 0 5px 5px 0;
}

/* Campos: visor aceso */
.campo {
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 5px;
  border: 2px solid #000;
  background: var(--visor);
  color: var(--visor-luz);
  font-family: var(--osd);
  font-size: 24px;
  box-shadow: inset 0 0 14px rgb(0 0 0 / 0.7);
}
.campo::placeholder {
  color: var(--visor-fraca);
  opacity: 1;
}
.campo:focus {
  outline: 3px solid var(--amarelo);
  outline-offset: 0;
}
.linha-campo {
  display: grid;
  gap: 5px;
}
.linha-campo > span {
  font-weight: 600;
}
input[type="range"] {
  width: 100%;
  min-height: 30px;
  accent-color: var(--magenta);
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--magenta);
  flex: none;
}
.marcar {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  cursor: pointer;
}

/* Papel de formulário contínuo: listas e painéis de texto */
.formulario {
  color: var(--tinta);
  background-color: var(--papel);
  background-image:
    radial-gradient(circle at 12px 16px, #1a1a1a22 0 1px, #fff0 1px), radial-gradient(circle at 50% 50%, #8b8a7c 0 5px, #8b8a7c00 5.6px), radial-gradient(circle at 50% 50%, #8b8a7c 0 5px, #8b8a7c00 5.6px),
    linear-gradient(90deg, #0000 24px, #b9c9b0 24px 25px, #0000 25px calc(100% - 25px), #b9c9b0 calc(100% - 25px) calc(100% - 24px), #0000 0), repeating-linear-gradient(#0000 0 46px, var(--papel-verde) 46px 92px);
  background-size:
    0 0,
    24px 32px,
    24px 32px,
    100% 100%,
    100% 92px;
  background-position:
    0 0,
    0 0,
    100% 0,
    0 0,
    0 0;
  background-repeat: repeat-y, repeat-y, repeat-y, no-repeat, repeat;
  padding-inline: 36px;
}
.lista {
  display: grid;
  align-content: start;
  list-style: none;
  padding: 0;
}
.musica {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 10px;
  align-items: center;
  padding: 7px 8px;
  width: 100%;
  border-radius: 4px;
}
.musica:hover,
.musica:focus-within {
  background: var(--amarelo);
}
.musica .nome {
  font-family: var(--osd);
  font-size: 24px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.musica .quem {
  color: var(--tinta-fraca);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.musica .tempo {
  font-family: var(--osd);
  font-size: 20px;
  color: var(--tinta-fraca);
}
.musica .lado {
  display: flex;
  align-items: center;
  gap: 4px;
}
.musica details {
  grid-column: 1 / -1;
}
.musica summary {
  color: var(--tinta-fraca);
  font-size: 13px;
  cursor: pointer;
  width: fit-content;
  padding: 3px 0;
}
.versoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 8px;
}
.versoes .bt {
  min-height: 36px;
  padding: 4px 10px;
  font-size: 14px;
}
.selo {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--magenta);
  border-radius: 3px;
  padding: 0 6px;
  vertical-align: 1px;
}
.estrela {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--tinta-fraca);
}
.estrela svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.estrela[aria-pressed="true"] {
  color: var(--magenta);
}
.estrela[aria-pressed="true"] svg {
  fill: currentColor;
}
.vazio {
  padding: 12px 8px;
  color: inherit;
}
.vazio.erro {
  color: #b3122a;
  font-weight: 600;
}
.ajuda {
  font-size: 14px;
  opacity: 0.85;
}

/* Fita cassete: cada sugestão de música */
.ficha {
  position: relative;
  background:
    linear-gradient(var(--magenta) 0 5px, var(--laranja) 5px 9px, var(--amarelo) 9px 12px, #0000 12px),
    var(--creme);
  color: #1c1a17;
  border-radius: 4px;
  padding: 18px 14px 8px;
  font-weight: 700;
  border: 2px solid #14110f;
  box-shadow: 0 4px 0 #14110f;
}
.ficha small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: #6a6156;
}
.ficha:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 7px 0 #14110f;
}
.ficha:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #14110f;
}

/* Opções visuais (palco e celular) */
.opcoes {
  display: grid;
  gap: 8px;
}
.opcoes > p {
  font-weight: 700;
}
.opcoes > div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
}
.opcoes .bt {
  white-space: normal;
  text-align: center;
  font-size: 14px;
  min-height: 40px;
}
.opcoes .amostra {
  flex-direction: column;
  justify-content: end;
  align-items: stretch;
  min-height: 76px;
  padding: 0;
  overflow: hidden;
  color: #fff;
}
.amostra span {
  background: rgb(0 0 0 / 0.72);
  padding: 4px 6px;
}
.opcoes .amostra[aria-pressed="true"] {
  outline: 4px solid var(--amarelo);
  outline-offset: -2px;
}
.f-sortear {
  background: conic-gradient(var(--vermelho), var(--laranja), var(--amarelo), var(--verde), var(--ciano), var(--roxo), var(--magenta), var(--vermelho)) !important;
}
.f-pista {
  background: conic-gradient(from 90deg at 50% 50%, #e5277f 25%, #27d7f0 0 50%, #ffd91a 0 75%, #3ddc6a 0) 0 0 / 34px 34px !important;
}
.f-estrada {
  background: radial-gradient(circle at 50% 62%, #ffd91a 0 24%, #0000 25%), linear-gradient(#2a0f55, #e5277f 60%, #14092e 61%) !important;
}
.f-ondas {
  background: repeating-radial-gradient(circle at 10% 90%, #5c2120 0 9px, #dc3d1f 9px 18px, #fa8c1a 18px 27px, #fcd45a 27px 36px, #faeccc 36px 45px, #1a7373 45px 54px) !important;
}
.f-lava {
  background: radial-gradient(circle at 30% 60%, #ffcf33 0 16%, #0000 17%), radial-gradient(circle at 68% 34%, #ff7a1f 0 20%, #0000 21%), #7a124a !important;
}
.f-vhs {
  background: repeating-linear-gradient(#0000 0 3px, #0004 3px 5px), linear-gradient(120deg, #08104a, #1a7a9e, #db3380, #ffc76b) !important;
}
.f-fliperama {
  background: linear-gradient(#0000 40%, #ffbf33 40% 50%, #0000 50% 58%, #33e6ff 58% 68%, #0000 68%), conic-gradient(#3b1a7a, #7a1a5c, #1a5c7a, #3b1a7a) !important;
}
.f-natal {
  background: radial-gradient(circle at 78% 24%, #fff0c4 0 12%, #0000 13%), linear-gradient(#0a0d3d 60%, #dfe9ff 61%) !important;
}
.f-azul {
  background: #1717a6 !important;
}

/* Modo leve do palco: o mesmo corte de animações de quem pede menos movimento. */
.leve *,
.leve *::before,
.leve *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

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