/*
Theme Name: BoomBall
Theme URI: https://wpbeehive.com/
Author: WPBeeHive
Description: The BoomBall site in one package: the game, player accounts (log in, sign up with email verification, profiles), seasons, tournaments, stats and leaderboards, plus a dark, mobile-first site for news and pages. Settings live under BoomBall in the dashboard.
Version: 1.34.31
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: boomball
Tags: dark, one-column, custom-logo, custom-menu, featured-images, threaded-comments, wide-blocks
*/

:root {
	--ink: #0e0c17; --ink-2: #141226; --panel: #1b1830; --line: rgba(236, 228, 255, .14);
	--text: #ece8f6; --muted: #a99fc4; --gold: #ffd36b; --fuse: #f25c05; --fuse-hi: #ff7d1f; --fuse-d: #7a2600; --blood: #c8352a; --good: #8fe07c;
	--f-display: "Grenze Gotisch", "Palatino Linotype", Georgia, serif;
	--f-body: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
	--wrap: 1200px; --narrow: 780px; --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-padding-top: 116px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 18px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.1; color: #fff; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 32px, var(--narrow)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(180deg, #ff7d1f 0%, #f25c05 55%, #d9480a 100%); color: #fff; text-shadow: 0 1px 0 rgba(90, 24, 0, .55); font: 800 1.05rem/1 var(--f-body); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; padding: 14px 24px; border-radius: 12px; border: 0; box-shadow: 0 4px 0 var(--fuse-d), 0 10px 30px rgba(242, 92, 5, .35), inset 0 1px 0 rgba(255, 220, 180, .35); cursor: pointer; transition: transform .1s, box-shadow .1s, background .15s; }
.btn:hover { background: linear-gradient(180deg, #ff9136 0%, #ff6a12 55%, #e8540c 100%); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--fuse-d); }
.btn-lg { font-size: 1.2rem; padding: 18px 32px; }
.btn-sm { font-size: .85rem; padding: 9px 14px; box-shadow: 0 3px 0 var(--fuse-d); }
.btn-ghost { background: rgba(14, 12, 23, .6); color: var(--text); border: 2px solid var(--fuse); box-shadow: none; text-shadow: none; }
.btn-ghost:hover { background: rgba(255, 122, 26, .15); color: #fff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 12, 23, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 100px; }
.site-logo { flex: none; display: block; padding: 6px 0; } /* never squeezed: the whole logo always shows */
.site-logo img { display: block; height: 84px; width: auto; max-width: none; object-fit: contain; }
.nav-panel { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .92rem; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--gold); background: rgba(255, 255, 255, .05); }
.main-nav .menu-play > a { color: var(--fuse-hi); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; flex-direction: column; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.acct { display: flex; align-items: center; gap: 10px; }
.acct-link { color: var(--text); font-weight: 700; text-decoration: none; padding: 8px 6px; }
.acct-me { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px; max-width: 220px; }
.acct-me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-me:hover { border-color: var(--gold); color: #fff; }
/* the account menu under the name badge */
.acct-menu { position: relative; }
.acct-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.acct-menu > summary::-webkit-details-marker { display: none; }
.acct-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; margin-left: 2px; transition: transform .15s; }
.acct-menu[open] .acct-caret { transform: rotate(180deg); }
.acct-menu[open] > summary { border-color: var(--gold); color: #fff; }
.acct-drop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; display: flex; flex-direction: column; padding: 6px; background: #141022; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, .55); z-index: 60; }
.acct-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.acct-drop a:hover, .acct-drop a:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; outline: none; }
.acct-drop .acct-out { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: #ff9a7a; }
@media (max-width: 900px) { .acct-drop { position: static; margin-top: 8px; box-shadow: none; } }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 12px; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, top .2s; content: ""; }
.nav-toggle .bars { top: 22px; } .nav-toggle .bars::before { top: -7px; left: 0; } .nav-toggle .bars::after { top: 7px; left: 0; }
.nav-open .nav-toggle .bars { background: transparent; } .nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); } .nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 900px) {
	.header-in { min-height: 76px; }
	.site-logo img { height: 62px; }
	.nav-toggle { display: block; }
	.nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-2); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px 18px; max-height: calc(100vh - 64px); overflow-y: auto; }
	.nav-open .nav-panel { display: flex; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 14px 12px; font-size: 1.05rem; }
	.main-nav .sub-menu { display: flex; position: static; border: 0; background: none; padding: 0 0 0 14px; }
	.acct { padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
}

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero) center / cover no-repeat; filter: saturate(1.1); transform: scale(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 35%, rgba(14, 12, 23, .55), rgba(14, 12, 23, .92) 70%), linear-gradient(180deg, rgba(14, 12, 23, .2), var(--ink) 98%); }
.hero-logo { width: min(560px, 88vw); height: auto; filter: drop-shadow(0 14px 40px rgba(0, 0, 0, .6)); margin: 0 auto 10px; display: block; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); text-shadow: 0 4px 24px rgba(0, 0, 0, .6); margin-bottom: .25em; }
.hero .lede { max-width: 680px; margin: 0 auto 28px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #e2dcf0; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 0; margin: 34px 0 0; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.hero-stats b { display: block; font: 800 2rem/1 var(--f-display); color: var(--gold); letter-spacing: 0; }

/* sections */
.sec { padding: clamp(48px, 7vw, 84px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 24px; }
.sec-head h2 { margin: 0; }
.kicker { margin: 0 0 6px; color: var(--fuse-hi); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }
.kicker a { color: inherit; text-decoration: none; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.sub-h { font-size: 1.3rem; margin: 28px 0 12px; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat { background: linear-gradient(160deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.feat .ico { font-size: 2rem; display: block; margin-bottom: 10px; }
.feat h3 { font-size: 1.5rem; }
.feat p { color: var(--muted); margin: 0; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.shots img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); display: block; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 640px) {
	.shots { grid-template-columns: 1fr; } .shots img + img { display: none; }
	.feat { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 18px 16px; }
	.feat .ico { grid-row: span 2; font-size: 1.8rem; margin: 0; } .feat h3 { font-size: 1.3rem; margin-bottom: 4px; } .feat p { font-size: .98rem; }
	.team-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.team-card { padding: 14px 12px; } .team-card .bbp-crest { width: 48px; } .team-card .q { width: 48px; height: 56px; font-size: 2rem; }
	.team-card h3 { font-size: 1.1rem; } .team-card p { font-size: .85rem; line-height: 1.35; } .team-card::after { display: none; }
}

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.team-card { position: relative; overflow: hidden; background: linear-gradient(150deg, color-mix(in srgb, var(--tc) 55%, var(--ink-2)), var(--ink-2) 75%); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.team-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--ts); opacity: .08; }
.team-card h3 { font-size: 1.4rem; margin: 10px 0 6px; }
.team-card p { color: #d6cfe6; font-size: .98rem; margin: 0; }
.team-card .bbp-crest { display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.team-card.secret { background: repeating-linear-gradient(45deg, var(--ink-2), var(--ink-2) 12px, #17142a 12px, #17142a 24px); }
.team-card .q { display: grid; place-items: center; width: 72px; height: 84px; font: 800 3rem/1 var(--f-display); color: var(--muted); border: 2px dashed var(--line); border-radius: 12px; }

.final-cta { text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(255, 122, 26, .25), transparent 60%); }
.final-cta p { color: var(--muted); font-size: 1.15rem; }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img { overflow: hidden; display: block; }
.card-body { padding: 18px 20px 20px; }
.card h3 { font-size: 1.45rem; margin: 0 0 8px; }
.card h3 a { color: #fff; text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.empty { color: var(--muted); font-size: 1.1rem; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 32px 0 0; }
.page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.page-numbers.current, .page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* page / post */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); background: radial-gradient(ellipse at 20% 0, rgba(200, 53, 42, .22), transparent 55%), radial-gradient(ellipse at 90% 10%, rgba(255, 122, 26, .12), transparent 50%); border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.page-hero.center { text-align: center; border: 0; padding-bottom: 80px; }
.page-hero .lede { color: var(--muted); font-size: 1.2rem; max-width: 640px; }
.page-hero.center .lede { margin-inline: auto; }
.entry-img img { border-radius: var(--r); display: block; margin-bottom: 28px; }
.entry-content { padding-bottom: 56px; font-size: 1.12rem; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--fuse); color: #ddd5ee; font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.entry-content code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 4px; }
.entry-content .alignwide { width: min(100vw - 32px, var(--wrap)); margin-inline: calc((min(100vw - 32px, var(--narrow)) - min(100vw - 32px, var(--wrap))) / 2); max-width: none; }
.entry-content .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.entry-content .wp-block-button__link { background: linear-gradient(180deg, #ff7d1f 0%, #f25c05 55%, #d9480a 100%); color: #fff; font-weight: 800; border-radius: 12px; }
.entry-foot { padding-bottom: 56px; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; text-decoration: none; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { text-decoration: none; font-weight: 700; }
input[type=text], input[type=email], input[type=search], input[type=url], input[type=password], textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: var(--ink-2); border: 2px solid var(--line); border-radius: 10px; }
input:focus, textarea:focus { border-color: var(--fuse); outline: none; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 24px; }
.search-form label { flex: 1; }
.search-submit, .comment-form .submit { background: linear-gradient(180deg, #ff7d1f 0%, #f25c05 55%, #d9480a 100%); color: #fff; border: 0; border-radius: 10px; padding: 0 20px; font-weight: 800; cursor: pointer; min-height: 48px; }
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.comment-meta { font-size: .9rem; color: var(--muted); }
.comment-meta img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }

/* league pages inside the theme */
.bbp { --bbp-card: var(--panel); --bbp-ink: var(--text); --bbp-mute: var(--muted); --bbp-gold: var(--gold); --bbp-acc: var(--fuse); font-size: 1rem; }
.bbp-h, .bbp-head h3, .bbp-board h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: .01em; }
.bbp-h { font-size: 1.9rem; }
.bbp-head h3 { font-size: 1.6rem; }
.bbp-board h3 { font-size: 1.35rem; }
.bba-main { padding: clamp(28px, 5vw, 56px) 16px 72px; background: radial-gradient(ellipse at 50% 0, rgba(200, 53, 42, .18), transparent 55%); }
.boomball-account .bba h1 { font-family: var(--f-display); font-size: 2.2rem; }
.boomball-account .bba { font-family: var(--f-body); font-size: 17px; }
.boomball-account .bba .btn { font-family: var(--f-body); text-transform: uppercase; letter-spacing: .03em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), #09080f); padding: 48px 0 24px; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: start; }
.f-logo img { height: 70px; width: auto; display: block; margin-bottom: 12px; }
.f-brand p { color: var(--muted); max-width: 360px; }
.social { display: flex; gap: 12px; }
.social a { color: var(--muted); display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; }
.social a:hover { color: var(--gold); border-color: var(--gold); }
.f-nav ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.f-nav a { color: var(--text); text-decoration: none; font-weight: 600; display: block; padding: 6px 0; }
.f-nav a:hover { color: var(--gold); }
.f-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.f-legal a { color: var(--muted); }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } .f-play { justify-self: start; } }


/* ---------- backgrounds ---------- */
body { background: radial-gradient(ellipse 80% 50% at 10% 0, rgba(200, 53, 42, .16), transparent 60%), radial-gradient(ellipse 70% 50% at 100% 30%, rgba(255, 122, 26, .09), transparent 60%), radial-gradient(ellipse 80% 60% at 50% 100%, rgba(120, 60, 200, .12), transparent 60%), var(--ink); background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.has-bg::before { content: ""; position: absolute; inset: -6% 0; z-index: -2; background: var(--bg) center / cover no-repeat; opacity: .55; transform: translateY(var(--par, 0px)) scale(1.08); will-change: transform; }
.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0, rgba(14, 12, 23, .72) 18%, rgba(14, 12, 23, .78) 82%, var(--ink) 100%); }
.sec.has-bg + .sec { border-top-color: transparent; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/img/bg/page.webp") center / cover; opacity: .28; mask-image: linear-gradient(180deg, #000 30%, transparent); }

/* ---------- hero: embers, floating logo, burning fuse ---------- */
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }
.hero-logo { animation: bb-float 6s ease-in-out infinite; }
/* explosions behind the logo (assets/theme.js draws them; the logo shakes a little on a big one) */
.logo-wrap { position: relative; z-index: 0; width: min(560px, 88vw); margin: 0 auto 10px; }
.logo-wrap .hero-logo { margin: 0 auto; }
.logo-wrap .booms { position: absolute; left: -40%; top: -35%; width: 180%; height: 170%; z-index: -1; pointer-events: none; }
.hero-in > h1, .hero-in > .lede, .hero-in > .cta-row, .hero-in > .hero-stats { position: relative; z-index: 1; } /* the title and buttons stay in front of the explosions */
.logo-wrap.shake { animation: bb-shake .32s cubic-bezier(.36, .07, .19, .97); }
@keyframes bb-shake { 10%, 90% { transform: translate(-1px, 1px); } 20%, 80% { transform: translate(3px, -2px); } 30%, 50%, 70% { transform: translate(-4px, 2px); } 40%, 60% { transform: translate(4px, -1px); } }
@keyframes bb-float { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-10px) rotate(.6deg); } }
.hero h1 { background: linear-gradient(90deg, #fff 0%, #ffe08a 30%, #ff9a2e 50%, #ffe08a 70%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bb-shine 6s linear infinite; }
@keyframes bb-shine { to { background-position: -200% 0; } }
.hero .btn:not(.btn-ghost), .final-cta .btn { animation: bb-pulse 2.4s ease-in-out infinite; }
@keyframes bb-pulse { 0%, 100% { box-shadow: 0 4px 0 var(--fuse-d), 0 10px 30px rgba(242, 92, 5, .35), inset 0 1px 0 rgba(255, 220, 180, .35); } 50% { box-shadow: 0 4px 0 var(--fuse-d), 0 10px 46px rgba(255, 125, 31, .75), 0 0 0 6px rgba(255, 125, 31, .12), inset 0 1px 0 rgba(255, 220, 180, .35); } }
/* the fuse sits on the hero's bottom edge, outside it: the hero's overflow:hidden used to cut the spark in half */
.fuse { position: relative; z-index: 3; height: 4px; margin-top: -4px; background: rgba(255, 255, 255, .06); pointer-events: none; }
.fuse i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #7a2600, #f25c05, #ffd36b); transform-origin: left; animation: bb-burn 30s linear infinite; }
.fuse b { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: radial-gradient(circle, #fff 0 20%, #ffd36b 35%, rgba(255, 125, 31, .7) 55%, transparent 70%); box-shadow: 0 0 22px 6px rgba(255, 140, 40, .7); animation: bb-spark 30s linear infinite, bb-flick .12s steps(2) infinite; }
@keyframes bb-burn { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes bb-spark { from { left: 100%; } to { left: 0; } }
@keyframes bb-flick { 50% { transform: scale(1.35); } }

/* ---------- scroll reveal ---------- */
.js .rv { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- livelier cards ---------- */
.feat, .team-card, .card, .game-card, .mode-grid > div { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.feat:hover, .card:hover, .mode-grid > div:hover { transform: translateY(-6px); border-color: rgba(255, 154, 46, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 154, 46, .2), 0 0 40px rgba(242, 92, 5, .15); }
.feat:hover .ico { animation: bb-shake .5s ease-in-out; }
@keyframes bb-shake { 0%, 100% { transform: none; } 20% { transform: rotate(-12deg) scale(1.15); } 40% { transform: rotate(10deg) scale(1.2); } 60% { transform: rotate(-6deg) scale(1.15); } 80% { transform: rotate(4deg); } }
.team-card { transform-style: preserve-3d; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.team-card:hover { border-color: color-mix(in srgb, var(--ts, #ffd36b) 70%, transparent); box-shadow: 0 20px 44px rgba(0, 0, 0, .5), 0 0 34px color-mix(in srgb, var(--tc, #f25c05) 45%, transparent); }
.team-card:hover .bbp-crest { animation: bb-bob 1.2s ease-in-out infinite; }
.team-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 45%); opacity: 0; transition: opacity .2s; }
.team-card:hover::before { opacity: 1; }
@keyframes bb-bob { 50% { transform: translateY(-5px) scale(1.06); } }
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fuse-hi); box-shadow: 0 0 10px 2px rgba(255, 125, 31, .8); animation: bb-flick .5s steps(2) infinite; }
.sec-head h2 { position: relative; }
.sec-head h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--fuse), var(--gold)); transition: width .8s cubic-bezier(.2, .8, .2, 1) .2s; }
.js .rv .sec-head h2::after, .js .sec-head.rv h2::after { width: 0; }
.js .rv.in .sec-head h2::after, .js .sec-head.rv.in h2::after { width: 64px; }

/* ---------- closed beta ---------- */
.beta-card { position: relative; border-radius: 20px; padding: clamp(24px, 4vw, 44px); background: linear-gradient(160deg, rgba(36, 22, 54, .92), rgba(20, 16, 34, .94)); border: 1px solid transparent; background-clip: padding-box; }
.beta-card::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 22px; background: conic-gradient(from var(--ang, 0deg), #f25c05, #ffd36b, #c8352a, #8a4cff, #f25c05); animation: bb-spin 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes bb-spin { to { --ang: 360deg; } }
.beta-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 125, 31, .16); border: 1px solid rgba(255, 125, 31, .5); color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.beta-head h2 { margin: 12px 0 8px; }
.beta-head p { color: #d6cfe6; max-width: 760px; }
.beta-msg { color: var(--gold) !important; font-weight: 700; }
.beta-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; padding: 0; margin: 24px 0; }
.beta-steps li { counter-increment: st; position: relative; padding: 18px 16px 16px 60px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; }
.beta-steps li::before { content: counter(st); position: absolute; left: 14px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font: 800 1.2rem/1 var(--f-display); color: #fff; background: radial-gradient(circle at 35% 30%, #ff9a2e, #c23d06); box-shadow: 0 0 16px rgba(255, 125, 31, .55); }
.beta-steps b { display: block; font-size: 1.1rem; }
.beta-steps span { color: var(--muted); font-size: .97rem; }
.beta-steps code { background: rgba(255, 255, 255, .08); padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.beta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- the two games ---------- */
.game-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; margin: 0 0 clamp(36px, 5vw, 60px); }
.game-card.flip .game-shot { order: 2; }
.game-shot { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.game-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.game-shot:hover img { transform: scale(1.06); }
.game-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s; }
.game-shot:hover::after { transform: translateX(120%); }
.game-tag { color: var(--fuse-hi); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; }
.game-txt h3 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 4px 0 8px; }
.game-lede { font-size: 1.15rem; color: #e2dcf0; }
.game-note { position: relative; margin: 10px 0 14px; padding: 10px 14px 10px 44px; border-radius: 10px; font-size: .95rem; line-height: 1.5; color: #f3d9c8; background: repeating-linear-gradient(135deg, rgba(255, 200, 40, .07) 0 12px, rgba(0, 0, 0, .12) 12px 24px), rgba(80, 12, 8, .45); border: 1px dashed rgba(255, 170, 60, .45); transform: rotate(-.4deg); }
.game-note::before { content: "🚫"; position: absolute; left: 13px; top: 9px; font-size: 1.15rem; }
.game-note.gamble { margin-top: 18px; transform: rotate(.3deg); }
.game-note.gamble::before { content: "🎲"; }
.game-fine { margin: 6px 0 0; font-size: .85rem; line-height: 1.45; color: rgba(243, 217, 200, .75); }
.game-fine b { color: #ffcf5a; }
.game-note b { color: #ffcf5a; letter-spacing: .04em; text-transform: uppercase; font-size: .85em; }
.game-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.game-facts li { position: relative; padding-left: 26px; color: #cfc7e2; font-size: 1rem; }
.game-facts li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd36b, #f25c05); box-shadow: 0 0 8px rgba(255, 125, 31, .7); }
.game-facts b { color: #fff; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.mode-grid > div { padding: 16px; border-radius: 14px; background: rgba(27, 24, 48, .8); border: 1px solid var(--line); }
.mode-grid b { display: block; font: 800 1.25rem/1.2 var(--f-display); color: var(--gold); margin-bottom: 4px; }
.mode-grid span { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .game-card { grid-template-columns: 1fr; } .game-card.flip .game-shot { order: 0; } }

/* ---------- gallery + lightbox ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gal-item { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gal-item:nth-child(1), .gal-item:nth-child(8) { grid-column: span 2; grid-row: span 2; }
.gal-item img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .3s; filter: saturate(.9); }
.gal-item:hover img { transform: scale(1.08); filter: saturate(1.2) brightness(1.08); }
.gal-item::after { content: "+"; position: absolute; right: 10px; bottom: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(242, 92, 5, .9); color: #fff; font-weight: 800; opacity: 0; transform: scale(.6); transition: .25s; }
.gal-item:hover::after { opacity: 1; transform: none; }
@media (max-width: 760px) { .gal-grid { grid-template-columns: 1fr 1fr; } .gal-item:nth-child(8) { grid-column: auto; grid-row: auto; } }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(6, 5, 12, .92); backdrop-filter: blur(6px); padding: 16px; animation: bb-fade .2s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1600px, 94vw); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: bb-zoom .25s cubic-bezier(.2, .8, .2, 1); }
.lightbox figcaption { color: var(--muted); text-align: center; margin-top: 10px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--fuse); }
.lb-x { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
@keyframes bb-fade { from { opacity: 0; } }
@keyframes bb-zoom { from { transform: scale(.92); opacity: 0; } }

/* ---------- legal pages ---------- */
.legal-note { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.legal-note a { color: var(--gold); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 1.26.6: the split hero. BoomBall's stadium on the left, Dungeon BoomBall's maze on the right, fading
   into each other along a diagonal seam that burns like a fuse. Hover a side and it opens wider ---------- */
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.hero.hero-split { --split: 50%; transition: --split .9s cubic-bezier(.2, .8, .2, 1); min-height: min(860px, 92vh); display: flex; align-items: center; }
.hero.hero-split::before { display: none; }
.hero.hero-split::after { background: radial-gradient(ellipse 55% 60% at 50% 42%, rgba(14, 12, 23, .78), rgba(14, 12, 23, .35) 62%, rgba(14, 12, 23, .1) 100%), linear-gradient(180deg, rgba(14, 12, 23, .55) 0, transparent 22%, transparent 70%, var(--ink) 99%); }
.hero.hero-split.on-a { --split: 66%; } .hero.hero-split.on-b { --split: 34%; }
.hs-side { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.hs-side .hs-img { position: absolute; inset: -6%; background: var(--hero-a) center / cover no-repeat; animation: hs-pan-a 26s ease-in-out infinite alternate; filter: saturate(1.15) contrast(1.05); }
.hs-b .hs-img { background-image: var(--hero-b); animation-name: hs-pan-b; }
@keyframes hs-pan-a { from { transform: scale(1.06) translate(-2%, -1%); } to { transform: scale(1.16) translate(2%, 1.5%); } }
@keyframes hs-pan-b { from { transform: scale(1.14) translate(2%, 1%); } to { transform: scale(1.05) translate(-2%, -1.5%); } }
/* the fade: the dungeon side lies over the stadium, masked by a soft diagonal ramp centred on --split */
.hs-b { -webkit-mask-image: linear-gradient(104deg, transparent calc(var(--split) - 9%), #000 calc(var(--split) + 9%)); mask-image: linear-gradient(104deg, transparent calc(var(--split) - 9%), #000 calc(var(--split) + 9%)); }
.hs-a { -webkit-mask-image: linear-gradient(104deg, #000 calc(var(--split) + 6%), transparent calc(var(--split) + 14%)); mask-image: linear-gradient(104deg, #000 calc(var(--split) + 6%), transparent calc(var(--split) + 14%)); }
/* stadium: two floodlight beams sweeping, a lens flare breathing */
.hs-beam { position: absolute; top: -30%; width: 34%; height: 150%; background: linear-gradient(180deg, rgba(255, 252, 230, .5), rgba(255, 245, 210, .12) 45%, transparent 80%); filter: blur(14px); mix-blend-mode: screen; transform-origin: 50% 0; clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
.hs-beam.b1 { left: -4%; animation: hs-sweep 9s ease-in-out infinite alternate; }
.hs-beam.b2 { left: 18%; animation: hs-sweep 11s ease-in-out -4s infinite alternate-reverse; opacity: .8; }
@keyframes hs-sweep { from { transform: rotate(-22deg); } to { transform: rotate(18deg); } }
.hs-flare { position: absolute; left: 8%; top: 4%; width: 26vmin; height: 26vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0 4%, rgba(255, 246, 210, .55) 12%, rgba(255, 210, 120, .12) 40%, transparent 70%); mix-blend-mode: screen; animation: hs-breathe 4.5s ease-in-out infinite; }
@keyframes hs-breathe { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
/* dungeon: two torches flickering, a sickly green glow welling up from below */
.hs-torch { position: absolute; width: 42vmin; height: 42vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 70, .55), rgba(255, 110, 30, .2) 38%, transparent 68%); mix-blend-mode: screen; animation: hs-flick 1.9s steps(1) infinite; }
.hs-torch.t1 { right: 6%; top: 6%; } .hs-torch.t2 { right: 32%; bottom: 4%; animation-duration: 2.3s; animation-delay: -.7s; }
@keyframes hs-flick { 0% { opacity: .85; transform: scale(1); } 13% { opacity: .62; transform: scale(.96); } 27% { opacity: .95; transform: scale(1.04); } 41% { opacity: .7; } 55% { opacity: 1; transform: scale(1.02); } 70% { opacity: .66; transform: scale(.97); } 84% { opacity: .9; transform: scale(1.03); } }
.hs-glow { position: absolute; right: -10%; bottom: -30%; width: 75%; height: 80%; background: radial-gradient(ellipse at center, rgba(90, 255, 140, .4), rgba(40, 200, 110, .14) 40%, transparent 70%); mix-blend-mode: screen; animation: hs-breathe 6s ease-in-out infinite; }
.hs-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-fx[data-fx="dungeon"] { mix-blend-mode: screen; }
/* the seam: a burning diagonal fuse line with a spark racing up and down it */
.hs-seam { position: absolute; z-index: 0; top: -10%; bottom: -10%; left: var(--split); width: 0; transform: rotate(14deg); pointer-events: none; }
.hs-seam i { position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: linear-gradient(180deg, transparent, rgba(255, 190, 90, .9) 20%, #fff2c0 50%, rgba(140, 255, 170, .9) 80%, transparent); box-shadow: 0 0 18px 4px rgba(255, 150, 50, .55), 0 0 60px 14px rgba(255, 120, 30, .25); opacity: .85; animation: hs-seam 2.8s ease-in-out infinite; }
.hs-seam b { position: absolute; left: -11px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, #ffd36b 38%, rgba(255, 125, 31, .7) 58%, transparent 72%); box-shadow: 0 0 26px 10px rgba(255, 140, 40, .7); animation: hs-spark 5.5s ease-in-out infinite alternate; }
@keyframes hs-seam { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hs-spark { from { top: 12%; } to { top: 82%; } }
/* 1.32.10: the tear (theme.js builds the jagged edge into --tear, and the .hs-tear rim over it) */
.hs-tear, .hs-tearfx { display: none; }
@media (min-width: 761px) {
	.hero-split.torn .hs-b { -webkit-mask-image: var(--tear); mask-image: var(--tear); -webkit-mask-size: 200% 100%; mask-size: 200% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: calc(100% - var(--split)) 0; mask-position: calc(100% - var(--split)) 0; }
	.hero-split.torn .hs-a { -webkit-mask-image: none; mask-image: none; }
	.hero-split.torn .hs-seam { display: none; }
	.hs-tear { display: block; position: absolute; z-index: -2; top: 0; bottom: 0; height: 100%; left: calc(var(--split) - 100%); width: 200%; max-width: none; max-height: none; pointer-events: none; overflow: visible; animation: hs-rip 1.3s cubic-bezier(.3, .6, .3, 1) both; }
	.hs-tear path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
	.hs-tear .t-shade { stroke: rgba(0, 0, 0, .7); stroke-width: 26px; filter: blur(8px); transform: translateX(10px); }
	.hs-tear .t-char { stroke: #1a0c06; stroke-width: 9px; }
	.hs-tear .t-fire { stroke: url(#hsTearG); stroke-width: 4px; stroke-dasharray: 46 12 10 20; animation: hs-burn 2.2s linear infinite; filter: drop-shadow(0 0 6px #ff7a1a) drop-shadow(0 0 16px rgba(255, 60, 0, .8)); }
	.hs-tear .t-fire2 { stroke: #ffb23a; stroke-width: 2.2px; stroke-dasharray: 8 30 22 14; animation: hs-burn 3.1s linear infinite reverse; opacity: .85; filter: drop-shadow(0 0 4px #ffd36b); }
	.hs-tear .t-core { stroke: #fff6d0; stroke-width: 1.2px; animation: hs-glim 1.4s steps(5) infinite; }
	.hs-tearfx { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
}
@keyframes hs-burn { to { stroke-dashoffset: -176; } }
@keyframes hs-glim { 0%, 100% { opacity: .9; } 30% { opacity: .45; } 60% { opacity: 1; } 80% { opacity: .6; } }
@keyframes hs-rip { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
/* the two labels, one in each lower corner; they link down to the games */
.hs-tag { position: absolute; z-index: 2; bottom: clamp(70px, 9vh, 110px); display: grid; gap: 2px; max-width: 280px; padding: 14px 18px; border-radius: 16px; text-decoration: none; color: #fff; background: rgba(14, 12, 23, .55); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); transition: transform .35s, box-shadow .35s, border-color .35s; }
.hs-tag small { font: 700 .72rem/1 var(--f-body, inherit); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hs-tag b { font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--f-display); }
.hs-tag span { font-size: .92rem; color: #d8d0ea; }
.hs-tag-a { left: clamp(16px, 4vw, 56px); border-left: 4px solid var(--gold); text-align: left; }
.hs-tag-a b { color: var(--gold); text-shadow: 0 0 22px rgba(255, 211, 107, .45); }
.hs-tag-b { right: clamp(16px, 4vw, 56px); text-align: right; border-right: 4px solid #6dffa0; }
.hs-tag-b b { color: #8dffb4; text-shadow: 0 0 22px rgba(90, 255, 140, .45); }
.hs-tag:hover, .hs-tag:focus-visible { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.hs-tag-a:hover { border-color: var(--gold); } .hs-tag-b:hover { border-color: #6dffa0; }
.hero-split .hero-in { position: relative; z-index: 1; }
@media (max-width: 760px) {
	.hero.hero-split { min-height: auto; flex-direction: column; align-items: stretch; padding-bottom: 40px; }
	.hero-split .hero-in { order: 0; } .hero-split .hs-tag { order: 1; position: relative; inset: auto; margin: 14px 16px 0; }
	.hs-b { -webkit-mask-image: linear-gradient(170deg, transparent 38%, #000 62%); mask-image: linear-gradient(170deg, transparent 38%, #000 62%); }
	.hs-a { -webkit-mask-image: none; mask-image: none; }
	.hs-seam { display: none; }
	.hs-tag { max-width: none; text-align: left; }
	.hs-tag-b { border-right: 1px solid rgba(255, 255, 255, .14); border-left: 4px solid #6dffa0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .hs-tear, .hs-tear path { animation: none !important; } .hs-side .hs-img, .hs-beam, .hs-flare, .hs-torch, .hs-glow, .hs-seam i, .hs-seam b { animation: none; } .hero.hero-split { transition: none; } }

/* ---------- 1.26.6: the large gallery ---------- */
.wrap-wide { max-width: min(1500px, calc(100vw - 32px)); }
/* 1.31.0: players' replays under the gallery */
.rp-head { text-align: center; margin: 34px 0 14px; font-family: var(--f-display); font-size: 1.5rem; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rp-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.rp-game { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rp-score { font-size: 1.05rem; }
.rp-cap { font-style: italic; }
.rp-by { font-size: .88rem; color: var(--muted); }
.rp-card .btn { align-self: flex-start; margin-top: 4px; }
.gal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.gal-tabs button { font: 700 .95rem/1 var(--f-body); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s; }
.gal-tabs button span { margin-left: 6px; font-size: .8rem; color: var(--muted); }
.gal-tabs button.on { background: var(--gold); color: #1a1408; border-color: var(--gold); } .gal-tabs button.on span { color: #5a4a20; }
.gal-big { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 12px; }
.gal-big .gal-item, .gal-big .gal-item:nth-child(1), .gal-big .gal-item:nth-child(8) { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
.gal-big .gal-item.gbig { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal-big .gal-item.gbig.gr { grid-column: 3 / span 2; } /* (every other big one sits on the right) */ /* (every fifth showing shot is a big one: one big and four small fill a 4-column block exactly) */
.gal-big .gal-item[hidden] { display: none; }
.gal-big .gal-item img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(180deg, transparent, rgba(8, 6, 14, .9)); color: #fff; font-size: .92rem; line-height: 1.3; transform: translateY(40%); opacity: 0; transition: transform .35s, opacity .35s; pointer-events: none; }
.gal-cap i { display: block; font-style: normal; font: 800 .68rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.gal-item[data-g="dg"] .gal-cap i { color: #8dffb4; }
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { transform: none; opacity: 1; }
@media (max-width: 600px) { .gal-big { grid-template-columns: 1fr 1fr; } .gal-big .gal-item.gbig.gr { grid-column: span 2; } .gal-cap { opacity: 1; transform: none; font-size: .8rem; padding: 18px 8px 6px; } }

/* ---- 1.26.7 (James): the Game Modes page: a tab per mode, the rules in full, how you win, tips, and a gallery ---- */
.gm-intro { color: var(--muted); font-size: 1.15rem; max-width: 720px; margin: 6px 0 0; }
.gm-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 26px 0 8px; } /* (1.29.0: five tabs with the weekend mutators) */
.gm-tab { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); color: var(--text); text-decoration: none; font: 800 1.35rem/1.15 var(--f-display); transition: border-color .2s, background .2s, transform .2s; }
.gm-tab small { font: 700 .72rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gm-tab:hover { border-color: rgba(255, 211, 107, .5); transform: translateY(-2px); }
.gm-tab.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(255, 211, 107, .16), rgba(242, 92, 5, .08)); box-shadow: 0 0 0 1px rgba(255, 211, 107, .25), 0 10px 26px rgba(242, 92, 5, .18); }
.gm-tab.on small { color: var(--fuse-hi); }
.gm-panel { padding: 22px 0 40px; }
.gm-panel[hidden] { display: none; }
.gm-head h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.gm-lede { font-size: 1.2rem; color: var(--text); max-width: 900px; margin: 0 0 22px; }
.gm-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.gm-how, .gm-win, .gm-tips { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.gm-side { display: flex; flex-direction: column; gap: 16px; }
.gm-how h3, .gm-win h3, .gm-tips h3, .gm-gh { margin: 0 0 10px; font-family: var(--f-body); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.gm-how ul, .gm-win ul, .gm-tips ul { margin: 0; padding-left: 1.1em; }
.gm-how li, .gm-win li, .gm-tips li { margin: 0 0 10px; }
.gm-how li b { color: #fff; }
.gm-win { border-color: rgba(255, 211, 107, .45); background: linear-gradient(180deg, rgba(255, 211, 107, .1), rgba(27, 24, 48, 1)); }
.gm-win b { color: var(--gold); font-size: 1.15em; }
.gm-tips li::marker { color: var(--fuse-hi); }
.gm-gh { margin-top: 30px; }
.gm-gal { margin-top: 4px; }
.gm-link { text-align: center; margin: 26px 0 6px; }
@media (max-width: 900px) {
	.gm-tabs { grid-template-columns: repeat(2, 1fr); }
	.gm-cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.gm-tab { font-size: 1.05rem; padding: 12px; }
}
/* 1.30.0: players' photos in the gallery */
.gal-item .gal-cap { position: absolute; left: 10px; bottom: 8px; padding: 3px 9px; border-radius: 99px; background: rgba(10, 8, 18, .75); color: #fff; font-size: 12.5px; font-weight: 600; }
.gal-note { margin: 14px 0 0; text-align: center; color: var(--muted, #b8b0c8); font-size: 14px; }

/* ---- 1.32.13: the Game Guide (/guide/ and its pages: inc/guide.php, page-guide.php, guide-page.php) ---- */
.gd-hero::before { background-image: var(--gd-img) !important; background-position: center 40% !important; opacity: .42 !important; }
.gd-nav { position: sticky; top: var(--hdr-h, 64px); z-index: 20; background: rgba(14, 12, 23, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.gd-navin { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.gd-nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font: 700 .95rem/1 var(--f-body); white-space: nowrap; transition: border-color .15s, background .15s; }
.gd-nav a i { font-style: normal; }
.gd-nav a:hover { border-color: rgba(255, 211, 107, .55); }
.gd-nav a.on { border-color: var(--gold); color: #2a1702; background: linear-gradient(180deg, #ffe08a, #ffb02a); }
.gd-hubgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.gd-hubcard { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; border: 2px solid rgba(255, 211, 107, .45); background: linear-gradient(170deg, #2b0d3c, #170520); color: var(--text); text-decoration: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); transition: transform .15s, border-color .15s, box-shadow .2s; }
.gd-hubcard:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 190, 70, .3); }
.gd-hubimg { aspect-ratio: 16 / 8; overflow: hidden; } .gd-hubimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; } .gd-hubcard:hover .gd-hubimg img { transform: scale(1.05); }
.gd-hubtxt { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.gd-hubtxt small { font: 800 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--fuse-hi); }
.gd-hubtxt b { font: 800 1.7rem/1.05 var(--f-display); color: var(--gold); } .gd-hubtxt b i { font-style: normal; font-size: 1.2rem; }
.gd-hubtxt span { color: var(--muted); font-size: .98rem; }
.gd-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 28px; }
.gd-toc { position: sticky; top: calc(var(--hdr-h, 64px) + 70px); padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.gd-toc b { display: block; font: 800 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.gd-toc a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; border-left: 3px solid transparent; }
.gd-toc a:hover { background: rgba(255, 255, 255, .05); } .gd-toc a.on { border-left-color: var(--gold); color: var(--gold); background: rgba(255, 211, 107, .07); }
.gd-body:not(:has(.gd-toc)) { grid-template-columns: minmax(0, 1fr); }
.gd-sec { margin: 0 0 44px; scroll-margin-top: calc(var(--hdr-h, 64px) + 70px); }
.gd-sec h2 { font: 800 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--f-display); color: var(--gold); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid rgba(255, 211, 107, .25); }
.gd-sec p { max-width: 860px; }
.gd-list { margin: 0 0 16px; padding-left: 1.2em; display: grid; gap: 8px; max-width: 900px; } .gd-list li::marker { color: var(--fuse-hi); }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.gd-cards.two { grid-template-columns: repeat(2, 1fr); } .gd-cards.four { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gd-cards.roles, .gd-cards.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gd-card { position: relative; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); }
.gd-card b { display: block; font: 800 1.15rem/1.2 var(--f-body); color: #fff; margin-bottom: 2px; }
.gd-card em { display: inline-block; font: 700 .68rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--fuse-hi); margin-bottom: 6px; }
.gd-card p { margin: 4px 0 0; color: #d6cfe6; font-size: .95rem; line-height: 1.45; }
.gd-card .gd-ab { display: block; margin-top: 6px; } .gd-card .gd-ab b { display: inline; font-size: .98rem; }
.gd-steps { list-style: none; counter-reset: st; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gd-steps li { counter-increment: st; position: relative; padding: 16px 16px 16px 58px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.gd-steps li::before { content: counter(st); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem/1 var(--f-body); color: #2a1702; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd36b 45%, #c8901a); }
.gd-steps b { display: block; color: #fff; } .gd-steps span { color: var(--muted); font-size: .95rem; }
.gd-shots { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; margin: 10px 0 6px; }
.gd-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.gd-keygrp { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.gd-keygrp h4 { margin: 0 0 8px; font: 800 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--fuse-hi); }
.gd-keygrp dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; align-items: center; } .gd-keygrp dd { margin: 0; color: #d6cfe6; font-size: .95rem; }
.guide kbd { display: inline-block; min-width: 1.7em; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255, 211, 107, .6); border-bottom-width: 3px; background: #241d3a; color: var(--gold); font: 700 .85rem/1.3 var(--f-body); text-align: center; }
.gd-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; margin-top: 14px; }
.gd-team { padding: 16px 18px; border-radius: var(--r); border: 2px solid color-mix(in srgb, var(--tc) 70%, #fff 0%); background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 28%, #141226), #120f20 60%); scroll-margin-top: 130px; }
.gd-team header { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; } .gd-team header svg, .gd-team header img { width: 84px; height: auto; flex: none; }
.gd-team h3 { margin: 0; font: 800 1.7rem/1.05 var(--f-display); color: #fff; } .gd-team header p { margin: 4px 0 0; color: #d6cfe6; font-size: .95rem; }
.gd-team h4 { margin: 14px 0 6px; font: 800 .72rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.gd-tpos { display: flex; flex-wrap: wrap; gap: 6px; } .gd-tpos span { padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: var(--muted); } .gd-tpos b { color: #fff; margin-right: 5px; }
.gd-abil { margin: 0; display: grid; gap: 4px; } .gd-abil dt { font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; margin-top: 6px; } .gd-abil dt em { font-style: normal; font-weight: 600; font-size: .78rem; color: var(--muted); } .gd-abil dd { margin: 0 0 0 38px; color: #d6cfe6; font-size: .93rem; line-height: 1.4; }
.gd-team.secret { filter: grayscale(.6); } .gd-team .q { width: 84px; height: 84px; display: grid; place-items: center; font: 800 3rem/1 var(--f-display); color: var(--muted); border-radius: 50%; border: 2px dashed var(--line); }
.gd-pager { display: flex; justify-content: space-between; gap: 16px; margin: 10px auto 60px; }
.gd-pager a { flex: 1; max-width: 420px; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--gold); text-decoration: none; font: 800 1.4rem/1.1 var(--f-display); }
.gd-pager a small { font: 700 .75rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gd-pager .next { text-align: right; margin-left: auto; } .gd-pager a:hover { border-color: var(--gold); }
.gd-quick h2 { font: 800 2rem/1 var(--f-display); color: var(--gold); }
@media (max-width: 960px) { .gd-body { grid-template-columns: 1fr; } .gd-toc { position: static; } .gd-hubgrid { grid-template-columns: 1fr 1fr; } .gd-cards.two { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .gd-hubgrid { grid-template-columns: 1fr; } .gd-teams { grid-template-columns: 1fr; } .gd-keys { grid-template-columns: 1fr; } .gd-pager { flex-direction: column; } }
/* the front page's Game Guide band (1.32.13) */
.game-more { margin: 14px 0 0; }
.home-guide { margin: 30px 0 10px; }
.hg-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.hg-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid rgba(255, 211, 107, .4); background: linear-gradient(170deg, rgba(74, 22, 96, .55), rgba(23, 5, 32, .75)); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.hg-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.hg-card i { font-style: normal; font-size: 1.6rem; } .hg-card b { font: 800 1.25rem/1.05 var(--f-display); color: var(--gold); } .hg-card span { font-size: .85rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 1100px) { .hg-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .hg-row { grid-template-columns: 1fr 1fr; } }
/* 1.32.13: James's painted guide headers (assets/img/guide/<page>.webp, 1920 x 480, dark along the bottom for the title) */
.gd-hero.art { min-height: clamp(260px, 25vw, 420px); display: flex; align-items: flex-end; padding-bottom: clamp(18px, 2.5vw, 30px); }
.gd-hero.art::before { opacity: 1 !important; background-position: center top !important; background-size: cover !important; -webkit-mask-image: none !important; mask-image: none !important; }
.gd-hero.art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(14, 12, 23, .55) 75%, var(--ink) 100%); pointer-events: none; }
.gd-hero.art h1 { text-shadow: 0 3px 12px rgba(0, 0, 0, .8); } .gd-hero.art .gm-intro, .gd-hero.art .kicker { text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.gd-hubimg.art img { object-position: center top; }

/* 1.32.17: the Credits page */
.credits-page .cr-sec { margin: 28px 0; }
.credits-page .cr-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.credits-page .cr-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.credits-page .cr-who { color: #ffd36b; } .credits-page .cr-where { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .credits-page .cr-list li { grid-template-columns: 1fr; gap: 2px; } }
