.page-products {
  --product-space: clamp(16px, 4vw, 32px);
  --product-scan: repeating-linear-gradient(0deg, rgba(57,255,20,.07) 0 1px, transparent 1px 4px);
  --product-slash: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(57,255,20,.12), transparent 60%),
    linear-gradient(180deg, var(--color-deep) 0%, #0B2040 60%, #0B1B36 100%);
  color: var(--color-cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .cat-section {
  padding-top: calc(var(--header-h) + 32px);
}

.page-products .breadcrumb {
  margin-bottom: 20px;
  color: var(--color-mist);
  font-size: .85rem;
}

.page-products .breadcrumb__link {
  color: var(--color-mist);
  text-decoration: none;
}

.page-products .breadcrumb__link:hover {
  color: var(--color-neon);
}

.page-products .breadcrumb__current {
  color: var(--color-neon);
}

.page-products .products-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
  max-width: 12em;
  position: relative;
  z-index: 1;
}

.page-products .products-title::after {
  content: "CN";
  color: var(--color-signal);
  font-family: var(--font-mono);
  font-size: .18em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 8px;
  letter-spacing: 0;
}

.page-products .lead-text {
  border-left: 3px solid var(--color-signal);
  padding-left: 16px;
  color: var(--color-mist);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 0 22px;
}

.page-products .catalog-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.page-products .catalog-intro p {
  flex: 1 1 360px;
  margin: 0;
  color: var(--color-mist);
  line-height: 1.7;
}

.page-products .catalog-intro .btn {
  flex: 0 0 auto;
}

.page-products .tag-cloud-banner {
  position: relative;
  background: var(--color-rock);
  overflow: hidden;
  margin-bottom: 32px;
}

.page-products .tag-cloud-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--color-deep) 100%);
  pointer-events: none;
}

.page-products .tag-cloud-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--product-scan);
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

.page-products .tag-cloud-banner img {
  display: block;
  width: 100%;
  height: clamp(150px, 22vw, 300px);
  object-fit: cover;
  object-position: center 35%;
  opacity: .6;
}

.page-products .filter-control {
  position: relative;
  margin-bottom: 28px;
}

.page-products .cat-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-products .filter-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-products .filter-btn {
  border: 1px solid rgba(176,184,196,.35);
  background: rgba(28,46,74,.55);
  color: var(--color-mist);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  user-select: none;
}

.page-products .filter-btn:hover {
  border-color: var(--color-neon);
  color: var(--color-neon);
}

.page-products #cat-all:checked ~ .filter-labels .filter-btn--all,
.page-products #cat-strategy:checked ~ .filter-labels .filter-btn--strategy,
.page-products #cat-arena:checked ~ .filter-labels .filter-btn--arena,
.page-products #cat-board:checked ~ .filter-labels .filter-btn--board,
.page-products #cat-culture:checked ~ .filter-labels .filter-btn--culture,
.page-products #cat-puzzle:checked ~ .filter-labels .filter-btn--puzzle,
.page-products #cat-casual:checked ~ .filter-labels .filter-btn--casual {
  background: var(--color-neon);
  border-color: var(--color-neon);
  color: var(--color-deep);
  box-shadow: 0 0 18px rgba(57,255,20,.3);
}

.page-products .cat-radio:checked ~ .cat-grid .cat-card {
  display: none;
}

.page-products #cat-all:checked ~ .cat-grid .cat-card,
.page-products #cat-strategy:checked ~ .cat-grid .cat-card[data-cat="strategy"],
.page-products #cat-arena:checked ~ .cat-grid .cat-card[data-cat="arena"],
.page-products #cat-board:checked ~ .cat-grid .cat-card[data-cat="board"],
.page-products #cat-culture:checked ~ .cat-grid .cat-card[data-cat="culture"],
.page-products #cat-puzzle:checked ~ .cat-grid .cat-card[data-cat="puzzle"],
.page-products #cat-casual:checked ~ .cat-grid .cat-card[data-cat="casual"] {
  display: grid;
}

.page-products .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.page-products .cat-card {
  position: relative;
  padding: 16px;
  background: linear-gradient(145deg, var(--color-rock) 0%, #182A4D 100%);
  border: 1px solid rgba(176,184,196,.12);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 8px;
  align-content: start;
  clip-path: var(--product-slash);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-products .cat-card > * {
  position: relative;
}

.page-products .cat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--product-scan);
  animation: productScan 16s linear infinite;
  pointer-events: none;
  opacity: .5;
}

.page-products .cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57,255,20,.45);
  box-shadow: 0 16px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(57,255,20,.08) inset;
}

.page-products .cat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-products .cat-card__no {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--color-neon);
  letter-spacing: .08em;
}

.page-products .cat-card__flag {
  color: var(--color-signal);
  border: 1px solid rgba(255,109,0,.55);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .7rem;
  line-height: 1.4;
}

.page-products .cat-card__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.08rem;
  margin: 0;
  color: var(--color-cream);
}

.page-products .cat-card__desc {
  margin: 0;
  color: var(--color-mist);
  font-size: .88rem;
  line-height: 1.6;
}

.page-products .cat-card__meta {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: #7F93AD;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.page-products .catalog-index-note {
  position: relative;
  background: rgba(28,46,74,.55);
  border: 1px solid rgba(176,184,196,.14);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  margin-top: 24px;
  overflow: hidden;
}

.page-products .catalog-index-note img {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 72px;
  height: 72px;
  opacity: .35;
  transform: rotate(8deg);
  object-fit: cover;
  border-radius: 10px;
}

.page-products .catalog-index-note p {
  margin: 0;
  max-width: 68%;
  color: var(--color-mist);
  line-height: 1.7;
  position: relative;
}

.page-products .weekly-section {
  margin-top: 72px;
  position: relative;
  padding: 48px 0;
  z-index: 0;
}

.page-products .weekly-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -3rem;
  right: -3rem;
  background: var(--color-rock);
  transform: skewY(-1.8deg);
  z-index: 0;
  box-shadow: 0 24px 50px rgba(0,0,0,.25);
}

.page-products .weekly-section .container {
  position: relative;
  z-index: 1;
}

.page-products .weekly-grid {
  display: grid;
  gap: 34px;
  align-items: start;
}

.page-products .weekly-copy .kicker {
  color: var(--color-signal);
}

.page-products .weekly-copy h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin: 8px 0 12px;
}

.page-products .story-block {
  margin: 18px 0;
  display: grid;
  gap: 12px;
  color: var(--color-mist);
  line-height: 1.7;
  max-width: 640px;
}

.page-products .weekly-copy img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(0,0,0,.35);
  margin-top: 10px;
}

.page-products .text-link {
  color: var(--color-neon);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-products .weekly-calendar {
  border: 1px solid rgba(57,255,20,.22);
  background: rgba(10,31,68,.55);
  border-radius: var(--radius);
  padding: 18px;
}

.page-products .weekday {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px dashed rgba(176,184,196,.18);
  font-size: .92rem;
}

.page-products .weekday:last-of-type {
  border-bottom: 0;
}

.page-products .weekday__day {
  color: var(--color-cream);
  min-width: 3em;
  font-weight: 600;
}

.page-products .weekday b {
  color: var(--color-neon);
  font-weight: 600;
  flex: 1;
  font-family: var(--font-body);
}

.page-products .weekday em {
  font-style: normal;
  color: var(--color-signal);
  font-size: .78rem;
  border: 1px solid rgba(255,109,0,.3);
  padding: 2px 6px;
  border-radius: 999px;
}

.page-products .weekly-note {
  margin: 18px 0 0;
  background: rgba(45,74,34,.25);
  border-left: 3px solid var(--color-moss);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  color: var(--color-mist);
  font-size: .88rem;
}

.page-products .falls-section {
  margin-top: 48px;
  padding: 56px 0 72px;
  background: linear-gradient(145deg, #0B2B5B 0%, var(--color-deep) 70%);
  border-top: 2px solid rgba(57,255,20,.18);
  border-bottom: 2px solid rgba(255,109,0,.14);
  position: relative;
  overflow: hidden;
}

.page-products .falls-section::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(57,255,20,.2), transparent 65%);
  border-radius: 50%;
}

.page-products .falls-layout {
  display: grid;
  gap: 34px;
  align-items: center;
  position: relative;
}

.page-products .falls-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  margin: 8px 0 14px;
}

.page-products .falls-copy p {
  color: var(--color-mist);
  line-height: 1.7;
}

.page-products .falls-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 12px 0 20px;
  display: block;
}

.page-products .falls-svg .flow {
  animation: productFlow 4s linear infinite;
}

.page-products .falls-visual {
  position: relative;
}

.page-products .falls-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  display: block;
}

.page-products .countdown-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 22px;
  background: rgba(10,31,68,.88);
  border: 1px solid rgba(57,255,20,.3);
  border-radius: var(--radius);
  padding: 14px;
  backdrop-filter: blur(6px);
}

.page-products .cd-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--color-mist);
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.page-products .cd-dot {
  width: 8px;
  height: 8px;
  background: var(--color-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-neon);
  animation: productBlink 1.6s steps(2) infinite;
}

.page-products .cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.page-products .cd-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(176,184,196,.12);
  border-radius: 10px;
  padding: 8px 2px 6px;
  text-align: center;
}

.page-products .cd-value {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 6vw, 2rem);
  line-height: 1;
  color: var(--color-neon);
  min-width: 2ch;
  min-height: 1em;
  overflow: hidden;
  vertical-align: bottom;
}

.page-products .cd-static {
  animation: productPulse 2.4s infinite;
}

.page-products .cd-roll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  animation: productCdFlip 4s steps(8) forwards;
}

.page-products .cd-roll b {
  font-weight: 400;
  height: 1em;
  line-height: 1;
}

.page-products .cd-label {
  display: block;
  margin-top: 6px;
  font-size: .72rem;
  color: var(--color-mist);
}

.page-products .cd-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--color-mist);
}

.page-products .log-section {
  margin-top: 40px;
  padding: 64px 0 80px;
}

.page-products .log-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.page-products .log-heading img {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
  opacity: .75;
  transform: rotate(2deg);
}

.page-products .log-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  margin: 8px 0 0;
}

.page-products .log-list {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.page-products .log-card {
  background: var(--color-rock);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-neon);
  padding: 16px 18px 14px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur);
}

.page-products .log-card:hover,
.page-products .log-card:focus-visible {
  transform: translateX(8px);
  background: #203658;
  border-color: var(--color-signal);
  outline: none;
}

.page-products .log-card__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-products .log-version {
  font-family: var(--font-mono);
  color: var(--color-neon);
  font-size: .85rem;
}

.page-products .log-card__summary h3 {
  font-size: 1rem;
  margin: 0;
  flex: 1 1 220px;
  color: var(--color-cream);
  line-height: 1.5;
}

.page-products .log-type {
  font-size: .72rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 9px;
}

.page-products .log-type--new {
  color: var(--color-neon);
}

.page-products .log-type--opt {
  color: var(--color-signal);
}

.page-products .log-type--exp {
  color: var(--color-mist);
}

.page-products .log-card__detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), opacity .4s ease, margin-top .4s ease;
  color: var(--color-mist);
  font-size: .9rem;
  line-height: 1.6;
}

.page-products .log-card__detail p {
  margin: 0;
}

.page-products .log-card:hover .log-card__detail,
.page-products .log-card:focus-within .log-card__detail {
  max-height: 140px;
  opacity: 1;
  margin-top: 12px;
}

.page-products .log-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@keyframes productScan {
  from { background-position: 0 0; }
  to { background-position: 0 4px; }
}

@keyframes productFlow {
  to { stroke-dashoffset: -24; }
}

@keyframes productCdFlip {
  to { transform: translateY(calc(var(--count) * -1em)); }
}

@keyframes productPulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 6px rgba(57,255,20,.4);
  }
  50% {
    opacity: .75;
    text-shadow: 0 0 18px rgba(57,255,20,.8);
  }
}

@keyframes productBlink {
  50% { opacity: .2; }
}

@media (max-width: 760px) {
  .page-products .log-card__detail {
    max-height: 160px;
    opacity: 1;
    margin-top: 12px;
  }

  .page-products .log-heading img {
    width: 52px;
    height: 52px;
  }

  .page-products .catalog-index-note p {
    max-width: 100%;
    padding-right: 0;
  }

  .page-products .catalog-index-note img {
    opacity: .18;
    width: 56px;
    height: 56px;
  }

  .page-products .countdown-panel {
    position: static;
    margin-top: -24px;
  }
}

@media (min-width: 760px) {
  .page-products .weekly-grid {
    grid-template-columns: 1.05fr .95fr;
  }

  .page-products .falls-layout {
    grid-template-columns: .9fr 1.1fr;
  }

  .page-products .cat-grid {
    gap: 16px;
  }
}

@media (min-width: 1000px) {
  .page-products .countdown-panel {
    left: 24px;
    right: 24px;
    bottom: 36px;
    padding: 22px;
  }

  .page-products .log-card {
    padding: 20px 24px 18px;
  }
}

.page-products {
  --count: inherit;
}
