/* GA VANG V5 -- one layer only. No hardcoded coins, counts, prices or states. */
body.gv-fix-v5{
  background:#092d22 radial-gradient(ellipse at 50% 0,#175538,#0d3929 42%,#09291f 100%)!important;
  overflow-x:hidden!important;
}
body.gv-fix-v5 #app-shell{
  width:min(100%,510px)!important;max-width:510px!important;
  background:#103b2c!important; backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding-bottom:106px!important;box-shadow:none!important;
}
body.gv-fix-v5 .main{padding:0 9px!important}
body.gv-fix-v5 .top-banner{padding:9px 2px 7px!important}
body.gv-fix-v5 .wallet-row{margin-top:5px!important;margin-bottom:10px!important;gap:6px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.gv-fix-v5 .wallet{
 min-width:0!important;min-height:62px!important;padding:7px 5px!important;gap:5px!important;
 border:2px solid #a26b37!important;border-radius:16px!important;
 background:repeating-linear-gradient(0deg,transparent 0 14px,#d3a16712 15px 16px),linear-gradient(150deg,#714324,#3b2319 75%)!important;
 box-shadow:inset 0 1px #d5a165,0 3px 0 #312015,0 5px 10px #0005!important
}
body.gv-fix-v5 .wallet-icon{width:29px!important;height:33px!important;flex-shrink:0!important;font-size:18px!important;background:#81582e!important;border-radius:9px!important}
body.gv-fix-v5 .wallet small{color:#fff2dc!important;font-size:clamp(7px,1.85vw,10px)!important;letter-spacing:0!important;white-space:normal!important;line-height:1.04!important}
body.gv-fix-v5 .wallet b{color:#fff!important;font-size:clamp(12px,3.55vw,19px)!important;line-height:1.16!important;white-space:nowrap!important}
body.gv-fix-v5 .wallet em{color:#f6e1b9!important;font-size:clamp(8px,2vw,10px)!important}
/* Preserve the real farm image and live counters. Frame only once. */
body.gv-fix-v5 .farm-scene{
  height:clamp(255px,76vw,370px)!important;min-height:0!important;
  border:5px solid #dca45a!important;border-radius:24px!important;
  background-color:#92cdea!important;background-image:url('farm-hero.webp')!important;
  background-size:cover!important;background-position:center 55%!important;
  box-shadow:inset 0 0 0 2px #fff0ac,0 5px 0 #714322,0 9px 14px #001a1244!important;
  padding:0!important;margin-bottom:9px!important;overflow:hidden!important;
}
body.gv-fix-v5 .farm-scene::before{background:linear-gradient(180deg,#002a1619,transparent 45%,#081c0b90)!important}
body.gv-fix-v5 .farm-scene .sky-hud{inset:10px 9px auto!important;z-index:2!important}
body.gv-fix-v5 .farm-scene .weather{font-size:10px!important;padding:7px 9px!important}
body.gv-fix-v5 .farm-scene .level-chip{font-size:10px!important;padding:7px 9px!important}
body.gv-fix-v5 .farm-scene .scene-badge{left:8px!important;bottom:13px!important;font-size:9px!important}
body.gv-fix-v5 .farm-scene .scene-stats{right:7px!important;bottom:9px!important;gap:5px!important}
body.gv-fix-v5 .farm-scene .scene-stats>div{padding:6px 7px!important;font-size:10px!important}
/* Dynamic harvest and sell row -- tight, single-layer carved wood. */
body.gv-fix-v5 .home-section.page-section.hidden{display:none!important}
body.gv-fix-v5 .home-section.page-section{
  display:block!important;padding-top:6px!important;background:transparent!important;
  border:0!important;border-image:none!important;box-shadow:none!important;
}
body.gv-fix-v5 .home-section .wood-board,
body.gv-fix-v5 .home-section .secondary-board{
  position:relative!important;isolation:isolate!important;
  box-sizing:border-box!important;width:100%!important;
  display:grid!important;grid-template-columns:clamp(61px,18vw,90px) minmax(0,1fr) clamp(116px,31%,150px)!important;
  align-items:center!important;column-gap:5px!important;
  min-height:98px!important;max-height:none!important;
  padding:9px 7px 10px 3px!important;margin:0 0 7px!important;
  border:3px solid #965e2e!important;border-radius:18px!important;border-image:none!important;
  background:repeating-linear-gradient(178deg,#ffd29e0a 0 5px,transparent 5px 20px),linear-gradient(170deg,#764324,#482619 70%,#412217)!important;
  box-shadow:inset 0 2px 0 #dc9c55,inset 0 -2px 0 #28170d,0 3px 0 #3a2616,0 5px 9px #0005!important;
  overflow:hidden!important;color:#fff!important;
}
body.gv-fix-v5 .home-section .wood-board::before,
body.gv-fix-v5 .home-section .secondary-board::before{
  content:''!important;grid-column:1!important;grid-row:1!important;
  position:relative!important;width:100%!important;height:77px!important;
  display:block!important;inset:auto!important;opacity:1!important;
  background:url('gv5-nest.webp') center center / 117% auto no-repeat!important;
  margin:0!important;pointer-events:none!important;z-index:0!important;transform:none!important;
}
body.gv-fix-v5 .home-section .secondary-board::before{
 background-image:url('gv5-crate.webp')!important
}
body.gv-fix-v5 .home-section .wood-board>div:first-child,
body.gv-fix-v5 .home-section .secondary-board>div:first-child{
  grid-column:2!important;grid-row:1!important;min-width:0!important;
  align-self:center!important;position:relative!important;padding:0!important;margin:0!important;
  background:none!important;box-shadow:none!important;border:0!important;
}
body.gv-fix-v5 .home-section .wood-board strong,
body.gv-fix-v5 .home-section .secondary-board strong{
  display:block!important;font-size:clamp(12px,3.3vw,17px)!important;
  color:#fffaf1!important;line-height:1.1!important;
  text-shadow:0 2px 2px #1a0705!important;margin:0!important;letter-spacing:-.15px!important;
}
body.gv-fix-v5 .home-section .wood-board small,
body.gv-fix-v5 .home-section .secondary-board small{
  display:-webkit-box!important;-webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;overflow:hidden!important;
  color:#ffeed9!important;margin:3px 0 0!important;
  font-size:clamp(9px,2.25vw,11px)!important;line-height:1.19!important;
  max-width:100%!important;
}
body.gv-fix-v5 .home-section .board-meta{
 display:flex!important;gap:3px!important;margin:4px 0 0!important;
 padding:0!important;flex-wrap:wrap!important;white-space:normal!important;overflow:visible!important
}
body.gv-fix-v5 .home-section .board-meta span{
 background:#2b6b32!important;color:#fffbdc!important;
 font-size:clamp(7px,1.7vw,9px)!important;padding:2px 5px!important;line-height:1.15!important;
 border-radius:14px!important;white-space:nowrap!important;margin:0!important;
}
/* picture buttons keep the underlying functional original HTML button */
body.gv-fix-v5 .home-section #farmActionBtn,
body.gv-fix-v5 .home-section #harvestBtn,
body.gv-fix-v5 .home-section #sellEggsBtn{
 grid-column:3!important;grid-row:1!important;position:relative!important;
 width:100%!important;height:clamp(55px,15vw,67px)!important;
 min-height:0!important;max-height:none!important;
 display:block!important;align-self:center!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:14px!important;
 background:transparent url('gv5-harvest.webp') center / 100% 100% no-repeat!important;
 font-size:0!important;color:transparent!important;white-space:normal!important;
 box-shadow:none!important;text-shadow:none!important;overflow:hidden!important;
 transform:none!important;cursor:pointer!important;
}
body.gv-fix-v5 .home-section #sellEggsBtn{
 height:clamp(51px,13.5vw,60px)!important;
 background-image:url('gv5-sell.webp')!important;
}
body.gv-fix-v5 .home-section #farmActionBtn::after,
body.gv-fix-v5 .home-section #harvestBtn::after,
body.gv-fix-v5 .home-section #sellEggsBtn::after{
 content:'THU HOẠCH TRỨNG';position:absolute!important;
 top:50%!important;left:32%!important;right:17%!important;transform:translateY(-50%)!important;
 display:block!important;pointer-events:none!important;
 color:#3b260b!important;font-size:clamp(8px,2.3vw,12px)!important;
 line-height:1.06!important;font-weight:1000!important;text-align:center!important;text-shadow:0 1px #ffe372!important;
}
body.gv-fix-v5 .home-section #farmActionBtn[data-action='feed_hens']::after{content:'CHO GÀ ĂN'}
body.gv-fix-v5 .home-section #farmActionBtn[data-action='']::after{content:'ĐANG CHỜ'}
body.gv-fix-v5 .home-section #sellEggsBtn::after{content:'BÁN TRỨNG';color:#fff!important;text-shadow:0 1px #004524!important}
body.gv-fix-v5 .home-section #farmActionBtn:disabled,
body.gv-fix-v5 .home-section #harvestBtn:disabled,
body.gv-fix-v5 .home-section #sellEggsBtn:disabled{filter:grayscale(.15) brightness(.86)!important;opacity:.86!important;cursor:not-allowed!important}
body.gv-fix-v5 .home-section #farmActionBtn:active:not(:disabled),
body.gv-fix-v5 .home-section #sellEggsBtn:active:not(:disabled){filter:brightness(1.13)!important;transform:translateY(1px)!important}
/* Single farm features panel: no second image frame behind the panel. */
body.gv-fix-v5 .home-section .gv-fix-lower{
 position:relative!important;isolation:isolate!important;
 margin:12px 0 10px!important;padding:9px 9px 13px!important;
 background:linear-gradient(160deg,#085c37,#06452e 70%,#0a4a2e)!important;
 border:4px solid #8b5629!important;border-radius:20px!important;border-image:none!important;
 box-shadow:inset 0 0 0 2px #356c37,0 5px 0 #482c17,0 9px 14px #0005!important;
 overflow:hidden!important;
}
body.gv-fix-v5 .home-section .gv-fix-lower::before,
body.gv-fix-v5 .home-section .gv-fix-lower::after{
 content:'🌿'!important;pointer-events:none!important;position:absolute!important;
 z-index:0!important;top:0!important;left:0!important;width:35px!important;height:30px!important;
 font-size:27px!important;line-height:1!important;background:none!important;border:0!important;
}
body.gv-fix-v5 .home-section .gv-fix-lower::after{top:auto!important;left:auto!important;right:0!important;bottom:0!important;transform:rotate(175deg)!important}
body.gv-fix-v5 .home-section .gv-fix-lower>*{position:relative!important;z-index:1!important}
body.gv-fix-v5 .home-section .gv-fix-lower .section-head{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:4px!important;min-height:37px!important;margin:0 0 8px!important;
 padding:0!important;background:transparent!important;box-shadow:none!important;
}
body.gv-fix-v5 .home-section .gv-fix-lower .production-grid+.section-head{margin-top:13px!important}
body.gv-fix-v5 .home-section .gv-fix-lower .section-head h2{
 flex:0 1 auto!important;width:auto!important;max-width:66%!important;
 min-height:35px!important;margin:0!important;padding:7px 10px!important;
 font-size:clamp(12px,3.6vw,17px)!important;line-height:1.1!important;white-space:normal!important;
 color:#fff6e5!important;border:2px solid #d4944d!important;border-radius:10px!important;
 background:linear-gradient(180deg,#935024,#532914)!important;
 box-shadow:inset 0 2px #d29c61,0 3px 0 #32160e!important;
 text-shadow:0 2px #2b160b!important;
}
body.gv-fix-v5 .home-section .gv-fix-lower .section-head .mini-live,
body.gv-fix-v5 .home-section .gv-fix-lower .section-head .text-link{
 display:block!important;flex:0 1 auto!important;max-width:33%!important;
 text-align:right!important;white-space:normal!important;
 font-size:clamp(8px,2vw,10px)!important;line-height:1.12!important;
 color:#b7ff76!important;text-decoration:none!important;font-weight:900!important;
 background:none!important;padding:0!important;min-height:0!important;border:0!important;box-shadow:none!important;
}
body.gv-fix-v5 .home-section .production-grid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:8px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;
}
body.gv-fix-v5 .home-section .production-card{
 display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;
 column-gap:6px!important;align-items:center!important;
 padding:10px 7px!important;margin:0!important;min-height:102px!important;
 border-radius:14px!important;border:2px solid #4d9d4a!important;
 background:linear-gradient(140deg,#0d643e,#073c29)!important;
 box-shadow:inset 0 1px #9de07a55,0 3px #06291c!important;
 min-width:0!important;max-width:none!important;
}
body.gv-fix-v5 .home-section .production-card .p-icon{
 width:38px!important;height:40px!important;display:grid!important;place-items:center!important;
 border-radius:10px!important;font-size:25px!important;background:linear-gradient(#21704a,#0a5535)!important;
 box-shadow:0 2px 6px #001a12a8!important;
}
body.gv-fix-v5 .home-section .production-card small{
 font-size:clamp(9px,2.4vw,11px)!important;line-height:1.15!important;color:#fff4dd!important;
 font-weight:750!important;
}
body.gv-fix-v5 .home-section .production-card strong{
 display:block!important;white-space:nowrap!important;
 font-size:clamp(16px,4.45vw,23px)!important;color:#fff!important;
 letter-spacing:-.4px!important;text-shadow:0 1px #071b14!important;
}
body.gv-fix-v5 .home-section .production-card .tiny-caption{
 grid-column:1/-1!important;border-top:1px solid #ffffff38!important;
 padding:5px 0 0!important;margin:7px 0 0!important;
 font-size:clamp(9px,2.15vw,10px)!important;color:#e3efd8!important;line-height:1.15!important;
}
body.gv-fix-v5 .home-section .quick-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:7px!important;padding:0!important;margin:0!important;background:none!important;border:0!important;
}
body.gv-fix-v5 .home-section .quick-card{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:space-between!important;
 gap:4px!important;min-width:0!important;min-height:118px!important;
 margin:0!important;padding:7px 3px!important;
 border:2px solid #51944b!important;border-radius:14px!important;
 background:linear-gradient(145deg,#135f3c,#063722)!important;
 box-shadow:inset 0 1px #afff9550,0 3px #002c21!important;
 color:#fff!important;overflow:visible!important;
}
body.gv-fix-v5 .home-section .quick-card .quick-icon{
 display:grid!important;place-items:center!important;width:40px!important;height:41px!important;
 font-size:24px!important;margin:0!important;padding:0!important;
 border-radius:10px!important;background:linear-gradient(#247a4d,#0e5a38)!important;
 box-shadow:0 3px 5px #0004!important;
}
body.gv-fix-v5 .home-section .quick-card strong{
 display:block!important;margin:0!important;text-align:center!important;
 font-size:clamp(10px,2.55vw,13px)!important;line-height:1.15!important;color:#fff!important;
 text-shadow:0 1px #112a1a!important;
}
body.gv-fix-v5 .home-section .quick-card small{
 width:100%!important;min-height:23px!important;display:flex!important;
 align-items:center!important;justify-content:center!important;text-align:center!important;
 border-radius:11px!important;border:1px solid #fff6ab!important;
 background:linear-gradient(#fff77e,#ffc02f)!important;
 box-shadow:0 2px #9d6013!important;color:#5a340a!important;
 padding:4px 2px!important;font-size:clamp(8px,2.15vw,11px)!important;line-height:1.1!important;
 font-weight:1000!important;white-space:normal!important;
}
/* Fixed wooden nav, real icons/labels, selected tab updates correctly. */
body.gv-fix-v5 .bottom-nav{
 position:fixed!important;bottom:0!important;left:50%!important;right:auto!important;
 width:min(100%,510px)!important;max-width:510px!important;
 height:calc(71px + env(safe-area-inset-bottom,0px))!important;
 transform:translateX(-50%)!important;
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important;
 margin:0!important;padding:6px 7px calc(7px + env(safe-area-inset-bottom,0px))!important;
 background:repeating-linear-gradient(175deg,#dfaf6910 0 5px,transparent 5px 18px),linear-gradient(180deg,#86502d,#482819 80%)!important;
 border:0!important;border-top:3px ridge #dbac68!important;border-radius:0!important;
 box-shadow:inset 0 2px #b57b42,0 -3px 9px #001b1296!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 z-index:100051!important;overflow:visible!important;
}
body.gv-fix-v5 .bottom-nav .nav-btn{
 min-width:0!important;min-height:0!important;height:100%!important;position:relative!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;
 margin:0 1px!important;padding:4px 2px!important;
 border:1px solid #986035!important;border-radius:11px!important;
 background:linear-gradient(#724020,#452415)!important;
 box-shadow:inset 0 1px #ce945d88!important;
 color:#ffeed3!important;filter:none!important;opacity:1!important;
 cursor:pointer!important;
}
body.gv-fix-v5 .bottom-nav .nav-btn.selected{
 background:linear-gradient(#287b3e,#0c492b)!important;color:#fff9d4!important;
 border:2px solid #f4e95a!important;box-shadow:inset 0 1px #ddff9c,0 0 9px 2px #f6ec56b8!important;
}
body.gv-fix-v5 .bottom-nav .nav-btn>span{visibility:visible!important;display:block!important;font-size:22px!important;line-height:1.05!important;color:inherit!important}
body.gv-fix-v5 .bottom-nav .nav-btn>small{visibility:visible!important;display:block!important;font-size:clamp(9px,2.5vw,11px)!important;line-height:1.1!important;color:inherit!important;font-weight:900!important}
body.gv-fix-v5 .bottom-nav::before,
body.gv-fix-v5 .bottom-nav::after{content:'🌿'!important;position:absolute!important;z-index:0!important;left:1px!important;top:-12px!important;font-size:24px!important;pointer-events:none!important}
body.gv-fix-v5 .bottom-nav::after{left:auto!important;right:1px!important;transform:scaleX(-1)!important}
@media(max-width:370px){
 body.gv-fix-v5 .main{padding:0 6px!important}
 body.gv-fix-v5 .home-section .wood-board,body.gv-fix-v5 .home-section .secondary-board{
   grid-template-columns:49px minmax(0,1fr) 104px!important;gap:3px!important;padding:5px 4px 7px 2px!important;min-height:95px!important}
 body.gv-fix-v5 .home-section .wood-board::before,body.gv-fix-v5 .home-section .secondary-board::before{height:67px!important}
 body.gv-fix-v5 .home-section .wood-board strong,body.gv-fix-v5 .home-section .secondary-board strong{font-size:11px!important}
 body.gv-fix-v5 .home-section .wood-board small,body.gv-fix-v5 .home-section .secondary-board small{font-size:8.5px!important}
 body.gv-fix-v5 .home-section .board-meta span{font-size:6.5px!important;padding:2px 3px!important}
 body.gv-fix-v5 .home-section .production-card{grid-template-columns:32px minmax(0,1fr)!important;gap:4px!important;padding:8px 5px!important}
 body.gv-fix-v5 .home-section .production-card .p-icon{width:31px!important;height:34px!important;font-size:20px!important}
 body.gv-fix-v5 .home-section .production-card strong{font-size:15px!important}
 body.gv-fix-v5 .home-section .quick-card strong{font-size:10px!important}
 body.gv-fix-v5 .home-section .quick-card small{font-size:8px!important}
}
@media(prefers-reduced-motion:reduce){body.gv-fix-v5 *{transition-duration:0ms!important;animation-duration:0ms!important}}
