/* One shared navigation: plain text links, with Tickets as the only button. */
.site-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: 1600px;
  height: auto;
  min-height: 94px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 80px);
  position: relative;
  z-index: 5;
  color: #fff3d4;
  border-bottom: 1px solid #fff3d426;
  font: 400 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-header a { text-decoration: none; }
.site-header .site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  color: inherit;
}
.site-brand img { width: 58px; height: 58px; object-fit: contain; }
.site-brand > span { font: 700 18px/1.05 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.site-header .site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 24px;
  margin-left: auto;
  min-width: 0;
}
.site-header .site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: 400;
  white-space: nowrap;
}
.site-header .site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-header .site-tickets {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 24px;
  border: 0;
  border-radius: 26px;
  color: #11232c;
  background: #fff3d4;
  font: inherit;
  font-weight: 600;
}
.site-header .site-tickets:hover { background: #d7e955; }
.site-header a:focus-visible { outline: 3px solid #d7e955; outline-offset: 4px; }
.site-sound-hint { display: none; }
footer .motion-toggle { display: inline-flex; align-items: center; gap: 5px; }
footer .motion-toggle span { display: inline; }
.is-result .site-header { max-width: 1600px; }

@media (max-width: 1100px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 18px;
    padding: 12px 24px 6px;
  }
  .site-header .site-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-header .site-tickets { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin: 0; gap: 0 24px; }
}
@media (max-width: 600px) {
  .site-header { padding: 10px 18px 6px; gap: 4px 14px; }
  .site-brand img { width: 40px; height: 40px; }
  .site-brand > span { font-size: 15px; }
  .site-header .site-brand { gap: 9px; }
  .site-header .site-nav { gap: 0 20px; }
  .site-header .site-tickets { padding: 10px 20px; }
}

/* Keep the existing compact playing area while a timed round is active. */
.is-playing .site-header {
  display: flex;
  max-width: 520px;
  min-height: 0;
  padding: 10px 24px;
}
.is-playing .site-header .site-nav,
.is-playing .site-header .site-tickets { display: none; }
.is-playing .site-header .site-sound-hint { display: block; font-size: 11px; }
.is-playing .site-brand img { width: 30px; height: 30px; }
.is-playing .site-brand > span { font-size: 11px; }
@media (max-width: 760px) {
  .is-playing .site-header { height: 47px; padding: 7px 16px; }
}
@media (max-width: 760px) and (max-height: 680px) {
  .is-playing .site-header { height: 40px; padding-block: 4px; }
}
