/**
 * Kitchen / notification demo — house hotspots, synced phone overlays; full-house tap resets alert.
 */

.shk-root {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(1rem, 3vw, 2rem);
}

.shk-root *,
.shk-root *::before,
.shk-root *::after {
	box-sizing: border-box;
}

.shk-stage {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(200px, 0.4fr);
	align-items: center;
	gap: clamp(0.75rem, 2.2vw, 1.75rem);
}

@media (max-width: 700px) {
	.shk-stage {
		grid-template-columns: 1fr;
		justify-items: center;
	}
}

/* House 1248×832 */
.shk-house {
	position: relative;
	width: 100%;
	max-width: min(640px, 100%);
	justify-self: end;
	aspect-ratio: 1248 / 832;
}

@media (max-width: 700px) {
	.shk-house {
		justify-self: center;
	}
}

.shk-house__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.shk-house__layers {
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: 12px;
	overflow: hidden;
}

.shk-ho {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	display: block;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.shk-root[data-shd-kit-state="fire"] .shk-ho--fire,
.shk-root[data-shd-kit-state="water"] .shk-ho--water {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.shk-ho {
		transition: none;
	}
}

.shk-house__hotspots {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
	border-radius: inherit;
	isolation: isolate;
}

.shk-house__hotspots .shk-hit {
	pointer-events: auto;
}

.shk-hit {
	position: absolute;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	z-index: 5;
}

.shk-hit:focus {
	outline: none;
}

.shk-hit:focus-visible {
	outline: 3px solid #6cb3ff;
	outline-offset: 2px;
	border-radius: 8px;
	z-index: 10;
}

.shk-hit:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

/* Green targets on house_kitchen_bgnd (1248×832) — stove left / dishwasher by sink */
.shk-hit--stove {
	left: 7%;
	top: 44%;
	width: 26%;
	height: 24%;
}

.shk-hit--dishwasher {
	left: 44%;
	top: 48%;
	width: 22%;
	height: 26%;
}

/* Full-house tap target when fire/water is active — any click on the house resets */
.shk-hit--reset-full {
	inset: 0;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 20;
	border-radius: 12px;
}

.shk-hit--reset-full[hidden] {
	display: none;
}

/* Phone 782×1558 — overlays only, no phone hotspots */
.shk-phone {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: clamp(200px, 26vw, 270px);
	justify-self: start;
	filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}

@media (max-width: 700px) {
	.shk-phone {
		justify-self: center;
		max-width: min(270px, 78vw);
		margin-top: 0.75rem;
	}
}

.shk-phone__bezel {
	padding: 10px;
	border-radius: 36px;
	background: linear-gradient(145deg, #2a2a2e, #0e0e10);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.shk-phone__screen {
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	background: #000;
}

.shk-phone__stack {
	position: relative;
	width: 100%;
	aspect-ratio: 782 / 1558;
}

.shk-phone__base {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.shk-phone__layers {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	border-radius: inherit;
}

.shk-po {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
	display: block;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.shk-root[data-shd-kit-state="fire"] .shk-po--fire,
.shk-root[data-shd-kit-state="water"] .shk-po--water {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.shk-po {
		transition: none;
	}
}
