/* ========== ge.globo palette ========== */
:root {
  --ge-green:   #00C46D;
  --ge-orange:  #FFA600;
  --ge-blue:    #00B8FF;
  --ge-red:     #FF3132;
  --ge-yellow:  #FFE22B;
  --ge-pink:    #FF158C;
  --ge-purple:  #8028FF;
  --ge-navy:    #0031FF;

  --ink:        #0a0d12;
  --ink-2:      #1a1f29;
  --paper:      #f6f7f9;
  --paper-2:    #ffffff;
  --line:       #e6e9ef;
  --muted:      #6b7280;

  --pitch-fg:   #ffffff;

  --shadow-1: 0 1px 2px rgba(10,13,18,.08), 0 2px 8px rgba(10,13,18,.06);
  --shadow-2: 0 8px 24px rgba(10,13,18,.12), 0 2px 6px rgba(10,13,18,.08);
  --shadow-3: 0 24px 48px rgba(10,13,18,.18);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
img  { display: block; max-width: 100%; }
ol, ul { list-style: none; padding: 0; margin: 0; }

/* ========== topbar ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--ge-green);
}
.topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__chip {
  background: var(--ge-green);
  color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1;
  padding: 4px 10px 2px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.brand__sep { width: 1px; height: 22px; background: rgba(255,255,255,0.2); }
.brand__label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.topbar__nav { display: flex; gap: 18px; }
.topbar__link {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding-bottom: 4px;
  transition: color .15s ease;
}
.topbar__link:hover { color: #fff; }
.topbar__link.is-active { color: #fff; }
.topbar__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--ge-green);
  border-radius: 2px;
}

/* ========== hero ========== */
.hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #061018;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6,16,24,0.92) 0%, rgba(6,16,24,0.78) 32%, rgba(6,16,24,0.25) 60%, rgba(6,16,24,0) 100%),
    radial-gradient(800px 500px at 8% 30%, rgba(0,196,109,0.18), transparent 65%);
}
.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 20px;
  color: #fff;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--ge-green);
  color: #000;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 22px;
}
.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0 0 22px;
  max-width: 18ch;
}
.hero__title--accent  { color: var(--ge-green); }
.hero__title--accent2 { color: var(--ge-orange); }
.hero__lead {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  max-width: 56ch;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.hero__pill::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ge-green);
  box-shadow: 0 0 0 4px rgba(0,196,109,0.25);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.25); }
}

/* ========== buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  color: #000;
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-1);
  text-transform: uppercase;
}
.btn:hover  { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn--green  { background: var(--ge-green);  color: #000; }
.btn--orange { background: var(--ge-orange); color: #000; }
.btn--blue   { background: var(--ge-blue);   color: #000; }
.btn--ghost  {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

/* ========== builder section ========== */
.builder {
  max-width: 1280px;
  margin: 56px auto;
  padding: 0 20px;
}
.builder__head {
  margin-bottom: 28px;
}
.section__title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}
.section__title--light { color: #fff; }
.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}

.builder__layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

/* ========== roster ========== */
.roster {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
}
.roster__head { margin-bottom: 14px; }
.roster__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.roster__select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'><path fill='%230a0d12' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  transition: border-color .15s ease;
}
.roster__select:focus {
  outline: none;
  border-color: var(--ge-green);
}
.roster__filters {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.chip {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.roster__status {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 4px;
  min-height: 1.2em;
}
.roster__list {
  overflow-y: auto;
  margin-top: 4px;
  padding-right: 4px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  scroll-behavior: smooth;
}
.roster__list::-webkit-scrollbar { width: 8px; }
.roster__list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.roster__list::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.player-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .12s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.player-card:hover {
  background: #fff;
  border-color: var(--ge-green);
  transform: translateX(2px);
}
.player-card[disabled],
.player-card.is-selected {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.player-card.is-selected {
  border-color: var(--ge-blue);
  background: #ecf9ff;
  opacity: 0.85;
}
.player-card__img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}
.player-card__body {
  min-width: 0;
}
.player-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-card__meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.player-card__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  min-width: 32px;
  text-align: center;
}
.player-card.pos-Goalkeeper .player-card__num  { color: var(--ge-orange); }
.player-card.pos-Defender   .player-card__num  { color: var(--ge-blue); }
.player-card.pos-Midfielder .player-card__num  { color: var(--ge-purple); }
.player-card.pos-Attacker   .player-card__num  { color: var(--ge-red); }

/* ========== pitch ========== */
.pitch-wrap {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.pitch-wrap__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.pitch-wrap__title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  letter-spacing: 0.02em;
}
.pitch-wrap__formation {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pitch-wrap__formation select {
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.pitch-wrap__formation select:focus {
  outline: none;
  border-color: var(--ge-green);
}

.pitch {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #0a8f4d;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
}
.pitch__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pitch__slots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(58px, 13%, 92px);
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.slot:hover { transform: translate(-50%, -50%) scale(1.06); }
.slot.is-empty .slot__shirt {
  background: rgba(255,255,255,0.12);
  border: 2.5px dashed rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.7);
}
.slot__shirt {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.slot__shirt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f1f5f9;
}
.slot__num {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--ge-yellow);
  color: #000;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #000;
  line-height: 1;
}
.slot.pos-GK .slot__num { background: var(--ge-orange); }
.slot.pos-DF .slot__num { background: var(--ge-blue);   color: #000; }
.slot.pos-MF .slot__num { background: var(--ge-purple); color: #fff; }
.slot.pos-FW .slot__num { background: var(--ge-red);    color: #fff; }
.slot__placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.slot__name {
  margin-top: 6px;
  display: inline-block;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.slot__pos-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-top: 4px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

/* ========== team-name + actions row ========== */
.pitch-wrap__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.team-name {
  flex: 1;
  min-width: 200px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
}
.team-name:focus {
  outline: none;
  border-color: var(--ge-green);
}
.pitch-wrap__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== howto ========== */
.howto {
  background: var(--ink);
  color: #fff;
  padding: 56px 20px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.howto::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 350px at 90% 10%, rgba(0,196,109,0.18), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(255,166,0,0.18),  transparent 60%);
  pointer-events: none;
}
.howto__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.howto__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.howto__steps > li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.08);
}
.howto__steps b { color: #fff; }
.howto__steps div { color: rgba(255,255,255,0.78); font-size: 14px; line-height: 1.5; }
.howto__num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #000;
  border: 2px solid #000;
}
.howto__num--green  { background: var(--ge-green); }
.howto__num--orange { background: var(--ge-orange); }
.howto__num--blue   { background: var(--ge-blue); }

/* ========== embed section ========== */
.embed {
  background:
    radial-gradient(900px 400px at 90% 20%, rgba(0,196,109,0.12), transparent 60%),
    radial-gradient(700px 380px at 10% 80%, rgba(0,184,255,0.10), transparent 60%),
    var(--paper);
  padding: 56px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.embed__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.embed__eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--ge-green);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.embed__panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-2);
  position: relative;
}
.embed__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.embed__tab {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all .15s ease;
}
.embed__tab:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.embed__tab.is-active {
  background: var(--ge-green);
  border-color: var(--ge-green);
  color: #000;
}
.embed__code {
  background: #05080d;
  color: #b9e8d0;
  font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  line-height: 1.55;
  padding: 16px;
  border-radius: var(--r-md);
  margin: 0 0 14px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.08);
}
.embed__code::-webkit-scrollbar { height: 8px; width: 8px; }
.embed__code::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }
.embed__copied {
  font-size: 13px;
  font-weight: 800;
  color: var(--ge-green);
  margin-left: 12px;
}

/* ========== drag & drop visual states ========== */
.player-card[draggable="true"] { cursor: grab; }
.player-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.97);
  cursor: grabbing;
}
.slot.is-drag-over .slot__shirt {
  background: rgba(255, 226, 43, 0.22);
  border-color: var(--ge-yellow);
  box-shadow: 0 0 0 4px rgba(255, 226, 43, 0.35), 0 4px 14px rgba(0,0,0,0.25);
  transform: scale(1.06);
}
.slot.is-drag-over.is-empty .slot__shirt { border-style: solid; }
.slot.is-drag-over .slot__placeholder { color: var(--ge-yellow); }
.pitch.is-dragging-active .slot.is-empty .slot__shirt {
  border-color: rgba(255, 226, 43, 0.55);
  background: rgba(255, 226, 43, 0.08);
}
.slot { transition: transform .15s ease; }
.slot__shirt { transition: background .12s ease, border-color .12s ease, box-shadow .15s ease, transform .15s ease; }

/* ========== share modal ========== */
.share-modal {
  border: none;
  padding: 0;
  border-radius: var(--r-lg);
  max-width: 460px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow-3);
}
.share-modal::backdrop {
  background: rgba(8,10,16,0.6);
  backdrop-filter: blur(4px);
}
.share-modal__inner {
  padding: 24px;
  position: relative;
}
.share-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--paper);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.share-modal__close:hover { background: var(--line); }
.share-modal__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  margin: 0 0 6px;
}
.share-modal__sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.share-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: none;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.share-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn--wa   { background: #25D366; color: #000; }
.share-btn--tw   { background: #000; }
.share-btn--fb   { background: #1877F2; }
.share-btn--tg   { background: #229ED9; }
.share-btn--copy { background: var(--ge-yellow); color: #000; }
.share-btn--img  { background: var(--ge-pink); }
.share-modal__hint {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ge-green);
  text-align: center;
}

/* ========== footer ========== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 22px 20px;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ========== responsive ========== */
@media (max-width: 980px) {
  .builder__layout {
    grid-template-columns: 1fr;
  }
  .roster {
    position: relative;
    top: 0;
    max-height: 480px;
  }
  .howto__steps {
    grid-template-columns: 1fr;
  }
  .embed__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .topbar__inner { padding: 12px 14px; }
  .topbar__nav { gap: 12px; }
  .topbar__link { font-size: 12px; }
  .hero { min-height: 460px; }
  .hero__copy { padding: 44px 18px; }
  .builder { margin: 36px auto; padding: 0 14px; }
  .builder__layout { gap: 18px; }
  .roster, .pitch-wrap { padding: 14px; border-radius: var(--r-md); }
  .pitch-wrap__head { flex-direction: column; align-items: flex-start; }
  .slot__name { font-size: 10px; padding: 2px 5px; }
  .slot__num  { font-size: 13px; min-width: 22px; height: 22px; }
  .share-modal__grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 18px; font-size: 13px; }
}

/* ========== loaders ========== */
.skeleton {
  background: linear-gradient(90deg, #eef0f5 25%, #f6f8fb 37%, #eef0f5 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* =========================================================================
   COMPARADOR DE CRAQUES (Comparador) — Widget 2: WC 2022 stats radar
   New section; nothing above this comment was modified.
   Tokens reused from :root (ge-green, ge-orange, ink, paper, line, etc).
   ========================================================================= */

.compare-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 20px 40px;
}
.compare-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.compare-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.compare-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--ge-green);
  border-radius: 2px;
}
.compare-hero__title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 4px 0 0;
  color: var(--ink);
}
.compare-hero__title em {
  font-style: normal;
  color: var(--ge-green);
}
.compare-hero__lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 6px 0 0;
}
.compare-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  width: max-content;
}
.compare-hero__meta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ge-orange);
}

/* selector row: two player picker columns */
.compare {
  max-width: 1180px;
  margin: 36px auto 56px;
  padding: 0 20px;
}
.compare__pickers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.compare__pick {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 12px;
}
.compare__pick--a { border-top: 4px solid var(--ge-green); }
.compare__pick--b { border-top: 4px solid var(--ge-orange); }
.compare__pick-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare__pick-label .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.compare__pick--a .compare__pick-label .dot { background: var(--ge-green); }
.compare__pick--b .compare__pick-label .dot { background: var(--ge-orange); }

.compare__search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.compare__search input {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.compare__search input:focus {
  outline: none;
  border-color: var(--ge-green);
  background: #fff;
}
.compare__search button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 0 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease;
}
.compare__search button:hover {
  background: #fff;
  border-color: var(--ink);
}

.compare__suggest {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
.compare__suggest:empty { display: none; }
.compare__suggest button {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  text-align: left;
  align-items: center;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.compare__suggest button:last-child { border-bottom: 0; }
.compare__suggest button:hover { background: var(--paper); }
.compare__suggest img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--paper);
}
.compare__suggest .gs { font-weight: 700; color: var(--muted); font-size: 12px; }

/* shortcuts row (top scorers chips) */
.compare__shortcuts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}
.compare__shortcut {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.compare__shortcut:hover { background: #fff; border-color: var(--ink); }
.compare__shortcut.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.compare__shortcut .gs {
  font-size: 11px;
  font-weight: 800;
  color: var(--ge-orange);
}

/* the swap button between the two pickers */
.compare__swap {
  align-self: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: transform .25s ease, background .15s ease;
}
.compare__swap:hover { background: var(--paper); transform: rotate(180deg); }
.compare__swap:disabled { opacity: 0.4; cursor: not-allowed; }

/* reusable player card (header summary inside each picker after a pick) */
.player-summary {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.player-summary--a { border-left: 3px solid var(--ge-green); }
.player-summary--b { border-left: 3px solid var(--ge-orange); }
.player-summary__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: var(--shadow-1);
}
.player-summary__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.player-summary__name {
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-summary__meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.player-summary__team {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.player-summary__team img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.player-summary__rating {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: var(--ge-green);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  text-align: center;
  min-width: 56px;
}
.player-summary--b .player-summary__rating { color: var(--ge-orange); }
.player-summary__rating small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 2px;
}

/* radar canvas card */
.compare__board {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.compare__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.compare__legend .swatch {
  width: 14px; height: 14px; border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.compare__legend .swatch--a { background: var(--ge-green); }
.compare__legend .swatch--b { background: var(--ge-orange); }
.compare__legend .vs {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.compare__radar-wrap {
  position: relative;
  padding: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
}
.compare__radar {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  aspect-ratio: 1 / 1;
}
.compare__tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-2);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity .12s ease;
  z-index: 10;
}
.compare__tooltip.is-visible { opacity: 1; }
.compare__tooltip strong { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ge-yellow); margin-bottom: 4px; }
.compare__tooltip .row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
}
.compare__tooltip .row + .row { margin-top: 2px; }
.compare__tooltip .row .dot { width: 8px; height: 8px; border-radius: 50%; }
.compare__tooltip .row.a .dot { background: var(--ge-green); }
.compare__tooltip .row.b .dot { background: var(--ge-orange); }
.compare__tooltip .row .num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* honest-data badge between radar and scoreboard */
.compare__source {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.compare__source strong {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* per-axis scoreboard under the radar */
.compare__scoreboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.compare__cell {
  background: #fff;
  padding: 14px 14px 12px;
  display: grid;
  gap: 4px;
  min-height: 78px;
}
.compare__cell-axis {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare__cell-winner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.compare__cell-winner .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.compare__cell.win-a .compare__cell-winner .dot { background: var(--ge-green); }
.compare__cell.win-b .compare__cell-winner .dot { background: var(--ge-orange); }
.compare__cell.win-tie .compare__cell-winner .dot { background: var(--muted); }
.compare__cell-values {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.compare__cell-values .a { color: var(--ge-green); font-weight: 700; }
.compare__cell-values .b { color: var(--ge-orange); font-weight: 700; }

/* actions row */
.compare__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.compare__actions .btn {
  font-size: 13px;
  padding: 10px 16px;
}

/* status pill (loading / error) */
.compare__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.compare__status.is-error { color: var(--ge-red); border-color: var(--ge-red); }
.compare__status.is-busy::before {
  content: "";
  width: 10px; height: 10px;
  border: 2px solid var(--line);
  border-top-color: var(--ge-green);
  border-radius: 50%;
  animation: cspin .8s linear infinite;
}
@keyframes cspin { to { transform: rotate(360deg); } }

/* embed section (reuses .embed structure tokens for parity, scoped class) */
.compare-embed {
  background: var(--ink);
  color: #fff;
  padding: 56px 20px;
  margin-top: 56px;
}
.compare-embed__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.compare-embed__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  line-height: 1;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
}
.compare-embed__title em { font-style: normal; color: var(--ge-green); }
.compare-embed__panel {
  background: #0e141b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.compare-embed__code {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  background: #000;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  padding: 14px;
  font-size: 12px;
  color: #e6e9ef;
  overflow-x: auto;
  white-space: nowrap;
}

/* embed/full layout — used in comparador-embed.html (no chrome) */
body.embed-only {
  background: var(--paper);
  margin: 0;
  padding: 0;
}
.embed-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
}
.embed-shell .compare__pickers { gap: 10px; }
.embed-shell .compare__pick { padding: 12px; }
.embed-shell .compare__board { margin-top: 12px; }
.embed-shell .compare__legend { padding: 10px; gap: 12px; font-size: 12px; }
.embed-shell .compare__scoreboard { grid-template-columns: repeat(2, 1fr); }

/* responsive */
@media (max-width: 820px) {
  .compare__pickers {
    grid-template-columns: 1fr;
  }
  .compare__swap {
    justify-self: center;
    transform: rotate(90deg);
  }
  .compare__swap:hover { transform: rotate(270deg); }
  .compare__scoreboard {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .compare-hero { padding: 36px 16px 28px; }
  .compare { padding: 0 14px; margin: 24px auto 36px; }
  .compare__pick { padding: 14px; border-radius: var(--r-md); }
  .player-summary { grid-template-columns: 48px 1fr auto; }
  .player-summary__photo { width: 48px; height: 48px; }
  .player-summary__name { font-size: 14px; }
  .player-summary__rating { font-size: 22px; padding: 4px 8px; min-width: 48px; }
  .compare__scoreboard { grid-template-columns: 1fr; }
  .compare__cell { min-height: 60px; padding: 10px 12px; }
}

/* =========================================================================
   LINHA DO TEMPO DA PARTIDA — Widget 3 tokens.
   Reusa a paleta ge.globo (vars no topo). Não toca em nada acima.
   Convenções de classe iguais ao .compare__*: BEM, scope curto.
   ========================================================================= */

/* ---------- hero ---------- */
.timeline-hero {
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(0,196,109,.08), transparent 60%),
    radial-gradient(900px 350px at 90% 100%, rgba(255,166,0,.06), transparent 60%),
    var(--paper);
  padding: 56px 20px 36px;
}
.timeline-hero__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.timeline-hero__eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--ge-green);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: start;
}
.timeline-hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
}
.timeline-hero__title em {
  color: var(--ge-green);
  font-style: normal;
}
.timeline-hero__lead {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 680px;
  margin: 0;
}
.timeline-hero__lead strong { color: var(--ink); }
.timeline-hero__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- main container ---------- */
.timeline {
  max-width: 1080px;
  margin: 32px auto 48px;
  padding: 0 20px;
  display: grid;
  gap: 18px;
}

/* ---------- picker row ---------- */
.timeline__picker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
}
.timeline__picker--compact { padding: 10px 12px; }
.timeline__picker-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 12px;
  align-items: end;
}
.timeline__field {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.timeline__field--grow { min-width: 0; }
.timeline__field-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline__select {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 10px;
  color: var(--ink);
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.timeline__select:focus {
  outline: 2px solid var(--ge-green);
  outline-offset: 1px;
}
.timeline__select:disabled { opacity: 0.6; cursor: wait; }

.timeline__status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  align-self: center;
}
.timeline__status.is-busy  { color: var(--ink); background: var(--ge-yellow); }
.timeline__status.is-error { color: #fff; background: var(--ge-red); }

/* ---------- board (the main card) ---------- */
.timeline__board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.timeline__header {
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.timeline__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.timeline__team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.timeline__team--away { justify-content: flex-end; }
.timeline__team-crest {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 4px;
  box-shadow: var(--shadow-1);
  flex-shrink: 0;
}
.timeline__team-meta { display: grid; gap: 2px; min-width: 0; }
.timeline__team-meta--end { text-align: right; }
.timeline__team-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.timeline__score {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  font-family: 'Bebas Neue', sans-serif;
  box-shadow: var(--shadow-2);
}
.timeline__score-num {
  font-size: 38px;
  line-height: 1;
  min-width: 38px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.timeline__score-num.is-pulse {
  animation: scorePulse 0.7s ease;
  color: var(--ge-green);
}
@keyframes scorePulse {
  0%   { transform: scale(1);    text-shadow: 0 0 0 rgba(0,196,109,0); }
  30%  { transform: scale(1.45); text-shadow: 0 0 20px rgba(0,196,109,.7); }
  100% { transform: scale(1);    text-shadow: 0 0 0 rgba(0,196,109,0); }
}
.timeline__score-sep {
  font-size: 28px;
  opacity: 0.5;
}
.timeline__matchmeta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
}
.timeline__pen {
  margin-top: 10px;
  text-align: center;
  padding: 8px 14px;
  background: var(--ge-yellow);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  /* center the badge below the header */
  display: block;
  max-width: max-content;
}
.timeline__pen strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
}

/* ---------- scrubber ---------- */
.timeline__scrubber-wrap {
  padding: 26px 20px 20px;
  display: grid;
  gap: 14px;
}
.timeline__minute {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0.04em;
}
.timeline__scrubber {
  position: relative;
  user-select: none;
  outline: none;
}
.timeline__scrubber:focus-visible .timeline__rail {
  box-shadow: 0 0 0 3px rgba(0,184,255,.35);
}
.timeline__phases {
  position: relative;
  height: 18px;
  display: flex;
}
.timeline__phase {
  position: absolute;
  top: 0;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10,13,18,.6);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.timeline__phase--reg { background: rgba(0,196,109,.15); }
.timeline__phase--et  { background: rgba(255,166,0,.18); }
.timeline__phase--pen { background: rgba(128,40,255,.18); }
.timeline__phase-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}
.timeline__rail {
  position: relative;
  height: 84px;
  background: #f3f5f9;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--line);
  border-top: 0;
}
.timeline__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.timeline__tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(10,13,18,.08);
}
.timeline__tick-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, rgba(0,196,109,.08), rgba(0,196,109,.16));
  border-right: 2px solid var(--ge-green);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* markers above (home) and below (away) the central line */
.timeline__markers {
  position: absolute;
  left: 0;
  right: 0;
  height: 32px;
  pointer-events: none;
}
.timeline__markers--home { top: 8px; }
.timeline__markers--away { bottom: 8px; }

.timeline__marker {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  background: transparent;
  border: 0;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline__markers--away .timeline__marker { top: 10px; }
.timeline__marker-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.timeline__marker:hover .timeline__marker-dot {
  transform: scale(1.35);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.timeline__marker.is-pulse .timeline__marker-dot {
  animation: markerPulse 0.7s ease;
}
@keyframes markerPulse {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(0,196,109,.7); }
  60%  { transform: scale(1.6); box-shadow: 0 0 0 14px rgba(0,196,109,0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(0,196,109,0); }
}
/* type-specific marker colors */
.timeline__marker--goal     .timeline__marker-dot { background: var(--ge-green); }
.timeline__marker--goal-pen .timeline__marker-dot { background: var(--ge-green); border-color: var(--ge-yellow); }
.timeline__marker--goal-own .timeline__marker-dot { background: var(--ge-orange); }
.timeline__marker--pen-miss .timeline__marker-dot { background: #9aa3b2; }
.timeline__marker--card-y   .timeline__marker-dot { background: var(--ge-yellow); width: 10px; height: 14px; border-radius: 2px; }
.timeline__marker--card-r   .timeline__marker-dot { background: var(--ge-red);    width: 10px; height: 14px; border-radius: 2px; }
.timeline__marker--subst    .timeline__marker-dot { background: var(--ge-blue);   width: 10px; height: 10px; }
.timeline__marker--var      .timeline__marker-dot { background: var(--ge-purple); width: 10px; height: 10px; }

.timeline__handle {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0%;
  transform: translateX(-50%);
  width: 18px;
  background: transparent;
  border: 0;
  cursor: grab;
  pointer-events: auto;
  z-index: 4;
  padding: 0;
}
.timeline__handle::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: var(--ge-green);
  border-radius: 2px;
}
.timeline__handle::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--ge-green);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.timeline__handle:active { cursor: grabbing; }

/* ---------- controls ---------- */
.timeline__controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.timeline__play-icon {
  font-size: 14px;
  margin-right: 6px;
}

/* ---------- current event card ---------- */
.timeline__current {
  padding: 0 20px 18px;
}
.timeline__current-empty {
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.timeline__current-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 14px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ge-green);
  animation: cardFadeIn 0.3s ease;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.timeline__current-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.timeline__current-minute {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.timeline__current-icon { font-size: 22px; }
.timeline__current-label {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.timeline__current-note {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  background: #fff;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

/* solo variant of player-summary (no left team-color stripe) — used in current event card */
.player-summary--solo { border-left: 0; background: #fff; }

/* ---------- events list (full chronological) ---------- */
.timeline__list {
  padding: 8px 20px 20px;
  display: grid;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
}
.timeline__list--compact { max-height: 220px; padding-bottom: 14px; }
.timeline__row {
  display: grid;
  grid-template-columns: 50px 24px 1fr 28px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.timeline__row:hover {
  background: var(--paper);
  border-color: var(--line);
}
.timeline__row:active { transform: translateY(1px); }
.timeline__row--home { border-left: 3px solid var(--ge-green);  padding-left: 8px; }
.timeline__row--away { border-left: 3px solid var(--ge-orange); padding-left: 8px; }
.timeline__row-minute {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.timeline__row-icon { font-size: 18px; text-align: center; }
.timeline__row-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.timeline__row-kind {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.timeline__row-player {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline__row-assist {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.timeline__row-team img {
  width: 22px; height: 22px; object-fit: contain;
}

/* ---------- action row ---------- */
.timeline__actions {
  padding: 14px 20px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* ---------- notice (empty / error) ---------- */
.timeline__notice {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ge-yellow);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  box-shadow: var(--shadow-1);
}
.timeline__notice-icon {
  font-size: 32px;
  color: var(--ge-orange);
  text-align: center;
}
.timeline__notice-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.timeline__notice-text {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- embed-only tweaks for the iframe version ---------- */
.embed-shell .timeline { margin: 0; padding: 0; max-width: none; }
.embed-shell .timeline__board { border-radius: 0; box-shadow: none; border: 0; }
.embed-shell .timeline__picker { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.embed-shell .timeline-hero { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .timeline { padding: 0 14px; margin: 18px auto 32px; gap: 14px; }
  .timeline__picker-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .timeline__status { justify-self: start; }
  .timeline__team-name { font-size: 18px; }
  .timeline__team-crest { width: 44px; height: 44px; }
  .timeline__score { padding: 8px 12px; }
  .timeline__score-num { font-size: 30px; min-width: 30px; }
  .timeline__rail { height: 70px; }
  .timeline__phases { height: 16px; }
  .timeline__phase { height: 16px; font-size: 8px; letter-spacing: 0.1em; }
  .timeline__tick-label { font-size: 9px; }
  .timeline__list { padding: 8px 14px 16px; }
  .timeline__row { grid-template-columns: 40px 22px 1fr 22px; padding: 8px; }
  .timeline__row-minute { font-size: 16px; }
  .timeline__row-player { font-size: 12px; }
  .timeline__current { padding: 0 14px 16px; }
  .timeline__current-minute { font-size: 24px; }
  .timeline__current-label  { font-size: 16px; }
  .timeline__actions { padding: 12px 14px 16px; }
}
@media (max-width: 480px) {
  .timeline-hero { padding: 36px 16px 24px; }
  .timeline__header { padding: 14px 14px 12px; }
  .timeline__scrubber-wrap { padding: 22px 14px 16px; gap: 12px; }
  .timeline__matchmeta { font-size: 11px; }
  .timeline__pen { font-size: 11px; padding: 6px 10px; }
  .timeline__pen strong { font-size: 14px; }
  .timeline__minute { font-size: 22px; }
}

/* =========================================================================
   BRACKET — Widget 4: Monte seu chaveamento da Copa 2026
   Reusa paleta ge.globo. Tudo apêndice — nada acima é tocado.
   ========================================================================= */

/* ---------- hero ---------- */
.bracket-hero {
  background:
    radial-gradient(1000px 320px at 80% 0%, rgba(0,196,109,.10), transparent 60%),
    radial-gradient(700px 280px at 0% 100%, rgba(128,40,255,.08), transparent 60%),
    var(--paper);
  padding: 56px 20px 36px;
}
.bracket-hero__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.bracket-hero__eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--ge-green);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: start;
}
.bracket-hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
}
.bracket-hero__title em {
  color: var(--ge-green);
  font-style: normal;
}
.bracket-hero__lead {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
}
.bracket-hero__lead strong { color: var(--ink); }
.bracket-hero__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- main container ---------- */
.bracket {
  max-width: 1280px;
  margin: 28px auto 48px;
  padding: 0 20px;
  display: grid;
  gap: 18px;
  position: relative;
}

/* ---------- toolbar ---------- */
.bracket__toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.bracket__progress {
  display: grid;
  gap: 6px;
}
.bracket__progress-track {
  height: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bracket__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ge-green), var(--ge-blue));
  width: 0%;
  transition: width 0.4s cubic-bezier(.2,.8,.3,1);
  border-radius: 999px;
}
.bracket__progress-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bracket__toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bracket__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
}
.bracket__status.is-busy  { color: var(--ink); background: var(--ge-yellow); }
.bracket__status.is-error { color: #fff; background: var(--ge-red); }

/* ---------- mobile stepper (hidden on desktop) ---------- */
.bracket__stepper {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px;
  gap: 4px;
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.bracket__stepper::-webkit-scrollbar { display: none; }
.bracket__step {
  flex: 1 0 auto;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  min-width: 64px;
}
.bracket__step:hover { background: var(--paper); }
.bracket__step.is-active {
  background: var(--ink);
  color: var(--ge-green);
}

/* ---------- bracket grid (TOURNAMENT STYLE) ----------
   The grid is the canonical "tournament bracket" look: each round is
   a column, cards in round N+1 are vertically centered between their
   two feeder cards in round N (handled by `space-around` inside
   .bracket__matches), and SVG-less connector lines (CSS pseudo-elements)
   draw the L-shaped tree between cards.

   The connector geometry: each match in rounds 0–3 emits a horizontal
   stub to the right (::after on .bracket__match). Each match in rounds
   1–4 receives a horizontal stub from the left (::before on .bracket__match)
   PLUS a vertical line that bridges the two feeder cards (drawn as a
   border on a wrapper trick — implemented below by extending ::before
   with negative top offsets via flexbox parent geometry).
   --------------------------------------------------------------- */
.bracket__grid {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)   /* R32 */
    minmax(200px, 1fr)   /* R16 */
    minmax(200px, 1fr)   /* QF  */
    minmax(200px, 1fr)   /* SF  */
    minmax(200px, 1fr)   /* F   */
    minmax(240px, 1.1fr);/* Champ */
  gap: 0;                /* connector lines fill the gap visually; column padding handles spacing */
  background:
    radial-gradient(circle at 20% 0%, rgba(0,196,109,0.04), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0,184,255,0.04), transparent 50%),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  /* extra bottom padding so the team-name tooltip (which appears
     below the chip on hover) has room without being clipped */
  padding: 22px 28px 40px 22px;
  box-shadow: var(--shadow-2);
  overflow-x: auto;
  overflow-y: hidden;
  align-items: stretch;
  scroll-snap-type: x proximity;
  /* R32 (densest col, 16 cards) drives the height — every other column
     stretches to match, and space-around then centers each card between
     its two feeders. Clamped so we never blow past the viewport. */
  min-height: clamp(820px, 88vh, 1100px);
}
.bracket__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
  /* internal padding gives the connector lines a place to live */
  padding: 0 14px;
  position: relative;
}
.bracket__col:first-child { padding-left: 0; }
.bracket__col--champ { padding-right: 0; }

/* round tab header — looks like a tab/pill above each column */
.bracket__col-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  padding: 9px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ge-green);
  border-radius: var(--r-sm) var(--r-sm) 2px 2px;
  margin-bottom: 14px;
  flex: 0 0 auto;
  box-shadow: 0 1px 0 rgba(10,13,18,0.02);
}
.bracket__col--r16 .bracket__col-head { border-bottom-color: var(--ge-blue); }
.bracket__col--qf  .bracket__col-head { border-bottom-color: var(--ge-orange); }
.bracket__col--sf  .bracket__col-head { border-bottom-color: var(--ge-pink, var(--ge-orange)); }
.bracket__col--f   .bracket__col-head { border-bottom-color: var(--ge-yellow); }
.bracket__col--champ .bracket__col-head {
  background: linear-gradient(135deg, var(--ge-green), var(--ge-blue));
  color: #fff;
  border-color: transparent;
  border-bottom: none;
  letter-spacing: 0.16em;
}

/* matches container — distributes cards with space-around so column N+1
   cards land centered between their two feeders in column N. */
.bracket__matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}
.bracket__matches > * + * { margin-top: 4px; }

/* ---------- match card (cleaner, more "bracket" look) ---------- */
.bracket__match {
  /* DESKTOP/TABLET: now a compact two-circle row instead of a tall
     2-row card. Mobile (≤720px) overrides this back to vertical
     stacking via the existing @media block below. */
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: none;
  flex: 0 0 auto;
  box-shadow: none;
  min-height: 48px; /* gives connector lines a consistent vertical anchor */
}
.bracket__match.is-decided {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* CONNECTOR LINES — desktop only.
   - Every match (except in the first/R32 column) gets a horizontal stub
     extending LEFT (::before), pointing back toward its feeders.
   - Every match (except in the last/champion column) gets a horizontal
     stub extending RIGHT (::after), pointing toward the winner card.
   These stubs live in the column's padding (14px each side), so they
   read as a continuous bracket line between cards.
   The vertical bracket arm is drawn by giving the EVEN-positioned card
   in each feeder pair an extra vertical line via the ::after extending
   downward (we use the fact that space-around aligns sibling pairs
   symmetrically — a simple border on the right edge of the column
   spanning between each pair). */
.bracket__match::before,
.bracket__match::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1.5px;
  background: var(--line);
  pointer-events: none;
  transition: background .25s ease;
}
.bracket__match::before {
  /* horizontal stub going LEFT (into the gap on the left side) */
  right: 100%;
  width: 14px;
}
.bracket__match::after {
  /* horizontal stub going RIGHT (into the gap on the right side) */
  left: 100%;
  width: 14px;
}
/* first column: no incoming line */
.bracket__col--r32 .bracket__match::before { display: none; }
/* champion column: no outgoing line; the champion card is the endpoint */
.bracket__col--champ .bracket__match::after,
.bracket__col--champ .bracket__match::before { display: none; }
/* final column outgoing line points straight at the champion card */
.bracket__col--f .bracket__match::after { width: 14px; }

/* the VERTICAL bracket arm — drawn on every column EXCEPT R32 as a
   right-edge border on the column's left-side gap. We approximate this
   by giving each column's matches container a series of vertical lines
   computed via a ::before pseudo on the column itself, positioned on
   the LEFT inside the column padding. Cleanest pure-CSS approach without
   per-pair markup is a single thin vertical line that runs the full
   height of the matches area — visually it reads as the bracket spine. */
.bracket__col:not(.bracket__col--r32):not(.bracket__col--champ) .bracket__matches::before {
  content: '';
  position: absolute;
  left: -14px;          /* sits in the column's left padding gap */
  top: 14%;             /* hugs the first card's vertical center */
  bottom: 14%;          /* hugs the last card's vertical center */
  width: 1.5px;
  background: var(--line);
  pointer-events: none;
}
/* champion's incoming line: solid arrow from final */
.bracket__col--champ .bracket__matches::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--line);
  pointer-events: none;
}

/* when a match is decided, light up its outgoing connector + its
   downstream stub in green to "show the path" */
.bracket__match.is-decided::after { background: var(--ge-green); }
.bracket__match.is-decided + * .bracket__match::before,
.bracket__col .bracket__match.is-decided ~ * .bracket__match::before {
  /* (best-effort; not always adjacent due to space-around layout) */
}

.bracket__vs {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  line-height: 1;
  display: none;
}

/* ---------- team button (DESKTOP + TABLET ≥721px) ----------
   The button itself IS the circular flag chip. Name + code are kept
   in the DOM (screen readers still read them) but visually shown
   only on hover/focus as a tooltip floating above the chip.
   Mobile (≤720px) overrides this back to the wide row layout below
   so the touch target is comfortable when one round fills the screen. */
.bracket__team {
  --team-accent: var(--ge-green);
  --chip-size: 40px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50%;
  padding: 0;
  width: var(--chip-size);
  height: var(--chip-size);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .3s ease;
  position: relative;
  flex: 0 0 auto;
  overflow: visible; /* tooltip needs to overflow the circle */
  box-shadow: 0 1px 2px rgba(10,13,18,0.06);
}
.bracket__team:hover:not(:disabled):not(.is-loser):not(.is-winner) {
  border-color: var(--team-accent);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,196,109,0.18);
  z-index: 5; /* lift above siblings so tooltip + scale don't clip */
}
.bracket__team:focus-visible {
  outline: 2px solid var(--ge-green);
  outline-offset: 2px;
}
.bracket__team:active { transform: scale(1); }

.bracket__team.is-winner {
  border-color: var(--ge-green);
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(0,196,109,.18), 0 4px 10px rgba(0,196,109,.22);
  animation: pickAdvance 0.45s cubic-bezier(.2,.8,.3,1);
  z-index: 2;
}
@keyframes pickAdvance {
  0%   { transform: scale(.85); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.bracket__team.is-winner .bracket__check {
  opacity: 1;
  transform: scale(1);
}
.bracket__team.is-loser {
  opacity: 0.38;
  filter: grayscale(70%);
}
.bracket__team.is-loser:hover {
  opacity: 0.6;
  filter: grayscale(40%);
  transform: scale(1.04);
}

/* TOOLTIP — reveals the team name above the chip on hover/focus.
   We promote the existing .bracket__team-name span to a floating
   pill positioned above the circle. No JS, no extra markup, and
   the span stays in the accessible tree. */
.bracket__team-name {
  position: absolute;
  /* tooltip appears BELOW the chip — keeps it visible even on the
     topmost R32 cards where the grid clips overflow at the top edge */
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 20;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.bracket__team-name::after {
  /* tiny tail pointing UP at the chip */
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: var(--ink);
}
.bracket__team:hover .bracket__team-name,
.bracket__team:focus-visible .bracket__team-name {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* code is redundant when we have the full name in the tooltip;
   keep in DOM for any screen reader that prefers it, but hide visually. */
.bracket__team-code {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* empty slot (waiting for previous round) — a dashed circle of the same size */
.bracket__team--empty {
  background: transparent;
  border: 2px dashed var(--line);
  border-radius: 50%;
  width: var(--chip-size, 40px);
  height: var(--chip-size, 40px);
  padding: 0;
  cursor: default;
  pointer-events: none;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.bracket__team-empty {
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}

/* the flag wrapper fills the circle */
.bracket__flag-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bracket__flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* small green check badge in the bottom-right corner of the chip
   when this team has been picked */
.bracket__check {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ge-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid #fff;
  opacity: 0;
  transform: scale(0);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2,1.8,.3,1);
}

/* ---------- champion card (the trophy stage) ---------- */
.bracket__champion {
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  padding: 24px 16px;
  display: grid;
  gap: 8px;
  text-align: center;
  align-content: center;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.bracket__champion--empty {
  background:
    radial-gradient(circle at 50% 30%, rgba(0,196,109,0.04), transparent 60%),
    var(--paper);
}
.bracket__champion-trophy {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 4px;
  filter: grayscale(80%);
  opacity: 0.5;
}
.bracket__champion-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.bracket__champion.is-decided {
  --team-accent: var(--ge-green);
  border-style: solid;
  border-width: 2px;
  border-color: var(--team-accent);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--team-accent) 24%, transparent), transparent 70%),
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--team-accent) 7%, white));
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--team-accent) 24%, transparent),
    0 2px 8px rgba(10,13,18,.1);
  animation: championPop 0.7s cubic-bezier(.2,1.4,.3,1);
}
@keyframes championPop {
  0%   { transform: scale(.7); opacity: 0; }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}
.bracket__champion.is-decided .bracket__champion-trophy {
  font-size: 64px;
  filter: drop-shadow(0 4px 12px rgba(255,166,0,.45));
  opacity: 1;
  animation: trophyShine 2.4s ease-in-out infinite;
}
@keyframes trophyShine {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
.bracket__champion-crown {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 32px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.18));
  animation: crownFloat 3s ease-in-out infinite;
}
@keyframes crownFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.bracket__champion-flag-wrap {
  width: 96px;
  height: 64px;
  border-radius: 6px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid #fff;
  box-shadow: var(--shadow-2);
}
.bracket__champion-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bracket__champion-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.bracket__champion-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.bracket__champion-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

/* ---------- confetti canvas (full-viewport overlay) ---------- */
.bracket__confetti {
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bracket__confetti.is-firing { opacity: 1; }

/* ---------- action row ---------- */
.bracket__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 0;
}

/* ---------- notice ---------- */
.bracket__notice {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ge-yellow);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  box-shadow: var(--shadow-1);
}
.bracket__notice-icon { font-size: 32px; color: var(--ge-orange); text-align: center; }
.bracket__notice-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--ink); }
.bracket__notice-text  { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ---------- embed-only tweaks ---------- */
.embed-shell .bracket { margin: 0; padding: 0; max-width: none; }
.embed-shell .bracket-hero { display: none; }
.embed-shell .bracket__grid { border-radius: 0; box-shadow: none; border: 0; }
.embed-shell .bracket__toolbar { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  /* tighter cols, slightly smaller connectors */
  .bracket__col { padding: 0 11px; }
  .bracket__col:first-child { padding-left: 0; }
  .bracket__col--champ { padding-right: 0; }
  .bracket__match::before,
  .bracket__match::after { width: 11px; }
  .bracket__col:not(.bracket__col--r32):not(.bracket__col--champ) .bracket__matches::before {
    left: -11px;
  }
  .bracket__col--champ .bracket__matches::before { left: -11px; width: 11px; }
}

@media (max-width: 960px) {
  /* tablet: still horizontal bracket, even tighter */
  .bracket__grid {
    grid-template-columns:
      minmax(170px, 1fr)
      minmax(160px, 1fr)
      minmax(160px, 1fr)
      minmax(160px, 1fr)
      minmax(160px, 1fr)
      minmax(190px, 1.1fr);
    padding: 16px 18px 16px 14px;
  }
  .bracket__col { padding: 0 8px; }
  .bracket__col:first-child { padding-left: 0; }
  .bracket__col--champ { padding-right: 0; }
  .bracket__match::before,
  .bracket__match::after { width: 8px; }
  .bracket__col:not(.bracket__col--r32):not(.bracket__col--champ) .bracket__matches::before {
    left: -8px;
  }
  .bracket__col--champ .bracket__matches::before { left: -8px; width: 8px; }
  /* tablet: shrink the circle a bit so 6 columns still fit horizontally */
  .bracket__team { --chip-size: 34px; border-width: 2px; }
  .bracket__team.is-winner { border-width: 3px; }
  .bracket__check { width: 16px; height: 16px; font-size: 10px; }
  .bracket__match { gap: 6px; min-height: 40px; }
  .bracket__col-head { font-size: 13px; padding: 7px 6px; }
}

@media (max-width: 720px) {
  /* MOBILE & SMALL TABLET: single-column stepper mode.
     Connectors are HIDDEN — they only make sense when multiple
     rounds are visible side-by-side. */
  .bracket { padding: 0 14px; margin: 18px auto 32px; gap: 14px; }
  .bracket__stepper { display: flex; }
  .bracket__grid {
    display: block;
    padding: 16px;
    overflow: hidden;
    min-height: 0;
    scroll-snap-type: none;
    background: #fff;
  }
  .bracket__col {
    display: none;
    scroll-snap-align: none;
    padding: 0;
  }
  .bracket__col.is-active {
    display: flex;
    animation: stepFadeIn 0.3s ease;
  }
  @keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .bracket__col-head { position: static; margin-bottom: 12px; font-size: 15px; }

  /* mobile drops bracket connectors (single round shown at a time) */
  .bracket__match::before,
  .bracket__match::after { display: none !important; }
  .bracket__matches::before { display: none !important; }

  .bracket__matches {
    justify-content: flex-start;
    flex: 0 0 auto;
    gap: 10px;
  }
  .bracket__matches > * + * { margin-top: 0; }

  /* MOBILE: revert from the circular desktop chip back to the
     classic horizontal row card. Touch targets must be ≥44px and
     the team name is shown INLINE (not as a hover tooltip — there
     is no hover on touch). */
  .bracket__match {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    display: grid;
    gap: 6px;
    padding: 8px;
    align-content: center;
    min-height: 0;
    box-shadow: 0 2px 6px rgba(10,13,18,0.05);
  }
  .bracket__match.is-decided {
    background: #fff;
    border-color: var(--ge-green);
    box-shadow: 0 2px 8px rgba(0,196,109,0.12), 0 1px 2px rgba(10,13,18,0.04);
  }
  .bracket__vs { display: block; }
  .bracket__team {
    --chip-size: auto;
    width: auto;
    height: auto;
    border-radius: var(--r-sm);
    border-width: 1px;
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    padding: 11px 12px;
    min-height: 48px;
    gap: 8px;
    align-items: center;
    text-align: left;
    box-shadow: none;
  }
  .bracket__team:hover:not(:disabled):not(.is-loser):not(.is-winner) {
    transform: none;
    box-shadow: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--team-accent) 7%, white), #fff);
  }
  .bracket__team.is-winner {
    border-width: 1px;
    box-shadow: 0 0 0 2px rgba(0,196,109,.15);
    background: linear-gradient(90deg, color-mix(in srgb, var(--ge-green) 16%, white), #fff 70%);
  }
  /* tooltip → inline label on mobile */
  .bracket__team-name {
    position: static;
    transform: none;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  .bracket__team-name::after { display: none; }
  .bracket__team-code {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    margin: 0;
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.06em;
  }
  /* flag back to a small rounded rectangle, not a full circle */
  .bracket__flag-wrap {
    width: 32px;
    height: 22px;
    border-radius: 3px;
    border: 1px solid var(--line);
  }
  /* check goes back inline at the right edge, no longer a corner badge */
  .bracket__check {
    position: static;
    right: auto;
    bottom: auto;
    width: 18px;
    height: 18px;
    border: 0;
  }
  /* empty slot back to the dashed pill shape from before */
  .bracket__team--empty {
    width: auto;
    height: auto;
    border-radius: var(--r-sm);
    border-width: 1px;
    min-height: 38px;
  }
  .bracket__team-empty { font-size: 11px; }

  .bracket__toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bracket__toolbar-actions { justify-content: space-between; }

  .bracket__champion { padding: 22px 14px; min-height: 260px; }
  .bracket__champion-name { font-size: 28px; }
  .bracket__champion-trophy { font-size: 56px; }

  .bracket-hero { padding: 36px 16px 24px; }
}

@media (max-width: 480px) {
  .bracket__stepper { padding: 4px; }
  .bracket__step { font-size: 14px; padding: 8px 10px; min-width: 56px; }
  .bracket__team-name { font-size: 13px; }
  .bracket__check { width: 16px; height: 16px; font-size: 10px; }
  .bracket__champion-flag-wrap { width: 80px; height: 54px; }
  .bracket__champion-trophy { font-size: 56px !important; }
  .bracket__champion-name { font-size: 26px; }
  .bracket__match { padding: 7px; }
  .bracket__team { padding: 10px 10px; }
}

/* =========================================================================
   TOPBAR — Burger menu (tablet + mobile only)
   Desktop (>960px) é intocado: nav inline, sem burger.
   Em ≤960px o burger aparece e a nav vira painel dropdown sticky abaixo
   do header preto.
   ========================================================================= */

/* botão burger — escondido no desktop */
.topbar__burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0;
  width: 44px;
  height: 44px;          /* touch target ≥ 44px (Apple HIG / WCAG 2.5.5) */
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.topbar__burger:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.topbar__burger:focus-visible { outline: 2px solid var(--ge-green); outline-offset: 2px; }
.topbar__burger-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background .15s ease;
}
.topbar__burger-icon::before,
.topbar__burger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.2,.8,.3,1), top .2s ease .05s;
}
.topbar__burger-icon::before { top: -7px; }
.topbar__burger-icon::after  { top:  7px; }

/* aberto: vira "X" */
.topbar.is-open .topbar__burger-icon { background: transparent; }
.topbar.is-open .topbar__burger-icon::before { top: 0; transform: rotate(45deg); }
.topbar.is-open .topbar__burger-icon::after  { top: 0; transform: rotate(-45deg); }

/* ≤960px (tablet + mobile): burger ON, nav vira dropdown */
@media (max-width: 960px) {
  .topbar__burger { display: inline-flex; }

  /* nav esconde por default; reaparece como painel quando .is-open */
  .topbar__nav {
    display: none;
    position: absolute;
    top: 100%;          /* abaixo do header sticky */
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 3px solid var(--ge-green);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    padding: 8px 14px 14px;
    flex-direction: column;
    gap: 2px;
    z-index: 49;        /* abaixo do header (50) mas acima do conteúdo */
    animation: navSlideIn .22s cubic-bezier(.2,.8,.3,1);
  }
  .topbar.is-open .topbar__nav { display: flex; }
  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* o header precisa ser anchor de position pro nav absolute encostar */
  .topbar__inner { position: relative; }

  /* cada link vira linha cheia, touch-friendly */
  .topbar__link {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    min-height: 48px;     /* ≥44px alvo de toque */
    border: 1px solid transparent;
  }
  .topbar__link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

  /* o sublinhado verde do .is-active não funciona bem em layout vertical;
     trocamos por uma faixa lateral verde + cor de texto branca */
  .topbar__link.is-active {
    background: rgba(0, 196, 109, 0.12);
    border-color: rgba(0, 196, 109, 0.3);
    color: #fff;
  }
  .topbar__link.is-active::after {
    /* anula o ::after da underline desktop */
    content: none;
  }
}
