/* Play (entries strip, race tiles) and Agency (cards, list, hover preview, card pop-up) */
/* ---- JUGAR: two equal actions; red only on race day ---- */
.play-acts { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .play-acts { grid-template-columns: 1fr; } }
.tile.act { min-height: 180px; justify-content: space-between; gap: 6px; border: 1px solid rgba(255, 255, 255, .22); border-left: 5px solid rgba(255, 255, 255, .55); background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
.tile.act:hover:not([aria-disabled="true"]) { border-color: rgba(255, 255, 255, .5); border-left-color: #fff; }
.tile.act .tile-title { font-size: clamp(30px, 5vw, 42px); font-style: italic; font-weight: 800; }
.tile.act .act-top { min-height: 20px; }
.tile.act .tile-tag { align-self: flex-start; margin: 6px 0 0; background: var(--fg); color: var(--asphalt); padding: 8px 14px; font-size: 15px; font-style: italic; font-weight: 800; letter-spacing: .04em; }
.tile.act.live { border-color: var(--flag); border-left-color: var(--flag); }
.tile.act.live .tile-tag { background: var(--flag); color: #fff; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--flag); }
.live-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--flag); box-shadow: 0 0 0 0 rgba(229, 36, 59, .7); }
@media (prefers-reduced-motion: no-preference) { .live-tag i { animation: livePulse 1.4s infinite; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(229, 36, 59, .7); } 70% { box-shadow: 0 0 0 9px rgba(229, 36, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 36, 59, 0); } }
.lu-entry.active { border-left: 5px solid rgba(255, 255, 255, .7); }
.lu-head .pos { color: var(--fg); }
.echips button b { color: var(--fg); }
.echips button[aria-pressed="true"] { border-color: var(--fg); background: rgba(255, 255, 255, .08); }

/* ---- AGENCIA: small cards or list, hover preview, full pop-up ---- */
.ag-bar { display: flex; flex-direction: column; gap: 10px; }
.ag-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ag-sum button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 400; background: var(--glass, var(--panel)); }
.ag-sum button b { font-family: var(--display); font-size: 26px; line-height: 1; }
.ag-sum button span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); font-weight: 700; }
.ag-sum .st-team b { color: #3fc79a; } .ag-sum .st-lent b { color: #6c8cff; }
.ag-sum button[aria-pressed="true"] { border-color: var(--fg); background: rgba(255, 255, 255, .1); }
.ag-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ag-tools .seg, .m-viewrow .seg { display: inline-flex; }
.m-viewrow .seg button { padding: 7px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; border-radius: 0; }
.m-viewrow .seg button + button { border-left: 0; }
.m-viewrow .seg button[aria-pressed="true"] { background: var(--fg); color: var(--asphalt); border-color: var(--fg); }
.m-viewrow .seg svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.ag-tools .seg button { padding: 7px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; border-radius: 0; }
.ag-tools .seg button + button { border-left: 0; }
.ag-tools .seg button[aria-pressed="true"] { background: var(--fg); color: var(--asphalt); border-color: var(--fg); }
.ag-tools .seg svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.ag-search { flex: 1; min-width: 140px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); padding: 8px 10px; font: inherit; font-size: 14px; }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.ag-mini { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; background: none; border: 0; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 400; }
.ag-mini .dcard { zoom: .55; pointer-events: none; transition: transform .15s; }
.ag-mini:hover .dcard, .ag-mini:focus-visible .dcard { transform: translateY(-4px); }
.ag-mini:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.ag-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ag-inj { position: absolute; top: 2px; right: 6px; color: var(--flag); font-weight: 800; z-index: 4; }
.ag-cap { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ag-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 520px) { .ag-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } .ag-mini .dcard { zoom: .42; } .ag-sum b { font-size: 20px; } .ag-sum button { padding: 8px; } }
.ag-tbl { overflow-x: auto; border: 1px solid var(--line); }
.ag-tbl table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ag-tbl th { text-align: left; padding: 0; border-bottom: 1px solid rgba(255, 255, 255, .26); white-space: nowrap; }
.ag-tbl th button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-radius: 0; }
.ag-tbl th.mut { padding: 8px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ag-tbl th button.on { color: var(--fg); }
.ag-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ag-tbl tr[data-card] { cursor: pointer; }
.ag-tbl tr[data-card]:hover td, .ag-tbl tr[data-card]:focus-visible td { background: rgba(255, 255, 255, .06); }
.ag-tbl tr[data-card]:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
.ag-tbl td.ag-o b { display: inline-block; min-width: 32px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 18px; padding-left: 6px; border-left: 3px solid; }
.ag-tbl td.nm { font-weight: 700; } .ag-tbl td.nm .flag { margin-right: 6px; }
.ag-tbl td.sv small { color: var(--muted); font-size: 10px; margin-right: 4px; }
.ag-tbl td.hi { color: #3fc79a; font-weight: 700; }
.ag-tbl .mut { color: var(--muted); }
.ag-pill { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border: 1px solid currentColor; }
.ag-inj-t { color: var(--flag); }
.ag-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .ag-foot { grid-template-columns: 1fr; } }
.ag-peek { position: fixed; z-index: 60; display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--asphalt); border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); pointer-events: none; }
.ag-peek .pk-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 170px; }
.ag-peek .pk-info .xp { width: 100%; }
.ag-peek small { color: var(--muted); font-size: 12px; }
.ag-modal { position: fixed; inset: 0; z-index: 70; background: rgba(3, 5, 12, .78); display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.ag-dialog { position: relative; width: min(980px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--asphalt); border: 1px solid rgba(255, 255, 255, .28); display: grid; grid-template-columns: 280px 1fr; gap: 22px; padding: 22px; }
@media (max-width: 760px) { .ag-dialog { grid-template-columns: 1fr; padding: 16px; } .cm-left .dcard { zoom: .8; } }
.cm-x { position: absolute; top: 8px; right: 8px; padding: 4px 10px; font-size: 16px; z-index: 5; }
.cm-left { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cm-left .xp { width: 100%; }
.cm-acts { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.cm-acts .sell { width: 100%; }
.cm-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cm-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); overflow-x: auto; padding-right: 40px; }
.cm-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 0; padding: 8px 12px; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 17px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cm-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--flag); }
.cm-pane { display: flex; flex-direction: column; gap: 12px; }
.cm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cm-facts div { border: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.cm-facts span { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cm-facts b { font-size: 15px; }
.cm-bars { display: flex; flex-direction: column; gap: 6px; }
.cm-bars div { display: grid; grid-template-columns: 40px 1fr 32px; gap: 10px; align-items: center; font-family: var(--display); font-weight: 700; }
.cm-bars span { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.cm-bars i { height: 8px; background: rgba(255, 255, 255, .1); display: block; }
.cm-bars em { display: block; height: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, .5), #fff); }
.cm-bars b { text-align: right; font-size: 17px; }
.cm-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cm-kpis.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 520px) { .cm-kpis.six { grid-template-columns: repeat(3, 1fr); } }
.cm-kpis div { border: 1px solid var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.cm-kpis b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; line-height: 1; }
.cm-kpis span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); font-weight: 700; }
.cm-pane .up { color: #3fc79a; } .cm-pane .down { color: var(--flag); }
.cm-chart { width: 100%; height: auto; display: block; }
.cm-chart .gl { stroke: rgba(255, 255, 255, .1); }
.cm-chart text { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.cm-chart .ln { fill: none; stroke: #fff; stroke-width: 2.2; }
.cm-chart .ar { fill: rgba(255, 255, 255, .07); }
.cm-chart circle { fill: #fff; }
.cm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-chips span { border: 1px solid currentColor; padding: 2px 8px; font-family: var(--display); font-weight: 700; font-size: 13px; }
.cm-list { display: flex; flex-direction: column; }
.cm-list div { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cm-list div span:first-child { color: var(--muted); font-size: 13px; }
.cm-list b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 18px; }
.cm-list b small { font-size: 12px; color: var(--muted); font-style: normal; }
.cm-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cm-ach div { border: 1px dashed rgba(255, 255, 255, .2); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; opacity: .45; }
.cm-ach div.ok { opacity: 1; border: 1px solid #e8b64a; background: rgba(232, 182, 74, .08); }
.cm-ach b { font-family: var(--display); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.cm-ach div.ok b { color: #e8b64a; }
.cm-ach span { font-size: 12px; color: var(--muted); }
