/* Drain the Lawn, round 4: light glass instruments on the lawn, one composed object.
   Wide screens: the readout and the two buttons share one frosted dock along the foot of the lawn.
   Narrower screens: the readout is a frosted bar along the top and the buttons sit under the lawn. */
.v2 .v-game .tl-stage{background:#93A372;border:0}
.v2 .v-game .tl-stage canvas{cursor:default;-webkit-tap-highlight-color:transparent}

/* ---------------------------------------------------------------- readout */
.v2 .v-try .tl-hud{
  position:absolute;z-index:2;left:14px;right:14px;bottom:14px;top:auto;min-width:0;height:74px;margin:0;
  display:flex;align-items:center;gap:0;padding:0 8px;box-sizing:border-box;
  background:rgba(253,254,250,.74);-webkit-backdrop-filter:blur(18px) saturate(1.35);backdrop-filter:blur(18px) saturate(1.35);
  border:1px solid rgba(255,255,255,.75);border-radius:18px;
  box-shadow:0 24px 44px -26px rgba(20,40,8,.55),inset 0 1px 0 rgba(255,255,255,.9);
  font-family:var(--v-sans);font-weight:400;text-transform:none;color:var(--v-ink);pointer-events:none;opacity:1
}
.v2 .v-try .tl-hud>div{
  display:grid;grid-template-columns:auto auto;justify-content:start;align-items:baseline;column-gap:10px;row-gap:7px;
  padding:0 18px;border-left:1px solid rgba(22,26,18,.1);font-size:inherit;letter-spacing:0;color:inherit;min-width:0
}
.v2 .v-try .tl-hud>div:first-child{border-left:0}
.v2 .v-try .tl-hud span{grid-column:1/-1;font:600 9px/1 var(--v-sans);letter-spacing:.22em;text-transform:uppercase;color:var(--v-mute);white-space:nowrap}
.v2 .v-try .tl-hud b{font:400 25px/1 var(--v-serif);line-height:26px;letter-spacing:0;text-transform:none;color:var(--v-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.v2 .v-try .tl-hud b i{font-style:normal}
.v2 .v-try .tl-hud b small{font:400 15px/1 var(--v-serif);color:var(--v-mute);margin-left:6px}
.v2 .v-try .tl-hud .tl-pct{min-width:2.2em}
.v2 .v-try .tl-hud .tl-bar{align-self:center;display:block;width:54px;height:4px;border-radius:4px;background:rgba(22,26,18,.1);position:relative;overflow:hidden}
.v2 .v-try .tl-hud .tl-bar i{position:absolute;inset:0;border-radius:4px;transform-origin:left;background:linear-gradient(90deg,#5E92B0,#9CC6DA);transition:transform .3s var(--v-ease)}
.v2 .v-try .tl-hud [data-tl-status]{position:relative;padding-left:15px;font-size:21px;transition:color .5s}
.v2 .v-try .tl-hud [data-tl-status]::before{content:"";position:absolute;left:0;top:50%;width:8px;height:8px;margin-top:-5px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 18%,transparent)}
.v2 .v-try .tl-hud [data-s=waterlogged]{color:#C0603E}
.v2 .v-try .tl-hud [data-s=draining],.v2 .v-try .tl-hud [data-s=opening]{color:#A87C0C}
.v2 .v-try .tl-hud [data-s=breathing]{color:var(--v-green)}
.v2 .v-try.tl-complete .tl-hud{opacity:1}

/* ---------------------------------------------------------------- buttons, docked into the readout */
.v2 .v-game .tl-actions{position:absolute;z-index:3;right:29px;bottom:29px;margin:0;display:flex;gap:8px;justify-content:flex-end}
.v2 .v-game .tl-actions .v-btn{height:44px;padding:0 19px;font-size:10.5px;letter-spacing:.16em}
.v2 .v-game .tl-actions .v-btn-line{background:rgba(255,255,255,.5);border-color:rgba(22,26,18,.16)}
.v2 .v-game .tl-actions .v-btn-line:hover{background:#fff;border-color:var(--v-ink)}

/* ---------------------------------------------------------------- hint */
.v2 .v-try .tl-hint{
  position:absolute;z-index:2;left:50%;right:auto;top:16px;bottom:auto;transform:translateX(-50%);
  display:inline-flex;align-items:center;gap:10px;padding:10px 18px 10px 14px;border-radius:999px;white-space:nowrap;text-align:left;
  background:rgba(253,254,250,.72);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);
  border:1px solid rgba(255,255,255,.75);box-shadow:0 16px 30px -20px rgba(20,40,8,.55);
  font:600 10px/1 var(--v-sans);letter-spacing:.22em;text-transform:uppercase;color:var(--v-ink);
  pointer-events:none;transition:opacity .6s var(--v-ease),transform .6s var(--v-ease)
}
.v2 .v-try .tl-hint::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--v-lime-deep);box-shadow:0 0 0 0 rgba(95,155,35,.45);animation:tlHint 2s var(--v-ease) infinite}
@keyframes tlHint{0%{box-shadow:0 0 0 0 rgba(95,155,35,.45)}70%,100%{box-shadow:0 0 0 9px rgba(95,155,35,0)}}
.v2 .v-try.tl-started .tl-hint{opacity:0;transform:translate(-50%,-8px)}
.v2 .v-try .tl-hint:empty{display:none}

/* ---------------------------------------------------------------- the finished lawn */
.v2 .v-try .tl-done{
  z-index:4;top:calc(50% - 44px);width:min(440px,84%);padding:30px 36px 32px;box-sizing:border-box;
  background:rgba(253,254,250,.86);-webkit-backdrop-filter:blur(20px) saturate(1.3);backdrop-filter:blur(20px) saturate(1.3);
  border:1px solid rgba(255,255,255,.85);border-radius:22px;color:var(--v-ink);
  box-shadow:0 40px 70px -36px rgba(20,40,8,.6),inset 0 1px 0 #fff;
  transform:translate(-50%,-50%) translateY(14px) scale(.97);
  transition:opacity .7s var(--v-ease),transform .9s var(--v-out)
}
.v2 .v-try.tl-complete .tl-done{transform:translate(-50%,-50%);transition-delay:.45s}
.v2 .v-try .tl-done::before{
  content:"";display:block;width:44px;height:44px;margin:0 auto 16px;border-radius:50%;
  background:var(--v-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23161A12' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
  box-shadow:0 0 0 7px rgba(158,216,54,.2)
}
.v2 .v-try .tl-done h3{margin:0;color:var(--v-ink);font:400 clamp(26px,2.4vw,32px)/1.15 var(--v-serif);letter-spacing:0;text-transform:none}
.v2 .v-try .tl-done p{margin:12px auto 22px;max-width:34ch;color:var(--v-mute);font-size:15px;line-height:1.6}
.v2 .v-try .tl-done .v-btn{height:48px;padding:0 24px;font-size:10.5px}

/* ---------------------------------------------------------------- below 960: readout on top, buttons under the lawn */
@media (max-width:959px){
  .v2 .v-game .tl-stage{aspect-ratio:3/2}
  .v2 .v-try .tl-hud{top:10px;bottom:auto;left:10px;right:10px;height:auto;padding:12px 4px;border-radius:16px;display:grid;grid-template-columns:1fr 1.15fr 1fr}
  .v2 .v-try .tl-hud>div{padding:0 14px;row-gap:6px}
  .v2 .v-try .tl-hud b{font-size:22px}
  .v2 .v-try .tl-hud [data-tl-status]{font-size:19px}
  .v2 .v-try .tl-hint{top:auto;bottom:14px}
  .v2 .v-try.tl-started .tl-hint{transform:translate(-50%,8px)}
  .v2 .v-try .tl-done{top:calc(50% + 32px)}
  .v2 .v-game .tl-actions{position:relative;right:auto;bottom:auto;margin-top:22px;justify-content:center;gap:10px}
  .v2 .v-game .tl-actions .v-btn{height:48px;padding:0 22px}
}
@media (max-width:599px){
  .v2 .v-game .tl-stage{aspect-ratio:4/5;border-radius:22px}
  .v2 .v-try .tl-hud{top:8px;left:8px;right:8px;padding:10px 0;border-radius:14px;grid-template-columns:1fr 1.2fr 1.1fr}
  .v2 .v-try .tl-hud>div{padding:0 10px;column-gap:6px;row-gap:6px}
  .v2 .v-try .tl-hud span{font-size:8px;letter-spacing:.16em}
  .v2 .v-try .tl-hud b{font-size:19px}
  .v2 .v-try .tl-hud b small{font-size:12px;margin-left:3px}
  .v2 .v-try .tl-hud .tl-pct{min-width:0}
  .v2 .v-try .tl-hud .tl-bar{grid-column:1/-1;width:100%;max-width:80px;height:3px}
  .v2 .v-try .tl-hud [data-tl-status]{font-size:15px;padding-left:12px}
  .v2 .v-try .tl-hud [data-tl-status]::before{width:6px;height:6px;margin-top:-4px;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 18%,transparent)}
  .v2 .v-try .tl-hint{bottom:12px;padding:9px 14px 9px 12px;font-size:9px;letter-spacing:.16em}
  .v2 .v-try .tl-done{width:88%;padding:22px 20px 24px;top:calc(50% + 30px)}
  .v2 .v-try .tl-done::before{width:36px;height:36px;margin-bottom:12px;background-size:18px}
  .v2 .v-try .tl-done h3{font-size:24px}
  .v2 .v-try .tl-done p{font-size:14px;margin:10px auto 18px}
  .v2 .v-game .tl-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:18px}
  .v2 .v-game .tl-actions .v-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .v2 .v-try .tl-hint::before{animation:none}
  .v2 .v-try .tl-done,.v2 .v-try .tl-hint{transition:opacity .3s}
}

/* ================================================================ round 6: more tactile play (lawn.js) */
.v2 .v-game .tl-stage{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;outline:none}
.v2 .v-game .tl-stage:focus-visible{box-shadow:0 50px 90px -50px rgba(26,46,8,.55),0 0 0 2px var(--v-lime),0 0 0 6px rgba(158,216,54,.28)}
/* a full charge lands with a small, soft thump */
.v2 .v-game .tl-stage.tl-thump canvas{animation:tlThump .5s var(--v-out)}
@keyframes tlThump{0%{transform:none}18%{transform:scale(.993) translateY(1.5px)}100%{transform:none}}
/* the opened count pops as it goes up */
.v2 .v-try .tl-hud b.tl-bump i[data-tl-opened]{display:inline-block;animation:tlBump .45s var(--v-out)}
@keyframes tlBump{0%{transform:none;color:inherit}30%{transform:translateY(-3px) scale(1.18);color:var(--v-lime-deep)}100%{transform:none;color:inherit}}
.v2 .v-try .tl-hud [data-tl-status]{transition:color .5s,text-shadow .6s}
.v2 .v-try.tl-complete .tl-hud [data-tl-status]::before{animation:tlBreath 2.4s var(--v-ease) infinite}
@keyframes tlBreath{0%,100%{box-shadow:0 0 0 4px rgba(63,122,18,.18)}50%{box-shadow:0 0 0 8px rgba(63,122,18,0)}}
/* Run the Grid fills with lime as the points open */
.v2 .v-game .tl-actions [data-tl-run]{background-image:linear-gradient(90deg,var(--v-lime-2) var(--tl-p,0%),transparent var(--tl-p,0%));transition:background-color .3s,box-shadow .3s,transform .3s var(--v-out)}
.v2 .v-game .tl-actions [data-tl-run].tl-busy{pointer-events:none}
.v2 .v-game .tl-actions .v-btn:active{transform:scale(.96)}
.v2 .v-game .tl-actions .v-btn:focus-visible{outline:2px solid var(--v-green);outline-offset:3px}
/* the finish card: hidden from the keyboard until it shows; a tick that draws itself; the time it took */
.v2 .v-try .tl-done{visibility:hidden;transition:opacity .7s var(--v-ease),transform .9s var(--v-out),visibility 0s .7s}
.v2 .v-try.tl-complete .tl-done{visibility:visible;transition:opacity .7s var(--v-ease) .45s,transform .9s var(--v-out) .45s,visibility 0s .45s}
.v2 .v-try.tl-r6 .tl-done::before{display:none}
.tl-tick{display:block;width:48px;height:48px;margin:0 auto 16px;overflow:visible}
.tl-tick circle{fill:var(--v-lime);stroke:rgba(158,216,54,.28);stroke-width:7;transform-origin:50% 50%;transform:scale(.4);opacity:0;transition:transform .7s cubic-bezier(.3,1.6,.5,1),opacity .3s}
.tl-tick path{fill:none;stroke:var(--v-ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:32;stroke-dashoffset:32;transition:stroke-dashoffset .6s var(--v-out)}
.v2 .v-try.tl-complete .tl-tick circle{transform:none;opacity:1;transition-delay:.6s}
.v2 .v-try.tl-complete .tl-tick path{stroke-dashoffset:0;transition-delay:.95s}
.v2 .v-try .tl-done .tl-stats{max-width:none;margin:10px auto -8px;font:600 10px/1.5 var(--v-sans);letter-spacing:.2em;text-transform:uppercase;color:var(--v-green)}
.v2 .v-try .tl-done .tl-stats:empty{display:none}
@media (max-width:599px){
  .tl-tick{width:38px;height:38px;margin-bottom:12px}
  .v2 .v-try .tl-done .tl-stats{font-size:9px;letter-spacing:.14em;margin-bottom:-6px}
}
@media (prefers-reduced-motion:reduce){
  .tl-tick circle,.tl-tick path{transition:none}
  .v2 .v-try.tl-complete .tl-hud [data-tl-status]::before{animation:none}
}
