/**
 * Team Shay Coffee Break Room — styles.
 * All selectors prefixed .tsm-coffee-* (no global collisions).
 * Palette: Mist Green #5fb89b primary.
 */

.tsm-coffee-room {
	position: relative;
	max-width: 960px;
	margin: 1.5em auto;
	border: 2px solid #5fb89b;
	border-radius: 14px;
	overflow: hidden;
	background: #faf7f0;
	box-shadow: 0 2px 12px rgba(95, 184, 155, 0.18);
}

.tsm-coffee-canvas {
	display: block;
	width: 100%;
	height: auto;
	cursor: pointer;
	touch-action: manipulation;
}

/* Overlay layer for HTML speech bubbles + coffee badges (projected each frame). */
.tsm-coffee-bubble-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.tsm-coffee-bubble {
	position: absolute;
	transform: translate(-50%, -100%);
	max-width: 240px;
	background: #ffffff;
	border: 2px solid #5fb89b;
	border-radius: 12px;
	padding: 0.45em 0.7em 0.55em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	text-align: left;
}

.tsm-coffee-bubble::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -9px;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	background: #ffffff;
	border-right: 2px solid #5fb89b;
	border-bottom: 2px solid #5fb89b;
	transform: rotate(45deg);
}

.tsm-coffee-bubble-who {
	display: block;
	font-size: 0.72em;
	font-weight: 700;
	color: #3f8f73;
	margin-bottom: 0.15em;
}

.tsm-coffee-bubble-text {
	display: block;
	font-size: 0.85em;
	line-height: 1.35;
	color: #333333;
}

.tsm-coffee-coffee-badge {
	position: absolute;
	transform: translate(-50%, -100%);
	font-size: 26px;
	line-height: 1;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.tsm-coffee-hint {
	margin: 0;
	padding: 0.55em 1em 0.7em;
	text-align: center;
	font-size: 0.85em;
	color: #5f7a6f;
	background: rgba(95, 184, 155, 0.08);
	border-top: 1px solid rgba(95, 184, 155, 0.35);
}

.tsm-coffee-room.tsm-coffee-loading .tsm-coffee-canvas {
	min-height: 200px;
	background: rgba(95, 184, 155, 0.06);
}

/* Static fallback (no WebGL / no Three.js). */
.tsm-coffee-fallback {
	padding: 1.5em 1em;
	text-align: center;
}

.tsm-coffee-fallback-img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 3px solid #5fb89b;
	object-fit: cover;
	margin: 0 0.3em;
}

.tsm-coffee-fallback-note {
	color: #5f7a6f;
	font-size: 0.9em;
	margin: 0.8em 0 0;
}

@media (max-width: 700px) {
	.tsm-coffee-room {
		margin: 1em 0.25em;
		border-radius: 10px;
	}

	.tsm-coffee-hint {
		font-size: 0.78em;
	}

	.tsm-coffee-bubble {
		max-width: 180px;
	}
}
