@media (max-width: 900px) {
  #pubNav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); background: rgba(10,11,12,.98); border-top: 1px solid #353a3c; box-shadow: 0 -8px 28px rgba(0,0,0,.38); }
  #pubNav button { min-width: 94px; min-height: 44px; padding: 8px 10px; scroll-snap-align: start; font-size: 11px; }
  #pubNav button.on { box-shadow: inset 0 -2px 0 var(--orange); }
  .pub-top { gap: 10px; padding-inline: 14px; }
  .pub-brand { flex: 1; }
  .pub-grid, .live-stage { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: 1fr 1fr; }
  .pub-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .public-tabs { scrollbar-width: none; }
  .public-tabs::-webkit-scrollbar { display: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

.mobile-game-agenda { display: none; }
.agenda-update { color: #837f78; font-size: 10px; }
.agenda-update i { color: var(--orange); margin-right: 4px; }

@media (max-width: 620px) {
  body { font-size: 13px; }
  .pub-top { min-height: 58px; }
  .pub-brand img { width: 40px; height: 40px; }
  .pub-brand span { display: none; }
  .pub-user { min-width: 44px; min-height: 44px; padding: 0; font-size: 0; }
  .pub-user i { margin: 0; font-size: 15px; }
  .pub-wrap { width: calc(100% - 20px); padding: 14px 0 34px; }
  .event-hero { min-height: auto; padding: 30px 20px 26px; }
  .event-hero:before { right: -210px; top: -150px; }
  .event-hero h1 { margin-top: 16px; font-size: 38px; letter-spacing: -1.8px; }
  .event-hero p { font-size: 14px; }
  .hero-meta { display: grid; gap: 9px; margin: 18px 0; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .pub-btn, .form-card > .pub-btn, .login-callout .pub-btn { width: 100%; min-height: 46px; text-align: center; }
  .quick-stats { gap: 0; }
  .quick-stats div { padding: 14px 12px; border-bottom: 1px solid #2c3032; }
  .quick-stats div:nth-child(2) { border-right: 0; }
  .quick-stats strong { font-size: 20px; }
  .section-title { align-items: flex-start; gap: 8px; flex-wrap: wrap; margin: 26px 0 12px; }
  .section-title h2 { font-size: 19px; }
  .section-title p { font-size: 12px; }
  .pub-card, .form-card, .my-registration { padding: 14px; }
  .pub-match { grid-template-columns: 46px minmax(0,1fr) auto; gap: 8px; }
  .pub-match span b { white-space: normal; overflow-wrap: anywhere; }
  .pub-match em { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-card .wide { grid-column: auto; }
  .form-card input, .form-card select, .auth-card input { min-height: 46px; font-size: 16px; }
  .public-tabs button { min-height: 44px; }
  .agenda-desktop { display: none; }
  .mobile-game-agenda { display: grid; gap: 12px; }
  .agenda-update { width: 100%; }
  .mobile-game-card { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 8px 26px rgba(0,0,0,.16); }
  .mobile-game-card.is-live { border-color: #397b55; box-shadow: 0 0 0 1px rgba(72,201,130,.1),0 8px 26px rgba(0,0,0,.22); }
  .mobile-game-card header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 9px 12px; background: #1b1f21; border-bottom: 1px solid #292e30; }
  .mobile-game-card header time { color: #fff; font-size: 20px; font-weight: 800; }
  .mobile-game-card header > span { color: #a49f97; font-size: 11px; }
  .mobile-game-card header > span i { color: var(--gold); }
  .mobile-game-meta { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px 4px; color: var(--orange); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
  .mobile-game-meta small { color: #77736d; font-size: 9px; font-weight: 500; text-transform: none; letter-spacing: 0; }
  .mobile-game-team { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; }
  .mobile-game-team span { overflow-wrap: anywhere; color: #e4e0da; }
  .mobile-game-team strong { min-width: 32px; text-align: center; color: #fff; font-size: 23px; }
  .mobile-game-versus { height: 1px; margin: 0 12px; background: #292e30; color: #77736d; font-size: 9px; line-height: 1px; text-align: center; }
  .group-public-grid { grid-template-columns: 1fr; }
  .public-bracket { margin-inline: -10px; padding-inline: 10px; scroll-snap-type: x proximity; }
  .public-bracket-col { min-width: 82vw; scroll-snap-align: start; }
  .live-public-team { padding: 14px; }
  .live-public-team strong { font-size: 27px; }
  .login-callout { padding: 38px 18px; }
  .auth-card { width: calc(100vw - 20px); max-height: calc(100vh - 20px); overflow: auto; padding: 24px 18px; }
  .auth-close { width: 44px; height: 44px; right: 4px; top: 2px; }
}

@media (max-width: 380px) {
  #pubNav button { min-width: 86px; }
  .event-hero h1 { font-size: 34px; }
  .quick-stats strong { font-size: 18px; }
  .pub-match { grid-template-columns: 42px minmax(0,1fr); }
  .pub-match em { grid-column: 2; margin-top: -6px; text-align: right; }
}
