* {
  box-sizing: border-box;
}

body {
  font-family: Tahoma, "MS Sans Serif", Geneva, Verdana, sans-serif;
  font-size: 13px;
  color: #000;
  margin: 0;
  min-height: 100vh;
  background: #008080;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
}

.window {
  width: 100%;
  max-width: 420px;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.title-bar {
  background: linear-gradient(to right, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
  padding: 0.3rem 0.5rem;
}

.window-body {
  padding: 0.75rem;
}

fieldset {
  border: 2px groove #c0c0c0;
  margin: 0 0 0.75rem;
  padding: 0.6rem;
}

fieldset:last-child {
  margin-bottom: 0;
}

legend {
  padding: 0 0.3rem;
  font-weight: bold;
}

#key-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

#key-form label {
  width: 100%;
}

#key-input {
  flex: 1;
  padding: 0.25rem;
  border: 2px inset #c0c0c0;
  background: #fff;
  font-family: inherit;
}

button {
  font-family: inherit;
  font-size: 13px;
  padding: 0.25rem 0.8rem;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  cursor: pointer;
}

button:active {
  border-style: inset;
}

#key-message {
  font-weight: bold;
  min-height: 1.2em;
}

#download-link {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.25rem 0.8rem;
  background: #c0c0c0;
  border: 2px outset #c0c0c0;
  color: #000;
  text-decoration: none;
}

#download-link[hidden] {
  display: none;
}

#download-link:active {
  border-style: inset;
}

#song-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#song-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid #808080;
}

#song-list li:last-child {
  border-bottom: none;
}

.song-info {
  display: flex;
  flex-direction: column;
}

.title-blurred {
  filter: blur(5px);
  user-select: none;
}

.title-revealed {
  filter: none;
  transition: filter 0.6s ease;
}

.found-locations {
  font-size: 11px;
  color: #404040;
}

.locked {
  color: #808080;
}

.unlocked {
  color: #008000;
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

th,
td {
  text-align: left;
  padding: 0.25rem;
  border-bottom: 1px solid #808080;
}
