/* LottoLuma Stage 1 V5: ONLY the new homepage finder and lottery directory. */
/* This sheet does not style the site header, mega menu, existing cards, admin, or footer. */
:root{--ll-s1-ink:#112e48;--ll-s1-blue:#1768aa;--ll-s1-teal:#148f99;--ll-s1-border:#d8e9f2}
.ll-s1-eyebrow{display:block;color:#2376b0;font-size:.69rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase;line-height:1.4}
/* Shared contained search field — explicitly prevent the old global input border. */
.ll-s1-search-shell{display:flex;align-items:center;gap:10px;height:50px;min-height:50px;min-width:0;padding:0 15px;background:#fff;border:1px solid #c5dae9;border-radius:12px;color:#1b669f;box-shadow:0 4px 14px rgba(30,83,120,.05)}
.ll-s1-search-shell:focus-within{outline:2px solid #5ca5d6;outline-offset:1px;border-color:transparent}
.ll-s1-search-shell>span{font-size:25px;line-height:1;flex:0 0 auto;font-family:Arial,sans-serif}
.ll-s1-search-shell input,.ll-s1-search-shell input[type=search]{display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;color:#173c5b!important;font-family:inherit!important;font-size:.91rem!important;font-weight:450!important;line-height:1.35!important;-webkit-appearance:none;appearance:none}
.ll-s1-search-shell input::placeholder{color:#7a91a7;opacity:1}
/* Compact homepage finder, purpose-built to fit the existing Find Your Lottery heading. */
#games .ll-s1-finder{position:relative;width:100%;max-width:1200px;margin:14px auto 20px;padding:20px 22px;border:1px solid var(--ll-s1-border);border-radius:18px;background:linear-gradient(113deg,#fff 0%,#fbfdff 55%,#f3fbfc 100%);box-shadow:0 8px 24px rgba(23,69,108,.055);color:var(--ll-s1-ink)}
#games .ll-s1-finder-main{display:grid;grid-template-columns:minmax(225px,.82fr) minmax(360px,1.65fr);gap:24px;align-items:center}
#games .ll-s1-finder-copy{margin:0;max-width:365px}
#games .ll-s1-finder-copy p{margin:6px 0 0;font-size:.92rem;line-height:1.5;color:#516e84;opacity:1}
#games .ll-s1-finder-search{position:relative;width:100%;max-width:none;margin:0;min-width:0}
#games .ll-s1-finder-search label,.ll-s1-directory-page .ll-s1-directory-search label{display:block;margin:0 0 7px;font-size:.79rem;font-weight:800;color:var(--ll-s1-ink)}
#games .ll-s1-finder-footer{display:flex;align-items:center;justify-content:space-between;gap:14px 22px;flex-wrap:wrap;margin-top:17px;padding-top:15px;border-top:1px solid #e6eff5}
#games .ll-s1-finder-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0}
#games .ll-s1-finder-actions>a,#games .ll-s1-finder-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;margin:0;padding:9px 14px;border-radius:10px;font-family:inherit;font-size:.78rem;font-weight:800;line-height:1.25;text-decoration:none;cursor:pointer;transition:background .15s ease,box-shadow .15s ease}
#games .ll-s1-primary{background:#1567a8!important;border:1px solid #1567a8!important;color:#fff!important;box-shadow:0 4px 9px rgba(21,103,168,.12)}
#games .ll-s1-primary:hover{background:#0f548b!important}
#games .ll-s1-secondary{background:#fff!important;border:1px solid #b5d5e8!important;color:#155b91!important}
#games .ll-s1-secondary:hover{background:#f0f8fe!important}
#games .ll-s1-popular{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0;font-size:.76rem;color:#5d778a}
#games .ll-s1-popular span{margin-right:2px}
#games .ll-s1-popular a{display:inline-flex;align-items:center;min-height:29px;padding:4px 9px;border:1px solid #d7e7f1;border-radius:999px;color:#1d658f!important;background:#f7fbff;text-decoration:none;font-size:.74rem}
#games .ll-s1-popular a:hover{border-color:#80b5d6;background:#fff}
#games.ll-s1-ready:not(.ll-s1-open) #gameCatalog,
#games.ll-s1-ready:not(.ll-s1-open) #catalogEmpty,
#games.ll-s1-ready:not(.ll-s1-open) > .orbit-directory-filter-row,
#games.ll-s1-ready:not(.ll-s1-open) > #orbitFilterCount{display:none!important}
#games.ll-s1-open #gameCatalog{margin-top:14px}
#games .ll-s1-results{position:static;top:auto;left:auto;right:auto;z-index:auto;max-width:100%;max-height:206px;margin-top:8px;background:#fff;border:1px solid #bfd9eb;border-radius:12px;box-shadow:0 7px 18px rgba(16,57,96,.10);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
#games .ll-s1-results[hidden]{display:none!important}
#games .ll-s1-results a{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;padding:11px 15px;border-bottom:1px solid #eef3f7;color:#175c96!important;text-decoration:none;font-size:.85rem;font-weight:750}
#games .ll-s1-results a:last-child{border-bottom:0}
#games .ll-s1-results a:hover,#games .ll-s1-results a:focus-visible{background:#edf7ff}
#games .ll-s1-results a small{color:#617a8c;font-size:.75rem;font-weight:500}
#games .ll-s1-no-results{padding:13px 15px;font-size:.83rem;color:#617a8c}
/* All-new directory: same light editorial surfaces as the established LottoLuma site. */
.ll-s1-directory-page main#mainContent{padding-top:clamp(18px,2.5vw,32px)}
.ll-s1-directory-page .ll-s1-directory-hero{position:relative;overflow:hidden;margin:0 0 24px;padding:clamp(22px,3vw,38px);border:1px solid #cfe6f1;border-radius:20px;background:radial-gradient(circle at 88% 10%,rgba(91,206,202,.2),transparent 27%),linear-gradient(115deg,#fdfefe 0%,#f2f9fd 54%,#e9f8fa 100%);box-shadow:0 14px 30px rgba(34,92,131,.08);color:var(--ll-s1-ink)}
.ll-s1-directory-page .ll-s1-directory-hero:after{content:"";pointer-events:none;position:absolute;right:-92px;top:-170px;width:330px;height:330px;border:1px solid rgba(41,139,174,.1);border-radius:50%;box-shadow:0 0 0 42px rgba(41,139,174,.023),0 0 0 84px rgba(41,139,174,.018)}
.ll-s1-directory-page .ll-s1-directory-hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.03fr) minmax(350px,.87fr);gap:clamp(20px,3.4vw,54px);align-items:center;max-width:none}
.ll-s1-directory-page .ll-s1-directory-intro{min-width:0}
.ll-s1-directory-page .ll-s1-directory-hero .ll-s1-eyebrow{color:#277bb3!important;opacity:1!important}
.ll-s1-directory-page .ll-s1-directory-hero h1{margin:10px 0 12px;font-size:clamp(2rem,3.4vw,3rem);line-height:1.09;letter-spacing:-.048em;color:#12324b!important;font-weight:850}
.ll-s1-directory-page .ll-s1-directory-hero h1 em{color:#1767aa;font-style:italic}
.ll-s1-directory-page .ll-s1-directory-hero .ll-s1-directory-intro p{max-width:520px;margin:0 0 20px;font-size:.93rem;line-height:1.65;color:#496c83!important;opacity:1!important}
.ll-s1-directory-page .ll-s1-directory-stats{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.ll-s1-directory-page .ll-s1-directory-stats span{display:flex;align-items:center;gap:7px;color:#57778b;font-size:.78rem}
.ll-s1-directory-page .ll-s1-directory-stats span+span{padding-left:14px;border-left:1px solid #cadde9}
.ll-s1-directory-page .ll-s1-directory-stats strong{font-size:1.25rem;line-height:1;color:#1768a7;font-weight:900}
.ll-s1-directory-page .ll-s1-directory-utility{min-width:0;padding:22px;background:rgba(255,255,255,.9);border:1px solid #d9e8f1;border-radius:16px;box-shadow:0 10px 23px rgba(36,90,130,.06)}
.ll-s1-directory-page .ll-s1-directory-search{max-width:none}
.ll-s1-directory-page .ll-s1-directory-quick{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:13px 0 0;padding:0}
.ll-s1-directory-page .ll-s1-directory-quick span{margin-right:2px;color:#617b8f;font-size:.75rem;opacity:1}
.ll-s1-directory-page .ll-s1-directory-quick a{padding:6px 10px;background:#f3f9fd;border:1px solid #d2e6f1;border-radius:999px;color:#1d648e!important;text-decoration:none;font-size:.75rem;font-weight:700}
.ll-s1-directory-page .ll-s1-directory-quick a:hover,.ll-s1-directory-page .ll-s1-directory-quick a:focus-visible{border-color:#85b9d7;background:#e9f5fd;color:#175b8f!important}
.ll-s1-directory-page .ll-s1-directory-hero .ll-s1-directory-note{margin:15px 0 0!important;padding-top:11px;border-top:1px solid #e3eef4;color:#71879b!important;font-size:.69rem;line-height:1.45;opacity:1!important}
.ll-s1-directory-page #games{margin-top:10px}
.ll-s1-directory-page #games .section-top{margin-bottom:16px}
.ll-s1-directory-page #gameCatalog{display:grid;gap:18px}
.ll-s1-directory-page #games .country-tile{min-width:0}
@media(max-width:1000px){.ll-s1-directory-page .ll-s1-directory-hero-inner{grid-template-columns:minmax(0,1fr) minmax(315px,1fr);gap:25px}}
@media(max-width:800px){#games .ll-s1-finder-main{grid-template-columns:1fr;gap:14px}#games .ll-s1-finder-footer{margin-top:14px}.ll-s1-directory-page .ll-s1-directory-hero-inner{grid-template-columns:1fr;gap:21px}.ll-s1-directory-page .ll-s1-directory-hero h1{font-size:clamp(2rem,6vw,2.65rem)}}
@media(max-width:540px){#games .ll-s1-finder{margin:12px auto 18px;padding:17px 15px;border-radius:15px}#games .ll-s1-finder-footer{gap:12px}#games .ll-s1-finder-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}#games .ll-s1-finder-actions>a,#games .ll-s1-finder-actions>button{padding:10px 8px;min-height:42px;font-size:.73rem}#games .ll-s1-popular{gap:6px}.ll-s1-directory-page .ll-s1-directory-hero{padding:22px 16px;margin-bottom:17px;border-radius:17px}.ll-s1-directory-page .ll-s1-directory-utility{padding:17px 14px}.ll-s1-directory-page .ll-s1-directory-stats strong{font-size:1.12rem}.ll-s1-directory-page #gameCatalog{gap:12px}}
@media(prefers-reduced-motion:reduce){#games .ll-s1-finder-actions>*{transition:none}}

/* V4: Keep the directory H1 in its hero and remove excess whitespace before country filters. */
.ll-s1-directory-page .ll-s1-directory-hero{margin-bottom:14px}
.ll-s1-directory-page #games{margin-top:0;padding-top:clamp(18px,2vw,26px)}
/* V4: Full-width, uncropped promotional number card. The prior 290px fixed-stage
   height and 28px padding constrained a 960x504 image to ~446px wide. */
body.visual-perfection-home #features #number-cards .lf-stage-card{
 height:auto;min-height:0;padding:12px;display:block;
 background:linear-gradient(155deg,#e4f3fa 0%,#eff8fa 100%);
}
body.visual-perfection-home #features #number-cards .lf-stage-card img{
 display:block;width:100%;max-width:100%;height:auto;max-height:none;
 margin:0;border-radius:10px;object-fit:contain;box-shadow:0 10px 20px rgba(14,55,79,.13);
}
@media(min-width:761px){
 body.visual-perfection-home #features #a4-sheets .lf-stage-paper{height:clamp(265px,25vw,342px)}
}
@media(max-width:760px){
 body.visual-perfection-home #features #number-cards .lf-stage-card{padding:9px}
 .ll-s1-directory-page #games{padding-top:17px}
}

/* V5: Reset the existing site's global #gameSearch theme styling ONLY inside the
   new LottoLuma directory and homepage finder. Avoid the double-colour inner
   box while retaining the parent's accessible focus ring. */
body.ll-s1-directory-page .ll-s1-directory-utility .ll-s1-search-shell > input#gameSearch,
body.visual-perfection-home #games .ll-s1-finder-search .ll-s1-search-shell > input#llS1QuickSearch{
  background:transparent!important;background-color:transparent!important;
  background-image:none!important;
  border:0!important;border-width:0!important;border-style:none!important;
  border-radius:0!important;box-shadow:none!important;
  outline:0!important;outline-offset:0!important;
  -webkit-appearance:none!important;appearance:none!important;
}
/* Maintain one visible focus treatment on the OUTER search shell, not two boxes. */
body.ll-s1-directory-page .ll-s1-directory-utility .ll-s1-search-shell:focus-within,
body.visual-perfection-home #games .ll-s1-finder-search .ll-s1-search-shell:focus-within{
  border-color:#559bc8;outline:2px solid #7cbbdc;outline-offset:1px;
}
/* Suggestions stay contained in the finder and never overlay the next section.
   A long result set scrolls within the panel. No JS or result links changed. */
#games .ll-s1-finder-search .ll-s1-results{width:100%;box-sizing:border-box}
#games .ll-s1-finder-search .ll-s1-results a{min-width:0}
#games .ll-s1-finder-search .ll-s1-results a span{min-width:0;overflow-wrap:anywhere}
@media(max-width:540px){#games .ll-s1-finder-search .ll-s1-results{max-height:192px}}
