/* OddsFuel Lotto Results — front-end styles.
   Scoped under .ofl-wrap so they won't bleed into the theme. */

.ofl-wrap {
	--ofl-accent: #d4af37;          /* gold */
	--ofl-ball-bg: #1b2a4a;         /* navy */
	--ofl-ball-fg: #ffffff;
	--ofl-bonus-bg: #c8102e;        /* red bonus ball */
	--ofl-card-bg: #ffffff;
	--ofl-border: #e6e8ee;
	--ofl-text: #1b2a4a;
	--ofl-muted: #6b7280;
	color: var(--ofl-text);
	margin: 1.5rem 0;
}

.ofl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}
.ofl-grid.ofl-cols-1 { grid-template-columns: 1fr; }
.ofl-grid.ofl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ofl-grid.ofl-cols-3 { grid-template-columns: repeat(3, 1fr); }

.ofl-card {
	background: var(--ofl-card-bg);
	border: 1px solid var(--ofl-border);
	border-radius: 14px;
	padding: 1.1rem 1.2rem 1.2rem;
	box-shadow: 0 2px 10px rgba(27, 42, 74, 0.06);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.ofl-card-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	border-bottom: 2px solid var(--ofl-accent);
	padding-bottom: 0.55rem;
}
.ofl-game-name {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}
.ofl-draw-date {
	font-size: 0.82rem;
	color: var(--ofl-muted);
	white-space: nowrap;
}

.ofl-balls {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}
.ofl-ball {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--ofl-ball-bg);
	color: var(--ofl-ball-fg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
}
.ofl-ball-bonus {
	background: var(--ofl-bonus-bg);
	position: relative;
}
.ofl-ball-bonus::after {
	content: "+";
	position: absolute;
	top: -0.55rem;
	right: -0.15rem;
	font-size: 0.7rem;
	color: var(--ofl-bonus-bg);
	font-weight: 800;
}

.ofl-next-draw {
	margin: 0;
	font-size: 0.85rem;
	color: var(--ofl-muted);
}

.ofl-divisions {
	font-size: 0.85rem;
}
.ofl-divisions summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--ofl-ball-bg);
}
.ofl-divisions table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.5rem;
}
.ofl-divisions th,
.ofl-divisions td {
	text-align: left;
	padding: 0.3rem 0.5rem;
	border-bottom: 1px solid var(--ofl-border);
}
.ofl-divisions th { color: var(--ofl-muted); font-weight: 600; }
.ofl-divisions td:last-child,
.ofl-divisions th:last-child { text-align: right; }

.ofl-meta {
	margin: 0.9rem 0 0;
	font-size: 0.78rem;
	color: var(--ofl-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
}
.ofl-disclaimer { opacity: 0.85; }

.ofl-empty {
	border: 1px dashed var(--ofl-border);
	border-radius: 12px;
	padding: 1.25rem;
	text-align: center;
	color: var(--ofl-muted);
}

@media (max-width: 540px) {
	.ofl-grid.ofl-cols-2,
	.ofl-grid.ofl-cols-3 { grid-template-columns: 1fr; }
	.ofl-ball { width: 2.2rem; height: 2.2rem; font-size: 0.9rem; }
}

/* Optional dark theme: add class "ofl-dark" to a wrapping element. */
.ofl-dark .ofl-wrap,
.ofl-wrap.ofl-dark {
	--ofl-card-bg: #11182b;
	--ofl-border: #233252;
	--ofl-text: #eef1f7;
	--ofl-muted: #9aa6c0;
}
