@charset "UTF-8";
/* French SEO pages (scripts/build_seo_pages.py): card sheets, rarity lists, guides. Theme tokens only. */
.seo { padding-top: 18px; padding-bottom: 40px; overflow-wrap: break-word; }
.seo h1 { font-size: clamp(28px, 4.2vw, 44px); margin: 6px 0 14px; }
.seo h2 { margin: 30px 0 10px; font-size: clamp(22px, 2.6vw, 28px); }
.seo h3 { margin: 18px 0 6px; }
.seo p, .seo li { line-height: 1.6; }
.seo p a:not(.btn), .seo li a, .seo td a, .seo dd a { color: var(--accent); font-weight: 700; }
.seo-lead { font-size: 18px; color: var(--muted); max-width: 46em; }
.seo .tldr { padding: 14px 18px; border-radius: 16px; margin: 14px 0; }
.seo .tldr p { margin: 0; }

.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 8px; }
.crumbs a { color: inherit; }
.crumbs [aria-current] { font-weight: 800; color: var(--text); }

.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.seo a.btn { text-decoration: none; }
.seo-end { font-size: 18px; margin-top: 30px; }

/* card sheet: the card next to its facts */
.seo-card-top { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: start; margin: 18px 0 8px; }
.seo-card-art { display: grid; place-items: center; }
.seo-card .card { width: 100%; max-width: 260px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; padding: 16px 18px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 700; }

/* thumbnails */
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; margin: 14px 0; }
.seo-thumb { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 13.5px; line-height: 1.3; text-align: center; }
.seo-thumb img { width: 100%; height: auto; aspect-ratio: 320 / 426; object-fit: contain; border-radius: 10px; background: var(--surface-2); transition: transform .15s ease; }
.seo-thumb:hover img, .seo-thumb:focus-visible img { transform: translateY(-3px); }
/* tier colours are neon on the dark theme; on the light one they fall under 3:1, so names stay --text there */
:root:not([data-theme="light"]) .seo-thumb.t-mythic span { color: var(--mythic); }
:root:not([data-theme="light"]) .seo-thumb.t-legendary span { color: var(--legendary); }
:root:not([data-theme="light"]) .seo-thumb.t-epic span { color: var(--epic); }
:root:not([data-theme="light"]) .seo-thumb.t-rare span { color: var(--rare); }

.seo-az { columns: 3 220px; column-gap: 24px; padding-left: 18px; }
.seo-az li { break-inside: avoid; }

.seo table.odds { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-weight: 700; }
.seo table.odds th, .seo table.odds td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.seo table.odds th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.seo .table-scroll { overflow-x: auto; }

.seo-faq-item { padding: 14px 18px; border-radius: 16px; margin: 10px 0; }
.seo-faq-item h3 { margin: 0 0 6px; font-size: 18px; }
.seo-faq-item p { margin: 0; }

@media (max-width: 640px) {
  .seo-card-top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .seo-card .card { max-width: 220px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .seo-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  .seo table.odds th, .seo table.odds td { padding: 6px 6px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .seo-thumb img { transition: none; } }


/* ------------------------------------------------------------ real cards on the guides
   The game's own card (bp.mcard): holo.js tilts it and sweeps its shine under the pointer, and sways it at rest
   inside .seo-live / .seo-banner-card, so a phone that never hovers still sees it alive. */
.seo-live { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.seo-live .card { max-width: none; }
.seo-live .pill { position: static; font-size: 12px; padding: 2px 10px; }
.seo-live-name { font-weight: 800; font-size: 14px; line-height: 1.25; text-align: center; max-width: 16em; }
/* the carousels own the horizontal swipe; holo's pan-y would swallow it (same fix as the home's .grid) */
.seo-fan .card, .seo-fan .card__translater, .seo-fan .card__rotator,
.seo-deck .card, .seo-deck .card__translater, .seo-deck .card__rotator { touch-action: pan-x pan-y pinch-zoom; }

/* the fan under the hero: one card per rarity, rising from the commonest to the Full Art */
.seo-band { position: relative; margin: 6px 0 44px; }
.seo-band::before { content: ""; position: absolute; inset: 10% 8% 18%; z-index: -1; pointer-events: none; filter: blur(48px); opacity: .55;
  background: radial-gradient(closest-side at 30% 50%, #a45bff, transparent), radial-gradient(closest-side at 70% 50%, #3ff0c8, transparent); }
.seo-fan { display: flex; justify-content: center; align-items: flex-end; padding: 34px 0 6px; }
.seo-fan .seo-live { flex: 0 1 190px; margin: 0 -10px; transform-origin: 50% 120%;
  transform: rotate(calc(var(--k) * 4deg)) translateY(calc(var(--k) * var(--k) * 5px));
  transition: transform .25s cubic-bezier(.2,.8,.3,1.2); }
.seo-fan .seo-live:nth-child(1) { z-index: 1; } .seo-fan .seo-live:nth-child(2) { z-index: 2; }
.seo-fan .seo-live:nth-child(3) { z-index: 3; } .seo-fan .seo-live:nth-child(4) { z-index: 4; }
.seo-fan .seo-live:nth-child(5) { z-index: 5; } .seo-fan .seo-live:nth-child(6) { z-index: 6; }
@media (hover: hover) {
  .seo-fan .seo-live:hover, .seo-fan .seo-live:focus-visible { z-index: 9;
    transform: rotate(0deg) translateY(-22px) scale(1.08); }
  .seo-deck .seo-live:hover .card, .seo-deck .seo-live:focus-visible .card { transform: translateY(-6px); }
}
.seo-deck .seo-live .card { transition: transform .2s ease; }
.seo-swipe { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }

/* a deck of real cards inside an article */
/* every deck holds a multiple of three: three wide cards per row read as a hand, not a thumbnail grid */
.seo-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 30px 36px; margin: 24px 0 14px; }

/* what's in the game: four tiles instead of a bullet list */
.seo-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.seo-feat { padding: 18px 18px 16px; border-radius: 20px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(0,0,0,.12); }
.seo .seo-feat h3 { margin: 8px 0 4px; font-size: 18px; }
.seo .seo-feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.seo-feat-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--epic) 30%, transparent), color-mix(in srgb, var(--mythic) 30%, transparent)); }

/* pull rates as bars: the width is the chance */
.seo-rates { list-style: none; display: grid; gap: 12px; margin: 16px 0; padding: 18px 20px; border-radius: 20px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.seo-rate { display: grid; grid-template-columns: 112px minmax(0, 1fr) 62px; align-items: center; gap: 12px; }
.seo-rate .pill { position: static; text-align: center; font-size: 13px; padding: 3px 8px; }
.seo-rate b { text-align: right; font-size: 15px; }
.seo-bar { display: block; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.seo-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--common); }
.seo-rate.r-rare i { background: linear-gradient(90deg, #52b6ff, #2f7bff); }
.seo-rate.r-epic i { background: linear-gradient(90deg, #c07bff, #8a3dff); }
.seo-rate.r-legendary i { background: linear-gradient(90deg, #ffc233, #ff8a1a); }
.seo-rate.r-mythic i { background: linear-gradient(90deg, #3ff0c8, #1a8cff 55%, #7a3dff); }
.seo-rate.r-fullart i { background: linear-gradient(90deg, #ff8ad8, #8f6bff, #3fd3ff); }
.seo-rate.r-shiny i { background: #e9c15a; }

/* the closing call: three real cards fanned out beside the pack button */
.seo-banner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px;
  margin: 30px 0 10px; padding: 34px 40px; border-radius: 28px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #7a3dff 0, #3a1d8f 45%, #0f1a3d 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 50px rgba(58,29,143,.35); }
.seo-banner::after { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(63,240,200,.35), transparent); }
.seo-banner-fan { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; padding: 10px 0; }
.seo-banner-card { flex: 0 1 140px; margin: 0 -16px; transform-origin: 50% 110%;
  transform: rotate(calc(var(--k) * 10deg)) translateY(calc(var(--k) * var(--k) * 12px)); }
.seo-banner-card:nth-child(2) { z-index: 2; flex-basis: 158px; }
.seo-banner-card .card { max-width: none; }
.seo-banner-copy { position: relative; z-index: 1; }
.seo .seo-banner-title { margin: 0 0 8px; font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; color: #fff; }
.seo .seo-banner-copy p { color: rgba(255,255,255,.85); }
.seo .seo-banner .btn { display: block; max-width: 360px; margin-top: 16px; }
.seo .seo-banner-alt { display: inline-block; margin-top: 12px; color: #fff; font-weight: 800; font-size: 15px; opacity: .85; }

@media (max-width: 640px) {
  /* the fan becomes a carousel: big cards, the rarest first, the next one peeking in */
  .seo-band { margin: 0 -16px 22px; }
  .seo-fan { justify-content: flex-start; align-items: stretch; gap: 14px; padding: 22px 16px 8px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .seo-fan::-webkit-scrollbar { display: none; }
  .seo-fan .seo-live { flex: 0 0 62vw; max-width: 260px; margin: 0; transform: none; scroll-snap-align: start; }
  .seo-fan .t-mythic { order: -3; } .seo-fan .t-fullart { order: -2; } .seo-fan .t-legendary { order: -1; }
  .seo-deck { display: flex; justify-content: flex-start; gap: 14px; margin: 16px -16px 8px; padding: 10px 16px 8px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .seo-deck::-webkit-scrollbar { display: none; }
  .seo-deck .seo-live { flex: 0 0 58vw; max-width: 240px; scroll-snap-align: start; }
  .seo-feats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .seo-feat { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; padding: 14px; }
  .seo-feat-ico { grid-row: span 2; }
  .seo .seo-feat h3 { margin: 0 0 2px; font-size: 17px; }
  .seo-rates { padding: 14px; gap: 10px; }
  .seo-rate { grid-template-columns: 92px minmax(0, 1fr) 54px; gap: 8px; }
  .seo-rate .pill { font-size: 11.5px; padding: 2px 6px; }
  .seo-banner { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 22px 18px 24px; text-align: center; border-radius: 24px; }
  .seo-banner-card { flex-basis: 118px; margin: 0 -14px; }
  .seo-banner-card:nth-child(2) { flex-basis: 132px; }
  .seo .seo-banner .btn { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .seo-fan .seo-live, .seo-deck .seo-live .card { transition: none; }
}
