/* [bm_groups] – scoped to .bm-groups. Four special game cards (blue; the featured one gold
   with a ribbon) holding the price, focus, tips a day, days and benefits; the earlier price
   struck through with a badge. Name, description, track record and the button under each;
   "3 lépés" step tiles below. The cards grow with their content; in a row they are equally tall. */

.bm-groups { width: 100%; color: #fff; font-family: var(--bm-body); }
.bm-groups *, .bm-groups *::before, .bm-groups *::after { box-sizing: border-box; }
.bm-groups :is(h3, p, ul, ol, li) { margin: 0; padding: 0; }
.bm-groups :is(ul, ol) { list-style: none; }

.bm-groups__head { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: clamp(40px, 5vw, 64px) !important; color: var(--bm-muted); font: 700 13px/1.4 var(--bm-hud); letter-spacing: .12em; text-transform: uppercase; text-align: center; text-shadow: var(--bm-halo); }
.bm-groups__head span + span::before { content: "◆"; margin-right: 22px; color: var(--bm-cyan); }
.bm-groups__head strong { color: var(--bm-cyan-soft); }

.bm-groups__grid { --gap: clamp(16px, 2.4vw, 32px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: var(--gap); }
/* Fewer than four groups: as many columns, centred. */
.bm-groups__grid[data-count="1"] { grid-template-columns: minmax(0, 300px); justify-content: center; }
.bm-groups__grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
.bm-groups__grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; }
.bm-squad { display: grid; justify-items: center; align-content: start; gap: 14px; min-width: 0; text-align: center; }
@supports (grid-template-rows: subgrid) {
	.bm-groups__grid { row-gap: 0; }
	.bm-squad { grid-row: span 5; grid-template-rows: subgrid; align-items: start; row-gap: 14px; }
	.bm-squad > .bm-sq { align-self: stretch; }
	/* The panel spans the last four rows, so its parts still line up across the cards. */
	.bm-squad__base { grid-row: span 4; grid-template-rows: subgrid; align-self: stretch; }
	.bm-squad__cta { align-self: end; }
}
/* More than four (desktop): one row to scroll through – four cards in full size, a sliver of the
   next one showing; arrows under it (assets/js/arena.js), swipe / trackpad too. */
@media (min-width: 1025px) {
	.bm-groups__grid.is-rail { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(5, auto); grid-auto-columns: calc((100% - 3 * var(--gap)) / 4.25); justify-content: start; margin-top: -40px; padding: 40px 2px 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.bm-groups__grid.is-rail::-webkit-scrollbar { display: none; }
	.bm-groups__grid.is-rail > .bm-squad { scroll-snap-align: start; }
	.bm-groups__grid.is-rail:not(.is-end) { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 110px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 110px), transparent); }
	.bm-groups__grid.is-rail.is-scrolled { -webkit-mask: linear-gradient(90deg, transparent, #000 70px); mask: linear-gradient(90deg, transparent, #000 70px); }
	.bm-groups__grid.is-rail.is-scrolled:not(.is-end) { -webkit-mask: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 110px), transparent); mask: linear-gradient(90deg, transparent, #000 70px, #000 calc(100% - 110px), transparent); }
}
.bm-groups__nav { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.bm-groups__nav[hidden] { display: none; }
.bm-groups .bm-groups__arrow,
.bm-groups .bm-groups__arrow:is(:hover, :focus, :active) { display: grid; place-items: center; width: 56px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); background: linear-gradient(100deg, rgba(63, 240, 255, .35), rgba(29, 107, 255, .5)); color: #fff; box-shadow: none; cursor: pointer; transition: background .2s, color .2s; }
.bm-groups .bm-groups__arrow:hover { background: var(--bm-cyan); color: #031033; }
.bm-groups .bm-groups__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bm-groups__arrow::before { content: ""; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 11px solid currentColor; }
.bm-groups__arrow--next::before { transform: scaleX(-1); }
.bm-squad.is-featured { transform: translateY(-24px); }

/* ---------- The card ---------- */
.bm-sq { position: relative; display: grid; width: 100%; max-width: 290px; min-height: 380px; margin-bottom: 6px; perspective: 900px;
	--notch: polygon(0 26px, 36px 26px, 60px 0, calc(100% - 60px) 0, calc(100% - 36px) 26px, 100% 26px, 100% calc(100% - 46px), 50% 100%, 0 calc(100% - 46px));
	--rim: linear-gradient(160deg, #6fe9ff, #1d6bff 40%, #0a2a8a 70%, #59d6ff);
	--face: radial-gradient(120% 70% at 80% 0, rgba(63, 240, 255, .35), transparent 55%), linear-gradient(165deg, #1149d6 0%, #0a2c93 45%, #061a5c 100%);
	--glow: rgba(29, 107, 255, .55); --accent: var(--bm-cyan); --bar: linear-gradient(90deg, var(--bm-cyan), var(--bm-blue)); }
.bm-sq--star { --rim: linear-gradient(160deg, #fff3b8, var(--bm-gold) 35%, #8a5a10 70%, #ffe28a);
	--face: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .9) 0 1.5px, transparent 2px) 0 0 / 46px 46px, radial-gradient(circle at 70% 60%, rgba(255, 230, 150, .9) 0 1.2px, transparent 2px) 0 0 / 58px 58px, radial-gradient(120% 80% at 50% 0, #6b3cff 0, #2a0f8f 45%, #0d0640 100%);
	--glow: rgba(123, 77, 255, .7); --accent: var(--bm-gold); --bar: linear-gradient(90deg, #fff1b0, var(--bm-gold)); }
.bm-sq__tilt { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .25s ease-out; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 24px var(--glow)); }
.bm-sq__shape, .bm-sq__face { position: absolute; clip-path: var(--notch); }
.bm-sq__shape { inset: 0; background: var(--rim); }
.bm-sq__face { inset: 7px; overflow: hidden; background: var(--face); }
.bm-sq__face::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%); transform: translateX(-60%); animation: bm-sq-shine 5s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes bm-sq-shine { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
/* Content in the flow: the card is as tall as it needs; the bottom padding keeps it above the point. */
.bm-sq__body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0; height: 100%; padding: 40px 22px 62px; }
.bm-sq__state { justify-content: center; font-size: 10px; }
.bm-sq__top { margin-top: 10px; color: var(--accent); font: 700 clamp(14px, 1.2vw, 16px)/1.1 var(--bm-hud); letter-spacing: .18em; text-transform: uppercase; overflow-wrap: anywhere; }
.bm-sq__price { display: grid; justify-items: center; gap: 4px; margin-top: 14px; }
.bm-sq__price strong { font: 700 clamp(42px, 4.2vw, 58px)/.8 var(--bm-display); text-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.bm-sq__price span { color: var(--bm-muted); font: 700 12px/1 var(--bm-hud); letter-spacing: .2em; }
.bm-sq__bar { flex: none; width: 76%; height: 5px; margin-top: 14px; transform: skewX(-20deg); background: var(--bar); box-shadow: 0 0 14px var(--accent); }
.bm-sq__old { min-height: 30px; margin-top: 8px; color: rgba(255, 255, 255, .78); font: 700 clamp(24px, 2.2vw, 30px)/1 var(--bm-display); }
.bm-sq__old s { text-decoration-thickness: 3px; text-decoration-color: var(--bm-red); }
.bm-sq__old--label { color: var(--bm-gold); letter-spacing: .06em; text-transform: uppercase; }
/* The group's focus (odds, stake, sports): a highlighted plate, room for two lines in every card. */
.bm-sq__focus { display: grid; place-items: center; width: 100%; min-height: 54px; margin-top: 8px !important; padding: 8px 10px !important; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(4, 10, 34, .35)); box-shadow: inset 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent); }
.bm-sq__focus span { color: #fff; font: 700 13px/1.3 var(--bm-hud); letter-spacing: .08em; text-transform: uppercase; text-wrap: balance; }
.bm-sq__stats { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; width: 100%; margin-top: 14px !important; }
.bm-sq__stats li { display: grid; justify-items: center; gap: 3px; color: var(--bm-muted); font: 700 11px/1 var(--bm-hud); letter-spacing: .12em; text-transform: uppercase; }
.bm-sq__stats li + li { border-left: 1px solid rgba(255, 255, 255, .2); }
.bm-sq__stats b { color: #fff; font: 700 28px/.9 var(--bm-display); letter-spacing: .02em; }
.bm-sq__benefits { display: grid; gap: 7px; width: 100%; margin-top: 16px !important; padding-top: 14px !important; border-top: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.bm-sq__benefits li { position: relative; padding-left: 22px !important; color: #e6edff; font-size: 13.5px; line-height: 1.35; }
.bm-sq__benefits li::before { content: ""; position: absolute; top: 2px; left: 0; width: 14px; height: 14px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.bm-sq__badge { position: absolute; z-index: 4; top: 1%; right: -6%; display: grid; place-items: center; width: 74px; aspect-ratio: 1; clip-path: polygon(50% 0, 61% 18%, 82% 10%, 80% 32%, 100% 40%, 85% 55%, 96% 75%, 74% 76%, 68% 98%, 50% 85%, 32% 98%, 26% 76%, 4% 75%, 15% 55%, 0 40%, 20% 32%, 18% 10%, 39% 18%); background: linear-gradient(160deg, #fff27a, #ffb800); color: #2a1400; font: 700 24px/1 var(--bm-display); transform: rotate(10deg); animation: bm-bob 2.6s ease-in-out infinite; }
@keyframes bm-bob { 50% { transform: rotate(10deg) translateY(-6px) scale(1.04); } }
.bm-sq__ribbon { position: absolute; z-index: 5; top: -14px; left: 50%; padding: 7px 16px; transform: translateX(-50%); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); background: linear-gradient(90deg, var(--bm-pink), var(--bm-violet)); color: #fff; font: 700 12px/1 var(--bm-hud); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Under the card: a plate in the card's metal, cut like the card, a notch under its point ---------- */
.bm-squad { --tone: var(--bm-cyan); }
.bm-squad.is-featured { --tone: var(--bm-gold); }
.bm-squad__base { --plate: polygon(0 16px, 16px 0, calc(50% - 30px) 0, 50% 14px, calc(50% + 30px) 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px)); position: relative; isolation: isolate; display: grid; justify-items: center; align-content: start; row-gap: 12px; width: 100%; max-width: 290px; padding: 32px 18px 24px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 16px var(--glow));
	--rim: linear-gradient(160deg, #6fe9ff, #1d6bff 40%, #0a2a8a 70%, #59d6ff); --glow: rgba(29, 107, 255, .45);
	--face: radial-gradient(120% 60% at 50% 0, rgba(63, 240, 255, .2), transparent 60%), linear-gradient(170deg, #0c2f8c 0%, #081d5c 50%, #051238 100%); }
.bm-squad.is-featured .bm-squad__base { --rim: linear-gradient(160deg, #fff3b8, var(--bm-gold) 35%, #8a5a10 70%, #ffe28a); --glow: rgba(123, 77, 255, .55);
	--face: radial-gradient(120% 60% at 50% 0, rgba(246, 196, 83, .18), transparent 60%), linear-gradient(170deg, #3b1fae 0%, #210c78 50%, #0e0540 100%); }
.bm-squad__base::before, .bm-squad__base::after { content: ""; position: absolute; z-index: -1; clip-path: var(--plate); }
.bm-squad__base::before { inset: 0; background: var(--rim); }
.bm-squad__base::after { inset: 2px; background: var(--face); }

.bm-squad__name { font: 700 clamp(30px, 2.8vw, 38px)/.9 var(--bm-display); text-transform: uppercase; overflow-wrap: anywhere; }
.bm-squad__name small { display: block; margin-top: 6px; color: var(--tone); font: 700 11px/1.4 var(--bm-hud); letter-spacing: .22em; }
.bm-squad__desc { color: #e6edff; font-size: 15px; line-height: 1.5; }
.bm-groups .bm-squad__record { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(52, 211, 153, .4); border-radius: 999px; background: rgba(0, 0, 0, .3); color: #a5f5d3; font: 700 12px/1.3 var(--bm-hud); letter-spacing: .04em; }
.bm-groups .bm-squad__record::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8M15 7h6v6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8M15 7h6v6'/%3E%3C/svg%3E") center / contain no-repeat; }
.bm-squad__cta { display: grid; justify-items: center; gap: 8px; width: 100%; }
.bm-squad__link, .bm-squad__link:visited { color: var(--bm-cyan-soft); font: 700 13px/1 var(--bm-hud); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.bm-squad__link:hover { color: #fff; }
.bm-squad__detail { color: #b4c2e6; font-size: 13px; }

.bm-groups__note { max-width: 720px; margin: 40px auto 0 !important; color: var(--bm-muted); font-size: 14px; text-align: center; text-shadow: var(--bm-halo); }

/* ---------- Steps ---------- */
.bm-groups__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 6vw, 80px) !important; counter-reset: none; }
.bm-step { position: relative; display: grid; gap: 8px; padding: 26px !important; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); background: linear-gradient(160deg, rgba(29, 107, 255, .28), rgba(4, 10, 34, .78)); box-shadow: inset 0 0 0 1px var(--bm-line); }
.bm-step__no { color: transparent; font: 700 64px/.8 var(--bm-display); -webkit-text-stroke: 1.5px var(--bm-cyan); }
.bm-step strong { margin-top: 6px; font: 700 30px/.9 var(--bm-display); text-transform: uppercase; }
.bm-step p { color: var(--bm-muted); font-size: 15px; line-height: 1.5; }

@media (max-width: 1024px) {
	.bm-groups__grid, .bm-groups__grid[data-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
	.bm-squad, .bm-squad__base { grid-row: auto; grid-template-rows: none; }
	.bm-squad.is-featured { transform: none; }
	.bm-groups__steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.bm-groups__grid, .bm-groups__grid[data-count] { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
	.bm-sq, .bm-squad__base { max-width: 320px; }
	.bm-sq__badge { width: 62px; right: -3%; font-size: 21px; }
	.bm-groups__head span + span::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.bm-sq__face::after, .bm-sq__badge { animation: none; }
	.bm-sq__tilt { transition: none; }
}
