@font-face {
  font-family: 'Deltarune';
  src: url('font.otf') format('opentype');
}

body {
  background: #000;
  color: #fff;
  font-family: 'Deltarune', monospace;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  font-size: 32px;
  letter-spacing: 0.5px;
  overflow: hidden;
}

#main-menu-ui {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.stretched-text {
  display: inline-block;
  transform: scaleY(1.1); 
  transform-origin: bottom; 
}

.menu {
  width: min(90vw, 800px); 
}

a {
  color: inherit !important;
  text-decoration: none !important;
  outline: none !important;
  display: block;
}

.row {
  display: grid;
  grid-template-columns: 200px 1fr auto; 
  align-items: center;
  padding: 12px 0; 
  gap: 16px; 
  letter-spacing: 0.5px;
}

.disabled-row {
  display: grid;
  opacity: 0.7;
  grid-template-columns: 200px 1fr auto; 
  align-items: center;
  padding: 12px 0; 
  gap: 16px; 
  letter-spacing: 0.5px;
}

.row > *,
.title,
.badge,
.chapter {
  display: inline-block;
  transform: scaleY(1.1);
  transform-origin: bottom;
}

.row:hover .chapter,
.selected .chapter,
.selected .title,
.row:hover .title {
  color: #fefe00;
}
.row:hover img,
.selected img {
  filter: sepia(1) saturate(100);
}

.coming-soon {
  opacity: 0.7;
}

.badge {
  font-size: 24px; 
  color: #ff9;
  padding-left: 20px; 
}

.chapter {
  text-align: left;
}

.title {
  text-align: center;
}
.disabled-title {
  text-align: center;
  opacity: 0.7;
}

.title,
.disabled-title,
.chapter {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

img {
  width: 60px;
  height: 50px;
  image-rendering: pixelated;
}

.logo {
  width: 700px; 
  height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto; 
}

#mute {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #222;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

@media (max-width: 700px), (max-height: 760px) {
  body {
    font-size: 24px;
  }

  #main-menu-ui {
    padding: 10px 12px;
  }

  .menu {
    width: min(94vw, 520px);
  }

  .row,
  .disabled-row {
    grid-template-columns: minmax(112px, 0.9fr) minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 5px 0;
  }

  img {
    width: 42px;
    height: 36px;
  }

  .logo {
    width: min(84vw, 430px);
    height: auto;
    max-height: 96px;
    margin-bottom: 4px;
  }

  .badge {
    font-size: 18px;
    padding-left: 10px;
  }
}

@media (max-width: 430px), (max-height: 680px) {
  body {
    font-size: 20px;
  }

  #main-menu-ui {
    padding: 8px 10px;
  }

  .menu {
    width: min(95vw, 390px);
  }

  .row,
  .disabled-row {
    grid-template-columns: minmax(94px, 0.9fr) minmax(0, 1fr) 34px;
    gap: 6px;
    padding: 3px 0;
  }

  img {
    width: 34px;
    height: 30px;
  }

  .logo {
    width: min(80vw, 360px);
    max-height: 78px;
    margin-bottom: 2px;
  }

  .badge {
    font-size: 16px;
    padding-left: 8px;
  }
}

@media (max-height: 560px) {
  body {
    font-size: 16px;
  }

  #main-menu-ui {
    padding: 4px 8px;
  }

  .menu {
    width: min(96vw, 520px);
  }

  .row,
  .disabled-row {
    grid-template-columns: minmax(82px, 0.8fr) minmax(0, 1fr) 28px;
    gap: 4px;
    padding: 1px 0;
  }

  img {
    width: 28px;
    height: 24px;
  }

  .logo {
    width: min(62vw, 280px);
    max-height: 48px;
    margin-bottom: 0;
  }
}
