/* ==========================================================================
   iRepas Theme - CSS 3D Interactive Phone Mockup Stylesheet
   ========================================================================== */

/* Main Container Layout */
.hero-3d-wrapper {
	position: relative;
	width: 100%;
	max-width: 550px;
	height: 680px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	z-index: 10;
}

/* Perspective & Scene Setup */
.hero-3d-perspective-container {
	position: relative;
	perspective: 1300px;
	perspective-origin: 50% 44%;
	transform: translateX(-116px);
	width: 555px;
	height: 784px;
	z-index: 5;
}

.hero-3d-scene {
	position: relative;
	width: 555px;
	height: 784px;
	transform-style: preserve-3d;
	transform: scale(0.6) rotateX(-8deg) rotateY(-20deg);
	transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.phone-layer-3d {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 300px;
	height: 620px;
	transform: translate(-50%, -50%) translateZ(0);
	pointer-events: none;
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, filter 0.4s ease;
}

/* Shadow beneath the phone */
.hero-3d-shadow {
	position: absolute;
	bottom: 14px;
	left: 50%;
	width: 200px;
	height: 30px;
	transform: translateX(calc(-50% - 116px));
	border-radius: 50%;
	background: radial-gradient(ellipse, rgba(14, 18, 15, 0.32), transparent 68%);
	filter: blur(7px);
	pointer-events: none;
	z-index: 2;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 1. Chassis / Frame Layer */
.frame-edge {
	position: absolute;
	inset: 0;
	border-radius: 48px;
	background: linear-gradient(118deg, #3f453b, #2a2f27);
}
.frame-body-inner {
	position: absolute;
	inset: 0;
	border-radius: 48px;
	background: linear-gradient(118deg, #fbfdf8 0%, #d3d8cc 12%, #6d7366 26%, #4a4f45 34%, #dfe3d9 48%, #9aa093 58%, #3f453b 72%, #c4cabd 86%, #eef1ea 100%);
	border: 1px solid #82887c;
	box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.9), inset 0 -3px 6px rgba(0, 0, 0, 0.45), 0 2px 1px rgba(0, 0, 0, 0.12);
}
.frame-body-stripes {
	position: absolute;
	inset: 0;
	border-radius: 48px;
	background: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 2px, rgba(0, 0, 0, 0.06) 2px 3px);
	opacity: 0.7;
}
.frame-body-glare {
	position: absolute;
	inset: 2px;
	border-radius: 46px;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	mask-image: linear-gradient(140deg, #000 12%, transparent 42%);
	-webkit-mask-image: linear-gradient(140deg, #000 12%, transparent 42%);
}
.frame-inner-bezel {
	position: absolute;
	inset: 11px;
	border-radius: 39px;
	background: radial-gradient(120% 70% at 30% 12%, #242a1d 0%, #12160e 45%, #090b07 100%);
	box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.05), inset 3px 0 8px rgba(0, 0, 0, 0.5);
}
.frame-inner-grid {
	position: absolute;
	inset: 11px;
	border-radius: 39px;
	background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px);
}
/* Frame Side Buttons */
.frame-btn-left-top {
	position: absolute;
	left: -4px;
	top: 150px;
	width: 4px;
	height: 34px;
	border-radius: 3px 0 0 3px;
	background: linear-gradient(90deg, #f2f5ee, #82887c 55%, #565c52);
}
.frame-btn-left-bottom {
	position: absolute;
	left: -4px;
	top: 200px;
	width: 4px;
	height: 58px;
	border-radius: 3px 0 0 3px;
	background: linear-gradient(90deg, #f2f5ee, #82887c 55%, #565c52);
}
.frame-btn-right {
	position: absolute;
	right: -4px;
	top: 175px;
	width: 4px;
	height: 78px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(270deg, #f2f5ee, #82887c 55%, #565c52);
}

/* 2. Screws & Mics Layer */
.screw-left, .screw-right {
	position: absolute;
	top: 540px;
	width: 44px;
	height: 24px;
	border-radius: 7px;
	background: linear-gradient(118deg, #dfe3e6, #8a9198 55%, #b8bfc5);
	border: 1px solid #62686e;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 3px 8px rgba(0, 0, 0, 0.3);
}
.screw-left { left: 64px; }
.screw-right { left: 192px; }
.screw-thread {
	position: absolute;
	inset: 6px 8px;
	border-radius: 4px;
	background: radial-gradient(circle, rgba(0, 0, 0, 0.55) 1px, transparent 1.4px);
	background-size: 4.5px 4.5px;
	background-color: #7c8388;
}
.speaker-grille-left, .speaker-grille-right {
	position: absolute;
	top: 592px;
	width: 52px;
	height: 7px;
	border-radius: 4px;
	background: radial-gradient(circle, rgba(0, 0, 0, 0.7) 1.2px, transparent 1.6px);
	background-size: 8px 7px;
	background-color: #4a5046;
}
.speaker-grille-left { left: 70px; }
.speaker-grille-right { left: 178px; }
.top-camera-ring {
	position: absolute;
	left: 186px;
	top: 36px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 32%, #3a4046, #0c0e10);
	box-shadow: inset 0 0 3px #000, 0 0 0 2px #565c62;
}
.bottom-mic-ring {
	position: absolute;
	left: 160px;
	top: 64px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 32%, #3a4046, #0c0e10);
	box-shadow: inset 0 0 3px #000, 0 0 0 2px #565c62;
}
.speaker-mesh-internal {
	position: absolute;
	left: 110px;
	top: 548px;
	width: 74px;
	height: 8px;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, #e0a83a 0 2px, #5a4210 2px 4px);
	opacity: 0.85;
}

/* 3. Face ID Layer */
.faceid-module {
	position: absolute;
	left: 80px;
	top: 30px;
	width: 140px;
	height: 26px;
	border-radius: 13px;
	background: linear-gradient(160deg, #2e2e33, #141416);
	border: 1px solid #44444c;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.speaker-slit {
	position: absolute;
	left: 50%;
	top: 9px;
	transform: translateX(-50%);
	width: 44px;
	height: 7px;
	border-radius: 4px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0.8px, transparent 1.1px);
	background-size: 4px 4px;
	background-color: #0a0a0c;
	border: 1px solid #3a3a40;
}
.camera-lens-left {
	position: absolute;
	left: 10px;
	top: 6px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(circle at 36% 30%, #7a8ab0 0%, #2a3450 40%, #0a0e18 70%);
	box-shadow: inset 0 0 4px #000;
}
.camera-lens-right {
	position: absolute;
	right: 10px;
	top: 6px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(circle at 36% 30%, #4a4a58 0%, #1c1c26 45%, #0a0a10 75%);
}
.sensor-dot {
	position: absolute;
	right: 30px;
	top: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1a1a20;
	border: 1px solid #3a3a44;
}
.faceid-flex-cable {
	position: absolute;
	left: 145px;
	top: 56px;
	width: 10px;
	height: 22px;
	background: repeating-linear-gradient(0deg, #e0a83a 0 2px, #5a4210 2px 4px);
	border-radius: 2px;
}

/* 4. Antenna / Charging Port Layer */
.port-usb-c {
	position: absolute;
	left: 100px;
	top: 576px;
	width: 100px;
	height: 24px;
	border-radius: 12px;
	background: linear-gradient(160deg, #2e2e33, #141416);
	border: 1px solid #44444c;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.port-inner {
	position: absolute;
	left: 50%;
	top: 8px;
	transform: translateX(-50%);
	width: 44px;
	height: 8px;
	border-radius: 5px;
	background: #0a0a0c;
	border: 1px solid #3f3f46;
	box-shadow: inset 0 1px 3px #000;
}
.antenna-flex-cable {
	position: absolute;
	left: 60px;
	top: 582px;
	width: 36px;
	height: 12px;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, #e0a83a 0 2px, #5a4210 2px 4px);
}

/* 5. Taptic Speaker Layer */
.taptic-speaker-container {
	position: absolute;
	left: 34px;
	top: 486px;
	width: 232px;
	height: 100px;
	border-radius: 16px;
	background: linear-gradient(160deg, rgba(60, 68, 54, 0.27), #12160f);
	background-color: #1c211a;
	border: 1px solid #4d554a;
	box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.22), inset 0 -6px 12px rgba(0, 0, 0, 0.45), 0 6px 16px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	padding: 0 16px;
	gap: 14px;
}
.taptic-engine {
	width: 92px;
	height: 62px;
	border-radius: 8px;
	background: linear-gradient(118deg, #f4c860 0%, #b58428 26%, #7a5716 44%, #e0b048 62%, #967020 82%, #d3a53c 100%);
	box-shadow: inset 0 1.5px 2px rgba(255, 255, 255, 0.7), inset 0 -5px 9px rgba(0, 0, 0, 0.4);
}
.speaker-chamber {
	flex: 1;
	height: 62px;
	border-radius: 8px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, rgba(0, 0, 0, 0.4) 1.6px, transparent 2px);
	background-size: 7px 7px;
	background-color: #23291f;
	border: 1px solid #48503e;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* 6. Logic Board Layer */
.logic-board-pcb {
	position: absolute;
	left: 34px;
	top: 66px;
	width: 232px;
	height: 158px;
	border-radius: 12px;
	background: linear-gradient(150deg, #14301c 0%, #0a1c10 55%, #102616 100%);
	border: 1px solid #1f4a2c;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pcb-grid {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(0deg, rgba(120, 220, 140, 0.08) 0 1px, transparent 1px 9px), repeating-linear-gradient(90deg, rgba(120, 220, 140, 0.08) 0 1px, transparent 1px 9px);
}
.pcb-glare {
	position: absolute;
	top: -30px;
	left: -40px;
	width: 180px;
	height: 24px;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.10), transparent 60%);
	transform: rotate(-14deg);
}
.soc-chip {
	position: absolute;
	left: 20px;
	top: 24px;
	width: 78px;
	height: 78px;
	border-radius: 8px;
	background: linear-gradient(118deg, #e8ecf0 0%, #aab2ba 22%, #61686f 40%, #c8ced4 58%, #7e858c 78%, #d5dade 100%);
	border: 1px solid #565c62;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 11px;
	font-weight: 700;
	color: #3a4046;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -3px 6px rgba(0, 0, 0, 0.3);
}
.rf-shield-small {
	position: absolute;
	left: 116px;
	top: 30px;
	width: 44px;
	height: 30px;
	border-radius: 5px;
	background: linear-gradient(118deg, #d9dee2 0%, #8a9198 45%, #b8bfc5 100%);
	border: 1px solid #6a7178;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}
.rf-shield-large {
	position: absolute;
	left: 116px;
	top: 70px;
	width: 96px;
	height: 20px;
	border-radius: 4px;
	background: linear-gradient(118deg, #d9dee2 0%, #8a9198 45%, #b8bfc5 100%);
	border: 1px solid #6a7178;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}
.gold-trace-1 {
	position: absolute;
	left: 20px;
	top: 116px;
	width: 190px;
	height: 3px;
	background: linear-gradient(90deg, #e0a83a, transparent);
	opacity: 0.8;
}
.gold-trace-2 {
	position: absolute;
	left: 20px;
	top: 124px;
	width: 150px;
	height: 3px;
	background: linear-gradient(90deg, #c9922e, transparent);
	opacity: 0.6;
}
.flex-connector-block {
	position: absolute;
	right: 14px;
	top: 116px;
	width: 34px;
	height: 20px;
	border-radius: 3px;
	background: repeating-linear-gradient(90deg, #e0a83a 0 2px, #1c2411 2px 4px);
}
.component-array {
	position: absolute;
	left: 20px;
	bottom: 12px;
	width: 64px;
	height: 10px;
	border-radius: 2px;
	background: repeating-linear-gradient(90deg, #d9dee0 0 3px, #5a6055 3px 5px);
	opacity: 0.7;
}

/* 7. Battery Layer */
.battery-pack {
	position: absolute;
	left: 40px;
	top: 236px;
	width: 220px;
	height: 336px;
	border-radius: 20px;
	background: linear-gradient(155deg, #3a4148 0%, #22262b 30%, #141719 62%, #2b3036 100%);
	border: 1px solid #4a5158;
	overflow: hidden;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -8px 18px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.battery-stripes {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.05) 3px 4px);
}
.battery-horizontal-grid {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, 0.07) 46px 47px);
}
.battery-glare {
	position: absolute;
	top: -40px;
	left: -60px;
	width: 220px;
	height: 320px;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03) 55%, transparent);
	transform: rotate(-14deg);
}
.battery-status-bar {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 18px;
	height: 40px;
	border-radius: 9px;
	background: linear-gradient(90deg, #8bd400, #b8e600);
	box-shadow: 0 0 20px rgba(184, 230, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.battery-percentage-text {
	position: absolute;
	left: 22px;
	top: 22px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 32px;
	letter-spacing: -.02em;
	color: #b8e600;
}
.battery-sublabel {
	position: absolute;
	left: 22px;
	top: 62px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #9aa3ab;
}
.battery-circular-logo {
	position: absolute;
	right: 20px;
	top: 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #8bd400;
	opacity: 0.55;
}

/* 8. Camera Module Layer */
.camera-housing {
	position: absolute;
	left: 32px;
	top: 32px;
	width: 116px;
	height: 116px;
	border-radius: 30px;
	background: linear-gradient(145deg, #4a5244 0%, #262c22 40%, #12160f 75%, #2e3529 100%);
	border: 1px solid #5a6252;
	box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.3), inset 0 -6px 12px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.4);
}
.camera-lens-top {
	position: absolute;
	left: 14px;
	top: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: conic-gradient(from 210deg, #20293e, #4a5a80, #141a28, #5a6c96, #1a2234, #20293e);
	box-shadow: inset 0 0 0 3px #1c2016, inset 0 0 0 4.5px #6a7262, inset 0 0 12px #000;
}
.camera-reflection-top {
	position: absolute;
	left: 24px;
	top: 24px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 36% 30%, #a8c0f0 0%, #3a5288 26%, #0c1220 62%, #000 100%);
	box-shadow: 0 0 4px rgba(120, 160, 255, 0.4);
}
.camera-lens-bottom {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: conic-gradient(from 30deg, #20293e, #4a5a80, #141a28, #5a6c96, #1a2234, #20293e);
	box-shadow: inset 0 0 0 3px #1c2016, inset 0 0 0 4.5px #6a7262, inset 0 0 12px #000;
}
.camera-reflection-bottom {
	position: absolute;
	right: 24px;
	top: 24px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 36% 30%, #a8c0f0 0%, #3a5288 26%, #0c1220 62%, #000 100%);
	box-shadow: 0 0 4px rgba(120, 160, 255, 0.4);
}
.camera-lens-middle {
	position: absolute;
	left: 38px;
	bottom: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: conic-gradient(from 120deg, #20293e, #4a5a80, #141a28, #5a6c96, #1a2234, #20293e);
	box-shadow: inset 0 0 0 3px #1c2016, inset 0 0 0 4.5px #6a7262, inset 0 0 12px #000;
}
.camera-reflection-middle {
	position: absolute;
	left: 48px;
	bottom: 22px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 36% 30%, #a8c0f0 0%, #3a5288 26%, #0c1220 62%, #000 100%);
	box-shadow: 0 0 4px rgba(120, 160, 255, 0.4);
}
.camera-glare-left {
	position: absolute;
	left: 22px;
	top: 22px;
	width: 10px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transform: rotate(-30deg);
}
.camera-glare-right {
	position: absolute;
	right: 22px;
	top: 22px;
	width: 10px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transform: rotate(-30deg);
}
.flash-led {
	position: absolute;
	right: 20px;
	bottom: 22px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, #fff6c8, #c9a227);
	box-shadow: 0 0 8px rgba(255, 220, 120, 0.6);
}

/* 9. Front Glass Layer */
.glass-screen {
	position: absolute;
	inset: 0;
	border-radius: 48px;
	overflow: hidden;
	background: linear-gradient(155deg, #2c3430 0%, #101512 38%, #050806 78%, #0d120e 100%);
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 46px rgba(0, 0, 0, 0.6), 0 26px 56px rgba(14, 18, 15, 0.4);
}
.glass-lighting-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(140% 90% at 18% 8%, rgba(139, 212, 0, 0.2), transparent 52%), radial-gradient(120% 80% at 85% 95%, rgba(70, 110, 180, 0.14), transparent 58%), radial-gradient(90% 60% at 60% 45%, rgba(180, 90, 200, 0.06), transparent 70%);
}
.glass-shine-static-1 {
	position: absolute;
	top: -160px;
	left: -20px;
	width: 150px;
	height: 940px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.30) 48%, rgba(255, 255, 255, 0.05) 62%, transparent);
	transform: rotate(-22deg);
}
.glass-shine-static-2 {
	position: absolute;
	top: -160px;
	right: 10px;
	width: 70px;
	height: 940px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11) 50%, transparent);
	transform: rotate(-22deg);
}
.glass-shine-animated {
	position: absolute;
	top: -160px;
	left: 60px;
	width: 110px;
	height: 940px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16) 45%, rgba(255, 255, 255, 0.03) 60%, transparent);
	transform: rotate(-22deg);
	animation: irShine 7s ease-in-out infinite;
}
.glass-dynamic-island {
	position: absolute;
	top: 15px;
	left: 50%;
	transform: translateX(-50%);
	width: 92px;
	height: 27px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-logo-branding {
	position: absolute;
	left: 24px;
	bottom: 30px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .02em;
	color: rgba(184, 230, 0, 0.55);
}

/* ==========================================================================
   Selection Panel & Details Card Layouts
   ========================================================================== */
.hero-3d-selection-panel {
	position: absolute;
	right: -14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 25;
	width: 210px;
}
/* On desktop the scroller is layout-transparent (buttons behave like direct
   panel children); on phones it becomes a horizontal swipe row. */
.selection-points-scroller {
	display: contents;
}
.selection-panel-title {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--color-text-muted-light);
	padding: 0 4px 4px;
}
.selection-point-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 11px;
	border-radius: 10px;
	border: 1.5px solid #e3e7e0;
	background: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}
.selection-point-btn:hover {
	border-color: var(--color-lime);
	transform: translateX(-4px);
}
.selection-point-btn.active {
	background: #0e120f;
	border-color: #0e120f;
}
.point-number {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--color-green-light);
	transition: color 0.2s ease;
}
.selection-point-btn.active .point-number {
	color: var(--color-lime);
}
.point-label {
	font-size: 12.5px;
	font-weight: 600;
	color: #0e120f;
	transition: color 0.2s ease;
}
.selection-point-btn.active .point-label {
	color: #ffffff;
}

/* Details Card Popup
   The card now lives inside the selection panel; its look is defined in
   main.css (.hero-3d-details-card). Only the entry animation stays here. */
.hero-3d-details-card {
	animation: scrIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-close-btn {
	position: absolute;
	right: 14px;
	top: 14px;
	border: none;
	background: transparent;
	font-size: 22px;
	font-weight: 300;
	color: var(--color-text-muted-light);
	cursor: pointer;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.card-close-btn:hover {
	background-color: #f5f7f2;
	color: #0e120f;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 991px) {
	.hero-3d-wrapper {
		height: auto;
		flex-direction: column;
		gap: 14px;
		max-width: 100%;
		padding: 10px 0 20px;
	}
	/* The 3D stage keeps its fixed 555x784 internal size (the layer math
	   depends on it), but its LAYOUT box shrinks to a 340px-tall strip and
	   the stage is re-centered inside it — otherwise the oversized box
	   floated the phone up over the hero text. */
	.hero-3d-perspective-container {
		transform: none;
		width: 100%;
		height: 340px;
		margin-bottom: 10px;
	}
	.hero-3d-scene {
		position: absolute;
		left: 50%;
		top: 50%;
		margin: -392px 0 0 -277.5px; /* center the 555x784 stage box */
	}
	.hero-3d-halo {
		top: 180px;
	}
	.hero-3d-shadow {
		transform: translateX(-50%);
		top: 310px;
		bottom: auto;
	}
	/* Points menu = horizontal swipe row on phones. */
	.hero-3d-selection-panel {
		position: relative;
		right: 0;
		top: 0;
		transform: none;
		width: 100%;
		max-width: 100%;
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding: 0 16px;
		min-width: 0;
	}
	.selection-panel-title {
		text-align: center;
		padding-bottom: 0;
	}
	.selection-points-scroller {
		display: flex;
		min-width: 0;
		width: 100%;
		flex-wrap: nowrap;
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		padding: 2px 2px 10px;
		/* fade the right edge as a "more items" hint */
		-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
		mask-image: linear-gradient(90deg, #000 92%, transparent);
	}
	.selection-points-scroller::-webkit-scrollbar {
		display: none;
	}
	.selection-point-btn {
		flex: 0 0 auto;
		scroll-snap-align: start;
		white-space: nowrap;
	}
	.selection-point-btn:hover {
		transform: none;
	}
	/* The details card stays anchored below the points row — a fixed card
	   would float over the page while scrolling. */
	.hero-3d-details-card {
		position: static;
		width: 100%;
		margin-top: 4px;
	}
}
