@font-face {
  font-family: "Material Symbols Outlined";
  src: url("/assets/fonts/MaterialSymbolsOutlined_e177d49310da41b01a2c1b7df170a00f.ttf");
}

body {
  margin: 0px;
  background-color: #f4f4f5;
  color: #18181b;
  font-family: "Segoe UI", sans-serif;
}

.username-badge {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0px 4px 12px #0000001f;
}

.username-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: right;
  list-style: none;
}

.username-profile-image {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.username-profile-image-placeholder {
  font-size: 32px;
}

.username-summary::-webkit-details-marker {
  display: none;
}

.username-name {
  text-decoration: underline;
}

.username-panel {
  min-width: 220px;
  padding: 0px 12px 12px;
}

.username-panel .crumble--field {
  display: flex;
  align-items: center;
  gap: 6px;
}

.username-panel > form {
  display: grid;
  gap: 10px;
}

.username-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.username-save-button {
  border: 0px;
  border-radius: 6px;
  background-color: #2563eb;
  color: white;
  font-weight: 600;
}

.username-save-button:hover {
  background-color: #1d4ed8;
}

.public-page {
  max-width: 640px;
  margin-top: 48px;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px;
}

.game-panel {
  display: grid;
  gap: 8px;
}

.game-board {
  display: grid;
  gap: 8px;
}

.game-context-navigation {
  text-align: center;
}

.guess-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.game-navigation {
  margin-top: 12px;
  text-align: center;
}

.letter-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.correct-letter {
  background-color: #15803d;
}

.present-letter {
  background-color: #ca8a04;
}

.absent-letter {
  background-color: #b91c1c;
}

.revealed-letter {
  box-sizing: border-box;
  border: 2px solid #71717a;
  background-color: transparent;
  color: #18181b;
}

.empty-letter {
  box-sizing: border-box;
  border: 2px solid #a1a1aa;
  background-color: white;
  color: #18181b;
}

.submit-guess {
  flex: 0 0 48px;
  padding: 0px;
  border: 0px;
  background-color: #2563eb;
}

.submit-guess[disabled] {
  background-color: #a1a1aa;
  cursor: not-allowed;
}

.guess-interface {
  display: block;
}

.guess-interface > form {
  display: grid;
  gap: 20px;
}

.hidden-guess-input {
  display: none;
}

.keyboard {
  display: grid;
  gap: 6px;
}

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

.keyboard-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 48px;
  padding: 0px 8px;
  border: 0px;
  border-radius: 6px;
  background-color: #d4d4d8;
  color: #18181b;
  font-size: 18px;
  font-weight: 700;
}

.keyboard-key.correct-letter {
  background-color: #15803d;
  color: white;
}

.keyboard-key.present-letter {
  background-color: #ca8a04;
  color: white;
}

.disabled-key {
  background-color: #71717a;
  color: #d4d4d8;
  cursor: not-allowed;
}

.backspace-key {
  min-width: 52px;
}

.material-icon {
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  font-weight: normal;
  line-height: 1;
}

.summary-list {
  display: grid;
  gap: 32px;
  padding: 0px;
  list-style: none;
}

.space-summary-page {
  max-width: 1100px;
}

.summary-word > h2 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d4d4d8;
}

.summary-word > h2 > a {
  color: #18181b;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.rating-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0px;
}

.player-result {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0px;
  padding: 8px;
  border-radius: 8px;
  background-color: white;
}

.result-profile-image {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.result-profile-image-placeholder {
  flex-shrink: 0;
  font-size: 32px;
}

.player-result-details {
  display: grid;
  gap: 4px;
  min-width: 0px;
  overflow-wrap: anywhere;
}

.player-stars {
  display: flex;
  color: #eab308;
}

.player-star {
  font-size: 18px;
  font-variation-settings: 'FILL' 1;
}

input {
  padding: 10px;
  font-size: 18px;
}

input.uppercase-input {
  text-transform: uppercase;
}

button {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 16px;
  padding-right: 16px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .public-page {
    padding: 12px;
  }

  .guess-row {
    gap: 5px;
  }

  .letter-tile {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .submit-guess {
    flex-basis: 42px;
  }

  .keyboard-row {
    gap: 3px;
  }

  .keyboard-key {
    min-width: 0px;
    height: 44px;
    padding: 0px 6px;
    flex: 1;
  }

  .backspace-key {
    flex: 1.35;
  }
}