/* App shell: top bar, brand, main region, how-to steps */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  height: var(--topbar-h);
  background: linear-gradient(180deg, rgb(7 11 22 / 0.92), rgb(7 11 22 / 0.78));
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-1);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 100%;
}
.topbar__back {
  margin-left: -10px;
}
.topbar__title {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: -8px;
}
.topbar .icon-btn.is-pressed {
  color: var(--text-1);
  background: transparent;
  border-color: transparent;
}
.topbar .icon-btn.is-pressed:hover {
  background: rgb(148 170 220 / 0.1);
}
.topbar .icon-btn.is-current {
  color: var(--volt-300);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch);
  color: var(--text-1);
  text-decoration: none;
  flex: none;
}
.brand:hover {
  color: var(--text-1);
}
.brand:focus-visible {
  border-radius: var(--radius-sm);
}
.brand__word {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}
.brand__word b {
  margin-left: 0.18em;
  color: var(--volt-400);
  font-weight: inherit;
}
.brand-mark__bg {
  fill: var(--volt-400);
}
.brand-mark__ball {
  fill: var(--ink-900);
}
.brand-mark__patch {
  fill: var(--volt-400);
}
.brand-mark__seams {
  fill: none;
  stroke: var(--volt-400);
  stroke-width: 1.6;
  stroke-linecap: round;
}
/* Off Home on phones the bar shows the screen title instead of the wordmark */
@media (max-width: 559px) {
  .brand--compact .brand__word {
    display: none;
  }
  .brand--compact + .topbar__title {
    display: block;
  }
}

.app-main {
  display: block;
  outline: none;
}
h1[tabindex='-1']:focus,
.app-main:focus {
  outline: none;
}

/* How to play (inline on Home and in the sheet): four steps, an icon and one line each */
.howto {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.howto__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-3);
  align-items: center;
  align-content: start;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgb(4 7 15 / 0.4);
  border: 1px solid var(--line-1);
}
.howto__step-no {
  margin-right: 6px;
  color: var(--volt-400);
}
.howto__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--surface-4), var(--surface-2));
  color: var(--volt-300);
  box-shadow: var(--shadow-inset);
}
.howto__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.howto__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.howto__body {
  color: var(--text-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}
/* How to play's quiet link to the World Cup intro. */
.howto-more {
  margin: var(--space-3) 0 0;
  text-align: center;
}
.howto-more__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: var(--touch);
  padding: 0 var(--space-2);
  border: 0;
  background: none;
  color: var(--volt-300);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.howto-more__link:hover {
  text-decoration: underline;
}

/* The World Cup intro ("More than eleven names", world-cup-intro.js): eight compact rows —
   the symbol the board uses, a bold name, one line — two columns from 560 px. */
.wc-intro {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wc-intro__item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding: 6px var(--space-3) 6px var(--space-2);
  border-radius: var(--radius-md);
  background: rgb(4 7 15 / 0.4);
  border: 1px solid var(--line-1);
}
.wc-intro__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: linear-gradient(160deg, var(--surface-4), var(--surface-2));
  color: var(--volt-300);
  box-shadow: var(--shadow-inset);
}
/* The Golden Spin wears the reel's gold cell; Primes and the cup are gold too. */
.wc-intro__item--golden .wc-intro__icon {
  background: linear-gradient(160deg, var(--gold-300), var(--gold-500));
  color: var(--on-gold);
  box-shadow: 0 0 14px rgb(245 200 76 / 0.45);
}
.wc-intro__item--primes .wc-intro__icon,
.wc-intro__item--champions .wc-intro__icon {
  color: var(--gold-300);
}
.wc-intro__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.wc-intro__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.wc-intro__body {
  color: var(--text-2);
  font-size: var(--text-xs);
  line-height: 1.3;
}
/* The title on one line of a phone, so the eight fit 390 × 844 without a scroll. */
.wc-intro-sheet .modal__title {
  font-size: min(var(--display-md), 8.4vw);
}
.wc-intro-sheet .modal__body {
  padding-top: var(--space-1);
}
@media (min-width: 560px) {
  .wc-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
}
@media (min-width: 960px) {
  .howto--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .howto--row .howto__step {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }
}
