/* ===========================
   ABZ Daily Spark — Dark Studio Theme
   =========================== */

/* scoped reset */
.br_app *,
.br_app *::before,
.br_app *::after {
  box-sizing: border-box;
}

/* TOKENS */
.br_app {
  --br-bg-outer:
    radial-gradient(circle at 0% 0%, rgba(96, 165, 250, 0.16) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.16) 0, transparent 55%),
    linear-gradient(135deg, #020617, #020617 35%, #030712 100%);
  --br-card-bg: rgba(15, 23, 42, 0.96);
  --br-card-bg-soft: rgba(17, 24, 39, 0.95);

  --br-accent: #fb7185;       /* soft rose */
  --br-accent-soft: #fda4af;
  --br-teal: #22c6b9;
  --br-mango: #facc15;

  --br-ink: #e5e7eb;
  --br-muted: #9ca3af;
  --br-border: rgba(148, 163, 184, 0.25);

  --br-pill-bg: rgba(251, 113, 133, 0.14);
  --br-pill-skill-bg: rgba(34, 197, 143, 0.12);
  --br-pill-std-bg: rgba(234, 179, 8, 0.14);

  --br-shadow-card: 0 22px 60px rgba(15, 23, 42, 0.65);

  /* Use Poppins first, then fall back to system stack */
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--br-bg-outer);
  color: var(--br-ink);
}

/* center + scroll if needed */
/* center + scroll if needed */
.br_shell {
  /* main box ~90% of the background container */
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;

  margin-inline: auto;
  overflow: auto;
}

/* HEADER */
.br-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.br-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.br-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: conic-gradient(from 200deg, #22c6b9, #fb7185, #facc15, #22c6b9);
  color: #020617;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
}

.br-brand-text h1 {
  margin: 0 0 2px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.br-brand-text p {
  margin: 0;
  font-size: 12px;
  color: var(--br-muted);
}

.br-subbrand {
  color: var(--br-accent);
  font-weight: 600;
}

.br-brand-link {
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--br-muted);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

/* BANNER */
.br-banner {
  border-radius: 14px;
  padding: 10px 14px;
  border: 1px dashed rgba(250, 204, 21, 0.7);
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.12), rgba(15, 23, 42, 0.9));
  color: #eab308;
  margin-bottom: 14px;
  font-size: 13px;
}
.br-banner code {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
  color: #fde68a;
}

/* SCREENS */
.br-screen {
  display: none;
}
.br-screen.br-active {
  display: block;
  animation: br-fade-in 0.3s ease;
}

@keyframes br-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CARDS */
.br-card {
  position: relative;
  background: var(--br-card-bg);
  border-radius: 24px;
  border: 1px solid var(--br-border);
  box-shadow: var(--br-shadow-card);
  padding: 20px 20px 22px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.br-card-head {
  margin-bottom: 10px;
}

.br-title-main {
  margin: 0 0 4px;
  font-size: 22px;
}

/* hero card title slightly bigger */
.br-hero-card .br-title-main {
  font-size: 24px;
}

.br-text-muted {
  color: var(--br-muted);
}

.br-text-small {
  font-size: 12px;
}

/* HERO + OLD START LAYOUT NEUTRALIZED ON NEW SCREEN */
.br-hero-card {
  padding-bottom: 24px;
}

.br-hero {
  margin: 6px 0 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
}
.br-hero img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* generic layout helpers */
.br-grid-two {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.br-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.br-row-end {
  justify-content: flex-end;
}

.br-row-between {
  justify-content: space-between;
}

.br-row-wrap {
  flex-wrap: wrap;
}

.br-gap {
  gap: 10px;
}

.br-group {
  margin-top: 8px;
  margin-bottom: 6px;
}

/* FORM PARTS */
.br-label {
  display: block;
  color: var(--br-muted);
  margin-bottom: 4px;
}

.br-input,
textarea.br-input,
select.br-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(75, 85, 99, 0.85);
  background: rgba(15, 23, 42, 0.9);
  color: var(--br-ink);
  font-size: 14px;
  outline: none;
}
.br-input::placeholder {
  color: #6b7280;
}
.br-input:focus {
  border-color: var(--br-accent-soft);
  box-shadow: 0 0 0 2px rgba(248, 113, 150, 0.35);
}

.br-input-mini {
  width: auto;
  padding-inline: 10px;
}

.br-help {
  font-size: 11px;
  color: var(--br-muted);
  margin-top: 2px;
}

.br-help-inline {
  margin-top: 4px;
}

.br-warn {
  font-size: 12px;
  color: #fca5a5;
  margin-top: 4px;
}

/* CHIPS & PILLS */
.br-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 12px;
}

.br-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

.br-chip-pill {
  background: var(--br-pill-bg);
  color: #fecaca;
  font-weight: 700;
  border-color: transparent;
}

.br-chip-soft {
  background: rgba(15, 23, 42, 0.8);
  color: var(--br-muted);
}

/* Pills used in meta */
.br-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--br-muted);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.br-pill-soft {
  background: var(--br-pill-bg);
  border: 1px solid rgba(248, 113, 150, 0.9);
  color: #fee2e2;
  font-weight: 700;
}

/* grade selector */
.br-grade-selector {
  display: inline-flex;
  gap: 8px;
  margin-top: 2px;
}

.br-chip-grade {
  min-width: 38px;
  justify-content: center;
  cursor: pointer;
}

.br-chip-grade:hover {
background-color: #a37b81;
}

.br-chip-grade-active {
  background: linear-gradient(135deg, #fb7185, #facc15);
  color: #020617;
  border-color: transparent;
}

.br-chip-grade-disabled {
  background: rgba(31, 41, 55, 0.9);
  color: #6b7280;
  opacity: 0.8;
  cursor: not-allowed;
}

/* BUTTONS */
.br-btn {
  --px: 18px;
  --py: 11px;
  padding: var(--py) var(--px);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--br-ink);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.br-btn:hover {
  background: rgba(30, 64, 175, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.br-btn-primary {
  background: linear-gradient(135deg, var(--br-accent), var(--br-accent-soft));
  color: #111827;
  border-color: transparent;
}
.br-btn-primary:hover {
  filter: brightness(1.05);
}

.br-btn-ghost {
  background: transparent;
  color: var(--br-muted);
  box-shadow: none;
}

.br-btn-small {
  --py: 5px;
  --px: 10px;
  font-size: 12px;
}

/* MODE SCREEN */
.br-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 16px;
}

.br-mode-card {
  position: relative;
  display: block;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, rgba(248, 113, 150, 0.18), rgba(15, 23, 42, 0.96));
  cursor: pointer;
}
.br-mode-card:nth-child(2) {
  background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.18), rgba(15, 23, 42, 0.96));
}
.br-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.br-mode-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.br-mode-top {
  display: flex;
  gap: 10px;
  align-items: center;
}

.br-mode-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.9);
  color: #f9a8d4;
  font-weight: 800;
}

.br-mode-title {
  font-weight: 800;
  font-size: 1.5rem;
}
.br-mode-desc {
  font-size: 1.2rem;
  color: var(--br-muted);
}

#btnFinishNow{
    font-size: .9rem;
    background-color: rgb(208, 208, 208);
    color: #333;
}
.br-mode-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.br-mode-label {
  font-size: 13px;
  color: var(--br-muted);
}

.br-mode-hint {
  font-size: 12px;
  color: var(--br-teal);
}

.br-mode-card:has(input:checked) {
  outline: 2px solid var(--br-accent);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

/* SKILLS */
.br-skill-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.br-skill-card {
  position: relative;
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.18), rgba(15, 23, 42, 0.98));
  cursor: pointer;
}
.br-skill-card:nth-child(2n) {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.98));
}
.br-skill-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.br-skill-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.br-skill-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.9);
}

.br-skill-title {
  font-weight: 800;
  font-size: 1rem;
}
.br-skill-desc {
  font-size: .9rem;
  color: var(--br-muted);
}

.br-skill-card:has(input:checked) {
  outline: 2px solid rgba(248, 113, 150, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
}

/* QUESTION VIEW */
.br-q-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.br-q-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.br-q-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* passage + options */
.br-passage {
  margin: 10px 0 8px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e5e7eb;
  font-size: 1.5rem;
}

.br-q-prompt {
  margin: 10px 0 14px;
}

.br-q-form {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.br-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
}
.br-opt input {
  margin-top: 3px;
  accent-color: var(--br-accent);
}

/* FEEDBACK / STATES */
.br-feedback {
  min-height: 24px;
  margin: 8px 0;
  font-weight: 700;
  font-size: 13px;
}
.br-feedback.br-ok {
  color: #4ade80;
}
.br-feedback.br-no {
  color: #fca5a5;
}

.br-shake {
  animation: br-shake 0.35s ease;
}
@keyframes br-shake {
  10% { transform: translateX(-2px); }
  30% { transform: translateX(3px); }
  50% { transform: translateX(-2px); }
  70% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

.br-dull {
  filter: saturate(0.8) contrast(0.95);
}

/* CELEBRATE: replace question block entirely */
#qCard.br-celebrating #qBody {
  display: none !important;
}
#qCard.br-celebrating #celebratePanel {
  display: grid !important;
}

.br-celebrate {
  display: none;
  place-items: center;
  text-align: center;
  gap: 14px;
}
.br-celebrate img {
  width: 440px;
  max-width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--br-shadow-card);
}

#btnNextFromCelebrate{
    font-size: 1.1rem;
}

/* RESULTS */
.br-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.br-cardlet {
  background: var(--br-card-bg-soft);
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.br-cardlet .br-kv {
  font-size: 13px;
}
.br-cardlet .br-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(30, 64, 175, 0.4);
  margin-right: 4px;
}

.br-results {
  display: grid;
  gap: 12px;
}
.br-result-item {
  background: var(--br-card-bg-soft);
  border-radius: 16px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(55, 65, 81, 0.9);
}
.br-result-item h4 {
  margin: 0;
}
.br-std {
  font-size: 12px;
  color: #22c55e;
}
.br-block {
  margin: 8px 0;
}
.br-answer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.br-answer-tag {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(30, 64, 175, 0.5);
}
.br-answer-tag.br-answer-correct {
  background: rgba(22, 163, 74, 0.4);
  border: 1px solid rgba(74, 222, 128, 0.6);
}

/* PRINT HEADER (for in-page print) */
.br-print-header {
  display: none;
}

/* EMAIL INLINE */
.br-email-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ===========================
   START SCREEN 2.0
   =========================== */

.br-start-card {
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.25) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.2) 0, transparent 55%),
    rgba(15, 23, 42, 0.96);
}

/* top strip */
.br-start-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(31, 41, 55, 1);
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.18), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(16px);
}

.br-start-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.br-start-strip-text {
  font-size: 13px;
  color: var(--br-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.br-start-strip-right {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.br-tag-chip {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--br-muted);
}

/* main grid */
.br-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px 18px 20px;
  align-items: stretch;
}

.br-start-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.br-start-title {
  margin: 0;
  font-size: 1.8rem !important;
  letter-spacing: -0.02em;
}

.br-start-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--br-muted);
}

/* steps row */
.br-start-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.br-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  font-size: 12px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--br-muted);
}

.br-step-pill span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a37b81, #e1cf87);
  color: #020617;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

/* form block */
.br-start-form {
  margin-top: 4px;
  padding: 10px 12px 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(248, 113, 150, 0.55);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.95);
}

.br-start-btn {
  width: 100%;
  margin-top: 6px;
}

/* hero side */
.br-start-right {
  display: flex;
  align-items: stretch;
}

.br-hero-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  background: #020617;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.95);
}

.br-hero-frame img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}

.br-hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px 12px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.96), transparent);
  color: #e5e7eb;
}

.br-hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.br-hero-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.br-hero-pill-soft {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.7);
}

.br-hero-caption {
  font-size: 12px;
  margin: 0;
  opacity: 0.9;
}

/* neutralize old layout bits on this screen */
.br-start-layout,
.br-hero-card,
.br-hero {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}

/* ---------- Skill Refill Modal ---------- */

.br-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.br-modal {
  width: 100%;
  max-width: 480px;
  background: var(--br-card-bg);
  border-radius: 20px;
  padding: 18px 18px 16px;
  border: 1px solid var(--br-border);
  box-shadow: var(--br-shadow-card);
}

.br-modal h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.br-modal p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--br-muted);
}

.br-modal-skill-list {
  max-height: 220px;
  overflow-y: auto;
  margin: 8px 0 12px;
}

.br-modal-skill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
}

.br-modal-skill input {
  accent-color: var(--br-accent);
}

.br-modal-skill span {
  flex: 1;
}

.br-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Different font vibes */
.phonics-answer {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.context-answer {
  font-family: "Georgia", serif;
  font-weight: 500;
}

/* If global styles fight the inline background, you can use these with !important */
.btn-correct {
  background-color: #22c55e !important;
  color: #0b1120 !important;
}

.btn-wrong {
  background-color: #ef4444 !important;
  color: #0b1120 !important;
}


/* PRINT STYLES (unchanged) */
@media print {
  .br_app {
    padding: 0;
    background: #ffffff;
    color: #000;
  }
  .br_shell {
    max-height: none;
    overflow: visible;
    width: 100%;
  }
  .br-header,
  .br-banner,
  #btnStartOver,
  #btnCSV,
  #btnEmail,
  #btnPrint,
  #inpEmail {
    display: none !important;
  }
  .br-card {
    box-shadow: none;
    border: none;
    padding: 0;
    background: #ffffff;
  }
  .br-print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb7185, #facc15);
    color: #111827;
  }
  .br-ph-left {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 70%;
  }
  .br-ph-title {
    font-weight: 900;
    margin: 0 0 2px;
  }
  .br-ph-sub {
    margin: 0;
    font-size: 12px;
  }
  .br-ph-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #111827;
    color: #fee2e2;
    display: grid;
    place-items: center;
    font-weight: 900;
  }
  .br-ph-right {
    text-align: right;
    font-size: 12px;
  }

  .br-result-item,
  .br-cardlet {
    page-break-inside: avoid;
  }

  .br-pill,
  .br-chip,
  .br-tag {
    border: 1px solid #ddd;
    background: #ffffff;
    color: #000;
  }
}

/* ===========================
   RESPONSIVE — SCREEN
   =========================== */

/* <= 1200px: shrink padding + allow wider shell */
@media (max-width: 1200px) {
  .br_app {
    padding: 24px 16px;
  }
  .br_shell {
    width: 96%;
    max-width: 1100px;
    max-height: 92vh;
  }
}

/* <= 992px: tighten layout, slightly smaller typography */
@media (max-width: 992px) {
  .br_app {
    padding: 20px 12px;
  }
  .br_shell {
    width: 96%;
    max-width: 900px;
    max-height: 100vh;
  }

  .br-title-main,
  .br-start-title {
    font-size: 21px;
  }

  .br-start-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
  }

  .br-hero-frame img {
    height: 210px;
  }

  .br-mode-grid,
  .br-skill-grid {
    gap: 8px;
  }
}

/* <= 900px: stack most two-column layouts */
@media (max-width: 900px) {
  .br-grid-two {
    grid-template-columns: 1fr;
  }

  .br-mode-grid,
  .br-skill-grid {
    grid-template-columns: 1fr;
  }

  .br-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .br-brand-link {
    align-self: flex-start;
  }

  .br-start-grid {
    grid-template-columns: 1fr;
  }
  .br-start-right {
    order: -1; /* hero image on top on tablets/phones */
  }

  .br-hero-frame img {
    height: 200px;
  }

  .br-start-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .br-start-strip-right {
    justify-content: flex-start;
  }
}

/* <= 768px: phone-ish — full-width card, reduced padding */
@media (max-width: 768px) {
  .br_app {
    padding: 18px 10px;
    align-items: flex-start;
  }

  .br_shell {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

  .br-card,
  .br-start-card {
    border-radius: 20px;
    padding: 16px 14px 18px;
  }

  .br-start-grid {
    padding: 14px 14px 16px;
    gap: 14px;
  }

  .br-start-form {
    padding: 10px 10px 12px;
  }

  .br-start-title {
    font-size: 20px;
  }
  .br-start-subtitle {
    font-size: 13px;
  }

  .br-hero-frame img {
    height: 190px;
  }

  .br-mode-card,
  .br-skill-card {
    padding: 10px 11px;
  }

  .br-q-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .br-q-right {
    width: 100%;
    justify-content: space-between;
  }

  .br-answer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .br-email-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .br-btn {
    font-size: 13px;
  }
}

/* <= 480px: very small phones — compact everything */
@media (max-width: 480px) {
  .br_app {
    padding: 14px 8px;
  }

  .br-card,
  .br-start-card {
    border-radius: 16px;
  }

  .br-start-strip {
    padding: 10px 12px;
  }

  .br-start-grid {
    padding: 12px 12px 14px;
  }

  .br-start-title {
    font-size: 18px;
  }

  .br-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .br-brand-text h1 {
    font-size: 19px;
  }

  .br-input {
    padding: 9px 11px;
    font-size: 13px;
  }

  .br-hero-frame img {
    height: 180px;
  }

  .br-celebrate img {
    height: 220px;
  }

  .br-chip-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .br-answer-tag {
    font-size: 11px;
    padding: 4px 8px;
  }

  .br-btn,
  .br-btn-primary,
  .br-btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
