/* Local TCGN component contract. Reuses the supplied font/brand assets. */
@font-face {
  font-family: 'TCGN Control';
  src: url('/dm-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  ascent-override: 85%;
  descent-override: 15%;
  line-gap-override: 0%;
}
html[data-tcgn-v1] {
  --tcgn-control-font: 'TCGN Control', 'DM Sans', Arial, sans-serif;
  --tcgn-control-line: 1;
  --tcgn-radius-surface: var(--radius);
  --tcgn-radius-control: 8px;
  --tcgn-radius-input: 12px;
  --tcgn-radius-pill: 999px;
  --tcgn-mobile-nav-radius: var(--tcgn-radius-pill);
  --tcgn-mobile-nav-side-inset: 8px;
  --tcgn-mobile-nav-item-gap: 4px;
}
html[data-tcgn-v1]
  :is(
    .tcgn-dropdown,
    .tcgn-select,
    .tcgn-search,
    .platform-search,
    .button,
    .details-link,
    .sitestrip a,
    .sitestrip button,
    .variant-step button,
    .tile-quantity button,
    .collection-actions > summary
  ) {
  font-family: var(--tcgn-control-font);
  line-height: var(--tcgn-control-line);
}
html[data-tcgn-v1] :is(.tcgn-search, .platform-search) input {
  font-family: var(--tcgn-control-font);
  line-height: var(--tcgn-control-line);
}
html[data-tcgn-v1] .sitestrip-product-label,
html[data-tcgn-v1]
  .sitestrip-network
  a:is(:hover, :focus-visible, [aria-current='page'])
  .sitestrip-product-label {
  position: static;
  top: auto;
  line-height: var(--tcgn-control-line);
}
html[data-tcgn-v1]
  #main
  .collection-analytics
  :is(.collection-primary, .collection-metrics-desktop, .collection-metrics-bar) {
  display: contents;
}
html[data-tcgn-v1]
  #main
  .collection-analytics
  :is(.collection-wishlist-metric, .collection-more-stats),
html[data-tcgn-v1]
  #main
  .collection-analytics
  .collection-metrics-bar
  > div:is(:nth-child(2), :nth-child(3), :nth-child(6)) {
  display: none;
}
html[data-tcgn-v1] #main .collection-analytics dl > div {
  min-width: 0;
  margin: 0;
  border: 0;
}
html[data-tcgn-v1] #main :is(.collection-analytics dt, .value-metrics > div > span) {
  color: var(--muted);
  white-space: nowrap;
}
html[data-tcgn-v1] #main :is(.collection-analytics dd, .value-metrics > div > strong) {
  margin: 0;
  text-align: left;
  white-space: nowrap;
}
html[data-tcgn-v1] #main .collection-analytics .metric-label-full {
  display: inline;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: nowrap;
}
html[data-tcgn-v1] #main .collection-analytics .metric-label-mobile {
  display: none;
}
/* One shared metrics surface; dividers belong to the strip, not cards. */
html[data-tcgn-v1] #main :is(.collection-analytics, .value-metrics) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
html[data-tcgn-v1]
  #main
  .collection-analytics
  :is(
    .collection-primary > div:first-child,
    .collection-metrics-desktop
      .collection-metrics-bar
      > div:is(:nth-child(1), :nth-child(4), :nth-child(5))
  ),
html[data-tcgn-v1] #main .value-metrics > div {
  padding: 20px 24px;
  min-height: 110px;
  border-inline-start: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-direction: column;
  justify-content: center;
}
html[data-tcgn-v1]
  #main
  .collection-analytics
  .collection-metrics-desktop
  .collection-metrics-bar
  > div:is(:nth-child(1), :nth-child(4), :nth-child(5)) {
  border-inline-start: 1px solid var(--border);
}
html[data-tcgn-v1] #main :is(.collection-analytics dt, .value-metrics > div > span) {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
html[data-tcgn-v1] #main :is(.collection-analytics dd, .value-metrics > div > strong) {
  font-size: 32px;
  line-height: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
/* Search width can respond; the pill silhouette cannot. */
html[data-tcgn-v1] .header-search .platform-search,
html[data-tcgn-v1] .header-search .platform-search:focus-within {
  border-radius: 999px;
}
html[data-tcgn-v1] :is(.tcgn-search, .platform-search) input {
  border-radius: inherit;
}
html[data-tcgn-v1]
  .collection-heading-actions
  :is([data-share-collection], .collection-actions > summary) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
}
html[data-tcgn-v1][data-theme='dark'] .collection-heading-actions [data-share-collection] {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  color: var(--text);
}
html[data-tcgn-v1][data-theme='dark'] .collection-actions > summary.button.primary {
  width: 120px;
  justify-content: space-between;
  background: #f3f5f4;
  color: #0c0e0e;
  border: 1px solid #f3f5f4;
}
html[data-tcgn-v1][data-theme='dark'] .collection-actions > summary.button.primary:hover {
  background: #e0e6e3;
  border-color: #e0e6e3;
}
.tcgn-mobile-meteor {
  display: none;
}
html[data-tcgn-v1] .tcgn-footer {
  display:block;
  background: var(--surface);
  border: 0;
  border-top: 1px solid var(--border);
  padding: 0 var(--gutter) 32px;
  margin-top: 48px;
}
.tcgn-footer-inner {--tcgn-footer-accent:var(--brand);width:100%;max-width:1440px;margin-inline:auto;container-type:inline-size}
.tcgn-footer-masthead {
  font-family:var(--font-display,inherit);
  font-size:16.2vw;
  font-weight:900;
  -webkit-text-stroke:.025em currentColor;
  line-height:1;
  letter-spacing:-.065em;
  color:var(--text);
  opacity:.055;
  white-space:nowrap;
  width:100vw;
  position:relative;
  left:50%;
  transform:translateX(-50%);
  text-align:center;
  overflow:hidden;
  margin:-2px 0 52px;
  user-select:none;
  pointer-events:none;
}
.tcgn-footer-groups {
  display:grid;
  grid-template-columns: minmax(0,1.65fr) repeat(3,minmax(0,1fr));
  gap:40px;
  margin-bottom:40px;
}
.tcgn-footer-groups:has(nav[aria-label='TCG Network']) {grid-template-columns:minmax(0,1.65fr) repeat(4,minmax(0,1fr))}
.tcgn-footer-brand {min-width:0}
.tcgn-footer-lockup {display:inline-flex;align-items:center;font-size:24px;line-height:0;color:var(--text);text-decoration:none}
html[data-tcgn-v1] .tcgn-footer-lockup :is(.tcgn-stationary,.tcgn-word-slot) {display:block}
.tcgn-footer-lockup .tcgn-stationary {color:var(--tcgn-footer-accent);width:3.106em;height:1.15em}
.tcgn-footer-lockup .tcgn-stationary .tcgn-tcg {color:var(--text)}
.tcgn-footer-lockup .tcgn-word-slot {width:3.46em;height:1.15em}
.tcgn-footer-lockup .tcgn-word-track svg {width:4.499em;height:1.15em}
.tcgn-footer-lockup .tcgn-word-track > span:not(:first-child) {display:none}
.tcgn-footer-groups nav {display:flex;flex-direction:column;gap:12px;align-items:start}
.tcgn-footer-groups h2 {margin:0 0 8px;font-size:11px;line-height:16px;text-transform:uppercase;letter-spacing:.09em;color:var(--muted)}
.tcgn-footer-groups nav a {font-size:14px;line-height:20px;color:var(--muted);text-decoration:none}
.tcgn-footer-groups a:is(:hover,:focus-visible) {color:var(--text);text-decoration:none;background:transparent}
@media(max-width:1000px) {
 .tcgn-footer-groups,.tcgn-footer-groups:has(nav[aria-label='TCG Network']) {grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
 .tcgn-footer-brand {grid-column:1/-1;margin-bottom:8px}
 .tcgn-footer-masthead {margin-bottom:36px}
}
@media(max-width:700px) {
 html[data-tcgn-v1] .tcgn-footer {padding-top:0;padding-bottom:calc(32px + env(safe-area-inset-bottom) + 72px);margin-top:32px}
 .tcgn-footer-masthead {white-space:nowrap;font-size:16.2vw;line-height:1;margin-bottom:32px}
 .tcgn-footer-groups,.tcgn-footer-groups:has(nav[aria-label='TCG Network']) {grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;margin-bottom:28px}
 .tcgn-footer-groups nav {gap:10px}
 .tcgn-footer-lockup {font-size:24px}
}
.tcgn-footer .footer-copyright {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px;
}
.tcgn-footer-notices {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.tcgn-footer-notices p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 1100px;
  margin: 8px 0;
}
html[data-tcgn-v1] .tcgn-floating-nav {
  display: none;
}
/* Stationary neutral vector faces; only the clipped light band and the
   unclipped corner glint animate within the existing icon allocation. */
.tcgn-vip-diamond :is(.tcgn-vip-shine, .tcgn-vip-corner-glint) {
  opacity: 0;
}
.tcgn-vip-corner-glint {
  transform-box: fill-box;
  transform-origin: center;
}
html[data-tcgn-v1] .tcgn-vip-diamond .tcgn-vip-shine {
  animation: tcgn-vip-shine 7s ease-in-out infinite;
}
html[data-tcgn-v1] .tcgn-vip-diamond .tcgn-vip-corner-glint {
  animation: tcgn-vip-corner-glint 7s ease-in-out infinite;
}
html[data-tcgn-v1][data-tcgn-motion='paused'] :is(.tcgn-vip-shine, .tcgn-vip-corner-glint) {
  animation-play-state: paused;
}
@keyframes tcgn-vip-shine {
  0%, 66% { transform: translateX(-30px); opacity: 0; }
  70% { opacity: .95; }
  86% { transform: translateX(30px); opacity: .95; }
  88%, 100% { transform: translateX(30px); opacity: 0; }
}
@keyframes tcgn-vip-corner-glint {
  0%, 72% { transform: scale(.55); opacity: 0; }
  76% { transform: scale(1); opacity: 1; }
  82% { transform: scale(.9); opacity: .9; }
  88%, 100% { transform: scale(.55); opacity: 0; }
}
/* A shared static mode also permits explicit local inspection of the same
   fallback when the browser's system media preference cannot be emulated. */
html[data-tcgn-v1] .tcgn-vip-diamond[data-tcgn-vip-motion='static'] :is(.tcgn-vip-shine, .tcgn-vip-corner-glint) {
  animation: none;
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  html[data-tcgn-v1] .tcgn-vip-diamond :is(.tcgn-vip-shine, .tcgn-vip-corner-glint) {
    animation: none;
    opacity: 0;
  }
}

html[data-tcgn-v1] .tcgn-primary a[aria-current] {
  border-bottom: 0;
}
html[data-tcgn-v1] #main.tcgn-page-shell > .tcgn-footer {
  padding-inline: 0;
}
@media (max-width: 900px) {
  html[data-tcgn-v1] .tcgn-floating-nav {
    position: fixed;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: var(--tcgn-mobile-nav-side-inset);
    right: var(--tcgn-mobile-nav-side-inset);
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: 440px;
    margin-inline: auto;
    height: 60px;
    padding: 4px;
    border: 0;
    outline: 0;
    border-radius: var(--tcgn-mobile-nav-radius);
    background: var(--surface-secondary);
    box-shadow: 0 4px 16px rgb(0 0 0 / 28%);
    gap: var(--tcgn-mobile-nav-item-gap);
  }
  html[data-tcgn-v1] .tcgn-floating-nav .mobile-nav-item {
    width: auto;
    min-width: 0;
    height: 50px;
    min-height: 0;
    padding: 4px 0;
    border: 0;
    border-radius: var(--tcgn-mobile-nav-radius);
    text-decoration: none;
    font: 600 10px/1 var(--tcgn-control-font);
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  html[data-tcgn-v1]
    .tcgn-floating-nav
    .mobile-nav-item:is([aria-current='page'], [aria-expanded='true']) {
    color: var(--text);
    background: var(--hover);
  }
  html[data-tcgn-v1] .tcgn-floating-nav .mobile-nav-item:is(:hover, :focus-visible, :active) {
    text-decoration: none;
  }
  html[data-tcgn-v1]
    .tcgn-floating-nav
    .mobile-nav-item:not(.mobile-nav-scanner, [aria-current='page'], [aria-expanded='true']):is(
      :hover,
      :focus-visible
    ) {
    background: var(--input);
    color: var(--text);
  }
  html[data-tcgn-v1] .tcgn-floating-nav .mobile-nav-item::before,
  html[data-tcgn-v1] .tcgn-floating-nav .mobile-nav-item::after {
    content: none;
  }
  html[data-tcgn-v1] .tcgn-floating-nav .mobile-nav-scanner .shell-icon {
    stroke-width: 2.2;
  }
  html[data-tcgn-v1] .tcgn-floating-nav .mobile-nav-scanner {
    background: var(--brand);
    color: var(--on-mint);
    width: 50px;
    justify-self: center;
    border-radius: 50%;
    position: static;
    transform: none;
    margin: 0;
    box-shadow: none;
  }
  html[data-tcgn-v1] .tcgn-footer {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 700px) {
  html[data-tcgn-v1] .shell-wordmark > :is(.tcgn-stationary, .tcgn-word-slot) {
    display: none;
  }
  html[data-tcgn-v1] .tcgn-mobile-meteor {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--brand);
  }
  html[data-tcgn-v1] .primary-header {
    gap: 12px;
  }
  html[data-tcgn-v1] .header-search {
    flex: 1;
    min-width: 0;
    width: auto;
    margin-left: 0;
    position: relative;
  }
  html[data-tcgn-v1] .header-search > .platform-search,
  html[data-tcgn-v1] .header-search .platform-search:focus-within {
    position: static;
    flex: 1;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    gap: 6px;
  }
  html[data-tcgn-v1] .header-search .platform-search input,
  html[data-tcgn-v1] .header-search .platform-search:focus-within input {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    opacity: 1;
    pointer-events: auto;
    font-size: 12px;
  }
  html[data-tcgn-v1] .primary-header .topbar-actions {
    margin-left: 0;
  }
  html[data-tcgn-v1] .header-search .search-preview,
  html[data-tcgn-v1] .header-search:focus-within .search-preview {
    left: 0;
    right: 0;
    width: 100%;
    top: calc(100% + 6px);
  }

}

/* Separate utility and page-input geometry. */
html[data-tcgn-v1] #main :is(.tcgn-search, .search-field) {
  border-radius: var(--tcgn-radius-input);
}
html[data-tcgn-v1] .brand-link {
  display: flex;
  align-items: center;
  line-height: 0;
}
html[data-tcgn-v1] .tcgn-header-utilities {
  --tcgn-header-utility-gap: 20px;
  display: flex;
  align-items: center;
  gap: var(--tcgn-header-utility-gap);
  margin-left: auto;
  min-width: 0;
}
html[data-tcgn-v1] .tcgn-header-utilities .header-search {
  margin-left: 0;
}
@media (max-width: 700px) {
  html[data-tcgn-v1] .tcgn-header-utilities {
    --tcgn-header-utility-gap: 12px;
    flex: 1;
  }
}

/* Frame 59 baseline is 133/171 of its SVG height. At the approved 22.1px
   lockup scale it is centre +7.06px. A 14px nav line with 100/0 metrics
   places its baseline at centre +7px; glyph shapes/widths are unchanged. */
@font-face {
  font-family: 'TCGN Header Nav';
  src: url('/dm-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  ascent-override: 100%;
  descent-override: 0%;
  line-gap-override: 0%;
}
html[data-tcgn-v1] .tcgn-primary {
  font-family: 'TCGN Header Nav', 'DM Sans', Arial, sans-serif;
  line-height: var(--tcgn-control-line);
}
html[data-tcgn-v1] .tcgn-primary :is(a, button) {
  font-family: inherit;
  line-height: var(--tcgn-control-line);
  height: 45px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}
html[data-tcgn-v1][data-theme='dark'] .sitestrip :is(.sitestrip-upgrade, .sitestrip-community) {
  color: var(--muted);
  background: transparent;
}
html[data-tcgn-v1][data-theme='dark']
  .sitestrip
  :is(.sitestrip-upgrade, .sitestrip-community):hover {
  color: #fff;
  background: transparent;
  text-decoration: none;
}
html[data-tcgn-v1] {
  --tcgn-page-title-size: 46px;
  --tcgn-page-title-mobile-size: 24px;
}
html[data-tcgn-v1][data-tcgn-collection] #main .page-heading h1 {
  font-size: var(--tcgn-page-title-size);
}
@media (max-width: 700px) {
  html[data-tcgn-v1][data-tcgn-collection] #main .page-heading h1 {
    font-size: var(--tcgn-page-title-mobile-size);
  }
  html[data-tcgn-v1]
    #main
    .collection-analytics
    :is(
      .collection-primary > div:first-child,
      .collection-metrics-desktop
        .collection-metrics-bar
        > div:is(:nth-child(1), :nth-child(4), :nth-child(5))
    ),
  html[data-tcgn-v1] #main .value-metrics > div {
    padding: 10px 8px;
    min-height: 68px;
  }
  html[data-tcgn-v1] #main :is(.collection-analytics dt, .value-metrics > div > span) {
    font-size: 9px;
    line-height: 12px;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }
  html[data-tcgn-v1] #main :is(.collection-analytics dd, .value-metrics > div > strong) {
    font-size: 18px;
    line-height: 24px;
  }
}

/* Page search is one control; native fields never draw a second shell. */
html[data-tcgn-v1] #main :is(.tcgn-search, .search-field, .front-search) {
  border-radius: var(--tcgn-radius-input);
  background: var(--input);
}
html[data-tcgn-v1] #main :is(.tcgn-search, .search-field, .front-search) input,
html[data-tcgn-v1] #main :is(.tcgn-search, .search-field, .front-search):focus-within input {
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
}
html[data-tcgn-v1] #main :is(.tcgn-search, .search-field, .front-search):focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* Preserve reserved geometry without exposing an opaque loading slab. */
html[data-tcgn-v1] #main .route-skeleton {
  background: transparent;
  border: 0;
  box-shadow: none;
}
/* Event rows share emphasis rather than an abrupt rectangular hover fill. */
html[data-tcgn-v1] #main .activity-feed li:not(.tcgn-date-separator):hover,
html[data-tcgn-v1] #main .activity-feed li a:hover {
  background: transparent;
  box-shadow: none;
}
html[data-tcgn-v1] #main .activity-feed li:hover :is(strong, time) {
  color: var(--text);
}

html[data-tcgn-v1] #main .value-metrics {
  border-radius: var(--tcgn-radius-surface);
  overflow: hidden;
}
html[data-tcgn-v1] #main .value-metrics > div + div {
  border-inline-start: 1px solid var(--border);
}
html[data-tcgn-v1] #main .value-metrics > div > span {
  white-space: normal;
}
