:root {
  color-scheme: light;
  --forest-950: #102c20;
  --forest-900: #173f2b;
  --forest-800: #1c5035;
  --forest-700: #246b44;
  --leaf-500: #67ba48;
  --leaf-400: #83cf60;
  --cream: #f7f5ea;
  --paper: #fffef8;
  --soil: #8d5b38;
  --soil-dark: #6f432a;
  --ink: #1c2b22;
  --muted: #6d796f;
  --line: #dfe5d9;
  --gold: #f5c34d;
  --shadow: 0 15px 40px rgba(25, 53, 34, .1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--cream); font-size: 18px; }
body { margin: 0; color: var(--ink); background: var(--cream); min-width: 320px; line-height: 1.45; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #84d8ff; outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template: 72px 1fr / 218px 1fr; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: var(--forest-950); color: white; box-shadow: 0 2px 15px rgba(0,0,0,.18); z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; color: white; text-decoration: none; font-size: 1.28rem; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; background: linear-gradient(145deg, var(--leaf-400), #3e9c3e); color: #14331e; font-weight: 900; transform: rotate(-5deg); box-shadow: inset 0 1px rgba(255,255,255,.45); }
.brand-mark span { transform: rotate(5deg); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.wallet-pill { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; color: #ffe8a3; background: rgba(255,255,255,.08); font-size: .78rem; font-variant-numeric: tabular-nums; }
.status-pill { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #cde0d2; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7fe95d; box-shadow: 0 0 0 4px rgba(127,233,93,.12); }
.account-button { display: flex; align-items: center; gap: 9px; padding: 0; color: white; background: none; border: 0; cursor: pointer; text-align: left; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #f2c35b; color: #3f3010; font-size: .75rem; font-weight: 900; }
.account-copy { display: grid; line-height: 1.05; gap: 3px; }
.account-copy small { color: #a9c1af; font-size: .68rem; }
.account-copy strong { font-size: .82rem; }

.sidebar { display: flex; flex-direction: column; justify-content: space-between; padding: 22px 14px 18px; background: var(--forest-900); color: white; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 9px; padding: 11px 13px; border: 0; border-radius: 10px; color: #c9dbce; background: transparent; cursor: pointer; text-align: left; text-decoration: none; font-weight: 650; font-size: .88rem; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active { color: #183522; background: var(--leaf-400); box-shadow: inset 0 1px rgba(255,255,255,.42); }
.nav-count { min-width: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.16); text-align: center; font-size: .67rem; }
.sidebar-foot { display: grid; gap: 4px; padding: 13px; border-top: 1px solid rgba(255,255,255,.09); color: #9cb6a3; font-size: .68rem; }
.sidebar-foot strong { color: white; letter-spacing: .13em; font-size: .72rem; }

.main-content { min-width: 0; padding: 30px clamp(20px, 3vw, 44px) 50px; overflow: hidden; }
.welcome-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.eyebrow { margin: 0 0 5px; color: var(--forest-700); font-size: .69rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow.light { color: #b9d8c0; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 1.12rem; letter-spacing: -.015em; }
.subtle { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.weather-chip { display: flex; align-items: center; gap: 11px; min-width: 230px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.6); }
.weather-chip > span:first-child { font-size: 1.55rem; }
.weather-chip > span:last-child { display: grid; gap: 2px; }
.weather-chip small { color: var(--muted); font-size: .68rem; }
.weather-chip strong { font-size: .84rem; }

.pool-card { display: grid; grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(110px, .55fr)) auto; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; color: white; background: linear-gradient(120deg, #173f2b 0%, #246d42 58%, #33854d 100%); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.pool-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: 13%; top: -165px; border: 36px solid rgba(255,255,255,.05); border-radius: 50%; pointer-events: none; }
.pool-intro { display: flex; align-items: center; gap: 13px; }
.pool-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.13); font-size: 1.45rem; }
.pool-intro h2 { font-size: 1.1rem; }
.pool-stat { display: grid; gap: 3px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.pool-stat small { color: #b9d8c0; font-size: .68rem; }
.pool-stat strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pool-details { border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 10px 13px; color: white; background: rgba(255,255,255,.09); cursor: pointer; font-weight: 700; font-size: .78rem; }
.pool-details:hover { background: rgba(255,255,255,.16); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; }
.right-column { display: grid; align-content: start; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 25px rgba(28,54,36,.055); }
.farm-panel { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.panel-heading.compact { margin-bottom: 14px; }
.capacity-label { margin-left: 7px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.secondary-button, .wide-button { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--forest-800); background: white; cursor: pointer; font-size: .75rem; font-weight: 750; }
.card-link { display: block; text-align: center; text-decoration: none; }
.secondary-button:hover, .wide-button:hover { border-color: #adbea9; background: #f7faf4; }

.field { min-height: 480px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 22px; border: 8px solid #d2b587; border-radius: 18px; background-color: #c4e9a4; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px), radial-gradient(circle at 15% 20%, rgba(255,255,255,.33) 0 2px, transparent 3px); background-size: 24px 24px, 24px 24px, 55px 55px; box-shadow: inset 0 0 30px rgba(44,97,42,.12); position: relative; }
.plot { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 13px; border: 2px solid rgba(91,58,33,.15); border-radius: 45% 45% 18px 18px / 28% 28% 18px 18px; color: white; background: repeating-linear-gradient(0deg, var(--soil), var(--soil) 13px, var(--soil-dark) 14px, var(--soil-dark) 16px); box-shadow: inset 0 6px 18px rgba(255,255,255,.08), 0 7px 0 rgba(83,54,31,.16); position: relative; overflow: hidden; text-align: center; }
.plot::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 105%, rgba(0,0,0,.22), transparent 56%); pointer-events: none; }
.plot > * { position: relative; z-index: 1; }
.plot-number { position: absolute; top: 9px; left: 11px; color: rgba(255,255,255,.7); font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.empty-plot { width: 72px; height: 72px; display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.36); border-radius: 50%; color: white; background: rgba(255,255,255,.08); cursor: pointer; font-size: 2rem; transition: transform .15s ease, background .15s ease; }
.empty-plot:hover { transform: translateY(-2px) scale(1.03); background: rgba(255,255,255,.16); }
.empty-label { margin-top: 9px; font-size: .72rem; font-weight: 750; color: #f7eadb; }
.crop-emoji { font-size: 3.25rem; filter: drop-shadow(0 5px 2px rgba(44,24,12,.25)); animation: sway 3s ease-in-out infinite; transform-origin: bottom center; }
@keyframes sway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }
.crop-name { margin: 5px 0 2px; font-size: .9rem; font-weight: 850; }
.crop-state { color: #f1ddc5; font-size: .67rem; }
.progress-track { width: 84%; height: 7px; margin: 10px 0 7px; border-radius: 999px; background: rgba(37,18,8,.35); overflow: hidden; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d7f181, #7de65a); }
.crop-timer { font-size: .7rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.harvest-button { margin-top: 10px; padding: 8px 15px; border: 0; border-radius: 999px; color: #17351f; background: linear-gradient(#fff3a4, #f4c84a); box-shadow: 0 3px 0 #b07d18; cursor: pointer; font-size: .73rem; font-weight: 900; }
.harvest-button:hover { transform: translateY(-1px); }
.harvest-button:disabled { opacity: .55; cursor: wait; }
.field-legend { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 15px; color: var(--muted); font-size: .68rem; }
.legend-dot { width: 8px; height: 8px; display: inline-block; margin-right: 5px; border-radius: 50%; }
.legend-dot.growing { background: #69bc4d; }.legend-dot.perfect { background: #f2bc3d; }.legend-dot.empty { background: #a47751; }
.loading-state { grid-column: 1 / -1; display: grid; place-items: center; align-content: center; color: #436743; }
.loading-sprout { font-size: 2.4rem; animation: pulse 1.5s ease infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }

.inventory-panel, .orders-panel { padding: 19px; }
.text-button { border: 0; color: var(--forest-700); background: none; cursor: pointer; font-size: .7rem; font-weight: 800; }
.empty-copy { margin: 22px 0; color: var(--muted); font-size: .78rem; text-align: center; }
.inventory-list { display: grid; gap: 8px; }
.inventory-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px; border-radius: 11px; background: #f2f4eb; }
.inventory-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: white; font-size: 1.25rem; }
.inventory-copy { display: grid; gap: 2px; }
.inventory-copy strong { font-size: .78rem; }.inventory-copy small { color: var(--muted); font-size: .65rem; }
.inventory-actions { display: grid; justify-items: end; gap: 5px; }.inventory-qty { font-weight: 850; font-size: .8rem; }
.sell-button { padding: 5px 9px; border: 0; border-radius: 7px; color: white; background: var(--forest-700); cursor: pointer; font-size: .65rem; font-weight: 800; }
.sell-button:disabled { opacity: .45; cursor: not-allowed; }
.order-slots { padding: 5px 8px; border-radius: 999px; color: var(--forest-700); background: #e8f3df; font-size: .64rem; font-weight: 800; }
.league-strip { display: flex; align-items: center; gap: 9px; margin: -2px 0 8px; padding: 9px 10px; border-radius: 10px; color: #5c4712; background: #fbf1c9; }
.league-strip > span:last-child { display: grid; gap: 1px; }.league-strip small { font-size: .59rem; text-transform: uppercase; letter-spacing: .07em; }.league-strip strong { font-size: .7rem; }
.order-list { display: grid; }
.order-card { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px 0; border: 0; border-top: 1px solid var(--line); color: inherit; background: transparent; text-align: left; }
button.order-card { cursor: pointer; }button.order-card:hover:not(:disabled) { background: #f7faf4; }button.order-card:disabled { cursor: default; }
.order-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f2ead7; }
.order-copy { display: grid; gap: 2px; min-width: 0; }
.order-copy strong { font-size: .76rem; }.order-copy span { color: var(--muted); font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.order-copy small { color: #b25b45; font-size: .61rem; }
.order-reward { display: grid; justify-items: center; color: #8a6411; font-size: .68rem; }
.order-reward small { color: var(--muted); font-size: .56rem; }.order-ready small { color: #397437; font-weight: 800; }.order-refreshing { opacity: .62; }
.premium-order { opacity: .78; }.premium-lock { padding: 5px 7px; border-radius: 7px; color: #674e08; background: #f8df8f; font-size: .61rem; font-weight: 850; }
.wide-button { width: 100%; margin-top: 9px; }

.progression-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.progression-card { min-width: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 13px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 25px rgba(28,54,36,.045); }
.progression-card .secondary-button { grid-column: 1 / -1; width: 100%; }
.progression-card p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.48; }
.progression-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #edf5e6; font-size: 1.7rem; }
.market-card .progression-icon { background: #fff1bc; }.collection-card .progression-icon { background: #e9e6f8; }.capacity-card .progression-icon { background: #e4eef8; }

.seed-dialog { width: min(680px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 30px)); padding: 0; border: 0; border-radius: 20px; background: transparent; box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.seed-dialog::backdrop { background: rgba(10,30,19,.68); backdrop-filter: blur(3px); }
.dialog-card { padding: 22px; border-radius: 20px; background: var(--paper); }
.compact-dialog { max-width: 470px; margin: auto; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; }
.dialog-copy, .demo-warning { color: var(--muted); font-size: .77rem; line-height: 1.5; }.demo-warning { color: #8b5b21; }
.quantity-field { display: grid; gap: 6px; margin: 15px 0; color: var(--forest-800); font-size: .72rem; font-weight: 800; }.quantity-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; font: inherit; }
.confirmation-summary { display: grid; gap: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--forest-800); background: #f4f7ee; font-size: .76rem; line-height: 1.45; }
.confirmation-summary strong { font-size: 1rem; }.confirmation-summary .warning { color: #a14a32; }
.action-button { color: white; border-color: var(--forest-700); background: var(--forest-700); }.action-button:hover { color: white; background: var(--forest-900); }.action-button:disabled { opacity: .5; cursor: wait; }
.close-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; cursor: pointer; font-size: 1.35rem; line-height: 1; }
.seed-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 520px; overflow: auto; padding-right: 3px; }
.seed-option { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; text-align: left; }
.seed-option:hover:not(:disabled) { border-color: var(--leaf-500); background: #f6fbf2; }
.seed-option:disabled { opacity: .48; cursor: not-allowed; }
.seed-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #eef5e7; font-size: 1.55rem; }
.seed-copy { display: grid; gap: 3px; min-width: 0; }.seed-copy strong { font-size: .82rem; }.seed-copy span { color: var(--muted); font-size: .66rem; }
.seed-available { color: var(--forest-700); font-size: .67rem; font-weight: 800; }

.seed-hub-dialog { width: min(980px, calc(100vw - 28px)); }
.seed-hub-heading { margin-bottom: 11px; }.seed-hub-heading .dialog-copy { margin: 4px 0 0; }
.seed-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: #edf1e8; }
.seed-tabs button { flex: 1; padding: 9px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 800; }
.seed-tabs button.active { color: white; background: var(--forest-700); box-shadow: 0 3px 8px rgba(24,70,43,.18); }
.seed-toolbar { display: grid; grid-template-columns: minmax(170px, 1fr) 150px auto; align-items: end; gap: 10px; margin: 12px 0; }
.seed-toolbar label { display: grid; gap: 4px; color: var(--muted); font-size: .62rem; font-weight: 800; }
.seed-toolbar input, .seed-toolbar select { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: .72rem; }
.collection-total { padding-bottom: 9px; color: var(--forest-700); font-size: .68rem; font-weight: 850; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: min(520px, 58vh); overflow: auto; padding: 2px 4px 4px 2px; }
.collection-seed { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 9px; padding: 11px; border: 1px solid var(--line); border-top-width: 4px; border-radius: 12px; background: white; }
.collection-seed.rarity-common { border-top-color: #94a39a; }.collection-seed.rarity-uncommon { border-top-color: #58a95a; }.collection-seed.rarity-rare { border-top-color: #4e8bd7; }.collection-seed.rarity-epic { border-top-color: #925cc3; }.collection-seed.rarity-legendary { border-top-color: #e1a72f; }.collection-seed.rarity-mythical { border-top-color: #e65e9b; }
.collection-seed.locked { background: #f4f4ef; }.collection-seed.locked .collection-seed-icon { filter: grayscale(.85); opacity: .63; }
.collection-seed-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: #f0f5ea; font-size: 1.45rem; }
.collection-seed-copy { min-width: 0; display: grid; gap: 2px; }.collection-seed-copy strong { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.collection-seed-copy small { color: var(--muted); font-size: .61rem; }
.seed-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 3px; }
.seed-stat { padding: 6px; border-radius: 7px; color: var(--muted); background: #f4f7f0; font-size: .58rem; text-align: center; }.seed-stat strong { display: block; color: var(--ink); font-size: .67rem; }
.seed-card-actions { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 3px; }
.seed-card-actions button { flex: 1; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--forest-700); background: white; cursor: pointer; font-size: .62rem; font-weight: 850; }
.seed-card-actions button.primary { color: white; border-color: var(--forest-700); background: var(--forest-700); }.seed-card-actions button:disabled { opacity: .45; cursor: not-allowed; }
.acquisition-badge { grid-column: 1 / -1; justify-self: start; margin-top: 3px; padding: 4px 6px; border-radius: 6px; color: #5d4930; background: #eee6d5; font-size: .56rem; font-weight: 800; }
.collection-empty { grid-column: 1 / -1; padding: 50px 20px; color: var(--muted); text-align: center; font-size: .8rem; }

.activity-dialog { width: min(780px, calc(100vw - 28px)); }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.activity-card { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.activity-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #edf5e6; font-size: 1.45rem; }
.activity-card strong { font-size: .83rem; }.activity-card p { margin: 4px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.45; }
.activity-card .wide-button, .activity-card > small, .provider-status { grid-column: 1 / -1; }
.activity-reward { align-self: center; justify-self: end; color: #8a6411; font-weight: 900; }
.activity-card > small { color: var(--muted); font-size: .65rem; text-align: center; }
.provider-status { justify-self: start; padding: 5px 7px; border-radius: 7px; color: #68736a; background: #eef1ec; font-size: .61rem; font-weight: 800; }
.faucet-card { border-color: #bad5ae; background: #f8fcf5; }
.league-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 13px; }
.league-metric { display: grid; gap: 3px; padding: 11px; border-radius: 10px; background: #f4f7ee; }
.league-metric small { color: var(--muted); font-size: .62rem; }.league-metric strong { color: var(--forest-800); font-size: .88rem; }
.league-progress { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: #e2e8dd; overflow: hidden; }.league-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--leaf-500), var(--gold)); }
.league-divisions { display: grid; gap: 7px; }
.league-division { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.league-division.current { border-color: #d1a83e; background: #fff9e6; }.league-division.reached .league-rank { background: var(--forest-700); color: white; }
.league-rank { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #edf1e8; font-size: .78rem; font-weight: 900; }
.league-division-copy { display: grid; gap: 2px; }.league-division-copy strong { font-size: .76rem; }.league-division-copy small { color: var(--muted); font-size: .62rem; }
.league-bonus { color: var(--forest-700); font-size: .7rem; font-weight: 850; }

.page-main { overflow: visible; font-size: 1rem; line-height: 1.5; }
.route-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.route-heading .subtle { max-width: 760px; line-height: 1.55; }
.page-loading, .page-error { min-height: 330px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; text-align: center; }
.page-loading p, .page-error p { color: var(--muted); }
.page-error > span { font-size: 2.2rem; }
.page-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.page-stat-grid article { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 7px 20px rgba(28,54,36,.04); }
.page-stat-grid small { color: var(--muted); font-size: .66rem; }.page-stat-grid strong { color: var(--forest-800); font-size: 1.12rem; }
.page-panel { padding: 21px; }
.page-order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.page-order { padding: 14px 7px; }
.page-toolbar { grid-template-columns: minmax(200px, 1fr) 180px; }
.page-collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: none; overflow: visible; }
.collection-summary { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; padding: 18px 20px; border-radius: 15px; color: white; background: linear-gradient(120deg, var(--forest-900), var(--forest-700)); }
.collection-summary > strong { font-size: 1.65rem; }.collection-summary > span { color: #c9dfce; font-size: .76rem; }.collection-summary > div { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }.collection-summary > div span { display: block; height: 100%; background: var(--gold); }
.shop-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.shop-feature { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.shop-feature > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #fff1bc; font-size: 1.65rem; }.shop-feature p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }.shop-feature .secondary-button { grid-column: 1 / -1; }
.league-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; margin-bottom: 16px; padding: 22px; border-radius: 17px; color: white; background: linear-gradient(120deg, #4d3910, #876215 56%, #b18424); box-shadow: var(--shadow); }
.league-hero h2 { font-size: 1.6rem; }.league-hero p { margin: 4px 0 0; color: #f2dfac; }.league-hero .eyebrow { color: #f2dfac; }.league-hero-bonus { display: grid; gap: 2px; text-align: right; }.league-hero-bonus small { color: #f2dfac; font-size: .65rem; }.league-hero-bonus strong { font-size: 1.6rem; }.league-hero .league-progress { grid-column: 1 / -1; background: rgba(255,255,255,.18); }.league-hero > small { grid-column: 1 / -1; color: #f2dfac; }
.page-activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-boundary { margin: 14px 2px 0; }

/* Dedicated pages prioritize comfortable reading over dashboard density. */
.page-main small { font-size: .74rem; line-height: 1.45; }
.page-main .eyebrow { font-size: .76rem; }
.page-main .subtle { font-size: .96rem; }
.page-main .panel-heading { margin-bottom: 21px; }
.page-main .order-copy strong,
.page-main .collection-seed-copy strong,
.page-main .activity-card strong,
.page-main .league-division-copy strong { font-size: .88rem; }
.page-main .order-copy span,
.page-main .collection-seed-copy small,
.page-main .activity-card p,
.page-main .league-division-copy small { font-size: .76rem; line-height: 1.5; }
.page-main .order-reward,
.page-main .league-bonus { font-size: .8rem; }
.page-main .seed-stat { font-size: .7rem; }
.page-main .seed-stat strong { font-size: .78rem; }
body[data-page="seeds"] .page-collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seed-mastery { grid-column: 1 / -1; display: grid; gap: 7px; margin-top: 4px; padding: 10px; border: 1px solid #e4d9af; border-radius: 9px; background: #fbf7e8; }
.seed-mastery-heading, .seed-mastery-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seed-mastery-heading strong { color: #5c4712; font-size: .8rem; white-space: nowrap; }
.seed-mastery-heading span { color: #876215; font-size: .68rem; font-weight: 800; text-align: right; }
.seed-mastery-track { width: 100%; height: 9px; border: 0; border-radius: 999px; background: #e2dcc5; box-shadow: inset 0 1px 2px rgba(61,48,17,.12); overflow: hidden; appearance: none; }
.seed-mastery-track::-webkit-progress-bar { border-radius: inherit; background: #e2dcc5; }
.seed-mastery-track::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, #d9a92e, var(--gold)); }
.seed-mastery-track::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, #d9a92e, var(--gold)); }
.seed-mastery-meta { color: var(--muted); font-size: .66rem; }
.seed-mastery-meta span:last-child { color: #876215; font-weight: 750; text-align: right; }
.page-main .acquisition-badge,
.page-main .provider-status,
.page-main .premium-lock { font-size: .7rem; }
.page-main .secondary-button,
.page-main .wide-button,
.page-main .text-button { min-height: 40px; font-size: .8rem; }
.page-main input,
.page-main select { min-height: 42px; font-size: .88rem; }
.page-main .page-stat-grid article { padding: 18px; }
.page-main .page-panel { padding: 24px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; max-width: calc(100vw - 30px); padding: 11px 16px; border-radius: 10px; color: white; background: #173f2b; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .2s ease; font-size: .78rem; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .content-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr 1fr; }
  .pool-card { grid-template-columns: 1.3fr repeat(2, .6fr) auto; }
  .pool-stat:nth-of-type(4) { display: none; }
  .progression-grid { grid-template-columns: 1fr 1fr; }
  .collection-grid, .page-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="seeds"] .page-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-order-list { grid-template-columns: 1fr; }.page-stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .topbar { height: 64px; padding: 0 16px; position: sticky; top: 0; }
  .status-pill, .account-copy { display: none; }
  .sidebar { position: fixed; inset: auto 0 0; z-index: 5; display: block; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); box-shadow: 0 -5px 20px rgba(0,0,0,.14); }
  .sidebar nav { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .nav-item { display: flex; flex-direction: column; gap: 3px; padding: 8px 2px; text-align: center; font-size: .66rem; line-height: 1.15; }
  .nav-count, .sidebar-foot { display: none; }
  .main-content { padding: 22px 14px 122px; }
  .welcome-row { align-items: start; flex-direction: column; }
  .weather-chip { width: 100%; min-width: 0; }
  .pool-card { grid-template-columns: 1fr 1fr; padding: 17px; }
  .pool-intro { grid-column: 1 / -1; }.pool-stat { padding-left: 0; border-left: 0; }.pool-details { display: none; }
  .right-column { grid-template-columns: 1fr; }
  .field { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 620px; padding: 13px; gap: 11px; }
  .plot { min-height: 175px; }
  .panel-heading { align-items: start; }.panel-heading > .secondary-button { display: none; }
  .seed-list { grid-template-columns: 1fr; }
  .progression-grid { grid-template-columns: 1fr; }
  .seed-toolbar { grid-template-columns: 1fr 120px; }.collection-total { grid-column: 1 / -1; padding: 0; }
  .collection-grid { grid-template-columns: 1fr; }
  body[data-page="seeds"] .page-collection-grid { grid-template-columns: 1fr; }
  .seed-tabs { overflow-x: auto; }.seed-tabs button { min-width: 105px; }
  .activity-grid { grid-template-columns: 1fr; }.league-overview { grid-template-columns: 1fr 1fr; }.league-metric:last-of-type { grid-column: 1 / -1; }
  .route-heading { align-items: start; flex-direction: column; }.route-heading .weather-chip { width: 100%; }.page-stat-grid, .shop-feature-grid, .page-activity-grid { grid-template-columns: 1fr; }.page-collection-grid { grid-template-columns: 1fr; }.page-toolbar { grid-template-columns: 1fr 120px; }.league-hero { grid-template-columns: 1fr; }.league-hero-bonus { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
