/* Beltchecker Brackets: the tournament website's hero and Event tab (bk.php, functions_brackets_hero.php), on top of
   bk-site.css. Christian, 3 Dec 2026: "It looks deadly boring. The top poster is cropped so you can hardly see it."
   The whole poster at its own ratio on a blurred, darkened copy of itself (the 400 px thumbnail, never animated), the
   facts, Sign up and Share, a countdown; a strip of real numbers; the venue on a map. Nothing changes size on hover. */

/* ---------------------------------------------------------------- hero */
.evh { min-height: 0; padding: 40px; border-radius: 30px; align-items: center; background: #0b0b12; --c1: #6d5cf0; --c2: #03c3e3; }
.evh .evh-blur, .ev-hero-sm .evh-blur { inset: -60px; background-size: cover; background-position: center; filter: blur(46px) saturate(1.9) brightness(0.6); transform: none; animation: none; scale: 1; }
.evh .evh-blur.none, .ev-hero-sm .evh-blur.none { inset: 0; filter: none;
  background: radial-gradient(70% 90% at 12% 18%, color-mix(in srgb, var(--c1) 85%, transparent), transparent 62%),
    radial-gradient(60% 80% at 92% 25%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 60%),
    radial-gradient(80% 70% at 50% 110%, rgba(176, 74, 192, 0.55), transparent 60%), #0b0b12; }
.evh::after { background: radial-gradient(120% 100% at 30% 40%, transparent 30%, rgba(0, 0, 0, 0.42)), linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)); }
.evh-in { display: grid; grid-template-columns: minmax(0, var(--pw, 44%)) minmax(0, 1fr); gap: 44px; align-items: center; }
.evh-wide .evh-in { --pw: 57%; }
.evh-square .evh-in { --pw: 44%; }
.evh-tall .evh-in { --pw: 36%; }
.evh-none .evh-in { grid-template-columns: 220px minmax(0, 1fr); }
.evh-none .evh-in:not(:has(.evh-logo)) { grid-template-columns: minmax(0, 1fr); }
.evh-poster { margin: 0; display: flex; justify-content: center; }
.evh-poster img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(74vh, 700px); border-radius: 18px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 90px -12px color-mix(in srgb, var(--c1) 70%, transparent); }
.evh-logo { display: grid; place-items: center; }
.evh-logo img { width: 200px; height: 200px; border-radius: 40px; object-fit: cover; background: #fff; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 0 80px -10px color-mix(in srgb, var(--c1) 75%, transparent); }
.evh-info { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.evh .evh-host { display: inline-flex; max-width: 100%; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12px; letter-spacing: 0.1em; }
.evh .evh-host:not(:has(img)) { padding-left: 14px; }
.evh .evh-host img { width: 28px; height: 28px; border-radius: 50%; }
.evh .evh-host span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evh h1 { margin: 0; font-size: clamp(34px, 3.9vw, 58px); line-height: 1.02; max-width: 18ch; }
.evh h1 a { color: inherit; text-decoration: none; }
.evh-cd { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 8px 12px; border-radius: 999px; font-weight: 750; font-size: 15px; text-decoration: none; color: #fff;
  background: color-mix(in srgb, var(--c1) 38%, rgba(255, 255, 255, 0.08)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.evh-cd i { width: 9px; height: 9px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.2); }
.evh-cd.is-live { background: rgba(239, 68, 68, 0.28); }
.evh-cd.is-live i { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3); animation: evh-pulse 1.4s ease-in-out infinite; }
.evh-cd.is-after i { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25); }
@keyframes evh-pulse { 50% { opacity: 0.35; } }
.evh-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 17px; font-weight: 600; }
.evh-facts li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.evh-facts svg, .evh-share svg, .ev-venue .btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.evh-facts svg { opacity: 0.75; margin-top: 2px; }
.evh-facts a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.evh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.evh-chips span { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.13); font-weight: 650; font-size: 14px; }
.evh-chips .evh-price { background: rgba(255, 255, 255, 0.94); color: #0b0b12; font: 800 15px var(--mono); letter-spacing: -0.01em; }
.evh-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.evh .evh-go { min-width: 180px; background: #fff; color: #0b0b12; border: 0; box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--c1) 90%, transparent); }
.evh .evh-go:hover { filter: none; background: #f1f1f6; }
.evh .evh-share { min-height: 56px; padding: 0 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; font-size: 16px; }
.evh .evh-share:hover { background: rgba(255, 255, 255, 0.2); }

/* social proof: real numbers only */
.evh-proof { list-style: none; margin: 14px 0 4px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.evh-proof li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.evh-proof b { font: 800 18px var(--mono); color: var(--ink); }
.evh-proof a { color: var(--ink); text-decoration: none; }

@media (max-width: 860px) {
  .evh { padding: 16px 16px 22px; border-radius: 24px; }
  .evh .evh-blur { inset: -40px; }
  .evh-in, .evh-none .evh-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .evh-poster img { max-height: 75vh; border-radius: 14px; }
  .evh-logo img { width: 128px; height: 128px; border-radius: 28px; }
  .evh-info { gap: 12px; padding: 0 4px; }
  .evh h1 { font-size: clamp(28px, 8.4vw, 38px); }
  .evh-facts { font-size: 15.5px; }
  .evh-cta { width: 100%; display: grid; grid-template-columns: 1fr auto; }
  .evh .evh-go { min-width: 0; }
  .evh-cta .ev-getapp { min-width: 0; }
  .evh-proof { justify-content: flex-start; margin-top: 12px; }
  .evh-proof li { padding: 6px 12px; font-size: 13px; }
  .evh-proof b { font-size: 16px; }
}

/* the subpages' compact hero: the whole poster as a tile on its blurred colours */
.ev-hero-sm::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15)); }
.ev-hero-sm.has-poster .ev-hero-in { align-items: center; justify-content: flex-start; }
.ev-hero-sm.has-poster .ev-hero-in > .evs-txt { flex: 1 1 auto; }
.evs-poster { flex: none; display: block; line-height: 0; }
.evs-poster img { height: 150px; width: auto; max-width: 260px; border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1); }
@media (max-width: 760px) {
  .ev-hero-sm.has-poster .ev-hero-in { display: block; }
  .evs-poster { display: inline-block; margin-bottom: 10px; }
  .evs-poster img { height: 72px; max-width: 150px; border-radius: 9px; }
  .ev-hero-sm.has-poster .evs-txt { min-width: 0; }
  .ev-hero-sm .ev-facts { flex-wrap: wrap; }
  .ev-hero-sm .ev-facts span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------------------------------------------------------------- the Event tab */
.ev-tagline.ev-lead { margin: 22px 4px 20px; max-width: 46ch; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }

/* Find your name, lighter on the Event tab */
.ev-times.is-lite { background: var(--card); border-color: var(--line); gap: 10px; padding: 16px 18px; }
.ev-times.is-lite h2 { font-size: 17px; margin: 0; }
.ev-times.is-lite .tm-head p { display: none; }
.ev-times.is-lite .tm-find input { min-height: 48px; font-size: 16px; }
@media (min-width: 861px) { .ev-times.is-lite:not(.is-picked) { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; } .ev-times.is-lite .tm-out, .ev-times.is-lite .tm-note { grid-column: 1 / -1; } }

/* cards: the heading as a quiet label, the content first */
.ev-grid .card > h2, .ev-venue-in > h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Entry: today's price big, the deadline as a chip */
.ev-bigprice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.ev-bigprice b { font: 800 clamp(36px, 4vw, 46px) var(--mono); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.ev-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--cyan) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 40%, transparent); }
.ev-entry .ev-price { margin-bottom: 10px; }
.ev-entry .ev-price .p { padding: 10px 14px; border-radius: 12px; }
.ev-entry .ev-price .p b { font-size: 18px; }
.ev-small { font-size: 14px; margin: 6px 0 0; }

/* Venue: a map with a pin over the address */
.ev-venue.has-map { padding: 0; overflow: hidden; }
.ev-venue-in { min-width: 0; }
.ev-venue.has-map .ev-venue-in { padding: 18px 20px 20px; }
.ev-map { position: relative; z-index: 0; height: 230px; background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 12%, var(--card-2)), var(--card-2)); border-bottom: 1px solid var(--line); }
.ev-map.is-failed { display: none; }
.ev-map.leaflet-container { font-family: inherit; background: var(--card-2); }
.ev-map .bc-minimap-pin { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 34'%3E%3Cpath d='M13 33s11-10.2 11-19.5A11 11 0 0 0 2 13.5C2 22.8 13 33 13 33z' fill='%236d5cf0' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='13' cy='13' r='4.2' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.ev-map .bc-minimap-pin i { display: none; }
.ev-venue .addr { font-size: 16px; line-height: 1.45; }
.ev-venue .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-venue .btns .btn { min-height: 46px; }
@media (max-width: 860px) { .ev-venue.has-map .ev-venue-in { padding: 16px; } .ev-venue .btns { display: grid; grid-template-columns: 1fr 1fr; } }

/* Good to know as icon rows */
.ev-know { gap: 0; }
.ev-know .ev-k { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.ev-know h2 + .ev-k { border-top: 0; padding-top: 0; }
.ev-kico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); color: var(--ink); }
.ev-kico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-k > div { min-width: 0; padding-top: 1px; }
/* the street tiles in dark mode: the same map, inverted to the page's darkness */
html[data-theme="dark"] .ev-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.7); }
.ev-map .leaflet-control-zoom a { color: #0b0b12; }
html[data-theme="dark"] .ev-map .leaflet-control-attribution { background: rgba(12, 12, 18, 0.7); color: #c8c8d4; }

/* the sticky sign-up bar on phones: "Sign up · USD 40" always fits, the name gives way */
.ev-bar > div { min-width: 0; flex: 1 1 auto; }
.ev-bar b, .ev-bar small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-bar .btn.go { flex: none; background: #fff; color: #0b0b12; min-height: 46px; padding: 0 16px; }
