/* Drop-in simplification layer: keep the learning engine, remove dashboard clutter. */
.site-backdrop {
  background:
    linear-gradient(180deg, rgba(255, 249, 237, 0.18), rgba(255, 248, 238, 0.38)),
    url("assets/bg/hero-bg-desktop.webp") center / cover no-repeat;
}

.site-backdrop::after {
  background: linear-gradient(90deg, rgba(255, 250, 241, 0.12), rgba(255, 250, 241, 0.03) 50%, rgba(255, 250, 241, 0.16));
  backdrop-filter: blur(0.5px);
}

.app-shell {
  width: min(1160px, calc(100% - 36px));
}

.experience-nav {
  grid-template-columns: repeat(2, minmax(132px, auto));
}

.app-grid {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.72fr);
  max-width: 1080px;
  margin: 0 auto;
  gap: 18px;
}

.mobile-brand {
  display: none;
}

.prompt {
  white-space: pre-line;
}

.seally-image-wrap {
  aspect-ratio: 0.92 / 1;
  background: linear-gradient(180deg, rgba(210, 229, 223, 0.84), rgba(244, 225, 198, 0.88));
}

.seally-image {
  object-fit: contain;
  object-position: center bottom;
  filter: none;
}

.answer-support {
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.answer-support[hidden] {
  display: none;
}

.answer-support .shape-wrap {
  margin-top: 0;
}

.noeau-inline {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px dashed rgba(200, 121, 67, 0.43);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.68);
  box-shadow: none;
  backdrop-filter: none;
}

.noeau-inline .noeau-widget-saying {
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.mobile-bottom-nav {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .seally-coach,
  .lesson-column {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow: hidden;
    height: 100%;
  }

  body {
    padding-bottom: 0;
  }

  .island-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .site-backdrop {
    background:
      linear-gradient(180deg, rgba(255, 249, 237, 0.18), rgba(255, 248, 238, 0.36)),
      url("assets/bg/hero-bg-mobile.webp") center top / cover no-repeat;
  }

  .app-header {
    display: none;
  }

  .app-shell {
    width: min(100% - 12px, 640px);
    height: calc(100dvh - 70px - env(safe-area-inset-bottom));
    padding: 4px 0 0;
    overflow: hidden;
  }

  .app-grid {
    height: 100%;
    grid-template-rows: 68px minmax(0, 1fr);
    gap: 4px;
    overflow: hidden;
  }

  .lesson-column {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .seally-coach {
    display: grid;
    grid-template-columns: 58px 1fr;
    min-height: 0;
    max-height: 68px;
    border-radius: 13px;
  }

  .seally-image-wrap {
    aspect-ratio: auto;
    min-height: 66px;
  }

  .seally-copy {
    align-self: center;
    padding: 4px 7px;
  }

  .seally-name {
    font-size: 0.88rem;
    line-height: 1;
  }

  .seally-subtitle {
    display: none;
  }

  .seally-bubble {
    margin-top: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .seally-bubble::before {
    display: none;
  }

  .seally-bubble p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .core-summary {
    flex: 0 0 auto;
    min-height: 32px;
    margin-bottom: 4px;
    padding: 4px 8px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
  }

  .core-summary > div {
    display: none;
  }

  .core-kicker,
  .core-copy {
    display: none;
  }

  .mobile-brand {
    display: inline;
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 950;
    letter-spacing: -0.015em;
  }

  .core-progress {
    margin-left: auto;
    font-size: 0.8rem;
  }

  .practice-card {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding: 8px 10px;
    border-radius: 15px;
  }

  .card-topline {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .card-topline .progress {
    display: none;
  }

  .challenge-instruction {
    margin-top: 5px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .prompt {
    min-height: 0;
    margin: 7px 0;
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    line-height: 1.08;
    white-space: normal;
  }

  .choice-wrap {
    gap: 5px;
    margin: 0 0 6px;
  }

  .choice-button {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 1rem;
    line-height: 1.25;
  }

  .practice-card[data-revealed="true"] .choice-wrap {
    display: none;
  }

  .practice-card[data-revealed="false"]:has(.choice-wrap:not([hidden])) .noeau-inline,
  .practice-card[data-revealed="false"]:has(.choice-wrap:not([hidden])) .more-like-button,
  .practice-card[data-revealed="false"]:has(.choice-wrap:not([hidden])) .history-actions {
    display: none;
  }

  .feedback {
    margin: 5px 0 0;
    padding: 7px 9px;
    border-radius: 9px;
    font-size: 0.9rem;
    line-height: 1.3;
    box-shadow: none;
  }

  .answer-wrap {
    margin: 0 0 6px;
    padding: 9px 11px;
    border-radius: 10px;
  }

  .answer-label {
    margin-bottom: 3px;
  }

  .answer {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.15;
  }

  .primary-button {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: #f6f2e8;
    color: var(--accent-dark);
    font-size: 0.95rem;
    box-shadow: none;
  }

  .rating-actions {
    gap: 6px;
    margin-top: 6px;
  }

  .rating-button {
    min-height: 44px;
    font-size: 0.98rem;
    font-weight: 900;
  }

  .noeau-inline {
    flex: 0 0 auto;
    margin: 6px 0 0;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .noeau-widget-topline {
    align-items: center;
    gap: 6px;
  }

  .noeau-inline .flavor-tag {
    margin: 0;
    font-size: 0.75rem;
  }

  .noeau-inline .noeau-widget-saying {
    margin: 4px 0 5px;
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .noeau-inline .noeau-widget-next,
  .noeau-inline .noeau-widget-reveal {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 0.85rem;
  }

  .noeau-inline #noeau-widget-body p {
    margin: 4px 0;
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .noeau-inline .noeau-widget-note {
    font-size: 0.75rem !important;
    line-height: 1.25 !important;
  }

  .noeau-inline:has(#noeau-widget-body:not([hidden])) .noeau-widget-saying {
    display: none;
  }

  .practice-card:has(#noeau-widget-body:not([hidden])) .more-like-button,
  .practice-card:has(#noeau-widget-body:not([hidden])) .history-actions {
    display: none;
  }

  .more-like-button {
    min-height: 44px;
    margin-top: 5px;
    padding: 7px 9px;
    font-size: 0.82rem;
  }

  .history-actions {
    gap: 5px;
    margin-top: 5px;
  }

  .history-button {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .mobile-bottom-nav a {
    min-height: 54px;
    font-size: 0.85rem;
  }

  .app-footer,
  .quick-rule,
  .answer-support {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .experience-nav {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .seally-coach {
    grid-template-columns: 54px 1fr;
  }

  .seally-image-wrap {
    min-height: 64px;
  }
}
