/* Sugar Rush Slot Guide — everything below the first screen. Theme "Candy Factory". */

/* The outlined headings: the stroke goes under the fill. Kept here rather than in critical.css,
   whose inline copy the HTML validator checks against a CSS level without paint-order. */
h1, h2 { paint-order: stroke fill; }

/* ------------------------------------------------ sections and long text */
.band { padding: 72px 0; }
/* Sprinkles only along the top and bottom edges, in the band's padding, never under the text. */
.band--sprinkle { background: var(--sprinkles) left top / 96px 56px repeat-x, var(--sprinkles) left bottom / 96px 56px repeat-x, #fff; }
.band--ice { background: var(--ice); }
.band--blush { background: var(--blush); }
.band--white { background: #fff; }
.band__head { max-width: 760px; margin-bottom: 30px; }
.lede { font-size: 1.12rem; font-weight: 500; }
.prose { max-width: 760px; }
.prose > h2 { margin-top: 1.6em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 8px solid var(--berry); border-radius: 18px; background: #fff0f8; font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.split > aside, .split > .side { position: sticky; top: 76px; }
.note { font-size: .9rem; color: var(--soft); }
.checked { margin-top: 2.4em; padding-top: 14px; border-top: 2px dotted var(--line); font-size: .88rem; color: var(--soft); }
.callout { margin: 1.6em 0; padding: 18px 22px; border: 3px solid var(--grape); border-radius: 22px; background: #fff; box-shadow: 0 6px 0 var(--grape); }
.callout > :last-child { margin-bottom: 0; }
.callout--warn { background: #fff8db; }
.callout--tip { background: #e8fff4; }
.callout h3 { margin-top: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 1.4em 0; }
.cols > div { padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: 0 5px 0 var(--line); }
.cols > div > :last-child { margin-bottom: 0; }

/* ------------------------------------------------ figures */
.snap { margin: 1.6em 0; }
.snap img { width: 100%; border: 7px solid var(--sky); border-radius: 22px; box-shadow: 0 8px 0 var(--sky-dark); }
.snap--wide { margin-inline: auto; }
figcaption { margin-top: 12px; font-size: .9rem; color: var(--soft); }
.phones { display: flex; flex-wrap: wrap; gap: 18px; margin: 1.6em 0; }
.phones img { width: min(240px, 45%); border: 6px solid var(--grape); border-radius: 28px; box-shadow: 0 8px 0 rgba(91, 42, 134, .25); }
.phones figcaption { flex-basis: 100%; }
.clip { width: 100%; border: 7px solid var(--sky); border-radius: 22px; box-shadow: 0 8px 0 var(--sky-dark); }

/* ------------------------------------------------ tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
caption { padding-bottom: 12px; text-align: left; font: 400 1.18rem/1.25 var(--head); color: var(--grape); }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; }
.recipe, .paytable, .tablewrap { overflow-x: auto; margin: 1.6em 0; }
/* In a table wider than the screen the caption wraps at the screen's width and stays put when the table scrolls. */
.recipe caption span, .paytable caption span, .tablewrap caption span { display: inline-block; position: sticky; left: 0; max-width: calc(100vw - 32px); }
.recipe table, .paytable table, .tablewrap table, .scatter-table, .rtp-table { border: 3px solid var(--grape); border-radius: 22px; background: #fff; }
.recipe thead th, .paytable thead th, .tablewrap thead th, .scatter-table thead th, .rtp-table thead th { background: var(--grape); color: #fff; font: 400 1rem/1.2 var(--head); letter-spacing: .02em; }
.recipe thead th a { color: #fff; }
thead th:first-child { border-top-left-radius: 18px; }
thead th:last-child { border-top-right-radius: 18px; }
tbody tr:last-child > :first-child { border-bottom-left-radius: 18px; }
tbody tr:last-child > :last-child { border-bottom-right-radius: 18px; }
tbody tr:nth-child(even) { background: #fff6fb; }
tbody th { color: var(--grape); }
td.up { color: var(--berry-dark); font-weight: 800; }
.scatter-table, .rtp-table { margin: 1.6em 0; }
.paytable table { min-width: 860px; font-size: .92rem; }
.paytable th, .paytable td { vertical-align: middle; }
.paytable tbody th { white-space: nowrap; }
.paytable img { display: inline-block; max-width: none; width: 36px; height: 36px; margin-right: 8px; vertical-align: middle; }
.paytable td { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ the four jars */
.jars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.jar { display: flex; flex-direction: column; padding: 10px 10px 16px; border: 7px solid transparent; border-radius: 30px; background: linear-gradient(#fff, #fff) padding-box, var(--cane) border-box; box-shadow: 0 10px 0 rgba(91, 42, 134, .14); }
.jar__glass { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; }
.jar__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jar__glass img:not(.jar__bg) { position: relative; width: auto; max-width: 84%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.jar > :not(.jar__glass) { margin-inline: 8px; }
.jar__date { margin: 14px 0 2px; color: var(--berry-dark); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jar h3 { margin-bottom: 6px; font-size: 1.22rem; }
.jar h3 a { color: var(--grape); text-decoration: none; }
.jar > p:not(.jar__date) { font-size: .95rem; }
.jar dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: auto 8px 0; }
.jar dl div { padding: 8px 4px; border-radius: 12px; background: #fff0f8; text-align: center; }
.jar dt { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jar dd { margin: 0; color: var(--berry-dark); font-weight: 800; font-size: .96rem; }

/* ------------------------------------------------ live grid */
.tray-box { position: relative; margin: 0; }
.tray-box::before { content: ""; position: absolute; left: 4px; right: 4px; top: -8px; z-index: 2; height: 30px; background: var(--icing) repeat-x 0 0 / 90px 30px; }
.tray { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; aspect-ratio: 1; padding: 12px; border: 8px solid var(--sky); border-radius: 28px; background: linear-gradient(#e2f5ff, #ffd9ee); box-shadow: inset 0 0 0 3px #fff, 0 10px 0 var(--sky-dark), 0 22px 34px rgba(91, 42, 134, .28); }
.tray__cell { position: relative; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .5); transition: background .35s, box-shadow .35s; }
.tray__cell img { width: 84%; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .3s, filter .3s; }
.tray__cell.is-win img { transform: scale(1.16); filter: drop-shadow(0 0 7px #fff36b); }
.tray__cell.is-pop img { transform: scale(0); opacity: 0; }
.tray__cell.is-drop img { animation: drop .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes drop { from { transform: translateY(-80%); opacity: 0; } to { transform: none; opacity: 1; } }
.tray__cell.is-marked { background: linear-gradient(#ffe98a, #f5b81c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .75), inset 0 -3px 0 rgba(180, 110, 0, .35); }
.tray__cell[data-x]::after { content: attr(data-x); position: absolute; left: 0; right: 0; bottom: 2%; text-align: center; font: 400 clamp(.72rem, 1.6vw, 1.1rem)/1 var(--head); color: #e0156f; -webkit-text-stroke: 4px #fff; paint-order: stroke fill; }
.tray-box figcaption p { min-height: 3em; margin: 14px 0 0; color: var(--grape); font-weight: 600; }

/* ------------------------------------------------ Slot Facts label */
.label { padding: 18px 20px 20px; border: 9px solid transparent; border-radius: 30px; background: linear-gradient(#fff, #fff) padding-box, var(--cane) border-box; }
.label__title { margin: 0; font-size: 2.1rem; }
.label__serving, .label__ingredients { margin: 0; font-size: .84rem; }
.label__serving { padding-bottom: 8px; border-bottom: 8px solid var(--grape); }
.label caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.label table { margin: 4px 0 10px; }
.label tr { background: none !important; }
.label th, .label td { padding: 7px 0; border-bottom: 2px dotted var(--line); }
.label td { text-align: right; font-weight: 800; }
.label tr.big th, .label tr.big td { font-size: 1.12rem; }
.label__ingredients { margin-bottom: 14px; }
.label__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.label__cta .gum { flex: 1; }

/* ------------------------------------------------ sticky game strip */
.wrapper { position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--grape); background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); }
.wrapper .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.wrapper img { height: 40px; width: auto; }
.wrapper__name { margin-right: auto; font: 400 1.1rem/1 var(--head); color: var(--grape); }

/* ------------------------------------------------ recipe changes, sweet/sour */
.diff { display: grid; gap: 8px; margin: 1.2em 0 1.8em; padding: 0; list-style: none; }
.diff li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: baseline; margin: 0 !important; padding: 11px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.diff li::before { font-weight: 900; font-size: 1.2rem; text-align: center; }
.diff .plus::before { content: "+"; color: var(--mint); }
.diff .minus::before { content: "−"; color: var(--berry-dark); }
.diff .same::before { content: "="; color: var(--grape); }
.sweet { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 1.4em 0; }
.sweet > div { padding: 20px 22px; border-radius: 22px; }
.sweet > div:first-child { background: #e6fff3; }
.sweet > div:last-child { background: #fff0f0; }
.sweet h3 { margin-top: 0; }
.sweet ul { margin: 0; padding-left: 1.1em; }

/* ------------------------------------------------ heatmap and radar */
.heat { margin: 1.6em 0; padding: 16px; border: 7px solid transparent; border-radius: 30px; background: linear-gradient(#fff, #fff) padding-box, var(--cane) border-box; }
.heat svg { width: 100%; max-width: 420px; margin: 0 auto; font: 700 11px var(--body); text-anchor: middle; }
.heat__best { font-weight: 500; font-size: 9px; }
.radar { margin: 1.4em 0; padding: 16px; border-radius: 26px; background: #fff; box-shadow: 0 6px 0 var(--line); }
.radar svg { width: 100%; max-width: 380px; margin: 0 auto; font: 600 11px var(--body); fill: var(--grape); }
.radar__ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar__spoke { stroke: var(--line); }
.radar__shape { fill: rgba(255, 61, 139, .3); stroke: var(--berry); stroke-width: 3; stroke-linejoin: round; }
.radar figcaption { display: flex; align-items: center; gap: 12px; }
.score { font: 400 2.4rem/1 var(--head); color: var(--berry); -webkit-text-stroke: 5px var(--grape); paint-order: stroke fill; }
.score small { font-size: .5em; }

/* ------------------------------------------------ Test Kitchen card, stats */
.kitchen-card { margin: 1.6em 0; padding: 18px 20px; border: 3px solid var(--grape); border-radius: 22px; background: #fff; box-shadow: 0 6px 0 var(--grape); }
.kitchen-card td { text-align: right; font-weight: 800; color: var(--berry-dark); }
.kitchen-card tr { background: none !important; }
.kitchen-card th, .kitchen-card td { border-bottom: 2px dotted var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 1.6em 0; }
.stat { margin: 0; padding: 20px; border: 3px solid var(--grape); border-radius: 22px; background: #fff; box-shadow: 0 6px 0 var(--grape); }
.stat b { display: block; margin-bottom: 6px; font: 400 2.2rem/1 var(--head); color: var(--berry); }

/* ------------------------------------------------ demo */
.demo { position: relative; margin: 1.6em 0; overflow: hidden; border: 7px solid var(--sky); border-radius: 22px; background: #000; box-shadow: 0 8px 0 var(--sky-dark); aspect-ratio: 1280 / 868; }
.demo__poster { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.demo__over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; color: #fff; }
.demo__over p { max-width: 420px; margin: 0; font-size: .9rem; text-shadow: 0 1px 3px #000; }
.demo__over a { color: #ffd1e8; }
.demo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ------------------------------------------------ replay player */
.replay { margin: 1.6em 0; }
.replay__stage { display: none; }
.has-replay .replay__stage { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.replay__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; aspect-ratio: 1; padding: 10px; border: 7px solid var(--sky); border-radius: 24px; background: linear-gradient(#e2f5ff, #ffd9ee); box-shadow: 0 8px 0 var(--sky-dark); }
.replay__grid div { position: relative; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .5); }
.replay__grid div.m { background: linear-gradient(#ffe98a, #f5b81c); }
.replay__grid div.w { box-shadow: inset 0 0 0 3px var(--berry); }
.replay__grid img { width: 86%; }
.replay__grid span { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font: 400 .8rem/1 var(--head); color: #e0156f; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
.replay__panel { display: grid; gap: 10px; padding: 16px; border: 3px solid var(--grape); border-radius: 22px; background: #fff; }
.replay__panel dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.replay__panel dt { color: var(--soft); font-size: .86rem; }
.replay__panel dd { margin: 0; text-align: right; font-weight: 800; color: var(--grape); }
.replay__panel p { min-height: 3.2em; margin: 0; font-size: .92rem; }
.replay__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.replay__buttons .gum { flex: 1; padding-inline: 10px; }
.replay__bar { height: 10px; border-radius: 5px; background: var(--blush); overflow: hidden; }
.replay__bar i { display: block; height: 100%; width: 0; background: var(--berry); transition: width .2s; }
.replay__table { margin-top: 18px; font-size: .92rem; }
.has-replay .replay__table { display: none; }
.replay__toggle { margin-top: 10px; }

/* ------------------------------------------------ questions */
.qa { margin: 2em 0; }
.qa details { margin-bottom: 10px; border: 3px solid var(--grape); border-radius: 18px; background: #fff; }
.qa summary { padding: 14px 46px 14px 18px; font-weight: 700; color: var(--grape); cursor: pointer; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--head); color: var(--berry); }
.qa details[open] summary::after { content: "−"; }
.qa details > div { padding: 0 18px 16px; }
.qa details > div > :last-child { margin-bottom: 0; }
.qa__more { font-weight: 600; }
.qa-filter { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.qa-filter input { flex: 1; max-width: 420px; }

/* ------------------------------------------------ learn book */
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 1.6em 0; padding: 0; list-style: none; }
.chapters a { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 18px; border: 3px solid #fff; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 #9ad8f7; color: var(--ink); text-decoration: none; }
.chapters a:hover { transform: translateY(-2px); }
.chapters strong { display: block; font: 400 1.2rem/1.2 var(--head); color: var(--grape); }
.chapters a > span:last-child > span { font-size: .93rem; }
.chapter__no { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--grape); border-radius: 50%; background: var(--lemon); font: 400 1.3rem/1 var(--head); color: var(--grape); }
.chapters li.is-read .chapter__no { background: var(--mint); color: #fff; }
.chapters li.is-read .chapter__no::after { content: "✓"; position: absolute; }
.book-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }
.book { position: sticky; top: 20px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 5px 0 var(--line); font-size: .92rem; }
.book__title { margin: 0 0 8px; font: 400 1.15rem/1.2 var(--head); }
.book__title a { color: var(--grape); text-decoration: none; }
.book ol { margin: 0; padding: 0; list-style: none; }
.book li a { display: block; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.book li a:hover { background: var(--blush); }
.book li[aria-current] a { background: var(--grape); color: #fff; font-weight: 700; }
.book li.is-read a::after { content: " ✓"; color: var(--mint); font-weight: 800; }
.book li[aria-current].is-read a::after { color: var(--lemon); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2.4em 0 0; }
.pager a { display: block; padding: 16px 20px; border: 3px solid var(--grape); border-radius: 20px; background: #fff; box-shadow: 0 5px 0 var(--grape); color: var(--grape); font: 400 1.1rem/1.25 var(--head); text-decoration: none; }
.pager span { display: block; font: 700 .72rem/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.pager__next { grid-column: 2; text-align: right; }

/* ------------------------------------------------ glossary */
.glossary { display: grid; gap: 10px; margin: 1.6em 0; }
.glossary div { padding: 14px 18px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--line); }
.glossary dt { font: 400 1.2rem/1.2 var(--head); color: var(--grape); }
.glossary dd { margin: 4px 0 0; }

/* ------------------------------------------------ tools */
.tool { margin: 1.6em 0; padding: 22px; border: 7px solid transparent; border-radius: 30px; background: linear-gradient(#fff, #fff) padding-box, var(--cane) border-box; }
.tool__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; color: var(--grape); font-size: .92rem; }
.field fieldset { margin: 0; padding: 0; border: 0; }
input[type=number], input[type=search], select { width: 100%; padding: 10px 12px; border: 3px solid var(--grape); border-radius: 14px; background: #fff; font: 600 1rem var(--body); color: var(--ink); }
input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid var(--lemon); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 7px 14px; border: 2px solid var(--grape); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem; color: var(--grape); }
.seg input:checked + span { background: var(--grape); color: #fff; }
.seg input:focus-visible + span { outline: 4px solid var(--lemon); }
.result { margin-top: 18px; padding: 16px 20px; border-radius: 20px; background: var(--blush); }
.result output { font: 400 2rem/1.1 var(--head); color: var(--berry-dark); }
.result p:last-child { margin-bottom: 0; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 18px; }
.result-grid > div { padding: 14px 16px; border-radius: 18px; background: var(--blush); }
.result-grid output { display: block; font: 400 1.6rem/1.1 var(--head); color: var(--berry-dark); }
.result-grid span { font-size: .86rem; }
.sim { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.sim .tray { cursor: pointer; }
.sim .tray__cell { border: 0; font: inherit; padding: 0; }
.sim .tray__cell:hover { box-shadow: inset 0 0 0 3px var(--berry); }
.toolcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 1.6em 0; padding: 0; list-style: none; }
.toolcards a { display: grid; gap: 8px; height: 100%; padding: 20px; border: 3px solid var(--grape); border-radius: 24px; background: #fff; box-shadow: 0 6px 0 var(--grape); color: var(--ink); text-decoration: none; }
.toolcards a:hover { transform: translateY(-2px); }
.toolcards strong { font: 400 1.3rem/1.2 var(--head); color: var(--grape); }
.toolcards img { width: 52px; height: 52px; }

/* ------------------------------------------------ home paths */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.paths a { display: flex; gap: 16px; align-items: center; height: 100%; padding: 18px 20px; border: 3px solid #fff; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 #9ad8f7; color: var(--ink); text-decoration: none; transition: transform .15s; }
.paths a:hover { transform: translateY(-3px); color: var(--ink); }
.paths img { width: 52px; height: 52px; flex: none; }
.paths strong { display: block; font: 400 1.18rem/1.2 var(--head); color: var(--grape); }
.paths a span span { font-size: .93rem; }
.seasonal { display: none; }
.is-xmas .seasonal { display: block; }
.seasonal .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 0; }
.seasonal { background: linear-gradient(90deg, #d7f0ff, #fff); border-bottom: 3px solid var(--sky-dark); }
.seasonal img { height: 64px; width: auto; }
.seasonal p { margin: 0; flex: 1; min-width: 220px; font-weight: 600; }

/* ------------------------------------------------ cheat sheet */
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sheet-grid > div { padding: 14px; border: 3px solid var(--grape); border-radius: 18px; background: #fff; font-size: .9rem; }
.sheet-grid h3 { font-size: 1.1rem; }
.sheet-grid dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
.sheet-grid dt { color: var(--soft); }
.sheet-grid dd { margin: 0; text-align: right; font-weight: 800; }

/* ------------------------------------------------ footer */
.ingredients { position: relative; margin-top: 60px; padding: 52px 0 110px; border-top: 12px solid transparent; border-image: var(--cane) 12; background: var(--grape); color: #fff; font-size: .92rem; }
.ingredients a { color: #ffd1e8; }
.ingredients h2 { margin-bottom: 10px; font-size: 1.15rem; color: var(--lemon); -webkit-text-stroke: 0; text-shadow: none; }
.ingredients ul { margin: 0; padding: 0; list-style: none; }
.ingredients li { margin: 0 0 6px; }
.ingredients__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-bottom: 30px; }
.ingredients p { max-width: 860px; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 6px; border: 2px solid #fff; border-radius: 50%; font-size: .78rem; }
.ingredients__copy { opacity: .75; }

/* ------------------------------------------------ phone menu, notice */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 66px; height: 66px; padding: 0; border: 3px solid var(--grape); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffc2df, #ff3d8b 70%); box-shadow: 0 5px 0 var(--grape); cursor: pointer; }
.fab img { width: 46px; height: 46px; }
.sheet { position: fixed; left: 16px; right: 16px; bottom: 94px; z-index: 39; max-height: calc(100vh - 130px); overflow: auto; padding: 8px; border: 3px solid var(--grape); border-radius: 24px; background: #fff; box-shadow: 0 8px 0 var(--grape); }
.sheet ul { margin: 0; padding: 0; list-style: none; }
.sheet li + li a { border-top: 2px dotted var(--line); }
.sheet a { display: block; padding: 12px 14px; color: var(--grape); font: 400 1.15rem/1.2 var(--head); text-decoration: none; }
@media (min-width: 961px) { .fab, .sheet { display: none !important; } }
.notice { position: relative; z-index: 31; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px; background: var(--grape); color: #fff; font-size: .88rem; }
.notice p { margin: 0; }
.notice a { color: #ffd1e8; }

/* ------------------------------------------------ responsive */
@media (max-width: 960px) {
  .split, .book-layout, .sim, .has-replay .replay__stage { grid-template-columns: 1fr; }
  .split > aside, .split > .side, .book { position: static; }
  .jars, .sheet-grid { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: repeat(2, 1fr); }
  .ingredients__cols { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .band { padding: 52px 0; }
  .jars, .paths, .sweet, .sheet-grid, .pager { grid-template-columns: 1fr; }
  .pager__next { grid-column: 1; }
  .ingredients__cols { grid-template-columns: 1fr; }
  .tray { gap: 3px; padding: 8px; border-width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .topper, .crumbs, .ingredients, .fab, .sheet, .wrapper, .notice, .cta-row, .no-print, .treat, .jar__buy { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  h1, h2 { -webkit-text-stroke: 0; text-shadow: none; color: var(--grape); }
  .band { padding: 12px 0; }
  .sheet-grid { grid-template-columns: repeat(2, 1fr); }
  a { color: inherit; text-decoration: none; }
}

/* ------------------------------------------------ frame-by-frame list */
.frames { counter-reset: frame; margin: 1.4em 0; padding: 0; list-style: none; }
.frames > li { position: relative; margin: 0 0 1.2em; padding-left: 58px; }
.frames > li::before { counter-increment: frame; content: counter(frame); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid var(--grape); border-radius: 50%; background: var(--lemon); font: 400 1.25rem/1 var(--head); color: var(--grape); }
.frames .snap { margin: .8em 0 0; }
@media (max-width: 600px) { .frames > li { padding-left: 0; padding-top: 50px; } }

/* ------------------------------------------------ inner page heads */
.band--page { padding-top: 40px; }
.page-head { max-width: 820px; margin-bottom: 28px; }
.page-head .lede { margin-bottom: 0; }
.book-body { max-width: none; }
.book-body > * { max-width: 760px; }
.book-body > .tool, .book-body > .sim, .book-body > .heat, .book-body > .pager, .book-body > .recipe, .book-body > .paytable { max-width: none; }

/* ------------------------------------------------ hand-drawn diagrams */
.diagram { margin: 1.6em 0; padding: 18px; border-radius: 24px; background: #fff; box-shadow: 0 6px 0 var(--line); }
.diagram svg { width: 100%; max-width: 560px; margin: 0 auto; font: 600 14px var(--body); }
.d-board { fill: var(--ice); stroke: var(--sky); stroke-width: 4; }
.d-cells rect { fill: #fff; }
.d-win rect { fill: var(--berry); stroke: var(--grape); stroke-width: 3; }
.d-miss rect { fill: var(--pink); stroke: var(--berry-dark); stroke-width: 2; stroke-dasharray: 5 4; }
.d-spot rect { fill: #ffd84d; stroke: #c98a00; stroke-width: 2; }
.d-label { fill: var(--grape); }
.d-x { fill: #e0156f; font: 400 16px var(--head); }
.scatter-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 1.4em 0; }
.scatter-row img { width: 96px; height: 96px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 5px 0 var(--line); }
.scatter-row figcaption { flex-basis: 100%; }
.field__label { font-weight: 700; color: var(--grape); font-size: .92rem; }
.sim__panel { display: grid; gap: 16px; align-content: start; }
.sim__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-out { margin-top: 6px; }
.calc-out output { font: 400 1.9rem/1.1 var(--head); color: var(--berry-dark); }
.sim .tray { max-width: 560px; }
.sim .tray__cell.is-marked:not([data-x]) { background: linear-gradient(#fff6c9, #ffe58a); }
.dots { margin: 1.6em 0; padding: 18px; border-radius: 26px; background: #fff; box-shadow: 0 6px 0 var(--line); }
.dots svg { width: 100%; font: 600 12px var(--body); fill: var(--grape); }
.dots__grid { stroke: var(--line); }
.dots__price { stroke: var(--berry); stroke-width: 2; stroke-dasharray: 6 5; }
.dots__dot { fill: var(--berry); stroke: var(--grape); stroke-width: 1.5; }
.dots__dot--super { fill: var(--lemon); }
.heat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
@media (max-width: 760px) { .heat-grid { grid-template-columns: 1fr; } }
.jars--2 { grid-template-columns: repeat(2, minmax(0, 380px)); }
@media (max-width: 600px) { .jars--2 { grid-template-columns: 1fr; } }
.aside-title { font-size: 1.6rem; }
aside .chapters { grid-template-columns: 1fr; gap: 10px; }
aside .chapters a { padding: 12px; }
aside .chapters a > span:last-child > span { display: none; }
.h3 { font-size: 1.32rem; color: var(--grape); -webkit-text-stroke: 0; text-shadow: none; }
@media (min-width: 961px) { .split--even { grid-template-columns: 1fr 1fr; } }
.split--even > aside, .split--even > div { position: static; }
.partner-games { display: grid; gap: 8px; padding-left: 0 !important; list-style: none; }
.partner-games a { font-weight: 700; }
.callout__title { font-size: 1.5rem; }
.jar__name { margin-bottom: 6px; font-size: 1.22rem; color: var(--grape); -webkit-text-stroke: 0; text-shadow: none; }
.jar__name a { color: var(--grape); text-decoration: none; }
.dots svg { max-width: 860px; margin: 0 auto; }
.split > *, .hero__grid > *, .book-layout > *, .sim > *, .demo-grid > *, .sweet > *, .jars > * { min-width: 0; }
@media (max-width: 600px) {
  .wrapper__name { display: none; }
  .wrapper .wrap { gap: 8px; }
  .wrapper img { height: 30px; margin-right: auto; }
  .wrapper .gum--small { padding: 6px 12px; font-size: .86rem; white-space: nowrap; }
}

/* ------------------------------------------------ real-money buttons: cards, phone menu, strips */
.jar__buy { margin: 12px 8px 0; }
.jar__buy .gum { width: 100%; }
.sheet__cta { margin: 4px 4px 10px; }
.sheet__cta .gum { display: flex; width: 100%; padding: 12px 18px; font-size: 1.15rem; }
/* A wrapped sweet between sections: twisted wrapper ends, one line, the gold button. */
.treat { position: relative; display: flex; align-items: center; gap: 18px; margin: 44px 32px; padding: 16px 24px; border: 3px solid var(--grape); border-radius: 22px; background: linear-gradient(120deg, #fff 0%, #fff4fa 55%, #ffe2ef 100%); box-shadow: 0 6px 0 var(--grape); }
.treat::before, .treat::after { content: ""; position: absolute; top: 50%; width: 32px; height: 60px; margin-top: -30px; background: repeating-linear-gradient(90deg, var(--berry) 0 6px, #ff9cc8 6px 12px); }
.treat::before { right: 100%; clip-path: polygon(100% 30%, 0 0, 14% 50%, 0 100%, 100% 70%); }
.treat::after { left: 100%; clip-path: polygon(0 30%, 100% 0, 86% 50%, 100% 100%, 0 70%); }
.treat > img { flex: none; width: 64px; height: 64px; }
.treat__text { flex: 1; margin: 0; }
.treat__text strong { display: block; margin-bottom: 2px; color: var(--grape); font: 400 1.25rem/1.2 var(--head); }
.treat__text span { color: var(--soft); font-size: .88rem; }
.treat__go { display: grid; justify-items: center; gap: 8px; margin: 0; }
.treat__demo { font-size: .88rem; }
@media (max-width: 700px) {
  .treat { flex-wrap: wrap; gap: 12px; margin: 36px 18px; padding: 14px 16px; }
  .treat::before, .treat::after { width: 18px; height: 44px; margin-top: -22px; }
  .treat > img { width: 48px; height: 48px; }
  .treat__go, .treat__go .gum { width: 100%; }
}
