/* =====================================================================
   QOD RESPONSIVE CSS  — Mobile & Tablet Optimised
   Breakpoints:
     xs  : max-width 479px   (small phones)
     sm  : max-width 639px   (phones)
     md  : max-width 767px   (large phones / small tablets)
     lg  : max-width 1023px  (tablets / small laptops)
     xl  : max-width 1279px  (large tablets / laptop)
   All rules are additive overrides on top of qodstyles.css
   ===================================================================== */


/* =====================================================================
   SHARED TOUCH & ACCESSIBILITY BASELINE
   ===================================================================== */

/* Minimum 44 × 44 px tap targets for all interactive elements */
button,
.mood-btn,
.mood-option,
.layout-btn,
.font-btn,
.utility-btn,
.share-btn,
.sort-btn,
.view-btn,
.aspect-btn,
.favorite-btn,
.collection-item,
.challenge-item,
.quiz-option,
.history-action-btn,
.week-quote-btn,
.quiz-start-btn,
.next-fact-btn,
.autoplay-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Prevent horizontal overflow on every screen */
html, body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}


/* =====================================================================
   LARGE TABLET / SMALL LAPTOP  —  max-width: 1279px
   ===================================================================== */
@media (max-width: 1279px) {
  .app-container {
    padding: var(--space-lg);
  }

  .achievement-stats {
    gap: var(--space-2xl);
  }

  .week-content {
    grid-template-columns: 320px 1fr;
  }
}


/* =====================================================================
   TABLET  —  max-width: 1023px
   Switches two-column layout to single column
   ===================================================================== */
@media (max-width: 1023px) {
  /* ── Layout ── */
  .app-container {
    padding: var(--space-lg) var(--space-md);
  }

  .main-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Columns stack naturally; give right column some breathing room */
  .left-column,
  .right-column {
    width: 100%;
  }

  /* ── Header ── */
  .main-title1 {
    font-size: 2.25rem;
  }

  .header-subtitle {
    font-size: 1rem;
  }

  /* ── Mood Filter ── */
  .mood-filters {
    gap: var(--space-sm);
  }

  .mood-btn {
    min-width: 90px;
    padding: var(--space-sm) var(--space-md);
  }

  /* ── Quote Display ── */
  .quote-display-container.overlay-mode {
    aspect-ratio: 16 / 9;  /* Wider on tablet, less tall */
  }

  /* ── Action Buttons ── */
  .utility-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ── Share ── */
  .share-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  /* ── Week Quote (full width section) ── */
  .week-content {
    grid-template-columns: 280px 1fr;
  }

  .week-image-container {
    min-height: 280px;
  }

  .week-info {
    padding: var(--space-2xl);
  }

  .week-quote-text {
    font-size: 1.375rem;
  }

  /* ── Achievement Grid ── */
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .achievement-title {
    font-size: 1.75rem;
  }

  .achievement-stats {
    gap: var(--space-2xl);
  }

  /* ── History Grid ── */
  .history-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  /* ── Right column cards stack in a readable 2-col grid on tablet ── */
  .right-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    align-items: start;
  }

  /* Cards that should span full width */
  .week-quote-card,
  .quick-library-card {
    grid-column: 1 / -1;
  }
}


/* =====================================================================
   LARGE PHONE / SMALL TABLET  —  max-width: 767px
   ===================================================================== */
@media (max-width: 767px) {
  /* ── Layout ── */
  .app-container {
    padding: var(--space-md);
  }

  /* Right column back to single column */
  .right-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }

  /* ── Header ── */
  .header {
    margin-bottom: var(--space-xl);
  }

  .main-title1 {
    font-size: 1.875rem;
    letter-spacing: -0.01em;
  }

  .header-subtitle {
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
  }

  .date-badge {
    font-size: 0.8125rem;
    padding: var(--space-xs) var(--space-md);
  }

  .streak-badge {
    font-size: 0.8125rem;
    padding: var(--space-xs) var(--space-md);
  }

  /* ── Mood Filter ── */
  .mood-filter-section {
    margin-bottom: var(--space-lg);
  }

  .mood-filters {
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-radius: 12px;
    /* Horizontally scrollable on small screens */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar visually */
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
  }

  .mood-filters::-webkit-scrollbar {
    display: none;
  }

  .mood-btn {
    min-width: 80px;
    flex-shrink: 0;
    padding: var(--space-sm);
    border-radius: 10px;
    gap: var(--space-xs);
  }

  .mood-icon {
    font-size: 1.375rem;
  }

  .mood-label {
    font-size: 0.75rem;
  }

  /* ── Quote Display ── */
  .quote-display-container {
    border-radius: 16px;
  }

  .quote-display-container.overlay-mode {
    aspect-ratio: 4 / 3;
  }

  .quote-display-container.overlay-mode.portrait {
    aspect-ratio: 3 / 4;
  }

  .quote-overlay {
    padding: var(--space-xl) var(--space-lg);
  }

  .quote-text-overlay {
    font-size: clamp(1.125rem, 4.5vw, 1.5rem);
    margin-bottom: var(--space-lg);
  }

  .quote-author-overlay {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  }

  .quote-card-content {
    padding: var(--space-lg);
  }

  .quote-text-card {
    font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  }

  /* ── Image Icons on Quote Display ── */
  .favorite-btn {
    width: 40px;
    height: 40px;
  }

  .favorite-btn i {
    font-size: 1.125rem;
  }

  .aspect-btn {
    width: 34px;
    height: 34px;
  }

  /* ── Mood Badge ── */
  .mood-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }

  /* ── Action Buttons ── */
  .action-buttons {
    padding: var(--space-sm);
    border-radius: 12px;
    gap: var(--space-sm);
  }

  .layout-toggle {
    border-radius: 10px;
  }

  .layout-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
  }

  .font-selector {
    border-radius: 10px;
  }

  .font-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
    min-width: 52px;
  }

  .utility-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
  }

  .utility-btn {
    padding: var(--space-sm) var(--space-xs);
    border-radius: 10px;
    gap: var(--space-xs);
    font-size: 0.75rem;
  }

  .utility-btn i {
    font-size: 1.125rem;
  }

  /* ── Share ── */
  .share-section {
    padding: var(--space-md);
    border-radius: 12px;
  }

  .share-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
  }

  .share-btn {
    padding: var(--space-sm) var(--space-xs);
    font-size: 0.6875rem;
    border-radius: 10px;
  }

  .share-btn i {
    font-size: 1.125rem;
  }

  /* ── Mood Tracker ── */
  .mood-tracker-card {
    border-radius: 12px;
    padding: var(--space-md);
  }

  .mood-tracker-title {
    font-size: 1rem;
  }

  .mood-selector {
    gap: var(--space-xs);
  }

  .mood-option {
    min-width: 52px;
    padding: var(--space-sm) var(--space-xs);
    border-radius: 10px;
  }

  .mood-emoji {
    font-size: 1.375rem;
  }

  .mood-name {
    font-size: 0.6875rem;
  }

  /* ── Mood Chart ── */
  .mood-chart {
    height: 150px;
    padding: 16px 8px 36px 8px;
    border-radius: 10px;
  }

  .mood-bar {
    border-radius: 6px 6px 0 0;
  }

  .mood-bar-label {
    font-size: 0.6875rem;
    bottom: -26px;
  }

  /* ── Engagement Cards (Right Col) ── */
  .engagement-card {
    padding: var(--space-lg);
    border-radius: 16px;
  }

  .engagement-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border-radius: 10px;
  }

  .engagement-card-title {
    font-size: 1.125rem;
  }

  /* ── Challenge ── */
  .challenge-item {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .challenge-text {
    font-size: 0.875rem;
  }

  .challenge-checkbox {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  /* ── Did You Know ── */
  .did-you-know-fact {
    font-size: 0.9rem;
    padding: 0.75rem 0.875rem;
  }

  .did-you-know-actions {
    gap: var(--space-sm);
  }

  .next-fact-btn,
  .autoplay-btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }

  /* ── Week Quote (compact card in right col) ── */
  .week-quote-card {
    border-radius: 16px;
  }

  .week-quote-image-container {
    height: 160px;
  }

  .week-quote-content {
    padding: var(--space-lg);
  }

  .week-quote-text {
    font-size: 1rem;
  }

  .week-quote-author {
    font-size: 0.875rem;
  }

  /* ── Quick Library ── */
  .quick-library-card {
    border-radius: 16px;
    padding: var(--space-lg);
  }

  .library-title {
    font-size: 1.125rem;
  }

  .collection-item {
    padding: var(--space-md);
    border-radius: 12px;
  }

  .collection-name {
    font-size: 0.9375rem;
  }

  /* ── Quote of the Week (full width section) ── */
  .quote-of-week-section {
    margin: var(--space-2xl) 0;
  }

  .week-content {
    grid-template-columns: 1fr;
  }

  .week-image-container {
    min-height: 200px;
  }

  .week-info {
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
  }

  .week-quote-text {
    font-size: 1.25rem;
  }

  .week-author {
    font-size: 1rem;
  }

  .week-stats {
    gap: var(--space-lg);
  }

  .week-action-btn {
    padding: var(--space-md) var(--space-xl);
    font-size: 0.9375rem;
    align-self: stretch;
    justify-content: center;
  }

  /* ── Achievement Section ── */
  .achievement-section {
    margin: var(--space-2xl) 0;
  }

  .achievement-container {
    padding: var(--space-xl);
    border-radius: 16px;
  }

  .achievement-header {
    margin-bottom: var(--space-xl);
  }

  .achievement-title {
    font-size: 1.5rem;
    gap: var(--space-sm);
  }

  .achievement-title-icon {
    font-size: 1.75rem;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .achievement-item {
    padding: var(--space-lg);
    border-radius: 16px;
  }

  .achievement-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: var(--space-md);
  }

  .achievement-icon {
    font-size: 1.5rem;
  }

  .achievement-name {
    font-size: 1.125rem;
  }

  .achievement-stats {
    gap: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
  }

  .achievement-stat-value {
    font-size: 2rem;
  }

  /* ── History & Favorites ── */
  .history-section {
    margin-top: var(--space-2xl);
  }

  .section-header {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
  }

  .section-title {
    font-size: 1.5rem;
  }

  .history-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
  }

  .history-card-image {
    height: 180px;
  }

  /* ── Modal ── */
  .modal {
    padding: var(--space-md);
    align-items: flex-end; /* Sheet-style on mobile */
  }

  .modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }

  .modal-image-container {
    height: 240px;
  }

  .modal-body {
    padding: var(--space-lg);
  }

  .modal-quote-text {
    font-size: 1.375rem;
  }

  .modal-quote-author {
    font-size: 1rem;
  }

  /* ── Toast ── */
  .toast-container {
    top: var(--space-md);
    right: var(--space-md);
    left: var(--space-md);
    max-width: none;
  }

  .toast {
    min-width: auto;
    width: 100%;
    font-size: 0.875rem;
    padding: 12px 16px;
  }

  /* ── Quiz modal ── */
  .quiz-modal-overlay {
    padding: var(--space-sm);
    align-items: flex-end;
  }

  .quiz-modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    max-height: 92vh;
  }

  .quiz-modal-body {
    padding: 44px 20px 24px;
  }

  .quiz-question {
    font-size: 1.1875rem;
  }

  .quiz-option {
    padding: 12px 14px;
    gap: var(--space-sm);
  }

  .quiz-option-emoji {
    font-size: 1.375rem;
    width: 34px;
  }

  .quiz-result-icon {
    width: 80px;
    height: 80px;
    font-size: 2.25rem;
    margin-bottom: var(--space-lg);
  }

  .quiz-result-type {
    font-size: 1.5rem;
  }

  .quiz-result-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .quiz-result-actions button {
    width: 100%;
    padding: var(--space-md);
  }
}


/* =====================================================================
   PHONE  —  max-width: 639px
   ===================================================================== */
@media (max-width: 639px) {
  /* ── Header ── */
  .main-title1 {
    font-size: 1.75rem;
  }

  /* ── Mood Filters — pill-scroll stays but buttons narrower ── */
  .mood-btn {
    min-width: 70px;
    padding: 0.5rem 0.5rem;
  }

  .mood-icon {
    font-size: 1.25rem;
  }

  .mood-label {
    font-size: 0.6875rem;
  }

  /* ── Quote overlay text ── */
  .quote-overlay {
    padding: var(--space-lg) var(--space-md);
  }

  .quote-text-overlay {
    font-size: clamp(1rem, 4.5vw, 1.375rem);
  }

  /* ── Card content ── */
  .quote-card-content {
    padding: var(--space-md);
  }

  .quote-text-card {
    font-size: clamp(1rem, 3.5vw, 1.375rem);
  }

  /* ── Action buttons grid stays 3-col but compact ── */
  .utility-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .utility-btn span {
    font-size: 0.6875rem;
  }

  /* ── Share stays 3-col ── */
  .share-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .share-btn {
    font-size: 0.625rem;
    padding: var(--space-sm) 0.25rem;
  }

  /* ── Achievement grid goes 1-col on phones ── */
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .achievement-stats {
    gap: var(--space-xl);
  }

  .achievement-stat-value {
    font-size: 1.875rem;
  }

  /* ── History grid single column ── */
  .history-grid {
    grid-template-columns: 1fr;
  }

  /* ── Section header stacks if tight ── */
  .section-header {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .section-title {
    font-size: 1.375rem;
  }

  /* ── Mood tracker moods scroll ── */
  .mood-selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--space-xs);
  }

  .mood-selector::-webkit-scrollbar {
    display: none;
  }

  .mood-option {
    flex: 0 0 auto;
    min-width: 60px;
  }

  /* ── Did You Know actions stack ── */
  .did-you-know-actions {
    flex-direction: column;
  }

  .autoplay-btn {
    width: 100%;
    min-width: unset;
  }

  /* ── Week quote stats compact ── */
  .week-quote-stats {
    gap: var(--space-md);
  }

  /* ── Quick library preview hidden (too tight) ── */
  .collection-preview {
    display: none;
  }

  /* ── History action buttons always visible on mobile (no hover) ── */
  .history-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
}


/* =====================================================================
   SMALL PHONE  —  max-width: 479px
   ===================================================================== */
@media (max-width: 479px) {
  .app-container {
    padding: var(--space-sm) var(--space-sm);
  }

  /* ── Header ── */
  .main-title1 {
    font-size: 1.5rem;
  }

  .header-subtitle {
    font-size: 0.875rem;
  }

  .date-badge,
  .streak-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }

  /* ── Quote display ── */
  .quote-display-container.overlay-mode {
    aspect-ratio: 3 / 4;   /* Portrait-ish for small phones */
  }

  .quote-display-container.overlay-mode.portrait {
    aspect-ratio: 3 / 4;
  }

  .quote-text-overlay {
    font-size: clamp(0.9375rem, 5vw, 1.25rem);
    margin-bottom: var(--space-md);
  }

  .quote-author-overlay {
    font-size: 0.875rem;
  }

  /* ── Action buttons — tighter ── */
  .action-buttons {
    padding: var(--space-xs);
    gap: var(--space-xs);
  }

  .layout-btn,
  .font-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }

  .utility-btn {
    padding: 0.5rem 0.25rem;
    gap: 0.25rem;
    border-radius: 8px;
  }

  .utility-btn span {
    font-size: 0.625rem;
  }

  .utility-btn i {
    font-size: 1rem;
  }

  /* ── Share ── */
  .share-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .share-btn {
    padding: 0.5rem 0.25rem;
    font-size: 0.5625rem;
    border-radius: 8px;
  }

  .share-btn i {
    font-size: 1rem;
  }

  /* ── Mood filter ── */
  .mood-btn {
    min-width: 64px;
    padding: 0.4rem 0.4rem;
  }

  .mood-icon {
    font-size: 1.125rem;
  }

  .mood-label {
    font-size: 0.625rem;
  }

  /* ── Engagement cards ── */
  .engagement-card {
    padding: var(--space-md);
    border-radius: 14px;
  }

  /* ── Week quote compact ── */
  .week-quote-image-container {
    height: 140px;
  }

  .week-quote-content {
    padding: var(--space-md);
  }

  .week-quote-text {
    font-size: 0.9375rem;
  }

  /* ── Achievement ── */
  .achievement-container {
    padding: var(--space-lg);
    border-radius: 14px;
  }

  .achievement-title {
    font-size: 1.375rem;
    flex-direction: column;
  }

  .achievement-stats {
    gap: var(--space-lg);
    padding-top: var(--space-lg);
  }

  .achievement-stat-value {
    font-size: 1.75rem;
  }

  .achievement-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  /* ── History cards ── */
  .history-card-image {
    height: 160px;
  }

  /* ── Modal ── */
  .modal-image-container {
    height: 200px;
  }

  .modal-body {
    padding: var(--space-md);
  }

  .modal-quote-text {
    font-size: 1.25rem;
  }

  /* ── Quiz ── */
  .quiz-modal-body {
    padding: 40px 16px 20px;
  }

  .quiz-question {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
  }

  .quiz-option {
    padding: 10px 12px;
  }

  .quiz-option-text strong {
    font-size: 0.875rem;
  }

  .quiz-option-text span {
    font-size: 0.75rem;
  }

  /* ── Toast ── */
  .toast {
    font-size: 0.8125rem;
    padding: 10px 14px;
  }

  /* ── Mood chart ── */
  .mood-chart {
    height: 130px;
    padding: 14px 6px 32px 6px;
  }

  .mood-bar-label {
    font-size: 0.625rem;
    bottom: -24px;
  }
}


/* =====================================================================
   TOUCH DEVICE IMPROVEMENTS (any screen)
   ===================================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Hover states that only work on mouse don't make sense on touch */
  .collection-item:hover {
    transform: none;
    background: var(--bg-light);
    border-color: transparent;
    box-shadow: none;
  }

  .collection-item:hover::before {
    transform: scaleY(0);
  }

  /* Show collection preview permanently on touch */
  .collection-preview {
    max-height: 60px;
    opacity: 1;
    margin-top: var(--space-xs);
  }

  /* Challenge hover transform off */
  .challenge-item:hover {
    transform: none;
    background: var(--bg-light);
  }

  .challenge-item.completed:hover {
    background: rgba(14, 165, 233, 0.1);
  }

  /* Achievement hover off */
  .engagement-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  /* History card hover buttons always visible on touch */
  .history-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .history-card:hover::before {
    background: transparent;
  }

  /* Disable translateX on collection items */
  .collection-item:hover {
    transform: none;
  }

  /* Disable translateY on achievement items */
  .achievement-item:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--border);
  }

  /* Mood btn hover off */
  .mood-btn:hover {
    transform: none;
  }

  /* Remove card hover lift */
  .history-card:hover {
    transform: none;
  }

  /* Quick library hover off */
  .quick-library-card:hover {
    box-shadow: var(--shadow-md);
  }
}


/* =====================================================================
   LANDSCAPE PHONE  —  short + wide
   e.g. iPhone SE landscape: 667 × 375
   ===================================================================== */
@media (max-width: 767px) and (orientation: landscape) and (max-height: 500px) {
  /* Shrink quote display so it doesn't take the full screen height */
  .quote-display-container.overlay-mode {
    aspect-ratio: 16 / 7;
  }

  .quote-overlay {
    padding: var(--space-md);
  }

  .quote-text-overlay {
    font-size: clamp(0.9rem, 3.5vw, 1.25rem);
    margin-bottom: var(--space-sm);
  }

  /* Header more compact */
  .header {
    margin-bottom: var(--space-lg);
  }

  .main-title1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
  }

  .header-subtitle {
    margin-bottom: var(--space-sm);
  }

  /* Mood filter always stays horizontal */
  .mood-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  /* Modal fills screen in landscape */
  .modal {
    align-items: center;
    padding: var(--space-sm);
  }

  .modal-content {
    border-radius: 16px;
    max-height: 96vh;
    flex-direction: row;  /* Image left, content right in landscape */
  }

  .modal-image-container {
    width: 45%;
    height: auto;
    min-height: 100%;
  }

  .modal-body {
    overflow-y: auto;
    flex: 1;
  }

  /* Quiz modal fills screen */
  .quiz-modal {
    border-radius: 16px;
    max-height: 96vh;
  }
}


/* =====================================================================
   PRINT — minimal ink, clean layout
   ===================================================================== */
@media print {
  .mood-filter-section,
  .action-buttons,
  .right-column,
  .achievement-section,
  .history-section,
  .toast-container,
  .quiz-modal-overlay,
  .modal {
    display: none !important;
  }

  body {
    background: white;
  }

  .app-container {
    padding: 0;
  }

  .quote-display-container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* =====================================================================
   REDUCED MOTION — respect user preference
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    animation: none;
  }
}
