[hidden]{display:none!important}#account-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 100%,#a6cf65 0,transparent 60%),#76d0e8}.account-card{width:min(440px,100%);padding:30px;display:grid;gap:12px;border:4px solid #8f5f2b;border-radius:24px;background:#fff7dc;box-shadow:0 10px 0 #67452433;color:#54391f}.account-logo{font-size:56px;text-align:center}.account-card h1{margin:0;text-align:center;font-size:30px;color:#47742b}.account-card p{margin:0}.account-card label{font-weight:bold;margin-top:10px}.account-card input{min-height:48px;border:2px solid #bea276;border-radius:10px;padding:10px;font:inherit;background:white;color:#302818}.account-card small{font-size:13px;line-height:1.5}.account-submit,.account-toggle{padding:13px;border-radius:12px;font:inherit;font-weight:700;cursor:pointer;min-height:48px}.account-submit{background:#658e38;border:2px solid #46692a;color:white}.account-toggle{background:#f3db9e;color:#603d21;border:2px solid #ac7a3b}.account-card :focus-visible{outline:3px solid #397cba;outline-offset:3px}#account-error{color:#922b27}.privacy,.version{text-align:center}.version{font-size:12px;color:#765d38}#cloud-status{position:fixed;top:4px;left:50%;transform:translateX(-50%);z-index:10000;background:#fff6deed;color:#5b4225;border:1px solid #ae834b;padding:5px 12px;border-radius:12px;font-size:12px;max-width:90vw;text-align:center;pointer-events:none}.game{padding-top:20px!important}

.admin-shortcut{display:inline-flex;align-items:center;vertical-align:middle;margin:4px;background:#fff4d5;color:#4c361f;padding:8px 12px;border:2px solid #9b794a;border-radius:10px;text-decoration:none;font-weight:700;min-height:44px}.admin-shortcut:focus-visible{outline:3px solid #146b96;outline-offset:3px}

#cloud-status[data-state="error"],#cloud-status[data-state="offline"],#cloud-status[data-state="session"],#cloud-status[data-state="conflict"]{background:#fff0ce;color:#7e321e;border:2px solid #b36f37;font-weight:700;padding:9px 14px;box-shadow:0 3px 12px #60351433}
#cloud-status[data-state="saved"]{border-color:#6b8a49;color:#36582b}
.cloud-retry-tab{display:block;margin:54px auto 8px;min-height:44px;touch-action:manipulation}

.visual-quick-tools{display:flex;justify-content:center;gap:10px;margin:0 auto 6px}
.visual-quick-tools button{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:7px;border-radius:50%;border:2px solid #8a6336;background:#fff1c7;color:#493722;box-shadow:0 2px 0 #294e3560}
.visual-quick-tools button svg{display:block;width:100%;height:100%}
:is(.visual-quick-tools,.connected-quick-tools) button[data-stock]::after{
  content:attr(data-stock);position:absolute;top:-4px;right:-5px;display:grid;place-items:center;
  min-width:19px;min-height:19px;padding:1px 4px;border:1px solid #825d35;border-radius:12px;
  background:#ffe19a;color:#463019;font-size:11px;font-weight:800;line-height:1;
  font-variant-numeric:tabular-nums;pointer-events:none;
}
.visual-quick-tools button[aria-pressed=true]{background:#e3f7a7;border-color:#416723;box-shadow:0 0 0 2px #ffed91}
.visual-quick-tools button:disabled{background:#f4e6bc;cursor:default}
.visual-quick-tools button:disabled svg{opacity:.55}
.visual-quick-tools button:focus-visible{outline:3px solid #214d39;outline-offset:2px}
.visual-quick-tools .seed-shortcut{width:auto;min-width:44px;padding:0 12px;border-radius:22px;font:700 .875rem/1.15 system-ui,sans-serif;touch-action:manipulation}
.seed-choice[aria-pressed=true]{outline:2px solid #6b8a49;outline-offset:-2px}

.shop-purchase{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.shop-purchase label{display:flex;align-items:center;gap:.35rem;font-size:.82rem;color:#52422d}
.shop-purchase select{min-width:3.4rem;min-height:2.75rem;padding:.3rem;color:#3c2f20;background:#fff9e8;border:1px solid #9f8354;border-radius:.45rem;font:inherit}
.shop-purchase button{min-height:2.75rem;white-space:nowrap}

.social-dialog [data-social-close]{min-width:44px;min-height:44px;font-size:1.4rem;border:0;border-radius:10px;background:#fff1ca;color:#5e4a24;cursor:pointer}
.social-dialog form{display:grid;gap:8px;margin:12px 0}
.social-dialog label{display:grid;gap:4px;font-weight:700}
.social-dialog input,.social-dialog select{width:100%;min-height:44px;border:1px solid #9f8354;border-radius:8px;padding:7px;background:#fff9e8;color:#3c2f20;font:inherit;font-size:16px}
.social-dialog .item{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.social-dialog .item strong{flex:1}
.social-dialog [data-social-refresh]{margin-top:12px}
.social-status{position:sticky;top:0;z-index:2;margin:0 0 12px;padding:10px;background:#eef5da;color:#354b22;border:1px solid #91a667;border-radius:8px}
.social-status.social-error{background:#fff0ce;color:#7e321e;border-color:#b36f37}

.topbar.topbar-with-presence {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}
.topbar-with-presence .online-count {
  display: inline-flex;
  align-items: center;
  color: #5e4a24;
  font-size: .875rem;
  font-weight: 700;
}
.farm-one .topbar-with-presence .online-count {
  color: #ffe6a2;
}
.farm-one .farm-controls,
.farm-one .farm-bottom,
.farm-one > footer {
  display: none !important;
}
@media (max-width: 1000px) {
  .topbar.topbar-with-presence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .topbar-with-presence .online-count {
    justify-content: center;
    font-size: .75rem;
    text-align: center;
  }
  .topbar.topbar-with-presence .coins {
    grid-column: 2;
  }
  .topbar.topbar-with-presence .crystal-stat {
    grid-column: 3;
  }
}
@media (max-width: 760px) {
  .topbar .crystal-stat {
    gap: 5px;
    padding: 5px;
  }
  .topbar .crystal-stat > span { font-size: 1rem; }
  .topbar .crystal-stat > div { min-width: 0; }
  .topbar .crystal-stat strong {
    font-size: .875rem;
    overflow-wrap: anywhere;
  }
  .topbar .crystal-stat em { display: none; }
}

/* On touch screens, stacked warnings can cover the entire menu bar. */
@media (max-width: 760px), (pointer: coarse) {
  .resource-alerts {
    position: static;
  }
}

#farm-loading{position:fixed;inset:0;z-index:10010;display:grid;place-items:center;padding:16px;overflow:auto;background:radial-gradient(ellipse at 50% 30%,#4f773b,#213e2d)}
.farm-entry-card,.game-dialog.farm-celebration{width:min(100%,560px);border:3px solid #755027;border-radius:20px;background:#fff4d7;color:#4d361d;box-shadow:0 12px 36px #1b261a55;overflow:hidden}
.farm-entry-art{display:block;width:100%;height:auto;max-height:46dvh;object-fit:cover;background:#8bb85c}
.farm-entry-copy{display:grid;justify-items:center;gap:10px;padding:clamp(16px,4vw,26px);text-align:center}
.farm-entry-copy strong,.farm-entry-copy h2{font-family:Georgia,serif;font-size:clamp(23px,5vw,32px);line-height:1.1;margin:0;color:#304f27}
.farm-entry-kicker{font-size:12px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#76552a}
.farm-loading-track{position:relative;width:min(180px,72%);height:5px;margin:4px 0;overflow:hidden;border-radius:9px;background:#e0c58d}
.farm-loading-track::after{content:"";position:absolute;inset:0 auto 0 0;width:40%;border-radius:inherit;background:#547d38;animation:farm-loading-slide 1.25s ease-in-out infinite alternate}
@keyframes farm-loading-slide{to{transform:translateX(150%)}}
@media(prefers-reduced-motion:reduce){.farm-loading-track::after{animation:none}}
.game-dialog.farm-celebration{padding:0;width:min(calc(100% - 28px),560px);max-height:calc(100dvh - 28px);overflow:auto}
.farm-celebration p{margin:0;max-width:34ch;line-height:1.45}
.farm-celebration button{min-height:44px;margin-top:3px}

.social-feature{margin:12px 0;padding:10px 12px;border:1px solid #b69763;border-radius:10px;background:#fff5da}
.social-feature summary{min-height:44px;align-content:center;cursor:pointer;font-weight:700}
.visit-map{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;padding:12px;background:#b6d979;border:1px solid #79974f;border-radius:12px}
.visit-garden{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:#774927;border-radius:7px}
.visit-plot{display:grid;place-items:center;min-height:44px;margin:0;padding:0;border:0;border-radius:4px;background:#aa7348;color:#fff4da;font-size:1.2rem}
button.visit-plot{cursor:pointer;background:#e6be77;color:#36251b}
button.visit-plot:focus-visible{outline:2px solid #203b1f;outline-offset:1px}

button.visit-plot[aria-pressed="true"]{background:#e0eb91;box-shadow:inset 0 0 0 2px #405b24}
.raid-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
.raid-controls p{margin:0}

/* Shared menu density for both farms. */
.compact-categories{gap:6px;margin:0 0 12px}
.compact-categories button{min-height:44px;padding:6px 11px;font-size:.83rem;touch-action:manipulation}
.compact-categories [aria-pressed="true"]{outline:none;box-shadow:inset 0 0 0 2px #73983c}
.compact-categories button:focus-visible{outline:2px solid #465f32;outline-offset:2px}
#missions-list{display:grid;gap:6px}
#missions-list .mission-item{margin:0;padding:7px 9px;gap:8px}
#missions-list .mission-item button{min-height:44px;padding:5px 9px}
#objectives-drawer .missions{margin-top:12px}
.window-content .animal-purchase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.window-content .animal-purchase-grid .item{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:9px;min-width:0;margin:0}
.animal-purchase-grid .item-info{flex:1;min-width:0}
.animal-purchase-grid .action{min-height:44px;white-space:normal;font-size:.82rem;padding:6px}
.game-dialog:has(#helper-panel:not([hidden])),
#helper-menu.helper-dialog {
  box-sizing:border-box;width:min(1020px,calc(100% - 16px));max-width:none;max-height:calc(100dvh - 16px)
}
:is(.game-dialog:has(#helper-panel:not([hidden])),#helper-menu.helper-dialog) > .window-content{padding:clamp(8px,2vw,18px)}
#helper-menu.helper-dialog .play-dialog-actions{display:none}
#helper-panel:not([hidden]),#helper-menu-options{display:grid;gap:8px}
.helper-intro{margin:0}
.helper-team{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.window-content .helper-role{
  margin:0;padding:10px;min-width:0;border:1px solid var(--book-edge,#c6a66b);border-radius:10px
}
.helper-role > p{margin:6px 0}
.helper-premium-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:8px}
.helper-premium-fields .helper-choice{margin:0}
.helper-premium .helper-payment{gap:6px}
.helper-premium .helper-payment button{flex:1 1 145px;white-space:normal}
#helper-panel > .helper-seed,#helper-menu-options > .helper-seed{max-inline-size:none}
@media(min-width:621px){
  #helper-panel > .helper-seed,#helper-menu-options > .helper-seed{
    grid-template-columns:auto minmax(0,28rem);align-items:center;gap:10px;justify-content:start
  }
}
@media(max-width:620px){
  .helper-team{gap:6px}
  .helper-team .helper-role{padding:6px}
  .helper-team h3,.helper-premium h3{font-size:1rem}
  .helper-team .helper-offer{gap:3px;margin-top:5px;padding-top:5px}
  .helper-team .helper-payment{display:grid;grid-template-columns:1.25fr 1fr;gap:3px;width:100%}
  .window-content .helper-team .helper-payment button{min-width:0;padding-inline:2px;font-size:.78rem;line-height:1.15;overflow-wrap:anywhere}
  .helper-premium-fields{grid-template-columns:1fr;gap:5px}
  .window-content .helper-premium-fields .helper-seed{grid-template-columns:minmax(0,6.3rem) minmax(0,1fr);align-items:center;max-inline-size:none}
  .helper-premium .helper-payment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .window-content .helper-premium .helper-payment button{min-width:0;padding:4px 3px;font-size:.76rem;line-height:1.15}
}
.helper-role header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}
.helper-role :is(header h3,header p){margin:0}
.helper-role p,.helper-intro{font-size:.85rem}
.helper-role :is(#helper-status,#care-helper-status){padding:0;border:0;background:transparent;font-weight:700}
.helper-seed,.play-list label.helper-seed{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;max-inline-size:28rem}
.helper-seed select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font-size:16px}
.helper-choice{position:relative;display:grid;min-width:0;margin-bottom:8px;border-radius:8px}
.helper-choice-value{
  min-height:44px;align-content:center;box-sizing:border-box;padding:8px 32px 8px 10px;
  background:var(--book-page,#fff9e8);border:1px solid var(--book-edge,#9f8354);border-radius:inherit;
  font-size:16px;font-weight:650;line-height:1.35;overflow-wrap:anywhere;color:var(--book-ink,inherit)
}
.helper-choice::after{
  content:"";position:absolute;right:12px;top:50%;width:7px;height:7px;
  border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-70%) rotate(45deg);
  pointer-events:none
}
.helper-choice select{position:absolute;inset:0;height:100%;opacity:0;cursor:pointer}
.helper-choice:focus-within{outline:2px solid var(--book-cover,#2e6649);outline-offset:2px}
.helper-offer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid #c6a66b}
.helper-offer button{min-height:44px;padding:6px 8px}
@media(max-width:760px),(pointer:coarse){
  .game .farm-scene>.game-menu{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .game .farm-scene>.game-menu button{min-height:48px;touch-action:manipulation}
}
@media(max-width:620px){
  .window-content .item:has(> .shop-purchase, > .sale-actions > .shop-purchase) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 10px;
  }
  .window-content .item:has(> .shop-purchase, > .sale-actions > .shop-purchase) > .item-info {
    min-width: 0;
    overflow-wrap: break-word;
  }
  .window-content .item:has(> .shop-purchase, > .sale-actions > .shop-purchase) > :is(.shop-purchase, .sale-actions) {
    grid-column: 1 / -1;
  }
  .window-content .shop-purchase {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
  }
  .window-content .shop-purchase select { font-size: 1rem; }
  .window-content .shop-purchase .action {
    justify-self: end;
    max-width: 100%;
    padding: 6px 8px;
    white-space: normal;
  }
  .window-content .animal-purchase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* The map uses the room left by the HUD and its menus. */
.farm-scene #farm-canvas{position:relative;height:var(--fitted-map-height,530px)!important;min-height:180px;aspect-ratio:auto}
.scene-inspection{position:absolute;left:10px;bottom:10px;z-index:30;max-width:min(310px,calc(100% - 20px));padding:9px 12px;border:2px solid #a5793e;border-radius:12px;background:#fff4d9f5;color:#4d391e;box-shadow:0 3px 9px #43351f30;font:700 14px/1.4 system-ui,sans-serif;pointer-events:none}
.viewport-toggle{min-width:44px;min-height:44px;border:2px solid #9a7039;border-radius:10px;background:#fff1cd;color:#52391e;font:700 20px system-ui;cursor:pointer;touch-action:manipulation}
#farm-canvas>.viewport-toggle,.farm-scene>.viewport-toggle{position:absolute;top:12px;right:12px;z-index:32}
.viewport-toggle:focus-visible{outline:3px solid #416f38;outline-offset:3px}
.game-fullscreen{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-height:100dvh!important;height:100dvh!important;padding:8px!important;margin:0!important;border:0!important;border-radius:0!important;overflow:auto;background:#9ed2b2}
.game-fullscreen:not(:fullscreen){position:fixed!important;inset:0;z-index:10001}
.game-fullscreen .farm{margin:0!important}.game-fullscreen .farm-heading{margin:2px 0}
@media(max-width:760px),(pointer:coarse){.mobile-camera{padding:6px}.mobile-camera p{display:none}.mobile-zoom{margin-top:4px}.scene-inspection{top:68px;bottom:auto;font-size:13px}}
.visual-quick-tools button[aria-disabled=true]{opacity:.65}

.community-dialog .compact-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.community-dialog label{display:grid;gap:6px;font-weight:700;min-width:0}
.community-dialog select{width:100%;min-width:0;min-height:44px;font:inherit;font-size:16px;padding:8px;background:#fff9e8;color:#4d391e;border:1px solid #b28c53;border-radius:9px}
.ranking-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:auto;color:#4d391e}
.ranking-table caption{text-align:left;font-weight:800;padding:10px 0}
.ranking-table th,.ranking-table td{text-align:left;padding:9px 5px;border-bottom:1px solid #c9ad76}
.ranking-table td:nth-child(2){overflow-wrap:anywhere;max-width:145px}
.ranking-table td:last-child{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.daily-shortcut{margin:8px 0;min-height:44px}.daily-progress{margin:12px 0}.daily-progress progress{width:100%;height:14px;accent-color:#6a8a3f}
.daily-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;list-style:none;padding:0;margin:18px 0}
.daily-week li{padding:9px 2px;text-align:center;border:1px solid #b9a66f;border-radius:8px;background:#f3e5bf;font-size:12px;font-weight:700}
.daily-week .completed{background:#d6e9ad;border-color:#789241}.daily-week .today{outline:2px solid #9b6a31;outline-offset:1px}
.daily-reward{padding:12px;border:1px solid #b79b58;border-radius:10px;background:#f8e7a7;font-weight:700}
.community-dialog [data-community-refresh]{min-height:44px;margin-top:10px}
@media(max-width:380px){.ranking-table{font-size:12px}.ranking-table td:nth-child(2){max-width:95px}.ranking-table th,.ranking-table td{padding:9px 3px}}
.community-dialog [data-community-close]{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:2px solid #713c24;border-radius:12px;background:linear-gradient(#eaa46a,#b75637);color:#fff5db;font-size:1.9rem;cursor:pointer}
.community-dialog [data-community-close]:focus-visible{outline:3px solid #58773e;outline-offset:3px}

/* The quick tools and centered tray float over the map. */
#completed-achievements li{margin:6px 0}
.game .has-compact-menu{position:relative}
.game .has-compact-menu>.farm-action-dock{
 position:absolute;inset:auto 8px max(8px,env(safe-area-inset-bottom));margin-inline:auto;
 width:max-content;max-width:calc(100% - 16px);display:flex;align-items:center;justify-content:center;gap:8px;z-index:89;
}
.game .has-compact-menu .farm-action-dock .visual-quick-tools{margin:0;gap:8px;min-width:0}
.game .farm-action-dock .visual-quick-tools button{min-width:44px;min-height:44px;touch-action:manipulation}
.game .farm-action-dock .farm-menu-toggle{display:grid;place-items:center;gap:0;flex:0 0 48px;width:48px;min-width:48px;height:48px;margin:0;padding:5px;border:2px solid #926631;border-radius:14px;background:linear-gradient(#fff4d3,#edcb87);color:#563f20;box-shadow:0 2px 0 #3f532d55;touch-action:manipulation;cursor:pointer}
.farm-menu-toggle svg{width:23px;height:23px}
.farm-menu-toggle small{font:700 10px/1.1 system-ui,sans-serif}
.farm-menu-toggle:focus-visible{outline:3px solid #386d43;outline-offset:3px}
.game .has-compact-menu>.game-menu[hidden]{display:none!important}
.game .has-compact-menu>.game-menu:not([hidden]){
 position:absolute;inset:auto 8px max(66px,calc(env(safe-area-inset-bottom) + 58px));z-index:90;
 width:max-content;max-width:calc(100% - 16px);margin:0 auto;padding:6px;gap:6px;
 display:flex;flex-wrap:wrap;justify-content:center;box-sizing:border-box;
 border:2px solid #97703d;border-radius:14px;background:#f5d697;box-shadow:0 5px 15px #29472c66;
 animation:menu-slide-in .16s ease-out;
}
.game .has-compact-menu>.game-menu button{flex:0 0 76px;min-width:76px;min-height:62px;max-width:88px;margin:0;padding:5px 3px;transform:none;touch-action:manipulation}
.game .has-compact-menu>.game-menu small{white-space:normal}
@media(max-width:760px),(pointer:coarse){
 .game .has-compact-menu .vale-map-sectors,.game .has-compact-menu .mobile-sectors,.game .has-compact-menu .mobile-camera p{display:none!important}
 .game .farm-action-dock .seed-shortcut{width:auto;max-width:min(150px,calc(100vw - 202px));min-width:68px;padding:7px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
 .game .has-compact-menu>.game-menu:not([hidden]){flex-wrap:nowrap;justify-content:flex-start;overflow:auto;overscroll-behavior-x:contain;touch-action:pan-x}
 .game .has-compact-menu>.game-menu button{flex-basis:68px;min-width:68px;max-width:68px}
 .game .has-compact-menu>.game-menu button>span{font-size:23px}
 .game .has-compact-menu>.game-menu small{font-size:10px}
 .game .has-compact-menu .compact-camera{position:absolute;top:8px;right:8px;left:auto;z-index:20;display:flex;align-items:center;gap:4px;margin:0;padding:0;width:max-content;max-width:none;border:0;background:transparent;box-shadow:none}
 .game .has-compact-menu .compact-camera .mobile-zoom{display:flex;gap:4px;margin:0}
 .game .has-compact-menu .compact-camera button{min-width:44px;min-height:44px;margin:0;padding:5px;border:1px solid #a48854;border-radius:8px;background:#fff2d3;color:#4f6034;font-size:16px;touch-action:manipulation}
}
@keyframes menu-slide-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.game .has-compact-menu>.game-menu{animation:none}}

/* Touch view opens close enough to play; pinch explores the same world as desktop. */
@media(max-width:760px),(pointer:coarse){
 .game{padding:4px!important;padding-top:max(4px,env(safe-area-inset-top))!important}
 .game .topbar.topbar-with-presence{grid-template-columns:minmax(70px,.75fr) minmax(95px,1fr) minmax(80px,.8fr);padding:7px 9px;gap:5px 8px;border-radius:12px}
 .game .topbar .brand{grid-column:1;min-width:0;font-size:18px;line-height:1}
 .game .topbar .brand>span:first-child{display:none}
 .game .topbar .brand small{font-size:11px}
 .game .topbar .player{grid-column:2 / 4;min-width:0;gap:6px}
 .game .topbar .avatar{width:30px;height:30px;font-size:20px;flex:none}
 .game .topbar .player-info{flex:1;min-width:0}
 .game .topbar .player-info strong{font-size:12px;line-height:1.15;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .game .topbar .player-info small{font-size:10px}
 .game .topbar .progress{height:6px;margin:4px 0 1px}
 .game .topbar .online-count{grid-column:1;grid-row:2;font-size:10px}
 .game .topbar .coins{grid-column:2;grid-row:2;font-size:12px;padding:5px;white-space:nowrap;margin:0}
 .game .topbar .crystal-stat{grid-column:3;grid-row:2;min-width:0;padding:3px 6px;gap:4px}
 .game .topbar .crystal-stat small{font-size:9px}
 .game .topbar .crystal-stat strong{font-size:12px}
 .game .topbar .crystal-stat em{display:none}
 .game .layout{margin-top:6px}
 .game .farm-heading,.game.farm-one .section-title{display:none!important}
 .game .farm{padding:0!important}
 .game .farm-scene.phaser-ready{border-radius:10px}
 .game .farm-scene #farm-canvas canvas{touch-action:none}
 .game .camera-bar [data-camera="in"],.game .camera-bar [data-camera="out"],.game .mobile-zoom [data-camera-zoom="in"],.game .mobile-zoom [data-camera-zoom="out"]{display:none}
 .game .scene-caption{top:9px;left:7px;padding:6px;font-size:9px;max-width:calc(100% - 116px)}
 .game .camera-bar{top:7px;right:7px;gap:4px}
 .game .has-compact-menu>.farm-action-dock{min-height:56px;padding:5px 5px max(5px,env(safe-area-inset-bottom))}
 .game .farm-menu-toggle{height:44px;min-height:44px}
 #cloud-status[data-state="saved"]{top:auto;bottom:max(3px,env(safe-area-inset-bottom));font-size:10px;padding:2px 7px;opacity:0;animation:saved-status-fade 3s forwards}
 .game-fullscreen{padding:0!important;overflow:hidden}
 .game-fullscreen .topbar{border-radius:0!important}
 .game-fullscreen .layout{margin-top:0}
}
@media(max-height:500px) and (orientation:landscape) and (pointer:coarse){
 .game .topbar.topbar-with-presence{grid-template-columns:minmax(150px,1fr) auto auto auto;padding:3px 8px;gap:5px;min-height:42px}
 .game .topbar .brand,.game .topbar .avatar,.game .topbar .player-info small{display:none}
 .game .topbar .player{grid-column:1;grid-row:1}
 .game .topbar .online-count{grid-column:2;grid-row:1}
 .game .topbar .coins{grid-column:3;grid-row:1}
 .game .topbar .crystal-stat{grid-column:4;grid-row:1;display:flex;align-items:center}
 .game .topbar .crystal-stat>div{display:flex;gap:5px;align-items:center}
}
@keyframes saved-status-fade{0%,75%{opacity:1}100%{opacity:0}}

.decoration-motion-setting{margin:14px 0;padding:12px;border:1px solid #b79a64;border-radius:10px;background:#fff6df}.decoration-motion-setting label{display:block;font-weight:700;margin-bottom:7px}.decoration-motion-setting select{width:100%;min-height:44px;font:inherit;font-size:16px;color:#523c26;border:1px solid #a98b58;border-radius:8px;background:#fff9e9;padding:7px}.decoration-motion-setting p{font-size:13px;line-height:1.45;margin:8px 0 0}

.classified-dialog form{display:grid;gap:10px;margin:10px 0}
.classified-dialog label{display:grid;gap:5px;font-weight:700;min-width:0}
.classified-dialog :is(select,input){width:100%;min-width:0;min-height:44px;font:inherit;font-size:16px;padding:7px;border:1px solid #ad8d57;border-radius:8px;color:#513c24;background:#fff8e7}
.classified-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.classified-card{padding:12px;margin:8px 0;border:1px solid #baa16c;border-radius:10px;background:#fff8e5}
.classified-card p{font-size:13px;line-height:1.4;margin:6px 0}
.classified-card button{min-height:44px}
.classified-dialog [data-classified-close]{width:44px;min-width:44px;height:44px;border:2px solid #713c24;border-radius:12px;background:#bc663d;color:#fff3d7;font-size:26px;cursor:pointer}

.game-dialog .window-content > details.social-feature > summary{display:list-item}

.farm-menu-toggle{position:relative}.farm-menu-toggle .menu-total-notice{right:-4px;top:-5px}
.farm-menu-toggle .menu-total-notice{position:absolute;min-width:21px;height:21px;display:grid;place-items:center;border:2px solid #80582c;border-radius:50%;background:#ffcc6c;color:#64401f;font:900 11px/1 system-ui,sans-serif;pointer-events:none}
.farm-menu-toggle .menu-total-notice[hidden]{display:none}

.map-guide-dialog label{display:grid;gap:6px;margin:12px 0;font-weight:700}.map-guide-dialog select{font:inherit;font-size:16px;min-height:44px;width:100%;max-width:100%}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.map-guide-dialog li{margin-bottom:16px}.map-guide-dialog li p{line-height:1.5}.map-guide-dialog [data-guide-close]{width:44px;height:44px;border:2px solid #713c24;border-radius:12px;background:#bc663d;color:#fff3d7;font-size:26px;cursor:pointer}

.resident-order-card{border:1px solid #b69763;border-radius:12px;padding:14px;margin:12px 0;background:#fff8e5}.resident-order-card h3{margin:0 0 4px}.resident-order-card p{margin:7px 0;line-height:1.4}.resident-order-card .action{min-height:44px;width:100%}.order-reward{font-weight:700;color:#3c6635}.resident-order-dialog [data-order-close]{width:44px;height:44px;border:2px solid #713c24;border-radius:12px;background:#bc663d;color:#fff3d7;font-size:26px;cursor:pointer}

.growth-goal{margin:0 0 16px;padding:14px;border:1px solid #b69763;border-radius:12px;background:#fff8e5;color:#583c24}.growth-goal h3{font-size:15px;color:#456a36;margin:0 0 6px}.growth-goal strong{display:block;font-size:18px;line-height:1.3}.growth-goal p{font-size:15px;line-height:1.5;margin:8px 0;overflow-wrap:break-word}.growth-goal button{min-height:44px;max-width:100%;white-space:normal}.growth-goal button[hidden]{display:none}.helper-blockage{padding:10px;border:1px solid #b69763;border-radius:10px;background:#fff1ce;color:#633614}

/* First harvest: one optional illustration, readable text and no extra modal. */
.map-guide-dialog .first-harvest-art{display:block;width:min(100%,360px);height:auto;margin:0 auto 14px;border-radius:14px;box-shadow:0 3px 10px #62401f24}
.map-guide-dialog .first-harvest-art[hidden]{display:none}
.map-guide-dialog .first-harvest-intro{margin:0 0 12px;line-height:1.4}
.map-guide-dialog .first-harvest-steps{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;padding-left:24px;margin:0 0 16px;font-size:16px;line-height:1.4}
.map-guide-dialog .first-harvest-steps li{margin:0;padding-left:2px}.map-guide-dialog .first-harvest-steps strong{display:block}
.map-guide-dialog .first-harvest-actions{display:flex;flex-wrap:wrap;gap:8px}.map-guide-dialog .first-harvest-actions button{min-height:44px;font:inherit;white-space:normal}
.map-guide-dialog .first-harvest-actions .action{flex:1 1 100%}.map-guide-dialog .first-harvest-actions .secondary{flex:1 1 140px}
.map-guide-dialog .first-harvest-note{margin-bottom:0;font-size:14px;line-height:1.4;color:#655336}
@media(max-width:440px){.map-guide-dialog .window-content{padding:12px}.map-guide-dialog .first-harvest-steps{grid-template-columns:1fr;gap:8px}.map-guide-dialog .first-harvest-steps strong{display:inline}.map-guide-dialog .first-harvest-art{margin-bottom:12px}}

/* Daily missions are the primary action within the missions panel. */
.daily-shortcut{display:block;width:100%;min-height:56px;padding:14px 18px;margin:12px 0 18px;font-size:1.1rem;font-weight:700;color:#34451f;background:#ffe49a;border:2px solid #a77b2d;border-radius:12px;box-shadow:0 3px 0 #71542333;white-space:normal}
.daily-shortcut:focus-visible{outline:3px solid #426b2d;outline-offset:3px}

/* Guided learning stays interactive and leaves map gestures available. */
.journey-coach{position:fixed;z-index:10001;bottom:max(12px,env(safe-area-inset-bottom));right:12px;width:min(360px,calc(100vw - 24px));max-height:36dvh;overflow:auto;background:#fff4d6;color:#483b21;border:2px solid #98722d;border-radius:14px;padding:12px;box-shadow:0 4px 20px #0003}
.journey-coach[hidden]{display:none}.journey-coach h3{font-size:1rem;margin:4px 0}.journey-coach p{font-size:.9rem;margin:6px 0;line-height:1.4}.journey-coach small{font-weight:700;color:#546b32}.journey-actions{display:flex;flex-wrap:wrap;gap:8px}.journey-actions button{min-height:44px;font-size:.85rem;padding:8px 12px}.journey-target{outline:3px solid #d79b20!important;outline-offset:3px}.journey-news-item{padding:12px 0;border-bottom:1px solid #d2bb84}.journey-news-item p{line-height:1.45}.journey-news-item button{min-height:44px}.journey-notice .window-content{overflow:auto;max-height:70dvh}
@media(max-height:500px){.journey-coach{max-height:45dvh;width:min(300px,45vw)}}

.game-dialog:has(>.journey-coach:not([hidden])) .window-content{padding-bottom:260px}
@media(max-width:760px){.journey-coach[data-on-map]{top:var(--journey-top,120px);bottom:auto;max-height:30dvh}.journey-coach p{font-size:.85rem}}

.journey-coach{display:flex;flex-direction:column}.journey-coach>div:first-child{overflow:auto;min-height:0}.journey-coach .journey-actions{flex-shrink:0}

/* Rest purchase actions have their own spacing, independent of the name form. */
.animal-rest-dialog{width:min(440px,calc(100vw - 24px));padding:0}
.animal-rest-dialog .window-content{padding:16px}
.animal-rest-dialog .window-content>p{margin:0 0 8px;line-height:1.45}
.animal-rest-dialog .rest-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}
.animal-rest-dialog .rest-actions button{flex:0 1 auto;min-height:44px;max-width:100%;padding:10px 14px;font-size:.875rem;line-height:1.3;white-space:normal;margin:0}
.animal-rest-dialog [data-rest-close]{flex-shrink:0}

.crystal-confirmation{width:min(440px,calc(100vw - 24px))}.crystal-confirmation .window-content{padding:16px}.crystal-confirmation p{margin:0 0 10px;line-height:1.45}.crystal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:18px}.crystal-actions button{min-height:44px;padding:10px 16px;margin:0}

.christmas-shop-image{object-fit:contain;flex:0 0 72px;width:72px;height:80px;border:0!important;background:none!important}

/* Requested daily challenge line: existing typography, below the level in the HUD. */
.daily-challenge-banner{display:block;grid-column:1/-1;flex-basis:100%;margin:4px 0 0;font-size:.875rem;line-height:1.35;white-space:normal;overflow-wrap:break-word}

/* Requested main-screen shortcut. Disabled until existing requirements are met. */
.topbar .farm-transition-shortcut{min-height:44px;flex:0 0 auto;white-space:normal}
.topbar .farm-transition-shortcut[data-locked="true"]{opacity:.65;cursor:pointer;filter:grayscale(1)}
@media(max-width:1000px),(pointer:coarse){.game .topbar .farm-transition-shortcut{grid-column:1 / -1;justify-self:end;min-height:44px;padding:6px 10px}}

.daily-mission-alert{display:block;width:max-content;max-width:100%;min-height:32px;margin:3px 0;font-size:.875rem;white-space:normal}
@media(prefers-reduced-motion:no-preference){
 .daily-mission-alert{animation:daily-mission-pulse 1s ease-in-out 2}
 @keyframes daily-mission-pulse{50%{box-shadow:0 0 0 3px #b27a2eb3}}
}

.event-price{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:.4em}
.event-price del{color:#655a45;text-decoration-thickness:2px}
.event-price strong,.event-quantity{color:#294b27;background:#e6efcd;border-radius:5px;padding:.05em .35em;font-size:1.12em;font-weight:800}
.farm-event-copy{display:grid;gap:12px;justify-items:center}
.farm-event-copy p:nth-child(2){font-weight:700}
.event-paid-pack{display:grid;justify-items:center;align-content:center;gap:3px}

/* Premium sits beside the common fertilizer in both toolbar layouts. */
.connected-quick-tools [data-premium-fertilizer-mode]{position:relative;min-width:44px;padding-inline:5px;white-space:nowrap;text-shadow:0 0 5px #ffd454}
.connected-quick-tools [data-premium-fertilizer-mode][aria-disabled=true]{opacity:.65}
.connected-quick-tools > button:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.connected-quick-tools > button:not(:first-child){flex:0 0 auto;min-width:44px}
