:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --shadow: 0 10px 25px rgba(15,23,42,.08);
  --shadow2: 0 6px 16px rgba(15,23,42,.10);
  --primary:#0b5ea8;
  --primary2:#0f78d6;
  --radius:14px;
  --t:.22s ease;
}

*{ box-sizing:border-box; margin:0; padding:0; }
body{
  font-family:Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* TOP BAR */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background: linear-gradient(135deg, var(--primary), #084b86);
  box-shadow: var(--shadow2);
}
.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  cursor:pointer;
  user-select:none;
}
.brand img{
  width:56px;
  height:56px;
  border-radius:12px;
  background: transparent;
  padding:0;
  object-fit: cover;
  object-position: center;
  display:block;
}
.brand .title{
  color:#fff;
  font-weight:800;
  letter-spacing:.2px;
  font-size: 1.1rem;
  white-space:nowrap;
}
.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn{
  border:none;
  cursor:pointer;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight:700;
  transition: var(--t);
  display:inline-flex;
  align-items:center;
  gap:8px;
  line-height:1;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }
.btn-ghost{
  background: rgba(255,255,255,.14);
  color:#fff;
}
.btn-ghost:hover{ background: rgba(255,255,255,.22); }
.icon-btn{
  width:42px;
  height:42px;
  justify-content:center;
  padding:0;
}

/* LAYOUT */
main{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 14px;
}
.card h2{
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.subtle{ color:var(--muted); font-size:.95rem; }

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* buttons like /scores */
.btn-form{
  border:none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight:800;
  cursor:pointer;
  transition: var(--t);
  white-space:nowrap;
}
.btn-form.primary{
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  color:#fff;
}
.btn-form.primary:hover{ filter: brightness(1.04); }
.btn-form.secondary{
  background: #eef6ff;
  color: var(--primary);
  border:1px solid rgba(15,120,214,.25);
}
.btn-form.secondary:hover{ background:#e6f1ff; }

/* title line */
.section-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

/* DRAWER */
.overlay{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.48);
  display:none;
  z-index:60;
}
.drawer{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(86vw, 340px);
  background:#fff;
  border-left:1px solid var(--border);
  box-shadow: var(--shadow2);
  transform: translateX(110%);
  transition: var(--t);
  z-index:70;
  display:flex;
  flex-direction:column;
}
.drawer.open{ transform: translateX(0); }
.overlay.open{ display:block; }

.drawer-head{
  padding: 14px 14px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.drawer-head strong{ font-size:1.05rem; }
.drawer-body{
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.menu-item{
  width:100%;
  text-align:left;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid transparent;
  background:#fff;
  cursor:pointer;
  font-weight:900;
  transition: var(--t);
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: var(--text);
  text-decoration:none;
}
.menu-item:hover{
  background:#f8fafc;
  border-color:#eef2f7;
}

@media (max-width: 820px){
  .topbar-inner{ padding: 10px 12px; }
  .brand img{ width:52px; height:52px; }
  .brand .title{ font-size: 1.05rem; }
  .btn-form{ padding: 12px 12px; }
}
@media (max-width: 420px){
  .brand img{ width:50px; height:50px; }
  .brand .title{ font-size: 1rem; }
  .icon-btn{ width:40px; height:40px; }
}
