.scb-page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 0 2rem;
	color: #1f2430;
}

.scb-board-zone {
	width: min(100%, var(--wp--style--global--wide-size, 1200px));
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}

.scb-feedback {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 1rem 0 1.25rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
}

.scb-feedback-success {
	background: #edf7ef;
	border: 1px solid #c5dfca;
}

.scb-feedback-error {
	background: #fff2f2;
	border: 1px solid #ebc3c3;
}

.scb-board-shell {
	margin-top: 0.5rem;
	border: 1px solid #d7d1c7;
	border-radius: 18px;
	padding: 0.85rem;
	overflow: hidden;
	background:
		radial-gradient(circle at top left, rgba(189, 168, 128, 0.18), transparent 30%),
		linear-gradient(180deg, #f7f4ee 0%, #f1ece2 100%);
	box-shadow: 0 14px 30px rgba(26, 31, 40, 0.07);
}

.scb-board-scroll {
	overflow-x: visible;
	overflow-y: visible;
	padding-bottom: 0.1rem;
}

.scb-board {
	display: grid;
	grid-template-columns: 36px repeat(8, minmax(0, 1fr));
	width: 100%;
	max-width: 100%;
	gap: 6px;
	align-items: stretch;
}

.scb-corner,
.scb-file-label,
.scb-rank-label {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
	color: #6f6658;
}

.scb-cell-wrap {
	aspect-ratio: 1 / 1;
}

.scb-square {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 1px solid rgba(32, 36, 44, 0.08);
	border-radius: 14px;
	overflow: visible;
	background: transparent;
	text-align: left;
}

button.scb-square {
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

button.scb-square:hover,
button.scb-square:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 22px rgba(31, 36, 48, 0.14);
	border-color: rgba(77, 139, 89, 0.48);
}

.scb-square-light {
	background: #f4ead5;
}

.scb-square-dark {
	background: #8b6b47;
}

.scb-square-light .scb-square-inner {
	color: #1f2430;
}

.scb-square-dark .scb-square-inner {
	color: #f7f4ee;
}

.scb-square-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	height: 100%;
	box-sizing: border-box;
	border-radius: 14px;
	padding: 0.7rem;
	overflow: hidden;
}

.scb-square-main {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.24rem;
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
}

.scb-square-id {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.88;
}

.scb-square-status {
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	word-break: normal;
	overflow-wrap: normal;
}

.scb-square-status-primary {
	font-size: 0.84rem;
}

.scb-square-subline-strong {
	font-size: 0.72rem;
	line-height: 1.18;
	display: block;
	overflow: hidden;
	word-break: break-word;
	overflow-wrap: anywhere;
	white-space: normal;
	width: 100%;
	text-align: left;
	min-width: 0;
	max-width: 100%;
	max-height: 2.4em;
}

.scb-square-name-lines {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.04rem;
	width: 100%;
}

.scb-square-name-line {
	display: block;
	width: 100%;
}

.scb-square-subline {
	font-size: 0.72rem;
	line-height: 1.2;
	opacity: 0.95;
	text-align: left;
}

.scb-square-cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	max-width: 100%;
	margin-top: auto;
	padding: 0.22rem 0.46rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.2);
}

.scb-status-pending .scb-square-inner {
	background: linear-gradient(180deg, rgba(186, 141, 53, 0.12), rgba(186, 141, 53, 0.28));
}

.scb-status-sold .scb-square-inner {
	background: linear-gradient(180deg, rgba(32, 49, 86, 0.08), rgba(32, 49, 86, 0.18));
}

.scb-square-logo {
	display: block;
	max-width: 100%;
	max-height: 48px;
	object-fit: contain;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
	transition: transform 0.18s ease;
}

.scb-square-logo-wrap {
	display: flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: center;
}

.scb-square-inner-has-logo .scb-square-subline-strong {
	margin-top: 0.18rem;
	text-align: center;
	font-weight: 700;
}

.scb-square-inner-has-logo .scb-square-name-lines {
	align-items: center;
}

.scb-sponsor-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.scb-free-list {
	margin-top: 1rem;
	padding: 0.9rem 1rem 1rem;
	border: 1px solid #e8e0d3;
	border-radius: 14px;
	background: rgba(252, 251, 248, 0.76);
}

.scb-board-footer-link {
	margin-top: 0.9rem;
}

.scb-board-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	background: #edf5ef;
	color: #18452f;
	text-decoration: none;
	font-weight: 700;
}

.scb-free-list h3 {
	margin-top: 0;
	margin-bottom: 0.7rem;
	font-size: 1.05rem;
}

.scb-free-list-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.scb-free-pill {
	padding: 0.55rem 0.8rem;
	border: 1px solid #d7cfbf;
	border-radius: 999px;
	background: #f6f1e7;
	cursor: pointer;
}

.scb-modal[hidden] {
	display: none;
}

.scb-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	overflow-y: auto;
	padding: 1rem 0;
}

.scb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 21, 28, 0.55);
}

.scb-modal-panel {
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	width: min(560px, calc(100vw - 2rem));
	margin: 5vh auto;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 1.25rem;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(17, 21, 31, 0.22);
}

body.scb-modal-open {
	overflow: hidden;
}

.scb-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	cursor: pointer;
}

.scb-form-intro {
	color: #526075;
	line-height: 1.55;
}

.scb-form {
	display: grid;
	gap: 0.9rem;
}

.scb-form label {
	display: grid;
	gap: 0.35rem;
}

.scb-form input,
.scb-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid #d0d6dd;
	border-radius: 10px;
	background: #fcfdff;
}

.scb-required-note {
	margin: -0.2rem 0 0;
	font-size: 0.86rem;
	color: #526075;
}

.scb-required-marker {
	color: #b42318;
}

.scb-form-highlight {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.85rem 0.95rem;
	border-radius: 12px;
	background: #f6f1e7;
}

.scb-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
}

.scb-primary-button,
.scb-secondary-button {
	border: 0;
	border-radius: 999px;
	padding: 0.75rem 1.1rem;
	cursor: pointer;
	font-weight: 700;
}

.scb-primary-button {
	background: #1f5f43;
	color: #fff;
}

.scb-secondary-button {
	background: #ece8e0;
	color: #1f2430;
}

.scb-sponsors-page {
	padding: 0;
}

.scb-sponsors-header {
	margin-bottom: 1.5rem;
}

.scb-sponsors-header h2 {
	margin-bottom: 0.4rem;
}

.scb-sponsor-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.scb-sponsor-card {
	display: grid;
	grid-template-rows: 180px auto;
	border: 1px solid #e0d8c8;
	border-radius: 18px;
	background: #fffdf9;
	box-shadow: 0 12px 30px rgba(27, 34, 43, 0.08);
	overflow: hidden;
}

.scb-sponsor-card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: linear-gradient(180deg, #f4efe5, #efe6d8);
}

.scb-sponsor-card-media img {
	max-width: 100%;
	max-height: 140px;
	object-fit: contain;
}

.scb-sponsor-card-placeholder {
	color: #5f665f;
	font-weight: 600;
}

.scb-sponsor-card-body {
	padding: 1rem 1rem 1.15rem;
}

.scb-sponsor-card-body h3 {
	margin: 0.1rem 0 0.6rem;
	font-size: 1.4rem;
	line-height: 1.15;
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 20ch;
}

.scb-sponsor-card-meta {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #657261;
}

.scb-info-modal[hidden] {
	display: none;
}

.scb-info-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
}

.scb-info-modal-panel {
	width: min(520px, calc(100vw - 2rem));
}

.scb-info-modal-logo {
	display: block;
	max-width: 100%;
	max-height: 180px;
	margin: 0 auto 1rem;
	object-fit: contain;
}

.scb-info-modal-link-wrap {
	margin-top: 1rem;
}

@media (max-width: 700px) {
	.scb-page {
		padding-bottom: 1.5rem;
	}

	.scb-board-zone {
		width: 100%;
		max-width: 100%;
	}

	.scb-board-shell {
		padding: 0.7rem;
	}

	.scb-board-scroll {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.scb-board {
		width: max-content;
		min-width: 640px;
	}

	.scb-square-status {
		font-size: 0.58rem;
		line-height: 1.05;
	}

	.scb-square-status-primary,
	.scb-square-subline-strong {
		font-size: 0.52rem;
		line-height: 1.05;
	}

	.scb-square-subline {
		font-size: 0.5rem;
		line-height: 1.05;
	}

	.scb-square-id {
		display: none;
	}

	.scb-square-inner-has-logo .scb-square-subline-strong {
		display: none;
	}

	.scb-square-logo {
		max-height: 48px;
	}

	.scb-square-logo-wrap {
		min-height: 48px;
	}

	.scb-square-cta {
		padding: 0.06rem 0.18rem;
		font-size: 0.42rem;
		line-height: 1;
		white-space: normal;
		text-align: center;
	}

	.scb-square-name-lines {
		gap: 0;
	}

	.scb-sponsor-link {
		pointer-events: none;
	}

	.scb-form-actions {
		flex-direction: column;
	}

	.scb-primary-button,
	.scb-secondary-button {
		width: 100%;
	}
}
