/* The Art Stage homepage hero. All selectors prefixed .as- / #art-stage / #printed-gifts. */
#art-stage {
  /* TurnedComics (default): comic red and blue */
  --as-caption-bg: #14233f;
  --as-caption-fg: #ffffff;
  --as-cta-bg: #e4262c;
  --as-cta-fg: #ffffff;
  --as-accent: #0b5cad;
  --as-eyebrow: #ffd23f;
  --as-focus: #0b3d91;
  --as-ink: #14202e;
  --as-muted: #54616f;
  --as-line: #d9dde2;
  background: #fff;
  color: var(--as-ink);
  font-family: Assistant, Arial, sans-serif;
}

#art-stage *, #art-stage *::before, #art-stage *::after { box-sizing: border-box; }

/* Photo-to-art hero: the art fills the stage; the source stays visibly paired. */
#art-stage .as-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: #282a2d; --as-bw: 34%;
}
#art-stage .as-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(28,30,33,.94), rgba(43,45,48,.88)), var(--as-art) center 22% / cover;
}
#art-stage .as-after, #art-stage .as-before { margin: 0; position: absolute; overflow: hidden; }
#art-stage .as-after { top: 0; right: 0; width: 73%; height: 164px; }
#art-stage .as-hero-img, #art-stage .as-before img { display: block; width: 100%; height: 100%; object-fit: cover; }
#art-stage .as-hero-img { object-position: center 14%; }
#art-stage[data-photo-shape="round"] .as-hero { --as-bw: 110px; }
#art-stage .as-before {
  top: 30px; left: 16px; width: var(--as-bw); height: 104px; z-index: 2;
  border: 3px solid #fff; border-radius: 8px; background: #fff; transform: rotate(-2deg);
  box-shadow: 0 6px 18px #0006;
}
#art-stage .as-before img { object-position: center 30%; }
#art-stage[data-photo-shape="round"] .as-before img { object-fit: contain; }
#art-stage .as-step {
  position: absolute; bottom: 5px; left: 5px; margin: 0; padding: 3px 6px;
  color: #fff; background: #22252a; border-radius: 4px;
  font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap;
}
#art-stage .as-step--after { left: auto; right: 10px; bottom: 8px; }
#art-stage .as-step span { font-weight: 600; }
#art-stage .as-arrow {
  position: absolute; z-index: 3; left: calc(18px + var(--as-bw)); top: 70px; transform: translateX(-50%);
  display: grid; place-items: center; width: 25px; height: 25px;
  color: #25272a; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px #0004;
  font: 800 16px/1 Arial, sans-serif;
}
#art-stage .as-caption { position: relative; z-index: 1; color: #fff; padding: 174px 16px 12px; }
#art-stage .as-eyebrow {
  margin: 0 0 4px; color: var(--as-eyebrow); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
#art-stage .as-caption h1 {
  margin: 0; font-size: clamp(22px, 6.7vw, 28px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; color: inherit;
  font-family: Assistant, Arial, sans-serif; text-transform: none;
}
#art-stage .as-sub { margin: 6px 0 0; color: #f2f2f3; font-size: 13px; line-height: 1.25; }
@media (max-width: 899px) {
  #art-stage .as-sub { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
#art-stage .as-cta {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; padding: 0 16px;
  background: var(--as-cta-bg); color: var(--as-cta-fg); font-weight: 700; font-size: 15px;
  border-radius: 6px; text-decoration: none; box-shadow: 0 3px 0 #0006;
}

/* Layout wrapper */
#art-stage .as-container { max-width: 1200px; margin: 0 auto; padding: 0 16px 12px; }
#art-stage .as-kicker {
  margin: 8px 0 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--as-muted);
}

/* Style selector: each button is a window onto that style's real artwork. */
#art-stage .as-worlds {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity;
  padding: 7px 7px 8px; margin: -7px -7px -8px; scrollbar-width: none; overscroll-behavior-x: contain;
}
#art-stage .as-worlds::-webkit-scrollbar { display: none; }
#art-stage .as-world { flex: 0 0 calc((100% - 30px) / 3); scroll-snap-align: start; }
#art-stage .as-worlds.as-many .as-world { flex-basis: 31%; }
#art-stage .as-worlds:focus { outline: none; }
#art-stage .as-world {
  --w-band: #e4262c; --w-ink: #fff; --w-ring: #e4262c;
  position: relative; display: flex; flex-direction: column; height: 74px; padding: 0; overflow: hidden; isolation: isolate;
  background: #1c1e21; color: var(--w-ink); border: 0; border-radius: 10px; cursor: pointer; font: inherit; text-align: left;
  box-shadow: 0 0 0 1px #0003, 0 2px 6px #14202e26;
  transition: box-shadow .15s, transform .15s;
}
#art-stage .as-world-art {
  flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; object-position: center;
  filter: saturate(.9) brightness(.9); transition: filter .15s, transform .25s;
}
#art-stage .as-world:hover .as-world-art { filter: none; }
#art-stage .as-world[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--w-ring), 0 6px 14px #14202e40; }
#art-stage .as-world[aria-checked="true"] .as-world-art { filter: none; }
#art-stage .as-world-text {
  position: relative; flex: none; display: flex; align-items: baseline; justify-content: center; gap: 8px;
  padding: 3px 6px 4px; background: var(--w-band); color: var(--w-ink); line-height: 1.15; white-space: nowrap;
}
#art-stage .as-world-label { font-weight: 800; font-size: 12.5px; letter-spacing: .01em; }
#art-stage .as-world[data-label-case="italic-upper"] .as-world-label { font-style: italic; text-transform: uppercase; letter-spacing: .03em; }
#art-stage .as-world[data-label-case="wide-upper"] .as-world-label { text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
#art-stage .as-world-sub { display: none; font-size: 12px; font-weight: 600; opacity: .85; }
#art-stage .as-world-check {
  position: absolute; top: 5px; right: 5px; display: none; place-items: center; width: 20px; height: 20px;
  background: #fff; color: #14202e; border-radius: 50%; font: 800 12px/1 Arial, sans-serif; box-shadow: 0 1px 4px #0006;
}
#art-stage .as-world[aria-checked="true"] .as-world-check { display: grid; }

/* Printed gifts */
#printed-gifts.as-gifts { background: #fff; margin-top: 8px; }
#printed-gifts .as-gifts-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 6px; }
#printed-gifts .as-gifts-head h2 { margin: 0; font-size: 22px; line-height: 1.1; font-weight: 800; color: var(--as-ink); }
#printed-gifts .as-gifts-head p { margin: 2px 0 0; font-size: 12px; color: var(--as-muted); }
#printed-gifts .as-gifts-head a { font-size: 12px; font-weight: 700; color: var(--as-accent); text-decoration: none; white-space: nowrap; }
#printed-gifts .as-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#printed-gifts .as-card {
  display: block; background: #fff; color: var(--as-ink); text-decoration: none;
  border: 1px solid var(--as-line); border-radius: 8px; overflow: hidden; min-height: 44px;
  transition: box-shadow .15s, transform .15s;
}
#printed-gifts .as-card:hover { box-shadow: 0 2px 10px rgba(20, 32, 46, .12); }
#printed-gifts .as-card-well { display: block; background: #fff; border-bottom: 1px solid var(--as-line); aspect-ratio: 7 / 4; }
#printed-gifts .as-card-well img { display: block; width: 100%; height: 100%; object-fit: cover; }
#printed-gifts .as-card-body { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 6px; padding: 5px 8px 6px; }
#printed-gifts .as-card-title { flex: 1 0 100%; font-weight: 800; font-size: 13px; line-height: 1.2; }
#printed-gifts .as-price { font-size: 11px; color: var(--as-muted); }
#printed-gifts .as-price[hidden] { display: none; }
#printed-gifts .as-personalize { font-size: 11px; font-weight: 700; color: var(--as-accent); }
#printed-gifts .as-note { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid var(--as-line); font-size: 11px; color: var(--as-muted); }

/* Focus */
#art-stage .as-cta:focus-visible, #art-stage .as-world:focus-visible, #printed-gifts .as-card:focus-visible,
#printed-gifts .as-gifts-head a:focus-visible {
  outline: 3px solid var(--as-focus); outline-offset: 2px; box-shadow: 0 0 0 5px #fff;
}

@media (max-width: 359px) {
  #art-stage .as-caption h1 { font-size: 24px; }
  #art-stage .as-world { height: 66px; }
  #art-stage .as-world-label { font-size: 11px; }
  #art-stage .as-world[data-label-case="wide-upper"] .as-world-label { font-size: 10px; letter-spacing: .04em; }
}

@media (min-width: 720px) {
  #printed-gifts .as-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  #art-stage .as-hero { height: clamp(324px, 28vw, 416px); }
  #art-stage .as-hero::before {
    background: linear-gradient(90deg, rgba(33,35,38,.96), rgba(52,54,57,.86) 100%), var(--as-art) center 18% / cover;
  }
  #art-stage .as-after { width: 50%; height: 100%; }
  #art-stage .as-hero-img { object-position: center 18%; }
  #art-stage .as-after::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(48,50,53,.64), transparent 19%);
  }
  #art-stage .as-step--after { z-index: 1; right: 22px; bottom: 18px; }
  #art-stage .as-before {
    top: 50%; left: 31%; width: 16%; max-width: 240px; height: auto; aspect-ratio: 4 / 3; transform: translateY(-50%) rotate(-3deg);
    border-width: 5px; border-radius: 10px;
  }
  #art-stage .as-step { font-size: 13px; padding: 5px 9px; }
  #art-stage .as-hero, #art-stage[data-photo-shape="round"] .as-hero { --as-bw: 16%; }
  #art-stage[data-photo-shape="round"] .as-before { aspect-ratio: 1 / 1; width: 13%; left: 33%; }
  #art-stage .as-arrow { left: 48.6%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); font-size: 21px; }
  #art-stage .as-caption {
    position: absolute; left: max(32px, calc((100% - 1200px) / 2)); top: 50%; transform: translateY(-50%);
    padding: 0; width: 27%;
  }
  #art-stage .as-eyebrow { font-size: 12px; margin-bottom: 9px; }
  #art-stage .as-caption h1 { font-size: clamp(26px, 2.3vw, 38px); line-height: 1.06; text-wrap: balance; }
  #art-stage .as-sub { font-size: 16px; max-width: 28ch; }
  #art-stage .as-cta { margin-top: 16px; }
  #art-stage .as-container { padding: 0 32px 16px; }
  #art-stage .as-kicker { margin-top: 12px; }
  #art-stage .as-worlds, #art-stage .as-worlds.as-many { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 280px)); gap: 16px; overflow: visible; padding: 0; margin: 0; }
  #art-stage .as-worlds .as-world, #art-stage .as-worlds.as-many .as-world { flex: none; }
  /* Many styles: stay one scrolling row so the gift grid stays above the fold. */
  #art-stage .as-worlds.as-many { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: none; scroll-padding-inline: 6px; gap: 14px; padding: 6px; margin: -6px; }
  #art-stage .as-worlds.as-many .as-world { flex: 0 0 220px; scroll-snap-align: start; }
  #art-stage .as-world { height: 132px; border-radius: 12px; }
  #art-stage .as-world-text { padding: 5px 10px 6px; }
  #art-stage .as-world-label { font-size: 15px; }
  #art-stage .as-world-sub { display: inline; }
  #art-stage .as-world-check { width: 24px; height: 24px; top: 8px; right: 8px; font-size: 14px; }
  #printed-gifts.as-gifts { margin-top: 14px; }
  #printed-gifts .as-gifts-head h2 { font-size: 26px; }
  #printed-gifts .as-gifts-head p, #printed-gifts .as-gifts-head a { font-size: 13px; }
  #printed-gifts .as-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  #printed-gifts .as-card-title { font-size: 14px; }
  #printed-gifts .as-personalize, #printed-gifts .as-price { font-size: 12px; }
  #printed-gifts .as-card-body { padding: 6px 10px 8px; }
  #printed-gifts .as-note { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #art-stage *, #art-stage *::before, #art-stage *::after,
  #printed-gifts, #printed-gifts *, #printed-gifts *::before, #printed-gifts *::after {
    transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important;
  }
}

#printed-gifts.as-gifts { scroll-margin-top: 8px; }

/* Very narrow screens (320px): keep the existing header and lower sections inside the viewport. */
@media (max-width: 359px) {
  body:has(#art-stage) .ty-header-inner { gap: 6px; }
  body:has(#art-stage) .ty-brand img { width: 120px; height: auto; }
  body:has(#art-stage) .ty-header-actions { gap: 6px; }
  body:has(#art-stage) .ty-cart-btn { padding-left: 10px; padding-right: 10px; }
  body:has(#art-stage) main, body:has(#art-stage) .ty-footer { overflow-x: clip; }
}

/* Below the fold: one block per style; only the active one shows (the others stay in the page, hidden). */
[data-style-content] { display: none; }

/* Loox customer videos and reviews, one iframe per brand style (sized by a message from the embed page). */
iframe.style-loox { display: block; width: 100%; border: 0; margin-top: 16px; }

/* "More ways to gift" row: same card look as the printed-gifts grid above. */
#bestsellers-carousel .ty-product-card {
  padding: 0; background: #fff; border: 1px solid #d9dde2; border-radius: 8px; box-shadow: none; overflow: hidden;
}
#bestsellers-carousel .ty-product-card:hover { transform: none; box-shadow: 0 2px 10px rgba(20, 32, 46, .12); }
#bestsellers-carousel .ty-product-media { margin: 0; border-radius: 0; background: #fff; border-bottom: 1px solid #d9dde2; aspect-ratio: 7 / 4; }
#bestsellers-carousel .ty-product-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
#bestsellers-carousel .ty-product-card:hover .ty-product-media img { transform: none; }
#bestsellers-carousel .ty-product-body { padding: 6px 10px 8px; gap: 2px; }
#bestsellers-carousel .ty-product-title { margin: 0; font-size: 14px; line-height: 1.2; font-weight: 800; color: #14202e; }
#bestsellers-carousel .ty-product-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin: 0; }
#bestsellers-carousel .ty-product-price { font-size: 12px; font-weight: 400; color: #54616f; }
#bestsellers-carousel .ty-product-cta, #bestsellers-carousel .ty-product-card:hover .ty-product-cta {
  margin: 0; padding: 0; width: auto; background: none; border: 0; box-shadow: none; color: #0b5cad; font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* "More ways to gift" row inside the TurnedYellow and MakeMeJedi blocks: same card look as the grid above. */
.style-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.style-more-card { display: block; background: #fff; color: #14202e; text-decoration: none; border: 1px solid #d9dde2; border-radius: 8px; overflow: hidden; }
.style-more-card:hover { box-shadow: 0 2px 10px rgba(20, 32, 46, .18); }
.style-more-card:focus-visible { outline: 3px solid #0b3d91; outline-offset: 2px; }
.style-more-well { display: block; aspect-ratio: 3 / 2; background: #fff; border-bottom: 1px solid #d9dde2; }
.style-more-well img { display: block; width: 100%; height: 100%; object-fit: cover; }
.style-more-body { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 6px; padding: 6px 10px 8px; }
.style-more-title { flex: 1 0 100%; font: 800 14px/1.2 Assistant, Arial, sans-serif; color: #14202e; text-transform: none; letter-spacing: 0; }
.style-more-price { font: 400 12px/1.4 Assistant, Arial, sans-serif; color: #54616f; }
.style-more-cta { margin-left: auto; font: 700 12px/1.4 Assistant, Arial, sans-serif; color: #0b5cad; white-space: nowrap; }
@media (min-width: 900px) { .style-more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

/* Hero carousel arrows: on the CTA row, right side, clear of the art's photos and captions. */

#art-stage .as-nav { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 8px; }
#art-stage .as-nav button {
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.88); color: #1a1a1a; font: 700 24px/1 Arial, sans-serif;
  box-shadow: 0 2px 8px #0005; display: grid; place-items: center; padding: 0 0 3px;
}
#art-stage .as-nav button:hover { background: #fff; }
#art-stage .as-nav button:focus-visible { outline: 3px solid var(--as-focus, #0b3d91); outline-offset: 2px; }
@media (min-width: 900px) { #art-stage .as-nav { position: static; display: inline-flex; vertical-align: middle; margin: 8px 0 0 12px; } }

/* Phone hero: the art is the main thing. Full-width 4:3 art, no dark overlay on it, small Before
   tile in its lower-left corner, text below the art on a solid band. */
@media (max-width: 899px) {
  #art-stage .as-hero::before { background: #1f2124; }
  #art-stage .as-after, #art-stage[data-world] .as-after { left: 0; right: 0; width: 100%; height: 75vw; }
  #art-stage .as-before, #art-stage[data-photo-shape="round"] .as-before {
    top: calc(75vw - 10px - 23vw); left: 10px; width: 31vw; height: 23vw; border-width: 2px; transform: rotate(-2deg);
  }
  #art-stage .as-before .as-step { font-size: 10px; padding: 2px 5px; bottom: 3px; left: 3px; }
  #art-stage .as-arrow { display: none; }
  #art-stage .as-caption { padding-top: calc(75vw + 12px); }
  #art-stage .as-caption h1 { font-size: clamp(20px, 5.6vw, 24px); }
  #art-stage .as-after { touch-action: pan-y; }
}
#art-stage .as-hero-img { transition: transform .28s ease, opacity .28s ease; }
#art-stage .as-hero-img.as-dragging { transition: none; }

/* Links to every style page (for shoppers and search engines). */
#art-stage .as-style-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 12px; }
#art-stage .as-style-links a { color: var(--as-muted); text-decoration: underline; text-underline-offset: 2px; }
#art-stage .as-style-links a:hover { color: var(--as-accent); }

/* "Real Artists · Never AI" seal, upper right of every hero. */
#art-stage .as-seal { position: absolute; z-index: 4; top: 14px; right: 14px; width: 104px; height: auto; pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
/* TurnedComics hero has the customer photo top-right and faces across the top: seal goes bottom-left of the art. */
#art-stage[data-world="turnedcomics"] .as-seal { top: auto; right: auto; bottom: 14px; left: calc(42% + 14px); }
@media (max-width: 899px) {
  #art-stage .as-seal { width: 86px; top: 10px; right: 10px; }
  #art-stage[data-world="turnedcomics"] .as-seal { bottom: auto; top: calc(75vw - 98px); left: 10px; }
}
