body[data-view="intro"] .app {
  height: auto;
  min-height: 100svh;
}

/* Route details and translated labels can make the menu taller than the viewport. */
.game[data-view="intro"] {
  flex: none;
}

body[data-view="intro"] footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "credit music best";
  align-items: center;
  gap: 0 12px;
  font-size: 12px;
  line-height: 1.4;
  padding: 4px 0 max(12px, env(safe-area-inset-bottom));
}

body[data-view="intro"] .author-credit {
  grid-area: credit;
}

body[data-view="intro"] .author-credit a {
  display: inline-block;
  padding-block: 4px;
}

body[data-view="intro"] #best-label {
  grid-area: best;
  text-align: end;
}

#intro-release {
  grid-area: music;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: 44px;
  color: var(--gold);
  font-size: 13px;
  font-weight: bold;
  line-height: 1.35;
  text-align: center;
  text-underline-offset: 3px;
}

#intro-release::before {
  content: '♫';
  font-size: 1.25em;
}

body:not([data-view="intro"]) #intro-release,
#intro-release[hidden] {
  display: none;
}

@media (max-width: 680px) {
  body[data-view="intro"] footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "music music" "credit best";
  }
}
.site-home {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  color: var(--cream);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.site-home::before {
  content: '';
  width: .45em;
  height: .45em;
  border: solid currentColor;
  border-width: 0 0 1px 1px;
  transform: rotate(45deg);
}

.site-home:hover, .site-home:focus-visible {
  color: var(--gold);
}

html[lang="en"] .site-home[lang="ru"],
html:not([lang="en"]) .site-home[lang="en"] {
  display: none;
}

.track-brand {
  position: relative;
  min-height: 44px;
}

.track-brand .site-home::after {
  content: '';
  position: absolute;
  inset: 0;
}

.pause-card > .site-home {
  justify-self: center;
  justify-content: center;
  min-height: 36px;
  grid-column: 2;
  grid-row: 3;
}

.game-settings {
  align-self: center;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  font-size: 12px;
  padding: 6px 10px;
}
.game-consent {
  position: fixed;
  z-index: 40;
  bottom: max(10px, env(safe-area-inset-bottom));
  right: 10px;
  width: min(380px, calc(100% - 20px));
  max-height: 70svh;
  overflow: auto;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid #6b7668;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.game-consent p { margin: 0 0 8px; }
.game-consent div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.game-consent button { background: transparent; border: 1px solid var(--muted); color: var(--cream); border-radius: 5px; padding: 8px; }
.game-consent a { color: var(--gold); }
html[lang="en"] :is(.game-consent,.game-settings) [lang="ru"],
html:not([lang="en"]) :is(.game-consent,.game-settings) [lang="en"] { display: none; }

