/* SJ Mini Games — frontend */
.sjmg-app {
	--sjmg-bg: #f3efe6;
	--sjmg-ink: #1c2a2e;
	--sjmg-accent: #0f6b5c;
	--sjmg-accent-2: #c45c26;
	--sjmg-card: #fffdf8;
	--sjmg-back: #1f4d47;
	--sjmg-muted: #5c6b70;
	--sjmg-line: #d6cfc0;
	--sjmg-radius: 14px;
	--sjmg-font: "Segoe UI", "Trebuchet MS", sans-serif;

	font-family: var(--sjmg-font);
	color: var(--sjmg-ink);
	background:
		radial-gradient(1200px 400px at 10% -10%, rgba(15, 107, 92, 0.12), transparent 60%),
		radial-gradient(900px 360px at 100% 0%, rgba(196, 92, 38, 0.1), transparent 55%),
		var(--sjmg-bg);
	border: 1px solid var(--sjmg-line);
	border-radius: calc(var(--sjmg-radius) + 4px);
	padding: 20px;
	max-width: 920px;
	margin: 0 auto;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

.sjmg-app *,
.sjmg-app *::before,
.sjmg-app *::after {
	box-sizing: border-box;
}

.sjmg-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 18px;
}

.sjmg-header h2 {
	margin: 0;
	font-size: 1.55rem;
	letter-spacing: -0.02em;
}

.sjmg-header p {
	margin: 4px 0 0;
	color: var(--sjmg-muted);
	font-size: 0.95rem;
}

.sjmg-panel {
	background: rgba(255, 253, 248, 0.72);
	border: 1px solid var(--sjmg-line);
	border-radius: var(--sjmg-radius);
	padding: 16px;
	margin-bottom: 14px;
}

.sjmg-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.sjmg-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 160px;
}

.sjmg-field label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--sjmg-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sjmg-field input,
.sjmg-field select {
	border: 1px solid var(--sjmg-line);
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	background: #fff;
	color: var(--sjmg-ink);
}

.sjmg-btn {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
	background: var(--sjmg-accent);
	color: #fff;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.sjmg-btn:hover {
	transform: translateY(-1px);
}

.sjmg-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.sjmg-btn-ready {
	background: #16a34a !important;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25);
	animation: sjmg-ready-pulse 1.2s ease-in-out infinite;
}

@keyframes sjmg-ready-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2); }
	50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.35); }
}

.sjmg-pill.is-ready {
	background: #dcfce7;
	color: #166534;
	border-color: #86efac;
}

.sjmg-btn-secondary {
	background: transparent;
	color: var(--sjmg-accent);
	border: 1.5px solid var(--sjmg-accent);
}

.sjmg-btn-warm {
	background: var(--sjmg-accent-2);
}

.sjmg-deck-picker {
	width: 100%;
}

.sjmg-combo {
	position: relative;
	width: 100%;
}

.sjmg-combo-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1.5px solid var(--sjmg-line);
	border-radius: 12px;
	background: var(--sjmg-card);
	color: var(--sjmg-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.sjmg-combo-trigger.is-placeholder .sjmg-combo-label {
	color: var(--sjmg-muted);
}

.sjmg-combo-trigger:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sjmg-combo.is-open .sjmg-combo-trigger,
.sjmg-combo-trigger:focus {
	outline: none;
	border-color: var(--sjmg-accent);
	box-shadow: 0 0 0 2px rgba(15, 107, 92, 0.15);
}

.sjmg-combo-caret {
	color: var(--sjmg-muted);
	font-size: 0.85rem;
	line-height: 1;
}

.sjmg-combo-panel {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 1.5px solid var(--sjmg-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(20, 36, 48, 0.14);
}

.sjmg-combo-panel[hidden] {
	display: none !important;
}

.sjmg-combo-search {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1.5px solid var(--sjmg-line);
	border-radius: 10px;
	font: inherit;
	color: var(--sjmg-ink);
	background: #f7fafc;
}

.sjmg-combo-search:focus {
	outline: none;
	border-color: var(--sjmg-accent);
	background: #fff;
}

.sjmg-combo-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 260px;
	overflow: auto;
}

.sjmg-combo-option {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
}

.sjmg-combo-option:hover,
.sjmg-combo-option:focus {
	background: #eef8f5;
	outline: none;
}

.sjmg-combo-option.is-selected {
	background: #e7f5f1;
	box-shadow: inset 0 0 0 1.5px rgba(15, 107, 92, 0.35);
}

.sjmg-combo-option strong {
	font-weight: 650;
}

.sjmg-combo-option span {
	color: var(--sjmg-muted);
	font-size: 0.85rem;
}

.sjmg-combo-empty {
	padding: 12px;
	color: var(--sjmg-muted);
	font-size: 0.95rem;
}

.sjmg-back-bar {
	display: flex;
	justify-content: flex-start;
	margin: 0 0 12px;
}

.sjmg-back-bar:last-child {
	margin: 14px 0 0;
}

.sjmg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sjmg-status-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.sjmg-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(15, 107, 92, 0.1);
	color: var(--sjmg-accent);
	font-weight: 650;
	font-size: 0.9rem;
}

.sjmg-pill.is-wait {
	background: rgba(196, 92, 38, 0.12);
	color: var(--sjmg-accent-2);
}

.sjmg-scores {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.sjmg-score {
	min-width: 110px;
	padding: 8px 12px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--sjmg-line);
}

.sjmg-score.is-you {
	border-color: var(--sjmg-accent);
}

.sjmg-score small {
	display: block;
	color: var(--sjmg-muted);
}

.sjmg-board {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
}

.sjmg-card {
	aspect-ratio: 3 / 4;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
	min-height: 110px;
	appearance: none;
	-webkit-appearance: none;
}

.sjmg-card:disabled {
	cursor: default;
}

.sjmg-card-inner {
	position: absolute;
	inset: 0;
	border-radius: 12px;
	box-shadow: 0 8px 18px rgba(28, 42, 46, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sjmg-card:not(:disabled):hover .sjmg-card-inner {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(28, 42, 46, 0.12);
}

.sjmg-card-face {
	position: absolute;
	inset: 0;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	text-align: center;
	font-weight: 650;
	line-height: 1.25;
	word-break: break-word;
	color: inherit;
}

.sjmg-card-back {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
		var(--sjmg-back);
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 1.4rem;
}

.sjmg-card-front {
	background: var(--sjmg-card);
	color: var(--sjmg-ink) !important;
	border: 1px solid var(--sjmg-line);
	font-size: clamp(0.8rem, 2.4vw, 1rem);
	flex-direction: column;
	gap: 6px;
}

.sjmg-card-img {
	max-width: 100%;
	max-height: 62%;
	object-fit: contain;
	border-radius: 6px;
}

.sjmg-card-text {
	display: block;
	font-size: inherit;
	line-height: 1.2;
}

.sjmg-card.has-image .sjmg-card-front {
	padding: 8px;
}

.sjmg-card.has-image .sjmg-card-text {
	font-size: clamp(0.7rem, 2vw, 0.9rem);
}

.sjmg-card.is-matched .sjmg-card-front {
	background: #e7f5f1;
	border-color: var(--sjmg-accent);
}

.sjmg-share {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.sjmg-code {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 1.35rem;
	letter-spacing: 0.18em;
	font-weight: 700;
}

.sjmg-msg {
	color: #8a1f1f;
	margin: 8px 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	min-height: 1.2em;
}

.sjmg-msg.is-ok {
	color: #2f7d4a;
}

.sjmg-msg.is-error {
	color: #8a1f1f;
}

.sjmg-btn-danger {
	margin-top: 12px;
	border: 1px solid #c45c5c;
	background: #fff5f5;
	color: #8a1f1f;
	box-shadow: none;
}

.sjmg-btn-danger:hover {
	background: #ffe3e3;
	filter: none;
}

.sjmg-join-box {
	margin-top: 4px;
}

.sjmg-join-box h3 {
	margin: 0 0 4px;
	font-size: 1.05rem;
}

.sjmg-hint {
	margin: 0 0 12px;
	color: var(--sjmg-muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

.sjmg-overlay {
	text-align: center;
	padding: 24px 12px;
}

.sjmg-overlay h3 {
	margin: 0 0 8px;
	font-size: 1.6rem;
}

.sjmg-btn-match {
	background: linear-gradient(135deg, #0f6b5c, #1a8f7a) !important;
	box-shadow: 0 8px 18px rgba(15, 107, 92, 0.25);
}

.sjmg-btn-fill {
	background: linear-gradient(135deg, #2b4c7e, #3d6cb9) !important;
	box-shadow: 0 8px 18px rgba(43, 76, 126, 0.28);
}

.sjmg-btn-fill-type {
	background: linear-gradient(135deg, #5b2c6f, #8e44ad) !important;
	box-shadow: 0 8px 18px rgba(91, 44, 111, 0.28);
}

/* Fill-the-blank */
.sjmg-fill {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
}

.sjmg-fill-pic {
	width: min(100%, 320px);
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sjmg-card);
	border: 2px solid var(--sjmg-line);
	border-radius: 16px;
	overflow: hidden;
	padding: 12px;
}

.sjmg-fill-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.sjmg-fill-sentence {
	margin: 0;
	font-size: clamp(1.25rem, 4vw, 1.7rem);
	font-weight: 700;
	text-align: center;
	line-height: 1.35;
}

.sjmg-fill-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	max-width: 480px;
}

.sjmg-fill-choice {
	min-height: 52px;
	padding: 12px 14px;
	border: 2px solid var(--sjmg-line);
	border-radius: 12px;
	background: var(--sjmg-card);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	color: var(--sjmg-ink);
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sjmg-fill-choice:not(:disabled):hover {
	transform: translateY(-1px);
	border-color: #3d6cb9;
	box-shadow: 0 6px 14px rgba(43, 76, 126, 0.14);
}

.sjmg-fill-choice.is-disabled,
.sjmg-fill-choice:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.sjmg-fill-choice.is-selected {
	opacity: 1;
	border-color: #2f7d4a;
	background: #e8f6ec;
	box-shadow: 0 0 0 2px rgba(47, 125, 74, 0.2);
	text-decoration: none;
}

.sjmg-fill-choice.is-selected.is-wrong,
.sjmg-fill-choice.is-wrong {
	opacity: 1;
	border-color: #b32d2e;
	background: #fcebec;
	box-shadow: 0 0 0 2px rgba(179, 45, 46, 0.2);
	text-decoration: line-through;
	color: #8a2424;
}

.sjmg-fill-type-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	max-width: 480px;
	justify-content: center;
}

.sjmg-fill-input {
	flex: 1 1 180px;
	min-height: 48px;
	padding: 12px 14px;
	border: 2px solid var(--sjmg-line);
	border-radius: 12px;
	font: inherit;
	font-size: 1.1rem;
	background: var(--sjmg-card);
}

.sjmg-fill-input:focus {
	outline: none;
	border-color: #8e44ad;
	box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.18);
}

.sjmg-hearts {
	display: flex;
	gap: 6px;
	font-size: 1.55rem;
	line-height: 1;
}

.sjmg-heart.is-on {
	color: #d62828;
	filter: drop-shadow(0 2px 0 rgba(214, 40, 40, 0.25));
}

.sjmg-heart.is-off {
	color: #c5bdb0;
}

/* Tap-match layout */
.sjmg-match {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 4px;
}

.sjmg-match-col h3 {
	margin: 0 0 10px;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sjmg-muted);
}

.sjmg-match-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sjmg-match-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	/* Same footprint for word tiles and picture tiles */
	height: 132px;
	min-height: 132px;
	padding: 12px;
	border: 2px solid var(--sjmg-line);
	border-radius: 12px;
	background: var(--sjmg-card);
	color: var(--sjmg-ink);
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	text-align: center;
	box-sizing: border-box;
	overflow: hidden;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sjmg-match-item:not(:disabled):hover {
	transform: translateY(-1px);
	border-color: var(--sjmg-accent);
	box-shadow: 0 6px 14px rgba(15, 107, 92, 0.12);
}

.sjmg-match-item.is-selected {
	border-color: var(--sjmg-accent);
	box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.18);
	background: #eef8f5;
}

.sjmg-match-item.is-matched {
	opacity: 0.45;
	border-color: var(--sjmg-accent);
	background: #e7f5f1;
	cursor: default;
}

.sjmg-match-item.is-wrong {
	animation: sjmg-shake 0.45s ease;
	border-color: #c45c26;
	background: #fff4ee;
}

.sjmg-match-img {
	width: 100%;
	height: 100%;
	max-height: 108px;
	object-fit: contain;
	border-radius: 8px;
	flex: 1 1 auto;
}

.sjmg-match-text {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1.25;
	word-break: break-word;
	font-size: 1.05rem;
}

.sjmg-match-item.has-image .sjmg-match-text {
	height: auto;
	font-size: 0.9rem;
}

@keyframes sjmg-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

/* Per-point score burst — fixed to viewport so it is hard to miss */
.sjmg-score-burst-layer {
	position: fixed;
	inset: 0;
	/* Stay below lesson dock / role pills (100010) */
	z-index: 99980;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.sjmg-score-burst-scrim {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at center, rgba(255, 253, 248, 0.55), rgba(28, 42, 46, 0.18) 70%);
	animation: sjmg-score-scrim 3.15s ease forwards;
}

.sjmg-score-burst {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 18px 28px;
	border-radius: 18px;
	background: rgba(255, 253, 248, 0.92);
	box-shadow: 0 16px 40px rgba(20, 36, 48, 0.22);
	animation: sjmg-score-pop 3.15s ease forwards;
	text-align: center;
	max-width: min(92vw, 420px);
}

.sjmg-score-burst-word {
	font-size: clamp(2.4rem, 9vw, 4rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	background: linear-gradient(135deg, #0f6b5c, #2bb673, #f0c419);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 3px 0 rgba(15, 107, 92, 0.25));
}

.sjmg-score-burst-sub {
	font-size: clamp(1rem, 3.5vw, 1.25rem);
	font-weight: 700;
	color: #0f6b5c;
	opacity: 0.95;
}

.sjmg-score-burst--nice .sjmg-score-burst-word {
	background: linear-gradient(135deg, #1a8f7a, #3ecf8e, #7ed957);
	-webkit-background-clip: text;
	background-clip: text;
}

.sjmg-score-burst--streak .sjmg-score-burst-word {
	background: linear-gradient(135deg, #c45c26, #e8a317, #f0c419);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 3px 0 rgba(196, 92, 38, 0.28));
}

.sjmg-score-burst--hot .sjmg-score-burst-word {
	background: linear-gradient(135deg, #d62828, #f77f00, #fcbf49);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 4px 0 rgba(214, 40, 40, 0.3));
}

@keyframes sjmg-score-pop {
	0% {
		opacity: 0;
		transform: scale(0.55) translateY(18px);
	}
	8% {
		opacity: 1;
		transform: scale(1.14) translateY(0);
	}
	20% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	72% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	100% {
		opacity: 0;
		transform: scale(0.96) translateY(-18px);
	}
}

@keyframes sjmg-score-scrim {
	0% { opacity: 0; }
	10% { opacity: 1; }
	75% { opacity: 1; }
	100% { opacity: 0; }
}

/* Celebration — hooks for future confetti / sounds via data-celebrate-level */
.sjmg-celebrate {
	position: relative;
	overflow: hidden;
	animation: sjmg-pop 0.45s ease;
}

.sjmg-celebrate-emoji {
	font-size: 2.4rem;
	line-height: 1;
	margin-bottom: 6px;
}

.sjmg-celebrate-stars {
	color: #d4a017;
	font-size: 1.6rem;
	letter-spacing: 0.12em;
	margin-bottom: 8px;
}

.sjmg-celebrate-msg {
	margin: 0 0 8px;
	color: var(--sjmg-muted);
}

.sjmg-celebrate-stats {
	margin: 0 0 16px;
	font-weight: 650;
}

.sjmg-celebrate--perfect {
	background:
		radial-gradient(600px 180px at 50% -20%, rgba(212, 160, 23, 0.28), transparent 70%),
		rgba(255, 253, 248, 0.92);
}

.sjmg-celebrate--great {
	background:
		radial-gradient(600px 180px at 50% -20%, rgba(15, 107, 92, 0.2), transparent 70%),
		rgba(255, 253, 248, 0.92);
}

.sjmg-celebrate--good {
	background: rgba(255, 253, 248, 0.92);
}

@keyframes sjmg-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Teacher Watch live */
.sjmg-watch-panel {
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid var(--sjmg-line);
	border-radius: var(--sjmg-radius);
	background: rgba(15, 107, 92, 0.06);
}

.sjmg-watch-panel h3 {
	margin: 0 0 4px;
	font-size: 1.1rem;
	color: var(--sjmg-accent);
}

.sjmg-watch-with {
	margin: 8px 0 0;
	font-weight: 700;
	color: var(--sjmg-ink);
}

.sjmg-launch-status {
	margin: 8px 0 0;
	min-height: 1.2em;
	font-weight: 700;
	color: #2f7d4a;
}

.sjmg-watch-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.sjmg-watch-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sjmg-line);
	border-radius: 8px;
	background: var(--sjmg-card);
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
}

.sjmg-watch-item:hover {
	border-color: var(--sjmg-accent);
	box-shadow: 0 0 0 1px rgba(15, 107, 92, 0.25);
}

.sjmg-watch-item strong {
	font-size: 1rem;
}

.sjmg-watch-item span {
	font-size: 0.85rem;
	color: var(--sjmg-muted);
}

.sjmg-watch-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
	margin: 0 0 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fff3cd;
	border: 1px solid #e0c36a;
	color: #5c4a12;
	font-size: 0.95rem;
}

.sjmg-watch-banner-main {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	flex: 1 1 auto;
}

.sjmg-watch-status-msg {
	display: block;
	width: 100%;
	font-weight: 600;
	color: #8a1f1f;
	min-height: 1.2em;
}

.sjmg-watch-refresh {
	flex: 0 0 auto;
}

.sjmg-live-draft {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fff;
	border: 2px dashed var(--sjmg-accent);
}

.sjmg-live-draft.is-wrong {
	border-color: #b32d2e;
	background: #fff7f7;
}

.sjmg-live-draft-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--sjmg-muted);
	margin-bottom: 4px;
}

.sjmg-live-draft-text {
	font-size: 1.35rem;
	color: var(--sjmg-accent-2);
	word-break: break-word;
}

.sjmg-live-draft.is-wrong .sjmg-live-draft-text {
	color: #b32d2e;
}

@media (max-width: 560px) {
	.sjmg-app {
		padding: 14px;
	}
	.sjmg-board {
		grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
		gap: 8px;
	}
	.sjmg-match {
		grid-template-columns: 1fr;
	}
}
