/* Wine Farm — first screen refinement, reference 2026-10-24.
 * One seamless sunset-vineyard scene; no framed scenic card or four emoji tiles.
 * Pure visual layer: account, starter grants and gameplay remain untouched.
 */
body.onboarding-splash{
  background:#071b17;
  overscroll-behavior-y:contain;
}
body.onboarding-splash .app{
  width:min(100%,520px);
  min-height:100svh;
  padding:0 !important;
  overflow:hidden;
  background:#071b17;
}
#splash{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-rows:auto minmax(30px,1fr) auto auto;
  box-sizing:border-box;
  width:100%;
  height:100svh;
  min-height:620px;
  padding:clamp(16px,3svh,29px) clamp(17px,5vw,26px)
          max(25px,env(safe-area-inset-bottom));
  overflow:hidden;
  color:#f7e9c7;
}
#splash[hidden]{display:none}
#splash::before{
  content:"";
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse 65% 32% at 50% 25%,#142d29aa,transparent 95%),
    linear-gradient(180deg,#071c1b 0%,#11312f 19%,#284439 37%,#182e23 60%,#061910 82%,#04140e 100%);
}
/* The illustration spans beneath the lettering and lower icons.
   Feather its top/bottom instead of exposing rectangular picture edges. */
#splash .splash-vista{
  position:absolute;
  inset:0;
  min-height:0;
  z-index:-1;
  pointer-events:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:linear-gradient(180deg,#08221e 0%,#19352a 41%,#193021 63%,#071b14 100%);
}
#splash .splash-vista::before{
  content:"";
  display:block;
  position:absolute;
  inset:0;
  background:var(--winefarm-estate-art) 49% 47% / auto 65% no-repeat;
  -webkit-mask-image:linear-gradient(180deg,
    transparent 12%,#0007 23%,#000 34%,#000 67%,#000b 75%,transparent 87%);
  mask-image:linear-gradient(180deg,
    transparent 12%,#0007 23%,#000 34%,#000 67%,#000b 75%,transparent 87%);
}
#splash .splash-vista::after{
  content:"";
  display:block;
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,
    #061b1cf5 0%,#071d1cda 12%,#081f1bb5 23%,#0b211c24 39%,
    transparent 51%,#0a201536 67%,#061c15b9 79%,#04160ff5 92%,#04160f 100%);
}
#splash .splash-vista-caption{display:none}
#splash .splash-heading{
  position:relative;
  text-align:center;
  align-self:start;
  z-index:2;
  padding:clamp(14px,3svh,24px) 0 0;
}
#splash .splash-grapes{
  display:block;
  width:max-content;
  margin:0 auto 4px;
  font-size:25px;
  line-height:1;
  filter:drop-shadow(0 4px 9px #000a);
}
#splash .splash-title{
  margin:0;
  color:#f6d796;
  font:500 clamp(43px,12.2vw,59px)/1.02 Georgia,'Times New Roman',serif;
  text-shadow:0 3px 8px #000c,0 0 22px #0005;
  letter-spacing:.015em;
}
#splash .splash-tagline{
  margin:10px 0 0;
  color:#d4b984;
  font:600 clamp(9px,2.7vw,11px)/1.2 -apple-system,BlinkMacSystemFont,sans-serif;
  letter-spacing:.31em;
  text-shadow:0 1px 5px #000c;
}
#splash .splash-lead{
  margin:22px auto 0;
  color:#f9eee0;
  font:500 clamp(15px,4.3vw,18px)/1.35 -apple-system,BlinkMacSystemFont,sans-serif;
  letter-spacing:.005em;
  text-wrap:balance;
  text-shadow:0 2px 7px #000f,0 0 15px #000e;
}
#splash .splash-spacer{min-height:0}
#splash .splash-features{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:start;
  gap:3px;
  margin:0 -9px;
  padding:0 0 clamp(24px,4svh,35px);
  border:0;
  background:none;
}
#splash .splash-feature{
  display:flex;
  align-items:center;
  flex-direction:column;
  min-width:0;
  min-height:0;
  padding:0 2px;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  text-align:center;
}
#splash .splash-feature-icon{
  width:42px;height:42px;
  display:flex;justify-content:center;align-items:center;
  margin:0 0 9px;
  font-size:inherit;
  color:#e6bf7b;
  filter:drop-shadow(0 2px 3px #000c);
}
#splash .splash-feature-icon svg{
  display:block;
  width:100%;height:100%;
  overflow:visible;
}
#splash .splash-feature-name{
  display:block;
  color:#f3d9aa;
  font:600 clamp(10px,2.8vw,12px)/1.22 -apple-system,BlinkMacSystemFont,sans-serif;
  text-shadow:0 2px 5px #000e;
}
#splash .splash-actions{
  position:relative;
  z-index:2;
  display:block;
  margin:0 4px;
}
#splash #begin-journey{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:clamp(57px,8.1svh,67px);
  padding:12px 48px;
  border:1px solid #fff0b6;
  border-radius:100px;
  background:linear-gradient(180deg,#ffe1a2 0%,#ebc37e 53%,#d19b4d 100%);
  color:#1f2c22;
  font:600 clamp(20px,5vw,24px)/1.2 -apple-system,BlinkMacSystemFont,sans-serif;
  text-shadow:0 1px #fff3c744;
  box-shadow:inset 0 2px #fff1caa8,0 7px 17px #000a,0 0 0 2px #87612e50;
  letter-spacing:.01em;
}
#splash #begin-journey:active{
  transform:translateY(1px);
  box-shadow:inset 0 1px #fff1caa8,0 3px 10px #000a;
}
#splash .splash-arrow{
  position:absolute;
  right:23px;
  top:50%;
  transform:translateY(-52%);
  font:400 34px/1 Georgia,serif;
}
#splash #continue-estate,
#splash .splash-footnote{display:none !important}
@media(max-width:360px){
  #splash{padding-left:15px;padding-right:15px}
  #splash .splash-title{font-size:42px}
  #splash .splash-tagline{letter-spacing:.23em}
  #splash .splash-feature-icon{width:36px;height:36px}
  #splash .splash-features{gap:0;margin:0 -10px}
  #splash .splash-feature-name{font-size:10px}
}
@media(max-height:720px){
  #splash{min-height:570px;padding-top:11px;padding-bottom:max(15px,env(safe-area-inset-bottom))}
  #splash .splash-heading{padding-top:4px}
  #splash .splash-grapes{font-size:21px}
  #splash .splash-title{font-size:43px}
  #splash .splash-tagline{margin-top:5px}
  #splash .splash-lead{margin-top:12px;font-size:15px}
  #splash .splash-features{padding-bottom:16px}
  #splash .splash-feature-icon{height:35px;width:35px;margin-bottom:6px}
  #splash #begin-journey{min-height:54px}
}
@media(prefers-reduced-motion:reduce){
  #splash #begin-journey{transition:none}
}


/* APPROVED TELEGRAM START 2026-10-24 — faithful mobile composition
 * A front-end-only change; server auth, grants and player saves are untouched.
 * Telegram owns the phone's native status bar, so never paint a fake 9:41.
 */
body.onboarding-splash{background:#061b18}
body.onboarding-splash .app{height:100dvh;min-height:0;max-width:520px;overflow:hidden}
#splash{
  position:relative;display:block;overflow:hidden;
  height:100dvh;min-height:0;max-height:none;padding:0;
  background:
    radial-gradient(ellipse at 93% 47%,#fa9f46ad,transparent 33%),
    linear-gradient(180deg,#052d2e 0%,#082f2b 28%,#a35e35 51%,#243f24 71%,#051b12 100%);
}
#splash[hidden]{display:none}
#splash::before{z-index:0;background:
  radial-gradient(ellipse at 92% 45%,#ffb04c8c,transparent 34%),
  linear-gradient(180deg,#032c2c,#072c29 26%,transparent 47%,#05140ad5 100%)}
#splash .splash-vista{z-index:1;pointer-events:none;background:transparent}
#splash .splash-vista::before{
  background:var(--winefarm-estate-art) 47% 51% / auto 83% no-repeat;
  -webkit-mask-image:linear-gradient(180deg,transparent 23%,#0008 36%,#000 48%,#000 78%,transparent 91%);
  mask-image:linear-gradient(180deg,transparent 23%,#0008 36%,#000 48%,#000 78%,transparent 91%);
  filter:sepia(.1) saturate(1.25) contrast(1.08)
}
#splash .splash-vista::after{
  background:linear-gradient(180deg,#001f1eae 0%,#052d2b56 23%,transparent 43%,
    #0b240500 66%,#041b0a77 81%,#031811e8 100%)
}
#splash .splash-corner-controls{
  position:absolute;z-index:7;left:20px;right:20px;
  top:clamp(18px,3svh,34px);display:flex;justify-content:space-between;
  pointer-events:none
}
#splash .splash-corner-controls button{
  pointer-events:auto;width:47px;height:47px;min-height:47px;
  display:grid;place-items:center;padding:0;
  border:2px solid #ebbd78;border-radius:17px;
  color:#f4c481;background:linear-gradient(#142e26f2,#061b16f7);
  box-shadow:0 4px 10px #0009,inset 0 0 0 2px #b0834440;
  font:30px/1 Georgia,serif
}
#splash .splash-heading{
  z-index:4;position:absolute;left:8px;right:8px;
  top:clamp(86px,11.3svh,124px);padding:0;text-align:center
}
#splash .splash-grapes{
  font-size:clamp(36px,9.5vw,52px);margin-bottom:7px;
  filter:drop-shadow(1px 4px 5px #000b)
}
#splash .splash-title{
  font:500 clamp(44px,12.7vw,72px)/1 Georgia,'Times New Roman',serif;
  letter-spacing:-.02em;color:#f6d69b;
  text-shadow:0 3px 0 #523113,0 6px 16px #000b
}
#splash .splash-tagline{
  margin-top:19px;font:500 clamp(9px,2.6vw,13px)/1.2 Georgia,serif;
  letter-spacing:clamp(2px,.6vw,4px);color:#f7dca8
}
#splash .splash-lead{
  font:400 clamp(16px,4.6vw,22px)/1.36 Georgia,serif;
  margin-top:24px;color:#fff4de;
  text-shadow:0 2px 6px #001a17,0 3px 12px #001a17
}
#splash .splash-actions{
  z-index:6;position:absolute;left:15%;right:15%;margin:0;
  bottom:calc(max(10px,env(safe-area-inset-bottom)) + clamp(99px,13svh,121px) + clamp(27px,4.3svh,42px))
}
#splash #begin-journey{
  border:2px solid #f5ce8c;border-radius:90px;
  background:linear-gradient(160deg,#0b4938,#02261c 70%);
  color:#fbe4b7;text-shadow:0 2px 5px #000b;
  box-shadow:0 0 0 3px #51351896,inset 0 2px 10px #ffffff1d,0 10px 21px #000b;
  font:600 clamp(22px,5.8vw,31px)/1 Georgia,serif;
  min-height:clamp(68px,8.8svh,91px);
  padding:10px 35px 10px 16px
}
#splash #begin-journey:disabled{
  opacity:.84;cursor:progress;filter:grayscale(.06)
}
#splash .splash-features{
  z-index:6;position:absolute;display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  left:1px;right:1px;bottom:max(9px,env(safe-area-inset-bottom));
  margin:0;padding:7px 4px 5px;
  gap:0;height:clamp(99px,13svh,121px);
  border:1.5px solid #e7be7c;border-radius:22px;
  background:linear-gradient(160deg,#082e24f0,#02140ff7);
  box-shadow:0 0 0 2px #4e3819,0 3px 19px #000a,inset 0 1px #ffe8b668;
}
#splash .splash-feature{
  color:#f4ddb1;border:0;border-right:1px solid #99723c43;
  background:transparent;min-width:0;min-height:0;
  padding:1px;display:flex;align-items:center;justify-content:center;
  gap:5px;cursor:pointer
}
#splash .splash-feature:last-child{border-right:0}
#splash .splash-feature:active{background:#214b36b0}
#splash .splash-feature-icon{
  width:clamp(42px,11vw,60px);height:clamp(48px,7.2svh,65px);
  border-radius:50%;margin:0;
  display:grid;place-items:center;font-size:35px;
  color:#f6cf88;filter:drop-shadow(0 2px 3px #000e);
  background:radial-gradient(ellipse,#9a642e48,transparent 71%)
}
#splash .splash-feature-icon svg{width:85%;height:85%;color:#e8bd78}
#splash .splash-feature-name{
  font:600 clamp(9px,2.4vw,12px)/1.08 Georgia,serif;
  color:#f9e4bd;white-space:normal;text-wrap:balance;
  text-shadow:0 2px 4px #000
}
#splash .splash-dialog{
  position:absolute;z-index:20;top:29%;left:7%;right:7%;
  border:2px solid #dfb679;border-radius:19px;
  background:linear-gradient(145deg,#173e2d,#041b15);
  box-shadow:0 0 0 200vmax #00150bcc,0 13px 30px #000b;
  padding:21px;color:#f8e3b5;text-align:center;
}
#splash .splash-dialog[hidden]{display:none}
#splash .splash-dialog h2{font:600 25px Georgia,serif;color:#f4d797;margin-bottom:14px}
#splash .splash-dialog p{font:15px/1.55 Georgia,serif;margin:0 0 17px}
#splash .splash-dialog button{width:100%;margin:5px 0;font:600 16px Georgia,serif;min-height:48px}
#splash .splash-dialog .primary{color:#183224}
@media(max-height:680px){
 #splash .splash-heading{top:68px}
 #splash .splash-grapes{font-size:32px}
 #splash .splash-title{font-size:clamp(39px,11vw,56px)}
 #splash .splash-tagline{margin-top:7px}
 #splash .splash-lead{margin-top:11px;font-size:15px}
 #splash .splash-corner-controls{top:12px;left:12px;right:12px}
 #splash .splash-corner-controls button{width:40px;height:40px;min-height:40px;font-size:24px}
 #splash .splash-features{height:91px}
 #splash .splash-feature-icon{height:43px;font-size:27px}
 #splash .splash-actions{bottom:calc(max(7px,env(safe-area-inset-bottom)) + 111px);left:14%;right:14%}
 #splash #begin-journey{min-height:58px;font-size:22px}
}
