/*
 * The store inside the stream. When the page is framed in the watch page's
 * side panel it is drawn the way the App Store draws a list: a wallet row,
 * a row of section pills, one featured card, then products as rows with the
 * art on the left, the name and note in the middle and a GET pill on the right.
 */
html.is-embed { --face: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif; }
html.is-embed body { font-family: var(--face) !important; background: #0b0b0f !important; color: #fff; padding: 0 12px 24px !important; }
html.is-embed .ar-body, html.is-embed main, html.is-embed .page-shell { padding: 0 !important; margin: 0 !important; max-width: none !important; }
html.is-embed ::-webkit-scrollbar { width: 0; height: 0; }

/* heading: only the wallet row survives, as an account row */
html.is-embed .shop-heading { display: block !important; padding: 8px 0 4px !important; margin: 0 !important; }
html.is-embed .shop-heading > div { display: none !important; }
html.is-embed .shop-wallet { display: flex !important; align-items: center; gap: 12px; padding: 12px 14px !important; margin: 0 !important; border-radius: 16px !important; background: rgba(255,255,255,0.07) !important; border: 0 !important; text-decoration: none; color: #fff; }
html.is-embed .shop-wallet-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,214,10,0.14); flex: none; }
html.is-embed .shop-wallet b { display: block; font: 600 15px var(--face); letter-spacing: -0.01em; }
html.is-embed .shop-wallet small { display: block; font: 500 12px var(--face); color: rgba(255,255,255,0.55); margin-top: 1px; }

/* section pills */
html.is-embed .shop-nav { position: sticky; top: 0; z-index: 3; display: flex !important; gap: 6px; overflow-x: auto; padding: 10px 0 10px !important; margin: 0 -12px !important; padding-left: 12px !important; padding-right: 12px !important; background: linear-gradient(#0b0b0f 70%, rgba(11,11,15,0)); border: 0 !important; }
html.is-embed .shop-nav a { flex: none; font: 600 13px var(--face) !important; letter-spacing: -0.005em; padding: 7px 13px !important; border-radius: 999px !important; background: rgba(255,255,255,0.10) !important; color: #fff !important; text-decoration: none !important; border: 0 !important; }
html.is-embed .shop-nav a.is-on, html.is-embed .shop-nav a[aria-current] { background: #fff !important; color: #0b0b0f !important; }

html.is-embed .shop-availability { font: 500 12px var(--face); color: rgba(255,255,255,0.6); padding: 6px 2px; margin: 0; }
html.is-embed .shop-explainer, html.is-embed .shop-unit, html.is-embed .ar-alt, html.is-embed .ar-buy span[aria-hidden], html.is-embed .ar-sec-note { display: none !important; }

/* one featured card */
html.is-embed .shop-featured-grid { display: grid !important; gap: 10px; grid-template-columns: 1fr !important; margin: 4px 0 8px; }
html.is-embed .shop-offer { display: grid !important; grid-template-columns: 1fr 96px; gap: 10px; align-items: center; padding: 14px 14px 14px 16px !important; border-radius: 20px !important; background: linear-gradient(135deg, #1d1630, #101018) !important; border: 1px solid rgba(255,255,255,0.08) !important; min-height: 0 !important; }
html.is-embed .shop-offer.is-bundle { background: linear-gradient(135deg, #0f1e2e, #101018) !important; }
html.is-embed .shop-offer-copy { min-width: 0; }
html.is-embed .shop-offer .shop-badge { font: 700 10px var(--face) !important; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55) !important; background: transparent !important; padding: 0 !important; }
html.is-embed .shop-offer h2 { font: 700 20px var(--face) !important; letter-spacing: -0.02em; margin: 3px 0 2px !important; line-height: 1.1; }
html.is-embed .shop-offer p { font: 500 13px var(--face) !important; color: rgba(255,255,255,0.7) !important; margin: 0 0 4px !important; }
html.is-embed .shop-offer ul, html.is-embed .shop-offer-detail, html.is-embed .shop-link { display: none !important; }
html.is-embed .shop-offer-price { display: none !important; }
html.is-embed .shop-offer-actions { margin-top: 8px; display: flex; }
html.is-embed .shop-offer-art { width: 96px; height: 96px; display: grid; place-items: center; overflow: hidden; }
html.is-embed .shop-offer-art img { width: 96px !important; height: 96px !important; object-fit: contain; }

/* sections and rows */
html.is-embed .ar-sec { padding: 6px 0 4px !important; margin: 0 !important; border: 0 !important; background: transparent !important; }
html.is-embed .ar-sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 2px 8px !important; margin: 0 !important; }
html.is-embed .ar-sec-title { font: 700 20px var(--face) !important; letter-spacing: -0.02em; margin: 0 !important; color: #fff !important; }
html.is-embed .ar-grid { display: flex !important; flex-direction: column; gap: 0 !important; grid-template-columns: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; background: rgba(255,255,255,0.05); border-radius: 18px; }
html.is-embed .ar-tile.shop-product {
  display: grid !important; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  height: auto !important; min-height: 0 !important; padding: 10px 12px 10px 10px !important; margin: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important;
  position: relative;
}
html.is-embed .ar-tile.shop-product + .ar-tile.shop-product::before { content: ''; position: absolute; left: 86px; right: 0; top: 0; height: 1px; background: rgba(255,255,255,0.08); }
html.is-embed .shop-product-top { position: absolute; left: 86px; top: 8px; z-index: 1; }
html.is-embed .shop-product-top .shop-badge { font: 700 9px var(--face) !important; letter-spacing: 0.10em; text-transform: uppercase; color: #ffd60a !important; background: transparent !important; padding: 0 !important; border: 0 !important; }
html.is-embed .shop-art-select { width: 64px !important; height: 64px !important; padding: 0 !important; margin: 0 !important; border-radius: 14px !important; background: rgba(255,255,255,0.08) !important; border: 0 !important; overflow: hidden; display: grid; place-items: center; flex: none; }
html.is-embed .shop-art-stage { width: 64px !important; height: 64px !important; display: grid; place-items: center; }
html.is-embed .shop-art-stage img, html.is-embed .shop-product-image { width: 56px !important; height: 56px !important; object-fit: contain; }
html.is-embed .shop-product-symbol { font-size: 28px; }
html.is-embed .ar-foot { display: block !important; min-width: 0; padding: 12px 0 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; }
html.is-embed .ar-line { display: block !important; }
html.is-embed .ar-name { font: 600 15px var(--face) !important; letter-spacing: -0.01em; margin: 0 !important; color: #fff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.is-embed .ar-price { display: block; font: 500 12px var(--face) !important; color: rgba(255,255,255,0.55) !important; margin-top: 1px; }
html.is-embed .ar-price .ar-was { margin-right: 6px; opacity: 0.6; }
html.is-embed .ar-worth { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font: 500 12px var(--face) !important; color: rgba(255,255,255,0.45) !important; margin: 1px 0 0 !important; }
html.is-embed .ar-acts { grid-column: 3; display: flex !important; align-items: center; margin: 0 !important; padding: 0 !important; }

/* the GET pill */
html.is-embed .ar-buy, html.is-embed .shop-offer-actions .ar-buy {
  display: inline-flex !important; align-items: center; justify-content: center; min-width: 64px; height: 30px; padding: 0 14px !important;
  border-radius: 999px !important; border: 0 !important; background: rgba(255,255,255,0.12) !important; color: #0a84ff !important;
  font: 700 13px var(--face) !important; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none !important; cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.9,.3,1.3), background 160ms; white-space: nowrap;
}
html.is-embed .ar-buy:active { transform: scale(0.94); }
html.is-embed .ar-buy:disabled { color: rgba(255,255,255,0.35) !important; }
html.is-embed .shop-offer-actions .ar-buy { background: #fff !important; color: #0b0b0f !important; }
html.is-embed .ar-sec[data-sec="season-pass"] .ar-buy { background: rgba(255,255,255,0.12) !important; color: #ffd60a !important; }

/* artifacts gallery stacks */
html.is-embed .shop-artifact-gallery, html.is-embed .shop-artifacts { display: block !important; }
html.is-embed .shop-artifact-choices { display: flex !important; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
html.is-embed .shop-artifact-choice { flex: none; }
html.is-embed .shop-artifact-stats { display: flex; gap: 14px; }

/* the selection bar sticks to the bottom of the panel */
html.is-embed .ar-bottom { position: sticky; bottom: 0; display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px !important; margin: 12px -12px 0 !important; background: rgba(11,11,15,0.92) !important; backdrop-filter: blur(20px); border-top: 1px solid rgba(255,255,255,0.08) !important; }
html.is-embed .ar-fine { display: none !important; }
html.is-embed .ar-confirm { flex: 1; height: 44px; border-radius: 14px !important; background: #fff !important; color: #0b0b0f !important; font: 700 15px var(--face) !important; border: 0 !important; }
html.is-embed .ar-confirm:disabled { background: rgba(255,255,255,0.14) !important; color: rgba(255,255,255,0.45) !important; }
html.is-embed .ar-after { width: 100%; font: 500 12px var(--face); color: rgba(255,255,255,0.55); text-align: center; }
html.is-embed .ar-mine { padding: 8px 0; }

/* row internals: name and note on the left, the pill on the right, no badge over the name */
html.is-embed .ar-tile.shop-product { grid-template-columns: 64px 1fr; }
html.is-embed .ar-tile.shop-product .shop-product-top { display: none !important; }
html.is-embed .ar-foot { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 0 !important; }
html.is-embed .ar-line { grid-column: 1; grid-row: 1; }
html.is-embed .ar-worth { grid-column: 1; grid-row: 2; }
html.is-embed .ar-acts { grid-column: 2; grid-row: 1 / 3; }
html.is-embed .ar-buy { max-width: 120px; white-space: normal; text-align: center; line-height: 1.1; height: auto; min-height: 30px; padding: 6px 12px !important; }
html.is-embed .ar-price { display: inline; margin-left: 6px; }

/* artifacts: a short showcase, the whole thing visible without scrolling */
html.is-embed .shop-artifact-gallery { display: block !important; }
html.is-embed .shop-artifact-showcase { display: grid !important; grid-template-columns: 96px minmax(0, 1fr) !important; gap: 12px; align-items: center; min-height: 0 !important; padding: 12px !important; border-radius: 18px !important; background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.08) !important; }
html.is-embed .shop-artifact-art { width: 96px; height: 96px; min-height: 0 !important; padding: 0 !important; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: rgba(255,255,255,0.06); }
html.is-embed .shop-artifact-art .shop-art-stage { width: 96px !important; height: 96px !important; }
html.is-embed .shop-artifact-art img { width: 84px !important; height: 84px !important; object-fit: contain; }
html.is-embed .shop-artifact-index, html.is-embed .artifact-motion-toggle, html.is-embed .shop-artifact-labels, html.is-embed .shop-artifact-description, html.is-embed .shop-artifact-extra, html.is-embed .shop-artifact-note, html.is-embed .shop-artifact-stats { display: none !important; }
html.is-embed .shop-artifact-copy { min-width: 0; padding: 0 !important; }
html.is-embed .shop-artifact-copy h3 { font: 700 17px var(--face) !important; letter-spacing: -0.015em; margin: 0 0 2px !important; }
html.is-embed .shop-artifact-tagline { font: 500 12px var(--face) !important; color: rgba(255,255,255,0.6) !important; margin: 0 0 8px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.is-embed .shop-artifact-action { margin: 0 !important; }
html.is-embed .shop-artifact-picker { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; overflow: visible !important; }
html.is-embed .shop-artifact-choice { display: grid !important; justify-items: center; gap: 4px; padding: 8px 4px !important; border-radius: 14px !important; background: rgba(255,255,255,0.06) !important; border: 1px solid transparent !important; min-width: 0; }
html.is-embed .shop-artifact-choice[aria-pressed="true"] { border-color: rgba(255,255,255,0.5) !important; background: rgba(255,255,255,0.10) !important; }
html.is-embed .shop-artifact-thumbnail { width: 44px !important; height: 44px !important; display: grid; place-items: center; }
html.is-embed .shop-artifact-thumbnail img { width: 40px !important; height: 40px !important; object-fit: contain; }
html.is-embed .shop-artifact-choice-copy { text-align: center; min-width: 0; width: 100%; }
html.is-embed .shop-artifact-choice-copy strong { display: block; font: 600 11px var(--face) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.is-embed .shop-artifact-choice-copy small { display: block; font: 500 10px var(--face) !important; color: rgba(255,255,255,0.5) !important; }

/* The Play along palette. The store opens as a panel over the watch page, next
   to the room's own panel, and the two are the same card: the frame behind
   this page paints the surface, so the body is clear and every card in here is
   the panel's ghost with the panel's line round it. */
html.is-embed { --face: var(--ui-font, 'Plus Jakarta Sans', system-ui, sans-serif); }
/* The panel's own measures: 16px of side, 12px corners, 600 weights at the
   panel's sizes. The store used the App Store's — 20px headings at 700,
   18px corners, 12px of side — and read as another app in a window. */
html.is-embed body { padding: 0 16px 20px !important; }
html.is-embed .shop-nav { margin: 0 -16px !important; padding-left: 16px !important; padding-right: 16px !important; flex-wrap: wrap !important; overflow: visible !important; gap: 6px; }
html.is-embed .shop-nav a { padding: 6px 11px !important; font-size: 12px !important; transition: background 140ms, transform 160ms cubic-bezier(.2,.8,.2,1); }
html.is-embed .shop-nav a:hover { transform: scale(1.04); background: rgba(255, 255, 255, 0.12) !important; }
@media (prefers-reduced-motion: reduce) { html.is-embed .shop-nav a:hover { transform: none; } }
/* Featured is the top of the page you are already looking at; dropping its
   jump link is what lets the other three sit on one line. */
html.is-embed .shop-nav a[href="#store-featured"] { display: none !important; }
html.is-embed .shop-wallet-icon { width: 30px; height: 30px; }
html.is-embed .shop-offer { grid-template-columns: 1fr 76px; }
html.is-embed .shop-offer-art, html.is-embed .shop-offer-art img { width: 76px !important; height: 76px !important; }
html.is-embed .ar-sec-head { padding: 14px 2px 8px !important; }
html.is-embed .ar-sec-title, html.is-embed .shop-offer h2 { font-size: 17px !important; font-weight: 600 !important; letter-spacing: -0.01em !important; }
html.is-embed .shop-offer p, html.is-embed .shop-availability, html.is-embed .ar-worth { font-size: 12px !important; }
html.is-embed .ar-name { font-weight: 600 !important; font-size: 14px !important; }
html.is-embed .shop-wallet b { font-size: 14px !important; font-weight: 600 !important; }
html.is-embed .shop-wallet small { font-size: 12px !important; }
html.is-embed .shop-wallet, html.is-embed .ar-grid, html.is-embed .shop-offer, html.is-embed .shop-offer.is-bundle,
html.is-embed .shop-artifact-showcase, html.is-embed .shop-artifact-choice { border-radius: 12px !important; }
html.is-embed .shop-offer { padding: 14px !important; }
html.is-embed .shop-art-select, html.is-embed .shop-artifact-art { border-radius: 10px !important; }
html.is-embed .ar-buy, html.is-embed .shop-offer-actions .ar-buy, html.is-embed .ar-confirm { min-height: 34px; font-size: 13px !important; }
/* A featured card's button says its whole sentence on one line — Purchases
   unavailable is 129px and the cap above is 120 — so it sizes to its text.
   The product rows keep the cap and wrap instead: their column is narrow and
   the name beside it needs the width more. */
html.is-embed .shop-offer-actions .ar-buy { max-width: none !important; width: auto !important; }
html.is-embed body { background: transparent !important; }
html.is-embed .shop-wallet, html.is-embed .ar-grid, html.is-embed .shop-artifact-showcase, html.is-embed .shop-artifact-choice { background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 14px !important; }
html.is-embed .shop-offer, html.is-embed .shop-offer.is-bundle { background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 14px !important; }
html.is-embed .shop-nav { background: linear-gradient(rgba(11,12,16,0.94) 70%, rgba(11,12,16,0)) !important; }
html.is-embed .shop-nav a { background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 10px !important; color: #f5f5f7 !important; }
html.is-embed .shop-nav a.is-on, html.is-embed .shop-nav a[aria-current] { background: #fff !important; color: #0b0c10 !important; border-color: #fff !important; }
/* White for the thing you press. The panel is a dark card with one green
   accent already spoken for by the room next door; a white pill on it is the
   loudest thing in the list, which is what a price wants to be. */
html.is-embed .ar-buy, html.is-embed .shop-offer-actions .ar-buy, html.is-embed .ar-confirm { background: #f2f2f2 !important; color: #0b0c10 !important; border: 0 !important; border-radius: 10px !important; text-transform: none; letter-spacing: normal; font-weight: 600 !important; }
html.is-embed .ar-buy:disabled, html.is-embed .ar-confirm:disabled { background: rgba(255,255,255,0.06) !important; color: #a1a1ad !important; }
html.is-embed .ar-sec[data-sec="season-pass"] .ar-buy { background: #f2f2f2 !important; color: #0b0c10 !important; }
html.is-embed .ar-tile.shop-product + .ar-tile.shop-product::before { background: rgba(255,255,255,0.08); }
html.is-embed .shop-art-select, html.is-embed .shop-artifact-art, html.is-embed .shop-wallet-icon { background: rgba(255,255,255,0.06) !important; }
html.is-embed .ar-bottom { background: rgba(11,12,16,0.94) !important; border-top: 1px solid rgba(255,255,255,0.08) !important; }
html.is-embed .ar-sec-title, html.is-embed .shop-offer h2, html.is-embed .ar-name, html.is-embed .shop-wallet b { color: #f5f5f7 !important; }
html.is-embed .shop-wallet small, html.is-embed .ar-price, html.is-embed .ar-worth, html.is-embed .shop-offer p, html.is-embed .shop-offer .shop-badge, html.is-embed .shop-availability, html.is-embed .ar-after { color: #a1a1ad !important; }
html.is-embed .shop-product-top .shop-badge { color: #22c55e !important; }

/* The same answer to the pointer as the room next door: a green line going
   round the card rather than the card rising off the page and settling back.
   The lift is the store page's own; in this panel it is the odd one out. */

/* A pack says how many coins it is and what the bonus was; neither is worth
   cutting short. The name wraps instead of ellipsing and the note under it
   gets its second line, which is where "bonus included" was being lost. */
html.is-embed .ar-name { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.3; }
html.is-embed .ar-worth { -webkit-line-clamp: 2 !important; }
html.is-embed .ar-buy { max-width: 132px !important; }

/* A pack is a row in one long card, so the ring goes round the row you are
   pointing at — ::before there is already the divider above it, hence ::after.
   The button inside it keeps its own answer for when purchases are on; while
   they are off it only lightens with the row, and promises nothing. */
html.is-embed .ar-tile.shop-product { border-radius: 10px !important; transition: background 140ms; }
html.is-embed .ar-tile.shop-product:hover { background: rgba(255, 255, 255, 0.04) !important; }
html.is-embed .ar-tile.shop-product:hover .ar-buy:disabled { background: rgba(255, 255, 255, 0.10) !important; }
html.is-embed .ar-buy { transition: transform 160ms cubic-bezier(.2,.8,.2,1), background 140ms, filter 140ms; }
/* The green stays green under the pointer: an earlier rule washed every buy
   button white-grey on hover, which on the one green button read as it going
   out. It brightens and grows a little instead. */
html.is-embed .ar-buy:not(:disabled):hover { background: #fff !important; transform: scale(1.04); }
html.is-embed .ar-buy:disabled:hover { background: rgba(255, 255, 255, 0.06) !important; }
@media (prefers-reduced-motion: reduce) {
  html.is-embed .ar-buy { transition: background 140ms; }
  html.is-embed .ar-buy:not(:disabled):hover { transform: none; }
}
