#game-container {
  position: relative;

  display: flex;
  align-items: center;
  flex-direction: column;
  flex-grow: 1;
  justify-content: start;

  background-color: var(--bg);
}

#info-card {
  display: flex;
  overflow: hidden;
  align-items: center;
  flex-direction: column;

  margin-top: 28px;
  margin-bottom: 20px;
  padding: 12px;

  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--surface);
  box-shadow: var(--shadow);
}

#image-container {
  display: flex;
  overflow: hidden;
  justify-content: center;

  width: 300px;
  height: 300px;
  margin-bottom: 10px;

  border-radius: var(--radius);
  background-color: white;
}

#product-image {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

#product-info {
  font-size: 18px;
  font-weight: 600;

  width: 300px;
}

#game-stats {
  font-size: 18px;

  margin-bottom: 12px;

  color: var(--muted);
}

#hint-button {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;

  padding: 0;

  cursor: pointer;

  color: var(--red);
  border: none;
  background: none;
}

#hint-button:hover {
  text-decoration: underline;
}

#game-stats strong {
  color: var(--ink);
}

#guesses-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;

  width: 324px;
  height: 275px;
  padding: 3px;

  border-radius: var(--radius);
  background-color: transparent;
}

.guess-container {
  display: flex;
  overflow: hidden;
  flex: 1;
  flex-direction: row;

  margin-bottom: 5px;

  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--field);
}

.guess-value-container {
  font-size: 18px;
  font-weight: 600;

  display: flex;
  overflow: hidden;
  align-items: center;
  flex: 2;
  justify-content: center;

  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--surface);
}

#text-input-container {
  font-size: 18px;
  font-weight: 600;

  display: flex;
  overflow: hidden;
  align-items: center;
  flex: 2;
  justify-content: center;

  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.guess-value-container,
.guess-direction-container {
  animation: flipInX;
  animation-duration: 1s;
}

.guess-direction-container,
#button-container {
  font-size: 20px;
  font-weight: 800;

  display: flex;
  overflow: hidden;
  align-items: center;
  flex: 1;
  justify-content: center;

  margin-left: 5px;

  color: white;
  border-radius: var(--radius);
}

.guess-win {
  background-color: var(--win);
}

.guess-near {
  color: var(--ink);
  background-color: var(--near);
}

.guess-far {
  background-color: var(--far);
}

#warning-toast {
  position: absolute;
  z-index: 1;
  top: 50px;
  left: 52px;

  font-size: 16px;
  width: 220px;
  padding: 16px;

  color: white;
  border-radius: var(--radius);
  background-color: var(--ink);
}

#input-label {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;

  min-width: 52px;
  height: 40px;

  color: var(--muted);
  border-right: 1px solid var(--line);
  background-color: var(--field);
}

#guess-input {
  font-family: inherit;
  font-size: 16px;

  width: 180px;
  min-width: 0;
  height: 40px;
  padding-left: 10px;

  color: var(--ink);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background-color: var(--surface);
}

#guess-input::placeholder {
  font-size: 16px;

  color: #9a9893;
}

#guess-button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;

  width: 100%;
  height: 100%;

  color: white;
  border: none;
  background-color: var(--red);
}

#guess-button.active:hover {
  cursor: pointer;

  background-color: var(--red-dark);
}

#guess-button:disabled {
  background-color: #c9c6bf;
}

#share-button {
  width: 100%;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;

  font-family: inherit;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  color: white;
  border: none;
  border-radius: 32px;
  background-color: var(--red);
}

#share-button:hover {
  background-color: var(--red-dark);
}

.share-icon {
  height: 60%;
  margin-left: 10px;
}

#share-toast {
  position: absolute;
  top: 16px;
  z-index: 1;

  width: 300px;
  padding: 16px;

  font-size: 16px;
  color: white;
  border-radius: var(--radius);
  background-color: var(--ink);
}

#archive-banner {
  font-size: 14px;
  line-height: 1.4;
  text-align: center;

  width: 324px;
  margin-top: 14px;
  padding: 6px 12px;

  color: var(--red-dark);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background-color: var(--red-soft);
}

#archive-banner a {
  font-weight: 600;
}

#archive-banner:not(.hide) + #info-card {
  margin-top: 12px;
}
