/* Theme: Minimal Delux
 * Quiet luxury, dark mode: ink-black paper, hairline rules, flat surfaces,
 * high-contrast monochrome with a single restrained gold accent.
 * Dice show thin numerals instead of pips.
 */

[data-theme="minimal-delux"] {
	/* ── Brand ─────────────────────────────────────────────── */
	--eg-color-primary: #c9a94e; /* Muted Gold — lifted for dark bg */
	--eg-color-primary-light: #d8bd72;
	--eg-color-primary-rgb: 201, 169, 78;
	--eg-color-secondary: #e8e6df; /* Bone */
	--eg-color-secondary-light: #c4c1b6;
	--eg-color-tertiary: #8a877c; /* Stone */
	--eg-color-success: #7ba36f;
	--eg-color-error: #c75556;
	--eg-color-warning: #c9a94e;
	--eg-color-info: #7d92a3;

	/* ── Typography — editorial serif + neutral sans ───────── */
	--eg-font-heading: "Bodoni MT", Didot, Georgia, serif;
	--eg-font-body: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
	--eg-font-numbers: "Helvetica Neue", "Segoe UI", Arial, sans-serif;

	/* ── Radius — sharp corners ────────────────────────────── */
	--eg-radius-sm: 2px;
	--eg-radius-md: 2px;
	--eg-radius-lg: 3px;
	--eg-radius-xl: 4px;

	/* ── Palette — ink-black parchment (dark mode) ─────────── */
	--eg-palette-background: #16161a;
	--eg-palette-surface: #1d1d22;
	--eg-palette-surface-accent: #121216;
	--eg-palette-surface-variant: #28282e;
	--eg-palette-text-primary: #e8e6df;
	--eg-palette-text-secondary: #a3a199;
	--eg-palette-text-disabled: #5f5f5c;
	--eg-palette-divider: #34343c;
	--eg-palette-divider-light: #44444c;
	--eg-palette-primary: #c9a94e;
	--eg-palette-secondary: #e8e6df;
	--eg-palette-tertiary: #8a877c;
	--eg-palette-error: #c75556;
	--eg-palette-success: #7ba36f;
	--eg-palette-warning: #c9a94e;
	--eg-palette-info: #7d92a3;

	--eg-palette-on-primary: #16161a;
	--eg-palette-on-secondary: #16161a;
	--eg-palette-on-tertiary: #e8e6df;
	--eg-palette-on-error: #16161a;
	--eg-palette-on-success: #16161a;
	--eg-palette-on-warning: #16161a;
	--eg-palette-on-info: #16161a;

	/* Cards — slightly lifted dark panel */
	--eg-palette-card: #1d1d22;
	--eg-palette-text-on-card: #e8e6df;
	--eg-palette-text-on-card-muted: #9a978d;

	/* Flat — hairlines instead of shadows */
	--eg-shadow-card: none;
	--eg-shadow-elevated: 0 1px 4px rgba(0, 0, 0, 0.5);
	--eg-shadow-glow-primary: 0 0 0 1px rgba(var(--eg-color-primary-rgb), 0.7);
	--eg-shadow-glow-success: 0 0 0 1px rgba(123, 163, 111, 0.7);

	/* ── Motion — restrained ───────────────────────────────── */
	--eg-transition-spring: 300ms ease;
}

/* Cards: hairline frame, no shadow, editorial — points numeral at top.
 * The card body intentionally matches --eg-palette-surface (flat editorial
 * look), so the frame has to read on its own. --eg-palette-divider
 * (#34343c) is too close to the #1d1d22 surface to be visible at 1px with
 * no shadow, so use a bone-tinted hairline (rgba of the bone #e8e6df)
 * that stays visible on both the surface (#1d1d22) and the board
 * (#16161a) without breaking the quiet-luxury restraint. */
[data-theme="minimal-delux"] .schniffel-card {
	border: 1px solid rgba(232, 230, 223, 0.22);
	/* Keep the 3px selected-state geometry without a jump */
	outline: 2px solid transparent;
	outline-offset: -2px;
	/* Editorial layout — large points numeral leads, then name, then requirement */
	grid-template-areas:
		"points"
		"name"
		"requirement"
		"difficulty";
	grid-template-rows: auto auto 1fr auto;
}

[data-theme="minimal-delux"] .schniffel-card--selected {
	border-color: var(--eg-palette-primary);
	box-shadow: none;
}

[data-theme="minimal-delux"] .schniffel-card--matches {
	border-color: var(--eg-palette-success);
	box-shadow: none;
}

[data-theme="minimal-delux"] .schniffel-card--selectable:hover {
	transform: none;
	box-shadow: var(--eg-shadow-elevated);
}

[data-theme="minimal-delux"] .schniffel-card-name {
	font-weight: 400;
}

/* Points: plain numeral with a gold hairline underline, no pill */
[data-theme="minimal-delux"] .schniffel-card-points-badge {
	background: transparent;
	color: var(--eg-palette-text-on-card);
	box-shadow: none;
	border-radius: 0;
	border-bottom: 1px solid var(--eg-palette-primary);
	font-weight: 300;
	font-size: 1.3rem;
	min-width: 0;
	height: auto;
	padding: 0 0.25rem;
}

[data-theme="minimal-delux"] .schniffel-card-points-badge--range {
	font-size: 0.95rem;
	border-bottom-color: var(--eg-palette-tertiary);
}

[data-theme="minimal-delux"] .schniffel-card-points-badge--exact {
	border-bottom-color: var(--eg-palette-success);
	color: var(--eg-palette-success);
}

[data-theme="minimal-delux"] .schniffel-card-stale-bonus {
	background: transparent;
	color: var(--eg-palette-success);
	box-shadow: none;
	border-radius: 0;
	border-bottom: 1px solid var(--eg-palette-success);
}

/* Dice: thin numerals instead of pips */
[data-theme="minimal-delux"] .schniffel-die-face {
	border: 1px solid #e8e6df;
	border-radius: 2px;
	box-shadow: none;
}

[data-theme="minimal-delux"] .schniffel-pips {
	display: none;
}

[data-theme="minimal-delux"] .schniffel-die:not([data-value="0"])::after {
	content: attr(data-value);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--eg-font-numbers);
	font-weight: 300;
	font-size: 1.6rem;
	color: #e8e6df;
	pointer-events: none;
}
