/* Sandbox preview styling. Standalone by design: the untrusted origin shares no build,
   no bundle and no tokens file with the app. */
:root {
	color-scheme: dark;
	--bg: #0d0a12;
	--cell: #1b1626;
	--edge: #2c2439;
	--ink: #ece6f2;
	--dim: #8d81a1;
	--hit: #f0a93a;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	height: 100%;
	background: var(--bg);
	color: var(--ink);
	font-family: ui-sans-serif, system-ui, sans-serif;
}

.frame {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.75rem;
}

.board {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(var(--reels, 5), 1fr);
	gap: 0.35rem;
	min-height: 12rem;
}

.reel {
	display: grid;
	grid-auto-rows: 1fr;
	gap: 0.35rem;
}

.cell {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cell);
	border: 1px solid var(--edge);
	border-radius: 3px;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	min-height: 1.75rem;
	transition: background 90ms ease, border-color 90ms ease;
}

.cell.scatter {
	border-color: var(--hit);
	color: var(--hit);
}

.cell.win {
	background: #2a2033;
	border-color: var(--hit);
}

.hud {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8rem;
	color: var(--dim);
}

.win {
	color: var(--hit);
}

.origin-note {
	margin: 0;
	font-size: 0.65rem;
	color: #5f5573;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
