/* Os controles informativos ficam separados das ações dos cartões e tabuleiros. */
#main > .games {
  position: relative;
}
#main
  > .games
  > button:is(
    [data-game],
    [data-collection],
    [data-sintonia],
    [data-repasse],
    [data-orbita],
    [data-broto],
    [data-cerco],
    [data-logic],
    [data-versus]
  ) {
  padding-right: 52px;
}
button.game-info-trigger,
#main
  :is(
    #selection-title,
    #game-title,
    #collection-title,
    #c-title,
    #r-selection-title,
    #r-title,
    #o-selection-title,
    #o-title,
    #b-selection-title,
    #b-title,
    #ce-selection-title,
    #ce-title,
    #lg-selection-title,
    #lg-title,
    #tr-selection-title,
    #tr-title
  )
  > button.game-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0 0 0 9px;
  border: 1px solid #aab99f;
  border-radius: 50%;
  background: #fff;
  color: #405e49;
  font:
    italic 700 18px/1 var(--font-title);
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
}
#main > .games > button.game-info-nav {
  position: absolute;
  z-index: 1;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid #aab99f;
  border-radius: 50%;
  background: #fff;
  color: #405e49;
  font:
    italic 700 18px/1 var(--font-title);
  box-shadow: none;
  text-align: center;
}
#main
  :is(
    #selection-title,
    #game-title,
    #collection-title,
    #c-title,
    #r-selection-title,
    #r-title,
    #o-selection-title,
    #o-title,
    #b-selection-title,
    #b-title,
    #ce-selection-title,
    #ce-title,
    #lg-selection-title,
    #lg-title,
    #tr-selection-title,
    #tr-title
  )
  > button.game-info-trigger:hover,
button.game-info-trigger:hover,
#main > .games > button.game-info-nav:hover {
  background: #edf2e8;
  border-color: #71865b;
  box-shadow: none;
}
button.game-info-trigger:focus-visible {
  outline: 3px solid #997838;
  outline-offset: 3px;
}
#game-info-tip {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  width: min(300px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid #b3c1a8;
  border-radius: 12px;
  background: #fff;
  color: #3b342e;
  box-shadow: 0 8px 26px #34452a20;
  font:
    13px/1.55 var(--font-ui);
  pointer-events: none;
  overflow-wrap: anywhere;
}
#game-info-tip strong {
  display: block;
  font:
    600 17px/1.3 var(--font-title);
  color: #405e49;
}
#game-info-tip p {
  margin: 8px 0;
}
#game-info-tip small {
  font-size: 11px;
  color: #647269;
}
#game-info-dialog {
  box-sizing: border-box;
  width: min(660px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  margin: auto;
  border: 1px solid #b3c1a8;
  border-radius: 18px;
  background: #fff;
  color: #3b342e;
  box-shadow: 0 20px 70px #253b2926;
  overflow: hidden;
}
#game-info-dialog::backdrop {
  background: #263b304d;
  backdrop-filter: blur(3px);
}
.game-info-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 42px);
}
.game-info-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #e3e9df;
  flex-shrink: 0;
}
#game-info-title {
  font:
    400 34px/1.2 var(--font-title);
  color: #405e49;
  margin: 0;
  flex: 1;
}
.game-info-copy {
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  padding: 6px 28px 18px;
  font:
    14px/1.75 var(--font-ui);
}
.game-info-copy h3 {
  font:
    600 17px/1.4 var(--font-title);
  color: #405e49;
  margin: 20px 0 10px;
}
.game-info-copy p {
  margin: 8px 0;
}
.game-info-copy ul {
  padding-left: 22px;
  margin: 8px 0;
}
.game-info-copy li {
  margin: 8px 0;
}
.game-info-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 28px;
  border-top: 1px solid #e3e9df;
  background: #fafbf7;
  flex-shrink: 0;
}
#game-info-dialog button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #b3c1a8;
  border-radius: 7px;
  background: #fff;
  color: #405e49;
  font:
    600 13px/1.4 var(--font-ui);
}
#game-info-dialog .game-info-x {
  width: 44px;
  padding: 4px;
  font-size: 25px;
  line-height: 1;
}
@media (max-width: 600px) {
  #game-info-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .game-info-shell {
    max-height: calc(100dvh - 26px);
  }
  .game-info-heading {
    padding: 18px 18px 14px;
  }
  .game-info-copy {
    padding: 4px 20px 16px;
  }
  .game-info-actions {
    padding: 14px 18px;
  }
  #game-info-title {
    font-size: 28px;
  }
}
