/* ============================================================
   whoyallplay.com — styles
   Slate neutrals + electric orange accent. Glass chrome,
   rounded cards, clean 1px borders, soft blurred shadows.
   ============================================================ */

:root {
  --bg: #F1F5F9;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-hover: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --border: #CBD5E1;
  --shadow-soft: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-soft-hover: 0 12px 28px rgba(15, 23, 42, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(15, 23, 42, 0.12);

  --accent: #FF5A1F;
  --accent-hover: #E8470C;
  --accent-text: #C2410C;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --on-accent: #0F172A;

  --chip-bg: #0F172A;
  --chip-ink: #F8FAFC;

  --radius-card: 24px;
  --radius-round: 999px;
  --font-family: "Quicksand", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 68px;
  --header-gap: 16px;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #121B2E;
  --surface-2: #192339;
  --surface-hover: #223050;
  --text-primary: #F1F5F9;
  --text-secondary: #A3B1C6;
  --border: #2B3A55;
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-soft-hover: 0 12px 28px rgba(0, 0, 0, 0.55);
  --glass-bg: rgba(14, 21, 38, 0.78);
  --glass-border: rgba(148, 163, 184, 0.2);

  --accent: #FF7A3D;
  --accent-hover: #FF9560;
  --accent-text: #FF8A50;
  --accent-soft: rgba(255, 122, 61, 0.16);
  --on-accent: #0B1120;

  --chip-bg: #1E2A44;
  --chip-ink: #F8FAFC;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text-primary);
  transition: background-color 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 120px; /* keep content clear of the fixed glass info bar */
}

button,
input {
  font-family: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.noscript-message {
  margin: 120px auto 0;
  padding: 0 24px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---------- App shell ---------- */

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--header-gap) + 28px) 24px 0;
}

/* ---------- Fixed floating glass header ---------- */

.app-header {
  position: fixed;
  top: var(--header-gap);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, calc(100% - 32px));
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand search actions";
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-soft);
  z-index: 30;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-dot {
  color: var(--accent);
}

/* ---------- Search ---------- */

.search {
  grid-area: search;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 360px;
  width: 100%;
  justify-self: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-round);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-secondary);
  font-weight: 600;
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px;
  list-style: none;
  max-height: min(60vh, 360px);
  overflow-y: auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft-hover);
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.search-result:hover,
.search-result[aria-selected="true"] {
  background: var(--surface-hover);
}

.search-result-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--team-color, var(--chip-bg));
  color: var(--team-ink, #ffffff);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.search-result-dot img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.search-result-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-result-name {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.search-empty {
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- Header actions ---------- */

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-round);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.2s ease, border-color 0.2s ease;
}

.about-toggle svg {
  width: 15px;
  height: 15px;
}

.about-toggle:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.about-toggle:active {
  transform: translateY(1px);
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  position: relative;
  width: 60px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-round);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  transition: background-color 0.35s ease;
}

.theme-toggle-icon {
  display: flex;
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.35s ease;
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(28px);
}

/* The icon sitting under the thumb needs to contrast with the accent */
html:not([data-theme="dark"]) .theme-toggle-icon--sun,
html[data-theme="dark"] .theme-toggle-icon--moon {
  color: var(--on-accent);
}

/* ---------- Main / views ---------- */

.app-main {
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.view {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.view.is-leaving,
.view.is-entering {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
}

.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: min(760px, 100%);
  margin-bottom: 8px;
}

.back-button,
.action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 12px 22px 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-round);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.view-toolbar .back-button,
.view-toolbar .action-button {
  margin: 0;
}

.back-button svg,
.action-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.back-button:hover,
.action-button:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.back-button:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.back-button:active,
.action-button:active {
  transform: translateY(1px);
}

.action-button {
  padding: 12px 20px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.action-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.action-button .icon-check,
.info-bar-action .icon-check {
  display: none;
}

.action-button.is-copied .icon-copy,
.info-bar-action.is-copied .icon-copy {
  display: none;
}

.action-button.is-copied .icon-check,
.info-bar-action.is-copied .icon-check {
  display: block;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin: 4px 0 4px;
  text-align: center;
}

.state-message {
  margin: 24px 0;
  padding: 0 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.state-message.is-error {
  color: var(--accent-text);
}

/* ---------- Icon nav pills ---------- */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
  padding: 20px 0 16px;
  width: 100%;
}

.nav-icon-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.nav-icon-pill:focus-visible {
  outline: none;
}

.nav-icon-pill:focus-visible .icon-bubble {
  outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 3px;
}

.icon-bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-icon-pill:hover .icon-bubble,
.nav-icon-pill:focus-visible .icon-bubble {
  transform: translateY(-6px) scale(1.08);
  box-shadow: var(--shadow-soft-hover);
}

.nav-icon-pill:active .icon-bubble {
  transform: translateY(1px) scale(1.02);
}

.icon-bubble svg {
  width: 32px;
  height: 32px;
}

.conf-bubble {
  background: var(--chip-bg);
  color: var(--chip-ink);
}

.nav-icon-pill:hover .conf-bubble,
.nav-icon-pill:focus-visible .conf-bubble {
  background: var(--accent);
  color: var(--on-accent);
}

.bubble-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pill-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.pill-count {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pill-count:empty {
  display: none;
}

/* ---------- Team pills ---------- */

.team-grid {
  gap: 20px 18px;
}

.nav-icon-pill--team {
  width: 124px;
  padding: 8px 10px;
}

.nav-icon-pill--team .icon-bubble {
  width: 68px;
  height: 68px;
  background: var(--team-color, var(--chip-bg));
  color: var(--team-ink, #ffffff);
}

.team-pill-logo {
  display: none;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.team-pill-initials {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* script.js adds .has-logo to the pill once its logo has loaded */
.nav-icon-pill--team.has-logo .team-pill-logo {
  display: block;
}

.nav-icon-pill--team.has-logo .team-pill-initials {
  display: none;
}

.nav-icon-pill--team .pill-title {
  font-size: 14px;
  text-wrap: balance;
}

/* ---------- Schedule card ---------- */

.schedule-card {
  --team-color: var(--chip-bg);
  --team-ink: #ffffff;
  width: min(760px, 100%);
  margin: 4px 0 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--team-color) 20%, transparent), transparent 70%);
  border-bottom: 1px solid var(--border);
}

.team-logo-bubble,
.info-bar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--team-ink, #ffffff);
  font-weight: 700;
  overflow: hidden;
}

.team-logo-bubble {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 20px;
  background: var(--team-color);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.team-logo-bubble img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.schedule-heading {
  min-width: 0;
}

.schedule-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.schedule-meta {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.schedule-columns {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 170px;
  gap: 16px;
  padding: 12px 24px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.schedule-list {
  margin: 0;
  padding: 0 12px 12px;
  list-style: none;
}

.game-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  transition: background-color 0.2s ease;
}

.game-row:hover {
  background: var(--surface-2);
}

.game-row + .game-row {
  margin-top: 2px;
}

/* Date */

.game-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  line-height: 1.1;
}

.game-month {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
}

.game-day {
  font-size: 22px;
  font-weight: 700;
}

/* Opponent */

.game-opponent {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.game-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--radius-round);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
}

.game-row.is-home .game-site {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-text);
}

.game-row.is-neutral .game-site {
  background: transparent;
  border-style: dashed;
}

.opponent-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.opponent-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.opponent-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.opponent-note:empty {
  display: none;
}

/* Time / TV */

.game-time {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.game-kickoff {
  font-size: 15px;
  font-weight: 700;
}

.game-network {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.game-kickoff.is-tbd,
.game-network.is-tbd {
  color: var(--text-secondary);
}

/* ---------- Floating glass info bar ---------- */

.info-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 160%);
  width: min(400px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-soft-hover);
  padding: 8px 8px 8px 12px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
}

.info-bar.is-visible {
  transform: translate(-50%, 0);
}

.info-bar-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.info-bar-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 13px;
  background: var(--team-color, var(--chip-bg));
  transition: background-color 0.2s ease;
}

.info-bar-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.info-bar-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.info-bar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.info-bar-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-bar-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.info-bar-action:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.info-bar-action:active {
  transform: scale(0.96);
}

.info-bar-action svg {
  width: 19px;
  height: 19px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  background: var(--chip-bg);
  color: var(--chip-ink);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-soft-hover);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 40;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- About modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 50;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft-hover);
  padding: 32px 24px 28px;
  color: var(--text-primary);
  text-align: center;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  transform: scale(1.08);
}

.modal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
  border-radius: 30px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-soft);
}

.modal-mascot svg {
  width: 52px;
  height: 52px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.modal-subtitle a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}

.modal-subtitle a:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.modal-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-round);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modal-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.modal-support-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.support-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.support-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
  line-height: 1.45;
}

.support-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.bmac-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  padding: 12px 20px;
  border-radius: var(--radius-round);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bmac-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-code-img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.qr-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  :root {
    --header-h: 112px;
    --header-gap: 12px;
  }

  .app {
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 10px 12px;
    padding: 10px 12px 12px;
    border-radius: var(--radius-card);
  }

  .brand-name {
    font-size: 18px;
  }

  .search {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .nav-icon-pill {
    width: 108px;
    padding: 12px 6px 10px;
  }

  .pill-row {
    gap: 12px 8px;
  }

  .icon-bubble {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .icon-bubble svg {
    width: 26px;
    height: 26px;
  }

  .bubble-text {
    font-size: 14px;
  }

  .pill-title {
    font-size: 15px;
  }

  .nav-icon-pill--team {
    width: 30%;
    max-width: 112px;
    padding: 8px 4px;
  }

  .nav-icon-pill--team .icon-bubble {
    width: 60px;
    height: 60px;
  }

  .team-pill-logo {
    width: 40px;
    height: 40px;
  }

  .nav-icon-pill--team .pill-title {
    font-size: 13px;
  }

  .view-toolbar {
    gap: 8px;
  }

  .back-button,
  .action-button {
    padding: 10px 16px 10px 12px;
    font-size: 14px;
  }

  .schedule-header {
    padding: 18px 16px 16px;
    gap: 12px;
  }

  .team-logo-bubble {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .team-logo-bubble img {
    width: 36px;
    height: 36px;
  }

  .schedule-title {
    font-size: 20px;
  }

  .schedule-columns {
    display: none;
  }

  .schedule-list {
    padding: 8px;
  }

  .game-row {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "date opponent"
      "date time";
    gap: 2px 12px;
    padding: 10px 8px;
  }

  .game-date {
    grid-area: date;
    align-self: stretch;
  }

  .game-opponent {
    grid-area: opponent;
    align-self: end;
    gap: 8px;
  }

  .game-time {
    grid-area: time;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
    align-self: start;
  }

  .game-kickoff {
    font-size: 13.5px;
  }

  .game-network {
    font-size: 12.5px;
  }

  .opponent-name {
    font-size: 15px;
  }

  .info-bar {
    bottom: 16px;
  }

  .toast {
    bottom: 84px;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
