/* Gambit Atelier — premium boards, pieces and effects. Builds on the core tokens
   (--bg, --surface, --ink, --font-display …) so light and dark themes follow. */

:root, :is(.splash, .home-hero, .gp-on-hero, .gp-pf-banner, .g-bn-classic, .g-adv-art, .atl-drop-hero) {
  --r-included: var(--ink-3);
  --gold-1: var(--gold-hi);
  --gold-2: var(--gold);
  --gold-3: var(--gold-lo);
  --gold-grad: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 100%);
  --showroom: var(--bg-deep);
}

html, body { overflow-x: clip; }
html.atl-open { overflow: hidden; }
.atl-crown { width: 1em; height: 1em; flex: none; color: var(--r-legendary); }

/* ---------- premium boards on the real board ---------- */

.board.atl-skin { background: var(--tex) center / 100% 100% no-repeat, repeating-conic-gradient(var(--sq-dark) 0 25%, var(--sq-light) 0 50%) 0 0 / 25% 25%; }
@media (min-width: 600px) {
  .board.atl-skin {
    box-shadow: 0 0 0 2px var(--atl-frame), 0 0 0 5px var(--atl-frame-2), 0 0 0 6px var(--atl-frame-3), 0 26px 50px -22px rgb(var(--shade-rgb)/.6), 0 6px 14px -6px rgb(var(--shade-rgb)/.3);
  }
}
.board.atl-skin .coord { text-shadow: 0 1px 1px rgb(var(--shade-rgb)/.18); }
.board[data-board=atl-neon] .coord { text-shadow: 0 0 6px currentColor; }
.atl-fx { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; pointer-events: none; z-index: 30; }

/* ---------- topbar chip ---------- */

.atl-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: var(--rad-pill);
  background: var(--surface-2); color: var(--ink); font: 800 16px/1 var(--font-display); letter-spacing: .02em; flex: none;
  transition: background .15s, transform .15s;
}
.atl-chip:hover { background: var(--surface-3); }
.atl-chip .atl-crown { width: 17px; height: 17px; filter: drop-shadow(0 1px 0 rgb(var(--shade-rgb)/.15)); }
.atl-chip.bump { animation: atl-bump .5s cubic-bezier(.2, 1.6, .4, 1); }
@media (max-width: 599px) { .atl-chip { height: 34px; } }
@keyframes atl-bump { 0% { transform: scale(1); } 35% { transform: scale(1.16); } 100% { transform: scale(1); } }

.atl-float {
  position: fixed; z-index: 85; transform: translate(-50%, 0); pointer-events: none; display: flex; align-items: center; gap: 3px;
  font: 800 17px/1 var(--font-display); color: var(--r-legendary); text-shadow: 0 1px 0 rgb(var(--shade-rgb)/.12);
  animation: atl-float 1.25s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes atl-float { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, -4px) scale(1.08); } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }
.atl-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 80; }

/* ---------- the Atelier screen ---------- */

.atl {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); color: var(--ink);
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .24s ease, transform .3s cubic-bezier(.2, .9, .3, 1);
}
.atl.in { opacity: 1; transform: none; }
.atl:focus { outline: none; }
.atl-shell { height: 100%; width: min(100%, 1320px); margin-inline: auto; display: grid; grid-template-rows: auto 1fr; position: relative; }
.atl-head {
  display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 24px 12px;
}
.atl-head .icon-btn { color: var(--ink); }
.atl-head .icon-btn:hover { background: var(--surface-2); }
.atl-titles { flex: 1; min-width: 0; }
.atl-titles h2 { margin: 0; font: 800 34px/1 var(--font-display); letter-spacing: .005em; }
.atl-titles p { margin: 3px 0 0; color: var(--ink-3); font-size: 13.5px; }
.atl-balance {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px 0 13px; border-radius: var(--rad-pill);
  background: var(--ink); color: var(--bg); font: 800 21px/1 var(--font-display); letter-spacing: .02em; box-shadow: var(--shadow-1);
}
.atl-balance .atl-crown { width: 20px; height: 20px; color: var(--gold-2); }
.atl-gift {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px; border: 0; border-radius: var(--rad-pill);
  background: var(--gold-grad); color: var(--gold-ink); font-weight: 750; font-size: 14px; box-shadow: 0 6px 16px -8px rgb(var(--gold-rgb)/.8);
  animation: atl-gift 2.4s ease-in-out infinite;
}
.atl-gift svg { width: 19px; height: 19px; }
@keyframes atl-gift { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-6deg); } 93% { transform: rotate(5deg); } 96% { transform: rotate(-2deg); } }

.atl-body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 560px); gap: 24px; padding: 0 24px 24px; }

/* The showroom: always dark, lit by the selected board. */
.atl-stage {
  position: relative; min-height: 0; border-radius: var(--rad-5); overflow: hidden auto; color: var(--ink);
  background: radial-gradient(110% 80% at 50% 18%, color-mix(in srgb, var(--atl-stage, var(--surface-3)) 55%, var(--showroom)) 0%, var(--showroom) 72%);
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 22px; padding: 30px 32px 26px;
  box-shadow: var(--shadow-2); transition: background .5s ease;
}
.atl-stage-glow {
  position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--atl-accent, var(--ink)) 30%, transparent), transparent 65%); filter: blur(30px); opacity: .55; transition: background .5s;
}
.atl-board-wrap { position: relative; --bs: min(500px, calc(100vh - 470px), 100%); width: var(--bs); flex: none; }
.atl-board-wrap::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--shade-rgb)/.55), transparent); pointer-events: none;
}
.atl-board.board { --bs: inherit; width: 100%; box-shadow: 0 0 0 1px rgb(var(--glint-rgb)/.06), 0 30px 60px -24px rgb(var(--shade-rgb)/.9); }
.atl-board.board.atl-skin { box-shadow: 0 0 0 2px var(--atl-frame), 0 0 0 6px var(--atl-frame-2), 0 0 0 7px var(--atl-frame-3), 0 34px 70px -24px rgb(var(--shade-rgb)/.95); }

.atl-info { position: relative; width: min(100%, 520px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.atl-info h3 { color: var(--ink); margin: 2px 0 0; font: 800 36px/1 var(--font-display); letter-spacing: .01em; }
.atl-info > p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 44ch; text-wrap: pretty; }
.atl-info-top { display: flex; gap: 8px; align-items: center; }
.atl-kind { font-size: 12px; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.atl-rar-tag { padding: 4px 9px; border-radius: var(--rad-pill); font: 800 12.5px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; background: rgb(var(--glint-rgb)/.12); }
.atl-rar-tag.r-rare { background: color-mix(in srgb, var(--r-rare) 30%, transparent); color: var(--r-rare); }
.atl-rar-tag.r-epic { background: color-mix(in srgb, var(--r-epic) 34%, transparent); color: var(--r-epic); }
.atl-rar-tag.r-legendary { background: var(--gold-grad); color: var(--gold-ink); }
.atl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.atl-earn { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.atl-parts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.atl-parts li { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: var(--rad-3); background: rgb(var(--glint-rgb)/.07); text-align: left; min-width: 0; }
.atl-parts .atl-th { width: 42px; border-radius: var(--rad-2); }
.atl-parts span { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; min-width: 0; }
.atl-parts b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-parts em { font-style: normal; font-size: 11.5px; color: var(--ink-2); }
.atl-tick { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--on-ok); }
.atl-tick svg { width: 13px; height: 13px; }

.atl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--rad-pill);
  background: var(--grad-accent); color: var(--on-accent); font-weight: 750; font-size: 15px; transition: transform .12s, filter .15s, background .15s; white-space: nowrap;
}
.atl-btn:hover:not([disabled]) { filter: brightness(1.05); transform: translateY(-1px); }
.atl-btn:active:not([disabled]) { transform: translateY(1px) scale(.98); }
.atl-btn[disabled] { opacity: .75; cursor: default; background: rgb(var(--glint-rgb)/.14); color: var(--ink); }
.atl-btn svg { width: 17px; height: 17px; }
.atl-btn.gold { background: var(--gold-grad); color: var(--gold-ink); box-shadow: 0 10px 24px -10px rgb(var(--gold-rgb)/.7), inset 0 1px 0 rgb(var(--glint-rgb)/.6); }
.atl-btn.gold .atl-crown { color: var(--gold-ink); }
.atl-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(var(--glint-rgb)/.28); }
.atl-btn.ghost:empty { display: none; }

/* catalog */
.atl-cat { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.atl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--rad-3); background: var(--surface-2); flex: none; }
.atl-tabs button { flex: 1; height: 38px; border: 0; border-radius: var(--rad-2); background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14px; transition: background .15s, color .15s; }
.atl-tabs button.is-on { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-1); }
.atl-list > * { flex: none; }
.atl-list { min-height: 0; overflow-y: auto; padding: 2px 4px 24px 2px; margin-right: -4px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.atl-sec { margin: 10px 0 -2px; font-size: 15px; font-weight: 750; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.atl-sec span { font-size: 12.5px; font-weight: 650; color: var(--r-legendary); }

.atl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.atl-grid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.atl-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border: 0; border-radius: var(--rad-4); text-align: left; min-width: 0;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .15s, box-shadow .15s, background .15s;
}
.atl-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); background: var(--raised); }
.atl-card.is-sel { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-2); background: var(--raised); }
.atl-card.r-legendary { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r-legendary) 45%, transparent); }
.atl-card.r-legendary.is-sel { box-shadow: inset 0 0 0 2px var(--r-legendary), 0 10px 26px -12px color-mix(in srgb, var(--r-legendary) 70%, transparent); }
.atl-card.r-legendary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgb(var(--gold-rgb)/.28) 45%, transparent 60%) -200% 0 / 250% 100% no-repeat;
  animation: atl-sheen 4.5s ease-in-out infinite;
}
@keyframes atl-sheen { 0%, 55% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
.atl-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0 2px; }
.atl-card-text b { font-size: 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-rar { font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--r-included); }
.r-rare .atl-rar { color: var(--r-rare); }
.r-epic .atl-rar { color: var(--r-epic); }
.r-legendary .atl-rar { color: var(--r-legendary); }
.atl-state { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin: 0 2px; padding: 4px 9px; border-radius: var(--rad-pill); background: var(--surface-2); font: 750 12.5px/1 var(--font-body); color: var(--ink-2); font-style: normal; }
.atl-state svg { width: 13px; height: 13px; }
.atl-state.on { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.atl-state.price { background: transparent; padding-inline: 0; font: 800 16px/1 var(--font-display); letter-spacing: .02em; color: var(--ink); }
.atl-state.price .atl-crown { width: 15px; height: 15px; }
.atl-state.pro { color: var(--r-legendary); background: color-mix(in srgb, var(--r-legendary) 14%, transparent); }
.atl-new { position: absolute; top: 14px; left: 14px; padding: 3px 7px; border-radius: var(--rad-pill); background: var(--err); color: var(--on-err); font: 800 11px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 6px rgb(var(--shade-rgb)/.25); }

/* thumbnails */
.atl-th { position: relative; display: block; aspect-ratio: 1; border-radius: var(--rad-3); overflow: hidden; flex: none; }
.atl-th.board { background-size: 200% 200% !important; background-position: 50% 50% !important; box-shadow: inset 0 0 0 1px rgb(var(--shade-rgb)/.08); }
.atl-th.board i { position: absolute; width: 34%; height: 34%; background-size: 100% 100%; filter: drop-shadow(0 3px 3px rgb(var(--shade-rgb)/.3)); }
.atl-th.board i:nth-child(1) { left: 12%; bottom: 10%; }
.atl-th.board i:nth-child(2) { right: 12%; top: 12%; }
.atl-th.pieces { background: radial-gradient(90% 80% at 50% 30%, var(--raised), var(--surface-3)); }
.atl-th.pieces i { position: absolute; bottom: 8%; width: 46%; height: 46%; background-size: 100% 100%; filter: drop-shadow(0 4px 4px rgb(var(--shade-rgb)/.25)); }
.atl-th.pieces i:nth-child(1) { left: 27%; bottom: 20%; width: 52%; height: 52%; z-index: 1; }
.atl-th.pieces i:nth-child(2) { left: 0; }
.atl-th.pieces i:nth-child(3) { right: 0; z-index: 2; }
.atl-th.fx { background: radial-gradient(circle at 50% 50%, var(--surface-2), var(--bg-deep) 75%); }
.atl-th.fx svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atl-fx-parts, .atl-fx-ring { transform-origin: 50px 50px; animation: atl-burst 2.6s cubic-bezier(.2, .8, .3, 1) infinite; }
.atl-fx-ring { animation-name: atl-burst-ring; }
.atl-card:hover .atl-fx-parts, .atl-card:hover .atl-fx-ring { animation-duration: 1.3s; }
@keyframes atl-burst { 0% { transform: scale(.55); opacity: 0; } 12% { opacity: 1; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes atl-burst-ring { 0% { transform: scale(.3); opacity: 1; } 60% { transform: scale(1.25); opacity: 0; } 100% { transform: scale(1.25); opacity: 0; } }

/* collections */
.atl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.atl-col {
  position: relative; display: flex; flex-direction: column; border: 0; border-radius: var(--rad-4); overflow: hidden; text-align: left; padding: 0; min-width: 0;
  background: var(--bg-deep); color: var(--ink); box-shadow: 0 1px 0 rgb(var(--glint-rgb)/.04) inset, var(--shadow-1); transition: transform .15s, box-shadow .15s;
}
.atl-col:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), 0 14px 30px -18px var(--fx1); }
.atl-col.is-sel { box-shadow: 0 0 0 2px var(--fx1), 0 16px 34px -16px var(--fx1); }
.atl-col-art { position: relative; height: 112px; background-size: 140% auto; background-position: 50% 40%; }
.atl-col-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg-deep)); }
.atl-col-art i { position: absolute; bottom: 8px; width: 64px; height: 64px; background-size: 100% 100%; z-index: 1; filter: drop-shadow(0 6px 6px rgb(var(--shade-rgb)/.45)); }
.atl-col-art i:nth-child(1) { left: calc(50% - 32px); bottom: 16px; width: 72px; height: 72px; z-index: 2; }
.atl-col-art i:nth-child(2) { left: calc(50% - 78px); }
.atl-col-art i:nth-child(3) { left: calc(50% + 14px); }
.atl-col-text { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 4px 14px 14px; }
.atl-col-text b { font: 800 22px/1.05 var(--font-display); letter-spacing: .01em; }
.atl-col-text > span { font-size: 12px; color: var(--ink-2); }
.atl-col-text > span i { font-style: normal; } /* one name per text node, so each is translated */
.atl-col-price { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-style: normal; font: 800 17px/1 var(--font-display); letter-spacing: .02em; }
.atl-col-price s { color: var(--ink-3); font-weight: 700; margin-right: 4px; font-size: 14px; }
.atl-col-price svg { width: 15px; height: 15px; color: var(--gold-2); }
.atl-col .atl-state { margin: 6px 0 0; background: rgb(var(--glint-rgb)/.1); color: var(--ink); }

/* Pro */
  position: relative; overflow: hidden; border-radius: var(--rad-5); padding: 22px 22px 20px; color: var(--ink);
  background: radial-gradient(120% 120% at 100% 0%, rgb(var(--gold-rgb)/.2) 0%, transparent 60%), var(--bg-deep);
  box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb)/.28), var(--shadow-2);
}
.atl-fine { font-size: 11.5px !important; color: var(--ink-3) !important; margin-top: 2px !important; }

.atl-welcome {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translateX(-50%); z-index: 3; width: min(440px, calc(100% - 32px));
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--rad-4); background: var(--bg-deep); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb)/.35), var(--shadow-3); animation: popin .35s cubic-bezier(.2, 1.3, .4, 1);
  transition: opacity .4s, transform .4s;
}
.atl-welcome.out { opacity: 0; transform: translate(-50%, 12px); }
.atl-welcome-ico { width: 44px; height: 44px; border-radius: var(--rad-3); display: grid; place-items: center; background: var(--gold-grad); flex: none; }
.atl-welcome-ico .atl-crown { width: 26px; height: 26px; color: var(--gold-ink); }
.atl-welcome div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.atl-welcome b { font-size: 15px; color: var(--ink); }

/* phones and narrow windows: one scrolling column, showroom on top */
@media (min-width: 900px) {
  .atl-welcome { left: auto; right: 24px; transform: none; }
  .atl-welcome.out { transform: translateY(12px); }
}
@media (max-width: 899px) {
  .atl-shell { display: flex; flex-direction: column; }
  .atl-head { padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px; gap: 8px; }
  .atl-titles h2 { font-size: 28px; }
  .atl-titles p { display: none; }
  .atl-balance { height: 38px; font-size: 19px; padding: 0 13px 0 11px; }
  .atl-gift { height: 38px; padding: 0 12px; }
  .atl-gift span { display: none; }
  .atl-body { display: block; overflow-y: auto; padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 24px); flex: 1; -webkit-overflow-scrolling: touch; }
  .atl-stage { border-radius: var(--rad-5); padding: 22px 16px 20px; gap: 18px; scroll-margin-top: 8px; }
  .atl-board-wrap { --bs: min(calc(100vw - 72px), 420px); }
  .atl-info h3 { font-size: 30px; }
  .atl-cat { margin-top: 16px; }
  .atl-tabs { position: sticky; top: 0; z-index: 2; box-shadow: 0 0 0 6px var(--bg); }
  .atl-list { overflow: visible; padding: 2px 0 8px; margin: 0; }
  .atl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atl-grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atl-cols { grid-template-columns: minmax(0, 1fr); }
  .atl-col { flex-direction: row; }
  .atl-col-art { width: 46%; height: auto; min-height: 120px; flex: none; background-size: cover; }
  .atl-col-art::after { background: linear-gradient(90deg, transparent 50%, var(--bg-deep)); }
  .atl-col-art i { width: 52px; height: 52px; }
  .atl-col-art i:nth-child(1) { width: 60px; height: 60px; left: calc(50% - 30px); }
  .atl-col-art i:nth-child(2) { left: calc(50% - 62px); }
  .atl-col-art i:nth-child(3) { left: calc(50% + 10px); }
  .atl-col-text { justify-content: center; padding: 12px 14px 12px 6px; }
  .atl-parts { gap: 6px; }
  .atl-parts li { flex-direction: column; text-align: center; padding: 8px 4px; }
  .atl-parts .atl-th { width: 52px; }
  .atl-parts span { align-items: center; max-width: 100%; }
  .atl-parts b { max-width: 100%; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .atl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atl-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- entry points in the core app ---------- */

.atl-spot { margin-bottom: 4px; }
.atl-spot-card {
  display: flex; align-items: stretch; width: 100%; padding: 0; border: 0; border-radius: var(--rad-4); overflow: hidden; text-align: left;
  background: var(--bg-deep); color: var(--ink); box-shadow: var(--shadow-1); transition: transform .15s, box-shadow .2s;
}
.atl-spot-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), 0 18px 36px -20px var(--fx1); }
.atl-spot-art { position: relative; width: 42%; min-height: 150px; flex: none; background-size: cover; background-position: 50% 50%; }
.atl-spot-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, var(--bg-deep)); }
.atl-spot-art i { position: absolute; bottom: 14px; width: 30%; aspect-ratio: 1; background-size: 100% 100%; z-index: 1; filter: drop-shadow(0 6px 6px rgb(var(--shade-rgb)/.5)); }
.atl-spot-art i:nth-child(1) { left: 8%; }
.atl-spot-art i:nth-child(2) { left: 32%; bottom: 22px; width: 36%; z-index: 2; }
.atl-spot-art i:nth-child(3) { left: 60%; }
.atl-spot-text { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 18px 16px 4px; min-width: 0; }
.atl-spot-text em { font-style: normal; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--fx1); }
.atl-spot-text > b { font: 800 26px/1.02 var(--font-display); letter-spacing: .01em; }
.atl-spot-text > span { font-size: 13px; color: var(--ink-2); }
.atl-spot-foot { display: flex; align-items: center; gap: 5px; margin-top: 6px; font: 800 17px/1 var(--font-display) !important; color: var(--ink) !important; letter-spacing: .02em; }
.atl-spot-foot s { font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.atl-spot-foot svg { width: 15px; height: 15px; color: var(--gold-2); }

.atl-set-cta {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 14px; padding: 10px 14px 10px 10px; border: 0; border-radius: var(--rad-4); text-align: left;
  background: var(--bg-deep); color: var(--ink); font: 800 17px/1 var(--font-display); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb)/.3);
}
.atl-set-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; font: 700 15px/1.2 var(--font-body); }
.atl-set-cta em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.atl-set-cta .atl-crown { width: 16px; height: 16px; color: var(--gold-2); }
.atl-set-art { position: relative; width: 46px; height: 46px; border-radius: var(--rad-2); background-size: 200%; background-position: center; flex: none; }
.atl-set-art i { position: absolute; inset: 4px; background-size: 100% 100%; filter: drop-shadow(0 2px 2px rgb(var(--shade-rgb)/.4)); }

.swatch.atl-prem, .pset.atl-prem { position: relative; }
.swatch.atl-prem i { box-shadow: inset 0 0 0 1px rgb(var(--shade-rgb)/.1); }
.swatch.atl-prem.r-legendary i, .pset.atl-prem.r-legendary .pset-prev { box-shadow: 0 0 0 2px var(--r-legendary); }
.swatch.atl-prem.r-epic i, .pset.atl-prem.r-epic .pset-prev { box-shadow: 0 0 0 2px color-mix(in srgb, var(--r-epic) 70%, transparent); }
.swatch.atl-prem.r-rare i, .pset.atl-prem.r-rare .pset-prev { box-shadow: 0 0 0 2px color-mix(in srgb, var(--r-rare) 60%, transparent); }
.pset.atl-prem .pset-prev { border-radius: var(--rad-2); }
.atl-locked i, .atl-locked .pset-prev { filter: saturate(.75) brightness(.92); }
.atl-lock { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--bg-deep-rgb)/.78); color: var(--gold-2); box-shadow: 0 1px 3px rgb(var(--shade-rgb)/.3); }
.atl-lock svg { width: 12px; height: 12px; }

.atl-result-earn { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 2px 0 6px; font-size: 14px; color: var(--ink-2); }
.atl-result-earn .atl-crown { width: 17px; height: 17px; }
.atl-result-earn b { font: 800 18px/1 var(--font-display); color: var(--ink); }
.atl-result-earn .link { margin-left: 4px; color: var(--r-legendary); }

@media (prefers-reduced-motion: reduce) {
  .atl, .atl-card, .atl-col, .atl-gift, .atl-card.r-legendary::before, .atl-fx-parts, .atl-fx-ring { animation: none !important; transition: none !important; }
}

/* ---------- exclusive drops ---------- */

:root, :is(.splash, .home-hero, .gp-on-hero, .gp-pf-banner, .g-bn-classic, .g-adv-art, .atl-drop-hero) { --ex-grad: var(--grad-signature); }
.r-exclusive .atl-rar { background: var(--ex-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.atl-rar-tag.r-exclusive { background: var(--ex-grad); color: var(--bg-deep); }
.atl-card.r-exclusive { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r-exclusive) 40%, transparent); }
.atl-card.r-exclusive.is-sel { box-shadow: inset 0 0 0 2px var(--r-exclusive), 0 12px 28px -14px color-mix(in srgb, var(--r-exclusive) 70%, transparent); }
.atl-card.r-exclusive::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgb(var(--glint-rgb)/.3) 45%, transparent 60%) -200% 0 / 250% 100% no-repeat;
  animation: atl-sheen 4s ease-in-out infinite;
}
.atl-state.early { color: var(--bg-deep); background: var(--ex-grad); }
.atl-state.early svg { width: 12px; height: 12px; }
.atl-col .atl-state.early { background: var(--ex-grad); color: var(--bg-deep); }

.atl-drop-hero {
  position: relative; display: flex; align-items: stretch; width: 100%; min-height: 200px; padding: 0; border: 0; border-radius: var(--rad-5); overflow: hidden; text-align: left; flex: none;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--d1) 40%, var(--bg-deep)), var(--bg-deep) 70%); color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d1) 45%, transparent), 0 20px 40px -24px var(--d1);
}
.atl-dh-art { position: relative; width: 48%; flex: none; background-size: cover; background-position: center; }
.atl-dh-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--bg-deep)); }
.atl-dh-art i { position: absolute; bottom: 12px; width: 26%; aspect-ratio: 1; background-size: 100% 100%; z-index: 1; filter: drop-shadow(0 8px 8px rgb(var(--shade-rgb)/.55)); animation: atl-bob 3.6s ease-in-out infinite; }
.atl-dh-art i:nth-child(1) { left: 2%; animation-delay: -.4s; }
.atl-dh-art i:nth-child(2) { left: 24%; bottom: 22px; width: 32%; z-index: 2; animation-delay: -1.2s; }
.atl-dh-art i:nth-child(3) { left: 50%; width: 22%; animation-delay: -2s; }
.atl-dh-art i:nth-child(4) { left: 68%; width: 26%; animation-delay: -2.8s; }
@keyframes atl-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.atl-dh-text { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 22px 20px 6px; min-width: 0; }
.atl-dh-text em { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; padding: 4px 10px; border-radius: var(--rad-pill); background: var(--ex-grad); font: 800 12px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-style: normal; }
.atl-dh-text em svg { width: 12px; height: 12px; }
.atl-dh-text b { font: 800 34px/1 var(--font-display); letter-spacing: .01em; }
.atl-dh-text > span { font-size: 13.5px; color: rgb(var(--glint-rgb)/.72); }
.atl-dh-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font: 800 16px/1 var(--font-display) !important; color: var(--ink) !important; letter-spacing: .02em; }
.atl-dh-cta svg { width: 15px; height: 15px; color: var(--gold-2); }

.atl-early-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--rad-4); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
.atl-early-card.on { background: color-mix(in srgb, var(--r-exclusive) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r-exclusive) 35%, transparent); }
.atl-early-card > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.atl-early-card b { font-size: 14.5px; }
.atl-early-card span { font-size: 12.5px; color: var(--ink-2); }
.atl-early-ico { width: 38px; height: 38px; border-radius: var(--rad-3); display: grid; place-items: center; flex: none; background: var(--ex-grad); color: var(--bg-deep); }
.atl-early-ico svg { width: 18px; height: 18px; }
.atl-switch { position: relative; width: 48px; height: 28px; border: 0; border-radius: var(--rad-pill); background: var(--surface-3); flex: none; transition: background .2s; }
.atl-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 3px rgb(var(--shade-rgb)/.3); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.atl-switch.on { background: var(--r-exclusive); }
.atl-switch.on i { background: var(--bg-deep); transform: translateX(20px); }
@media (max-width: 899px) {
  .atl-drop-hero { flex-direction: column; }
  .atl-dh-art { width: 100%; height: 170px; }
  .atl-dh-art::after { background: linear-gradient(180deg, transparent 45%, var(--bg-deep)); }
  .atl-dh-text { padding: 4px 18px 18px; }
  .atl-dh-text b { font-size: 30px; }
}
