/* NordPing: the game catalogue, the facts strip, the platform section and the per-game fact sheet.
   These are the calmer, tabular parts of the site: hairlines and numbers instead of glow. */

/* Facts strip under the hero */
.facts { position: relative; z-index: 2; background: #02040b; border-block: 1px solid var(--line-strong); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 0; }
.facts-row > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts-row > div:first-child { border-left: 0; padding-left: 0; }
.facts-row dt { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.facts-row dd { margin: .5rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }

/* Search box */
.cat-search { display: flex; gap: 10px; max-width: 560px; margin-top: 1.6rem; }
.cat-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px 0 44px; color: #fff; border: 1px solid var(--line-strong); border-radius: 0; font: 500 1rem var(--body); -webkit-appearance: none; appearance: none;
  background: rgba(3, 6, 15, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237de8ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 14px 50% / 20px no-repeat; }
.cat-search input::placeholder { color: #5f7191; }
.cat-search input:focus { outline: 0; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(34, 211, 238, .25); }
.cat-search .btn { min-height: 48px; }

/* Featured cards, four across */
.game-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.game-grid-4 .game-card { min-height: 190px; }
.game-grid-4 .game-card .h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.game-grid-4 .game-card p { font-size: .86rem; }
.game-grid-4 .game-glyph { font-size: 8rem; top: -22px; }

/* Catalogue header, genre chips */
.cat-h { font: 600 .82rem/1.2 var(--display); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); margin: 0 0 1.2rem; }
.cat-h span { margin-left: .8em; color: var(--muted); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.cat-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.cat-bar .cat-h { margin: 0; }
.cat-genres { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-genres a { display: inline-flex; align-items: center; gap: .6em; padding: 8px 12px; border: 1px solid var(--line); color: #c5d3ea; text-decoration: none; font: 600 .78rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.cat-genres a i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.cat-genres a:hover { border-color: var(--line-strong); color: #fff; }
.cat-genres a[aria-current] { background: var(--cyan); border-color: var(--cyan); color: #00131a; }
.cat-genres a[aria-current] i { color: #00131a; opacity: .7; }

/* The full list: dense rows that read like a table */
.cat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.cat-list li { box-shadow: 1px 1px 0 var(--line); }
.cat-list li[hidden] { display: none; }
.cat-item { --c: hsl(var(--hue, 190) 85% 62%); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 100%; min-height: 56px; padding: 10px 14px; background: var(--bg-2); color: var(--text); text-decoration: none; transition: background .15s; }
.cat-item:hover { background: var(--panel-2); color: #fff; }
.cat-glyph { width: 34px; height: 34px; display: grid; place-items: center; font: 700 1rem/1 var(--display); color: var(--c); background: hsl(var(--hue, 190) 60% 50% / .12); border: 1px solid hsl(var(--hue, 190) 85% 62% / .4); }
.cat-name { font-weight: 600; font-size: .95rem; line-height: 1.25; overflow-wrap: anywhere; }
.cat-genre { font: 600 .66rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cat-item:hover .cat-genre { color: var(--ice); }
.cat-empty { margin-top: 18px; padding: 28px; border: 1px dashed var(--line-strong); text-align: center; }
.cat-empty p { color: var(--muted); margin: .4rem 0 1.1rem; }
.cat-note { margin-top: 1.4rem; max-width: 80ch; }
.cat-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Platform section */
.plat-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.plat-table { width: 100%; border-collapse: collapse; background: var(--bg-2); border: 1px solid var(--line); }
.plat-table th, .plat-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.plat-table tbody tr:last-child > * { border-bottom: 0; }
.plat-table thead th { font: 600 .7rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: #02040b; }
.plat-table tbody th { font: 700 1.1rem/1.2 var(--display); color: #fff; white-space: nowrap; }
.plat-table td { color: #c5d3ea; font-size: .93rem; }
.plat-table td:last-child { white-space: nowrap; color: var(--ice); }
.plat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plat-list li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plat-list strong { font: 700 1rem/1.3 var(--display); color: #fff; }
.plat-list span { color: #c5d3ea; font-size: .93rem; }

/* Per-game fact sheet */
.spec-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.spec-wrap h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.spec { margin: 0; background: var(--bg-2); border: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font: 600 .72rem/1.5 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; color: var(--text); font-size: .95rem; }

@media (max-width: 1000px) {
  .game-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .plat-grid, .spec-wrap { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .facts-row > div { padding: 18px 20px; }
  .facts-row > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .game-grid-4 { grid-template-columns: 1fr; }
  .cat-search { flex-direction: column; }
  .cat-list { grid-template-columns: 1fr; }
  .plat-table thead { display: none; }
  .plat-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .plat-table tbody tr:last-child { border-bottom: 0; }
  .plat-table th, .plat-table td { display: block; padding: 0 0 4px; border: 0; white-space: normal !important; }
  .plat-list li, .spec > div { grid-template-columns: 1fr; gap: 2px; }
}
