.game-feedback-actions {
	margin: var(--space-6) 0;
}

body.game-feedback-modal-open {
	overflow: hidden;
}

.game-feedback-actions__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.game-feedback-actions__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--text-main);
	color: var(--text-white);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: transform var(--transition-base), background-color var(--transition-base), opacity var(--transition-base);
}

.game-feedback-actions__button svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.game-feedback-actions__button:hover {
	background: var(--text-black);
}

.game-feedback-actions__button:active {
	transform: scale(0.98);
}

.game-feedback-actions__button:focus-visible,
.game-feedback-modal__close:focus-visible,
.game-feedback-modal__success-close:focus-visible {
	outline: 2px solid rgba(59, 130, 246, 0.38);
	outline-offset: 2px;
}

.game-feedback-actions__button--secondary {
	background: rgba(15, 23, 42, 0.08);
	color: var(--text-main);
}

.game-feedback-actions__button--secondary:hover {
	background: rgba(15, 23, 42, 0.14);
}

.game-feedback-modal[hidden] {
	display: none !important;
}

.game-feedback-modal__notice[hidden],
.game-feedback-modal__success[hidden],
.game-feedback-modal__form[hidden] {
	display: none !important;
}

.game-feedback-modal {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 12px;
}

.game-feedback-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.48);
	backdrop-filter: blur(4px);
}

.game-feedback-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 620px);
	max-height: min(86vh, 760px);
	padding: 20px;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: rgba(15, 23, 42, 0.3) 0 24px 60px -24px, rgba(15, 23, 42, 0.18) 0 10px 30px -18px;
	overflow-y: auto;
}

.game-feedback-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.game-feedback-modal__title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.2;
}

.game-feedback-modal__description {
	margin: 0;
	color: var(--text-secondary);
	line-height: 1.5;
}

.game-feedback-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border: 0;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.06);
	color: var(--text-main);
	cursor: pointer;
	transition: background-color var(--transition-base);
}

.game-feedback-modal__close:hover {
	background: rgba(15, 23, 42, 0.12);
}

.game-feedback-modal__notice {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	line-height: 1.55;
	border: 1px solid transparent;
}

.game-feedback-modal__notice ul {
	margin: 0;
	padding-left: 18px;
}

.game-feedback-modal__notice.is-error {
	background: #fff1f2;
	border-color: #fecdd3;
	color: #9f1239;
}

.game-feedback-modal__success {
	display: grid;
	justify-items: start;
	gap: 12px;
	padding: 8px 0 4px;
}

.game-feedback-modal__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: #dcfce7;
	color: #166534;
}

.game-feedback-modal__success-title {
	margin: 0;
	font-size: 20px;
}

.game-feedback-modal__success-text {
	margin: 0;
	color: var(--text-secondary);
	line-height: 1.6;
}

.game-feedback-modal__success-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--text-main);
	color: var(--text-white);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.game-feedback-modal__form {
	display: grid;
	gap: 14px;
}

.game-feedback-modal__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.game-feedback-modal__field {
	display: grid;
	gap: 8px;
}

.game-feedback-modal__field span {
	font-size: 13px;
	font-weight: 500;
}

.game-feedback-modal__field textarea {
	min-height: 150px;
}

.game-feedback-modal__captcha {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	min-height: 74px;
	overflow-x: auto;
}

.game-feedback-modal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.game-feedback-modal__submit {
	background-color: var(--text-main);
	color: var(--text-white);
	padding: 10px 24px;
	border-radius: var(--radius-md);
	cursor: pointer;
	font-weight: 700;
	font-size: 15px;
	border: none;
	transition: background-color var(--transition-base), opacity var(--transition-base);
}

.game-feedback-modal__submit:hover {
	background-color: var(--text-black);
}

.game-feedback-modal__submit:focus-visible {
	outline: 2px solid var(--link-color);
	outline-offset: 2px;
}

.game-feedback-modal__submit[disabled] {
	opacity: 0.72;
	cursor: wait;
}

.dark .game-feedback-actions__button {
	background: rgba(255, 255, 255, 0.12);
}

.dark .game-feedback-actions__button:hover {
	background: rgba(255, 255, 255, 0.18);
}

.dark .game-feedback-actions__button--secondary {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-white);
}

.dark .game-feedback-modal__dialog {
	background: #18181b;
	box-shadow: rgba(0, 0, 0, 0.42) 0 28px 64px -24px;
}

.dark .game-feedback-modal__close {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text-secondary);
}

.dark .game-feedback-modal__submit {
	background-color: var(--zinc-700);
	color: var(--text-white);
}

.dark .game-feedback-modal__submit:hover {
	background-color: var(--zinc-600);
}

.dark .game-feedback-modal__notice.is-error {
	background: rgba(127, 29, 29, 0.28);
	border-color: rgba(248, 113, 113, 0.28);
	color: #fecaca;
}

@media (max-width: 720px) {
	.game-feedback-modal {
		padding: 12px;
	}

	.game-feedback-modal__dialog {
		padding: 16px;
		border-radius: 16px;
	}

	.game-feedback-modal__grid {
		grid-template-columns: 1fr;
	}
}
