* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #151d31;
  --panel-2: #1b2740;
  --text: #f4f7ff;
  --muted: #9ba8c2;
  --accent: #8b9cff;
  --accent-2: #b9c3ff;
}
body {
  margin: 0;
  min-height: 100vh;
  padding: 40px 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at top, #1b2850 0%, var(--bg) 55%);
}
.app { width: 100%; max-width: 620px; margin: 0 auto; }
.top { margin: 8px 0 26px; }
.eyebrow { color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: 2.4px; }
h1 { margin: 9px 0 7px; font-size: clamp(30px, 7vw, 42px); letter-spacing: -1.6px; }
.subtitle { margin: 0; color: var(--muted); font-size: 15px; }
.summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border: 1px solid #344363; border-radius: 20px;
  background: linear-gradient(120deg, #28375d, #19243d); margin-bottom: 28px;
  box-shadow: 0 16px 40px #0003;
}
.summary-label { display: block; color: #c0cbea; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.summary strong { display: block; margin-top: 4px; font-size: 38px; line-height: 1.1; }
.summary-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #ffffff16; color: #d5dcff; font-size: 25px; }
.roster { padding: 22px; border: 1px solid #26334e; border-radius: 20px; background: #111a2cdd; }
.roster-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
h2 { margin: 0; font-size: 17px; }
.roster-heading span { color: var(--muted); font-size: 12px; }
.student-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.student {
  display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 12px;
  min-height: 128px; padding: 13px; border-radius: 14px;
  background: var(--panel); border: 1px solid #26334e;
}
.student-info { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.avatar {
  display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px;
  background: #293758; color: #dce2ff; font-size: 13px; font-weight: 800;
}
.name { font-weight: 800; font-size: 15px; letter-spacing: .5px; }
.points { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.add-btn {
  width: 100%; min-width: 0; border: 0; border-radius: 11px; padding: 10px 8px;
  background: var(--accent); color: #11182c; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: transform .12s, background .12s;
}
.add-btn:hover { background: #aab5ff; }
.add-btn:active { transform: scale(.96); }
.add-btn:focus-visible { outline: 3px solid white; outline-offset: 3px; }
footer { margin: 18px 4px 0; text-align: center; color: #8491ac; font-size: 11px; }
@media (max-width: 520px) {
  body { padding: 28px 13px; }
  .roster { padding: 16px 12px; }
  .student-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student { min-height: 122px; padding: 11px; }
  .add-btn { padding: 10px 6px; font-size: 12px; }
}
