/* EPL Compounding Challenge — popup styles
   Palette: navy #0A1F14 / teal #0D7C3E (brand). Accent set via --eplc-accent. */

.eplc-overlay{
  position:fixed; inset:0; z-index:999999;
  display:flex; align-items:center; justify-content:center;
  padding:16px;
  background:rgba(11,7,45,.72);
  backdrop-filter:blur(4px);
  opacity:0; transition:opacity .25s ease;
}
.eplc-overlay.is-open{opacity:1;}
.eplc-overlay[hidden]{display:none;}

.eplc-modal{
  position:relative; width:100%; max-width:440px;
  max-height:92vh; overflow-y:auto;
  background:linear-gradient(180deg,#0e2c1d 0%, var(--eplc-dark,#0A1F14) 100%);
  color:#fff;
  border:1px solid rgba(18,183,106,.28);
  border-radius:20px;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  padding:26px 22px 18px;
  transform:translateY(14px) scale(.98);
  transition:transform .28s cubic-bezier(.2,.8,.2,1);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.eplc-overlay.is-open .eplc-modal{transform:none;}

.eplc-close{
  position:absolute; top:12px; right:14px;
  background:transparent; border:0; color:rgba(255,255,255,.6);
  font-size:26px; line-height:1; cursor:pointer; padding:4px;
}
.eplc-close:hover{color:#fff;}

.eplc-eyebrow{
  font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--eplc-accent,#0D7C3E); font-weight:700; margin-bottom:6px;
}
.eplc-title{
  font-size:26px; line-height:1.1; font-weight:800; margin:0 0 8px;
  color:#fff;
}
.eplc-blurb{font-size:13.5px; line-height:1.5; color:rgba(255,255,255,.78); margin:0 0 16px;}

/* Tabs */
.eplc-tabs{display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap;}
.eplc-tab{
  flex:1 1 auto; min-width:0;
  display:flex; align-items:center; justify-content:center; gap:6px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  color:rgba(255,255,255,.72); font-size:12.5px; font-weight:600;
  padding:8px 6px; border-radius:10px; cursor:pointer; transition:.15s;
}
.eplc-tab .eplc-tab-label{overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.eplc-tab:hover{background:rgba(255,255,255,.1); color:#fff;}
.eplc-tab.is-active{
  background:var(--eplc-accent,#0D7C3E); color:var(--eplc-dark,#0A1F14);
  border-color:var(--eplc-accent,#0D7C3E);
}
.eplc-flag{font-size:14px;}

.eplc-panel[hidden]{display:none;}

.eplc-bookrow{display:flex; align-items:baseline; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-bottom:12px;}
.eplc-book{font-size:18px; font-weight:800; color:#fff;}
.eplc-country{font-size:12px; color:rgba(255,255,255,.6);}

/* Load code — betting-slip ticket look */
.eplc-codewrap{margin-bottom:16px;}
.eplc-codelabel{
  display:block; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  color:rgba(255,255,255,.5); margin-bottom:6px;
}
.eplc-codebox{
  display:flex; align-items:stretch; gap:0;
  border-radius:12px; overflow:hidden;
  border:1px dashed rgba(18,183,106,.5);
  background:rgba(18,183,106,.06);
}
.eplc-code{
  flex:1; font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
  font-size:22px; font-weight:700; letter-spacing:.18em;
  color:var(--eplc-accent,#0D7C3E);
  padding:12px 14px; text-align:center;
}
.eplc-copy{
  border:0; background:var(--eplc-accent,#0D7C3E); color:var(--eplc-dark,#0A1F14);
  font-weight:700; font-size:12px; padding:0 16px; cursor:pointer; transition:.15s;
}
.eplc-copy:hover{filter:brightness(1.08);}
.eplc-copy.is-done{background:#fff;}

/* Stats */
.eplc-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px;}
.eplc-inline .eplc-stats{grid-template-columns:repeat(2,1fr);}
.eplc-stat{
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08);
  border-radius:12px; padding:12px 8px; text-align:center;
}
.eplc-stat--hero{
  background:rgba(18,183,106,.12); border-color:rgba(18,183,106,.4);
}
.eplc-stat-val{display:block; font-size:19px; font-weight:800; color:#fff; line-height:1;}
.eplc-stat--hero .eplc-stat-val{color:var(--eplc-accent,#0D7C3E);}
.eplc-stat-sep{opacity:.45; margin:0 1px; font-weight:600;}
.eplc-stat-key{display:block; font-size:10px; letter-spacing:.05em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-top:5px;}

/* Progress */
.eplc-progress{height:6px; border-radius:99px; background:rgba(255,255,255,.1); overflow:hidden; margin-bottom:14px;}
.eplc-progress span{display:block; height:100%; background:linear-gradient(90deg,var(--eplc-accent,#0D7C3E),#5fe0a0); border-radius:99px; transition:width .6s ease;}

/* Next target */
.eplc-next{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-size:12.5px; padding:10px 12px; margin-bottom:16px;
  background:rgba(255,255,255,.05); border-radius:10px;
  border-left:3px solid var(--eplc-accent,#0D7C3E);
}
.eplc-next-label{color:rgba(255,255,255,.8);}
.eplc-next-target{font-weight:700; color:var(--eplc-accent,#0D7C3E); white-space:nowrap;}
.eplc-next--done{justify-content:center; color:rgba(255,255,255,.7); border-left-color:rgba(255,255,255,.3);}

/* CTA */
.eplc-cta{
  display:block; text-align:center; text-decoration:none;
  background:var(--eplc-accent,#0D7C3E);
  color:var(--eplc-gold,#F5A623) !important;
  font-size:16px; font-weight:800; padding:15px; border-radius:13px;
  transition:.15s; box-shadow:0 8px 24px rgba(13,124,62,.28);
}
.eplc-cta:hover{filter:brightness(1.06); transform:translateY(-1px); color:var(--eplc-gold,#F5A623) !important;}
.eplc-cta:visited,.eplc-cta:focus,.eplc-cta:active{color:var(--eplc-gold,#F5A623) !important;}
.eplc-cta-sub{text-align:center; font-size:11.5px; color:rgba(255,255,255,.55); margin:8px 0 16px;}

/* Share */
.eplc-share{border-top:1px solid rgba(255,255,255,.1); padding-top:14px;}
.eplc-share-label{display:block; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.5); margin-bottom:9px; text-align:center;}
.eplc-share-btns{display:flex; flex-wrap:wrap; gap:7px; justify-content:center;}
.eplc-sh{
  flex:1 1 auto; min-width:70px; text-align:center; text-decoration:none; cursor:pointer;
  font-size:12px; font-weight:700; padding:9px 8px; border-radius:9px;
  border:0; color:#fff; transition:.15s;
}
.eplc-sh:hover{transform:translateY(-1px); filter:brightness(1.08);}
.eplc-sh--wa{background:#25D366; color:#04310f;}
.eplc-sh--tg{background:#2AABEE;}
.eplc-sh--x{background:#000; border:1px solid rgba(255,255,255,.25);}
.eplc-sh--fb{background:#1877F2;}
.eplc-sh--copy{background:rgba(255,255,255,.12);}
.eplc-sh--copy.is-done{background:var(--eplc-accent,#0D7C3E); color:var(--eplc-dark,#0A1F14);}

.eplc-disclaimer{font-size:10px; line-height:1.5; color:rgba(255,255,255,.4); text-align:center; margin:16px 0 2px;}

/* Inline shortcode variant */
.eplc-inline{
  width:100%; max-width:420px; box-sizing:border-box;
  background:var(--eplc-dark,#0A1F14); color:#fff;
  border:1px solid rgba(18,183,106,.28); border-radius:16px; padding:18px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  /* The card is sized by its column, not by the screen. A phone-width media
     query is the wrong tool: two cards side by side on a 360px phone are
     180px each, and a card in a narrow desktop sidebar is narrow on a wide
     screen. Container queries let the card respond to its own width. */
  container-type:inline-size;
  container-name:eplc-card;
}
.eplc-inline *{box-sizing:border-box; min-width:0;}
.eplc-inline .eplc-codebox{margin-bottom:12px;}
.eplc-inline .eplc-cta{margin-top:6px;}
.eplc-concept-blurb,.eplc-book,.eplc-cta{overflow-wrap:break-word;}

/* Multi-country grid: one column until there is real room for two. */
.eplc-grid{
  display:grid; grid-template-columns:1fr; gap:14px;
  width:100%; max-width:100%; margin:0 auto;
}
.eplc-grid .eplc-inline{max-width:none;}
@media (min-width:720px){
  .eplc-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));}
}

/* Card-width breakpoints. Roughly: a half-width phone column is under 220px,
   a full-width phone card is 300-360px. */
@container eplc-card (max-width:320px){
  .eplc-inline{padding:14px; border-radius:14px;}
  .eplc-concept{margin-bottom:11px; padding-bottom:10px;}
  .eplc-concept-title{font-size:15px;}
  .eplc-concept-blurb{font-size:12px; line-height:1.5;}
  .eplc-book{font-size:16px;}
  .eplc-stats{gap:6px;}
  .eplc-stat{padding:10px 6px;}
  .eplc-stat-val{font-size:17px;}
  .eplc-cta{font-size:14px; padding:13px 10px;}
}
@container eplc-card (max-width:240px){
  .eplc-inline{padding:12px;}
  .eplc-concept-title{font-size:14px;}
  .eplc-concept-blurb{font-size:11.5px;}
  .eplc-bookrow{flex-direction:column; align-items:flex-start; gap:2px;}
  .eplc-book{font-size:15px;}
  .eplc-country{font-size:11px;}
  .eplc-stat-val{font-size:15px;}
  .eplc-stat-key{font-size:9px;}
  /* Drop the bookmaker name from the button so it stops wrapping to three
     lines with the arrow stranded on its own. */
  .eplc-cta-book{display:none;}
  .eplc-cta{font-size:13.5px; padding:12px 8px;}
}

/* Fallback for browsers without container query support: at least stop the
   half-width phone card from running oversized type. */
@supports not (container-type:inline-size){
  @media (max-width:600px){
    .eplc-inline{padding:14px;}
    .eplc-concept-title{font-size:15px;}
    .eplc-concept-blurb{font-size:12px;}
    .eplc-stat-val{font-size:17px;}
    .eplc-cta{font-size:14px; padding:13px 10px;}
  }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  .eplc-overlay,.eplc-modal,.eplc-cta,.eplc-sh,.eplc-progress span{transition:none;}
}

/* Small screens */
@media (max-width:420px){
  .eplc-title{font-size:22px;}
  .eplc-code{font-size:19px; letter-spacing:.14em;}
  .eplc-stat-val{font-size:16px;}
  .eplc-sh{min-width:60px;}
}

/* Concept block on the inline card (moved from the old popup) */
.eplc-concept{
  margin-bottom:14px; padding-bottom:12px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.eplc-concept-title{
  font-size:16px; font-weight:800;
  color:var(--eplc-gold,#F5A623) !important;
  margin:0 0 6px; line-height:1.3;
}
.eplc-concept-blurb{
  font-size:13px; line-height:1.55; color:rgba(255,255,255,.72); margin:0;
}
