/* hub.css — tela inicial */
.hub { position: relative; min-height: 100%; }
.hub-bg { position: fixed; top: var(--topbar-h); }
.hub-bg::after { background: linear-gradient(100deg, rgba(23,13,34,.94) 0%, rgba(23,13,34,.78) 38%, rgba(23,13,34,.55) 70%, rgba(23,13,34,.8) 100%), linear-gradient(180deg, transparent 55%, var(--night)); }
.hub-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(20rem, 0.85fr) 1.4fr; grid-template-areas: "hero acts" "teams acts" "foot foot";
  align-items: start; gap: 1.4rem 2rem;
  max-width: 92rem; margin: 0 auto; padding: 1.6rem clamp(1rem, 3vw, 2.6rem) 1.4rem;
}
.hub-hero { grid-area: hero; }
.hub-title { font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: .98; margin: .35rem 0 .6rem; }
.hub-lede { font-size: 1.25rem; color: var(--cream-dim); margin: 0 0 1.3rem; max-width: 30ch; }
.hub-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hub-teams { grid-area: teams; padding: 1.1rem 1.2rem 1.2rem; }
.hub-sec-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.hub-sec-head h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .05em; color: var(--gold-2); }
.hub-seg { display: inline-flex; gap: .35rem; }
.hub-team-list { display: grid; gap: .6rem; }
.hub-team {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem;
  padding: .5rem .7rem .5rem .55rem; border-radius: .9rem;
  background: color-mix(in srgb, var(--tc) 14%, var(--night-2));
  border: 2px solid color-mix(in srgb, var(--tc) 55%, transparent);
}
.hub-team-emo { font-size: 1.9rem; line-height: 1; filter: drop-shadow(0 .2rem .3rem rgba(0,0,0,.4)); }
.hub-team-input {
  min-width: 0; width: 100%; background: transparent; border: 0; border-bottom: 2px dashed transparent;
  font-weight: 900; font-size: 1.15rem; padding: .2rem .1rem; color: var(--cream);
}
.hub-team-input:hover { border-bottom-color: var(--line-strong); }
.hub-team-input:focus { outline: none; border-bottom-color: var(--tc); }
.hub-team-score { font-weight: 800; color: var(--cream-dim); white-space: nowrap; }
.hub-team-score b { color: var(--tc); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.hub-team-actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }

.hub-acts { grid-area: acts; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hub-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.1rem; color: var(--cream);
  box-shadow: 0 .8rem 2rem rgba(6,2,12,.45); transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.hub-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: 0 1.1rem 2.4rem rgba(6,2,12,.6), 0 0 0 1px rgba(246,185,59,.25); }
.hub-card-img { display: block; aspect-ratio: 16 / 5.2; background-size: cover; background-position: center; }
.hub-card-body { display: grid; gap: .3rem; padding: .8rem 1rem 1rem; }
.hub-card-title { font-family: var(--f-display); font-weight: 900; font-size: 1.2rem; letter-spacing: .03em; color: var(--gold-2); }
.hub-card-desc { font-size: .92rem; color: var(--cream-dim); font-weight: 600; line-height: 1.35; }
.hub-card-time { font-size: .8rem; font-weight: 900; color: var(--cream); opacity: .75; }
.hub-card.is-big { grid-column: 1 / -1; flex-direction: row; border-color: rgba(246,185,59,.45); }
.hub-card.is-big .hub-card-img { aspect-ratio: auto; flex: 0 0 46%; min-height: 8.5rem; }
.hub-card.is-big .hub-card-body { align-content: center; padding: 1.2rem 1.4rem; }
.hub-card.is-big .hub-card-title { font-size: 1.7rem; }
.hub-card.is-big .hub-card-title::after { content: " ★"; color: var(--gold); }
.hub-foot { grid-area: foot; margin: .4rem 0 0; color: var(--cream-dim); font-size: .85rem; text-align: center; }

@media (max-width: 900px) {
  .hub-inner { grid-template-columns: 1fr; grid-template-areas: "hero" "teams" "acts" "foot"; }
}
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card.is-big { flex-direction: column; }
  .hub-card.is-big .hub-card-img { min-height: 8rem; }
}

/* editor de placar (modal do core) */
.score-editor { display: grid; gap: .7rem; text-align: left; }
.se-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: .9rem; background: color-mix(in srgb, var(--tc) 14%, var(--night-2)); border: 2px solid color-mix(in srgb, var(--tc) 50%, transparent); }
.se-emo { font-size: 1.8rem; }
.se-name { font-weight: 900; font-size: 1.1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-pts { font-weight: 1000; font-size: 1.8rem; color: var(--tc); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.se-btns { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .se-row { grid-template-columns: auto 1fr auto; } .se-btns { grid-column: 1 / -1; justify-content: flex-start; } }
