.toy {
	max-width: 760px;
	margin: 0 auto;
	padding: 16px 14px 32px;
}

.toy [hidden] {
	display: none !important;
}

.toy > * + * {
	margin-top: 12px;
}

.toy button,
.toy input,
.toy select {
	font: inherit;
}

.toy input,
.toy select {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	background: rgba(255, 255, 255, 0.78);
}

.toy button {
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.14);
	background: rgba(255, 255, 255, 0.82);
	cursor: pointer;
}

.toy button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.toy-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.toy-hero h1 {
	margin: 0;
	line-height: 1;
	max-width: none;
}

.toy-subtitle {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.35;
	max-width: 22ch;
}

.toy-mini {
	opacity: 0.85;
	font-size: 0.95rem;
	margin: 0;
	line-height: 1.45;
	max-width: 24ch;
}

.toy-card {
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 14px;
	padding: 14px;
	background: rgba(255, 255, 255, 0.48);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

.toy-h2 {
	margin: 0 0 10px 0;
	font-size: 1rem;
}

.toy-h3 {
	margin: 14px 0 8px 0;
	font-size: 1rem;
}

.toy-label {
	font-weight: 600;
}

.toy-picks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.toy-picks button {
	flex: 1;
	padding: 14px 12px;
	font-size: 1.05rem;
	font-weight: 700;
}

.toy-lang {
	display: flex;
	gap: 6px;
	margin-top: 2px;
}

.toy-lang button {
	padding: 7px 12px;
	font-size: 0.95rem;
}

.toy-lang button.is-selected {
	background: rgba(0, 0, 0, 0.88);
	color: rgba(255, 255, 255, 0.95);
	border-color: rgba(0, 0, 0, 0.88);
}

.toy-top {
	padding: 12px 14px;
}

.toy-status-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

@media (min-width: 640px) {
	.toy-status-row {
		grid-template-columns: minmax(0, 150px) 1fr;
		align-items: start;
	}
}

.toy-stat {
	background: rgba(255, 255, 255, 0.4);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	padding: 12px;
}

.toy-stat label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.toy-balance-value {
	font-size: 2rem;
	font-weight: 800;
	margin-top: 8px;
}

.toy-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.toy-field .toy-mini {
	margin-top: 6px;
}

.toy-inline-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.toy-winrate {
	min-width: 84px;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.55);
	font-weight: 800;
	text-align: center;
}

.toy-controls .toy-field {
	margin-bottom: 12px;
}

.toy-cashout {
	width: 100%;
	margin-top: 10px;
	background: transparent;
	color: inherit;
	border-color: rgba(0, 0, 0, 0.16);
}

.toy-error {
	margin-top: 10px;
	color: #b00020;
	min-height: 1.2em;
}

.toy-result {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed rgba(0, 0, 0, 0.2);
	min-height: 3.6em;
}

.toy-result-title {
	font-weight: 700;
	margin-bottom: 4px;
}

.toy-chart {
	width: 100%;
	height: 180px;
}

.toy-chart canvas {
	width: 100%;
	height: 100%;
	display: block;
}

.toy-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.toy-table {
	width: 100%;
	border-collapse: collapse;
}

.toy-table th,
.toy-table td {
	text-align: left;
	padding: 6px 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	white-space: nowrap;
	font-size: 0.95rem;
}

.toy-table td.is-win {
	color: #0b6e2b;
	font-weight: 600;
}

.toy-table td.is-lose {
	color: #b00020;
	font-weight: 600;
}

.toy-stats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin: 10px 0 12px 0;
}

@media (min-width: 640px) {
	.toy-stats {
		grid-template-columns: 1fr 1fr;
	}
}

.toy-stats dt {
	opacity: 0.85;
	font-size: 0.9rem;
}

.toy-stats dd {
	margin: 2px 0 0 0;
	font-weight: 700;
}

.toy button.is-selected {
	background: rgba(0, 0, 0, 0.9);
	color: rgba(255, 255, 255, 0.98);
	border-color: rgba(0, 0, 0, 0.9);
	outline: 2px solid rgba(0, 0, 0, 0.15);
	outline-offset: 1px;
}

@media (max-width: 520px) {
	.toy {
		padding: 12px;
	}

	.toy-hero {
		gap: 6px;
	}

	.toy-hero h1 {
		max-width: 8ch;
	}

	.toy-subtitle,
	.toy-mini {
		max-width: none;
	}

	.toy-chart {
		height: 150px;
	}

	.toy-table thead {
		display: none;
	}

	.toy-table,
	.toy-table tbody,
	.toy-table tr,
	.toy-table td {
		display: block;
		width: 100%;
	}

	.toy-table tr {
		padding: 10px 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	}

	.toy-table td {
		border-bottom: 0;
		padding: 2px 0;
		white-space: normal;
		font-size: 0.92rem;
	}

	.toy-table td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
	}
}
