@charset "utf-8";
/* =========================================================
   v4.6.03 RESULTS PAGE - 27 Nov 2026 (PLAN_v4.6.03_results.md)
   /results/ in the new look (the user's board): body_default.php ($pub_wide) gives the light
   blue page + navy title; this file draws the cards. Replaces results.css + header_footer_flc_v2.css
   on this page. Keeps lottery_numbers.css (the coloured balls, the countdown) and
   infinite-scroll.css / .js (the latest winners row).
   ========================================================= */

.rs-page { display:flex; flex-direction:column; gap:22px; margin-top:18px; text-align:left; }
.rs-page p { margin:0; padding:0; }
.rs-card { padding:30px 34px; box-sizing:border-box; border-radius:20px; background:#FFF; border:1px solid #E3EAF5; box-shadow:0 10px 30px rgba(16,42,107,.08); }
.rs-eyebrow { font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#C9D6F2; }

/* buttons (own classes: buttons.css paints form/.btn hovers green) */
.rs-btns { display:flex; flex-wrap:wrap; gap:12px; }
a.rs-btn { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 24px; box-sizing:border-box; border-radius:14px;
	font-size:16px; font-weight:700; line-height:1.2; text-align:center; text-decoration:none !important; transition:background .15s, border-color .15s; }
a.rs-btn-orn, a.rs-btn-orn:visited { background:linear-gradient(180deg, #EC6E06, #D45500); color:#FFF !important; box-shadow:0 6px 16px rgba(212,85,0,.3); }
a.rs-btn-orn:hover { background:#A84200; color:#FFF !important; }
a.rs-btn-line, a.rs-btn-line:visited { border:1.5px solid #C9D5EA; background:#FFF; color:#0A2463 !important; }
a.rs-btn-line:hover { border-color:#0B3A9E; color:#0A2463 !important; }

/* ---------- intro + countdown ---------- */
.rs-top { display:flex; flex-wrap:wrap; gap:22px; }
.rs-intro { flex:3 1 420px; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:18px; }
.rs-intro > p:first-child { font-size:17px; line-height:1.6; color:#33405E; }
.rs-intro b { color:#0A2463; }
.rs-count { flex:2 1 300px; min-width:0; padding:28px 30px; box-sizing:border-box; border-radius:20px; color:#FFF; text-align:center;
	background:radial-gradient(120% 140% at 15% 0%, #1A55C9 0%, #0B3191 45%, #072467 100%); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; }
.rs-count-note { font-size:13px; color:#C9D6F2; }
/* the countdown (get_countdown_js_v3.php: .drawTimeVal / .drawTimeDesc / .spacer) as glass tiles */
.rs-count .countdownV2 { --box-size:78px; margin:0; padding:0; gap:10px; }
.rs-count .countdownV2 .spacer { display:none; }
.rs-count .countdownV2 .drawTimeVal { min-width:var(--box-size); height:auto; padding:12px 0 9px; box-sizing:border-box; border-radius:14px;
	background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); font-size:32px; font-weight:800; line-height:1; color:#FFF; }
.rs-count .countdownV2 .drawTimeVal:last-of-type { background:rgba(253,249,144,.16); border-color:rgba(253,249,144,.5); color:#FDF990; }
.rs-count .countdownV2 .drawTimeVal.hurry { background:#C62828 !important; border-color:#C62828; color:#FFF; }
.rs-count .countdownV2 .drawTimeDesc { padding-top:6px; font-size:12px; font-weight:500; color:#C9D6F2; }
.rs-count .countdownV2 .drawTimeVal:last-of-type .drawTimeDesc { color:#FDF990; }

/* ---------- the latest result ---------- */
.rs-latest { padding:36px 40px; box-sizing:border-box; border-radius:20px; color:#FFF; text-align:center; overflow:hidden;
	background:radial-gradient(120% 140% at 15% 0%, #1A55C9 0%, #0B3191 45%, #072467 100%); box-shadow:0 10px 30px rgba(16,42,107,.15);
	display:flex; flex-direction:column; align-items:center; gap:14px; }
.rs-pill { display:inline-block; padding:6px 14px; border-radius:999px; background:#E46400; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#FFF; }
.main-pub .rs-latest h2 { margin:0; padding:0; font-size:30px; font-weight:800; line-height:1.2; color:#FFF; text-shadow:none; }
.rs-latest-count { font-size:16px; color:#E4EAF7; }
.rs-latest-count b { color:#FDF990; }
.rs-latest .lotto-draw { width:100%; }
.rs-latest .lotto-numbers { --ball-size:62px; --font-size:22px; --plus-size:14px; --gap:10px; padding:4px 0; }
.rs-latest .lotto-numbers .number { color:#1F2A44; }
.rs-latest .lotto-numbers .number.lucky-heart { color:#FFF; }
.rs-latest .lotto-numbers .plus { background-image:url(../images/icon/lotto_plus_wht.png?v=1); }
.rs-latest-winners { width:100%; padding-top:18px; border-top:1px solid rgba(255,255,255,.16); display:flex; flex-direction:column; gap:4px; }
.rs-latest-winners > p { font-size:14px; color:#C9D6F2; }
.rs-latest-winners .infinite-scroll::before { background:linear-gradient(to right, #0B3191, transparent); }
.rs-latest-winners .infinite-scroll::after { background:linear-gradient(to left, #0A2C85, transparent); }
/* 27 Nov fix: the row's margin:0 auto (infinite-scroll.css) in this flex column stopped it stretching, so it grew
   to the track (up to 1400px) and the card cut it off - the right fade was off-screen. width:100% keeps it in the card.
   The fades are now a mask on the row (the cards fade into the real gradient), not colour boxes that showed their edges. */
.rs-latest-winners .infinite-scroll { --rs-fade:50px; width:100%; }
@supports (mask-image:linear-gradient(#000, #000)) or (-webkit-mask-image:linear-gradient(#000, #000)) {
	.rs-latest-winners .infinite-scroll {
		-webkit-mask-image:linear-gradient(to right, transparent, #000 var(--rs-fade), #000 calc(100% - var(--rs-fade)), transparent);
		mask-image:linear-gradient(to right, transparent, #000 var(--rs-fade), #000 calc(100% - var(--rs-fade)), transparent); }
	.rs-latest-winners .infinite-scroll::before, .rs-latest-winners .infinite-scroll::after { display:none; }
}

/* a winner (photo + username) - the latest row + the previous draws */
.rs-winner { min-width:0; padding:6px 6px 8px; box-sizing:border-box; border-radius:12px; background:#FFF; text-align:center; }
.rs-latest .rs-winner { box-shadow:0 4px 12px rgba(0,0,0,.18); }
.rs-winner-photo { aspect-ratio:1; border-radius:8px; overflow:hidden; background:#EEF3FA; }
.rs-winner-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.rs-winner-name { margin-top:6px; font-size:11px; font-weight:800; letter-spacing:.02em; line-height:1.3; color:#0A2463; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---------- previous draws ---------- */
.rs-prev { display:flex; flex-direction:column; gap:16px; }
.main-pub .rs-prev > h2 { margin:0; padding:0; font-size:26px; font-weight:800; color:#0A2463; text-shadow:none; }
.rs-prev-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:22px; }
.rs-draw { min-width:0; padding:24px 26px; display:flex; flex-direction:column; gap:16px; }
.rs-draw-hd { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; }
.main-pub .rs-draw h3 { margin:0; padding:0; font-size:18px; font-weight:800; color:#0A2463; }
.rs-win-pill { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; background:#E8F5EC; color:#1E7F34; font-size:13px; font-weight:700; white-space:nowrap; }
.rs-balls { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 8px; border-radius:14px; background:#F3F6FC; }
.rs-ball, .rs-heart { display:inline-flex; align-items:center; justify-content:center; flex:none; width:40px; height:40px; font-size:15px; font-weight:700; line-height:1; }
.rs-ball { border-radius:50%; background:#0B3A9E; color:#FFF; }
.rs-heart { background:url(../images/icon/lucky_heart.png?v=5) center / contain no-repeat; color:#FFF; font-weight:800; text-shadow:0 1px 2px rgba(0,0,0,.6); }
.rs-plus { font-weight:800; color:#55607A; }
.rs-win-label { font-size:13px; color:#55607A; text-align:center; }
.rs-win-label .rs-n4 { display:none; }
.rs-winners { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.rs-winners .rs-winner { padding:5px 5px 7px; border:1px solid #E3EAF5; box-shadow:0 2px 8px rgba(16,42,107,.06); }
.rs-winners .rs-winner-name { font-size:10px; }

/* ---------- the box at the end ---------- */
.rs-end { display:flex; flex-wrap:wrap; align-items:center; gap:18px 28px; }
.rs-end img { display:block; width:72px; height:auto; flex:none; }
.rs-end-txt { flex:1 1 320px; min-width:0; }
.main-pub .rs-end h2 { margin:0; padding:0; font-size:22px; font-weight:800; color:#0A2463; }
.rs-end-txt p { margin-top:4px !important; font-size:15px; line-height:1.55; color:#33405E; }
.rs-end-txt b { color:#0A2463; }

/* ---------- tablets ---------- */
@media only screen and (max-width: 1000px) {
	.rs-latest { padding:30px 24px; }
	.rs-latest .lotto-numbers { --ball-size:54px; --font-size:20px; --gap:8px; }
	.rs-draw { padding:20px; }
	.rs-ball, .rs-heart { width:34px; height:34px; font-size:14px; }
	.rs-balls { gap:6px; }
}
@media only screen and (max-width: 860px) {
	.rs-prev-grid { grid-template-columns:repeat(1, minmax(0, 1fr)); }
	.rs-ball, .rs-heart { width:40px; height:40px; font-size:15px; }
}

/* ---------- phones ---------- */
@media only screen and (max-width: 700px) {
	.rs-page { gap:14px; margin-top:8px; }
	.rs-top, .rs-prev-grid { gap:14px; }
	.rs-card { padding:20px 18px; border-radius:16px; }
	.rs-intro > p:first-child { font-size:15px; }
	.rs-btns a.rs-btn, .rs-end a.rs-btn { flex:1 1 100%; }
	.rs-count { padding:20px 14px; border-radius:16px; }
	.rs-count .countdownV2 { --box-size:68px; gap:8px; }
	.rs-count .countdownV2 .drawTimeVal { font-size:28px; }
	.rs-latest { padding:24px 14px; border-radius:16px; }
	.main-pub .rs-latest h2 { font-size:22px; }
	.rs-latest .lotto-numbers { --ball-size:36px; --font-size:14px; --plus-size:9px; --gap:4px; }
	.rs-latest-winners .infinite-scroll { --rs-fade:24px; }
	.main-pub .rs-prev > h2 { font-size:22px; }
	.rs-draw { padding:18px 14px; }
	.rs-ball, .rs-heart { width:32px; height:32px; font-size:13px; }
	.rs-balls { gap:4px; padding:10px 6px; }
	/* 4 winners a draw on phones (the page was very long) */
	.rs-winners .rs-winner:nth-child(n+5) { display:none; }
	.rs-win-label .rs-n8 { display:none; }
	.rs-win-label .rs-n4 { display:inline; }
	.rs-end img { width:60px; }
}
@media only screen and (max-width: 360px) {
	.rs-latest .lotto-numbers { --ball-size:32px; --font-size:13px; --gap:3px; }
	.rs-ball, .rs-heart { width:29px; height:29px; font-size:12px; }
}
