/* Lead practice: the game the shotgun page's "Practice your lead" switch opens (lead-game.js). Fetched only then.
   One screen over the page: the field from above fills it (a canvas the script draws each frame), the scorecard and
   the sound and close buttons ride the top edge, the coaching line, the Pull button and the shells the bottom; a
   sheet before the first throw and after the last. The site's own look: moss ground, clay orange, bone type, Nunito
   thin with one heavy word. Nothing here animates. */
html.lg-open { overflow:hidden; }
/* The email list's sign-up pop-up (Constant Contact's widget, which consent.js loads on every page) stays off the game,
   as it does off the shop's: while the game is open its container is not shown, nor is any other box the widget
   hangs on the page (it adds them to the body, each with a ctct- class). If it came up meanwhile, it is there when the
   game closes. */
html.lg-open .ctct-popup-form,html.lg-open body > [class*="ctct-"] { display:none !important; }
.lg { --bone:#f4efe6;--soft:#f4efe6c2;--edge:#f4efe63d;--plate:#1c1a168f;--ink:#1c1a16;--amber:#ffd9a8;
  position:fixed;inset:0;z-index:9000;overflow:hidden;background:#2c3524;color:var(--bone);font-family:"Nunito",system-ui,sans-serif;font-weight:600;line-height:1.35;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:contain; }
.lg [hidden] { display:none !important; }
.lg :focus-visible { outline:2px solid var(--bone);outline-offset:3px; }
.lg canvas { position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair; }

/* The top edge: the name (where there is room), the card of six throws, sound and close. Only the buttons take a press. */
.lg-top { position:absolute;z-index:3;inset:0 0 auto 0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(10px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));pointer-events:none; }
.lg-name { font-size:19px;font-weight:300;letter-spacing:.01em;white-space:nowrap; }
.lg-name em,.lg-h em { font-style:normal;font-weight:900; }
.lg-card { display:flex;gap:4px;list-style:none; }
.lg-card li { display:grid;grid-template-rows:14px 1fr;align-items:center;width:36px;height:40px;border:1px solid var(--edge);border-radius:4px;background:var(--plate);text-align:center; }
.lg-card small { font-size:10px;font-weight:800;line-height:14px;color:var(--soft); }
.lg-card b { font-size:13px;font-weight:900;line-height:1;letter-spacing:.06em;font-variant-numeric:tabular-nums; }
.lg-card li.is-now { border-color:var(--amber); }
.lg-btns { display:flex;gap:8px; }
.lg-ico { display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--edge);border-radius:50%;background:var(--plate);color:var(--bone);cursor:pointer;pointer-events:auto; }
.lg-ico:hover { border-color:var(--bone); }
.lg-ico .lg-off,.lg-ico[aria-pressed="false"] .lg-on { display:none; }
.lg-ico[aria-pressed="false"] .lg-off { display:inline; }
.lg-ico[aria-pressed="false"] { color:var(--soft); }

/* The bottom edge: what to do or what happened, the button, and a shell for each clay of the throw. */
.lg-foot { position:absolute;z-index:1;inset:auto 0 0 0;display:grid;justify-items:center;gap:10px;padding:0 max(16px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));text-align:center;pointer-events:none; }
.lg-say { display:flex;align-items:flex-end;justify-content:center;min-height:38px; }
.lg-say p { max-width:36em;font-size:14px;line-height:1.35;color:var(--soft);text-wrap:balance; }
.lg-say b { font-weight:800;color:var(--bone); }
.lg-row { display:grid;grid-template-columns:48px auto 48px;align-items:center;gap:12px; }
.lg-shells { display:flex;gap:5px; }
.lg-shells i { width:9px;height:24px;border-radius:2px 2px 1px 1px;background:linear-gradient(#a84e24 0 66%,#c9a45c 66%); }
.lg-shells i.is-spent { opacity:.25; }
.lg-go { min-width:150px;height:52px;padding:0 26px;border-radius:26px;background:var(--amber);color:var(--ink);font:900 17px/1 "Nunito",system-ui,sans-serif;letter-spacing:.03em;cursor:pointer;pointer-events:auto; }
.lg-go:disabled { opacity:.32;cursor:default; }

/* The sheets: before the first throw, and the card after the last. */
.lg-panel { position:absolute;z-index:2;inset:0;display:grid;place-items:center;overflow:auto;padding:calc(70px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:#1c1a16ad; }
.lg-sheet { display:grid;justify-items:start;gap:14px;width:min(100%,430px);padding:26px 24px 24px;border:1px solid var(--edge);border-radius:6px;background:var(--ink); }
.lg-h { font:300 clamp(27px,7vw,34px)/1.12 "Nunito",system-ui,sans-serif;letter-spacing:0;text-transform:none;color:var(--bone);text-wrap:balance; }
.lg-sheet p { font-size:15px;line-height:1.5;color:var(--soft); }
.lg-sheet .lg-fine { font-size:13px; }
.lg-sheet .lg-go { margin-top:4px; }
.lg-total { font-size:68px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums; }
.lg-total small { font-size:17px;font-weight:600;color:var(--soft); }
.lg-ends { display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px; }
.lg-plain { min-height:44px;padding:0 6px;color:var(--bone);font:700 15px/1 "Nunito",system-ui,sans-serif;text-decoration:underline;text-underline-offset:4px;cursor:pointer; }

/* A phone on its side leaves the field a strip too thin to aim in. The top edge, with its close button, stays above. */
.lg-turn { display:none;position:absolute;z-index:2;inset:0;place-items:center;padding:24px;background:var(--ink);font-size:17px;text-align:center; }
@media (orientation:landscape) and (max-height:430px) and (pointer:coarse) { .lg-turn { display:grid; } }

@media (max-width:520px) { .lg-name { display:none; } }
@media (max-width:374px) { .lg-card li { width:31px; } .lg-card b { letter-spacing:0; } .lg-top { gap:8px; } }
