@import url("https://fonts.googleapis.com/css2?family=Marmelad&family=Ruslan+Display&display=swap");
:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1e352a;background:#eaf3e9}*{box-sizing:border-box}html{min-height:100%;background:#eaf3e9}body{margin:0;min-height:100vh;background:radial-gradient(circle at 90% 0%,#fff0c4 0,transparent 35%),linear-gradient(175deg,#f3f8e9,#dcefe3)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}.shell{width:min(670px,100%);margin:auto;min-height:100vh;padding:0 17px 30px}header.top{background:#164e3d;border-radius:0 0 20px 20px;display:flex;justify-content:space-between;align-items:center;color:white;padding:16px 19px;box-shadow:0 7px 23px #0c46301f}.brand{display:flex;align-items:center;gap:10px}.brand .logo{font-size:30px}.brand strong{display:block;font-size:19px;letter-spacing:-.4px}.brand small{display:block;font-size:9px;letter-spacing:3px;color:#c6e8ad}.online{font-size:11px;background:#2b735a;border-radius:100px;padding:7px 11px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(23px,6vw,30px);letter-spacing:-1px;margin-bottom:6px}h2{font-size:21px;letter-spacing:-.6px;margin:0}h3{font-size:18px;margin:0}.muted{color:#648171}.small{font-size:12px}.card{background:white;border:1px solid #d8e8d7;border-radius:22px;box-shadow:0 10px 30px #1e533311}.auth{max-width:435px;margin:42px auto;padding:28px;text-align:center}.hero-emoji{font-size:60px;margin:3px 0 15px}.auth .muted{line-height:1.5}.auth-switch{display:flex;background:#e9f2e8;border-radius:12px;padding:4px;margin:22px 0 18px}.auth-switch button{flex:1;border:0;background:transparent;padding:11px;border-radius:9px;color:#50745f;font-weight:750}.auth-switch button.selected{background:white;color:#23573d;box-shadow:0 3px 12px #246a3222}.auth form{display:grid;gap:12px}.auth input{width:100%;background:#fbfdfa;border:1px solid #cfe2d0;border-radius:13px;padding:15px;outline:0}.auth input:focus{border-color:#48a363;box-shadow:0 0 0 3px #59ac7430}.primary{border:0;background:linear-gradient(90deg,#23824e,#39a45b);color:white;border-radius:13px;font-weight:750}.big{padding:15px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:28px 2px 18px}.eyebrow{font-size:10px;font-weight:900;color:#4a9272;letter-spacing:2px;margin-bottom:6px}.subhead{color:#6d8b78;font-size:13px}.quiet{border:1px solid #c5dec9;background:#fff;color:#488366;border-radius:10px;padding:9px 11px;font-size:12px;font-weight:700}.wallet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:20px}.wallet>div{background:white;border:1px solid #d8e8d7;padding:13px 15px;border-radius:17px;box-shadow:0 4px 12px #1f533310}.wallet span{font-size:21px;display:block}.wallet small{font-size:9px;display:block;letter-spacing:1.3px;color:#91aa96;font-weight:800;margin-top:8px}.wallet b{font-size:25px;letter-spacing:-.8px}.tabs{display:grid;grid-template-columns:repeat(4,1fr);background:#d8ebd9;border-radius:15px;padding:5px;gap:3px;margin-bottom:24px}.tabs button{border:none;color:#577a63;background:transparent;padding:12px 2px;font-weight:800;border-radius:11px;font-size:12px}.tabs button.active{color:white;background:#28754d;box-shadow:0 4px 10px #376d4b33}.section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:20px 2px 15px}.section-head small{font-size:11px}.crop-list{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.crop-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:white;border:2px solid #d9e9d7;min-height:116px;padding:10px 3px;border-radius:17px;color:#31543f}.crop-choice.chosen{border-color:#37a563;background:#e9f7e8;box-shadow:0 0 0 2px #2c9d4a18}.crop-choice span{font-size:30px}.crop-choice b{font-size:12px}.crop-choice small{font-size:9px;color:#819687;text-align:center}.plot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.plot{min-width:0;background:linear-gradient(#fffef9,#f0f6e8);border:1px solid #d8e7cf;border-radius:19px;min-height:182px;padding:15px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;gap:8px}.plot.planted{background:linear-gradient(#fff,#eaf6e9)}.plot-num{font-size:9px;letter-spacing:1px;font-weight:900;color:#8ca595}.plot-icon{font-size:43px;line-height:1.4}.plot strong{font-size:13px}.action-button{background:#31885b;border:0;color:white;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:750;white-space:nowrap}.action-button.ready{background:#df8a25}.timer{background:#dceade;border-radius:10px;color:#54775d;padding:10px 11px;font-size:12px;font-weight:800}.barn-card{display:flex;gap:13px;align-items:center;margin-bottom:12px;padding:18px;flex-wrap:wrap}.barn-icon{font-size:49px}.barn-details{flex:1;min-width:128px}.barn-details p{font-size:13px;color:#557b60;margin:5px 0}.barn-details small{color:#87a18d;font-size:11px}.barn-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch}.intro{font-size:13px;line-height:1.5;margin-bottom:20px}.store-list,.leader-list{background:#fff;border:1px solid #d8e8d7;border-radius:19px;overflow:hidden}.store-row,.leader{display:flex;align-items:center;gap:13px;padding:14px 13px;border-bottom:1px solid #edf3ed}.store-row:last-child,.leader:last-child{border-bottom:0}.good-icon{font-size:30px}.store-info,.leader-name{flex:1;min-width:0}.store-info strong{font-size:14px;display:block}.store-info small,.leader-name small{display:block;font-size:11px;color:#7b9781;margin-top:4px}.leader-name{font-weight:750}.leader strong{font-size:13px}.medal{font-size:22px;display:block;min-width:30px;text-align:center}.footnote,footer{text-align:center;color:#8ba293;font-size:11px;margin:24px 0 0}footer{margin-top:34px}#toast{position:fixed;left:50%;top:18px;transform:translate(-50%,-100px);max-width:90%;background:#347a2c;color:white;padding:12px 19px;border-radius:13px;z-index:10;box-shadow:0 8px 30px #112c2140;transition:transform .25s;pointer-events:none;text-align:center;font-size:13px}#toast.visible{transform:translate(-50%,0)}#toast.error{background:#526b25}[hidden]{display:none!important}@media(max-width:390px){.shell{padding:0 10px 28px}.wallet{gap:6px}.wallet>div{padding:11px}.crop-list{gap:5px}.crop-choice{min-height:105px}.crop-choice small{font-size:8px}.plot-grid{gap:7px}.plot{padding:12px 4px;min-height:175px}.action-button{padding:10px 7px}.tabs button{font-size:11px}.barn-actions{width:100%;flex-direction:row}}

/* Тёплый светло-коричневый фон фермы. */
:root, html {
  background: #f0e0c9;
}
body {
  background-color: #f0e0c9;
  background-image:
    radial-gradient(circle at 90% 0%, #fff7e7 0%, transparent 38%),
    linear-gradient(175deg, #f8eddc 0%, #ead2b3 100%);
}
/* Мягкие песочные поверхности вместо зеленоватых. */
.card, .wallet > div, .store-list, .leader-list {
  border-color: #e4d0b4;
}
.auth-switch {
  background: #ead7bd;
}
.auth input {
  background: #fffbf5;
  border-color: #e2cdb0;
}
.tabs {
  background: #e6cba9;
}
.crop-choice {
  border-color: #e4d0b4;
}
.plot {
  background: linear-gradient(#fffaf0, #efdbbf);
  border-color: #dec4a0;
}
.plot.planted {
  background: linear-gradient(#fffaf1, #ead5b8);
}
.timer {
  background: #efddc3;
  color: #6a593f;
}


/* Настоящие изображения грядок вместо квадратных эмодзи. */
.plot .plot-icon.plot-bed {
  display: block;
  position: relative;
  width: min(110px, 100%);
  height: 76px;
  line-height: 1;
  flex-shrink: 0;
}
.plot .garden-bed-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.plot .plot-crop {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 31px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px #2d211a55);
}

/* Аккуратная четвёртая карточка валюты в шапке. */
.wallet { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.wallet > div { min-width: 0; padding: 12px 10px; }
.wallet b { font-size: clamp(17px, 3vw, 24px); overflow-wrap: anywhere; }
.wallet .diamond-wallet {
  background: linear-gradient(145deg, #ffffff, #eefaff);
  border-color: #b9dce9;
}
.wallet .diamond-wallet-icon { display: block; width: 25px; height: 25px; }
.wallet .diamond-wallet small { color: #4b9cb7; }
@media (max-width: 480px) {
  .wallet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet > div { padding: 11px 13px; }
  .wallet b { font-size: 23px; }
}

/* Чёткие встроенные иконки вместо неподдерживаемых символов. */
.wallet .wallet-stat-icon { display: block; width: 29px; height: 27px; }
.wallet .wallet-stat-icon svg { display: block; width: 29px; height: 27px; }
.farm-icon { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.22em; flex: 0 0 auto; }
.crop-choice .farm-beet { width: 34px; height: 34px; }
.crop-choice span { display: flex; justify-content: center; align-items: center; min-height: 34px; }
.plot-crop .farm-beet { width: 41px; height: 41px; }
.good-icon .farm-beet { width: 35px; height: 35px; vertical-align: middle; }
.crop-choice small .farm-coin, .barn-actions .farm-coin, .store-row .farm-coin, .leader .farm-coin { width: 15px; height: 15px; }
.crop-choice small .farm-coin { width: 12px; height: 12px; vertical-align: -3px; }
.action-button .farm-coin { width: 15px; height: 15px; vertical-align: -3px; }
.leader .farm-coin { vertical-align: -3px; }


/* Единая горизонтальная панель из четырёх ресурсов, без прокрутки. */
#game { display: flex; flex-direction: column; }
#game > .wallet { order: -2; }
#game > .welcome { order: -1; }

.wallet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 12px 0 12px;
  padding: 6px 4px;
  background: rgba(255, 252, 246, .98);
  border: 1px solid #e4d0b4;
  border-radius: 15px;
  box-shadow: 0 5px 16px rgba(82, 52, 25, .09);
  overflow: hidden;
}
.wallet > div,
.wallet > .diamond-wallet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 5px 3px;
  border: 0;
  border-right: 1px solid #e9ddcd;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.wallet > div:last-child { border-right: 0; }
.wallet > .diamond-wallet { background: transparent; }
.wallet .wallet-stat-icon,
.wallet .wallet-stat-icon svg,
.wallet .diamond-wallet-icon {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
.wallet > div > span:not(.wallet-stat-icon) {
  display: block;
  width: auto;
  height: auto;
  font-size: 20px;
  line-height: 21px;
}
.wallet small,
.wallet .diamond-wallet small {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: #927b65;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .55px;
  font-weight: 800;
  white-space: nowrap;
}
.wallet .diamond-wallet small { color: #4b9cb7; }
.wallet b,
.wallet .diamond-wallet b {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: #1e352a;
  font-size: clamp(14px, 2.4vw, 19px);
  line-height: 1.15;
  letter-spacing: -.3px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.welcome { margin: 10px 2px 14px; }
@media (max-width: 440px) {
  .wallet { padding: 5px 1px; border-radius: 13px; }
  .wallet > div, .wallet > .diamond-wallet {
    min-height: 59px;
    padding: 4px 1px;
  }
  .wallet .wallet-stat-icon,
  .wallet .wallet-stat-icon svg,
  .wallet .diamond-wallet-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .wallet > div > span:not(.wallet-stat-icon) {
    font-size: 18px;
    line-height: 18px;
  }
  .wallet small, .wallet .diamond-wallet small {
    font-size: 7px;
    letter-spacing: .3px;
    margin-top: 2px;
  }
  .wallet b, .wallet .diamond-wallet b {
    font-size: clamp(12px, 3.6vw, 16px);
  }
}



/* ===== ГРЯДКИ V13: КОМПАКТНЫЕ + ПОКУПКА ===== */
#game .plot-grid.plot-grid-soil {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}
#game .plot-grid-soil > .plot {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 4px;
  min-width: 0;
  min-height: 225px;
  padding: 9px 6px 10px;
  color: #fff9ed;
  background: #523623 url('soil_earth.webp') center / cover no-repeat;
  border: 3px solid #916037;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px #e6b17a70,
              inset 0 8px 15px #190e0866,
              0 5px 14px #48280e33;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
#game .plot-grid-soil > .plot::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  transform: none;
  opacity: 1;
  background:
    repeating-linear-gradient(178deg,transparent 0px,transparent 59px,#1a0d0722 75px,transparent 94px),
    linear-gradient(180deg, #1e110a6b 0%, transparent 22%, transparent 65%, #24120783 100%);
  pointer-events: none;
}
#game .plot-grid-soil > .plot::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  height: auto;
  background: radial-gradient(ellipse at 50% 51%,#c9964310 0%,transparent 68%);
  pointer-events: none;
}
#game .plot-grid-soil > .plot > * { position: relative; z-index: 1; }
#game .plot-grid-soil > .plot.ready-plot {
  border-color: #d5b75d;
  box-shadow: inset 0 0 0 1px #ffe8a67a,0 0 0 2px #f4d27436,0 6px 14px #3c230c38;
}
#game .plot-grid-soil .plot-num {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #c69768;
  background: linear-gradient(180deg,#a6754c,#795033);
  color: #fff0d4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
}
#game .plot-grid-soil .plot-scene {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  margin: 0;
}
#game .plot-grid-soil .plot-soil-empty {
  width: 100%;
  height: 98px;
  pointer-events: none;
}
#game .plot-grid-soil .plot-plant-wrap,
#game .plot-grid-soil .plot-plant {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  width: 100%;
  height: 104px;
}
#game .plot-grid-soil .plot-plant { filter: drop-shadow(0 6px 5px #1a0c0670); }
#game .plot-grid-soil .crop-stage-image {
  display: block;
  object-fit: contain;
  object-position: 50% 100%;
  max-width: 100%;
  width: min(130px, 100%);
  height: 108px;
  pointer-events: none;
  transform-origin: 50% 80%;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
}
#game .plot-grid-soil .crop-fallback { max-width: 100%; display: block; }
#game .plot-grid-soil .plot-growth-status {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #d9aa76;
  border-radius: 99px;
  color: #fff2d4;
  background: linear-gradient(180deg,#a5744b,#775035);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}
#game .plot-grid-soil .plot strong {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid #c39566;
  background: linear-gradient(180deg,#a77750,#795035);
  color: #fff5e5;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  text-shadow: 0 1px 1px #0008;
}
#game .plot-grid-soil .crop-progress {
  display: block;
  flex: none;
  width: min(120px, 90%);
  height: 5px;
  overflow: hidden;
  border: 1px solid #e9ca8e5e;
  border-radius: 99px;
  background: #1d120bc4;
  box-shadow: inset 0 1px 3px #0006;
}
#game .plot-grid-soil .crop-progress-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg,#5aaa48,#bfdf64);
  box-shadow: 0 0 8px #87ea6999;
  transition: width .65s linear;
}
#game .plot-grid-soil .plot .timer {
  padding: 3px 8px;
  border: 1px solid #e6c49b80;
  border-radius: 99px;
  background: #fff2ddeb;
  color: #583821;
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
#game .plot-grid-soil .plot .action-button {
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 10px;
  box-shadow: 0 3px 5px #24150b88;
}
#game .plot-grid-soil .plot .diamond-speed-button {
  padding: 5px 7px;
  color: #164b68;
  border: 1px solid #8bd0ef;
  background: #e0f7ff;
}
#game .plot-grid-soil .plot .diamond-speed-button svg { vertical-align: middle; }
#game .plot-grid-soil > .plot:focus-within { outline: 2px solid #f7d893; outline-offset: 2px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #game .plot-grid-soil > .plot:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px #e6b17a70,inset 0 8px 15px #190e0866,0 9px 20px #48280e55;
  }
  #game .plot-grid-soil > .plot:hover .crop-stage-image,
  #game .plot-grid-soil > .plot:focus-within .crop-stage-image { animation: farm-crop-sway 2.1s ease-in-out infinite; }
}
#game .plot-grid-soil .crop-stage-image.stage-changing { animation: farm-crop-stage .55s ease-out both; }
@keyframes farm-crop-sway {
  0%,100% {transform:rotate(0deg) translateY(0)}
  28% {transform:rotate(-1.65deg) translateY(-2px)}
  72% {transform:rotate(1.65deg) translateY(-3px)}
}
@keyframes farm-crop-stage {
  0% {opacity:.74;transform:translateY(6px) scale(.95)}
  100% {opacity:1;transform:translateY(0) scale(1)}
}
#screen .crop-inline-fallback {display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}
#screen .crop-inline-fallback .living-crop {width:min(120px,100%);height:100%;max-height:160px;display:block}
#screen .plant-option-icon .crop-inline-fallback .living-crop {width:75px;height:75px;max-width:100%}
@media(max-width:520px) {
  #game .plot-grid.plot-grid-soil {gap:6px}
  #game .plot-grid-soil > .plot {min-height:204px;padding:7px 3px 8px;gap:3px;border-width:2px;border-radius:12px}
  #game .plot-grid-soil .plot-num {font-size:8px;padding:3px 5px}
  #game .plot-grid-soil .plot-scene {min-height:84px}
  #game .plot-grid-soil .plot-soil-empty {height:80px}
  #game .plot-grid-soil .plot-plant-wrap,#game .plot-grid-soil .plot-plant {height:88px}
  #game .plot-grid-soil .crop-stage-image {height:90px;width:100%}
  #game .plot-grid-soil .plot-growth-status {font-size:8px;padding:2px 5px}
  #game .plot-grid-soil .plot strong {font-size:10px;padding:3px 6px}
  #game .plot-grid-soil .plot .timer {font-size:9px;padding:3px 5px}
  #game .plot-grid-soil .plot .action-button {font-size:9px;padding:6px 4px}
  #game .plot-grid-soil .plot .diamond-speed-button {font-size:8px;padding:5px 3px}
}
@media(max-width:350px) {
  #game .plot-grid.plot-grid-soil {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #game .plot-grid-soil > .plot {min-height:218px}
  #game .plot-grid-soil .plot-scene {min-height:98px}
  #game .plot-grid-soil .crop-stage-image {height:106px}
  #game .plot-grid-soil .plot-plant-wrap,#game .plot-grid-soil .plot-plant {height:106px}
}
@media(prefers-reduced-motion: reduce) {
  #game .plot-grid-soil > .plot,
  #game .plot-grid-soil .crop-progress-fill {transition:none}
  #game .plot-grid-soil .crop-stage-image {animation:none!important}
}
/* Выбор семян — те же фотографии растения, что и на грядках. */
#screen .plant-overlay {position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:#1f1209b8;padding:16px}
#screen .plant-modal {box-sizing:border-box;background:linear-gradient(180deg,#fffaf2,#f3e1c5);color:#493622;width:min(460px,100%);max-height:88dvh;overflow:auto;position:relative;display:block;padding:20px 16px 17px;border-radius:23px;border:2px solid #dfbd93;box-shadow:0 22px 56px #1f100758}
#screen .plant-modal h3 {font-size:21px;margin:4px 0 15px}
#screen .plant-modal .plant-close {position:absolute;top:10px;right:12px;width:35px;height:35px;display:grid;place-items:center;border:0;border-radius:50%;background:#ecd4b4;color:#6e492b;font-size:25px;cursor:pointer}
#screen .plant-picker {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#screen .plant-option {background:#fffdf8;color:#503c2b;border:1px solid #dcc2a0;border-radius:16px;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;min-width:0;min-height:118px;padding:9px 7px;font:inherit;cursor:pointer}
#screen .plant-option:hover {background:#f5ebda;border-color:#b69467}
#screen .plant-option:focus-visible {outline:3px solid #33875e;outline-offset:2px}
#screen .plant-option-icon {display:flex;align-items:center;justify-content:center;height:62px;width:95%;overflow:hidden}
#screen .plant-option-icon img {display:block;object-fit:contain;width:80px;height:78px;max-width:100%}
#screen .plant-option b {font-size:13px}
#screen .plant-option small {display:flex;align-items:center;gap:4px;color:#86694b;font-size:10px}
#screen .plant-option small .farm-coin {width:13px;height:13px}
@media(max-width:520px) {#screen .plant-modal {padding:16px 12px}}

/* V14 — грядки уменьшены примерно вдвое по площади, без потери функций. */
#game .plot-grid.plot-grid-soil {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
#game .plot-grid-soil > .plot {
  min-height: 140px;
  padding: 5px 3px 6px;
  gap: 2px;
  border-width: 2px;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px #e6b17a70,inset 0 5px 9px #190e0855,0 3px 9px #48280e30;
}
#game .plot-grid-soil .plot-num {
  padding: 2px 5px;
  font-size: 8px;
  letter-spacing: 0;
}
#game .plot-grid-soil .plot-scene {
  min-height: 64px;
  margin: 0;
}
#game .plot-grid-soil .plot-soil-empty { height: 67px; }
#game .plot-grid-soil .plot-plant-wrap,
#game .plot-grid-soil .plot-plant {
  height: 68px;
}
#game .plot-grid-soil .crop-stage-image {
  height: 72px;
  width: min(92px, 100%);
}
#game .plot-grid-soil .plot-growth-status {
  position: absolute;
  top: 23px;
  right: 3px;
  z-index: 3;
  max-width: calc(100% - 6px);
  padding: 2px 4px;
  font-size: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  opacity: .95;
}
#game .plot-grid-soil .plot strong {
  padding: 2px 5px;
  font-size: 9px;
  line-height: 1.12;
}
#game .plot-grid-soil .crop-progress {
  height: 3px;
  width: 88%;
}
#game .plot-grid-soil .plot .timer {
  padding: 2px 5px;
  font-size: 8px;
  line-height: 1.1;
}
#game .plot-grid-soil .plot .action-button {
  padding: 5px 5px;
  min-height: 24px;
  font-size: 9px;
  line-height: 1.1;
  border-radius: 7px;
  white-space: nowrap;
}
#game .plot-grid-soil .plot .diamond-speed-button {
  padding: 4px 7px;
  min-height: 22px;
  font-size: 9px;
}
#game .plot-grid-soil .plot .diamond-speed-button svg {
  width: 13px;
  height: 13px;
}

/* Узкая строка покупки: вне сетки, не занимает целую грядку. */
#game .plot-purchase {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-height: 42px;
  padding: 6px 9px;
  margin-top: 9px;
  border: 1px solid #d4b08a;
  border-radius: 11px;
  background: linear-gradient(100deg,#f8ebd9,#e8cba5);
  color: #694427;
  box-shadow: 0 3px 9px #59331a16;
}
#game .plot-purchase-title {
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}
#game .plot-purchase-price {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
#game .plot-purchase-price svg {
  width: 17px;
  height: 17px;
}
#game .plot-purchase .plot-buy-button {
  padding: 6px 11px;
  min-height: 27px;
  border: 1px solid #edc781;
  border-radius: 8px;
  background: linear-gradient(#dba85a,#b97a30);
  box-shadow: 0 2px 4px #69432129;
  color: #382411;
  font-size: 11px;
  font-weight: 900;
}
#game .plot-purchase .plot-buy-button:disabled { opacity: .55; }
#game .plot-purchase-shortage {
  flex-basis: 100%;
  text-align: center;
  font-size: 10px;
  color: #835d42;
}
#game .plot-limit-notice {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: #866544;
}

/* На телефоне — 4 в ряд, на самых узких экранах — 3. */
@media (max-width: 550px) {
  #game .plot-grid.plot-grid-soil {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 5px;
  }
  #game .plot-grid-soil > .plot {
    min-height: 135px;
    padding: 5px 2px 6px;
    gap: 2px;
  }
  #game .plot-grid-soil .plot-scene { min-height: 60px; }
  #game .plot-grid-soil .plot-soil-empty { height: 62px; }
  #game .plot-grid-soil .plot-plant-wrap,
  #game .plot-grid-soil .plot-plant { height: 64px; }
  #game .plot-grid-soil .crop-stage-image { height: 68px; width: 100%; }
  #game .plot-grid-soil .plot-growth-status { font-size: 7px; padding: 1px 3px; }
  #game .plot-grid-soil .plot strong { padding: 2px 3px; font-size: 9px; }
  #game .plot-grid-soil .plot .action-button { padding: 5px 3px; font-size: 8px; }
  #game .plot-grid-soil .plot .timer { font-size: 8px; }
  #game .plot-purchase { gap: 6px 8px; min-height: 40px; }
}
@media (max-width: 345px) {
  #game .plot-grid.plot-grid-soil { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* V15 — лопата, мотокультиватор и подготовка почвы, без увеличения карточек. */
#game .plot-grid-soil > .plot.needs-tilling {
  filter: saturate(.8);
  border-color: #cc9552;
  background-image:
    linear-gradient(135deg,rgba(48,25,12,.35),rgba(33,17,8,.2)),
    url('soil_earth.webp');
}
#game .plot-grid-soil > .plot.needs-tilling .plot-soil-empty {
  background: repeating-linear-gradient(159deg,transparent 0px,transparent 17px,rgba(19,9,4,.22) 19px,transparent 24px);
  border-radius: 10px;
}
#game .plot-grid-soil .plot-tillage-status {
  color: #fff0d5;
  background: #805435ee;
  font-weight: 800;
}
#game .plot-grid-soil .plot .till-single-button {
  background: linear-gradient(#e6bb75,#b57b3d);
  color: #39230f;
  border: 1px solid #dca257;
  box-shadow: 0 2px 5px #190c0833;
}
#game .tillage-panel {
  margin: 0 0 11px;
  padding: 9px 11px;
  color: #5b4028;
  background: linear-gradient(115deg,#fff8eb,#ead1ae);
  border: 1px solid #d6b58d;
  border-radius: 13px;
  box-shadow: 0 3px 10px #4c281815;
}
#game .tillage-header {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:12px}
#game .tillage-header span {font-size:10px;color:#8b694a}
#game .tillage-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#game .tillage-tool {
  display:flex;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  padding:6px 7px;
  background:#fffdf7c9;
  border:1px solid #e3c9a6;
  border-radius:9px;
}
#game .tillage-tool-name {display:flex;min-width:0;align-items:center;gap:5px}
#game .tillage-tool-emoji {font-size:20px;line-height:1}
#game .tillage-tool-name b {display:block;font-size:11px;line-height:1.25}
#game .tillage-tool-name small {display:block;font-size:9px;color:#876547;line-height:1.3}
#game .tillage-upgrade {
  flex-shrink:0;
  display:flex;gap:3px;align-items:center;justify-content:center;
  padding:5px 6px;
  min-height:27px;
  border:1px solid #e0b974;
  border-radius:7px;
  background:#e4bd7d;
  color:#67451d;
  font-weight:850;font-size:10px;
}
#game .tillage-upgrade svg {width:13px;height:13px}
#game .tillage-upgrade:disabled {opacity:.46}
#game .tillage-max {color:#6d8244;font-weight:900;font-size:10px}
#game .tillage-all-button {
  display:block;width:100%;min-height:30px;
  margin-top:7px;padding:7px 9px;
  border-radius:9px;border:1px solid #95652f;
  color:#fff5dc;
  background:linear-gradient(100deg,#9a692e,#7b501f);
  font-size:11px;font-weight:850;text-align:center;
}
#game .tillage-all-button:disabled {opacity:.45;cursor:default}
@media (max-width:550px) {
  #game .tillage-panel {padding:8px;margin-bottom:8px}
  #game .tillage-tools {grid-template-columns:1fr;gap:5px}
  #game .tillage-tool {padding:4px 7px}
  #game .tillage-tool-emoji {font-size:19px}
  #game .tillage-all-button {min-height:30px;margin-top:6px}
  #game .plot-grid-soil .plot .till-single-button {font-size:8px;padding:5px 2px}
}
@media (prefers-reduced-motion:reduce) {
  #game .tillage-panel,#game .tillage-tool {transition:none;animation:none}
}

/* V16 — уютная тёмно-коричневая ферма с тёплыми рамками. */
:root,html { background:#b9895c; color:#342114; }
body { color:#342114; background-color:#ba9066; background-image:radial-gradient(ellipse at 8% 12%,#f3d6a43d,transparent 35%),radial-gradient(circle at 85% 70%,#56361a22,transparent 28%),repeating-linear-gradient(115deg,#52371b0c 0px,#52371b0c 2px,transparent 2px,transparent 16px),linear-gradient(170deg,#dfb58a 0%,#c49b70 42%,#a97b4f 100%); }
#game .section-head h2 {color:#3b2514;}
header.top {background:linear-gradient(110deg,#165d45,#174b3d);border:2px solid #dfac63; box-shadow:0 8px 23px #47301c45;}
header.top .brand small {letter-spacing:1px;font-size:10px;}
#online-count {display:inline-block;color:#5ef190;font-size:15px;line-height:1;font-weight:950;letter-spacing:.2px;text-shadow:0 0 8px #21e07998;}
#profileOpen {color:#e9f4e4;font-weight:800;border:1px solid #89bd8c55;cursor:pointer;}
#game .tabs {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:4px;background:#825735;border:2px solid #e7b77e;box-shadow:inset 0 2px 5px #42281070;}
#game .tabs button {font-size:11px;padding:11px 1px;color:#ffe9c8;white-space:nowrap;}
#game .tabs button.active {background:linear-gradient(180deg,#398a63,#1d6848);color:#fff;}
#game .wallet {border:2px solid #e8b781;background:#f4e1c7;}
#game .xp-meter {margin:-3px 0 16px;padding:9px 12px 11px;border:2px solid #e0b17b;border-radius:13px;background:#f2e0c8;box-shadow:0 4px 13px #58391924;}
#game .xp-meter-top {display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#69492e;font-weight:800;margin-bottom:6px;}
#game .xp-meter-top b {font-size:11px;color:#385c29;}
#game .xp-meter-track {height:11px;border:1px solid #745e40;border-radius:30px;background:#b9a182;overflow:hidden;box-shadow:inset 0 2px 3px #5339185c;}
#game #xp-meter-fill {width:0;height:100%;border-radius:inherit;background:linear-gradient(180deg,#a2ec67,#349935 75%,#21742c);transition:width .6s ease;box-shadow:inset 0 1px 1px #e0ffc5;}
#game .plot-grid-soil > .plot {border:3px ridge #d9a766;box-shadow:inset 0 0 0 1px #5a311b,inset 0 2px 10px #24130856,0 4px 8px #3d241b48;}
#game .plot-grid-soil .plot-num {display:none;}
#game .plot-grid-soil .plot .action-button,#game .plot-grid-soil .plot strong,#game .plot-grid-soil .plot-growth-status,#game .plot-grid-soil .plot .timer {
  background:linear-gradient(180deg,#976440,#62371f);color:#fff0d6;border:1px solid #d7ab72;border-radius:7px;text-shadow:0 1px 2px #2a190caa;box-shadow:inset 0 1px 0 #fff5de3b,0 2px 4px #1c120b44;
}
#game .plot-grid-soil .plot .action-button.ready {background:linear-gradient(180deg,#dfac5d,#996423);color:#3f2816;font-weight:900;text-shadow:none;}
#game .plot-grid-soil .plot-growth-status {top:2px;right:4px;left:4px;max-width:none;width:max-content;margin:auto;}
#game .cultivator-available {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:linear-gradient(#f4e1c5,#e0bc89);border:2px solid #b68653;border-radius:10px;padding:7px 10px;margin:0 0 9px;font-size:11px;font-weight:800;color:#674025;}
#game .cultivator-available .action-button {padding:6px 9px;font-size:11px;}
#game .pen-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;}
#game .pen-card {position:relative;min-width:0;min-height:155px;padding:7px 4px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px;text-align:center;background:radial-gradient(ellipse at 50% 84%,#c9a06a 5%,#9d734c 60%,#634227 100%);border:3px ridge #d7a466;border-radius:12px;box-shadow:inset 0 3px 10px #311a0c5e,0 4px 10px #30190a44;overflow:hidden;}
#game .pen-card:before {content:'';position:absolute;inset:3px;pointer-events:none;border-left:3px solid #b77b40;border-right:3px solid #b77b40;background:repeating-linear-gradient(90deg,#9d653a70 0 4px,transparent 4px 23px),repeating-linear-gradient(0deg,transparent 0 26px,#70432490 26px 31px,transparent 31px 54px);border-radius:6px;}
#game .pen-stage {position:relative;z-index:1;display:flex;align-items:center;justify-content:center;flex:1;width:100%;min-height:78px;overflow:visible;}
#game .animal-stage-image {width:100%;height:90px;object-fit:contain;filter:drop-shadow(0 3px 3px #2f190b85);transition:transform .25s;}
#game .pen-card:hover .animal-stage-image {transform:translateY(-3px) rotate(-2deg);}
#game .pen-card strong,#game .pen-card small,#game .pen-card .pen-fed {position:relative;z-index:1;color:#fff1d9;background:#63371fdd;border-radius:7px;padding:2px 5px;max-width:100%;}
#game .pen-card strong{font-size:10px;}
#game .pen-card small,#game .pen-card .pen-fed{font-size:9px;}
#game .pen-card .action-button{position:relative;z-index:1;padding:5px 7px;max-width:100%;font-size:9px;white-space:normal;}
#game .empty-pen{color:#fff7dc;font-size:34px;text-shadow:0 2px 7px #311908bd;}
#screen .animal-picker {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
#screen .animal-option{display:flex;flex-direction:column;gap:4px;align-items:center;padding:8px;border:1px solid #ce9d69;border-radius:13px;background:#fff8ed;color:#4e3020;font-weight:800;cursor:pointer;}
#screen .animal-option-picture{display:grid;place-items:center;height:96px;width:100%;}
#screen .animal-option-picture img{max-width:100%;height:96px;object-fit:contain;}
#screen .animal-option small{font-size:10px;}
#screen .warehouse-total {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;margin-bottom:10px;border-radius:12px;background:linear-gradient(120deg,#eed2ad,#d1a675);border:2px solid #a97b4b;color:#533620;font-size:12px;font-weight:800;}
#screen .compact-store{background:#f3e3cc;border:2px solid #b7834f;}
#screen .compact-store .store-row{padding:6px 9px;gap:8px;border-color:#d6b896;}
#screen .compact-store .good-icon{font-size:26px;min-width:30px;}
#screen .compact-store .store-info strong{font-size:12px;}
#screen .compact-store .store-info small{font-size:10px;}
#screen .compact-store .action-button{font-size:10px;padding:7px;}
#screen .storage-empty{text-align:center;padding:25px 12px;background:#f5e2c8;border-radius:12px;color:#78563a;}
#screen .machine-store{display:grid;gap:10px;}
#screen .machine-card{display:grid;grid-template-columns:45px minmax(0,1fr);gap:10px;align-items:center;padding:13px;border-radius:14px;border:2px solid #b3824d;background:linear-gradient(120deg,#f8e9d1,#dbb58b);box-shadow:0 5px 12px #5d351e29;}
#screen .machine-icon{font-size:37px;text-align:center;}
#screen .machine-about h3{font-size:15px;color:#55341c;margin:0 0 5px;}
#screen .machine-about p{font-size:11px;color:#795638;margin:0 0 4px;}
#screen .machine-about small{color:#39623b;font-size:10px;font-weight:800;}
#screen .machine-action{grid-column:2;}
#screen .machine-action button{font-size:11px;padding:8px;}
#screen .machine-max{color:#46783a;font-weight:900;}
#screen .leader-switch{display:flex;gap:6px;background:#b98b5e;padding:4px;border:1px solid #8f603a;border-radius:10px;margin-bottom:10px;}
#screen .leader-switch button{flex:1;border:0;border-radius:7px;padding:8px 3px;background:#ead4b4;color:#58391d;font-weight:800;font-size:10px;cursor:pointer;}
#screen .leader-switch .chosen{background:#285e43;color:#fff;}
#screen .record-online{display:flex;flex-direction:column;gap:9px;padding:24px;text-align:center;background:#f1ddbd;border:2px solid #b48a56;border-radius:14px;color:#4f3924;}
#screen .record-online b{font-size:27px;color:#2e8c4c;}
#screen .record-online small{color:#677d49;}
#screen .profile-panel,#screen .achievement-group{background:#f2dcc0;border:2px solid #ae7c49;border-radius:14px;padding:13px;margin-bottom:13px;}
#screen .profile-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
#screen .profile-heading>span{display:grid;place-items:center;width:64px;height:64px;border:2px solid #b88c54;border-radius:50%;background:#faedd9;font-size:38px;}
#screen .profile-heading h3{font-size:21px;}
#screen .profile-heading small{color:#7b5b42;font-size:11px;}
#screen .profile-panel h3,#screen .achievement-group h3{color:#58391e;font-size:15px;margin:0 0 9px;}
#screen .avatar-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px;margin-bottom:14px;}
#screen .avatar-grid button{height:43px;border:2px solid #d4ab75;border-radius:9px;background:#f8ecd6;font-size:24px;cursor:pointer;}
#screen .avatar-grid button.selected{border-color:#35884c;background:#e1efcc;}
#screen .profile-form{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid #c7a57c;}
#screen .profile-form h3{flex-basis:100%;margin:0;}
#screen .profile-form input{flex:1 1 145px;min-width:0;padding:9px;border:1px solid #c39965;border-radius:9px;background:#fffbf5;font-size:12px;}
#screen .profile-form .action-button{padding:9px;font-size:11px;}
#screen .achievement-group h3 small{float:right;font-size:12px;color:#7e633d;}
#screen .achievements{display:grid;gap:7px;}
#screen .achievement-card{display:grid;grid-template-columns:40px minmax(0,1fr) 75px;gap:8px;align-items:center;background:#fff1df;border:1px solid #d7b38d;border-radius:11px;padding:7px;}
#screen .achievement-medal{display:grid;place-items:center;width:37px;height:40px;font-size:27px;}
#screen .achievement-medal.platinum{color:#f6f9ff;background:linear-gradient(145deg,#8d9fad,#dce2e8,#697888);font-size:29px;text-shadow:0 1px 2px #37495b;border:2px solid #9ba8bd;border-radius:50%;}
#screen .achievement-card b{font-size:11px;color:#563a25;}
#screen .achievement-card small{display:block;font-size:9px;color:#967453;}
#screen .achievement-card small svg{width:11px;height:11px;vertical-align:-1px;}
#screen .achievement-line{height:4px;overflow:hidden;margin-top:4px;border-radius:9px;background:#d6c3a5;}
#screen .achievement-line span{display:block;height:100%;background:#5dab50;}
#screen .achievement-card .action-button{font-size:9px;padding:6px 2px;white-space:normal;}
.warehouse-flight{position:fixed;pointer-events:none;z-index:999999;transform-origin:50% 70%;}
.warehouse-flight img{display:block;width:100%;height:100%;object-fit:contain;}
#game .warehouse-pulse{animation:warehouse-glow .38s ease-out;}
@keyframes warehouse-glow {50%{filter:drop-shadow(0 0 13px #f7d557);transform:scale(1.08)}}
@media(max-width:550px) {
  #game .tabs button{font-size:9px;padding:9px 0;}
  #game .pen-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;}
  #game .pen-card{min-height:140px;padding:6px 3px;}
  #game .pen-stage{min-height:65px;}
  #game .animal-stage-image{height:75px;}
  #screen .warehouse-total{font-size:11px;}
  #screen .profile-form .action-button{flex:1;}
  #screen .avatar-grid{grid-template-columns:repeat(4,1fr);}
  #game .xp-meter-top{font-size:9px;}
  #game .xp-meter-top b{font-size:10px;}
  #game .plot-grid-soil .plot-growth-status{top:0;}
}
@media(max-width:360px){
  #game .tabs button{font-size:8px;letter-spacing:-.3px;}
  #game .pen-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  #screen .achievement-card{grid-template-columns:34px minmax(0,1fr) 65px;gap:4px;}
}
@media(prefers-reduced-motion:reduce){.warehouse-flight{animation:none!important}}


/* V17 — спокойное непрерывное движение растений и животных. */
#game .plot-grid-soil .plot.planted .plot-plant {
  transform-origin: center 95%;
  animation: farm-life-crops 3.4s ease-in-out infinite;
  will-change: transform;
}
#game .plot-grid-soil .plot.planted:nth-child(3n + 2) .plot-plant {animation-duration:4.1s;animation-delay:-1.7s;}
#game .plot-grid-soil .plot.planted:nth-child(3n + 3) .plot-plant {animation-duration:2.95s;animation-delay:-1.05s;}
@keyframes farm-life-crops {
  0%,100% {transform: translate(0, 0) rotate(-1.2deg);}
  25% {transform: translate(-1px, -2px) rotate(1.7deg);}
  55% {transform: translate(1px,-3px) rotate(-1.5deg);}
  76% {transform: translate(1px, -1px) rotate(1.2deg);}
}
#game .pen-card.occupied .pen-stage .animal-stage-image,
#game .pen-card.occupied .pen-stage .animal-fallback {
  display:block;
  transform-origin: center 95%;
  animation: farm-life-animal-walk 4.35s ease-in-out infinite;
  will-change: transform;
}
#game .pen-card.occupied:nth-child(3n + 2) .animal-stage-image,
#game .pen-card.occupied:nth-child(3n + 2) .animal-fallback { animation-duration:5.3s; animation-delay:-2.1s; }
#game .pen-card.occupied:nth-child(3n + 3) .animal-stage-image,
#game .pen-card.occupied:nth-child(3n + 3) .animal-fallback { animation-duration:3.65s; animation-delay:-1.4s; }
#game .pen-card.occupied:hover .animal-stage-image {animation-duration:2.8s;}
@keyframes farm-life-animal-walk {
  0%,100% {transform:translate(0,0) rotate(0deg);}
  18% {transform:translate(-4px,-2px) rotate(-1.6deg);}
  33% {transform:translate(-6px,0) rotate(0deg);}
  54% {transform:translate(2px,-4px) rotate(1.6deg);}
  75% {transform:translate(5px,0) rotate(-.8deg);}
  90% {transform:translate(2px,-2px) rotate(.8deg);}
}
header.top .header-controls {display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0;}
header.top .sound-toggle {
  white-space:nowrap;
  border:1px solid #95ba9e80;
  border-radius:999px;
  background:#2e795f;
  color:#f7ffec;
  padding:7px 10px;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
}
header.top .sound-toggle:hover,header.top .sound-toggle:focus-visible { background:#398c70; }
header.top .sound-toggle[aria-pressed="false"] {background:#355447;color:#cbd8ce;}
@media(max-width:440px) {
  header.top {padding:12px 9px;gap:5px;}
  header.top .brand {gap:4px;min-width:0;}
  header.top .brand .logo {font-size:23px;}
  header.top .brand strong {font-size:14px;}
  header.top .brand small {font-size:8px;}
  header.top .header-controls {gap:4px;}
  header.top .sound-toggle {padding:6px;font-size:10px;}
  header.top #profileOpen {padding:7px 8px;font-size:10px;}
}
@media (prefers-reduced-motion: reduce) {
  #game .plot-grid-soil .plot.planted .plot-plant,
  #game .pen-card.occupied .pen-stage .animal-stage-image,
  #game .pen-card.occupied .pen-stage .animal-fallback {animation:none!important;will-change:auto;}
}


/* V18: один большой загон вместо множества карточек. */
#game .paddock-header {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:9px;padding:10px 12px;border-radius:12px;
  background:linear-gradient(115deg,#f9e9c9,#e3c296);
  border:1px solid #c69b69;color:#55351d;
}
#game .paddock-header b {font-size:13px;display:block;}
#game .paddock-header small {font-size:10px;display:block;color:#88643e;margin-top:3px;}
#game .paddock-header .action-button {font-size:12px;flex-shrink:0;}
#game .paddock-land {
  position:relative;isolation:isolate;overflow:hidden;
  height:clamp(330px,55vw,440px);
  border:8px ridge #b7844a;border-radius:20px;
  background:
    radial-gradient(ellipse at 21% 68%,#b6bb69 0%,transparent 31%),
    radial-gradient(ellipse at 75% 62%,#8ca74e 0%,transparent 36%),
    radial-gradient(ellipse at 50% 30%,#d8c180 0%,transparent 55%),
    repeating-linear-gradient(160deg,#9fbc6e 0 16px,#a7be70 17px 23px,#b9ad6d 27px 42px,#8aa55b 45px 51px),
    #91a964;
  box-shadow:inset 0 8px 32px #34220f6f,0 10px 18px #42250e38;
}
#game .paddock-land:before {content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 15% 43%,#4c712231 0 2px,transparent 3px),radial-gradient(circle at 77% 68%,#5b743b38 0 2px,transparent 3px),radial-gradient(circle at 50% 70%,#ffffff32 0 1px,transparent 2px);background-size:35px 33px,49px 47px,20px 27px;}
#game .paddock-field {position:absolute;inset:0;z-index:2;overflow:hidden;}
#game .paddock-rear-fence {position:absolute;top:10px;left:8px;right:8px;height:70px;z-index:1;pointer-events:none;border-radius:8px;background:repeating-linear-gradient(90deg,transparent 0 32px,#8c542d 32px 41px,#5f351d 41px 45px,transparent 45px 76px),linear-gradient(to bottom,transparent 0 23px,#9e6136 23px 33px,#603a20 33px 37px,transparent 37px 46px,#a26638 46px 56px,#5d351e 56px 60px,transparent 60px);filter:drop-shadow(0 4px 3px #32240c50);}
#game .paddock-front-fence {position:absolute;bottom:0;left:0;right:0;height:48px;z-index:105;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 39px,#a36c3c 39px 48px,#6b3f23 48px 52px,transparent 52px 88px),linear-gradient(to bottom,transparent 0 17px,#b77e49 17px 29px,#7c4826 29px 33px,transparent 33px);filter:drop-shadow(0 -2px 3px #42270d85);}
#game .paddock-meadow-grass {position:absolute;pointer-events:none;z-index:0;width:160px;height:28px;opacity:.6;background:repeating-linear-gradient(105deg,transparent 0 5px,#668a40 6px 8px,transparent 9px 13px);mask-image:linear-gradient(to top,#000,transparent);}
#game .paddock-meadow-grass.grass-a{left:5%;top:52%;transform:rotate(-8deg)}
#game .paddock-meadow-grass.grass-b{left:58%;top:26%;transform:rotate(11deg)}
#game .paddock-meadow-grass.grass-c{left:38%;top:82%;transform:rotate(-2deg)}
#game .paddock-animal {
  position:absolute;display:block;z-index:10;
  width:clamp(76px,17vw,110px);height:117px;
  padding:0;margin:0;border:0;background:transparent;
  color:#2d2115;text-align:center;cursor:pointer;
  transform:translate(-50%,-87%) scale(var(--animal-depth,1));transform-origin:50% 87%;
  touch-action:manipulation;
  will-change:left,top;
}
#game .paddock-animal:focus-visible {outline:3px solid #ffdb7c;border-radius:16px;}
#game .paddock-animal-shadow {position:absolute;left:13%;right:13%;bottom:9px;height:13px;z-index:0;border-radius:50%;background:#1f251a62;filter:blur(5px);}
#game .paddock-face {position:absolute;inset:0;display:grid;align-items:end;justify-items:center;transform-origin:center 80%;}
#game .paddock-walk-sprite {display:grid;align-items:end;justify-items:center;position:relative;width:100%;height:89px;margin-bottom:17px;transform-origin:50% 90%;}
#game .paddock-walk-sprite .animal-stage-image {display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 3px #2920136b);transition:none;}
#game .paddock-walk-sprite .animal-fallback {font-size:60px;filter:drop-shadow(0 5px 3px #2920136b);}
#game .paddock-animal.is-walking .paddock-walk-sprite {animation:paddock-real-gait .46s ease-in-out infinite;}
#game .paddock-animal.breed-cow.is-walking .paddock-walk-sprite {animation-duration:.83s;}
#game .paddock-animal.breed-sheep.is-walking .paddock-walk-sprite {animation-duration:.66s;}
#game .paddock-animal.breed-pig.is-walking .paddock-walk-sprite {animation-duration:.62s;}
#game .paddock-animal.is-resting .paddock-walk-sprite {animation:paddock-real-peck 3.5s ease-in-out infinite;}
@keyframes paddock-real-gait {0%,100%{transform:translateY(0) rotate(-1.1deg)}25%{transform:translateY(-3px) rotate(.8deg)}50%{transform:translateY(-1px) rotate(1.4deg)}75%{transform:translateY(-3px) rotate(-1deg)}}
@keyframes paddock-real-peck {0%,15%,48%,100%{transform:rotate(0) translateY(0)}24%,34%{transform:rotate(4deg) translateY(2px)}}
#game .paddock-animal-name {position:absolute;bottom:-1px;left:50%;transform:translateX(-50%);background:#59391fcf;border:1px solid #c99a60;border-radius:6px;padding:2px 5px;color:#fff0d7;font-weight:800;font-size:10px;line-height:1;white-space:nowrap;pointer-events:none;}
#game .paddock-animal-product {position:absolute;right:-10px;top:-7px;z-index:4;white-space:nowrap;color:#fff8eb;background:linear-gradient(#906334,#613d22);border:1px solid #efc576;border-radius:20px;padding:5px 6px;box-shadow:0 3px 9px #43240e70;font-size:12px;font-weight:900;animation:paddock-produce-bounce 2s ease-in-out infinite;pointer-events:none;}
#game .paddock-animal-product[hidden] {display:none!important;}
@keyframes paddock-produce-bounce {0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
#game .paddock-animal.selected .paddock-animal-name,#game .paddock-animal:hover .paddock-animal-name {border-color:#ffe08d;background:#7f4b22;}
#game .paddock-empty {position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);width:min(280px,85%);z-index:100;padding:16px;border-radius:18px;background:#f5e2c8f0;border:2px solid #9f6938;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;color:#4f331c;box-shadow:0 5px 19px #3e280f70;}
#game .paddock-empty strong{font-size:17px;}#game .paddock-empty span{font-size:12px;}#game .paddock-empty button{font-size:12px;}
#game .paddock-helper {font-size:11px;color:#795737;line-height:1.55;margin:9px 2px 0;}
#game .paddock-animal-panel {display:flex;justify-content:space-between;align-items:center;gap:10px;background:linear-gradient(105deg,#fff4df,#e7c597);border:2px solid #b47e48;border-radius:12px;padding:10px 12px;margin-top:9px;}
#game .paddock-animal-panel[hidden] {display:none!important;}
#game .paddock-inspector-title b {display:block;font-size:13px;color:#63391d;}
#game .paddock-inspector-title span {display:block;font-size:11px;color:#795333;}
#game .paddock-inspector-buttons {display:flex;flex-wrap:wrap;align-items:center;gap:5px;}
#game .paddock-inspector-buttons .action-button {font-size:11px;white-space:nowrap;padding:7px 9px;}
#game .paddock-wait {font-size:11px;color:#795333;}
#game .paddock-close {background:#e2c099;border:0;border-radius:50%;font-weight:bold;font-size:19px;width:27px;height:27px;color:#5b341a;}
@media(max-width:550px){
  #game .paddock-land {height:360px;border-width:6px;border-radius:15px;}
  #game .paddock-header {padding:8px;gap:8px;}
  #game .paddock-header b {font-size:11px;}
  #game .paddock-header small {font-size:9px;}
  #game .paddock-header .action-button {font-size:10px;padding:9px 7px;}
  #game .paddock-animal {width:80px;height:97px;}
  #game .paddock-walk-sprite {height:73px;margin-bottom:14px;}
  #game .paddock-animal-name {font-size:9px;}
  #game .paddock-animal-product {font-size:10px;right:0;top:-6px;padding:3px 5px;}
  #game .paddock-animal-panel {padding:8px;align-items:flex-start;flex-direction:column;}
}
@media(prefers-reduced-motion:reduce){
  #game .paddock-animal,#game .paddock-walk-sprite,#game .paddock-animal-product {animation:none!important;transition:none!important;will-change:auto;}
}


/* V19: покадровая походка животных в большом загоне */
#game .paddock-animal {
  width:clamp(82px,18vw,114px);
  height:124px;
}
#game .paddock-animal.breed-chicken {width:clamp(78px,16vw,104px);height:112px;}
#game .paddock-animal.breed-cow {width:clamp(110px,23vw,148px);height:140px;}
#game .paddock-animal.breed-sheep {width:clamp(102px,21vw,138px);height:136px;}
#game .paddock-animal.breed-pig {width:clamp(104px,21vw,142px);height:136px;}
#game .paddock-face {transform-origin:center 84%;}
#game .paddock-walk-sprite {
  display:block; position:relative; width:100%; height:95px; margin-bottom:17px;
  transform-origin:50% 100%;
}
#game .paddock-animal.breed-cow .paddock-walk-sprite {height:111px;}
#game .paddock-animal.breed-sheep .paddock-walk-sprite {height:108px;}
#game .paddock-animal.breed-pig .paddock-walk-sprite {height:106px;}
#game .paddock-sprite {
  display:block; width:100%; height:100%;
  background-repeat:no-repeat; background-size:400% 300%;
  background-position:0% calc(var(--sheet-row,0) * 50%);
  filter:drop-shadow(0 6px 3px #29201363);
}
#game .paddock-sprite.breed-chicken {background-image:url("animals/chicken_walksheet.png?v=19");}
#game .paddock-sprite.breed-cow {background-image:url("animals/cow_walksheet.png?v=19");}
#game .paddock-sprite.breed-sheep {background-image:url("animals/sheep_walksheet.png?v=19");}
#game .paddock-sprite.breed-pig {background-image:url("animals/pig_walksheet.png?v=19");}
#game .paddock-animal.is-walking .paddock-sprite {animation:paddock-sprite-frames .54s steps(4) infinite;}
#game .paddock-animal.breed-cow.is-walking .paddock-sprite {animation-duration:.92s;}
#game .paddock-animal.breed-sheep.is-walking .paddock-sprite {animation-duration:.74s;}
#game .paddock-animal.breed-pig.is-walking .paddock-sprite {animation-duration:.78s;}
#game .paddock-animal.is-walking .paddock-walk-sprite {animation:paddock-body-bob .54s ease-in-out infinite;}
#game .paddock-animal.breed-cow.is-walking .paddock-walk-sprite {animation-duration:.92s;}
#game .paddock-animal.breed-sheep.is-walking .paddock-walk-sprite {animation-duration:.74s;}
#game .paddock-animal.breed-pig.is-walking .paddock-walk-sprite {animation-duration:.78s;}
#game .paddock-animal.is-resting .paddock-walk-sprite {animation:paddock-rest-nod 3.2s ease-in-out infinite;}
#game .paddock-animal.breed-chicken.is-resting .paddock-walk-sprite {animation:paddock-rest-peck 2.4s ease-in-out infinite;}
#game .paddock-animal.is-resting .paddock-sprite {background-position-x:0%;}
@keyframes paddock-sprite-frames { from { background-position-x:0%; } to { background-position-x:100%; } }
@keyframes paddock-body-bob {
  0%,100% { transform:translateY(0) rotate(0deg); }
  25% { transform:translateY(-2px) rotate(.4deg); }
  50% { transform:translateY(-4px) rotate(-.2deg); }
  75% { transform:translateY(-2px) rotate(.35deg); }
}
@keyframes paddock-rest-nod {
  0%,100% { transform:translateY(0) rotate(0deg); }
  18% { transform:translateY(0) rotate(0deg); }
  27% { transform:translateY(1px) rotate(1.2deg); }
  36% { transform:translateY(0) rotate(0deg); }
  62% { transform:translateY(0) rotate(0deg); }
  74% { transform:translateY(-1px) rotate(-.8deg); }
}
@keyframes paddock-rest-peck {
  0%,15%,100% { transform:translateY(0) rotate(0deg); }
  28% { transform:translateY(2px) rotate(3.5deg); }
  35% { transform:translateY(5px) rotate(7deg); }
  46% { transform:translateY(1px) rotate(2deg); }
  60% { transform:translateY(0) rotate(0deg); }
}
@media(max-width:550px){
  #game .paddock-animal {width:88px;height:112px;}
  #game .paddock-animal.breed-cow {width:110px;height:122px;}
  #game .paddock-animal.breed-sheep,#game .paddock-animal.breed-pig {width:102px;height:120px;}
  #game .paddock-walk-sprite {height:79px;margin-bottom:14px;}
  #game .paddock-animal.breed-cow .paddock-walk-sprite {height:90px;}
  #game .paddock-animal.breed-sheep .paddock-walk-sprite,#game .paddock-animal.breed-pig .paddock-walk-sprite {height:86px;}
}
@media(prefers-reduced-motion:reduce){
  #game .paddock-sprite,#game .paddock-walk-sprite {animation:none!important;}
}

/* V20: ходьба по реальному расстоянию, живые колышущиеся травинки. */
#game .paddock-face {transition:transform .32s ease-in-out;}
#game .paddock-animal.is-walking .paddock-sprite,
#game .paddock-animal:not(.is-walking) .paddock-sprite {animation:none!important;}
#game .paddock-animal.is-walking .paddock-walk-sprite {animation:paddock-soft-steps .6s ease-in-out infinite;}
#game .paddock-animal.breed-cow.is-walking .paddock-walk-sprite {animation-duration:1.02s;}
#game .paddock-animal.breed-sheep.is-walking .paddock-walk-sprite {animation-duration:.76s;}
#game .paddock-animal.breed-pig.is-walking .paddock-walk-sprite {animation-duration:.82s;}
@keyframes paddock-soft-steps {0%,100%{transform:translateY(0)}25%,75%{transform:translateY(-1.5px)}50%{transform:translateY(-3px)}}
#game .paddock-grass-tuft {
  position:absolute;z-index:1; width:var(--tuft-size,12px);height:20px;
  transform:translate(-50%,-90%);pointer-events:none;
  filter:drop-shadow(0 1px 1px #27371235);
}
#game .paddock-grass-tuft i {
  position:absolute;display:block;bottom:0;left:45%;height:70%;width:3px;
  border-radius:90% 30% 0 0;
  background:linear-gradient(to top,#4b7130,#8cbf55 72%,#c3ce75);
  transform-origin:50% 100%;
  animation:grass-wind var(--wind-duration,3s) ease-in-out var(--wind-delay,0s) infinite alternate;
}
#game .paddock-grass-tuft i:first-child {height:68%;left:20%;transform:rotate(-24deg);animation-name:grass-wind-left;}
#game .paddock-grass-tuft i:nth-child(2) {height:92%;left:46%;width:3.5px;animation-name:grass-wind-center;}
#game .paddock-grass-tuft i:last-child {height:74%;left:65%;transform:rotate(22deg);animation-name:grass-wind-right;}
#game .paddock-grass-tuft.tint-1 i {background:linear-gradient(to top,#557b34,#9ac65c,#c6d97b);}
#game .paddock-grass-tuft.tint-2 i {background:linear-gradient(to top,#547438,#80ad4c,#b1cc69);}
#game .paddock-grass-tuft.grass-brushed i {animation-duration:.38s;}
@keyframes grass-wind {from{transform:rotate(-9deg)}to{transform:rotate(11deg)}}
@keyframes grass-wind-left {from{transform:rotate(-35deg)}to{transform:rotate(-12deg)}}
@keyframes grass-wind-center {from{transform:rotate(-12deg)}to{transform:rotate(14deg)}}
@keyframes grass-wind-right {from{transform:rotate(10deg)}to{transform:rotate(34deg)}}
@media(prefers-reduced-motion:reduce){
  #game .paddock-grass-tuft i {animation:none!important;}
  #game .paddock-face {transition:none!important;}
}


/* V22 — Главная интерактивная карта фермы. */
.shell:has(#game.map-mode){width:min(1200px,100%);}
#game.map-mode .welcome{display:none;}
#game .tabs{display:flex;grid-template-columns:none;gap:4px;overflow-x:auto;scrollbar-width:none;padding:5px;}
#game .tabs::-webkit-scrollbar{display:none;}
#game .tabs button{flex:1 0 auto;min-width:87px;padding:11px 8px;white-space:nowrap;}
#game.map-mode .tabs{margin-bottom:10px;}
.village-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:7px 4px 12px;}
.village-heading h2{color:#57351f;margin:0;font-size:20px;}
.village-heading small{display:block;color:#805e43;font-size:11px;margin-top:4px;}
.village-heading-tag{background:#e3ca9f;border:1px solid #be9a61;color:#67401c;font-weight:800;font-size:11px;border-radius:999px;padding:7px 11px;white-space:nowrap;}
.village-map-viewport{position:relative;overflow:hidden;isolation:isolate;width:100%;height:clamp(400px,69dvh,690px);background:#718851;border:5px solid #956038;box-shadow:inset 0 0 0 2px #e8bb72,0 16px 30px #4a281b55;border-radius:19px;touch-action:none;overscroll-behavior:contain;user-select:none;cursor:grab;outline-offset:3px;}
.village-map-viewport.is-panning{cursor:grabbing;}
.village-map-world{position:absolute;left:0;top:0;width:1672px;height:682px;transform-origin:top left;will-change:transform;}
.village-map-picture{display:block;width:1672px;height:682px;pointer-events:none;user-select:none;object-fit:fill;}
.village-zone{position:absolute;z-index:3;display:block;background:transparent;border:2px solid transparent;border-radius:25px;cursor:pointer;touch-action:none;}
.village-zone:hover{background:#fff3b113;border-color:#ffdb80;box-shadow:inset 0 0 35px #ffe0a333,0 0 0 5px #4f2d211a;}
.village-zone:focus-visible{outline:6px solid #ffeb78;outline-offset:-4px;background:#fff3b133;}
.village-house-tag{position:absolute;left:50%;bottom:11%;transform:translateX(-50%);padding:7px 15px;border-radius:15px;border:2px solid #deb77b;background:linear-gradient(#79512d,#432a1a);box-shadow:0 4px 9px #251308a3;color:#fff4d9;font-size:17px;font-weight:900;white-space:nowrap;text-shadow:0 1px 2px #1b1108;}
.village-map-toolbar{position:absolute;right:12px;bottom:62px;z-index:10;display:grid;gap:8px;}
.village-map-toolbar button{width:46px;height:46px;display:grid;place-items:center;border:2px solid #f8d394;border-radius:50%;background:linear-gradient(160deg,#83582f,#513116);box-shadow:0 3px 12px #271607a8;color:#fff9e4;font-size:29px;font-weight:900;line-height:1;touch-action:manipulation;cursor:pointer;}
.village-map-toolbar button:active{transform:scale(.94);}
.village-map-toolbar button:focus-visible{outline:3px solid #ffe484;outline-offset:3px;}
.village-map-hint{position:absolute;z-index:9;bottom:11px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);padding:9px 15px;text-align:center;color:#fff8e8;background:#33231bd9;box-shadow:0 5px 14px #130c0780;border:1px solid #d9b179;border-radius:999px;font-size:12px;font-weight:750;white-space:nowrap;pointer-events:none;}
#game.map-mode #screen{min-height:0;}
@media(max-width:600px){
 .shell:has(#game.map-mode){padding-left:7px;padding-right:7px;}
 .village-heading{margin:8px 3px 9px;}
 .village-heading h2{font-size:18px;}
 .village-heading-tag{display:none;}
 .village-map-viewport{height:clamp(390px,64dvh,680px);border-width:4px;border-radius:14px;}
 .village-map-toolbar{right:8px;bottom:56px;gap:7px;}
 .village-map-toolbar button{width:42px;height:42px;font-size:27px;}
 .village-map-hint{bottom:8px;padding:8px 10px;font-size:10px;}
 #game .tabs button{min-width:78px;font-size:11px;padding:10px 7px;}
}
@media(prefers-reduced-motion:reduce){.village-map-world{will-change:auto;}}


/* V23 — Canvas Phaser поверх оригинальной карты; управление остаётся отзывчивым на Android. */
#game .village-map-stage{position:absolute;inset:0;z-index:5;width:100%;height:100%;overflow:hidden;touch-action:none;}
#game .village-map-stage[hidden]{display:none!important;}
#game .village-map-stage canvas{display:block;width:100%;height:100%;touch-action:none;outline:none;}
#game .village-map-viewport:has(.village-map-stage:not([hidden])){cursor:grab;}
#game .village-map-viewport:has(.village-map-stage:not([hidden])):active{cursor:grabbing;}
#game .village-map-toolbar{z-index:12;}
#game .village-map-hint{z-index:12;pointer-events:none;}
#game .village-map-world[hidden]{display:none!important;}

/* V24 — заметная анимация карты независимо от доступности CDN Phaser. */
#game .farm-life-v24{position:absolute;inset:0;pointer-events:none;z-index:8;overflow:hidden;contain:layout paint;}
#game .life-world{position:absolute;left:0;top:0;width:1672px;height:682px;transform-origin:top left;pointer-events:none;will-change:transform;}
#game .life-grass{position:absolute;display:block;width:14px;height:22px;transform-origin:bottom center;animation:life-grass-wind var(--time,3s) ease-in-out var(--delay,0s) infinite alternate;filter:drop-shadow(1px 2px 1px #21391380);}
#game .life-grass:before,#game .life-grass:after{content:"";position:absolute;bottom:0;left:6px;border-radius:90% 4% 90% 4%;background:linear-gradient(75deg,#285f26,#8bbf3b 65%,#d6df6c);width:6px;height:19px;transform:rotate(-23deg);transform-origin:bottom;}
#game .life-grass:after{left:5px;height:16px;transform:rotate(35deg);filter:brightness(.85);}
@keyframes life-grass-wind{0%{transform:rotate(-13deg) skewX(-2deg)}100%{transform:rotate(16deg) skewX(3deg)}}
#game .life-water{position:absolute;display:block;width:28px;height:3px;background:linear-gradient(90deg,transparent,#cbfbff 35%,white 65%,transparent);border-radius:100%;box-shadow:0 2px 5px #c8efff88;opacity:.7;animation:life-stream var(--time,1.5s) ease-in-out var(--delay,0s) infinite;transform-origin:center center;}
@keyframes life-stream{0%{transform:translate(2px,-4px) scaleX(.45);opacity:0}32%{opacity:.82}85%{opacity:.62}100%{transform:translate(-24px,16px) scaleX(1.25);opacity:0}}
#game .life-mill-wheel{position:absolute;width:98px;height:98px;transform:translate(-50%,-50%);filter:drop-shadow(1px 2px 3px #1c0c0ca6);}
#game .life-mill-wheel svg{display:block;width:100%;height:100%;animation:life-wheel-rotate 11s linear infinite;}
@keyframes life-wheel-rotate{to{transform:rotate(360deg)}}
#game .life-smoke{position:absolute;display:block;width:var(--w,18px);height:var(--w,18px);border-radius:50%;background:radial-gradient(circle,#f7f7f4c9,#e2eef6a8 55%,transparent 75%);box-shadow:0 0 11px #e9eef255;animation:life-smoke-up 4.6s ease-out var(--delay,0s) infinite;filter:blur(1px);}
@keyframes life-smoke-up{0%{opacity:0;transform:translate(0,0) scale(.55)}16%{opacity:.9}60%{opacity:.65}100%{opacity:0;transform:translate(32px,-99px) scale(2.7)}}
#game .life-butterfly{position:absolute;width:20px;height:15px;transform-origin:center;animation:life-fly 6s ease-in-out var(--delay,0s) infinite;filter:drop-shadow(0 2px 2px #18281d66);}
#game .life-wing{position:absolute;top:2px;width:10px;height:13px;background:linear-gradient(115deg,#ffeb71,#ef8c31);border:1px solid #5c351b;border-radius:80% 80% 50% 80%;transform-origin:right center;animation:life-wing-flap .24s ease-in-out infinite alternate;}
#game .life-wing.right{left:10px;transform-origin:left center;animation-direction:alternate-reverse;}
#game .life-body{position:absolute;left:9px;top:3px;height:12px;width:3px;background:#2d2922;border-radius:3px;}
@keyframes life-fly{0%{transform:translate(0,0) rotate(-10deg)}25%{transform:translate(25px,-20px) rotate(11deg)}50%{transform:translate(-5px,-38px) rotate(-8deg)}75%{transform:translate(-31px,-10px) rotate(14deg)}100%{transform:translate(0,0) rotate(-10deg)}}
@keyframes life-wing-flap{from{transform:scaleX(.20) rotate(-18deg)}to{transform:scaleX(1.12) rotate(12deg)}}
#game .life-falling-leaf{position:absolute;display:block;width:13px;height:8px;background:linear-gradient(135deg,#dfe474,#73aa39,#456e29);border-radius:100% 0 100% 0;box-shadow:0 1px 3px #172d186b;animation:life-leaf-drift 5.6s ease-in-out var(--delay,0s) infinite;transform-origin:50% 50%;}
@keyframes life-leaf-drift{0%{opacity:0;transform:translate(-18px,-15px) rotate(-30deg)}25%{opacity:1}65%{opacity:.9}100%{opacity:0;transform:translate(76px,38px) rotate(360deg)}}
#game .life-bird{position:absolute;width:26px;height:15px;animation:life-bird-fly 13s linear var(--delay,0s) infinite;}
#game .life-bird i{position:absolute;top:7px;width:13px;height:3px;border-top:3px solid #283c43;border-radius:100% 100% 0 0;transform-origin:right center;animation:life-bird-wing .47s ease-in-out infinite alternate;}
#game .life-bird i:nth-child(2){left:13px;transform-origin:left center;animation-direction:alternate-reverse;}
@keyframes life-bird-fly{0%{opacity:0;transform:translate(-140px,20px) scale(.9)}12%{opacity:.95}82%{opacity:.95}100%{opacity:0;transform:translate(145px,-35px) scale(.75)}}
@keyframes life-bird-wing{from{transform:rotate(22deg)}to{transform:rotate(-31deg)}}
#game .life-animal{position:absolute;pointer-events:none;transform:translate(-50%,-78%);will-change:left,top;}
#game .life-animal-shadow{display:block;position:absolute;left:21%;bottom:5%;width:58%;height:10%;border-radius:50%;background:#192b0c49;filter:blur(6px)}
#game .life-animal-sprite{display:block;position:absolute;inset:0;background-size:400% 100%;background-position:0 0;background-repeat:no-repeat;animation:life-footsteps var(--step,.6s) steps(1,end) var(--phase,0s) infinite,life-body-bob .37s ease-in-out infinite alternate;filter:drop-shadow(0 4px 3px #21300b66);}
#game .life-animal[data-direction="left"] .life-animal-sprite{transform:scaleX(-1)}
@keyframes life-footsteps{0%,24.99%{background-position-x:0%}25%,49.99%{background-position-x:33.3333%}50%,74.99%{background-position-x:66.6667%}75%,100%{background-position-x:100%}}
@keyframes life-body-bob{from{margin-top:0}to{margin-top:-2px}}
#game .life-activity-label{position:absolute;z-index:14;top:10px;left:10px;background:#263b22dc;border:1px solid #bcd77eaa;border-radius:999px;color:#fbffea;padding:7px 12px;font-size:12px;font-weight:800;box-shadow:0 2px 6px #0007;pointer-events:none;}
#game .life-live-dot{display:inline-block;width:8px;height:8px;border-radius:100%;background:#a8ff63;box-shadow:0 0 0 3px #a6ff6333;animation:life-live-pulse 1.2s infinite alternate;}
@keyframes life-live-pulse{to{opacity:.3;transform:scale(.65)}}
#game .life-motion-toggle{position:absolute;z-index:14;left:10px;bottom:62px;display:block;padding:10px 12px;border-radius:12px;border:2px solid #e1cc97;background:#3b2c1fe8;color:#fff5cf;font-weight:800;font-size:12px;cursor:pointer;touch-action:manipulation;}
#game .life-paused *{animation-play-state:paused!important}
@media(max-width:600px){#game .life-motion-toggle{left:7px;bottom:55px;font-size:11px;padding:8px}#game .life-activity-label{left:7px;top:7px;font-size:11px}}


/* Ферма V25 — физические изображения в независимых слоях, с ветром и глубиной. */
#game .v25-map-background{position:absolute;display:block;left:0;top:0;width:1672px;pointer-events:none;user-select:none;}
#game .v25-horizon{height:132px;z-index:0}
#game .v25-terrain{height:682px;z-index:1}
#game .v25-map-building{position:absolute;display:block;z-index:3;pointer-events:none;user-select:none}
#game .world-v25-overlay{position:absolute;inset:0;z-index:8;overflow:hidden;contain:layout paint;pointer-events:none;}
#game .world-v25-world{position:absolute;left:0;top:0;width:1672px;height:682px;transform-origin:top left;pointer-events:none;will-change:transform}
#game .v25-segment{position:absolute;display:block;user-select:none;pointer-events:none;will-change:transform;}
#game .v25-trees{transform-origin:50% 93%;animation:v25-canopy-wind 4.2s ease-in-out var(--v25-phase,0s) infinite alternate;}
#game .v25-crops{transform-origin:50% 91%;animation:v25-crops-wind 2.75s ease-in-out var(--v25-phase,0s) infinite alternate;}
#game .v25-water{transform-origin:40% 50%;animation:v25-water-flow 2.3s ease-in-out infinite alternate;filter:saturate(1.08) brightness(1.045);}
#game .v25-props{transform-origin:50% 50%;animation:v25-waterwheel 8.8s linear infinite;}
@keyframes v25-canopy-wind{0%{transform:rotate(-1.8deg) translateX(-2px)}100%{transform:rotate(2.4deg) translateX(3px)}}
@keyframes v25-crops-wind{0%{transform:skewX(-1.1deg) scaleX(.993)}100%{transform:skewX(1.3deg) scaleX(1.007)}}
@keyframes v25-water-flow{0%{transform:translate(-1px,0px) skewY(-.25deg);filter:brightness(.99)}100%{transform:translate(3px,2px) skewY(.27deg);filter:brightness(1.085)}}
@keyframes v25-waterwheel{to{transform:rotate(360deg)}}
#game .v25-grass-plane,#game .v25-glints,#game .v25-fx,#game .v25-animal-plane{position:absolute;left:0;top:0;width:1672px;height:682px;pointer-events:none}
#game .v25-grass-blade{position:absolute;display:block;width:12px;transform-origin:bottom center;animation:v25-grasswind var(--wind,3s) ease-in-out var(--phase,0s) infinite alternate;filter:drop-shadow(1px 1px 1px #1d431944);}
#game .v25-grass-blade:before,#game .v25-grass-blade:after{content:"";position:absolute;bottom:0;width:5px;height:100%;border-radius:100% 5% 100% 3%;background:linear-gradient(80deg,#1e5727,#71b841 60%,#c7df6b);transform:rotate(-23deg);transform-origin:bottom left;}
#game .v25-grass-blade:after{height:72%;left:4px;transform:rotate(26deg);background:linear-gradient(130deg,#426d23,#c1d76a)}
@keyframes v25-grasswind{from{transform:rotate(-17deg)}to{transform:rotate(17deg)}}
#game .v25-glint{position:absolute;width:24px;height:3px;border-radius:100%;background:linear-gradient(90deg,transparent,#d8ffff 30%,#fff 70%,transparent);box-shadow:0 1px 5px #d7f7fbaa;animation:v25-current var(--speed,2s) ease-in-out var(--phase,0s) infinite;}
@keyframes v25-current{0%{opacity:0;transform:translate(6px,-6px) scaleX(.5)}25%{opacity:.92}100%{opacity:0;transform:translate(-34px,24px) scaleX(1.5)}}
#game .v25-smoke{position:absolute;display:block;width:17px;height:17px;border-radius:50%;background:radial-gradient(circle,#faf7eff0,#dbe3df9c 50%,transparent 78%);animation:v25-smoke-rise 4.4s ease-out var(--phase,0s) infinite;filter:blur(2px)}
@keyframes v25-smoke-rise{0%{opacity:0;transform:translate(0px,6px) scale(.55)}16%{opacity:.86}100%{opacity:0;transform:translate(var(--drift,24px),-110px) scale(3.4)}}
#game .v25-leaf{position:absolute;width:12px;height:7px;border-radius:100% 0 100% 0;background:linear-gradient(145deg,#d4dc66,#739e2e,#274d29);animation:v25-leaf-fly 5.7s ease-in-out var(--phase,0s) infinite;}
@keyframes v25-leaf-fly{0%{opacity:0;transform:translate(-24px,-17px) rotate(-50deg)}25%{opacity:.8}100%{opacity:0;transform:translate(63px,53px) rotate(355deg)}}
#game .v25-butterfly{position:absolute;width:16px;height:14px;animation:v25-butterfly-fly 5.2s ease-in-out var(--phase,0s) infinite;}
#game .v25-butterfly i{position:absolute;top:2px;width:8px;height:10px;background:linear-gradient(100deg,#ffdf60,#ef7b39);border:1px solid #7e4624;border-radius:90% 65% 90% 60%;transform-origin:right center;animation:v25-wing .19s ease-in-out infinite alternate;}
#game .v25-butterfly .v25-right-wing{left:9px;transform-origin:left center;animation-direction:alternate-reverse;}
@keyframes v25-wing{from{transform:scaleX(.24)}to{transform:scaleX(1.1)}}
@keyframes v25-butterfly-fly{0%{transform:translate(0,0)}25%{transform:translate(15px,-24px)}55%{transform:translate(-9px,-34px)}75%{transform:translate(-22px,-9px)}100%{transform:translate(0,0)}}
#game .v25-lamp{position:absolute;width:12px;height:12px;border-radius:50%;background:radial-gradient(circle,#fff7a9 5%,#ffce69 33%,transparent 68%);box-shadow:0 0 12px 7px #edb75145;animation:v25-lamp-light 3s ease-in-out infinite alternate;}
@keyframes v25-lamp-light{to{opacity:.5;transform:scale(.75)}}
#game .v25-live-animal{position:absolute;pointer-events:none;transform:translate(-50%,-84%);will-change:left,top;}
#game .v25-animal-shadow{display:block;position:absolute;left:19%;bottom:10%;height:11%;width:61%;border-radius:50%;background:#1d2c1040;filter:blur(6px);}
#game .v25-animal-art{position:absolute;display:block;inset:0;background-repeat:no-repeat;background-size:400% 100%;background-position:0 0;animation:v25-leg-frames var(--v25-step,.7s) steps(1,end) var(--v25-phase,0s) infinite,v25-body-bob .28s ease-in-out infinite alternate;filter:drop-shadow(0 3px 4px #1d2e1366);}
#game .v25-live-animal[data-facing="left"] .v25-animal-art{transform:scaleX(-1)}
@keyframes v25-leg-frames{0%,24.9%{background-position-x:0}25%,49.9%{background-position-x:33.3333%}50%,74.9%{background-position-x:66.6667%}75%,100%{background-position-x:100%}}
@keyframes v25-body-bob{from{margin-top:0}to{margin-top:-1.7px}}
#game .v25-status{position:absolute;top:9px;left:9px;z-index:14;pointer-events:none;background:#253c24dc;color:#f7ffe8;border:1px solid #bedd97;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:800;box-shadow:0 2px 5px #152a17a0}
#game .v25-status i{display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:#aeff6c;box-shadow:0 0 9px #b2f979;animation:v25-status-pulse 1.2s alternate infinite;}
@keyframes v25-status-pulse{to{opacity:.35;transform:scale(.65)}}
#game .v25-toggle{position:absolute;z-index:14;left:9px;bottom:63px;padding:10px 13px;font-size:12px;font-weight:800;background:#412a1fe9;color:#fff3d9;border:2px solid #dfbf88;border-radius:13px;cursor:pointer;touch-action:manipulation;}
#game .v25-paused *{animation-play-state:paused!important}
@media(max-width:600px){#game .v25-toggle{left:7px;bottom:54px;font-size:11px;padding:8px}#game .v25-status{left:7px;top:7px;font-size:11px;padding:7px}}
@media(prefers-reduced-motion:reduce){#game .world-v25-overlay *{animation-duration:20s!important}}


/* V26: IMPORTANT — untouched original map under every animation layer.
   These transparent cutouts never reveal inpainted / blurred repairs. */
#game .v26-map-picture {
  position:absolute;display:block;inset:0;width:1672px;height:682px;
  object-fit:fill;pointer-events:none;user-select:none;-webkit-user-drag:none;
}
#game .v25-segment.v25-trees {opacity:.96;animation:v26-tree-breeze 5.6s ease-in-out var(--v25-phase,0s) infinite alternate;}
#game .v25-segment.v25-crops {opacity:.96;animation:v26-plant-breeze 3.8s ease-in-out var(--v25-phase,0s) infinite alternate;}
@keyframes v26-tree-breeze {from{transform:rotate(-.38deg) translateX(-.4px)}to{transform:rotate(.38deg) translateX(.4px)}}
@keyframes v26-plant-breeze {from{transform:skewX(-.38deg)}to{transform:skewX(.38deg)}}
/* A cohesive portrait map screen: the world fills the space between HUD and navigation. */
@media (max-width:700px) and (orientation:portrait) {
  html:has(#game.map-mode),body:has(#game.map-mode){height:100%;height:100dvh;overflow:hidden;overscroll-behavior:none;}
  body:has(#game.map-mode) .shell {width:100%;max-width:none;min-height:0;margin:0;padding:0!important;}
  body:has(#game.map-mode) header.top {
    position:fixed;top:0;left:0;right:0;z-index:80;height:51px;min-height:51px;
    box-sizing:border-box;margin:0;padding:5px 10px;border-radius:0;
  }
  body:has(#game.map-mode) header.top .brand strong{font-size:14px}
  body:has(#game.map-mode) header.top .brand small{font-size:8px}
  body:has(#game.map-mode) header.top .header-controls {gap:4px;}
  body:has(#game.map-mode) header.top .sound-toggle,
  body:has(#game.map-mode) header.top #profileOpen {padding:6px;font-size:10px}
  #game.map-mode {display:block!important;}
  #game.map-mode >.wallet {
    position:fixed;top:51px;left:0;right:0;z-index:74;display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));height:53px;gap:0;
    margin:0;padding:3px 5px;box-sizing:border-box;
    background:#eed7aeef;box-shadow:0 2px 9px #33220c55;
  }
  #game.map-mode >.wallet >div{
    min-width:0;min-height:0;padding:3px 2px;display:flex;flex-direction:row;
    flex-wrap:wrap;align-items:center;justify-content:center;column-gap:3px;row-gap:0;
    box-sizing:border-box;border-radius:7px;box-shadow:none;
  }
  #game.map-mode >.wallet >div >span {flex:0 0 17px;font-size:13px;line-height:1}
  #game.map-mode >.wallet >div .wallet-stat-icon, #game.map-mode >.wallet >div .wallet-stat-icon svg{width:18px;height:18px}
  #game.map-mode >.wallet small {font-size:8px;line-height:1.1;white-space:nowrap}
  #game.map-mode >.wallet b {font-size:14px;line-height:1.1;white-space:nowrap;overflow:visible;word-break:normal;text-align:center;flex-basis:100%}
  #game.map-mode >.xp-meter {
    position:fixed;top:104px;left:0;right:0;z-index:74;height:28px;
    margin:0!important;padding:2px 11px 3px;box-sizing:border-box;border-radius:0;
    background:#f4e6cbea;box-shadow:0 3px 7px #31200c33;
  }
  #game.map-mode .xp-meter-top {margin-bottom:1px;font-size:9px;line-height:1.2}
  #game.map-mode .xp-meter-top span,#game.map-mode .xp-meter-top b{font-size:9px}
  #game.map-mode .xp-meter-track {height:6px;min-height:6px;}
  #game.map-mode .tabs {
    position:fixed;bottom:0;left:0;right:0;z-index:85;
    display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
    box-sizing:border-box;width:100%;height:calc(65px + env(safe-area-inset-bottom,0px));
    margin:0;padding:5px 3px calc(5px + env(safe-area-inset-bottom,0px));gap:3px;
    border:0;border-top:2px solid #bf9359;border-radius:0;
    background:#e6c99ef5;box-shadow:0 -4px 16px #2b1a0f55;
    overflow:visible;
  }
  #game.map-mode .tabs button{
    flex:unset;width:100%;height:53px;min-width:0;padding:4px 1px;
    border-radius:9px;font-size:10px;line-height:1.16;white-space:normal;
    overflow-wrap:anywhere;text-align:center;
  }
  #game.map-mode #screen{
    position:fixed;top:132px;bottom:calc(65px + env(safe-area-inset-bottom,0px));
    left:0;right:0;z-index:4;margin:0;padding:0;width:100%;min-height:0;
    overflow:hidden;
  }
  #game.map-mode .village-heading {display:none;}
  #game.map-mode .village-map-viewport{
    position:absolute;inset:0;width:100%;height:100%;min-height:0;
    border:0;border-radius:0;box-shadow:none;background:#608b64;
  }
  #game.map-mode .village-map-toolbar {right:9px;bottom:90px;gap:7px;}
  #game.map-mode .village-map-toolbar button {width:46px;height:46px;font-size:28px;}
  #game.map-mode .village-map-hint {
    bottom:6px;left:50%;max-width:62%;white-space:normal;
    border-radius:10px;padding:6px 9px;font-size:9px;line-height:1.25;
  }
  #game.map-mode .v25-status {top:9px;left:8px;font-size:10px;max-width:65%;}
  #game.map-mode .v25-toggle {left:9px;bottom:90px;font-size:11px;padding:9px 10px;}
  #game.map-mode .footnote {display:none;}
  body:has(#game.map-mode) >footer,body:has(#game.map-mode) footer {display:none;}
}
@media (max-width:360px) and (orientation:portrait){
  #game.map-mode .tabs button{font-size:9px}
  #game.map-mode >.wallet small{font-size:7px}
  #game.map-mode .v25-status{font-size:9px}
}
/* V26 readability polish: all six mobile destinations remain visible. */
@media (max-width:700px) and (orientation:portrait) {
  #game.map-mode .tabs button:not(.active) {
    color:#4a321c;font-weight:800;
    background:linear-gradient(165deg,#fff2d8,#e7c9a0);
    border:1px solid #cda978;text-shadow:none;
  }
  #game.map-mode .tabs button.active {
    color:#fff;font-weight:900;background:linear-gradient(150deg,#17a895,#0f7768);
    border:1px solid #0d786d;text-shadow:none;
  }
}


/* --- V31: COMPACT 2D FARM --- */
html,body {min-height:100%;}
body {background:#f3e8d8!important;color:#35291e;}
.shell{width:min(1400px,100%)!important;padding:0 12px 16px!important;}
header.top.v31-top{position:relative;display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-height:40px!important;margin:0 0 7px!important;border-radius:0 0 11px 11px!important;padding:4px 9px!important;background:linear-gradient(100deg,#116754,#168970)!important;box-shadow:0 3px 9px #55301818!important;}
.v31-head-actions{display:flex;align-items:center;gap:5px;}
.v31-head-btn{border:1px solid #ffffff55;border-radius:8px;padding:5px 10px;background:#ffffff18;color:white;font-size:12px;font-weight:800;line-height:1.3;white-space:nowrap;}
.v31-head-btn:hover{background:#ffffff32;}
.v31-build{color:#d6f9d9;font-size:10px;font-weight:700;white-space:nowrap;}
#game>.welcome{display:none!important;}
#game>.xp-meter.v31-xp-meter{display:block!important;margin:4px 1px 5px!important;padding:5px 10px!important;border-radius:9px!important;min-height:29px!important;}
#game>.xp-meter.v31-xp-meter .xp-meter-top{margin-bottom:3px!important;font-size:10px!important;line-height:1.1!important;}
#game>.xp-meter.v31-xp-meter .xp-meter-top b{font-size:10px!important;}
#game>.xp-meter.v31-xp-meter .xp-meter-track{height:6px!important;border-radius:8px!important;}
#game>.wallet.v31-wallet{display:flex!important;flex-wrap:wrap;gap:7px!important;margin:3px 0 9px!important;align-items:stretch;}
#game>.wallet.v31-wallet>div{display:flex!important;flex:0 1 auto!important;align-items:center!important;gap:5px!important;min-height:31px!important;border-radius:9px!important;margin:0!important;padding:4px 10px!important;background:#fff8ee!important;box-shadow:0 1px 4px #57310d12!important;border:1px solid #e6cba8!important;}
#game>.wallet.v31-wallet span{font-size:16px!important;display:inline!important;margin:0!important;line-height:1!important;}
#game>.wallet.v31-wallet small{font-size:10px!important;display:inline!important;letter-spacing:0!important;margin:0!important;color:#715b44!important;white-space:nowrap;}
#game>.wallet.v31-wallet b{font-size:13px!important;letter-spacing:0!important;line-height:1.1!important;color:#49321b!important;}
#game>.wallet.v31-wallet .diamond-wallet{order:2;}
#game.hub-mode>.v31-tabs{display:none!important;}
#game:not(.hub-mode)>.v31-tabs{display:flex!important;flex-wrap:wrap;gap:4px!important;padding:4px!important;margin-bottom:7px!important;border-radius:9px!important;background:#ead8be!important;}
#game>.v31-tabs button{flex:1 1 auto;min-width:76px;padding:6px 8px!important;font-size:11px!important;border-radius:8px!important;white-space:nowrap;}
#game>.v31-tabs button.active{background:#168670!important;color:#fff!important;}
#game>#screen{min-height:0;}
#game>.footnote,body footer{display:none!important;}
.v31-home-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:7px 2px 9px;}
.v31-home-title h2{font-size:clamp(16px,2vw,21px)!important;color:#4a3523!important;}
.v31-home-title>span{font-size:11px;color:#94775a;}
.v31-hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:1320px;margin:0 auto 15px;}
.v31-hub-tile{border:1px solid #cda97c;min-width:0;min-height:142px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;position:relative;overflow:hidden;padding:14px 14px 13px;text-align:left;box-shadow:inset 0 1px 0 #ffffffb2,0 4px 10px #67451e1a;border-radius:16px;background:linear-gradient(160deg,#fff8e6,#e2c294);transition:transform .18s ease,box-shadow .18s ease;color:#49301a;}
.v31-hub-tile:not(.v31-reserved):hover{transform:translateY(-3px);box-shadow:0 8px 19px #59381325;}
.v31-hub-illustration{font-size:clamp(37px,4.2vw,54px);line-height:1.1;margin:0 0 auto;filter:drop-shadow(0 3px 2px #49321330);}
.v31-hub-title{font-size:clamp(16px,1.6vw,21px);font-weight:900;line-height:1.25;text-shadow:0 1px 0 #fff9e9;}
.v31-hub-caption{font-size:11px;line-height:1.3;margin-top:2px;color:#856746;}
.v31-hub-chevron{position:absolute;top:10px;right:12px;border-radius:100%;background:#ffffff92;border:1px solid #f5e1c8;display:grid;place-items:center;font-size:18px;width:27px;height:27px;color:#5c3e22;}
.v31-tile-profile{background:linear-gradient(145deg,#fff6e7,#eec99a);}
.v31-tile-plots{background:linear-gradient(150deg,#f7ffd9,#b7db87);border-color:#8eb661;}
.v31-tile-storage{background:linear-gradient(145deg,#fff5d8,#dbb275);}
.v31-tile-barn{background:linear-gradient(145deg,#fff2dd,#d9ad8d);}
.v31-tile-ponds{background:linear-gradient(155deg,#ecfcff,#90cae4);border-color:#89b5d3;}
.v31-tile-cellar{background:linear-gradient(155deg,#f3e6d8,#c3a080);}
.v31-tile-shop{background:linear-gradient(155deg,#fff2ca,#efbf6a);}
.v31-tile-top{background:linear-gradient(155deg,#fff9de,#e1c783);}
.v31-reserved{border-style:dashed;box-shadow:none!important;background:#e8ddcd;color:#a68d72;opacity:.7;}
.v31-reserved .v31-hub-illustration{color:#ab9476;filter:none;}
.v31-reserved .v31-hub-caption{color:#9c876d;}
.v31-section-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:9px 1px;}
.v31-section-bar h2{font-size:18px!important;line-height:1.1!important;color:#4d3219!important;white-space:nowrap;}
.v31-section-bar h2 small{color:#977454;font-size:10px;display:block;text-align:center;}
.v31-back,.v31-storage-link,.v31-garden-stock{border:1px solid #c6a17a;background:#fff8e8;color:#634321;padding:8px 10px;border-radius:9px;font-size:12px;font-weight:800;}
.v31-storage-link,.v31-garden-stock{background:#d4ead4;border-color:#a9ca9e;color:#286745;}
.v31-garden-help{font-size:12px;color:#695039;margin:0 4px 8px!important;}
.v31-garden-scroll{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;border:2px solid #b3a16e;border-radius:16px;background:linear-gradient(160deg,#7aba55,#36863c);box-shadow:inset 0 0 12px #173a1e45,0 5px 15px #53401e25;}
.v31-garden-board{position:relative;width:100%;min-width:745px;aspect-ratio:2.05;max-height:615px;overflow:hidden;}
.v31-garden-grass{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none;}
.v31-garden-svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;touch-action:pan-x;}
.v31-garden-svg .v30-field-bed{cursor:pointer;outline:none;}
.v31-garden-svg .v30-field-bed .bed-hit{pointer-events:all;}
.v31-garden-svg .v30-field-bed:hover .bed-hit,.v31-garden-svg .v30-field-bed:focus-visible .bed-hit{stroke:#f8f9b0;stroke-width:2.5;fill:#fffbbc25;}
.v31-garden-svg .v30-pending{opacity:.57;}
.v31-garden-svg .bed-is-ready .bed-hit{stroke:#87ef4a;stroke-width:1;}
.v31-garden-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 2px 16px;}
.v31-garden-foot small{color:#866d52;font-size:11px;}
.v31-planned{max-width:620px;margin:18px auto;padding:35px 20px;text-align:center;background:#fffaef;border-radius:19px;border:1px solid #e4cba2;}
.v31-planned>span{font-size:62px;display:block;margin-bottom:12px;}
.v31-planned h3{color:#4b3521;font-size:21px;}
.v31-planned p{font-size:13px;color:#806a55;margin:12px auto 18px;max-width:370px;}
body:has(:fullscreen) .shell,.shell:fullscreen{max-width:none!important;width:100%!important;}
:fullscreen #game .v31-hub-grid{max-width:1650px;}
@media(max-width:800px){.v31-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.v31-hub-tile{min-height:138px;}}
@media(max-width:520px){
 .shell{padding:0 7px 13px!important;}
 .v31-head-btn{padding:5px 7px;font-size:11px;}
 .v31-head-btn span{display:none;}
 .v31-build{font-size:10px;}
 .v31-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
 .v31-hub-tile{min-height:128px;padding:9px 10px 10px;border-radius:12px;}
 .v31-hub-illustration{font-size:41px;}
 .v31-hub-title{font-size:17px;}
 .v31-hub-caption{font-size:10px;}
 .v31-section-bar h2{font-size:15px!important;}
 .v31-back,.v31-storage-link{padding:7px;font-size:10px;}
 .v31-garden-board{width:745px;}
 .v31-garden-foot small{font-size:10px;}
}
@media(prefers-reduced-motion:reduce){.v31-hub-tile{transition:none;}}

#game:not([hidden]){display:flex!important;flex-direction:column!important;}
#game>.xp-meter.v31-xp-meter{order:-3!important;width:100%!important;}
#game>.wallet.v31-wallet{order:-2!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;width:fit-content!important;min-height:0!important;max-width:100%!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:2px 0 9px!important;}
#game>.wallet.v31-wallet>div{min-height:29px!important;padding:5px 9px!important;}
#game:not(.hub-mode)>.v31-tabs button{background:#f8eedf!important;color:#513e2c!important;border:1px solid #e3ceb0!important;text-shadow:none!important;opacity:1!important;}
#game:not(.hub-mode)>.v31-tabs button.active{background:#128774!important;border-color:#128774!important;color:white!important;}


/* V32: узкие деревянные плитки по образцу пользователя. Только главный 2D-экран. */
.v31-home-title{max-width:1060px;margin:10px auto 12px!important;}
.v31-hub-grid{
  width:min(100%,1072px)!important;
  max-width:1072px!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px 14px!important;
  margin:0 auto 20px!important;
  align-items:stretch;
}
.v31-hub-tile {
  min-width:0!important;
  min-height:158px!important;
  max-height:none!important;
  padding:27px 30px 24px!important;
  border:24px solid transparent!important;
  border-image-source:url('menu-wood-v32.webp')!important;
  border-image-slice:92 106 90 106 fill!important;
  border-image-width:25px 27px 25px 27px!important;
  border-image-repeat:stretch!important;
  border-radius:0!important;
  background:#864720!important;
  color:#fff4d9!important;
  box-shadow:0 4px 13px #35201245!important;
  overflow:visible!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:1px!important;
  text-align:center!important;
  cursor:pointer;
  isolation:isolate;
}
.v31-hub-tile::after {
  content:'';pointer-events:none;position:absolute;inset:0;z-index:-1;
  background:radial-gradient(ellipse at 50% 37%,#cf874225,transparent 80%);
}
.v31-hub-tile:not(.v31-reserved):hover,
.v31-hub-tile:not(.v31-reserved):focus-visible{
  transform:translateY(-3px)!important;
  filter:brightness(1.10);
  box-shadow:0 8px 19px #33201460!important;
  outline-offset:3px;
}
.v31-hub-illustration {
  display:block!important;
  font-size:clamp(29px,3.2vw,39px)!important;
  line-height:1!important;
  margin:0 0 3px!important;
  filter:drop-shadow(0 2px 2px #231205b9)!important;
  flex:0 0 auto;
}
.v31-hub-title {
  color:#fff4db!important;
  font-size:clamp(15px,1.6vw,19px)!important;
  line-height:1.12!important;
  text-shadow:0 2px 3px #2e1104,0 1px 0 #271204!important;
}
.v31-hub-caption {
  color:#ffe4b4!important;
  font-size:clamp(9px,.87vw,11px)!important;
  line-height:1.2!important;
  margin-top:2px!important;
  text-shadow:0 1px 2px #3d200c!important;
}
.v31-hub-chevron {
  top:16px!important;
  right:17px!important;
  width:18px!important;
  height:18px!important;
  border:0!important;
  background:transparent!important;
  color:#ffe2a6!important;
  font-size:13px!important;
  opacity:.9;
}
.v31-reserved {
  opacity:.76!important;
  cursor:default;
  filter:saturate(.6)!important;
}
.v31-reserved .v31-hub-title{color:#f1d8ac!important;}
.v31-reserved .v31-hub-caption{color:#e3c392!important;}
.v31-reserved .v31-hub-illustration{font-size:32px!important;color:#efd4a3!important;}
@media(min-width:1500px){.v31-hub-grid{gap:16px!important;}}
@media(min-width:521px) and (max-width:850px){
  .v31-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:720px!important;gap:9px!important;}
  .v31-hub-tile{min-height:152px!important;padding:24px 28px 22px!important;}
}
@media(max-width:520px){
  .v31-home-title{margin:9px 4px!important;}
  .v31-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 7px!important;}
  .v31-hub-tile{min-height:139px!important;padding:22px 20px 18px!important;border-width:21px!important;border-image-width:20px 21px 20px 21px!important;}
  .v31-hub-illustration{font-size:31px!important;}
  .v31-hub-title{font-size:15px!important;}
  .v31-hub-caption{font-size:9px!important;}
  .v31-hub-chevron{top:14px!important;right:13px!important;}
}
@media(max-width:350px){
  .v31-hub-grid{gap:5px!important;}
  .v31-hub-tile{padding:18px 14px 16px!important;border-width:18px!important;border-image-width:18px!important;}
  .v31-hub-caption{font-size:8.5px!important;}
}


/* V33: Garden on phones scrolls VERTICALLY in natural document flow.
   This is a real responsive 2-column SVG of all 15 interactive plots,
   not a stretched screenshot or horizontal strip. */
@media(max-width:600px){
  #game .v31-garden-scroll{
    width:100%!important;
    overflow:visible!important;
    border:0!important;
    border-radius:17px!important;
    background:radial-gradient(ellipse at 25% 30%,#b8e66d,#6ab73a 45%,#3b8c29 100%)!important;
    box-shadow:inset 0 0 15px #1a581a56,0 5px 15px #44250928!important;
    -webkit-overflow-scrolling:auto!important;
    touch-action:pan-y!important;
  }
  #game .v31-garden-board{
    box-sizing:border-box!important;
    position:relative!important;
    min-width:0!important;
    width:100%!important;
    height:auto!important;
    max-height:none!important;
    aspect-ratio:382 / 1132!important;
    overflow:hidden!important;
  }
  #game .v31-garden-grass{display:none!important;}
  #game .v31-garden-svg{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    display:block!important;
    overflow:hidden!important;
    touch-action:pan-y!important;
  }
  #game .v31-garden-svg .v30-field-bed,
  #game .v31-garden-svg .bed-hit{touch-action:pan-y!important;}
  #game .v31-garden{width:100%!important;max-width:100%!important;overflow:visible!important;}
  #game .v31-garden-foot{align-items:flex-start!important;gap:7px!important;flex-wrap:wrap!important;}
  #game .v31-garden-foot small{font-size:11px!important;}
  html,body{overflow-x:clip;overflow-y:auto;}
}


/* V34 — компактные статусы, деревянные рамки без прямоугольника снаружи,
   анимированные значки и круглая кнопка «Домой». */
header.top.v31-top{min-height:27px!important;padding:3px 8px!important;margin-bottom:4px!important;border-radius:0 0 7px 7px!important;}
header.top.v31-top .v31-head-btn{font-size:10px!important;padding:3px 7px!important;min-height:22px!important;}
header.top.v31-top .v31-build{font-size:10px!important;}
#game>.v34-status{display:flex!important;order:-3!important;gap:7px!important;align-items:center!important;width:100%!important;max-width:100%!important;margin:0 0 7px!important;padding:0!important;min-height:0!important;}
#game>.v34-status>.v31-xp-meter{display:block!important;flex:1 1 auto!important;min-width:125px!important;width:auto!important;max-width:none!important;min-height:27px!important;margin:0!important;padding:4px 9px!important;border-radius:6px!important;border-width:1px!important;box-shadow:none!important;}
#game>.v34-status>.v31-xp-meter .xp-meter-top{display:flex!important;justify-content:space-between!important;margin:0 0 2px!important;font-size:9px!important;gap:5px!important;}
#game>.v34-status>.v31-xp-meter .xp-meter-top span,#game>.v34-status>.v31-xp-meter .xp-meter-top b{font-size:9px!important;line-height:1.15!important;white-space:nowrap!important;}
#game>.v34-status>.v31-xp-meter .xp-meter-track{height:5px!important;min-height:5px!important;}
#game>.v34-status>.v31-wallet{display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;width:auto!important;max-width:max-content!important;min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;border:0!important;}
#game>.v34-status>.v31-wallet>div{display:flex!important;gap:4px!important;align-items:center!important;min-height:26px!important;height:26px!important;padding:3px 7px!important;margin:0!important;border-radius:6px!important;border:1px solid #d6c09e!important;background:#fff8e8!important;box-shadow:none!important;}
#game>.v34-status>.v31-wallet span{font-size:13px!important;line-height:1!important;}
#game>.v34-status>.v31-wallet small{font-size:9px!important;line-height:1!important;color:#78543a!important;}
#game>.v34-status>.v31-wallet b{font-size:11px!important;line-height:1!important;white-space:nowrap!important;}
#game.hub-mode>.v31-tabs,#game:not(.hub-mode)>.v31-tabs{display:none!important;} /* Вместо полосы вкладок на главной используем деревянные плитки. */
#game>.footnote{display:none!important;}
#game:not(.hub-mode)>#screen{padding-bottom:85px!important;}
#v34HomeFloating{position:fixed;z-index:980;bottom:calc(12px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);width:69px;height:69px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;border:3px solid #f8d28d;border-radius:50%;background:radial-gradient(circle at 40% 24%,#be8240,#864716 65%,#512609 100%);box-shadow:0 4px 0 #4d2b13,0 7px 19px #29160a80;color:#fff7e2;cursor:pointer;font-weight:900;transition:transform .16s ease,filter .16s ease;}
#v34HomeFloating span{font-size:27px;line-height:1;}
#v34HomeFloating small{font-size:10px;line-height:1.1;color:#fff3db;}
#v34HomeFloating:hover{transform:translateX(-50%) scale(1.06);filter:brightness(1.12);}
#v34HomeFloating:active{transform:translateX(-50%) scale(.96);}
#v34HomeFloating[hidden],#game.hub-mode #v34HomeFloating,#game[hidden] #v34HomeFloating{display:none!important;}
/* Прозрачная область СНАРУЖИ иллюстрации деревянной рамки. */
#game .v31-hub-tile{background:transparent!important;box-shadow:none!important;border-image-slice:92 106 90 106 fill!important;filter:drop-shadow(0 4px 4px #40210e55)!important;}
#game .v31-hub-tile::after{display:none!important;}
#game .v31-hub-tile:not(.v31-reserved):hover,#game .v31-hub-tile:not(.v31-reserved):focus-visible{box-shadow:none!important;filter:drop-shadow(0 6px 8px #3a190b77) brightness(1.08)!important;}
#game .v31-reserved{opacity:.74!important;}
@keyframes v34IconFloat{0%,100%{transform:translateY(0) rotate(-3deg);}50%{transform:translateY(-5px) rotate(3deg);}}
@keyframes v34IconBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
#game .v31-hub-tile:not(.v31-reserved) .v31-hub-illustration{animation:v34IconFloat 2.8s ease-in-out infinite;will-change:transform;}
#game .v31-hub-tile:nth-child(3n+2) .v31-hub-illustration{animation-delay:-.8s;animation-duration:3.2s;}
#game .v31-hub-tile:nth-child(3n+3) .v31-hub-illustration{animation-delay:-1.5s;animation-duration:3.6s;}
#game .v31-hub-tile:not(.v31-reserved):hover .v31-hub-illustration{animation:v34IconBreathe .7s ease-in-out infinite;}
.v34-garden-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin:5px 0 7px;}
.v34-buy-bed{padding:8px 13px;border-radius:9px;border:2px solid #ae792e;background:linear-gradient(180deg,#fff0bb,#deae4d);color:#4c2910;font-size:12px;font-weight:900;cursor:pointer;}
.v34-buy-bed:disabled{opacity:.58;cursor:not-allowed;}
.v34-buy-complete,.v34-garden-available{color:#70502d;font-size:11px;font-weight:700;}
.v34-pen-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px;}
.v34-collect-all{background:#358b39!important;color:white!important;border-color:#267435!important;}
.v34-collect-all:disabled{background:#b1a897!important;color:#5a574d!important;border-color:#aaa28e!important;opacity:.68;cursor:not-allowed;}
#game .v31-garden-board{aspect-ratio:716 / var(--v34-desktop-h,340)!important;max-height:none!important;}
@media(max-width:600px){#game .v31-garden-board{aspect-ratio:382 / var(--v34-mobile-h,1132)!important;}}
@media(max-width:600px){
  #game>.v34-status{gap:4px!important;}
  #game>.v34-status>.v31-xp-meter{min-width:125px!important;padding:3px 5px!important;}
  #game>.v34-status>.v31-wallet{gap:3px!important;}
  #game>.v34-status>.v31-wallet>div{padding:2px 4px!important;min-height:25px!important;height:25px!important;gap:2px!important;}
  #game>.v34-status>.v31-wallet small{display:none!important;}
  #game>.v34-status>.v31-wallet b{font-size:10px!important;}
  #game>.v34-status>.v31-xp-meter .xp-meter-top b{font-size:8px!important;}
  #v34HomeFloating{width:60px;height:60px;bottom:calc(10px + env(safe-area-inset-bottom,0px));}
  #v34HomeFloating span{font-size:24px;}
  .v34-garden-tools{align-items:stretch;}
  .v34-buy-bed{font-size:11px;max-width:100%;}
  .v34-pen-actions .action-button{font-size:11px;}
}
@media(max-width:345px){#game>.v34-status>.v31-xp-meter .xp-meter-top span{display:none!important;}}
@media(prefers-reduced-motion:reduce){#game .v31-hub-tile .v31-hub-illustration{animation:none!important;}#v34HomeFloating{transition:none!important;}}

/* ===================== V35 · Home / Farm / City ===================== */
.v35-main{max-width:1120px;min-height:calc(100vh - 180px);margin:0 auto;padding:clamp(12px,3vw,35px) 8px 30px;display:flex;flex-direction:column;gap:14px;align-items:center;}
.v35-profile-card,.v35-major,.v35-link{font-family:inherit;cursor:pointer;background-color:transparent;border:0;color:#fff2da;filter:drop-shadow(0 4px 3px #4e280f4b);background-image:url('menu-wood-v32.webp');background-repeat:no-repeat;background-size:100% 100%;text-shadow:0 2px 3px #361706,0 0 2px #341000;transition:transform .15s ease,filter .15s ease;}
.v35-profile-card:hover,.v35-major:hover,.v35-link:hover{filter:drop-shadow(0 6px 5px #4e280f66) brightness(1.09);transform:translateY(-2px);}
.v35-profile-card:active,.v35-major:active,.v35-link:active{transform:translateY(1px);}
.v35-profile-card{min-height:112px;width:min(315px,82vw);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:15px 32px;gap:2px;}
.v35-profile-card .v35-animated{font-size:29px;line-height:1.12;}
.v35-profile-card b{font-size:clamp(16px,2vw,20px);font-weight:900;}
.v35-profile-card small{font-size:10px;color:#fff0ce;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:95%;}
.v35-major{width:100%;display:flex;gap:15px;align-items:center;justify-content:center;text-align:center;position:relative;padding:22px 8% 22px 11%;}
.v35-farm-major{height:160px;}
.v35-major .v35-animated{font-size:clamp(36px,5vw,57px);line-height:1;display:inline-block;flex:0 0 auto;}
.v35-major b{display:block;font-size:clamp(23px,4vw,36px);font-weight:950;letter-spacing:.2px;}
.v35-major small{display:block;font-size:clamp(10px,1.5vw,14px);color:#ffddb0;margin-top:3px;}
.v35-major-arrow{position:absolute;right:6.5%;font-size:40px;font-weight:300;top:50%;transform:translateY(-50%);opacity:.75;}
.v35-city-major{height:82px;gap:15px;}
.v35-city-major .v35-animated{font-size:32px;}
.v35-city-major b{font-size:clamp(18px,3vw,26px);}
@keyframes v35Bounce{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-5px) rotate(4deg)}}
.v35-animated,.v35-link-icon{animation:v35Bounce 3s ease-in-out infinite;}
.v35-group{width:min(890px,100%);margin:22px auto 100px;display:flex;flex-direction:column;gap:8px;}
.v35-group>h2{font-size:20px!important;color:#5a371d!important;margin:0 0 10px 8px;}
.v35-link{width:100%;height:66px;min-height:66px;display:flex;align-items:center;gap:18px;text-align:left;padding:10px 45px 10px 55px;position:relative;}
.v35-link-icon{font-size:27px;display:inline-block;flex:0 0 35px;text-align:center;}
.v35-link b{font-size:17px;color:#fff2df;}
.v35-arrow{position:absolute;right:47px;font-size:29px;opacity:.76;}
.v35-city-menu .v35-link:nth-of-type(4){margin-top:19px;}
#v35TopCorner{border:1px solid #ffffff7b;background:#ffffff16;color:#fff;min-width:29px;width:30px;height:27px;display:grid;place-items:center;padding:2px;border-radius:7px;font-size:16px;cursor:pointer;}
#v35TopCorner:hover{background:#ffffff36;}
.v35-warning{padding:10px 13px;border:1px solid #ccab68;border-radius:10px;color:#8c5218;font-size:12px;background:#fff0c6;max-width:100%;}
.v35-footnote,.v35-note{font-size:12px;color:#795a37;line-height:1.45;margin:12px 5px;}
.v35-garden .v31-section-bar{margin:11px 0 8px;}
.v35-garden .v31-section-bar small{font-size:11px;display:inline!important;}
/* Purchase lives on the next actual bed, never in the upper toolbar. */
.v35-garden .v30-pending{opacity:1!important;}
.v35-garden .v30-pending .bed-hit{cursor:pointer;}
.v35-garden .v30-pending:hover{filter:brightness(1.1);}
.v35-area,.v35-lottery{width:min(1100px,100%);margin:14px auto 80px;padding:4px 3px;}
.v35-area h2,.v35-lottery h2{font-size:22px!important;color:#563719!important;margin:7px 2px 14px!important;}
.v35-barn-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:4px 0 12px;}
.v35-barn-header h2{margin:0!important;}
.v35-barn-header small{font-size:12px;color:#91714c;}
.v35-pen-grid,.v35-pond-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px auto;}
.v35-pen,.v35-pond{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 9px 13px;border-radius:17px;border:2px solid #b87938;background:linear-gradient(#fff5d8,#e9ca8c);box-shadow:0 4px 0 #9c642f,0 7px 12px #5d371c30;text-align:center;}
.v35-pen-picture{height:120px;position:relative;width:100%;background:radial-gradient(ellipse,#b5da77 4%,#81b74b 65%,#568c33);border:9px ridge #c78436;border-radius:13px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.v35-pen-picture::before,.v35-pen-picture::after{content:'';position:absolute;inset:auto -5px 16px;height:6px;background:linear-gradient(#f5c46c,#97501e);z-index:1;box-shadow:0 8px 0 #bd7b30;pointer-events:none;}
.v35-pen-picture::after{inset:11px -4px auto;height:5px;box-shadow:none;}
.v35-pen-no{position:absolute;top:3px;left:5px;z-index:2;background:#694017df;color:#fff0ca;border:1px solid #e3b477;border-radius:7px;padding:2px 7px;font-size:10px;font-weight:900;}
.v35-pen-animal{font-size:52px;line-height:1;display:flex;align-items:center;justify-content:center;max-width:100%;max-height:110px;}
.v35-pen-animal img{max-width:100%;max-height:95px;object-fit:contain;}
.v35-pen>b,.v35-pond>b{font-size:13px;color:#513318;}
.v35-pen-commands{display:flex;flex-wrap:wrap;gap:5px;align-items:center;justify-content:center;}
.v35-pen .action-button,.v35-pond .action-button{font-size:11px;padding:7px 10px;white-space:normal;min-height:30px;}
.v35-buy-pen{border-style:dashed;}
.v35-buy-pen .v35-pen-picture{filter:grayscale(.47);}
.v35-pond-art{position:relative;width:100%;height:118px;border-radius:50%;border:10px solid #6c9a42;box-shadow:inset 0 0 1px 4px #d0e7ad,0 5px 4px #62834a5b;background:radial-gradient(ellipse at 38% 30%,#83e6ed,#3196c7 65%,#1a5d98);display:grid;place-items:center;overflow:hidden;}
.v35-pond-art>span:first-child{font-size:38px;z-index:1;filter:drop-shadow(0 3px 2px #0b3e63);}
.v35-ripple{position:absolute;inset:19px 23px;border-radius:50%;border:2px solid #b2ffff99;animation:v35Pond 3s infinite;}
@keyframes v35Pond{0%,100%{opacity:.4;transform:scale(.7)}60%{opacity:1;transform:scale(1.13)}}
.v35-pond-locked .v35-pond-art{filter:grayscale(.68);}
.v35-pond small{color:#8b6140;font-size:11px;}
.v35-online-stats{border:2px solid #c59759;background:linear-gradient(#fff3df,#e2c395);border-radius:16px;text-align:center;padding:35px 18px;display:flex;flex-direction:column;gap:8px;}
.v35-online-stats strong{font-size:62px;color:#287b49;}
.v35-online-stats small{font-size:12px;color:#776146;}
.v35-lottery-wheel{height:225px;border-radius:26px;background:radial-gradient(circle at 50% 42%,#fce6a7,#c17b31 57%,#613e22 90%);border:9px ridge #cfa36b;box-shadow:inset 0 0 32px #57270e77,0 4px 14px #3e1c0f33;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff4d7;text-shadow:0 2px 3px #3c200c;gap:4px;}
.v35-lottery-star{font-size:78px;animation:v35Star 3.5s ease-in-out infinite;}
@keyframes v35Star{0%,100%{transform:rotate(-15deg) scale(.95)}50%{transform:rotate(18deg) scale(1.1)}}
.v35-lottery-wheel b{font-size:23px;}
.v35-lottery-wheel small{font-size:12px;}
.v35-lottery-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px;}
.v35-spin{background:linear-gradient(#e8b96f,#ac672a);color:#fff4dc;border:2px solid #653b1b;border-radius:13px;font-size:17px;font-weight:900;padding:13px 9px;text-shadow:0 1px 1px #49240e;}
.v35-spin small{display:block;font-size:11px;margin-top:4px;color:#fff7d1;}
.v35-spin:disabled{opacity:.53;}
@media(max-width:900px){.v35-pen-grid,.v35-pond-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){
  .v35-main{padding:15px 0 60px;gap:11px;min-height:auto;}
  .v35-profile-card{min-height:102px;width:min(300px,80vw);}
  .v35-farm-major{height:134px;padding-left:8%;padding-right:8%;gap:8px;}
  .v35-farm-major .v35-animated{font-size:40px;}
  .v35-farm-major b{font-size:25px;}
  .v35-farm-major small{font-size:10px;}
  .v35-city-major{height:72px;}
  .v35-city-major .v35-animated{font-size:29px;}
  .v35-major-arrow{right:6%;font-size:30px;}
  .v35-group{margin-top:13px;gap:5px;}
  .v35-link{height:58px;min-height:58px;padding:7px 35px 7px 37px;gap:12px;}
  .v35-link b{font-size:16px;}
  .v35-link-icon{font-size:22px;flex-basis:26px;}
  .v35-arrow{right:33px;}
  .v35-pen-grid,.v35-pond-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .v35-pen,.v35-pond{padding:8px 6px 12px;gap:5px;}
  .v35-pen-picture{height:99px;}
  .v35-pen-animal{font-size:42px;}
  .v35-pond-art{height:100px;}
  .v35-lottery-actions{gap:8px;}
  .v35-spin{font-size:13px;padding:9px 5px;}
  .v35-garden .v31-garden-help{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){.v35-animated,.v35-link-icon,.v35-lottery-star,.v35-ripple{animation:none!important;}}
.v35-till-all{margin:5px 2px 13px;max-width:100%;font-size:12px;}

/* ===== V36 · Внутриигровое подтверждение действий ===== */
.farm-confirm-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px 14px calc(20px + env(safe-area-inset-bottom,0px));background:rgba(28,19,10,.72);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:farm-confirm-shade .18s ease-out;}
.farm-confirm-card{box-sizing:border-box;position:relative;width:min(100%,430px);min-height:270px;padding:39px 36px 34px;color:#ffefd0;text-align:center;background:#6f361e url('menu-wood-v32.webp') center/100% 100% no-repeat;border:0;border-radius:24px;filter:drop-shadow(0 14px 18px #150d07c9);text-shadow:0 2px 2px #32160d;animation:farm-confirm-rise .20s ease-out;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;}
.farm-confirm-card:focus{outline:0;}
.farm-confirm-icon{font-size:46px;line-height:1;filter:drop-shadow(0 3px 2px #341508);margin-bottom:1px;}
.farm-confirm-card h2{margin:0!important;padding:0 5px;color:#fff0c9!important;font-size:clamp(19px,4vw,25px)!important;line-height:1.2;font-weight:900;}
.farm-confirm-card p{margin:3px 0 8px;color:#ffe3b9;font-size:clamp(13px,3.2vw,16px);line-height:1.45;max-width:320px;}
.farm-confirm-x{position:absolute;right:23px;top:15px;min-width:34px;min-height:34px;display:grid;place-items:center;font-size:25px;line-height:1;border-radius:50%;border:1px solid #ffe8bb70;color:#ffe8bb;background:#2717099c;cursor:pointer;}
.farm-confirm-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:10px;max-width:330px;}
.farm-confirm-actions button{font-family:inherit;font-size:14px;font-weight:800;min-height:45px;border-radius:12px;cursor:pointer;border:2px solid #ffd18a;line-height:1.2;padding:8px 5px;touch-action:manipulation;box-shadow:0 3px 0 #371706;}
.farm-confirm-cancel{background:linear-gradient(#eed8ae,#cda66f);color:#5b3619;text-shadow:none;}
.farm-confirm-yes{background:linear-gradient(#86d243,#38851f);border-color:#d1f79e!important;color:white;text-shadow:0 1px 2px #164006;}
.farm-confirm-danger{background:linear-gradient(#e5a55b,#a7642d);border-color:#ffdd9e!important;}
.farm-confirm-actions button:active{transform:translateY(2px);box-shadow:none;}
.farm-confirm-actions button:focus-visible,.farm-confirm-x:focus-visible{outline:3px solid #fff4bf;outline-offset:2px;}
@keyframes farm-confirm-shade{from{opacity:0}to{opacity:1}}
@keyframes farm-confirm-rise{from{opacity:.5;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:390px){.farm-confirm-card{min-height:245px;padding:35px 25px 30px}.farm-confirm-icon{font-size:39px}.farm-confirm-actions{gap:7px}.farm-confirm-actions button{font-size:12px;min-height:43px}.farm-confirm-x{right:15px;top:12px;}}
@media(prefers-reduced-motion:reduce){.farm-confirm-overlay,.farm-confirm-card{animation:none!important;}}

/* V37: compact wooden seed picker and clear, larger seedlings. */
#fieldSeeds.field-seeds, #screen .plant-modal {
  box-sizing:border-box!important;
  width:min(390px,calc(100vw - 20px))!important;
  max-width:390px!important;
  padding:17px!important;
  color:#fff0cf!important;
  background:linear-gradient(150deg,rgba(255,215,143,.12),transparent 42%),
             repeating-linear-gradient(0deg,transparent 0px,transparent 15px,rgba(0,0,0,.08) 16px,transparent 18px),
             linear-gradient(125deg,#63351b,#432413 58%,#60351e)!important;
  border:8px ridge #bb834a!important;
  box-shadow:inset 0 0 0 3px #71411d, inset 0 0 14px rgba(0,0,0,.32),0 20px 52px #1b0d0775!important;
  border-radius:17px!important;
}
#fieldSeeds h3,#screen .plant-modal h3{color:#fff0d1!important;font-size:16px!important;letter-spacing:.2px!important;text-shadow:0 2px 3px #241105!important}
#fieldSeeds .plant-picker,#screen .plant-modal .plant-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
#fieldSeeds .plant-option,#screen .plant-modal .plant-option{
  box-sizing:border-box!important;min-height:69px!important;padding:7px 8px!important;
  border:2px solid #986338!important;border-radius:11px!important;
  background:linear-gradient(150deg,#fbe2ae,#e6bc78)!important;
  color:#50290f!important;
  display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-rows:min-content min-content!important;align-content:center!important;gap:2px 5px!important;
}
#fieldSeeds .plant-option .plant-option-icon,#screen .plant-modal .plant-option .plant-option-icon{
  grid-column:1!important;grid-row:1/span 2!important;width:44px!important;height:49px!important;overflow:visible!important;
}
#fieldSeeds .plant-option img,#screen .plant-modal .plant-option img{width:44px!important;height:49px!important;object-fit:contain!important}
#fieldSeeds .plant-option b,#screen .plant-modal .plant-option b{grid-column:2!important;font-size:12px!important;line-height:1.14!important}
#fieldSeeds .plant-option small,#screen .plant-modal .plant-option small{grid-column:2!important;font-size:10px!important;color:#654627!important;line-height:1.16!important}
#fieldSeeds .plant-option:disabled,#screen .plant-modal .plant-option:disabled{opacity:.55!important;filter:grayscale(.6)!important}
#fieldSeeds .plant-close,#screen .plant-modal .plant-close{background:#e6b86e!important;color:#57280c!important}
#fieldSeeds .v37-picker-hint{font-size:11px;margin:10px 0 0;text-align:center;color:#eedab6}
.v37-worker-panel{padding:13px;margin:12px 0;background:linear-gradient(135deg,#e8cb97,#fdf2d5);border:3px solid #98703d;border-radius:14px;color:#543317;box-shadow:0 4px 9px #5c321525}
.v37-worker-heading{display:flex;align-items:center;gap:11px}.v37-worker-avatar{font-size:32px;line-height:1}
.v37-worker-heading h3{margin:0;font-size:17px}.v37-worker-heading small{font-size:11px}
.v37-worker-panel p{font-size:12px;margin:8px 0}.v37-worker-controls{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.v37-worker-controls label{font-size:12px;display:grid;gap:3px;min-width:140px;flex:1}
.v37-worker-controls select{border-radius:8px;padding:9px;border:1px solid #a1794b;background:#fff8e9;min-width:0;width:100%;color:#553820;font:inherit}
.v37-worker-controls .action-button{font-size:12px;padding:9px 12px;min-height:36px}
.v37-worker-summary,.v37-worker-warning{display:block;font-size:11px;margin-top:8px;color:#84512e;line-height:1.4}
.v37-worker-warning{color:#a13925;font-weight:700}
@media(max-width:460px){.v37-worker-controls .action-button{flex:1}.v37-worker-panel{padding:10px}#fieldSeeds.field-seeds{width:calc(100vw - 20px)!important;padding:12px!important}}

/* ============================================================
   ФЕРМА V38 · ЕДИНЫЙ ДЕРЕВЕНСКИЙ ДИЗАЙН
   ============================================================ */
:root{--v38-wood:#6c4128;--v38-wood-dark:#472919;--v38-gold:#cda36e;--v38-cream:#f9e9c7;--v38-green:#51b849}
html,body{background-color:#cda97d!important;}
body{background-image:url('v38-background.svg')!important;background-size:600px 600px!important;background-repeat:repeat!important;color:#472d1d!important;}
.shell,#game,#screen{background:transparent!important;}
.footnote,footer{color:#6c472f!important;text-shadow:0 1px #f2d4a7;}
header.top.v31-top{background:linear-gradient(120deg,#73492d,#4d2e1e)!important;border:1px solid #c29969!important;box-shadow:0 3px 10px #4e2a1970!important;}
/* Фермерское полотно продолжается во всех разделах: город, склад, загоны и др. */
.v35-group,.v35-area,.v35-lottery,.v35-main,.v31-garden{background-color:transparent!important;}
.v35-group>h2,.v35-area>h2,.v35-lottery>h2{color:#52321f!important;text-shadow:0 1px #ffe6bd!important;}
.v35-profile-card,.v35-major,.v35-link{color:#fff5e5!important;text-shadow:0 2px 4px #32180c!important;}
.v35-farm-major,.v35-city-major,.v38-chat-link{border:1px solid transparent!important;}
.v38-chat-link{margin-top:2px!important;}
.v38-cellar-icon{height:30px;width:30px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 2px 2px #24160b99);}
.v35-link .v38-cellar-icon{height:33px;width:33px;display:block;}
.v38-heading-icon{width:56px;height:56px;object-fit:contain;}
/* Полоска XP и деньги — внутри ОДНОЙ деревянной рамки, по центру. */
#game>.v34-status{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:6px!important;align-items:stretch!important;width:min(670px,100%)!important;margin:3px auto 14px!important;padding:11px 15px!important;background:linear-gradient(160deg,#986a46,#775032 52%,#614027)!important;border:4px ridge #cba274!important;border-radius:13px!important;box-shadow:0 5px 0 #54321c,0 10px 20px #38200f29,inset 0 1px #e6bc82!important;}
#game>.v34-status>.v31-xp-meter{box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#fff4dd!important;}
#game>.v34-status>.v31-xp-meter .xp-meter-top{margin:0 0 4px!important;display:flex!important;justify-content:space-between!important;}
#game>.v34-status>.v31-xp-meter .xp-meter-top span,#game>.v34-status>.v31-xp-meter .xp-meter-top b{font-size:11px!important;color:#fff5e4!important;text-shadow:0 1px 2px #382016!important;}
#game>.v34-status>.v31-xp-meter .xp-meter-track{height:11px!important;min-height:11px!important;width:100%!important;overflow:hidden!important;border:1px solid #bd8350!important;background:#4b301d!important;border-radius:20px!important;box-shadow:inset 0 2px 4px #221409!important;}
#game>.v34-status>.v31-xp-meter #xp-meter-fill{height:100%!important;background:linear-gradient(#83e560,#348c31)!important;border-radius:20px!important;box-shadow:inset 0 1px #c0ff9e!important;}
#game>.v34-status>.v31-wallet{box-sizing:border-box!important;display:flex!important;flex:0 0 auto!important;justify-content:center!important;align-items:center!important;gap:18px!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
#game>.v34-status>.v31-wallet>div{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:3px 8px!important;min-height:27px!important;height:auto!important;background:#53352088!important;border:1px solid #c598655c!important;border-radius:9px!important;box-shadow:inset 0 1px #ffffff18!important;}
#game>.v34-status>.v31-wallet small{display:none!important;}
#game>.v34-status>.v31-wallet span{display:inline!important;font-size:19px!important;}
#game>.v34-status>.v31-wallet b{font-size:16px!important;color:#fff8ee!important;line-height:1!important;text-shadow:0 1px #2d1b12!important;}
/* Карточка входа и регистрации с широкой иллюстрацией. */
#auth.auth{box-sizing:border-box;max-width:min(760px,100%)!important;padding:12px 12px 26px!important;margin:18px auto!important;background:linear-gradient(#e9e5d9,#c9c8bf)!important;border:5px ridge #aa8460!important;border-radius:19px!important;box-shadow:0 16px 34px #48291444!important;color:#4b3527!important;}
.v38-auth-image{width:100%;border:3px solid #79512f;border-radius:13px;overflow:hidden;box-shadow:0 4px 8px #5030152d;margin-bottom:18px;}
.v38-auth-image img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block;}
#auth.auth>h1{color:#563922!important;}
#auth.auth>.muted,#auth.auth>.small{color:#75604d!important;}
#auth.auth .auth-switch{width:min(420px,100%);margin:18px auto!important;background:#bdb7aa!important;}
#auth.auth form{max-width:420px;margin:0 auto;}
#auth.auth form input{background:#fefdf8!important;}
#auth.auth .primary{background:linear-gradient(#98633b,#69402b)!important;border:1px solid #b78c58!important;}
/* Небольшой нанятый работник над грядками, без огромной карточки. */
.v38-worker-panel.v37-worker-panel{box-sizing:border-box!important;width:min(370px,100%)!important;max-width:100%!important;margin:7px 0 10px!important;padding:7px 10px!important;border:3px ridge #bd8c59!important;border-radius:10px!important;color:#fff5e6!important;background:linear-gradient(125deg,#74462b,#4d2d1c)!important;box-shadow:0 3px 7px #37201247!important;}
.v38-worker-panel .v37-worker-heading{gap:7px!important;}
.v38-worker-panel .v37-worker-avatar{font-size:21px!important;}
.v38-worker-panel h3{font-size:13px!important;line-height:1.2!important;color:#fff9ef!important;}
.v38-worker-panel .v37-worker-heading small{font-size:11px!important;color:#ffe2a4!important;}
.v38-worker-panel .v37-worker-controls{gap:5px!important;margin-top:5px!important;}
.v38-worker-panel .v37-worker-controls label{font-size:10px!important;min-width:110px!important;color:#f6e6ce!important;}
.v38-worker-panel .v37-worker-controls select{height:29px!important;padding:3px 7px!important;background:#eacda6!important;border-color:#be905d!important;color:#583319!important;font-size:11px!important;}
.v38-worker-panel .v37-worker-controls button{font-size:10px!important;min-height:28px!important;padding:4px 9px!important;}
.v38-worker-panel .v37-worker-summary{font-size:10px!important;line-height:1.25!important;color:#f2d9b3!important;}
.v38-worker-panel p{color:#f7e6d1!important;line-height:1.3!important;margin:6px 0!important;font-size:11px!important;}
.v35-garden .v38-worker-panel .v37-worker-summary,.v35-garden .v38-worker-panel [data-action="v37_hire"],.v35-garden .v38-worker-panel [data-action="v37_run"]{display:none!important;}
/* Окно посадки — изогнутая деревянная арка с вертикальной прокруткой. */
body #fieldSeeds.field-seeds.v38-crescent{position:fixed!important;box-sizing:border-box!important;width:min(495px,calc(100vw - 14px))!important;max-width:495px!important;max-height:min(530px,calc(100dvh - 24px))!important;padding:35px 16px 17px!important;overflow:hidden!important;border-radius:49% 49% 25px 25px / 16% 16% 25px 25px!important;border:7px ridge #bb8a54!important;background:linear-gradient(145deg,#865335,#49291d)!important;color:#fff4e3!important;box-shadow:inset 0 0 0 3px #58341e,0 17px 40px #23140fc7!important;}
body #fieldSeeds.v38-crescent::backdrop{background:rgba(36,20,9,.52)!important;}
body #fieldSeeds.v38-crescent h3{margin:4px 31px 13px!important;text-align:center!important;font-size:16px!important;color:#fff5de!important;}
body #fieldSeeds.v38-crescent .plant-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;max-height:min(340px,calc(100dvh - 180px))!important;min-height:135px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;padding:4px 7px!important;scrollbar-color:#d3a061 #4b2d1b!important;}
body #fieldSeeds.v38-crescent .plant-option{background:linear-gradient(#b08052,#6d452c)!important;border:1px solid #d4a570!important;color:#fff8e9!important;box-shadow:0 2px 0 #3c2418!important;min-height:61px!important;}
body #fieldSeeds.v38-crescent .plant-option b,body #fieldSeeds.v38-crescent .plant-option small{color:#fff2db!important;}
body #fieldSeeds.v38-crescent .plant-option.v38-seed-locked{filter:grayscale(.75);opacity:.48!important;}
body #fieldSeeds.v38-crescent .plant-close{right:11px;top:8px;background:#e6c69d!important;color:#623b25!important;border-radius:50%!important;}
body #fieldSeeds.v38-crescent .v37-picker-hint{font-size:11px!important;color:#edd8b7!important;text-align:center!important;margin:10px 0 0!important;}
/* Складские полки, список онлайн и чат — единое дерево. */
.v38-section{box-sizing:border-box;width:min(890px,100%);margin:16px auto 95px;padding:clamp(13px,3vw,22px);background:linear-gradient(160deg,#795036,#5f3a25)!important;border:5px ridge #be915c;border-radius:18px;box-shadow:0 8px 22px #3f231636,inset 0 1px #ecc28a;color:#fff5e5;}
.v38-section-title{display:flex;gap:13px;align-items:center;padding-bottom:12px;border-bottom:1px solid #d4ab765e;margin-bottom:12px;}
.v38-section-title>span{font-size:36px;}
.v38-section-title h2{color:#fff5de!important;font-size:23px!important;margin:0;}
.v38-section-title small,.v38-section-help{font-size:12px;color:#f0d7b9!important;line-height:1.45;}
.v38-section-help{margin:10px 0 16px;}
.v38-cellar-state{font-size:12px;color:#ffe1b1;margin:2px 0 7px;min-height:0;}
.v38-cellar-state:empty{display:none;}
.v38-shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
.v38-shelf{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:6px;text-align:center;padding:12px 7px;background:linear-gradient(#976237,#57351f);border:3px groove #c79962;border-radius:10px;box-shadow:inset 0 3px 7px #30170f5c;min-height:110px;}
.v38-shelf-art{font-size:22px;white-space:nowrap;}
.v38-shelf b{font-size:13px;color:#fff8e9;}
.v38-shelf small{font-size:10px;color:#ffe2b9;}
.v38-shelf-locked{background:linear-gradient(#5d402e,#453020);}
.v38-shelf-locked .v38-shelf-art{filter:grayscale(.3);}
.v38-shelf button{white-space:normal;font-size:11px;min-height:29px;background:#a36c3f;border:1px solid #e0b47a;}
.v38-online-caption{margin:0 0 12px;font-size:13px;color:#f6dab1;}
.v38-online-player{display:flex;gap:12px;align-items:center;margin:6px 0;padding:12px 14px;border-radius:10px;background:#563621;border:1px solid #bf925d;}
.v38-online-player b{font-size:15px;overflow-wrap:anywhere;color:#fff2db;}
.v38-online-player small{font-size:11px;color:#edcda8;margin-left:auto;white-space:nowrap;}
.v38-online-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#6ae36a;box-shadow:0 0 9px #77fb75;}
.v38-empty,.v38-error{font-size:13px;color:#f4dec3;text-align:center;padding:20px 8px;}
.v38-error{color:#ffbba9;}
.v38-chat-section{max-width:760px;}
.v38-chat-log{min-height:260px;height:clamp(260px,45vh,510px);overflow-y:auto;overscroll-behavior:contain;background:#432719d4;border:2px inset #a97c50;border-radius:11px;padding:13px 11px;scrollbar-color:#aa8158 #482b1d;}
.v38-chat-message{margin:0 0 11px;padding:10px 12px;background:#725038;border-radius:11px;border-left:3px solid #d0aa76;max-width:95%;}
/* V42.9.4 — авторитетный статус owner с золотой рамкой сообщения. */
.v38-chat-message.v42-owner-message{
  box-sizing:border-box;
  border:2px solid #efc85e;
  border-left:5px solid #e4b23c;
  border-radius:12px;
  background:linear-gradient(145deg,#83603a 0%,#714d31 53%,#61402b 100%);
  box-shadow:inset 0 0 0 1px rgba(255,242,184,.58),
             inset 0 1px 8px rgba(247,207,111,.12),
             0 2px 9px rgba(36,18,4,.3),
             0 0 10px rgba(235,184,69,.22);
}
.v38-chat-message.v42-owner-message .v38-chat-meta{
  padding-bottom:4px;
  border-bottom:1px solid rgba(248,212,120,.32);
  flex-wrap:wrap;
}

.v42-user-label{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;vertical-align:middle;}
.v42-user-name{display:inline-block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;}
.v42-owner-name{color:#111 !important;font-weight:900;letter-spacing:.01em;-webkit-text-stroke:.85px rgba(255,255,255,.98);text-shadow:-1px -1px 0 rgba(255,255,255,.98),1px -1px 0 rgba(255,255,255,.98),-1px 1px 0 rgba(255,255,255,.98),1px 1px 0 rgba(255,255,255,.98),0 1px 3px rgba(0,0,0,.18);}
.v42-owner-crown{display:inline-block;font-size:1.08em;line-height:1;filter:drop-shadow(0 1px 0 rgba(255,255,255,.6)) drop-shadow(0 1px 2px rgba(96,60,0,.45));}
.v42-role-inline{font-size:11px;color:#f6dfbb;background:rgba(67,39,16,.34);padding:2px 7px;border-radius:999px;border:1px solid rgba(255,231,188,.2);text-transform:capitalize;}
.v42-role-inline.is-owner{color:#3f2a00;background:linear-gradient(180deg,#f9e49a,#e2b854);border-color:#f4df9a;font-weight:800;}
.v38-chat-message>.v38-chat-meta{display:flex;align-items:center;gap:10px;}
.v38-chat-message b{color:#ffdf96;font-size:12px;}
.v38-chat-message time{font-size:10px;color:#ddc09d;}
.v38-chat-message p{color:#fff8e9;font-size:14px;overflow-wrap:anywhere;white-space:pre-wrap;margin:6px 0 0;line-height:1.5;}
.v38-chat-form{margin:12px 0 0;display:flex;gap:9px;flex-wrap:wrap;}
.v38-chat-compose{display:flex;gap:8px;width:100%;align-items:stretch;}
.v38-chat-compose textarea{background:#f9ecda;color:#462a1b;resize:vertical;min-height:55px;border:2px solid #c59661;border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;flex:1;min-width:0;outline:none;}
.v38-emoji-trigger{background:#825333;color:#fff;border:2px solid #c59761;border-radius:10px;min-width:53px;font-size:28px;}
.v38-chat-send{margin-left:auto;background:#7fa03d;min-width:130px;}
.v38-emoji-panel{width:100%;border:2px solid #b68c57;border-radius:10px;padding:8px;background:#472b1c;}
.v38-emoji-panel[hidden]{display:none!important;}
.v38-emoji-tabs{display:flex;gap:5px;overflow:auto;padding-bottom:6px;}
.v38-emoji-tabs button{background:#755039;border:0;border-radius:7px;font-size:21px;padding:5px 9px;}
.v38-emoji-tabs button.active{background:#ad7e52;}
.v38-emoji-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:3px;max-height:190px;overflow-y:auto;overscroll-behavior:contain;}
.v38-emoji-grid button{border:0;background:transparent;font-size:24px;min-height:38px;padding:2px;}
.v38-emoji-grid button:hover{background:#91643d;border-radius:7px;}
@media(max-width:550px){
  #game>.v34-status{padding:8px 10px!important;margin:2px auto 8px!important;}
  #game>.v34-status>.v31-wallet{gap:9px!important;}
  #game>.v34-status>.v31-wallet b{font-size:13px!important;}
  #auth.auth{padding:8px 8px 20px!important;margin:10px auto!important;border-width:3px!important;}
  #auth.auth>h1{font-size:22px!important;}
  body #fieldSeeds.field-seeds.v38-crescent{padding:31px 9px 13px!important;border-width:5px!important;}
  body #fieldSeeds.v38-crescent .plant-picker{gap:5px!important;padding:3px!important;}
  body #fieldSeeds.v38-crescent .plant-option{padding:6px 4px!important;}
  .v38-shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .v38-section{padding:12px 10px;margin-top:10px;border-width:3px;}
  .v38-chat-log{height:48vh;}
  .v38-emoji-grid{grid-template-columns:repeat(7,1fr);}
}

/* V38.1 — ответы и цитирование в общем чате */
.v38-chat-body{margin:7px 0 5px;color:#fff8e9;font-size:14px;line-height:1.5;overflow-wrap:anywhere;}
.v38-chat-plain{white-space:pre-wrap;overflow-wrap:anywhere;}
.v38-chat-quote{margin:7px 0;padding:8px 10px;border-left:3px solid #e7bc79;border-radius:0 7px 7px 0;background:#4d3022;color:#fff0d4;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;}
.v38-chat-message .v38-chat-parent{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-top:8px;padding:7px 9px;width:100%;background:#543621;color:#f9e4bf;border:0;border-left:3px solid #dcb071;border-radius:6px;text-align:left;cursor:pointer;overflow:hidden;}
.v38-chat-message .v38-chat-parent b{color:#ffe2aa;font-size:12px;}
.v38-chat-message .v38-chat-parent span{font-size:12px;color:#f9dfc0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.v38-chat-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:6px;}
.v38-chat-tools button{border:1px solid #b99067;border-radius:8px;background:#5f3e29;color:#ffe9cd;padding:4px 9px;font:inherit;font-size:12px;cursor:pointer;min-height:30px;}
.v38-chat-tools button:hover,.v38-chat-tools button:focus-visible{background:#956542;}
.v38-chat-reply-preview{width:100%;box-sizing:border-box;display:flex;align-items:center;gap:9px;padding:9px 11px;color:#fff1d9;background:#5d3926;border:1px solid #c1976c;border-radius:10px;}
.v38-chat-reply-preview[hidden]{display:none!important;}
.v38-chat-reply-icon{font-size:20px;color:#f0bb79;}
.v38-chat-reply-content{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px;}
.v38-chat-reply-content b{font-size:13px;}
.v38-chat-reply-content small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#ddc29b;font-size:11px;}
.v38-chat-reply-preview>button{background:#78533c;color:#fff;border:1px solid #bc9062;border-radius:6px;min-width:30px;height:30px;cursor:pointer;}
.v38-chat-highlight{outline:2px solid #f9e4a5;box-shadow:0 0 15px #efc47788;transition:box-shadow .4s;}
@media(max-width:550px){.v38-chat-tools{justify-content:flex-start}.v38-chat-tools button{font-size:12px}}

/* V39. Chat as side drawer — keep the farm visible underneath. */
.v39-chat-overlay{position:fixed;inset:0;z-index:950;isolation:isolate;}
.v39-chat-shade{position:absolute;inset:0;background:rgba(30,17,8,.14);cursor:default;}
.v39-chat-panel{position:absolute;top:env(safe-area-inset-top,0px);bottom:env(safe-area-inset-bottom,0px);right:0;width:min(440px,84vw);max-width:100%;background:linear-gradient(160deg,#89633e,#53321f);border-left:5px solid #c9a06c;box-shadow:-9px 0 33px #23140bbb;display:flex;min-height:0;overflow:hidden;box-sizing:border-box;}
.v39-chat-panel .v39-chat-section{box-sizing:border-box;width:100%;max-width:none;margin:0;border:0;border-radius:0;padding:12px 12px 10px;display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden;background:transparent;}
.v39-chat-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 3px 10px;color:#fff5dc;flex:0 0 auto;}
.v39-chat-head>div{min-width:0;display:flex;flex-direction:column;gap:3px;}
.v39-chat-head b{font-size:19px;color:#fff1d2;}
.v39-chat-head small{font-size:10px;color:#efdbb9;}
.v39-chat-x{min-width:39px;height:39px;border:1px solid #d5af77;border-radius:10px;background:#653b25;color:#fff6dc;font-size:20px;cursor:pointer;}
.v39-chat-section .v38-chat-log{flex:1 1 0;min-height:0;height:auto;max-height:none;padding:10px 7px;}
.v39-chat-section .v38-chat-message{max-width:100%;padding:9px 9px;}
.v39-chat-section .v38-chat-form{flex:0 0 auto;gap:6px;margin-top:8px;max-height:58vh;overflow-y:auto;}
.v39-chat-section .v38-chat-compose{gap:5px;}
.v39-chat-section .v38-chat-compose textarea{min-height:44px;max-height:120px;padding:7px 8px;font-size:13px;}
.v39-chat-section .v38-emoji-trigger,.v39-chat-section .v39-mic-button{font-size:19px;min-width:36px;width:36px;flex:0 0 36px;border:1px solid #d1a06e;border-radius:9px;background:#71442b;color:#fff;cursor:pointer;}
.v39-chat-section .v38-chat-send{min-height:35px;padding:5px 12px;font-size:12px;}
.v39-chat-section .v38-emoji-panel{padding:5px;}
.v39-chat-section .v38-emoji-grid{max-height:110px;grid-template-columns:repeat(7,minmax(0,1fr));}
.v39-chat-section .v38-emoji-grid button{min-height:31px;font-size:22px;}
.v39-gg{display:inline-block;width:16px;height:16px;vertical-align:-3px;object-fit:contain;image-rendering:auto;}
.v39-gg-choice{display:flex;align-items:center;justify-content:center;border-radius:5px!important;}
.v39-voice-item{display:flex;flex-direction:column;gap:5px;padding:6px 1px;color:#fff3d8;font-size:12px;}
.v39-voice-item audio{display:block;width:100%;max-width:300px;height:38px;}
.v39-recorder-state,.v39-voice-preview{width:100%;padding:9px;box-sizing:border-box;background:#482b1e;border:1px solid #c79b6b;border-radius:10px;color:#fff0d7;font-size:13px;}
.v39-recorder-state[hidden],.v39-voice-preview[hidden]{display:none!important;}
.v39-recorder-state{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.v39-recorder-state button,.v39-voice-preview button{background:#7c5031;border:1px solid #d3a271;border-radius:7px;color:#fff5e1;padding:6px 9px;cursor:pointer;font:inherit;font-size:12px;}
.v39-voice-preview{display:flex;flex-direction:column;gap:8px;}
.v39-voice-preview audio{width:100%;height:36px;}
.v39-voice-preview>div{display:flex;gap:6px;flex-wrap:wrap;}
.v39-reply-toast{position:fixed;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:1100;box-sizing:border-box;display:flex;align-items:center;gap:9px;width:min(530px,96vw);padding:11px 12px;border:2px solid #d7b85c;border-radius:13px;background:linear-gradient(135deg,#43852f,#1c4928);color:#fff4de;box-shadow:0 8px 23px #142b15a0;}
.v39-notice-symbol{font-size:23px;flex-shrink:0;}
.v39-notice-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.v39-notice-body b{font-size:13px;color:#ffe5a7;}
.v39-notice-body span{font-size:12px;color:#fff3e3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.v39-reply-toast button{border:1px solid #ddb77e;background:#326b2c;color:#fff2d7;border-radius:8px;min-height:31px;padding:5px 8px;cursor:pointer;font-size:12px;white-space:nowrap;}
.v39-reply-toast .v39-notice-close{min-width:27px;padding:3px;}
@media(max-width:520px){.v39-chat-panel{width:87vw;border-left-width:3px;}.v39-chat-panel .v39-chat-section{padding:9px 7px 8px;}.v39-chat-head b{font-size:16px;}.v39-chat-section .v38-chat-log{height:auto;}.v39-chat-section .v38-chat-tools{gap:5px;}.v39-chat-section .v38-chat-tools button{font-size:11px;padding:4px 6px;}.v39-chat-section .v38-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr));}.v39-reply-toast{gap:5px;padding:9px 7px;}.v39-notice-symbol{font-size:18px;}.v39-notice-body b{font-size:12px;}.v39-reply-toast button{font-size:11px;}}
@media(max-height:470px){.v39-chat-section .v38-emoji-grid{max-height:68px;}.v39-chat-section .v38-chat-compose textarea{min-height:38px;max-height:60px;}.v39-chat-panel .v39-chat-section{padding-top:5px;}}

/* =============================================
   FERMA V40 • expansion / public profiles / co-ops
   ============================================= */
.v40-audio-top{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;min-width:0!important;padding:5px 8px!important;font-size:11px!important;white-space:nowrap;color:#fff!important;background:linear-gradient(135deg,#80512f,#5e3b20)!important;border:1px solid #ac7e4c!important;border-radius:9px!important}
.v40-collectives-link{background:linear-gradient(150deg,#a07846,#6a472d)!important;color:#fff!important}
.v40-section{margin:12px 0;padding:14px;border:2px solid #b38a54;border-radius:15px;background:linear-gradient(155deg,#725031,#51351f);color:#fff;box-shadow:0 7px 18px #38230f24}
.v40-section h2,.v40-section h3{color:#fff!important;margin:7px 0 12px}
.v40-section h2{font-size:19px}.v40-section h3{font-size:16px}
.v40-section p,.v40-section small,.v40-section label{color:#fbe8ce!important}
.v40-hint,.v40-muted{font-size:12px;opacity:.87}
.v40-group-mine,.v40-create{border-radius:12px;background:#38231280;border:1px solid #c99b5f;padding:14px;margin:12px 0}
.v40-create{display:grid;gap:9px}.v40-create label{font-weight:700}.v40-create input{border:1px solid #b48758;background:#fff8ed;color:#34251a;border-radius:9px;padding:12px;font-size:16px;min-width:0}
.v40-create .action-button{min-height:42px}
.v40-group-list,.v40-members{display:grid;gap:7px;max-height:430px;overflow-y:auto;overscroll-behavior:contain}
.v40-group-card{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#bd986b24;border:1px solid #d2b18678;border-radius:10px;padding:10px}
.v40-group-card div{display:grid;gap:2px;min-width:0}.v40-group-card small{font-size:12px}.v40-group-card .action-button{white-space:nowrap;min-width:80px}
.v40-members button,.v40-player-link{appearance:none;border:0;cursor:pointer;text-align:left;display:inline-block;color:#fff;font:inherit;background:transparent;text-decoration:underline;text-decoration-color:#f0c281;line-height:1.5}
.v40-members button{display:block;border:1px solid #bd935d;border-radius:8px;padding:8px;text-decoration:none;background:#553920}
.v40-player-link:focus-visible,.v40-members button:focus-visible{outline:3px solid #f9d783;outline-offset:2px}
.v40-animal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:620px;overflow:auto;overscroll-behavior:contain}
.v40-animal-card{display:grid;align-content:start;gap:7px;background:linear-gradient(155deg,#967045,#664727);border:1px solid #cca671;border-radius:11px;padding:11px;min-width:0}
.v40-animal-card small{display:block;font-size:11px;color:#fff0d6!important;line-height:1.45}
.v40-animal-title{display:flex;gap:7px;align-items:center;font-size:13px;overflow-wrap:anywhere}
.v40-animal-title span{font-size:23px}
.v40-animal-card .action-button{min-height:37px;font-size:11px;padding:7px 4px;line-height:1.3;white-space:normal}
.v40-animal-card .action-button:disabled{opacity:.6}
.v40-detail{background:linear-gradient(120deg,#775233,#4a321f);border:1px solid #bf965f;border-radius:11px;margin:9px 0;overflow:hidden;color:#fff}
.v40-detail summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;padding:13px;color:#fff;list-style:none;font-size:14px;align-items:center}
.v40-detail summary::-webkit-details-marker{display:none}
.v40-detail summary::after{content:'▾';order:1;color:#ffdf99}.v40-detail[open] summary::after{content:'▴'}
.v40-detail summary span{font-size:13px;font-weight:700;margin-left:auto}
.v40-detail-body{padding:8px 12px 13px;background:#3d291db0;max-height:350px;overflow:auto;line-height:1.8;font-size:12px;color:#fff7ed}
.v40-detail-body>div{border-bottom:1px solid #bd946244;padding:6px 2px}
.v40-ach-bottom{margin-top:17px;border-top:1px solid #c9a66c;padding-top:10px}
.v40-delete-message{color:#ffdfbd!important;border:1px solid #ba8b5b!important}
@media (max-width:560px){
 .v40-audio-top{font-size:10px!important;padding:4px 5px!important}
 .v31-head-actions{gap:4px!important}
 .v40-section{padding:11px;margin:8px 0}
 .v40-animal-grid{gap:6px;max-height:570px}
 .v40-animal-card{padding:8px}
 .v40-group-card{padding:8px}
 .v40-group-card .action-button{min-width:66px;font-size:11px}
}
@media (max-width:360px){.v40-audio-top{font-size:0!important}.v40-audio-top::first-letter{font-size:16px!important}}


/* ================================================================
   V40.1 · круговой индикатор уровня справа, вместо длинного XP-бара
   ================================================================ */
#game > .v34-status {
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  min-height:70px!important;
  margin:3px auto 9px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#game > .v34-status > .v31-wallet {
  box-sizing:border-box!important;
  flex:0 1 auto!important;
  display:flex!important;
  width:auto!important;
  max-width:calc(100% - 80px)!important;
  min-width:0!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  margin:0!important;
  padding:0!important;
}
#game > .v34-status > .v31-wallet > div {
  flex:0 1 auto!important;
  max-width:100%!important;
}
#game > .v34-status > .v401-level-ring {
  --xp-progress:0%;
  position:relative;
  box-sizing:border-box;
  width:70px;
  height:70px;
  min-width:70px;
  min-height:70px;
  flex:0 0 70px;
  margin-left:auto;
  border-radius:50%;
  padding:8px;
  background:conic-gradient(from -90deg,
      #8ff16b 0%, #369537 var(--xp-progress),
      #50351f var(--xp-progress), #50351f 100%);
  border:3px solid #d6aa6a;
  box-shadow:0 3px 0 #51341b,0 5px 12px #3e271c45,inset 0 1px 2px #fff8c24d;
  isolation:isolate;
}
#game .v401-level-center {
  position:relative;
  box-sizing:border-box;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  height:100%;
  background:radial-gradient(circle at 30% 25%,#96653c 0,#694328 60%,#402718 100%);
  border-radius:50%;
  border:1px solid #dfbc83;
  box-shadow:inset 0 2px 4px #201207a1,0 0 0 1px #4428119e;
}
#game #v401LevelNumber {
  font-size:clamp(17px,3.3vw,22px);
  font-weight:950;
  line-height:1;
  color:#fff7d8;
  text-shadow:0 2px 3px #29180b;
  font-variant-numeric:tabular-nums;
}
#game > .v34-status > .v401-level-max {
  background:conic-gradient(from -90deg,#aaf57a 0%,#39983b 100%);
}
@media(max-width:550px) {
  #game > .v34-status {min-height:62px!important;gap:5px!important;margin:3px auto 8px!important;padding:0!important;}
  #game > .v34-status > .v31-wallet {gap:5px!important;max-width:calc(100% - 70px)!important;}
  #game > .v34-status > .v31-wallet > div {gap:4px!important;padding:4px 7px!important;}
  #game > .v34-status > .v401-level-ring {
    width:62px;height:62px;min-width:62px;min-height:62px;
    flex-basis:62px;padding:7px;border-width:3px;
  }
  #game #v401LevelNumber {font-size:19px;}
}
@media(max-width:340px) {
  #game > .v34-status > .v31-wallet {gap:3px!important;max-width:calc(100% - 63px)!important;}
  #game > .v34-status > .v31-wallet > div {padding:3px 4px!important;}
  #game > .v34-status > .v401-level-ring {width:58px;height:58px;min-width:58px;min-height:58px;flex-basis:58px;padding:6px;}
}
@media(prefers-reduced-motion:reduce){#game > .v34-status > .v401-level-ring{transition:none!important;}}

/* ==============================================================
   FERMA V41 • компактный верх, профиль, уведомления, чат и грядки
   ============================================================== */
#game > .v34-status.v41-status{
 display:block!important;width:100%!important;max-width:100%!important;height:35px!important;
 min-height:35px!important;min-width:0!important;padding:0!important;margin:3px 0 9px!important;
 border:0!important;box-shadow:none!important;background:transparent!important;
}
#game .v41-experience-bar{
 position:relative;display:flex;align-items:center;box-sizing:border-box;
 width:100%;height:34px;min-height:34px;min-width:0;overflow:hidden;
 border:1px solid #bf925b;border-radius:8px;
 background:linear-gradient(#503720,#3d291b);box-shadow:inset 0 2px 4px #2b1c12;
}
#game .v41-experience-fill{position:absolute;inset:0 auto 0 0;height:100%;width:0%;
 background:linear-gradient(180deg,#8ded6b,#56b33f 55%,#3d9035);transition:width .3s ease;z-index:0}
#game > .v34-status.v41-status .v41-inline-wallet{
 position:relative;z-index:1;display:flex!important;flex:1 1 auto!important;
 align-items:center!important;justify-content:flex-start!important;gap:11px!important;
 flex-direction:row!important;flex-wrap:nowrap!important;overflow:visible!important;
 margin:0!important;padding:0 9px!important;width:100%!important;min-width:0!important;
 max-width:100%!important;height:100%!important;background:transparent!important;border:0!important;
 box-shadow:none!important;
}
#game > .v34-status.v41-status .v41-inline-wallet>div{
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
 flex:0 1 auto!important;min-width:0!important;max-width:calc(50% - 7px)!important;
 height:30px!important;min-height:30px!important;padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
 gap:4px!important;overflow:visible!important;
}
#game > .v34-status.v41-status .v41-inline-wallet span{
 display:inline!important;flex:0 0 auto!important;font-size:15px!important;line-height:1.2!important;
 margin:0!important;padding:0!important;
}
#game > .v34-status.v41-status .v41-inline-wallet b{
 display:inline!important;color:#fffefa!important;text-shadow:0 1px 3px #20180a!important;
 font-size:clamp(11px,2.6vw,14px)!important;line-height:1.35!important;font-variant-numeric:tabular-nums;
 white-space:nowrap!important;overflow:visible!important;letter-spacing:0!important;
}
@media(max-width:400px){#game > .v34-status.v41-status .v41-inline-wallet{gap:6px!important;padding:0 7px!important;}
 #game > .v34-status.v41-status .v41-inline-wallet>div{max-width:calc(50% - 3px)!important;gap:2px!important;}
 #game > .v34-status.v41-status .v41-inline-wallet span{font-size:13px!important;}
 #game > .v34-status.v41-status .v41-inline-wallet b{font-size:clamp(10px,2.4vw,12px)!important;}}
.v41-mail-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;
 border:1px solid #c29863;border-radius:9px;background:#634029;color:#fff;font-size:19px;cursor:pointer;}
.v41-mail-button b{position:absolute;top:-8px;right:-7px;min-width:19px;min-height:19px;padding:1px 4px;
 border-radius:30px;background:#c94738;border:1px solid #fff1c3;color:#fff;font-size:11px;line-height:16px;}
#screen .v41-profile-panel{padding:16px 12px;border:2px solid #b58b61;}
#screen .v41-profile-header{display:flex;align-items:center;flex-direction:column;gap:7px;text-align:center;}
#screen .v41-profile-header h2{color:#5a3520;margin:3px 0 0;font-size:21px;overflow-wrap:anywhere;}
#screen .v41-profile-header small{font-size:12px;color:#75563c;}
#screen .v41-avatar-frame{width:100px;height:100px;flex:0 0 100px;display:grid;place-items:center;
 overflow:hidden;border:3px solid #ad7640;background:linear-gradient(#fff0d4,#bf995f);border-radius:50%;box-shadow:0 3px 14px #4a291638;}
#screen .v41-avatar-frame span{font-size:60px;line-height:1;}
#screen .v41-avatar-frame img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%;}
#screen .v41-avatar-upload{display:inline-flex;cursor:pointer;background:#6e472b;border:1px solid #bb8c57;
 border-radius:9px;padding:8px 12px;font-size:12px;font-weight:750;color:#fff4e2;}
#screen .v41-profile-details,#screen .v41-achievements-details{margin:13px 0 7px;border:2px solid #ac7946;
 border-radius:12px;background:linear-gradient(#805631,#58391e);color:#fff3dc;overflow:hidden;}
#screen .v41-profile-details summary,#screen .v41-achievements-details summary{cursor:pointer;padding:13px 15px;
 color:#fff4e5;font-weight:800;font-size:15px;}
#screen .v41-profile-details summary::marker,#screen .v41-achievements-details summary::marker{color:#e2ba82}
#screen .v41-profile-details-body,#screen .v41-achievements-body{padding:12px;background:#ecd1ae;color:#543b23;}
#screen .v41-profile-details-body h3{color:#55391e;}
#screen .v41-achievements-body .achievement-group{margin-bottom:10px;}
#screen .v41-worker-dock{position:absolute;top:1.5%;left:1.5%;z-index:5;width:min(315px,42%);
 pointer-events:auto;}
#screen .v41-worker-dock .v38-worker-panel{margin:0!important;width:100%!important;max-width:100%!important;
 border-width:2px!important;padding:5px 8px!important;box-shadow:0 3px 7px #2e321e75!important;}
#screen .v41-worker-dock .v37-worker-heading{display:flex;gap:5px!important;}
#screen .v41-worker-dock h3{font-size:12px!important;}
#screen .v41-worker-dock .v37-worker-controls{margin-top:3px!important;}
#screen .v41-worker-dock .v37-worker-summary{display:none!important;}
@media(max-width:600px){#screen .v41-worker-dock{top:1%;left:1%;width:280px;max-width:75%;}}
.v41-edited-label{font-size:10px;color:#dcc1a3;margin-left:auto;}
.v39-chat-section .v38-chat-tools{gap:3px!important;justify-content:flex-start!important;}
.v39-chat-section .v38-chat-tools button{padding:3px 5px!important;min-height:23px!important;font-size:10px!important;
 border-radius:6px!important;line-height:1.2!important;}
.v39-chat-section .v38-emoji-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-height:178px;gap:5px;}
.v39-chat-section .v38-emoji-grid button{display:flex;justify-content:center;align-items:center;min-height:52px;padding:3px;}
.v39-chat-section .v38-emoji-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;}
.v39-chat-section .v38-emoji-tabs button{flex:0 0 auto;font-size:10px;white-space:nowrap;}
.v41-animated-emote{width:32px;height:32px;vertical-align:-8px;object-fit:contain;image-rendering:auto;display:inline-block;}
.v41-emoji-grid .v41-animated-emote{width:44px;height:44px;vertical-align:middle;}
.v41-animated-emote.v41-original-gg{image-rendering:auto;}
.v41-emoji-empty{grid-column:1/-1;font-size:12px;color:#fff0d0;}
.v41-autocorrect-label{font-size:11px;color:#efddc7;display:inline-flex;gap:5px;align-items:center;}
.v41-autocorrect-label input{width:14px;height:14px;accent-color:#5aa748;}
.v41-chat-edit-form{display:grid;gap:7px;margin-top:7px;}
.v41-chat-edit-form textarea{background:#fffaf0;border:1px solid #c99b59;color:#382517;border-radius:8px;
 padding:7px 8px;resize:vertical;max-height:160px;width:100%;font:inherit;font-size:13px;}
.v41-chat-edit-form>div{display:flex;gap:7px;justify-content:flex-end;}
.v41-chat-edit-form button{border:1px solid #bf9469;border-radius:7px;background:#573820;color:#fff1d9;
 padding:6px 9px;font-size:12px;cursor:pointer;}
.v41-mailbox-overlay{position:fixed;inset:0;z-index:1300;display:flex;justify-content:flex-end;align-items:stretch;}
.v41-mailbox-shade{position:absolute;inset:0;background:#100b0877;}
.v41-mailbox-dialog{position:relative;display:flex;flex-direction:column;z-index:1;width:min(430px,96vw);height:100%;
 background:linear-gradient(#77502d,#412819);color:#fff3de;box-shadow:-8px 0 28px #1a0d07aa;border-left:3px solid #d4a36f;
 padding:16px 12px;padding-top:max(16px,env(safe-area-inset-top));}
.v41-mailbox-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;}
.v41-mailbox-dialog header b{font-size:16px;}
.v41-mailbox-dialog header button,.v41-mark-read{cursor:pointer;border:1px solid #c39a6d;background:#674328;color:#fff;
 padding:8px 12px;border-radius:8px;}
.v41-mailbox-list{display:grid;align-content:start;gap:8px;overflow:auto;flex:1;}
.v41-inbox-item{display:grid;gap:3px;text-align:left;padding:12px;background:#946c408a;border:1px solid #c7a175;
 border-radius:10px;color:#fff0d8;cursor:pointer;min-width:0;}
.v41-inbox-item b{font-size:13px;color:#ffe5ac;}.v41-inbox-item small{font-size:10px;color:#e1cbaa;}
.v41-inbox-item span{font-size:12px;line-height:1.4;overflow-wrap:anywhere;}
.v41-empty-inbox{font-size:13px;padding:14px;}
.v41-mark-read{margin:10px 0;min-height:35px;}
@media(max-height:550px){.v39-chat-section .v38-emoji-grid{max-height:100px;}}

.v41-public-profile-header{text-align:center!important;display:flex;flex-direction:column;align-items:center;gap:6px;}
.v41-public-photo{position:relative;display:grid;place-items:center;width:94px;height:94px;border-radius:50%;border:3px solid #d3a96d;background:#b68e54;overflow:hidden;}
.v41-public-photo>span{font-size:48px;}.v41-public-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}

@media(max-width:430px){
  header.top.v31-top{gap:3px!important;padding:3px 5px!important;}
  header.top.v31-top .v31-build{font-size:0!important;}
  header.top.v31-top .v31-build::after{content:'V42';font-size:10px;}
  header.top.v31-top .v31-head-actions{gap:3px!important;}
  header.top.v31-top .v40-audio-top{font-size:15px!important;padding:2px 4px!important;min-width:27px!important;}
  header.top.v31-top .v41-audio-word{display:none!important;}
  header.top.v31-top .v41-mail-button{min-width:27px;width:27px;height:27px;font-size:16px;padding:1px;}
}

/* ==========================================
   V42 - top bar, worker, dark farm theme
   ========================================== */
body,body .shell {background-color:#a27a51!important;}
body {background-image:linear-gradient(#5b3a2280,#5b3a2280),url('v38-background.svg')!important;background-repeat:repeat;background-size:auto,460px auto;}
#game > .v34-status.v41-status{height:24px!important;min-height:24px!important;margin:2px 0 8px!important;}
#game .v41-experience-bar{height:24px!important;min-height:24px!important;border-radius:6px!important;}
#game > .v34-status.v41-status .v41-inline-wallet{height:100%!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;padding:0 10px!important;flex-wrap:nowrap!important;}
#game > .v34-status.v41-status .v41-inline-wallet>div{height:22px!important;min-height:22px!important;max-width:none!important;flex:0 1 auto!important;gap:4px!important;}
#game > .v34-status.v41-status .v41-inline-wallet span{font-size:13px!important;}
#game > .v34-status.v41-status .v41-inline-wallet b{font-size:12px!important;font-weight:800!important;line-height:20px!important;white-space:nowrap!important;overflow:visible!important;}
@media(max-width:365px){#game > .v34-status.v41-status .v41-inline-wallet{gap:7px!important;padding:0 5px!important;}#game > .v34-status.v41-status .v41-inline-wallet b{font-size:11px!important;}}
/* The worker dock is now in the strip BETWEEN the plots heading and the green field. */
#screen .v41-worker-dock.v42-worker-above{position:relative!important;top:auto!important;left:auto!important;right:auto!important;z-index:4!important;display:block!important;width:min(300px,74%)!important;max-width:100%!important;min-height:0!important;margin:0 0 5px auto!important;pointer-events:auto!important;}
#screen .v41-worker-dock.v42-worker-above:empty{display:none!important;}
#screen .v42-worker-above .v38-worker-panel{width:100%!important;padding:5px 8px!important;font-size:11px!important;line-height:1.22!important;}
#screen .v42-worker-above .v37-worker-heading{margin:0!important;align-items:center!important;gap:5px!important;}
#screen .v42-worker-above .v37-worker-heading h3{font-size:11px!important;margin:0!important;}
#screen .v42-worker-above .v37-worker-heading small{font-size:10px!important;}
#screen .v42-worker-above .v37-worker-avatar{font-size:20px!important;}
#screen .v42-worker-above .v37-worker-controls label{font-size:10px!important;margin:0!important;}
#screen .v42-worker-above .v37-worker-controls select{padding:5px!important;min-height:29px!important;font-size:11px!important;}
#screen .v42-worker-above .v37-worker-controls .action-button{font-size:10px!important;padding:5px 7px!important;min-height:26px!important;}
#screen .v42-worker-above .v37-worker-summary{display:none!important;}
.v35-major.v40-collectives-link {background-image:url('menu-wood-v32.webp')!important;background-size:100% 100%!important;background-position:center!important;background-color:transparent!important;box-shadow:none!important;border:none!important;}
.v42-online-name{color:#fff2dd!important;text-decoration:none!important;font-family:ui-rounded,'Trebuchet MS',Verdana,sans-serif!important;font-weight:900!important;letter-spacing:.2px!important;line-height:1.35!important;}
.v42-online-name:hover,.v42-online-name:focus{text-decoration:none!important;}
.v42-online-player{display:flex!important;gap:10px;align-items:center!important;}
.v42-online-avatar{width:38px;height:38px;min-width:38px;border-radius:50%;border:2px solid #d7ae72;position:relative;display:grid;place-items:center;overflow:hidden;background:#775031;}
.v42-online-avatar>span{font-size:22px}.v42-online-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.v42-nick-muted{color:#f05753!important}.v42-nick-banned{color:#555459!important;}
.v39-chat-section .v38-chat-compose{display:flex!important;gap:5px!important;align-items:stretch!important;}
.v39-chat-section .v38-chat-compose textarea{flex:1 1 auto!important;min-width:60px!important;}
.v39-chat-section .v38-chat-compose button{flex-shrink:0!important;}
.v42-chat-send{display:grid;place-items:center;width:46px;min-width:46px;min-height:48px;padding:0;border:1px solid #ceaa65;background:linear-gradient(#86bd4b,#63993a);border-radius:12px;color:white;font-size:26px;font-weight:900;box-shadow:0 2px 4px #2c1b12;cursor:pointer;}
.v42-chat-send:active{transform:scale(.96);}
@media(max-width:500px){.v42-chat-send{width:41px;min-width:41px;}.v39-chat-section .v38-chat-compose{gap:3px!important;}}
.v42-mail-overlay{position:fixed;inset:0;z-index:1400;display:flex;justify-content:flex-end;align-items:stretch;}
.v42-mail-backdrop{position:absolute;inset:0;background:#1b0e0980;}
.v42-mail-dialog{position:relative;width:min(455px,97vw);height:100%;display:flex;flex-direction:column;background:linear-gradient(145deg,#775130,#3a2419);color:#fff5e5;box-shadow:-9px 0 30px #0008;border-left:3px solid #c89963;padding:12px;padding-top:max(12px,env(safe-area-inset-top));}
.v42-mail-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;}
.v42-mail-dialog>header>b{font-size:17px;}
.v42-mail-dialog button,.v42-admin button{font:inherit;cursor:pointer;border-radius:9px;border:1px solid #c0935e;background:#654329;color:#fff3dd;padding:8px 10px;}
.v42-mail-dialog>header>button{font-size:20px;}
.v42-mail-view{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:7px;min-height:0;}
.v42-mail-view h3{margin:4px 0 10px;font-size:17px;}
.v42-mail-thread{display:flex;align-items:center;gap:12px;text-align:left;width:100%;}
.v42-mail-avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:50%;background:#b7884a;}
.v42-mail-thread-body{flex:1;display:flex;flex-direction:column;min-width:0;gap:3px;}
.v42-mail-thread-body small{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
.v42-mail-unread{border-radius:15px;background:#c84939;padding:2px 7px;}
.v42-mail-thread-head{display:flex;align-items:center;gap:10px;}
.v42-mail-thread-head h3{margin:0;}
.v42-mail-messages{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:9px;min-height:100px;padding:9px 2px;}
.v42-mail-bubble{width:fit-content;max-width:87%;padding:10px 12px;border:1px solid #bf9260;border-radius:12px;background:#805631;overflow-wrap:anywhere;white-space:pre-wrap;}
.v42-mail-bubble small{display:block;margin-top:5px;font-size:10px;color:#eacba7;}
.v42-mail-me{align-self:flex-end;background:#457b36;border-color:#83ae70;}
.v42-mail-them{align-self:flex-start;}
.v42-mail-compose{display:flex;gap:6px;flex:0 0 auto;align-items:stretch;padding-bottom:env(safe-area-inset-bottom);}
.v42-mail-compose textarea{flex:1;min-width:0;max-height:120px;resize:vertical;min-height:49px;border:1px solid #be9262;border-radius:8px;padding:9px;background:#fff5e9;color:#352115;}
.v42-mail-compose button{font-size:24px!important;background:#6ba348!important;min-width:47px;}
.v42-mail-error{color:#ffc5b7;overflow-wrap:anywhere;}
.v42-admin-entry{display:flex;justify-content:center;margin:18px auto;}
.v42-admin-entry[hidden]{display:none!important;}
/* V42.9.8 — деревянная резная рамка кнопки админ-панели, размеры не меняем. */
.v42-admin-entry button{
  border:1px solid #46220d;
  border-radius:10px;
  padding:10px 20px;
  color:#fff0df;
  font-weight:750;
  cursor:pointer;
  background:
    linear-gradient(90deg,rgba(32,12,3,.22),transparent 18%,transparent 82%,rgba(32,12,3,.22)),
    repeating-linear-gradient(177deg,rgba(250,211,152,.10) 0 2px,transparent 2px 8px,rgba(35,13,2,.09) 8px 10px),
    linear-gradient(180deg,#a36c3b 0%,#87502a 42%,#69391d 72%,#552b16 100%);
  box-shadow:
    inset 0 0 0 2px #ddb077,
    inset 0 0 0 4px #5d3017,
    inset 0 2px 6px 4px rgba(34,13,2,.28),
    0 3px 6px rgba(42,21,9,.38);
  text-shadow:0 2px 2px #351908;
  transition:filter .16s ease,transform .16s ease;
}
.v42-admin-entry button:hover{filter:brightness(1.09);}
.v42-admin-entry button:active{transform:translateY(1px);}
.v42-admin-entry button:focus-visible{outline:2px solid #ffe0a1;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){.v42-admin-entry button{transition:none;}}

.v42-admin{padding:15px 12px;border:2px solid #9c713e;border-radius:15px;background:linear-gradient(#e6ca9d,#d1a875);color:#422b20;}
/* V42.9.7: кнопка "Домой" в админке — общая фиксированная #v34HomeFloating. */
.v42-admin h2,.v42-admin h3,.v42-admin h4{color:#3f2717;}
.v42-admin-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0;}
.v42-admin-players{display:grid;gap:5px;margin:8px 0;max-height:50vh;overflow:auto;}
.v42-admin-players button{text-align:left;display:flex;flex-direction:column;gap:2px;}
.v42-admin-players small{color:#dbc4a6;font-size:11px;}
.v42-admin form{display:grid;gap:6px;margin:9px 0;padding:9px;border:1px solid #aa8656;border-radius:9px;}
.v42-admin input,.v42-admin select{width:100%;max-width:100%;border:1px solid #9a6e43;border-radius:6px;min-height:36px;padding:6px;background:#fff4e2;color:#3e2b1c;}
.v42-admin-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:7px;}
.v42-admin-chat,.v42-admin-sanction{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #ac8157;padding:10px 0;}

/* V42.1 administrative controls */
.v42-admin-details{margin:12px 0;border:1px solid #ac8157;border-radius:10px;padding:10px;background:#e4c598;color:#482f1d;}
.v42-admin-details>summary{cursor:pointer;font-weight:800;list-style-position:inside;line-height:1.5;}
.v42-admin-details p{font-size:12px;margin:8px 0;}
.v42-admin-details form{background:#d6ad7d;}
.v42-online-player .v42-online-name{font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;font-weight:850;text-decoration:none!important;}


/* ================================================================
   V42.8 · ЧИТАЕМЫЕ БАЛАНСЫ + ИЛЛЮСТРИРОВАННОЕ МЕНЮ
   Старые стили .wallet задавали flex-direction: column, из-за чего
   суммы оказывались ниже 24px-полосы XP и обрезались overflow:hidden.
   ================================================================ */
#game > .v34-status.v41-status .v41-inline-wallet {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;gap:12px!important;
  overflow:visible!important;min-width:0!important;
}
#game > .v34-status.v41-status .v41-inline-wallet > .v31-coin-chip,
#game > .v34-status.v41-status .v41-inline-wallet > .diamond-wallet {
  box-sizing:border-box!important;display:inline-flex!important;
  flex-direction:row!important;align-items:center!important;
  justify-content:center!important;gap:5px!important;
  flex:0 1 auto!important;width:auto!important;min-width:0!important;
  max-width:calc(50% - 6px)!important;height:21px!important;
  min-height:21px!important;padding:0 8px!important;margin:0!important;
  border:1px solid #e6fac04d!important;border-radius:12px!important;
  background:rgba(26,62,25,.34)!important;
  overflow:hidden!important;text-align:left!important;
}
#game > .v34-status.v41-status .v41-inline-wallet > div > span,
#game > .v34-status.v41-status .v41-inline-wallet > div > svg {
  display:block!important;flex:0 0 auto!important;line-height:1!important;
}
#game > .v34-status.v41-status .v41-inline-wallet > div > b {
  display:inline-block!important;flex:0 1 auto!important;min-width:0!important;
  margin:0!important;padding:0!important;line-height:19px!important;
  font-size:clamp(11px,3.1vw,13px)!important;font-weight:900!important;
  color:#fffdf1!important;text-shadow:0 1px 2px #16301b!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#screen .v42-menu-illustration {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;line-height:1!important;
}
#screen .v42-menu-icon {
  display:block!important;width:52px;height:52px;max-width:none!important;
  object-fit:contain!important;filter:drop-shadow(0 2px 2px #3b1b1466);
  pointer-events:none;user-select:none;
}
#screen .v35-profile-card .v42-menu-icon{width:56px;height:56px;}
#screen .v35-farm-major .v42-menu-icon{width:76px;height:76px;}
#screen .v35-city-major .v42-menu-icon{width:48px;height:48px;}
#screen .v35-link-icon .v42-menu-icon{width:40px;height:40px;}
@media(max-width:520px){
  #screen .v35-profile-card .v42-menu-icon{width:48px;height:48px;}
  #screen .v35-farm-major .v42-menu-icon{width:61px;height:61px;}
  #screen .v35-city-major .v42-menu-icon{width:43px;height:43px;}
  #game > .v34-status.v41-status .v41-inline-wallet{gap:8px!important;padding:0 6px!important;}
  #game > .v34-status.v41-status .v41-inline-wallet > div{padding:0 6px!important;gap:3px!important;}
}

/* V42.9: новые смайлы. PNG/GIF прошлого набора больше не используются. */
.v39-chat-section .v38-emoji-grid.v41-emoji-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:min(248px,38vh);padding:7px 2px;overflow-y:auto;scrollbar-width:thin;}
.v39-chat-section .v38-emoji-grid.v41-emoji-grid button{min-height:56px;border-radius:14px;border:1px solid #e7be7b44;background:linear-gradient(160deg,#885938aa,#56382088);transition:transform .13s ease,border-color .13s ease,background .13s ease;box-shadow:inset 0 1px 1px #ffdf9a28;}
.v39-chat-section .v38-emoji-grid.v41-emoji-grid button:hover,.v39-chat-section .v38-emoji-grid.v41-emoji-grid button:focus-visible{transform:translateY(-2px);background:#ad7447;border-color:#ffd99a;outline:none;}
.v41-emoji-grid .v41-animated-emote.v42-modern-emote{width:45px;height:45px;filter:drop-shadow(0 2px 2px #27160a55);}
.v38-chat-body .v41-animated-emote.v42-modern-emote,.v38-chat-parent .v41-animated-emote.v42-modern-emote{width:34px;height:34px;vertical-align:middle;}
.v41-animated-emote.v41-original-gg{width:32px;height:32px;image-rendering:auto;}
.v41-emoji-grid .v41-animated-emote.v41-original-gg{width:44px;height:44px;}
@media(prefers-reduced-motion:reduce){.v39-chat-section .v38-emoji-grid.v41-emoji-grid button{transition:none;}}

/* V42.9.1: чат — только вкладки Недавние и Все, без горизонтальной прокрутки. */
.v39-chat-section .v38-emoji-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:visible;padding-bottom:7px;}
.v39-chat-section .v38-emoji-tabs button{flex:initial;min-width:0;max-width:100%;padding:7px 10px;font-size:12px;white-space:nowrap;}

.v42-online-name .v42-user-label,.v42-admin-players b .v42-user-label,.v41-profile-header h2 .v42-user-label,.v35-profile-card small .v42-user-label{max-width:100%;}
.v42-admin-players small{display:block;}

/* ==============================================================
   V42.9.10 — узкие карточки и один ряд иконок внизу справа.
   Нет вертикальной колонки — функции кнопок и доступность сохранены.
   ============================================================== */
.v39-chat-section .v38-chat-message{
  box-sizing:border-box;
  width:74%;
  max-width:74%;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  padding:6px 7px 5px;
  margin:0 0 7px;
  border-radius:9px;
  overflow-wrap:anywhere;
  box-shadow:0 1px 3px rgba(32,14,6,.16);
}
.v39-chat-section .v38-chat-message.v42-owner-message{
  border:1.5px solid #e5bf60;
  border-left:3px solid #dba53a;
  border-radius:10px;
  background:linear-gradient(135deg,#7a5638,#67452e);
  box-shadow:inset 0 0 0 1px rgba(255,229,154,.35),0 1px 4px rgba(30,16,5,.22);
}
.v39-chat-section .v38-chat-message>.v38-chat-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:2px 6px;
  min-width:0;
  margin:0;
  padding-bottom:3px;
}
.v39-chat-section .v42-chat-message-content{
  min-width:0;
  width:100%;
  overflow-wrap:anywhere;
  margin:0;
}
.v39-chat-section .v42-chat-message-content .v38-chat-body{
  margin:3px 0 0;
  line-height:1.3;
  overflow-wrap:anywhere;
  font-size:13px;
}
.v39-chat-section .v42-chat-message-content .v38-chat-parent{
  box-sizing:border-box;
  max-width:100%;
  margin:4px 0;
  padding:4px 6px;
}
.v39-chat-section .v42-chat-message-content .v38-chat-quote{
  padding:5px 7px;
  margin:4px 0;
}
.v39-chat-section .v42-chat-message-content .v39-voice-item{min-width:0;max-width:100%;}
.v39-chat-section .v42-chat-message-content audio{width:100%;min-width:0;}
.v39-chat-section .v38-chat-tools{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
  align-self:flex-end;
  width:100%;
  min-width:0;
  margin:3px 0 0!important;
}
.v39-chat-section .v38-chat-tools .v42-chat-icon-btn{
  box-sizing:border-box;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:0 0 28px;
  width:28px;
  max-width:28px;
  min-width:28px;
  min-height:27px!important;
  height:27px;
  border-radius:6px!important;
  border:1px solid rgba(224,179,119,.67);
  background:rgba(66,39,22,.64);
  color:#ffe6b8;
  padding:0!important;
  font-family:Arial,sans-serif;
  font-size:20px!important;
  line-height:1!important;
  cursor:pointer;
  touch-action:manipulation;
}
.v39-chat-section .v38-chat-tools .v42-chat-icon-btn span{pointer-events:none;}
.v39-chat-section .v38-chat-tools .v42-chat-icon-btn:hover,
.v39-chat-section .v38-chat-tools .v42-chat-icon-btn:focus-visible{
  background:#97633d;
  border-color:#ffdc9b;
  outline-offset:2px;
}
.v39-chat-section .v38-chat-tools .v40-delete-message{font-size:17px!important;}
.v39-chat-section .v38-chat-message .v41-chat-edit-form{min-width:0;width:100%;max-width:100%;}
.v39-chat-section .v38-chat-message .v41-chat-edit-form textarea{width:100%;min-width:0;box-sizing:border-box;}
.v39-chat-section .v38-chat-message .v41-chat-edit-form button{font-size:10px;padding:4px 5px;}
.v39-chat-section .v38-chat-message .v42-role-inline{padding:1px 5px;font-size:10px;line-height:1.2;}
.v39-chat-section .v38-chat-message .v42-owner-crown{font-size:1em;}
/* Для редактирования и голосовых сообщений ширина нужна больше, чтобы форма
   и аудиоплеер не обрезались. */
.v39-chat-section .v38-chat-message.v42-chat-editing{width:100%;max-width:100%;}
.v39-chat-section .v38-chat-message.v42-voice-message{width:86%;max-width:86%;}
.v39-chat-section .v38-chat-message.v42-voice-message .v42-chat-message-content{min-height:0;}
@media(max-width:390px){
  .v39-chat-section .v38-chat-message{width:79%;max-width:79%;padding:5px 6px;}
  .v39-chat-section .v38-chat-message.v42-chat-editing{width:100%;max-width:100%;}
  .v39-chat-section .v38-chat-message.v42-voice-message{width:90%;max-width:90%;}
  .v39-chat-section .v38-chat-tools{gap:3px!important;}
  .v39-chat-section .v38-chat-tools .v42-chat-icon-btn{flex-basis:26px;width:26px;max-width:26px;min-width:26px;height:26px;min-height:26px!important;}
}

/* ================================================================
   V42.9.11 — широкие карточки с большими промежутками, без золотого
   обрамления владельца. Только текст сообщений owner пишется курсивом.
   ================================================================ */
.v39-chat-section .v38-chat-message{
  width:96%;
  max-width:96%;
  margin-bottom:18px;
  padding:8px 10px 7px;
  border-radius:10px;
  background:#725038;
  border:1px solid rgba(188,145,107,.75);
  border-left:3px solid #b38d6c;
  box-shadow:0 2px 5px rgba(32,14,6,.16);
}
/* Удалена золотая рамка, обводка и свечение карточек создателя.
   Корона возле ника и должность «Создатель» сохраняются. */
.v39-chat-section .v38-chat-message.v42-owner-message{
  background:#725038;
  border:1px solid rgba(188,145,107,.75);
  border-left:3px solid #b38d6c;
  border-radius:10px;
  box-shadow:0 2px 5px rgba(32,14,6,.16);
}
.v39-chat-section .v38-chat-message.v42-owner-message .v38-chat-meta{
  border-bottom:1px solid rgba(208,170,125,.27);
}
.v39-chat-section .v38-chat-message.v42-owner-message .v38-chat-body{
  font-style:italic;
  font-weight:550;
  letter-spacing:.1px;
}
/* Ряд значков действий остается внизу справа. */
.v39-chat-section .v38-chat-message .v38-chat-tools{
  justify-content:flex-end!important;
  margin-top:6px!important;
}
.v39-chat-section .v38-chat-message.v42-voice-message{
  width:96%;
  max-width:96%;
}
.v39-chat-section .v38-chat-message.v42-chat-editing{
  width:100%;
  max-width:100%;
}
@media(max-width:390px){
  .v39-chat-section .v38-chat-message{
    width:97%;max-width:97%;
    padding:7px 8px;
    margin-bottom:17px;
  }
  .v39-chat-section .v38-chat-message.v42-voice-message{
    width:97%;max-width:97%;
  }
  .v39-chat-section .v38-chat-message.v42-chat-editing{
    width:100%;max-width:100%;
  }
}

/* V42.9.12 — keep the chat composer visible above the Android keyboard.
   The overlay height is updated from visualViewport by app.js. */
.v39-chat-overlay{max-height:none;overflow:hidden;}
.v39-chat-panel{max-height:100%;}
.v39-chat-panel .v39-chat-section{min-height:0;}
.v39-chat-section .v38-chat-log{min-height:0;}
.v39-chat-section .v38-chat-form{
  min-height:0;
  flex:0 1 auto;
  max-height:60%;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.v39-chat-section .v38-chat-compose{flex-shrink:0;}
.v39-chat-section .v38-chat-compose textarea{
  min-height:44px;
  max-height:100px;
  resize:none;
}
@media (max-height:500px){
  .v39-chat-panel .v39-chat-section{padding-top:4px;padding-bottom:3px;}
  .v39-chat-head{padding-bottom:4px;}
  .v39-chat-section .v38-chat-form{margin-top:4px;gap:3px;max-height:70%;}
  .v39-chat-section .v38-chat-compose textarea{min-height:38px;}
  .v39-chat-section .v38-emoji-grid{max-height:75px;}
}

/* ===== FERMA V42.10: обновлённые колхозы ===== */
.v43-groups{--g43-dark:#4b2a17;--g43-wood:#734a2c;--g43-gold:#e7c483;--g43-cream:#faefd8;max-width:940px;margin:0 auto 20px;padding:10px 8px 18px;color:#f9ecd8;box-sizing:border-box;}
.v43-groups *{box-sizing:border-box;}
.v43-head{border:4px solid #70401f;outline:1px solid #e8ba76;border-radius:16px;text-align:center;padding:17px 13px;margin:6px 2px 17px;background:linear-gradient(120deg,rgba(28,12,3,.2),transparent 30%,rgba(255,238,195,.08) 55%,rgba(23,9,4,.27)),linear-gradient(180deg,#a16b3f 0%,#86502c 49%,#63371f 100%);box-shadow:inset 0 0 0 2px #dcb17a,inset 0 0 15px rgba(31,13,2,.5),0 4px 8px #3b221b5c;}
.v43-head>span{font-size:11px;font-weight:900;letter-spacing:2px;color:#f6ce7a;text-shadow:0 1px 1px #2a1207;}
.v43-head h2{margin:4px 0 6px;font-size:clamp(24px,6vw,34px);color:#fff0d7;text-shadow:0 2px 3px #2c160a;overflow-wrap:anywhere;}
.v43-head p{font-size:13px;color:#f4dcb7;line-height:1.45;margin:7px 0 2px;}
.v43-role{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fce3a0,#c79538);color:#4c2d0b;border:1px solid #fff3c5;border-radius:99px;padding:3px 13px;font-size:12px;font-weight:900;box-shadow:0 2px 4px #2d130c70;}
.v43-overview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:8px 0 14px;}
.v43-overview-metrics>div{background:linear-gradient(150deg,#684229,#4e2d1c);border:1px solid #bc915f;border-radius:10px;padding:10px 4px;min-height:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;}
.v43-overview-metrics b{color:#ffde87;font-size:clamp(16px,4vw,23px);overflow-wrap:anywhere;}
.v43-overview-metrics span{color:#f5dbb9;font-size:11px;line-height:1.2;}
.v43-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;gap:6px;padding:4px 1px 10px;scrollbar-width:thin;}
.v43-tabs button{flex:0 0 auto;scroll-snap-align:start;padding:9px 12px;border:1px solid #b68b55;border-radius:11px;background:linear-gradient(180deg,#7c5031,#5f391f);color:#fff1d4;font-size:12px;font-weight:800;box-shadow:0 2px 4px #40241255;cursor:pointer;white-space:nowrap;}
.v43-tabs button.is-active{color:#442b16;background:linear-gradient(180deg,#ffe5a7,#dda959);border-color:#ffe3b4;}
.v43-card{margin:10px 0 13px;padding:12px 12px 14px;background:linear-gradient(180deg,#755139,#61412d);border:2px solid #af8158;border-radius:13px;box-shadow:inset 0 1px 0 #dbb78e50,0 2px 6px #45281b55;min-width:0;overflow-wrap:anywhere;}
.v43-card h3{font-size:clamp(17px,4.5vw,21px);margin:0 0 9px;color:#ffe4a9;text-shadow:0 1px 2px #3a1d0e;}
.v43-card p{font-size:13px;line-height:1.5;color:#f4dfc6;margin:8px 0;}
.v43-muted{font-size:12px!important;color:#e1c3a1!important;}
.v43-button,.v43-small-action{font-family:inherit;cursor:pointer;display:inline-block;max-width:100%;border:1px solid #d7ab70;border-radius:9px;padding:8px 12px;background:linear-gradient(#825333,#59381f);color:#fff3d7;font-size:12px;line-height:1.2;font-weight:800;box-shadow:inset 0 1px 1px #f4c89144,0 2px 3px #30170f70;white-space:normal;}
.v43-button.v43-primary{background:linear-gradient(#79b641,#427f29);border-color:#b2df89;color:#fff;min-height:38px;}
.v43-button.v43-danger,.v43-small-action.v43-danger{background:linear-gradient(#8d5447,#65382d);border-color:#da9d8a;}
.v43-button:disabled,.v43-small-action:disabled{opacity:.5;cursor:not-allowed;}
.v43-button:focus-visible,.v43-small-action:focus-visible,.v43-tabs button:focus-visible,.v43-player:focus-visible{outline:2px solid #ffebac;outline-offset:2px;}
.v43-form{display:grid;gap:8px;margin-top:12px;}
.v43-form label{font-size:12px;display:grid;gap:6px;color:#fce6c2;font-weight:700;}
.v43-form input,.v43-form textarea,.v43-form select{display:block;min-width:0;width:100%;border-radius:9px;border:1px solid #caa275;background:#fff2df;color:#462916;padding:10px;font-family:inherit;font-size:14px;line-height:1.4;box-shadow:inset 0 1px 2px #5b351533;}
.v43-form textarea{resize:vertical;min-height:62px;}
.v43-list{display:grid;gap:8px;}
.v43-list-card{display:flex;align-items:center;gap:8px;background:#4e301f8f;border:1px solid #b78c61;border-radius:10px;padding:9px 7px;min-width:0;}
.v43-rank{flex:0 0 28px;color:#ffe7aa;font-size:18px;font-weight:900;text-align:center;}
.v43-list-info{display:grid;gap:2px;flex:1;min-width:0;overflow-wrap:anywhere;}
.v43-list-info strong{color:#ffdfab;font-size:14px;}
.v43-list-info small{color:#d7bca2;font-size:11px;}
.v43-micro{color:#ffe7b8;font-size:11px;margin-top:3px;}
.v43-list-card .v43-join{flex:0 0 auto;padding:7px;font-size:11px;max-width:100px;}
.v43-progress{height:13px;border:1px solid #bb8b51;border-radius:99px;background:#39251a;overflow:hidden;box-shadow:inset 0 2px 3px #10070077;}
.v43-progress>span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#91bc40,#f0d160);}
.v43-trophies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
.v43-trophies>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;filter:grayscale(1);opacity:.65;background:#4e321f;border:1px solid #76553b;border-radius:9px;padding:8px 4px;}
.v43-trophies>div.is-earned{filter:none;opacity:1;border-color:#daba76;}
.v43-trophies span{font-size:29px;}
.v43-trophies b{font-size:11px;color:#ffe9bd;}
.v43-trophies small{font-size:10px;color:#ddc19d;}
.v43-small-member,.v43-member{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 2px;border-bottom:1px solid #b892634f;}
.v43-small-member b{color:#ffe4b5;}.v43-small-member span{font-size:11px;color:#e9cda5;}
.v43-member>div:first-child{min-width:0;display:grid;gap:4px;}
.v43-member>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;}
.v43-member b{color:#ffe6c4;font-size:13px;}
.v43-member small{color:#d8bda2;font-size:11px;}
.v43-player{background:none;border:0;color:#ffe9c4;text-align:left;padding:0;font-size:14px;font-weight:850;cursor:pointer;overflow-wrap:anywhere;}
.v43-small-action{font-size:10px;padding:5px 7px;}
.v43-chat-list{display:flex;flex-direction:column;gap:8px;max-height:380px;overflow-y:auto;overscroll-behavior:contain;margin:8px 0;padding:3px;}
.v43-chat-row{border:1px solid #b98f65;border-radius:9px;padding:8px 10px;background:#553721;overflow-wrap:anywhere;}
.v43-chat-row>div{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.v43-chat-row b{color:#ffe1ab;font-size:13px;}
.v43-chat-row time{font-size:10px;color:#dab997;}
.v43-chat-row p{margin:6px 0 0;white-space:pre-wrap;color:#fff2db;font-size:13px;}
.v43-chat-compose{grid-template-columns:minmax(0,1fr) auto;align-items:end;}
.v43-chat-compose textarea{min-height:60px;}
.v43-reload{margin-top:6px;font-size:10px;padding:5px 8px;}
.v43-bank{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e0b36f;border-radius:10px;padding:18px 8px;background:radial-gradient(ellipse at center,#906634,#634329);font-size:22px;}
.v43-bank strong{font-size:26px;color:#ffdc75;}.v43-bank span{font-size:13px;color:#f7dfb2;}
.v43-donations>div{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;padding:8px 0;border-bottom:1px solid #d1a87844;font-size:12px;}
.v43-donations span{color:#e7d68d;font-weight:900;}.v43-donations small{color:#e1bea4;}
.v43-topics{display:grid;gap:6px;}
.v43-topic{text-align:left;background:#553620;border:1px solid #b38859;border-radius:8px;padding:9px;color:#ffe2b3;cursor:pointer;display:grid;gap:4px;}
.v43-topic small{font-size:11px;color:#e5bd95;}
.v43-posts{display:grid;gap:8px;max-height:360px;overflow-y:auto;}
.v43-post{background:#553620;border:1px solid #b38859;border-radius:8px;padding:10px;}
.v43-post b{font-size:13px;color:#ffe4b8;}.v43-post small{font-size:10px;margin-left:8px;color:#d9bc97;}.v43-post p{white-space:pre-wrap;}
.v43-requests>article{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #aa855b8c;}
.v43-requests>article>div:first-child{display:grid;gap:3px;min-width:0;}.v43-requests>article small{color:#d9b993;font-size:11px;}
.v43-requests>article>div:last-child{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;}
.v43-requests .v43-button{padding:6px;font-size:11px;}
.v43-footer{margin:15px 0 5px;text-align:center;}
@media(max-width:430px){
 .v43-groups{padding:7px 3px 15px;}
 .v43-card{padding:11px 9px;}
 .v43-head h2{font-size:24px;}
 .v43-list-card{flex-wrap:wrap;}
 .v43-list-info{flex-basis:calc(100% - 42px);}
 .v43-list-card .v43-join{margin-left:auto;max-width:none;}
 .v43-chat-compose{grid-template-columns:minmax(0,1fr) 85px;}
 .v43-chat-compose .v43-button{padding:8px 5px;}
 .v43-overview-metrics span{font-size:10px;}
 .v43-trophies span{font-size:24px;}
}

/* V42.10.1: тематические направления колхозов */
.v43-tabs .v44-icon,.v43-card h3 .v44-icon{width:23px;height:23px;vertical-align:middle;object-fit:contain;filter:drop-shadow(0 1px 1px #281606);margin-right:3px;}
.v43-card h3 .v44-icon{width:31px;height:31px;margin-right:6px;}
.v44-statline{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;margin:12px 0 8px;font-size:12px;font-weight:800;color:#ffe7ab;}
.v44-crop{font-size:19px!important;font-weight:900;color:#fff2d1!important;margin:9px 0 3px!important;}
.v44-stock{display:inline-flex;margin:2px 0 11px;font-size:12px;color:#f3d5b2;gap:5px;}
.v44-action-form{max-width:340px;}
.v44-action-form input{max-width:140px;}
.v44-good{color:#d5ffa3!important;font-weight:800;}
.v44-shop{display:grid;gap:8px;margin-top:15px;}
.v44-shop-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;background:#50311f99;border:1px solid #b88c5b;border-radius:10px;padding:10px 8px;}
.v44-shop-icon{font-size:26px;}
.v44-shop-details{min-width:0;display:grid;gap:3px;}
.v44-shop-details b{font-size:13px;color:#ffe6bb;}
.v44-shop-details small{font-size:11px;color:#d9bc94;line-height:1.35;}
.v44-shop-item .v43-button{padding:8px 10px;min-width:64px;white-space:normal;}
.v44-events>div{display:grid;gap:2px;padding:8px 0;border-bottom:1px solid #c199684e;font-size:12px;}
.v44-events b{color:#ffe1a1;}.v44-events span{color:#f4ddc1;}.v44-events small{color:#d5af86;}
@media(max-width:385px){.v44-shop-item{grid-template-columns:28px minmax(0,1fr);}.v44-shop-item .v43-button{grid-column:2;justify-self:start;}.v44-shop-icon{font-size:23px;}}

.v44-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.v44-tiles button{min-width:0;display:flex;align-items:center;gap:8px;border:1px solid #c19762;border-radius:10px;background:linear-gradient(#805332,#573820);color:#ffe6bd;padding:10px 8px;cursor:pointer;text-align:left;font-family:inherit;font-size:12px;}
.v44-tiles button b{font-weight:850;overflow-wrap:anywhere;}
.v44-tiles button .v44-icon{width:37px;height:37px;flex:0 0 37px;}
.v44-tiles button:focus-visible{outline:2px solid #ffe5a8;outline-offset:2px;}
@media(max-width:375px){.v44-tiles{gap:6px}.v44-tiles button{padding:8px 5px;gap:5px;font-size:11px}.v44-tiles button .v44-icon{width:28px;height:28px;flex-basis:28px}}

/* ==========================================================
   V42.10.2 — сверхтонкая радиопанель над полосой опыта.
   Две одинаковые кнопки на всю ширину, высота только 25px.
   Не находится внутри #screen и не пересоздаётся при навигации.
   ========================================================== */
#game > .v45-radio-bar{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  box-sizing:border-box;
  order:-4!important;
  width:min(100vw,670px)!important;
  height:25px!important;
  min-height:25px!important;
  max-height:25px!important;
  padding:0!important;
  margin:2px 0 1px!important;
  margin-left:calc((100% - min(100vw,670px))/2)!important;
  gap:0!important;
  overflow:hidden;
  border:1px solid #b78a54;
  border-radius:4px;
  background:linear-gradient(180deg,#815333,#56331e);
  box-shadow:inset 0 1px 0 #cda77455;
}
#game > .v45-radio-bar[hidden]{display:none!important;}
#game > .v45-radio-bar > button{
  display:grid!important;
  place-items:center;
  box-sizing:border-box;
  width:100%!important;
  height:23px!important;
  min-height:23px!important;
  max-height:23px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-right:1px solid #c69c6c88!important;
  border-radius:0!important;
  background:transparent!important;
  color:#fff0ca!important;
  font:800 14px/1 system-ui,sans-serif!important;
  text-shadow:0 1px 1px #382018!important;
  box-shadow:none!important;
  touch-action:manipulation;
}
#game > .v45-radio-bar > button:last-child{border-right:0!important;}
#game > .v45-radio-bar > button:active{background:#e8c18a44!important;}
#game > .v45-radio-bar > button:focus-visible{outline:2px solid #fff2bf!important;outline-offset:-2px;}
#game > .v45-radio-bar > button.is-playing{color:#d9ffa7!important;}
#game > .v45-radio-bar > button.is-loading{color:#ffe7a4!important;}

/* V42.10.4: продажа животных — отдельное действие без перемещения кнопок кормления. */
#game .v42-animal-sell,
#game .v35-pen .v42-animal-sell,
#game .v40-animal-card .v42-animal-sell{
  color:#fff5df;
  background:linear-gradient(180deg,#85563b,#63402c);
  border:1px solid #b68d6e;
  border-radius:8px;
  font-size:11px;
  min-height:32px;
  padding:6px 8px;
  white-space:normal;
}
#game .v42-animal-sell:focus-visible{outline:2px solid #ffe4a1;outline-offset:2px;}
#game .v35-pen-commands .v42-animal-sell{flex:1 1 100%;}
#game .v40-animal-card .v42-animal-sell{width:100%;}

/* V42.10.4 — заметный вход в каталог V40 отдельно от обычных загонов. */
.v40-animals-entry{
  display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;
  margin:12px 0 17px;padding:12px 15px;
  background:linear-gradient(160deg,#95683b,#704726 74%,#603a20);
  border:2px solid #d4ab72;border-radius:12px;
  color:#ffefce;text-align:left;cursor:pointer;
  box-shadow:inset 0 0 0 2px #5e361e,0 3px 7px #4b2a1640;
  font:inherit;text-shadow:0 1px 2px #2b160e;
}
.v40-animals-entry>span:first-child{font-size:28px;flex-shrink:0}
.v40-animals-entry>span:nth-child(2){display:grid;gap:3px;flex:1;min-width:0}
.v40-animals-entry strong{font-size:17px}
.v40-animals-entry small{font-size:11px;color:#f8d8ab;line-height:1.35}
.v40-animals-entry>span:last-child{font-size:25px;color:#ffdb8d}
.v40-animals-entry:focus-visible,.v40-animals-back:focus-visible{outline:2px solid #ffe6aa;outline-offset:3px}
.v40-animals-view{max-width:100%;margin:10px auto 90px}
.v40-animals-back{display:inline-block;margin:0 0 12px;padding:10px 14px;color:#fff1dc;background:#68442a;border:1px solid #be9462;border-radius:9px;cursor:pointer;font-weight:700}
.v40-animals-view .v40-add-animals{margin:0;max-width:100%}
.v40-animals-view .v40-animal-grid{max-height:none;overflow:visible;}
.v40-animals-view .v40-animal-card{box-sizing:border-box}
.v40-animals-error{color:#fff3df}
.v40-animals-error code{font-size:12px;background:#5f3b23;padding:1px 4px;border-radius:4px}
@media(max-width:420px){.v40-animals-entry{padding:10px 11px;gap:8px}.v40-animals-entry strong{font-size:15px}}

/* V42.10.5 — expanded animal selection inside the original stable pen modal. */
#screen .v42-pen-search{display:block;margin:8px 0 6px;}
#screen .v42-pen-search input{box-sizing:border-box;width:100%;background:#fef6e9;color:#533014;border:2px solid #d5ac77;border-radius:10px;padding:10px 12px;font-size:14px;}
#screen .v42-pen-hint{font-size:11px;color:#e9ca9b;margin:0 0 8px;line-height:1.35;}
#screen .v42-pen-picker{max-height:min(60dvh,600px);overflow-y:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin;}
#screen .v42-pen-option{min-width:0;gap:4px;padding:7px 5px;}
#screen .v42-pen-option .animal-option-picture{height:72px;}
#screen .v42-pen-option .animal-option-picture img{max-height:70px;}
#screen .v42-v40-animal-emoji{font-size:53px;line-height:1;filter:drop-shadow(1px 3px 2px #56301b60);}
#screen .v42-pen-option b{font-size:13px;line-height:1.15;}
#screen .v42-pen-option small{font-size:11px;line-height:1.2;text-align:center;}
#screen .v42-pen-option .v42-pen-level{font-size:10px;font-weight:500;color:#896344;}
#screen .v42-pen-option:disabled{opacity:.55;filter:grayscale(.35);cursor:not-allowed;}
#screen .v42-pen-option[hidden]{display:none!important;}
#screen .v35-pen-animal .v42-v40-animal-emoji{font-size:64px;}
#screen .v42-pen-wait{font-size:11px;color:#614122;}


/* V42.10.6: animal chooser uses ONE independently scrollable list; no nested
   modal scrolling. Last two V40 animals always have bottom breathing space. */
#screen .plant-overlay.v42-pen-overlay {
  box-sizing:border-box;
  padding:12px!important;
  align-items:center;
  justify-content:center;
}
#screen .plant-overlay .plant-modal.v42-pen-modal {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  height:min(620px,calc(100vh - 32px))!important;
  height:min(620px,calc(100dvh - 32px))!important;
  max-height:calc(100dvh - 32px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
#screen .v42-pen-modal h3,
#screen .v42-pen-modal .v42-pen-search,
#screen .v42-pen-modal .v42-pen-hint {
  flex:0 0 auto!important;
}
#screen .v42-pen-modal .v42-pen-picker {
  box-sizing:border-box!important;
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  min-width:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  align-content:start!important;
  grid-auto-rows:max-content!important;
  padding:4px 4px max(26px,env(safe-area-inset-bottom))!important;
  scroll-padding-bottom:26px;
}
#screen .v42-pen-modal .v42-pen-option{height:auto!important;min-height:148px!important;}

/* V42.10.7 — авторские изображения всех 42 животных, золотая рамка и подпись
   входят в саму картинку. Показывать изображение целиком, НЕ обрезать фон. */
#screen .v42-pen-option{padding:3px 3px 7px!important;gap:2px!important;overflow:hidden;}
#screen .v42-pen-option .animal-option-picture{
  display:block;width:100%;height:auto!important;aspect-ratio:1 / 1;
  max-height:none!important;min-height:0!important;overflow:hidden;
  border-radius:13px;background:#f8deb0;
}
#screen .v42-pen-option .animal-option-picture .v42-animal-card-art{
  display:block;width:100%;height:100%;max-width:100%;max-height:none!important;
  object-fit:contain;object-position:center;
}
#screen .v42-pen-option:disabled{opacity:.78!important;filter:none!important;}
#screen .v42-pen-option .v42-pen-hidden-name,
#screen .v40-animal-card .v42-pen-hidden-name{
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;
  border:0!important;
}
#screen .v42-pen-option .v42-pen-level{margin-bottom:1px;}
/* Занятый загон: вместо травяной рамки показываем всю карточку с золотым краем. */
#game .v35-pen-picture.v42-picture-has-card,
#screen .v35-pen-picture.v42-picture-has-card{
  box-sizing:border-box;aspect-ratio:1 / 1;height:auto!important;
  width:100%;padding:0;border:0;background:#f5d6a3;
  border-radius:17px;overflow:hidden;
}
#game .v35-pen-picture.v42-picture-has-card::before,
#game .v35-pen-picture.v42-picture-has-card::after,
#screen .v35-pen-picture.v42-picture-has-card::before,
#screen .v35-pen-picture.v42-picture-has-card::after{display:none!important;}
#game .v35-pen-picture.v42-picture-has-card .v35-pen-animal,
#screen .v35-pen-picture.v42-picture-has-card .v35-pen-animal{
  display:block;width:100%;height:100%;max-width:none;max-height:none;line-height:0;
}
#game .v35-pen-picture.v42-picture-has-card .v42-animal-card-art,
#screen .v35-pen-picture.v42-picture-has-card .v42-animal-card-art{
  width:100%;height:100%;max-width:none;max-height:none;
  object-fit:contain;object-position:center;display:block;
  filter:none;transform:none;
}
#game .v35-pen-picture.v42-picture-has-card .v35-pen-no,
#screen .v35-pen-picture.v42-picture-has-card .v35-pen-no{
  top:5px;left:6px;font-size:10px;background:#573318ed;
}
/* Не повторяем под фотографией название, напечатанное на самой карточке. */
#screen .v35-pen:has(.v42-picture-has-card)>b{display:none;}
#screen .v40-animal-card .v42-v40-title{display:block;line-height:0;}
#screen .v40-animal-card .v42-v40-title .v42-animal-card-art{
  display:block;width:100%;height:auto;aspect-ratio:1/1;
  object-fit:contain;border-radius:14px;
}

/* ===== V42.10.8: Tёплая земля и луговая трава у кромок огорода =====
   Только раздел грядок; не влияет на загоны, карту и питомцев. */
#game .v35-garden .v31-garden-scroll{
  background:#7b4c2f!important;
  border:3px solid #b37a46!important;
  border-radius:16px!important;
  box-shadow:inset 0 0 0 2px rgba(241,197,128,.36),
             inset 0 0 12px rgba(45,25,10,.32),
             0 5px 13px rgba(53,30,13,.25)!important;
}
#game .v35-garden .v31-garden-board{
  background-color:#855532!important;
  background-image:url('v42_garden_earth.svg')!important;
  background-position:center top!important;
  background-repeat:repeat-y!important;
  background-size:100% 560px!important;
}
#game .v35-garden .v31-garden-grass{display:none!important;}
#game .v35-garden .v31-garden-svg{z-index:1;}
@media(max-width:600px){
  #game .v35-garden .v31-garden-scroll{
    box-sizing:border-box;
    border:2px solid #a87545!important;
    overflow:visible!important;
  }
  /* Wider sides expose grass while keeping the existing bed positions/hit areas. */
  #game .v35-garden .v31-garden-board{
    aspect-ratio:412 / var(--v34-mobile-h,1132)!important;
    border-radius:14px!important;
  }
}


/* V42.10.9 — Единый стиль занятых загонов: тёплая карамель,
   без старой травяной/деревянной рамки вокруг готовой картинки животного. */
#game #screen .v35-pen.v42-pen-occupied{
  box-sizing:border-box;
  padding:8px 8px 12px;
  gap:7px;
  border:2px solid #a8733f;
  border-radius:20px;
  background:
    repeating-linear-gradient(167deg,rgba(255,250,223,.055) 0 2px, transparent 2px 11px),
    linear-gradient(180deg,#ae7a4b 0%,#d5ad79 17%,#f3dcac 48%,#e3c18f 75%,#c89759 100%);
  box-shadow:inset 0 0 0 2px rgba(255,239,202,.66),
             0 3px 0 #86532d,0 7px 13px rgba(53,29,15,.28);
}
#game #screen .v35-pen.v42-pen-occupied>.v35-pen-picture.v42-picture-has-card{
  box-sizing:border-box!important;
  display:block!important;
  position:relative!important;
  margin:0!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  overflow:hidden!important;
  padding:0!important;
  border:0!important;
  border-radius:15px!important;
  background:#efd09c!important;
  background-image:none!important;
  box-shadow:0 2px 6px rgba(67,37,16,.22)!important;
  isolation:isolate;
}
#game #screen .v35-pen.v42-pen-occupied>.v35-pen-picture::before,
#game #screen .v35-pen.v42-pen-occupied>.v35-pen-picture::after{content:none!important;display:none!important;}
#game #screen .v35-pen.v42-pen-occupied .v35-pen-animal{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  font-size:0!important;
  line-height:0!important;
}
#game #screen .v35-pen.v42-pen-occupied .v42-animal-card-art{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:fill!important;
  object-position:center!important;
  display:block!important;
  filter:none!important;
  transform:none!important;
}
#game #screen .v35-pen.v42-pen-occupied .v35-pen-no{
  top:6px!important;left:7px!important;
  color:#fff1d5;
  border:1px solid rgba(246,215,163,.72);
  background:rgba(86,49,25,.88);
  border-radius:9px;
}
#game #screen .v35-pen.v42-pen-occupied>.v35-pen-commands{
  box-sizing:border-box;
  width:100%;
  margin:0;
  padding:8px 5px 7px;
  gap:6px;
  border-radius:12px;
  background:linear-gradient(180deg,rgba(255,244,213,.62),rgba(250,220,174,.47));
  border:1px solid rgba(164,115,67,.31);
}
#game #screen .v35-pen.v42-pen-occupied .v35-pen-commands .action-button{max-width:100%;}
#game #screen .v35-pen.v42-pen-occupied .v35-pen-commands .v42-animal-sell{width:100%;}
@media(max-width:600px){
  #game #screen .v35-pen.v42-pen-occupied{padding:6px 6px 10px;gap:6px;border-radius:18px;}
  #game #screen .v35-pen.v42-pen-occupied>.v35-pen-picture{border-radius:13px!important;}
  #game #screen .v35-pen.v42-pen-occupied>.v35-pen-commands{padding:6px 3px;gap:5px;}
}


/* V42.10.10: животные без золотой рамки, изображения с мягким белым краем.
   Фон картинки и самой ячейки белые, поэтому за контуром животного
   больше не торчат старые голубые, зелёные и золотистые фрагменты. */
#screen .v42-pen-picker .v42-pen-option {
  background:#ffffff!important;
  border:1px solid #e3d7c8!important;
  border-radius:17px!important;
  box-shadow:0 2px 5px rgba(37,20,7,.11)!important;
  overflow:hidden!important;
}
#screen .v42-pen-option .animal-option-picture {
  background:#ffffff!important;
  border:none!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:hidden!important;
}
#screen .v42-pen-option .animal-option-picture .v42-animal-card-art {
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:#ffffff!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
}
#game #screen .v35-pen.v42-pen-occupied>.v35-pen-picture.v42-picture-has-card {
  background:#ffffff!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:14px!important;
}
#game #screen .v35-pen.v42-pen-occupied .v42-animal-card-art {
  background:#ffffff!important;
  object-fit:contain!important;
  border:0!important;
  box-shadow:none!important;
}
#screen .v40-animal-card .v42-v40-title {
  background:#ffffff;
  border-radius:12px;
  overflow:hidden;
}
#screen .v40-animal-card .v42-v40-title .v42-animal-card-art {
  border-radius:0!important;
  background:#ffffff!important;
  box-shadow:none!important;
}

/* ================== V42.10.11 — Мини-игра / 2,5D замок ================== */
/* Та же деревянная рамка, что у главных разделов, без дополнительных кнопок. */
#screen .v35-major.v46-minigame-link{
  background-image:url('menu-wood-v32.webp')!important;
  background-size:100% 100%!important;
  background-position:center!important;
  background-color:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#screen .v46-castle-menu-icon{
  display:block;width:49px;height:47px;object-fit:contain;
  filter:drop-shadow(0 2px 2px #2817089c);
}
#screen .v46-minigame-scene{width:100%;max-width:1120px;margin:0 auto;padding:5px 8px 60px;box-sizing:border-box;}
#screen .v46-scene-title{
  margin:5px auto 10px;display:flex;align-items:center;justify-content:center;
  width:max-content;max-width:95%;min-width:175px;min-height:51px;padding:8px 26px;
  color:#ffeacc;font-size:clamp(19px,4.4vw,26px);font-weight:900;text-shadow:0 2px 3px #2b1106;
  box-sizing:border-box;background:url('menu-wood-v32.webp') center/100% 100% no-repeat;
}
#screen .v46-mini-world{
  position:relative;isolation:isolate;box-sizing:border-box;
  width:100%;min-height:clamp(490px,71dvh,780px);
  border:2px solid #86532f;border-radius:23px;
  overflow:hidden;display:flex;align-items:flex-end;justify-content:center;
  padding:80px 10px 30px;
  background-image:
    radial-gradient(ellipse 77% 45% at 50% 78%,rgba(225,180,117,.24),transparent 84%),
    linear-gradient(180deg,rgba(61,30,11,.12),rgba(95,51,23,.07) 55%,rgba(49,27,11,.15)),
    url('v42_garden_earth.svg');
  background-position:center,center,center;
  background-size:auto,auto,100% auto;
  background-repeat:no-repeat,no-repeat,repeat-y;
  box-shadow:inset 0 2px 12px #3c210c75,0 7px 22px #44240624;
}
#screen .v46-mini-world:before{
  content:"";pointer-events:none;position:absolute;inset:0;
  background:radial-gradient(ellipse 48% 30% at 50% 80%,rgba(255,206,129,.12),transparent 100%);
  z-index:0;
}
#screen .v46-castle-island{
  position:absolute;bottom:4.8%;left:50%;width:min(64%,460px);height:12%;
  transform:translateX(-50%);border-radius:50%;filter:blur(8px);
  background:radial-gradient(ellipse,#29180ed6 0%,#3b241f91 49%,transparent 75%);z-index:0;
}
#screen .v46-castle-art{
  width:min(96%,650px);max-height:660px;aspect-ratio:1312/1199;
  position:relative;display:block;flex:0 1 auto;z-index:1;
  user-select:none;filter:drop-shadow(0 16px 12px #331b0e52);
}
#screen .v46-castle-render{display:block;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none;}
/* Fire is placed inside the two unobstructed windows of the open bell tower,
   avoiding the central stone pillar. Coordinates match the 1312x1199 render. */
#screen .v46-fire-window{
  position:absolute;top:37.4%;height:9.7%;width:6.9%;z-index:2;
  pointer-events:none;overflow:hidden;mix-blend-mode:screen;
}
#screen .v46-fire-left{left:41.5%;clip-path:polygon(0 8%,100% 18%,100% 100%,0 96%);}
#screen .v46-fire-right{left:53.4%;clip-path:polygon(0 17%,100% 7%,100% 100%,0 96%);}
#screen .v46-fire-glow{
  position:absolute;inset:10% -20% -15%;border-radius:50%;
  background:radial-gradient(ellipse at 50% 82%,#ffeebd8c 0%,#ffb22599 31%,#e752164a 60%,transparent 84%);
  animation:v46-fire-glimmer 0.63s ease-in-out infinite alternate;
}
#screen .v46-fire-flame{
  position:absolute;bottom:14%;border-radius:49% 48% 35% 37%;
  transform-origin:50% 96%;opacity:.94;
  clip-path:polygon(50% 0,68% 24%,79% 48%,100% 80%,77% 100%,20% 100%,0% 82%,21% 55%,22% 37%);
  background:radial-gradient(ellipse at 48% 73%,#fff8c4 1%,#ffe46a 18%,#ffae16 47%,#f7620e 72%,#e62d0c88 89%,transparent 100%);
}
#screen .v46-flame-back{width:74%;height:68%;left:8%;filter:blur(.45px);opacity:.72;animation:v46-fire-dance 0.95s ease-in-out infinite alternate-reverse;}
#screen .v46-flame-main{width:57%;height:75%;left:25%;animation:v46-fire-dance 0.57s ease-in-out infinite alternate;}
#screen .v46-flame-small{width:45%;height:49%;left:4%;animation:v46-fire-dance 0.73s ease-in-out -.25s infinite alternate-reverse;}
#screen .v46-fire-core{
  position:absolute;bottom:12%;left:11%;width:82%;height:30%;border-radius:50%;
  background:radial-gradient(ellipse at center,#fff5ce 4%,#ffc444 39%,#fa7f1a99 68%,transparent 90%);
  filter:blur(.4px);animation:v46-fire-glimmer .31s ease-in-out infinite alternate-reverse;
}
#screen .v46-fire-spark{
  position:absolute;bottom:26%;width:5%;height:5%;border-radius:50%;
  background:#ffe8a0;box-shadow:0 0 4px #ffb148;
  animation:v46-fire-rise 1.4s linear infinite;
}
#screen .v46-spark-one{left:29%;animation-delay:-.2s;}
#screen .v46-spark-two{left:67%;animation-delay:-.85s;animation-duration:1.1s;}
#screen .v46-spark-three{left:48%;animation-delay:-1.4s;animation-duration:1.7s;}
@keyframes v46-fire-dance{
  0%{transform:scale(.76,.86) rotate(-10deg) skewX(-3deg);filter:brightness(.88);}
  35%{transform:scale(1.01,.98) rotate(5deg) skewX(4deg);filter:brightness(1.15);}
  70%{transform:scale(.89,1.12) rotate(-4deg) skewX(-3deg);filter:brightness(.95);}
  100%{transform:scale(1.14,.91) rotate(12deg) skewX(2deg);filter:brightness(1.3);}
}
@keyframes v46-fire-glimmer{0%{opacity:.46;transform:scale(.84)}100%{opacity:1;transform:scale(1.16)}}
@keyframes v46-fire-rise{0%{opacity:0;transform:translate(0,0) scale(.65)}20%{opacity:.9}70%{opacity:.53}100%{opacity:0;transform:translate(3px,-58px) scale(.28)}}
@media(max-width:530px){
 #screen .v46-mini-world{min-height:clamp(455px,68dvh,730px);padding:60px 3px 23px;border-radius:17px;}
 #screen .v46-castle-art{width:99%;}
 #screen .v46-scene-title{margin-bottom:6px;min-height:46px;}
 #screen .v46-minigame-link .v46-castle-menu-icon{width:43px;height:43px;}
}
@media(prefers-reduced-motion:reduce){
 #screen .v46-fire-window *,#screen .v46-fire-window{animation:none!important;}
}
/* ================== END V42.10.11 ================== */


/* ===== V42.10.22 — one wooden pen scene for empty and occupied pens ===== */
#game #screen .v35-pen>.v35-pen-picture,
#screen .v35-pen>.v35-pen-picture {
  box-sizing:border-box!important;
  position:relative!important;
  display:block!important;
  aspect-ratio:1 / 1!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:15px!important;
  overflow:hidden!important;
  background-color:#c7975e!important;
  background-image:url('v42_pen_scene.webp?v=42.10.22')!important;
  background-size:100% 100%!important;
  background-position:center!important;
  box-shadow:0 2px 6px rgba(67,37,16,.22)!important;
  isolation:isolate;
}
/* Remove the old green placeholder and its wooden bars, including in empty pens. */
#game #screen .v35-pen>.v35-pen-picture::before,
#screen .v35-pen>.v35-pen-picture::before,
#game #screen .v35-pen:not(.v42-pen-occupied)>.v35-pen-picture::after,
#screen .v35-pen:not(.v42-pen-occupied)>.v35-pen-picture::after {
  content:none!important;display:none!important;
}
#game #screen .v35-pen.v42-pen-occupied>.v35-pen-picture.v42-picture-has-card {
  background-color:#c7975e!important;
  background-image:url('v42_pen_scene.webp?v=42.10.22')!important;
  background-size:100% 100%!important;
}
/* Animal cutout stands on the straw; it has alpha, not a white printed card. */
#game #screen .v35-pen.v42-pen-occupied .v35-pen-animal,
#screen .v35-pen.v42-pen-occupied .v35-pen-animal {
  position:absolute!important;top:15%!important;left:8%!important;
  width:84%!important;height:65%!important;
  max-width:none!important;max-height:none!important;
  display:flex!important;align-items:flex-end!important;justify-content:center!important;
  z-index:2!important;pointer-events:none!important;
}
#game #screen .v35-pen.v42-pen-occupied img.v42-pen-sprite,
#screen .v35-pen.v42-pen-occupied img.v42-pen-sprite {
  display:block!important;width:auto!important;height:auto!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  filter:drop-shadow(0 3px 2px rgba(61,39,19,.4))!important;
  transform:none!important;
}
/* The foreground gate masks the feet, placing the animal behind the fence. */
#game #screen .v35-pen.v42-pen-occupied>.v35-pen-picture.v42-picture-has-card::after,
#screen .v35-pen.v42-pen-occupied>.v35-pen-picture.v42-picture-has-card::after {
  content:""!important;display:block!important;position:absolute!important;
  inset:0!important;width:100%!important;height:100%!important;
  border:0!important;box-shadow:none!important;
  background:url('v42_pen_scene.webp?v=42.10.22') center / 100% 100% no-repeat!important;
  clip-path:inset(66% 0 0 0)!important;
  z-index:3!important;pointer-events:none!important;
}
#game #screen .v35-pen .v35-pen-no,
#screen .v35-pen .v35-pen-no { z-index:5!important; }
/* Animal names are now readable below the scene (not printed on a card). */
#screen .v35-pen:has(.v42-picture-has-card)>b {display:block!important;}
#screen .v35-pen .v35-pen-animal:empty {display:none!important;}
#screen .v35-buy-pen .v35-pen-animal {position:absolute;inset:0;display:grid;place-items:center;}
/* The number, actions, shop and all production timers remain unchanged. */
/* ===== END V42.10.22 ===== */


/* ===== ferma.lol V42.10.23 — icon controls within the pen scene ===== */
#game #screen .v42-pen-occupied>.v35-pen-picture .v42-pen-icon-actions {
  position:absolute!important;z-index:7!important;
  display:flex!important;flex-direction:row!important;
  justify-content:center!important;align-items:center!important;
  gap:clamp(3px,1vw,7px)!important;
  left:4%!important;right:4%!important;bottom:2.5%!important;
  min-height:35px!important;padding:3px 3px!important;
  box-sizing:border-box!important;
  background:linear-gradient(180deg,rgba(80,47,24,.12),rgba(66,38,22,.38));
  border-radius:11px!important;
  pointer-events:auto!important;
}
#game #screen .v42-pen-icon-actions .v42-pen-icon-btn {
  position:relative!important;display:grid!important;place-items:center!important;
  flex:1 1 0!important;min-width:0!important;max-width:54px!important;
  height:clamp(30px,6vw,40px)!important;min-height:0!important;
  border-radius:9px!important;border:1px solid rgba(253,227,169,.83)!important;
  background:linear-gradient(160deg,#815435,#51341e)!important;
  box-shadow:0 2px 1px rgba(35,21,11,.34)!important;
  color:white!important;padding:1px!important;
  cursor:pointer!important;touch-action:manipulation!important;
  font-size:clamp(17px,3.7vw,23px)!important;
  line-height:1!important;text-align:center!important;
}
#game #screen .v42-pen-icon-btn.is-ready {
  background:linear-gradient(#3d9669,#1d6545)!important;
  border-color:#e6efc4!important;
}
#game #screen .v42-pen-icon-btn.is-active {
  background:linear-gradient(#428dc0,#306486)!important;
}
#game #screen .v42-pen-icon-btn:disabled {
  background:linear-gradient(#bfa88b,#937a61)!important;
  border-color:#f1dfbe!important;
  opacity:.63!important;cursor:default!important;
  box-shadow:none!important;
}
#game #screen .v42-pen-icon-btn:focus-visible {outline:3px solid white!important;outline-offset:2px!important;}
#game #screen .v42-pen-icon-btn:active:not(:disabled) {transform:translateY(1px)!important;}
#game #screen .v42-pen-icon-count {
  position:absolute!important;top:-7px!important;right:-5px!important;
  display:grid!important;place-items:center!important;
  min-width:18px!important;height:18px!important;padding:0 3px!important;
  border-radius:9px!important;border:1px solid #ffeab3!important;
  background:#d88625!important;color:#fff!important;font-size:10px!important;
  font-weight:900!important;line-height:1!important;
}
#game #screen .v42-pen-occupied>.v35-pen-picture {overflow:visible!important;}
#game #screen .v42-pen-occupied .v35-pen-animal {pointer-events:none!important;}
#game #screen .v42-pen-occupied>.v35-pen-picture::after {pointer-events:none!important;}
#game #screen .v42-barn-header-actions {display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
#game #screen .v42-barn-manage-btn {
  background:linear-gradient(#a07145,#714525)!important;border:1px solid #d4ab70!important;
  color:#fff6dd!important;white-space:nowrap!important;
}
#game #screen .v42-barn-manage {max-width:830px;}
#game #screen .v42-barn-manage-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;}
#game #screen .v42-barn-manage-head h2{margin:0!important;}
#game #screen .v42-barn-manage-list {display:grid;gap:10px;margin:14px auto 20px;}
#game #screen .v42-barn-manage-item {
  box-sizing:border-box;min-width:0;display:grid;
  grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:12px;
  padding:9px 12px;border:2px solid #bc8a51;border-radius:14px;
  background:linear-gradient(#fff5df,#eacb96);box-shadow:0 3px 0 #936038;
}
#game #screen .v42-barn-manage-item img {
  display:block;width:72px;height:72px;max-width:100%;object-fit:contain;
  border-radius:11px;background:#fff7e8;
}
#game #screen .v42-barn-manage-about {display:grid;gap:5px;min-width:0;text-align:left;}
#game #screen .v42-barn-manage-about b{color:#5b3b24;font-size:16px;overflow-wrap:anywhere;}
#game #screen .v42-barn-manage-about small{color:#8e6441;line-height:1.4;font-size:11px;}
#game #screen .v42-barn-manage-item .v42-animal-sell{min-width:125px;min-height:39px;}
#game #screen .v42-barn-manage-empty {margin:15px;text-align:center;color:#744e2a;}
@media(max-width:600px){
  #game #screen .v42-barn-header-actions {width:100%;justify-content:space-between;}
  #game #screen .v42-barn-header-actions .action-button{font-size:12px!important;padding:7px 9px!important;}
  #game #screen .v42-barn-manage-item {grid-template-columns:56px minmax(0,1fr);gap:7px;padding:9px;}
  #game #screen .v42-barn-manage-item img{width:54px;height:54px;grid-row:1 / span 2;}
  #game #screen .v42-barn-manage-item .v42-animal-sell{grid-column:2;justify-self:stretch;min-width:0;}
  #game #screen .v42-pen-icon-actions .v42-pen-icon-btn{height:32px!important;}
}
/* ===== END V42.10.23 ===== */

/* V42.10.24: completely hide the action bar when no needs exist. */
#game #screen .v42-pen-occupied>.v35-pen-picture .v42-pen-icon-actions[hidden]{
  display:none!important;
}
/* Single icon is centered; multiple icons align in a row. */
#game #screen .v42-pen-occupied>.v35-pen-picture .v42-pen-icon-actions:not([hidden]){
  justify-content:center!important;
}


/* ===== V42.10.25 — empty-pen button is inside the image ===== */
#game #screen .v35-pen>.v35-pen-picture.v42-picture-empty,
#screen .v35-pen>.v35-pen-picture.v42-picture-empty {
  overflow:hidden!important;
}
#game #screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-actions,
#screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-actions {
  position:absolute!important;
  left:7%!important; right:7%!important; bottom:4%!important;
  z-index:7!important;
  display:flex!important; justify-content:center!important; align-items:center!important;
  pointer-events:auto!important;
}
#game #screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-btn,
#screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-btn {
  width:100%!important;
  min-height:34px!important;
  padding:8px 10px!important;
  border-radius:12px!important;
  border:1px solid rgba(255,241,206,.95)!important;
  background:linear-gradient(180deg,#3d9a67,#27724b)!important;
  color:#fffdf2!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.2!important;
  box-shadow:0 3px 0 rgba(51,92,45,.55), 0 5px 11px rgba(33,50,28,.25)!important;
  white-space:normal!important;
}
#game #screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-btn:active,
#screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-btn:active {
  transform:translateY(1px)!important;
}
#game #screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-btn:focus-visible,
#screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-btn:focus-visible {
  outline:3px solid #fff!important; outline-offset:2px!important;
}
#game #screen .v35-pen .v35-pen-commands,
#screen .v35-pen .v35-pen-commands {
  display:none!important;
}
@media(max-width:600px){
  #game #screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-actions,
  #screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-actions {
    left:6%!important; right:6%!important; bottom:3.5%!important;
  }
  #game #screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-btn,
  #screen .v35-pen>.v35-pen-picture.v42-picture-empty .v42-empty-pen-btn {
    min-height:32px!important; font-size:11px!important; padding:7px 8px!important;
  }
}
/* ===== END V42.10.25 ===== */

/* V42.10.26: the unowned pen's buy button sits inside its picture. */
#game #screen .v35-pen>.v35-pen-picture.v42-picture-buy,
#screen .v35-pen>.v35-pen-picture.v42-picture-buy {
  overflow:hidden!important;
  filter:none!important; /* Keep the buy button bright and readable. */
}
#game #screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-empty-pen-actions,
#screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-empty-pen-actions {
  position:absolute!important;z-index:7!important;left:7%!important;right:7%!important;bottom:4%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
#game #screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-buy-pen-btn,
#screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-buy-pen-btn {
  width:100%!important;min-height:34px!important;padding:8px 9px!important;
  border:1px solid #fff0bc!important;border-radius:12px!important;
  background:linear-gradient(#e69c34,#b96618)!important;color:#fff!important;
  box-shadow:0 3px 0 #834617,0 5px 9px #4e311b50!important;
  font-size:12px!important;font-weight:800!important;line-height:1.2!important;white-space:normal!important;
}
#game #screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-buy-pen-btn:disabled,
#screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-buy-pen-btn:disabled {
  opacity:.65!important;filter:grayscale(.35)!important;
  cursor:not-allowed!important;
}
@media(max-width:600px){
  #game #screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-empty-pen-actions,
  #screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-empty-pen-actions{left:6%!important;right:6%!important;bottom:3.5%!important;}
  #game #screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-buy-pen-btn,
  #screen .v35-buy-pen>.v35-pen-picture.v42-picture-buy .v42-buy-pen-btn{min-height:32px!important;font-size:11px!important;padding:7px 6px!important;}
}

/* V42.10.29: compact transparent currency sprites. */
#game .v42-inline-currency {display:inline-block!important;width:1.35em!important;height:1.35em!important;object-fit:contain!important;vertical-align:-.28em!important;max-width:none!important;max-height:1.35em!important;pointer-events:none!important;}
#game .wallet .v42-wallet-currency-icon {width:30px!important;height:30px!important;object-fit:contain!important;box-shadow:none!important;}
#game .farm-coin,#game .farm-diamond {object-fit:contain!important;box-shadow:none!important;}


/* ===== V42.10.30 — красивая строка опыта под новые иконки валют ===== */
#game > .v34-status.v41-status{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:42px!important;
  margin:4px 0 10px!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#game .v41-experience-bar{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  padding:3px 6px!important;
  overflow:hidden!important;
  border:1px solid #d7b07b!important;
  border-radius:14px!important;
  background:
    linear-gradient(180deg,rgba(255,236,198,.12),rgba(255,236,198,0) 24%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.03) 0 14px,rgba(0,0,0,.03) 14px 28px),
    linear-gradient(180deg,#9d6d43 0%,#7d4f31 52%,#5f371e 100%)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,244,219,.4),
    inset 0 -1px 0 rgba(74,39,19,.65),
    0 3px 0 #4c2d18,
    0 8px 18px rgba(51,29,16,.24)!important;
}
#game .v41-experience-fill{
  background:linear-gradient(180deg,#9df17f 0%,#72c85b 45%,#4c9b3e 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35), 0 0 12px rgba(139,233,113,.18)!important;
}
#game .v41-experience-bar::after{
  content:''!important;
  position:absolute!important;
  inset:3px!important;
  border-radius:11px!important;
  border:1px solid rgba(255,244,219,.12)!important;
  pointer-events:none!important;
}
#game > .v34-status.v41-status .v41-inline-wallet{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  width:100%!important;
  height:100%!important;
  padding:0 2px!important;
  flex-wrap:nowrap!important;
  overflow:visible!important;
}
#game > .v34-status.v41-status .v41-inline-wallet > .v31-coin-chip,
#game > .v34-status.v41-status .v41-inline-wallet > .diamond-wallet,
#game > .v34-status.v41-status .v41-inline-wallet > div{
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  flex:1 1 calc(50% - 4px)!important;
  min-width:0!important;
  max-width:calc(50% - 4px)!important;
  height:30px!important;
  min-height:30px!important;
  padding:0 10px!important;
  margin:0!important;
  border:1px solid rgba(255,239,205,.28)!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,rgba(53,97,49,.42),rgba(27,61,24,.44))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
  overflow:hidden!important;
}
#game > .v34-status.v41-status .v41-inline-wallet > div > small,
#game > .v34-status.v41-status .v41-inline-wallet > .diamond-wallet > small{
  display:none!important;
}
#game .wallet .v42-wallet-currency-icon,
#game > .v34-status.v41-status .v41-inline-wallet > div > span,
#game > .v34-status.v41-status .v41-inline-wallet > div > svg,
#game > .v34-status.v41-status .v41-inline-wallet > div > img{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  flex:0 0 18px!important;
  line-height:1!important;
  object-fit:contain!important;
  box-shadow:none!important;
}
#game > .v34-status.v41-status .v41-inline-wallet > div > b{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  color:#fff9ef!important;
  font-size:clamp(12px,2.8vw,16px)!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.2px!important;
  font-variant-numeric:tabular-nums!important;
  text-shadow:0 1px 2px rgba(35,20,10,.9)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:520px){
  #game .v41-experience-bar{height:40px!important;min-height:40px!important;padding:3px 5px!important;}
  #game > .v34-status.v41-status .v41-inline-wallet{gap:6px!important;}
  #game > .v34-status.v41-status .v41-inline-wallet > .v31-coin-chip,
  #game > .v34-status.v41-status .v41-inline-wallet > .diamond-wallet,
  #game > .v34-status.v41-status .v41-inline-wallet > div{padding:0 8px!important;height:28px!important;min-height:28px!important;gap:5px!important;}
  #game .wallet .v42-wallet-currency-icon,
  #game > .v34-status.v41-status .v41-inline-wallet > div > span,
  #game > .v34-status.v41-status .v41-inline-wallet > div > svg,
  #game > .v34-status.v41-status .v41-inline-wallet > div > img{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;flex-basis:16px!important;}
  #game > .v34-status.v41-status .v41-inline-wallet > div > b{font-size:clamp(11px,3.1vw,14px)!important;}
}
@media(max-width:380px){
  #game .v41-experience-bar{height:38px!important;min-height:38px!important;}
  #game > .v34-status.v41-status .v41-inline-wallet{gap:5px!important;}
  #game > .v34-status.v41-status .v41-inline-wallet > .v31-coin-chip,
  #game > .v34-status.v41-status .v41-inline-wallet > .diamond-wallet,
  #game > .v34-status.v41-status .v41-inline-wallet > div{padding:0 7px!important;gap:4px!important;}
  #game > .v34-status.v41-status .v41-inline-wallet > div > b{font-size:11px!important;}
}
/* ===== END V42.10.30 ===== */


/* ===== V42.10.31: reference wooden header and full-width level bar ===== */
header.top.v31-top.v42-ref-header{
 display:grid!important;grid-template-columns:minmax(140px,1fr) auto minmax(0,1.2fr)!important;
 align-items:center!important;gap:10px!important;
 width:100%!important;min-height:72px!important;margin:0 0 6px!important;padding:12px 16px!important;
 border-radius:0 0 12px 12px!important;border:1px solid #b58047!important;
 background:repeating-linear-gradient(0deg,transparent 0 13px,rgba(31,14,4,.09) 14px 16px),linear-gradient(180deg,#86502a,#66351b 47%,#47220e)!important;
 box-shadow:inset 0 2px rgba(255,216,144,.25),inset 0 -4px rgba(31,12,3,.38),0 4px 12px #24100699!important;
 color:#fff2d4!important;
}
.v42-ref-header .v42-ref-brand{display:flex;align-items:center;gap:8px;min-width:0}
.v42-ref-header .v42-ref-mill{font-size:33px;line-height:1;filter:drop-shadow(0 2px 2px #31170c)}
.v42-ref-header .v31-build{font-size:clamp(10px,1.2vw,14px)!important;color:#fff3db!important;text-shadow:0 2px 2px #291308;white-space:nowrap}
.v42-ref-header .v31-build::after{content:none!important}
.v42-ref-header .v42-ref-title{
 box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:5px;
 padding:9px 18px;min-width:0;max-width:100%;white-space:nowrap;
 border:3px solid #b97836;border-radius:16px;
 color:#fff7e5;font-size:clamp(15px,2vw,23px);font-weight:950;text-shadow:0 2px 2px #3d200e;
 background:repeating-linear-gradient(0deg,rgba(19,8,1,.05) 0 7px,rgba(255,215,142,.06) 8px 10px),linear-gradient(#985c30,#68361c 67%,#52290f);
 box-shadow:inset 0 2px 0 #e5ae65,inset 0 -2px #3d210f,0 4px 5px #2a130d66;
}
.v42-ref-header .v42-leaf{font-size:.9em;filter:drop-shadow(0 1px 1px #25320d)}
.v42-ref-header .v31-head-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:6px;min-width:0}
.v42-ref-header .v31-head-actions>button,
.v42-ref-header .v31-head-actions .v40-audio-top,
.v42-ref-header #v35TopCorner{
 display:inline-flex!important;align-items:center;justify-content:center;
 min-height:37px!important;padding:6px 12px!important;border-radius:13px!important;
 border:2px solid #b77935!important;background:linear-gradient(180deg,#955826,#6a391b 58%,#53280f)!important;
 box-shadow:inset 0 1px #e8b778,0 3px #2f180c!important;
 font-size:clamp(11px,1.1vw,14px)!important;font-weight:800!important;color:#fff0d4!important;text-shadow:0 1px 2px #321507!important;
 white-space:nowrap!important;
}
.v42-ref-header .v31-head-actions>button[hidden]{display:none!important}
#game>.v45-radio-bar{
 order:-4!important;display:flex!important;justify-content:center!important;align-items:center!important;
 width:min(690px,95%)!important;max-width:95%!important;margin:3px auto 9px!important;
 margin-left:auto!important;margin-right:auto!important;
 height:37px!important;min-height:37px!important;max-height:none!important;
 border:3px solid #a96c32!important;border-radius:15px!important;
 background:repeating-linear-gradient(0deg,transparent 0 7px,#00000015 8px 9px),linear-gradient(#8f562c,#5c3017)!important;
 box-shadow:inset 0 2px #dfa86a,0 3px #472411,0 5px 10px #30170d55!important;
 overflow:hidden!important;
}
#game>.v45-radio-bar[hidden]{display:none!important}
#game>.v45-radio-bar>button{
 display:grid!important;place-items:center!important;
 width:50%!important;height:100%!important;min-height:0!important;max-height:none!important;
 font-size:18px!important;color:#ffe9be!important;border:0!important;
 border-radius:0!important;background:transparent!important;
}
#game>.v45-radio-bar>button:first-child{border-right:1px solid #e5b77750!important}
#game>.v34-status.v41-status.v42-ref-status{
 display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;
 padding:0!important;margin:1px auto 12px!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
#game .v42-ref-xpbar.v41-experience-bar{
 position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;
 width:100%!important;height:68px!important;min-height:68px!important;min-width:0!important;overflow:visible!important;
 padding:5px 13px!important;gap:0!important;
 border:4px ridge #c38942!important;border-radius:19px!important;
 background:repeating-linear-gradient(0deg,transparent 0 8px,rgba(38,17,5,.15) 9px 10px),linear-gradient(#975c2f 0%,#633516 45%,#492208 100%)!important;
 box-shadow:inset 0 2px #e0ad65,0 4px 0 #542807,0 7px 17px #32150970!important;
}
#game .v42-ref-xpbar.v41-experience-bar::after{inset:3px!important;border:1px solid #f3d49920!important;z-index:0!important;pointer-events:none!important}
#game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet{
 position:relative!important;z-index:2!important;display:flex!important;flex:0 1 39%!important;align-items:center!important;justify-content:flex-start!important;
 width:39%!important;max-width:none!important;height:100%!important;padding:0 4px!important;margin:0!important;gap:8px!important;
 flex-direction:row!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;
}
#game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet>div,
#game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet>.v31-coin-chip,
#game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet>.diamond-wallet{
 display:flex!important;flex:1 1 0!important;justify-content:space-between!important;align-items:center!important;
 width:0!important;max-width:none!important;min-width:0!important;height:44px!important;min-height:44px!important;
 gap:5px!important;margin:0!important;padding:4px 6px!important;
 border-radius:13px!important;border:2px solid #b77b38!important;
 background:linear-gradient(180deg,#74411f 0%,#4c230e 100%)!important;
 box-shadow:inset 0 1px #d6a563,0 2px 2px #2c120e!important;
 overflow:visible!important;
}
#game .v42-ref-xpbar .v42-ref-wallet img.v42-wallet-currency-icon{
 display:block!important;width:39px!important;height:39px!important;min-width:0!important;min-height:0!important;flex:0 0 39px!important;
 object-fit:contain!important;filter:drop-shadow(0 2px 2px #28170a88)!important;box-shadow:none!important;
}
#game .v42-ref-xpbar .v42-ref-wallet b{
 display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:none!important;
 padding:0!important;margin:0!important;color:#fff8d9!important;
 font-size:clamp(12px,1.45vw,19px)!important;font-weight:900!important;line-height:1.1!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;text-shadow:0 2px 2px #261409!important;
}
#game .v42-ref-xpbar .v42-ref-wallet .v42-ref-plus{
 display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;min-height:0!important;
 padding:0!important;border-radius:10px!important;
 border:2px solid #94bf4e!important;background:linear-gradient(#9be64b,#4a9c19 55%,#2f7114)!important;
 color:white!important;font-size:25px!important;font-weight:900!important;line-height:1!important;
 text-shadow:0 2px #295414;box-shadow:inset 0 1px #cefd82,0 2px #21500b!important;cursor:pointer!important;
}
#game .v42-ref-xpbar .v42-ref-level{
 position:relative;z-index:4;flex:0 0 70px;width:70px;height:76px;
 margin:0 -6px 0 2px;display:grid;place-items:center;
 filter:drop-shadow(0 3px 2px #341804bb);pointer-events:none;
}
#game .v42-ref-xpbar .v42-ref-star{grid-area:1/1;display:block;width:75px;height:82px;max-width:none;}
#game .v42-ref-xpbar #v42HeaderLevel{grid-area:1/1;z-index:1;margin-top:-2px;color:#49220a;font-size:clamp(20px,2vw,28px);font-weight:1000;text-shadow:1px 1px #fff0aa,-1px -1px #ffec90;}
#game .v42-ref-xpbar .v42-ref-track{
 position:relative;z-index:1;flex:1 1 auto;min-width:70px;height:42px;
 overflow:hidden;border:4px solid #4e260d;border-radius:21px;
 background:linear-gradient(#34200f,#492709)!important;
 box-shadow:inset 0 3px 7px #160b05,0 1px #ecc78a!important;
}
#game .v42-ref-xpbar .v42-ref-track .v41-experience-fill{
 position:absolute!important;inset:0 auto 0 0!important;height:100%!important;width:0;
 background:linear-gradient(#d6fc3a,#97d914 43%,#54a51a 80%,#388516)!important;
 box-shadow:inset 0 2px #ebff89,inset 0 -3px #276c0b!important;transition:width .35s ease!important;
}
#game .v42-ref-xpbar .v42-ref-track strong{
 position:absolute;inset:0;z-index:2;display:grid;place-items:center;padding:0 5px;
 font-size:clamp(12px,1.65vw,19px);line-height:1;font-weight:950;
 color:#fff!important;text-shadow:0 2px 2px #173a0d,1px 0 #173a0d,-1px 0 #173a0d;
 white-space:nowrap;pointer-events:none;
}
@media(max-width:920px){
 header.top.v31-top.v42-ref-header{grid-template-columns:1fr auto!important;min-height:84px!important;padding:7px 10px!important;gap:4px 8px!important;}
 .v42-ref-header .v42-ref-title{grid-row:1;grid-column:1/-1;justify-self:center;padding:5px 15px;font-size:clamp(15px,3vw,20px)}
 .v42-ref-header .v42-ref-brand{grid-row:2;grid-column:1}
 .v42-ref-header .v31-head-actions{grid-row:2;grid-column:2}
 .v42-ref-header .v31-head-actions>button,.v42-ref-header #v35TopCorner{font-size:11px!important;min-height:31px!important;padding:4px 7px!important}
 #game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet{flex-basis:42%!important;width:42%!important;gap:4px!important}
 #game .v42-ref-xpbar .v42-ref-wallet img.v42-wallet-currency-icon{width:29px!important;height:29px!important;flex-basis:29px!important}
 #game .v42-ref-xpbar .v42-ref-wallet .v42-ref-plus{width:24px!important;height:24px!important;flex-basis:24px!important;font-size:20px!important}
 #game .v42-ref-xpbar .v42-ref-level{flex-basis:56px;width:56px;height:62px}
 #game .v42-ref-xpbar .v42-ref-star{width:63px;height:68px}
 #game .v42-ref-xpbar .v42-ref-track{height:37px}
}
@media(max-width:640px){
 header.top.v31-top.v42-ref-header{gap:5px!important;}
 .v42-ref-header .v42-ref-brand .v42-ref-mill{font-size:22px}
 .v42-ref-header .v31-build{font-size:9px!important}
 .v42-ref-header .v31-head-actions{gap:3px!important}
 .v42-ref-header .v31-head-actions>button,.v42-ref-header #v35TopCorner{padding:3px 5px!important;min-height:30px!important;font-size:14px!important}
 .v42-ref-header .v31-head-actions .v40-audio-top{font-size:0!important;min-width:30px!important;width:34px!important;overflow:hidden!important}
 .v42-ref-header .v31-head-actions #fullscreenToggle{font-size:16px!important}
 .v42-ref-header .v31-head-actions #fullscreenToggle span{display:none!important}
 #game>.v45-radio-bar{width:min(95%,400px)!important;}
 #game .v42-ref-xpbar.v41-experience-bar{height:auto!important;min-height:99px!important;display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;grid-template-rows:45px 36px!important;gap:2px 3px!important;padding:4px 7px!important;}
 #game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet{grid-column:1/-1;grid-row:1;flex:initial!important;width:100%!important;height:43px!important;justify-content:center!important;padding:0 3px!important;gap:7px!important;}
 #game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet>div{height:40px!important;min-height:40px!important;flex:1 1 50%!important;max-width:none!important}
 #game .v42-ref-xpbar .v42-ref-wallet b{font-size:clamp(12px,3.5vw,16px)!important}
 #game .v42-ref-xpbar .v42-ref-level{grid-row:2;grid-column:1;margin:0;flex:initial;width:51px;height:51px}
 #game .v42-ref-xpbar .v42-ref-star{width:53px;height:58px}
 #game .v42-ref-xpbar #v42HeaderLevel{font-size:20px}
 #game .v42-ref-xpbar .v42-ref-track{grid-row:2;grid-column:2;width:100%;height:33px;align-self:center}
 #game .v42-ref-xpbar .v42-ref-track strong{font-size:clamp(11px,3vw,15px)}
}
@media(max-width:380px){
 .v42-ref-header .v31-head-actions .v40-audio-top{min-width:26px!important;width:27px!important}
 .v42-ref-header .v31-head-actions>button,.v42-ref-header #v35TopCorner{padding:2px 4px!important}
 #game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet{gap:3px!important}
 #game .v42-ref-xpbar .v42-ref-wallet.v41-inline-wallet>div{gap:3px!important;padding:3px!important}
 #game .v42-ref-xpbar .v42-ref-wallet img.v42-wallet-currency-icon{width:26px!important;height:26px!important;flex-basis:26px!important}
 #game .v42-ref-xpbar .v42-ref-wallet .v42-ref-plus{width:21px!important;height:21px!important;flex-basis:21px!important;font-size:18px!important}
}
/* ===== END V42.10.31 ===== */


/* ===== V42.10.32: strict desktop/mobile reference header corrections ===== */
header.top.v31-top.v42-ref32-header {
 position:relative!important; display:grid!important; grid-template-columns:minmax(180px,1fr) auto minmax(350px,1fr)!important;
 align-items:center!important; column-gap:12px!important; row-gap:6px!important;
 padding:12px 16px!important; min-height:74px!important; height:auto!important;
 width:100%!important; box-sizing:border-box!important;
 background:repeating-linear-gradient(0deg,#4e240b22 0 3px,transparent 3px 9px),linear-gradient(180deg,#9a6336,#6d3b1c 47%,#4c2513)!important;
 border:2px solid #b77839!important; border-radius:0 0 13px 13px!important;
 box-shadow:inset 0 2px #e3af68aa,inset 0 -3px #35160391,0 4px 9px #2b150d80!important;
}
header.top.v42-ref32-header .v42-ref-brand{min-width:0!important;justify-self:start!important;}
header.top.v42-ref32-header .v42-ref-title{
 justify-self:center!important; display:flex!important; align-items:center!important; gap:7px!important;
 padding:8px 17px!important; color:#fff4d7!important; font-size:clamp(16px,1.55vw,23px)!important;
 white-space:nowrap!important; max-width:100%!important; border:3px solid #b47738!important;
 border-radius:15px!important;background:linear-gradient(180deg,#a56d3b,#76431f 52%,#5e321a)!important;
 box-shadow:inset 0 2px #e8b575,0 4px #3c2011,0 7px 9px #2915086b!important;
}
header.top.v42-ref32-header .v42-ref-title strong{font-weight:950!important;line-height:1.15!important;}
header.top.v42-ref32-header .v31-head-actions{justify-self:end!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:5px!important;}
header.top.v42-ref32-header .v31-head-actions>button,
header.top.v42-ref32-header .v31-head-actions #v35TopCorner{
 background:linear-gradient(#9b622e,#663714 65%,#4b240f)!important;color:#fff3da!important;
 border:2px solid #ba7d3c!important;border-radius:10px!important;
 box-shadow:inset 0 1px #e7b169,0 2px 0 #3e210f!important;
 padding:6px 10px!important;min-height:36px!important;height:auto!important;
}
header.top.v42-ref32-header .v31-head-actions>button[hidden]{display:none!important}

#game>.v45-radio-bar.v42-ref32-radio {
 position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
 width:min(690px,96%)!important;max-width:96%!important;min-height:39px!important;height:39px!important;
 padding:0 12px!important;margin:4px auto 11px!important;overflow:hidden!important;
 border:3px solid #b07939!important;border-radius:18px!important;
 background:repeating-linear-gradient(0deg,#2e170418 0 2px,transparent 2px 8px),linear-gradient(#a16c38,#75431f 56%,#563015)!important;
 box-shadow:inset 0 2px #e9bb7d,0 3px 0 #492911,0 7px 10px #30180c50!important;
}
#game>.v45-radio-bar.v42-ref32-radio .v42-radio-rail {
 position:absolute;inset:12px 14% auto 14%;height:11px;
 border-radius:8px;background:linear-gradient(#29160b,#563217)!important;border:1px solid #ae7745!important;
 box-shadow:inset 0 2px 5px #1a0c07;pointer-events:none;z-index:1;
}
#game>.v45-radio-bar.v42-ref32-radio .v42-radio-knob {
 position:absolute;left:67%;top:-6px;width:20px;height:20px;border-radius:50%;
 background:radial-gradient(circle at 30% 30%,#b4f96f,#68b323 60%,#357912);
 border:2px solid #39771b;box-shadow:0 1px 4px #1f140c;pointer-events:none;
}
#game>.v45-radio-bar.v42-ref32-radio>button {
 position:relative!important;z-index:2!important;display:grid!important;place-items:center!important;
 width:43px!important;height:31px!important;min-height:31px!important;max-height:31px!important;
 flex:0 0 43px!important;background:linear-gradient(#a16c3a,#6b3a1b)!important;
 border:1px solid #b68751!important;border-radius:8px!important;
 box-shadow:inset 0 1px #e2b3796b!important;color:#fff8ea!important;font-size:16px!important;
}
#game>.v45-radio-bar.v42-ref32-radio>button:first-of-type{margin-right:auto!important;}
#game>.v45-radio-bar.v42-ref32-radio>button:last-child{margin-left:auto!important;}
#game>.v45-radio-bar.v42-ref32-radio[hidden]{display:none!important;}

/* Critical fix: CSS from V41 and V42.10.30 cannot make the XP fill cover the wallet. */
#game>.v34-status.v41-status.v42-ref-status {
 display:block!important;min-height:0!important;height:auto!important;max-height:none!important;
 width:100%!important;padding:0!important;margin:1px 0 12px!important;background:none!important;border:0!important;box-shadow:none!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar {
 display:grid!important;grid-template-columns:minmax(0,40%) 72px minmax(0,1fr)!important;
 grid-template-rows:62px!important;align-items:center!important;column-gap:0!important;
 box-sizing:border-box!important;width:100%!important;height:66px!important;min-height:66px!important;
 padding:1px 9px!important;overflow:visible!important;
 border:4px ridge #d3a25b!important;border-radius:17px!important;
 background:repeating-linear-gradient(0deg,#2f160612 0 3px,transparent 3px 9px),linear-gradient(#a16b35,#79431d 55%,#542910)!important;
 box-shadow:inset 0 2px #efc58a,0 4px #49240d,0 9px 15px #2d160b55!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar::after{z-index:0!important;pointer-events:none!important;}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet.v41-inline-wallet {
 position:relative!important;z-index:3!important;grid-row:1!important;grid-column:1!important;
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:center!important;
 flex:none!important; width:100%!important;min-width:0!important;max-width:100%!important;
 height:100%!important;min-height:0!important;gap:6px!important;margin:0!important;padding:0 1px!important;
 background:transparent!important;box-shadow:none!important;border:0!important;overflow:visible!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div{
 box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;
 width:100%!important;max-width:none!important;min-width:0!important;flex:none!important;
 height:44px!important;min-height:44px!important;padding:4px 6px!important;gap:5px!important;
 background:linear-gradient(#784421,#512811)!important;border:2px solid #bd8445!important;border-radius:13px!important;
 box-shadow:inset 0 1px #e7b5779c,0 2px 1px #35180a!important;overflow:hidden!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet img.v42-wallet-currency-icon {
 display:block!important;flex:0 0 clamp(25px,2.55vw,38px)!important;width:clamp(25px,2.55vw,38px)!important;
 height:clamp(25px,2.55vw,38px)!important;min-width:0!important;min-height:0!important;
 max-width:none!important;object-fit:contain!important;box-shadow:none!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet b {
 display:block!important;flex:1 1 auto!important;min-width:0!important;overflow:visible!important;text-overflow:clip!important;
 font-size:clamp(12px,1.35vw,18px)!important;line-height:1!important;color:#fff8df!important;
 white-space:nowrap!important;font-variant-numeric:tabular-nums!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet .v42-ref-plus {
 flex:0 0 29px!important;width:29px!important;height:29px!important;min-height:29px!important;
 display:grid!important;place-items:center!important;padding:0!important;
 border:2px solid #80af30!important;border-radius:9px!important;
 background:linear-gradient(#a9f461,#5bab25,#387c15)!important;box-shadow:inset 0 1px #e3ffad,0 2px #254e0c!important;
 font-size:23px!important;line-height:1!important;color:white!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-level{
 position:relative!important;grid-column:2!important;grid-row:1!important;z-index:5!important;
 display:grid!important;place-items:center!important;justify-self:center!important;align-self:center!important;
 width:74px!important;height:76px!important;margin:0!important;pointer-events:none;
 filter:drop-shadow(0 3px 2px #341804bb);
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-star{grid-area:1/1!important;width:75px!important;height:79px!important;}
#game #v41ExperienceBar.v42-ref32-xpbar #v42HeaderLevel{
 grid-area:1/1!important;z-index:1!important;margin-top:-2px!important;
 font-size:26px!important;font-weight:950!important;color:#592503!important;text-shadow:0 1px #fff7b8,0 -1px #ffc752!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track{
 position:relative!important;grid-row:1!important;grid-column:3!important;z-index:1!important;
 width:100%!important;height:42px!important;min-width:0!important;margin:0!important;
 border:4px solid #4f260e!important;border-radius:22px!important;overflow:hidden!important;
 background:linear-gradient(#2f1b0d,#48290e)!important;box-shadow:inset 0 3px 7px #160b05,0 1px #e1aa67!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track>.v42-ref32-fill.v41-experience-fill{
 position:absolute!important;inset:0 auto 0 0!important;z-index:1!important;height:100%!important;
 background:linear-gradient(#daff3f,#9ee519 38%,#62b720 80%,#378314)!important;
 box-shadow:inset 0 2px #f3ffa4,inset 0 -3px #32740c!important;
 border-radius:16px!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track>strong{
 position:absolute!important;inset:0!important;z-index:2!important;
 display:grid!important;place-items:center!important;padding:0 4px!important;
 color:white!important;font-weight:950!important;font-size:clamp(12px,1.5vw,18px)!important;
 text-shadow:0 2px 2px #1c3c0b,1px 0 #1c3c0b,-1px 0 #1c3c0b!important;white-space:nowrap!important;
}
@media(max-width:950px){
 header.top.v31-top.v42-ref32-header{grid-template-columns:1fr auto!important;min-height:80px!important;}
 header.top.v42-ref32-header .v42-ref-title{grid-column:1/-1!important;grid-row:1!important;justify-self:center!important;padding:6px 16px!important;}
 header.top.v42-ref32-header .v42-ref-brand{grid-column:1!important;grid-row:2!important;}
 header.top.v42-ref32-header .v31-head-actions{grid-column:2!important;grid-row:2!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar{grid-template-columns:minmax(0,43%) 60px minmax(0,1fr)!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-level{width:62px!important;height:69px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-star{width:64px!important;height:70px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet b{font-size:12px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet .v42-ref-plus{flex-basis:24px!important;width:24px!important;height:24px!important;min-height:24px!important;font-size:19px!important;}
}
@media(max-width:700px){
 header.top.v31-top.v42-ref32-header{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:9px 9px!important;}
 header.top.v42-ref32-header .v42-ref-title{grid-row:1!important;grid-column:1!important;max-width:100%!important;font-size:clamp(14px,4vw,20px)!important;}
 header.top.v42-ref32-header .v42-ref-brand{grid-row:2!important;grid-column:1!important;justify-self:center!important;}
 header.top.v42-ref32-header .v31-head-actions{grid-row:3!important;grid-column:1!important;justify-self:center!important;justify-content:center!important;flex-wrap:wrap!important;}
 header.top.v42-ref32-header .v31-head-actions>button{padding:4px 7px!important;min-height:31px!important;}
 #game>.v45-radio-bar.v42-ref32-radio{max-width:98%!important;width:98%!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar{
   grid-template-columns:56px minmax(0,1fr)!important;grid-template-rows:44px 39px!important;
   height:auto!important;min-height:96px!important;padding:5px 8px!important;row-gap:1px!important;
 }
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet.v41-inline-wallet{
   grid-column:1/-1!important;grid-row:1!important;width:100%!important;height:44px!important;
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
 }
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div{height:39px!important;min-height:39px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet b{font-size:clamp(11px,3.4vw,15px)!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet img.v42-wallet-currency-icon{
   width:clamp(24px,6.3vw,31px)!important;height:clamp(24px,6.3vw,31px)!important;flex-basis:clamp(24px,6.3vw,31px)!important;
 }
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-level{grid-column:1!important;grid-row:2!important;width:55px!important;height:53px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-star{width:56px!important;height:62px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar #v42HeaderLevel{font-size:20px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track{grid-column:2!important;grid-row:2!important;height:34px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track>strong{font-size:clamp(11px,3vw,15px)!important;}
}
@media(max-width:385px){
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet{gap:4px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div{padding:3px 4px!important;gap:3px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet b{font-size:11px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet .v42-ref-plus{width:22px!important;height:22px!important;flex-basis:22px!important;font-size:18px!important;}
}
/* ===== END V42.10.32 ===== */


/* ===== FERMA V42.10.33 — compact header; radio instead of game sounds ===== */
header.top.v31-top.v42-ref32-header {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  min-height:48px!important;height:auto!important;
  padding:5px 10px!important;gap:5px 9px!important;
  border-width:1px!important;border-radius:0 0 9px 9px!important;
  box-shadow:inset 0 1px #e6b77766,0 2px 5px #2b150d65!important;
}
header.top.v42-ref32-header .v42-ref-brand {grid-area:1/1!important;justify-self:start!important;}
header.top.v42-ref32-header .v42-ref-brand .v42-ref-mill {font-size:21px!important;}
header.top.v42-ref32-header .v31-build {font-size:10px!important;}
header.top.v42-ref32-header .v42-ref-title {
  grid-area:1/2!important;justify-self:center!important;
  padding:5px 11px!important;gap:4px!important;
  font-size:clamp(13px,1.4vw,19px)!important;
  border-width:2px!important;border-radius:12px!important;
  box-shadow:inset 0 1px #e8b575,0 2px #3c2011!important;
}
header.top.v42-ref32-header .v42-ref-title .v42-leaf {font-size:14px!important;}
header.top.v42-ref32-header .v31-head-actions {
  grid-area:1/3!important;justify-self:end!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:4px!important;flex-wrap:nowrap!important;min-width:0!important;
}
header.top.v42-ref32-header .v31-head-actions>button,
header.top.v42-ref32-header .v31-head-actions #v35TopCorner {
  font-size:13px!important;min-height:27px!important;height:27px!important;
  padding:2px 7px!important;border-width:1px!important;border-radius:7px!important;
  box-shadow:inset 0 1px #e7b169,0 1px #3e210f!important;
}
header.top.v42-ref32-header .v42-radio-compact {
  position:static!important;display:inline-flex!important;align-items:center!important;
  flex:0 0 auto!important;gap:3px!important;width:auto!important;max-width:none!important;
  height:28px!important;min-height:28px!important;max-height:28px!important;
  margin:0!important;padding:2px 4px!important;
  border:1px solid #c38a4e!important;border-radius:8px!important;
  background:linear-gradient(180deg,#996435,#5c2f17)!important;
  box-shadow:inset 0 1px #edbd7b88,0 2px 1px #2e160a!important;
}
header.top.v42-ref32-header .v42-radio-compact[hidden]{display:none!important;}
header.top.v42-ref32-header .v42-radio-label {
  color:#ffefc8!important;font-size:11px!important;font-weight:850!important;
  margin:0 3px!important;white-space:nowrap!important;
}
header.top.v42-ref32-header .v42-radio-compact>button {
  display:grid!important;place-items:center!important;flex:0 0 27px!important;
  width:27px!important;height:23px!important;min-height:23px!important;
  margin:0!important;padding:0!important;
  border:1px solid #c18a50!important;border-radius:6px!important;
  background:linear-gradient(#b47b42,#713e1d)!important;
  box-shadow:inset 0 1px #e7c08b55!important;
  color:#fff0cf!important;font-size:15px!important;line-height:1!important;
}
header.top.v42-ref32-header .v42-radio-compact>button.is-playing{color:#baff83!important;}
#game>.v34-status.v41-status.v42-ref-status {margin:2px 0 8px!important;}
#game #v41ExperienceBar.v42-ref32-xpbar {
  grid-template-columns:minmax(0,40%) 49px minmax(0,1fr)!important;
  grid-template-rows:42px!important;
  height:46px!important;min-height:46px!important;
  padding:1px 7px!important;border-width:2px!important;border-radius:12px!important;
  box-shadow:inset 0 1px #efc58a,0 2px #49240d,0 4px 9px #2d160b44!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet.v41-inline-wallet {gap:4px!important;}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div {
  height:31px!important;min-height:31px!important;
  padding:2px 5px!important;gap:4px!important;
  border-width:1px!important;border-radius:9px!important;
  box-shadow:inset 0 1px #e7b5777a!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet img.v42-wallet-currency-icon {
  flex:0 0 23px!important;width:23px!important;height:23px!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet b {font-size:clamp(11px,1.15vw,15px)!important;}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet .v42-ref-plus {
  flex:0 0 23px!important;width:23px!important;height:23px!important;min-height:23px!important;
  border-width:1px!important;border-radius:7px!important;font-size:18px!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-level {
  width:48px!important;height:53px!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-star{width:49px!important;height:55px!important;}
#game #v41ExperienceBar.v42-ref32-xpbar #v42HeaderLevel{font-size:19px!important;}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track {
  height:29px!important;border-width:2px!important;border-radius:16px!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track>strong {font-size:clamp(11px,1.2vw,15px)!important;}
@media(max-width:950px){
 header.top.v31-top.v42-ref32-header{grid-template-columns:1fr auto!important;min-height:0!important;gap:4px!important;padding:6px!important;}
 header.top.v42-ref32-header .v42-ref-title{grid-area:1/1/-1/-1!important;grid-row:1!important;grid-column:1/-1!important;justify-self:center!important;}
 header.top.v42-ref32-header .v42-ref-brand{grid-area:2/1!important;}
 header.top.v42-ref32-header .v31-head-actions{grid-area:2/2!important;justify-self:end!important;}
}
@media(max-width:700px){
 header.top.v31-top.v42-ref32-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:4px!important;padding:6px 7px!important;}
 header.top.v42-ref32-header .v42-ref-title{grid-area:1/1!important;grid-column:1!important;grid-row:1!important;font-size:clamp(14px,4vw,19px)!important;padding:5px 11px!important;}
 header.top.v42-ref32-header .v42-ref-brand{grid-area:2/1!important;grid-column:1!important;grid-row:2!important;justify-self:center!important;}
 header.top.v42-ref32-header .v31-head-actions{grid-area:3/1!important;grid-column:1!important;grid-row:3!important;justify-self:center!important;justify-content:center!important;gap:5px!important;flex-wrap:nowrap!important;width:100%!important;}
 header.top.v42-ref32-header .v31-head-actions>button{min-height:28px!important;height:28px!important;padding:2px 5px!important;font-size:14px!important;}
 header.top.v42-ref32-header .v42-radio-compact{height:28px!important;min-height:28px!important;}
 header.top.v42-ref32-header .v42-radio-label{font-size:11px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar{grid-template-columns:42px minmax(0,1fr)!important;grid-template-rows:35px 28px!important;height:72px!important;min-height:72px!important;padding:3px 7px!important;row-gap:1px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet.v41-inline-wallet{grid-row:1!important;grid-column:1/-1!important;height:35px!important;gap:6px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div{height:32px!important;min-height:32px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-level{grid-row:2!important;grid-column:1!important;width:40px!important;height:40px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-star{width:41px!important;height:46px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar #v42HeaderLevel{font-size:16px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track{grid-row:2!important;grid-column:2!important;height:25px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track>strong{font-size:clamp(10px,2.8vw,13px)!important;}
}
@media(max-width:365px){
 header.top.v42-ref32-header .v31-head-actions{gap:3px!important;}
 header.top.v42-ref32-header .v42-radio-label{font-size:0!important;margin:0!important;}
 header.top.v42-ref32-header .v42-radio-compact>button{flex-basis:25px!important;width:25px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div{padding:1px 4px!important;gap:3px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet img.v42-wallet-currency-icon{width:20px!important;height:20px!important;flex-basis:20px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet b{font-size:11px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet .v42-ref-plus{width:21px!important;height:21px!important;flex-basis:21px!important;font-size:17px!important;}
}
/* ===== END V42.10.33 ===== */

/* V42.10.34: compact but readable names for the three requested stations. */
header.top.v42-ref32-header .v42-radio-compact .v42-radio-label{
  display:block!important;max-width:120px!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:10px!important;letter-spacing:0!important;
}
@media(max-width:390px){
 header.top.v42-ref32-header .v42-radio-compact .v42-radio-label{
  display:block!important;font-size:10px!important;max-width:78px!important;margin:0 2px!important;
 }
}


/* V42.10.35 — aged timber: dark, worn plank grain and weathered metallic edges. */
header.top.v31-top.v42-ref32-header,
#game>.v34-status.v41-status,
#game #v41ExperienceBar.v42-ref32-xpbar{
 background-image:repeating-linear-gradient(0deg,transparent 0px,rgba(34,18,10,.11) 2px,rgba(232,190,128,.055) 4px,transparent 9px,transparent 23px),
  repeating-linear-gradient(91deg,rgba(28,14,8,.055) 0 2px,transparent 3px 39px),
  linear-gradient(172deg,#815333 0%,#674025 24%,#4b2c1d 49%,#603a25 72%,#332015 100%)!important;
 border-color:#946c47!important;
 box-shadow:inset 0 2px 1px #e6b97952,inset 0 -3px 8px #1f110b86,0 3px 0 #422718,0 5px 11px #1d100b44!important;
}
header.top.v42-ref32-header .v42-ref-title,
header.top.v42-ref32-header .v31-head-actions>button,
header.top.v42-ref32-header .v42-radio-compact,
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div{
 background-image:repeating-linear-gradient(0deg,transparent 0px,#150c0820 2px,#e3a56a12 3px,transparent 7px,transparent 17px),linear-gradient(160deg,#8b5937,#57351e 62%,#422718)!important;
 border-color:#b28a5b!important;
 box-shadow:inset 0 1px 1px #e7b67977,inset 0 -2px 2px #25140988,0 2px 2px #28170d77!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track{border-color:#9e744e!important;box-shadow:inset 0 2px 4px #24160ca6,0 1px #e0ab7244!important;}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track>span{background:linear-gradient(180deg,#9eee53,#60b830 53%,#2c8323)!important;}
/* All chat authors are keyboard-accessible profile links, without affecting message actions. */
.v42-chat-profile-link{appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:850;cursor:pointer;display:inline;max-width:100%;padding:0;margin:0;text-align:left;text-decoration:none;overflow-wrap:anywhere;}
.v42-chat-profile-link:hover{text-decoration:underline;text-underline-offset:3px;color:#ffe8a8;}
.v42-chat-profile-link:focus-visible{outline:2px solid #ffcc75;outline-offset:3px;border-radius:3px;}
.v38-chat-meta .v42-chat-profile-link{font-size:inherit;line-height:inherit;}
.v42-mail-author{display:block;font-size:11px;opacity:.88;margin-bottom:5px;}
.v42-mail-profile-link{font-size:17px!important;color:#fff4de!important;}
.v43-chat-row .v42-chat-profile-link,.v43-post .v42-chat-profile-link{font-size:inherit;color:#ffe2b2;}

/* FERMA V42.10.38 — original illustrated OLD WOOD from user's frame.
   APPEARANCE ONLY: the shapes, grid, block heights, mobile layout and functional controls stay intact. */
header.top.v31-top.v42-ref32-header,
#game #v41ExperienceBar.v42-ref32-xpbar {
  border-style:solid!important;
  border-color:#684122!important;
  border-image-source:url('v42_oldwood_frame.webp')!important;
  border-image-slice:68 65 64 65!important;
  border-image-width:7px!important;
  border-image-outset:0!important;
  border-image-repeat:stretch!important;
  background-image:linear-gradient(180deg,rgba(38,21,12,.26),rgba(38,21,12,.28)),url('v42_oldwood_planks.webp')!important;
  background-size:auto,240px 67px!important;
  background-color:#684329!important;
  box-shadow:inset 0 1px #e7c08755,inset 0 -2px #28170daa,0 2px 6px #28160d44!important;
}
header.top.v42-ref32-header .v42-ref-title,
header.top.v42-ref32-header .v31-head-actions>button,
header.top.v42-ref32-header .v31-head-actions #v35TopCorner,
header.top.v42-ref32-header .v42-radio-compact,
header.top.v42-ref32-header .v42-radio-compact>button,
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div,
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track {
  border-style:solid!important;
  border-image-source:url('v42_oldwood_frame.webp')!important;
  border-image-slice:68 65 64 65!important;
  border-image-width:5px!important;
  border-image-repeat:stretch!important;
  border-image-outset:0!important;
  background-image:linear-gradient(180deg,#3f2517a1,#56341bb3),url('v42_oldwood_planks.webp')!important;
  background-size:auto,200px 55px!important;
  background-color:#5c3924!important;
  color:#fff0d4!important;
  box-shadow:inset 0 1px #e0b9814d,0 1px 3px #27140c55!important;
}
/* The active XP fill and the golden level star keep their distinct game-state colors. */
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track {background-image:linear-gradient(180deg,#24160e,#3a2214)!important;}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track>span{background-image:linear-gradient(180deg,#a0ec56,#65b537 53%,#34832a)!important;}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet .v42-ref-plus{
  background-image:linear-gradient(180deg,#8bcd40,#3a841d)!important;
  color:#fff!important;
}
/* Keep original star geometry, buttons, responsive sizes and layout untouched. */



/* ================================================================
   FERMA V42.10.41 — ORIGINAL USER-SUPPLIED WOODEN UI FRAMES
   Purely graphical changes. No change to buttons, navigation, or XP.
   The images were cropped from the original 535x1536 reference.
   ================================================================ */
:root{
 --wood41-dark:#3b1b0f;
 --wood41-light:#c89a55;
 --wood41-cream:#fff0d6;
}
/* Original upper frame, with actual windmill ornament from reference. */
header.top.v31-top.v42-ref32-header{
 box-sizing:border-box!important;
 position:relative!important;
 border:0!important;
 border-image:none!important;
 border-radius:0!important;
 background:transparent url('v42_10_41_wood_header.webp') center center / 100% 100% no-repeat!important;
 box-shadow:none!important;
 color:var(--wood41-cream)!important;
 padding:clamp(53px,8.2vw,85px) clamp(17px,3vw,35px) 24px!important;
 min-height:clamp(155px,18vw,195px)!important;
 margin:0 0 4px!important;
}
/* All nested control surfaces keep their actions, but use matching shade. */
header.top.v42-ref32-header .v42-ref-title,
header.top.v42-ref32-header .v31-head-actions>button,
header.top.v42-ref32-header .v31-head-actions #v35TopCorner,
header.top.v42-ref32-header .v42-radio-compact,
header.top.v42-ref32-header .v42-radio-compact>button{
 border-image:none!important;
 border:1px solid #b98753!important;
 background:linear-gradient(180deg,#6e3c20,#432417)!important;
 color:var(--wood41-cream)!important;
 box-shadow:inset 0 1px 0 #ffde9455,0 2px 2px #1b0d0a77!important;
}
header.top.v42-ref32-header .v42-ref-title{
 background:linear-gradient(180deg,rgba(94,49,24,.5),rgba(60,27,14,.65))!important;
 border-color:#b88a5266!important;
 text-shadow:0 2px 3px #251109!important;
}
header.top.v42-ref32-header .v31-head-actions{position:relative!important;z-index:2!important;}
header.top.v42-ref32-header .v42-radio-compact{max-width:min(100%,275px)!important;min-width:0!important;}
header.top.v42-ref32-header .v42-radio-compact .v42-radio-label{
 display:block!important;max-width:105px!important;min-width:0!important;overflow:hidden!important;
 text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;
}
/* Exact second supplied frame around currency balance and XP. */
#game>.v34-status.v41-status.v42-ref-status{
 margin:0 0 9px!important;
 height:auto!important;
 min-height:0!important;
 background:none!important;
 border:0!important;
 box-shadow:none!important;
 padding:0!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar{
 position:relative!important;
 border:0!important;
 border-image:none!important;
 border-radius:0!important;
 box-shadow:none!important;
 background:transparent url('v42_10_41_wood_experience.webp') center center / 100% 100% no-repeat!important;
 height:clamp(120px,14vw,150px)!important;
 min-height:120px!important;
 padding:18px clamp(18px,3vw,38px) 20px!important;
 grid-template-columns:minmax(0,41%) 55px minmax(0,1fr)!important;
 grid-template-rows:48px 44px!important;
 gap:2px 7px!important;
 overflow:visible!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet.v41-inline-wallet{
 grid-column:1/-1!important;
 grid-row:1!important;
 align-self:center!important;
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 height:45px!important;
 min-width:0!important;
 gap:10px!important;
 padding:0!important;
 overflow:visible!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div{
 min-width:0!important;
 min-height:36px!important;
 height:38px!important;
 display:flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:space-between!important;
 gap:6px!important;
 border-image:none!important;
 border:1px solid #926035!important;
 border-radius:12px!important;
 background:linear-gradient(180deg,#7a4427,#4b2616)!important;
 box-shadow:inset 0 1px #dbac6e66,0 2px 3px #180c0877!important;
 padding:1px clamp(5px,1.4vw,12px)!important;
 overflow:hidden!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet b{
 flex:1!important;
 min-width:0!important;
 color:#fff3e0!important;
 font-size:clamp(12px,2.9vw,17px)!important;
 text-shadow:0 1px 2px #2b130c!important;
 white-space:nowrap!important;
 overflow:hidden!important;
 text-overflow:ellipsis!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet .v42-ref-plus{
 flex:0 0 29px!important;
 width:29px!important;height:29px!important;min-height:29px!important;
 padding:0!important;border-radius:9px!important;
 background:linear-gradient(#a3df52,#448d1c)!important;
 border:1px solid #357118!important;
 color:#fff!important;
 box-shadow:inset 0 1px #deffa095,0 2px 1px #1f3611!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-level{
 position:relative!important;
 grid-column:1!important;
 grid-row:2!important;
 align-self:center!important;
 justify-self:start!important;
 margin-left:0!important;
 width:49px!important;
 height:53px!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track{
 box-sizing:border-box!important;
 grid-column:1/-1!important;
 grid-row:2!important;
 align-self:center!important;
 width:calc(100% - 61px)!important;
 margin-left:61px!important;
 height:31px!important;
 min-height:31px!important;
 border-image:none!important;
 border:1px solid #b78049!important;
 border-radius:20px!important;
 background:linear-gradient(180deg,#271308,#482713)!important;
 box-shadow:inset 0 2px 5px #190b08,0 1px #c6a06b6b!important;
 overflow:hidden!important;
}
#game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track>strong{
 font-size:clamp(11px,2.65vw,16px)!important;
 color:#fff!important;
 text-shadow:0 2px 2px #163a05!important;
}
/* The third supplied frame has a laurel wreath for the profile. */
#game #screen .v35-profile-card{
 box-sizing:border-box!important;
 width:min(360px,95%)!important;
 height:clamp(132px,19vw,180px)!important;
 min-height:132px!important;
 padding:clamp(15px,3vw,28px) 30px 13px!important;
 gap:0!important;
 background:transparent url('v42_10_41_wood_profile.webp') center / 100% 100% no-repeat!important;
 border:0!important;
 border-image:none!important;
 border-radius:0!important;
 box-shadow:none!important;
 filter:drop-shadow(0 4px 3px #2e160c6b)!important;
 text-shadow:0 2px 2px #271109!important;
}
#game #screen .v35-profile-card .v42-menu-illustration,
#game #screen .v35-profile-card .v35-animated{
 width:48px!important;
 min-height:44px!important;
 margin:0 auto 1px!important;
 display:grid!important;place-items:center!important;
}
#game #screen .v35-profile-card .v42-menu-icon{height:44px!important;width:44px!important;}
#game #screen .v35-profile-card b{font-size:clamp(15px,3.4vw,21px)!important;line-height:1.1!important;}
#game #screen .v35-profile-card small{font-size:clamp(9px,2.4vw,12px)!important;max-width:90%!important;}
/* Main homepage button frames: same exact old mossy wood, no placeholders. */
#game #screen .v35-main .v35-major,
#game #screen .v35-main .v35-major.v40-collectives-link,
#game #screen .v35-main .v35-major.v46-minigame-link,
#game #screen .v35-group .v35-link{
 box-sizing:border-box!important;
 background:transparent url('v42_10_41_wood_button.webp') center / 100% 100% no-repeat!important;
 border:0!important;border-image:none!important;border-radius:0!important;
 box-shadow:none!important;
 filter:drop-shadow(0 3px 2px #25120966)!important;
 color:#fff0d8!important;
 text-shadow:0 2px 3px #1d0b07!important;
}
#game #screen .v35-main{
 gap:clamp(5px,1.1vw,13px)!important;
 padding-top:10px!important;
}
#game #screen .v35-main .v35-farm-major{
 height:clamp(106px,12vw,148px)!important;
 min-height:106px!important;
}
#game #screen .v35-main .v35-city-major{
 height:clamp(73px,8vw,105px)!important;
 min-height:73px!important;
}
#game #screen .v35-main .v35-major{padding:10px 9% 10px 11%!important;}
#game #screen .v35-group .v35-link{height:68px!important;min-height:68px!important;}
#game #screen .v35-main .v35-major b,#game #screen .v35-group .v35-link b{color:#fff1d5!important;}
@media(min-width:901px){
 header.top.v31-top.v42-ref32-header{min-height:170px!important;}
 #game #screen .v35-main{max-width:920px!important;}
}
@media(max-width:700px){
 header.top.v31-top.v42-ref32-header{
  min-height:155px!important;
  padding:50px 17px 20px!important;
  gap:1px!important;
 }
 header.top.v42-ref32-header .v42-ref-title{
  max-width:97%!important;
  padding:4px 8px!important;
  font-size:clamp(14px,3.8vw,18px)!important;
 }
 header.top.v42-ref32-header .v42-ref-brand{margin-top:2px!important;}
 header.top.v42-ref32-header .v31-head-actions{
  width:100%!important;gap:4px!important;
  justify-content:center!important;
 }
 header.top.v42-ref32-header .v42-radio-compact{flex:1 1 auto!important;max-width:205px!important;}
 header.top.v42-ref32-header .v42-radio-compact .v42-radio-label{max-width:90px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar{
  height:130px!important;min-height:130px!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  grid-template-rows:45px 41px!important;
  padding:15px 22px 16px!important;
  row-gap:6px!important;
 }
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet.v41-inline-wallet{
  grid-column:1/-1!important;grid-row:1!important;height:43px!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;
 }
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet>div{
  height:37px!important;min-height:37px!important;padding:2px 5px!important;gap:4px!important;
 }
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet b{font-size:clamp(11px,3vw,14px)!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-level{
  grid-row:2!important;grid-column:1!important;width:45px!important;height:46px!important;
 }
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-star{height:50px!important;width:45px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-track{
  grid-row:2!important;grid-column:2!important;margin-left:0!important;width:100%!important;height:29px!important;
 }
 #game #screen .v35-profile-card{height:137px!important;min-height:137px!important;}
 #game #screen .v35-main .v35-farm-major{height:110px!important;min-height:110px!important;}
 #game #screen .v35-main .v35-city-major{height:77px!important;min-height:77px!important;}
 #game #screen .v35-group .v35-link{height:65px!important;min-height:65px!important;}
}
@media(max-width:390px){
 header.top.v31-top.v42-ref32-header{padding:50px 14px 19px!important;}
 header.top.v42-ref32-header .v31-head-actions{gap:3px!important;}
 header.top.v42-ref32-header .v42-radio-compact{min-width:0!important;max-width:155px!important;padding:2px!important;}
 header.top.v42-ref32-header .v42-radio-compact .v42-radio-label{max-width:58px!important;font-size:9px!important;}
 header.top.v42-ref32-header .v31-head-actions>button{padding:2px 3px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar{padding:15px 18px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet img.v42-wallet-currency-icon{width:19px!important;height:19px!important;flex-basis:19px!important;}
 #game #v41ExperienceBar.v42-ref32-xpbar .v42-ref32-wallet .v42-ref-plus{height:23px!important;min-height:23px!important;width:23px!important;flex-basis:23px!important;}
 #game #screen .v35-main .v35-major b{font-size:clamp(16px,4.7vw,22px)!important;}
}
/* ===== END V42.10.41 ===== */



/* ================================================================
   V42.10.42 — layout faithful to the submitted empty wood frame sheet.
   Top: windmill crest / title / radio & actions / XP.
   Second frame: coin and gemstone. Wreath: profile avatar + level.
   Menu: matching supplied log wood, unchanged link targets.
   ================================================================ */
header.top.v31-top.v42-ref32-header.v42-42-header{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-end!important;
  gap:5px!important;
  width:100%!important;
  max-width:100%!important;
  height:clamp(195px,21vw,260px)!important;
  min-height:0!important;
  margin:0 auto 3px!important;
  padding:clamp(59px,7vw,83px) clamp(18px,4.1vw,37px) clamp(23px,2.5vw,30px)!important;
  border:0!important;
  border-radius:0!important;
  background:transparent url('v42_10_41_wood_header.webp') center / 100% 100% no-repeat!important;
  box-shadow:none!important;
  overflow:visible!important;
}
header.top.v42-42-header .v42-ref-brand{display:none!important;}
header.top.v42-42-header .v42-ref-title{
  position:relative!important;
  grid-area:auto!important;
  align-self:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0 auto 2px!important;
  padding:2px 11px!important;
  font-size:clamp(15px,2.5vw,26px)!important;
  text-align:center!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff0d4!important;
  text-shadow:0 2px 3px #2e100a,0 0 5px #30190c!important;
}
header.top.v42-42-header .v42-ref-title .v42-leaf{font-size:clamp(12px,2vw,18px)!important;}
header.top.v42-42-header .v31-head-actions{
  position:relative!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  grid-area:auto!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  align-self:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:36px!important;
  margin:0!important;
  padding:0!important;
  gap:clamp(3px,.8vw,8px)!important;
}
header.top.v42-42-header .v42-radio-compact{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex:1 1 165px!important;
  min-width:0!important;
  width:auto!important;
  max-width:270px!important;
  height:34px!important;
  min-height:34px!important;
  gap:3px!important;
  padding:2px 3px 2px 7px!important;
  border:1px solid #a27041!important;
  border-radius:9px!important;
  background:linear-gradient(#7b4626,#442315)!important;
  box-shadow:inset 0 1px 0 #e3af6c66!important;
}
header.top.v42-42-header .v42-radio-compact[hidden]{display:none!important;}
header.top.v42-42-header .v42-radio-compact .v42-radio-label{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  font-size:clamp(10px,1.75vw,13px)!important;
  font-weight:800!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
header.top.v42-42-header .v42-radio-compact>button{
  display:grid!important;
  place-items:center!important;
  flex:0 0 27px!important;
  width:27px!important;
  min-width:27px!important;
  height:27px!important;
  min-height:27px!important;
  padding:0!important;
  font-size:14px!important;
  border:1px solid #b1804b!important;
  border-radius:7px!important;
  background:linear-gradient(#9b673d,#67391f)!important;
}
header.top.v42-42-header .v31-head-actions>button,
header.top.v42-42-header .v31-head-actions #v35TopCorner{
  display:grid!important;
  place-items:center!important;
  flex:0 0 clamp(27px,3vw,35px)!important;
  width:clamp(27px,3vw,35px)!important;
  min-width:0!important;
  height:33px!important;
  min-height:33px!important;
  margin:0!important;
  padding:0!important;
  font-size:17px!important;
  white-space:nowrap!important;
  border:1px solid #b48651!important;
  border-radius:9px!important;
  background:linear-gradient(#895431,#512b1a)!important;
  box-shadow:inset 0 1px #efcc8650!important;
}
header.top.v42-42-header .v31-head-actions>button[hidden]{display:none!important;}
header.top.v42-42-header #fullscreenToggle span{display:none!important;}
/* Experience inside FIRST frame, below buttons. */
header.top.v42-42-header .v42-42-status,
header.top.v42-42-header .v34-status.v41-status.v42-42-status{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:39px!important;
  min-height:39px!important;
  flex:0 0 39px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
header.top.v42-42-header .v42-42-status[hidden]{display:none!important;}
header.top.v42-42-header #v41ExperienceBar.v42-42-xp{
  position:relative!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:5px!important;
  width:100%!important;
  height:39px!important;
  min-height:39px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
header.top.v42-42-header #v41ExperienceBar .v42-ref32-level{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 44px!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  grid-area:auto!important;
  justify-self:auto!important;
  margin:-5px 0 -3px!important;
  padding:0!important;
  transform:none!important;
}
header.top.v42-42-header #v41ExperienceBar .v42-ref32-star{display:block!important;width:44px!important;height:48px!important;}
header.top.v42-42-header #v41ExperienceBar #v42HeaderLevel{
  position:absolute!important;
  z-index:2!important;
  display:block!important;
  font-size:18px!important;
  font-weight:950!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
  color:#4b240c!important;
}
header.top.v42-42-header #v41ExperienceBar .v42-ref32-track{
  position:relative!important;
  display:flex!important;
  flex:1 1 auto!important;
  align-items:center!important;
  justify-content:center!important;
  grid-area:auto!important;
  min-width:0!important;
  width:auto!important;
  height:29px!important;
  min-height:29px!important;
  margin:0!important;
  border:2px solid #bb874b!important;
  border-radius:20px!important;
  background:linear-gradient(#2c140a,#4c2d17)!important;
  box-shadow:inset 0 2px 4px #120a07aa!important;
  overflow:hidden!important;
}
header.top.v42-42-header #v41ExperienceBar .v42-ref32-track #v41ExperienceFill{
  position:absolute!important;
  z-index:1!important;
  top:0!important;
  bottom:0!important;
  left:0!important;
  height:100%!important;
  border-radius:15px!important;
  background:linear-gradient(#aaff6e,#63c532 58%,#32971d)!important;
}
header.top.v42-42-header #v41ExperienceBar .v42-ref32-track strong{
  position:relative!important;
  z-index:2!important;
  font-size:clamp(11px,2vw,16px)!important;
  color:#fffefa!important;
  text-shadow:0 1px 3px #172208!important;
  white-space:nowrap!important;
}
/* Currency is entirely inside SECOND supplied frame; keep real balance elements. */
.v42-42-currency{
  box-sizing:border-box!important;
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:clamp(86px,9vw,115px)!important;
  min-height:86px!important;
  margin:0 0 5px!important;
  padding:15px clamp(20px,4vw,42px) 10px!important;
  background:transparent url('v42_10_41_wood_experience.webp') center / 100% 100% no-repeat!important;
  border:0!important;
  box-shadow:none!important;
}
.v42-42-currency[hidden]{display:none!important;}
.v42-42-currency .v42-42-wallet.v41-inline-wallet{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:center!important;
  width:100%!important;
  height:45px!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  gap:8px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.v42-42-currency .v42-42-wallet>div{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-direction:row!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  height:39px!important;
  min-height:39px!important;
  gap:5px!important;
  margin:0!important;
  padding:2px 5px!important;
  border:1px solid #b07a49!important;
  border-radius:10px!important;
  background:linear-gradient(#7e4626,#482415)!important;
  box-shadow:inset 0 1px 0 #ffd99c44!important;
}
.v42-42-currency .v42-42-wallet>div>img.v42-wallet-currency-icon{
  display:block!important;
  flex:0 0 26px!important;
  width:26px!important;
  height:27px!important;
  min-width:26px!important;
  object-fit:contain!important;
  box-shadow:none!important;
}
.v42-42-currency .v42-42-wallet>div>b{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  color:#fff6e5!important;
  font-size:clamp(12px,2.3vw,18px)!important;
  font-weight:900!important;
  white-space:nowrap!important;
  text-align:center!important;
  text-shadow:0 1px 2px #210d09!important;
}
.v42-42-currency .v42-42-wallet .v42-ref-plus{
  display:grid!important;
  place-items:center!important;
  flex:0 0 30px!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #3f741f!important;
  border-radius:9px!important;
  color:white!important;
  font-size:22px!important;
  background:linear-gradient(#b2f567,#479422)!important;
}
/* Portrait positioned within the CIRCULAR wreath on supplied profile frame. */
#game #screen .v35-main .v35-profile-card.v42-42-profile{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-end!important;
  width:min(430px,96%)!important;
  height:clamp(180px,21vw,225px)!important;
  min-height:180px!important;
  margin:3px auto 2px!important;
  padding:0 15px 19px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent url('v42_10_41_wood_profile.webp') center / 100% 100% no-repeat!important;
}
#game #screen .v35-profile-card.v42-42-profile .v42-42-profile-icon{
  position:absolute!important;
  z-index:1!important;
  top:15%!important;
  left:50%!important;
  display:grid!important;
  place-items:center!important;
  transform:translateX(-50%)!important;
  width:clamp(48px,7.4vw,69px)!important;
  height:clamp(48px,7.4vw,69px)!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}
#game #screen .v35-profile-card.v42-42-profile .v42-menu-icon{
  width:100%!important;
  height:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}
#game #screen .v35-profile-card.v42-42-profile>b{
  display:block!important;
  position:relative!important;
  z-index:1!important;
  font-size:clamp(18px,3vw,24px)!important;
  line-height:1.13!important;
  font-weight:900!important;
  color:#fff2d2!important;
  margin:0!important;
  text-align:center!important;
}
#game #screen .v35-profile-card.v42-42-profile>small{
  display:block!important;
  position:relative!important;
  z-index:1!important;
  width:auto!important;
  max-width:90%!important;
  margin:3px 0 0!important;
  padding:2px 10px!important;
  border-radius:13px!important;
  background:#3c1d1280!important;
  color:#ffe4a5!important;
  font-size:clamp(12px,2vw,15px)!important;
  text-align:center!important;
}
/* All menu choices are ACTUAL user-supplied horizontal wood signs. */
#game #screen .v35-main .v35-major,
#game #screen .v35-main .v35-major.v40-collectives-link,
#game #screen .v35-main .v35-major.v46-minigame-link,
#game #screen .v35-group .v35-link{
  background:transparent url('v42_10_41_wood_button.webp') center / 100% 100% no-repeat!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
#game #screen .v35-main .v35-major{
  min-height:0!important;
  height:clamp(92px,10vw,136px)!important;
  padding:7px 9% 7px 10%!important;
}
#game #screen .v35-main .v35-major b{color:#ffefd2!important;}
#game #screen .v35-main{gap:7px!important;padding-top:0!important;}
@media(max-width:600px){
 header.top.v31-top.v42-ref32-header.v42-42-header{
   height:212px!important;
   padding:62px 20px 25px!important;
   gap:4px!important;
 }
 header.top.v42-42-header .v42-ref-title{font-size:clamp(16px,4.2vw,21px)!important;padding:1px!important;}
 header.top.v42-42-header .v31-head-actions{height:32px!important;gap:3px!important;}
 header.top.v42-42-header .v42-radio-compact{flex-basis:145px!important;height:30px!important;min-height:30px!important;padding:1px 3px!important;}
 header.top.v42-42-header .v42-radio-compact .v42-radio-label{font-size:10px!important;}
 header.top.v42-42-header .v42-radio-compact>button{flex-basis:24px!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;}
 header.top.v42-42-header .v31-head-actions>button,
 header.top.v42-42-header .v31-head-actions #v35TopCorner{flex-basis:29px!important;width:29px!important;height:29px!important;min-height:29px!important;font-size:16px!important;}
 header.top.v42-42-header .v34-status.v41-status.v42-42-status{height:35px!important;min-height:35px!important;flex-basis:35px!important;}
 header.top.v42-42-header #v41ExperienceBar.v42-42-xp{height:35px!important;min-height:35px!important;}
 header.top.v42-42-header #v41ExperienceBar .v42-ref32-level{flex-basis:39px!important;width:39px!important;min-width:39px!important;height:43px!important;}
 header.top.v42-42-header #v41ExperienceBar .v42-ref32-star{width:41px!important;height:44px!important;}
 header.top.v42-42-header #v41ExperienceBar #v42HeaderLevel{font-size:16px!important;}
 header.top.v42-42-header #v41ExperienceBar .v42-ref32-track{height:26px!important;min-height:26px!important;}
 .v42-42-currency{height:101px!important;min-height:101px!important;padding:13px 20px 12px!important;}
 .v42-42-currency .v42-42-wallet>div{height:34px!important;min-height:34px!important;padding:2px 4px!important;gap:3px!important;}
 .v42-42-currency .v42-42-wallet>div>img.v42-wallet-currency-icon{width:22px!important;height:23px!important;min-width:22px!important;flex-basis:22px!important;}
 .v42-42-currency .v42-42-wallet>div>b{font-size:clamp(12px,3.3vw,16px)!important;}
 .v42-42-currency .v42-42-wallet .v42-ref-plus{flex-basis:26px!important;width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;font-size:19px!important;}
 #game #screen .v35-main .v35-profile-card.v42-42-profile{width:min(400px,95%)!important;height:183px!important;min-height:183px!important;padding-bottom:16px!important;}
 #game #screen .v35-profile-card.v42-42-profile .v42-42-profile-icon{width:52px!important;height:52px!important;top:19%!important;}
 #game #screen .v35-main .v35-major{height:clamp(91px,19vw,111px)!important;min-height:91px!important;}
}
@media(max-width:375px){
 header.top.v31-top.v42-ref32-header.v42-42-header{padding-left:16px!important;padding-right:16px!important;}
 header.top.v42-42-header .v31-head-actions{gap:2px!important;}
 header.top.v42-42-header .v31-head-actions>button,
 header.top.v42-42-header .v31-head-actions #v35TopCorner{flex-basis:26px!important;width:26px!important;height:28px!important;min-height:28px!important;font-size:14px!important;}
 header.top.v42-42-header .v42-radio-compact{flex-basis:132px!important;}
 .v42-42-currency{padding-left:17px!important;padding-right:17px!important;}
 .v42-42-currency .v42-42-wallet>div>b{font-size:11px!important;}
}



/* V42.10.43: mobile overflow hotfix, stable #game-owned currency and XP. */
header.top.v31-top.v42-ref32-header.v42-43-header{
  display:flex!important;flex-direction:column!important;justify-content:flex-end!important;
  align-items:center!important;gap:5px!important;
  height:clamp(150px,21vw,190px)!important;min-height:150px!important;
  padding:50px clamp(17px,3vw,30px) 45px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
header.top.v42-43-header .v42-ref-title{display:flex!important;justify-content:center!important;align-items:center!important;width:auto!important;max-width:100%!important;flex:0 0 auto!important;min-width:0!important;}
header.top.v42-43-header .v31-head-actions{width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important;flex:0 0 auto!important;justify-content:center!important;gap:5px!important;overflow:visible!important;}
header.top.v42-43-header .v42-radio-compact{flex:1 1 auto!important;min-width:0!important;max-width:240px!important;}
header.top.v42-43-header .v42-radio-label{display:block!important;flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
#game{min-width:0!important;max-width:100%!important;}
#game > .v34-status.v41-status.v42-43-status{
  position:relative!important;z-index:2!important;order:-3!important;
  display:block!important;box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;
  height:57px!important;min-height:57px!important;max-height:57px!important;
  margin:-42px 0 0!important;padding:6px clamp(19px,3vw,31px) 6px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#game > .v34-status.v41-status.v42-43-status[hidden]{display:none!important;}
#game > .v34-status.v41-status.v42-43-status #v41ExperienceBar.v42-43-xp{
  position:relative!important;display:flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:space-between!important;gap:8px!important;
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:50px!important;min-height:50px!important;max-height:50px!important;
  padding:0!important;margin:0!important;overflow:visible!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
#game > .v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-level{
  position:relative!important;display:grid!important;place-items:center!important;
  order:0!important;grid-area:auto!important;align-self:center!important;justify-self:auto!important;
  flex:0 0 50px!important;width:50px!important;min-width:50px!important;max-width:50px!important;
  height:50px!important;max-height:50px!important;margin:0!important;padding:0!important;
}
#game > .v34-status.v41-status.v42-43-status #v41ExperienceBar svg.v42-ref32-star{
  display:block!important;width:46px!important;height:50px!important;max-width:46px!important;max-height:50px!important;flex:none!important;
}
#game > .v34-status.v41-status.v42-43-status #v41ExperienceBar #v42HeaderLevel{
  position:absolute!important;display:block!important;z-index:3!important;top:50%!important;left:50%!important;
  transform:translate(-50%,-50%)!important;font-size:17px!important;font-weight:950!important;
  width:auto!important;height:auto!important;margin:0!important;padding:0!important;line-height:1!important;
}
#game > .v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-track{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  order:1!important;grid-area:auto!important;align-self:center!important;flex:1 1 auto!important;
  min-width:0!important;width:auto!important;max-width:100%!important;
  height:29px!important;min-height:29px!important;max-height:29px!important;margin:0!important;padding:0!important;
  overflow:hidden!important;background:linear-gradient(#211008,#50301b)!important;
  border:2px solid #b98d57!important;border-radius:19px!important;box-shadow:inset 0 2px 4px #1a1008!important;
}
#game > .v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-track #v41ExperienceFill{
  position:absolute!important;display:block!important;z-index:1!important;top:0!important;bottom:0!important;left:0!important;
  height:100%!important;background:linear-gradient(#aaff6a,#5ec638 60%,#28851e)!important;border-radius:15px!important;
}
#game > .v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-track strong{
  position:relative!important;display:block!important;z-index:2!important;margin:0!important;
  font-size:clamp(12px,2.5vw,17px)!important;line-height:1!important;white-space:nowrap!important;
  color:#fff!important;text-shadow:0 1px 2px #17340c!important;
}
#game > .v42-42-currency.v42-43-currency{
  position:relative!important;z-index:1!important;order:-2!important;
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  height:clamp(103px,11vw,135px)!important;min-height:103px!important;max-height:135px!important;
  margin:0 0 5px!important;padding:26px clamp(20px,4vw,46px) 13px!important;
  background:transparent url('v42_10_41_wood_experience.webp') center / 100% 100% no-repeat!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
#game > .v42-42-currency.v42-43-currency[hidden]{display:none!important;}
#game > .v42-43-currency .v42-42-wallet.v41-inline-wallet{
  position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:center!important;justify-content:stretch!important;gap:7px!important;
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:43px!important;margin:0!important;padding:0!important;overflow:hidden!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
#game > .v42-43-currency .v42-42-wallet > div{
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;
  flex:1 1 auto!important;gap:4px!important;min-width:0!important;max-width:100%!important;
  height:39px!important;min-height:39px!important;padding:2px 5px!important;margin:0!important;
  border:1px solid #a06c40!important;border-radius:10px!important;
  background:linear-gradient(#7d4628,#4c2817)!important;overflow:hidden!important;
}
#game > .v42-43-currency .v42-42-wallet > div > img.v42-wallet-currency-icon{
  display:block!important;flex:0 0 30px!important;width:30px!important;min-width:30px!important;
  max-width:30px!important;height:30px!important;max-height:30px!important;object-fit:contain!important;
}
#game > .v42-43-currency .v42-42-wallet > div > b{
  display:block!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;
  width:auto!important;height:auto!important;margin:0!important;padding:0!important;
  font-size:clamp(12px,2.9vw,18px)!important;line-height:1.1!important;font-weight:900!important;
  white-space:nowrap!important;text-align:center!important;text-overflow:ellipsis!important;overflow:hidden!important;
  color:#fff8e5!important;text-shadow:0 1px 2px #1b0f08!important;
}
#game > .v42-43-currency .v42-42-wallet .v42-ref-plus{
  display:grid!important;place-items:center!important;flex:0 0 28px!important;
  width:28px!important;min-width:28px!important;max-width:28px!important;
  height:28px!important;min-height:28px!important;padding:0!important;margin:0!important;
  font-size:20px!important;line-height:1!important;
}
@media(max-width:600px){
 header.top.v31-top.v42-ref32-header.v42-43-header{height:170px!important;min-height:170px!important;padding:52px 15px 51px!important;}
 #game > .v34-status.v41-status.v42-43-status{margin-top:-44px!important;height:55px!important;min-height:55px!important;max-height:55px!important;padding:5px 18px!important;}
 #game > .v34-status.v41-status.v42-43-status #v41ExperienceBar.v42-43-xp{height:47px!important;min-height:47px!important;max-height:47px!important;}
 #game > .v42-42-currency.v42-43-currency{height:110px!important;min-height:110px!important;max-height:110px!important;padding:25px 17px 12px!important;}
 #game > .v42-43-currency .v42-42-wallet>div>img.v42-wallet-currency-icon{width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important;flex-basis:25px!important;}
}
@media(max-width:375px){
 header.top.v31-top.v42-ref32-header.v42-43-header{padding-left:12px!important;padding-right:12px!important;}
 #game > .v42-42-currency.v42-43-currency{padding-left:13px!important;padding-right:13px!important;}
 #game > .v42-43-currency .v42-42-wallet > div{padding:2px 3px!important;gap:2px!important;}
 #game > .v42-43-currency .v42-42-wallet .v42-ref-plus{flex-basis:24px!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;}
 #game > .v42-43-currency .v42-42-wallet > div > b{font-size:11px!important;}
}


/* V42.10.44 — compact mobile home wood UI, preserving shape, functions and images. */
@media (max-width: 720px) {
  html, body, body .shell, .shell { max-width:100%!important; }
  body .shell, .shell { width:100%!important; padding-left:3px!important; padding-right:3px!important; }
  #game { width:100%!important; max-width:100%!important; }
  #game > header.top.v31-top.v42-ref32-header.v42-43-header {
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    height:156px!important;min-height:156px!important;max-height:156px!important;
    margin-left:0!important;margin-right:0!important;
    padding:46px 14px 40px!important;
  }
  #game > .v34-status.v41-status.v42-43-status {
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    height:44px!important;min-height:44px!important;max-height:44px!important;
    padding:3px 15px!important;margin:-35px 0 0!important;
  }
  #game > .v34-status.v41-status.v42-43-status #v41ExperienceBar.v42-43-xp {
    height:37px!important;min-height:37px!important;max-height:37px!important;gap:5px!important;
  }
  #game > .v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-level {
    flex:0 0 39px!important;width:39px!important;min-width:39px!important;max-width:39px!important;
    height:39px!important;max-height:39px!important;
  }
  #game > .v34-status.v41-status.v42-43-status #v41ExperienceBar svg.v42-ref32-star {
    width:38px!important;height:40px!important;max-width:38px!important;max-height:40px!important;
  }
  #game > .v34-status.v41-status.v42-43-status #v41ExperienceBar #v42HeaderLevel {
    font-size:14px!important;
  }
  #game > .v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-track {
    height:22px!important;min-height:22px!important;max-height:22px!important;border-width:2px!important;
  }
  #game > .v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-track strong {
    font-size:clamp(10px,2.7vw,13px)!important;
  }
  #game > .v42-42-currency.v42-43-currency {
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    height:86px!important;min-height:86px!important;max-height:86px!important;
    padding:17px 17px 10px!important;margin:0 0 4px!important;
  }
  #game > .v42-43-currency .v42-42-wallet.v41-inline-wallet {
    height:34px!important;min-height:34px!important;gap:6px!important;
  }
  #game > .v42-43-currency .v42-42-wallet > div {
    height:32px!important;min-height:32px!important;gap:3px!important;
    padding:2px 4px!important;border-radius:8px!important;
  }
  #game > .v42-43-currency .v42-42-wallet > div > img.v42-wallet-currency-icon {
    flex:0 0 23px!important;width:23px!important;min-width:23px!important;
    max-width:23px!important;height:23px!important;max-height:23px!important;
  }
  #game > .v42-43-currency .v42-42-wallet > div > b {
    font-size:clamp(11px,3vw,14px)!important;
  }
  #game > .v42-43-currency .v42-42-wallet .v42-ref-plus {
    flex:0 0 25px!important;width:25px!important;min-width:25px!important;max-width:25px!important;
    height:25px!important;min-height:25px!important;font-size:18px!important;
  }
  #game #screen .v35-main {
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    padding:3px 2px 45px!important;gap:4px!important;margin:0 auto!important;
  }
  #game #screen .v35-main .v35-profile-card.v42-42-profile {
    box-sizing:border-box!important;width:min(390px,96%)!important;max-width:96%!important;
    height:146px!important;min-height:146px!important;max-height:146px!important;
    margin:1px auto 2px!important;padding:0 12px 12px!important;
  }
  #game #screen .v35-profile-card.v42-42-profile .v42-42-profile-icon {
    top:16%!important;width:43px!important;height:43px!important;
  }
  #game #screen .v35-profile-card.v42-42-profile > b {
    font-size:clamp(16px,4vw,20px)!important;
  }
  #game #screen .v35-profile-card.v42-42-profile > small {
    font-size:clamp(10px,2.5vw,12px)!important;
    line-height:1.15!important;margin-top:2px!important;
  }
  #game #screen .v35-main .v35-major,
  #game #screen .v35-main .v35-major.v40-collectives-link,
  #game #screen .v35-main .v35-major.v46-minigame-link {
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    height:76px!important;min-height:76px!important;max-height:76px!important;
    padding:6px 8% 6px 9%!important;gap:10px!important;
  }
  #game #screen .v35-main .v35-farm-major {
    height:89px!important;min-height:89px!important;max-height:89px!important;
  }
  #game #screen .v35-main .v35-major b {
    font-size:clamp(17px,4.6vw,23px)!important;line-height:1.13!important;
  }
  #game #screen .v35-main .v35-major small {
    font-size:clamp(9px,2.6vw,11px)!important;line-height:1.2!important;
  }
  #game #screen .v35-main .v35-major .v42-menu-icon {
    max-width:52px!important;max-height:52px!important;width:clamp(35px,10vw,52px)!important;
    height:clamp(35px,10vw,52px)!important;object-fit:contain!important;
  }
  #game #screen .v35-main .v35-major .v35-major-arrow {
    right:5%!important;font-size:27px!important;
  }
}
@media (max-width: 370px) {
  #game > header.top.v31-top.v42-ref32-header.v42-43-header {padding-left:9px!important;padding-right:9px!important;}
  #game > .v42-42-currency.v42-43-currency {padding-left:11px!important;padding-right:11px!important;}
  #game > .v42-43-currency .v42-42-wallet > div {gap:2px!important;padding:2px 3px!important;}
  #game > .v42-43-currency .v42-42-wallet > div > img.v42-wallet-currency-icon {flex-basis:21px!important;width:21px!important;min-width:21px!important;height:21px!important;}
  #game > .v42-43-currency .v42-42-wallet .v42-ref-plus {flex-basis:23px!important;width:23px!important;min-width:23px!important;height:23px!important;min-height:23px!important;}
}


/* V42.10.44: slightly brighter warm farm backdrop; keep the aged wood panels unchanged. */
html {background-color:#b99774!important;}
body,body .shell {background-color:#b99774!important;}
body {
  background-image:linear-gradient(rgba(91,58,34,.27),rgba(91,58,34,.27)),url('v38-background.svg')!important;
  background-repeat:repeat!important;
  background-size:auto,460px auto!important;
}


/* V42.10.45 — рейтинг фермеров: старое дерево и фотографии игроков */
#game #screen .v45-leader-heading h2 {color:#4b2b16!important;font-size:clamp(22px,5vw,30px)!important;text-shadow:0 1px #ffe6b4aa!important;}
#game #screen .leader-switch {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;background:#7c492a!important;border:2px solid #a87542!important;border-radius:14px!important;padding:6px!important;box-shadow:inset 0 1px #e0ad6e66,0 3px 6px #43210e33!important;}
#game #screen .leader-switch button {min-width:0!important;min-height:38px!important;border-radius:9px!important;background:linear-gradient(#efcd9e,#d9ae75)!important;color:#543016!important;font-weight:850!important;border:1px solid #c18c50!important;white-space:nowrap!important;font-size:clamp(10px,2.7vw,14px)!important;padding:8px 3px!important;}
#game #screen .leader-switch button.chosen {background:linear-gradient(#497e46,#295a36)!important;border-color:#9cc16d!important;color:#fff3dc!important;text-shadow:0 1px #1a3f25!important;}
#game #screen .v45-leader-list {background:linear-gradient(160deg,#6b4028,#3c2418)!important;border:3px solid #9f6d41!important;border-radius:18px!important;box-shadow:inset 0 2px #d8a56c66,0 6px 13px #4b2a1c33!important;padding:8px!important;overflow:hidden!important;}
#game #screen .v45-leader-list .v45-leader {box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:76px!important;padding:9px 10px!important;margin:5px 0!important;border:1px solid #b58852!important;border-radius:12px!important;background:linear-gradient(180deg,#98673e,#704526 63%,#603820)!important;box-shadow:inset 0 1px #e2b88366,0 2px 3px #2e1a1377!important;color:#fff2da!important;}
#game #screen .v45-leader-list .v45-leader .v45-medal {width:31px!important;min-width:31px!important;flex:0 0 31px!important;text-align:center!important;font-size:24px!important;color:#ffe3a6!important;}
#game #screen .v45-leader-person {min-width:0!important;flex:1 1 auto!important;display:flex!important;align-items:center!important;gap:10px!important;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;text-align:left!important;cursor:pointer!important;color:#fff2db!important;}
#game #screen .v45-leader-person:focus-visible{outline:2px solid #ffdf97!important;border-radius:8px!important;}
#game #screen .v45-avatar {display:grid!important;place-items:center!important;position:relative!important;flex:0 0 48px!important;width:48px!important;height:48px!important;border:2px solid #e8bd77!important;border-radius:50%!important;overflow:hidden!important;background:radial-gradient(circle at 35% 20%,#e8bd82,#84522f)!important;box-shadow:0 2px 5px #28170f99!important;}
#game #screen .v45-avatar-fallback{font-size:26px!important;line-height:1!important;}
#game #screen .v45-avatar img.v45-photo-avatar{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;border:0!important;border-radius:50%!important;}
#game #screen .v45-leader-identity{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;min-width:0!important;gap:4px!important;}
#game #screen .v45-leader-identity b{max-width:100%!important;color:#fff7e6!important;font-size:clamp(13px,3.4vw,17px)!important;font-weight:900!important;text-shadow:0 1px 2px #261408!important;overflow-wrap:anywhere!important;line-height:1.2!important;}
#game #screen .v45-leader-identity small{display:block!important;color:#ebc89a!important;font-size:11px!important;line-height:1.15!important;}
#game #screen .v45-leader-score{flex:0 0 auto!important;max-width:35%!important;color:#ffebbd!important;font-size:clamp(12px,3.6vw,18px)!important;white-space:nowrap!important;text-align:right!important;text-shadow:0 1px 2px #2f1a0d!important;}
#game #screen .v45-leader-score svg,#game #screen .v45-leader-score img{width:19px!important;height:19px!important;vertical-align:-4px!important;}
/* Фото только при его наличии: за ним остаётся стандартный значок профиля. */
#game #screen .v35-profile-card .v45-home-avatar,
#game #screen .v35-profile-card.v42-42-profile .v45-home-avatar {position:relative!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:50%!important;}
#game #screen .v35-profile-card .v45-home-avatar img.v45-home-photo,
#game #screen .v35-profile-card.v42-42-profile .v45-home-avatar img.v45-home-photo {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;display:block!important;max-width:none!important;max-height:none!important;}
@media(max-width:420px){
 #game #screen .v45-leader-list{padding:5px!important;}
 #game #screen .v45-leader-list .v45-leader{gap:6px!important;padding:8px 6px!important;}
 #game #screen .v45-avatar{flex-basis:40px!important;width:40px!important;height:40px!important;}
 #game #screen .v45-leader-person{gap:7px!important;}
 #game #screen .v45-leader-list .v45-leader .v45-medal{flex-basis:25px!important;min-width:25px!important;width:25px!important;font-size:20px!important;}
 #game #screen .v45-leader-score{font-size:12px!important;}
}


/* V42.10.51 — restore self-profile frame with old wood, wheat wreath and photo */
#game #screen section.profile-panel.v41-profile-panel.v51-wood-profile {
  box-sizing:border-box!important;
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  margin:2px 0 15px!important;
  padding:8px 9px 17px!important;
  overflow:visible!important;
  border:5px solid #7a4a2a!important;
  border-radius:14px!important;
  background:
    linear-gradient(90deg,rgba(236,181,102,.08),transparent 10%,transparent 90%,rgba(231,173,98,.07)),
    repeating-linear-gradient(0deg,rgba(20,10,5,.08) 0 2px,transparent 2px 19px),
    linear-gradient(145deg,#5b321e 0%,#492516 52%,#3a1d13 100%)!important;
  box-shadow:
    inset 0 0 0 1px #daa36a65,
    inset 0 3px 13px rgba(9,4,2,.65),
    0 5px 0 #5c311f,
    0 8px 16px rgba(48,23,9,.24)!important;
  color:#fff0d7!important;
}
/* The exact provided wreath frame is drawn at its native aspect ratio,
   so the central round window stays round at any phone width. */
#game #screen .v51-wood-profile > .v41-profile-header {
  box-sizing:border-box!important;
  display:block!important;
  position:relative!important;
  isolation:isolate!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:535 / 204!important;
  padding:0!important;
  margin:0 auto!important;
  border:0!important;
  border-radius:0!important;
  background:transparent url('v42_10_41_wood_profile.webp') center center / 100% 100% no-repeat!important;
  text-align:center!important;
  overflow:visible!important;
}
/* Place avatar inside the open circular wreath, not to its right. */
#game #screen .v51-wood-profile #v41AvatarFrame {
  box-sizing:border-box!important;
  position:absolute!important;
  top:8.5%!important;
  left:50%!important;
  z-index:2!important;
  transform:translateX(-50%)!important;
  display:grid!important;
  place-items:center!important;
  width:17.6%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  flex:0 0 auto!important;
  overflow:hidden!important;
  border:2px solid #bd8f52!important;
  border-radius:50%!important;
  background:radial-gradient(circle at 40% 25%,#d4b47b,#715033)!important;
  box-shadow:0 0 0 2px rgba(66,34,14,.7),inset 0 0 4px #342014!important;
}
#game #screen .v51-wood-profile #v41AvatarFrame > span {
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:100%!important;
  line-height:1!important;
  font-size:clamp(23px,6vw,55px)!important;
}
#game #screen .v51-wood-profile #v41AvatarFrame > img {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:50%!important;
}
#game #screen .v51-wood-profile > .v41-profile-header > h2 {
  position:absolute!important;
  top:67%!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  z-index:2!important;
  display:block!important;
  box-sizing:border-box!important;
  width:90%!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  font-size:clamp(15px,4.3vw,24px)!important;
  line-height:1.12!important;
  color:#fff3d4!important;
  text-shadow:0 2px 3px #1d0c06,0 0 2px #251007!important;
  overflow-wrap:anywhere!important;
}
#game #screen .v51-wood-profile > .v41-profile-header > small {
  position:absolute!important;
  top:83.5%!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  z-index:2!important;
  box-sizing:border-box!important;
  display:block!important;
  width:86%!important;
  margin:0!important;
  padding:0!important;
  color:#ffe0a7!important;
  font-size:clamp(10px,2.65vw,13px)!important;
  line-height:1.12!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:center!important;
  text-shadow:0 1px 2px #211007!important;
}
#game #screen .v51-wood-profile .v46-self-last-login {
  box-sizing:border-box!important;
  display:block!important;
  position:relative!important;
  width:fit-content!important;
  max-width:calc(100% - 20px)!important;
  margin:9px auto 3px!important;
  padding:8px 13px!important;
  background:linear-gradient(180deg,#765031,#51311e)!important;
  border:1px solid #b78a55!important;
  border-radius:24px!important;
  box-shadow:inset 0 1px 0 #d4a87955,0 2px 3px #210e0855!important;
  color:#ffebc4!important;
  font-size:clamp(11px,2.6vw,14px)!important;
  line-height:1.35!important;
  text-align:center!important;
  white-space:normal!important;
}
/* Preserve V50 compact settings control and keep photo upload hidden until opened. */
#game #screen .v51-wood-profile .v50-profile-settings {
  display:block!important;
  position:static!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#game #screen .v51-wood-profile .v50-profile-settings > summary {
  position:absolute!important;
  top:17px!important;
  right:18px!important;
  z-index:6!important;
  width:36px!important;
  height:36px!important;
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #ad7a42!important;
  border-radius:10px!important;
  background:linear-gradient(180deg,#845333,#4e2c19)!important;
  color:#ffedc7!important;
  font-size:20px!important;
  box-shadow:0 2px 5px #210f0966,inset 0 1px 0 #efbf7d44!important;
  list-style:none!important;
  cursor:pointer!important;
}
#game #screen .v51-wood-profile .v50-profile-settings > summary::after,
#game #screen .v51-wood-profile .v50-profile-settings > summary::-webkit-details-marker {display:none!important;}
#game #screen .v51-wood-profile .v50-profile-settings:not([open]) > .v41-profile-details-body {display:none!important;}
#game #screen .v51-wood-profile .v50-profile-settings > .v41-profile-details-body {
  box-sizing:border-box!important;
  width:100%!important;
  margin:15px auto 0!important;
  border-radius:11px!important;
}
#game #screen .v51-wood-profile .v50-photo-upload {cursor:pointer!important;}
@media(max-width:430px){
  #game #screen section.profile-panel.v41-profile-panel.v51-wood-profile {padding:5px 5px 14px!important;border-width:4px!important;}
  #game #screen .v51-wood-profile .v50-profile-settings > summary {top:12px!important;right:12px!important;width:30px!important;height:30px!important;min-height:30px!important;font-size:17px!important;}
  #game #screen .v51-wood-profile .v46-self-last-login {max-width:calc(100% - 10px)!important;padding:7px 10px!important;}
}
@media(prefers-reduced-motion:reduce){#game #screen .v51-wood-profile * {transition:none!important;}}
/* The account name and level are set BELOW the wood header, never on top of its bottom log. */
#game #screen .v51-wood-profile .v51-profile-identity {
  display:flex!important;
  align-items:center!important;
  flex-direction:column!important;
  gap:4px!important;
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  padding:0 9px!important;
  margin:-3px auto 8px!important;
  text-align:center!important;
}
#game #screen .v51-wood-profile .v51-profile-identity > h2 {
  margin:0!important;
  padding:0!important;
  font-size:clamp(18px,4.6vw,26px)!important;
  line-height:1.3!important;
  color:#fff0c9!important;
  text-align:center!important;
  text-shadow:0 2px 3px #1d0c06!important;
  overflow-wrap:anywhere!important;
}
#game #screen .v51-wood-profile .v51-profile-identity > small {
  display:block!important;
  color:#f2cb92!important;
  font-size:clamp(12px,3.0vw,15px)!important;
  line-height:1.2!important;
  text-shadow:0 1px 2px #1d0c06!important;
  text-align:center!important;
}
/* End V42.10.51 */


/* V42.10.52 — photo centered EXACTLY in the laureled circular opening on home.
 * V45's .v45-home-avatar {position:relative!important} overrode V42's
 * absolute positioning. This caused the photo to sit too low over the rim.
 * The circle on the source art (535 x 204) is centered around (268, 68),
 * its inner opening is approx. 106px. Position in % of the entire card,
 * not a flex layout whose alignment moves with text/viewport width.
 */
#game #screen .v35-main > .v35-profile-card.v42-42-profile {
  position:relative!important;
  isolation:isolate!important;
}
#game #screen .v35-main > .v35-profile-card.v42-42-profile >
  .v35-animated.v42-menu-illustration.v42-42-profile-icon.v45-home-avatar {
  box-sizing:border-box!important;
  position:absolute!important;
  inset:auto!important;
  top:33.3%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  width:19.7%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  flex:none!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:#59331d!important;
  border:0!important;
  border-radius:50%!important;
  box-shadow:none!important;
  z-index:2!important;
}
#game #screen .v35-main .v35-profile-card.v42-42-profile
  > .v45-home-avatar img.v45-home-photo {
  box-sizing:border-box!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:50% 50%!important;
  border:0!important;
  border-radius:50%!important;
  clip-path:circle(50% at 50% 50%)!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
#game #screen .v35-main .v35-profile-card.v42-42-profile
  > .v45-home-avatar .v42-menu-icon {
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:50%!important;
}
/* The photo is positioned relative to the decorative image, without
 * changing the existing profile title, level, panel height or menu cards. */
/* End V42.10.52 */


/* ===== V42.10.53: prominent global announcements matching old-wood ferma ===== */
.v53-broadcast-toast{
 position:fixed;z-index:8000;top:max(12px,env(safe-area-inset-top));left:50%;
 transform:translateX(-50%);width:min(640px,calc(100vw - 20px));max-height:min(75vh,520px);
 display:flex;align-items:flex-start;gap:11px;padding:16px 50px 16px 15px;
 overflow-y:auto;overscroll-behavior:contain;
 color:#fff4d7;background:
  linear-gradient(120deg,rgba(126,75,32,.32),transparent 62%),
  repeating-linear-gradient(1deg,rgba(255,216,143,.035) 0 3px,rgba(45,21,7,.055) 3px 6px),
  linear-gradient(160deg,#674027 0%,#3e261a 75%,#2c1912 100%);
 border:3px solid #e6b967;border-radius:16px;
 box-shadow:0 0 0 3px #50311e,0 14px 42px #1a0d0ccc,0 0 28px #ffcb6750,inset 0 1px 0 #fff0b366;
 animation:v53BroadcastShow .34s cubic-bezier(.2,.75,.2,1) both;
}
.v53-broadcast-toast::before{content:'';position:absolute;inset:4px;pointer-events:none;border:1px solid #ffebad35;border-radius:11px;}
.v53-broadcast-emblem{flex:0 0 45px;width:45px;height:45px;display:grid;place-items:center;
 border-radius:13px;font-size:27px;background:linear-gradient(165deg,#74b946,#326c26);
 border:1px solid #ffe3a6;box-shadow:0 3px 5px #150b08b3;text-shadow:0 1px 1px #254a1c;}
.v53-broadcast-content{flex:1 1 auto;min-width:0;position:relative;}
.v53-broadcast-top{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.v53-broadcast-eyebrow{font-weight:1000;font-size:clamp(10px,2.5vw,12px);letter-spacing:.07em;color:#ffe79e;text-shadow:0 2px 4px #180e0a;}
.v53-broadcast-date{font-size:11px;color:#e9c99c;}
.v53-broadcast-author{margin:5px 0 7px;font-weight:850;font-size:14px;color:#ffe5ac;overflow-wrap:anywhere;}
.v53-broadcast-body{font-weight:700;font-size:clamp(14px,3.5vw,18px);line-height:1.4;color:#fffaf1;white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:0 1px 2px #1b100b;}
.v53-broadcast-close{position:absolute;right:9px;top:9px;width:32px;height:32px;display:grid;place-items:center;
 padding:0;border:1px solid #f4db9d;border-radius:9px;background:linear-gradient(#589b36,#2e6528);color:#fff;
 font:900 20px/1 system-ui,sans-serif;cursor:pointer;box-shadow:inset 0 1px #ffffff44;}
.v53-broadcast-close:hover,.v53-broadcast-close:focus-visible{background:#579c36;outline:2px solid #ffe1a0;outline-offset:1px;}
.v53-broadcast-close:disabled{opacity:.5;cursor:wait;}
@keyframes v53BroadcastShow{from{opacity:0;transform:translate(-50%,-16px) scale(.97);}to{opacity:1;transform:translate(-50%,0) scale(1);}}
@media(max-width:450px){
 .v53-broadcast-toast{top:max(8px,env(safe-area-inset-top));padding:13px 43px 13px 11px;gap:9px;border-width:2px;border-radius:13px;}
 .v53-broadcast-emblem{width:36px;height:36px;flex-basis:36px;font-size:21px;}
 .v53-broadcast-close{top:7px;right:7px;width:30px;height:30px;}
}
@media(prefers-reduced-motion:reduce){.v53-broadcast-toast{animation:none!important;}}
/* Administration broadcast editor. */
#game #screen .v53-admin-broadcast{display:grid;gap:12px;color:#fff0d5;}
#game #screen .v53-admin-broadcast h3{margin:2px 0;color:#fff0bd;}
#game #screen .v53-admin-broadcast p{font-size:13px;line-height:1.45;}
#game #screen .v53-broadcast-form{display:grid;gap:10px;padding:13px;border:2px solid #c79b60;border-radius:14px;background:linear-gradient(#6e452a,#42271b);}
#game #screen .v53-broadcast-form label{font-weight:800;font-size:13px;}
#game #screen .v53-broadcast-form textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;min-height:110px;
 padding:11px;border:1px solid #d8ac74;border-radius:9px;background:#fff8e8;color:#332013;font:inherit;line-height:1.45;}
#game #screen .v53-broadcast-form-footer{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;}
#game #screen .v53-broadcast-form-footer small{font-size:11px;color:#ebd1ab;flex:1 1 180px;}
#game #screen .v53-broadcast-submit{background:linear-gradient(#c28b36,#915521);border:1px solid #f4c877;color:#fff6dc;
 font-weight:900;padding:10px 13px;border-radius:10px;cursor:pointer;}
#game #screen .v53-broadcast-submit:disabled{opacity:.5;}
#game #screen .v53-broadcast-history{display:grid;gap:8px;}
#game #screen .v53-broadcast-history-item{padding:10px;border:1px solid #bd965e;border-radius:11px;
 background:linear-gradient(130deg,#715032,#4a301e);color:#fff1dc;}
#game #screen .v53-broadcast-history-item>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;}
#game #screen .v53-broadcast-history-item strong{font-size:12px;color:#ffdfa1;}
#game #screen .v53-broadcast-history-item small{font-size:10px;color:#ecd2aa;}
#game #screen .v53-broadcast-history-item p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 9px;font-size:12px;color:#fff9ed;}
#game #screen .v53-broadcast-history-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#e2ceab;}
#game #screen .v53-broadcast-history-actions button{padding:6px 10px;border:1px solid #e8af80;border-radius:7px;background:#8f3e25;color:#fff;cursor:pointer;}
/* ===== END V42.10.53 ===== */


/* ================================================================
   V42.10.54: компактный читаемый чат на мобильных устройствах.
   Сужаем высоту сообщений/смайлов, не меняя работу чата и эмодзи.
   ============================================================== */
.v39-chat-panel{
  width:min(460px,94vw);
}
.v39-chat-panel .v39-chat-section{
  padding:8px 9px 7px;
}
.v39-chat-panel .v39-chat-head{
  gap:7px;
  padding:3px 2px 7px;
}
.v39-chat-panel .v39-chat-head b{
  font-size:17px;
  line-height:1.2;
}
.v39-chat-panel .v39-chat-x{
  min-width:39px;
  width:39px;
  height:39px;
}
.v39-chat-section .v38-chat-log{
  padding:7px 6px 4px;
  border-width:1px;
}
.v39-chat-section .v38-chat-message,
.v39-chat-section .v38-chat-message.v42-owner-message,
.v39-chat-section .v38-chat-message.v42-voice-message{
  box-sizing:border-box;
  width:94%;
  max-width:94%;
  margin:0 0 9px;
  padding:6px 8px 5px;
  border-radius:9px;
  min-height:0;
}
.v39-chat-section .v38-chat-message.v42-chat-editing{
  width:100%;
  max-width:100%;
}
.v39-chat-section .v38-chat-message > .v38-chat-meta{
  gap:2px 6px;
  padding-bottom:2px;
  min-width:0;
}
.v39-chat-section .v38-chat-message > .v38-chat-meta time{
  font-size:10px;
}
.v39-chat-section .v42-chat-message-content .v38-chat-body{
  margin:3px 0 1px;
  font-size:14px;
  line-height:1.36;
  color:#fff8eb;
}
.v39-chat-section .v42-chat-message-content .v38-chat-parent,
.v39-chat-section .v42-chat-message-content .v38-chat-quote{
  margin:3px 0;
  padding:4px 6px;
  line-height:1.3;
}
/* Смайлы в сообщениях ~22px вместо 32–34px.
   Ограничиваем обе размерности, чтобы длинные GIF/изображения
   не растягивали сообщение и не выходили за границы карточки. */
.v39-chat-section .v38-chat-body img.v41-animated-emote,
.v39-chat-section .v38-chat-body img.v41-animated-emote.v42-modern-emote,
.v39-chat-section .v38-chat-body img.v41-animated-emote.v41-original-gg{
  display:inline-block;
  width:22px!important;
  height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
  object-fit:contain;
  vertical-align:-5px;
  margin:0 1px;
}
.v39-chat-section .v38-chat-parent img.v41-animated-emote,
.v39-chat-section .v38-chat-quote img.v41-animated-emote{
  width:19px!important;
  height:19px!important;
  max-width:19px!important;
  max-height:19px!important;
  object-fit:contain;
  vertical-align:-4px;
}
/* Иконки ответить / изменить / цитировать — в одной тонкой строке справа. */
.v39-chat-section .v38-chat-message .v38-chat-tools{
  gap:4px!important;
  margin:3px 0 0!important;
}
.v39-chat-section .v38-chat-tools .v42-chat-icon-btn{
  flex:0 0 27px;
  width:27px;
  min-width:27px;
  max-width:27px;
  height:27px;
  min-height:27px!important;
  font-size:18px!important;
}
/* Панель набора — без лишнего отступа, но с удобными кнопками. */
.v39-chat-section .v38-chat-form{
  margin-top:6px;
  gap:5px;
  padding-bottom:0;
}
.v39-chat-section .v38-chat-compose{
  gap:5px!important;
  align-items:stretch;
}
.v39-chat-section .v38-chat-compose textarea{
  min-height:45px;
  height:45px;
  max-height:95px;
  padding:8px 9px;
  font-size:15px;
  line-height:1.32;
  border-radius:10px;
}
.v39-chat-section .v38-emoji-trigger,
.v39-chat-section .v39-mic-button{
  box-sizing:border-box;
  flex:0 0 40px;
  width:40px;
  min-width:40px;
  height:45px;
  font-size:20px;
  padding:2px;
}
.v39-chat-section .v42-chat-send{
  box-sizing:border-box;
  flex:0 0 45px;
  width:45px;
  min-width:45px;
  min-height:45px;
  height:45px;
  padding:0;
  font-size:23px;
}
.v39-chat-section .v41-autocorrect-label{
  font-size:11px;
  line-height:1.2;
  margin:0;
}
/* Панель выбора смайлов: уменьшенные картинки и равномерные ячейки. */
.v39-chat-section .v38-emoji-panel{
  padding:5px;
}
.v39-chat-section .v38-emoji-tabs{
  gap:5px;
  padding-bottom:5px;
}
.v39-chat-section .v38-emoji-tabs button{
  padding:5px 8px;
  font-size:11px;
}
.v39-chat-section .v38-emoji-grid.v41-emoji-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:4px;
  max-height:min(170px,30vh);
  padding:4px 1px;
}
.v39-chat-section .v38-emoji-grid.v41-emoji-grid button{
  box-sizing:border-box;
  min-height:40px;
  height:40px;
  padding:3px;
  border-radius:9px;
}
.v39-chat-section .v41-emoji-grid img.v41-animated-emote,
.v39-chat-section .v41-emoji-grid img.v41-animated-emote.v42-modern-emote,
.v39-chat-section .v41-emoji-grid img.v41-animated-emote.v41-original-gg{
  width:31px!important;
  height:31px!important;
  max-width:31px!important;
  max-height:31px!important;
  object-fit:contain;
  vertical-align:middle;
}
@media(max-width:520px){
  .v39-chat-panel{width:95vw;max-width:100%;border-left-width:3px;}
  .v39-chat-panel .v39-chat-section{padding:7px 7px 6px;}
  .v39-chat-section .v38-chat-log{padding:6px 5px 3px;}
  .v39-chat-section .v38-chat-message,
  .v39-chat-section .v38-chat-message.v42-owner-message,
  .v39-chat-section .v38-chat-message.v42-voice-message{
    width:95%;max-width:95%;margin-bottom:8px;padding:6px 7px 5px;
  }
  .v39-chat-section .v38-chat-message.v42-chat-editing{width:100%;max-width:100%;}
  .v39-chat-section .v38-chat-compose{gap:4px!important;}
  .v39-chat-section .v38-emoji-trigger,
  .v39-chat-section .v39-mic-button{flex-basis:39px;min-width:39px;width:39px;}
  .v39-chat-section .v42-chat-send{flex-basis:43px;min-width:43px;width:43px;}
}
@media(max-width:360px){
  .v39-chat-section .v38-emoji-grid.v41-emoji-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
  .v39-chat-section .v38-chat-message,
  .v39-chat-section .v38-chat-message.v42-owner-message,
  .v39-chat-section .v38-chat-message.v42-voice-message{width:97%;max-width:97%;}
  .v39-chat-section .v38-chat-message.v42-chat-editing{width:100%;max-width:100%;}
}
@media(max-height:500px){
  .v39-chat-section .v38-emoji-grid.v41-emoji-grid{max-height:90px;}
  .v39-chat-panel .v39-chat-head{padding-bottom:3px;}
  .v39-chat-section .v38-chat-form{margin-top:3px;}
}
/* ===== END V42.10.54 ===== */


/* ===============================================================
   V42.10.54 — АВТОМАТИЧЕСКИЙ РАЗМЕР КАРТОЧКИ ПО СОДЕРЖИМОМУ.
   Короткие сообщения — короткие карточки; длинный текст переносится,
   не нарушая ширину мобильного чата. Высота определяется содержимым.
   =============================================================== */
.v39-chat-section .v38-chat-message,
.v39-chat-section .v38-chat-message.v42-owner-message {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:max-content!important;
  max-width:95%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin-right:auto!important;
  padding:6px 8px 5px!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.v39-chat-section .v38-chat-message > .v38-chat-meta {
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
}
.v39-chat-section .v38-chat-message .v42-chat-message-content {
  box-sizing:border-box!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
}
.v39-chat-section .v38-chat-message .v38-chat-body,
.v39-chat-section .v38-chat-message .v38-chat-plain {
  max-width:100%!important;
  width:auto!important;
  overflow-wrap:anywhere!important;
  white-space:pre-wrap!important;
}
.v39-chat-section .v38-chat-message .v38-chat-tools {
  box-sizing:border-box!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  align-self:flex-end!important;
  margin:3px 0 0!important;
}
/* Голосовое сообщение и редактирование требуют места для плеера/поля. */
.v39-chat-section .v38-chat-message.v42-voice-message {
  width:fit-content!important;
  max-width:95%!important;
  min-width:min(230px,95%)!important;
}
.v39-chat-section .v38-chat-message.v42-chat-editing,
.v39-chat-section .v38-chat-message.v42-chat-editing.v42-owner-message {
  width:100%!important;
  max-width:100%!important;
}
@media (max-width:520px) {
  .v39-chat-section .v38-chat-message,
  .v39-chat-section .v38-chat-message.v42-owner-message,
  .v39-chat-section .v38-chat-message.v42-voice-message {
    max-width:97%!important;
  }
}
/* ===== END V42.10.54: AUTO SIZED CHAT CARDS ===== */


/* ==============================================================
   FERMA V42.10.55 — СВОИ И ЧУЖИЕ СООБЩЕНИЯ РАЗНОГО ЦВЕТА
   Карточка сохраняет размер по тексту (настройка V42.10.54).
   Отправленные сообщения — зелёно-оливковое дерево справа.
   Полученные сообщения — тёплое коричневое дерево слева.
   =============================================================== */
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent.v42-owner-message,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent.v42-voice-message {
  background:linear-gradient(145deg,#48694e 0%,#38583e 52%,#2b4432 100%)!important;
  border:1px solid #9cbf80!important;
  border-left:3px solid #83a86f!important;
  box-shadow:inset 0 1px 0 rgba(225,249,209,.14), 0 2px 5px rgba(12,31,13,.24)!important;
  margin-left:auto!important;
  margin-right:0!important;
  color:#f7fff0!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received.v42-owner-message,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received.v42-voice-message {
  background:linear-gradient(145deg,#845c3d 0%,#765035 58%,#633f2c 100%)!important;
  border:1px solid #d0a779!important;
  border-left:3px solid #e1b878!important;
  box-shadow:inset 0 1px 0 rgba(255,237,209,.12), 0 2px 5px rgba(43,22,12,.24)!important;
  margin-left:0!important;
  margin-right:auto!important;
  color:#fff5e9!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent .v38-chat-body,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received .v38-chat-body {
  color:#fff9ee!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent .v38-chat-meta time {
  color:#d8eed0!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received .v38-chat-meta time {
  color:#f0d5b8!important;
}
/* Личная почта использует уже существующее различие sender_id. */
.v42-mail-dialog .v42-mail-bubble.v42-mail-me {
  align-self:flex-end!important;
  background:linear-gradient(145deg,#4b704f,#315038)!important;
  border:1px solid #a8c98f!important;
  border-left:3px solid #8eb878!important;
  color:#fff9ee!important;
  box-shadow:0 2px 6px rgba(11,26,12,.19)!important;
}
.v42-mail-dialog .v42-mail-bubble.v42-mail-them {
  align-self:flex-start!important;
  background:linear-gradient(145deg,#835b3e,#66432d)!important;
  border:1px solid #d5ad7c!important;
  border-left:3px solid #e3b779!important;
  color:#fff7e9!important;
  box-shadow:0 2px 6px rgba(37,19,11,.2)!important;
}
.v42-mail-dialog .v42-mail-bubble small {color:#eedcc8!important;}
/* Не растягивать короткие сообщения при различной окраске. */
@media(max-width:520px){
  .v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent,
  .v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received {max-width:97%!important;}
}
/* ===== END FERMA V42.10.55 ===== */


/* ===============================================================
   FERMA V42.10.56 — мессенджерные пузырьки в стиле WhatsApp
   Форма/размещение как в мессенджере, цвета — тёплая палитра фермы.
   Переменная ширина V42.10.54 и стороны V42.10.55 сохранены.
   =============================================================== */
.v39-chat-section .v38-chat-log,
.v42-mail-dialog .v42-mail-messages{
  overflow-x:hidden!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received,
.v42-mail-dialog .v42-mail-bubble.v42-mail-me,
.v42-mail-dialog .v42-mail-bubble.v42-mail-them{
  position:relative!important;
  box-sizing:border-box!important;
  width:max-content!important;
  max-width:min(88%,650px)!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  border-width:1px!important;
  border-style:solid!important;
  border-radius:14px!important;
  padding:7px 10px 6px!important;
  line-height:1.37!important;
  text-align:left!important;
  overflow:visible!important;
}
/* Свои сообщения: справа, природный зелёный, угол в сторону автора. */
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent.v42-owner-message,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent.v42-voice-message,
.v42-mail-dialog .v42-mail-bubble.v42-mail-me{
  align-self:flex-end!important;
  margin-left:auto!important;
  margin-right:8px!important;
  border-radius:14px 4px 14px 14px!important;
  border-color:#89ad7d!important;
  background:#456a4a!important;
  color:#fff9ee!important;
  box-shadow:0 2px 5px rgba(19,35,18,.2),inset 0 1px 0 #ffffff16!important;
}
/* Чужие сообщения: слева, тёплое дерево. */
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received.v42-owner-message,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received.v42-voice-message,
.v42-mail-dialog .v42-mail-bubble.v42-mail-them{
  align-self:flex-start!important;
  margin-left:8px!important;
  margin-right:auto!important;
  border-radius:4px 14px 14px 14px!important;
  border-color:#c99b69!important;
  background:#785339!important;
  color:#fff6e7!important;
  box-shadow:0 2px 5px rgba(40,22,14,.2),inset 0 1px 0 #ffffff15!important;
}
/* Небольшие угловые «хвостики», как у сообщений мессенджера. */
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent::after,
.v42-mail-dialog .v42-mail-bubble.v42-mail-me::after{
  content:''!important;
  position:absolute!important;
  display:block!important;
  right:-8px!important;
  left:auto!important;
  top:-1px!important;
  bottom:auto!important;
  width:10px!important;
  height:14px!important;
  background:#456a4a!important;
  clip-path:polygon(0 0,100% 0,0 100%)!important;
  border:0!important;
  border-radius:0!important;
  pointer-events:none!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received::after,
.v42-mail-dialog .v42-mail-bubble.v42-mail-them::after{
  content:''!important;
  position:absolute!important;
  display:block!important;
  left:-8px!important;
  right:auto!important;
  top:-1px!important;
  bottom:auto!important;
  width:10px!important;
  height:14px!important;
  background:#785339!important;
  clip-path:polygon(0 0,100% 0,100% 100%)!important;
  border:0!important;
  border-radius:0!important;
  pointer-events:none!important;
}
/* Содержимое не должно растягивать короткую карточку. */
.v39-chat-section .v38-chat-message > .v38-chat-meta{
  display:flex!important;
  gap:3px 6px!important;
  flex-wrap:wrap!important;
  max-width:100%!important;
  align-items:center!important;
}
.v39-chat-section .v38-chat-message .v42-chat-message-content,
.v39-chat-section .v38-chat-message .v38-chat-body{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
.v39-chat-section .v38-chat-message .v38-chat-tools{
  align-self:flex-end!important;
  justify-content:flex-end!important;
  max-width:100%!important;
  gap:3px!important;
  margin-top:3px!important;
}
.v42-mail-dialog .v42-mail-bubble{
  overflow-wrap:anywhere!important;
  white-space:pre-wrap!important;
}
.v42-mail-dialog .v42-mail-bubble small{
  margin-top:3px!important;
  opacity:.84!important;
  text-align:right!important;
  font-size:10px!important;
}
.v42-mail-dialog .v42-mail-messages{
  gap:8px!important;
  padding:9px 5px!important;
}
/* Пузырьки больше не занимают всю ширину мобильного чата. */
@media(max-width:520px){
  .v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent,
  .v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received,
  .v42-mail-dialog .v42-mail-bubble.v42-mail-me,
  .v42-mail-dialog .v42-mail-bubble.v42-mail-them{
    max-width:91%!important;
    padding:6px 9px 5px!important;
  }
}
/* ===== END FERMA V42.10.56 ===== */


/* ================================================================
   FERMA V42.10.57 — ТОЛЬКО ФОРМА ПУЗЫРЬКОВ КАК В WHATSAPP.
   Цвета, золотистые края и тон дерева остаются в стиле фермы.
   Чат, его кнопки и смайлы не перерисовываются.
   ================================================================ */
.v39-chat-section .v38-chat-log,
.v42-mail-dialog .v42-mail-messages {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  min-width:0!important;
  overflow-x:hidden!important;
}
/* Каждая колонка принимает ширину содержимого, как в мессенджере. */
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received,
.v42-mail-dialog .v42-mail-messages .v42-mail-bubble.v42-mail-me,
.v42-mail-dialog .v42-mail-messages .v42-mail-bubble.v42-mail-them {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  width:fit-content!important;
  max-width:min(87%,560px)!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:7px 10px 6px!important;
  margin-top:2px!important;
  margin-bottom:7px!important;
  border-style:solid!important;
  border-width:1px!important;
  border-left-width:1px!important;
  border-radius:15px!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  box-shadow:inset 0 1px 0 #fff4e018,0 2px 5px #24100836!important;
}
/* Сообщение отправителя — справа, приглушённое оливковое дерево. */
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent.v42-owner-message,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent.v42-voice-message,
.v42-mail-dialog .v42-mail-messages .v42-mail-bubble.v42-mail-me {
  align-self:flex-end!important;
  margin-left:auto!important;
  margin-right:9px!important;
  border-radius:15px 4px 15px 15px!important;
  background:linear-gradient(155deg,#66654b 0%,#514b37 100%)!important;
  border-color:#a8ab7a!important;
  color:#fff6e7!important;
}
/* Сообщение получателя — слева, тёплое старое дерево. */
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received.v42-owner-message,
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received.v42-voice-message,
.v42-mail-dialog .v42-mail-messages .v42-mail-bubble.v42-mail-them {
  align-self:flex-start!important;
  margin-left:9px!important;
  margin-right:auto!important;
  border-radius:4px 15px 15px 15px!important;
  background:linear-gradient(155deg,#815739 0%,#69432e 100%)!important;
  border-color:#c49a67!important;
  color:#fff5e7!important;
}
/* Небольшие хвостики — как у переписки, без зеленых WhatsApp-заливок. */
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent::after,
.v42-mail-dialog .v42-mail-messages .v42-mail-bubble.v42-mail-me::after {
  content:''!important;
  position:absolute!important;
  top:0!important;right:-8px!important;bottom:auto!important;left:auto!important;
  width:10px!important;height:14px!important;
  display:block!important;
  border:0!important;border-radius:0!important;
  background:#615b43!important;
  clip-path:polygon(0 0,100% 0,0 100%)!important;
  pointer-events:none!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received::after,
.v42-mail-dialog .v42-mail-messages .v42-mail-bubble.v42-mail-them::after {
  content:''!important;
  position:absolute!important;
  top:0!important;left:-8px!important;bottom:auto!important;right:auto!important;
  width:10px!important;height:14px!important;
  display:block!important;
  border:0!important;border-radius:0!important;
  background:#795037!important;
  clip-path:polygon(0 0,100% 0,100% 100%)!important;
  pointer-events:none!important;
}
/* Сохраняем традиционные шрифты, имя/время и удобные действия. */
.v39-chat-section .v38-chat-log .v38-chat-message .v38-chat-meta {
  max-width:100%!important;
  min-width:0!important;
  flex-wrap:wrap!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message .v42-chat-message-content,
.v39-chat-section .v38-chat-log .v38-chat-message .v38-chat-body {
  max-width:100%!important;
  min-width:0!important;
  overflow-wrap:anywhere!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message .v38-chat-tools {
  width:fit-content!important;
  min-width:0!important;
  max-width:100%!important;
  margin-left:auto!important;
  align-self:flex-end!important;
}
.v42-mail-dialog .v42-mail-messages .v42-mail-bubble > div {
  max-width:100%!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
}
/* Редактирование и голосовые вложения не сжимаются до нерабочего размера. */
.v39-chat-section .v38-chat-log .v38-chat-message.v42-chat-editing {
  width:100%!important;
  max-width:calc(100% - 18px)!important;
}
.v39-chat-section .v38-chat-log .v38-chat-message.v42-voice-message {
  min-width:min(220px,80%)!important;
}
@media(max-width:520px) {
  .v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-sent,
  .v39-chat-section .v38-chat-log .v38-chat-message.v55-chat-received,
  .v42-mail-dialog .v42-mail-messages .v42-mail-bubble.v42-mail-me,
  .v42-mail-dialog .v42-mail-messages .v42-mail-bubble.v42-mail-them {
    max-width:90%!important;
    padding:6px 9px 5px!important;
  }
}
/* ===== END FERMA V42.10.57 ===== */


/* ==============================================================
  FERMA V42.10.58 — ОШИБКА: элементы общего чата накладывались.
  В V42.10.57 журнал сообщений стал flex-контейнером, но сообщения
  сохраняли flex-shrink: 1. При заполнении журнала браузер сжимал
  карточки до ~14 px, хотя текст и аудио были гораздо выше.
  Запрещаем сжатие карточек, оставляя прокрутку у журнала.
  ============================================================== */
.v39-chat-section .v38-chat-log {
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  min-height:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
}
.v39-chat-section .v38-chat-log > .v38-chat-message {
  flex:0 0 auto!important;
  flex-shrink:0!important;
  min-height:min-content!important;
  height:auto!important;
  max-height:none!important;
  position:relative!important;
  overflow:visible!important;
}
/* Не даём сжимать и элементы личной переписки при длинной истории. */
.v42-mail-dialog .v42-mail-messages {
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.v42-mail-dialog .v42-mail-messages > .v42-mail-bubble {
  flex:0 0 auto!important;
  flex-shrink:0!important;
  height:auto!important;
  min-height:min-content!important;
  max-height:none!important;
  position:relative!important;
}
/* Последняя страховка для вложений: аудио не распирает пузырёк вбок. */
.v39-chat-section .v38-chat-message .v42-chat-message-content,
.v39-chat-section .v38-chat-message .v39-voice-item {
  min-width:0!important;
  max-width:100%!important;
}
.v39-chat-section .v38-chat-message audio {
  box-sizing:border-box!important;
  display:block;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
/* ===== END FERMA V42.10.58 ===== */


/* =====================================================================
   FERMA V42.10.59 - последовательные сообщения одного отправителя,
   компактные действия, пузырьки как в мессенджере в стиле старой фермы.
   ===================================================================== */
.v39-chat-section .v38-chat-log{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message{
  position:relative!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  flex:0 0 auto!important;flex-shrink:0!important;
  box-sizing:border-box!important;
  width:fit-content!important;min-width:0!important;min-height:min-content!important;
  max-width:min(87%,540px)!important;height:auto!important;max-height:none!important;
  padding:6px 9px 5px!important;
  margin-top:0!important;margin-bottom:9px!important;
  border:1px solid #c99c6a!important;
  border-left-width:1px!important;
  overflow:visible!important;
  box-shadow:0 2px 4px #25120b38,inset 0 1px 0 #fff6dd18!important;
  overflow-wrap:anywhere!important;
}
/* Sender appears on the right even if a staff/owner or voice rule is present. */
.v39-chat-section .v38-chat-log > article.v38-chat-message.v55-chat-sent{
  align-self:flex-end!important;margin-left:auto!important;margin-right:9px!important;
  background:linear-gradient(145deg,#67674e,#514d39)!important;
  color:#fff7e8!important;border-color:#a8b48a!important;
  border-radius:15px 4px 15px 15px!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v55-chat-received{
  align-self:flex-start!important;margin-left:9px!important;margin-right:auto!important;
  background:linear-gradient(145deg,#865c3d,#69442f)!important;
  color:#fff7e8!important;border-color:#c79e70!important;
  border-radius:4px 15px 15px 15px!important;
}
/* One username for a consecutive series. Subsequent bubbles nearly touch. */
.v39-chat-section .v38-chat-log > article.v38-chat-message.v59-chat-followup{
  margin-top:-6px!important;
  padding-top:4px!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v59-chat-followup.v55-chat-sent{
  border-top-right-radius:5px!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v59-chat-followup.v55-chat-received{
  border-top-left-radius:5px!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message > .v38-chat-meta{
  display:flex!important;align-items:center!important;gap:3px 5px!important;
  width:auto!important;max-width:100%!important;padding:0 0 2px!important;
  margin:0!important;min-height:0!important;
  border-bottom:1px solid #dbc49f36!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v59-chat-followup > .v38-chat-meta{
  justify-content:flex-end!important;border:0!important;
  padding:0!important;margin:0!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v59-followup-time{
  font-size:9px!important;line-height:1!important;opacity:.72!important;color:#f5e0be!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v42-chat-message-content{
  width:auto!important;min-width:0!important;max-width:100%!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-body{
  margin:1px 0 0!important;line-height:1.3!important;
}
/* Smaller than the earlier 27-50px squares, in one short row. */
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-tools{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:flex-end!important;align-self:flex-end!important;
  width:fit-content!important;min-width:0!important;max-width:100%!important;
  gap:2px!important;margin:2px 0 0!important;padding:0!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-tools button.v42-chat-icon-btn{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;
  justify-content:center!important;flex:0 0 21px!important;
  width:21px!important;min-width:21px!important;max-width:21px!important;
  height:21px!important;min-height:21px!important;max-height:21px!important;
  padding:0!important;margin:0!important;
  border:1px solid #b99267b3!important;border-radius:6px!important;
  background:#4d342878!important;color:#ffe6c0!important;
  font:500 13px/1 system-ui,sans-serif!important;
  box-shadow:none!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-tools button.v42-chat-icon-btn > span{
  display:inline-block!important;font:inherit!important;line-height:1!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-tools button.v40-delete-message{
  font-size:11px!important;
}
/* A small droplet/tail is drawn only on the last bubble in a run. */
.v39-chat-section .v38-chat-log > article.v38-chat-message::after{
  display:none!important;content:none!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v59-chat-end.v55-chat-sent::after{
  display:block!important;content:''!important;position:absolute!important;
  right:-7px!important;left:auto!important;top:1px!important;bottom:auto!important;
  width:9px!important;height:13px!important;
  background:#5c5b43!important;clip-path:polygon(0 0,100% 0,0 100%)!important;
  border:0!important;pointer-events:none!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v59-chat-end.v55-chat-received::after{
  display:block!important;content:''!important;position:absolute!important;
  left:-7px!important;right:auto!important;top:1px!important;bottom:auto!important;
  width:9px!important;height:13px!important;
  background:#7a5137!important;clip-path:polygon(0 0,100% 0,100% 100%)!important;
  border:0!important;pointer-events:none!important;
}
/* Private messages: no duplicated author on consecutive posts, keep timestamps. */
.v42-mail-dialog .v42-mail-messages > article.v42-mail-bubble{
  flex:0 0 auto!important;min-height:min-content!important;max-width:88%!important;
}
.v42-mail-dialog .v42-mail-messages > article.v42-mail-bubble.v59-mail-followup{
  margin-top:-6px!important;padding-top:5px!important;
}
.v42-mail-dialog .v42-mail-messages > article.v42-mail-bubble.v59-mail-followup .v42-mail-author{
  display:none!important;
}
.v42-mail-dialog .v42-mail-messages > article.v42-mail-bubble::after{
  display:none!important;content:none!important;
}
.v42-mail-dialog .v42-mail-messages > article.v42-mail-bubble.v59-mail-end.v42-mail-me::after{
  content:''!important;display:block!important;
  position:absolute!important;right:-7px!important;left:auto!important;top:1px!important;
  width:9px!important;height:13px!important;background:#506344!important;
  clip-path:polygon(0 0,100% 0,0 100%)!important;
}
.v42-mail-dialog .v42-mail-messages > article.v42-mail-bubble.v59-mail-end.v42-mail-them::after{
  content:''!important;display:block!important;
  position:absolute!important;left:-7px!important;right:auto!important;top:1px!important;
  width:9px!important;height:13px!important;background:#785039!important;
  clip-path:polygon(0 0,100% 0,100% 100%)!important;
}
@media(max-width:520px){
  .v39-chat-section .v38-chat-log > article.v38-chat-message{max-width:88%!important;}
  .v39-chat-section .v38-chat-log > article.v38-chat-message.v42-voice-message{
    min-width:min(215px,76%)!important;
  }
}
/* ===== END FERMA V42.10.59 ===== */


/* ======================================================================
   FERMA V42.10.60 — единственная мини-кнопка «Ответить» находится снаружи
   пузырька. Цитата и редактирование больше не занимают место в сообщении.
   Древесные оттенки, хвостики и группировка из V42.10.59 сохранены.
   ====================================================================== */
.v39-chat-section .v38-chat-log > article.v38-chat-message {
  box-sizing:border-box!important;
  width:fit-content!important;
  max-width:min(84%,520px)!important;
  min-width:0!important;
  min-height:min-content!important;
  padding:5px 8px 4px!important;
  margin-bottom:7px!important;
  overflow:visible!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v59-chat-followup {
  margin-top:-4px!important;
  padding-top:3px!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message > .v38-chat-meta {
  margin:0!important;
  min-height:0!important;
  padding:0 0 1px!important;
  gap:3px 4px!important;
  line-height:1.15!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v42-chat-message-content {
  min-height:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-body,
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-plain {
  margin:1px 0!important;
  padding:0!important;
  line-height:1.26!important;
}
/* At any size there is a safe side gutter for the reply arrow. */
.v39-chat-section .v38-chat-log > article.v38-chat-message.v55-chat-sent,
.v39-chat-section .v38-chat-log > article.v38-chat-message.v55-chat-received {
  max-width:min(82%, calc(100% - 56px))!important;
}
/* The actions are out of flow: they never increase message width or height. */
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-tools {
  position:absolute!important;
  display:block!important;
  width:24px!important;
  height:24px!important;
  min-height:0!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
  gap:0!important;
  top:auto!important;
  bottom:3px!important;
  border:0!important;
  box-shadow:none!important;
  z-index:2!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v55-chat-sent .v38-chat-tools {
  left:auto!important;
  right:calc(100% + 5px)!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message.v55-chat-received .v38-chat-tools {
  right:auto!important;
  left:calc(100% + 5px)!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-tools > button.v60-reply-button {
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  height:24px!important;
  min-height:24px!important;
  max-height:24px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #bb9063!important;
  border-radius:50%!important;
  background:linear-gradient(#694732,#4d3021)!important;
  color:#ffe6c4!important;
  box-shadow:0 1px 3px #24130b60!important;
  font:700 14px/1 sans-serif!important;
  cursor:pointer!important;
}
.v39-chat-section .v38-chat-log > article.v38-chat-message .v38-chat-tools > button.v60-reply-button:focus-visible {
  outline:2px solid #ffe4a7!important;
  outline-offset:2px!important;
}
@media(max-width:520px) {
  .v39-chat-section .v38-chat-log > article.v38-chat-message.v55-chat-sent,
  .v39-chat-section .v38-chat-log > article.v38-chat-message.v55-chat-received {
    max-width:min(80%, calc(100% - 58px))!important;
    padding:4px 7px!important;
  }
}
/* ===== END FERMA V42.10.60 ===== */


/* ========================================================================
   FERMA V42.10.62 — единый фон с колосьями и орнаментом.
   Исходный рисунок используется без изменений пикселей.
   Вся мебель / панели игры остаются поверх рисунка; JS не затронут.
   ======================================================================== */
html, html:root {
  background-color:#a87140!important;
}
body {
  background-color:#bd824a!important;
  background-image:url('v40-green-background.webp')!important;
  background-position:center center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}
/* A former global opaque shell concealed the full-page artwork. */
body > .shell,
body .shell {
  background-color:transparent!important;
  background-image:none!important;
  background:transparent!important;
}
/* Transparent game surfaces permit the background to remain visible in
   every farm section, while original wood cards remain intact. */
#game,
#game > #screen {
  background-color:transparent!important;
  /* Do not erase section-specific scene artwork and farm maps. */
}
/* On phones, keep all four ornamented corners fully visible without cropping.
   Fixed attachment anchors the art while long pages scroll. */
@media (max-width:720px) {
  body {
    background-position:center center!important;
    background-size:100% 100%!important;
  }
}
/* The picture remains recognisable without cropping on wide displays too. */
@media (min-width:721px) {
  body {
    background-position:center center!important;
    background-size:100% 100%!important;
  }
}
/* ===== END FERMA V42.10.62 ===== */


/* ===== FERMA V42.10.63 — narrow translucent main menu / exposed ornaments ===== */
/* The dark fill is removed from the sign asset itself, leaving only wood & moss. */
#game #screen .v35-main {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  gap:10px!important;
  padding:5px 0 38px!important;
  background:transparent!important;
}
#game #screen .v35-main .v35-major,
#game #screen .v35-main .v35-major.v40-collectives-link,
#game #screen .v35-main .v35-major.v46-minigame-link {
  box-sizing:border-box!important;
  width:calc(100% - clamp(48px, 14vw, 112px))!important;
  max-width:585px!important;
  min-height:0!important;
  height:70px!important;
  max-height:70px!important;
  margin:0 auto!important;
  padding:6px 10% 6px 10%!important;
  gap:8px!important;
  background:transparent url('v42_10_63_transparent_wood_button.webp') center / 100% 100% no-repeat!important;
  border:0!important;
  box-shadow:none!important;
  filter:drop-shadow(0 2px 2px #29130644)!important;
  color:#fff0d8!important;
}
#game #screen .v35-main .v35-farm-major {
  height:78px!important;
  max-height:78px!important;
}
#game #screen .v35-main .v35-major b {
  font-size:clamp(17px, 4.7vw, 23px)!important;
  line-height:1.08!important;
}
#game #screen .v35-main .v35-major small {
  font-size:clamp(9px, 2.5vw, 12px)!important;
  line-height:1.12!important;
}
#game #screen .v35-main .v35-major .v42-menu-icon,
#game #screen .v35-main .v35-major .dj-menu-icon,
#game #screen .v35-main .v35-major .v46-castle-menu-icon {
  width:clamp(32px, 10vw, 46px)!important;
  height:clamp(32px, 10vw, 46px)!important;
  max-width:46px!important;
  max-height:46px!important;
  object-fit:contain!important;
}
#game #screen .v35-main .v35-major .v35-major-arrow {
  right:7%!important;
  font-size:23px!important;
}
@media(max-width:600px) {
  #game #screen .v35-main {
    gap:9px!important;
    padding:6px 0 30px!important;
  }
  #game #screen .v35-main .v35-major,
  #game #screen .v35-main .v35-major.v40-collectives-link,
  #game #screen .v35-main .v35-major.v46-minigame-link {
    height:63px!important;
    min-height:63px!important;
    max-height:63px!important;
    padding:5px 10% 5px 10%!important;
    gap:6px!important;
  }
  #game #screen .v35-main .v35-farm-major {
    height:73px!important;
    min-height:73px!important;
    max-height:73px!important;
  }
  #game #screen .v35-main .v35-major b {
    font-size:clamp(16px, 4.5vw, 21px)!important;
  }
}
@media(max-width:330px) {
  #game #screen .v35-main .v35-major,
  #game #screen .v35-main .v35-major.v40-collectives-link,
  #game #screen .v35-main .v35-major.v46-minigame-link {
    width:calc(100% - 36px)!important;
    padding-left:9%!important;
    padding-right:9%!important;
  }
  #game #screen .v35-main .v35-major b {font-size:15px!important;}
}
/* ===== END FERMA V42.10.63 ===== */


/* ====================================================================
   FERMA V42.10.65 — full-screen common chat with wheat-ornament backdrop.
   Only the v39 chat overlay is affected. Reply/voice/emotes remain intact.
   ==================================================================== */
#v39ChatOverlay.v39-chat-overlay {
  position:fixed!important;
  /* Keep JS-controlled top and height for Android keyboard/visualViewport. */
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:none!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  overscroll-behavior:contain;
}
#v39ChatOverlay .v39-chat-shade {
  background:transparent!important;
}
#v39ChatOverlay > .v39-chat-panel {
  box-sizing:border-box!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:100%!important;
  max-height:100%!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background-color:#dba15f!important;
  background-image:url('v40-green-background.webp')!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:100% 100%!important;
  overflow:hidden!important;
}
#v39ChatOverlay .v39-chat-panel > .v39-chat-section {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:clamp(9px, 2vw, 16px) clamp(18px, 4.5vw, 48px) max(9px,env(safe-area-inset-bottom,0px))!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
/* Header stays readable against the pale parchment instead of a dark panel. */
#v39ChatOverlay .v39-chat-head {
  flex:0 0 auto!important;
  box-sizing:border-box!important;
  margin:5px 0 7px!important;
  padding:7px 8px!important;
  min-height:47px;
  color:#482b1b!important;
  border:1px solid rgba(141,87,46,.55);
  border-radius:12px;
  background:rgba(255,226,172,.72)!important;
  box-shadow:0 2px 5px rgba(92,55,24,.16);
}
#v39ChatOverlay .v39-chat-head b {
  color:#482b1b!important;
  font-size:clamp(17px,4.4vw,22px)!important;
  text-shadow:0 1px rgba(255,248,221,.55)!important;
}
#v39ChatOverlay .v39-chat-x {
  flex:0 0 42px;
  min-width:42px!important;
  width:42px!important;
  height:42px!important;
  background:#65402b!important;
  color:#ffeed6!important;
  border-color:#d5a571!important;
}
/* The scrollable message area shows the ornament instead of the old solid brown. */
#v39ChatOverlay .v39-chat-section > .v38-chat-log {
  box-sizing:border-box!important;
  flex:1 1 0!important;
  min-height:0!important;
  max-height:none!important;
  height:auto!important;
  width:100%!important;
  margin:0!important;
  padding:9px 4px 6px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  scrollbar-width:thin;
  scrollbar-color:#9b6943 transparent;
}
/* Form remains anchored to the bottom, with enough contrast for its tools. */
#v39ChatOverlay .v39-chat-section > .v38-chat-form {
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  margin:7px 0 0!important;
  padding:8px 8px 6px!important;
  border:1px solid rgba(224,172,104,.75);
  border-radius:13px;
  background:linear-gradient(180deg,rgba(107,63,36,.94),rgba(81,44,27,.96))!important;
  box-shadow:0 3px 9px rgba(52,28,12,.22);
}
#v39ChatOverlay .v39-chat-section .v41-autocorrect-label {
  color:#fff0d0!important;
}
@media(max-width:520px) {
  #v39ChatOverlay .v39-chat-panel > .v39-chat-section {
    padding:7px 14px max(7px,env(safe-area-inset-bottom,0px))!important;
  }
  #v39ChatOverlay .v39-chat-section > .v38-chat-log {
    padding:6px 3px 5px!important;
  }
  #v39ChatOverlay .v39-chat-section > .v38-chat-form {
    padding:6px 6px 4px!important;
  }
  #v39ChatOverlay .v39-chat-head {
    margin:3px 0 5px!important;
  }
}
@media(max-height:500px) {
  #v39ChatOverlay .v39-chat-panel > .v39-chat-section {
    padding-top:3px!important;
    padding-bottom:3px!important;
  }
  #v39ChatOverlay .v39-chat-head {
    min-height:37px!important;
    padding:2px 7px!important;
    margin:1px 0 3px!important;
  }
  #v39ChatOverlay .v39-chat-x {min-width:34px!important;width:34px!important;height:34px!important;flex-basis:34px;}
  #v39ChatOverlay .v39-chat-section > .v38-chat-form {margin-top:3px!important;padding-top:4px!important;}
}
/* ===== END FERMA V42.10.65 ===== */


/* ======================================================================
   FERMA V42.10.66 — fairy-tale Cyrillic typography for chat, warm ivory
   and muted gold; preserves creator outlined name, crowns and compact bubbles.
   Google Fonts are progressive enhancement; local Georgia/serif fallbacks work.
   ====================================================================== */
#v39ChatOverlay .v39-chat-head > b,
#v39ChatOverlay .v39-chat-head > strong {
  font-family:"Ruslan Display", "Palatino Linotype", Georgia, serif!important;
  font-weight:400!important;
  letter-spacing:.015em!important;
  color:#4a2a19!important;
  text-shadow:0 1px 0 #fff3d6, 0 2px 2px #76502b66!important;
}
/* Deliberately limit the new typography to common chat, not other screens. */
#v39ChatOverlay .v38-chat-log > article.v38-chat-message,
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v42-chat-message-content,
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-body,
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-plain,
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-meta {
  font-family:"Marmelad", "Trebuchet MS", Georgia, serif!important;
}
/* Warm readable parchment lettering on olive and dark brown bubbles. */
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-body,
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-body p,
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-plain,
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v42-chat-message-content {
  color:#fff0cf!important;
  font-size:clamp(14px,3.75vw,16px)!important;
  line-height:1.36!important;
  text-shadow:0 1px 1px rgba(41,22,12,.36)!important;
}
/* Non-owner player names: mellow gold instead of harsh white. */
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-meta b:not(.v42-owner-name),
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v42-user-name:not(.v42-owner-name),
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v42-chat-profile-link:not(.v42-owner-name) {
  font-family:"Marmelad", "Trebuchet MS", Georgia, serif!important;
  color:#ffe0a0!important;
  font-weight:700!important;
  font-size:clamp(13px,3.65vw,16px)!important;
  text-shadow:0 1px 1px rgba(51,27,12,.42)!important;
}
/* Do not change the creator's white-stroked black username. */
#v39ChatOverlay .v38-chat-log .v42-owner-name,
#v39ChatOverlay .v38-chat-log .v42-owner-name.v42-chat-profile-link {
  font-family:"Marmelad", "Trebuchet MS", Georgia, serif!important;
  color:#111!important;
  -webkit-text-stroke:.85px rgba(255,255,255,.98)!important;
  text-shadow:-1px -1px 0 rgba(255,255,255,.98),
              1px -1px 0 rgba(255,255,255,.98),
              -1px 1px 0 rgba(255,255,255,.98),
              1px 1px 0 rgba(255,255,255,.98),
              0 1px 3px rgba(0,0,0,.18)!important;
}
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-meta time,
#v39ChatOverlay .v38-chat-log > article.v38-chat-message .v59-followup-time {
  color:#d7c5a7!important;
  font-family:"Marmelad", "Trebuchet MS", Georgia, serif!important;
  font-size:10px!important;
  text-shadow:0 1px rgba(37,22,12,.25)!important;
  opacity:1!important;
}
/* Reply preview and quoted text get the same ink without losing a dim panel. */
#v39ChatOverlay .v38-chat-message .v38-chat-parent,
#v39ChatOverlay .v38-chat-message .v38-chat-quote,
#v39ChatOverlay .v38-chat-message .v38-chat-parent span {
  font-family:"Marmelad", "Trebuchet MS", Georgia, serif!important;
  color:#ffe7bb!important;
}
#v39ChatOverlay .v38-chat-message .v38-chat-parent b,
#v39ChatOverlay .v38-chat-message .v38-chat-quote b {
  color:#ffe0a0!important;
}
/* Keep all buttons, pictorial emojis, control geometry and owner badge intact. */
#v39ChatOverlay .v39-chat-section > .v38-chat-form textarea {
  font-family:"Marmelad", "Trebuchet MS", Georgia, serif!important;
  color:#4a2a19!important;
}
#v39ChatOverlay .v39-chat-section > .v38-chat-form textarea::placeholder {
  color:#87684a!important;
  opacity:1!important;
}
#v39ChatOverlay .v39-chat-section .v41-autocorrect-label {
  font-family:"Marmelad", "Trebuchet MS", Georgia, serif!important;
  color:#fff0cf!important;
}
@media (max-width:360px) {
  #v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-body,
  #v39ChatOverlay .v38-chat-log > article.v38-chat-message .v38-chat-plain {
    font-size:14px!important;
  }
}
/* ===== END FERMA V42.10.66 ===== */


/* ====================================================================
 FERMA V42.10.67 — one unified wheat-and-ornament wallpaper everywhere.
 Background is on body, NOT on individual scenery tiles. This removes
 opaque outer panels on profile, settings, ratings, online, marketplace,
 co-ops, forums, admin, storage, cellar and dialog screens.
 Keep game art (fields / animals / castle), buttons and text cards intact.
 ==================================================================== */
:root,html{background-color:#dba15f!important;}
html,body{min-height:100%;}
body{
  background-color:#dba15f!important;
  background-image:url('v40-green-background.webp')!important;
  background-position:center center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
  background-attachment:fixed!important;
}
body > .shell,body .shell,
#game,#game > #screen {
  background-color:transparent!important;
  background-image:none!important;
}
/* Full-page containers do not conceal wheat on the sides of the screen.
   Avoid resetting inner boards that paint actual farm, castle, or pens. */
#game #screen > .v35-main,
#game #screen > .v35-group,
#game #screen > .v35-area,
#game #screen > .v35-lottery,
#game #screen > .v31-garden,
#game #screen > .v35-garden,
#game #screen > .v43-groups,
#game #screen > .f17-root,
#game #screen > #forum17Root {
  background:transparent!important;
}
/* Rating: the former solid dark rectangle hid the background. Individual
   wooden player rows retain their high-contrast fill and borders. */
#game #screen .leader-list.v45-leader-list {
  background:transparent!important;
  border-color:rgba(125,78,40,.5)!important;
  box-shadow:none!important;
}
#game #screen .record-online,
#game #screen .v35-online-stats {
  background:rgba(255,229,190,.80)!important;
  border-color:#b5824c!important;
  color:#4e2e19!important;
}
/* Public profile, online list, storage & cellar have one large old dark
   wrapper; replace only that wrapper with translucent parchment. */
#game #screen > .v38-section {
  background:rgba(247,218,167,.40)!important;
  color:#4b2d1a!important;
  border-color:#aa783f!important;
  box-shadow:0 5px 16px rgba(69,39,20,.14)!important;
}
#game #screen > .v38-section .v38-section-title h2,
#game #screen > .v38-section .v38-section-title small,
#game #screen > .v38-section .v38-section-help,
#game #screen > .v38-section .v38-online-caption,
#game #screen > .v38-section .v38-empty {
  color:#4b2d1a!important;
  text-shadow:0 1px 0 rgba(255,241,214,.75)!important;
}
/* Legacy public player cards have a dark tinted backdrop: fade it enough
   to show the common artwork, but retain contrast for white lettering. */
#game #screen > .v40-section {
  background:rgba(64,36,21,.66)!important;
  border-color:#b58a53!important;
}
/* Main self profile retains its old-wood frame, photograph and crown. The
   backing is translucent so the farm wallpaper is still visible behind. */
#game #screen > section.profile-panel.v41-profile-panel.v51-wood-profile {
  background:linear-gradient(155deg,rgba(85,47,29,.81),rgba(48,27,18,.79))!important;
}
/* Settings inside profile and the achievements panel show the same parchment
   underneath; input fields, action buttons, and medals stay solid. */
#game #screen .v51-wood-profile .v50-profile-settings > .v41-profile-details-body,
#game #screen .v41-achievements-body {
  background:rgba(250,225,186,.82)!important;
  color:#4d311d!important;
}
#game #screen .v41-achievements-body .achievement-group {
  background:rgba(247,221,181,.64)!important;
}
/* Admin area — keep its forms and controls opaque and readable. */
#game #screen .v42-admin {
  background:rgba(247,220,174,.78)!important;
  border-color:#9c713e!important;
  color:#422b20!important;
}
/* Inbox is a separate overlay, so it needs the same artwork itself. */
.v42-mail-dialog,
.v41-mailbox-dialog {
  background-color:#dba15f!important;
  background-image:url('v40-green-background.webp')!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
  background-size:100% 100%!important;
}
.v42-mail-dialog > header,
.v41-mailbox-dialog > header {
  background:rgba(250,225,182,.83)!important;
  border:1px solid rgba(127,83,46,.45);
  border-radius:12px;
  padding:8px;
  color:#4b2c19!important;
}
.v42-mail-dialog > header > b,
.v41-mailbox-dialog > header > b {color:#4b2c19!important;}
/* Login: translucency keeps the same backdrop visible on the entrance. */
body .auth.card {background:rgba(255,244,220,.91)!important;}
@media(max-width:720px) {
  body {background-size:100% 100%!important;}
}
/* ===== END FERMA V42.10.67 ===== */


/* V42.10.68 — COMPACT FAIRY-TALE HOME HEADER. Keep all real controls and IDs. */
header.top.v31-top.v42-ref32-header.v42-43-header {
 position:relative!important;display:flex!important;flex-direction:column!important;
 justify-content:flex-end!important;align-items:center!important;
 box-sizing:border-box!important;width:100%!important;height:195px!important;
 min-height:195px!important;max-height:195px!important;
 padding:119px 10px 12px!important;gap:0!important;overflow:visible!important;
}
header.top.v42-43-header .v42-ref-brand{display:none!important;}
/* The little profile photo lives above the one-line header controls. */
header.top.v42-43-header .v68-avatar {
 position:absolute!important;z-index:8!important;top:64px!important;left:50%!important;
 transform:translateX(-50%)!important;display:grid!important;place-items:center!important;
 border:3px solid #7a421c!important;border-radius:50%!important;
 width:57px!important;height:57px!important;min-width:57px!important;min-height:57px!important;
 padding:3px!important;cursor:pointer!important;overflow:visible!important;
 background:radial-gradient(circle,#d8b46d,#765026)!important;
 box-shadow:0 0 0 2px #f3d188,0 3px 6px #32170b80!important;
}
header.top.v42-43-header .v68-avatar::before,
header.top.v42-43-header .v68-avatar::after{
 content:'🌾';position:absolute;z-index:2;top:21px;font-size:21px;
 pointer-events:none;text-shadow:0 1px 2px #4b2a0d;
}
header.top.v42-43-header .v68-avatar::before{left:-17px;transform:rotate(-22deg);}
header.top.v42-43-header .v68-avatar::after{right:-17px;transform:scaleX(-1) rotate(-22deg);}
header.top.v42-43-header .v68-avatar img{
 display:block!important;width:100%!important;height:100%!important;max-width:100%!important;
 max-height:100%!important;object-fit:cover!important;border-radius:50%!important;
}
header.top.v42-43-header .v68-avatar .v68-avatar-fallback{
 width:100%;height:100%;display:grid;place-items:center;font-size:26px;
 border-radius:50%;background:#be9157;
}
header.top.v42-43-header .v68-title-row{
 display:grid!important;grid-template-columns:minmax(61px,auto) minmax(0,1fr) minmax(120px,auto)!important;
 align-items:center!important;column-gap:3px!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:45px!important;min-height:45px!important;margin:0!important;padding:0!important;
 background:rgba(249,222,173,.09)!important;
}
header.top.v42-43-header .v42-ref-title{
 grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;
 justify-content:center!important;min-width:0!important;width:100%!important;
 padding:0 1px!important;margin:0!important;white-space:normal!important;
 text-align:center!important;background:none!important;border:0!important;box-shadow:none!important;
 color:#4b2a17!important;text-shadow:0 1px #ffe8b3,0 2px 2px #ebc384!important;
}
header.top.v42-43-header .v42-ref-title strong{
 color:#4d2917!important;font-family:'Ruslan Display','Marmelad',Georgia,serif!important;
 font-size:clamp(13px,3.4vw,21px)!important;font-weight:900!important;
 line-height:1.06!important;letter-spacing:-.02em!important;
 text-shadow:0 1px 0 #f9e2b8,1px 1px 2px #bd8759!important;
}
header.top.v42-43-header .v42-ref-title .v42-leaf{display:none!important;}
header.top.v42-43-header .v31-head-actions{
 grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;
 justify-content:flex-end!important;gap:3px!important;min-width:0!important;width:auto!important;
 max-width:100%!important;margin:0!important;padding:0!important;overflow:visible!important;
}
header.top.v42-43-header .v42-radio-compact{
 grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;
 justify-content:flex-start!important;gap:3px!important;flex:none!important;
 width:61px!important;min-width:61px!important;max-width:61px!important;
 height:29px!important;min-height:29px!important;padding:0!important;margin:0!important;
 background:transparent!important;border:none!important;box-shadow:none!important;
}
header.top.v42-43-header .v42-radio-compact[hidden]{display:none!important;}
header.top.v42-43-header .v42-radio-compact .v42-radio-label{display:none!important;}
header.top.v42-43-header .v42-radio-compact>button,
header.top.v42-43-header .v31-head-actions>button{
 display:grid!important;place-items:center!important;flex:0 0 28px!important;
 width:28px!important;min-width:28px!important;max-width:28px!important;
 height:29px!important;min-height:29px!important;max-height:29px!important;
 padding:0!important;margin:0!important;border-radius:8px!important;
 font-size:18px!important;line-height:1!important;
}
header.top.v42-43-header .v31-head-actions>button[hidden]{display:none!important;}
header.top.v42-43-header #fullscreenToggle span{display:none!important;}
header.top.v42-43-header #fullscreenToggle{font-size:21px!important;}
header.top.v42-43-header #logout{font-size:22px!important;}
/* Thin experience bar; preserves progress behavior and level icon. */
#game>.v34-status.v41-status.v42-43-status{
 height:35px!important;min-height:35px!important;max-height:35px!important;
 margin:-15px 0 0!important;padding:2px 14px!important;z-index:3!important;
}
#game>.v34-status.v41-status.v42-43-status #v41ExperienceBar.v42-43-xp{
 height:31px!important;min-height:31px!important;max-height:31px!important;gap:5px!important;
}
#game>.v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-level{
 width:33px!important;min-width:33px!important;max-width:33px!important;
 height:33px!important;max-height:33px!important;flex:0 0 33px!important;
}
#game>.v34-status.v41-status.v42-43-status #v41ExperienceBar svg.v42-ref32-star{
 width:33px!important;max-width:33px!important;height:34px!important;max-height:34px!important;
}
#game>.v34-status.v41-status.v42-43-status #v41ExperienceBar #v42HeaderLevel{font-size:12px!important;}
#game>.v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-track{
 height:19px!important;min-height:19px!important;max-height:19px!important;
}
#game>.v34-status.v41-status.v42-43-status #v41ExperienceBar .v42-ref32-track strong{font-size:clamp(10px,2.5vw,13px)!important;}
/* One thin wallet frame; keep actual balances + purchase buttons. */
#game>.v42-42-currency.v42-43-currency{
 height:65px!important;min-height:65px!important;max-height:65px!important;
 margin:0 0 3px!important;padding:12px 15px 8px!important;
}
#game>.v42-43-currency .v42-42-wallet.v41-inline-wallet{height:31px!important;min-height:31px!important;gap:6px!important;}
#game>.v42-43-currency .v42-42-wallet>div{
 height:29px!important;min-height:29px!important;border-radius:8px!important;
 padding:1px 4px!important;gap:3px!important;
}
#game>.v42-43-currency .v42-42-wallet>div>img.v42-wallet-currency-icon{
 width:21px!important;min-width:21px!important;max-width:21px!important;
 height:21px!important;max-height:21px!important;flex:0 0 21px!important;
}
#game>.v42-43-currency .v42-42-wallet>div>b{font-size:clamp(11px,2.8vw,15px)!important;}
#game>.v42-43-currency .v42-42-wallet .v42-ref-plus{
 width:23px!important;min-width:23px!important;max-width:23px!important;
 height:23px!important;min-height:23px!important;flex:0 0 23px!important;
 font-size:17px!important;
}
/* The avatar is now in the header: remove only the duplicated huge home profile card. */
#game #screen .v35-main>.v35-profile-card.v42-42-profile,
#game #screen .v35-main>.v35-profile-card{display:none!important;}
@media(max-width:390px){
 header.top.v42-43-header .v68-title-row{grid-template-columns:56px minmax(0,1fr) 121px!important;gap:1px!important;}
 header.top.v42-43-header .v42-radio-compact{width:56px!important;min-width:56px!important;max-width:56px!important;gap:1px!important;}
 header.top.v42-43-header .v42-radio-compact>button,
 header.top.v42-43-header .v31-head-actions>button{flex-basis:26px!important;width:26px!important;min-width:26px!important;max-width:26px!important;}
 header.top.v42-43-header .v31-head-actions{gap:2px!important;}
 header.top.v42-43-header .v42-ref-title strong{font-size:clamp(12px,3.6vw,15px)!important;}
}
/* End V42.10.68 */


/* V42.10.69 — remove huge dark banner/frame from top; preserve buttons and actions. */
#game>header.top.v31-top.v42-ref32-header.v42-43-header,
header.top.v31-top.v42-ref32-header.v42-43-header{
 display:flex!important;box-sizing:border-box!important;position:relative!important;
 height:66px!important;min-height:66px!important;max-height:66px!important;
 padding:6px 9px!important;margin:0!important;
 justify-content:center!important;align-items:center!important;overflow:visible!important;
 background:transparent!important;background-image:none!important;
 border:0!important;box-shadow:none!important;border-radius:0!important;
}
header.top.v42-43-header::before,header.top.v42-43-header::after{
 content:none!important;display:none!important;background:none!important;
}
header.top.v42-43-header .v68-avatar{display:none!important;}
header.top.v42-43-header .v69-header-row{
 display:grid!important;grid-template-columns:92px minmax(0,1fr) 100px!important;
 align-items:center!important;gap:2px!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 height:42px!important;min-height:42px!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 padding:0!important;margin:0!important;
}
header.top.v42-43-header .v69-left-controls{
 display:flex!important;grid-column:1!important;grid-row:1!important;
 justify-content:flex-start!important;align-items:center!important;gap:2px!important;
 width:92px!important;min-width:0!important;overflow:visible!important;
}
header.top.v42-43-header .v69-left-controls #farmRadioBar{
 display:flex!important;position:static!important;grid-column:auto!important;grid-row:auto!important;
 width:auto!important;min-width:0!important;max-width:none!important;flex:none!important;
 gap:2px!important;background:none!important;
}
header.top.v42-43-header .v69-left-controls #farmRadioBar[hidden],
header.top.v42-43-header .v69-left-controls #v41MailboxButton[hidden]{display:none!important;}
header.top.v42-43-header .v69-left-controls #v41MailboxButton{
 display:grid!important;place-items:center!important;position:relative!important;
 width:28px!important;min-width:28px!important;max-width:28px!important;
 height:29px!important;min-height:29px!important;max-height:29px!important;
 padding:0!important;margin:0!important;flex:0 0 28px!important;font-size:17px!important;
 border-radius:8px!important;
}
header.top.v42-43-header .v69-left-controls #v41MailboxButton[hidden]{display:none!important;}
header.top.v42-43-header .v42-ref-title{
 grid-column:2!important;grid-row:1!important;position:relative!important;display:flex!important;
 justify-content:center!important;align-items:center!important;
 min-width:0!important;width:100%!important;margin:0!important;padding:2px 0!important;
 background:rgba(255,232,185,.72)!important;border:1px solid rgba(142,88,41,.6)!important;
 border-radius:10px!important;box-shadow:0 1px 3px #391d1044!important;
}
header.top.v42-43-header .v42-ref-title strong{
 display:block!important;width:100%!important;white-space:normal!important;overflow-wrap:normal!important;
 font-family:'Marmelad',Georgia,serif!important;
 font-size:clamp(12px,3.55vw,16px)!important;line-height:1.12!important;
 font-weight:900!important;letter-spacing:-.035em!important;text-align:center!important;
 color:#472311!important;-webkit-text-stroke:.25px #472311!important;
 text-shadow:0 1px 0 #ffedc9,0 0 2px #fff0cd!important;
}
header.top.v42-43-header .v31-head-actions{
 grid-column:3!important;grid-row:1!important;width:100px!important;
 min-width:0!important;max-width:100px!important;
 justify-content:flex-end!important;align-items:center!important;gap:2px!important;
}
header.top.v42-43-header .v31-head-actions>button{
 width:30px!important;min-width:30px!important;max-width:30px!important;
 height:30px!important;min-height:30px!important;max-height:30px!important;
 flex:0 0 30px!important;
}
/* The experience strip is no longer pulled over the removed header picture. */
#game>.v34-status.v41-status.v42-43-status{
 margin:0!important;height:35px!important;min-height:35px!important;max-height:35px!important;
}
/* A discreet profile link at the very bottom of the main menu, no wood rectangle. */
#game #screen .v35-main>.v69-bottom-profile{
 display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
 width:max-content!important;min-height:36px!important;margin:15px auto 24px!important;
 padding:5px 14px!important;border:0!important;background:transparent!important;
 box-shadow:none!important;color:#4a2816!important;
 font:700 17px 'Marmelad',Georgia,serif!important;
 text-shadow:0 1px 0 #ffe0a5!important;cursor:pointer!important;
}
#game #screen .v35-main>.v69-bottom-profile:hover,
#game #screen .v35-main>.v69-bottom-profile:focus-visible{
 text-decoration:underline!important;outline-offset:4px!important;
}
@media(max-width:390px){
 header.top.v42-43-header .v69-header-row{grid-template-columns:83px minmax(0,1fr) 94px!important;gap:1px!important;}
 header.top.v42-43-header .v69-left-controls{width:83px!important;gap:1px!important;}
 header.top.v42-43-header .v69-left-controls #farmRadioBar{gap:1px!important;}
 header.top.v42-43-header .v31-head-actions{width:94px!important;max-width:94px!important;gap:1px!important;}
 header.top.v42-43-header .v31-head-actions>button{flex-basis:29px!important;width:29px!important;min-width:29px!important;max-width:29px!important;}
 header.top.v42-43-header .v42-ref-title strong{font-size:clamp(11px,3.5vw,14px)!important;}
}
/* End V42.10.69 */


/* V42.10.70 — gentle dark parchment tint INSIDE the transparent wood signs.
   The wheat wallpaper and the old wood edges remain exposed. */
#game #screen .v35-main .v35-major,
#game #screen .v35-main .v35-major.v40-collectives-link,
#game #screen .v35-main .v35-major.v46-minigame-link {
  position:relative!important;
  isolation:isolate!important;
}
#game #screen .v35-main .v35-major::before {
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:11px 8.8%!important;
  border-radius:5px!important;
  pointer-events:none!important;
  z-index:0!important;
  background:linear-gradient(180deg,rgba(106,61,34,.38),rgba(79,41,24,.40))!important;
  box-shadow:inset 0 1px 2px rgba(64,31,16,.11)!important;
}
#game #screen .v35-main .v35-major > *:not(.v35-major-arrow) {
  position:relative;
  z-index:1;
}
#game #screen .v35-main .v35-major .v35-major-arrow {
  z-index:1!important;
}
@media(max-width:600px) {
  #game #screen .v35-main .v35-major::before {
    inset:10px 8.8%!important;
  }
}
/* End V42.10.70 */


/* V42.10.74 — REMOVE dark rectangles around menu frames.
   Uses a new transparent frame asset name to beat browser cache and clears
   any rectangular backdrop from the button element itself. */
#game #screen .v35-main,
#game #screen .v35-main .v35-major,
#game #screen .v35-main .v35-major.v40-collectives-link,
#game #screen .v35-main .v35-major.v46-minigame-link {
  background-color:transparent!important;
  box-shadow:none!important;
}
#game #screen .v35-main .v35-major,
#game #screen .v35-main .v35-major.v40-collectives-link,
#game #screen .v35-main .v35-major.v46-minigame-link {
  background-image:url('v42_10_74_frame_only_menu.webp')!important;
  background-repeat:no-repeat!important;
  background-position:center center!important;
  background-size:100% 100%!important;
  border:none!important;
  overflow:visible!important;
  filter:drop-shadow(0 2px 2px #29130633)!important;
}
#game #screen .v35-main .v35-major::after,
#game #screen .v35-main .v35-major.v40-collectives-link::after,
#game #screen .v35-main .v35-major.v46-minigame-link::after {
  content:none!important;
  display:none!important;
}
#game #screen .v35-main > * {
  background-color:transparent!important;
}
/* keep only a soft inner tint for readability, not outside the frame */
#game #screen .v35-main .v35-major::before {
  inset:11px 22px!important;
  border-radius:7px!important;
  background:linear-gradient(180deg,rgba(119,71,42,.34),rgba(84,48,28,.36))!important;
}
@media(max-width:600px){
  #game #screen .v35-main .v35-major::before {
    inset:10px 18px!important;
  }
}
/* End V42.10.74 */


/* FERMA V42.10.75: only the carved wooden sign, no dark backing outside. */
#game #screen .v35-main .v35-major,
#game #screen .v35-main .v35-major.v40-collectives-link,
#game #screen .v35-main .v35-major.v46-minigame-link {
  background:transparent url('v42_10_75_filled_frame_clear_outside.webp') center/100% 100% no-repeat!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
  filter:none!important;
  overflow:visible!important;
}
/* Color fill is already INSIDE the image within the wood boundary. */
#game #screen .v35-main .v35-major::before,
#game #screen .v35-main .v35-major::after {
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
/* Main menu transparent canvas between individual signs */
#game #screen .v35-main {background:transparent!important;box-shadow:none!important;}
/* END FERMA V42.10.75 */


/* V42.10.77 — full uniform brown fill BETWEEN wooden posts; no arrows */
#game #screen .v35-main .v35-major,
#game #screen .v35-main .v35-major.v40-collectives-link,
#game #screen .v35-main .v35-major.v46-minigame-link {
  background:transparent url('v42_10_77_full_brown_wood_frame.webp') center / 100% 100% no-repeat!important;
}
#game #screen .v35-main .v35-major-arrow,
#game #screen .v35-main .v35-major .v35-major-arrow,
#game #screen .v35-main .v35-major > .v35-major-arrow,
#game #screen .v35-major-arrow {
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  width:0!important;
  height:0!important;
  pointer-events:none!important;
}
/* End V42.10.77 */


/* FERMA.LOL V42.10.80 — city navigation matches the home menu exactly.
   Only the CITY menu is affected; game screens/shops not modified. */
#game #screen .v35-group.v35-city-menu {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:12px 0 34px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:10px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#game #screen .v35-city-menu > h2 {
  width:100%!important;
  margin:0 0 7px!important;
  padding:7px 0!important;
  text-align:center!important;
  color:#4b2a17!important;
  font-family:'Ruslan Display','Marmelad',Georgia,serif!important;
  font-size:clamp(20px,5vw,28px)!important;
  line-height:1.25!important;
  text-shadow:0 1px 0 #ffe6bd,0 2px 2px #ad7847!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#game #screen .v35-city-menu > button.v35-link {
  box-sizing:border-box!important;
  flex:none!important;
  width:calc(100% - clamp(48px,14vw,112px))!important;
  max-width:585px!important;
  height:70px!important;
  min-height:70px!important;
  max-height:70px!important;
  margin:0 auto!important;
  padding:6px 9% !important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  text-align:center!important;
  position:relative!important;
  background:transparent url('v42_10_77_full_brown_wood_frame.webp') center / 100% 100% no-repeat!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  outline-offset:2px!important;
  color:#fff0d8!important;
  text-shadow:0 2px 3px #321b0f!important;
}
#game #screen .v35-city-menu > button.v35-link:nth-of-type(4) {
  margin-top:0!important;
}
#game #screen .v35-city-menu > button.v35-link b {
  font-family:'Marmelad',system-ui,sans-serif!important;
  font-size:clamp(17px,4.7vw,23px)!important;
  font-weight:900!important;
  line-height:1.08!important;
  color:#fff0d8!important;
  text-shadow:0 2px 3px #3d2414!important;
}
#game #screen .v35-city-menu > button.v35-link .v35-link-icon {
  display:grid!important;
  place-items:center!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  font-size:31px!important;
  line-height:1!important;
}
#game #screen .v35-city-menu > button.v35-link .v35-link-icon img,
#game #screen .v35-city-menu > button.v35-link .v42-menu-icon {
  max-width:42px!important;
  max-height:42px!important;
  width:42px!important;
  height:42px!important;
  object-fit:contain!important;
}
#game #screen .v35-city-menu > button.v35-link .v35-arrow {
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(max-width:600px) {
  #game #screen .v35-city-menu > button.v35-link {
    height:63px!important;
    min-height:63px!important;
    max-height:63px!important;
    padding:5px 9%!important;
    gap:6px!important;
  }
  #game #screen .v35-city-menu > button.v35-link .v35-link-icon {
    flex-basis:36px!important;
    width:36px!important;
    height:36px!important;
    font-size:28px!important;
  }
  #game #screen .v35-city-menu > button.v35-link .v42-menu-icon,
  #game #screen .v35-city-menu > button.v35-link .v35-link-icon img {
    width:36px!important;
    height:36px!important;
  }
}
/* END V42.10.80 */


/* FERMA.LOL V42.10.83 — unified inner navigation, install by replacing assets/style.css.
   Inherits all home/city design changes through V42.10.80. */

/* FARM submenu: the same carved wood sign as CITY, with fully filled center. */
#game #screen > .v35-group:not(.v35-city-menu) {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:12px 0 45px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:10px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#game #screen > .v35-group:not(.v35-city-menu) > h2 {
  width:100%!important;
  margin:0 0 7px!important;
  padding:7px 0!important;
  text-align:center!important;
  color:#4b2a17!important;
  font-family:'Ruslan Display','Marmelad',Georgia,serif!important;
  font-size:clamp(20px,5vw,28px)!important;
  line-height:1.25!important;
  text-shadow:0 1px #ffe6bd,0 2px 2px #ad7847!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link {
  box-sizing:border-box!important;
  flex:none!important;
  width:calc(100% - clamp(48px,14vw,112px))!important;
  max-width:585px!important;
  height:70px!important;
  min-height:70px!important;
  max-height:70px!important;
  margin:0 auto!important;
  padding:6px 9%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  text-align:center!important;
  position:relative!important;
  background:transparent url('v42_10_77_full_brown_wood_frame.webp') center/100% 100% no-repeat!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
  color:#fff0d8!important;
  text-shadow:0 2px 3px #321b0f!important;
}
#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link b {
  font-family:'Marmelad',system-ui,sans-serif!important;
  font-size:clamp(17px,4.7vw,23px)!important;
  font-weight:900!important;
  line-height:1.08!important;
  color:#fff0d8!important;
  text-shadow:0 2px 3px #3d2414!important;
}
#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v35-link-icon {
  display:grid!important;
  place-items:center!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  font-size:31px!important;
  line-height:1!important;
}
#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v35-link-icon img,
#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v42-menu-icon {
  width:42px!important;
  height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  object-fit:contain!important;
}
#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v35-arrow {
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
@media(max-width:600px){
  #game #screen > .v35-group:not(.v35-city-menu) > button.v35-link {
    height:63px!important;
    min-height:63px!important;
    max-height:63px!important;
    padding:5px 9%!important;
    gap:6px!important;
  }
  #game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v35-link-icon {
    flex-basis:36px!important;
    width:36px!important;
    height:36px!important;
    font-size:28px!important;
  }
  #game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v42-menu-icon,
  #game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v35-link-icon img {
    width:36px!important;
    height:36px!important;
  }
}

/* Shared inner-page palette, only their outer containers/headings, not game boards. */
#game #screen > .v35-area,
#game #screen > .v38-section,
#game #screen > .v35-lottery,
#game #screen > .v43-groups {
  border-color:rgba(126,77,44,.4)!important;
  box-shadow:none!important;
}
#game #screen > .v35-area > h2,
#game #screen > .v38-section > h2,
#game #screen > .v35-lottery > h2,
#game #screen > .v43-groups > h2 {
  color:#4b2a17!important;
  font-family:'Ruslan Display','Marmelad',Georgia,serif!important;
  text-shadow:0 1px #ffe6bd!important;
}
/* Keep the floating "Домой" away from admin entry and last controls. */
#game:not(.hub-mode) > #screen { padding-bottom:140px!important; }
#game #screen .v42-admin-entry { margin-bottom:110px!important; }
#v34HomeFloating { bottom:calc(16px + env(safe-area-inset-bottom,0px))!important; }
/* END V42.10.83 */

/* V42.10.85 — clean collective homepage, same farm parchment/wood palette */
#game #screen > .v43-groups.v85-collective {background:transparent!important;border:0!important;box-shadow:none!important;padding:0 4px 100px!important;}
#game #screen .v85-collective-name {display:flex;align-items:center;justify-content:center;gap:9px;margin:10px auto 17px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;}
#game #screen .v85-collective-name h2 {margin:0!important;color:#56331e!important;font-size:clamp(21px,5vw,29px)!important;line-height:1.18!important;font-family:'Marmelad',Georgia,serif!important;}
#game #screen .v85-level {width:34px;height:34px;min-width:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid #bb9567;background:radial-gradient(circle at 36% 24%,#996c46,#61391f);color:#fff0d5;font-size:16px;font-weight:900;box-shadow:0 2px 5px #351b1355;}
#game #screen .v85-collective .v43-content {display:flex;flex-direction:column;gap:13px;}
#game #screen .v85-collective .v43-card {margin:0!important;padding:13px!important;border:2px solid #a5794c!important;border-radius:13px!important;background:linear-gradient(135deg,#f3e3c6,#e3c59d)!important;box-shadow:0 3px 7px #502c1822!important;color:#50321d!important;}
#game #screen .v85-ann-head {display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;}
#game #screen .v85-ann-head h3 {margin:0!important;}
#game #screen .v85-ann-text {white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 2px!important;}
#game #screen .v85-ann-form[hidden] {display:none!important;}
#game #screen .v85-is-editing .v85-ann-text {display:none!important;}
#game #screen .v85-ann-form {margin-top:10px!important;}
#game #screen .v85-ann-actions {display:flex;gap:7px;flex-wrap:wrap;}
#game #screen .v85-ann-form textarea {width:100%;box-sizing:border-box;}
#game #screen .v85-collective .v43-chat-list {max-height:340px;min-height:145px;overflow-y:auto;border-radius:10px;background:#f4dfc1;padding:8px;}
#game #screen .v85-collective .v43-chat-compose {display:flex;gap:8px;align-items:flex-end;}
#game #screen .v85-collective .v43-chat-compose textarea {flex:1;min-width:0;}
#game #screen .v85-member-list {display:flex;flex-direction:column;gap:7px;margin-top:10px;}
#game #screen .v85-member {display:flex;align-items:center;gap:9px;padding:7px 9px;border-radius:10px;background:#fff5e5a8;border:1px solid #b78f633f;}
#game #screen .v85-member-avatar {width:33px;height:33px;min-width:33px;display:grid;place-items:center;border-radius:50%;background:#8d6844;box-shadow:0 0 0 2px #e8cda5;font-size:19px;}
#game #screen .v85-member-avatar {position:relative;overflow:hidden;}
#game #screen .v85-member-avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
#game #screen .v85-member-avatar.is-online {box-shadow:0 0 0 2px #9de77a,0 0 10px 3px #6aca4099;}
#game #screen .v85-member-avatar.is-offline {filter:grayscale(1);box-shadow:0 0 0 2px #ab9d8b;}
#game #screen .v85-member-detail {min-width:0;display:flex;flex-direction:column;gap:2px;}
#game #screen .v85-member-detail small {color:#826243;font-size:11px;}
#game #screen .v85-collective .v43-footer {margin:24px auto 80px!important;text-align:center;}
@media(max-width:520px){#game #screen .v85-collective .v43-chat-compose{flex-wrap:wrap;}#game #screen .v85-collective .v43-chat-compose textarea{flex-basis:100%;}#game #screen .v85-collective .v43-card{padding:10px!important;}}
/* Online page: only people actually listed as online receive the glow; avatar photo and fallback alike. */
#game #screen .v38-online-player .v42-online-avatar {box-shadow:0 0 0 1px #9fde75,0 0 11px 3px #71c83b88!important;filter:none!important;}


/* V42.10.86: compact announcement, dark cooperative chat, readable members,
   and brown sending arrows in cooperative + public chat. */
#game #screen .v85-collective .v85-announcement {
  padding:9px 12px 10px!important;
  background:linear-gradient(180deg,#765038,#573522)!important;
  border-color:#aa7b49!important;
  color:#fff0d9!important;
}
#game #screen .v85-collective .v85-ann-head {gap:7px!important;flex-wrap:nowrap!important;align-items:center!important;}
#game #screen .v85-collective .v85-ann-head h3 {
  font-size:clamp(14px,3.5vw,18px)!important;line-height:1.2!important;
  color:#ffe4b2!important;text-shadow:0 1px 2px #261207!important;
}
#game #screen .v85-collective .v85-edit {padding:6px 9px!important;min-height:31px!important;font-size:11px!important;flex:0 0 auto!important;}
#game #screen .v85-collective .v85-ann-text {
  color:#fff2df!important;font-size:13px!important;line-height:1.4!important;
  margin:7px 0 0!important;min-height:0!important;max-height:110px!important;
  overflow:auto!important;white-space:pre-wrap!important;
}
#game #screen .v85-collective .v85-ann-form {margin:9px 0 0!important;}
#game #screen .v85-collective .v85-ann-form label,
#game #screen .v85-collective .v85-ann-form textarea {
  color:#fff3df!important;opacity:1!important;visibility:visible!important;
}
#game #screen .v85-collective .v85-ann-form textarea {
  box-sizing:border-box!important;display:block!important;width:100%!important;
  min-height:84px!important;max-height:170px!important;
  padding:10px!important;background:#fff4dc!important;
  color:#382011!important;-webkit-text-fill-color:#382011!important;
  font-size:16px!important;font-weight:600!important;line-height:1.45!important;
  caret-color:#44220f!important;border:2px solid #b58756!important;
  text-shadow:none!important;opacity:1!important;
}
#game #screen .v85-collective .v85-ann-form textarea::placeholder {color:#745438!important;opacity:1!important;}
#game #screen .v85-collective .v85-ann-form textarea:focus {outline:2px solid #f3c477!important;outline-offset:1px!important;}
#game #screen .v85-collective .v85-ann-form .v43-button.v43-primary {background:linear-gradient(#a67545,#724522)!important;border-color:#d2a673!important;color:#fff3dd!important;}
/* Cooperative chat: warm dark wooden panel, WhatsApp-like compact left/right bubbles. */
#game #screen .v85-collective .v43-card:has(.v43-chat-list) {
  padding:10px!important;background:linear-gradient(180deg,#6a432c,#4b2d1e)!important;
  border-color:#a57847!important;color:#ffe8c7!important;
}
#game #screen .v85-collective .v43-card:has(.v43-chat-list) h3 {
  color:#ffdfac!important;text-shadow:0 1px 2px #281408!important;margin-bottom:3px!important;
}
#game #screen .v85-collective .v43-card:has(.v43-chat-list) .v43-muted {
  color:#dfbf96!important;font-size:11px!important;line-height:1.3!important;margin:3px 0 7px!important;
}
#game #screen .v85-collective .v43-chat-list {
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
  gap:7px!important;max-height:310px!important;min-height:175px!important;
  padding:10px 8px!important;margin:5px 0 8px!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  border:1px solid #956a42!important;border-radius:12px!important;
  background:linear-gradient(#78553a,#63422c)!important;
  box-shadow:inset 0 2px 8px #2a160a44!important;
}
#game #screen .v85-collective .v43-chat-row {
  box-sizing:border-box!important;align-self:flex-start!important;
  width:fit-content!important;max-width:87%!important;min-width:80px!important;
  padding:6px 9px!important;margin:0!important;
  border:1px solid #ab8159!important;
  border-radius:3px 12px 12px 12px!important;
  background:#e7c99d!important;
  color:#402819!important;box-shadow:0 2px 3px #28170c2a!important;
}
#game #screen .v85-collective .v43-chat-row.v86-chat-own {
  align-self:flex-end!important;border-radius:12px 3px 12px 12px!important;
  background:#b89264!important;border-color:#cfab7b!important;
}
#game #screen .v85-collective .v43-chat-row>div {gap:12px!important;align-items:baseline!important;}
#game #screen .v85-collective .v43-chat-row .v42-chat-profile-link {
  color:#59361f!important;text-shadow:none!important;font-weight:900!important;
  font-size:11px!important;text-decoration:none!important;
}
#game #screen .v85-collective .v43-chat-row time {
  color:#755337!important;font-size:9px!important;flex-shrink:0!important;
}
#game #screen .v85-collective .v43-chat-row p {
  margin:3px 0 0!important;color:#352114!important;
  font-size:13px!important;line-height:1.36!important;
  text-shadow:none!important;overflow-wrap:anywhere!important;
}
#game #screen .v85-collective .v43-chat-compose {
  display:flex!important;flex-wrap:nowrap!important;gap:6px!important;
  align-items:flex-end!important;margin:0!important;
}
#game #screen .v85-collective .v43-chat-compose textarea {
  flex:1 1 auto!important;min-width:0!important;width:auto!important;
  min-height:43px!important;height:43px!important;max-height:90px!important;
  padding:9px 11px!important;border:1px solid #c99e66!important;
  border-radius:12px!important;background:#fff1d9!important;
  color:#3c2413!important;-webkit-text-fill-color:#3c2413!important;
  font-size:14px!important;line-height:1.3!important;
  caret-color:#4a2b19!important;box-shadow:none!important;
}
#game #screen .v85-collective .v43-chat-compose textarea::placeholder {color:#8b7155!important;opacity:1!important;}
#game #screen .v85-collective .v43-chat-compose .v86-chat-send {
  display:grid!important;place-items:center!important;
  flex:0 0 45px!important;width:45px!important;min-width:45px!important;
  height:43px!important;min-height:43px!important;
  padding:0!important;border:2px solid #cda06b!important;
  border-radius:12px!important;
  background:linear-gradient(160deg,#a97948,#714421 70%,#56311c)!important;
  color:#fff0cc!important;box-shadow:inset 0 1px #e2bf8c88,0 2px 5px #23130777!important;
  font-size:23px!important;text-shadow:0 1px 2px #2f190e!important;
}
#game #screen .v85-collective .v43-chat-compose .v86-chat-send:active {filter:brightness(1.18)!important;}
#game #screen .v85-collective .v43-reload {
  margin-top:7px!important;padding:5px 9px!important;font-size:10px!important;
  background:linear-gradient(#805435,#603b23)!important;border-color:#b88855!important;
}
/* Members panel: strong contrast for both role and player names. */
#game #screen .v85-collective .v85-member-section {
  background:linear-gradient(180deg,#6c462d,#47291b)!important;
  border-color:#a77748!important;
  color:#fff0d6!important;
}
#game #screen .v85-collective .v85-member-section h3 {
  color:#ffe0ab!important;text-shadow:0 1px 2px #1d0f07!important;
}
#game #screen .v85-collective .v85-member {
  background:linear-gradient(105deg,#654029,#55331f)!important;
  border:1px solid #a57b4c!important;border-radius:10px!important;
  box-shadow:inset 0 1px #c6a07433!important;
  padding:9px 10px!important;min-height:56px!important;
}
#game #screen .v85-collective .v85-member .v43-player {
  color:#fff0d2!important;-webkit-text-fill-color:#fff0d2!important;
  font-size:14px!important;font-weight:900!important;
  text-shadow:0 1px 2px #1b0d05!important;opacity:1!important;
}
#game #screen .v85-collective .v85-member-detail small {
  color:#e4bf8f!important;font-size:12px!important;opacity:1!important;
}
/* Main chat's arrow: replace bright green with aged wood. */
#game .v39-chat-section .v42-chat-send,
#v39ChatOverlay .v39-chat-section .v42-chat-send {
  background:linear-gradient(155deg,#b17d48,#774720 72%,#5b3219)!important;
  color:#fff0d0!important;-webkit-text-fill-color:#fff0d0!important;
  border:2px solid #d0a16d!important;border-radius:12px!important;
  box-shadow:inset 0 1px #f0cf9d88,0 2px 5px #28130777!important;
  text-shadow:0 1px 2px #2d1609!important;
}
#game .v39-chat-section .v42-chat-send:active,
#v39ChatOverlay .v39-chat-section .v42-chat-send:active {filter:brightness(1.15)!important;}
@media(max-width:520px){
 #game #screen .v85-collective .v43-chat-compose {flex-wrap:nowrap!important;}
 #game #screen .v85-collective .v43-chat-compose textarea {flex-basis:auto!important;min-width:0!important;}
 #game #screen .v85-collective .v85-ann-head {flex-wrap:wrap!important;}
 #game #screen .v85-collective .v43-chat-row {max-width:92%!important;}
}

/* V42.10.87 — compact role chooser on the collective members list. */
#game #screen .v85-collective .v87-member {display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important;}
#game #screen .v85-collective .v87-member .v85-member-detail {flex:1 1 auto!important;min-width:0!important;}
#game #screen .v85-collective .v87-role-form {display:flex!important;gap:5px!important;align-items:center!important;flex:0 0 auto!important;max-width:57%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
#game #screen .v85-collective .v87-role-form label {min-width:0!important;margin:0!important;padding:0!important;}
#game #screen .v85-collective .v87-role-label {display:block!important;font-size:9px!important;color:#d3ae81!important;margin-bottom:2px!important;}
#game #screen .v85-collective .v87-role-form select {max-width:145px!important;width:100%!important;min-height:32px!important;padding:4px 5px!important;background:#6e492f!important;border:1px solid #b78957!important;border-radius:8px!important;color:#fff0d6!important;font:600 11px system-ui,sans-serif!important;}
#game #screen .v85-collective .v87-role-apply {flex:0 0 31px!important;width:31px!important;height:32px!important;border-radius:8px!important;background:#7f532f!important;border:1px solid #c39661!important;color:#fff2d8!important;font-weight:900!important;cursor:pointer!important;}
#game #screen .v85-collective .v87-role-apply:active {background:#a47444!important;}
#game #screen .v35-city-menu .v87-city-game {box-sizing:border-box!important;}
@media(max-width:440px){#game #screen .v85-collective .v87-member{gap:4px!important}#game #screen .v85-collective .v87-member .v85-member-avatar{flex:0 0 28px!important;width:28px!important}#game #screen .v85-collective .v87-role-form{max-width:51%!important}#game #screen .v85-collective .v87-role-form select{font-size:10px!important;padding:3px!important}#game #screen .v85-collective .v87-role-apply{flex-basis:27px!important;width:27px!important}}

/* FERMA.LOL V42.10.89 — workshop and collective ranking */
#game #screen .section-head:has(+.machine-store){justify-content:center!important;gap:12px!important;flex-wrap:wrap!important;text-align:center!important;}
#game #screen .section-head:has(+.machine-store) h2{font-family:'Marmelad',Georgia,serif!important;font-size:clamp(22px,4vw,32px)!important;color:#5c351a!important;}
#game #screen .section-head:has(+.machine-store) small{flex-basis:100%!important;text-align:center!important;}
#game #screen .machine-store{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;max-width:1320px!important;margin:12px auto 26px!important;align-items:stretch!important;}
#game #screen .machine-card{min-width:0!important;min-height:190px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;padding:14px 10px!important;text-align:center!important;border:5px ridge #a67542!important;border-radius:13px!important;background:linear-gradient(165deg,#936540,#633d24 65%,#4c2c1b)!important;box-shadow:inset 0 1px #eec79388,0 4px 9px #2b160c66!important;}
#game #screen .machine-icon{font-size:clamp(33px,4vw,53px)!important;line-height:1.2!important;filter:drop-shadow(0 3px 2px #2d190e88)!important;}
#game #screen .machine-about{flex:1!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:5px!important;}
#game #screen .machine-about h3{font-size:clamp(13px,1.4vw,17px)!important;line-height:1.24!important;color:#fff2d7!important;margin:0!important;overflow-wrap:anywhere!important;}
#game #screen .machine-about p{font-size:10px!important;line-height:1.32!important;color:#ead5b5!important;margin:0!important;}
#game #screen .machine-about small{color:#e5c796!important;font-size:10px!important;line-height:1.3!important;}
#game #screen .machine-action{grid-column:auto!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;margin-top:auto!important;}
#game #screen .machine-action .action-button{width:100%!important;min-height:34px!important;white-space:normal!important;font-size:10px!important;line-height:1.3!important;padding:7px 5px!important;background:linear-gradient(#a77b49,#72502e)!important;border:1px solid #d2a26a!important;border-radius:9px!important;color:#fff5df!important;}
#game #screen .machine-max{color:#b9f08e!important;font-size:13px!important;}
#game #screen .v89-shop-heading{text-align:center!important;font-family:'Marmelad',Georgia,serif!important;font-size:clamp(22px,4vw,32px)!important;color:#5c351a!important;margin:24px auto 14px!important;}
#game #screen .v89-workers-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;max-width:1320px!important;margin:0 auto 95px!important;}
#game #screen .v89-workers-grid .v38-worker-panel{width:100%!important;max-width:none!important;min-height:210px!important;margin:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;padding:11px 9px!important;border:5px ridge #a67542!important;background:linear-gradient(160deg,#946541,#634027 70%,#49301e)!important;}
#game #screen .v89-workers-grid .v37-worker-heading{display:flex!important;flex-direction:column!important;text-align:center!important;align-items:center!important;}
#game #screen .v89-workers-grid .v37-worker-heading h3{font-size:14px!important;}
#game #screen .v89-workers-grid .v37-worker-controls{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;}
#game #screen .v89-workers-grid .v37-worker-controls label{min-width:0!important;width:100%!important;}
#game #screen .v89-workers-grid .v37-worker-controls select{max-width:100%!important;width:100%!important;}
#game #screen .v89-workers-grid .v37-worker-controls button{width:100%!important;}
@media(max-width:950px){#game #screen .machine-store,#game #screen .v89-workers-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:570px){#game #screen .machine-store,#game #screen .v89-workers-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}#game #screen .machine-card{padding:10px 7px!important;min-height:188px!important;}#game #screen .machine-about h3{font-size:13px!important;}}
#game #screen .v85-collective-name{gap:8px!important;flex-wrap:wrap!important;}
#game #screen .v89-rating-launch{width:37px;height:37px;flex:0 0 37px;border:2px solid #c69a62;border-radius:50%;background:radial-gradient(circle at 35% 20%,#a57944,#644024);font-size:23px;cursor:pointer;box-shadow:0 2px 5px #321a0e55;}
#game #screen .v89-rating-launch:focus-visible{outline:3px solid #e9c98c;outline-offset:2px;}
#game #screen .v89-ratings{max-width:720px;margin:12px auto 130px;padding:15px;border:4px ridge #b18a58;border-radius:15px;background:linear-gradient(165deg,#775037,#51311f);color:#fff1d7;}
#game #screen .v89-ratings-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
#game #screen .v89-ratings-top h2{margin:0;color:#ffebca;font-size:23px;}
#game #screen .v89-rank-back,#game #screen .v89-ratings-tabs button,#game #screen [data-v89-ratings-refresh]{padding:8px 12px;border:1px solid #d0a36e;border-radius:8px;background:#865a36;color:#fff4dd;font-weight:700;cursor:pointer;}
#game #screen .v89-ratings-tabs{display:flex;gap:8px;margin:14px 0;}
#game #screen .v89-ratings-tabs button{flex:1;min-width:0;font-size:12px;}
#game #screen .v89-ratings-tabs button.is-active{background:#c18d4b;color:#2c190e;}
#game #screen .v89-ratings-hint{font-size:12px;color:#e9cfac;line-height:1.4;}
#game #screen .v89-ratings-list{display:grid;gap:8px;margin-top:12px;}
#game #screen .v89-rating-row{display:flex;gap:9px;align-items:center;padding:8px;background:#3e281d;border:1px solid #916c47;border-radius:10px;}
#game #screen .v89-rank-place{min-width:30px;text-align:center;font-weight:900;}
#game #screen .v89-rating-row .v89-avatar{flex:0 0 35px;}
#game #screen .v89-rank-name{font-size:13px;flex:1;text-align:left;min-width:0;overflow-wrap:anywhere;border:0;background:none;color:#fff0d5;font-weight:700;cursor:pointer;}
#game #screen .v89-rating-row strong{white-space:nowrap;color:#ffcd79;font-size:13px;}
#game #screen .v89-avatar{width:35px;height:35px;display:grid;place-items:center;position:relative;overflow:hidden;border-radius:50%;border:2px solid #e2bd85;background:linear-gradient(135deg,#88bc55,#2b8069);}
#game #screen .v89-avatar-art{font-size:21px;filter:drop-shadow(0 1px 1px #17340e);}
#game #screen .v89-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
#game #screen .v85-member-avatar:has(.v89-avatar){background:transparent!important;box-shadow:none!important;overflow:visible!important;}
#game #screen .v85-member-avatar .v89-avatar{width:100%;height:100%;}
#game #screen .v89-rank-icon{display:inline-grid;place-items:center;width:23px;height:23px;margin-right:5px;vertical-align:middle;border:1px solid #d9b079;border-radius:7px;background:linear-gradient(140deg,#eaba6a,#995826);box-shadow:0 2px 3px #1c100a66;font-size:14px;line-height:1;}
#game #screen .v89-rank-leader{background:linear-gradient(145deg,#ffe28c,#b87920);}
#game #screen .v89-rank-deputy{background:linear-gradient(145deg,#86dafa,#307fa9);}
#game #screen .v89-rank-elder{background:linear-gradient(145deg,#dbbbff,#795fa8);}
#game #screen .v89-rank-member{background:linear-gradient(145deg,#a9df6b,#57822f);}
#game #screen .v89-rank-newcomer{background:linear-gradient(145deg,#9bf1bb,#358f72);}
#game #screen .v89-members-head-icon{display:inline-grid;place-items:center;width:32px;height:32px;margin-right:4px;border-radius:8px;background:linear-gradient(130deg,#74c8ec,#28618b);box-shadow:0 2px 4px #24140966;}

/* V42.10.90 — six equal-square columns across full phone width. */
#game #screen .v85-collective .v90-quick-section {box-sizing:border-box;width:100%;margin:12px auto 22px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
#game #screen .v85-collective .v90-quick-grid {display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:clamp(2px,0.8vw,8px)!important;width:100%!important;max-width:100%!important;min-width:0!important;}
#game #screen .v85-collective .v90-quick-tile {box-sizing:border-box;min-width:0!important;width:100%!important;aspect-ratio:1/1;min-height:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;cursor:pointer;border:2px ridge #b88e58!important;border-radius:7px!important;padding:2px 1px!important;background:linear-gradient(150deg,#95613d,#684024 66%,#51301d)!important;color:#fff3d7!important;box-shadow:inset 0 1px #dfbb8566,0 2px 3px #2a170b6b!important;text-shadow:0 1px 2px #2f190b!important;overflow:hidden!important;}
#game #screen .v85-collective .v90-quick-tile:not(:disabled):active {transform:translateY(1px);filter:brightness(1.15);}
#game #screen .v85-collective .v90-quick-tile:focus-visible {outline:2px solid #edcf86;outline-offset:2px;}
#game #screen .v85-collective .v90-quick-tile:disabled {opacity:.48!important;cursor:not-allowed!important;}
#game #screen .v85-collective .v90-quick-icon {font-size:clamp(18px,4.8vw,36px)!important;line-height:1.05!important;display:block;flex:0 0 auto;}
#game #screen .v85-collective .v90-quick-label {font-size:clamp(7px,1.8vw,12px)!important;line-height:1.1!important;font-weight:800!important;white-space:nowrap!important;letter-spacing:-.2px;text-align:center!important;max-width:100%;overflow:hidden;text-overflow:clip;}
#game #screen .v85-collective .v90-section-back {display:inline-flex;align-items:center;margin:7px 0 14px;padding:9px 14px;background:linear-gradient(140deg,#a87944,#684124);border:2px solid #d1a46e;border-radius:9px;color:#fff0d4;font-weight:800;cursor:pointer;}
@media(max-width:400px){#game #screen .v85-collective .v90-quick-tile{border-width:1px!important;border-radius:5px!important;}#game #screen .v85-collective .v90-quick-label{font-size:clamp(7px,1.9vw,9px)!important;letter-spacing:-.4px!important;}}


/* V42.10.91 — approved small, colorful game icons on all six collective shortcuts */
#game #screen .v85-collective .v90-quick-icon {
 display:grid!important;place-items:center!important;
 width:min(35px,8vw)!important;height:min(35px,8vw)!important;
 min-width:0!important;min-height:0!important;flex:0 1 auto!important;
 margin:0!important;line-height:1!important;
}
#game #screen .v85-collective .v91-colhoz-icon {
 display:block!important;width:100%!important;height:100%!important;
 object-fit:contain!important;filter:drop-shadow(0 1px 2px #25120980)!important;
 pointer-events:none!important;
}
@media(max-width:380px){#game #screen .v85-collective .v90-quick-icon{width:min(29px,7.9vw)!important;height:min(29px,7.9vw)!important;}}

/* Dark wood content palette across all six interior sections, not the overview/chat */
#game #screen .v85-collective.v91-colhoz-interior .v43-content {
 color:#ffebc8!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v43-card {
 background:linear-gradient(165deg,#765039 0%,#5e3b26 54%,#41291c 100%)!important;
 border:2px solid #bd905d!important;
 border-radius:13px!important;
 box-shadow:inset 0 1px #eac18b3d,0 4px 12px #2a15095c!important;
 color:#fff0d7!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v43-card h3,
#game #screen .v85-collective.v91-colhoz-interior .v43-card h4 {
 color:#ffe4aa!important;
 -webkit-text-fill-color:#ffe4aa!important;
 font-family:'Marmelad',Georgia,serif!important;
 font-weight:800!important;
 text-shadow:0 2px 2px #2f1a0d!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v43-card p,
#game #screen .v85-collective.v91-colhoz-interior .v43-card .v43-muted,
#game #screen .v85-collective.v91-colhoz-interior .v43-card small,
#game #screen .v85-collective.v91-colhoz-interior .v43-card label,
#game #screen .v85-collective.v91-colhoz-interior .v43-card li,
#game #screen .v85-collective.v91-colhoz-interior .v43-card span {
 color:#f3dfc2!important;
 -webkit-text-fill-color:#f3dfc2!important;
 text-shadow:none!important;
 opacity:1!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v43-card b,
#game #screen .v85-collective.v91-colhoz-interior .v43-card strong {
 color:#ffe0a0!important;-webkit-text-fill-color:#ffe0a0!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v43-form input,
#game #screen .v85-collective.v91-colhoz-interior .v43-form textarea,
#game #screen .v85-collective.v91-colhoz-interior .v43-form select {
 background:#f9e6c7!important;
 border:1px solid #bd8b56!important;
 color:#442716!important;-webkit-text-fill-color:#442716!important;
 caret-color:#442716!important;
 opacity:1!important;
 box-shadow:inset 0 1px 3px #45281244!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v43-form input::placeholder,
#game #screen .v85-collective.v91-colhoz-interior .v43-form textarea::placeholder {color:#816344!important;opacity:1!important;}
#game #screen .v85-collective.v91-colhoz-interior .v43-card .v43-button,
#game #screen .v85-collective.v91-colhoz-interior .v43-card .v43-button.v43-primary,
#game #screen .v85-collective.v91-colhoz-interior .v43-card .v43-small-action {
 background:linear-gradient(170deg,#ad7a43,#78502d 64%,#57331d)!important;
 border:1px solid #d6a76b!important;
 color:#fff4dd!important;-webkit-text-fill-color:#fff4dd!important;
 font-weight:800!important;text-shadow:0 1px 2px #321808!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v43-card .v43-button:disabled {opacity:.5!important;}
#game #screen .v85-collective.v91-colhoz-interior .v44-statline,
#game #screen .v85-collective.v91-colhoz-interior .v44-shop-item,
#game #screen .v85-collective.v91-colhoz-interior .v43-member,
#game #screen .v85-collective.v91-colhoz-interior .v43-requests article,
#game #screen .v85-collective.v91-colhoz-interior .v44-events>div {
 background:#472c1e!important;
 border:1px solid #9f734d!important;
 border-radius:9px!important;
 padding:9px!important;
 color:#f8e1c1!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v44-shop-details b,
#game #screen .v85-collective.v91-colhoz-interior .v44-events b {color:#ffe0a0!important;}
#game #screen .v85-collective.v91-colhoz-interior .v44-good {color:#bcee90!important;-webkit-text-fill-color:#bcee90!important;}
#game #screen .v85-collective.v91-colhoz-interior .v43-bank {
 background:linear-gradient(150deg,#825631,#4b301e)!important;
 border-color:#c39762!important;
}
#game #screen .v85-collective.v91-colhoz-interior .v43-bank strong {color:#ffdb87!important;}
#game #screen .v85-collective.v91-colhoz-interior .v43-form label {color:#f4ddbb!important;}
#game #screen .v85-collective.v91-colhoz-interior .v43-card .v43-player {color:#fff0d6!important;}

/* V42.10.97 — Beds use original farm ornament wallpaper, no old brown soil mat. */
#game #screen .v35-garden .v31-garden-scroll {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#game #screen .v35-garden .v31-garden-board {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#game #screen .v35-garden {
  background: transparent !important;
}
@media (max-width: 600px) {
  #game #screen .v35-garden .v31-garden-board {
    aspect-ratio: 412 / var(--v34-mobile-h,1132) !important;
  }
}

/* V42.10.98: remove rectangular touch/focus highlights around illustrated garden beds.
   The invisible polygons remain clickable; no changes to the Home button. */
#game #screen .v35-garden #villageBeds .v30-field-bed .bed-hit,
#game #screen .v35-garden #villageBeds .v30-field-bed:hover .bed-hit,
#game #screen .v35-garden #villageBeds .v30-field-bed:focus .bed-hit,
#game #screen .v35-garden #villageBeds .v30-field-bed:focus-visible .bed-hit,
#game #screen .v35-garden #villageBeds .bed-is-ready .bed-hit {
  fill:transparent!important;
  stroke:transparent!important;
  stroke-width:0!important;
  stroke-opacity:0!important;
}
#game #screen .v35-garden #villageBeds .v30-field-bed {outline:none!important;}


/* ferma.lol V42.10.99 — dark aged-wood pen cards matching the farm's main menu.
   Only UI colors, borders and typography are modified. Animal scene images,
   their position, feeding/collection logic and floating Home button stay untouched. */
#game #screen .v35-pen-grid > .v35-pen {
  background:
    radial-gradient(ellipse at 50% -25%,rgba(203,139,65,.22),transparent 64%),
    repeating-linear-gradient(0deg,transparent 0 17px,rgba(17,9,4,.08) 18px 20px),
    linear-gradient(160deg,#795035 0%,#5a3624 36%,#402519 100%) !important;
  border:2px solid #9a6939 !important;
  border-radius:17px !important;
  box-shadow: inset 0 0 0 1px rgba(226,177,105,.36),
              inset 0 4px 12px rgba(27,13,7,.27),
              0 3px 0 #32190e,0 7px 13px #28140955 !important;
  padding:8px 7px 11px !important;
  gap:7px !important;
  color:#f8e6c7 !important;
}
#game #screen .v35-pen-grid > .v35-pen.v42-pen-occupied {
  background:
    radial-gradient(ellipse at 50% -25%,rgba(203,139,65,.22),transparent 64%),
    repeating-linear-gradient(0deg,transparent 0 17px,rgba(17,9,4,.08) 18px 20px),
    linear-gradient(160deg,#795035 0%,#5a3624 36%,#402519 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(226,177,105,.36),
              inset 0 4px 12px rgba(27,13,7,.27),
              0 3px 0 #32190e,0 7px 13px #28140955 !important;
}
/* Bright full-color pen artwork is deliberately unchanged. */
#game #screen .v35-pen-grid .v35-pen.v42-pen-occupied > .v35-pen-picture.v42-picture-has-card {
  border:1px solid #b48a53 !important;
  border-radius:12px !important;
  box-shadow:0 2px 5px rgba(17,9,5,.36) !important;
}
/* Animal name: compact wooden nameplate in place of the pale footer. */
#game #screen .v35-pen-grid > .v35-pen > b {
  box-sizing:border-box !important;
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  padding:6px 4px !important;
  margin:1px 0 0 !important;
  border:1px solid rgba(198,148,85,.72) !important;
  border-radius:9px !important;
  background:linear-gradient(180deg,#6c452c,#432819) !important;
  color:#fff0d2 !important;
  -webkit-text-fill-color:#fff0d2 !important;
  font-size:clamp(12px,2.7vw,15px) !important;
  font-weight:850 !important;
  line-height:1.25 !important;
  text-shadow:0 1px 2px #281309 !important;
  overflow-wrap:anywhere !important;
}
/* Actions in picture: collect and water are equally sized dark wooden buttons.
   Keep functional states but show them with subtle wood tones. */
#game #screen .v35-pen-grid .v42-pen-icon-actions .v42-pen-icon-btn,
#game #screen .v35-pen-grid .v42-pen-icon-actions .v42-pen-icon-btn.is-ready,
#game #screen .v35-pen-grid .v42-pen-icon-actions .v42-pen-icon-btn.is-active {
  background:linear-gradient(160deg,#926039 0%,#624027 49%,#472b1b 100%) !important;
  border:1px solid #d6ad76 !important;
  box-shadow:inset 0 1px 0 #e9c59250,0 2px 3px #24100799 !important;
  color:#fff6df !important;
}
#game #screen .v35-pen-grid .v42-pen-icon-actions .v42-pen-icon-btn.is-ready {
  border-color:#d6c37c !important;
  box-shadow:inset 0 1px 0 #e9c59250,0 2px 3px #24100799,0 0 0 1px #a5bb6333 !important;
}
#game #screen .v35-pen-grid .v42-pen-icon-actions .v42-pen-icon-btn:disabled {
  background:linear-gradient(#66513f,#503a2b) !important;
  border-color:#9f8668 !important;
  opacity:.64 !important;
}
#game #screen .v35-pen-grid .v42-pen-icon-actions .v42-pen-icon-count {
  background:linear-gradient(#ad773f,#7c4627) !important;
  border:1px solid #efd5a1 !important;
  color:#fff5dc !important;
}
/* Old light strip under a pen, when shown for more actions. */
#game #screen .v35-pen-grid .v35-pen.v42-pen-occupied > .v35-pen-commands {
  background:linear-gradient(#64432d,#452919) !important;
  border:1px solid #9c734a !important;
  color:#fff1d6 !important;
}
#game #screen .v35-pen-grid .v35-pen-commands .action-button {
  background:linear-gradient(165deg,#98673e,#573620) !important;
  border:1px solid #bc8a57 !important;
  color:#fff1d6 !important;
  text-shadow:0 1px 1px #261409 !important;
}
#game #screen .v35-pen-grid .v35-pen-no {
  background:rgba(75,43,24,.92) !important;
  color:#fff0d1 !important;
  border:1px solid #c7a171 !important;
}
/* Compact top toolbar in the same wood palette; all three remain usable. */
#game #screen .v35-barn-header .action-button,
#game #screen .v42-barn-header-actions .action-button,
#game #screen .v42-barn-manage-btn {
  background:linear-gradient(160deg,#a17345,#684029 63%,#4e2e1c) !important;
  border:1px solid #c99a63 !important;
  color:#fff3d9 !important;
  box-shadow:0 2px 3px #351b0d44 !important;
  text-shadow:0 1px 2px #2b1509 !important;
}
/* Management card styling also matches the dark pen surfaces. */
#game #screen .v42-barn-manage-item {
  background:linear-gradient(165deg,#694630,#43281b) !important;
  border:1px solid #b78a56 !important;
  color:#ffefd2 !important;
}
#game #screen .v42-barn-manage-about b {color:#ffe5b7 !important;}
#game #screen .v42-barn-manage-about small {color:#e0c5a5 !important;}
@media(max-width:600px){
  #game #screen .v35-pen-grid > .v35-pen {padding:6px 5px 8px !important;gap:5px !important;}
  #game #screen .v35-pen-grid > .v35-pen > b {padding:5px 3px !important;font-size:13px !important;}
}

/* V42.10.100 Fishing, cohesive dark rustic theme */
#screen .v100-fishing {padding:12px 9px 110px;color:#ffe6c1}
#screen .v100-fishing h2,#screen .v100-fishing h3 {color:#543117;text-shadow:0 1px #efc088;text-align:center;margin:14px 0}
#screen .v100-fishing p {color:#684225;text-align:center;line-height:1.4}
#screen .v100-rod-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#screen .v100-pond-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:12px}
#screen .v100-rod,#screen .v100-pond {background:linear-gradient(135deg,#775033,#422819);border:2px solid #a27747;border-radius:16px;box-shadow:inset 0 1px #b89665,0 4px 6px #2a160a66;padding:11px 7px;display:flex;flex-direction:column;gap:7px;align-items:center;text-align:center;color:#ffe6c1;min-width:0}
#screen .v100-rod>span {font-size:31px}
#screen .v100-rod b {font-size:12px;overflow-wrap:anywhere}
#screen .v100-pond b {font-size:17px}
#screen .v100-rod small,#screen .v100-pond small {color:#edc991;line-height:1.25}
#screen .v100-rod button,#screen .v100-pond button,#screen .v100-to-barn,#screen .v100-catch-storage button {border:1px solid #d4ad73;border-radius:10px;background:linear-gradient(#9a6b3d,#694124);color:#fff1cb;font-weight:800;text-shadow:0 1px #362013;min-height:34px;cursor:pointer;padding:7px 6px;max-width:100%;font-size:12px}
#screen .v100-pond button {width:100%;white-space:normal}
#screen .v100-pond button:disabled {opacity:.5;cursor:not-allowed}
#screen .v100-pond-water {width:min(100%,170px);height:96px;border:8px solid #638840;border-radius:50%;background:radial-gradient(ellipse at 40% 30%,#6ed5e7,#16749e 75%,#104b76);display:grid;place-items:center;box-shadow:inset 0 3px 11px #0d374e,0 4px 5px #27150988}
#screen .v100-pond-water span {font-size:42px}
#screen .v100-pond.v100-gold {border:3px solid #f4cc52;box-shadow:0 0 0 2px #a26b19,0 0 14px #f6d255aa,inset 0 1px #ffe6a0;background:linear-gradient(#956523,#4e2c12)}
#screen .v100-pond.v100-gold .v100-pond-water {border-color:#e9bc35;box-shadow:0 0 0 3px #9b6414,inset 0 4px 13px #144462}
#screen .v100-max {font-weight:900;color:#ffdf61}
#screen .v100-locked {filter:saturate(.7)}
#screen .v100-catch-storage {padding:14px 10px;background:linear-gradient(#755033,#442916);border:2px solid #b99463;border-radius:16px;color:#fff0d4;margin:12px 0}
#screen .v100-catch-storage h3 {color:#ffe7b0}
#screen .v100-catch-row {display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;border-top:1px solid #b38a5b55;padding:8px 0;font-size:12px}
#screen .v100-catch-row b {overflow-wrap:anywhere}
#screen .v100-to-barn {display:block;margin:16px auto}
@media(max-width:600px){#screen .v100-rod-grid {grid-template-columns:repeat(2,minmax(0,1fr))}#screen .v100-pond-grid{gap:9px}#screen .v100-pond-water{height:77px;border-width:6px}#screen .v100-pond-water span{font-size:32px}#screen .v100-catch-row{grid-template-columns:1fr auto}#screen .v100-catch-row button{grid-column:2}}

/* V42.10.101 - compact original fishing rod pictures, no big label in artwork */
#screen .v100-fishing .v100-rod-grid .v100-rod {gap:6px; padding:9px 6px; justify-content:flex-start;}
#screen .v100-fishing .v100-rod-grid .v100-rod .v101-rod-icon {
 display:block !important; width:78px !important; height:78px !important; max-width:90%;
 object-fit:contain; margin:0 auto; flex:none;
 background:transparent !important; border:0 !important; box-shadow:none !important;
}
#screen .v100-fishing .v100-rod-grid .v100-rod b {font-size:12px; line-height:1.22; min-height:29px;}
#screen .v100-fishing .v100-rod-grid .v100-rod small {font-size:11px;}
@media(max-width:380px){#screen .v100-fishing .v100-rod-grid .v100-rod .v101-rod-icon{width:65px !important;height:65px !important;}}

/* V43.1 — compact four-rod selection and fishing energy */
#screen .v43-fishing .v100-rod-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0 15px}
#screen .v43-fishing .v100-rod-grid .v100-rod{border-radius:9px;padding:5px 2px 6px;gap:3px;min-height:113px;border-width:1px;justify-content:flex-start}
#screen .v43-fishing .v100-rod-grid .v100-rod .v101-rod-icon{width:46px!important;height:49px!important;max-width:96%;margin:0 auto}
#screen .v43-fishing .v100-rod-grid .v100-rod b{font-size:10px;line-height:1.1;min-height:23px}
#screen .v43-fishing .v100-rod-grid .v100-rod small{font-size:9px;line-height:1.1}
#screen .v43-fishing .v100-rod-grid .v100-rod button{width:100%;min-height:27px;padding:3px 1px;font-size:9px;border-radius:6px;line-height:1.1}
#screen .v43-fishing .v100-rod-grid .v100-rod.v43-selected{border:2px solid #f8cf4e;box-shadow:0 0 0 1px #9d6f24,0 0 13px #f3cf647a,inset 0 1px #e8c373}
#screen .v43-fishing .v100-rod-grid .v100-rod.v43-selected button{background:linear-gradient(#ac8744,#6f4a20);color:#ffe59d;opacity:1;cursor:default}
#screen .v43-energy{padding:11px 13px;border:2px solid #a97c46;border-radius:13px;background:linear-gradient(130deg,#684128,#392117);color:#f7dfad;box-shadow:inset 0 2px 3px #ccaa6440,0 3px 7px #24150c66}
#screen .v43-energy-header{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px}
#screen .v43-energy-track{height:13px;border-radius:12px;background:#25170f;border:1px solid #a67838;overflow:hidden;margin:7px 0 3px}
#screen .v43-energy-track>div{height:100%;background:linear-gradient(90deg,#b97725,#efc64b);border-radius:12px;transition:width .2s linear}
#screen .v43-energy small{color:#dcc390;font-size:11px}
#screen .v43-fishing h3{font-size:16px;margin:10px 0 5px}
@media(max-width:380px){#screen .v43-fishing .v100-rod-grid{gap:3px}#screen .v43-fishing .v100-rod-grid .v100-rod{padding:4px 1px}#screen .v43-fishing .v100-rod-grid .v100-rod .v101-rod-icon{width:40px!important;height:43px!important}}

/* V43.2 — two compact, dark-wood barn sections */
#screen .v432-barn {padding:7px 6px 112px;color:#ffebca}
#screen .v432-barn-heading {text-align:center;margin:4px 0 12px}
#screen .v432-barn-heading h2 {color:#593419;margin:4px 0;font-size:22px}
#screen .v432-barn-heading small {color:#785132}
#screen .v432-barn-tabs {display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 9px}
#screen .v432-barn-tabs button {display:flex;align-items:center;justify-content:center;gap:6px;min-height:49px;padding:6px 8px;background:linear-gradient(155deg,#835636,#4b2e1c);border:2px solid #ad8050;border-radius:12px;color:#f3d9ae;font-weight:900;font-size:15px;box-shadow:inset 0 1px #e9b87a55,0 2px 5px #2d160a44;cursor:pointer}
#screen .v432-barn-tabs button small {font-weight:600;font-size:10px;color:#dec49d;white-space:nowrap}
#screen .v432-barn-tabs button.selected {border-color:#e9be64;background:linear-gradient(155deg,#996b3a,#58351d);box-shadow:inset 0 0 0 1px #ffdc91,0 0 9px #a7773370;color:#fff5d7}
#screen .v432-barn-panel {background:linear-gradient(165deg,#553521,#392318);border:2px solid #ad8050;border-radius:17px;padding:8px;box-shadow:0 5px 10px #2e170c55,inset 0 1px #d2a06466;min-height:115px}
#screen .v432-barn-summary {display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid #d5a66b66;padding:2px 3px 9px;margin-bottom:3px;font-size:12px;color:#f3d3a5}
#screen .v432-barn-summary button,#screen .v432-barn-item button {flex:none;min-height:32px;padding:6px 10px;border:1px solid #d1a574;border-radius:9px;background:linear-gradient(#9a6b40,#704323);font-size:12px;font-weight:800;color:#fff1d3;text-shadow:0 1px #412b1a;cursor:pointer;white-space:nowrap}
#screen .v432-barn-list {display:flex;flex-direction:column}
#screen .v432-barn-item {display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 4px;min-height:54px;border-bottom:1px solid #d0a16a33}
#screen .v432-barn-item:last-child {border-bottom:0}
#screen .v432-barn-icon {font-size:26px;line-height:1;display:flex;justify-content:center;align-items:center}
#screen .v432-barn-icon img {width:32px;max-height:35px;object-fit:contain}
#screen .v432-barn-description {display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
#screen .v432-barn-description strong {font-size:13px;color:#fff0d5;line-height:1.1}
#screen .v432-barn-description small {font-size:11px;color:#d9bc92;line-height:1.25}
#screen .v432-barn-empty {text-align:center;color:#eed5aa;font-size:13px;margin:22px 5px}
@media(max-width:390px){#screen .v432-barn-item {grid-template-columns:30px minmax(0,1fr) auto;gap:5px;padding:7px 2px}#screen .v432-barn-item button {font-size:11px;padding:6px 7px}#screen .v432-barn-tabs button {font-size:13px;gap:4px}}
/* V43.2 — small non-animated farm-style notifications */
#toast {box-sizing:border-box!important;top:66px!important;left:50%!important;width:max-content!important;max-width:calc(100vw - 26px)!important;padding:8px 15px!important;background:linear-gradient(180deg,#825535,#4b2c1c)!important;border:2px solid #caa66a!important;border-radius:10px!important;box-shadow:inset 0 1px #ffe1a75c,0 4px 12px #25120765!important;color:#fff1cb!important;font-weight:750!important;font-size:12px!important;line-height:1.25!important;text-shadow:0 1px #2c190d!important;transition:none!important;transform:translate(-50%,-180px)!important;pointer-events:none!important;z-index:9999!important}
#toast.visible {transform:translate(-50%,0)!important}
#toast.error {background:linear-gradient(180deg,#526b25,#254d23)!important;border-color:#edc16e!important}

/* V43.4 — fishing progression, compact header/warehouse navigation */
.v42-ref-title .v434-online-badge{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;min-width:25px;height:25px;margin-left:5px;padding:0 7px;background:linear-gradient(#3cb45e,#167a35);color:white;border:2px solid #bde4a2;border-radius:99px;font-size:12px;line-height:1;font-weight:900;text-shadow:0 1px #12501e;box-shadow:0 1px 5px #152f1d77;white-space:nowrap}
#screen .v434-barn-link{display:block;margin:5px auto 11px;width:max-content;max-width:100%;padding:8px 17px}
#screen .v434-fish-currency{font-size:14px;font-weight:750;text-align:center;margin:7px 0 11px;color:#f5d9a3;background:linear-gradient(#6d462a,#432917);border:1px solid #aa8049;border-radius:12px;padding:9px}
#screen .v434-fish-currency strong{font-size:16px;color:#ffe8ae}
#screen .v434-rod-upgrade{font-size:11px;padding:5px 6px;min-height:27px;background:linear-gradient(#93663a,#5e3b22)}
#screen .v434-pond-wait{font-size:11px;color:#f4d49b}
#screen .v43-fishing .v100-rod{gap:5px;padding:7px 5px}
#screen .v43-fishing .v100-rod button{min-height:29px;padding:5px 3px}

/* V43.4 information panel */
.v434-pond-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 5px}.v434-pond-heading h2{margin:0!important}
.v434-info-trigger{display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;min-height:34px;padding:0!important;border-radius:50%!important;background:linear-gradient(#997047,#51341f)!important;border:2px solid #c6a16d!important;color:#fff0c7!important;font-size:23px!important;font-weight:800!important;line-height:1!important}
.v434-info-overlay{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background:#110b07c9;padding:12px}
.v434-info-dialog{width:min(520px,100%);max-height:min(90dvh,820px);display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(140deg,#6b4b31,#392617);color:#f8e5cb;border:3px solid #b99260;border-radius:17px;box-shadow:0 10px 45px #100903e0}
.v434-info-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 15px 9px;border-bottom:1px solid #ae8758}.v434-info-top h2{font-size:19px;margin:0;color:#fff1ca}.v434-info-top button{min-width:34px;min-height:32px;border:1px solid #d4a86d;border-radius:9px;background:#53371e;color:#fff;font-size:20px}
.v434-info-content{padding:6px 16px 14px;overflow:auto;overscroll-behavior:contain;line-height:1.5;font-size:13px}.v434-info-content h3{color:#ffe2a4;font-size:16px;margin:15px 0 5px}.v434-info-content p{margin:5px 0 9px}.v434-info-content ul{padding-left:19px;margin:4px 0}.v434-info-content li{margin:5px 0}.v434-info-done{margin:8px 16px 13px;padding:10px;border:1px solid #e4b77e;border-radius:10px;background:linear-gradient(#b28145,#754725);color:#fff8e4;font-weight:800}

/* V43.5 compact pond controls: presentation only, no game-rule changes */
#screen .v43-fishing .v434-pond-heading{padding:0 3px;min-height:36px;gap:6px;margin:0 0 6px}
#screen .v43-fishing .v434-pond-heading h2{font-size:clamp(19px,5.1vw,24px)!important;line-height:1.12;margin:0!important;white-space:nowrap}
#screen .v43-fishing .v435-heading-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
#screen .v43-fishing .v435-pond-count{font-size:12px;font-weight:800;white-space:nowrap;background:#704725;color:#ffe5aa;border:1px solid #c7a06d;border-radius:99px;padding:5px 9px;box-shadow:inset 0 1px #f9d59e55}
#screen .v43-fishing .v434-info-trigger{width:32px;height:32px;min-height:32px;font-size:21px!important}
#screen .v43-fishing .v435-energy-compact{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:37px!important;padding:7px 10px!important;border-width:1px!important;border-radius:9px!important;margin:7px 0!important;box-shadow:none!important}
#screen .v43-fishing .v435-energy-main{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;min-width:0}
#screen .v43-fishing .v435-energy-main strong{font-size:clamp(10px,2.9vw,13px);line-height:1.15}
#screen .v43-fishing .v435-energy-main b{font-size:clamp(11px,3.1vw,14px);white-space:nowrap;color:#ffe6ab}
#screen .v43-fishing .v435-energy-compact [data-v43-energy-next]{font-size:clamp(10px,2.7vw,12px);text-align:right;white-space:nowrap;margin-left:auto;color:#e9c990}
#screen .v43-fishing .v100-rod-grid{gap:4px!important;margin:6px 0 10px!important}
#screen .v43-fishing .v100-rod-grid .v100-rod{gap:2px!important;padding:4px 2px!important;min-height:0!important;border-radius:8px!important}
#screen .v43-fishing .v100-rod-grid .v100-rod .v101-rod-icon{width:36px!important;height:37px!important;max-width:93%!important}
#screen .v43-fishing .v100-rod-grid .v100-rod b{font-size:clamp(9px,2.4vw,11px)!important;line-height:1.05!important;min-height:22px!important;display:flex;align-items:center;justify-content:center;text-align:center}
#screen .v43-fishing .v100-rod-grid .v100-rod small{font-size:clamp(8px,2.25vw,10px)!important;line-height:1.1!important}
#screen .v43-fishing .v100-rod-grid .v100-rod button{min-height:23px!important;padding:3px 1px!important;font-size:clamp(9px,2.25vw,11px)!important;line-height:1.06!important;border-radius:6px!important}
#screen .v43-fishing .v100-rod-grid .v100-rod .v434-rod-upgrade{min-height:22px!important}

/* V43.6 — Level-five rods: visibly refined construction, gold prestige edging. */
#screen .v43-fishing .v100-rod-grid .v100-rod.v436-master-rod{position:relative;isolation:isolate;overflow:hidden;border:2px solid #f4c35b!important;background:radial-gradient(ellipse at 50% 5%,#9f7745 0%,#725034 40%,#493021 100%)!important;box-shadow:0 0 0 1px #5d3917,inset 0 0 0 1px #ffed9a,inset 0 2px 10px #fff2b022,0 3px 12px #c78f3b55!important}
#screen .v43-fishing .v100-rod-grid .v100-rod.v436-master-rod::before{content:'✦';position:absolute;top:2px;right:4px;color:#ffe6a0;font-size:15px;line-height:1;text-shadow:0 0 7px #f8c964;pointer-events:none;z-index:2}
#screen .v43-fishing .v100-rod-grid .v100-rod.v436-master-rod::after{content:'';position:absolute;inset:2px;pointer-events:none;border:1px dashed #e4b66777;border-radius:6px;z-index:0}
#screen .v43-fishing .v100-rod-grid .v100-rod.v436-master-rod .v101-rod-icon{position:relative;z-index:1;filter:saturate(1.35) contrast(1.14) brightness(1.13) drop-shadow(0 2px 3px #29190f) drop-shadow(0 0 4px #ffe0a266)!important;transform:scale(1.09);transform-origin:center;transition:filter .2s}
#screen .v43-fishing .v100-rod-grid .v100-rod.v436-master-rod .v436-master-label{font-size:clamp(8px,2.1vw,10px)!important;color:#ffdf83!important;font-weight:900!important;text-shadow:0 1px 2px #241206;text-align:center}
.v436-admin-fishing{padding:10px;margin:9px 0;border:1px solid #b48a54;border-radius:10px;background:#50351c22}
.v436-admin-fishing h4{margin:3px 0 5px}.v436-admin-fishing p{margin:4px 0 9px}.v436-admin-fishing form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.v436-admin-fishing label{flex:1 1 160px}.v436-admin-fishing input{width:100%}

/* V43.7: instantly recognizable active penalties */
#screen .v42-nick-muted,.v42-nick-muted{color:#332b2a!important;text-shadow:0 1px 0 #b6a18b,0 0 1px #1f1917!important;filter:grayscale(.7)}
#screen .v42-nick-banned,.v42-nick-banned{color:#080808!important;text-shadow:0 1px 1px #bfb1a3!important;filter:grayscale(1)}
.v437-sanction-banner{margin:12px 0;padding:17px 13px;text-align:center;border:3px solid #3e2920;border-radius:13px;display:flex;flex-direction:column;align-items:center;gap:5px;background:linear-gradient(150deg,#6b5446,#3f302c);color:#fff1df;box-shadow:inset 0 0 0 1px #b08c6a,0 4px 12px #24170b33}
.v437-sanction-banner strong{font-size:clamp(19px,5vw,30px);font-weight:1000;letter-spacing:.04em;color:#fff5e8;text-shadow:0 2px 3px #120b08}
.v437-sanction-banner b{font-size:clamp(14px,3.4vw,21px);color:#ffdeaa}
.v437-sanction-banner span{font-size:13px;overflow-wrap:anywhere;max-width:100%}
.v437-sanction-banner.v437-exile{background:linear-gradient(145deg,#333,#090909);border-color:#090909}
.v437-sanction-banner.v437-silence{background:linear-gradient(145deg,#70524a,#3a302f)}

/* V43.8 — aligned responsive farm header. No change to button actions. */
header.top.v42-43-header .v69-header-row{
  display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(0,2.35fr) minmax(0,1.42fr)!important;
  align-items:center!important;gap:5px!important;width:100%!important;min-width:0!important;
}
header.top.v42-43-header .v69-left-controls,
header.top.v42-43-header .v31-head-actions{
  display:flex!important;align-items:center!important;gap:3px!important;
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
}
header.top.v42-43-header .v69-left-controls{justify-content:flex-start!important;}
header.top.v42-43-header .v31-head-actions{justify-content:flex-end!important;}
header.top.v42-43-header .v42-ref-title{min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;white-space:nowrap!important;}
header.top.v42-43-header .v42-ref-title strong{width:auto!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:clamp(11px,2.95vw,17px)!important;}
header.top.v42-43-header .v42-ref-title .v434-online-badge{flex:0 0 auto!important;margin-left:0!important;min-width:24px!important;height:24px!important;padding:0 5px!important;}
header.top.v42-43-header .v69-left-controls #farmRadioBar{gap:3px!important;flex:0 0 auto!important;}
header.top.v42-43-header .v69-left-controls #v41MailboxButton,
header.top.v42-43-header .v42-radio-compact>button,
header.top.v42-43-header .v31-head-actions>button{
 box-sizing:border-box!important;flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;
 height:34px!important;min-height:34px!important;max-height:34px!important;
 display:grid!important;place-items:center!important;padding:0!important;margin:0!important;line-height:1!important;
}
#game #v41ExperienceBar{display:flex!important;align-items:center!important;}
#game #v41ExperienceBar .v42-ref32-level{align-self:center!important;flex-shrink:0!important;}
#game .v42-43-currency .v42-42-wallet{align-items:center!important;}
@media(max-width:420px){
 header.top.v42-43-header .v69-header-row{grid-template-columns:93px minmax(0,1fr) 103px!important;gap:3px!important;}
 header.top.v42-43-header .v69-left-controls,header.top.v42-43-header .v31-head-actions{gap:2px!important;}
 header.top.v42-43-header .v69-left-controls #farmRadioBar{gap:2px!important;}
 header.top.v42-43-header .v69-left-controls #v41MailboxButton,
 header.top.v42-43-header .v42-radio-compact>button,
 header.top.v42-43-header .v31-head-actions>button{flex-basis:28px!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:32px!important;min-height:32px!important;max-height:32px!important;}
 header.top.v42-43-header .v42-ref-title strong{font-size:clamp(10px,3.1vw,13px)!important;}
 header.top.v42-43-header .v42-ref-title .v434-online-badge{min-width:22px!important;height:22px!important;font-size:11px!important;}
}
@media(max-width:350px){header.top.v42-43-header .v69-header-row{grid-template-columns:87px minmax(0,1fr) 95px!important;gap:2px!important;}
header.top.v42-43-header .v69-left-controls #v41MailboxButton,header.top.v42-43-header .v42-radio-compact>button,header.top.v42-43-header .v31-head-actions>button{flex-basis:26px!important;width:26px!important;min-width:26px!important;max-width:26px!important;}}
/* Level-up celebration: stylized wood, star, sparks and restrained fireworks. */
.v438-level-overlay{position:fixed;inset:0;z-index:1000002;display:grid;place-items:center;padding:18px;background:rgba(18,10,4,.83);isolation:isolate;}
.v438-level-card{width:min(390px,100%);position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:24px 20px 20px;border:4px ridge #eac072;border-radius:20px;background:radial-gradient(circle at 50% 0,#936035,#54321c 65%,#382114);color:#fff4d8;box-shadow:0 0 0 3px #4a2a14,0 15px 45px #000b,inset 0 0 18px #f6b95944;animation:v438Pop .6s cubic-bezier(.16,1.3,.35,1) both;}
.v438-level-card h2{color:#ffe28e;font-size:clamp(21px,5.5vw,27px);line-height:1.1;margin:0;text-shadow:0 2px #5a2b0d,0 0 12px #f6b847;letter-spacing:.025em;}
.v438-level-sparks{color:#ffe08c;font-size:24px;letter-spacing:13px;animation:v438Shine 1.5s ease-in-out infinite alternate;}
.v438-level-star{position:relative;width:145px;height:150px;display:grid;place-items:center;filter:drop-shadow(0 0 15px #ffcd4caa);animation:v438Star .8s ease both;}
.v438-level-star svg{width:145px;height:150px;}
.v438-level-star strong{position:absolute;top:49%;left:50%;transform:translate(-50%,-50%);color:#61370f;font-size:47px;line-height:1;font-weight:1000;text-shadow:0 1px #fff4b8;}
.v438-level-congrats{font-size:19px;font-weight:850;margin:0;line-height:1.25;}
.v438-level-note{color:#f6d5a0;font-size:13px;margin:0;}
.v438-level-continue{margin-top:9px;width:100%;max-width:255px;padding:12px 16px;border:2px solid #ffda82;border-radius:12px;background:linear-gradient(#ebb963,#a26827);color:#47270e;font-weight:900;font-size:16px;box-shadow:0 3px 0 #683a17;cursor:pointer;}
.v438-level-fireworks{position:absolute;inset:0;pointer-events:none;overflow:hidden;}
.v438-level-fireworks i{position:absolute;top:43%;left:50%;height:8px;width:8px;background:#ffdd73;border-radius:50%;box-shadow:0 0 13px #ffd36f;transform-origin:center;animation:v438Firework 1.6s ease-out var(--d) infinite;--distance:170px;}
@keyframes v438Pop{from{transform:scale(.78);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes v438Star{0%{transform:scale(.3) rotate(-22deg)}70%{transform:scale(1.12) rotate(6deg)}100%{transform:scale(1) rotate(0)}}
@keyframes v438Shine{from{opacity:.5;transform:scale(.9)}to{opacity:1;transform:scale(1.1)}}
@keyframes v438Firework{0%{opacity:0;transform:rotate(var(--a)) translateY(0) scale(.5)}16%{opacity:1}80%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateY(calc(-1 * var(--distance))) scale(.3)}}
@media(prefers-reduced-motion:reduce){.v438-level-card,.v438-level-star,.v438-level-sparks,.v438-level-fireworks i{animation:none!important}.v438-level-fireworks{display:none}}

/* V43.9: fishing pond evolution and compact energy progression */
.v439-energy-wrap{flex-wrap:wrap!important;row-gap:7px!important}
.v439-energy-upgrade{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;font-size:11px;color:#f6ddae;padding-top:4px;border-top:1px solid rgba(245,214,150,.2)}
.v439-energy-upgrade button{min-height:28px!important;padding:4px 10px!important;font-size:11px!important;flex-shrink:0}
.v439-energy-upgrade b{color:#ffdc83;white-space:nowrap}
.v100-pond.v439-evolved{border-color:#f8d566!important;box-shadow:inset 0 0 0 2px rgba(255,217,124,.32),0 2px 15px rgba(255,198,73,.35)!important}
.v100-pond.v439-evolved .v100-pond-water{height:auto;min-height:100px;padding:0!important;background:transparent!important;box-shadow:none!important;border:none!important;overflow:visible!important}
.v100-pond .v439-evolved-image{display:block;width:100%;max-height:145px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(37,22,12,.3))}
.v439-evolved-label{font-size:12px!important;line-height:1.3;color:#ffe19b!important;white-space:normal;text-align:center}
.v439-evolve-button{background:linear-gradient(180deg,#fbd77e,#a66c20)!important;color:#492c11!important;font-weight:800!important;border:1px solid #ffe4a3!important}

/* V43.9.1: return visible energy gauge and gate upgrades until all four ponds evolved */
#screen .v43-fishing .v4391-energy-restored{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;padding:9px 12px!important}
#screen .v43-fishing .v4391-energy-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
#screen .v43-fishing .v4391-energy-head small{margin-left:auto;white-space:nowrap;text-align:right}
#screen .v43-fishing .v4391-energy-track{display:block!important;width:100%;height:9px!important;min-height:9px!important;margin:1px 0 3px!important;border-radius:10px!important;overflow:hidden!important}
#screen .v43-fishing .v4391-energy-track>div{height:100%;width:0%;background:linear-gradient(90deg,#db8d24,#f5d758);border-radius:10px;transition:width .25s}
#screen .v43-fishing .v4391-energy-locked{font-size:11px;color:#f9d38b;text-align:right;line-height:1.3;max-width:58%}
@media(max-width:370px){#screen .v43-fishing .v4391-energy-head{gap:4px}#screen .v43-fishing .v4391-energy-head small{font-size:10px!important}#screen .v43-fishing .v4391-energy-locked{font-size:10px}}


/* V43.10: minimal evolved pond, warehouse return, royal catch */
#game .v439-evolved .v100-pond-water{margin-bottom:5px}
#game .v439-evolved> b{margin-top:0}
#game .v4310-pond-back{display:block;width:min(94%,360px);margin:16px auto 8px;padding:13px 18px;border:2px solid #dfaf62;border-radius:13px;background:linear-gradient(#9c6a39,#674020);box-shadow:inset 0 2px 1px #e4b971,0 4px 9px #24150855;color:#fff3d0;font-weight:900;font-size:17px;text-shadow:0 2px #3b200f;cursor:pointer}
.v4310-royal-overlay{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:18px;background:radial-gradient(ellipse at center,#421a07c9,#080403ed);overflow:hidden;isolation:isolate}
.v4310-royal-dialog{position:relative;z-index:2;width:min(100%,440px);max-height:93vh;overflow:auto;border:4px ridge #ffd56b;border-radius:26px;text-align:center;padding:21px 18px 25px;background:linear-gradient(145deg,#965b27,#4d2b18 48%,#2c1b13);box-shadow:0 0 0 5px #542b12,0 0 65px #ffb1319c;color:#fff2d2;animation:v4310-pop .7s both}
.v4310-royal-crown{font-size:68px;filter:drop-shadow(0 0 18px #ffc037);animation:v4310-float 1.8s ease-in-out infinite alternate}
.v4310-royal-dialog h2{color:#ffdf6d;font-size:clamp(26px,8vw,38px);margin:5px 0 10px;text-shadow:0 3px 0 #492810,0 0 20px #ffaa22}
.v4310-royal-fish{font-size:84px;filter:drop-shadow(0 0 20px #6fdaff);animation:v4310-float 1.5s ease-in-out infinite alternate-reverse}
.v4310-royal-dialog h3{font-size:22px;color:#ffe8a9;margin:8px 0}
.v4310-royal-dialog p{margin:8px 0}.v4310-royal-dialog strong{display:block;font-size:29px;color:#fff0a3;margin:12px 0}.v4310-royal-dialog small{display:block;font-size:13px;opacity:.86}
.v4310-royal-dialog button{display:block;margin:22px auto 0;min-width:190px;border:2px solid #ffe6a1;border-radius:14px;padding:12px 20px;background:linear-gradient(#f8c565,#c28832);color:#45270e;font-size:18px;font-weight:900}
.v4310-royal-confetti{position:absolute;inset:0;pointer-events:none}.v4310-spark{position:absolute;left:var(--x);top:-15%;width:8px;height:16px;border-radius:3px;background:hsl(var(--hue) 100% 67%);box-shadow:0 0 15px currentColor;animation:v4310-fall var(--dur) var(--delay) linear infinite}
@keyframes v4310-pop{from{transform:scale(.25) rotate(-5deg);opacity:0}75%{transform:scale(1.06)}to{transform:scale(1);opacity:1}}
@keyframes v4310-float{to{transform:translateY(-11px) rotate(4deg)}}
@keyframes v4310-fall{to{transform:translateY(125vh) rotate(700deg);opacity:.25}}
@media(prefers-reduced-motion:reduce){.v4310-royal-overlay *{animation:none!important}}

/* V43.10.1: garden image alignment and transparent plant artwork */
#game #screen .v35-garden .v31-garden-scroll,#game #screen .v35-garden .v31-garden-board{overflow:visible!important;background:transparent!important;box-shadow:none!important;border:0!important;}
#game #screen .v35-garden .v31-garden-svg{overflow:visible!important;}
#fieldSeeds .plant-option-icon,#screen .plant-modal .plant-option-icon{background:none!important;border:0!important;}
#fieldSeeds .plant-option-icon img,#screen .plant-modal .plant-option-icon img{background:transparent!important;mix-blend-mode:normal!important;object-fit:contain!important;}
#screen .plant-modal h3{padding-right:27px;}
@media(max-width:600px){#game #screen .v35-garden .v31-garden-board{aspect-ratio:412 / var(--v34-mobile-h,1132)!important;}}

/* V43.10.4: centered, large crops without white/tan selection backing. */
#game #villageBeds .v43104-center-crop{filter:drop-shadow(0 2px 1px rgba(26,16,8,.24));pointer-events:none}
#game #fieldSeeds .plant-option-icon,#game #fieldSeeds .plant-option-icon img,#screen .plant-modal .plant-option-icon{background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important}
#fieldSeeds .plant-option .plant-option-icon img,#screen .plant-modal .plant-option .plant-option-icon img{object-fit:contain!important;object-position:center!important;border-radius:0!important}
#game #villageMapViewport{overflow-anchor:none;scroll-behavior:auto!important}
#game .v31-garden-scroll,#game #villageBeds{overflow-anchor:none}

/* V43.10.5: crops are clipped in the SVG soil area; do not expand their SVG bounds. */
#game #villageBeds .v43104-center-crop {pointer-events:none; transform:none!important; animation:none!important}

/* V43.10.6: leaf tops may protrude above wooden garden frames. */
#game #villageBeds .v43106-natural-plant{pointer-events:none;filter:drop-shadow(0 1px 1px rgba(32,20,10,.18));}
#game #villageBeds{overflow:visible!important;}

/* V43.10.7: allow full foliage outlines with no hard rectangular crop. */
#game #villageBeds .v30-field-bed,#game #villageBeds .v30-all-beds{overflow:visible!important;clip-path:none!important;}
#game #villageBeds .v43106-natural-plant{overflow:visible!important;mask:none!important;clip-path:none!important;}

/* V43.10.9 — compact, complete foliage, no hard clipping at bed / image edges. */
#game #villageBeds .v30-field-bed,
#game #villageBeds .v30-all-beds,
#game #villageBeds .v43106-natural-plant{
  overflow:visible!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
  mask:none!important;
  -webkit-mask:none!important;
}
#game #villageBeds .v43106-natural-plant{
  transform:none!important;
  object-fit:contain!important;
}

/* V43.10.10: foldable fields and pens, fixed-height changing action areas. */
#game #screen .v431010-section-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap;}
#game #screen .v431010-section-bar h2{min-width:0;margin:0!important;}
#game #screen .v431010-toggle{flex-shrink:0;white-space:nowrap;min-height:34px;padding:6px 12px!important;font-size:13px!important;background:linear-gradient(165deg,#a37442,#644026)!important;color:#fff1d6!important;border:1px solid #d7aa65!important;border-radius:12px!important;box-shadow:inset 0 1px 0 #e2bc7f,0 2px 4px #44271950!important;}
#game #screen .v431010-toggle:focus-visible{outline:2px solid #ffe4a0;outline-offset:2px;}
#game #screen .v431010-action-slot{min-height:55px;display:flex;align-items:flex-start;box-sizing:border-box;}
#game #screen .v431010-action-slot .v35-till-all{margin:5px 2px 8px!important;}
#game #screen .v431010-barn-action-slot{min-height:48px;display:flex;align-items:center;box-sizing:border-box;}
#game #screen .v431010-pens-collapsed .v35-pen-grid > .v35-pen:nth-child(n+3){display:none!important;}
#game #screen .v431010-pens-collapsed .v35-pen-grid{align-content:start;}
#game #screen .v35-pen .v35-pen-picture{position:relative;}
@media(max-width:600px){#game #screen .v431010-section-bar h2{font-size:20px!important;}#game #screen .v431010-toggle{font-size:12px!important;padding:5px 9px!important;}}

/* V43.11: forum help and BBCode toolbar */
.v4311-help-open,.v4311-help-back{display:block;width:100%;padding:13px 15px;margin:17px 0 12px;border:2px solid #b68a4a;border-radius:13px;background:linear-gradient(160deg,#82522d,#55321e);color:#fff3ce;font-weight:800;text-align:center;cursor:pointer}
.v4311-help{margin:12px 0 28px;color:#f8e9cb}.v4311-help>h3{text-align:center;color:#ffe29c;font-weight:900}.v4311-help>p{font-size:13px;text-align:center;color:#d6c3a4}
.v4311-help-topic{border:1px solid #946635;background:linear-gradient(160deg,#6e482b,#422719);border-radius:13px;margin:8px 0;overflow:hidden}
.v4311-help-topic>summary{display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none;color:#ffdc86}.v4311-help-topic>summary::-webkit-details-marker{display:none}
.v4311-help-icon{font-size:23px}.v4311-help-arrow{margin-left:auto;font-size:20px}.v4311-help-topic[open] .v4311-help-arrow{transform:rotate(180deg)}
.v4311-help-body{padding:3px 15px 17px;line-height:1.6;color:#fff0d4;font-size:14px;white-space:pre-line}
.v4311-bb-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.v4311-bb-toolbar button{min-width:35px;min-height:34px;padding:5px;border:1px solid #a67c45;border-radius:7px;background:#6f4a31;color:#ffecc0;font-weight:800}
.f17-body strong,.f17-body em,.f17-body u,.f17-body del{color:inherit}.f17-body blockquote{margin:10px 0;padding:8px 12px;border-left:3px solid #e8be7a;background:#4b3026}.f17-body a{color:#ffe38d;text-decoration:underline}.f17-body code{background:#3a231a;padding:2px 4px;border-radius:4px}

/* V43.11 farm equipment / fertilizer interactions */
#game #screen .v4311-garden-header-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
#game #screen .v4311-fert-shop-button{padding:7px 9px!important;min-height:37px!important;font-size:12px!important;background:linear-gradient(120deg,#526c2d,#384a28)!important;white-space:normal}
.v4311-machine-store,.v4311-fert-list{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0 24px}
.v4311-machine-card,.v4311-fert-item{display:grid;grid-template-columns:48px minmax(0,1fr) 36px;align-items:center;gap:8px;padding:11px;border:2px solid #a57643;border-radius:15px;background:linear-gradient(135deg,#6c4b2e,#3f2a1b);color:#ffe7bd}
.v4311-machine-card>.action-button,.v4311-fert-item>.action-button{grid-column:2 / 4;width:100%;min-height:35px}
.v4311-icon{display:flex;align-items:center;justify-content:center;min-width:44px;height:48px;font-size:29px}
.v4311-item-body{min-width:0}.v4311-item-body h3{margin:0 0 5px;font-size:17px;color:#f5d58f}.v4311-item-body p{margin:0 0 5px;font-size:12px;line-height:1.35}.v4311-item-body small{display:block;color:#ebd0a8;line-height:1.6}
.v4311-info-btn{width:34px;height:34px;border:2px solid #e6bd69;border-radius:50%;background:#644020;color:#ffe8ab;font-weight:900;font-size:19px}
.v4311-overlay{position:fixed;z-index:999999;inset:0;overflow-y:auto;display:flex;align-items:flex-start;justify-content:center;padding:6vh 12px;background:rgba(18,9,4,.80)}
.v4311-window{position:relative;width:min(100%,570px);padding:24px 17px;max-height:88vh;overflow:auto;background:linear-gradient(145deg,#77502f,#3e271b);border:3px ridge #c39151;border-radius:18px;color:#ffecca;box-shadow:0 15px 45px rgba(0,0,0,.5)}
.v4311-window h2{margin:0 42px 15px 0;color:#ffda87;font-size:22px}.v4311-window p{font-size:14px;line-height:1.5}
.v4311-close{position:absolute;right:10px;top:9px;width:34px;height:34px;background:#5b321c;color:#ffe7bd;border:1px solid #b48a50;border-radius:9px;font-size:26px}
.v4311-window .v4311-fert-item{grid-template-columns:42px minmax(0,1fr) 34px}
.v4311-window select{display:block;min-height:37px;width:100%;margin:8px 0;padding:5px;border-radius:8px;background:#ffecc9;color:#42270d}
.v4311-growing-actions{display:grid;gap:14px}.v4311-info-table{width:100%;border-collapse:collapse;font-size:12px}.v4311-info-table th,.v4311-info-table td{border-bottom:1px solid #987147;padding:9px 5px;vertical-align:top;text-align:left}.v4311-info-table td:first-child{white-space:nowrap}
.v4311-muted{font-size:12px;color:#dec49a}
@media(max-width:600px){#game #screen .v431010-section-bar{flex-wrap:wrap!important}#game #screen .v4311-garden-header-actions{width:100%;justify-content:space-between}#game #screen .v4311-fert-shop-button{flex:1}}

/* V43.11.1 — unified farm wood buttons, slim fertilizer rows and tactile picker. */
#game #screen .v4311-fert-shop-button{
 flex:1 1 auto;min-height:34px!important;padding:5px 11px!important;font-size:12px!important;
 background:linear-gradient(165deg,#a37442,#644026)!important;color:#fff1d6!important;
 border:1px solid #d7aa65!important;border-radius:12px!important;
 box-shadow:inset 0 1px 0 #e2bc7f,0 2px 4px #44271950!important;
 white-space:nowrap!important;
}
.v43111-equipment-caption{font-size:13px;padding:7px 10px;border-radius:9px;background:#3e2819;color:#ffe7ad;border:1px solid #a57940}
.v4311-window .v43111-compact-ferts{gap:4px;margin:8px 0 4px}
.v4311-window .v43111-compact-ferts .v4311-fert-item{
 display:grid;grid-template-columns:25px minmax(0,1fr) 28px minmax(82px,auto);gap:5px;
 padding:5px 6px;min-height:38px;border:1px solid #9a703e;border-radius:7px;
 background:linear-gradient(160deg,#6f4a2d,#4a2d1c);
}
.v4311-window .v43111-compact-ferts .v4311-icon{min-width:0;width:25px;height:25px;font-size:19px}
.v4311-window .v43111-compact-ferts .v4311-item-body b{display:block;font-size:11px;line-height:1.2;color:#ffe7b3}
.v4311-window .v43111-compact-ferts .v4311-item-body small{font-size:9px;line-height:1.2}
.v4311-window .v43111-compact-ferts .v4311-info-btn{width:27px;height:27px;font-size:15px;border-width:1px}
.v4311-window .v43111-compact-ferts .action-button{grid-column:auto!important;width:auto!important;min-width:80px!important;min-height:27px!important;padding:3px 6px!important;font-size:11px!important;border-radius:7px!important}
.v43111-fert-picker{display:flex;flex-direction:column;gap:9px}
.v43111-fert-picker>b{font-size:13px;color:#ffe5ad}
.v43111-fert-scroll{display:grid;gap:5px;overflow-y:auto;overscroll-behavior:contain;max-height:min(35vh,225px);padding:5px;background:#302016;border:1px solid #946336;border-radius:12px;scrollbar-color:#b7834d #352015}
.v43111-fert-option{display:flex;align-items:center;gap:9px;width:100%;min-height:47px;text-align:left;background:linear-gradient(#725034,#51331f);color:#ffe8c0;border:1px solid #956b3f;border-radius:9px;padding:6px 10px;cursor:pointer}
.v43111-fert-option .v43111-fert-icon{font-size:22px;width:28px;text-align:center;flex-shrink:0}
.v43111-fert-option .v43111-fert-title{flex:1;font-weight:800;font-size:13px}
.v43111-fert-option small{color:#e9cca4;white-space:nowrap;font-size:11px}
.v43111-fert-option.selected{background:linear-gradient(#9e753e,#66451f);border:2px solid #ffda84;box-shadow:inset 0 0 0 1px #fff0ad44}
.v43111-fert-option:disabled{opacity:.48;cursor:not-allowed}
.v43111-apply{width:100%;min-height:42px!important;background:linear-gradient(#728e41,#395c29)!important;border:1px solid #add378!important}
.v43111-apply:disabled{opacity:.4}
@media(max-width:380px){.v4311-window .v43111-compact-ferts .v4311-item-body b{font-size:10px}.v4311-window .v43111-compact-ferts .action-button{min-width:70px!important;font-size:10px!important}}

/* V43.11.2 profile emblems: uploaded icons by sex and level */
#game img.v43112-profile-icon,#game img.v43112-online-icon,#game .v43112-public-icon img,#game .v45-avatar img[data-v43112-user] {display:block;width:100%;height:100%;object-fit:contain;max-width:100%;}
#game .v43112-offline {filter:grayscale(1)!important;}
#game .v43112-gender-picker{display:flex;gap:10px;flex-wrap:wrap;margin:9px 0;}
#game .v43112-gender-picker button,.v43112-register-gender label {background:linear-gradient(#75502c,#422a1b);border:2px solid #bc975a;color:#ffe6ba;border-radius:9px;padding:9px 12px;font-weight:700;}
#game .v43112-gender-picker button.selected {box-shadow:0 0 0 2px #e7c77a inset;background:linear-gradient(#957040,#63401f);}
.v43112-register-gender{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:10px 0;}
.v43112-register-gender>span{width:100%;text-align:center;font-weight:800;}
.v43112-register-gender label{cursor:pointer;}
/* Android blue translucent rectangular text/touch highlight on beds */
#game .plot-grid-soil .plot,#game .plot-grid-soil .plot *,#game .plot-grid .plot,#game .plot-grid .plot *{-webkit-tap-highlight-color:transparent!important;}
#game .plot-grid-soil .plot,#game .plot-grid .plot{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
#game .plot-grid-soil .plot img,#game .plot-grid .plot img{-webkit-user-drag:none;user-select:none;}

/* V43.11.3: compact counter for new public-chat messages (not private mail). */
#game .v38-chat-link{position:relative}
#game .v43113-chat-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:23px;height:23px;border-radius:99px;padding:0 5px;margin-left:auto;font:800 12px/1 sans-serif;color:#fff4de;background:linear-gradient(160deg,#c53330,#8b181e);border:2px solid #f0bf78;box-shadow:0 2px 5px #1d100bcc;white-space:nowrap}
#game .v43113-chat-badge[hidden]{display:none!important}

/* V3.6: radio removed, keep inbox and title aligned. */
header.top.v42-43-header .v69-header-row{grid-template-columns:34px minmax(0,1fr) 103px!important}
header.top.v42-43-header .v69-left-controls{width:34px!important;min-width:0!important;max-width:34px!important}
@media(max-width:350px){header.top.v42-43-header .v69-header-row{grid-template-columns:28px minmax(0,1fr) 95px!important}header.top.v42-43-header .v69-left-controls{width:28px!important;max-width:28px!important}}

/* V3.7: compact garden list; scoped to this section only. */
#game #screen > .v37-list-garden.v35-garden{background:#123b20!important;border:2px solid #b99649!important;border-radius:12px!important;padding:10px 9px 84px!important;box-sizing:border-box;color:#fff4cf!important;min-height:0!important;}
#game #screen .v37-list-garden .v31-section-bar{display:block!important;margin:4px 0 12px!important;text-align:center;}
#game #screen .v37-list-garden .v31-section-bar h2{font-family:Georgia,serif!important;font-size:27px!important;color:#fff1cb!important;white-space:normal!important;margin:3px 0 9px!important;}
#game #screen .v37-list-garden .v31-section-bar small{display:block!important;color:#d5dbac!important;font-size:14px!important;margin-top:5px;}
#game #screen .v37-list-garden .v4311-garden-header-actions{display:flex!important;justify-content:center!important;gap:6px!important;flex-wrap:wrap!important;}
#game #screen .v37-list-garden .v4311-fert-shop-button{display:inline-flex!important;visibility:visible!important;opacity:1!important;flex:1 1 auto!important;}
#game #screen .v37-list-garden .v431010-action-slot{min-height:0!important;height:auto!important;}
#game #screen .v37-list-garden #villageBeds.v37-list{display:flex!important;flex-direction:column;gap:7px;width:100%!important;max-width:700px!important;height:auto!important;min-height:0!important;}
#game #screen .v37-list-garden .v37-list-row{display:grid;grid-template-columns:minmax(78px,30%) minmax(0,1fr);gap:10px;align-items:center;padding:8px;background:#10351d;border:1px solid #c9a653;border-radius:7px;min-height:108px;box-sizing:border-box;}
#game #screen .v37-list-garden .v37-list-row[aria-busy=true]{opacity:.7;pointer-events:none;}
#game #screen .v37-list-garden .v37-list-art{position:relative;display:grid;place-items:center;aspect-ratio:1.25;background:url('v37-list-soil.webp') center/100% 100% no-repeat;min-width:0;}
#game #screen .v37-list-garden .v37-list-art.v37-list-dry{background-image:url('v37-list-dry.webp');}
#game #screen .v37-list-garden .v37-list-art.v37-list-locked{font-size:30px;background:#305025;border:1px solid #927c46;border-radius:5px;}
#game #screen .v37-list-garden .v37-list-crop{width:80%;height:85%;object-fit:contain;position:absolute;inset:7% 10%;pointer-events:none;}
#game #screen .v37-list-garden .v37-list-emoji{font-size:40px;}
#game #screen .v37-list-garden .v37-list-copy h3{font-family:Georgia,serif!important;font-size:19px!important;line-height:1.15!important;color:#fff1cb!important;margin:0 0 4px!important;overflow-wrap:anywhere;}
#game #screen .v37-list-garden .v37-list-clocks,#game #screen .v37-list-garden .v37-list-status{display:flex!important;flex-direction:column;gap:2px;font-size:13px!important;color:#d7e4bc!important;line-height:1.25;min-height:18px;}
#game #screen .v37-list-garden .v37-list-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px;}
#game #screen .v37-list-garden button.v37-list-action{display:inline-block!important;min-height:38px!important;height:auto!important;width:auto!important;max-width:100%;padding:6px 9px!important;background:linear-gradient(#ffdb78,#eeb345)!important;color:#392509!important;border:1px solid #b98b2e!important;border-radius:6px!important;font:700 14px/1.2 system-ui,sans-serif!important;box-shadow:none!important;white-space:normal!important;touch-action:manipulation;}
#game #screen .v37-list-garden button[data-v37-list-action=details]{background:#244a2c!important;color:#f4e9bc!important;font-size:12px!important;}
#game #screen .v37-list-garden button.v37-list-action:active{opacity:.72;}
#game #screen .v37-list-garden .v37-list-buy button{margin-top:6px;}

/* V3.8 compact garden list */
#game #screen .v37-list-garden #villageBeds.v37-list{gap:4px!important;}
#game #screen .v37-list-garden .v37-list-row{grid-template-columns:56px minmax(0,1fr)!important;gap:8px!important;padding:4px 6px!important;min-height:65px!important;border-radius:5px!important;}
#game #screen .v37-list-garden .v37-list-art{width:56px!important;height:49px!important;aspect-ratio:auto!important;overflow:hidden!important;}
#game #screen .v37-list-garden .v37-list-crop{width:72%!important;height:77%!important;inset:2% 14% auto!important;object-fit:contain!important;}
#game #screen .v37-list-garden .v37-list-emoji{font-size:25px!important;transform:translateY(-3px);}
#game #screen .v37-list-garden .v37-list-copy h3{font-size:16px!important;margin:0 0 2px!important;}
#game #screen .v37-list-garden .v37-list-clocks,#game #screen .v37-list-garden .v37-list-status{font-size:12px!important;line-height:1.15!important;gap:1px!important;min-height:0!important;}
#game #screen .v37-list-garden .v37-list-actions{gap:4px!important;margin-top:3px!important;}
#game #screen .v37-list-garden button.v37-list-action{min-height:30px!important;padding:3px 7px!important;font-size:12px!important;}
#game #screen .v37-list-garden .v37-list-buy button{margin-top:3px!important;}

/* V3.9: original wheat ornament remains visible through garden list. */
#game #screen > .v37-list-garden.v35-garden{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 5px 10px!important;color:#3d220e!important;}
#game #screen .v37-list-garden .v37-list-row{background:linear-gradient(145deg,#936137,#6c4125)!important;border-color:#e6bd77!important;color:#fff1d1!important;}
#game #screen .v37-list-garden .v31-section-bar h2{color:#42260e!important;}
#game #screen .v37-list-garden .v31-section-bar small{color:#654121!important;}
#game #screen .v37-list-garden .v37-list-clocks,#game #screen .v37-list-garden .v37-list-status{color:#ffe4bd!important;}
#game #screen .v37-list-garden .v37-list-art.v37-list-locked{background:#80552d!important;}
#game #v34HomeFloating{display:none!important;}
#game:not([hidden]){padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))!important;}
#v39BottomNav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,760px);box-sizing:border-box;z-index:960;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));background:linear-gradient(#78502c,#42260f);border:2px solid #d5a85c;border-radius:11px 11px 0 0;}
#v39BottomNav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:57px;padding:2px 0!important;border:1px solid #ac7d41;border-radius:7px;background:#5f3b20;color:#ffefcd;font:700 clamp(9px,2.7vw,13px)/1.1 system-ui,sans-serif;touch-action:manipulation;box-shadow:none;}
#v39BottomNav button.active{background:#a47539;border-color:#ffe19a;}
#v39BottomNav img{width:38px;height:38px;object-fit:contain;border-radius:5px;}
#game[hidden] #v39BottomNav{display:none!important;}
#v39ChatOverlay > .v39-chat-panel{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))!important;}

/* V4.0: exact supplied wallpaper, matte green UI surfaces. */
html,html:root{background-color:#16451d!important;}
body{background-color:#16451d!important;background-image:url('v40-green-background.webp')!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;background-attachment:fixed!important;color:#fff5d8!important;}
body > .shell,body .shell,#game,#game > #screen{background:transparent!important;}
#game #screen > .v37-list-garden.v35-garden{color:#fff5d8!important;}
#game #screen .v37-list-garden .v37-list-row{background:#285b30!important;border-color:#9ba65d!important;color:#fff5d8!important;}
#game #screen .v37-list-garden .v31-section-bar h2{color:#fff5d8!important;text-shadow:0 1px 2px #18351a!important;}
#game #screen .v37-list-garden .v31-section-bar small,#game #screen .v37-list-garden .v37-list-clocks,#game #screen .v37-list-garden .v37-list-status{color:#e0ebc9!important;}
#game #screen .v37-list-garden .v37-list-art.v37-list-locked{background:#38663a!important;}
#game #screen .v35-main .v35-major,#game #screen .v35-main .v35-major.v40-collectives-link,#game #screen .v35-main .v35-major.v46-minigame-link,#game #screen .v35-city-menu > button.v35-link,#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link{background:#285b30!important;border:1px solid #a5af68!important;border-radius:9px!important;}
#v39BottomNav{background:#204927!important;border-color:#a5af68!important;}
#v39BottomNav button{background:#315e34!important;border-color:#82984e!important;}
#v39BottomNav button.active{background:#527d3c!important;border-color:#e0d18a!important;}
.v42-mail-dialog,.v41-mailbox-dialog,#v39ChatOverlay .v39-chat-panel{background-color:#16451d!important;}

/* V4.1: unified matte green panels, carved warm wood edging. */
:root{--v41green:#23552d;--v41green-dark:#173f22;--v41green-text:#fff4d8;--v41wood:#a86b39;--v41wood-light:#f1c18a;--v41wood-dark:#70401e;}
#game #screen .v35-main .v35-major,#game #screen .v35-main .v35-major.v40-collectives-link,#game #screen .v35-main .v35-major.v46-minigame-link,#game #screen .v35-city-menu > button.v35-link,#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link,
#game #screen .v37-list-garden .v37-list-row,
#game #screen :is(.v35-pen,.pen-card,.v40-animal-card,.v42-barn-manage-item,.v432-barn-item,.store-row,.barn-card,.v44-shop-item,.v4311-machine-card,.v4311-fert-item,.f17-folder,.f17-post,.f17-compose,.v43-card,.v43-list-card,.v43-chat-row,.v43-member,.v85-member,.v89-rating-row,.v90-quick-tile,.v31-hub-tile,.v41-profile-panel,.v35-profile-card,.achievement-card,.v38-online-player,.v41-inbox-item,.v100-pond,.v100-rod,.v38-shelf,.v4311-help-topic,.v45-leader,.record-online,.v35-online-stats),
#game .v38-chat-message,#v39ChatOverlay .v38-chat-message,.v42-mail-dialog .v42-mail-bubble,.v41-mailbox-dialog .v41-inbox-item{
 background:linear-gradient(155deg,#2d6538,#1c4828)!important;
 border:2px solid var(--v41wood)!important;border-radius:11px!important;
 box-shadow:inset 0 0 0 1px var(--v41wood-light),0 2px 0 var(--v41wood-dark)!important;
 color:var(--v41green-text)!important;
}
#game #screen .v35-main .v35-major{filter:none!important;outline:none!important;}
#game #screen .v35-main .v35-major::before,#game #screen .v35-main .v35-major::after{display:none!important;content:none!important;}
#game #screen :is(.v35-major,.v35-link,.v37-list-row,.v35-pen,.v43-card,.v43-list-card,.f17-folder,.f17-post,.v432-barn-item,.v44-shop-item,.v90-quick-tile,.v38-online-player,.v41-profile-panel) :is(h2,h3,h4,b,strong,label){color:#fff4d8!important;}
#game #screen :is(.v35-major,.v35-link,.v37-list-row,.v43-card,.f17-folder,.f17-post,.v432-barn-item,.v44-shop-item) :is(small,.muted,.v43-muted,.v35-note){color:#dce9c5!important;}
#game #screen > :is(.v35-main,.v35-group,.v35-area,.v43-groups,.f17-root,.v38-section,.v432-barn,.v44-shop,.v40-section,.v37-list-garden){background:transparent!important;box-shadow:none!important;}
#game #screen :is(.v43-head,.v43-content,.v43-tabs,.v43-footer,.v432-barn-panel,.v38-chat-log,.v38-chat-section,.v38-chat-compose,.v38-chat-form,.v40-detail,.v41-profile-details-body,.v89-ratings,.v90-quick-section,.f17-header,.f17-list,.v35-pen-grid){background-color:transparent!important;background-image:none!important;color:#fff4d8!important;}
#game #screen :is(.v43-head,.f17-header,.v432-barn-heading,.v38-section-title,.v31-section-bar,.section-head) :is(h1,h2,h3,b,strong),#game #screen :is(.v43-head,.f17-header,.v432-barn-heading,.v38-section-title){color:#fff4d8!important;}
#v39ChatOverlay .v39-chat-panel,.v42-mail-dialog,.v41-mailbox-dialog,.v4311-window,.plant-modal{background:#204b2b!important;border-color:#b47740!important;color:#fff4d8!important;}
#v39ChatOverlay :is(.v38-chat-log,.v38-chat-section,.v38-chat-compose,.v38-chat-form,.v39-chat-head){background:#1d4527!important;color:#fff4d8!important;}
#game .v38-chat-message .v38-chat-body,#v39ChatOverlay .v38-chat-message .v38-chat-body{color:#fff4d8!important;}
#game .v38-chat-message .v38-chat-meta,#v39ChatOverlay .v38-chat-message .v38-chat-meta{color:#d6e1bd!important;}
#v39BottomNav{background:linear-gradient(0deg,#593319 0%,#a66a37 7%,#78451f 12%,#966036 40%,#81502a 44%,#a16b3c 77%,#d4995c 94%,#72421f 100%)!important;border:2px solid #ac703c!important;border-radius:13px 13px 0 0!important;box-shadow:inset 0 0 0 1px #f4c78b,inset 0 0 0 4px #754321,0 -2px 5px #10280e55!important;gap:4px!important;padding:7px 7px calc(7px + env(safe-area-inset-bottom,0px))!important;}
#v39BottomNav button{background:linear-gradient(#2d6538,#194425)!important;border:2px solid #a66a37!important;border-radius:8px!important;box-shadow:inset 0 0 0 1px #e9ba7c!important;color:#fff4d8!important;min-height:58px!important;font-family:Georgia,serif!important;}
#v39BottomNav button.active{background:linear-gradient(#628b36,#356025)!important;border-color:#e8c16e!important;box-shadow:inset 0 0 0 1px #ffdf8a!important;}
#v39BottomNav img{border:0!important;box-shadow:none!important;object-fit:contain!important;}
#game:not([hidden]){padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;}
#v39ChatOverlay > .v39-chat-panel{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;}

/* V4.2 — green inner columns; retain the wooden edging and wallpaper. */
#game #screen :is(.v35-lottery,.v35-lottery-wheel,.v432-barn-panel,.v432-barn-summary,.v432-barn-tabs,.v432-barn-item,.v432-barn-empty,.v85-collective-name,.v43-card,.v43-member,.v43-player,.v43-overview-metrics,.v43-bank,.v43-post,.v43-topic,.v43-chat-row,.v43-chat-row.v86-chat-own,.v90-quick-tile,.v44-shop-details,.v44-shop-item,.v41-profile-header,.v41-profile-details,.v41-achievements-details,.v40-section,.v42-admin,.v42-barn-manage-item,.v35-pen,.v35-pen-no,.v35-spin,.f17-folder,.f17-post,.f17-compose,.v35-online-stats,.v38-shelf,.v100-pond,.v100-rod),
#v39ChatOverlay .v38-chat-message:is(.v55-chat-sent,.v55-chat-received),.v42-mail-dialog .v42-mail-bubble,.v41-mailbox-dialog .v41-inbox-item{
 background:linear-gradient(145deg,#32643a,#21492b)!important;border-color:#aa753e!important;color:#fff4d8!important;box-shadow:inset 0 0 0 1px #d9ab70!important;
}
#game #screen :is(.v35-lottery,.v432-barn,.v43-groups,.v44-shop,.v40-section,.v42-admin,.f17-root) :is(h1,h2,h3,h4,b,strong,label,summary,p,small,.v43-muted,.v35-footnote){color:#fff4d8!important;}
#game #screen :is(.v432-barn-tabs button,.v35-spin,.v43-button,.v43-small-action,.v89-rating-launch,.f17-pages button,.v44-shop button,.v42-admin-tabs button,.v90-section-back,.action-button):not(.v43-danger),#v39ChatOverlay :is(.v42-chat-send,.v39-chat-x){background:linear-gradient(#467a42,#2a542c)!important;color:#fff4d8!important;border:1px solid #c39a61!important;box-shadow:inset 0 0 0 1px #789657!important;}
#game #screen :is(.v432-barn-tabs button[aria-selected=true],.v43-tabs button.is-active){background:#60834a!important;}
#v39ChatOverlay :is(.v38-chat-log,.v38-chat-compose,.v38-chat-form,.v39-chat-head){background:#204b2b!important;color:#fff4d8!important;}
#v39ChatOverlay .v39-chat-x{width:auto!important;min-width:76px!important;padding:5px 9px!important;font-size:13px!important;}
#v42BackBar{padding:4px 7px 2px;text-align:left;}
#v42BackBar[hidden]{display:none!important;}
#v42BackButton{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;background:linear-gradient(#43743e,#254d2c)!important;border:1px solid #c39a61!important;border-radius:7px;color:#fff4d8!important;font:700 14px/1.2 system-ui,sans-serif;box-shadow:inset 0 0 0 1px #86a16c;touch-action:manipulation;}
#v39BottomNav button{position:relative;}
#v39BottomNav #v43113ChatBadge{position:absolute;top:2px;right:3px;min-width:14px;line-height:15px;font-size:10px;padding:0 3px;}
#v39BottomNav #v43113ChatBadge[hidden]{display:none!important;}

/* V4.4 — compact green farm UI, without changing gameplay layout or the main wallpaper. */
header.top.v42-43-header .v69-header-row{grid-template-columns:minmax(64px,1fr) minmax(0,2.7fr) minmax(64px,1fr)!important;gap:4px!important;min-height:42px!important;height:auto!important;background:transparent!important;}
header.top.v42-43-header .v69-left-controls{grid-column:1!important;grid-row:1!important;justify-content:flex-start!important;}
header.top.v42-43-header .v31-head-actions{grid-column:3!important;grid-row:1!important;justify-content:flex-end!important;}
header.top.v42-43-header .v69-left-controls>button,header.top.v42-43-header .v69-left-controls #v35TopCorner,header.top.v42-43-header .v31-head-actions>button{position:relative!important;inset:auto!important;flex:0 0 28px!important;width:28px!important;min-width:28px!important;max-width:28px!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;margin:0!important;background:linear-gradient(#865a32,#54341f)!important;border:1px solid #d8ad70!important;border-radius:7px!important;color:#fff4d8!important;box-shadow:inset 0 0 0 1px #b78952!important;}
header.top.v42-43-header .v69-left-controls>button[hidden]{display:none!important;}
header.top.v42-43-header .v42-ref-title{position:relative!important;min-height:36px!important;padding:5px 3px!important;background:linear-gradient(180deg,#efc889,#a76b36 12%,#dba96a 20%,#edcb92 48%,#d7a569 80%,#a46a36 92%,#eac084)!important;border:1px solid #a26936!important;border-radius:9px!important;box-shadow:inset 0 0 0 1px #f9dca6,0 2px 3px #172c1670!important;}
header.top.v42-43-header .v42-ref-title::before,header.top.v42-43-header .v42-ref-title::after{content:'';display:block;position:absolute;left:16%;right:16%;height:5px;background:url('v44-title-ornament.svg') center/contain no-repeat;pointer-events:none;}
header.top.v42-43-header .v42-ref-title::before{top:0;}
header.top.v42-43-header .v42-ref-title::after{bottom:0;transform:rotate(180deg);}
header.top.v42-43-header .v42-ref-title strong{font-family:Georgia,serif!important;font-size:clamp(12px,3.8vw,20px)!important;letter-spacing:-.03em!important;color:#492713!important;-webkit-text-stroke:0!important;text-shadow:0 1px #ffe2b0!important;white-space:nowrap!important;}
header.top.v42-43-header .v42-ref-title .v434-online-badge{min-width:19px!important;height:19px!important;font-size:11px!important;padding:0 3px!important;}
@media(max-width:340px){header.top.v42-43-header .v69-header-row{grid-template-columns:57px minmax(0,1fr) 57px!important;gap:2px!important;}header.top.v42-43-header .v69-left-controls>button,header.top.v42-43-header .v69-left-controls #v35TopCorner,header.top.v42-43-header .v31-head-actions>button{flex-basis:26px!important;width:26px!important;min-width:26px!important;max-width:26px!important;}}
#game #screen > .v37-list-garden.v35-garden{padding-top:0!important;}
#game #screen .v37-list-garden .v31-section-bar.v44-garden-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:5px!important;margin:0 0 5px!important;text-align:left!important;}
#game #screen .v37-list-garden .v44-garden-head h2{font-size:20px!important;margin:0!important;line-height:1.12!important;white-space:nowrap!important;}
#game #screen .v37-list-garden .v44-garden-head small{display:inline!important;margin-left:3px!important;margin-top:0!important;font-size:12px!important;}
#game #screen .v37-list-garden .v44-garden-head .v4311-garden-header-actions{width:auto!important;flex:0 0 auto!important;flex-wrap:nowrap!important;gap:4px!important;}
#game #screen .v37-list-garden .v44-garden-head button{min-height:32px!important;height:32px!important;padding:3px 7px!important;font-size:11px!important;white-space:nowrap!important;}
#game #screen .v37-list-garden .v44-garden-head .v22-bed-refresh{width:32px!important;min-width:32px!important;padding:0!important;font-size:24px!important;line-height:1!important;}
#game #screen .v37-list-garden .v431010-action-slot:empty{display:none!important;}
#game #screen .v37-list-garden .v37-list-row{min-height:52px!important;padding:3px 5px!important;gap:6px!important;grid-template-columns:48px minmax(0,1fr)!important;border-width:1px!important;border-radius:7px!important;}
#game #screen .v37-list-garden .v37-list-art{width:48px!important;height:42px!important;}
#game #screen .v37-list-garden .v37-list-copy h3{font-size:15px!important;line-height:1.05!important;}
#game #screen .v37-list-garden .v37-list-clocks,#game #screen .v37-list-garden .v37-list-status{font-size:11px!important;}
#game #screen .v37-list-garden .v37-list-actions{margin-top:2px!important;gap:3px!important;}
#game #screen .v37-list-garden button.v37-list-action{min-height:28px!important;padding:3px 6px!important;font-size:11px!important;}
#game #screen .v44-bed-tools{display:grid;gap:4px;margin:8px 0 0;padding:6px;background:#173e26e8;border:1px solid #b27b42;border-radius:8px;color:#fff4d8;box-shadow:inset 0 0 0 1px #d6b178;}
#game #screen .v44-bed-tools>button,#game #screen .v44-fert-choices button,.v4311-overlay .v44-fert-choices button{display:flex;align-items:center;gap:7px;text-align:left;min-height:34px;padding:4px 7px;background:#315e36!important;border:1px solid #ae8250!important;border-radius:6px;color:#fff4d8!important;font-size:13px;white-space:normal;box-shadow:none!important;}
#game #screen .v44-bed-tools>button:disabled{opacity:.48;}
#game #screen .v44-bed-tools>button>span:first-child{font-size:19px;flex:none;}
#game #screen .v44-bed-tools>button img{display:block;width:24px;height:24px;object-fit:contain;}
#game #screen .v44-bed-tools b{color:#f7de90!important;}
#game #screen .v44-clear-clock{color:#e6e9c6;font-size:12px;padding:3px 5px;}
#game #screen .v44-bed-pages{display:flex;gap:4px;align-items:center;justify-content:center;padding:0 0 3px;font-size:13px;font-weight:700;}
#game #screen .v44-bed-pages button{min-width:32px;min-height:32px;background:#39663b!important;color:#fff4d8!important;border:1px solid #ad8650!important;border-radius:5px;font-size:18px;padding:0!important;}
#game #screen .v44-bed-pages button:disabled{opacity:.35;}
.v4311-overlay .v44-fert-choices{display:grid;gap:5px;}
.v4311-overlay .v44-fert-choices button>span:first-child{font-size:24px;}
.v4311-overlay .v44-fert-choices button>span:last-child{display:grid;gap:2px;}
.v4311-overlay .v44-fert-choices button small{color:#dfebc9!important;}
/* Narrower location cards, preserve readable text and actions. */
#game #screen .v35-city-menu > button.v35-link,#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link,#game #screen .v35-main .v35-major,#game #screen .v35-main .v35-major.v40-collectives-link,#game #screen .v35-main .v35-major.v46-minigame-link{height:46px!important;min-height:46px!important;max-height:none!important;padding:3px 8px!important;gap:7px!important;border-width:1px!important;border-radius:7px!important;}
#game #screen .v35-city-menu > button.v35-link b,#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link b,#game #screen .v35-main .v35-major b{font-size:17px!important;line-height:1.1!important;}
#game #screen .v35-city-menu > button.v35-link .v35-link-icon,#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v35-link-icon{flex:0 0 30px!important;width:30px!important;height:30px!important;font-size:24px!important;}
#game #screen .v35-city-menu > button.v35-link .v35-link-icon img,#game #screen > .v35-group:not(.v35-city-menu) > button.v35-link .v35-link-icon img{width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;}
#game #screen > .v35-group{gap:5px!important;padding-top:3px!important;padding-bottom:5px!important;}
#game #screen > .v35-group h2{margin:3px 0 6px!important;}
#game #screen :is(.v35-pen,.pen-card,.v38-shelf,.v100-pond,.v100-rod,.v432-barn-item,.v43-card,.v43-list-card,.f17-folder,.f17-post,.v44-shop-item,.v90-quick-tile,.v41-profile-panel,.v38-online-player){padding:6px!important;border-width:1px!important;border-radius:8px!important;gap:5px!important;}
#game #screen :is(.v35-pen-grid,.v38-shelf-grid,.v100-pond-grid,.v100-rod-grid){gap:6px!important;}
#game #screen .v35-pen .v35-pen-picture{height:76px!important;min-height:0!important;}
#game #screen .v38-shelf{min-height:0!important;}
#game #screen .v100-pond:not(.v439-evolved) .v100-pond-water{height:62px!important;min-height:0!important;}
#game #screen .v100-pond.v439-evolved .v439-evolved-image{max-height:95px!important;}
#game #screen .v35-lottery .v35-lottery-wheel{height:auto!important;min-height:110px!important;padding:8px!important;border:2px solid #b27b42!important;border-radius:9px!important;gap:3px!important;background:radial-gradient(ellipse,#467b3d,#204d29)!important;}
#game #screen .v35-lottery .v35-lottery-star{font-size:42px!important;line-height:1.05!important;}
#game #screen .v35-lottery .v35-lottery-wheel b{font-size:18px!important;}
#game #screen .v35-lottery .v35-spin{min-height:42px!important;padding:5px!important;font-size:13px!important;}

/* V4.5: compact conditional equipment controls. */
#game #screen .v37-list-garden .v431010-action-slot{flex-wrap:wrap;gap:5px;align-items:center;margin:0 0 5px;}
#game #screen .v37-list-garden .v431010-action-slot:empty{display:none!important;margin:0;}
#game #screen .v45-machine-action{font-size:12px;min-height:32px;padding:5px 8px;margin:0;max-width:100%;white-space:normal;}
#game #screen [aria-busy=true].action-button{opacity:.65;cursor:progress;}
/* V4.8 compact equipment and green warehouse actions */
#game #screen .v48-machine-head{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;margin:3px 0 6px;padding:2px 0}
#game #screen .v48-machine-head h2{margin:0;text-align:center;width:100%;font-size:17px;line-height:1.2}
#game #screen .v48-machine-head small{font-size:11px;margin:0}
#game #screen .v4311-machine-store{display:grid;gap:4px;margin:0}
#game #screen .v4311-machine-card{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto 25px!important;grid-template-rows:auto!important;align-items:center;gap:4px!important;padding:3px 4px!important;min-height:40px!important;border-width:1px!important;border-radius:7px!important;margin:0!important;box-shadow:inset 0 0 0 1px #9b7945!important}
#game #screen .v4311-machine-card>.v4311-icon{grid-column:1;grid-row:1;font-size:22px;width:24px;height:28px;line-height:28px}
#game #screen .v4311-machine-card>.v4311-item-body{grid-column:2;grid-row:1;min-width:0}
#game #screen .v4311-machine-card h3{font-size:clamp(10px,3.3vw,14px);line-height:1.15;margin:0;overflow-wrap:anywhere}
#game #screen .v4311-machine-card small{font-size:10px;line-height:1.15;margin:1px 0 0}
#game #screen .v4311-machine-card>.action-button{grid-column:3!important;grid-row:1!important;width:auto!important;min-width:0!important;min-height:29px!important;max-width:none!important;padding:3px 5px!important;font-size:clamp(10px,2.9vw,12px)!important;line-height:1.15;white-space:nowrap;margin:0!important}
#game #screen .v4311-machine-card>.v4311-info-btn{grid-column:4;grid-row:1;width:25px!important;height:27px!important;min-height:0!important;padding:0!important;border:1px solid #c39a61!important;background:#315f36!important;color:#fff1c5!important;font-size:17px!important}
#game #screen .v432-barn-heading{display:flex;justify-content:center;align-items:center;text-align:center;padding:2px!important;margin:0 0 5px!important}
#game #screen .v432-barn-heading h2{margin:0;text-align:center}
#game #screen .v432-barn :is(.v432-barn-summary button,.v432-barn-item button,.v432-barn-tabs button){background:linear-gradient(#467a42,#2a542c)!important;border:1px solid #c39a61!important;color:#fff4d8!important;text-shadow:0 1px #18391d!important;box-shadow:inset 0 0 0 1px #789657!important}
#game #screen .v432-barn-tabs button[aria-selected=true]{background:#60834a!important}

/* V4.9 — compact pen list, transparent original paddock, city banner and new artwork. */
#game #screen .v48-machine-head{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;text-align:left!important;gap:6px!important}
#game #screen .v48-machine-head h2{width:auto!important;text-align:left!important;font-size:17px!important;margin:0!important;line-height:1.2!important}
#game #screen .v48-machine-head small{white-space:nowrap;color:#fff0c9!important}
#game #screen .v49-city-banner{display:block;width:100%;height:auto;aspect-ratio:780/168;object-fit:contain;max-height:110px;margin:2px auto 6px;border:1px solid #c69c62;border-radius:8px;box-sizing:border-box}
#v39BottomNav button img{width:36px!important;height:36px!important;object-fit:contain!important;object-position:center!important;flex:none!important;background:none!important;border-radius:0!important;padding:0!important;filter:none!important;transform:none!important}
#game #screen .v49-pen-list{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin:5px 0}
#game #screen .v431010-pens-collapsed .v49-pen-list>.v49-pen:nth-child(n+3){display:none!important}
#game #screen .v49-pen-list>.v49-pen{display:grid!important;grid-template-columns:clamp(80px,25vw,115px) minmax(0,1fr);gap:7px;align-items:center;padding:5px 7px!important;background:#245334!important;border:2px solid #bd915e!important;border-radius:9px!important;box-shadow:inset 0 0 0 1px #e2bc83,0 1px 2px #16361c80!important;color:#fff4d8!important;min-width:0;min-height:70px}
#game #screen .v49-pen-art{position:relative;display:block;width:100%;aspect-ratio:1.45;isolation:isolate;background:none;align-self:center}
#game #screen .v49-pen-art>.v49-pen-ground{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;background:none;border:0;box-shadow:none}
#game #screen .v49-pen-animal{position:absolute;left:24%;right:24%;top:19%;bottom:13%;display:flex;align-items:flex-end;justify-content:center;font-size:26px;line-height:1;pointer-events:none}
#game #screen .v49-pen-animal>img{display:block;max-width:100%;max-height:100%;height:auto;width:auto;object-fit:contain;background:none!important;border:0!important;box-shadow:none!important;filter:drop-shadow(0 1px 1px #38271980)}
#game #screen .v49-pen-animal:empty{display:none}
#game #screen .v49-pen-body{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
#game #screen .v49-pen-name{font:700 clamp(15px,4vw,19px)/1.15 Georgia,serif;color:#fff4d8!important;overflow-wrap:anywhere}
#game #screen .v49-pen-number{font-size:10px;line-height:1.1;color:#cfdbbb!important}
#game #screen .v49-pen-status{display:grid;gap:1px;font-size:clamp(11px,3.4vw,14px);line-height:1.2;color:#e4efcf;max-width:100%}
#game #screen .v49-pen-status b{font-weight:600;color:#fff1c8!important}
#game #screen .v49-pen-body>.v42-pen-icon-actions{position:static!important;display:flex!important;gap:5px;justify-content:flex-start;align-items:center;margin:2px 0 0;padding:0;background:none;min-height:0}
#game #screen .v49-pen-body>.v42-pen-icon-actions[hidden]{display:none!important}
#game #screen .v49-pen-body .v42-pen-icon-btn{flex:0 0 35px!important;width:35px!important;height:29px!important;border-radius:6px!important;background:#396d38!important;border:1px solid #d4ae72!important;box-shadow:none!important;font-size:17px!important}
#game #screen .v49-pen-body .v42-pen-icon-btn.is-ready{background:#4b823b!important}
#game #screen .v49-pen-body .v49-pen-action{width:auto!important;min-height:29px!important;padding:4px 8px!important;margin:3px 0 0!important;font-size:12px!important;background:#3f703b!important;border:1px solid #c49b65!important;color:#fff4d8!important;border-radius:6px!important}

/* V5.0 — pen actions use the same compact gold treatment as garden actions. */
#game #screen .v49-pen-status[hidden],#game #screen .v49-pen-status > span[hidden]{display:none!important;}
#game #screen .v49-pen-body > .v42-pen-icon-actions{flex-wrap:wrap!important;gap:3px!important;width:100%;margin-top:2px!important;}
#game #screen .v49-pen-body button.v50-pen-action-btn,#game #screen .v49-pen-body button.v49-pen-action{position:relative!important;display:inline-block!important;flex:0 1 auto!important;min-width:0!important;min-height:28px!important;height:auto!important;width:auto!important;max-width:100%!important;padding:3px 6px!important;margin:0!important;background:linear-gradient(#ffdb78,#eeb345)!important;color:#392509!important;border:1px solid #b98b2e!important;border-radius:6px!important;font:700 11px/1.2 system-ui,sans-serif!important;box-shadow:none!important;text-shadow:none!important;white-space:normal!important;touch-action:manipulation!important;text-align:center!important;}
#game #screen .v49-pen-body button.v50-pen-action-btn:active:not(:disabled),#game #screen .v49-pen-body button.v49-pen-action:active:not(:disabled){opacity:.72;}
#game #screen .v49-pen-body button.v49-pen-action:disabled{opacity:.5!important;cursor:default!important;}

/* V5.1: pen header matches garden, collapse shows exactly one pen. */
#game #screen .v431010-pens-collapsed .v49-pen-list>.v49-pen:nth-child(n+2){display:none!important}
#game #screen .v51-barn-head{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;gap:5px!important;margin:0 0 5px!important;padding:0!important}
#game #screen .v51-barn-head h2{font-size:20px!important;margin:0!important;line-height:1.12!important;white-space:nowrap!important}
#game #screen .v51-barn-head small{display:inline!important;margin-left:3px!important;font-size:12px!important;color:#fff0c9!important}
#game #screen .v51-barn-head-controls{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:4px!important;flex-wrap:nowrap!important}
#game #screen .v51-barn-head-controls button{min-height:32px!important;height:32px!important;padding:3px 7px!important;font-size:11px!important;white-space:nowrap!important;margin:0!important}
#game #screen .v51-barn-head-controls [data-v51-refresh-pens]{width:32px!important;min-width:32px!important;padding:0!important;font-size:24px!important;line-height:1!important}
#game #screen .v51-barn-actions{display:flex!important;flex-wrap:wrap!important;gap:4px!important;margin:0 0 5px!important;padding:0!important;min-height:0!important}
#game #screen .v51-barn-actions button{width:auto!important;min-height:30px!important;padding:4px 7px!important;margin:0!important;font-size:12px!important;flex:1 1 auto!important}

/* V5.2 compact top controls: collapse, refresh, gear, always in one row. */
#game #screen .v52-section-head{margin-top:0!important;padding-top:0!important;min-height:0!important;align-items:center!important;gap:3px!important;flex-wrap:nowrap!important}
#game #screen .v52-section-head h2{font-size:17px!important;line-height:1.15!important;margin:0!important;min-width:0!important;white-space:nowrap!important}
#game #screen .v52-section-head h2 small{font-size:10px!important;margin-left:1px!important}
#game #screen .v52-section-head .v52-head-controls{display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;width:auto!important;justify-content:flex-end!important;gap:3px!important;margin-left:auto!important}
#game #screen .v52-section-head .v52-head-controls button{height:30px!important;min-height:30px!important;min-width:0!important;width:auto!important;margin:0!important;padding:2px 5px!important;white-space:nowrap!important;font-size:11px!important;line-height:1!important}
#game #screen .v52-section-head .v52-head-controls .v52-head-icon{width:30px!important;min-width:30px!important;padding:0!important;font-size:21px!important}
#game #screen .v51-barn-actions[hidden]{display:none!important}
#game #screen .v52-bed-manage-list{display:grid;gap:6px}
@media(max-width:350px){#game #screen .v52-section-head h2{font-size:14px!important}#game #screen .v52-section-head .v52-head-controls button{font-size:10px!important;padding:2px 3px!important}#game #screen .v52-section-head .v52-head-controls .v52-head-icon{width:27px!important;min-width:27px!important;font-size:19px!important}}
#game #screen .v37-list-garden .v44-garden-head.v52-section-head h2{font-size:17px!important}
#game #screen .v37-list-garden .v44-garden-head.v52-section-head small{font-size:10px!important;margin-left:1px!important}
#game #screen .v37-list-garden .v44-garden-head.v52-section-head .v52-head-controls{gap:3px!important}
#game #screen .v37-list-garden .v44-garden-head.v52-section-head button{height:30px!important;min-height:30px!important;padding:2px 5px!important}
#game #screen .v37-list-garden .v44-garden-head.v52-section-head .v52-head-icon{width:30px!important;min-width:30px!important;padding:0!important;font-size:21px!important}
#game #screen .v52-section-head .v431010-toggle{background:linear-gradient(165deg,#426c39,#23462c)!important;border:1px solid #c6a36a!important;box-shadow:inset 0 1px 0 #749063!important;border-radius:6px!important}
@media(max-width:350px){#game #screen .v37-list-garden .v44-garden-head.v52-section-head h2{font-size:14px!important}#game #screen .v37-list-garden .v44-garden-head.v52-section-head .v52-head-icon{width:27px!important;min-width:27px!important;font-size:19px!important}}

/* V6.2 orchard, scoped to its own location */
#game #screen .v62-orchard{max-width:760px;margin:0 auto;padding:4px;color:#f7e5bb}
#game #screen .v62-head{display:flex;align-items:center;gap:5px;margin:0 0 6px}
#game #screen .v62-head h2{font-size:17px;flex:1;margin:0;color:#ffe0a1;text-shadow:0 1px 2px #182c17}
#game #screen .v62-head button,#game #screen .v62-pages button,#game #screen .v62-picker select{background:#305a37;color:#fff0cb;border:1px solid #bd985e;border-radius:7px;padding:4px 7px;min-height:30px;font:inherit;font-size:12px}
#game #screen .v62-summary,#game #screen .v62-picker,#game #screen .v62-pages{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:5px 0;font-size:12px}
#game #screen .v62-picker select{min-width:0;flex:1;max-width:72%}
#game #screen .v62-list{display:grid;gap:5px}
#game #screen .v62-card{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:7px;background:linear-gradient(155deg,#365b38,#23482d);border:1px solid #b89357;border-radius:8px;padding:5px;box-shadow:inset 0 0 0 1px #765a35;color:#f8e6be}
#game #screen .v62-card b,#game #screen .v62-card small{display:block;line-height:1.25;color:#f9e8c0}
#game #screen .v62-card b{font-size:14px}#game #screen .v62-card small{font-size:11px;margin:2px 0}
#game #screen .v62-tree,#game #screen .v62-locked img{width:74px;height:74px;object-fit:contain;display:block}
#game #screen .v62-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
#game #screen button.v62-action{font-size:11px;min-height:27px;padding:3px 6px;border:1px solid #e1bd6b;border-radius:6px;background:linear-gradient(#e9c66e,#b78937);color:#392910;font-weight:700;box-shadow:none;cursor:pointer}
#game #screen button.v62-secondary,#game #screen button.v62-expand{background:#325b38;color:#ffe9b3;border-color:#ba965a}
#game #screen button.v62-expand{margin:6px 0;width:100%;min-height:34px}
#game #screen .v62-note{display:block;font-size:11px;margin-top:5px;color:#ecd8ab}
#game #screen .v62-pages{justify-content:center;gap:12px}
#game #screen .v62-orchard button:disabled{opacity:.55;cursor:default}

/* V6.3 — compact workshop in the existing green/wood theme. */
#game #screen .v63-workshop .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v63-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v63-workshop .v63-slot,#game #screen .v63-workshop .v63-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v63-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v63-workshop .v63-short{color:#ffb5a0!important}
#game #screen .v63-workshop .v62-action{margin-top:3px;min-height:30px}

/* V6.4 — compact mill in the existing green/wood theme. */
#game #screen .v64-mill .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v64-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v64-mill .v64-slot,#game #screen .v64-mill .v64-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v64-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v64-mill .v64-short{color:#ffb5a0!important}
#game #screen .v64-mill .v62-action{margin-top:3px;min-height:30px}

/* V6.5 — compact dairy in the existing green/wood theme. */
#game #screen .v65-dairy .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v65-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v65-dairy .v65-slot,#game #screen .v65-dairy .v65-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v65-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v65-dairy .v65-short{color:#ffb5a0!important}
#game #screen .v65-dairy .v62-action{margin-top:3px;min-height:30px}

/* V6.6 — compact textile in the existing green/wood theme. */
#game #screen .v66-textile .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v66-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v66-textile .v66-slot,#game #screen .v66-textile .v66-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v66-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v66-textile .v66-short{color:#ffb5a0!important}
#game #screen .v66-textile .v62-action{margin-top:3px;min-height:30px}

/* V6.7 — compact bakery in the existing green/wood theme. */
#game #screen .v67-bakery .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v67-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v67-bakery .v67-slot,#game #screen .v67-bakery .v67-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v67-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v67-bakery .v67-short{color:#ffb5a0!important}
#game #screen .v67-bakery .v62-action{margin-top:3px;min-height:30px}

/* V6.8 — compact sewing in the existing green/wood theme. */
#game #screen .v68-sewing .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v68-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v68-sewing .v68-slot,#game #screen .v68-sewing .v68-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v68-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v68-sewing .v68-short{color:#ffb5a0!important}
#game #screen .v68-sewing .v62-action{margin-top:3px;min-height:30px}

/* V6.9 — compact canning in the existing green/wood theme. */
#game #screen .v69-canning .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v69-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v69-canning .v69-slot,#game #screen .v69-canning .v69-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v69-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v69-canning .v69-short{color:#ffb5a0!important}
#game #screen .v69-canning .v62-action{margin-top:3px;min-height:30px}

/* V7.0 — compact sweets in the existing green/wood theme. */
#game #screen .v70-sweets .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v70-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v70-sweets .v70-slot,#game #screen .v70-sweets .v70-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v70-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v70-sweets .v70-short{color:#ffb5a0!important}
#game #screen .v70-sweets .v62-action{margin-top:3px;min-height:30px}

/* V7.1 — compact perfume in the existing green/wood theme. */
#game #screen .v71-perfume .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v71-heading-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v71-perfume .v71-slot,#game #screen .v71-perfume .v71-recipe{grid-template-columns:44px minmax(0,1fr);min-height:49px}
#game #screen .v71-product-icon{display:grid;place-items:center;font-size:27px;width:44px;min-height:42px}
#game #screen .v71-perfume .v71-short{color:#ffb5a0!important}
#game #screen .v71-perfume .v62-action{margin-top:3px;min-height:30px}

/* V7.3: compact green player market, local scope only. */
#game #screen .v73-market .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v73-icon{width:35px;height:35px;object-fit:contain}
#game #screen .v73-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin:4px 0 8px}
#game #screen .v73-tabs button,#game #screen .v73-field input,#game #screen .v73-field select{font:inherit;font-size:12px;background:#2b5034;color:#ffe8b8;border:1px solid #ad8a51;border-radius:6px;padding:6px;min-width:0;min-height:32px;box-sizing:border-box}
#game #screen .v73-tabs button[aria-pressed=true]{background:#b88b43;color:#251f13;font-weight:700}
#game #screen .v73-field{display:grid;gap:3px;font-size:12px;margin:5px 0;color:#f9e6b8}
#game #screen .v73-field select{width:100%}
#game #screen .v73-inputs{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#game #screen .v73-form{display:grid;gap:5px;padding:8px;border:1px solid #b89357;background:#294d31;border-radius:8px}
#game #screen .v73-muted,#game #screen [data-v73-preview]{display:block;font-size:11px;color:#e9d6a7;margin:4px 0}
#game #screen .v73-error{font-size:12px;color:#ffc5a6}
#game #screen .v73-lot{grid-template-columns:32px minmax(0,1fr) auto;gap:5px;min-height:44px}
#game #screen .v73-lot b{overflow-wrap:anywhere;font-size:12px}
#game #screen .v73-product{font-size:25px;text-align:center}
#game #screen .v73-lot-actions button{max-width:130px;white-space:normal;line-height:1.2}
@media(max-width:350px){#game #screen .v73-tabs button{font-size:10px;padding:4px}#game #screen .v73-lot{grid-template-columns:27px minmax(0,1fr) auto}#game #screen .v73-lot-actions button{max-width:100px;font-size:10px}}

/* V7.4 — compact order panels, scoped to the two new city sections. */
#game #screen .v74-orders .v62-head h2{display:flex;align-items:center;gap:5px}
#game #screen .v74-note{font-size:11px;color:#e9d6a7;margin:4px 0 7px}
#game #screen .v74-order{padding:7px;margin:5px 0;border:1px solid #ad8a51;border-radius:8px;background:#294d31;color:#ffe8b8}
#game #screen .v74-order h3{font-size:14px;margin:0 0 5px;color:#ffe0a1}
#game #screen .v74-item,#game #screen .v74-footer,#game #screen .v74-delivery{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px}
#game #screen .v74-item{padding:3px 0}
#game #screen .v74-item span{min-width:0;overflow-wrap:anywhere}
#game #screen .v74-item b{white-space:nowrap}
#game #screen .v74-good{color:#c6e69f}
#game #screen .v74-short{color:#ffc6a2}
#game #screen .v74-group-item{border-top:1px solid #ad8a5140;padding:5px 0}
#game #screen .v74-track{height:6px;background:#162d20;border-radius:8px;overflow:hidden;margin:2px 0 4px}
#game #screen .v74-track span{height:100%;display:block;background:#83ad59}
#game #screen .v74-order small{font-size:11px;color:#f1dab0}
#game #screen .v74-delivery{margin:4px 0}
#game #screen .v74-delivery input{width:67px;background:#305a37;color:#ffe8b8;border:1px solid #ad8a51;border-radius:5px;padding:4px;font:inherit}
#game #screen .v74-footer{padding-top:5px;border-top:1px solid #ad8a5140;margin-top:4px}
#game #screen .v74-orders .v62-action{min-height:30px;margin:0;font-size:12px}

/* V120 unified production header and market */
#game #screen .v62-orchard{position:relative;}
#game #screen .v120-banner{display:block;width:100%;height:clamp(62px,15vw,128px);object-fit:cover;border:1px solid #d5b876;border-radius:10px;margin:0 0 5px;}
#game #screen .v62-orchard .v62-head{gap:5px;margin:3px 0;align-items:center;}
#game #screen .v62-orchard .v62-head h2{font-size:clamp(17px,4.4vw,25px);margin:0;}
#game #screen .v120-toolbar{display:flex;align-items:stretch;gap:5px;margin:4px 0 6px;min-width:0;}
#game #screen .v120-toolbar .v120-recipe-picker{flex:1;min-width:0;margin:0;display:block;position:relative;}
.v120-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
#game #screen .v120-pick{display:flex;align-items:center;gap:5px;min-height:44px;width:100%;border:1px solid #b6a36c;border-radius:7px;background:#315a3a;color:#fff4d8;text-align:left;padding:3px 6px;}
.v120-pick span{flex:1;min-width:0;line-height:1.15;font-size:clamp(12px,3vw,16px);}
#game #screen .v120-toolbar .v62-action{font-size:clamp(10px,2.7vw,15px);padding:4px 7px;max-width:45%;min-height:44px;white-space:normal;}
#game #screen .v120-toolbar .v105-tree-trigger{width:100%;margin:0;}
.v120-product{display:block;flex:none;width:64px;height:64px;object-fit:contain;}
.v120-pick .v120-product,.v102-market-row .v120-product{width:38px;height:38px;}
.v120-ingredient{width:22px;height:22px;vertical-align:middle;object-fit:contain;}
.v120-locked-frame{opacity:.9}.v120-locked{color:#dccca6;display:block;}
#game .v105-frames article{content-visibility:auto;contain-intrinsic-size:100px 150px;}
.v120-fish-achieve{display:flex;gap:7px;align-items:center;flex-wrap:wrap;border:1px solid #d5b876;padding:6px;border-radius:8px;}.v120-fish-achieve span{font-size:12px;}
#game #screen .v73-market .v73-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;}
#game #screen .v73-market .v73-tabs button{font-size:clamp(10px,2.8vw,15px);min-height:42px;padding:4px 2px;white-space:normal;}
.v120-market-filter{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:6px 0;}.v120-market-filter input{grid-column:1/-1;min-width:0;}
.v120-market-filter input,.v120-market-filter select{width:100%;box-sizing:border-box;min-width:0;min-height:36px;border:1px solid #c2aa71;border-radius:6px;background:#285637;color:#fff3dc;padding:4px;}
.v120-seller{display:inline-flex;align-items:center;gap:4px;}.v120-seller .v106-mini{width:26px!important;height:26px!important;min-width:26px!important;}
#game #screen .v73-lot[hidden]{display:none!important;}
.v120-rank-row{display:flex;align-items:center;gap:7px;padding:5px 0;border-bottom:1px solid #a68a5566;font-size:13px;text-align:left;}
.v120-rank-row b{flex:1;overflow-wrap:anywhere;}.v120-rank-avatar{width:38px;height:38px;flex:none;position:relative;display:block;}.v120-rank-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:6px;}.v120-rank-avatar.framed img:first-child{inset:12%;width:76%;height:76%;}.v120-rank-avatar img:last-child:not(:first-child){object-fit:contain;}

#game #screen .v62-orchard:has(.v120-toolbar .v120-refresh) .v62-head button[aria-label="Обновить"]{display:none!important;}
#game #screen .v120-toolbar .v120-refresh{flex:none;min-width:44px;border:1px solid #d1b877;border-radius:8px;background:#315b39;color:#fff5d8;font-size:24px;}

.v120-achievements{display:flex;flex-wrap:wrap;width:100%;gap:5px}.v120-achievements span{display:inline-flex;align-items:center;gap:3px;font-size:11px;background:#356046;border-radius:6px;padding:3px;}

/* Desktop-only responsive layout. Touch/mobile layouts remain unchanged. */
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  body > .shell {width: min(1280px, calc(100% - 48px)) !important; max-width:1280px !important; margin-inline:auto !important; padding-inline:16px !important;}
  #game, #game > #screen {min-width:0; max-width:100%;}
  #game #screen > :is(.v35-area,.v37-list-garden,.v38-section,.v43-groups) {width:100% !important; max-width:1160px !important; margin-inline:auto !important;}
  #game #screen .v37-list-garden #villageBeds.v37-list {display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:1160px !important; gap:12px; margin-inline:auto;}
  #game #screen .v37-list-garden .v37-list-row {grid-template-columns:minmax(90px,28%) minmax(0,1fr); min-width:0;}
  #game #screen .v49-pen-list {grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
  #game #screen .v49-pen-list > .v49-pen {min-width:0;}
  #game #screen .plot-grid.plot-grid-soil {grid-template-columns:repeat(6,minmax(0,1fr)) !important; gap:10px;}
  #game #screen .v31-hub-grid {grid-template-columns:repeat(4,minmax(0,1fr)) !important; max-width:1160px !important; gap:12px !important;}
  #game #screen .v35-main {max-width:920px !important; margin-inline:auto;}
  #game #screen .v35-city-menu > button.v35-link {max-width:720px !important;}
  #v39BottomNav.ferma-v348-nav, .ferma-v348-nav {max-width:760px; margin-inline:auto;}
  #game .plot-grid-soil .plot.planted .plot-plant, #game .pen-card.occupied .pen-stage .animal-stage-image, #game .pen-card.occupied .pen-stage .animal-fallback {animation:none !important; will-change:auto !important;}
  #game button:focus-visible, #game a:focus-visible {outline:2px solid #ffe39a; outline-offset:2px;}
}
@media (min-width: 1500px) and (hover: hover) and (pointer: fine) {
  #game #screen .v37-list-garden #villageBeds.v37-list, #game #screen .v49-pen-list {grid-template-columns:repeat(3,minmax(0,1fr));}
}

/* V348.82 — green farm action notifications; appearance only. */
#toast, #v193Notice {background:linear-gradient(180deg,#4c902c 0%,#327027 46%,#235423 100%)!important;border-color:#d7b85c!important;color:#fff4d6!important;text-shadow:0 1px #17371c!important;box-shadow:inset 0 1px #fff3b34d,0 4px 12px #142b1565!important;}
#toast.error, #v193Notice.error {background:linear-gradient(180deg,#607c2c,#294c25)!important;border-color:#f1c96e!important;}

.v39-reply-toast, .v53-broadcast-toast {background:linear-gradient(160deg,#397d35,#204b2b)!important;border-color:#d7b85c!important;color:#fff4d6!important;box-shadow:0 4px 16px #132e1b99,inset 0 1px #fff3b34d!important;}
.v39-reply-toast button,.v53-broadcast-close,.v53-broadcast-emblem {background:linear-gradient(#589d36,#2e6528)!important;border-color:#d7b85c!important;color:#fff4d6!important;}
.v53-broadcast-close:hover,.v53-broadcast-close:focus-visible {background:#579c36!important;}
