.tbmg-game {
	--tbmg-accent: #2878b8;
	--tbmg-accent-dark: #175d96;
	--tbmg-warm: #f3a51b;
	--tbmg-green: #72ad32;
	--tbmg-ink: #172033;
	--tbmg-muted: #687086;
	--tbmg-line: #e7e9f1;
	--tbmg-surface: #fff;
	--tbmg-soft: #f6f7fb;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 820px;
	margin: 2rem auto;
	padding: clamp(1.25rem, 4vw, 2.5rem);
	border: 1px solid #dfe5eb;
	border-radius: 20px;
	background:
		radial-gradient(circle at 100% 0%, rgba(40, 120, 184, 0.08), transparent 30%),
		linear-gradient(145deg, #fff 0%, #fbfbfe 100%);
	box-shadow: 0 18px 50px rgba(28, 58, 84, 0.08), 0 2px 8px rgba(28, 58, 84, 0.04);
	color: var(--tbmg-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.tbmg-game *,
.tbmg-game *::before,
.tbmg-game *::after {
	box-sizing: border-box;
}

.tbmg-game__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.55rem, 4.5vw, 2.35rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.tbmg-game__description {
	max-width: 42rem;
	margin: 0;
	color: var(--tbmg-muted);
	line-height: 1.8;
}

.tbmg-game__header {
	position: relative;
	margin-bottom: clamp(1.25rem, 4vw, 2rem);
	padding-bottom: clamp(1.25rem, 4vw, 2rem);
	border-bottom: 1px solid var(--tbmg-line);
}

.tbmg-panel {
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid var(--tbmg-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.86);
}

.tbmg-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.25rem;
	cursor: pointer;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-weight: 700;
	line-height: 1.3;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.tbmg-button--primary {
	background: linear-gradient(135deg, var(--tbmg-accent), var(--tbmg-accent-dark));
	box-shadow: 0 10px 24px rgba(40, 120, 184, 0.22);
	color: #fff;
}

.tbmg-button:hover:not(:disabled) {
	transform: translateY(-2px);
}

.tbmg-button:focus-visible {
	outline: 3px solid rgba(40, 120, 184, 0.3);
	outline-offset: 3px;
}

.tbmg-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
	box-shadow: none;
}

.tbmg-notice {
	padding: 0.75rem 1rem;
	border-left: 4px solid #dba617;
	background: #fff8e5;
}

@media (max-width: 600px) {
	.tbmg-game {
		margin: 1rem auto;
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbmg-button {
		transition: none;
	}
}
