/* Games hub, game pages, "Starting at" pricing and hardware categories.
   Inherits the VoltKeys tokens; static, no inline styles, reduced-motion safe. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }

/* ---------- breadcrumb ---------- */
.breadcrumb { margin-block: 28px 22px; font-size: .88rem }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 0; list-style: none }
.breadcrumb li { color: var(--muted); min-width: 0; overflow-wrap: anywhere }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--steel-2) }
.breadcrumb a { color: var(--warm); font-weight: 600; padding-block: 4px }
.breadcrumb [aria-current] { color: var(--paper) }

/* ---------- "Starting at" ---------- */
.from-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; margin: 0; line-height: 1.2 }
.from-price small { font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--muted) }
.from-price > small:first-child { flex-basis: 100% }
.from-price strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--warm); font-variant-numeric: tabular-nums }
.from-detail { margin-block: -6px 18px }
.from-detail strong { font-size: 2rem }
.from-inline { display: inline-flex }
.from-inline > small:first-child { flex-basis: auto }
.from-inline strong { font-size: 1.15rem }
.count-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 14px; color: var(--muted); font-size: .88rem }
.count-line b { color: var(--paper); font-size: 1.05rem; font-variant-numeric: tabular-nums }
.count-line .dot { color: var(--steel-2) }
.plans-count { margin: 0; color: var(--muted); font-size: .8rem; text-align: right }
.plans-count b { color: var(--paper) }

/* ---------- tile grid: games hub, home, hardware categories ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 20px }
.tile-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .25s, box-shadow .3s }
.tile-card:hover { transform: translateY(-4px); border-color: rgba(245, 166, 35, .35); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .95), 0 0 36px -16px var(--glow) }
.tile-card:focus-within { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 0 34px -12px var(--glow) }
.game-art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--steel) }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease) }
.tile-card:hover .game-art img { transform: scale(1.05) }
.tile-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 }
.tile-card h3 { margin-bottom: 8px; font-size: 1.2rem }
.tile-card .card-bottom { margin-top: auto }
.card-arrow { color: var(--warm); display: inline-flex }
.tile-card .card-arrow .ico { transition: transform .3s var(--ease) }
.tile-card:hover .card-arrow .ico { transform: translateX(5px) }

/* ---------- game page header ---------- */
.game-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; margin-block: 0 8px }
.game-header-copy { padding-block: 8px }
.game-header h1 { font-size: clamp(2.2rem, 4.2vw, 4rem); margin-bottom: 14px; overflow-wrap: anywhere }
.game-header .count-line { margin-bottom: 18px; font-size: .95rem }
.game-header .back-link { margin-block: 0 }
.game-header-art { border-radius: 12px; overflow: hidden }
.game-header-art img { width: 100%; height: auto; max-height: 240px; object-fit: cover }
.game-header-art img.tile { aspect-ratio: 16 / 10 }
.game-label { margin: 0 0 6px; font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase }
.game-label a { position: relative; z-index: 3; color: var(--warm); padding-block: 4px }
.game-label a:hover, .game-label a:focus-visible { text-decoration: underline }

/* ---------- software cards: price block ---------- */
.product-card .card-bottom { align-items: flex-end }

/* ---------- hardware cards and category pills ---------- */
.hardware-card .hardware-card-copy { display: flex; flex-direction: column; padding: 20px 22px 22px }
.hardware-card h2 { margin-bottom: 16px }
.hardware-card .card-bottom { margin-bottom: 18px }
.hardware-card { transition: transform .35s var(--ease), border-color .25s, box-shadow .3s }
.hardware-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .95), 0 0 36px -16px var(--glow) }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px }
.category-pills a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); color: #d9dde5; font-size: .88rem; font-weight: 600; transition: border-color .2s, color .2s }
.category-pills a span { color: var(--muted); font-weight: 500 }
.category-pills a:hover { border-color: var(--amber); color: var(--warm) }
.category-pills a[aria-current] { border-color: rgba(245, 166, 35, .6); background: rgba(245, 166, 35, .12); color: var(--paper) }

@media (max-width: 1100px) {
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 860px) {
  .game-header { grid-template-columns: minmax(0, 1fr); gap: 16px }
  .game-header-art { order: -1 }
  .game-header-copy { padding: 0 }
}
@media (max-width: 760px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
  .tile-card-body { padding: 13px 14px 14px }
  .tile-card h3 { font-size: 1.02rem }
  .from-price strong { font-size: 1.15rem }
  .breadcrumb { margin-top: 20px; margin-bottom: 16px }
}
@media (max-width: 380px) {
  .tile-grid { grid-template-columns: minmax(0, 1fr) }
}
@media (prefers-reduced-motion: reduce) {
  .tile-card, .hardware-card, .tile-card .card-arrow .ico, .game-art img { transition: none }
  .tile-card:hover, .hardware-card:hover { transform: none }
  .tile-card:hover .game-art img { transform: none }
}
html[data-motion="off"] .tile-card, html[data-motion="off"] .hardware-card, html[data-motion="off"] .game-art img { transition: none }
html[data-motion="off"] .tile-card:hover, html[data-motion="off"] .hardware-card:hover { transform: none }

/* ---------- product chooser cards (game page + search results) ---------- */
.product-grid-chooser { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 24px }
.product-grid-chooser .product-card { display: flex; flex-direction: column; height: 100% }
.product-grid-chooser .product-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px }
.product-grid-chooser .product-card h3 { min-height: 0; margin-bottom: 8px; font-size: 1.15rem }
.product-grid-chooser .product-art { aspect-ratio: 16 / 9 }
.software-status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin: 0 0 10px; font-size: .78rem; font-weight: 650; color: var(--muted) }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0 }
.status-ok .status-dot { background: #3ecf72; box-shadow: 0 0 8px rgba(62, 207, 114, .7) }
.status-warn .status-dot { background: var(--amber); box-shadow: 0 0 8px rgba(245, 166, 35, .7) }
.status-bad .status-dot { background: #f0524f; box-shadow: 0 0 8px rgba(240, 82, 79, .7) }
.card-desc { margin: 0 0 12px; font-size: .88rem; line-height: 1.45; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; line-clamp: 1 }
.plan-list { display: grid; gap: 5px; margin: 0 0 18px; padding: 0; list-style: none }
.plan-list li { display: flex; align-items: baseline; gap: 4px 8px; font-size: .86rem; color: var(--muted) }
.plan-list li > span:first-child { margin-right: auto }
.plan-list b { color: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums }
.plan-list .price-public { font-size: .78rem }
.product-grid-chooser .card-bottom { margin-top: auto; align-items: center }
.product-grid-chooser .from-price strong { font-size: 1.7rem }
.card-choose { position: relative; z-index: 3; flex: 1 }
.stock-badge { position: absolute; right: 12px; top: 12px; z-index: 1; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--paper); background: rgba(7, 8, 10, .85); border: 1px solid var(--line) }
.game-note { margin: 22px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); max-width: 70ch }
@media (max-width: 1000px) { .product-grid-chooser { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 600px) {
  .product-grid-chooser { grid-template-columns: minmax(0, 1fr); gap: 16px }
  .product-grid-chooser .product-card-body { padding: 16px }
}
