/* =========================================================
   AceStudios webstore theme  v2
   Black / red / white. Packages are playing cards.
   Suit = category:  ♠ scripts  ♦ maps & deals  ♣ props & free  ♥ animations
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=Big+Shoulders+Stencil+Display:wght@900&family=Archivo:wght@400;500;600;700&display=swap");

:root {
  --black: #000;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: #2a2a2a;
  --red: #e5161f;
  --red-hot: #c2101a;
  --red-dim: #b30f17;
  --white: #fff;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --paper: #f6f4ef;
  --ink: #0b0b0b;
  --paper-muted: #5c5752;
  --paper-line: #dcd7cf;
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", Impact, sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --wrap: 1280px;
  --r-card: 14px;
  --r-inner: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ace {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 16px/1.55 var(--body); overflow-x: hidden;
}
.ace img { max-width: 100%; display: block; }
.ace a { color: inherit; text-decoration: none; }
.ace button { font: inherit; cursor: pointer; }
.ace :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ace-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ace-wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.suit { font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", sans-serif; line-height: 1; }
.suit--red { color: var(--red); }

/* ---------- ticker ---------- */
.ace-ticker { background: var(--red); color: #fff; overflow: hidden; white-space: nowrap; font: 800 15px/36px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.ace-ticker__track { display: inline-flex; }
.ace-ticker__track span { padding: 0 28px; }
.ace-ticker__track span::after { content: "♠"; opacity: .7; margin-left: 56px; }
.ace-ticker a { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .ace-ticker__track { animation: ace-tick 40s linear infinite; }
  .ace-ticker:hover .ace-ticker__track { animation-play-state: paused; }
  @keyframes ace-tick { to { transform: translateX(-50%); } }
}

/* ---------- header ---------- */
.ace-bar { position: sticky; top: 0; z-index: 40; background: rgba(0,0,0,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ace-bar__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.ace-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ace-logo img { height: 48px; width: auto; }
.ace-logo span { font: 900 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.ace-menu { display: none; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ace-menu > li { position: relative; }
.ace-menu a, .ace-menu button.ace-drop {
  display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 9px;
  background: none; border: 0; color: var(--muted); white-space: nowrap;
  font: 800 16px/1 var(--display); text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 3px solid transparent;
}
.ace-menu a:hover, .ace-menu button.ace-drop:hover, .ace-menu button.ace-drop[aria-expanded="true"] { color: var(--white); }
.ace-menu .is-active > a, .ace-menu .is-active > button { color: var(--white); border-bottom-color: var(--red); }
.ace-menu ul {
  position: absolute; top: 100%; left: 0; min-width: 210px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.6);
}
.ace-menu ul[hidden] { display: none; }
.ace-menu ul a { height: auto; padding: 10px 12px; border: 0; border-radius: 6px; }
.ace-menu ul a:hover { background: var(--surface-2); }
@media (min-width: 1280px) {
  .ace-menu { display: flex; }
  .ace-burger { display: none !important; }
  .ace-bar__inner { gap: 18px; }
  .ace-logo span { display: none; }
}
.ace-tools .ace-pill { white-space: nowrap; }

.ace-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ace-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 800 16px/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
}
.ace-pill:hover { border-color: var(--muted); }
.ace-pill--red { background: var(--red); border-color: var(--red); color: #fff; }
.ace-pill--red:hover { background: var(--red-hot); border-color: var(--red-hot); }
.ace-pill select { appearance: none; background: transparent; border: 0; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; }
.ace-pill select option { background: var(--surface); color: var(--text); }
.ace-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--red); font: 900 14px/22px var(--display); text-align: center; }
.ace-burger { width: 42px; padding: 0; justify-content: center; }
@media (max-width: 640px) { .ace-hide-sm { display: none !important; } .ace-logo span { display: none; } }

/* mobile drawer */
.ace-mnav[hidden] { display: none; }
.ace-mnav { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); }
.ace-mnav__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88%); background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; padding: 16px; }
.ace-mnav__panel ul { list-style: none; margin: 0; padding: 0; }
.ace-mnav__panel a { display: block; padding: 13px 8px; font: 800 22px/1 var(--display); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.ace-mnav__panel ul ul a { font-size: 18px; padding-left: 24px; color: var(--muted); }
.ace-mnav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

/* ---------- buttons ---------- */
.ace-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 8px; border: 2px solid transparent;
  font: 900 19px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.ace-btn--red { background: var(--red); color: #fff; }
.ace-btn--red:hover { background: var(--red-hot); }
.ace-btn--line { border-color: rgba(255,255,255,.35); color: #fff; }
.ace-btn--line:hover { border-color: #fff; }
.ace-btn--ink { background: var(--ink); color: var(--paper); }
.ace-btn--ink:hover { background: var(--red); color: #fff; }
.ace-btn--white { background: #fff; color: var(--red); }
.ace-btn--white:hover { background: var(--ink); color: #fff; }
.ace-btn--block { width: 100%; }

/* ---------- hero ---------- */
.ace-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.ace-hero__collage {
  position: absolute; inset: -20% -10%; z-index: -2;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  transform: rotate(-8deg); opacity: .5;
}
.ace-hero__collage img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; filter: saturate(.8) brightness(.75); }
.ace-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 60%, rgba(229,22,31,.35), transparent 70%),
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.92) 38%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.75) 100%),
    linear-gradient(0deg, #000 0%, transparent 30%);
}
.ace-hero__inner { display: grid; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 1080px) { .ace-hero__inner { grid-template-columns: 1fr 1fr; min-height: 640px; padding-top: 40px; padding-bottom: 40px; } }
.ace-hero__word {
  margin: 0 0 22px; font: 900 clamp(76px, 12vw, 168px)/.8 var(--stencil);
  text-transform: uppercase; letter-spacing: -.01em; color: #fff;
}
.ace-hero__word span { display: block; color: var(--red); }
.ace-hero__lede { margin: 0 0 30px; max-width: 40ch; font-size: clamp(17px, 1.6vw, 20px); color: #d6d6d6; }
.ace-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ace-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 34px 0 0; padding: 0; list-style: none; }
.ace-trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: #e6e6e6; }
.ace-trust svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; }

/* the hand */
.ace-hand { position: relative; height: 520px; display: flex; justify-content: center; align-items: flex-end; }
.ace-hand .ace-card {
  position: absolute; bottom: 30px; width: 262px; transform-origin: 50% 135%;
  transform: rotate(var(--r)) translateX(var(--x));
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 24px 50px rgba(0,0,0,.65);
}
.ace-hand .ace-fw { display: none; }
.ace-hand .ace-card:hover, .ace-hand .ace-card:focus-within {
  transform: rotate(calc(var(--r) * .4)) translateX(var(--x)) translateY(-40px); z-index: 10;
}
.ace-hand .ace-card:nth-child(1) { --r: -15deg; --x: -140px; }
.ace-hand .ace-card:nth-child(2) { --r: -7.5deg; --x: -70px; }
.ace-hand .ace-card:nth-child(3) { --r: 0deg; --x: 0px; }
.ace-hand .ace-card:nth-child(4) { --r: 7.5deg; --x: 70px; }
.ace-hand .ace-card:nth-child(5) { --r: 15deg; --x: 140px; }
@media (prefers-reduced-motion: no-preference) and (min-width: 1080px) {
  .ace-hand .ace-card { animation: ace-deal .75s cubic-bezier(.2,.8,.2,1) both; }
  .ace-hand .ace-card:nth-child(2) { animation-delay: .1s; }
  .ace-hand .ace-card:nth-child(3) { animation-delay: .2s; }
  .ace-hand .ace-card:nth-child(4) { animation-delay: .3s; }
  .ace-hand .ace-card:nth-child(5) { animation-delay: .4s; }
  @keyframes ace-deal { from { transform: translate(300px, -160px) rotate(45deg); opacity: 0; } }
}
@media (max-width: 1079px) {
  .ace-hand { height: auto; justify-content: flex-start; align-items: stretch; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 6px 16px 20px; }
  .ace-hand .ace-card { position: relative; bottom: 0; flex: 0 0 250px; transform: none; scroll-snap-align: start; }
  .ace-hand .ace-card:hover, .ace-hand .ace-card:focus-within { transform: none; }
}

/* ---------- product card ---------- */
.ace-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-radius: var(--r-card);
  padding: 36px 12px 12px;
}
.ace-card__index { position: absolute; top: 9px; left: 13px; display: flex; align-items: baseline; gap: 4px; font: 900 22px/1 var(--display); }
.ace-card__index small { font: 700 12px/1 var(--body); color: var(--paper-muted); }
.ace-card__index del { font: 700 14px/1 var(--display); color: var(--paper-muted); margin-right: 4px; }
.ace-card__suit { position: absolute; top: 9px; right: 13px; font-size: 19px; }
.ace-card__img { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--r-inner); overflow: hidden; background: #ddd8cf; }
.ace-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ace-card:hover .ace-card__img img { transform: scale(1.04); }
.ace-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.ace-badge { padding: 5px 8px; border-radius: 5px; font: 900 13px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; background: var(--ink); color: #fff; }
.ace-badge--red { background: var(--red); }
.ace-badge--white { background: #fff; color: var(--ink); }
.ace-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 12px 2px 0; }
.ace-card__name { margin: 0; font: 900 24px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.ace-card__name a:hover { color: var(--red); }
.ace-fw { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ace-fw li { padding: 3px 7px; border: 1px solid var(--paper-line); border-radius: 4px; font: 600 12px/1.2 var(--body); color: var(--paper-muted); }
.ace-card__buy { margin-top: auto; display: flex; gap: 8px; }
.ace-card__buy .ace-btn { height: 44px; font-size: 17px; flex: 1; padding: 0 12px; }
.ace-card__more { flex: 0 0 44px !important; padding: 0 !important; background: transparent; border-color: var(--paper-line) !important; color: var(--ink); }
.ace-card__more:hover { border-color: var(--ink) !important; }
.ace-card__more svg { width: 18px; height: 18px; }

/* ---------- sections ---------- */
.ace-section { padding: 72px 0 0; }
.ace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.ace-head h2 { margin: 0; display: flex; align-items: center; gap: 14px; font: 900 clamp(38px, 5vw, 60px)/.9 var(--display); text-transform: uppercase; }
.ace-head h2 .suit { font-size: .7em; }
.ace-head p { margin: 10px 0 0; color: var(--muted); max-width: 52ch; }
.ace-more { display: inline-flex; align-items: center; gap: 8px; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.ace-more:hover { color: #fff; }
.ace-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }

/* category tiles */
.ace-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ace-tiles { grid-template-columns: repeat(6, 1fr); } }
.ace-tile { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4/5; background: var(--surface); isolation: isolate; border: 1px solid var(--line); }
.ace-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; filter: brightness(.7); }
.ace-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.92) 100%); }
.ace-tile:hover img { transform: scale(1.06); }
.ace-tile:hover { border-color: var(--red); }
.ace-tile__suit { position: absolute; top: 12px; left: 14px; font-size: 28px; color: #fff; }
.ace-tile__suit.suit--red { color: var(--red); }
.ace-tile__txt { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.ace-tile strong { display: block; font: 900 28px/.95 var(--display); text-transform: uppercase; }
.ace-tile em { font-style: normal; font-size: 14px; color: #cfcfcf; }

/* season spread */
.ace-spread { display: grid; gap: 22px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
@media (min-width: 900px) { .ace-spread { grid-template-columns: 1.55fr 1fr; padding: 24px; } }
.ace-spread__img { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.ace-spread__img img { width: 100%; height: 100%; object-fit: cover; }
.ace-spread__side { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.ace-spread__side h3 { margin: 0; font: 900 40px/.95 var(--display); text-transform: uppercase; }
.ace-spread__side > p { margin: 0 0 6px; color: var(--muted); }
.ace-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.ace-option strong { display: block; font: 900 26px/1 var(--display); text-transform: uppercase; }
.ace-option span { font-size: 15px; color: var(--paper-muted); font-weight: 600; }
.ace-option .ace-btn { height: 44px; font-size: 17px; padding: 0 16px; }

/* bundles */
.ace-bundles { display: grid; gap: 20px; }
@media (min-width: 1000px) { .ace-bundles { grid-template-columns: repeat(3, 1fr); } }
.ace-bundle { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ace-bundle:hover { border-color: #444; }
.ace-bundle__fan { position: relative; height: 210px; background: radial-gradient(80% 90% at 50% 100%, rgba(229,22,31,.28), transparent 70%), var(--black); overflow: hidden; }
.ace-bundle__fan img {
  position: absolute; bottom: -18px; left: 50%; width: 46%; aspect-ratio: 16/9; object-fit: cover;
  border: 4px solid var(--paper); border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.6);
  transform-origin: 50% 160%; transform: translateX(-50%) rotate(var(--r));
}
.ace-bundle__save { position: absolute; top: 14px; right: 14px; padding: 8px 10px; border-radius: 6px; background: var(--red); color: #fff; font: 900 18px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.ace-bundle__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.ace-bundle__body h3 { margin: 0; font: 900 32px/1 var(--display); text-transform: uppercase; }
.ace-bundle__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: #d9d9d9; font-size: 15px; }
.ace-bundle__body li { display: flex; gap: 10px; }
.ace-bundle__body li::before { content: "♠"; color: var(--red); }
.ace-bundle__price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.ace-bundle__price b { font: 900 38px/1 var(--display); }
.ace-bundle__price del { font: 700 20px/1 var(--display); color: var(--muted); margin-right: 8px; }
.ace-bundle__price .ace-btn { height: 46px; font-size: 17px; padding: 0 18px; }

/* subscription */
.ace-sub { position: relative; overflow: hidden; isolation: isolate; display: grid; border-radius: 20px; background: var(--red); color: #fff; }
@media (min-width: 960px) { .ace-sub { grid-template-columns: 1.1fr 1fr; } }
.ace-sub__copy { padding: clamp(26px, 4vw, 48px); }
.ace-sub__copy h2 { margin: 0 0 14px; font: 900 clamp(44px, 6vw, 76px)/.86 var(--display); text-transform: uppercase; }
.ace-sub__copy ul { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 8px; font-weight: 600; }
.ace-sub__copy li { display: flex; gap: 10px; }
.ace-sub__copy li::before { content: "♠"; }
.ace-sub__row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ace-sub__price { font: 900 56px/1 var(--display); }
.ace-sub__price small { font: 700 18px/1 var(--body); opacity: .9; margin-left: 4px; }
.ace-sub__img { min-height: 260px; position: relative; }
.ace-sub__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ace-sub__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--red) 0%, transparent 30%); }
@media (max-width: 959px) { .ace-sub__img::before { background: linear-gradient(180deg, var(--red) 0%, transparent 30%); } }

/* showcase */
.ace-show { display: grid; gap: 30px; align-items: center; }
@media (min-width: 960px) { .ace-show { grid-template-columns: 1.45fr 1fr; } }
.ace-show__video { aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.ace-show__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.ace-show h2 { margin: 0 0 14px; font: 900 clamp(40px, 5vw, 64px)/.9 var(--display); text-transform: uppercase; }
.ace-show p { margin: 0 0 24px; color: var(--muted); max-width: 42ch; }

/* help strip */
.ace-help { display: grid; gap: 14px; }
@media (min-width: 860px) { .ace-help { grid-template-columns: repeat(3, 1fr); } }
.ace-help a, .ace-help div { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ace-help a:hover { border-color: var(--red); }
.ace-help svg { width: 30px; height: 30px; color: var(--red); flex-shrink: 0; }
.ace-help strong { display: block; font: 900 24px/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.ace-help span { color: var(--muted); font-size: 15px; }

/* ---------- category & package pages ---------- */
.ace-pagehead { position: relative; overflow: hidden; isolation: isolate; padding: 54px 0 40px; border-bottom: 1px solid var(--line); }
.ace-pagehead__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.35); transform: scale(1.05); }
.ace-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #000 10%, rgba(0,0,0,.4)); }
.ace-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font: 800 16px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ace-crumbs a:hover { color: #fff; }
.ace-pagehead h1 { margin: 0; display: flex; align-items: center; gap: 16px; font: 900 clamp(52px, 8vw, 96px)/.88 var(--display); text-transform: uppercase; }
.ace-pagehead p { margin: 14px 0 0; color: #d0d0d0; max-width: 60ch; }

.ace-package { display: grid; gap: 32px; padding: 32px 0 0; }
@media (min-width: 1000px) { .ace-package { grid-template-columns: 1.55fr 1fr; align-items: start; } }
.ace-package__media { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); }
.ace-package__media img { width: 100%; height: 100%; object-fit: cover; }
.ace-package__desc { margin-top: 28px; max-width: 72ch; color: #e2e2e2; }
.ace-package__desc a { color: #ff7a80; text-decoration: underline; word-break: break-word; }
.ace-buy { position: sticky; top: 96px; background: var(--paper); color: var(--ink); border-radius: var(--r-card); padding: 26px; }
.ace-buy__top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--paper-muted); font-weight: 600; }
.ace-buy h1 { margin: 10px 0 12px; font: 900 44px/.92 var(--display); text-transform: uppercase; }
.ace-buy__price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 20px; font: 900 48px/1 var(--display); }
.ace-buy__price small { font: 700 16px/1 var(--body); color: var(--paper-muted); }
.ace-buy .ace-btn + .ace-btn { margin-top: 10px; }
.ace-buy .ace-btn--line { border-color: var(--paper-line); color: var(--ink); }
.ace-buy .ace-btn--line:hover { border-color: var(--ink); }
.ace-buy__list { margin: 20px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--paper-line); display: grid; gap: 10px; font-size: 15px; font-weight: 500; }
.ace-buy__list li { display: flex; gap: 10px; align-items: center; }
.ace-buy__list svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
.ace-buy__list a { text-decoration: underline; }

/* ---------- basket drawer (preview; live store uses Tebex's basket) ---------- */
.ace-drawer[hidden] { display: none; }
.ace-drawer { position: fixed; inset: 0; z-index: 70; }
.ace-drawer__shade { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.ace-drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(430px, 100%); background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) { .ace-drawer__panel { animation: ace-slide .22s ease-out; } @keyframes ace-slide { from { transform: translateX(40px); opacity: 0; } } }
.ace-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.ace-drawer__head h2 { margin: 0; font: 900 34px/1 var(--display); text-transform: uppercase; }
.ace-drawer__items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.ace-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ace-line img { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; }
.ace-line strong { display: block; font: 900 20px/1 var(--display); text-transform: uppercase; }
.ace-line span { font-size: 14px; color: var(--muted); }
.ace-line button { background: none; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; }
.ace-line button:hover { color: #fff; }
.ace-drawer__foot { padding: 20px; border-top: 1px solid var(--line); }
.ace-total { display: flex; justify-content: space-between; font: 900 26px/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.ace-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.ace-x { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; padding: 4px 10px; }

/* ---------- footer ---------- */
.ace-foot { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); }
.ace-foot__inner { display: grid; gap: 30px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 860px) { .ace-foot__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.ace-foot h3 { margin: 0 0 14px; font: 900 22px/1 var(--display); text-transform: uppercase; }
.ace-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.ace-foot a:hover { color: #fff; }
.ace-foot p { margin: 12px 0 0; color: var(--muted); max-width: 40ch; }
.ace-foot__brand { font: 900 54px/.85 var(--stencil); text-transform: uppercase; }
.ace-foot__brand span { color: var(--red); }

.ace-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--paper); color: var(--ink); padding: 14px 20px; border-radius: 10px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.6); max-width: calc(100% - 32px); }

/* phones/tablets: put the buy box right under the image */
@media (max-width: 999px) {
  .ace-package { display: flex; flex-direction: column; }
  .ace-package > div { display: contents; }
  .ace-package__media { order: 1; }
  .ace-buy { order: 2; position: static; }
  .ace-package__desc { order: 3; margin-top: 0; }
}
.ace-hand { scrollbar-width: none; }
.ace-hand::-webkit-scrollbar { display: none; }

/* season options: cards shown as compact rows */
.ace-rows { display: grid; gap: 12px; }
.ace-rows .ace-card { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.ace-rows .ace-card__img, .ace-rows .ace-card__suit, .ace-rows .ace-fw { display: none; }
.ace-rows .ace-card__index { position: static; order: 2; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 26px; white-space: nowrap; }
.ace-rows .ace-card__body { padding: 0; flex: 1; flex-direction: row; align-items: center; gap: 14px; }
.ace-rows .ace-card__name { flex: 1; font-size: 26px; }
.ace-rows .ace-card__buy { margin: 0; flex: 0 0 auto; }
.ace-rows .ace-card__more { display: none !important; }
@media (max-width: 520px) {
  .ace-rows .ace-card { flex-wrap: wrap; }
  .ace-rows .ace-card__body { flex-wrap: wrap; }
  .ace-rows .ace-card__buy { flex: 1 1 100%; }
}

/* subscription band: live product card on the right */
.ace-sub__card { display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(0,0,0,.18); }
.ace-sub__card .ace-card { width: min(340px, 100%); box-shadow: 0 24px 50px rgba(0,0,0,.35); transform: rotate(3deg); }
@media (max-width: 959px) { .ace-sub__card .ace-card { transform: none; } }

/* ===== Tebex (Exo engine) integration: popups, basket, checkout use these ===== */
:root {
  --color-text: #f2f2f2;
  --color-text-secondary: #a3a3a3;
  --color-bg: #000;
  --color-brighter-bg: #141414;
  --color-primary: #e5161f;
  --color-primary-hover: #c2101a;
  --color-primary-text: #fff;
  --color-primary-text-hover: #fff;
  --color-secondary: #f6f4ef;
  --color-secondary-hover: #fff;
  --color-secondary-text: #0b0b0b;
  --tebex-legal-footer-background-color: #141414;
  --tebex-legal-footer-border-color: #2a2a2a;
  --tebex-legal-footer-text-color: #a3a3a3;
}
.ace .site.ace-site { display: block; gap: 0; min-height: 0; font-size: 16px; }
body.ace { font-family: var(--body); line-height: 1.55; }
/* buttons rendered by Tebex inside our cards */
.ace-card .product-actions { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
.ace-card .product-actions .price { display: none; }
.ace-card .product-actions .btn-primary,
.ace-card .product-actions .btn-secondary {
  --btn-color-bg: var(--ink); --btn-color-bg-hover: var(--red); --btn-color-text: var(--paper); --btn-color-text-hover: #fff;
  flex: 1; width: auto; height: 44px; line-height: 44px; border-radius: 8px;
  font: 900 17px/44px var(--display); text-transform: uppercase; letter-spacing: .05em;
}
.ace-card .product-actions .btn-primary:hover, .ace-card .product-actions .btn-secondary:hover { background: var(--red); color: #fff; }
.ace-card .product-actions .gift { flex: 0 0 44px; height: 44px; border-radius: 8px; --btn-color-bg: transparent; border: 2px solid var(--paper-line); color: var(--ink); }
.ace-card .quantity-field { flex: 1; border-radius: 8px; background: var(--ink); color: var(--paper); }
.ace-buy .product-actions { display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.ace-buy .product-actions .price { display: none; }
.ace-buy .product-actions .btn-primary, .ace-buy .product-actions .btn-secondary {
  width: 100%; height: 54px; line-height: 54px; border-radius: 8px;
  font: 900 19px/54px var(--display); text-transform: uppercase; letter-spacing: .05em;
}
.ace-buy .product-actions .btn-secondary { --btn-color-bg: transparent; border: 2px solid var(--paper-line); color: var(--ink); }
.ace-buy .quantity-field { background: var(--ink); color: var(--paper); border-radius: 8px; }

/* bundle buy buttons (dark panel) */
.ace-bundle .product-actions { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; }
.ace-bundle .product-actions .price { display: none; }
.ace-bundle .product-actions .btn-primary, .ace-bundle .product-actions .btn-secondary {
  --btn-color-bg: var(--red); --btn-color-bg-hover: var(--red-hot); --btn-color-text: #fff; --btn-color-text-hover: #fff;
  flex: 1; width: auto; height: 48px; border-radius: 8px; font: 900 18px/48px var(--display); text-transform: uppercase; letter-spacing: .05em;
}
.ace-bundle__buy { padding-top: 4px; }
.ace-bundle__price b strong { font: inherit; }
.ace-catlist .ace-bundle { height: 100%; }

/* homepage text from the Tebex panel, CMS pages, category descriptions */
.ace-about { max-width: 76ch; color: #dcdcdc; }
.ace-about img { max-width: 100%; height: auto; border-radius: 12px; }
.ace-about a, .ace-pagehead__desc a { color: #ff7a80; text-decoration: underline; word-break: break-word; }
.ace-about h1, .ace-about h2, .ace-about h3 { font-family: var(--display); text-transform: uppercase; line-height: 1; }
.ace-pagehead__desc { margin-top: 14px; color: #d0d0d0; max-width: 60ch; }

/* package page media slider (Tebex) and popup view */
.ace-package__slider { border-radius: 16px; overflow: hidden; }
.ace-popup .ace-package { padding: 0; grid-template-columns: 1fr; }
.ace-popup .ace-buy { position: static; }
.ace-buy__countdown { margin: -8px 0 16px; font-weight: 700; color: var(--red); }
.ace-buy .price strong, .ace-buy__price strong { font: inherit; }

/* loading state for live sections */
[data-ace-load][aria-busy="true"]:empty { min-height: 200px; border-radius: 14px; background: linear-gradient(90deg, #111 0%, #1a1a1a 50%, #111 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  [data-ace-load][aria-busy="true"]:empty { animation: ace-shimmer 1.4s linear infinite; }
  @keyframes ace-shimmer { to { background-position: -200% 0; } }
}
.ace-hand[aria-busy="true"]:empty { background: none; }

/* cards keep one clear action; gifting lives on the product page */
.ace-card .product-actions .gift, .ace-bundle .product-actions .gift { display: none; }
.ace-card .product-actions .btn-primary, .ace-card .product-actions .btn-secondary { padding: 0 8px; }

/* buy box: Tebex buttons must not stretch vertically */
.ace-buy .product-actions > * { flex: 0 0 auto; }
.ace-buy .product-actions .quantity-field { height: 54px; }

/* Tebex product popup: image, then buy box, then description */
.store-product-popup-content:has(> .ace-buy) { display: flex; flex-direction: column; gap: 20px; background: var(--black); color: var(--text); font-family: var(--body); font-size: 16px; }
.store-product-popup-content > div:has(.ace-package__desc) { display: contents; }
.store-product-popup-content .ace-package__media, .store-product-popup-content .ace-package__slider { order: 1; }
.store-product-popup-content .ace-buy { order: 2; position: static; }
.store-product-popup-content .ace-package__desc { order: 3; margin-top: 0; }
.ace-buy .product-actions.actions .wide, .ace-buy .product-actions.actions .half { flex: 0 0 auto; width: 100%; }
.ace-card .product-actions.actions .wide, .ace-card .product-actions.actions .half,
.ace-bundle .product-actions.actions .wide, .ace-bundle .product-actions.actions .half { flex: 1 1 0; }

/* =====================================================================
   v3: motion and refinement
   ===================================================================== */

/* calmer rhythm: more air between sections */
.ace-section { padding-top: clamp(88px, 10vw, 136px); }
.ace-head { margin-bottom: 32px; }
.ace-head p { font-size: 17px; }
.ace-foot { margin-top: clamp(96px, 12vw, 160px); }

/* larger product images: 3 across on desktop */
.ace-grid { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ace-card { padding: 38px 14px 14px; }
.ace-card__name { font-size: 26px; }

/* refined surfaces: thin borders, soft gradients, glows */
.ace-spread, .ace-bundle, .ace-help a, .ace-help div, .ace-show__video {
  background: linear-gradient(180deg, #161616 0%, #0c0c0c 100%);
  border: 1px solid rgba(255,255,255,.08);
}
.ace-bundle:hover { border-color: rgba(255,255,255,.18); }
.ace-tile { border-color: rgba(255,255,255,.08); }
.ace-bar { border-bottom-color: rgba(255,255,255,.08); background: rgba(0,0,0,.78); }

/* ticker: dark strip, white text, red spades */
.ace-ticker { background: #0b0b0b; color: #f2f2f2; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; letter-spacing: .1em; }
.ace-ticker__track span::after { color: var(--red); opacity: 1; }
.ace-ticker a { color: #fff; text-decoration-color: var(--red); }

/* ---------- hero: one headline, one button ---------- */
.ace-hero__inner { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 1080px) { .ace-hero__inner { min-height: min(760px, calc(100svh - 110px)); } }
.ace-hero__word .l { display: block; overflow: hidden; padding-bottom: .04em; }
.ace-hero__word .l > span { display: block; }
.ace-hero__word .l2 > span { color: var(--red); text-shadow: 0 0 60px rgba(229,22,31,.35); }
.ace-hero__lede { max-width: 34ch; margin-bottom: 34px; }
.ace-btn--xl { height: 60px; padding: 0 34px; font-size: 22px; box-shadow: 0 14px 40px rgba(229,22,31,.35); }
.ace-hero__collage { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(-8deg) scale(1.08); will-change: transform; }
.ace-hand::before {
  content: ""; position: absolute; left: 50%; bottom: 8%; width: 120%; aspect-ratio: 1.6; z-index: -1; pointer-events: none;
  transform: translateX(-50%); background: radial-gradient(closest-side, rgba(229,22,31,.45), rgba(229,22,31,0));
}
@media (max-width: 1079px) { .ace-hand::before { display: none; } }

/* ---------- Why AceStudios strip ---------- */
.ace-why { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, #0a0a0a, #000); }
.ace-why__inner { display: grid; gap: 18px; align-items: center; }
@media (min-width: 960px) { .ace-why__inner { grid-template-columns: repeat(3, 1fr) auto; gap: 28px; } }
.ace-why__item { display: flex; align-items: center; gap: 14px; }
.ace-why__icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; border: 1px solid rgba(229,22,31,.35); background: radial-gradient(circle at 50% 40%, rgba(229,22,31,.22), rgba(229,22,31,.04)); color: var(--red); }
.ace-why__icon svg { width: 24px; height: 24px; }
.ace-why__item strong { display: block; font: 900 21px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.ace-why__item span { font-size: 14px; color: var(--muted); }
.ace-why .ace-btn { height: 48px; font-size: 17px; }

/* ---------- subscription: best value ---------- */
.ace-sub { box-shadow: 0 40px 120px rgba(229,22,31,.28), inset 0 0 0 1px rgba(255,255,255,.12); background: radial-gradient(120% 140% at 0% 0%, #ff3b44 0%, var(--red) 40%, #a50d15 100%); }
.ace-sub__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 12px; border-radius: 999px; background: #000; color: #fff; font: 900 15px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.ace-sub__badge::before { content: "\2660"; color: var(--red); }

/* ---------- add-to-basket confirm ---------- */
.ace-btn.is-added, .btn-primary.is-added { background: #fff !important; color: var(--ink) !important; }

/* ---------- card video preview ---------- */
.ace-card__img { isolation: isolate; }
.ace-card__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.ace-card__video.is-on { opacity: 1; }
.ace-card__img .ace-badges { z-index: 3; }

/* ---------- phone sticky buy bar ---------- */
.ace-sticky { display: none; }
@media (max-width: 999px) {
  .ace-sticky {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10,10,10,.94); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.1); transform: translateY(110%); visibility: hidden;
  }
  .ace-sticky.is-on { transform: none; visibility: visible; }
  .ace-sticky__txt { flex: 1; min-width: 0; }
  .ace-sticky__txt strong { display: block; font: 900 19px/1.05 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ace-sticky__txt span { font: 700 15px/1.2 var(--body); color: var(--muted); }
  .ace-sticky .ace-btn { height: 48px; padding: 0 18px; font-size: 17px; flex-shrink: 0; }
}

/* =========================== MOTION ===========================
   Only for visitors without reduce-motion (html.ace-motion is set by ace-motion.js). */
@media (prefers-reduced-motion: no-preference) {
  /* wordmark reveals line by line */
  .ace-motion .ace-hero__word .l > span { animation: ace-rise .8s cubic-bezier(.2,.8,.2,1) both; }
  .ace-motion .ace-hero__word .l2 > span { animation-delay: .12s; }
  .ace-motion .ace-hero__lede, .ace-motion .ace-hero__actions { animation: ace-fade-up .7s .35s cubic-bezier(.2,.8,.2,1) both; }
  .ace-motion .ace-hero__actions { animation-delay: .45s; }
  @keyframes ace-rise { from { transform: translateY(105%); } }
  @keyframes ace-fade-up { from { opacity: 0; transform: translateY(18px); } }

  /* then the hand is dealt, one card at a time, as the glow comes up */
  .ace-motion .ace-hand::before { animation: ace-glow 1.6s .5s ease both; }
  @keyframes ace-glow { from { opacity: 0; transform: translateX(-50%) scale(.7); } }
  @media (min-width: 1080px) {
    .ace-motion .ace-hand .ace-card { animation: ace-deal .8s cubic-bezier(.2,.8,.2,1) both; }
    .ace-motion .ace-hand .ace-card:nth-child(1) { animation-delay: .55s; }
    .ace-motion .ace-hand .ace-card:nth-child(2) { animation-delay: .70s; }
    .ace-motion .ace-hand .ace-card:nth-child(3) { animation-delay: .85s; }
    .ace-motion .ace-hand .ace-card:nth-child(4) { animation-delay: 1.00s; }
    .ace-motion .ace-hand .ace-card:nth-child(5) { animation-delay: 1.15s; }
  }
  @media (max-width: 1079px) {
    .ace-motion .ace-hand .ace-card { animation: ace-fade-up .6s cubic-bezier(.2,.8,.2,1) both; }
    .ace-motion .ace-hand .ace-card:nth-child(2) { animation-delay: .08s; }
    .ace-motion .ace-hand .ace-card:nth-child(3) { animation-delay: .16s; }
  }

  /* sections fade and rise in once */
  .ace-motion .ace-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
  .ace-motion .ace-reveal.is-in { opacity: 1; transform: none; }
  .ace-motion .ace-reveal :is(.ace-grid, .ace-bundles, .ace-tiles) > * { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); }
  .ace-motion .ace-reveal.is-in :is(.ace-grid, .ace-bundles, .ace-tiles) > * { opacity: 1; translate: 0 0; }
  .ace-motion .ace-reveal.is-in :is(.ace-grid, .ace-bundles, .ace-tiles) > :nth-child(2) { transition-delay: .06s; }
  .ace-motion .ace-reveal.is-in :is(.ace-grid, .ace-bundles, .ace-tiles) > :nth-child(3) { transition-delay: .12s; }
  .ace-motion .ace-reveal.is-in :is(.ace-grid, .ace-bundles, .ace-tiles) > :nth-child(4) { transition-delay: .18s; }
  .ace-motion .ace-reveal.is-in :is(.ace-grid, .ace-bundles, .ace-tiles) > :nth-child(5) { transition-delay: .24s; }
  .ace-motion .ace-reveal.is-in :is(.ace-grid, .ace-bundles, .ace-tiles) > :nth-child(6) { transition-delay: .30s; }

  /* why-strip icons animate once */
  .ace-motion .ace-why.is-in .ace-why__icon svg { animation: ace-icon-pop .7s cubic-bezier(.3,1.6,.5,1) both; }
  .ace-motion .ace-why.is-in .ace-why__item:nth-child(2) .ace-why__icon svg { animation-delay: .12s; }
  .ace-motion .ace-why.is-in .ace-why__item:nth-child(3) .ace-why__icon svg { animation-delay: .24s; }
  @keyframes ace-icon-pop { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

  /* cards: 3D tilt toward the mouse, lift, shine */
  .ace-motion .ace-grid .ace-card {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1);
  }
  .ace-motion .ace-grid .ace-card.is-tilt { transition: transform .12s linear, box-shadow .45s ease, opacity .6s ease, translate .6s ease; }
  .ace-motion .ace-grid .ace-card:hover { --lift: -8px; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.4); }
  .ace-card__img::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
    transform: translateX(-120%);
  }
  .ace-motion .ace-card:hover .ace-card__img::after { transform: translateX(120%); transition: transform .9s cubic-bezier(.2,.8,.2,1); }

  /* bundles fan open on hover */
  .ace-bundle__fan img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .ace-motion .ace-bundle:hover .ace-bundle__fan img { transform: translateX(-50%) translateY(-10px) rotate(calc(var(--r) * 2)); }

  /* sticky bar slides */
  .ace-sticky { transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s; }

  /* basket counter bump */
  .ace-count.is-bump { animation: ace-bump .5s cubic-bezier(.3,1.8,.5,1); }
  @keyframes ace-bump { 40% { transform: scale(1.5); } }
}

.ace-hero__word .l:first-child > span { color: #fff; text-shadow: none; }

/* season rows: name, price, button */
.ace-rows .ace-card__body { display: contents; }
.ace-rows .ace-card__name { order: 1; flex: 1; }
.ace-rows .ace-card__index { order: 2; flex-direction: row; align-items: baseline; gap: 4px; }
.ace-rows .ace-card__buy { order: 3; }
@media (max-width: 520px) { .ace-rows .ace-card__buy { flex: 1 1 100%; } }

@media (max-width: 999px) {
  body:has(.ace-sticky.is-on) .ace-toast { bottom: 96px; }
  body:has(.ace-sticky) .ace-foot { padding-bottom: 88px; }
}

/* =====================================================================
   v4: hero leads with the subscription and the top seller,
   latest releases sit right underneath
   ===================================================================== */
.ace-hero__inner--feat { display: block; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); min-height: 0; }
.ace-hero__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.ace-hero__inner--feat .ace-hero__word { margin: 0; font-size: clamp(54px, 8vw, 112px); line-height: .85; }
.ace-hero__inner--feat .ace-hero__word .l { display: inline-block; vertical-align: bottom; }
.ace-hero__inner--feat .ace-hero__word .l + .l { margin-left: .18em; }
.ace-hero__inner--feat .ace-hero__lede { margin: 0; max-width: 30ch; }

.ace-features { position: relative; display: grid; gap: 28px; }
@media (min-width: 960px) { .ace-features { grid-template-columns: 1fr 1fr; } }
.ace-features::before {
  content: ""; position: absolute; inset: -10% 10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(229,22,31,.35), rgba(229,22,31,0));
}
.ace-feature { position: relative; }
.ace-feature > [data-ace-load], .ace-feature .ace-card { height: 100%; }
.ace-feature__ribbon {
  position: absolute; top: -14px; left: 22px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font: 900 15px/1 var(--display); text-transform: uppercase; letter-spacing: .08em;
  background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(229,22,31,.45);
}
.ace-feature__ribbon::before { content: "\2660"; }
.ace-feature--top .ace-feature__ribbon { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.ace-feature--top .ace-feature__ribbon::before { color: var(--red); }

.ace-feature .ace-card { padding: 46px 18px 18px; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.ace-feature--sub .ace-card { box-shadow: 0 0 0 2px var(--red), 0 30px 80px rgba(229,22,31,.35); }
.ace-feature .ace-card__index { top: 14px; left: 18px; font-size: 30px; }
.ace-feature .ace-card__suit { top: 14px; right: 18px; font-size: 24px; }
.ace-feature .ace-card__name { font-size: clamp(30px, 3vw, 40px); }
.ace-feature .ace-card__buy .ace-btn, .ace-feature .product-actions .btn-primary { height: 52px; font-size: 19px; }
.ace-feature .ace-card__more { flex-basis: 52px !important; }
.ace-feature .ace-badges { display: none; }
.ace-perks { margin: 2px 0 6px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15px; font-weight: 500; color: #2b2622; }
.ace-perks li { display: flex; gap: 10px; align-items: baseline; }
.ace-perks li::before { content: "\2660"; color: var(--red); font-size: 13px; }
@media (min-width: 1200px) {
  .ace-feature .ace-card { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 22px; align-items: stretch; }
  .ace-feature .ace-card__img { aspect-ratio: auto; min-height: 250px; height: 100%; }
  .ace-feature .ace-card__body { padding-top: 0; }
}

/* latest releases: straight row of 4, swipe on phones */
.ace-latest { padding-top: clamp(48px, 6vw, 72px) !important; }
.ace-row { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .ace-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ace-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none; }
  .ace-row::-webkit-scrollbar { display: none; }
  .ace-row > * { flex: 0 0 78%; scroll-snap-align: start; }
}
.ace-row .ace-card__name { font-size: 23px; }

@media (prefers-reduced-motion: no-preference) {
  /* the two feature cards are dealt in after the wordmark */
  .ace-motion .ace-feature { animation: ace-deal-in .85s cubic-bezier(.2,.8,.2,1) both; }
  .ace-motion .ace-feature--sub { animation-delay: .4s; }
  .ace-motion .ace-feature--top { animation-delay: .58s; }
  .ace-motion .ace-features::before { animation: ace-glow-in 1.6s .4s ease both; }
  @keyframes ace-deal-in { from { opacity: 0; transform: translate(80px, -60px) rotate(8deg) scale(.96); } }
  @keyframes ace-glow-in { from { opacity: 0; } }
  .ace-motion .ace-row > * { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1); }
  .ace-motion .ace-reveal.is-in .ace-row > * { opacity: 1; translate: 0 0; }
  .ace-motion .ace-reveal.is-in .ace-row > :nth-child(2) { transition-delay: .07s; }
  .ace-motion .ace-reveal.is-in .ace-row > :nth-child(3) { transition-delay: .14s; }
  .ace-motion .ace-reveal.is-in .ace-row > :nth-child(4) { transition-delay: .21s; }
  .ace-motion .ace-row .ace-card, .ace-motion .ace-feature .ace-card {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease, opacity .6s ease, translate .6s cubic-bezier(.2,.8,.2,1);
  }
  .ace-motion .ace-row .ace-card.is-tilt, .ace-motion .ace-feature .ace-card.is-tilt { transition: transform .12s linear, box-shadow .45s ease, opacity .6s ease, translate .6s ease; }
  .ace-motion .ace-row .ace-card:hover { --lift: -8px; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.4); }
  .ace-motion .ace-feature .ace-card:hover { --lift: -6px; }
}

.ace-feature__ribbon { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.ace-feature--sub .ace-card__buy .ace-btn--ink, .ace-feature--sub .product-actions .btn-primary { background: var(--red); color: #fff; --btn-color-bg: var(--red); --btn-color-text: #fff; }
.ace-feature--sub .ace-card__buy .ace-btn--ink:hover, .ace-feature--sub .product-actions .btn-primary:hover { background: var(--red-hot); }

/* Tebex renders its buy buttons as links: keep their own text colour */
.ace .product-actions a.btn-primary, .ace .product-actions a.btn-secondary, .ace .product-actions button.btn-primary, .ace .product-actions button.btn-secondary { color: var(--btn-color-text); }
.ace .product-actions a.btn-primary:hover, .ace .product-actions a.btn-secondary:hover { color: var(--btn-color-text-hover, var(--btn-color-text)); }
.ace-feature .product-actions .btn-primary { line-height: 52px; }

/* buttons that are links keep their own colours */
.ace a.ace-btn--white { color: var(--red); }
.ace a.ace-btn--white:hover { color: #fff; }
.ace a.ace-btn--red { color: #fff; }
.ace a.ace-btn--ink { color: var(--paper); }
.ace a.ace-btn--line { color: #fff; }

/* =====================================================================
   v5: the subscription banner is the opening; top seller sits under it
   ===================================================================== */
.ace-sub--hero { margin: 0; }
.ace-sub--hero .ace-sub__copy { padding: clamp(28px, 4.5vw, 60px); }
.ace-sub--hero h1 { margin: 0 0 18px; font: 900 clamp(48px, 7vw, 100px)/.84 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.ace-sub--hero ul { font-size: 17px; gap: 10px; }
.ace-sub--hero .ace-sub__price { font-size: clamp(52px, 6vw, 72px); }
.ace-sub--hero .ace-btn--white { height: 60px; padding: 0 34px; font-size: 22px; }
.ace-sub--hero .ace-sub__card { padding: clamp(24px, 4vw, 48px); }
.ace-sub--hero .ace-sub__card > [data-ace-load], .ace-sub--hero .ace-sub__card > .ace-card { width: min(380px, 100%); }
.ace-sub--hero .ace-sub__card .ace-card { width: 100%; }
.ace-sub--hero .ace-sub__card .ace-perks, .ace-sub--hero .ace-sub__card .ace-badges { display: none; }

/* top seller strip under the banner */
.ace-top { margin-top: clamp(28px, 4vw, 44px); }
.ace-top__label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 900 clamp(26px, 3vw, 34px)/1 var(--display); text-transform: uppercase; }
.ace-top__label .suit { color: var(--red); }
.ace-top .ace-feature .ace-card { box-shadow: 0 24px 60px rgba(0,0,0,.5); }
@media (min-width: 760px) {
  .ace-top .ace-feature .ace-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 26px; align-items: stretch; }
  .ace-top .ace-feature .ace-card__img { aspect-ratio: auto; min-height: 240px; height: 100%; }
  .ace-top .ace-feature .ace-card__body { padding-top: 0; justify-content: center; }
}
@media (min-width: 1200px) { .ace-top .ace-feature .ace-card { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  .ace-motion .ace-sub--hero { animation: ace-fade-up .8s cubic-bezier(.2,.8,.2,1) both; }
  .ace-motion .ace-sub--hero .ace-sub__copy > * { animation: ace-fade-up .7s cubic-bezier(.2,.8,.2,1) both; }
  .ace-motion .ace-sub--hero .ace-sub__copy > :nth-child(2) { animation-delay: .1s; }
  .ace-motion .ace-sub--hero .ace-sub__copy > :nth-child(3) { animation-delay: .2s; }
  .ace-motion .ace-sub--hero .ace-sub__copy > :nth-child(4) { animation-delay: .3s; }
  .ace-motion .ace-sub--hero .ace-sub__card > * { animation: ace-deal-in .9s .35s cubic-bezier(.2,.8,.2,1) both; }
  .ace-motion .ace-top { animation: ace-fade-up .8s .5s cubic-bezier(.2,.8,.2,1) both; }
  .ace-motion .ace-top .ace-feature { animation: none; }
}

/* buy box: undo Exo's grey sticky bar and the gift icon overlay */
.ace-buy .product-actions.actions { margin: 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; position: static; border: 0; box-shadow: none; }
.ace-buy .product-actions .gift::before, .ace-buy .product-actions .gift::after { display: none !important; content: none !important; }
.ace-buy .product-actions .gift { text-indent: 0; padding: 0 16px; }

/* more scripts row at the end of product pages */
.ace-more-products { padding-top: clamp(72px, 9vw, 120px); }
.ace-package__desc h1, .ace-package__desc h2, .ace-package__desc h3 { font-family: var(--display); text-transform: uppercase; line-height: 1; margin: 1.4em 0 .5em; }
.ace-package__desc ul { padding-left: 1.2em; }
.ace-package__desc li { margin: .3em 0; }
.ace-package__desc img { max-width: 100%; height: auto; border-radius: 10px; }

/* basket panel: visible edge, and spacing for the logged-out "Please log in" state */
.basket-popup-content { background: var(--surface); border-left: 1px solid rgba(255,255,255,.1); }
.basket-popup-content > h2 { padding: 32px 24px 14px; font: 900 32px/1 var(--display); text-transform: uppercase; color: var(--text); }
.basket-popup-content > .field { padding: 0 24px; }
.basket-popup-content > .field .btn-primary { height: 52px; line-height: 52px; padding: 0 22px; border-radius: 8px; font: 900 18px/52px var(--display); text-transform: uppercase; letter-spacing: .05em; }
.popup .popup-content h2 { font-family: var(--display); text-transform: uppercase; }

/* Tebex media slider: keep it inside its column (a video slide could otherwise grow without limit) */
.ace-package > div, .ace-package > aside { min-width: 0; }
.ace-package__slider, .ace-package__slider .media-slider { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.ace-package__slider swiper-container, .ace-package__slider .slider { display: block; width: 100%; max-width: 100%; }
.ace-package__slider swiper-slide, .ace-package__slider .slide { max-width: 100%; }
.ace-package__slider .slide-frame, .ace-package__slider .slide-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-width: 100%; }

/* =====================================================================
   v7 card: whole card opens the product, big clear price,
   image / name / tags / price / one buy button
   ===================================================================== */
.ace-card { padding: 12px; gap: 0; cursor: pointer; }
.ace-card > .ace-card__index, .ace-card > .ace-card__suit, .ace-card__more { display: none !important; }
.ace-card__img { border-radius: 9px; }
.ace-card__body { gap: 12px; padding: 14px 4px 2px; }
.ace-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ace-card__head .ace-card__name { flex: 1; min-width: 0; }
.ace-card__head .ace-card__suit { position: static; flex-shrink: 0; font-size: 20px; line-height: 1.1; }
.ace-card__name a { color: inherit; }

/* stretched link: the name's link covers the whole card */
.ace-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ace-card__link:focus-visible { outline: none; }
.ace-card:has(.ace-card__link:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.ace-card__buy, .ace-card .product-actions { position: relative; z-index: 2; }
.ace-card__buy { cursor: default; }
.ace-card:hover .ace-card__name a { color: var(--red); }

/* price */
.ace-card__price {
  margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  font: 700 15px/1 var(--body); color: var(--paper-muted);
}
.ace-card__price strong { font: 900 36px/.95 var(--display); color: var(--ink); letter-spacing: .005em; }
.ace-card__price del { font: 700 20px/1 var(--display); color: var(--paper-muted); }
.ace-card__price.is-free { font: 900 36px/.95 var(--display); color: var(--red); text-transform: uppercase; }
.ace-card__buy { margin-top: 0; }
.ace-card__buy .product-actions .btn-primary, .ace-card__buy .product-actions .btn-secondary, .ace-card__buy .ace-btn { flex: 1 1 100%; width: 100%; height: 48px; line-height: 48px; font-size: 18px; }

/* the subscription card in the hero and the top-seller card keep their bigger sizes */
.ace-feature .ace-card__price strong, .ace-sub__card .ace-card__price strong { font-size: 44px; }
.ace-feature .ace-card { padding: 16px; }
.ace-feature .ace-card__body { padding-top: 16px; }
@media (min-width: 760px) { .ace-top .ace-feature .ace-card__body { padding-top: 4px; } }
.ace-sub__card .ace-card { padding: 12px; }

/* compact rows (seasonal section) */
.ace-rows .ace-card__head { flex: 1; order: 1; }
.ace-rows .ace-card__price { order: 2; margin: 0; }
.ace-rows .ace-card__price strong { font-size: 28px; }
.ace-rows .ace-card__head .ace-card__suit { display: none; }

/* bundle cards: whole card opens the deal */
.ace-bundle { position: relative; cursor: pointer; }
.ace-bundle__body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ace-bundle__fan, .ace-bundle__buy, .ace-bundle .product-actions { position: relative; z-index: 2; }
.ace-bundle__fan { z-index: 0; }
.ace-bundle:hover h3 a { color: var(--red); }

/* currency panel (replaces the browser's native dropdown) */
.ace-cur { position: relative; }
.ace-cur__btn span { font-size: 11px; opacity: .8; }
.ace-cur__btn[aria-expanded="true"] { border-color: #fff; }
.ace-cur__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 300px; padding: 16px;
  border-radius: 14px; background: var(--surface); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.ace-cur__panel[hidden] { display: none; }
.ace-cur__title { margin: 0 0 12px; font: 900 16px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ace-cur__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ace-cur__grid a {
  display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1); font: 800 15px/1 var(--display); letter-spacing: .04em; color: var(--text);
}
.ace-cur__grid a:hover { border-color: rgba(255,255,255,.4); background: var(--surface-2); }
.ace .ace-cur__grid a.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.ace-mnav__cur { margin-top: 20px; }
.ace-mnav__panel .ace-cur__grid a { padding: 0; font-size: 15px; }

/* =====================================================================
   SEASONAL: Christmas theme. Only active when <body> has .theme-christmas
   (layout.html: seasonTheme 'christmas'). Three palettes:
   .palette-redgold  brand black/red + snow + gold
   .palette-icy      cold blues and white, red only on buttons
   .palette-classic  deep green + red + gold
   ===================================================================== */
.theme-christmas { --gold: #e9c46a; --snow: #ffffff; --xmas-a: #c8102e; --xmas-b: #7a0a1b; --xmas-glow: rgba(233,196,106,.35); --xmas-accent: var(--gold); }
.theme-christmas.palette-icy {
  --black: #060d18; --surface: #0e1a2c; --surface-2: #15253d; --line: #22354f;
  --text: #eef5ff; --muted: #9fb3cc; --xmas-a: #1f4e86; --xmas-b: #0c2340; --xmas-glow: rgba(159,212,255,.35); --xmas-accent: #9fd4ff;
  --color-bg: #060d18; --color-brighter-bg: #0e1a2c;
}
.theme-christmas.palette-classic {
  --black: #06120c; --surface: #0c2117; --surface-2: #123021; --line: #1d4330;
  --text: #f4f1e8; --muted: #b7c5b9; --xmas-a: #0f5132; --xmas-b: #083321; --xmas-glow: rgba(233,196,106,.35); --xmas-accent: var(--gold);
  --color-bg: #06120c; --color-brighter-bg: #0c2117;
}
.theme-christmas.palette-icy body, body.theme-christmas.palette-icy { background: radial-gradient(120% 60% at 50% 0%, #10233d 0%, #060d18 60%) fixed; }
body.theme-christmas.palette-classic { background: radial-gradient(120% 60% at 50% 0%, #0f2a1d 0%, #06120c 60%) fixed; }

/* snow canvas */
.ace-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 35; pointer-events: none; }

/* bars and surfaces pick up the palette */
.theme-christmas .ace-bar { background: color-mix(in srgb, var(--black) 82%, transparent); }
.theme-christmas .ace-ticker { background: color-mix(in srgb, var(--xmas-b) 70%, #000); }
.theme-christmas .ace-ticker__track span::after { content: "\2744\FE0E"; font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", sans-serif; color: var(--xmas-accent); }
.theme-christmas .ace-hero::before {
  background:
    radial-gradient(60% 70% at 70% 30%, var(--xmas-glow), transparent 70%),
    linear-gradient(90deg, var(--black) 0%, color-mix(in srgb, var(--black) 85%, transparent) 40%, color-mix(in srgb, var(--black) 55%, transparent) 75%, color-mix(in srgb, var(--black) 75%, transparent) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 30%);
}
.theme-christmas .ace-foot, .theme-christmas .ace-why { background: var(--surface); }

/* snow cap: a white wavy edge on banners */
.theme-christmas .ace-sub--hero, .theme-christmas .ace-xmas { position: relative; }
.theme-christmas .ace-sub--hero::after, .theme-christmas .ace-xmas::after {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 22px; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M0 0H200V8C190 8 188 16 178 16S166 9 156 9 142 20 130 20 118 10 106 10 94 17 82 17 70 8 58 8 46 19 34 19 22 10 12 10 4 14 0 14Z' fill='%23fff'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
  border-radius: 20px 20px 0 0;
}

/* Christmas hero banner */
.ace-xmas {
  display: grid; overflow: hidden; border-radius: 20px; margin-bottom: clamp(28px, 4vw, 44px);
  background: radial-gradient(120% 140% at 0% 0%, var(--xmas-a) 0%, var(--xmas-b) 100%);
  box-shadow: 0 40px 120px var(--xmas-glow), inset 0 0 0 1px rgba(255,255,255,.14); color: #fff;
}
@media (min-width: 960px) { .ace-xmas { grid-template-columns: 1.05fr 1fr; } }
.ace-xmas__media { display: block; min-height: 240px; position: relative; }
.ace-xmas__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ace-xmas__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--xmas-b) 100%); }
@media (max-width: 959px) { .ace-xmas__media { aspect-ratio: 16 / 9; } .ace-xmas__media::after { background: linear-gradient(180deg, transparent 60%, var(--xmas-b) 100%); } }
.ace-xmas__copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 16px; }
.ace-xmas__badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: #fff; color: var(--xmas-b); font: 900 15px/1 var(--display); text-transform: uppercase; letter-spacing: .08em;
}
.ace-xmas__badge::before { content: "\2744\FE0E"; font-family: "Segoe UI Symbol", "Apple Symbols", "DejaVu Sans", sans-serif; color: var(--xmas-a); }
.ace-xmas h1 { margin: 0; font: 900 clamp(46px, 6.5vw, 92px)/.86 var(--display); text-transform: uppercase; }
.ace-xmas p { margin: 0; font-size: 18px; opacity: .92; max-width: 40ch; }
.ace-xmas .ace-btn--white { align-self: flex-start; color: var(--xmas-b); }
.ace-xmas .ace-rows .ace-card { background: rgba(255,255,255,.96); }
.ace-sub__h { margin: 0 0 18px; font: 900 clamp(40px, 5.5vw, 76px)/.86 var(--display); text-transform: uppercase; }

/* gold / ice accents */
.theme-christmas .ace-sub__badge::before, .theme-christmas .ace-sub__copy li::before { color: var(--xmas-accent); }
.theme-christmas .ace-head h2 .suit, .theme-christmas .ace-top__label .suit { color: var(--xmas-accent); }
.theme-christmas .ace-badge--red { background: var(--xmas-a); }
.theme-christmas.palette-redgold .ace-badge--red { background: var(--red); }
.theme-christmas .ace-card { box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 10px 30px rgba(0,0,0,.35); }

/* icy: red stays only on buttons; the subscription banner turns ice-blue */
.theme-christmas.palette-icy .ace-sub { background: radial-gradient(120% 140% at 0% 0%, #2b6cb0 0%, #1f4e86 45%, #0c2340 100%); box-shadow: 0 40px 120px rgba(159,212,255,.25), inset 0 0 0 1px rgba(255,255,255,.15); }
.theme-christmas.palette-icy .ace-sub .ace-btn--white { color: #0c2340; }
.theme-christmas.palette-icy .ace-hero__word .l2 > span, .theme-christmas.palette-icy .ace-foot__brand span { color: #9fd4ff; }
/* classic: the subscription banner stays red, Christmas banner is green */
.theme-christmas.palette-classic .ace-sub { box-shadow: 0 40px 120px rgba(200,16,46,.25), inset 0 0 0 1px rgba(233,196,106,.35); }
.theme-christmas.palette-classic .ace-xmas { box-shadow: 0 40px 120px rgba(233,196,106,.25), inset 0 0 0 1px rgba(233,196,106,.4); }
.theme-christmas.palette-classic .ace-xmas__badge { color: #0f5132; }

/* ---------- Christmas intro (plays once per visit) ---------- */
.theme-christmas .ace-snow { z-index: 95; }
.ace-intro {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(80% 70% at 50% 40%, #a30d22 0%, #5a0712 60%, #2a0308 100%);
  transition: transform .95s cubic-bezier(.7,0,.2,1), opacity .4s ease .7s;
}
.ace-intro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M0 0H200V8C190 8 188 16 178 16S166 9 156 9 142 20 130 20 118 10 106 10 94 17 82 17 70 8 58 8 46 19 34 19 22 10 12 10 4 14 0 14Z' fill='%23fff'/%3E%3C/svg%3E") top / 100% 100% no-repeat;
}
.ace-intro.is-out { transform: translateY(calc(-100% - 30px)); opacity: 0; pointer-events: none; }
.ace-intro__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 24px; }
.ace-intro__logo { width: clamp(96px, 14vw, 150px); height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.5)); animation: ace-intro-pop .9s cubic-bezier(.3,1.5,.5,1) both; }
.ace-intro__title { margin: 8px 0 0; color: #fff; font: 900 clamp(46px, 8vw, 104px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 0 40px rgba(233,196,106,.45); animation: ace-intro-rise .8s .35s cubic-bezier(.2,.8,.2,1) both; }
.ace-intro__sub { margin: 0; color: var(--gold, #e9c46a); font: 800 clamp(16px, 2vw, 22px)/1 var(--display); text-transform: uppercase; letter-spacing: .3em; animation: ace-intro-rise .8s .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ace-intro-pop { from { opacity: 0; transform: scale(.4) rotate(-14deg); } }
@keyframes ace-intro-rise { from { opacity: 0; transform: translateY(26px); } }
html:has(body.ace-intro-on) { overflow: hidden; }

/* after the intro: the Christmas banner drops in, then the subscription banner rises */
@media (prefers-reduced-motion: no-preference) {
  /* visible by default; the animation only adds movement (fill: backwards), so nothing can get stuck hidden */
  .theme-christmas.ace-intro-done .ace-xmas { animation: ace-xmas-drop .9s .15s cubic-bezier(.2,.9,.25,1.15) backwards; }
  .theme-christmas.ace-intro-done .ace-sub--hero { animation: ace-fade-up .8s .45s cubic-bezier(.2,.8,.2,1) backwards; }
  @keyframes ace-xmas-drop { 0% { opacity: 0; transform: translateY(-60px) scale(.97); } 100% { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .ace-intro { display: none; } }
