/**
 * 夏休み自由研究 ガチャジェネレーター 専用スタイル
 * - ガチャ演出・レアリティ別カードデザイン
 */

:root {
	--srg-primary: #FF6B6B;
	--srg-secondary: #FFD93D;
	--srg-accent: #6BCB77;
	--srg-blue: #4D96FF;
	--srg-purple: #9B5DE5;
	--srg-rarity-r: #4A8FE8;
	--srg-rarity-sr: #9B5DE5;
	--srg-rarity-ssr: #DAA520;
}

.srg-input-section {
	padding: 18px 20px;
	background: linear-gradient(180deg, #FFF6E8 0%, #FFEAB8 100%);
	border-radius: 10px;
	margin: 14px 16px;
	border: 1px solid #FFD88A;
}

.srg-section-heading {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: #6A2B1F;
	margin: 0 0 14px;
	text-align: center;
}

.srg-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 18px;
}

@media (max-width: 460px) {
	.srg-form-grid {
		grid-template-columns: 1fr;
	}
}

.srg-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.srg-form-label {
	font-size: 13px;
	font-weight: 700;
	color: #6A2B1F;
}

.srg-form-select {
	padding: 11px 12px;
	font-size: 14px;
	border: 1px solid #FFD88A;
	border-radius: 6px;
	background: #FFFFFF;
	font-family: inherit;
	cursor: pointer;
	color: var(--color-text);
}

.srg-form-select:focus {
	outline: none;
	border-color: var(--srg-primary);
}

.srg-action {
	padding: 14px 20px 20px;
	text-align: center;
}

.srg-action-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 50px;
	font-family: var(--font-display);
	color: #FFFFFF;
	background: linear-gradient(135deg, var(--srg-primary) 0%, #C73838 100%);
	border: none;
	border-radius: 32px;
	cursor: pointer;
	box-shadow: 0 5px 18px rgba(255, 107, 107, 0.40);
	letter-spacing: 0.06em;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.srg-action-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.08);
}

.srg-action-btn-text {
	font-size: 18px;
	font-weight: 800;
}

.srg-action-btn-sub {
	font-size: 11px;
	margin-top: 2px;
	opacity: 0.92;
}

/* ========================================
   ガチャ演出
   ======================================== */
.srg-gacha-stage {
	padding: 40px 20px 60px;
	text-align: center;
	background:
		radial-gradient(circle at 50% 50%, rgba(255, 217, 61, 0.25) 0, transparent 60%),
		linear-gradient(180deg, #1B0E3D 0%, #4A1B91 100%);
	border-radius: 12px;
	margin: 10px 16px;
	position: relative;
	overflow: hidden;
}

.srg-gacha-orb {
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #FFE99A 0%, #FF8E5C 50%, #C73838 100%);
	box-shadow:
		0 0 60px rgba(255, 217, 61, 0.6),
		0 0 30px rgba(255, 142, 92, 0.5);
	position: relative;
	animation: srg-orb-spin 0.6s linear infinite, srg-orb-pulse 1.2s ease-in-out infinite;
}

@keyframes srg-orb-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes srg-orb-pulse {
	0%, 100% { transform: scale(1) rotate(0deg); }
	50% { transform: scale(1.08) rotate(180deg); }
}

.srg-gacha-orb-shine {
	position: absolute;
	top: 20%;
	left: 25%;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	filter: blur(6px);
}

.srg-gacha-text {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: #FFE99A;
	letter-spacing: 0.08em;
	text-shadow: 0 0 12px rgba(255, 217, 61, 0.6);
}

/* ========================================
   結果カード
   ======================================== */
.srg-result-section {
	padding: 16px;
}

.srg-card {
	position: relative;
	padding: 30px 24px 24px;
	background: linear-gradient(180deg, #FFFFFF 0%, #FFFAF0 100%);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	border: 3px solid var(--srg-rarity-r);
	overflow: hidden;
}

.srg-card.srg-card--ssr {
	border-color: var(--srg-rarity-ssr);
	background: linear-gradient(180deg, #FFFAEB 0%, #FFF5DD 100%);
	box-shadow: 0 8px 32px rgba(218, 165, 32, 0.30);
}

.srg-card.srg-card--sr {
	border-color: var(--srg-rarity-sr);
	background: linear-gradient(180deg, #FAF5FF 0%, #F2E8FF 100%);
	box-shadow: 0 8px 32px rgba(155, 93, 229, 0.25);
}

.srg-card.srg-card--ssr::before {
	content: '';
	position: absolute;
	top: -20px; left: -20px; right: -20px;
	height: 80px;
	background:
		radial-gradient(circle at 20% 50%, rgba(255, 217, 61, 0.30) 0, transparent 30%),
		radial-gradient(circle at 80% 50%, rgba(218, 165, 32, 0.25) 0, transparent 30%);
}

.srg-card-rarity {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 14px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 800;
	color: #FFFFFF;
	border-radius: 14px;
	letter-spacing: 0.08em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20);
}

.srg-card--r .srg-card-rarity {
	background: linear-gradient(135deg, var(--srg-rarity-r) 0%, #2E6FB5 100%);
}

.srg-card--sr .srg-card-rarity {
	background: linear-gradient(135deg, var(--srg-rarity-sr) 0%, #6A3DB8 100%);
}

.srg-card--ssr .srg-card-rarity {
	background: linear-gradient(135deg, #FFD976 0%, var(--srg-rarity-ssr) 100%);
	color: #6A2B1F;
}

.srg-card-genre {
	display: inline-block;
	padding: 3px 12px;
	font-family: var(--font-display);
	font-size: 11px;
	font-weight: 700;
	color: #FFFFFF;
	background: #5C4A8A;
	border-radius: 10px;
	letter-spacing: 0.05em;
	margin-bottom: 10px;
}

.srg-card-title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 800;
	color: #2D1B5C;
	margin: 0 0 18px;
	line-height: 1.4;
	padding-right: 60px;
}

.srg-card-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 18px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 8px;
}

@media (max-width: 460px) {
	.srg-card-meta {
		grid-template-columns: 1fr;
	}
}

.srg-meta-item {
	text-align: center;
}

.srg-meta-label {
	display: block;
	font-size: 10px;
	letter-spacing: 0.04em;
	color: var(--color-text-secondary);
	margin-bottom: 3px;
}

.srg-meta-value {
	font-family: var(--font-display);
	font-size: 13.5px;
	font-weight: 700;
	color: #2D1B5C;
}

.srg-card-section {
	margin-bottom: 16px;
}

.srg-card-section-title {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: #2D1B5C;
	margin: 0 0 8px;
	padding-left: 10px;
	border-left: 3px solid var(--srg-primary);
}

.srg-card-description {
	font-size: 14px;
	line-height: 1.8;
	color: var(--color-text);
	margin: 0;
}

.srg-materials-list,
.srg-steps-list {
	margin: 0;
	padding-left: 1.4em;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--color-text);
}

.srg-materials-list li,
.srg-steps-list li {
	margin-bottom: 4px;
}

.srg-card-summary-hint {
	font-size: 13px;
	line-height: 1.75;
	color: var(--color-text);
	padding: 10px 12px;
	background: #F7F4FF;
	border-left: 3px solid var(--srg-purple);
	border-radius: 4px;
	margin: 0;
}

/* ========================================
   アクション
   ======================================== */
.srg-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 16px;
}

.srg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	font-family: var(--font-display);
	font-size: 13.5px;
	font-weight: 700;
	border-radius: 22px;
	cursor: pointer;
	border: none;
	letter-spacing: 0.04em;
}

.srg-btn--again {
	background: linear-gradient(135deg, var(--srg-primary) 0%, #C73838 100%);
	color: #FFFFFF;
}

.srg-btn--copy {
	background: #2D1B5C;
	color: #FFFFFF;
}

.srg-btn--share {
	background: #000000;
	color: #FFFFFF;
}

.srg-btn:hover {
	filter: brightness(1.07);
	transform: translateY(-1px);
}
