	/* Header — s&box launcher top bar */
	header { position: sticky; top: 0; z-index: 30; background: rgba(13,16,24,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		height: 58px; padding: 0 16px 0 66px;
		display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; transition: padding-left .22s ease; }
	/* On Home the bar floats transparently over the 3D scene — no panel, no divider line */
	body.home-active header { position: fixed; left: 0; right: 0; top: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
		background-image: linear-gradient(180deg, rgba(6,8,13,.72) 0%, rgba(6,8,13,.26) 55%, transparent 100%); }
	/* All header icons are thin line SVGs that take the surrounding text colour */
	header svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
	/* Hamburger — pinned to the top-left corner, above the drawer, so it stays put when the drawer opens */
	.hamburger { position: fixed; top: 8px; left: 16px; z-index: 50; display: inline-flex; align-items: center;
		justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: none; border: none;
		cursor: pointer; color: var(--text); transition: background .12s, color .12s; }
	.hamburger:hover { background: rgba(255,255,255,.08); }
	.hamburger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
	/* Full-height left drawer that slides out (Roblox-style). Colour matches the bottom dock bar. */
	.ham-menu { position: fixed; top: 0; left: 0; bottom: 56px; width: 280px; z-index: 45;
		background: rgba(13,16,24,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-right: 1px solid rgba(255,255,255,.07);
		padding: 0 10px 14px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto;
		scrollbar-width: none;
		transform: translateX(-100%); transition: transform .22s ease; box-shadow: 14px 0 40px rgba(0,0,0,.4); }
	.ham-menu::-webkit-scrollbar { display: none; }
	/* Header row inside the drawer: spacer for the hamburger button + S&boxHub brand label */
	.ham-header { height: 58px; flex: 0 0 auto; display: flex; align-items: center; padding-left: 66px;
		background: linear-gradient(135deg, rgba(107,158,252,.13) 0%, transparent 80%);
		margin: 0 -10px; padding-right: 10px; }
	.ham-brand { font-size: 20px; font-weight: 800; letter-spacing: -.3px; color: var(--accent); }
	body.ham-open .ham-menu { transform: translateX(0); }
	/* Highlight the toggle while the drawer is open */
	body.ham-open .hamburger { background: rgba(255,255,255,.08); color: var(--accent); }
	/* The drawer covers the top-left, so slide the rest of the header's buttons to its right. */
	body.ham-open header { padding-left: 296px; }
	.ham-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px;
		background: url('/Icons/HamburgarMenuBars.png') center/100% 100% no-repeat; border: none;
		color: var(--text); font-size: 15px; font-weight: 700;
		cursor: pointer; text-align: left; width: 100%;
		transition: opacity .12s, filter .12s, transform .2s cubic-bezier(.34,1.56,.64,1); }
	.ham-item:hover { opacity: 1; filter: none; background-image: url('/Icons/HamburgarMenuBarsHovered.png'); color: #8B1A1A; transform: scale(1.04); }
	.ham-item:hover svg { color: #8B1A1A; }
	.ham-item svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--muted); }
	.ham-ic { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; }
	/* "Coming Soon" lock: ONE big frosted overlay over the whole group of gated items. The buttons
	   underneath stay fully clickable (the overlay ignores pointer events) and are blurred behind the frost. */
	/* Margin gives the feathered overlay (which bleeds -8px past the group) room so its blur can't
	   creep onto the Profile button above or the banner below. */
	.ham-soon-group { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
	/* Feather the WHOLE overlay (frost, tint and backdrop-blur together) so there's no box at all —
	   it fades into the menu on every edge. The mask is applied to the overlay itself, which also
	   feathers its backdrop-filter, so the blur has no hard rectangular boundary. */
	.soon-overlay { position: absolute; inset: -8px; display: flex; flex-direction: column;
		align-items: center; justify-content: center; gap: 12px; pointer-events: none; isolation: isolate;
		background:
			radial-gradient(120% 80% at 50% 0%, rgba(139,26,26,.22), transparent 60%),
			linear-gradient(180deg, rgba(20,20,26,.34), rgba(12,12,16,.42));
		backdrop-filter: blur(5px) saturate(.92); -webkit-backdrop-filter: blur(5px) saturate(.92);
		-webkit-mask: radial-gradient(135% 115% at 50% 50%, #000 48%, rgba(0,0,0,.4) 72%, transparent 100%);
		mask: radial-gradient(135% 115% at 50% 50%, #000 48%, rgba(0,0,0,.4) 72%, transparent 100%);
		transition: backdrop-filter .3s ease; }
	/* Sweeping shimmer across the frost. A wide soft band sweeps via background-position, while a
	   centred radial mask fades it to nothing at every edge — so the overlay's clip never cuts a
	   hard line and the glow just melts into the menu surface. */
	.soon-overlay::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
		background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.06) 50%, transparent 62%);
		background-size: 260% 100%; background-repeat: no-repeat; background-position: 150% 0;
		-webkit-mask: radial-gradient(120% 75% at 50% 50%, #000 18%, transparent 72%);
		mask: radial-gradient(120% 75% at 50% 50%, #000 18%, transparent 72%);
		filter: blur(10px); animation: soonShimmer 5s ease-in-out infinite; }
	/* The lock icon stands on its own, with a soft drop shadow for depth */
	.soon-overlay svg { position: relative; z-index: 1; width: 44px; height: 44px; flex: 0 0 auto; color: #fff;
		filter: drop-shadow(0 6px 14px rgba(0,0,0,.55));
		transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .3s ease; }
	.soon-overlay span { position: relative; z-index: 1; font-weight: 800; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
		color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8);
		transition: transform .3s cubic-bezier(.34,1.56,.64,1), letter-spacing .3s ease; }
	/* Hover: lift the frost a touch, light up the badge, pop + wiggle the lock, spread the text. */
	.ham-soon-group:hover .soon-overlay { backdrop-filter: blur(3px) saturate(.95); -webkit-backdrop-filter: blur(3px) saturate(.95); border-color: rgba(255,255,255,.22); }
	.ham-soon-group:hover .soon-overlay svg { transform: scale(1.12) rotate(-7deg); animation: soonWiggle .6s ease;
		filter: drop-shadow(0 8px 20px rgba(139,26,26,.6)); }
	.ham-soon-group:hover .soon-overlay span { transform: translateY(1px); letter-spacing: 2.6px; }
	@keyframes soonWiggle { 0%,100%{ transform: scale(1.12) rotate(-7deg);} 30%{ transform: scale(1.18) rotate(8deg);} 60%{ transform: scale(1.18) rotate(-4deg);} }
	@keyframes soonShimmer { 0%{ background-position: 150% 0; } 55%,100%{ background-position: -50% 0; } }
	/* Primary nav inside the drawer is desktop-hidden — it only appears on small screens (≤900px),
	   where the top-bar nav buttons don't fit. See header-responsive.css. */
	.ham-nav-primary { display: none; }
	.ham-title { padding: 8px 14px 12px; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.2px;
		border-bottom: 1px solid rgba(107,158,252,.22); margin-bottom: 6px;
		display: flex; align-items: center; gap: 10px; }
	.ham-title .pf-face { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
		background: #0a0c12 center/cover no-repeat; border: 2px solid var(--accent);
		display: flex; align-items: center; justify-content: center; font-size: 18px; }
	.ham-event-banner { width: 80%; margin: 18px auto 0; border-radius: 10px; display: block; cursor: pointer;
		transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
	.ham-event-banner:hover { transform: scale(1.07); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
	/* Theme switch — sliding knob with sun / moon, pinned to the drawer bottom */
	.theme-toggle { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 14px;
		border-radius: 10px; background: none; border: none; cursor: pointer; color: var(--text);
		font-size: 15px; font-weight: 700; transition: background .12s; }
	.theme-toggle:hover { background: rgba(255,255,255,.07); }
	.tt-track { position: relative; flex: 0 0 auto; width: 52px; height: 28px; border-radius: 999px;
		background: var(--card-hover); border: 1px solid var(--border); transition: background .22s; }
	body.light .tt-track { background: var(--accent-soft); }
	.tt-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
		background: var(--accent); display: flex; align-items: center; justify-content: center;
		box-shadow: 0 2px 5px rgba(0,0,0,.35); transition: transform .22s; }
	body.light .tt-knob { transform: translateX(24px); }
	.tt-knob .material-symbols-rounded { font-size: 15px; color: #fff; font-variation-settings: "FILL" 1; }
	.tt-knob .tt-sun { display: none; }
	.tt-knob .tt-moon { display: inline-block; }
	body.light .tt-knob .tt-moon { display: none; }
	body.light .tt-knob .tt-sun { display: inline-block; }
	/* Generic on/off option switch in the drawer (e.g. Picture-in-Picture), styled like the theme toggle */
	.opt-toggle { margin-top: auto; display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 14px;
		border-radius: 10px; background: none; border: none; cursor: pointer; color: var(--text);
		font-size: 15px; font-weight: 700; transition: background .12s; }
	.opt-toggle:hover { background: rgba(255,255,255,.07); }
	.opt-sw { position: relative; flex: 0 0 auto; width: 52px; height: 28px; border-radius: 999px;
		background: var(--card-hover); border: 1px solid var(--border); transition: background .22s; }
	.opt-toggle.on .opt-sw { background: var(--accent-soft); }
	.opt-knob { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
		background: var(--muted2); box-shadow: 0 2px 5px rgba(0,0,0,.35); transition: transform .22s, background .22s; }
	.opt-toggle.on .opt-knob { transform: translateX(24px); background: var(--accent); }
	.opt-label { flex: 1; text-align: left; }
	.brand { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none;
		background: none; border: none; padding: 4px; border-radius: 12px; transition: background .12s; }
	.brand:hover { background: rgba(255,255,255,.06); }
	.brand.active .brand-mark { box-shadow: 0 0 0 2px rgba(107, 158, 252, 0.9), 0 4px 14px rgba(50,115,235,.4); }
	/* Top nav tabs (Discover / Games / Maps / Servers) */
	.topnav { display: flex; align-items: center; gap: 2px; margin-left: 10px; height: 100%; }
	.topnav .item { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px;
		color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
		background: none; border: none; position: relative; transition: color .12s, transform .2s cubic-bezier(.34,1.56,.64,1); }
	.topnav .item .ti { width: 18px; height: 18px; opacity: .95; }
	.topnav .item .ti-img { width: auto; height: 22px; opacity: 1; object-fit: contain; }
	.dice-icon { width: 40px; height: 40px; object-fit: contain; vertical-align: -12px; }
	.dice-icon.spin { animation: dice-spin .7s linear infinite; }
	@keyframes dice-spin { to { transform: rotate(360deg); } }
	/* Enlarged primary tab ("Games") */
	.topnav .item.item-lg { font-size: 16px; height: 44px; padding: 0 18px; gap: 11px; }
	.topnav .item.item-lg .ti-img { height: 30px; }
	.topnav .item::after { content: ''; position: absolute; bottom: 3px; left: 57%; width: 50%;
		height: 3px; background: var(--accent); border-radius: 0;
		transform: translateX(-50%) scaleX(0); transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
	.topnav .item:hover { color: var(--text); background: none; transform: scale(1.08); }
	.topnav .item:hover::after { transform: translateX(-50%) scaleX(1); }
	.topnav .item.active { color: var(--text); }
	.topnav .item.active .ti { color: var(--accent); }
	/* Centered search pill */
	.topsearch { flex: 1 1 auto; max-width: 720px; margin: 0 clamp(8px, 1.5vw, 28px) 0 clamp(8px, 1vw, 20px); position: relative; display: flex; align-items: center; }
	.topsearch svg { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--muted2); pointer-events: none; }
	.topsearch input { width: 100%; height: 38px; background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.12);
		border-radius: 10px; color: var(--text); padding: 0 14px 0 40px; font-size: 14px; outline: none;
		transition: border-color .15s, box-shadow .15s; }
	.topsearch input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

