
:root{
  --primary:#0088CC;
  --cyan:#1DE9FF;
  --dark:#101828;
  --ink:#1A1A2E;
  --blue:#007C91;
  --green:#00BFA6;
  --yellow:#FFC300;
  --light:#F5F7FA;
  --white:#FFFFFF;
  --muted:#667085;
  --line:#E4E7EC;
  --danger:#B42318;
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  max-width:100%;
  overflow-x:hidden;
}

body{
  font-family:'Poppins', sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0,124,145,.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,195,0,.08), transparent 25%),
    linear-gradient(180deg,#F8FAFC 0%,#EEF4F6 100%);
}

p{
  color:#475467;
}

/* HEADER */

.site-header{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg,rgba(16,24,40,.94),rgba(26,26,46,.88),rgba(0,124,145,.82)),
    url("assets/img/worldcup-hero.jpg");
  background-size:cover;
  background-position:center;
  color:white;
  padding:0 20px 52px;
  text-align:center;
}

.site-header::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-120px;
  width:320px;
  height:320px;
  background:rgba(0,191,166,.18);
  border-radius:50%;
}

.topbar{
  max-width:1500px;
  margin:auto;
  padding:8px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:relative;
  z-index:2;
}

.logo{
  display:flex;
  align-items:center;
  line-height:1;
}

.logo img{
  display:block;
  height:112px;
  width:auto;
  max-width:220px;
}



.hero{
  max-width:900px;
  margin:34px auto 0;
  text-align:center;
  position:relative;
  z-index:2;
}

.eyebrow{
  display:inline-block;
  background:rgba(255,195,0,.16);
  color:var(--yellow);
  border:1px solid rgba(255,195,0,.32);
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:14px;
}

.hero h1{
  margin:0;
  font-size:clamp(32px,5vw,56px);
  letter-spacing:-.05em;
}

.hero-description{
  max-width:800px;
  margin:14px auto 0;
  color:#EAF6F7;
  font-size:17px;
  line-height:1.6;
}

.hero-benefits{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:20px;
}

.hero-benefits span{
  font-weight:600;
}

.hero-stats{
  display:flex;
  justify-content:center;
  gap:2rem;
  margin:2rem 0;
  flex-wrap:wrap;
}

.hero-stats div{
  text-align:center;
}

.hero-stats strong{
  display:block;
  font-size:1.8rem;
  color:white;
}

.hero-stats span{
  color:#EAF6F7;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:1rem;
  flex-wrap:wrap;
  margin-top:1rem;
}

.btn-primary{
  background:var(--yellow);
  color:var(--ink);
  font-weight:800;
  padding:.9rem 1.4rem;
  border-radius:10px;
  text-decoration:none;
  transition:.25s;
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255,195,0,.35);
}

    .btn-secondary{
  background:rgba(255,255,255,.12);
  color:white;
  font-weight:800;
  padding:.9rem 1.4rem;
  border-radius:10px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.25);
  transition:.25s;
}

.btn-secondary:hover{
  background:white;
  color:var(--ink);
  transform:translateY(-2px);
}
/* NAVIGATION */

.mobile-menu-btn{
  display:none;
}

.page-nav{
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 28px;
  background:rgba(11,16,32,.94);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.page-nav a{
  color:white;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}

.page-nav a:hover{
  background:var(--yellow);
  color:var(--ink);
}

/* LAYOUT GLOBAL */

main{
  max-width:1500px;
  margin:auto;
  padding:28px;
}

section{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  margin-bottom:26px;
  padding:24px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 14px 34px rgba(16,24,40,.08);
}

h2{
  margin:0;
  color:var(--ink);
  letter-spacing:-.02em;
}

h3{
  color:var(--ink);
}

.section-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.progress-text{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

button{
  border:none;
  background:var(--blue);
  color:white;
  padding:11px 16px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(0,124,145,.22);
  transition:.2s ease;
}

button:hover{
  transform:translateY(-1px);
  background:var(--green);
}

button.danger{
  background:var(--danger);
  box-shadow:0 8px 18px rgba(180,35,24,.18);
}

input{
  width:100%;
  padding:9px;
  border:1px solid #D0D5DD;
  border-radius:10px;
  text-align:center;
  font-weight:900;
  background:#FCFCFD;
  color:var(--ink);
}

input:focus{
  outline:2px solid rgba(0,124,145,.25);
  border-color:var(--blue);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

input[type="number"]{
  -moz-appearance:textfield;
  appearance:textfield;
}



/* STATS */

.stats-bar{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
  margin-bottom:24px;
}

.stat-card{
  background:rgba(18,26,46,.9);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:18px;
  text-align:center;
}

.stat-card span{
  display:block;
  color:#AEB6C2;
  font-size:13px;
}

.stat-card strong{
  display:block;
  margin-top:8px;
  font-size:28px;
  color:white;
}

/* DASHBOARD PRONOSTICS */

.pronostics-dashboard{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);
  gap:24px;
  align-items:start;
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  backdrop-filter:none;
}

.left-panel,
.right-panel{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.75);
  border-radius:22px;
  box-shadow:0 14px 34px rgba(16,24,40,.08);
  padding:20px;
}

.right-panel{
  position:sticky;
  top:82px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.panel-section{
  background:white;
  border-radius:20px;
  padding:16px;
  margin:0;
  border:none;
  box-shadow:none;
  backdrop-filter:none;
}

.right-panel .panel-section{
  min-height:300px;
}

.group-selector{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:8px;
  margin:18px 0 20px;
}

.group-tab{
  border:none;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
}

.group-empty{
  background:#E5E7EB;
  color:#374151;
}

.group-partial{
  background:#F59E0B;
  color:white;
}

.group-complete{
  background:#10B981;
  color:white;
}

.group-active{
  outline:3px solid var(--blue);
}

/* MATCHS */

.group-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
  gap:18px;
}

.one-group-grid,
#standings.group-grid{
  grid-template-columns:1fr;
}

.group{
  background:#F9FBFC;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
}

.group h3{
  margin:0 0 12px;
  color:var(--blue);
}

.match-row{
  background:white;
  border:1px solid #EEF2F6;
  border-radius:14px;
  padding:10px;
  margin-bottom:10px;
  box-shadow:0 4px 10px rgba(16,24,40,.03);
}

.match-date{
  font-size:11px;
  font-weight:900;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:7px;
}

.match{
  display:grid;
  grid-template-columns:minmax(120px,1fr) 52px 20px 52px minmax(120px,1fr);
  gap:10px;
  align-items:center;
  font-size:14px;
}

.match strong:first-child{
  text-align:right;
}

.match strong:last-child{
  text-align:left;
}

.match span{
  display:flex;
  align-items:center;
  justify-content:center;
  height:44px;
  font-weight:700;
  font-size:1.1rem;
}

.match input{
  width:52px;
  height:44px;
  text-align:center;
}

/* TABLEAUX */

table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin-top:12px;
  font-size:13px;
  overflow:hidden;
  border-radius:14px;
}

th,
td{
  padding:9px 8px;
  border-bottom:1px solid var(--line);
  text-align:center;
}

th{
  background:var(--ink);
  color:white;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.03em;
}

tbody tr{
  background:white;
}

tbody tr:hover{
  background:#F8FAFC;
}

.q{
  font-weight:900;
  color:var(--green);
}

.third{
  font-weight:900;
  color:#B98900;
}

#thirds table{
  font-size:12px;
}

#thirds th,
#thirds td{
  padding:8px 6px;
}

/* PHASE FINALE */

.bracket,
.vertical-bracket{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.bracket .round{
  width:100%;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:8px;
}

.bracket .round h3{
  grid-column:1/-1;
}

.round{
  background:#F9FBFC;
  border:1px solid var(--line);
  border-radius:18px;
  padding:15px;
}

.round h3{
  margin:0 0 12px;
  color:var(--blue);
}

.combined-rounds{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:12px;
  margin-top:12px;
}

.kmatch{
  background:white;
  border-left:5px solid var(--blue);
  padding:7px;
  border-radius:14px;
  margin-bottom:7px;
  box-shadow:0 4px 10px rgba(16,24,40,.04);
}

.kteam{
  display:grid;
  grid-template-columns:1fr 38px;
  gap:6px;
  align-items:center;
  margin:3px 0;
}

.kteam span{
  font-size:14px;
  line-height:1.2;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kteam input{
  width:38px;
  height:30px;
  font-size:14px;
}

.winner{
  color:var(--green);
  font-weight:900;
}

.badge{
  display:inline-block;
  font-size:11px;
  background:var(--yellow);
  color:#332600;
  padding:5px 9px;
  border-radius:999px;
  font-weight:900;
  margin-bottom:8px;
}

.small{
  font-size:12px;
  color:var(--muted);
}

/* CHAMPION */

.champion-section{
  max-width:420px;
  margin:20px auto;
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
}

#champion{
  max-width:420px;
  margin:0 auto;
}

.champion{
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.45), transparent 40%),
    linear-gradient(135deg,var(--yellow),#FFE680);
  border-radius:20px;
  padding:22px;
  font-size:24px;
  font-weight:900;
  text-align:center;
  color:#332600;
  box-shadow:0 12px 28px rgba(255,195,0,.18);
}




.hidden{
  display:none;
}

/* FOOTER */

.site-footer{
  background:linear-gradient(135deg,#101828 0%,#1A1A2E 50%,#007C91 100%);
  color:#F5F7FA;
  padding:40px 20px;
  margin:40px 0 0;
  text-align:center;
  font-size:14px;
}

.site-footer .container{
  max-width:1500px;
  margin:auto;
}

.footer-wrap{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  align-items:start;
}

.footer-block{
  font-size:14px;
  line-height:1.8;
}

.footer-block strong{
  color:white;
}

.footer-block a{
  color:#D0D5DD;
  text-decoration:none;
  transition:.2s;
}

.footer-block a:hover{
  color:var(--yellow);
}

/* ANCRES */

#pronostics,
#classements,
#tableau{
  scroll-margin-top:90px;
}

/* RESPONSIVE */

@media(max-width:1100px){
  .stats-bar{
    grid-template-columns:repeat(3,1fr);
  }

  .pronostics-dashboard{
    grid-template-columns:1fr;
  }

  .right-panel{
    position:static;
  }

  .group-selector{
    grid-template-columns:repeat(6,1fr);
  }
}

@media(max-width:900px){
  .trend-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .combined-rounds{
    grid-template-columns:1fr;
  }
}

@media(max-width:768px){
  .footer-wrap{
    grid-template-columns:1fr;
    text-align:center;
    gap:20px;
  }
}

@media(max-width:700px){
  main{
    padding:10px;
  }

  section{
    padding:12px;
    border-radius:18px;
  }

  .site-header{
    padding:0 16px 34px;
  }

  .logo img{
    height:90px;
  }

  .site-link{
    font-size:12px;
    padding:8px 10px;
  }

  .hero{
    margin-top:20px;
  }

  .hero h1{
    font-size:32px;
  }

  .hero-description{
    font-size:15px;
  }

  .hero-stats{
    gap:12px;
  }

  .hero-stats div{
    min-width:70px;
  }

  .stats-bar{
    grid-template-columns:repeat(2,1fr);
  }

  .actions{
    width:100%;
  }

  .actions button{
    flex:1;
  }

  .left-panel,
  .right-panel{
    width:100%;
    max-width:100%;
    padding:12px;
  }

  .group-selector{
    grid-template-columns:repeat(4,1fr);
    gap:6px;
  }

  .group-tab{
    min-width:0;
    padding:8px 0;
  }

  .match-row,
  .group,
  .round,
  .kmatch{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .match{
    grid-template-columns:minmax(0,1fr) 34px 12px 34px minmax(0,1fr);
    gap:4px;
  }

  .match strong{
    min-width:0;
    font-size:11px;
    line-height:1.2;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .match strong:last-child{
    padding-left:6px;
  }

  .match input{
    width:34px;
    height:34px;
    padding:2px;
  }

  .match span{
    width:12px;
    height:34px;
    font-size:14px;
  }

  table{
    font-size:11px;
  }

  th,
  td{
    padding:6px 4px;
  }

  .bracket .round{
    grid-template-columns:1fr;
  }

  .kteam span{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    font-size:13px;
  }

  .champion{
    font-size:20px;
  }

  .mobile-menu-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    position:fixed;
    top:12px;
    right:12px;
    width:42px;
    height:42px;
    z-index:2000;
    border:none;
    border-radius:12px;
    background:var(--yellow);
    color:var(--ink);
    font-size:22px;
    font-weight:900;
    box-shadow:0 8px 20px rgba(0,0,0,.18);
  }

  .page-nav{
    position:fixed;
    top:60px;
    right:12px;
    left:auto;
    width:220px;
    display:none;
    flex-direction:column;
    gap:6px;
    padding:10px;
    border-radius:16px;
    background:rgba(11,16,32,.98);
    z-index:1999;
    border:none;
    backdrop-filter:blur(12px);
  }

  .page-nav.open{
    display:flex;
  }

  .page-nav a{
    width:100%;
    text-align:left;
    padding:10px 12px;
    font-size:13px;
  }
}

@media(max-width:520px){
  .stats-bar,
  .trend-grid{
    grid-template-columns:1fr;
  }

  .stat-card{
    padding:14px;
  }

  .stat-card strong{
    font-size:24px;
  }
               }
    h1,
h2,
h3,
.hero h1,
.page-nav a,
button,
.group-tab,
.stat-card strong,
.champion{
  font-family:'Montserrat',sans-serif;
}

@media(max-width:700px){

  .right-panel table{
    table-layout:fixed;
    width:100%;
    font-size:10px;
  }

  .right-panel th,
  .right-panel td{
    padding:5px 2px;
    white-space:nowrap;
  }

  .right-panel td:nth-child(2),
  .right-panel th:nth-child(2){
    max-width:90px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

    /* abrege le classement sur mobile*/
    @media(max-width:700px){

  /* Classement groupe : masquer BP et BC */
  #standings th:nth-child(5),
  #standings td:nth-child(5),
  #standings th:nth-child(6),
  #standings td:nth-child(6){
    display:none;
  }

  /* Meilleurs 3e : masquer BP et BC */
 @media(max-width:700px){
  #thirds th,
  #thirds td{
    display:table-cell;
  }
}

  .right-panel table{
    table-layout:auto;
    font-size:11px;
  }

  .right-panel th,
  .right-panel td{
    padding:6px 4px;
    white-space:nowrap;
  }

  .right-panel td:nth-child(2){
    max-width:none;
    overflow:visible;
    text-overflow:clip;
    text-align:left;
    font-weight:800;
  }
    }

    .header-badge{
  display:flex;
  align-items:center;
  gap:8px;

  background:rgba(255,195,0,.15);
  border:1px solid rgba(255,195,0,.35);

  color:#FFC300;
  text-decoration:none;
  font-weight:800;

  padding:10px 16px;
  border-radius:999px;

  transition:.25s;
}

.header-badge:hover{
  background:#FFC300;
  color:#1A1A2E;
  transform:translateY(-2px);
}

    @media(max-width:700px){



}

    .stats-bar{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

    @media(max-width:700px){
  .stats-bar{
    grid-template-columns:repeat(2,1fr);
  }
}

    .toggle-section{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:#1A1A2E;
  color:white;
  padding:16px 20px;
  font-size:16px;
}

.toggle-section:hover{
  background:#007C91;
}

.collapsible-content{
  margin-top:20px;
}

.hidden{
  display:none;
} 

    .discovery-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:24px;
}

    @media(max-width:700px){

  .discovery-grid{
    grid-template-columns:1fr;
  }

}

    

    

  

    .kteam{
  gap:4px;
    }

    .hero-stats{
  margin:1rem 0;
    }

    @media(max-width:700px){

  #standings th:nth-child(7),
  #standings td:nth-child(7),
  #thirds th:nth-child(7),
  #thirds td:nth-child(7){
    display:none;
  }

    }

    .group{
  padding:12px;
}

.match-row{
  padding:8px;
  margin-bottom:6px;
}

.kmatch{
  padding:5px;
  margin-bottom:4px;
}
    @media(max-width:700px){

  .right-panel{
    padding:10px;
    gap:10px;
  }

  .right-panel .panel-section{
    min-height:auto;
    padding:12px;
    border-radius:16px;
    overflow:hidden;
  }

  #classements h2,
  .right-panel .panel-section h2{
    font-size:18px;
    margin-bottom:8px;
  }

  #standings table,
  #thirds table{
    width:100%;
    table-layout:auto;
    font-size:11px;
  }

  #standings th,
  #standings td,
  #thirds th,
  #thirds td{
    padding:6px 3px;
    white-space:nowrap;
  }

  /* Mobile : garder uniquement l'essentiel */
  #standings th:nth-child(5),
  #standings td:nth-child(5),
  #standings th:nth-child(6),
  #standings td:nth-child(6),
  #standings th:nth-child(7),
  #standings td:nth-child(7){
    display:none;
  }



  #standings td:nth-child(2),
  #thirds td:nth-child(2){
    text-align:left;
    max-width:140px;
    overflow:hidden;
    text-overflow:ellipsis;
  }
    }

    @media(max-width:700px){

  .mobile-menu-btn{
    display:none;
  }

  .page-nav{
    position:fixed;
    top:-70px;
    left:0;
    right:0;

    width:100%;

    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;

    overflow-x:auto;
    overflow-y:hidden;

    gap:8px;
    padding:10px;

    background:rgba(11,16,32,.98);

    border-radius:0;
    border:none;

    transition:top .25s ease;

    z-index:2000;
  }

  .page-nav.show{
    top:0;
  }

  .page-nav a{
    flex:0 0 auto;
    width:auto;

    white-space:nowrap;

    padding:8px 12px;

    border-radius:0;

    text-align:center;

    font-size:12px;
  }

  .page-nav::-webkit-scrollbar{
    display:none;
  }

      
    }
    .winner-btn{
  width:100%;
  display:block;
  margin:6px 0;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:white;
  color:var(--ink);
  text-align:left;
  font-weight:900;
  box-shadow:none;
}

.winner-btn:hover{
  background:rgba(0,124,145,.08);
  color:var(--ink);
  transform:none;
}

.selected-winner{
  background:var(--yellow);
  color:#332600;
  border-color:var(--yellow);
}


.reset-ko-btn{
  width:40px;
  height:40px;

  padding:0;   /* IMPORTANT */

  display:flex;
  align-items:center;
  justify-content:center;

  border:none;
  border-radius:50%;

  background:rgba(255,255,255,.08);
  color:white;

  font-size:20px;
  cursor:pointer;

  box-shadow:none;

  transition:.2s;
}

.reset-ko-btn:hover{
  background:rgba(255,255,255,.18);
  transform:rotate(90deg);
}
    .section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
    }

  

    

    @media(max-width:700px){

  #scores .reset-ko-btn{
    flex:none;
    width:40px;
    height:40px;
  }

    }
    .competition-meta{
  margin:8px 0 0;
  color:var(--muted);
  font-size:14px;
  font-weight:700;
  text-align:left;
    }

    .match-completed{
  border:2px solid #10B981 !important;
  background:#F0FDF4;
}

.match-completed input{
  color:#10B981;
  font-weight:900;
  border-color:#10B981;
}
    
button.success{
  background:#10B981;
  color:white;
  cursor:not-allowed;
  box-shadow:none;
}

button.success:hover{
  background:#10B981;
  transform:none;
}

    .match-prediction{
  margin-top:8px;
  padding:8px 10px;
  border-radius:12px;
  background:#F8FAFC;
  border:1px dashed var(--line);
  font-size:12px;
  color:var(--muted);
  text-align:center;
}

.match-prediction strong{
  color:var(--blue);
}

.match-prediction span{
  display:block;
  margin-top:3px;
  font-weight:700;
}


.dynamic-row{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:6px;
  font-size:12px;
  font-weight:900;
}

.dynamic-positive{
  color:#16A34A;
}

.dynamic-negative{
  color:#DC2626;
}

.dynamic-neutral{
  color:#6B7280;
}



.monte-carlo-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  align-items:start;
}

.prediction-card{
  background:white;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  overflow:auto;
}

@media(max-width:900px){
  .monte-carlo-grid{
    grid-template-columns:1fr;
  }
}

.africa-summary{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.summary-box{
  background:#F8FAFC;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  text-align:center;
}

.summary-box .label{
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  text-transform:uppercase;
}

.summary-box .value{
  margin-top:6px;
  font-size:22px;
  font-weight:900;
  color:var(--blue);
}

.summary-box .sub{
  margin-top:4px;
  font-size:14px;
  font-weight:700;
}

.positive{
  color:#16A34A;
}

.negative{
  color:#DC2626;
}

.right-panel .panel-section h2{
  margin-bottom:16px;
}


.summary-calc-btn{
  margin:12px 0 16px;
  width:100%;
}
.kmatch-completed{
  border:2px solid #10B981 !important;
  background:#F0FDF4;
}

.thirds-table td:nth-child(2),
.thirds-table th:nth-child(2){
  text-align:left;
  width:auto;
  padding-left:4px;
  padding-right:4px;
}

@media(max-width:700px){
  .thirds-table{
    table-layout:fixed;
    font-size:11px;
  }

  .thirds-table th,
  .thirds-table td{
    padding:6px 3px;
  }

  .thirds-table th:nth-child(1),
  .thirds-table td:nth-child(1){
    width:28px;
  }

  .thirds-table th:nth-child(3),
  .thirds-table td:nth-child(3),
  .thirds-table th:nth-child(4),
  .thirds-table td:nth-child(4),
  .thirds-table th:nth-child(5),
  .thirds-table td:nth-child(5){
    width:42px;
  }
}

.team-finished{
  background:#ECFDF5 !important;
  color:#047857 !important;
  font-weight:900;
}

.team-finished td{
  color:#047857 !important;
}

.thirds-table{
  table-layout:fixed;
  width:100%;
}

.thirds-table th,
.thirds-table td{
  padding:6px 4px;
}

.thirds-table th:nth-child(1),
.thirds-table td:nth-child(1){
  width:28px;
}

.thirds-table th:nth-child(3),
.thirds-table td:nth-child(3),
.thirds-table th:nth-child(4),
.thirds-table td:nth-child(4),
.thirds-table th:nth-child(5),
.thirds-table td:nth-child(5){
  width:42px;
}


.q{
  color:#16a34a;
  font-weight:700;
}

.third{
  color:#d97706;
  font-weight:700;
}

.team-qualified{
  background:#ECFDF5 !important;
  color:#047857 !important;
  font-weight:900;
}

.team-qualified td{
  color:#047857 !important;
}

.kmatch-africa{
  border-left:5px solid #FFC300 !important;
  background:#FFFBEB;
}
