/* Pillow Fight Styles */
.pillow-fight-container {
	max-width: 600px;
	margin: 20px auto;
	padding: 30px;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pillow-fight-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 15px 40px;
	font-size: 18px;
	font-weight: 600;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	margin-bottom: 30px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.pillow-fight-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.pillow-fight-button:active {
	transform: translateY(0);
}

.pillow-fight-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.pillow-fight-display {
	background: #f8f9fa;
	border-radius: 15px;
	padding: 30px 20px;
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: visible;
}

.pillow-fight-slot-machine {
	width: 100%;
	position: relative;
	min-height: 80px;
	overflow: visible;
}

.pillow-fight-reel {
	position: relative;
	min-height: 80px;
	width: 100%;
	overflow: visible;
	will-change: contents;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pillow-fight-reel.matrix-animating {
	overflow: visible;
}

.pillow-fight-reel.spinning {
	overflow: hidden;
}

.pillow-fight-reel.spinning > div {
	position: relative;
	width: 100%;
	will-change: transform;
	visibility: visible;
	opacity: 1;
}

.pillow-fight-reel > div {
	position: relative;
	width: 100%;
	will-change: transform;
	visibility: visible;
	opacity: 1;
}

.pillow-fight-reel.spinning > div {
	transition: none;
}

.pillow-fight-reel.slowing > div {
	visibility: visible;
	opacity: 1;
}

.pillow-fight-phrase-item {
	font-size: 24px;
	font-weight: 500;
	color: #2c3e50;
	line-height: 1.4;
	padding: 10px 20px;
	text-align: center;
	white-space: normal;
	overflow: visible;
	word-wrap: break-word;
	word-break: break-word;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	width: 100%;
	box-sizing: border-box;
	font-family: 'Courier New', monospace;
}

.pillow-fight-matrix-text {
	font-family: 'Courier New', monospace;
}

.pillow-fight-matrix-char {
	font-family: 'Courier New', monospace;
}

.pillow-fight-reel:not(.spinning) .pillow-fight-phrase-item {
	position: relative;
	top: 0;
}

/* Category badges */
.pillow-fight-category-badge {
	display: inline-block;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 15px;
	letter-spacing: 0.5px;
}

.pillow-fight-category-badge.affirmation {
	background: #e8f5e9;
	color: #2e7d32;
}

.pillow-fight-category-badge.brain_graffiti {
	background: #fff3e0;
	color: #e65100;
}

.pillow-fight-category-badge.daily_phrase {
	background: #e3f2fd;
	color: #1565c0;
}

/* Loading state */
.pillow-fight-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Pillow Fight Animation */
.pillow-fight-arena {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	border-radius: 10px;
}

.pillow-fight-pillow {
	position: absolute;
	width: 60px;
	height: 60px;
	border-radius: 15px 5px 15px 5px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: transform 0.1s ease-out;
	will-change: transform, left, top;
}

.pillow-fight-pillow:hover {
	transform: scale(1.1);
}

.pillow-fight-pillow::before {
	content: '';
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	bottom: 10px;
	border-radius: 8px 3px 8px 3px;
	background: rgba(255, 255, 255, 0.3);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pillow-fight-reel.pillow-animating {
	overflow: hidden;
	min-height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
	.pillow-fight-container {
		padding: 20px;
	}
	
	.pillow-fight-phrase-item {
		font-size: 20px;
	}
	
	.pillow-fight-button {
		padding: 12px 30px;
		font-size: 16px;
	}
	
	.pillow-fight-arena {
		height: 150px;
	}
	
	.pillow-fight-pillow {
		width: 50px;
		height: 50px;
	}
}
