:root {
	--sq-card-radius: 10px;
	--sq-elev-1: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.blog_area .blog_single_item,
.blog_area .widget,
.blog_area .board_game_widget {
	border-radius: var(--sq-card-radius);
}

.blog_area .board_game_widget {
	box-shadow: none;
}

.sidequest-mission-editor .acf-form .acf-fields > .acf-field {
	padding-left: 0;
	padding-right: 0;
}

.sidequest-mission-editor .acf-form-submit .acf-button,
.sidequest-mission-editor .acf-form-submit input[type="submit"] {
	border: 0;
	border-radius: 30px;
	padding: 10px 22px;
}

.sidequest-challenge-editor .acf-form-submit {
	display: none;
}

.sidequest-save-challenge-dock .sidequest-challenge-status--dock {
	min-width: 140px;
}

.sidequest-save-challenge-dock .sidequest-dock-slot__control.sidequest-save-challenge-btn {
	padding: 10px 16px;
	line-height: 1.2;
	font-size: 14px;
}

.sidequest-create-game-sidebar .sidequest-dock-slot {
	margin-top: 0 !important;
}

.acf-form .acf-fields > .acf-field {
	padding-left: 0;
	padding-right: 0;
}

.acf-form .acf-label label {
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.acf-form input[type="text"],
.acf-form input[type="email"],
.acf-form input[type="url"],
.acf-form input[type="number"],
.acf-form input[type="search"],
.acf-form input[type="password"],
.acf-form textarea,
.acf-form select {
	width: 100%;
	border: 1px solid #ced4da;
	border-radius: 0.375rem;
	padding: 0.5rem 0.75rem;
	background: #fff;
	color: inherit;
	box-sizing: border-box;
}

.acf-form textarea {
	min-height: 110px;
}

.acf-form .acf-button,
.acf-form .acf-form-submit input[type="submit"] {
	border-radius: 14px;
}

.blog_area .new-game-form .action_btn {
	display: inline-block;
}

/* -------------------------------------------------------------------------
   Game board + player row (ported from sidequest-bingo-front style-main.css)
   Theme build was missing these rules, so boards rendered empty/invisible.
   ------------------------------------------------------------------------- */

.board_game_info {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-content: flex-start;
	align-items: flex-start;
}

.board_game_info .board_game_item {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 0;
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.1s linear;
	margin: 0 !important;
	padding: 8px;
	min-height: 0;
	aspect-ratio: 1/1;
	background-color: #f5f5f5;
	border: 1px solid #e0e0e0;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	box-sizing: border-box;
}

.board_game_info .board_game_item img {
	max-width: 100%;
	display: block;
	margin: 0;
	padding: 0;
	width: 100%;
	height: auto;
}

.board_game_info .board_game_item .board_game_item_text {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-align: center;
	font-weight: 500;
	color: #333;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	padding: 4px;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 1.2;
	white-space: normal;
	overflow: hidden;
}

.board_game_info .board_game_item::after {
	font-family: "ElegantIcons";
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	content: "$";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	z-index: 1;
	opacity: 0;
	transition: all 0.2s linear;
}

.board_game_info .board_game_item:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(29, 39, 70, 0.5);
	z-index: 0;
	opacity: 0;
	transition: all 0.2s linear;
}

.board_game_info .board_game_item:hover:before,
.board_game_info .board_game_item:hover:after {
	opacity: 1;
}

.board_game_info.tic_tac_toe_info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2%;
	row-gap: 2%;
	column-gap: 2%;
}

.board_game_info.tic_tac_toe_info .board_game_item {
	width: 100%;
	max-width: 100%;
}

.board_game_info.tic_tac_toe_info .board_game_item .board_game_item_text {
	font-size: clamp(12px, 3vw, 18px);
}

.board_game_info .board_game_item.heart-pattern-square {
	background-color: #d0d0d0;
	border-color: #b0b0b0;
}

.board_game_info.bingo_game_info {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.25%;
	row-gap: 1.25%;
	column-gap: 1.25%;
}

.board_game_info.bingo_game_info .board_game_item {
	width: 100%;
	max-width: 100%;
}

.board_game_info.bingo_game_info .board_game_item .board_game_item_text {
	font-size: clamp(9px, 2vw, 14px);
}

/* Board add-player control: sized via plugin (assets/css/cinqo-game-board.css) to match .user-img */

.challenge-modal-title {
	font-size: 24px;
	font-weight: 500;
	margin-bottom: 24px;
	color: var(--h_title, #171d24);
	line-height: 1.4;
}

.challenge-modal-description {
	font-size: 16px;
	line-height: 1.6;
	color: var(--p_color, #677294);
	margin-bottom: 0;
	min-height: 60px;
}

.challenge-complete-btn {
	min-width: 120px;
}

.challenge-complete-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

.challenge-complete-btn:disabled:hover {
	box-shadow: none;
	transform: none;
}

.board_game_widget .user-list-widget {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
}

.board_game_widget .user-list-widget .single-user-widget {
	flex-shrink: 0;
	min-width: 0;
	padding: 0;
	box-shadow: none;
	border: 0;
}

/* .user-img / avatar sizing for board player row: plugin cinqo-game-board.css (single --sq-player-avatar-size token) */

/* -------------------------------------------------------------------------
   Universal bottom dock (see js/sidequest-dock.js)
   Anchor scrolls away → .sidequest-dock-slot gets .is-docked (viewport-wide bar;
   only slot contents show in the bar; use __inner + .container to align with page.)
   ------------------------------------------------------------------------- */

.sidequest-dock-anchor {
	position: relative;
}

.sidequest-dock-slot.is-docked {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1030;
	margin: 0;
	background: #fff;
	box-shadow: 0 -6px 24px rgba(16, 24, 40, 0.12);
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.sidequest-dock-slot.is-docked .sidequest-dock-slot__inner {
	width: 100%;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

/* In-flow: inner .container should not narrow sidebar columns; docked uses real container width */
.sidequest-dock-slot:not(.is-docked) .sidequest-dock-slot__inner.container {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

/* Docked: natural-width control, left-aligned with theme .container content edge */
.sidequest-dock-slot.is-docked .sidequest-dock-slot__control {
	width: auto;
	display: inline-block;
}

/* Create game sidebar: full-width button while in-flow in the column */
.sidequest-create-game-sidebar .sidequest-dock-slot:not(.is-docked) .sidequest-dock-slot__control {
	width: 100%;
}
