/* Theme: Fantasy
 * Parchment scrolls on a candle-lit dark wood table. Antique gold,
 * oxblood and moss, old-book serif type, double-rule card frames.
 * Card layout handled by FantasyCardLayout.razor (ornate ✦ divider
 * between name and requirement).
 */

[data-theme="fantasy"] {
	/* ── Brand ─────────────────────────────────────────────── */
	--eg-color-primary: #c9a227; /* Antique Gold */
	--eg-color-primary-light: #dfc05a;
	--eg-color-primary-rgb: 201, 162, 39;
	--eg-color-secondary: #8b2e2e; /* Oxblood */
	--eg-color-secondary-light: #a84545;
	--eg-color-tertiary: #7a9e7e; /* Moss */
	--eg-color-success: #6a994e;
	--eg-color-error: #bc4749;
	--eg-color-warning: #c9a227;
	--eg-color-info: #5e8b7e;

	/* ── Typography — old-book serif ───────────────────────── */
	--eg-font-heading:
		"Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	--eg-font-body: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	--eg-font-numbers: "Palatino Linotype", Georgia, serif;

	/* ── Palette — dark wood & candlelight ─────────────────── */
	--eg-palette-background: #2b1d12;
	--eg-palette-surface: #1f150c;
	--eg-palette-surface-accent: #17100a;
	--eg-palette-surface-variant: #453120;
	--eg-palette-text-primary: #efe3c8;
	--eg-palette-text-secondary: #c4ad82;
	--eg-palette-text-disabled: #8a744f;
	--eg-palette-divider: #574026;
	--eg-palette-divider-light: #6e5233;
	--eg-palette-primary: #c9a227;
	--eg-palette-secondary: #8b2e2e;
	--eg-palette-tertiary: #7a9e7e;
	--eg-palette-error: #bc4749;
	--eg-palette-success: #6a994e;
	--eg-palette-warning: #c9a227;
	--eg-palette-info: #5e8b7e;

	--eg-palette-on-primary: #2b1d12;
	--eg-palette-on-secondary: #efe3c8;
	--eg-palette-on-tertiary: #1f150c;
	--eg-palette-on-error: #efe3c8;
	--eg-palette-on-success: #1f150c;
	--eg-palette-on-warning: #2b1d12;
	--eg-palette-on-info: #efe3c8;

	/* Cards — parchment with brown ink */
	--eg-palette-card: #efe0bd;
	--eg-palette-text-on-card: #3b2a1a;
	--eg-palette-text-on-card-muted: #857050;

	--eg-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.5);
	--eg-shadow-elevated: 0 6px 20px rgba(0, 0, 0, 0.6);
	--eg-shadow-glow-primary: 0 0 22px rgba(var(--eg-color-primary-rgb), 0.5);
}

/* Ornate double-rule frame — the selected/matches states only recolor
   the frame, the double rule survives. */
[data-theme="fantasy"] .schniffel-card {
	border-style: double;
	border-color: #a87c2a;
	border-radius: var(--eg-radius-sm);
}

/* Interaction states must be re-declared theme-side: the theme's card
   border-color overrides the scoped component state rules. */
[data-theme="fantasy"] .schniffel-card--matches {
	border-color: var(--eg-palette-success);
	box-shadow: 0 0 10px rgba(106, 153, 78, 0.45);
}

[data-theme="fantasy"] .schniffel-card--selected,
[data-theme="fantasy"] .schniffel-card--selectable:hover {
	border-color: var(--eg-palette-primary);
}

[data-theme="fantasy"] .schniffel-card--selected {
	box-shadow: var(--eg-shadow-glow-primary);
}

[data-theme="fantasy"] .schniffel-card-difficulty {
	font-variant: small-caps;
	letter-spacing: 0.08em;
}

[data-theme="fantasy"] .schniffel-card-name {
	font-variant: small-caps;
	letter-spacing: 0.03em;
}

/* Parchment dice with brown pips */
[data-theme="fantasy"] .schniffel-die-face {
	border-radius: var(--eg-radius-sm);
	border-color: #d8c49a;
}

[data-theme="fantasy"] .schniffel-pip {
	background: #5a4128;
	border-radius: 40%;
}
