.word-nest {
  max-width: 1080px;
}
.nest-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.nest-heading h1 {
  margin-bottom: 10px;
}
.nest-heading h1 span {
  color: #ab782d;
}
.nest-heading p {
  margin: 0;
}
.nest-picker {
  display: grid;
  gap: 7px;
  flex: 0 0 210px;
}
.nest-picker select {
  width: 100%;
}
.nest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr);
  border-top: 1px solid #c9ceca;
}
.nest-board {
  padding: 24px 38px 24px 0;
  min-width: 0;
}
.nest-board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#nest-name {
  font-family: Georgia, serif;
  font-size: 25px;
}
.word-nest .nest-board-top button,
.word-nest .nest-bottom button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  padding: 8px 0;
}
#nest-rules {
  background: #efece1;
  padding: 4px 20px;
  margin-top: 12px;
}
.nest-form {
  margin-top: 25px;
}
.nest-input-label {
  display: block;
  text-align: center;
  color: #52636a;
}
.word-nest #word-answer {
  display: block;
  width: 100%;
  height: 65px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  font:
    600 32px/1.2 Arial,
    sans-serif;
  border: 0;
  border-bottom: 1px solid #c9ceca;
  background: transparent;
  border-radius: 0;
  padding: 8px;
  color: #193f4c;
}
#word-answer::placeholder {
  color: #84918e;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.nest-feedback {
  min-height: 54px;
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.5;
}
.nest-feedback[data-kind='accepted'] {
  color: #386348;
}
.nest-feedback[data-kind='error'] {
  color: #8b3e27;
}
.egg-clutch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  gap: 12px 16px;
  min-height: 232px;
  max-width: 405px;
  margin: 0 auto 24px;
  padding: 8px;
}
.word-nest .letter-egg {
  width: 74px;
  height: 92px;
  min-width: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #c4ac7d;
  border-bottom: 4px solid #baa37a;
  border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  background-color: #f4e6c4;
  background-image:
    radial-gradient(ellipse at 22% 67%, #b59c6755 1px, transparent 1.8px),
    radial-gradient(ellipse at 71% 25%, #b59c6755 1px, transparent 1.8px),
    radial-gradient(ellipse at 80% 70%, #b59c6744 1.4px, transparent 2px),
    radial-gradient(ellipse at 20% 28%, #b59c6744 1.3px, transparent 2px);
  box-shadow: 0 4px 0 #dcd8cd80;
  padding: 5px 0 0;
  font:
    600 32px/1 Arial,
    sans-serif;
  transform: rotate(var(--tilt));
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    box-shadow 140ms ease;
}
.word-nest .letter-egg:hover:not(:disabled) {
  transform: translateY(-4px) rotate(0);
  background-color: #f8edcf;
}
.word-nest .letter-egg[aria-pressed='true'] {
  color: #fff;
  background-color: #315966;
  background-image: none;
  border-color: #24434d;
  box-shadow: 0 1px 0 #b4c0bd;
  transform: translateY(3px) rotate(0);
}
.word-nest .letter-egg:active {
  transform: translateY(4px);
}
.nest-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.word-nest .nest-actions button {
  min-width: 100px;
  border-radius: 30px;
  min-height: 50px;
}
.word-nest .nest-actions #shuffle-letters {
  min-width: 50px;
  width: 50px;
  padding: 12px;
  background: transparent;
}
.nest-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  color: #52636a;
  text-align: center;
}
.nest-collection {
  border-left: 1px solid #c9ceca;
  padding: 30px 0 24px 32px;
  min-width: 0;
}
.nest-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.nest-score strong {
  font:
    400 40px/1 Georgia,
    serif;
}
#nest-rank {
  color: #53665a;
}
.nest-meter {
  background: #e2e4dc;
  height: 5px;
  margin: 20px 0 32px;
}
.nest-meter span {
  display: block;
  height: 100%;
  background: #ac8034;
  width: 0;
  transition: width 200ms ease;
}
.nest-collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.nest-collection-heading h2 {
  font-size: 25px;
  margin-bottom: 0;
}
#word-score {
  color: #52636a;
}
#nest-empty {
  text-align: center;
  color: #6c786b;
  margin: 52px 0;
}
#nest-empty svg {
  color: #a18a60;
}
#nest-empty p {
  margin: 6px 0;
}
#nest-empty p:first-of-type {
  font:
    22px/1.4 Georgia,
    serif;
  color: #193f4c;
}
.nest-words {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.nest-words li {
  padding: 8px 0;
  border-bottom: 1px solid #e1e3db;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  text-transform: lowercase;
}
.nest-words li span {
  color: #617265;
}
.nest-save {
  margin-top: 32px;
  color: #617265;
}
.word-nest #word-results {
  border-top: 1px solid #c9ceca;
  padding-top: 20px;
}
.word-nest #missed-words {
  text-transform: lowercase;
}
@media (max-width: 800px) {
  .nest-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .nest-picker {
    flex: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nest-picker select {
    width: min(55%, 230px);
  }
  .nest-layout {
    grid-template-columns: 1fr;
  }
  .nest-board {
    padding-right: 0;
  }
  .nest-collection {
    border-left: 0;
    border-top: 1px solid #c9ceca;
    padding: 24px 0;
  }
  #nest-empty {
    margin: 24px 0;
  }
}
@media (max-width: 390px) {
  .egg-clutch {
    gap: 10px;
  }
  .word-nest .letter-egg {
    width: 57px;
    height: 75px;
    font-size: 27px;
  }
  .nest-actions {
    gap: 8px;
  }
  .word-nest .nest-actions button {
    min-width: 88px;
  }
  .word-nest #word-answer {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .word-nest *,
  .word-nest *::before {
    transition: none !important;
  }
}
