:root {
    color-scheme: light;
    --paper: #f8f7ee;
    --ink: #233f33;
    --muted: #56695d;
    --green: #2c684c;
    --mint: #e2eedf;
    --line: #dfe6d9;
    --white: #fffef9;
    --gold: #f8e4b4;
    --radius: 23px;
    font: 16px/1.48 "Nunito", "Trebuchet MS", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "DM Serif Text", Georgia, serif; font-weight: 700; line-height: 1.07; }
h1 { font-size: clamp(2.35rem, 5vw, 4.35rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -.02em; }
h3 { font-size: 1.06rem; }
p { color: var(--muted); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .54; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #a9752d; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.bar { background: var(--white); border-bottom: 1px solid var(--line); }
.bar-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; font-size: 1.9rem; font-weight: 900; letter-spacing: -.07em; text-decoration: none; }
.mark { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 13px; background: var(--mint);
    color: var(--green); font-size: 1.35rem; margin-right: .55rem; }
.dot { color: #6e9d69; }
#account { display: flex; align-items: center; gap: 1rem; font-weight: 700; }
#account span { max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { padding-block: 2.35rem 3.8rem; }
.heading { margin: 0 0 1.5rem; }
.heading p { margin-top: .55rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.stack { display: grid; gap: 1rem; min-width: 0; }
.card { padding: clamp(1rem, 2.5vw, 1.55rem); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.card > :not(:first-child) { margin-top: .8rem; }
.scenic { padding: 0; overflow: hidden; }
.scenic > p, .scene-footer { padding: 0 1.1rem 1rem; }
.scene { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 8.1;
    background: #95c996; }
.scene.compact { aspect-ratio: 16 / 9; }
.landscape, .scene-tint { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.landscape { object-fit: cover; object-position: center 13%; }
.scene-tint { z-index: -1; background: linear-gradient(0deg, #102f3739, transparent 58%); }
.scene.peach .landscape { filter: sepia(.56) hue-rotate(338deg) saturate(1.22); }
.scene.peach .scene-tint { background: linear-gradient(150deg, #f8b59b5e, #e9925b27); }
.scene.night .landscape { filter: hue-rotate(45deg) brightness(.52) saturate(.76); }
.scene.night .scene-tint { background: linear-gradient(150deg, #22265162, #352f6c5c); }
.scene-pet { width: clamp(110px, 28%, 200px); aspect-ratio: 1; object-fit: contain; align-self: end; margin-bottom: 6%;
    filter: drop-shadow(0 10px 8px #233c3459); animation: float 3.7s ease-in-out infinite; }
.scene-star { position: absolute; color: #fffbdd; text-shadow: 0 2px 9px #517358; }
.star-one { top: 27%; left: 32%; font-size: 1.6rem; }
.star-two { top: 43%; right: 30%; font-size: 1.2rem; }
.scene-object { position: absolute; left: 19%; bottom: 13%; display: grid; place-items: center; width: 51px; height: 51px;
    border-radius: 14px; background: #f8dc93; color: #79542d; font-size: 2rem; box-shadow: 0 6px 12px #3252414d; }
.scene-object.plant { background: #e2ecd1; color: #346b46; }
.egg { display: grid; place-items: center; width: clamp(75px, 19%, 112px); aspect-ratio: .82; margin-top: 7%;
    border-radius: 54% 54% 47% 47% / 62% 62% 41% 41%; background: radial-gradient(at 31% 26%, #fffaf2, #f4dcca 69%, #dda989);
    color: #bc744c; font-size: 1.8rem; box-shadow: 0 13px 16px #274c465b; animation: float 3.7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.scene-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.timer, .code { font-variant-numeric: tabular-nums; font-weight: 800; }
.code { display: block; width: fit-content; overflow-wrap: anywhere; letter-spacing: .08em; padding: .55rem .8rem; border-radius: 12px; background: var(--mint); }
.welcome { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 5vw, 3.5rem); }
.welcome-art { overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: #e9efde; }
.welcome-art .scene { aspect-ratio: 16 / 8.5; }
.welcome-text { padding: clamp(1.3rem, 4vw, 2.35rem); }
.welcome-text p { margin-top: .75rem; max-width: 28rem; }
.auth-card { padding: clamp(1.3rem, 4vw, 2.1rem); }
.narrow { max-width: 610px; margin-inline: auto; }
.field { display: grid; gap: .35rem; min-width: 0; font-size: .91rem; font-weight: 700; }
form { display: grid; gap: .85rem; }
form .btn { justify-self: start; }
input, select { width: 100%; min-height: 44px; padding: .56rem .7rem; border-radius: 11px; border: 1px solid #aebfae;
    background: #fff; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: .55rem .83rem;
    border: 1px solid transparent; border-radius: 12px; font-weight: 800; line-height: 1.2; text-decoration: none; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:not(:disabled):hover { background: #22543b; }
.btn.secondary { background: #f3f6ef; border-color: #dce7d9; color: var(--ink); }
.btn.secondary:not(:disabled):hover, .tab:hover { background: var(--mint); }
.text-button { border: 0; background: transparent; color: var(--green); padding: .55rem .15rem; font-weight: 800; text-decoration: underline; }
.notice { margin-top: .8rem; padding: .8rem 1rem; border-radius: 12px; background: var(--mint); color: var(--ink); font-weight: 700; }
.notice.error { background: #fce6df; color: #7b3229; }
.actions, .tabs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tab { padding: .55rem .82rem; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink);
    font-weight: 700; min-height: 43px; }
.tab.active { background: var(--mint); border-color: #acc6a9; color: var(--green); }
.admin-tabs { margin-bottom: 1rem; }
.wallet { display: inline-flex; align-items: center; gap: .4rem; width: fit-content; padding: .33rem .65rem; background: var(--gold);
    color: #6e4d1d; border-radius: 999px; font-weight: 800; }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.meters > div { border-radius: 12px; background: #f3f6ef; padding: .65rem; min-width: 0; font-size: .89rem; }
.meters strong { display: block; font-size: 1.1rem; }
progress { width: 100%; height: .65rem; border: 0; display: block; background: #e4e9dd; border-radius: 999px; accent-color: var(--green); }
progress::-webkit-progress-bar { background: #e4e9dd; border-radius: 999px; }
progress::-webkit-progress-value { background: #70a37e; border-radius: 999px; }
progress::-moz-progress-bar { background: #70a37e; border-radius: 999px; }
.checklist, .history { list-style: none; padding: 0; margin: 0; }
.checklist li, .history li { border-top: 1px solid var(--line); padding: .48rem 0; }
.checklist span { display: inline-block; min-width: 1.35rem; color: var(--green); font-weight: 900; }
.history small { display: block; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.product { min-width: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 15px; background: #fafaf4; }
.product h3 { margin: .15rem 0 .25rem; }
.product p { font-size: .88rem; }
.product small { display: block; margin-top: .35rem; color: var(--muted); font-weight: 700; }
.product .actions { margin-top: .7rem; }
.product-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .45rem; border-radius: 12px; background: var(--mint); font-size: 1.4rem; }
.task-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .9rem; font-weight: 700; }
.task-status > span:not(.wallet) { color: var(--muted); }
.task-options { display: flex; flex-wrap: wrap; min-width: 0; gap: .6rem 1rem; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .85rem; }
.task-options legend { padding-inline: .3rem; font-size: .92rem; font-weight: 700; }
.check-option { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.check-option input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: .2rem; accent-color: var(--green); }
.nursery-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.nursery-list li { background: var(--mint); border-radius: 999px; padding: .4rem .7rem; font-weight: 700; }
.plots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.plot { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fafaf4; }
.plot-scene { display: grid; place-items: center; position: relative; isolation: isolate; min-height: 105px; overflow: hidden;
    background: linear-gradient(#a9d7ed 0 38%, #bada93 38% 100%); }
.plot-scene::before { content: ''; position: absolute; z-index: -1; inset: 28% -15% -40%; border-radius: 50%;
    background: #7fb275; transform: rotate(-10deg); }
.plot-scene.forest::after { content: ''; z-index: -1; position: absolute; bottom: 0; left: 8%; width: 22%; height: 67%;
    background: #4e8d65; clip-path: polygon(50% 0, 84% 37%, 69% 37%, 95% 67%, 76% 67%, 100% 94%, 0 94%, 24% 67%, 5% 67%, 31% 37%, 16% 37%); }
.plot-scene.square { background: linear-gradient(#b8deed 0 42%, #ded2ab 42% 100%); }
.plot-scene.square::before { background: #eadcbc; inset: 57% -12% -40%; }
.plot-scene.hill { background: linear-gradient(#c5daef 0 34%, #a2c3a5 34% 100%); }
.plot-scene.hill::before { transform: rotate(13deg); background: #72a397; inset: 21% -12% -40%; }
.plot-info { display: flex; flex: 1; flex-direction: column; align-items: start; gap: .4rem; padding: .75rem; }
.plot-info p { font-size: .86rem; flex: 1; }
.plot-info .btn { font-size: .82rem; padding-inline: .46rem; }
.lot-marker { display: grid; place-items: center; background: #fff7d3; color: #475d39; border: 1px solid #ddd2a2;
    width: 40px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 4px 7px #294a3b42; }
.house-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.house-offer .btn { margin-top: .55rem; }
.house-model { width: 76px; height: 66px; position: relative; display: inline-block; flex: none; filter: drop-shadow(0 4px 4px #294a3b38); }
.house-model i { position: absolute; display: block; }
.house-roof { inset: 1px 0 auto; height: 36px; background: #be7157; clip-path: polygon(50% 0, 100% 86%, 93% 100%, 7% 100%, 0 86%); z-index: 2; }
.house-wall { inset: 29px 8px 2px; background: #fff0c8; border: 1px solid #e2cb9b; border-radius: 4px; }
.house-door { inset: 41px 17px 2px auto; width: 14px; border-radius: 6px 6px 0 0; background: #78a082; }
.house-window { inset: 42px auto auto 17px; width: 16px; aspect-ratio: 1; background: #abd1dc; border: 2px solid #fff8de; border-radius: 3px; }
.scene-house { position: absolute; right: 10%; bottom: 12%; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.stat span { display: block; color: var(--muted); font-weight: 700; }
.stat strong { display: block; font-size: 1.8rem; line-height: 1; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .91rem; }
th, td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); }
.inline-form { display: flex; align-items: end; flex-wrap: wrap; }
.inline-form .field { flex: 1; min-width: 11rem; }
hr { border: 0; border-top: 1px solid var(--line); }
.muted { color: var(--muted); }
@media (max-width: 760px) {
    .wrap { width: calc(100% - 28px); }
    main { padding-top: 1.35rem; }
    .layout, .welcome { grid-template-columns: minmax(0, 1fr); }
    .welcome-art .scene { aspect-ratio: 16 / 6.5; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bar-inner { min-height: 61px; }
}
@media (max-width: 390px) {
    .products { grid-template-columns: minmax(0, 1fr); }
    .meters > div { padding: .42rem; }
}
@media (max-width: 570px) {
    .plots { grid-template-columns: minmax(0, 1fr); }
    .plot { display: grid; grid-template-columns: minmax(86px, .8fr) minmax(0, 1.45fr); }
    .scene-house { transform: scale(.72); transform-origin: bottom right; }
}
@media (prefers-reduced-motion: reduce) { .scene-pet, .egg { animation: none; } }
