/* =====================================================================
   Farm Empire Tycoon — design system
   "Ledger & Twine" — stone-paper ledger, barn-rust accent, mustard for
   price, sage for growth. Seasonal tint shifts the whole page as the
   year turns.
   ===================================================================== */

:root {
    /* Base palette — stone parchment + ledger ink */
    --bg:          #e7e2d1;
    --bg-deep:     #dbd3ba;
    --surface:     #f7f2e4;
    --surface-2:   #efe8d6;
    --border:      #c8c0a3;
    --border-soft: rgba(138, 51, 35, 0.20);
    --ink:         #2b2e22;
    --ink-strong:  #17190f;
    --muted:       #726f56;

    /* Growth / success (sage) — plants, in-season, positive comparisons */
    --green:       #5c7548;
    --green-deep:  #435530;
    --green-soft:  #e3e6d0;

    /* Price / cost (mustard) */
    --gold:        #b8842a;
    --gold-soft:   #f2e2bc;

    /* Loss / danger */
    --coral:       #c1553d;
    --coral-soft:  #f6e0da;

    /* Informational */
    --sky:         #5f7f92;
    --sky-soft:    #dde6e6;

    /* Brand / interactive (barn rust) — links, buttons, selection, focus */
    --rust:        #8a3323;
    --rust-deep:   #6c2818;
    --rust-soft:   #f0ddd2;

    /* Text sitting on a solid accent background */
    --on-accent:   #f6f1e2;

    /* Seasonal tint tokens — overridden by body.season-* (defaults to spring) */
    --tint:        #6e8a52;
    --tint-soft:   #e6e8d2;
    --tint-bg:     #e9e4d2;
    --tint-deep:   #445430;

    /* Spacing (4px base) */
    --s-2xs: 0.25rem;
    --s-xs:  0.5rem;
    --s-sm:  0.75rem;
    --s-md:  1rem;
    --s-lg:  1.5rem;
    --s-xl:  2rem;
    --s-2xl: 3rem;

    /* Type scale */
    --t-xs:  0.75rem;
    --t-sm:  0.875rem;
    --t-md:  1rem;
    --t-lg:  1.25rem;
    --t-xl:  1.75rem;
    --t-2xl: 2.5rem;
    --t-3xl: 3.4rem;

    /* Radius + shadow */
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  18px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(50, 42, 26, 0.10);
    --shadow-md: 0 4px 14px rgba(50, 42, 26, 0.12);
    --shadow-lg: 0 12px 40px rgba(50, 42, 26, 0.18);

    --font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}

/* ---------------------------------------------------------------------
   Seasonal tints — the UI is the weather. Swapped by UIManager via
   body.season-*; transitions on body/panels make the turn feel gradual.
   --------------------------------------------------------------------- */
body.season-spring {
    --tint:      #6e8a52;
    --tint-soft: #e6e8d2;
    --tint-bg:   #e8e3d0;
    --tint-deep: #445430;
}
body.season-summer {
    --tint:      #c99a35;
    --tint-soft: #f0e3bd;
    --tint-bg:   #ece1c8;
    --tint-deep: #8f6620;
}
body.season-fall {
    --tint:      #b1622f;
    --tint-soft: #eaddc9;
    --tint-bg:   #e9decb;
    --tint-deep: #7a3f1d;
}
body.season-winter {
    --tint:      #6f8494;
    --tint-soft: #dde3dd;
    --tint-bg:   #e1e0d0;
    --tint-deep: #465561;
}

/* ---------------------------------------------------------------------
   Reset + base
   --------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: var(--t-md);
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--tint-bg);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -10%, var(--tint-soft) 0%, transparent 65%),
        repeating-linear-gradient(0deg, transparent 0 34px, rgba(23, 25, 15, 0.035) 34px 35px);
    min-height: 100vh;
    transition: background-color 1.2s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink-strong);
    line-height: 1.2;
    font-weight: 700;
}

h2 { font-size: var(--t-xl); margin-bottom: var(--s-md); }
h3 { font-size: var(--t-lg); margin-bottom: var(--s-sm); }

a { color: var(--rust-deep); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.money { color: var(--green-deep); font-weight: 700; }
.loss  { color: var(--coral); font-weight: 700; }

.stat-value, .money, .loss, .price, .mp-price, .j-net, .numbers-summary,
.tile-value, .chip-total, .supplier-unit-price, .seed-cost, .qty-value,
.resume-stats, .supplier-total {
    font-variant-numeric: tabular-nums;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--s-lg);
}

/* ---------------------------------------------------------------------
   Panels — the paper cards everything sits on
   --------------------------------------------------------------------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--s-lg);
    transition: border-color 1.2s ease;
}

.panel-note { margin-bottom: var(--s-md); font-size: var(--t-sm); }

/* ---------------------------------------------------------------------
   Buttons + inputs
   --------------------------------------------------------------------- */
.btn {
    font-family: var(--font-body);
    font-size: var(--t-sm);
    font-weight: 700;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.6rem 1.1rem;
    min-height: 44px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease,
                background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover:not(:disabled) {
    border-color: var(--rust);
    background: var(--rust-soft);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.primary {
    background: var(--rust);
    border-color: var(--rust-deep);
    color: var(--on-accent);
}

.btn.primary:hover:not(:disabled) {
    background: var(--rust-deep);
    border-color: var(--rust-deep);
}

.btn.danger {
    border-color: var(--coral);
    color: var(--coral);
    background: var(--coral-soft);
}

.btn.danger:hover:not(:disabled) {
    background: var(--coral);
    color: var(--on-accent);
    border-color: var(--coral);
}

.btn.purchased {
    background: var(--green-soft);
    border-color: var(--green);
    color: var(--green-deep);
}

.text-input, .select-input, textarea {
    font-family: var(--font-body);
    font-size: var(--t-md);
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.65rem 0.9rem;
    min-height: 44px;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input:focus, .select-input:focus, textarea:focus {
    outline: none;
    border-color: var(--rust);
    box-shadow: 0 0 0 3px var(--border-soft);
}

/* ---------------------------------------------------------------------
   Landing — hero, ticker, drifting produce
   --------------------------------------------------------------------- */
header { margin-bottom: var(--s-md); }

.hero-header {
    position: relative;
    text-align: center;
    padding: var(--s-2xl) var(--s-lg);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(247, 242, 228, 0.6) 0%, var(--surface) 70%),
        linear-gradient(180deg, var(--tint-soft), var(--surface));
}

.hero-sun {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 132, 42, 0.26) 0%, rgba(184, 132, 42, 0) 68%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, var(--t-3xl));
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
}

.tagline {
    font-size: var(--t-lg);
    font-style: italic;
    font-family: var(--font-display);
    color: var(--muted);
    margin-top: var(--s-xs);
}

/* Quote ticker — CSS marquee, content duplicated in JS for a clean loop */
.quote-ticker {
    overflow: hidden;
    white-space: nowrap;
    padding: var(--s-xs) 0;
    margin-bottom: var(--s-lg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(247, 242, 228, 0.65);
}

.quote-track {
    display: inline-block;
    animation: ticker-scroll 60s linear infinite;
}

.quote-item { font-size: var(--t-sm); color: var(--ink); padding: 0 var(--s-md); }
.quote-item em { color: var(--muted); font-style: normal; }
.quote-sep { color: var(--gold); padding: 0 var(--s-xs); }

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

main { position: relative; }

/* Ambient drifting produce — behind the landing panels */
.produce-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.produce-backdrop .float {
    position: absolute;
    bottom: -60px;
    font-size: 2rem;
    opacity: 0;
    animation-name: float-up;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes float-up {
    0%   { transform: translateY(0) rotate(-6deg); opacity: 0; }
    8%   { opacity: 0.18; }
    88%  { opacity: 0.18; }
    100% { transform: translateY(-110vh) rotate(8deg); opacity: 0; }
}

main > section { position: relative; z-index: 1; margin-bottom: var(--s-lg); }

.story-intro p { font-size: var(--t-lg); line-height: 1.7; }

.game-objectives ul { list-style: none; }

.game-objectives li {
    padding: var(--s-xs) 0 var(--s-xs) 1.75rem;
    position: relative;
}

.game-objectives li::before {
    content: '🌱';
    position: absolute;
    left: 0;
    font-size: var(--t-sm);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--s-md);
}

.feature-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-md);
}

.feature-card h3 { font-size: var(--t-md); }
.feature-card p { font-size: var(--t-sm); color: var(--muted); }

.start-button {
    display: block;
    position: relative;
    z-index: 1;
    margin: var(--s-xl) auto;
    font-size: var(--t-lg);
    font-family: var(--font-display);
    padding: 1rem 3rem;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-md);
}

.start-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

footer {
    text-align: center;
    font-size: var(--t-sm);
    color: var(--muted);
    padding: var(--s-xl) 0 var(--s-md);
}

.footer-link { color: var(--rust-deep); }

/* ---------------------------------------------------------------------
   Shared modal scaffolding
   --------------------------------------------------------------------- */
.resume-modal, .feedback-modal, .day-modal, .seed-picker-modal, .ag-inspector-modal, .confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-md);
}

.resume-modal-backdrop, .feedback-modal-backdrop, .day-modal-backdrop, .seed-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 25, 15, 0.5);
    backdrop-filter: blur(3px);
}

.resume-modal-card, .feedback-modal-card, .day-modal-card, .seed-picker-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modal-pop 0.22s ease;
}

@keyframes modal-pop {
    from { transform: translateY(14px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Resume modal */
.resume-modal-card { text-align: center; }

.resume-snapshot {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-md);
    margin: var(--s-md) 0;
    text-align: left;
}

.resume-name { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; }
.resume-stats { font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-2xs); }
.resume-flavor { font-size: var(--t-sm); font-style: italic; margin-top: var(--s-xs); }

.resume-actions {
    display: flex;
    gap: var(--s-sm);
    justify-content: center;
    margin: var(--s-md) 0 var(--s-xs);
}

.resume-warn { font-size: var(--t-xs); color: var(--coral); }

/* ---------------------------------------------------------------------
   Setup wizard
   --------------------------------------------------------------------- */
.setup-screen {
    max-width: 860px;
    margin: 0 auto;
}

.setup-content h2 { text-align: center; margin-bottom: var(--s-lg); }

.setup-step { display: none; }
.setup-step.active { display: block; animation: step-in 0.25s ease; }

@keyframes step-in {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.setup-step h3 { margin-bottom: var(--s-sm); }
.setup-note { margin-bottom: var(--s-md); }

.setup-step .next-step { margin-top: var(--s-md); }

.name-input-row { display: flex; gap: var(--s-sm); align-items: stretch; }
.name-input-row .text-input { flex: 1; }
.name-input-row .btn { white-space: nowrap; }

/* Farm cards (step 1) */
.farm-options, .crop-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--s-md);
}

.farm-card, .crop-card {
    text-align: left;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-md);
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.farm-card:hover:not(.disabled), .crop-card:hover:not(.disabled) {
    border-color: var(--rust);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.farm-card.active, .crop-card.active {
    border-color: var(--rust-deep);
    background: var(--rust-soft);
}

.crop-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.farm-card-head { display: flex; align-items: center; gap: var(--s-sm); margin-bottom: var(--s-xs); }
.farm-icon, .crop-icon { font-size: 1.8rem; }
.farm-card h4, .crop-card h4 { font-size: var(--t-md); }
.farm-card p, .crop-card p { font-size: var(--t-sm); color: var(--muted); }

.farm-stats { display: flex; flex-wrap: wrap; gap: var(--s-2xs) var(--s-sm); margin-top: var(--s-xs); }
.farm-stat { font-size: var(--t-xs); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 2px 9px; }
.fs-label { color: var(--muted); margin-right: 4px; }

.crop-meta { font-size: var(--t-xs); color: var(--gold); font-weight: 700; margin-top: var(--s-2xs); }
.crop-desc { font-size: var(--t-sm); }

/* Difficulty (step 4) */
.difficulty-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-md);
}

.difficulty-option {
    text-align: left;
    padding: var(--s-md);
    border-width: 2px;
    min-height: auto;
}

.difficulty-option h4 { font-family: var(--font-display); margin-bottom: var(--s-2xs); }
.difficulty-option p { font-size: var(--t-sm); color: var(--muted); font-weight: 400; }

.difficulty-option.active {
    border-color: var(--rust-deep);
    background: var(--rust-soft);
}

/* Review (step 5) */
.review-content {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-md);
    margin-bottom: var(--s-md);
}

.review-content p { padding: var(--s-2xs) 0; }
.review-content span { font-weight: 800; color: var(--rust-deep); }

.review-buttons { display: flex; gap: var(--s-sm); }

/* ---------------------------------------------------------------------
   Game shell — header, sidebar, tabs
   --------------------------------------------------------------------- */
.game-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    padding: var(--s-md) var(--s-lg);
    margin-bottom: var(--s-md);
    position: sticky;
    top: var(--s-xs);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.game-stats { display: flex; flex-wrap: wrap; gap: var(--s-md); }

.stat-item { display: flex; flex-direction: column; }

.stat-label {
    font-size: var(--t-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--t-lg);
    font-weight: 700;
    color: var(--ink-strong);
}

.season-badge {
    background: var(--tint-soft);
    color: var(--tint-deep);
    border: 1px solid var(--tint);
    border-radius: var(--r-pill);
    padding: 0 0.75rem;
    font-size: var(--t-md);
    transition: background-color 1.2s ease, border-color 1.2s ease, color 1.2s ease;
}

.money-change { animation: money-pulse 0.5s ease; }

@keyframes money-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.14); color: var(--gold); }
    100% { transform: scale(1); }
}

.header-actions { display: flex; flex-wrap: wrap; gap: var(--s-xs); }
.header-actions .btn { padding: 0.45rem 0.85rem; }
.next-day-button { font-size: var(--t-md); }
.restart-button { color: var(--coral); }

.game-content {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: var(--s-md);
    align-items: start;
}

.game-menu {
    display: flex;
    flex-direction: column;
    gap: var(--s-xs);
    position: sticky;
    top: 92px;
}

.menu-button {
    text-align: left;
    width: 100%;
}

.menu-button.active {
    background: var(--rust);
    border-color: var(--rust-deep);
    color: var(--on-accent);
}

.game-tab { display: none; }
.game-tab.active { display: block; animation: step-in 0.2s ease; }

.game-tab > .panel, .game-tab .employee-card, .game-tab .marketing-card, .game-tab .upgrade-card {
    margin-bottom: var(--s-md);
}

/* ---------------------------------------------------------------------
   Farm tab
   --------------------------------------------------------------------- */
.farm-title-row {
    display: flex;
    align-items: baseline;
    gap: var(--s-sm);
    flex-wrap: wrap;
    margin-bottom: var(--s-md);
}

.farm-title-row h2 { margin-bottom: 0; }

.farm-type-chip {
    font-size: var(--t-xs);
    font-weight: 700;
    background: var(--tint-soft);
    color: var(--tint-deep);
    border: 1px solid var(--tint);
    border-radius: var(--r-pill);
    padding: 2px 12px;
}

/* Farm scene */
.farm-visual-panel {
    background: linear-gradient(180deg, var(--tint-soft) 0%, var(--surface) 85%);
    text-align: center;
}

.storefront-visual { display: flex; flex-direction: column; align-items: center; gap: var(--s-xs); }
.storefront-icon { font-size: 3.4rem; line-height: 1; }
.storefront-weather { font-size: var(--t-lg); }
.storefront-meta { display: flex; gap: var(--s-sm); align-items: center; }
.storefront-type { font-family: var(--font-display); font-weight: 700; }
.storefront-tier { font-size: var(--t-xs); color: var(--muted); }
.storefront-crowd { font-size: var(--t-sm); color: var(--muted); }
.season-day { font-size: var(--t-sm); color: var(--tint-deep); font-weight: 700; }

.storefront-rival {
    margin-top: var(--s-sm);
    width: min(320px, 100%);
}

.rival-label { font-size: var(--t-xs); color: var(--muted); }

.rival-bar, .rep-bar, .plot-progress {
    background: var(--bg-deep);
    border-radius: var(--r-pill);
    height: 8px;
    overflow: hidden;
}

.rival-bar-fill {
    height: 100%;
    background: var(--coral);
    border-radius: var(--r-pill);
    transition: width 0.4s ease;
}

.rep-bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: var(--r-pill);
    transition: width 0.4s ease;
}

.rep-tier { font-weight: 800; color: var(--gold); }
.rep-num { color: var(--muted); font-size: var(--t-sm); }

/* Plot grid — the centerpiece */
.plot-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-xs);
}

.plot-summary { font-size: var(--t-sm); color: var(--muted); }

.plot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: var(--s-sm);
    margin: var(--s-md) 0;
}

.plot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 104px;
    padding: var(--s-sm) var(--s-xs);
    border-radius: var(--r-md);
    border: 2px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    text-align: center;
    transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.plot-card:hover {
    transform: translateY(-2px);
    border-color: var(--rust);
    box-shadow: var(--shadow-sm);
}

.plot-card.empty {
    border-style: dashed;
    background: repeating-linear-gradient(45deg, var(--surface-2) 0 8px, rgba(23, 25, 15, 0.05) 8px 16px);
}

.plot-card.empty .plot-icon { opacity: 0.6; }

.plot-card.growing { background: linear-gradient(180deg, var(--surface) 0%, var(--green-soft) 100%); }

.plot-card.growing.ready {
    border-color: var(--gold);
    background: linear-gradient(180deg, var(--surface) 0%, var(--gold-soft) 100%);
    animation: ready-glow 2s ease-in-out infinite;
}

@keyframes ready-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 132, 42, 0.0); }
    50%      { box-shadow: 0 0 0 5px rgba(184, 132, 42, 0.20); }
}

.plot-icon { font-size: 1.7rem; line-height: 1.2; }
.plot-label { font-size: var(--t-xs); font-weight: 800; }
.plot-sub { font-size: var(--t-xs); color: var(--muted); }

.plot-progress { width: 80%; margin-top: 4px; height: 6px; }
.plot-progress.big { height: 10px; width: 100%; }

.plot-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--gold));
    border-radius: var(--r-pill);
    transition: width 0.4s ease;
}

/* Supply strip under the grid */
.supply-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-xs);
    border-top: 1px dashed var(--border);
    padding-top: var(--s-sm);
}

.supply-chip {
    font-size: var(--t-xs);
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--r-pill);
    padding: 3px 10px;
}

.supply-chip.low { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.supply-chip.out { border-color: var(--coral); background: var(--coral-soft); color: var(--coral); }
.supply-count { font-weight: 800; }

/* Market board */
.market-prices-list { display: flex; flex-direction: column; }

.market-price-row {
    display: grid;
    grid-template-columns: 1.2fr auto auto auto;
    gap: var(--s-sm);
    align-items: center;
    padding: var(--s-xs) var(--s-2xs);
    border-bottom: 1px dashed var(--border);
    font-size: var(--t-sm);
}

.market-price-row:last-child { border-bottom: none; }
.market-price-row.cant-grow { opacity: 0.5; }

.mp-crop { font-weight: 700; }
.mp-price { font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); text-align: right; }
.mp-unit { color: var(--muted); font-size: var(--t-xs); }

.price-tag {
    font-size: var(--t-xs);
    font-weight: 800;
    border-radius: var(--r-pill);
    padding: 2px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    justify-self: end;
}

.price-tag.in-season { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); }
.price-tag.premium { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

.mp-tag { justify-self: end; }

/* Overview tiles */
.farm-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--s-sm);
}

.overview-tile {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-sm);
    display: flex;
    flex-direction: column;
}

.overview-tile.warn { border-color: var(--gold); background: var(--gold-soft); }
.overview-tile.danger { border-color: var(--coral); background: var(--coral-soft); }

.tile-label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.tile-value { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; }
.tile-hint { font-size: var(--t-xs); color: var(--muted); }

/* News ticker + journal */
.news-ticker-list { max-height: 190px; overflow-y: auto; }

.news-entry {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--s-xs);
    padding: var(--s-xs) 0;
    border-bottom: 1px dashed var(--border);
    font-size: var(--t-sm);
}

.news-entry:last-child { border-bottom: none; }
.n-day { color: var(--muted); font-size: var(--t-xs); white-space: nowrap; }

.journal-list { max-height: 320px; overflow-y: auto; }

.journal-entry {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--s-sm);
    align-items: center;
    padding: var(--s-xs) var(--s-2xs);
    border-bottom: 1px dashed var(--border);
    font-size: var(--t-sm);
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: background-color 0.12s ease;
}

.journal-entry:hover { background: var(--surface-2); }
.journal-entry:last-child { border-bottom: none; }

.j-day { font-weight: 800; color: var(--rust-deep); white-space: nowrap; }
.j-narrative { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-net { font-weight: 800; white-space: nowrap; }
.j-net.profit { color: var(--green-deep); }
.j-net.loss { color: var(--coral); }

/* Progression card */
.progression-status {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-sm) var(--s-md);
    margin-bottom: var(--s-md);
}

.progression-status span { font-weight: 800; color: var(--rust-deep); }

.progression-item, .upgrade-item, .marketing-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--s-md);
    align-items: center;
    padding: var(--s-sm) 0;
    border-bottom: 1px dashed var(--border);
}

.progression-item:last-child, .upgrade-item:last-child, .marketing-item:last-child { border-bottom: none; }

.progression-info span, .upgrade-info span, .marketing-info span { font-weight: 800; }
.item-desc { font-size: var(--t-sm); color: var(--muted); }
.price { font-family: var(--font-display); font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ---------------------------------------------------------------------
   Care tab — booster chips
   --------------------------------------------------------------------- */
.booster-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--s-sm);
    margin-bottom: var(--s-md);
}

.booster-chip {
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-2);
    padding: var(--s-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.booster-chip:hover { transform: translateY(-1px); border-color: var(--rust); }

.booster-chip.on {
    border-color: var(--green-deep);
    background: var(--green-soft);
}

.booster-chip.off { opacity: 0.82; }

.chip-head { display: flex; align-items: center; gap: var(--s-xs); font-weight: 800; }
.chip-icon { font-size: 1.3rem; }
.chip-meta { font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.chip-total { font-weight: 800; color: var(--gold); }
.chip-bonus { font-size: var(--t-xs); font-weight: 800; color: var(--gold); }

.care-summary {
    border-top: 1px dashed var(--border);
    padding-top: var(--s-md);
    font-size: var(--t-sm);
}

.cons-line { display: flex; justify-content: space-between; padding: 2px 0; }
.cons-qty { font-weight: 800; }
.summary-label { font-weight: 800; color: var(--ink-strong); }
.summary-cons { color: var(--muted); }
.summary-conversion { color: var(--rust-deep); font-weight: 700; }

/* ---------------------------------------------------------------------
   Supplies tab
   --------------------------------------------------------------------- */
.market-banner {
    font-size: var(--t-sm);
    background: var(--sky-soft);
    border: 1px solid var(--sky);
    color: var(--sky);
    border-radius: var(--r-md);
    padding: var(--s-xs) var(--s-md);
    margin-bottom: var(--s-md);
}

.market-banner.hard {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold);
}

.market-banner:empty { display: none; }

.market-up { color: var(--coral); font-weight: 800; }
.market-down { color: var(--green-deep); font-weight: 800; }

.suppliers-list { display: flex; flex-direction: column; gap: var(--s-md); }

.supplier-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--s-md) var(--s-lg);
}

.supplier-row.not-used { opacity: 0.65; }
.supplier-row.is-premium { border-color: var(--gold); }

.supplier-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-xs);
}

.supplier-name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); }
.premium-star { color: var(--gold); }
.supplier-unit-price { font-weight: 800; color: var(--gold); }

.supplier-meta {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    flex-wrap: wrap;
    margin: var(--s-2xs) 0 var(--s-xs);
}

.supplier-desc { font-size: var(--t-sm); color: var(--muted); }

.recipe-status { font-size: var(--t-xs); font-weight: 800; border-radius: var(--r-pill); padding: 2px 10px; }
.recipe-status.in-recipe { background: var(--green-soft); color: var(--green-deep); }
.recipe-status.not-in-recipe { background: var(--surface-2); color: var(--muted); }

/* Basic / Premium tier switch */
.supplier-tier-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    overflow: hidden;
    cursor: pointer;
    font-size: var(--t-xs);
    font-weight: 800;
}

.supplier-tier-switch .tier-option { padding: 3px 12px; color: var(--muted); }
.supplier-tier-switch .tier-option.on { background: var(--green); color: var(--on-accent); }
.supplier-tier-switch.premium .tier-option.on { background: var(--gold); }
.supplier-tier-switch.locked { opacity: 0.6; cursor: not-allowed; }
.lock-icon { padding: 3px 8px; }

/* Bulk slider */
.supplier-slider-wrap { margin: var(--s-xs) 0; }

.supplier-slider {
    width: 100%;
    accent-color: var(--rust);
    height: 30px;
    cursor: pointer;
}

.supplier-quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--t-sm);
}

.qty-value { font-weight: 800; font-size: var(--t-md); }

.supplier-tier-badge {
    font-size: var(--t-xs);
    font-weight: 800;
    border-radius: var(--r-pill);
    padding: 2px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
}

.supplier-tier-badge.bulk1 { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); }
.supplier-tier-badge.bulk2 { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }

.supplier-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    margin-top: var(--s-xs);
}

.supplier-total { font-family: var(--font-display); font-weight: 700; }

/* ---------------------------------------------------------------------
   Employees tab
   --------------------------------------------------------------------- */
.employee-select-container {
    display: flex;
    gap: var(--s-sm);
    align-items: stretch;
    flex-wrap: wrap;
}

.employee-select-container .select-input { flex: 1; min-width: 240px; }

.employee-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-md);
    flex-wrap: wrap;
    padding: var(--s-sm) 0;
    border-bottom: 1px dashed var(--border);
}

.employee-item:last-child { border-bottom: none; }

.employee-info { display: flex; flex-direction: column; }
.employee-name { font-weight: 800; }
.employee-level { font-size: var(--t-xs); color: var(--gold); font-weight: 800; }
.employee-salary { font-size: var(--t-sm); color: var(--muted); }
.employee-actions { display: flex; gap: var(--s-xs); flex-wrap: wrap; }
.training-status { font-size: var(--t-xs); font-weight: 800; color: var(--sky); align-self: center; }

/* ---------------------------------------------------------------------
   Marketing tab
   --------------------------------------------------------------------- */
.marketing-status {
    font-size: var(--t-md);
    margin-bottom: var(--s-sm);
}

.marketing-status span { font-weight: 800; color: var(--rust-deep); }

/* ---------------------------------------------------------------------
   Day recap modal + weather tints
   --------------------------------------------------------------------- */
.day-modal-card { max-width: 640px; transition: background-color 0.5s ease; }

.day-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s-sm);
}

.day-modal-title { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 700; }

.day-modal-close, .feedback-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: var(--s-2xs) var(--s-xs);
    border-radius: var(--r-sm);
}

.day-modal-close:hover, .feedback-modal-close:hover { color: var(--coral); background: var(--surface-2); }

.day-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--s-md);
    border-top: 1px dashed var(--border);
    padding-top: var(--s-sm);
}

.day-modal-counter { font-size: var(--t-sm); color: var(--muted); }

.confirm-modal-card { max-width: 440px; }
.confirm-modal-card #confirmMessage { white-space: pre-line; }
.confirm-modal-footer { justify-content: flex-end; gap: var(--s-sm); }

/* Weather tints on the day card */
.day-modal-card.weather-rain  { background: linear-gradient(180deg, #e3ebeb 0%, var(--surface) 55%); }
.day-modal-card.weather-sunny { background: linear-gradient(180deg, #f3e6bd 0%, var(--surface) 55%); }
.day-modal-card.weather-cold  { background: linear-gradient(180deg, #e1e5e1 0%, var(--surface) 55%); }
.day-modal-card.weather-heat  { background: linear-gradient(180deg, #f0d9c2 0%, var(--surface) 55%); }

/* Day modal body content */
.day-modal-body .section { margin-bottom: var(--s-md); }
.day-modal-body .section:last-child { margin-bottom: 0; }
.day-modal-body .narrative { font-style: italic; font-family: var(--font-display); font-size: var(--t-md); }
.day-modal-body .event { padding: var(--s-2xs) 0; font-size: var(--t-sm); }

.harvest-lines { display: flex; flex-direction: column; gap: 2px; }
.harvest-line { display: flex; justify-content: space-between; font-size: var(--t-sm); }

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--s-xs);
}

.snapshot-tile {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-xs) var(--s-sm);
}

.snapshot-tile .label { font-size: var(--t-xs); color: var(--muted); display: block; }
.snapshot-tile .value { font-weight: 800; }

.numbers-summary { font-size: var(--t-md); }
.numbers-summary .profit { color: var(--green-deep); font-weight: 800; }
.numbers-summary .loss { color: var(--coral); font-weight: 800; }
.numbers-detail { font-size: var(--t-sm); color: var(--muted); }

/* Feedback bubbles in the day recap */
.feedback-bubble {
    border-radius: var(--r-md);
    padding: var(--s-xs) var(--s-sm);
    margin: var(--s-2xs) 0;
    font-size: var(--t-sm);
    border: 1px solid var(--border);
}

.feedback-bubble.positive { background: var(--green-soft); border-color: var(--green); }
.feedback-bubble.negative { background: var(--coral-soft); border-color: var(--coral); }

.feedback-bubble .who { font-weight: 800; }
.regular-badge {
    font-size: var(--t-xs);
    background: var(--gold-soft);
    color: var(--gold);
    border-radius: var(--r-pill);
    padding: 1px 8px;
    font-weight: 800;
}

.fix-hint { display: block; font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------------
   Seed picker + plot inspector
   --------------------------------------------------------------------- */
.seed-picker-card { max-width: 520px; }

.seed-picker-note { margin-bottom: var(--s-sm); font-size: var(--t-sm); }

.seed-list { display: flex; flex-direction: column; gap: var(--s-xs); }

.seed-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-sm);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.12s ease;
}

.seed-option:hover:not(.disabled) { border-color: var(--rust); transform: translateY(-1px); }
.seed-option.disabled { opacity: 0.5; cursor: not-allowed; }

.seed-icon { font-size: 1.7rem; }
.seed-info { flex: 1; }
.seed-name { font-weight: 800; }
.seed-cost { font-weight: 800; color: var(--gold); }
.seed-meta { font-size: var(--t-xs); color: var(--muted); }
.seed-blocked { font-size: var(--t-xs); color: var(--coral); font-weight: 700; }

.seed-plant-all {
    font-size: var(--t-xs);
    font-weight: 800;
    background: var(--rust);
    color: var(--on-accent);
    border: none;
    border-radius: var(--r-pill);
    padding: 4px 12px;
    cursor: pointer;
}

.seed-plant-all:hover { background: var(--rust-deep); }

.seed-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--s-sm);
    margin-top: var(--s-md);
}

/* Plot inspector (growing plot clicked) */
.plot-inspector-head {
    display: flex;
    align-items: center;
    gap: var(--s-sm);
    margin-bottom: var(--s-sm);
}

.plot-inspector-head h3 { margin-bottom: 0; }
.plot-inspector-bar { margin: var(--s-sm) 0; }
.plot-inspector p { font-size: var(--t-sm); padding: 2px 0; }

/* ---------------------------------------------------------------------
   Ag inspector modal
   --------------------------------------------------------------------- */
.ai-choices { display: flex; flex-direction: column; gap: var(--s-sm); margin-top: var(--s-md); }

.ai-choice {
    text-align: left;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s-sm) var(--s-md);
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ai-choice:hover { border-color: var(--rust); background: var(--rust-soft); }
.ai-choice-label { font-weight: 800; display: block; }
.ai-choice-desc { font-size: var(--t-sm); color: var(--muted); }

/* ---------------------------------------------------------------------
   Feedback modal
   --------------------------------------------------------------------- */
.feedback-modal-card { max-width: 520px; }

.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s-sm);
}

.feedback-field { margin: var(--s-md) 0; }
.feedback-field label { font-weight: 700; font-size: var(--t-sm); display: block; margin-bottom: var(--s-2xs); }

.feedback-type-group { display: flex; gap: var(--s-sm); flex-wrap: wrap; }

.feedback-type-option {
    display: flex;
    align-items: center;
    gap: var(--s-2xs);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: var(--s-2xs) var(--s-sm);
    cursor: pointer;
    font-size: var(--t-sm);
}

.feedback-charcount { text-align: right; font-size: var(--t-xs); color: var(--muted); margin-top: 2px; }
.feedback-context-note { font-size: var(--t-xs); }

.feedback-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--s-sm);
    margin-top: var(--s-md);
    border-top: 1px dashed var(--border);
    padding-top: var(--s-sm);
}

/* ---------------------------------------------------------------------
   Notifications
   --------------------------------------------------------------------- */
.notification {
    position: fixed;
    top: var(--s-md);
    right: var(--s-md);
    z-index: 2000;
    max-width: 340px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-left-width: 5px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: var(--s-sm) var(--s-md);
    font-size: var(--t-sm);
    font-weight: 700;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.notification.show { opacity: 1; transform: translateX(0); }

.notification-success { border-left-color: var(--green); }
.notification-error   { border-left-color: var(--coral); }
.notification-warning { border-left-color: var(--gold); }
.notification-info    { border-left-color: var(--sky); }

/* Stack subsequent notifications below the first */
.notification + .notification { margin-top: var(--s-xs); }

/* ---------------------------------------------------------------------
   Milestone celebration
   --------------------------------------------------------------------- */
.celebrate-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
    overflow: hidden;
}

.celebrate-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(184, 132, 42, 0.4) 0%, transparent 70%);
    animation: celebrate-flash 1.2s ease forwards;
}

@keyframes celebrate-flash {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    100% { opacity: 0; }
}

.celebrate-particle {
    position: absolute;
    top: -50px;
    font-size: 1.8rem;
    animation-name: confetti-fall;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
}

@keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateY(110vh) rotate(340deg); opacity: 0; }
}

/* ---------------------------------------------------------------------
   Tutorial coach
   --------------------------------------------------------------------- */
.tutorial-coach {
    position: fixed;
    bottom: var(--s-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    width: min(440px, calc(100vw - 2rem));
    background: var(--surface);
    border: 1.5px solid var(--rust);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--s-md);
}

.tutorial-coach-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--s-xs);
}

.tutorial-coach-step { font-size: var(--t-xs); font-weight: 800; color: var(--rust-deep); text-transform: uppercase; letter-spacing: 0.05em; }

.tutorial-coach-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}

.tutorial-coach-body { font-size: var(--t-sm); }

.tutorial-coach-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--s-sm);
    gap: var(--s-sm);
}

.tutorial-dots { display: flex; gap: 5px; }
.tutorial-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.tutorial-dot.on { background: var(--rust); }

/* TutorialManager renders .arcade-button classes — style them as .btn */
.arcade-button {
    font-family: var(--font-body);
    font-size: var(--t-sm);
    font-weight: 700;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.arcade-button.primary { background: var(--rust); border-color: var(--rust-deep); color: var(--on-accent); }
.arcade-button:hover { border-color: var(--rust); }

.tutorial-highlight {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: var(--r-sm);
    animation: highlight-pulse 1.6s ease-in-out infinite;
}

@keyframes highlight-pulse {
    0%, 100% { outline-color: var(--gold); }
    50%      { outline-color: rgba(184, 132, 42, 0.35); }
}

/* ---------------------------------------------------------------------
   Error fallback
   --------------------------------------------------------------------- */
.error-message { font-family: var(--font-body) !important; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .game-content { grid-template-columns: 1fr; }

    .game-menu {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: var(--s-2xs);
    }

    .menu-button { width: auto; white-space: nowrap; }
}

@media (max-width: 768px) {
    .container { padding: var(--s-sm); }

    .game-header { position: static; padding: var(--s-sm); }
    .game-stats { gap: var(--s-md); }
    .stat-value { font-size: var(--t-md); }

    .header-actions { width: 100%; }
    .next-day-button { flex: 1; }

    .plot-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
    .plot-card { min-height: 92px; }

    .progression-item, .upgrade-item, .marketing-item {
        grid-template-columns: 1fr;
        gap: var(--s-xs);
        text-align: left;
    }

    .market-price-row { grid-template-columns: 1fr auto auto; }
    .market-price-row .mp-unit { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .tagline { font-size: var(--t-md); }
    .story-intro p { font-size: var(--t-md); }

    .plot-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-xs); }
    .plot-icon { font-size: 1.4rem; }

    .farm-overview { grid-template-columns: 1fr 1fr; }
    .snapshot-grid { grid-template-columns: 1fr 1fr; }

    .resume-actions, .review-buttons { flex-direction: column; }
    .resume-actions .btn, .review-buttons .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   Reduced motion — kill the ambience, keep the function
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .produce-backdrop, .quote-track { display: none; }
    html { scroll-behavior: auto; }
}
