@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700&display=swap');
.gacha-machine {
	background: linear-gradient(145deg, #ff6b6b, #ee5a52);
	border-radius: 30px;
	padding: 40px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.3);
	margin-bottom: 30px;
	position: relative;
	overflow: hidden;
}

.gacha-machine::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
	transform: rotate(45deg);
	animation: shine 3s infinite;
}

@keyframes shine {
	0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
	50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
	100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.capsule-container {
	position: relative;
	margin: 30px 0;
}

.capsule {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ffd700, #ffed4e);
	border: 5px solid #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	margin: 0 auto;
	box-shadow: 0 10px 20px rgba(0,0,0,0.2);
	position: relative;
	z-index: 2;
}

.capsule:hover {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.capsule.spinning {
	animation: spin 2s ease-in-out;
}

@keyframes spin {
	0% { transform: rotate(0deg) scale(1); }
	50% { transform: rotate(180deg) scale(1.2); }
	100% { transform: rotate(360deg) scale(1); }
}

.coins-display {
	background: rgba(255,255,255,0.9);
	border-radius: 20px;
	padding: 15px 25px;
	margin: 20px 0;
	display: inline-block;
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-area {
	background: rgba(255,255,255,0.95);
	border-radius: 20px;
	padding: 30px;
	margin-top: 20px;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.item-display {
	font-size: 4rem;
	margin-bottom: 15px;
	animation: bounce 0.6s ease-out;
}

@keyframes bounce {
	0% { transform: scale(0) rotate(180deg); opacity: 0; }
	50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
	100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.item-name {
	font-size: 1.5rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
}

.item-rarity {
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
}

.rarity-common { background: #95a5a6; color: white; }
.rarity-rare { background: #3498db; color: white; }
.rarity-epic { background: #9b59b6; color: white; }
.rarity-legendary { background: #f39c12; color: white; }

.inventory {
	background: rgba(255,255,255,0.95);
	border-radius: 20px;
	padding: 20px;
	margin-top: 20px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.inventory h3 {
	color: #333;
	margin-bottom: 15px;
	font-size: 1.3rem;
}

.inventory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 10px;
	max-height: 200px;
	overflow-y: auto;
}

.inventory-item {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 10px;
	text-align: center;
	font-size: 2rem;
	border: 2px solid #e9ecef;
	position: relative;
}

.inventory-item .count {
	position: absolute;
	top: -5px;
	right: -5px;
	background: #ff6b6b;
	color: white;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	font-size: 0.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}

.play-button {
	background: linear-gradient(145deg, #4ecdc4, #44a08d);
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 25px;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	margin: 20px 10px;
}

.play-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.play-button:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	transform: none;
}

        