@font-face {
  font-family: "DIN Jota";
  src: url("./assets/dee3b15eb85c2c0a.woff2") format("woff2");
  font-display: swap;
}

.page-inicio {
  margin: 0;
  background: #ffca00;
  color: #231c10;
  font: 1rem/1.4 system-ui, sans-serif;
}

.board-shell {
  width: min(58rem, calc(100% - 2rem));
  margin-inline: auto;
}

.board-header {
  overflow: hidden;
  overflow: clip;
  margin-bottom: 0.5rem;
  background: #dfbc16;
}

.board-title {
  position: relative;
  aspect-ratio: 3.65 / 1;
  max-height: 9rem;
  margin: 0;
}

.board-title img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-inicio .app-tools {
  min-width: 0;
  padding-inline: 0.75rem;
  overflow-wrap: anywhere;
}

.soundboard {
  --board-columns: 3;
  --board-gap: clamp(0.625rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(var(--board-columns), minmax(0, 1fr));
  gap: clamp(1.375rem, 5vw, 2.5rem) var(--board-gap);
  align-items: start;
  margin-block: 1.25rem 2rem;
}

.soundboard .sound-tile {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border-radius: 0.4rem;
  color: inherit;
  font: inherit;
  text-align: center;
}

.sound-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 5 / 6;
}

.sound-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sound-caption {
  display: block;
  margin-top: 0.375rem;
  font: italic clamp(0.875rem, 2.2vw, 1.25rem)/1.16 "DIN Jota", system-ui, sans-serif;
  overflow-wrap: anywhere;
}

.soundboard .sound-tile-final {
  grid-column: 1 / -1;
  width: calc((100% + var(--board-gap)) / var(--board-columns) - var(--board-gap));
  justify-self: center;
}

.board-download {
  margin: 0 0 1.25rem;
  text-align: center;
}

.board-download a,
.board-footer a,
.board-footer button {
  box-sizing: border-box;
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0.375rem 0.75rem;
  border: 1px solid #231c10;
  border-radius: 0.25rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.board-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
}

.board-footer button { cursor: pointer; }

.page-inicio :focus-visible {
  outline-color: #231c10;
}

@media (min-width: 64rem) and (hover: hover) and (pointer: fine) {
  .soundboard { --board-columns: 4; }
}
