/* Restored pool designer and optional cricket demo. */
.dm-head-side { display: grid; gap: 14px; }
.dm-ways { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.dm-ways li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.dm-ways svg { margin-top: 3px; font-size: 17px; color: var(--navy); }
.dm-ways b { margin-right: 6px; font-weight: 600; color: var(--ink); }


/* 04 and 05 — interactive experiences: a game for a cricket centre and a designer for a pool and spa shop.
   Both end the way every demo here does: the customer does one thing and the business receives a lead. */
.dm-phone--game { gap: 8px; }
.dm-phone--game [data-view][hidden] { display: none; }
.dm-game { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.dm-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px; }
.dm-score p { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.dm-score p span { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dm-score p b { min-width: 1.2em; font-size: 1.7rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dm-over { margin: 0; padding: 0; list-style: none; display: flex; gap: 5px; }
.dm-over li { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--hair-2); border-radius: 50%; background: var(--surface);
              color: var(--ink-2); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-over li.is-now { border-color: var(--spark); box-shadow: 0 0 0 3px rgba(72, 108, 252, .15); }
.dm-over li.is-runs { background: var(--navy); border-color: var(--navy); color: #fff; }
.dm-over li.is-dot { background: var(--bg-2); color: var(--ink-3); }

/* the pitch, seen from above: bowler's stumps at the top, the batter's at the bottom, the line to hit on */
.dm-pitch { position: relative; flex: 1; min-height: 232px; overflow: hidden; border: 1px solid rgba(27, 107, 58, .18); border-radius: 18px;
            background: linear-gradient(90deg, transparent 0 36%, #EADFC6 36% 64%, transparent 64%), linear-gradient(#DCEEDD, #CDE5D1);
            cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.dm-crease { position: absolute; left: 31%; right: 31%; top: 80%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.dm-stumps { position: absolute; left: 50%; display: flex; gap: 4px; transform: translateX(-50%); }
.dm-stumps i { width: 3px; height: 14px; border-radius: 2px; background: #8A6A3B; }
.dm-stumps--far { top: 4%; }
.dm-stumps--near { top: 88%; }
.dm-stumps--near i { height: 20px; width: 4px; }
/* the two players, seen from above: shoulders and a cap. The bowler runs in from the top; the batter stands just
   to the leg side of the stumps so the bat, hinged at the shoulder, swings through the line of the ball. */
.dm-bowler, .dm-batter { position: absolute; left: 50%; width: 30px; height: 19px; border-radius: 10px; background: #fff; pointer-events: none;
                         box-shadow: 0 0 0 1px rgba(12, 36, 84, .18), 0 3px 6px rgba(0, 0, 0, .14); }
.dm-bowler { top: -14%; margin-left: -15px; }
.dm-bowler i, .dm-helmet { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px; border-radius: 50%; background: var(--navy); }
.dm-bowler.is-running { animation: dm-run .2s linear infinite; }
.dm-batter { top: 84%; margin: -10px 0 0 -31px; }
.dm-bat { position: absolute; left: 100%; top: 50%; width: 27px; height: 6px; margin: -3px 0 0 -3px; border-radius: 3px; background: #D9B66A;
          box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); transform-origin: 3px 50%; transform: rotate(62deg); transition: transform .13s ease-out; }
.dm-batter.is-up .dm-bat { transform: rotate(-96deg); }
.dm-batter.is-left .dm-bat { transform: rotate(-178deg); }
.dm-batter.is-right .dm-bat { transform: rotate(-14deg); }
.dm-batter.is-down .dm-bat { transform: rotate(-90deg) scaleX(.7); }
.dm-ball { z-index: 2; }
.dm-pitch:focus { outline: none; }
.dm-pitch:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
.dm-game .dm-restart { margin: 0; }
.dm-ball { position: absolute; left: 50%; top: 8%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; opacity: 0;
           background: radial-gradient(circle at 35% 30%, #E4574B, #B4231A); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.dm-ball.is-hit { opacity: 0 !important; transform: translate(var(--dx, 0), var(--dy, -80px)) scale(.6); transition: transform .55s cubic-bezier(.2, .7, .3, 1), opacity .55s ease-in !important; }
.dm-ball.is-gone { opacity: 0 !important; transition: opacity .3s !important; }
.dm-call { position: absolute; left: 0; right: 0; top: 36%; margin: 0; text-align: center; pointer-events: none;
           font: 600 1.6rem/1 var(--sans); letter-spacing: -.03em; color: var(--navy); }
.dm-call.is-new { animation: dm-pop .45s var(--ease) both; }
/* the 3D ground: the module fills this box with its canvas, and the flat pitch's own pieces step aside */
.dm-pitch3d { position: absolute; inset: 0; }
.dm-pitch3d[hidden] { display: none; }
.dm-pitch3d canvas { display: block; width: 100%; height: 100%; }
/* a fixed height, so the ground is not redrawn at another size when a button appears under it mid-game */
.dm-pitch.is-3d { flex: none; height: 326px; min-height: 0; border-color: rgba(12, 36, 84, .14); background: #BFD9EE; }
.dm-pitch.is-3d > .dm-stumps, .dm-pitch.is-3d > .dm-crease, .dm-pitch.is-3d > .dm-bowler, .dm-pitch.is-3d > .dm-batter, .dm-pitch.is-3d > .dm-ball { display: none; }
/* the call ("Six!", "Bowled") sits on a dark pill over the crowd, where it reads on any part of the picture */
.dm-pitch.is-3d .dm-call { top: 7%; width: fit-content; margin: 0 auto; padding: 8px 16px 9px; border-radius: 999px; background: rgba(12, 36, 84, .82);
                           font-size: 1.2rem; letter-spacing: -.02em; color: #fff; box-shadow: 0 6px 18px rgba(12, 36, 84, .28); }
.dm-pitch.is-3d .dm-call:empty { display: none; }
.dm-pitch.is-3d .dm-howto { background: rgba(250, 250, 252, .74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
/* before the first ball: how the game is played on this device */
.dm-howto { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 14px;
            background: rgba(250, 250, 252, .84); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); text-align: center; }
.dm-howto[hidden] { display: none; }
.dm-howto p { margin: 0; }
.dm-howto-how span { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--navy); }
.dm-howto-how svg { font-size: 18px; }
.dm-howto-how b { font-weight: 700; }
.dm-howto-touch, .dm-howto.is-touch .dm-howto-keys { display: none !important; }
.dm-howto.is-touch .dm-howto-touch { display: inline-flex !important; }
.dm-howto-pad { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, auto); gap: 5px; }
.dm-key { display: grid; justify-items: center; gap: 1px; padding: 7px 2px 5px; border: 1px solid var(--hair-2); border-bottom-width: 3px; border-radius: 10px;
          background: #fff; color: var(--navy); font-size: 18px; }
.dm-key small { font-size: .64rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.dm-key[data-d="up"] { grid-area: 1 / 2; }
.dm-key[data-d="left"] { grid-area: 2 / 1; }
.dm-key[data-d="right"] { grid-area: 2 / 3; }
.dm-key[data-d="down"] { grid-area: 3 / 2; }
.dm-howto.is-touch .dm-key { border-bottom-width: 1px; border-radius: 50%; width: 52px; height: 52px; align-content: center; justify-self: center; }
.dm-howto-when { max-width: 15rem; font-size: .78rem; line-height: 1.45; color: var(--ink-2); }
.dm-hit, .dm-claim .dm-pay { justify-content: center; }
/* the one button that runs the over: a play mark for Start and Resume, a pause mark while balls are coming */
.dm-hit { gap: 9px; }
.dm-hit-go, .dm-hit-hold { display: inline-flex; font-size: 17px; }
.dm-hit-go svg, .dm-hit-hold svg { fill: currentColor; }
.dm-hit[data-state="pause"] .dm-hit-go, .dm-hit:not([data-state="pause"]) .dm-hit-hold, .dm-hit:disabled .dm-hit-go { display: none; }
.dm-hit[hidden], .dm-shots[hidden] { display: none; }
.dm-shots { display: flex; gap: 8px; }
.dm-shots .dm-take { flex: 1; justify-content: center; padding-left: 8px; padding-right: 8px; }
.dm-claim { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.dm-claim[hidden] { display: none; }
.dm-claim input { min-width: 0; padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 .94rem/1.4 var(--sans); }
.dm-claim input::placeholder { color: var(--ink-3); }
.dm-phone--game .dm-tracking { gap: 12px; }
.dm-phone--game .dm-chips { padding: 0; }
.dm-phone--game .dm-track-note { margin: 0; }

/* what the business sees: a lead card, and the day's ladder */
.dm-lead > header i { background: var(--dm-ok-bg); color: var(--dm-ok); }
.dm-lead[data-state="live"] > header i { background: rgba(72, 108, 252, .12); color: var(--navy); }
.dm-lead li > span:first-child { color: var(--ink-3); white-space: normal; }
.dm-lead li b { text-align: right; overflow-wrap: anywhere; }
.dm-ladder-box { padding: 12px 14px; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); }
.dm-ladder-title { margin: 0 0 6px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dm-ladder-title span:last-child { letter-spacing: 0; text-transform: none; font-size: .78rem; color: var(--navy); }
.dm-ladder { margin: 0; padding: 0; list-style: none; counter-reset: rank; display: grid; gap: 2px; }
.dm-ladder li { counter-increment: rank; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: .92rem; line-height: 1.4; }
.dm-ladder li::before { content: counter(rank); width: 18px; text-align: center; font-size: .76rem; font-weight: 700; color: var(--ink-3); }
.dm-ladder li b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-ladder li.is-you { background: rgba(72, 108, 252, .1); color: var(--navy); font-weight: 600; animation: dm-in .4s var(--ease) both; }

/* the pool designer */
.dm-design { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.dm-design [hidden] { display: none; }
/* The designer is taller than a conversation, so its two panes grow to fit: the price guide and "Book a site visit"
   must never sit below a scroll inside the pane. */
.dm-stage[data-demo="pool"] .dm-pane { height: auto; min-height: 672px; }
.dm-stage[data-demo="pool"] .dm-design { overflow: visible; }
.dm-yard { flex: none; overflow: hidden; border: 1px solid rgba(27, 107, 58, .16); border-radius: 16px; background: #DDEEDF; }
/* a fixed height: the drawing is centred in it and the box behind is the same lawn, so a wide pane only adds lawn */
.dm-yard svg { display: block; width: 100%; height: 232px; stroke: none; }
.dm-yard--mini { margin: 12px 14px 0; border-radius: 12px; }
.dm-yard--mini svg { height: 172px; }
.dm-yard svg text { font-family: var(--sans); }
.dm-yard[hidden] { display: none; }
/* the 3D yard: the module fills this box with its canvas and its measurement labels */
.dm-yard3d { position: relative; flex: none; height: 340px; overflow: hidden; border: 1px solid rgba(27, 107, 58, .16); border-radius: 16px; background: #CFE3F2; }
.dm-yard3d[hidden] { display: none; }
.dm-yard3d canvas { display: block; }
.dm-dims { margin: -2px 2px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; font-size: .8rem; line-height: 1.5; color: var(--ink-2); }
.dm-dims > span:first-child { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.dm-dims-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--ink-3); }
.dm-dims-hint[hidden] { display: none; }
.dm-dims-hint svg { font-size: 14px; color: var(--navy); }
/* "your own backyard": an address field under the 3D yard. The aerial photo of that block becomes the ground. */
.dm-plot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px 9px; border: 1px solid var(--hair); border-radius: 14px; background: var(--bg-2); }
.dm-plot[hidden] { display: none; }
.dm-plot-find { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0; }
.dm-plot-find label { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.dm-plot-find label svg { font-size: 16px; }
.dm-plot-box { position: relative; }
.dm-plot-box input { width: 100%; padding: 10px 12px; border: 1px solid var(--hair-2); border-radius: 10px; background: #fff; font: inherit; font-size: .9rem; color: var(--ink); }
.dm-plot-box input:focus { outline: 2px solid var(--spark); outline-offset: 1px; }
.dm-plot-box input:disabled { opacity: .6; }
.dm-plot-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; border: 1px solid var(--hair-2);
                border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgba(12, 36, 84, .16); }
.dm-plot-list button { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .84rem; line-height: 1.35; text-align: left; color: var(--ink); cursor: pointer; }
.dm-plot-list button:hover, .dm-plot-list button.is-active { background: var(--bg-2); }
.dm-plot-on { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--navy); }
.dm-plot-on > svg { font-size: 16px; }
.dm-plot-on span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-plot-off { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--hair-2); border-radius: 999px; background: #fff;
               font: inherit; font-size: .76rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.dm-plot-off:disabled { opacity: .5; cursor: default; }
.dm-plot .dm-plot-note, .dm-plot .dm-plot-credit { margin: 0; text-align: left; }
.dm-plot-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dm-plot-list li.dm-plot-by { padding: 6px 10px 4px; font-size: .7rem; color: var(--ink-3); }
.dm-yard--mini canvas { display: block; width: 100%; height: 172px; }
/* with the 3D yard up, the Spa pill can be carried into it: under a finger it must not scroll the page instead */
.dm-stage.is-3d .dm-seg [data-v="spa"] { touch-action: none; }
.is-carrying, .is-carrying * { cursor: grabbing !important; }
.is-carrying .dm-yard3d { outline: 2px dashed var(--spark); outline-offset: 2px; }
[data-demo="pool"] .dm-lead > footer span { color: var(--ink-2); font-weight: 500; }
.dm-opt { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); align-items: center; gap: 10px; }
.dm-opt > span { font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.dm-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.dm-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--hair-2); border-radius: 100px; background: var(--surface);
                 color: var(--ink); font: 500 .8rem/1.2 var(--sans); cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.dm-seg button:hover { border-color: var(--spark); }
.dm-seg button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dm-seg button:disabled { cursor: default; opacity: .6; }
.dm-seg button i[style] { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.dm-seg button svg { font-size: 14px; }
/* a small drawing of each shape and size, in the pill's own colour */
.dm-g { flex: none; display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; }
.dm-g--classic { width: 16px; height: 10px; }
.dm-g--lap { width: 19px; height: 6px; }
.dm-g--freeform { width: 16px; height: 11px; border-radius: 62% 38% 55% 45% / 55% 62% 38% 45%; }
.dm-g--plunge { width: 10px; height: 10px; }
.dm-g--small { width: 7px; height: 7px; border-radius: 2px; }
.dm-g--medium { width: 10px; height: 10px; }
.dm-g--large { width: 13px; height: 13px; }
.dm-guide { padding: 10px 14px; border-radius: 14px; background: rgba(72, 108, 252, .08); }
.dm-guide p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.dm-guide p span { font-size: .76rem; font-weight: 600; color: var(--navy); }
.dm-guide p b { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.dm-guide small { display: block; margin-top: 2px; font-size: .72rem; line-height: 1.5; color: var(--ink-3); }
.dm-design .dm-claim { flex-direction: row; flex-wrap: wrap; }
.dm-design .dm-claim input { flex: 1 1 180px; }
.dm-design .dm-claim .dm-pay { width: auto; flex: 0 0 auto; padding: 12px 18px; white-space: nowrap; }
.dm-design .dm-chips { padding: 0; }
.dm-design .dm-track-note { margin: 0; }
.dm-design .dm-restart { margin: 0; align-self: flex-start; }

@keyframes dm-run { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
@keyframes dm-pop { from { opacity: 0; transform: scale(.7); } 60% { transform: scale(1.08); } }

@media (max-width: 960px) {
  .dm-yard3d { height: 300px; }
  .dm-pitch { min-height: 250px; }
  .dm-design { overflow: visible; }
}
@media (max-width: 720px) {
  .dm-design { padding: 12px 14px 14px; }
  .dm-design .dm-claim .dm-pay { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .dm-over { gap: 3px; }
  .dm-over li { width: 21px; height: 21px; font-size: .66rem; }
  .dm-score p b { font-size: 1.4rem; }
  .dm-opt { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}


.dm .dm-jump{grid-template-columns:repeat(4,minmax(0,1fr));max-width:1080px}
.dm-trade{display:inline-flex;align-items:center;gap:5px}
.dm-trade svg{font-size:12px}
@media(max-width:760px){.dm .dm-jump{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.dm-stage[data-demo="pool"] .dm-pane{min-height:0}}

/* Keep the cricket game open in the page and remove the divider below it. */
#cricket + .dm-property-intro{border-top:0}
