.association-single-page,
.association-archive-page,
.association-template-page {
	padding: 40px 0 52px;
	background: #e7f3f1;
}

.association-game-shell,
.association-archive-shell {
	width: min(1280px, 90%);
	margin: 0 auto;
}

.association-game-header,
.association-archive-header {
	margin-top: 50px;
	margin-bottom: 18px;
	border: 1px solid rgba(117, 59, 189, .14);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(117, 59, 189, .08), rgba(92, 184, 228, .12));
	box-shadow: 0 10px 18px rgba(48, 66, 82, .06);
	padding: 18px;
}

.association-game-kicker {
	margin: 0 0 4px;
	color: #6d3db2;
	font-family: "Axiforma-Regular", sans-serif;
	font-size: 1.35rem;
	text-transform: uppercase;
	letter-spacing: 0;
}

.association-game-header h1,
.association-archive-header h1 {
	margin: 0;
	color: #24394b;
	font-size: clamp(3rem, 5vw, 5.8rem);
	line-height: 1.02;
}

.association-game-summary {
	max-width: 780px;
	margin: 10px 0 0;
	color: #3f5666;
	font-size: 1.65rem;
	line-height: 1.45;
}

.association-game {
	border: 1px solid rgba(117, 59, 189, .14);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(117, 59, 189, .08), rgba(92, 184, 228, .12));
	box-shadow: 0 10px 18px rgba(48, 66, 82, .06);
	padding: 18px;
}

.association-player-panel {
	max-width: 620px;
	border: 1px solid rgba(117, 59, 189, .14);
	border-radius: 12px;
	background: #eef7f6;
	padding: 16px;
}

.association-player-form label,
.association-answer-form label,
.association-final-form label {
	display: block;
	margin-bottom: 6px;
	color: #24394b;
	font-family: "Axiforma-Regular", sans-serif;
	font-size: 1.35rem;
}

.association-player-form__row,
.association-answer-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: start;
}

.association-answer-form__row {
	gap: 0;
	grid-template-columns: 1fr;
}

.association-answer-form button,
.association-final-form button {
	width: 100%;
}

.association-player-form input,
.association-answer-form input,
.association-final-form input {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	min-height: 44px;
	border: 1px solid rgba(117, 59, 189, .25);
	border-radius: 12px;
	background: #fff;
	color: #26374a;
	font-size: 1.5rem;
}

.association-player-form input:focus,
.association-answer-form input:focus,
.association-final-form input:focus {
	outline: none;
	border-color: #753bbd;
	box-shadow: 0 0 0 3px rgba(117, 59, 189, .14);
}

.association-player-form button,
.association-answer-form button,
.association-final-form button,
.association-reset-button,
.association-archive-item__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	margin: 0;
	width: auto;
	height: 44px;
	min-height: 44px;
	border: 1px solid rgba(117, 59, 189, .32);
	border-radius: 12px;
	background: linear-gradient(180deg, #f8f4fd 0%, #efe7fb 100%);
	color: #6e3eb3;
	font-family: "Axiforma-Regular", sans-serif;
	font-size: 1.45rem;
	line-height: 1.1;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease;
}

.association-player-form button,
.association-answer-form button,
.association-final-form button {
	padding: 0 14px;
}

.association-player-form button:hover,
.association-answer-form button:hover,
.association-final-form button:hover,
.association-reset-button:hover,
.association-archive-item__link:hover {
	border-color: rgba(117, 59, 189, .55);
	background: linear-gradient(180deg, #f3ecfb 0%, #e9ddfa 100%);
	transform: translateY(-1px);
}

.association-player-form__status,
.association-answer-form__status {
	min-height: 22px;
	margin: 7px 0 0;
	color: #3d5669;
	font-size: 1.3rem;
}

.association-player-form__status.is-error,
.association-answer-form__status.is-error {
	color: #b62626;
}

.association-player-form__status.is-success,
.association-answer-form__status.is-success {
	color: #24744b;
}

.association-game-board[aria-hidden="true"] {
	display: none;
}

.association-game-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.association-game-meta p {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	border: 1px solid rgba(117, 59, 189, .18);
	border-radius: 999px;
	background: rgba(117, 59, 189, .08);
	color: #3f5666;
	padding: 7px 13px;
	font-size: 1.35rem;
	line-height: 1;
}

.association-game-meta strong {
	color: #6d3db2;
	font-family: "Gilroy-Bold", sans-serif;
}

.association-column__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.association-reset-button {
	width: auto;
	padding: 9px 13px;
	margin-left: auto;
}

.association-columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.association-column {
	min-width: 0;
	border: 1px solid rgba(117, 59, 189, .14);
	border-radius: 12px;
	background: #eef7f6;
	padding: 12px;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.association-column:focus-within {
	border-color: rgba(117, 59, 189, .36);
	background: #f8f4fd;
	box-shadow: 0 12px 20px rgba(48, 66, 82, .08);
}

.association-column h2 {
	margin: 0;
	color: #24394b;
	font-size: 2.4rem;
	line-height: 1;
}

.association-column__header p {
	margin: 0;
	border: 1px solid rgba(117, 59, 189, .18);
	border-radius: 999px;
	background: rgba(117, 59, 189, .08);
	color: #6d3db2;
	padding: 5px 9px;
	font-size: 1.2rem;
	line-height: 1;
	white-space: nowrap;
}

.association-terms {
	display: grid;
	gap: 8px;
}

.association-term {
	position: relative;
	width: 100%;
	min-height: 74px;
	margin: 0;
	border: 1px solid rgba(117, 59, 189, .2);
	border-radius: 10px;
	background: #fff;
	color: #24394b;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 8px 14px rgba(48, 66, 82, .06);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.association-term:hover,
.association-term:focus-visible {
	border-color: rgba(117, 59, 189, .42);
	box-shadow: 0 10px 18px rgba(48, 66, 82, .1);
	transform: translateY(-1px);
}

.association-term__label,
.association-term__text {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	text-align: center;
	transition: opacity .16s ease;
}

.association-term__label {
	background: linear-gradient(180deg, #753bbd 0%, #6d3db2 100%);
	color: #fff;
	font-family: "Axiforma-Regular", sans-serif;
	font-size: 2.1rem;
}

.association-term__text {
	opacity: 0;
	color: #24394b;
	font-size: 1.55rem;
	line-height: 1.22;
	overflow-wrap: anywhere;
}

.association-term.is-open .association-term__label {
	opacity: 0;
}

.association-term.is-open .association-term__text {
	opacity: 1;
	background: #fff;
}

.association-answer-form,
.association-final-form {
	margin-top: 10px;
}

.association-answer-form label,
.association-final-form label {
	min-height: 18px;
}

.association-answer-form.is-solved input,
.association-final-form.is-solved input {
	border-color: rgba(59, 189, 135, .55);
	background: #effaf4;
	color: #195b38;
	font-weight: 700;
}

.association-answer-form input:disabled,
.association-answer-form button:disabled,
.association-final-form input:disabled,
.association-final-form button:disabled {
	cursor: not-allowed;
	opacity: .58;
}

.association-final-form {
	margin-top: 16px;
	padding: 14px;
	border: 1px solid rgba(117, 59, 189, .14);
	border-radius: 12px;
	background: #eef7f6;
}

.association-game-content {
	margin-top: 22px;
	color: #3d5669;
	font-size: 1.55rem;
	line-height: 1.55;
}

.association-archive-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.association-archive-item {
	border: 1px solid rgba(117, 59, 189, .14);
	border-radius: 12px;
	background: #eef7f6;
	padding: 16px;
	box-shadow: 0 10px 18px rgba(48, 66, 82, .06);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.association-archive-item:hover,
.association-archive-item:focus-within {
	transform: translateY(-2px);
	border-color: rgba(117, 59, 189, .36);
	background: #f8f4fd;
	box-shadow: 0 12px 20px rgba(48, 66, 82, .08);
}

.association-archive-item h2 {
	margin: 0 0 8px;
	font-size: 2.2rem;
}

.association-archive-item h2 a {
	color: #24394b;
	text-decoration: none;
}

.association-archive-item h2 a:hover,
.association-archive-item h2 a:focus {
	color: #6d3db2;
}

.association-archive-item p {
	margin: 0 0 14px;
	color: #3d5669;
	font-size: 1.45rem;
	line-height: 1.45;
}

.association-archive-item__link {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
}

.association-empty-state {
	border: 1px dashed rgba(117, 59, 189, .32);
	border-radius: 12px;
	background: #f8f5fd;
	color: #3d5669;
	padding: 14px;
	font-size: 1.6rem;
}

.association-results-panel {
	margin-top: 22px;
	border: 1px solid rgba(117, 59, 189, .14);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(117, 59, 189, .08), rgba(92, 184, 228, .12));
	box-shadow: 0 10px 18px rgba(48, 66, 82, .06);
	padding: 18px;
}

.association-results-panel__header {
	margin-bottom: 12px;
}

.association-results-panel__header h2 {
	margin: 0;
	color: #24394b;
	font-size: 2.4rem;
}

.association-results-table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(117, 59, 189, .14);
	border-radius: 12px;
	background: #eef7f6;
}

.association-results-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	color: #24394b;
	font-size: 1.45rem;
}

.association-results-table th,
.association-results-table td {
	padding: 11px 12px;
	border-bottom: 1px solid rgba(117, 59, 189, .12);
	text-align: left;
	vertical-align: middle;
}

.association-results-table th {
	color: #6d3db2;
	font-family: "Axiforma-Regular", sans-serif;
	font-weight: 700;
}

.association-results-table th button {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	padding: 0;
}

.association-results-table th button::after {
	content: "↕";
	margin-left: 7px;
	color: #8c6abf;
	font-size: 1.15rem;
	line-height: 1;
}

.association-results-table th button[aria-sort="ascending"]::after {
	content: "↑";
}

.association-results-table th button[aria-sort="descending"]::after {
	content: "↓";
}

.association-results-table tbody tr:last-child td {
	border-bottom: 0;
}

@media only screen and (max-width: 980px) {
	.association-columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 640px) {
	.association-single-page,
	.association-archive-page,
	.association-template-page {
		padding: 22px 10px 34px;
	}

	.association-game {
		padding: 12px;
	}

	.association-game-header,
	.association-archive-header {
		margin-top: 30px;
	}

	.association-columns,
	.association-player-form__row,
	.association-answer-form__row {
		grid-template-columns: 1fr;
	}

	.association-term {
		min-height: 68px;
	}

	.association-game-meta {
		align-items: stretch;
	}

	.association-game-meta p,
	.association-reset-button {
		width: 100%;
		margin-left: 0;
		justify-content: center;
	}
}
