	/* ===== Scrollable home (REVERTIBLE) =====================================================
	   The home view scrolls: the 3D scene is a fixed hero (first screen) with the
	   "Continue Playing" + "Recommended" rails pinned over its bottom; scrolling down brings up
	   #homeMore (solid background) with the friend rails. To revert to the old fixed layout,
	   restore the previous .lh-rows block, drop .home-hero/.home-more, and remove the
	   `position:fixed; overflow:auto` override on #home below. */
	body.home-active #home { position: fixed; inset: 58px 0 0 0; overflow-y: auto; overflow-x: hidden;
		z-index: 5; overscroll-behavior: contain; }
	.home-hero { position: relative; height: calc(100vh - 58px); pointer-events: none; }

	/* "Continue Playing" + "Recommended" — pinned to the bottom of the hero, over the scene,
	   stopping short of the avatar on the right; the scroller's right edge is feathered. */
	.lh-rows { position: absolute; left: 0; right: 30%; bottom: 66px;
		display: flex; flex-direction: column; gap: 6px; }
	.lh-rows .disco-row { margin: 0; pointer-events: auto; }
	.lh-rows .disco-head { padding: 0 30px; margin-bottom: 8px; }
	.lh-rows .disco-head h2 { font-size: 19px; text-shadow: 0 2px 8px rgba(0,0,0,.65); }
	.lh-rows .disco-head .rail-seeall { text-shadow: 0 1px 6px rgba(0,0,0,.8); }
	.lh-rows .disco-head .em { filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
	.lh-rows .gc-title, .lh-rows .gc-rating, .lh-rows .gc-players, .lh-rows .cont-ago {
		text-shadow: 0 1px 5px rgba(0,0,0,.75); }
	.lh-rows .gc-rating .cont-ago { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12.5px; }
	.lh-rows .disco-scroller { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 12px), transparent);
		mask-image: linear-gradient(90deg, #000 calc(100% - 12px), transparent); }
	.lh-rows .disco-arrow { display: none; }   /* drag to scroll; no overlapping arrow circle */
	/* Responsive card sizing — home rows only. clamp(min, fluid, max): the max equals the original
	   fixed width so large screens look identical, and the cards shrink smoothly on smaller screens.
	   Thumbnails keep their aspect-ratio so they scale with the width automatically. */
	.lh-rows .gcard.sq   { width: clamp(82px,  8.5vw,  156px); }
	.lh-rows .gcard.wide { width: clamp(140px, 13.5vw, 248px); }
	.lh-rows .gcard.big  { width: clamp(178px, 17vw,   320px); }
	.lh-rows .gcard.tall { width: clamp(96px,  9.5vw,  174px); }
	/* Nudge the card text down a touch on smaller viewports so it stays proportional to the thumbs. */
	.lh-rows .gc-title   { font-size: clamp(11.5px, 0.95vw, 16.5px); }
	.lh-rows .gc-players { font-size: clamp(11px,  0.9vw,  16px); }
	.lh-rows .gc-players .pc-icon { height: clamp(15px, 1.3vw, 24px); }
	.lh-rows .gc-rating  { font-size: clamp(11px,  0.85vw, 15px); }
	@media (max-width: 1100px) { .lh-rows { right: 14%; } }

	/* Scroll-down hint — centred in the bottom dock bar; only shown on the home view */
	.home-scroll-hint { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
		flex-direction: row; align-items: center; gap: 9px; z-index: 7; transition: opacity .35s; }
	body.home-active .home-scroll-hint { display: flex; }
	.home-scroll-hint span { font-size: 11px; font-weight: 700; color: var(--muted);
		letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
	.home-scroll-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
		background: rgba(255,255,255,.07); cursor: pointer; flex: 0 0 auto;
		display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 15px;
		transition: background .15s, color .15s; animation: scrollHintBounce 2.2s ease-in-out infinite; }
	.home-scroll-btn:hover { background: rgba(255,255,255,.16); color: #fff; animation: none; transform: translateY(2px); }
	@keyframes scrollHintBounce { 0%,100% { transform: translateY(0); } 55% { transform: translateY(4px); } }
	.home-scroll-hint.faded { opacity: 0; pointer-events: none; }
	body.light .home-scroll-btn { background: rgba(0,0,0,.04); border-color: var(--border); }

	/* Friend rails appear on scroll-down over a solid panel (so the scene doesn't bleed through). */
	.home-more { position: relative; background:
		linear-gradient(180deg, rgba(10,12,18,0) 0, var(--bg) 64px), var(--bg);
		padding: 26px 0 86px; }
	.home-more:empty { display: none; }       /* no friend content → nothing to scroll to */
	.home-more .disco-row { margin: 0 0 30px; }
	.home-more .disco-head { padding: 0 36px; }
	/* Friend attribution overlay on a friend-rail thumbnail (avatars + "Alice +2 playing"). */
	.fr-badge { position: absolute; left: 8px; bottom: 8px; right: 8px; z-index: 2; display: flex; align-items: center;
		gap: 6px; padding: 5px 9px; border-radius: 9px; background: rgba(10,12,18,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
		font-size: 12px; font-weight: 700; color: #fff; }
	.fr-badge span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.fr-badge .fr-av { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: 0 0 auto;
		margin-left: -5px; border: 1px solid rgba(255,255,255,.25); }
	.fr-badge .fr-av:first-child { margin-left: 0; }

