/* BETMAGIC – the site shell in the "Aréna" design (templates/layout/*, includes/Layout.php):
   stadium background with floodlights and sparks, sticky game-menu top bar, page header,
   home sections, ticker, footer. Loaded only when the plugin draws the whole page. */

html { scroll-behavior: smooth; }
body.bm-arena { margin: 0; background: var(--bm-navy); color: var(--bm-text); font: 400 16px/1.55 var(--bm-body); -webkit-font-smoothing: antialiased; }
.bm-arena *, .bm-arena *::before, .bm-arena *::after { box-sizing: border-box; }
.bm-arena img { max-width: 100%; height: auto; }
.bm-arena a { color: var(--bm-cyan-soft); }
.bm-arena :focus-visible { outline: 3px solid var(--bm-cyan); outline-offset: 3px; }
.bm-arena section[id], .bm-arena [id="bm-main"] { scroll-margin-top: 84px; }

.bm-skip { position: absolute; z-index: 200; top: -60px; left: 16px; padding: 10px 16px; background: var(--bm-cyan); color: #031033 !important; font: 700 14px/1 var(--bm-hud); text-decoration: none; transition: top .2s; }
.bm-skip:focus { top: 12px; }

.bm-site { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
.bm-site__main { flex: 1 0 auto; outline: none; }
.bm-wrap { width: min(100% - 32px, var(--bm-container)); margin-inline: auto; }

/* ---------- Background: stadium, floodlights, sparks ---------- */
.bm-site__bg { position: fixed; inset: 0; z-index: -3; background: var(--bm-navy) url("../img/bm-stadium.webp") center 35% / cover no-repeat; }
.bm-site__bg::after {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(130% 80% at 50% 60%, rgba(4, 10, 34, .1) 0, rgba(4, 10, 34, .35) 55%, rgba(4, 10, 34, .85) 100%),
		linear-gradient(180deg, rgba(4, 10, 34, .45) 0, rgba(4, 10, 34, .1) 30%, rgba(4, 10, 34, .25) 70%, rgba(4, 10, 34, .65) 100%);
}
/* Inner pages: the photo stays further back, so long content reads well. */
body.bm-arena:not(.home) .bm-site__bg::after { background: linear-gradient(180deg, rgba(4, 10, 34, .55), rgba(4, 10, 34, .82) 40%, rgba(4, 10, 34, .9)); }
.bm-site__beams { position: fixed; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen; }
.bm-site__beams::before, .bm-site__beams::after {
	content: ""; position: absolute; top: -20%; width: 70vw; height: 140%;
	background: conic-gradient(from 180deg at 50% 0, transparent 0 168deg, rgba(160, 220, 255, .14) 176deg, rgba(160, 220, 255, .24) 180deg, rgba(160, 220, 255, .14) 184deg, transparent 192deg 360deg);
	filter: blur(6px); transform-origin: 50% 0;
	animation: bm-sweep 9s ease-in-out infinite alternate;
}
.bm-site__beams::before { left: -20vw; --r: 18deg; }
.bm-site__beams::after { right: -20vw; --r: -18deg; animation-delay: -4.5s; }
@keyframes bm-sweep { from { transform: rotate(calc(var(--r) * -1)); opacity: .55; } to { transform: rotate(var(--r)); opacity: 1; } }
.bm-site__sparks { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bm-site__sparks i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); opacity: 0; animation: bm-rise var(--d) linear var(--delay) infinite; }
@keyframes bm-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(var(--x), -110vh); opacity: 0; } }

/* ---------- Top bar ---------- */
.bm-topbar { position: sticky; top: 0; z-index: 50; padding: 12px 0; border-bottom: 1px solid var(--bm-line); background: linear-gradient(180deg, rgba(4, 10, 34, .94), rgba(4, 10, 34, .7)); backdrop-filter: blur(10px); }
.admin-bar .bm-topbar { top: 32px; }
.bm-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bm-topbar__brand { flex: 0 0 auto; text-decoration: none !important; }
.bm-topbar__account { display: flex; align-items: center; gap: 10px; }
.bm-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.bm-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bm-nav__list li { margin: 0; padding: 0; }
.bm-nav__list a, .bm-nav__list a:visited { position: relative; display: block; padding: 10px 14px 9px; color: var(--bm-muted); font: 700 14px/1 var(--bm-hud); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
.bm-nav__list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; transform: skewX(-20deg) scaleX(0); background: linear-gradient(90deg, var(--bm-cyan), var(--bm-pink)); transition: transform .25s; }
.bm-nav__list a:hover, .bm-nav__list .current-menu-item > a, .bm-nav__list a[aria-current="page"] { color: #fff; }
.bm-nav__list a:hover::after, .bm-nav__list .current-menu-item > a::after, .bm-nav__list a[aria-current="page"]::after { transform: skewX(-20deg) scaleX(1); }

/* ---------- Page header (inner pages) ---------- */
.bm-page-hero { padding: clamp(42px, 6vw, 80px) 0 clamp(26px, 3.5vw, 44px); text-align: center; }
.bm-page-hero .bm-wrap { display: grid; justify-items: center; gap: 12px; }
.bm-page-hero__title { font-size: clamp(50px, 8vw, 100px); overflow-wrap: anywhere; }
.bm-site__block { padding-bottom: clamp(56px, 7vw, 100px); }
.bm-site__actions { display: flex; justify-content: center; padding-bottom: 100px; }

/* Ordinary pages (ÁSZF …): readable text on a glass panel. */
.bm-prose { max-width: 900px; }
.bm-prose:not(:empty) { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--bm-line); border-radius: var(--bm-radius); background: linear-gradient(160deg, rgba(10, 22, 64, .86), rgba(4, 10, 34, .9)); margin-bottom: clamp(56px, 7vw, 100px); color: #dfe7ff; font-size: 17px; line-height: 1.7; }
.bm-prose > :first-child { margin-top: 0; }
.bm-prose :is(h2, h3, h4) { margin: 1.6em 0 .5em; color: #fff; font: 700 clamp(28px, 3vw, 38px)/1 var(--bm-display); letter-spacing: .02em; text-transform: uppercase; }
.bm-prose h3 { font-size: clamp(24px, 2.4vw, 30px); }
.bm-prose a { color: var(--bm-cyan-soft); }
.bm-prose :is(ul, ol) { padding-left: 1.3em; }
.bm-prose table { width: 100%; border-collapse: collapse; }
.bm-prose :is(th, td) { padding: 10px; border: 1px solid var(--bm-line); text-align: left; }
.bm-site__excerpt + .bm-site__excerpt { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--bm-line); }
.bm-site__excerpt h2 { margin-top: 0; }

/* ---------- Home ---------- */
.bm-home-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(60px, 8vw, 100px); }
.bm-home-hero .bm-section-head { margin-bottom: 0; }
.bm-live { display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border: 1px solid var(--bm-line); border-radius: 999px; background: rgba(4, 10, 34, .66); font: 700 13px/1 var(--bm-hud); letter-spacing: .14em; text-transform: uppercase; }
.bm-live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bm-red); box-shadow: 0 0 0 0 rgba(255, 59, 92, .7); animation: bm-pulse 1.6s infinite; }
@keyframes bm-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0); } }
.bm-live__clock { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--bm-gold); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.bm-h1 { margin: 0; padding-top: .12em; font: 700 clamp(52px, 7vw, 96px)/.82 var(--bm-display); letter-spacing: .005em; text-transform: uppercase; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.bm-h1 em { padding: .3em 0 .1em; font-style: normal; background: linear-gradient(90deg, var(--bm-cyan), #9fb4ff 45%, var(--bm-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bm-sec { position: relative; padding: clamp(52px, 6vw, 88px) 0; }

/* Ticker: the band and its text run at the same angle. */
.bm-ticker { position: relative; z-index: 2; width: 104%; margin-left: -2%; overflow: hidden; transform: rotate(-1.6deg); background: linear-gradient(90deg, var(--bm-violet), var(--bm-pink) 45%, var(--bm-blue)); box-shadow: 0 0 40px rgba(255, 63, 216, .35); }
.bm-ticker__track { display: flex; width: max-content; animation: bm-marquee 30s linear infinite; }
.bm-ticker__item { display: inline-flex; align-items: center; gap: 22px; padding: 14px 22px; color: #fff; font: 700 26px/1 var(--bm-display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.bm-ticker__item::after { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: #fff; }
@keyframes bm-marquee { to { transform: translateX(-50%); } }

/* ---------- Footer: CTA plate, four columns, bottom bar; a neon edge on top, an outlined word behind ---------- */
.bm-foot { position: relative; overflow: hidden; padding: 0 0 26px; background: radial-gradient(55% 90% at 0 0, rgba(63, 240, 255, .09), transparent 60%), radial-gradient(45% 90% at 100% 0, rgba(255, 63, 216, .09), transparent 60%), linear-gradient(180deg, #060e2e 0%, #030820 100%); }
.bm-foot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--bm-cyan) 18%, var(--bm-violet) 50%, var(--bm-pink) 82%, transparent); box-shadow: 0 0 18px rgba(123, 77, 255, .7); }
.bm-foot__mark { position: absolute; left: 50%; bottom: -.16em; transform: translateX(-50%); color: transparent; font: 700 clamp(120px, 21vw, 330px)/.8 var(--bm-display); letter-spacing: .03em; white-space: nowrap; -webkit-text-stroke: 1px rgba(120, 160, 255, .1); pointer-events: none; user-select: none; }
.bm-foot > .bm-wrap { position: relative; }

/* Call to action: a plate cut like the cards, with a neon rim. */
.bm-foot__cta { --plate: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px)); position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; margin-top: 60px; padding: 28px 36px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.bm-foot__cta::before, .bm-foot__cta::after { content: ""; position: absolute; z-index: -1; clip-path: var(--plate); }
.bm-foot__cta::before { inset: 0; background: linear-gradient(100deg, var(--bm-cyan), var(--bm-violet) 50%, var(--bm-pink)); }
.bm-foot__cta::after { inset: 1.5px; background: radial-gradient(60% 140% at 0 50%, rgba(63, 240, 255, .16), transparent 60%), radial-gradient(60% 140% at 100% 50%, rgba(255, 63, 216, .16), transparent 60%), linear-gradient(180deg, #0b1747, #070f33); }
.bm-foot__kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--bm-cyan-soft); font: 700 12px/1 var(--bm-hud); letter-spacing: .2em; text-transform: uppercase; }
.bm-foot__kicker i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d6a; box-shadow: 0 0 10px #ff4d6a; animation: bm-foot-pulse 1.6s ease-in-out infinite; }
@keyframes bm-foot-pulse { 50% { opacity: .35; } }
.bm-foot__cta-title { margin: 12px 0 0; padding-top: .08em; font: 700 clamp(32px, 3.4vw, 46px)/.9 var(--bm-display); letter-spacing: .01em; text-transform: uppercase; }
.bm-foot__cta-title em { padding: .3em 0 .1em; background: linear-gradient(90deg, var(--bm-cyan), var(--bm-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.bm-foot__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Columns */
.bm-foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 36px 44px; padding: 56px 0 44px; }
.bm-foot__brand { display: grid; justify-items: start; align-content: start; gap: 8px; }
.bm-foot__logo { text-decoration: none !important; }
.bm-foot__tagline { padding-left: 46px; color: var(--bm-muted); font: 700 10px/1 var(--bm-hud); letter-spacing: .34em; }
.bm-foot__about { max-width: 330px; margin: 14px 0 0; color: #b4c2e6; font-size: 14.5px; line-height: 1.65; }
.bm-foot__title { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; padding: 0; color: #fff; font: 700 13px/1 var(--bm-hud); letter-spacing: .22em; text-transform: uppercase; }
.bm-foot__title::before { content: ""; width: 16px; height: 3px; transform: skewX(-24deg); background: linear-gradient(90deg, var(--bm-cyan), var(--bm-pink)); box-shadow: 0 0 8px rgba(63, 240, 255, .6); }
.bm-foot__menu { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bm-foot__menu li { margin: 0; padding: 0; }
.bm-foot__menu a, .bm-foot__menu a:visited { display: inline-flex; align-items: center; gap: 10px; padding: 7px 0; color: #c9d4f2; font: 600 15px/1.2 var(--bm-body); text-decoration: none; transition: color .2s, transform .2s; }
.bm-foot__menu a::before { content: ""; width: 6px; height: 6px; border-top: 2px solid var(--bm-cyan); border-right: 2px solid var(--bm-cyan); transform: rotate(45deg); opacity: .45; transition: opacity .2s; }
.bm-foot__menu a:hover, .bm-foot__menu .current-menu-item > a { color: #fff; transform: translateX(3px); }
.bm-foot__menu a:hover::before, .bm-foot__menu .current-menu-item > a::before { opacity: 1; }
/* 18+: a red hexagon, like the logo's mark. */
.bm-foot__rg { display: flex; align-items: center; gap: 14px; margin: 0; color: #c9d4f2; font-size: 14px; line-height: 1.5; }
.bm-foot__rg b { display: grid; flex: none; place-items: center; width: 54px; height: 48px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: linear-gradient(160deg, #ff7088, #d4183f 60%, #8f0d2a); color: #fff; font: 700 21px/1 var(--bm-display); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.bm-foot__legal { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid rgba(255, 77, 106, .7); background: linear-gradient(90deg, rgba(255, 77, 106, .1), transparent); color: #c9d4f2; font-size: 13px; font-weight: 600; line-height: 1.55; }

/* Bottom bar */
.bm-foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid rgba(120, 160, 255, .14); }
.bm-foot__copy { margin: 0; color: #7f8db5; font-size: 13px; }
.bm-foot__credit { white-space: nowrap; }
.bm-foot__credit::before { content: "·"; margin: 0 8px; }
.bm-foot__credit a, .bm-foot__credit a:visited { color: #b4c2e6; font-weight: 700; text-decoration: none; transition: color .2s; }
.bm-foot__credit a:hover { color: var(--bm-gold); }
.bm-foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font: 700 12px/1 var(--bm-hud); letter-spacing: .12em; text-transform: uppercase; }
.bm-foot__links a, .bm-foot__links a:visited { color: #9fb0da; text-decoration: none; transition: color .2s; }
.bm-foot__links a:hover { color: #fff; }
.bm-foot__links .bm-foot__top { display: grid; place-items: center; width: 42px; height: 42px; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); background: linear-gradient(160deg, var(--bm-cyan), var(--bm-blue)); transition: transform .2s, filter .2s; }
.bm-foot__top::before { content: ""; width: 10px; height: 10px; margin-top: 5px; border-top: 3px solid #031033; border-left: 3px solid #031033; transform: rotate(45deg); }
.bm-foot__links .bm-foot__top:hover { transform: translateY(-3px); filter: brightness(1.15); }

@media (max-width: 1024px) {
	.bm-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-foot__brand, .bm-foot__safe { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
	.bm-foot__cta { flex-direction: column; align-items: stretch; margin-top: 40px; padding: 26px 22px; text-align: center; }
	.bm-foot__cta-actions { display: grid; grid-template-columns: 1fr; }
	.bm-foot__cta-actions .bm-button { padding-inline: 12px; }
	.bm-foot__grid { gap: 32px 20px; padding: 44px 0 36px; }
	.bm-foot__brand { justify-items: center; text-align: center; }
	.bm-foot__about { margin-inline: auto; }
	.bm-foot__tagline { padding-left: 0; }
	.bm-foot__bottom { flex-direction: column-reverse; text-align: center; }
	.bm-foot__links { justify-content: center; }
	.bm-foot__credit { display: block; margin-top: 6px; }
	.bm-foot__credit::before { content: none; }
}

/* ---------- Reveal on scroll (assets/js/arena.js) ---------- */
.bm-js [data-bm-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.bm-js [data-bm-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Phones ---------- */
@media (max-width: 1024px) {
	.bm-nav { display: none; }
	.bm-topbar__secondary { display: none; }
}
@media (min-width: 1025px) {
	.bm-topbar .bm-mobile-menu { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .bm-topbar { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .bm-topbar { top: 0; }
}
@media (max-width: 720px) {
	.bm-topbar__account .bm-button--sm { padding-inline: 14px; }
	.bm-ticker__item { font-size: 22px; }
}
@media (max-width: 400px) {
	.bm-topbar__account .bm-button--sm { padding-inline: 10px; font-size: 13px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bm-site__beams::before, .bm-site__beams::after, .bm-ticker__track, .bm-live__dot, .bm-foot__kicker i { animation: none; }
	.bm-js [data-bm-reveal] { opacity: 1; transform: none; transition: none; }
}
