
/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #2A7F7F;
  --teal-light: #3FA8A8;
  --teal-pale:  #EAF5F5;
  --blue:       #3A6B9E;
  --blue-light: #5B8EC4;
  --blue-pale:  #EBF0F8;
  --gold:       #B8962E;
  --gold-light: #D4AE4E;
  --gold-pale:  #FBF5E6;
  --coral:      #E07A5F;
  --coral-light:#E89A87;
  --coral-pale: #FDF0EC;
  --cream:      #F8F4EE;
  --white:      #FFFFFF;
  --text-dark:  #1C2B3A;
  --text-mid:   #4A5568;
  --text-light: #718096;
  --border:     #E8E0D5;
  --shadow:     0 4px 24px rgba(28,43,58,0.08);
  --shadow-sm:  0 2px 8px rgba(28,43,58,0.06);
  --radius:     12px;
  --radius-lg:  20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

/* ── CONTAINER ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
}

.nav-container {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  height: 70px;
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; }
.logo-neuro { color: var(--teal); }
.logo-bridge { color: var(--gold); }
.logo-slp {
  font-size: 0.85rem; font-family: 'Inter', sans-serif;
  font-weight: 600; color: var(--text-light);
  letter-spacing: 0.1em; margin-left: 4px; vertical-align: middle;
}

.nav-links {
  display: flex; list-style: none; gap: 0.25rem; margin-left: auto;
}

.nav-links a {
  padding: 0.4rem 0.85rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-mid);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--teal); background: var(--teal-pale);
}

.nav-cta {
  background: var(--teal); color: white;
  border: none; padding: 0.55rem 1.25rem;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-light); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block; background: var(--teal); color: white;
  padding: 0.75rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block; background: transparent; color: var(--teal);
  border: 2px solid var(--teal); padding: 0.7rem 1.75rem;
  border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--teal-pale); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 60%, var(--teal-pale) 100%);
  padding: 5rem 2rem 4rem;
  display: flex; align-items: center; justify-content: center; gap: 4rem;
  max-width: 1160px; margin: 0 auto;
  flex-wrap: wrap;
}

.hero-content { max-width: 580px; }

.hero-eyebrow {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-dark); margin-bottom: 1.25rem;
}

.accent-gold { color: var(--gold); }

.hero-subtitle {
  font-size: 1.05rem; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 2rem; max-width: 480px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.hero-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.hero-card:hover { transform: translateY(-3px); }
.hero-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.hero-card p { font-size: 0.85rem; font-weight: 500; color: var(--text-mid); }

/* ── SECTIONS ── */
.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  text-align: center; margin-bottom: 0.75rem; color: var(--text-dark);
}
.section-subtitle {
  text-align: center; color: var(--text-light);
  font-size: 1rem; margin-bottom: 2.5rem;
}

/* ── QUICK ACCESS ── */
.quick-access { padding: 5rem 0; background: var(--white); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.quick-card {
  display: block; border-radius: var(--radius-lg);
  padding: 1.75rem; transition: all 0.25s; cursor: pointer;
  border: 1.5px solid transparent;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quick-card.teal  { background: var(--teal-pale);  border-color: var(--teal-light); }
.quick-card.gold  { background: var(--gold-pale);  border-color: var(--gold-light); }
.quick-card.coral { background: var(--coral-pale); border-color: var(--coral-light); }
.quick-card.blue  { background: var(--blue-pale);  border-color: var(--blue-light); }
.quick-card.cream { background: var(--cream);      border-color: var(--border); }

.quick-icon { font-size: 1.75rem; display: block; margin-bottom: 0.75rem; }
.quick-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.quick-card p  { font-size: 0.875rem; color: var(--text-mid); line-height: 1.5; }

/* ── WHY ── */
.why-section { padding: 5rem 0; background: var(--cream); }

.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.why-text h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }
.why-text p  { color: var(--text-mid); margin-bottom: 1.5rem; line-height: 1.7; }

.why-list { list-style: none; margin-bottom: 2rem; }
.why-list li {
  padding: 0.5rem 0; color: var(--text-mid);
  border-bottom: 1px solid var(--border); font-size: 0.95rem;
}

.why-visual {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-content: center;
}

.condition-badge {
  background: white; border: 2px solid var(--teal-light);
  color: var(--teal); padding: 0.6rem 1.2rem;
  border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

/* ── MATERIAL TYPES ── */
.material-types { padding: 5rem 0; background: var(--white); }

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.type-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  text-align: center; transition: all 0.2s;
}
.type-card:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.type-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.type-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.type-card p  { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

/* ── FOOTER ── */
.footer { background: var(--text-dark); color: var(--cream); padding: 3rem 0 2rem; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2rem;
}

.footer-logo { font-size: 1.3rem; font-family: 'Playfair Display', serif; margin-bottom: 0.5rem; }
.footer-brand p:last-child { font-size: 0.875rem; color: #9aacbb; line-height: 1.6; }

.footer-links h4 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: #9aacbb; }
.footer-links a:hover { color: white; }

.footer-copy { font-size: 0.8rem; color: #667; border-top: 1px solid #2d3e4e; padding-top: 1.5rem; text-align: center; }

/* ── LIBRARY PAGE ── */
.library-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 2rem; max-width: 1160px; margin: 0 auto;
  padding: 2.5rem 2rem;
}

.sidebar {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 1.5rem; height: fit-content;
  border: 1px solid var(--border); position: sticky; top: 90px;
}

.sidebar h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light); margin: 1.25rem 0 0.6rem;
}
.sidebar h3:first-child { margin-top: 0; }

.filter-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.5rem; }

.filter-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text-mid); cursor: pointer; padding: 0.25rem 0;
}
.filter-label input { accent-color: var(--teal); width: 16px; height: 16px; }

.sidebar-divider { height: 1px; background: var(--border); margin: 1rem 0; }

.clear-btn {
  width: 100%; background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 0.5rem; font-size: 0.85rem;
  color: var(--text-mid); cursor: pointer; margin-top: 1rem; transition: all 0.2s;
}
.clear-btn:hover { border-color: var(--coral); color: var(--coral); }

/* Material Cards */
.materials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem; align-content: start;
}

.material-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: all 0.2s; cursor: pointer;
}
.material-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--teal-light); }

.card-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 50px; margin-bottom: 0.75rem;
}
.tag-language  { background: var(--teal-pale);  color: var(--teal); }
.tag-cognitive { background: var(--gold-pale);  color: var(--gold); }
.tag-aac       { background: var(--coral-pale); color: var(--coral); }
.tag-motor     { background: var(--blue-pale);  color: var(--blue); }
.tag-dysphagia { background: #f0e8f5; color: #7B4FA6; }
.tag-functional{ background: var(--cream);      color: var(--text-mid); }

.card-title { font-size: 1rem; margin-bottom: 0.4rem; }
.card-meta  { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.75rem; }

.card-footer { display: flex; align-items: center; justify-content: space-between; }

.complexity-badge {
  font-size: 0.75rem; padding: 0.2rem 0.6rem;
  border-radius: 50px; font-weight: 600;
}
.level-1 { background: #e8f5e9; color: #2e7d32; }
.level-2 { background: #fff8e1; color: #f57f17; }
.level-3 { background: #fce4ec; color: #c62828; }

.card-type-icon { font-size: 1rem; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--teal-pale), var(--cream));
  padding: 3rem 2rem;
}
.page-header .container { max-width: 1160px; margin: 0 auto; }
.page-header h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.page-header p   { color: var(--text-mid); font-size: 1rem; }

/* ── CAREGIVER PAGE ── */
.caregiver-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; padding: 3rem 0;
}

.caregiver-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; transition: all 0.2s;
}
.caregiver-card:hover { box-shadow: var(--shadow); border-color: var(--gold-light); }
.caregiver-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.caregiver-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.caregiver-card p  { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem; }
.card-link { font-size: 0.875rem; font-weight: 600; color: var(--teal); }
.card-link:hover { color: var(--teal-light); }

/* ── ABOUT ME ── */
.about-me-section { padding: 4rem 0; }
.about-me-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.about-me-img-placeholder {
  background: var(--teal-pale); border-radius: var(--radius-lg);
  aspect-ratio: 1; display: flex; align-items: center;
  justify-content: center; font-size: 4rem;
}
.about-me-text h2 { margin-bottom: 1rem; }
.about-me-text p { color: var(--text-mid); line-height: 1.8; margin-bottom: 1rem; }
.credentials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.cred-badge {
  background: var(--gold-pale); border: 1px solid var(--gold-light);
  color: var(--gold); padding: 0.4rem 0.9rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
}

/* ── CONTACT ── */
.contact-section { padding: 4rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text-mid); }
.form-group input, .form-group textarea, .form-group select {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 0.75rem 1rem; font-size: 0.95rem; font-family: inherit;
  background: var(--white); color: var(--text-dark); transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn {
  background: var(--teal); color: white; border: none;
  padding: 0.85rem 2rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.submit-btn:hover { background: var(--teal-light); }

.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-mid); line-height: 1.7; margin-bottom: 1.5rem; }

/* ── ABOUT PAGE ── */
.about-section { padding: 4rem 0; }
.about-intro   { max-width: 780px; margin: 0 auto; text-align: center; padding: 2rem 0; }
.about-intro p { color: var(--text-mid); line-height: 1.8; font-size: 1.05rem; }
.conditions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; padding: 3rem 0;
}
.condition-card {
  background: var(--teal-pale); border-radius: var(--radius);
  padding: 1.5rem; border-left: 4px solid var(--teal);
}
.condition-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.condition-card p  { font-size: 0.85rem; color: var(--text-mid); line-height: 1.5; }

/* ── BODY PARTS DRAG & DROP ACTIVITY ── */
.material-card.interactive { position: relative; }
.material-card.interactive::after {
  content: "▶ Open activity";
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--teal); background: var(--teal-pale);
  padding: 0.2rem 0.55rem; border-radius: 50px;
}

.bp-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(28,43,58,0.55); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 2.5rem 1.25rem; overflow-y: auto;
}
.bp-overlay.open { display: flex; }

.bp-modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 980px; width: 100%; box-shadow: var(--shadow);
  border: 1px solid var(--border); overflow: hidden;
}

.bp-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, var(--teal-pale), var(--cream));
  border-bottom: 1px solid var(--border);
}
.bp-modal-head h2 { font-size: 1.35rem; color: var(--text-dark); }
.bp-modal-head p { font-size: 0.85rem; color: var(--text-mid); margin-top: 0.15rem; }
.bp-close {
  background: var(--white); border: 1.5px solid var(--border);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  font-size: 1.2rem; color: var(--text-mid); line-height: 1; flex-shrink: 0;
  transition: all 0.2s;
}
.bp-close:hover { border-color: var(--coral); color: var(--coral); }

.bp-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; padding: 1rem 1.75rem 0;
}
.bp-gender { display: inline-flex; background: var(--cream); border: 1px solid var(--border); border-radius: 50px; padding: 4px; }
.bp-gender button {
  border: none; background: transparent; cursor: pointer;
  padding: 0.4rem 1.1rem; border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; color: var(--text-mid); transition: all 0.2s; font-family: inherit;
}
.bp-gender button.active { background: var(--teal); color: white; box-shadow: var(--shadow-sm); }

.bp-progress { display: flex; align-items: center; gap: 0.85rem; }
.bp-progress-text { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); }
.bp-progress-bar { width: 130px; height: 8px; background: var(--cream); border-radius: 50px; overflow: hidden; border: 1px solid var(--border); }
.bp-progress-fill { height: 100%; width: 0; background: var(--teal); border-radius: 50px; transition: width 0.35s ease; }
.bp-reset {
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 0.4rem 0.9rem; font-size: 0.8rem;
  color: var(--text-mid); cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.bp-reset:hover { border-color: var(--coral); color: var(--coral); }

.bp-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; padding: 1.25rem 1.75rem 1.75rem; align-items: start; }

.bp-stage {
  position: relative; aspect-ratio: 300 / 560; width: 100%; max-width: 360px;
  margin: 0 auto; background: linear-gradient(180deg, var(--blue-pale), var(--teal-pale));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  touch-action: none;
}
.bp-figure { position: absolute; inset: 0; width: 100%; height: 100%; }
.bp-figure[hidden] { display: none; }

.bp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bp-pin-line { stroke: var(--teal); stroke-width: 0.4; opacity: 0; transition: opacity 0.3s; }
.bp-pin-line.show { opacity: 0.85; }

.bp-pin {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--white); border: 1.5px solid var(--teal);
  color: var(--teal); font-size: 0.72rem; font-weight: 700;
  padding: 0.15rem 0.5rem; border-radius: 50px; white-space: nowrap;
  box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.bp-pin.show { opacity: 1; animation: bp-pop 0.4s ease; }
@keyframes bp-pop { 0% { transform: translate(-50%,-50%) scale(0.4);} 60%{ transform: translate(-50%,-50%) scale(1.12);} 100%{ transform: translate(-50%,-50%) scale(1);} }
.bp-dot {
  position: absolute; width: 11px; height: 11px; transform: translate(-50%,-50%);
  background: var(--teal); border: 2px solid var(--white); border-radius: 50%;
  opacity: 0; transition: opacity 0.3s; box-shadow: 0 0 0 2px var(--teal-light);
}
.bp-dot.show { opacity: 1; }

.bp-tray-wrap h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.85rem; }
.bp-tray { display: flex; flex-wrap: wrap; gap: 0.6rem; min-height: 60px; }
.bp-chip {
  background: var(--white); border: 1.5px solid var(--teal-light);
  color: var(--teal); font-size: 0.9rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 50px; cursor: grab;
  box-shadow: var(--shadow-sm); user-select: none; touch-action: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}
.bp-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bp-chip:active { cursor: grabbing; }
.bp-chip.placed { background: var(--teal-pale); border-color: var(--teal-pale); color: var(--teal-light); cursor: default; opacity: 0.65; box-shadow: none; transform: none; }
.bp-chip.dragging { opacity: 0; }
.bp-chip.wrong { animation: bp-shake 0.4s; border-color: var(--coral); color: var(--coral); }
@keyframes bp-shake { 0%,100%{ transform: translateX(0);} 25%{ transform: translateX(-6px);} 75%{ transform: translateX(6px);} }

.bp-ghost {
  position: fixed; z-index: 1100; pointer-events: none;
  background: var(--teal); color: white; font-size: 0.9rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 50px; box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.bp-done {
  margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: var(--gold-pale); border: 1px solid var(--gold-light);
  color: var(--gold); font-weight: 600; font-size: 0.95rem;
  text-align: center; display: none;
}
.bp-done.show { display: block; animation: bp-pop 0.4s ease; }
.bp-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 1rem; line-height: 1.5; }

@media (max-width: 720px) {
  .bp-body { grid-template-columns: 1fr; }
  .bp-stage { max-width: 280px; }
}

/* ── GENERIC SORT / MATCH / ORDER ACTIVITY ENGINE ── */
.bp-modal { position: relative; }
.act-instr { font-size: 0.85rem; color: var(--text-mid); margin: 0; max-width: 58%; }
.act-body { padding: 1.25rem 1.75rem 1.75rem; }

.act-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.act-zones.row { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }

.act-zone {
  background: var(--cream); border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 1rem 0.75rem; text-align: center;
  min-height: 120px; transition: border-color 0.2s, background 0.2s;
}
.act-zone.slot { flex: 1 0 132px; }
.act-zone.correct { border-style: solid; border-color: var(--teal-light); background: var(--teal-pale); }
.act-zone.flash { border-color: var(--coral); background: var(--coral-pale); animation: bp-shake 0.4s; }
.act-zone__num { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.act-zone__emoji { font-size: 2.4rem; line-height: 1; margin-bottom: 0.35rem; }
.act-zone__label { font-size: 0.9rem; font-weight: 600; color: var(--text-mid); }
.act-zone__items { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 0.6rem; }
.act-placed { background: var(--teal); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 50px; animation: bp-pop 0.35s ease; }

.act-tray-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.75rem; }

.act-memorize {
  position: absolute; inset: 0; background: rgba(248,244,238,0.98);
  display: none; align-items: center; justify-content: center; z-index: 5;
}
.act-memorize.show { display: flex; }
.act-memorize__inner { text-align: center; padding: 2rem; }
.act-memorize__inner h3 { font-size: 1.4rem; margin-bottom: 1.25rem; color: var(--teal); }
.act-memo-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; max-width: 340px; }
.act-memo-item { background: #fff; border: 1px solid var(--border); border-radius: 50px; padding: 0.5rem 1.25rem; font-size: 0.95rem; color: var(--text-dark); }
.act-memo-item b { color: var(--teal); margin-right: 0.5rem; }
.act-memo-count { font-size: 0.9rem; color: var(--text-mid); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .library-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .why-grid, .about-me-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .type-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .nav-links { display: none; }
}
