/* Header fit: keep brand, nav, language and clock on one row. v=20261110-header1 */

.top .wrap {
  width: min(1480px, calc(100% - 1.5rem));
}

.top .bar {
  flex-wrap: nowrap;
  gap: 0.7rem;
  min-width: 0;
}

.top .brand {
  flex: none;
  min-width: 0;
}

.top .brand strong,
.top .nav a,
.top .lang-switch a,
.top .lang-switch summary,
.top .clock,
.top .clock-time,
.top .app-actions .btn-tiny {
  white-space: nowrap;
}

.top .nav {
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-width: 0;
}

.top .app-actions,
.top .clock,
.top .lang-switch {
  flex: none;
}

.top .lang-switch {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top .lang-switch-pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.1rem;
}

.top .lang-switch-pills a,
.top .lang-switch-menu a {
  padding: 0.15rem 0.32rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
}

.top .lang-switch a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  opacity: 1;
}

.top .lang-switch-drop {
  display: none;
  position: relative;
}

.top .lang-switch-drop summary {
  list-style: none;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  line-height: 1.2;
}

.top .lang-switch-drop summary::-webkit-details-marker {
  display: none;
}

.top .lang-switch-drop summary::marker {
  content: "";
  display: none;
}

.top .lang-switch-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 12;
  min-width: 4.5rem;
  padding: 0.3rem;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.14));
  background: #1a1f27;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.top .lang-switch-menu a {
  display: block;
  padding: 0.35rem 0.55rem;
  opacity: 0.85;
}

.top .lang-switch-menu a:hover,
.top .lang-switch-menu a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  opacity: 1;
}

.top .clock {
  flex-wrap: nowrap;
}

/* Language dropdown and hide game shortcuts at common laptop widths */
@media (max-width: 1439px) {
  .top .nav a.nav-shortcut {
    display: none;
  }
}

@media (max-width: 1279px) {
  .top .bar {
    gap: 0.55rem;
  }
  .top .nav {
    gap: 0.55rem;
  }
  .top .app-actions [data-install-app] {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  .top .lang-switch-pills {
    display: none;
  }
  .top .lang-switch-drop {
    display: block;
  }
}

/* Below 900px the existing app.css already hides .nav.
   Keep brand + share + language on one row. */
@media (max-width: 900px) {
  .top .app-actions [data-install-app] {
    display: none !important;
  }
  .top .brand strong {
    font-size: 0.95rem;
  }
}

/* SEO handoff: unique play-page about copy, longer guides, related links */
.about-game {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem 1.5rem;
}
.about-game h2,
.guide-body h2,
.related-guides h2 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
}
.about-game p,
.guide-body p {
  margin: 0 0 0.85rem;
}
.related-guides ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}
.related-guides li {
  margin: 0.25rem 0;
}
