.lines-block,
.question .scored-answer-panel,
.scheme-table {
  background:
    radial-gradient(
      120% 72% at 50% 0%,
      rgba(255, 255, 255, 0.065) 0%,
      rgba(255, 255, 255, 0.018) 38%,
      transparent 68%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.042),
      rgba(255, 255, 255, 0.01)
    ),
    rgba(8, 14, 26, 0.28);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.lines-block:hover,
.question .scored-answer-panel:hover,
.scheme-table:hover {
  background-color: rgba(8, 14, 26, 0.33);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.mark-scheme-guidance {
  margin: 0;
  padding: 0.8rem 0.95rem;
  color: var(--text);
  background: rgba(8, 14, 26, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.scheme-table {
  overflow-x: auto;
}

.scheme-row {
  min-width: 48rem;
  grid-template-columns:
    minmax(10rem, 1.1fr)
    minmax(8rem, 0.68fr)
    minmax(18rem, 2fr);
}

.scheme-technique,
.scheme-analysis {
  border-left: 1px solid var(--border);
  padding-left: 12px;
}

@media (min-width: 769px) {
  html {
    zoom: 1.5;
  }

  .lines-block,
  .question .scored-answer-panel,
  .scheme-table {
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
}

@media (max-width: 768px) {
  .scheme-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .scheme-header {
    display: none;
  }

  .scheme-cell {
    padding: 0;
  }

  .scheme-technique,
  .scheme-analysis {
    border-left: 0;
    padding-left: 0;
  }

  .scheme-technique {
    color: var(--accent);
    font-weight: 700;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lines-block,
  .question .scored-answer-panel,
  .scheme-table {
    transition: none;
  }
}

/* English: Balanced & Sophisticated red palette. */
:root {
  --bg: #111827;
  --panel: rgba(55, 65, 81, 0.46);
  --text: #eceff1;
  --muted: #c9d0d7;
  --border: rgba(211, 47, 47, 0.38);
  --accent: #d32f2f;
}

body {
  background:
    linear-gradient(rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.9)),
    url("/media/subject-english.jpg") center / cover fixed;
}

.home-link,
.qualification-option.selected,
.scheme-technique {
  color: #ff6b6b;
}

.qualification-option.selected,
.scheme-header {
  background: rgba(211, 47, 47, 0.16);
}

select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.home-link:focus-visible {
  outline: 2px solid #ff5252;
  outline-offset: 2px;
}

.lines-block,
.question .scored-answer-panel,
.scheme-table {
  border-color: rgba(211, 47, 47, 0.24);
  background:
    radial-gradient(120% 72% at 50% 0%, rgba(255, 82, 82, 0.09), transparent 55%),
    linear-gradient(180deg, rgba(55, 65, 81, 0.46), rgba(17, 24, 39, 0.42));
  box-shadow:
    0 8px 32px rgba(15, 5, 8, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lines-block:hover,
.question .scored-answer-panel:hover,
.scheme-table:hover {
  border-color: rgba(255, 82, 82, 0.4);
  background-color: rgba(55, 65, 81, 0.5);
}

/* Keep English typography consistent with the rest of Rishi Subjects. */
body,
body * {
  font-family: Inter, sans-serif !important;
}
