:root{
  --border:rgba(255,255,255,.10);
  --text:#e9ecff;
  --muted:rgba(233,236,255,.70);

  --accent:#ffcc3d;
  --green:#3ddc97;
  --blue:#7aa7ff;

  --shadow: 0 18px 55px rgba(0,0,0,.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 560px at 15% 5%, rgba(122,167,255,.18), transparent 60%),
    radial-gradient(900px 560px at 80% 20%, rgba(61,220,151,.14), transparent 60%),
    radial-gradient(760px 520px at 65% 95%, rgba(255,204,61,.12), transparent 60%),
    linear-gradient(180deg, #060817, #0b0f22);
  color: var(--text);
}

.wrap{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(10,12,25,.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.bar-grid{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding: 14px 0;
  gap: 12px;
}

.bar-title{
  font-weight: 950;
  letter-spacing: .2px;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  text-decoration:none;
  color: var(--text);
  width: fit-content;
}
.chip:hover{ filter: brightness(1.06); }
.home{ justify-self:start; }
.follow{ justify-self:end; }
.icon{ width: 18px; height: 18px; }

.hero{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items: stretch;
}
.hero__left{
  padding: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero__left h1{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: .2px;
}
.hero__badges{ display:flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
}

.hero__right{
  position: relative;
  padding: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wc-image{
  height: 200px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(255,204,61,.18), rgba(122,167,255,.12)),
    url("https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?auto=format&fit=crop&w=1400&q=70");
  background-size: cover;
  background-position: center;
}
.mascot{
  position:absolute;
  right: -18px;
  bottom: -14px;
  width: 128px;
  height: 128px;
  opacity: .95;
  background:
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/5/5e/Cricket_ball.svg/512px-Cricket_ball.svg.png");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(10deg);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}

.panel{
  margin-top: 14px;
  padding: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.panel--predict{
  padding: 20px;
}
.panel h2{
  margin: 0 0 6px;
  font-size: 18px;
}
.muted{ color: var(--muted); }
.small{ font-size: 13px; }

.panel-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-actions{ display:flex; gap: 10px; }

.form{ margin-top: 10px; }
.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid--4{
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.form-grid .full{ grid-column: 1 / -1; }

label span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

select,.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline:none;
}
select:focus,.input:focus{
  border-color: rgba(255,204,61,.55);
  box-shadow: 0 0 0 4px rgba(255,204,61,.12);
}

.hint{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.hint--ok{ color: rgba(61,220,151,.95); }
.hint--warn{ color: rgba(255,204,61,.95); }

.form-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn{
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn:hover{ filter: brightness(1.06); }
.btn.primary{
  border-color: rgba(255,204,61,.35);
  background: linear-gradient(135deg, rgba(255,204,61,.32), rgba(255,204,61,.14));
}

.notice{
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: rgba(233,236,255,.92);
}
.notice--error{
  border-color: rgba(255,90,122,.40);
  background: rgba(255,90,122,.10);
}
.notice--info{
  border-color: rgba(122,167,255,.35);
  background: rgba(122,167,255,.10);
}
.notice code{
  background: rgba(0,0,0,.18);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
}

.result{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.result__head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.result__title{
  font-weight: 950;
  letter-spacing: .2px;
}

.match-head{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap: 10px;
  margin-top: 8px;
}
.teamline{
  display:flex;
  align-items:center;
  gap: 10px;
}
.teamline--right{ justify-content:flex-end; text-align:right; }
.flag{
  width: 38px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  object-fit: cover;
  background: rgba(255,255,255,.06);
}
.teamname{ font-weight: 950; }
.teamsub{ font-size: 12px; }
.vs{
  font-weight: 1000;
  color: rgba(255,255,255,.75);
  letter-spacing: 2px;
}

.winner{
  margin: 10px 0 12px;
  font-weight: 950;
  font-size: 16px;
}
.winner strong{ color: var(--accent); }

.bars{ display:grid; gap: 12px; margin-top: 6px; }
.bar-meta{ display:flex; justify-content:space-between; color: rgba(233,236,255,.92); font-weight: 850; }
.track{
  margin-top: 6px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.07);
  overflow:hidden;
}
.fill{
  height: 100%;
  width: 0%;
  transition: width 550ms cubic-bezier(.2,.8,.2,1);
}
.fill.a{ background: linear-gradient(90deg, rgba(61,220,151,.9), rgba(61,220,151,.45)); }
.fill.b{ background: linear-gradient(90deg, rgba(122,167,255,.9), rgba(122,167,255,.45)); }

.raw{
  margin-top: 12px;
  color: var(--muted);
}
.raw pre{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  overflow:auto;
  color: rgba(233,236,255,.9);
}

.bullets{ margin: 10px 0 0; color: var(--muted); padding-left: 18px; }
.bullets li{ margin: 8px 0; }

.site-footer{
  padding: 18px 0 26px;
  color: var(--muted);
  text-align:center;
}

.footer-link{ color: rgba(255,255,255,.86); text-decoration:none; }
.footer-link:hover{ text-decoration:underline; }

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .form-grid--4{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .form-grid--4{ grid-template-columns: 1fr; }
}
