#achievements-spotlight {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 1rem;
}

#profile-section {
  padding: 1rem;
  text-align: center;
}
#profile-section .username {
  font-size: 1.2rem;
  font-weight: 600;
}
#profile-section .joined {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================
   Home: How to Play Bar (safe)
   Place in: page.css (recommended)
   ========================================= */

#home .howto-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  /* This aligns perfectly with the grid padding */
  margin: 16px 16px 0;
  padding: 12px 14px;

  border-radius: 14px;
  text-decoration:none;
  color:#e7eefb;

  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(0,229,255,.14), rgba(34,197,94,.10));
  box-shadow: 0 12px 30px rgba(0,0,0,.25);

  /* prevent layout shifts */
  width: calc(100% - 32px);
}

#home .howto-left{ min-width:0; }
#home .howto-title{
  font-weight: 950;
  font-size: 1.02rem;
  line-height: 1.15;
  margin-bottom: 2px;
}
#home .howto-sub{
  font-weight: 650;
  color:#bfe8ff;
  font-size:.86rem;
  opacity:.95;

  /* avoid long text breaking layout */
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#home .howto-cta{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:950;

  color:#03150e;
  background:#00f5a5;
  padding:8px 12px;
  border-radius:999px;
  flex:0 0 auto;
}

#home .howto-bar:hover{ transform: translateY(-1px); }
#home .howto-bar:focus{ outline: 2px solid #00f5a5; outline-offset: 2px; }

@media (max-width: 640px){
  #home .howto-bar{
    margin: 12px 12px 0;
    width: calc(100% - 24px);
  }
  #home .howto-sub{ display:none; }
}

.sv-digest-card{
  background: rgba(15,23,42,.88);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.sv-digest-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.sv-digest-league{font-weight:800;font-size:.85rem;color:#dbeafe}
.sv-digest-badge{font-size:.72rem;font-weight:900;padding:3px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.18)}
.sv-upcoming{background:rgba(56,189,248,.12);border-color:rgba(56,189,248,.35)}
.sv-live{background:rgba(34,197,94,.14);border-color:rgba(34,197,94,.35)}
.sv-final{background:rgba(148,163,184,.14);border-color:rgba(148,163,184,.35)}
.sv-digest-title{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin:6px 0 8px}
.sv-digest-team{font-weight:900}
.sv-digest-vs{opacity:.7;font-weight:800}
.sv-digest-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#cbd5f5;font-size:.85rem}
.sv-digest-actions{display:flex;gap:8px;margin-top:10px}
.sv-digest-btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:7px 10px;border-radius:10px;
  border:1px solid rgba(0,229,255,.35);
  background:rgba(0,229,255,.12);
  color:#e7eefb;text-decoration:none;font-weight:800;font-size:.85rem;
}
.sv-digest-btn.ghost{background:rgba(15,23,42,.65);border-color:rgba(255,255,255,.15)}
.sv-digest-score{display:flex;gap:8px;justify-content:center;font-weight:900;font-size:1.2rem;margin:6px 0 2px}
.sv-digest-loading,.sv-digest-empty,.sv-digest-error{padding:10px;color:#cbd5f5}
