/* Audio is a pair of game controls, never a row of ambiguous status links. */
#game-frame .audio-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}
#game-frame .audio-toggle {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 11px;
  border: 2px solid #7189b7;
  background: #142548;
  color: #fff9e9;
  text-align: left;
  box-shadow: 0 3px 0 #09112a;
  line-height: 1.15;
  font-size: var(--type-caption);
  letter-spacing: 0.01em;
  cursor: pointer;
}
#game-frame .audio-toggle:hover:not(:disabled) {
  background: #264473;
  border-color: #c4d4f4;
}
#game-frame .audio-toggle[aria-pressed='true'] {
  border-color: #a4e1af;
  background: #1d3b48;
}
#game-frame .audio-toggle-icon {
  display: block;
  fill: currentColor;
  flex: none;
}
#game-frame .audio-toggle-label {
  font-weight: 700;
  min-width: 0;
}
#game-frame .audio-toggle-state {
  font-size: var(--type-caption);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4d4f4;
  white-space: nowrap;
}
#game-frame .audio-toggle[aria-pressed='true'] .audio-toggle-state {
  color: #a4e1af;
}
#game-frame .audio-toggle-compact {
  display: flex;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 8px;
  gap: 0;
}
#game-frame .audio-toggle-compact :is(.audio-toggle-label, .audio-toggle-state) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#game-frame .title-bottom {
  position: absolute;
  z-index: 3;
  left: 30px;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  width: min(340px, max(220px, calc(34% - 60px)));
  align-items: stretch;
  color: var(--cream);
  font-size: var(--type-caption);
}
#game-frame .title-bottom .audio-toggle {
  padding: 9px 10px;
  font-size: var(--type-caption);
}
#game-frame .title-bottom .beta-help-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  justify-self: stretch;
  padding: 0;
  border: 1px solid #7189b7;
  background: #142548;
  color: #c4d4f4;
  font-size: 0;
  text-decoration: none;
  box-shadow: 0 3px 0 #09112a;
}
#game-frame .title-bottom .beta-help-link:before {
  content: '?';
  font-size: var(--type-name);
  font-weight: 800;
}
/* The footer reserve is shared by native and browser app layouts. */
#game-frame .title-scene {
  height: 100%;
}
#game-frame .title-content {
  padding-bottom: max(104px, calc(90px + env(safe-area-inset-bottom, 0px)));
}
#game-frame .title-heading {
  margin-bottom: 22px;
}
#game-frame #match-menu-dialog .audio-controls {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-block: 8px;
}
@container game (max-width:700px) {
  #game-frame .title-bottom {
    left: 18px;
    right: 18px;
    width: auto;
    gap: 7px;
  }
  #game-frame .title-actions {
    padding-bottom: 110px;
  }
  #game-frame .title-bottom .audio-toggle {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 6px;
    font-size: var(--type-caption);
    padding: 8px;
    min-height: 44px;
  }
  #game-frame .title-bottom .audio-toggle-icon {
    width: 20px;
    height: 20px;
  }
  #game-frame .title-bottom .audio-toggle-state {
    font-size: var(--type-caption);
    letter-spacing: 0.02em;
  }
  #game-frame .title-heading {
    margin-bottom: 8px;
  }
}
@container game (max-width:700px) and (max-height:680px) {
  #game-frame .title-heading .brand-wordmark {
    width: min(100%, 240px);
  }
  #game-frame .title-heading {
    padding-top: 14px;
  }
  #game-frame .title-actions {
    gap: 7px;
    padding-top: 8px;
  }
  #game-frame .title-actions .game-button {
    min-height: 42px;
  }
}
@container game (min-width:701px) and (max-height:520px) {
  #game-frame .title-scene {
    min-height: 0;
  }
  #game-frame .title-bottom {
    width: 232px;
    left: 24px;
  }
  #game-frame .title-bottom .audio-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding: 8px 7px;
    font-size: var(--type-caption);
  }
  #game-frame .title-bottom .audio-toggle-icon {
    display: none;
  }
  #game-frame .title-heading {
    margin-bottom: 14px;
  }
  #game-frame .title-heading .brand-wordmark {
    width: min(100%, 232px);
  }
  #game-frame .title-content {
    padding-top: 16px;
  }
}
