/* Tebak Skor Frontend Compact Premium v3.1.9 */
:root{
  --f319-line:color-mix(in srgb,var(--c1) 20%,transparent);
  --f319-line-strong:color-mix(in srgb,var(--c1) 34%,transparent);
  --f319-glass:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
  --f319-card:linear-gradient(145deg,rgba(8,31,48,.98),rgba(5,24,38,.98));
}

/* section hierarchy */
.front-home section{
  margin:18px 0!important;
  padding:24px!important;
  border-radius:22px!important;
}
.section-heading-row{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:18px!important;
}
.section-heading-row h2,.form-section-head h2{margin:6px 0 6px!important}
.section-heading-row .sub,.form-section-head .sub{margin:0!important;max-width:680px!important}
.section-kicker{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--c1) 8%,transparent)!important;
  border:1px solid var(--f319-line)!important;
  color:var(--c2)!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.09em!important;
}
.history-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:42px!important;
  padding:9px 14px!important;
  border-radius:999px!important;
  background:var(--f319-glass)!important;
  border:1px solid var(--f319-line)!important;
  color:#effbff!important;
  font-size:12px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.history-link:hover{border-color:var(--f319-line-strong)!important;transform:translateY(-1px)!important}
.history-link-icon{
  width:20px!important;height:20px!important;display:block!important;background:var(--c2)!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h10a2 2 0 0 1 2 2v16l-7-3-7 3V5a2 2 0 0 1 2-2zM8 6v10.4l4-1.7 4 1.7V6H8z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h10a2 2 0 0 1 2 2v16l-7-3-7 3V5a2 2 0 0 1 2-2zM8 6v10.4l4-1.7 4 1.7V6H8z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.history-link em{font-style:normal!important;font-size:18px!important;color:var(--c2)!important}

/* remove nested-card feeling from match area */
.match-section{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:6px 0 8px!important;
  overflow:visible!important;
}
.match-section::before{display:none!important}
.match-section .match-slider-wrap{margin-top:4px!important}
.match-section.single-match .match-list{
  display:block!important;
  overflow:visible!important;
  padding:0!important;
}
.match-section.single-match .match-card{
  width:100%!important;
  max-width:none!important;
  min-height:220px!important;
  padding:24px 26px!important;
  border-radius:24px!important;
  background:var(--f319-card)!important;
  border:1px solid var(--f319-line)!important;
  box-shadow:0 20px 46px rgba(0,0,0,.20)!important;
}
.match-main{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr)!important;
  align-items:center!important;
  gap:24px!important;
}
.match-team{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:16px!important;
  min-width:0!important;
}
.match-team b{
  margin:0!important;
  font-size:22px!important;
  line-height:1.2!important;
  color:#fff!important;
  text-align:center!important;
}
.match-team .team-img{
  width:86px!important;
  height:86px!important;
  flex:0 0 86px!important;
  border-radius:22px!important;
}
.match-center{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
}
.match-center .vs{
  width:58px!important;height:44px!important;border-radius:14px!important;
  display:grid!important;place-items:center!important;
  background:var(--f319-glass)!important;border:1px solid var(--f319-line)!important;
  color:#fff!important;font-size:13px!important;font-weight:850!important;letter-spacing:.08em!important;
}
.match-center small{
  max-width:140px!important;
  color:var(--c2)!important;
  font-size:11px!important;
  line-height:1.45!important;
  font-weight:800!important;
  text-transform:uppercase!important;
  text-align:center!important;
  letter-spacing:.045em!important;
}
.match-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:22px!important;
  padding-top:16px!important;
  border-top:1px solid color-mix(in srgb,var(--c1) 12%,transparent)!important;
}
.match-time{
  display:flex!important;align-items:center!important;gap:9px!important;
  color:var(--muted)!important;font-size:12px!important;font-weight:650!important;
}
.calendar-icon{
  width:18px!important;height:18px!important;background:var(--c2)!important;display:block!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v2h6V2h2v2h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2V2zm12 8H5v10h14V10z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2h2v2h6V2h2v2h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2V2zm12 8H5v10h14V10z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.predict-link{
  min-height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  padding:9px 14px!important;border-radius:999px!important;background:var(--f319-glass)!important;border:1px solid var(--f319-line)!important;
  color:#effbff!important;font-size:12px!important;font-weight:800!important;
}
.predict-link:hover{border-color:var(--f319-line-strong)!important;transform:translateY(-1px)!important}
.empty-match-state{padding:22px!important;border-radius:18px!important;border:1px dashed var(--f319-line)!important;color:var(--muted)!important;text-align:center!important}

/* multi match stays compact carousel */
.match-section.multi-match .match-card{
  flex:0 0 360px!important;
  padding:18px!important;
  border-radius:20px!important;
}
.match-section.multi-match .match-main{
  grid-template-columns:1fr 58px 1fr!important;
  gap:10px!important;
}
.match-section.multi-match .match-team{flex-direction:column!important;gap:8px!important}
.match-section.multi-match .match-team b{font-size:14px!important}
.match-section.multi-match .match-team .team-img{width:66px!important;height:66px!important;flex-basis:66px!important;border-radius:18px!important}
.match-section.multi-match .match-center{gap:7px!important}
.match-section.multi-match .match-center small{font-size:9px!important;max-width:100px!important}
.match-section.multi-match .match-footer{margin-top:14px!important;padding-top:12px!important;align-items:flex-start!important;flex-direction:column!important}
.match-section.multi-match .predict-link{width:100%!important}

/* rules: rows, not card-inside-card */
.front-home section:not(.match-section):not(.prediction-form-section){background:transparent!important;border:0!important;box-shadow:none!important;padding:14px 0!important;overflow:visible!important}
.front-home section:not(.match-section):not(.prediction-form-section)::before{display:none!important}
.rules{gap:10px!important}
.rule{
  min-height:58px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.025)!important;
  border:1px solid color-mix(in srgb,var(--c1) 12%,transparent)!important;
  box-shadow:none!important;
}
.rule .num{flex:0 0 30px!important}

/* form is the one strong panel */
.prediction-form-section{
  max-width:860px!important;
  margin:26px auto 22px!important;
  padding:26px!important;
  background:var(--f319-card)!important;
  border:1px solid var(--f319-line)!important;
  box-shadow:0 24px 56px rgba(0,0,0,.24)!important;
}
.form-section-head{margin-bottom:18px!important}
.prediction-form{display:block!important}
.form-shell{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
.form-shell>label,.form-shell>input,.form-shell>select,.form-shell>.submit,.form-shell>div:not(.score-grid){grid-column:1/-1!important}
.form-shell>.score-grid{grid-column:1/-1!important}
.prediction-form input,.prediction-form select{
  min-height:50px!important;
  border-radius:13px!important;
  background:#061522!important;
  border:1px solid var(--f319-line)!important;
}
.prediction-form .submit{
  margin-top:4px!important;
  min-height:50px!important;
  border-radius:999px!important;
}

/* mobile */
@media(max-width:768px){
  .front-home section{margin:14px 0!important}
  .section-heading-row{align-items:flex-start!important;flex-direction:column!important;gap:12px!important;margin-bottom:14px!important}
  .history-link{min-height:38px!important;padding:8px 12px!important;font-size:11.5px!important}
  .match-section{padding:4px 0!important}
  .match-section.single-match .match-card{
    min-height:0!important;padding:18px 14px!important;border-radius:20px!important;
  }
  .match-main{grid-template-columns:1fr 58px 1fr!important;gap:8px!important}
  .match-team{flex-direction:column!important;gap:9px!important}
  .match-team b{font-size:13px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
  .match-team .team-img{width:60px!important;height:60px!important;flex-basis:60px!important;border-radius:16px!important}
  .match-center .vs{width:46px!important;height:38px!important;border-radius:12px!important;font-size:11px!important}
  .match-center small{font-size:9px!important;line-height:1.35!important;max-width:80px!important}
  .match-footer{margin-top:16px!important;padding-top:13px!important;flex-direction:column!important;align-items:stretch!important}
  .match-time{justify-content:center!important;font-size:11px!important;text-align:center!important}
  .predict-link{width:100%!important;min-height:42px!important}
  .match-section.multi-match .match-card{flex-basis:84vw!important}
  .rules{grid-template-columns:1fr!important}
  .rule{min-height:52px!important;padding:11px!important;font-size:12.5px!important}
  .prediction-form-section{margin:18px 0!important;padding:18px 14px!important;border-radius:20px!important}
  .form-shell{grid-template-columns:1fr!important;gap:11px!important}
  .score-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
}
@media(max-width:420px){
  .score-grid{grid-template-columns:1fr!important}
  .match-main{grid-template-columns:1fr 46px 1fr!important}
  .match-team .team-img{width:54px!important;height:54px!important;flex-basis:54px!important}
  .match-team b{font-size:12px!important}
  .match-center .vs{width:40px!important;height:34px!important}
}

/* History page compact alignment */
.front-history .hero{margin-bottom:16px!important}
.front-history .match-card{background:var(--f319-card)!important;border:1px solid var(--f319-line)!important;box-shadow:0 20px 46px rgba(0,0,0,.20)!important}
.front-history .winner-list{padding:14px 18px 18px!important}
.front-history .winner-row{background:rgba(255,255,255,.025)!important;box-shadow:none!important}
@media(max-width:768px){.front-history .winner-row{grid-template-columns:40px 1fr!important}.front-history .pred-score,.front-history .prize,.front-history .note{grid-column:2!important;text-align:left!important}.front-history .winner-table-head{display:none!important}}
