/* The shop range: the game the shop page's "Target practice" switch opens (shop-range.js). Fetched only then.
   The screen is the shop's rows view come loose: the page's own ground, a heading over each row as the shop sets it,
   and the shop's own cards. The cards and headings are dressed by the shop's rules in refinements.css (the game's two
   layers carry the row track's class for that), so this file holds only what the game adds: the score line, the spots,
   the broken panes, and the sheets before and after a round. Nothing here animates: the script places every card, pane
   and number each frame, so the game plays the same whatever the visitor's motion setting. */
html.sr-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:
   while the game is open its container is not shown. If it came up meanwhile, it is there when the game closes. */
html.sr-open .ctct-popup-form { display:none !important; }
.sr { position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;background:#1c1a16;color:#f4efe6;font-family:"Nunito",system-ui,sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:none;overscroll-behavior:contain; }
.sr :focus-visible { outline:2px solid #e8b168;outline-offset:3px; }
/* --hot: the colour of the streak's multiplier, bone at one and hotter with each step. The streak's count, the glow
   round the field, and the points a hit earns all take it. */
.sr { --hot:#f4efe6; }
.sr[data-tier="2"] { --hot:#e8b168; }
.sr[data-tier="3"] { --hot:#f09a4a; }
.sr[data-tier="4"] { --hot:#f0795c; }
.sr[data-tier="5"] { --hot:#ff5a3c; }

/* The score line: the score, the level, the best score on this device, sound, close. */
.sr-hud { flex:none;position:relative;z-index:6;display:flex;align-items:center;gap:clamp(10px,3vw,26px);padding:calc(8px + env(safe-area-inset-top,0px)) calc(12px + env(safe-area-inset-right,0px)) 8px calc(16px + env(safe-area-inset-left,0px));border-bottom:1px solid #ffffff26;background:#171410; }
.sr-stat { display:flex;flex-direction:column;gap:3px;min-width:44px;line-height:1; }
.sr-stat span { font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#a89f90; }
.sr-stat b { font-size:24px;font-weight:800;font-variant-numeric:tabular-nums; }
.sr-best { flex:1; }   /* takes the room that is left, so the two buttons sit at the far end */
.sr-best b { color:#a89f90; }
.sr-ico { flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:#211d17;color:#f4efe6;cursor:pointer; }
.sr-ico svg { width:20px;height:20px; }
.sr-ico:hover { border-color:#f4efe6; }
.sr-ico .sr-waves,.sr-ico.is-on .sr-mute { display:none; }
.sr-ico.is-on .sr-waves { display:inline; }
.sr-ico.is-on { background:#f4efe6;color:#14120f;border-color:#f4efe6; }

/* The field: the rows, and above them the layer where loose panes and numbers fly. The pointer is a reticle; the
   script works a hit out from the card positions, so neither layer takes the pointer itself. Both layers borrow the
   row track's class so the shop's row-card rules dress what is in them, and are told here they are not scrollers.
   The rows run off both edges of the screen into the page's colour, as the shop's rows do. */
.sr-main { flex:1;min-height:0;position:relative; }
.sr-field { position:absolute;inset:0;overflow:hidden;cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cg stroke='%2314120f' stroke-width='4.5' opacity='.6'%3E%3Ccircle cx='20' cy='20' r='11'/%3E%3Cpath d='M20 3v9M20 28v9M3 20h9M28 20h9'/%3E%3C/g%3E%3Cg stroke='%23f4efe6' stroke-width='2'%3E%3Ccircle cx='20' cy='20' r='11'/%3E%3Cpath d='M20 3v9M20 28v9M3 20h9M28 20h9'/%3E%3C/g%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='2' fill='%23c8612f'/%3E%3C/svg%3E") 16 16,crosshair; }
.sr .sr-world,.sr .sr-fx { position:absolute;inset:0;display:block;overflow:visible;margin:0;padding:0;pointer-events:none;cursor:inherit; }
.sr .sr-fx { z-index:3; }
.sr-glow { position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;box-shadow:inset 0 0 70px 6px var(--hot); }   /* the script sets how strongly it shows */
.sr-field::before,.sr-field::after { content:"";position:absolute;z-index:2;top:0;bottom:0;width:clamp(14px,4vw,56px);pointer-events:none; }
.sr-field::before { left:0;background:linear-gradient(to right,#1c1a16e6,#1c1a1600); }
.sr-field::after { right:0;background:linear-gradient(to left,#1c1a16e6,#1c1a1600); }
.sr-head { position:absolute;left:clamp(16px,4vw,48px);right:clamp(16px,4vw,48px);top:0;margin:0; }   /* the script moves it with its row when the page scrolls */

/* A card is two of the shop's cards back to back in a holder the size of a row card: the pictured card, and its
   copy set as a card without a picture, the description in full. One shows at a time (.is-back). The holder is
   scaled and turned by the script about its top left, so its own lengths stay the shop's. */
.sr-card,.sr-shard { position:absolute;left:0;top:0;width:270px;height:var(--ch);transform-origin:0 0; }
.sr-card,.sr-fx > .sr-shard { will-change:transform; }
.sr-card > .catalog-item,.sr-shard > .catalog-item { position:absolute;left:0;top:0;width:100%;height:100%;box-sizing:border-box; }   /* a set height: the shop's cards start at their own height, which the copy's is not */
.sr-probe { height:auto; }
.sr-probe > .catalog-item { position:relative;height:auto; }   /* the one card drawn to learn a card's own height */
.sr-card > .sr-copy,.sr-card > .sr-shard,.sr-card.is-back > .catalog-item:not(.sr-copy) { visibility:hidden; }
.sr-card.is-back > .sr-copy,.sr-card.is-back > .sr-shard { visibility:visible; }
.sr .sr-copy .catalog-desc { -webkit-line-clamp:8; }
.sr .sr-copy .catalog-price { align-self:flex-start; }   /* as wide as the figure, so the price's reticle can sit just beside it */

/* The spots, in a layer over both faces, all one size (--spot, which the script sets: really small under a mouse,
   a thumb's width under a finger). Hot spots are clay-and-white targets on the face and turn the card; a trap's
   are black with a white cross, and cost points; key spots are amber reticles on the copy and break a part of it
   off, the one beside the price filled in. Each has a rim so it shows on any picture. The fuse along the copy's
   foot runs down to the moment the card turns back. */
.sr-marks { position:absolute;inset:0;z-index:5;border-radius:12px; }
.sr-spot,.sr-key,.sr-snare { position:absolute;box-sizing:border-box;width:var(--spot);height:var(--spot);margin:calc(var(--spot) / -2) 0 0 calc(var(--spot) / -2);border-radius:50%; }
.sr-spot { background:radial-gradient(circle,#c8612f 0 18%,#fff 19% 44%,#c8612f 45% 70%,#fff 71% 100%);border:2px solid #c8612f;box-shadow:0 0 0 1px #ffffffb3; }
.sr-spot.is-trap,.sr-snare { border:2px solid #1c1a16;background:linear-gradient(45deg,transparent 42%,#f4efe6 43% 57%,transparent 58%),linear-gradient(-45deg,transparent 42%,#f4efe6 43% 57%,transparent 58%),#1c1a16;border-color:#1c1a16;box-shadow:0 0 0 1px #f4efe6; }
.sr-spot.is-shot { background:radial-gradient(circle,#14120f 0 30%,#6b645a 31% 44%,transparent 46%);border-color:transparent;box-shadow:none; }   /* shot out: a bullet hole where the target was */
.sr-key { border:2px solid #e8b168;background:radial-gradient(circle,#e8b168 0 12%,transparent 13%),linear-gradient(#e8b168,#e8b168) 50% 50% / 2px 100% no-repeat,linear-gradient(#e8b168,#e8b168) 50% 50% / 100% 2px no-repeat,rgba(28,26,22,.7); }
.sr-key.is-price { background:radial-gradient(circle,#1c1a16 0 12%,transparent 13%),linear-gradient(#1c1a16,#1c1a16) 50% 50% / 2px 100% no-repeat,linear-gradient(#1c1a16,#1c1a16) 50% 50% / 100% 2px no-repeat,#e8b168; }
.sr-fuse { position:absolute;left:12px;right:12px;bottom:9px;height:3px;border-radius:2px;background:#e8b168;transform-origin:0 50%; }
.sr-card.is-back .sr-spot,.sr-card:not(.is-back) .sr-key,.sr-card:not(.is-back) .sr-fuse { visibility:hidden; }
.sr-card:not(.is-back) .sr-snare { visibility:hidden; }   /* a trap spot on the copy: the trap's black cross, shown with the copy */
/* A shot that landed on the card and broke nothing: a hole with a torn rim. It is drawn once for each face (the script
   mirrors it), so it shows where it should from either side. */
.sr-hole { position:absolute;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:radial-gradient(circle,#0b0a08 0 34%,#a39a8b 35% 46%,rgba(244,239,230,.3) 47% 60%,transparent 62%); }
.sr-card.is-back .sr-hole.on-face,.sr-card:not(.is-back) .sr-hole.on-copy { visibility:hidden; }
/* A card that reloads the magazine when cleared: an amber edge on both faces, and a tag on the face, on the glass beside the brand. */
.sr-card.is-ammo .sr-marks { box-shadow:inset 0 0 0 3px #e8b168; }
.sr-reload { position:absolute;right:14px;top:190px;padding:5px 10px 5px 24px;border-radius:20px;background:#e8b168 linear-gradient(#1c1a16,#1c1a16) 10px 50% / 7px 12px no-repeat;color:#1c1a16;font:800 12px/1 "Nunito",system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase; }
.sr-card.is-back .sr-reload { visibility:hidden; }
.sr-card.is-stung .sr-marks { background:rgba(196,48,32,.34); }   /* a trap was shot: the card flushes for a moment */

/* A pane of a cracked copy: the copy again, cut to the pane's shape by the script, with the pane's edge drawn over
   it so the cracks show while it is in the card, and a loose pane reads as glass against the dark page. */
.sr-shard > .catalog-item { box-shadow:none;background:#2a251d; }   /* cracked glass, a shade lighter than the page, so a hole reads as a hole */
.sr-fx > .sr-shard > .catalog-item { visibility:visible;background:linear-gradient(140deg,#4a4237,#262119 75%); }
.sr-edge { position:absolute;left:0;top:0;overflow:visible; }
.sr-edge polygon { fill:rgba(244,239,230,.04);stroke:rgba(244,239,230,.62);stroke-width:1.3;stroke-linejoin:round; }

/* What flies: the points a shot earned, the flash where it landed, and the dust of a broken pane. */
.sr-pop,.sr-call { position:absolute;left:0;top:0;font-weight:900;line-height:1;white-space:nowrap;color:#f4efe6;text-shadow:2px 2px 0 #14120f,-2px 2px 0 #14120f,2px -2px 0 #14120f,-2px -2px 0 #14120f,0 3px 0 #14120f,0 8px 20px rgba(0,0,0,.9); }
.sr-pop { margin:-18px 0 0 -28px;font-size:32px;letter-spacing:-.01em; }
.sr-pop.is-big { font-size:46px; }
.sr-pop small,.sr-call small { display:block;margin-top:4px;font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase; }
.sr-pop.is-x2,.sr-call.is-x2,.sr-call.is-reload { color:#e8b168; }
.sr-pop.is-x3,.sr-call.is-x3 { color:#f09a4a; }
.sr-pop.is-x4,.sr-call.is-x4,.sr-call.is-out { color:#f0795c; }
.sr-pop.is-x5,.sr-call.is-x5 { color:#ff5a3c; }
.sr-pop.is-miss,.sr-pop.is-lost { margin:-8px 0 0 -20px;font-size:13px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#a89f90;text-shadow:0 2px 8px #000; }
.sr-pop.is-trap { font-size:38px;color:#f0795c; }
/* A call across the field (a step up in the streak, a reload): set about its point, so it is centred where the script puts it. */
.sr-call { width:0;display:flex;flex-direction:column;align-items:center;font-size:clamp(34px,9vw,68px);text-transform:uppercase;letter-spacing:.02em; }
.sr-call small { font-size:.26em; }
.sr-flash { position:absolute;left:0;top:0;width:44px;height:44px;box-sizing:border-box;border:2px solid #f4efe6;border-radius:50%;background:radial-gradient(circle,rgba(255,236,200,.95) 0 18%,transparent 60%);transform-origin:0 0; }
.sr-dust { position:absolute;left:0;top:0;width:6px;height:6px;background:#f4efe6;transform-origin:0 0; }

/* The foot: the magazine on the left, the rounds left as a figure and a bar of rounds, red when low; and the streak
   on the right, the hits in a row and the multiplier they have earned, in the multiplier's colour. The streak shows
   from two in a row, and the script makes it beat with each hit. */
.sr-foot { flex:none;position:relative;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:34px;padding:8px calc(16px + env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px));border-top:1px solid #ffffff26;background:#171410; }
.sr-ammo { flex:1;min-width:0;display:flex;align-items:center;gap:10px; }
.sr-ammo span,.sr-run span { font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#a89f90; }
.sr-ammo b { min-width:2ch;font-size:26px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums; }
.sr-ammo i { flex:1;max-width:240px;height:9px;overflow:hidden; }
.sr-ammo u { display:block;height:100%;background:repeating-linear-gradient(90deg,#f4efe6 0 5px,transparent 5px 8px);transform-origin:0 50%; }
.sr.is-low .sr-ammo b { color:#f0795c; }
.sr.is-low .sr-ammo u { background:repeating-linear-gradient(90deg,#f0795c 0 5px,transparent 5px 8px); }
.sr-run { flex:none;display:flex;align-items:baseline;gap:8px;visibility:hidden;white-space:nowrap;transform-origin:100% 50%; }
.sr-run.is-on { visibility:visible; }
.sr-run b { font-size:30px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums;color:var(--hot); }
.sr-run em { align-self:center;padding:4px 10px;border-radius:20px;background:var(--hot);color:#1c1a16;font-style:normal;font-size:17px;font-weight:900;line-height:1; }

/* The sheet before a round and after it. */
.sr-panel { position:absolute;inset:0;z-index:5;display:flex;overflow:auto;touch-action:pan-y;padding:20px 16px calc(24px + env(safe-area-inset-bottom,0px));background:rgba(20,18,15,.74); }
.sr-panel[hidden] { display:none; }
.sr-panel.is-locked .sr-btn,.sr-panel.is-locked .sr-pick { opacity:.38;pointer-events:none; }   /* the summary has only just come up: its buttons wait a moment before they work */
.sr-sheet { margin:auto;width:min(560px,100%);padding:clamp(22px,5vw,36px);border:1px solid #f4efe647;border-top-color:#f4efe68a;border-radius:12px;background:#211d17;box-shadow:inset 0 1px 0 #ffffff14,0 30px 70px -30px #000; }
.sr-kicker { display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#e8b168; }
.sr-title { margin:8px 0 14px;font-size:clamp(40px,11vw,68px);font-weight:200;line-height:1;letter-spacing:-.02em;text-wrap:balance; }
.sr-title em { font-style:normal;font-weight:800; }
.sr-sheet p { margin:0;max-width:46ch;font-size:16px;line-height:1.5;color:rgba(244,239,230,.86); }
.sr-rules { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0 0;padding:0;list-style:none; }
.sr-rules li { padding:10px 12px;border:1px solid #f4efe62e;border-radius:8px;font-size:12.5px;line-height:1.3;color:rgba(244,239,230,.86); }
.sr-rules b { display:block;margin-bottom:2px;font-size:22px;font-weight:800;color:#f4efe6;font-variant-numeric:tabular-nums; }
.sr-actions { display:flex;flex-wrap:wrap;gap:10px;margin-top:24px; }
.sr-btn { display:inline-flex;align-items:center;justify-content:center;padding:14px 24px;border:1px solid rgba(244,239,230,.5);border-radius:44px;background:none;color:#f4efe6;font:800 13px/1 "Nunito",system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;cursor:pointer; }
.sr-btn:hover { border-color:#f4efe6;background:rgba(244,239,230,.1); }
.sr-btn.fill { background:#f4efe6;border-color:#f4efe6;color:#1c1a16; }
.sr-btn.fill:hover { background:#fff;border-color:#fff; }
.sr-bench-head { margin-top:22px; }
.sr-bench { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px; }
.sr-pick { display:flex;align-items:center;gap:10px;min-width:0;padding:6px;border:1px solid #f4efe62e;border-radius:8px;background:none;color:#f4efe6;font:inherit;text-align:left;cursor:pointer; }
.sr-pick:hover { border-color:rgba(244,239,230,.6); }
.sr-pick img { flex:none;width:52px;height:52px;border-radius:6px;background:#fff;object-fit:contain; }
.sr-pick > span { display:flex;flex-direction:column;gap:1px;min-width:0;font-size:13px;line-height:1.25; }
.sr-pick b { font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#e8b168; }
.sr-pick b,.sr-pick span span { white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.sr-pick i { font-style:normal;font-weight:800;font-variant-numeric:tabular-nums; }
@media (max-width:520px) {
  .sr-rules { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sr-bench { grid-template-columns:1fr; }
  .sr-stat b { font-size:21px; }
  .sr-ico { width:36px;height:36px; }
}
