/* homeev1 (21-10-2026, Mortimer: «Club calendar … debe ir arriba de Live market … todos los próximos eventos deben salir en
   la home»): the home's club calendar. The soonest event is a wide ticket on top, the others a grid of small tickets, each in
   its own colour (--ev: the kind's, the tribe's for a Nexus battle; basc.css and events-xe.css set it). */
.hev { position: relative; }
.hev::before { content: ''; position: absolute; inset: -40px -10% auto; height: 340px; z-index: -1; pointer-events: none;
    background: radial-gradient(50% 60% at 20% 30%, rgba(249,115,22,0.10), transparent 70%), radial-gradient(45% 55% at 85% 20%, rgba(0,221,235,0.08), transparent 70%);
    /* glowfix1 (Mortimer, 02-11-2026: «se notan como se cortan … pasa en ambos lados»): with the weekly missions strip right
       above, the glow's box showed its top and side edges. The mask fades it to nothing on all four sides. */
    -webkit-mask-image: radial-gradient(farthest-side, #000 45%, transparent); mask-image: radial-gradient(farthest-side, #000 45%, transparent); }
.hev-grid { --ev: var(--cyan); display: grid; gap: 16px; grid-template-columns: repeat(var(--hev-cols, 3), minmax(0, 1fr)); }
@media (max-width: 1000px) { .hev-grid { grid-template-columns: repeat(min(var(--hev-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px) { .hev-grid { grid-template-columns: minmax(0, 1fr); } }

.hev-card { position: relative; isolation: isolate; display: flex; gap: 16px; min-width: 0; padding: 18px 18px 16px; border-radius: var(--radius);
    background: radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--ev) 12%, transparent), transparent 58%), linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px solid color-mix(in srgb, var(--ev) 22%, var(--line)); box-shadow: 0 10px 30px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s, box-shadow 0.25s; }
/* the colour line on top, fading out to the right. homeev2 (Mortimer 07:23: «no respeta la curva del borde»): a ring over the
   card's border, as thick as the line on top and 0 on the sides, so it bends down with the rounded corners and thins out */
.hev-card::before { content: ''; position: absolute; inset: -1px; z-index: -1; pointer-events: none; border-radius: var(--radius); padding-top: 3px;
    background: linear-gradient(90deg, var(--ev), color-mix(in srgb, var(--ev) 0%, transparent) 75%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.hev-card:hover, .hev-card:focus-within { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ev) 55%, transparent);
    box-shadow: 0 18px 40px rgba(0,0,0,0.38), 0 0 32px color-mix(in srgb, var(--ev) 18%, transparent), inset 0 1px 0 rgba(255,255,255,0.07); }
.hev-card.is-live { border-color: rgba(34,197,94,0.55); }

.hev-date { flex: none; display: grid; place-items: center; align-content: center; width: 58px; height: 64px; border-radius: 14px;
    background: color-mix(in srgb, var(--ev) 10%, rgba(255,255,255,0.03)); border: 1px solid color-mix(in srgb, var(--ev) 35%, var(--line));
    box-shadow: 0 0 22px color-mix(in srgb, var(--ev) 16%, transparent); }
.hev-date span { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ev); }
.hev-date b { font-size: 1.5rem; font-weight: 900; line-height: 1; }

.hev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hev-kind { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ev); }
.hev-count { font-size: 0.75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #f1f5f9; white-space: nowrap;
    background: color-mix(in srgb, var(--ev) 16%, rgba(255,255,255,0.05)); border: 1px solid color-mix(in srgb, var(--ev) 30%, transparent); font-variant-numeric: tabular-nums; }
.hev-card--first .hev-top .hev-count, .hev-card--first .hev-top .ev-live { margin-left: auto; }
.hev-card h3 { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the whole card opens the event on /events; the source chip stays clickable above it */
.hev-link { color: inherit; }
.hev-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.hev-link:focus-visible { outline: none; }
.hev-link:focus-visible::after { box-shadow: 0 0 0 2px var(--ev); }
.hev-when { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.84rem; color: #cdd5e3; }
.hev-where, .hev-tribe { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.hev-where::before { content: '·'; color: var(--muted); }
.hev-tribe .ev-tribe-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ev); box-shadow: 0 0 8px var(--ev); }
.hev-text { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; overflow-wrap: anywhere; }
.hev-src { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.hev-chip { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
    color: #fff; background: color-mix(in srgb, var(--ev) 12%, rgba(255,255,255,0.04)); border: 1px solid color-mix(in srgb, var(--ev) 32%, transparent); white-space: nowrap; transition: background 0.2s, box-shadow 0.2s; }
a.hev-chip:hover, a.hev-chip:focus-visible { background: color-mix(in srgb, var(--ev) 28%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--ev) 30%, transparent); }
.hev-chip img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.hev-src .hev-count, .hev-src .ev-live { margin-left: auto; }
.hev-go { font-weight: 900; color: var(--ev); opacity: 0.55; transition: transform 0.25s, opacity 0.25s; }
.hev-card:hover .hev-go { opacity: 1; transform: translateX(4px); }
.hev-card--first .hev-go { margin-left: auto; }

/* the soonest one: a wide ticket */
.hev-card--first { grid-column: 1 / -1; gap: 24px; padding: 26px 28px 22px; align-items: center;
    background: radial-gradient(70% 140% at 0% 0%, color-mix(in srgb, var(--ev) 20%, transparent), transparent 62%),
                radial-gradient(60% 120% at 100% 100%, rgba(249,115,22,0.10), transparent 60%), linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)); }
.hev-card--first::before { padding-top: 4px; }
.hev-card--first .hev-date { width: 86px; height: 94px; border-radius: 18px; }
.hev-card--first .hev-date span { font-size: 0.8rem; }
.hev-card--first .hev-date b { font-size: 2.3rem; }
.hev-card--first h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 900; -webkit-line-clamp: 2; }
.hev-card--first .hev-when { font-size: 0.95rem; }
.hev-card--first .hev-count { font-size: 0.9rem; padding: 5px 14px; }
.hev-flag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em;
    text-transform: uppercase; color: #1a0b00; background: linear-gradient(90deg, var(--orange), var(--gold)); box-shadow: 0 0 18px rgba(249,115,22,0.35); }
.hev-card--first.is-live .hev-flag { color: #052e16; background: linear-gradient(90deg, #22c55e, #86efac); box-shadow: 0 0 18px rgba(34,197,94,0.35); }
.hev-img { order: 3; flex: none; width: 240px; height: 140px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.hev-card--first .hev-body { gap: 8px; }


@media (max-width: 760px) {
    .hev-card--first { flex-wrap: wrap; gap: 16px; padding: 20px; }
    .hev-card--first .hev-date { width: 64px; height: 70px; }
    .hev-card--first .hev-date b { font-size: 1.7rem; }
    .hev-img { order: -1; width: 100%; height: 160px; }
    .hev-card--first .hev-body { flex-basis: calc(100% - 90px); }
}
@media (max-width: 420px) { .hev-card { padding: 16px 14px 14px; gap: 12px; } .hev-date { width: 52px; height: 58px; } .hev-card:not(.hev-card--first) .hev-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .hev-card, .hev-go { transition: none; } .hev-card:hover, .hev-card:focus-within { transform: none; } }
