/* TITLE SCREEN - thumb first.
   A small brand bar and two big buttons up top, a compact team list you tap
   to open, and a start bar pinned under your thumb. Colors come from the
   tokens (tokens.css) so both looks (Varsity, Primetime) keep working. */

/* ---- the hero: brand, one line, two buttons ------------------------------------------------ */
.dyn-hero.compact { padding: 18px 4px 4px !important; display: grid; gap: 14px; }
.dyn-hero.compact .dyn-brand { gap: 12px; }
.dyn-hero.compact .dyn-mark { width: 44px !important; height: auto !important; }
.dyn-hero.compact .dyn-headline { font-size: clamp(24px, 6.4vw, 34px) !important; margin: 0 !important; line-height: 1.05 !important; }
.hero-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.hero-btn { min-height: 60px; display: flex !important; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 16px !important; text-align: left; }
.hero-btn span { font-size: 18px; }
.hero-btn small { font-size: 12px; font-weight: 600; opacity: 0.8; letter-spacing: 0; text-transform: none; font-family: var(--font-text, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ghost-btn { background: transparent !important; border: 1px solid var(--c-hairline-2, rgba(255,255,255,.14)) !important; }

/* ---- new career --------------------------------------------------------------------------- */
#newCareer, #howPlays { scroll-margin-top: 12px; }
.name-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 12px 0 4px; }
.name-field > span { font-size: 13px; font-weight: 700; color: var(--c-ink-2, #a9b3c3); white-space: nowrap; }
.name-field small { font-weight: 500; color: var(--c-ink-3, #7f8aa1); margin-left: 4px; }
.name-field .text-in { width: 100%; min-width: 0; min-height: 40px; box-sizing: border-box; }

.link-btn { background: none; border: 0; padding: 8px 0; color: var(--team-accent, var(--c-info, #6aa8ff)); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.code-link { margin: 4px 0 8px; }
.code-row { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed var(--c-hairline-2, rgba(255,255,255,.14)); border-radius: 10px; }
.code-in { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* conferences: Power 4 / Group of 6, then one row that scrolls sideways */
.conf-group { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 0 8px; }
.conf-group .seg-btn { padding: 8px 10px; }
.conf-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; scroll-snap-type: x proximity; }
.conf-scroll::-webkit-scrollbar { display: none; }
.conf-scroll .conf-chip { flex: none; scroll-snap-align: center; min-height: 40px; white-space: nowrap; }
.conf-note { margin: 2px 0 10px; }

/* the team list: compact rows, the picked one opens */
.team-list { display: grid; gap: 6px; padding-bottom: 4px; }
.team-row {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  min-height: 60px; padding: 8px 12px 8px 10px; text-align: left; cursor: pointer;
  background: var(--c-raised, #1b2330); border: 1px solid var(--c-hairline, rgba(255,255,255,.08));
  border-left: 4px solid var(--c1, #888); border-radius: 10px; color: var(--c-ink, #eef2f7); font: inherit;
}
.team-row:hover { background: var(--c-raised-2, #232c3b); }
.team-row.on { background: var(--c-raised-2, #232c3b); border-color: var(--team-accent, #e8c874); border-left-color: var(--c1, #888); box-shadow: 0 0 0 1px var(--team-accent, #e8c874); }
.tr-crest { display: grid; place-items: center; }
.tr-main { display: grid; gap: 2px; min-width: 0; }
.tr-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-name b { font-size: 15px; }
.tr-nick { color: var(--c-ink-2, #a9b3c3); font-size: 13px; }
.tr-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-3, #7f8aa1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.good-job { font-style: normal; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--c-win, #3fcf8e) 18%, transparent); color: var(--c-win, #3fcf8e); letter-spacing: 0.04em; }
.tr-stats { display: grid; justify-items: end; gap: 1px; font-variant-numeric: tabular-nums; }
.tr-stats b { font-size: 17px; }
.tr-stats small { font-size: 11.5px; color: var(--c-ink-3, #7f8aa1); white-space: nowrap; }
.tr-details { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--c-ink-2, #a9b3c3); padding: 6px 0 2px; border-top: 1px solid var(--c-hairline, rgba(255,255,255,.08)); }

/* how it plays */
.how-title { margin: 16px 0 8px; }

/* ---- the start bar: pinned under your thumb ---------------------------------------------------- */
.menu-inner.has-start-bar { padding-bottom: 104px !important; }
.start-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--c-night, #07090d) 34%);
  display: flex; justify-content: center; pointer-events: none;
}
.start-bar .advance {
  pointer-events: auto; width: 100%; max-width: 728px; min-height: 56px;
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  clip-path: none !important; transform: none !important;
}
.start-bar .advance span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.start-bar .advance small { font-size: 11.5px; font-weight: 600; opacity: 0.8; letter-spacing: 0; text-transform: none; }

@media (max-width: 760px) {
  .hero-actions { grid-template-columns: 1fr; }
  .hero-btn { min-height: 56px; }
}

/* The game pins its main .advance button to the bottom of a phone screen; on the title
   screen the hero buttons stay in place and only the start bar is pinned. */
.hero-actions .advance, .start-bar .advance {
  position: static !important; left: auto !important; right: auto !important; bottom: auto !important;
  width: 100% !important; box-sizing: border-box; margin: 0 !important;
}
.start-bar .advance { max-width: 728px; }
.start-bar { transition: transform .22s ease, opacity .22s ease; }
.start-bar.off { transform: translateY(110%); opacity: 0; pointer-events: none; }
.start-bar.off .advance { pointer-events: none; }
