@charset "utf-8";
/* =========================================================
   v4.6.05 HOME PAGE - the new look - 27 Nov 2026 (PLAN_v4.6.05_home.md)
   The user's boards (canvas "Public pages - new look (stage 2)", Home row + the couple hero boards).
   Loaded by page/home.php only, after lottery_numbers.css, infinite-scroll.css, trust-badges.css,
   public_v2.css, info_v2.css (the shared cards: .iv-*) and results_v2.css (the winners row: .rs-*).
   Replaces home.css + top_section.css + header_footer_flc_v2.css on the home page (they stay on the server).
   Class prefix: hm-
   Layers: the hero's couple sits UNDER the white badge card, the £50 badge sits ON it - so nothing from
   #topSection down to .hm-photo may make a stacking context (no z-index / transform / filter / opacity).
   ========================================================= */

/* ---------- the frame ---------- */
/* <hero id="topSection"> is a custom tag (inline by default); public_v2.css takes its strip off */
#topSection.hero { display:block; position:static !important; z-index:auto !important; padding:0 !important; }
.hm-main { display:flow-root; }	/* the badge card's negative margin stays inside #main */
.hm-wrap { max-width:1120px; margin:0 auto; padding:0 24px 8px; box-sizing:border-box; }

/* ---------- the hero (orange = the jackpot colour) ---------- */
/* the two soft circles are background layers (pseudo elements would paint over the text);
   the highlight sits behind the photo, so the white text is on the deeper orange */
.hm-hero { position:relative; overflow:hidden; color:#FFF; text-align:left;
	background:
		radial-gradient(circle 260px at calc(100% - 140px) 80px, rgba(255,255,255,.08) 259px, rgba(255,255,255,0) 260px),
		radial-gradient(circle 150px at 60px 100%, rgba(255,255,255,.07) 149px, rgba(255,255,255,0) 150px),
		radial-gradient(110% 150% at 80% 0%, #FDA42A 0%, #F07A0A 38%, #D45500 72%, #B84600 100%); }
.hm-hero-in { position:relative; max-width:1120px; margin:0 auto; padding:48px 24px 0; box-sizing:border-box;
	display:grid; grid-template-columns:minmax(0, 1fr) 460px; column-gap:24px; row-gap:16px; align-items:start;
	grid-template-rows:auto auto auto auto auto auto minmax(68px, 1fr);
	grid-template-areas:"pill photo" "h1 photo" "sub photo" "jp photo" "btns photo" "line photo" "space photo"; }
.hm-hero p { margin:0; padding:0; }
.hm-pill { grid-area:pill; justify-self:start; display:inline-flex; align-items:center; padding:6px 14px; border-radius:999px; background:rgba(110,35,0,.32);
	font-size:13px; font-weight:700; letter-spacing:.06em; line-height:1.4; text-transform:uppercase; }
#topSection .hm-hero h1 { grid-area:h1; margin:0; padding:0; max-width:620px; font-size:54px; font-weight:800; line-height:1.08; letter-spacing:-1px;
	color:#FFF; text-align:left; text-transform:none; text-shadow:0 2px 6px rgba(90,30,0,.35); }
.hm-hero .hm-sub { grid-area:sub; font-size:20px; font-weight:700; line-height:1.4; text-shadow:0 1px 3px rgba(90,30,0,.35); }
.hm-jp { grid-area:jp; justify-self:start; padding:16px 22px; box-sizing:border-box; border-radius:18px; text-align:center;
	background:rgba(110,35,0,.30); border:1px solid rgba(255,255,255,.28); }
.hm-hero .hm-jp p { margin:0 0 8px; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#FFE7D1; }
.hm-jp img { display:block; width:380px; max-width:100%; height:auto; margin:0 auto; }
.hm-hero .hm-btns { grid-area:btns; display:flex; flex-wrap:wrap; gap:12px; }
.hm-hero .hm-gift-line { grid-area:line; display:flex; align-items:center; gap:8px; font-size:15px; font-weight:600; text-shadow:0 1px 2px rgba(90,30,0,.35); }
.hm-gift-line svg { flex:none; }
.hm-gift-line b { color:#FFF; }

/* the couple: computer = the right column, standing on the bottom of the hero, reaching into the margin
   (never further than the screen: 130px at 1440, less on narrower screens) */
.hm-photo-cell { grid-area:photo; align-self:end; position:relative; height:503px; }
.hm-photo { position:absolute; bottom:0; right:calc(-1 * min(130px, (100vw - min(100vw, 1120px)) / 2 + 14px)); width:540px; }
.hm-couple { display:block; width:100%; height:auto; }
/* the £50 welcome gift: where the user dragged it on the board (182px at the left of the couple) - as a
   share of the photo, so it stays put at every width; on the badge card (z-index 2) */
.hm-gift { position:absolute; z-index:3; left:-15%; top:40%; width:33.7%; height:auto; transform:rotate(-10deg); filter:drop-shadow(0 8px 16px rgba(90,30,0,.35)); }

/* hero buttons (own classes: buttons.css paints .btn hovers green) */
a.hm-btn { display:inline-flex; align-items:center; justify-content:center; min-height:54px; padding:0 30px; box-sizing:border-box; border-radius:14px;
	font-size:17px; font-weight:800; line-height:1.2; text-align:center; text-decoration:none !important; transition:background .15s, border-color .15s; }
a.hm-btn-navy, a.hm-btn-navy:visited { background:#0A2463; color:#FFF !important; box-shadow:0 8px 20px rgba(10,36,99,.35); }
a.hm-btn-navy:hover { background:#061A4A; color:#FFF !important; }
a.hm-btn-line, a.hm-btn-line:visited { padding:0 24px; border:2px solid rgba(255,255,255,.75); color:#FFF !important; font-size:16px; font-weight:700; }
a.hm-btn-line:hover { background:rgba(255,255,255,.14); }
a.hm-btn-glass, a.hm-btn-glass:visited { min-height:44px; padding:0 20px; border-radius:12px; border:1.5px solid rgba(255,255,255,.6); color:#FFF !important; font-size:15px; font-weight:700; }
a.hm-btn-glass:hover { background:rgba(255,255,255,.12); }

/* ---------- the round badges (trust-badges.css) - once, on a white card over the bottom of the hero ---------- */
.hm-badges { position:relative; z-index:2; margin-top:-52px; }
.hm-badges #badges { --badge-size:92px; --badge-hd-size:15px; --badge-font-size:14px; --badge-margin-y:6px;
	padding:22px 12px; border-radius:20px; background:#FFF; border:1px solid #E3EAF5; box-shadow:0 12px 32px rgba(16,42,107,.12); }
.hm-badges #badges .container { width:auto; max-width:none; padding:0; gap:16px 0; justify-content:center; }
.hm-badges #badges .badge-item { width:14.28%; min-width:0; }
.hm-badges #badges .badge-hd { padding:3px 9px; box-sizing:border-box; text-align:center; text-shadow:0 1px 1px rgba(0,0,0,.25); box-shadow:0 2px 6px rgba(0,0,0,.18); }
.hm-badges #badges .badge-txt { font-weight:400; line-height:1.3; color:#33405E;max-width: calc(var(--badge-size) * 1.1); }
/* each badge its own colour (the user, 27 Nov) */
.hm-badges #badges .badge-hd.hm-b-win  { background:linear-gradient(135deg, #FCB909, #F67A06); }
.hm-badges #badges .badge-hd.hm-b-free { background:linear-gradient(135deg, #F0457A, #D81B60); }
.hm-badges #badges .badge-hd.hm-b-cpf  { background:linear-gradient(135deg, #1A55C9, #0B3191); }	/* navy = the Community Prize Fund */
.hm-badges #badges .badge-hd.hm-b-week { background:linear-gradient(135deg, #14A89A, #00796B); }
.hm-badges #badges .badge-hd.hm-b-guar { background:linear-gradient(135deg, #5CBF60, #2E8B3A); }
.hm-badges #badges .badge-hd.hm-b-safe { background:linear-gradient(135deg, #42A5F5, #1E88E5); }
.hm-badges #badges .badge-hd.hm-b-ico  { background:linear-gradient(135deg, #B04BC6, #8E24AA); }

/* ---------- the page (white cards on the light blue page - .iv-* from info_v2.css) ---------- */
.hm-page { margin-top:44px; gap:44px; }
.main-pub .hm-page h2 { font-size:28px; }
.hm-orn { color:#C84E00; }
.hm-prose { font-size:15px; line-height:1.7; color:#33405E; }
.hm-prose b { color:#0A2463; }
.hm-sec-hd { display:flex; flex-direction:column; gap:6px; }
.hm-sec-hd p { max-width:900px; margin-top:0 !important; line-height:1.65; color:#33405E !important; }
.hm-sec-hd b { color:#0A2463; }
.hm-btn-row { display:flex; flex-wrap:wrap; gap:12px; }
.hm-page .hm-btn-row a.iv-btn-sm { align-self:auto; min-height:46px; padding:0 22px; font-size:15px; }

/* welcome */
.hm-welcome { display:flex; flex-wrap:wrap; align-items:center; gap:24px 40px; padding:32px 36px; border-radius:20px; }
.hm-welcome-txt { flex:3 1 480px; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.hm-page .hm-welcome-sub { margin-top:6px; font-size:18px; font-weight:700; color:#C84E00; }
.hm-ticks { width:100%; margin:0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px 24px; }
.hm-ticks li { margin:0; padding:0; display:flex; align-items:flex-start; gap:10px; font-size:15px; font-weight:600; line-height:1.5; color:#1F2A44; list-style:none; }
.hm-ticks li::before { display:none; }
.hm-tick { flex:none; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#E3ECFA; color:#0B3A9E; }
.hm-welcome .iv-btns { margin-top:6px; }
.hm-welcome-pic { flex:2 1 300px; min-width:0; position:relative; height:440px; }
.hm-heart { position:absolute; left:0; top:-24px; display:block; width:392px; max-width:100%; height:auto; }
.hm-woman { position:absolute; right:0; bottom:-30px; display:block; width:232px; max-width:60%; height:auto;
	-webkit-mask-image:linear-gradient(to bottom, #000 62%, transparent 100%); mask-image:linear-gradient(to bottom, #000 62%, transparent 100%); }

/* how to play: the icon, "Step n" and the title on one row */
.hm-step-top { display:flex; align-items:center; gap:12px; }
.hm-step .iv-ic { width:46px; height:46px; }
.hm-step .iv-step-n { display:block; font-size:12px; color:#C84E00; }
.main-pub .hm-page .hm-step h3 { line-height:1.25; }

/* the latest result + countdown + recent winners (navy, as Results) */
.hm-latest { padding:34px 40px; box-sizing:border-box; border-radius:20px; color:#FFF; overflow:hidden; scroll-margin-top:96px;
	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; gap:22px; }
.hm-latest p { margin:0; padding:0; }
.hm-latest-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:24px 40px; }
.hm-latest-res { flex:3 1 460px; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:10px; text-align:left; }
.main-pub .hm-page .hm-latest h2 { margin:0; font-size:30px; line-height:1.2; color:#FFF; }
.hm-latest-count { font-size:16px; color:#E4EAF7; }
.hm-latest-count b { color:#FDF990; }
.hm-latest .lotto-draw { width:100%; margin-top:6px; }
.hm-latest .lotto-numbers { --ball-size:60px; --font-size:21px; --plus-size:14px; --gap:9px; justify-content:flex-start; margin:0; padding:0; }
.hm-latest .lotto-numbers .number { margin:0; color:#1F2A44; }
.hm-latest .lotto-numbers .number.lucky-heart { color:#FFF; }
.hm-latest .lotto-numbers .plus { background-image:url(../images/icon/lotto_plus_wht.png?v=1); }
.hm-count { flex:2 1 300px; min-width:0; padding:20px; box-sizing:border-box; border-radius:18px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16);
	display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; }
.hm-count-wait { font-size:15px; line-height:1.5; color:#E4EAF7; }
/* the countdown (get_countdown_js_v3.php) as glass tiles, as Results */
.hm-count .countdownV2 { --box-size:74px; margin:0; padding:0; gap:8px; }
.hm-count .countdownV2 .spacer { display:none; }
.hm-count .countdownV2 .drawTimeVal { min-width:var(--box-size); height:auto; padding:10px 0 8px; box-sizing:border-box; border-radius:14px;
	background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); font-size:30px; font-weight:800; line-height:1; color:#FFF; }
.hm-count .countdownV2 .drawTimeVal:last-of-type { background:rgba(253,249,144,.16); border-color:rgba(253,249,144,.5); color:#FDF990; }
.hm-count .countdownV2 .drawTimeVal.hurry { background:#C62828 !important; border-color:#C62828; color:#FFF; }
.hm-count .countdownV2 .drawTimeDesc { padding-top:4px; font-size:12px; font-weight:500; color:#C9D6F2; }
.hm-count .countdownV2 .drawTimeVal:last-of-type .drawTimeDesc { color:#FDF990; }
.hm-winners { align-items:center; gap:12px; padding-top:20px; text-align:center; }
.main-pub .hm-page .hm-winners h3 { margin:0; font-size:20px; font-weight:800; color:#FFF; }
.hm-winners h3 span { color:#FDF990; }
.hm-latest .hm-winners > p { font-size:13px; color:#C9D6F2; }
.hm-latest .rs-winner { box-shadow:0 4px 12px rgba(0,0,0,.18); }

/* how much will you win: the draw cards are .iv-draw (How it Works) */
.hm-page a.iv-btn-sm.hm-btn-bc { border-color:#E2D2F0; color:#5B2A86 !important; }
.hm-page a.iv-btn-sm.hm-btn-bc:hover { border-color:#5B2A86; }
.hm-everyone { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; padding:16px 20px; box-sizing:border-box;
	border-radius:14px; background:#FFF; border:1px solid #E3EAF5; }
.hm-everyone p { font-size:17px; font-weight:800; color:#0A2463; }
.hm-everyone a { font-size:14px; font-weight:600; }

/* why trust: 4 blocks, each with a short heading */
.hm-trust { display:flex; flex-direction:column; gap:20px; padding:32px 36px; border-radius:20px; }
.hm-trust-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px 32px; }
.hm-trust-item { min-width:0; display:flex; flex-direction:column; gap:8px; }
.hm-item-hd { display:flex; align-items:center; gap:12px; }
.hm-trust .iv-ic { width:40px; height:40px; border-radius:12px; }
.main-pub .hm-page .hm-trust h3 { font-size:17px; }
.hm-trust-item > p, .hm-point > p { font-size:14px; line-height:1.65; color:#33405E; }

/* how we're different: the text + the navy quote box */
.hm-diff { display:flex; flex-wrap:wrap; gap:20px; }
.hm-diff-txt { flex:3 1 520px; display:flex; flex-direction:column; gap:14px; padding:32px 36px; border-radius:20px; }
.hm-quote { flex:2 1 300px; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:18px; padding:32px 36px; }
.hm-quote svg { display:block; }
.hm-page .hm-quote > p:first-of-type { font-size:22px; font-weight:800; line-height:1.4; color:#FFF; }
.hm-quote .iv-btns { gap:10px; }
.hm-quote a.iv-btn { min-height:46px; padding:0 18px; border-radius:12px; font-size:15px; }
a.iv-btn.hm-btn-white, a.iv-btn.hm-btn-white:visited { background:#FFF; color:#0A2463 !important; }
a.iv-btn.hm-btn-white:hover { background:#E3ECFA; }

/* our promise */
.hm-point { padding:22px 20px; display:flex; flex-direction:column; gap:10px; }
.hm-point .iv-ic { width:44px; height:44px; }
.main-pub .hm-page .hm-point h3 { font-size:18px; line-height:1.25; }
.hm-callout { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; padding:16px 20px; box-sizing:border-box;
	border-radius:14px; background:#E8F0FC; }
.hm-callout > p:first-child { flex:1 1 360px; font-size:16px; font-weight:700; color:#0A2463; }

.hm-page .iv-cta { padding:36px 40px; }

/* ---------- smaller computers ---------- */
@media only screen and (max-width: 1250px) {
 .hm-gift { left:-9%; }
}
@media only screen and (max-width: 1100px) {
	.hm-hero-in { grid-template-columns:minmax(0, 1fr) 400px; }
	#topSection .hm-hero h1 { font-size:46px; }
	.hm-photo-cell { height:437px; }
	.hm-photo { width:470px; }
	/* the gift moves into the empty space under his raised arm - at the user's 1440 spot it would cover the buttons */
	.hm-gift { left:-5%; top:38%; width:30%; }
	.hm-jp img { width:340px; }
	.hm-badges #badges { --badge-size:80px; --badge-hd-size:13px; --badge-font-size:13px; padding:20px 8px; }
}
@media only screen and (max-width: 1000px) {
	#topSection .hm-hero h1 { font-size:40px; }	/* two lines down to 901px */
	.hm-gift { left:3%; top:34%; width:26%; }
}

/* ---------- tablets + phones: heading, then the couple, then the jackpot panel over their legs (board B) ---------- */
@media only screen and (max-width: 900px) {
	.hm-hero-in { grid-template-columns:minmax(0, 1fr); grid-template-rows:none; row-gap:14px; padding:30px 24px 0;
		grid-template-areas:"pill" "h1" "sub" "photo" "jp" "btns" "line" "space"; }
	.hm-hero-in::after { content:""; grid-area:space; height:46px; }	/* room for the badge card */
	.hm-photo-cell { height:auto; margin-bottom:-104px; }
	.hm-photo { position:relative; right:auto; bottom:auto; width:100%; margin:0 auto; }
	.hm-couple { width:min(100%, 420px); margin:0 auto; }
	.hm-jp { justify-self:stretch; position:relative; z-index:2; background:rgba(168,60,0,.96); box-shadow:0 10px 24px rgba(80,25,0,.35); }
	/* the gift where the user dragged it on the phone board (104px, at the left under his arm) */
	.hm-gift { left:8%; top:31.2%; width:min(29.4%, 200px); filter:drop-shadow(0 6px 12px rgba(90,30,0,.35)); }
	.hm-badges #badges { --badge-size:76px; --badge-hd-size:12px; --badge-font-size:13px; }
	.hm-badges #badges .badge-item { width:25%; }
	.hm-welcome-pic { flex-basis:100%; height:380px; }
	.hm-heart { left:50%; margin-left:-230px; width:340px; }
	.hm-woman { right:50%; margin-right:-230px; width:200px; }
	.hm-quote { flex-basis:100%; }
}

/* ---------- phones (the user's 390 board) ---------- */
@media only screen and (max-width: 700px) {
	.hm-wrap { padding:0 12px 8px; }
	.hm-hero-in { padding:26px 16px 0; }
	.hm-hero-in::after { height:50px; }
	#topSection .hm-hero h1 { font-size:34px; }
	.hm-hero .hm-sub { font-size:17px; }
	.hm-couple { width:min(100%, 354px); }
	.hm-jp { padding:12px 14px; }
	.hm-jp img { width:300px; }
	.hm-gift { left:6%; top:31.2%; width:min(29.4%, 150px); }
	.hm-hero .hm-btns a.hm-btn { flex:1 1 100%; }
	.hm-badges { margin-top:-44px; }
	.hm-badges #badges { --badge-size:68px; --badge-hd-size:11px; --badge-font-size:12px; padding:18px 6px; }
	.hm-badges #badges .badge-hd { padding:3px 6px; }
	.hm-page { margin-top:28px; gap:30px; }
	.main-pub .hm-page h2 { font-size:23px; }
	.hm-welcome, .hm-trust, .hm-diff-txt, .hm-quote { padding:22px 18px; border-radius:16px; }
	.hm-ticks { grid-template-columns:repeat(1, minmax(0, 1fr)); }
	.hm-welcome .iv-btns, .hm-welcome .iv-btns a.iv-btn { width:100%; }
	.hm-welcome-pic { height:250px; }
	.hm-heart { left:0; margin-left:0; top:-12px; width:230px; }
	.hm-woman { right:0; margin-right:0; bottom:-16px; width:150px; }
	.hm-step { padding:18px; }
	.hm-latest { padding:24px 14px; border-radius:16px; }
	.hm-latest-res { align-items:center; text-align:center; }
	.main-pub .hm-page .hm-latest h2 { font-size:22px; }
	.hm-latest .lotto-numbers { --ball-size:38px; --font-size:14px; --plus-size:9px; --gap:4px; justify-content:center; }
	.hm-count .countdownV2 { --box-size:66px; }
	.hm-count .countdownV2 .drawTimeVal { font-size:26px; }
	.hm-latest-winners .infinite-scroll, .hm-winners .infinite-scroll { --rs-fade:24px; }
	.hm-trust-grid { grid-template-columns:repeat(1, minmax(0, 1fr)); }
	.hm-page .hm-quote > p:first-of-type { font-size:19px; }
	.hm-quote .iv-btns a.iv-btn, .hm-btn-row a.iv-btn-sm { flex:1 1 100%; justify-content:center; }
	.hm-point { padding:18px; }
	.hm-page .iv-cta { padding:26px 18px; }
}
@media only screen and (max-width: 500px) {
	.hm-gift { left:1.1%; top:35%; width:min(29.4%, 120px); }
}
@media only screen and (max-width: 360px) {
	#topSection .hm-hero h1 { font-size:30px; }
	.hm-latest .lotto-numbers { --ball-size:32px; --font-size:13px; --gap:3px; }
	.hm-badges #badges { --badge-size:62px; --badge-hd-size:10px; --badge-font-size:10px; padding:16px 5px; }
}
