/* Tebak Skor Informative Frontend v3.2.0 */
:root{
  --v320-line: color-mix(in srgb,var(--c1) 18%,transparent);
  --v320-line-strong: color-mix(in srgb,var(--c1) 32%,transparent);
  --v320-panel: linear-gradient(145deg, rgba(8,31,47,.97), rgba(5,22,35,.98));
  --v320-soft: linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.015));
}
.front-home main.wrap{max-width:1280px!important;padding-left:24px!important;padding-right:24px!important}
.front-home .hero{min-height:570px!important}
.front-home .hero-panel{max-width:650px!important;padding:30px!important}

/* Event summary - informative but compact */
.event-summary{
  margin:18px 0 8px!important;
  display:grid!important;
  grid-template-columns:1.15fr 1fr 1fr auto!important;
  gap:10px!important;
  padding:10px!important;
  border:1px solid var(--v320-line)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(8,29,44,.96),rgba(5,21,34,.96))!important;
  box-shadow:0 16px 34px rgba(0,0,0,.18)!important;
}
.event-summary-item{
  min-width:0!important;
  min-height:72px!important;
  padding:12px 14px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  border-radius:14px!important;
  background:var(--v320-soft)!important;
  border:1px solid color-mix(in srgb,var(--c1) 10%,transparent)!important;
}
.event-summary-icon{
  width:38px!important;height:38px!important;flex:0 0 38px!important;
  border-radius:12px!important;display:grid!important;place-items:center!important;
  background:color-mix(in srgb,var(--c1) 9%,transparent)!important;
  border:1px solid var(--v320-line)!important;color:var(--c2)!important;font-size:16px!important;font-weight:800!important;
}
.event-summary-text{min-width:0!important}
.event-summary-text small{display:block!important;font-size:10px!important;text-transform:uppercase!important;letter-spacing:.06em!important;color:var(--muted)!important;font-weight:750!important}
.event-summary-text b{display:block!important;margin-top:4px!important;font-size:14px!important;line-height:1.25!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.event-summary-action{display:flex!important;align-items:stretch!important}
.event-summary-action a{min-width:170px!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;border-radius:14px!important;background:var(--v320-soft)!important;border:1px solid var(--v320-line)!important;color:#effbff!important;font-size:12px!important;font-weight:800!important}
.event-summary-action a:hover{border-color:var(--v320-line-strong)!important;background:linear-gradient(180deg,color-mix(in srgb,var(--c1) 12%,transparent),color-mix(in srgb,var(--c2) 5%,transparent))!important}

/* Content areas are wider, fewer boxed surfaces */
.front-home .match-section,
.front-home .prediction-form-section{
  width:100%!important;
  max-width:none!important;
}
.front-home .match-section{
  padding:26px!important;
  border-radius:24px!important;
}
.section-heading-row{align-items:flex-end!important;margin-bottom:18px!important}
.section-heading-row h2{margin:4px 0 4px!important}
.section-kicker{font-size:10px!important;letter-spacing:.08em!important}
.history-link{min-height:42px!important;padding:9px 14px!important;border-radius:999px!important}

/* One match becomes a proper informative match center */
.front-home .single-match .match-list{display:block!important;overflow:visible!important;padding:0!important}
.front-home .single-match .match-card{
  width:100%!important;max-width:none!important;min-height:190px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 270px!important;align-items:stretch!important;
  padding:0!important;border-radius:20px!important;overflow:hidden!important;
}
.front-home .single-match .match-main{
  padding:24px 26px!important;
  display:grid!important;grid-template-columns:minmax(180px,1fr) 150px minmax(180px,1fr)!important;align-items:center!important;gap:20px!important;
}
.front-home .single-match .match-team{display:flex!important;align-items:center!important;gap:16px!important;text-align:left!important;justify-content:flex-start!important}
.front-home .single-match .match-team:last-child{flex-direction:row-reverse!important;text-align:right!important}
.front-home .single-match .team-img{width:82px!important;height:82px!important;flex:0 0 82px!important}
.front-home .single-match .match-team b{font-size:20px!important;margin:0!important;line-height:1.25!important}
.front-home .single-match .match-center{display:flex!important;flex-direction:column!important;align-items:center!important;gap:10px!important}
.front-home .single-match .match-center .vs{width:52px!important;height:52px!important;border-radius:16px!important;font-size:13px!important}
.front-home .single-match .match-center small{text-align:center!important;font-size:11px!important;color:var(--c2)!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.05em!important}
.front-home .single-match .match-footer{
  margin:0!important;padding:22px!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:stretch!important;gap:12px!important;
  border-left:1px solid var(--v320-line)!important;border-top:0!important;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.01))!important;
}
.front-home .single-match .match-time{justify-content:center!important;text-align:center!important;font-size:12px!important;line-height:1.5!important}
.front-home .single-match .predict-link{width:100%!important;min-height:44px!important;justify-content:center!important;border-radius:999px!important}

/* Rules simpler and more readable */
.front-home section.rules-section{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.front-home section.rules-section::before{display:none!important}
.rules-heading{margin-bottom:12px!important}
.front-home .rules{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.front-home .rule{min-height:58px!important;padding:12px 14px!important;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,.012))!important}

/* Form is informative and wider */
.front-home .prediction-form-section{padding:28px!important;display:grid!important;grid-template-columns:320px minmax(0,1fr)!important;gap:28px!important;align-items:start!important}
.front-home .form-section-head{position:sticky!important;top:92px!important;padding:4px 0!important}
.front-home .form-section-head h2{font-size:34px!important;margin:6px 0 8px!important}
.front-home .form-section-head .sub{max-width:280px!important}
.front-home .prediction-form{width:100%!important}
.front-home .form-shell{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 16px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.front-home .form-shell > label{align-self:end!important}
.front-home .form-shell > label:nth-of-type(1),
.front-home .form-shell > input[name="user_id"],
.front-home .form-shell > label:nth-of-type(2),
.front-home .form-shell > select[name="match_id"],
.front-home .form-shell > label:nth-of-type(5),
.front-home .form-shell > input[name="ticket_code"],
.front-home .form-shell > label:nth-of-type(6),
.front-home .form-shell > input[type="file"],
.front-home .form-shell > .submit{grid-column:1/-1!important}
.front-home .score-grid{grid-column:1/-1!important;grid-template-columns:1fr 1fr!important}
.front-home .form-shell input,.front-home .form-shell select{min-height:50px!important}
.front-home .form-shell .submit{min-height:50px!important;margin-top:4px!important}

@media(max-width:1000px){
  .event-summary{grid-template-columns:1fr 1fr!important}
  .event-summary-action a{min-width:0!important}
  .front-home .single-match .match-card{grid-template-columns:1fr!important}
  .front-home .single-match .match-footer{border-left:0!important;border-top:1px solid var(--v320-line)!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important}
  .front-home .single-match .predict-link{width:auto!important;min-width:150px!important}
  .front-home .prediction-form-section{grid-template-columns:1fr!important}
  .front-home .form-section-head{position:static!important}
  .front-home .form-section-head .sub{max-width:none!important}
}
@media(max-width:768px){
  .front-home main.wrap{padding-left:12px!important;padding-right:12px!important}
  .event-summary{grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:12px!important;padding:8px!important;border-radius:16px!important}
  .event-summary-item{min-height:62px!important;padding:10px!important;gap:9px!important}
  .event-summary-icon{width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:10px!important;font-size:14px!important}
  .event-summary-text small{font-size:8.5px!important}
  .event-summary-text b{font-size:11.5px!important}
  .event-summary-action{grid-column:1/-1!important}
  .event-summary-action a{width:100%!important;min-height:42px!important}
  .front-home .match-section{padding:18px 14px!important}
  .section-heading-row{align-items:flex-start!important}
  .history-link{width:auto!important;min-height:38px!important;padding:8px 12px!important;font-size:11px!important}
  .front-home .single-match .match-main{grid-template-columns:1fr 44px 1fr!important;padding:18px 12px!important;gap:8px!important}
  .front-home .single-match .match-team,.front-home .single-match .match-team:last-child{flex-direction:column!important;text-align:center!important;gap:8px!important}
  .front-home .single-match .team-img{width:58px!important;height:58px!important;flex-basis:58px!important}
  .front-home .single-match .match-team b{font-size:13px!important}
  .front-home .single-match .match-center .vs{width:40px!important;height:40px!important;border-radius:12px!important;font-size:11px!important}
  .front-home .single-match .match-center small{font-size:9px!important}
  .front-home .single-match .match-footer{padding:12px!important;flex-direction:column!important;align-items:stretch!important}
  .front-home .single-match .predict-link{width:100%!important}
  .front-home .rules{grid-template-columns:1fr!important}
  .front-home .prediction-form-section{padding:18px 14px!important;gap:14px!important}
  .front-home .form-section-head h2{font-size:25px!important}
  .front-home .form-shell{grid-template-columns:1fr!important;gap:10px!important}
  .front-home .form-shell > *, .front-home .score-grid{grid-column:1!important}
  .front-home .score-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:430px){
  .event-summary{grid-template-columns:1fr!important}
  .event-summary-action{grid-column:auto!important}
  .front-home .score-grid{grid-template-columns:1fr!important}
}
