/**
 * モルック50点上がりルート計算機 - 専用スタイル
 * （共通スタイルは molkky-common.css を参照）
 */

/* ========================================
   スコア入力エリア
   ======================================== */
.score-input-area {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.score-slider-wrap {
	flex: 1;
	min-width: 280px;
}

.score-slider {
	width: 100%;
	height: 8px;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(to right, #c8e6c9 0%, #43a047 100%);
	border-radius: 4px;
	outline: none;
	cursor: pointer;
}

.score-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	background: #2e7d32;
	border: 3px solid var(--color-white);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.score-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	background: #2e7d32;
	border: 3px solid var(--color-white);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.score-slider-ticks {
	display: flex;
	justify-content: space-between;
	margin-top: 6px;
	padding: 0 8px;
	font-size: 11px;
	color: var(--color-text-muted);
}

.score-number-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.score-number {
	width: 90px;
	text-align: right;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
}

/* ========================================
   勝利メッセージ
   ======================================== */
.win-message {
	padding: 24px 20px;
	background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
	border-top: 3px solid #fbc02d;
	display: flex;
	align-items: center;
	gap: 16px;
}

.win-icon {
	font-size: 48px;
	flex-shrink: 0;
}

.win-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.win-text strong {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: #5d4037;
}

.win-text span {
	font-size: 13px;
	color: #6d4c41;
}

/* ========================================
   上がり方（ルート）カード
   ======================================== */
.finish-routes {
	padding: 20px;
	border-top: 1px solid var(--color-border);
	background: #f9fbf9;
}

.routes-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: #2e7d32;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.routes-icon {
	color: #fbc02d;
	font-size: 18px;
}

.route-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.route-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: var(--color-white);
	border: 2px solid #a5d6a7;
	border-radius: var(--radius);
	transition: all 0.2s ease;
}

.route-item:hover {
	border-color: #2e7d32;
	box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

.route-item--disabled {
	opacity: 0.4;
	pointer-events: none;
}

.route-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-white);
	background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
	border-radius: 50%;
}

.route-content {
	flex: 1;
	min-width: 0;
}

.route-name {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 2px;
}

.route-desc {
	font-size: 13px;
	color: var(--color-text-secondary);
	line-height: 1.6;
}

/* ========================================
   継続メッセージ
   ======================================== */
.continue-message {
	padding: 18px 20px;
	background: #e3f2fd;
	border-top: 3px solid #1976d2;
	display: flex;
	align-items: center;
	gap: 14px;
}

.continue-icon {
	font-size: 32px;
	color: #1976d2;
	flex-shrink: 0;
	line-height: 1;
}

.continue-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.continue-text strong {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	color: #0d47a1;
}

.continue-text span {
	font-size: 13px;
	color: #1565c0;
}

/* ========================================
   安全・バースト セクション
   ======================================== */
.safe-section,
.bust-section {
	padding: 20px;
	border-top: 1px solid var(--color-border);
}

.safe-section {
	background: #f1f8e9;
}

.bust-section {
	background: #fff5f5;
}

.pins-row,
.counts-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.pin-chip,
.count-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 700;
	border-radius: var(--radius);
	border: 2px solid;
}

.pin-chip--safe {
	color: #2e7d32;
	background: var(--color-white);
	border-color: #81c784;
}

.pin-chip--bust {
	color: #c62828;
	background: var(--color-white);
	border-color: #ef9a9a;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}

.count-chip--safe {
	color: #2e7d32;
	background: #e8f5e9;
	border-color: #a5d6a7;
}

.count-chip--bust {
	color: #c62828;
	background: #ffebee;
	border-color: #ef9a9a;
}

.chip-label {
	font-size: 11px;
	color: var(--color-text-muted);
	font-weight: 500;
	margin-right: 4px;
	align-self: flex-end;
	padding-bottom: 10px;
}

.bust-warning-text {
	font-size: 12px;
	color: #c62828;
	line-height: 1.6;
	margin-top: 6px;
}

.bust-warning-text strong {
	font-weight: 700;
}

/* ========================================
   戦略アドバイス
   ======================================== */
.advice-section {
	padding: 20px;
	border-top: 1px solid var(--color-border);
	background: #fff8e1;
}

.advice-text {
	font-size: 13px;
	color: #5d4037;
	line-height: 1.9;
	padding-left: 32px;
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 600px) {
	.score-input-area {
		flex-direction: column;
		align-items: stretch;
	}

	.score-slider-wrap {
		min-width: 0;
	}

	.score-number-wrap {
		justify-content: flex-end;
	}

	.pin-chip,
	.count-chip {
		min-width: 40px;
		height: 40px;
		font-size: 13px;
	}

	.win-icon {
		font-size: 36px;
	}

	.win-text strong {
		font-size: 17px;
	}

	.advice-text {
		padding-left: 0;
	}
}
