/* /case-study/sweetplay-match-crush-game-platform-case-study — AISHTMLNEWDESIGN-498
   Page-owned styles. EVERY selector is scoped to #page-case-study-sweetplay-match-crush-game-platform-case-study or a
   cssm- prefixed class: this sheet must never style body, a bare
   element, #ais-header or #ais-footer. The document reset
   (html,body{margin:0}) is owned by the shared layout sheet.
   Font is Inter; no body/UI text below 16px. */

/* VISUAL DIRECTION — SUGAR GRID
   A match-3 board read as a design system rather than as game art: no candy
   illustration anywhere (rule 24 forbids it in the hero, and the rest of the
   page stays consistent with that). Instead, four accent "tiles" — raspberry,
   lime, lemon, blueberry — cycle across the challenge cards and the results
   band the way a match-3 board cycles its piece colours, on a neutral
   graphite/cream ground so the page still reads as B2B case-study evidence,
   not a game splash screen. Distinct from the sibling case studies: HOME
   COLUMN (diceplay) is an indigo/saffron pair, SESSION LOG (poker-game) is
   graphite/amber, MELD ORDER (rummy) is jade/gold — this is the only one
   built on four rotating accents instead of one.

   CONTRAST, measured (WCAG): every accent used as TEXT or a button fill is
   the darkened "-dp" variant, never the bright display swatch —
   raspberry-dp/white 5.01:1, lime-dp/white 5.37:1, lemon-dp/white 5.38:1,
   blueberry-dp/white 6.96:1, ink/white 16.5:1, muted/cream 6.46:1. The
   bright swatches (raspberry/lime/lemon/blueberry) are reserved for large
   stat numbers (≥3:1 large-text rule) and non-text borders/dots, where the
   plain swatch already clears its floor against graphite (4.48–9.08:1) or
   isn't carrying text at all. Motion is finite and user-initiated only
   (rule 26). */

#page-case-study-sweetplay-match-crush-game-platform-case-study {
  --cssm-ink: #1b1f27;
  --cssm-paper: #ffffff;
  --cssm-cream: #fff8ef;
  --cssm-tint: #f4eee1;
  --cssm-text: #23262f;
  --cssm-muted: #565b66;
  --cssm-line: #e6e0d3;
  --cssm-oncream: #fdf6ea;

  --cssm-raspberry: #ef4468;
  --cssm-raspberry-dp: #d02e50;
  --cssm-lime: #6fb92c;
  --cssm-lime-dp: #3f7817;
  --cssm-lemon: #f2b705;
  --cssm-lemon-dp: #8a6402;
  --cssm-blueberry: #3f6fd1;
  --cssm-blueberry-dp: #2f56a8;

  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cssm-text);
  background: var(--cssm-cream);
  display: block;
}

#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-section { padding: 74px 0; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-section--tint { background: var(--cssm-tint); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-link { color: var(--cssm-raspberry-dp); text-decoration: underline; }

#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--cssm-ink);
  max-width: 26ch;
}
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-h2::after { content: ""; display: block; width: 64px; height: 5px; margin: 14px 0 26px; background: var(--cssm-raspberry); }

/* ---------- hero ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-hero { background: var(--cssm-ink); padding: 84px 28px 76px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-hero__inner { max-width: 900px; margin: 0 auto; text-align: center; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-eyebrow { margin: 0 0 18px; font-size: 16px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cssm-lemon); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-hero__title { margin: 0 0 20px; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.07; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-hero__lede { margin: 0 auto 26px; color: var(--cssm-oncream); max-width: 78ch; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-hero__techlabel { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: #fff; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-tech { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-tech li { border: 2px solid rgba(253, 246, 234, 0.35); color: var(--cssm-oncream); padding: 9px 16px; font-weight: 600; font-size: 16px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-hero__ctarow { margin: 32px 0 0; }

/* ---------- CTA button ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn {
  display: inline-block; border: 0; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: 0.01em;
  padding: 17px 30px; border-radius: 4px; min-height: 44px;
  transition: background-color 0.18s, color 0.18s, transform 0.18s;
}
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn--primary { background: var(--cssm-raspberry-dp); color: #fff; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn--primary:hover { background: #b02243; transform: translateY(-1px); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn--ink { background: var(--cssm-ink); color: #fff; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn--ink:hover { background: #333a48; transform: translateY(-1px); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn:active { transform: translateY(0); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn:focus-visible { outline: 3px solid var(--cssm-lemon); outline-offset: 3px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-sec__ctarow { margin: 34px 0 0; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-band__ctarow { margin: 40px 0 0; }

/* ---------- breadcrumb ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-breadcrumb { background: var(--cssm-paper); border-bottom: 1px solid var(--cssm-line); display: flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 16px; color: var(--cssm-muted); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-breadcrumb__back { display: inline-flex; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-breadcrumb__leg:hover { color: var(--cssm-raspberry-dp); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-breadcrumb__now { color: var(--cssm-ink); font-weight: 600; }

/* ---------- contents ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-toc { background: var(--cssm-paper); padding: 46px 0; border-bottom: 1px solid var(--cssm-line); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-toc__title { margin: 0 0 20px; font-size: 18px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cssm-muted); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-toc__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-toc__list li { border-top: 1px solid var(--cssm-line); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-toc__list a { display: flex; align-items: baseline; gap: 14px; padding: 15px 2px; font-weight: 600; color: var(--cssm-ink); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-toc__list a:hover { color: var(--cssm-raspberry-dp); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-toc__num { font-weight: 800; color: var(--cssm-raspberry-dp); }

/* ---------- About ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-lede { margin: 0; max-width: 80ch; color: var(--cssm-muted); }

/* ---------- Challenges: the sugar-grid tiles ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal { background: var(--cssm-paper); border: 1px solid var(--cssm-line); border-top: 6px solid var(--cssm-ink); padding: 22px 26px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal:last-child { grid-column: 1 / -1; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal--raspberry { border-top-color: var(--cssm-raspberry); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal--lime { border-top-color: var(--cssm-lime); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal--lemon { border-top-color: var(--cssm-lemon); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal--blueberry { border-top-color: var(--cssm-blueberry); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal__t { margin: 0 0 6px; font-size: 1.14rem; font-weight: 800; color: var(--cssm-ink); display: flex; gap: 12px; align-items: baseline; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal__n { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; background: var(--cssm-ink); color: #fff; font-size: 16px; font-weight: 800; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal__b { margin: 0; color: var(--cssm-muted); }

/* ---------- Solution: the mapping table ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-tablewrap { overflow-x: auto; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map { width: 100%; border-collapse: collapse; background: var(--cssm-paper); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map th { background: var(--cssm-ink); color: #fff; text-align: left; font-weight: 800; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 18px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map td { border-top: 1px solid var(--cssm-line); padding: 16px 18px; vertical-align: top; color: var(--cssm-muted); font-size: 16px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map tbody tr:nth-child(odd) td { background: var(--cssm-cream); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map td:last-child { color: var(--cssm-ink); font-weight: 600; }

/* ---------- Results: the sugar-grid stat tiles ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-band { background: var(--cssm-paper); padding: 74px 0; border-top: 1px solid var(--cssm-line); border-bottom: 1px solid var(--cssm-line); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat { border-top: 6px solid var(--cssm-ink); background: var(--cssm-cream); padding: 24px 20px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat__n { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 10px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat__b { display: block; color: var(--cssm-muted); font-size: 16px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat--raspberry { border-top-color: var(--cssm-raspberry); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat--raspberry .cssm-stat__n { color: var(--cssm-raspberry-dp); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat--lime { border-top-color: var(--cssm-lime); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat--lime .cssm-stat__n { color: var(--cssm-lime-dp); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat--lemon { border-top-color: var(--cssm-lemon); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat--lemon .cssm-stat__n { color: var(--cssm-lemon-dp); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat--blueberry { border-top-color: var(--cssm-blueberry); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stat--blueberry .cssm-stat__n { color: var(--cssm-blueberry-dp); }

/* ---------- Why ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-whys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-why { background: var(--cssm-paper); border: 1px solid var(--cssm-line); border-top: 5px solid var(--cssm-raspberry); padding: 22px 26px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-why__t { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: var(--cssm-ink); display: flex; gap: 12px; align-items: baseline; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-why__n { color: var(--cssm-raspberry-dp); font-weight: 800; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-why__b { margin: 0; color: var(--cssm-muted); }

/* ---------- Client quote ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-quote { margin: 0; background: var(--cssm-paper); border-left: 6px solid var(--cssm-lemon); padding: 28px 32px; max-width: 80ch; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-quote blockquote { margin: 0; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-quote p { margin: 0; font-size: 1.22rem; line-height: 1.55; font-weight: 600; color: var(--cssm-ink); }

/* ---------- Area We Serve ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-region { background: var(--cssm-paper); border: 1px solid var(--cssm-line); border-top: 5px solid var(--cssm-blueberry); padding: 22px 24px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-region__t { margin: 0 0 10px; font-size: 18px; font-weight: 800; letter-spacing: 0.08em; color: var(--cssm-ink); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-region__tel { margin: 0 0 10px; font-weight: 700; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-region__tel a { color: var(--cssm-blueberry-dp); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-region__addr { margin: 0; color: var(--cssm-muted); font-size: 16px; }

/* ---------- CTA modal ---------- */
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal { display: none; position: fixed; inset: 0; z-index: 1000; padding: 100px 20px 20px 20px; overflow-y: auto; background: rgba(27, 31, 39, 0.72); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal.is-open { display: flex; align-items: flex-start; justify-content: center; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__box { position: relative; width: 100%; max-width: 620px; margin: auto; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7); overflow: hidden; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__x { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--cssm-line); border-radius: 50%; background: #fff; color: var(--cssm-ink); cursor: pointer; transition: background-color 0.16s, color 0.16s; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__x::before,
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; background: currentColor; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__x::before { transform: translate(-50%, -50%) rotate(45deg); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__x:hover { background: var(--cssm-raspberry-dp); color: #fff; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__x:focus-visible { outline: 3px solid var(--cssm-lemon); outline-offset: 2px; }
#page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-modal__frame { display: block; width: 100%; min-height: 860px; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stats { grid-template-columns: repeat(2, 1fr); }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-regions { grid-template-columns: repeat(2, 1fr); }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chals { grid-template-columns: 1fr; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-chal:last-child { max-width: 100%; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-whys { grid-template-columns: 1fr; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-toc__list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #page-case-study-sweetplay-match-crush-game-platform-case-study { font-size: 16px; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-wrap { padding: 0 18px; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-section, #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-band { padding: 56px 0; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-hero { padding: 60px 18px 52px; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-breadcrumb { padding: 12px 18px; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-stats { grid-template-columns: 1fr; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-regions { grid-template-columns: 1fr; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn { width: 100%; text-align: center; padding: 16px 22px; }

  /* the mapping table reflows to labelled cards -- no sideways scrolling */
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-tablewrap { overflow-x: visible; }
  /* `clip` alone still lets the header row lay out at its natural width and
     push the page wider than the viewport at 375px. clip-path + zero box
     removes it from layout entirely while keeping it for screen readers. */
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map, #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map tbody, #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map tr, #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map td { display: block; box-sizing: border-box; max-width: 100%; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map tr { border: 1px solid var(--cssm-line); border-top: 5px solid var(--cssm-ink); margin-bottom: 16px; background: var(--cssm-paper); }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map td { border-top: 0; padding: 14px 18px; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map tbody tr:nth-child(odd) td { background: transparent; }
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-map td::before { content: attr(data-label); display: block; font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cssm-raspberry-dp); margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn, #page-case-study-sweetplay-match-crush-game-platform-case-study .cssm-btn:hover { transition: none; transform: none; }
}
