* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f4f6fb;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1f2937;
  padding: 40px 16px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  margin-top: 8vh;
  text-align: center;
}

.wide-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 32px;
  width: 100%;
  max-width: 900px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.link-button {
  border: none;
  background: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-bottom: 6px;
  display: block;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.subject-card {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 12px;
  padding: 32px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.subject-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
}

.scores-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.scores-table th,
.scores-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eef0f4;
}

.scores-table th {
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.warn {
  color: #dc2626;
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.subtitle {
  color: #6b7280;
  margin-bottom: 24px;
  font-size: 14px;
}

#googleButton {
  display: flex;
  justify-content: center;
}

.error {
  margin-top: 16px;
  color: #dc2626;
  font-size: 13px;
}

.secondary {
  margin-top: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.secondary:hover {
  background: #f3f4f6;
}
