.game-shell {
  width: calc(100% - 24px);
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 48px;
}

.game-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid #25262a;
}

.home-link {
  justify-self: start;
}

.game-nav .brand-compact {
  transform: scale(.88);
  transform-origin: left center;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-nav .icon-button {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

#date-label {
  min-width: 102px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.nav-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
}

.game-heading {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  padding: 27px 2px 22px;
}

.heading-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 12px;
  background: var(--green);
  font-size: 25px;
  font-weight: 900;
}

.heading-icon.word-icon,
.heading-icon.number-icon,
.heading-icon.clue-icon {
  background: transparent;
}

.word-icon {
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.word-icon b,
.word-icon i {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-style: normal;
  font-size: 18px;
}

.word-icon b { background: var(--orange); }
.word-icon i { background: var(--green); }

.number-icon {
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 7px;
}

.number-icon b,
.number-icon i {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  font-style: normal;
  font-size: 19px;
}

.number-icon i {
  background: var(--yellow);
  color: #181818;
}

.clue-icon {
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 7px;
}

.clue-icon b,
.clue-icon i,
.clue-icon em {
  display: grid;
  height: 100%;
  place-items: center;
  border-radius: 4px;
  font-style: normal;
  font-size: 14px;
}

.clue-icon b { background: var(--green); }
.clue-icon i { background: var(--yellow); color: #181818; }
.clue-icon em { background: var(--gray); }

.heading-copy span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.heading-copy h1 {
  margin: 4px 0 0;
  font-size: clamp(25px, 5vw, 34px);
}

.message {
  min-height: 24px;
  margin: 8px 0;
  color: #e7bd63;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.number-keyboard,
.letter-keyboard {
  display: grid;
  gap: 7px;
  width: 100%;
  max-width: 620px;
  margin: 20px auto 0;
}

.number-keyboard {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.number-keyboard .key {
  grid-column: span 2;
}

.number-keyboard .key.action {
  grid-column: span 5;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.key {
  display: grid;
  min-width: 0;
  height: 54px;
  flex: 1;
  place-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: #55575c;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.key:hover {
  filter: brightness(1.12);
}

.key.action {
  background: #3a3c41;
  font-size: 14px;
}

.help-colors {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}

.help-color {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  align-items: center;
}

.help-color b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  color: white;
  font-size: 18px;
}

.help-color span {
  color: #d2d3d5;
  font-size: 14px;
  line-height: 1.4;
}

.help-color.correct b { background: var(--green); }
.help-color.present b { background: var(--yellow); color: #171717; }
.help-color.absent b { background: var(--gray); }
.help-color.far b { background: var(--orange); }
.help-color.close b { background: var(--green-dark); }

.key.correct { background: var(--green); }
.key.present { background: var(--yellow); color: #171717; }
.key.absent { background: #292a2d; color: #77797e; }

.result-card {
  text-align: center;
}

.result-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.result-card h2 {
  margin: 0;
  font-size: 28px;
}

.result-card p {
  margin: 10px 0;
}

.countdown-label {
  display: block;
  margin: 20px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.countdown {
  display: block;
  margin-bottom: 22px;
  font-size: 25px;
  letter-spacing: .08em;
}

@media (max-width: 600px) {
  .game-shell {
    width: calc(100% - 14px);
  }

  .game-nav {
    grid-template-columns: auto 1fr auto;
  }

  .home-link .brand-letter:not(:first-of-type),
  .home-link .brand-number {
    display: none;
  }

  .home-link .brand-compact {
    padding: 4px;
  }

  .date-nav {
    justify-self: center;
    gap: 5px;
  }

  #date-label {
    min-width: 84px;
    font-size: 12px;
  }

  .nav-actions .icon-button {
    width: 38px;
    height: 38px;
  }

  .game-heading {
    padding-inline: 8px;
  }

  .key {
    height: 50px;
    padding: 0 4px;
    font-size: 15px;
  }
}
