/* ============================================================
   FX: border beam, shimmer button, dock, purchase celebration,
   bundle saving, creator codes, try-on, coin shop.
   Everything switches off for people who ask their device for reduced motion.
   ============================================================ */

/* ---------- border beam (one light running round the card you want picked) ---------- */
@property --l10-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.l10-beam { position: relative; }
.l10-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--l10-a), transparent 0 62%, var(--beam, #ffc83d) 84%, #fff 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: l10-beam 4.2s linear infinite;
  pointer-events: none;
}
@keyframes l10-beam { to { --l10-a: 360deg; } }

/* ---------- shimmer: a soft shine sweeps over the button every few seconds ---------- */
.l10-shimmer { position: relative; overflow: hidden; isolation: isolate; }
.l10-shimmer::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -60%;
  width: 45%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  animation: l10-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes l10-shimmer { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ---------- dock: category slots swell near the cursor (set by fx.js) ---------- */
@media (hover: hover) and (pointer: fine) {
  .l10-hotbar__list.is-dock { padding-top: 10px; padding-bottom: 10px; }
  .l10-hotbar__item { transition: scale var(--t-fast) var(--spring); scale: var(--dk, 1); transform-origin: center; }
}

/* ---------- purchase celebration ---------- */
.l10-win {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 4, 6, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--t-med);
}
.l10-win.is-on { opacity: 1; }
.l10-win__box {
  position: relative;
  max-width: 380px;
  padding: 34px 30px 28px;
  text-align: center;
  border-radius: 22px;
  background: var(--wine-850, #221015);
  box-shadow: var(--bevel), 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  transform: translateY(14px) scale(0.96);
  transition: transform var(--t-slow) cubic-bezier(0.22, 1, 0.36, 1);
}
.l10-win.is-on .l10-win__box { transform: none; }
.l10-win__check { width: 84px; height: 84px; margin: 0 auto 14px; display: block; }
.l10-win__check circle { fill: rgba(47, 181, 116, 0.16); stroke: #2fb574; stroke-width: 3; stroke-dasharray: 189; stroke-dashoffset: 189; }
.l10-win__check path { fill: none; stroke: #8fe3b4; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.l10-win.is-on .l10-win__check circle { animation: l10-draw 0.6s 0.1s ease-out forwards; }
.l10-win.is-on .l10-win__check path { animation: l10-draw 0.45s 0.6s ease-out forwards; }
@keyframes l10-draw { to { stroke-dashoffset: 0; } }
.l10-win h2 { margin: 0 0 6px; font-size: 1.5rem; letter-spacing: -0.02em; }
.l10-win p { margin: 0 0 20px; color: var(--bone-dim, #c4b5ad); }
.l10-win canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- bundle saving ---------- */
.l10-bundle {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 0 0 18px; padding: 14px 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 200, 61, 0.14), rgba(232, 36, 63, 0.1));
  box-shadow: var(--bevel);
}
.l10-bundle__was { position: relative; color: var(--bone-mute, #8f7f7a); font-weight: 700; }
.l10-bundle__was::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; background: var(--heart-hi, #ff4a62); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) 0.3s var(--spring); }
.l10-bundle.is-in .l10-bundle__was::after { transform: scaleX(1); }
.l10-bundle__now { font-size: 1.5rem; font-weight: 800; }
.l10-bundle__save { padding: 4px 10px; border-radius: 999px; background: #ffc83d; color: #2b1a00; font-weight: 800; font-size: 13px; opacity: 0; transform: scale(0.6); transition: opacity var(--t-med) 0.6s, transform var(--t-slow) 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.l10-bundle.is-in .l10-bundle__save { opacity: 1; transform: none; }

/* ---------- coin shop ---------- */
.cs { display: grid; gap: 22px; }
.cs__main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.cs__panel { padding: 24px; border-radius: 20px; background: var(--wine-850, #221015); box-shadow: var(--bevel); display: flex; flex-direction: column; gap: 16px; }
.cs__big { display: flex; align-items: center; gap: 14px; }
.cs__big i { font-size: 54px; }
.cs__num { font: 800 clamp(2.4rem, 6vw, 3.6rem)/1 'Silkscreen', 'Inter', sans-serif; color: #ffc83d; font-variant-numeric: tabular-nums; }
.cs__unit { color: var(--bone-dim, #c4b5ad); font-weight: 700; }
.cs__bonus { align-self: flex-start; padding: 4px 11px; border-radius: 999px; background: #2fb574; color: #04210f; font-weight: 800; font-size: 13px; transition: opacity var(--t-fast), transform var(--t-med) cubic-bezier(0.22, 1, 0.36, 1); }
.cs__bonus[hidden] { display: none; }
.cs__bonus.pop { transform: scale(1.18); }
.cs__range { width: 100%; accent-color: #ffc83d; height: 32px; }
.cs__ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--bone-mute, #8f7f7a); margin-top: -8px; }
.cs__price { font-size: 1.7rem; font-weight: 800; }
.cs__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-content: start; }
.cs__tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 16px; border: 0; text-align: left; cursor: pointer; color: var(--bone, #f2e9e2); background: var(--wine-800, #2c161c); box-shadow: var(--bevel); font: inherit; transition: translate var(--t-fast), background var(--t-fast); }
.cs__tile:hover { translate: 0 -3px; }
.cs__tile.is-on { background: var(--wine-700, #3b1e26); box-shadow: inset 0 0 0 2px #ffc83d; }
.cs__tile i { font-size: 30px; margin-bottom: 4px; }
.cs__tile b { font-size: 1.05rem; }
.cs__tile small { color: var(--bone-mute, #8f7f7a); }
.cs__flag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: #ffc83d; color: #2b1a00; font-size: 11px; font-weight: 800; }
@media (max-width: 760px) { .cs__main { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .l10-beam::before, .l10-shimmer::after { animation: none; }
  .l10-shimmer::after { display: none; }
  .l10-win, .l10-win__box, .l10-bundle__save, .l10-bundle__was::after { transition: none; }
  .l10-win__check circle, .l10-win__check path { stroke-dashoffset: 0; animation: none !important; }
  .l10-hotbar__item { scale: 1 !important; }
}

/* ---------- tags: SALE / LIMITED / BEST VALUE / POPULAR / NEW (cards, rank columns, coin packs) ---------- */
.package-tag, .rg-ribbon, .cs__flag {
  --t1: #ffc83d; --t2: #e8920f; --tx: #2b1a00;
  gap: 5px;
  border: 0;
  background: linear-gradient(180deg, var(--t1), var(--t2));
  color: var(--tx);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 6px 14px -6px var(--t2), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.package-tag i, .rg-ribbon i { font-size: 13px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35)); }
.rg-ribbon { display: inline-flex; align-items: center; }
.rg-ribbon i { font-size: 11px; }
.package-tag--sale, .rg-ribbon[data-t="sale"] { --t1: #ff5a72; --t2: #c4152f; --tx: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.package-tag--limited, .rg-ribbon[data-t="limited"] { --t1: #ff9a3d; --t2: #d9480f; --tx: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.package-tag--best-value, .rg-ribbon[data-t="best"], .cs__flag { --t1: #ffd95a; --t2: #e8920f; --tx: #2b1a00; }
.package-tag--popular, .rg-ribbon[data-t="popular"] { --t1: #ff6fa5; --t2: #b4237a; --tx: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }
.package-tag--new, .rg-ribbon[data-t="new"] { --t1: #4be39a; --t2: #12905a; --tx: #04210f; }
.rg-feat .rg-ribbon { background: linear-gradient(180deg, var(--t1), var(--t2)); color: var(--tx); }
.package-tag--limited i, .rg-ribbon[data-t="limited"] i { animation: l10-tilt 2.4s ease-in-out infinite; }
@keyframes l10-tilt { 0%, 70%, 100% { rotate: 0deg; } 80% { rotate: -14deg; } 90% { rotate: 12deg; } }
.rg-disc { background: linear-gradient(180deg, #ff5a72, #c4152f); color: #fff; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 12px -6px #c4152f, 0 0 0 1px rgba(0, 0, 0, 0.35); }
.cs__flag { display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .package-tag--limited i, .rg-ribbon[data-t="limited"] i { animation: none; } }
/* the rank table sets its own ribbon colours later in the page, so these need a stronger selector */
.rg-pack .rg-ribbon[data-t] { background: linear-gradient(180deg, var(--t1), var(--t2)); color: var(--tx); font-weight: 800; letter-spacing: 0.09em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 6px 14px -6px var(--t2), 0 0 0 1px rgba(0, 0, 0, 0.35); }
.rg-pack .rg-ribbon[data-t="sale"], .rg-pack .rg-ribbon[data-t="limited"], .rg-pack .rg-ribbon[data-t="popular"] { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }

/* ---------- cart drawer ---------- */
.basket .basket-header { align-items: center; padding: 22px 64px 18px 22px; background: linear-gradient(180deg, var(--wine-850), var(--wine-900)); }
.l10-bk-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.l10-bk-head { width: 46px; height: 46px; border-radius: 12px; image-rendering: pixelated; background: var(--wine-800); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08); flex: none; }
.l10-bk-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.l10-bk-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lantern, #ffa23d); }
.l10-bk-name { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l10-bk-out { font-size: 14px; color: var(--bone-mute); }
.l10-bk-out:hover { color: var(--heart-hi); }
.l10-bk-count { flex: none; padding: 5px 11px; border-radius: 999px; background: var(--wine-700); font-size: 12.5px; font-weight: 700; color: var(--bone-dim); }
.basket .basket-items { padding: 10px 16px; gap: 10px; }
.basket .basket-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; padding: 12px; border-radius: 16px; border: 0; background: var(--wine-850); box-shadow: var(--bevel); }
.l10-bk-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--wine-950); box-shadow: var(--bevel-in); font-size: 28px; }
.basket .basket-item .info { margin: 0; }
.basket .basket-item .title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.basket .basket-item .title:hover { color: var(--heart-hi); }
.basket .basket-item .options { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.l10-bk-opt { padding: 2px 8px; border-radius: 999px; background: var(--wine-700); font-size: 11.5px; color: var(--bone-dim); }
.basket .basket-item .quantity-field { height: 36px; }
.basket .basket-item .quantity-field .adjust { width: 30px; }
.basket .basket-item .remove { width: 32px; min-height: 32px; height: 32px; }
.basket .basket-empty { display: grid; justify-items: center; gap: 10px; }
.basket .basket-empty i { font-size: 56px; opacity: 0.55; }
.basket .basket-checkout { padding: 16px 20px 24px; background: linear-gradient(180deg, var(--wine-900), var(--wine-950)); }
.basket .basket-checkout .l10-couponnote { margin: 0 0 16px; font-size: 13px; }
.basket .basket-checkout .l10-couponnote i { flex: none; width: 32px; height: 32px; font-size: 32px; vertical-align: 0; }
.basket .basket-checkout h3 { align-items: center; margin-bottom: 14px; }
.basket .basket-checkout .total strong, .basket .basket-checkout .total { font-size: 1.9rem; font-weight: 800; color: var(--bone); letter-spacing: -0.02em; }
.basket .basket-checkout .checkout { gap: 10px; background: linear-gradient(180deg, #4be39a, #12905a); color: #04210f; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 12px 24px -12px #12905a; }
.basket .basket-checkout .checkout:hover { background: linear-gradient(180deg, #6cf0b0, #17a56a); }
.basket .basket-checkout .checkout:disabled { opacity: 0.45; filter: grayscale(0.6); cursor: not-allowed; }
@media (max-width: 480px) {
  .basket .basket-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .basket .basket-item .remove { grid-column: 3; grid-row: 1; justify-self: end; }
  .basket .basket-item .quantity-field { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
  .l10-bk-ico { width: 44px; height: 44px; grid-row: 1 / 3; }
}

/* ---------- bigger cart button on desktop ---------- */
@media (min-width: 900px) {
  .l10-cart .basket-button { min-width: 68px; min-height: 62px; padding: 0 20px; font-size: 30px; border-radius: 18px; }
  .l10-cart .basket-button-amount { top: -9px; right: -9px; min-width: 26px; height: 26px; font-size: 13px; line-height: 26px; }
}

/* ---------- tags, clean version: crisp at normal size and at any zoom (no tiny icons, flatter) ---------- */
.package-tag i, .rg-ribbon i { display: none; }
.package-tag, .rg-ribbon, .cs__flag {
  gap: 0;
  padding: 3px 9px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.rg-pack .rg-ribbon[data-t] { padding: 3px 9px; font-size: 10px; letter-spacing: 0.08em; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.45); }
.rg-disc { padding: 2px 7px; font-size: 10.5px; line-height: 1.5; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.45); }
@media (max-width: 700px) { .rg-pack .rg-ribbon[data-t] { padding: 2px 6px; font-size: 10px; letter-spacing: 0.05em; } }

/* ---------- gift pop-up ---------- */
.l10-gift-sub { margin: 0 0 4px; color: var(--bone-dim, #c4b5ad); font-size: 15px; line-height: 1.45; }
.gift-form-popup .popup-content .btn-primary { gap: 8px; }

/* "Choose a gift" scrolls up to the category tiles and gives them a short nudge */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#l10-cats { scroll-margin-top: calc(var(--hotbar-h, 0px) + 18px); }
#l10-cats:target .l10-tile { animation: l10-nudge 0.7s ease-out both; }
#l10-cats:target .l10-tile:nth-child(2) { animation-delay: 0.06s; }
#l10-cats:target .l10-tile:nth-child(3) { animation-delay: 0.12s; }
#l10-cats:target .l10-tile:nth-child(4) { animation-delay: 0.18s; }
#l10-cats:target .l10-tile:nth-child(n+5) { animation-delay: 0.24s; }
@keyframes l10-nudge { 0% { translate: 0 0; } 35% { translate: 0 -8px; } 100% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { #l10-cats:target .l10-tile { animation: none; } }

/* ---------- options pop-up (gift card e-mail, other variables) ---------- */
.store-product-options .l10-opt-badge { display: block; width: 76px; height: 76px; margin: 0 0 14px; border-radius: 20px; background: var(--px-gift) center / 64px 64px no-repeat, radial-gradient(70% 70% at 50% 55%, rgba(255, 162, 61, 0.35), transparent 80%), var(--wine-950); box-shadow: var(--bevel-in); image-rendering: pixelated; }
.store-product-options .l10-opt-sub { margin: 10px 0 22px; color: var(--bone-dim, #c4b5ad); font-size: 15px; line-height: 1.5; }
.store-product-options .field-email label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone-dim, #c4b5ad); }
.store-product-options .field-email input { min-height: 52px; font-size: 16px; font-weight: 600; }
.store-product-options .l10-opt-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 200, 61, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 200, 61, 0.22); color: var(--bone-dim, #c4b5ad); font-size: 13.5px; line-height: 1.45; }
.store-product-options .l10-opt-note i { flex: none; margin-top: 2px; font-size: 16px; color: #ffc83d; }

.store-product-options .l10-opt-badge + .product-title { margin: 0; line-height: 1.2; }


/* ---------- Easter (season "easter", Mar 20 - Apr 25) ---------- */
html.season-easter { --heart: #c23f78; --heart-hi: #d0508a; --heart-lo: #9a2f5f; --lantern: #ffe08a; --ok: #9be8b0; }
html.season-easter .l10-event--easter { display: block; }
.l10-event--easter .l10-event__inner {
  background:
    radial-gradient(45% 140% at 100% 50%, rgba(247, 131, 172, 0.28), transparent 70%),
    radial-gradient(40% 140% at 0% 50%, rgba(168, 230, 181, 0.16), transparent 70%),
    linear-gradient(110deg, #1d1420 0%, #16111a 50%, #2a1420 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 224, 138, 0.2), inset 0 -4px 0 rgba(0, 0, 0, 0.3), 0 20px 50px -26px rgba(247, 131, 172, 0.5);
}
.l10-event--easter .l10-event__eyebrow { color: #ffe08a; }
.l10-event--easter .l10-event__eyebrow::before { background: #f783ac; box-shadow: 0 0 10px #f783ac; }

/* ---------- visible keyboard focus (keeps any more specific focus style) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--lantern, #ffd166); outline-offset: 2px; }


/* ---------- touch comfort (phones and touch screens): bigger tap areas, calmer footer ---------- */
@media (max-width: 720px), (pointer: coarse) {
  .key-card__qty-btn { min-height: 44px; min-width: 40px; }
  .l10-ipcopy { position: relative; }
  .l10-ipcopy::after { content: ""; position: absolute; inset: -9px -8px; }
  .l10-footer__col { gap: 0; }
  .l10-footer__col h4 { margin-bottom: 6px; }
  .l10-footer__col a, .l10-footer__col button { display: block; padding: 11px 0; }
  .l10-footer__credit a { display: inline-block; padding: 8px 2px; }
  .l10-back { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 720px) {
  .l10-footer__grid { gap: 28px; }
  .l10-footer__cols { gap: 8px 40px; }
}

/* ---------- notch and home indicator (viewport-fit=cover is set in head.twig) ---------- */
.l10-footer { padding-bottom: env(safe-area-inset-bottom); }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }


/* ==========================================================================
   Phone comfort 2 + Anime.js layer styles
   ========================================================================== */
/* no zoom-in when tapping a text field on iPhone */
@media (pointer: coarse) {
  input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]), select, textarea { font-size: 16px !important; }
}

/* hotbar: soft fade shows there is more to swipe */
@media (max-width: 720px) {
  .l10-hotbar__list[data-l10-fade] {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%);
  }
}

/* coins: slider with - / + buttons */
.cs__row { display: flex; align-items: center; gap: 10px; }
.cs__row .cs__range { flex: 1; min-width: 0; }
.cs__step { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800; line-height: 1; color: var(--bone); background: var(--wine-800, #2c161c); box-shadow: var(--bevel); }
.cs__step:disabled { opacity: 0.4; }
@media (pointer: coarse) { .cs__range { height: 44px; } }

/* coins: sticky buy bar on phones (shows once the real buy button scrolled away) */
.l10-cbar { display: none; }
@media (max-width: 720px) {
  .l10-cbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; display: flex; align-items: center; gap: 12px; padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: var(--wine-900); border-top: 1px solid rgba(255, 255, 255, 0.08); transform: translateY(115%); visibility: hidden; transition: transform var(--t-med) var(--spring), visibility 0s linear var(--t-med); }
  .l10-cbar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
  body:has(.l10-mcart:not([data-count="0"])) .l10-cbar { bottom: calc(84px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; }
  .l10-cbar__info { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
  .l10-cbar__info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .l10-cbar__info span { font-size: 13px; color: var(--bone-dim); }
  .l10-cbar__buy { flex: none; }
}

/* intro: parts wait invisible until the timeline starts (first visit of a session, home page only) */
html.l10-intro-pending .l10-hotbar__item,
html.l10-intro-pending .l10-logo,
html.l10-intro-pending .l10-hero__lede,
html.l10-intro-pending .l10-hero__actions > * { opacity: 0; }

/* Anime.js is active: its motion replaces the old CSS loops */
html.l10-anime .l10-float { animation: none; translate: 0 calc(var(--bob, 0) * 1px); }
html.l10-anime .l10-splash { animation: none; }
html.l10-anime .l10-vote__item i { animation: none; }
html.l10-anime .l10-gift__box i { animation: none; }
/* press feel works through the separate "scale" property so hover transforms stay untouched */
html.l10-anime :is(.button, .rg-buy, .rg-gift, .rg-kitbtn, .key-card__qty-btn, .l10-slot, .cs__step, .l10-ipcopy, .l10-splash) { scale: var(--press, 1); }

/* very wide screens: a little more room for the content (everything is built on --wrap) */
@media (min-width: 1700px) { :root { --wrap: 1320px; } }


/* ==========================================================================
   Motion layer 2 styles
   ========================================================================== */
/* scroll progress line */
.l10-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2147483000; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--heart-lo, #a22), var(--heart, #e8243f), var(--lantern, #ffd166)); pointer-events: none; }

/* home hero drifts at different speeds while scrolling away (--hp runs 0 to 1) */
html.l10-anime .l10-hero__items { translate: 0 calc(var(--hp, 0) * -48px); }
html.l10-anime .l10-hero__lede { translate: 0 calc(var(--hp, 0) * 26px); opacity: calc(1 - var(--hp, 0) * 0.65); }
html.l10-anime .l10-logo { translate: 0 calc(var(--hp, 0) * -22px); }

/* magnetic buttons */
html.l10-anime :is(.l10-hero__actions .button, .l10-discord .button) { translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px); }

/* growing underline on inline links, small nudge on footer links */
.l10-section__head p a, .l10-footer__credit a, .widget .descr a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--t-med) var(--spring); }
.l10-section__head p a:hover, .l10-footer__credit a:hover, .widget .descr a:hover { background-size: 100% 1.5px; }
@media (hover: hover) { .l10-footer__col a { transition: color var(--t-fast), translate var(--t-med) var(--spring); } .l10-footer__col a:hover { translate: 5px 0; } }

/* heading underline */
.l10-uline { display: block; width: 120px; height: 8px; margin-top: 8px; overflow: visible; color: var(--lantern, #ffd166); opacity: 0; }
