/* Match the page colour so no white shows when iOS bounces past the edges. */
body.fake-artist-page {
  background-color: #1b1b1f;
}

/*
 * The section is its own full-screen scroll area. Its background stays still while the content
 * scrolls inside it, which works on iOS where background-attachment: fixed and fixed layers do not.
 */
.fake-artist-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 3rem 0;
  text-align: center;
  background-color: #1b1b1f;
  background-image: url("../img/fake_artist/background.jpg");
  background-size: cover;
  background-position: center;
}

/* Leave room for the site sidebar on desktop. */
@media (min-width: 1200px) {
  .fake-artist-menu {
    left: 300px;
  }
}

.fake-artist-nav {
  display: flex;
  justify-content: flex-start;
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
}

.fake-artist-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
  color: #f4f1ea;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #f4f1ea;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #000;
  transition: background 0.2s ease;
}

.fake-artist-nav-button:hover,
.fake-artist-nav-button:focus {
  color: #fff;
  background: #3a3a42;
}

.fake-artist-title {
  color: #f4f1ea;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 0.5rem;
}

.fake-artist-subtitle {
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
  color: #f4f1ea;
  text-shadow: 1px 1px 0 #000;
}

.fake-artist-group {
  max-width: 640px;
  margin: 0 auto 1.5rem auto;
  padding: 1rem;
  color: #f4f1ea;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
}

.fake-artist-group h5 {
  color: #ffd166;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.fake-artist-screen[hidden],
.fake-artist-answer[hidden],
.fake-artist-button[hidden] {
  display: none;
}

.fake-artist-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.fake-artist-button {
  flex: 1 1 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f4f1ea;
  background: #3a3a42;
  border: 2px solid #f4f1ea;
  border-radius: 8px;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.fake-artist-button:hover,
.fake-artist-button:focus {
  color: #fff;
  background: #52525c;
}

.fake-artist-button:active {
  transform: translateY(2px);
}

.fake-artist-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.fake-artist-button-primary {
  background: #b3261e;
  border-color: #ffd166;
}

.fake-artist-button-primary:hover,
.fake-artist-button-primary:focus {
  background: #d1362d;
}

/* Setup */

.fake-artist-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fake-artist-stepper .fake-artist-button {
  flex: 0 0 auto;
  min-width: 56px;
}

.fake-artist-count {
  min-width: 8rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.fake-artist-names {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

.fake-artist-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1.1rem;
  color: #f4f1ea;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #8a8a96;
  border-radius: 8px;
}

.fake-artist-input:focus {
  outline: none;
  border-color: #ffd166;
}

.fake-artist-input::placeholder {
  color: #9a9aa6;
}

.fake-artist-error {
  min-height: 1.5rem;
  margin: 0.75rem 0 0 0;
  color: #ff8a80;
}

/* Pass, secret and ready screens */

.fake-artist-player {
  margin: 0 0 0.5rem 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fake-artist-hint {
  margin: 0 0 1.25rem 0;
  color: #cfcfd8;
}

.fake-artist-label {
  margin: 0;
  color: #cfcfd8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.fake-artist-category {
  margin: 0 0 1rem 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.fake-artist-word {
  margin: 0 0 1.5rem 0;
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffd166;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fake-artist-word-fake {
  color: #ff8a80;
}

.fake-artist-answer {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

@media (max-width: 575px) {
  .fake-artist-title {
    font-size: 1.7rem;
  }

  .fake-artist-player,
  .fake-artist-word {
    font-size: 2rem;
  }
}
