/* Lotto 6/49 — front-end styles. Scoped under .l649 so they won't leak into the theme. */
.l649 {
	--l649-navy: #0f2a52;
	--l649-navy-dark: #0a1f3d;
	--l649-cream: #f7f1e3;
	--l649-cream-soft: #fbf7ec;
	--l649-gold: #e8b21e;
	--l649-gold-dark: #c8930a;
	--l649-ink: #1d2433;
	--l649-muted: #7b8499;
	--l649-line: #e4dcc7;
	--l649-green: #1f9d57;
	--l649-red: #c8453a;
	--l649-radius: 14px;
	--l649-shadow: 0 6px 24px rgba(15, 42, 82, 0.10);

	box-sizing: border-box;
	max-width: 1040px;
	margin: 0 auto;
	padding: 4px;
	color: var(--l649-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}
.l649 *, .l649 *::before, .l649 *::after { box-sizing: border-box; }

/* Header */
.l649__header {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--l649-navy);
	color: #fff;
	padding: 18px 22px;
	border-radius: var(--l649-radius);
	box-shadow: var(--l649-shadow);
}
.l649__title { margin: 0; font-size: 1.5rem; letter-spacing: .3px; color: #fff; }
.l649__subtitle { margin: 2px 0 0; color: #c5d2e8; font-size: .9rem; }
.l649__wallet { text-align: right; background: rgba(255,255,255,.10); padding: 8px 14px; border-radius: 10px; }
.l649__wallet-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #c5d2e8; }
.l649__wallet-amount { font-size: 1.15rem; font-weight: 700; color: var(--l649-gold); }

/* Jackpot banner */
.l649__jackpot {
	margin-top: 14px; text-align: center;
	background: linear-gradient(135deg, var(--l649-gold), var(--l649-gold-dark));
	color: var(--l649-navy-dark);
	padding: 14px; border-radius: var(--l649-radius); box-shadow: var(--l649-shadow);
}
.l649__jackpot-label { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; opacity: .8; }
.l649__jackpot-amount { font-size: 2rem; font-weight: 800; }

/* Countdown */
.l649__countdown {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	margin: 14px 0; padding: 10px 16px;
	background: var(--l649-cream); border: 1px solid var(--l649-line);
	border-radius: var(--l649-radius);
}
.l649__countdown strong { font-variant-numeric: tabular-nums; font-size: 1.25rem; color: var(--l649-navy); }
.l649__status { margin-left: auto; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.l649__status--open { background: rgba(31,157,87,.15); color: var(--l649-green); }
.l649__status--closed { background: rgba(200,69,58,.12); color: var(--l649-red); }

/* Layout */
.l649__grid-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 6px; }
.l649__play { grid-column: 1; grid-row: 1 / span 2; }
@media (max-width: 760px) { .l649__grid-wrap { grid-template-columns: 1fr; } .l649__play { grid-column: auto; grid-row: auto; } }

.l649__panel {
	background: #fff; border: 1px solid var(--l649-line);
	border-radius: var(--l649-radius); padding: 18px; box-shadow: var(--l649-shadow);
}
.l649__panel h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--l649-navy); }

/* Play head */
.l649__playhead { display: flex; align-items: center; justify-content: space-between; }
.l649__ticketprice { text-align: right; font-size: .85rem; color: var(--l649-muted); }
.l649__ticketprice strong { display: block; font-size: 1.1rem; color: var(--l649-ink); }
.l649__instructions { margin: 6px 0 12px; color: var(--l649-muted); font-size: .9rem; }

/* Pick bar */
.l649__pickbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.l649__count { margin-left: auto; font-weight: 700; color: var(--l649-navy); font-variant-numeric: tabular-nums; }

/* Number board */
.l649__board {
	display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
	background: var(--l649-navy); padding: 12px; border-radius: var(--l649-radius);
}
@media (max-width: 420px) { .l649__board { grid-template-columns: repeat(6, 1fr); } }
.l649__num {
	aspect-ratio: 1 / 1; border: none; border-radius: 50%;
	background: var(--l649-cream-soft); color: var(--l649-navy);
	font-size: 1rem; font-weight: 700; cursor: pointer;
	transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
	font-variant-numeric: tabular-nums;
}
.l649__num:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.l649__num--selected { background: linear-gradient(135deg, var(--l649-gold), var(--l649-gold-dark)); color: var(--l649-navy-dark); box-shadow: 0 0 0 3px rgba(232,178,30,.4); }
.l649__num--dim { opacity: .4; cursor: not-allowed; }
.l649__num--dim:hover { transform: none; box-shadow: none; }

/* Buttons */
.l649__btn {
	border: none; border-radius: 10px; padding: 10px 16px;
	font-size: .92rem; font-weight: 700; cursor: pointer; transition: background .15s ease, opacity .15s ease;
}
.l649__btn--primary { width: 100%; margin-top: 14px; background: var(--l649-navy); color: #fff; padding: 14px; font-size: 1rem; }
.l649__btn--primary:hover { background: var(--l649-navy-dark); }
.l649__btn--primary:disabled { background: #9aa6bd; cursor: not-allowed; }
.l649__btn--ghost { background: var(--l649-cream); color: var(--l649-navy); border: 1px solid var(--l649-line); }
.l649__btn--ghost:hover { background: #efe7d2; }
.l649__buy:disabled { opacity: .8; }

/* Messages */
.l649__message { margin: 10px 0 0; font-size: .9rem; min-height: 1.2em; }
.l649__message--ok { color: var(--l649-green); font-weight: 600; }
.l649__message--err { color: var(--l649-red); font-weight: 600; }
.l649__login { margin-top: 10px; }
.l649__login a { color: var(--l649-navy); font-weight: 700; }

/* Prize table */
.l649__prize-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.l649__prize-table th, .l649__prize-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--l649-line); }
.l649__prize-table th { color: var(--l649-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.l649__prize-amount { font-weight: 700; color: var(--l649-navy); text-align: right; }
.l649__prize-note { margin: 10px 0 0; font-size: .8rem; color: var(--l649-muted); }

/* Results + balls */
.l649__results-list { list-style: none; margin: 0; padding: 0; }
.l649__results-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--l649-line); }
.l649__result-meta { display: flex; flex-direction: column; }
.l649__drawno { font-weight: 700; color: var(--l649-navy); font-size: .85rem; }
.l649__time { color: var(--l649-muted); font-size: .75rem; }
.l649__balls { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.l649__ball {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--l649-navy); color: #fff; font-size: .8rem; font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.l649__ball--sm, .l649__balls--sm .l649__ball { width: 26px; height: 26px; font-size: .72rem; }

/* My tickets */
.l649__tickets-list { list-style: none; margin: 0; padding: 0; }
.l649__tickets-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--l649-line); }
.l649__tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.l649__tag--won { background: rgba(31,157,87,.15); color: var(--l649-green); }
.l649__tag--lost { background: #f0eee9; color: var(--l649-muted); }
.l649__tag--pending { background: rgba(232,178,30,.18); color: var(--l649-gold-dark); }

.l649__muted { color: var(--l649-muted); }
.l649__footer { margin-top: 14px; text-align: center; color: var(--l649-muted); }

/* Fields */
.l649__field { display: block; margin-bottom: 12px; }
.l649__field span { display: block; font-size: .82rem; color: var(--l649-muted); margin-bottom: 4px; }
.l649__field input, .l649__textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--l649-line);
	border-radius: 10px; font-size: 1rem; background: var(--l649-cream-soft);
}
.l649__field input:focus, .l649__textarea:focus { outline: 2px solid var(--l649-gold); border-color: var(--l649-gold); }

/* Results page + history tables */
.l649-results-page__table-wrap, .l649-history__table-wrap { overflow-x: auto; margin-top: 14px; }
.l649-results-page__table, .l649-history__table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--l649-radius); overflow: hidden; box-shadow: var(--l649-shadow); }
.l649-results-page__table th, .l649-results-page__table td,
.l649-history__table th, .l649-history__table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--l649-line); font-size: .9rem; vertical-align: top; }
.l649-results-page__table th, .l649-history__table th { background: var(--l649-navy); color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }

/* History summary */
.l649-history__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
@media (max-width: 560px) { .l649-history__summary { grid-template-columns: 1fr; } }
.l649-history__card { background: #fff; border: 1px solid var(--l649-line); border-radius: var(--l649-radius); padding: 14px; box-shadow: var(--l649-shadow); }
.l649-history__card-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--l649-muted); }
.l649-history__card-value { font-size: 1.3rem; font-weight: 800; color: var(--l649-navy); }
.l649-history__pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.l649-history__pager .l649__btn:disabled { opacity: .5; cursor: not-allowed; }
.l649-history__pageinfo { font-size: .85rem; color: var(--l649-muted); }

/* Wallet page */
.l649-wallet-page__grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .l649-wallet-page__grid { grid-template-columns: 1fr; } }
.l649-wallet-page__history { margin-top: 16px; }
