/**
 * eスポーツカスタム大会ジェネレーター 専用スタイル
 */

.ect-input-section {
	padding: 16px 20px;
}

.ect-input-section + .ect-input-section {
	border-top: 1px solid var(--color-border-light, #EAE7E0);
}

.ect-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0 0 12px;
}

.ect-section-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #FFFFFF;
	background: linear-gradient(135deg, #6A2BD1 0%, #FF3E78 100%);
	flex-shrink: 0;
}

.ect-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 20px;
}

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

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

.ect-form-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text);
}

.ect-form-input,
.ect-form-select {
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-bg);
	font-family: inherit;
}

.ect-form-input:focus,
.ect-form-select:focus {
	outline: none;
	border-color: #6A2BD1;
}

.ect-form-hint {
	font-size: 11.5px;
	color: var(--color-text-muted);
	line-height: 1.5;
}

.ect-input-note {
	margin-top: 8px;
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.6;
}

.ect-input-note code {
	display: inline-block;
	padding: 1px 6px;
	background: #F0F0F0;
	border-radius: 3px;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #6A2BD1;
}

/* ========================================
   結果セクション
   ======================================== */
.ect-result-section {
	padding: 0 20px 16px;
	background: linear-gradient(180deg, #F8F4FF 0%, #FFFFFF 70%);
}

.ect-teams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.ect-team-card {
	background: #FFFFFF;
	border: 2px solid var(--color-border);
	border-radius: 10px;
	overflow: hidden;
}

.ect-team-card--1 { border-color: #FF3E78; }
.ect-team-card--2 { border-color: #2E78C8; }
.ect-team-card--3 { border-color: #2E8B57; }
.ect-team-card--4 { border-color: #DBA935; }
.ect-team-card--5 { border-color: #6A2BD1; }
.ect-team-card--6 { border-color: #C76A1F; }
.ect-team-card--7 { border-color: #009688; }
.ect-team-card--8 { border-color: #455A64; }

.ect-team-header {
	padding: 10px 14px;
	color: #FFFFFF;
	font-family: var(--font-display);
	font-weight: 700;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ect-team-card--1 .ect-team-header { background: linear-gradient(135deg, #FF3E78 0%, #C71F58 100%); }
.ect-team-card--2 .ect-team-header { background: linear-gradient(135deg, #2E78C8 0%, #1A5BA0 100%); }
.ect-team-card--3 .ect-team-header { background: linear-gradient(135deg, #2E8B57 0%, #1F6B40 100%); }
.ect-team-card--4 .ect-team-header { background: linear-gradient(135deg, #DBA935 0%, #B58A23 100%); }
.ect-team-card--5 .ect-team-header { background: linear-gradient(135deg, #6A2BD1 0%, #4A1B91 100%); }
.ect-team-card--6 .ect-team-header { background: linear-gradient(135deg, #C76A1F 0%, #8B3E0F 100%); }
.ect-team-card--7 .ect-team-header { background: linear-gradient(135deg, #009688 0%, #00695C 100%); }
.ect-team-card--8 .ect-team-header { background: linear-gradient(135deg, #455A64 0%, #263238 100%); }

.ect-team-name {
	font-size: 15px;
	letter-spacing: 0.04em;
}

.ect-team-total {
	font-size: 11.5px;
	background: rgba(255, 255, 255, 0.25);
	padding: 2px 8px;
	border-radius: 10px;
	font-family: var(--font-display);
}

.ect-team-members {
	list-style: none;
	padding: 6px 0;
	margin: 0;
}

.ect-team-member {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 7px 14px;
	font-size: 13.5px;
	border-bottom: 1px dashed var(--color-border-light, #EAE7E0);
}

.ect-team-member:last-child {
	border-bottom: none;
}

.ect-member-role {
	flex-shrink: 0;
	min-width: 36px;
	font-size: 10.5px;
	color: var(--color-text-muted);
	font-weight: 600;
	background: #F4F4F4;
	border-radius: 4px;
	padding: 3px 8px;
	text-align: center;
	white-space: nowrap;
}

.ect-member-name {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	color: var(--color-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ect-member-rank {
	flex-shrink: 0;
	font-family: var(--font-display);
	font-size: 12px;
	font-weight: 700;
	color: #6A2BD1;
}

/* ========================================
   ロビー情報ボックス
   ======================================== */
.ect-lobby-info {
	margin: 14px 0;
	padding: 12px 14px;
	background: #FFFFFF;
	border: 1px solid #C8D8E8;
	border-left: 4px solid #2E78C8;
	border-radius: 6px;
}

.ect-lobby-info:empty {
	display: none;
}

.ect-lobby-info dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 14px;
	font-size: 13px;
}

.ect-lobby-info dt {
	font-weight: 600;
	color: var(--color-text-secondary);
}

.ect-lobby-info dd {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	color: #1E5BA8;
	letter-spacing: 0.03em;
}

/* ========================================
   ゲーム別ロール一覧
   ======================================== */
.ect-roles-list {
	margin: 8px 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ect-role-item {
	padding: 10px 12px;
	background: var(--color-bg);
	border-left: 3px solid #6A2BD1;
	border-radius: 4px;
}

.ect-role-item dt {
	font-family: var(--font-display);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 4px;
}

.ect-role-item dd {
	margin: 0;
	font-size: 12.5px;
	color: var(--color-text-secondary);
	line-height: 1.7;
}

.info-text-small {
	font-size: 12px;
	color: var(--color-text-muted);
	line-height: 1.7;
	margin-top: 10px;
}

.ect-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 8px;
}
