/* Rust Twitch Drops (BGL_Rust_Drops). Uses the tool colours of tools.css. */

.bgl-drops { --tw: #9146ff; --tw-hi: #a970ff; }
.bgl-drops h2 { margin: 0 0 10px; color: #fff; font-size: 24px; line-height: 1.2; }
.bgl-drops h3 { margin: 0 0 4px; color: #fff; font-size: 17px; }
.bgl-drops p { line-height: 1.5; }
.bgl-drops a:not(.brs-btn):not(.bgl-drop) { color: var(--t-gold); }

/* Status hero. */
.bgl-drops__hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 0;
	margin: 0 0 16px;
	overflow: hidden;
	background:
		radial-gradient(70% 120% at 0% 0%, rgba(145, 70, 255, .28), transparent 60%),
		radial-gradient(60% 120% at 100% 100%, rgba(205, 64, 43, .22), transparent 60%),
		var(--t-panel);
	border: 1px solid rgba(145, 70, 255, .35);
}
.bgl-drops__hero:not(.has-banner) { grid-template-columns: 1fr; }
.bgl-drops__fig { position: relative; min-height: 300px; margin: 0; overflow: hidden; background: #0d0c10; }
.bgl-drops__hero.is-none .bgl-drops__banner { filter: saturate(.55) brightness(.75); }
.bgl-drops__fig figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; background: rgba(0, 0, 0, .7); color: var(--t-dim); font-size: 13px; }
.bgl-drops__fig figcaption b { color: #fff; }
.bgl-drops__banner { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.bgl-drops__status { position: relative; padding: 26px 28px; }
.bgl-drops__status h2 { font-size: clamp(24px, 2.4vw, 36px); text-transform: uppercase; letter-spacing: .01em; }
.bgl-drops__lead { max-width: 760px; color: var(--t-text); font-size: 16px; }
.bgl-drops__host { margin: -4px 0 6px; color: var(--t-dim); }
.bgl-drops__host b { color: var(--t-gold); }
.bgl-drops__when { margin: 0 0 14px; color: var(--t-text); font-size: 14px; }
.bgl-drops__badge { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 12px; padding: 5px 12px; background: rgba(0, 0, 0, .4); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bgl-drops__badge > span { width: 10px; height: 10px; border-radius: 50%; background: var(--t-dim); }
.bgl-drops__badge.is-live { background: rgba(235, 4, 0, .2); }
.bgl-drops__badge.is-live > span { background: #eb0400; box-shadow: 0 0 0 0 rgba(235, 4, 0, .7); animation: bgl-drops-pulse 1.6s ease-out infinite; }
.bgl-drops__badge.is-soon > span { background: var(--tw); animation: bgl-drops-pulse 2.4s ease-out infinite; }
@keyframes bgl-drops-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(235, 4, 0, .6); }
	70%  { box-shadow: 0 0 0 10px rgba(235, 4, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(235, 4, 0, 0); }
}
.bgl-drops__count { margin: 0 0 16px; }
.bgl-drops__count > small { display: block; margin-bottom: 6px; color: var(--t-dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bgl-drops__count > div { display: flex; gap: 8px; }
.bgl-drops__count span { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 6px; background: rgba(0, 0, 0, .45); border-top: 2px solid var(--tw); color: var(--t-dim); font-size: 11px; text-transform: uppercase; }
.bgl-drops__count b { color: #fff; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bgl-drops__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bgl-drops__tw { background: var(--tw) !important; color: #fff !important; }
.bgl-drops__tw:hover { background: var(--tw-hi) !important; }
.bgl-drops .brs-btn { display: inline-flex; gap: 8px; align-items: center; }
.bgl-drops .brs-btn svg { flex: none; }
.bgl-drops__alert { background: var(--t-green) !important; color: #eef2e4 !important; }
.bgl-drops__alert:hover { background: var(--t-green-hi) !important; }
.bgl-drops__stats { display: flex; gap: 22px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--t-line); }
.bgl-drops__stats b { display: block; color: var(--t-gold); font-size: 24px; line-height: 1; }
.bgl-drops__stats span { color: var(--t-dim); font-size: 12px; text-transform: uppercase; }

/* Steps. */
.bgl-drops__how > h2 { margin-bottom: 14px; }
.bgl-drops__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.bgl-drops__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; background: var(--t-panel2); border-top: 3px solid var(--tw); transition: transform .2s ease, background .2s ease; }
.bgl-drops__step:hover { transform: translateY(-3px); background: var(--t-slot); }
.bgl-drops__step > img { width: 44px; height: 44px; padding: 4px; object-fit: contain; background: var(--t-slot); }
.bgl-drops__step p { margin: 0; color: var(--t-text); font-size: 14px; }
.bgl-drops__stepn { position: absolute; top: 10px; right: 12px; color: rgba(145, 70, 255, .45); font-size: 34px; font-weight: 800; line-height: 1; }
.bgl-drops__step:not(:last-child)::after { content: ""; position: absolute; top: 36px; right: -12px; width: 12px; height: 2px; background: var(--tw); }

/* Drops grid. */
.bgl-drops__sechead { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin-bottom: 12px; }
.bgl-drops__sechead h2 { margin: 0; }
.bgl-drops__sechead h2 small { margin-left: 6px; padding: 1px 8px; background: var(--tw); color: #fff; font-size: 14px; vertical-align: middle; }
.bgl-drops__sechead p { margin: 0; color: var(--t-dim); font-size: 14px; }
.bgl-drops__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bgl-drop { position: relative; display: flex; flex-direction: column; background: var(--t-panel2); border: 1px solid var(--t-line); color: inherit; text-decoration: none !important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
a.bgl-drop:hover { transform: translateY(-3px); border-color: var(--tw); box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 18px rgba(145, 70, 255, .25); }
.bgl-drop__who { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: rgba(145, 70, 255, .14); color: #fff; font-size: 14px; }
.bgl-drop__who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--tw); }
.bgl-drop__who b { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.bgl-drop__who svg { flex: none; width: 16px; height: 16px; color: var(--tw-hi); }
.bgl-drop__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2d2b33, #141316); }
.bgl-drop__img img,
.bgl-drop__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.bgl-drop__img video { opacity: 0; }
.bgl-drop__img.is-play video { opacity: 1; }
a.bgl-drop:hover .bgl-drop__img img { transform: scale(1.06); }
.bgl-drop__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.bgl-drop__body > b { color: #fff; font-size: 16px; line-height: 1.2; }
.bgl-drop__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--t-dim); font-size: 13px; }
.bgl-drop__meta span { display: inline-flex; gap: 4px; align-items: center; }
.bgl-drop__meta svg { width: 14px; height: 14px; color: var(--t-gold); }
.bgl-drop__meta span:first-child { color: #fff; font-weight: 700; }

/* Alerts band. */
.bgl-drops__alerts { display: flex; gap: 20px; align-items: center; padding: 18px 20px; background: linear-gradient(100deg, rgba(145, 70, 255, .18), transparent 70%), var(--t-panel); }
.bgl-drops__alerts h2 { margin-bottom: 4px; }
.bgl-drops__alerts p { margin: 0; color: var(--t-text); font-size: 15px; }
.bgl-drops__alertico { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: rgba(145, 70, 255, .2); color: var(--tw-hi); animation: bgl-drops-ring 4s ease-in-out infinite; }
@keyframes bgl-drops-ring {
	0%, 80%, 100% { transform: rotate(0); }
	84% { transform: rotate(14deg); }
	88% { transform: rotate(-12deg); }
	92% { transform: rotate(8deg); }
	96% { transform: rotate(-4deg); }
}
.bgl-drops__alertbtns { flex: none; display: flex; flex-direction: column; gap: 8px; }

/* Tips. */
.bgl-drops__tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 16px; }
.bgl-drops__tips section { position: relative; padding: 14px 14px 14px 52px; background: var(--t-panel); }
.bgl-drops__tips span { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 28px; height: 28px; background: var(--t-gold); color: #1a1408; font-weight: 800; }
.bgl-drops__tips p { margin: 0; color: var(--t-text); font-size: 14px; }

/* Past campaigns. */
.bgl-drops__pastlist { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.bgl-drops__pastlist article { padding: 12px; background: var(--t-panel2); }
.bgl-drops__pastlist header { display: flex; flex-direction: column; margin-bottom: 8px; }
.bgl-drops__pastlist header b { color: #fff; }
.bgl-drops__pastlist header small { color: var(--t-dim); font-size: 13px; }
.bgl-drops__pastlist article { display: flex; flex-direction: column; padding: 0 0 12px; overflow: hidden; }
.bgl-drops__pastlist header { padding: 0 12px; }
.bgl-drops__pastimg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: saturate(.85); transition: filter .3s ease; }
.bgl-drops__pastlist article:hover .bgl-drops__pastimg { filter: none; }
.bgl-drops__pastlist article > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.bgl-drops__pastlist figure { margin: 0; }
.bgl-drops__pastlist figure img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--t-slot); }
.bgl-drops__pastlist figcaption { margin-top: 3px; overflow: hidden; color: var(--t-dim); font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

/* Questions. */
.bgl-drops__faq details { border-top: 1px solid var(--t-line); }
.bgl-drops__faq summary { padding: 12px 4px; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.bgl-drops__faq summary::marker { color: var(--tw-hi); }
.bgl-drops__faq details p { margin: 0 4px 14px; color: var(--t-text); }
.bgl-drops__src { margin: 0 0 16px; }

/* The alert button's states (assets/push.js). */
.bgl-push-btn[hidden] { display: none !important; }
.bgl-push-btn span { display: none; }
.bgl-push-btn[data-state="off"] .bgl-push-off,
.bgl-push-btn[data-state="busy"] .bgl-push-off,
.bgl-push-btn[data-state="on"] .bgl-push-on,
.bgl-push-btn[data-state="no"] .bgl-push-no { display: inline; }
.bgl-push-btn[data-state="busy"] { opacity: .6; cursor: progress; }
.bgl-push-btn[data-state="no"] { opacity: .6; cursor: not-allowed; }

@media (max-width: 1100px) {
	.bgl-drops__steps { grid-template-columns: repeat(3, 1fr); }
	.bgl-drops__step::after { display: none; }
	.bgl-drops__tips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
	.bgl-drops__hero { grid-template-columns: 1fr; }
	.bgl-drops__fig { min-height: 0; aspect-ratio: 16 / 9; }
	.bgl-drops__status { padding: 18px 16px; }
	.bgl-drops__steps { grid-template-columns: 1fr 1fr; }
	.bgl-drops__alerts { flex-direction: column; align-items: flex-start; }
	.bgl-drops__alertbtns { width: 100%; }
	.bgl-drops__alertbtns .brs-btn { justify-content: center; }
}
@media (max-width: 520px) {
	.bgl-drops__steps,
	.bgl-drops__tips { grid-template-columns: 1fr; }
	.bgl-drops__grid { grid-template-columns: 1fr 1fr; }
	.bgl-drops__count span { min-width: 0; flex: 1; }
	.bgl-drops__stats { flex-direction: column; gap: 10px; }
}
/* Past campaigns: two per row on tablets (an odd last card takes the row), one on phones. */
@media (max-width: 1100px) {
	.bgl-drops__pastlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bgl-drops__pastlist article:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.bgl-drops__pastlist { grid-template-columns: minmax(0, 1fr); }
}

/* Campaign art is shown whole (square or wide), over a blurred copy of itself that fills the frame. */
.bgl-drops__fig::before,
.bgl-drops__pastart::before { content: ""; position: absolute; inset: -30px; background: var(--art) center / cover no-repeat; filter: blur(22px) brightness(.45) saturate(1.2); }
.bgl-drops__fig figcaption { z-index: 2; }
.bgl-drops__pastart { position: relative; display: block; aspect-ratio: 16 / 9; margin-bottom: 10px; overflow: hidden; background: #0d0c10; }

/* A <button> takes the theme's button font; match the site's .brs-btn links exactly. */
button.bgl-push-btn.brs-btn { font-family: "BRS Roboto Condensed", "Roboto Condensed", "Arial Narrow", sans-serif !important; font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: .02em !important; line-height: 1 !important; gap: 12px; }
.bgl-push-btn .bgl-push-ico { flex: none; width: 18px; height: 18px; }
