/* ─── Games list page — Red/Black Theme ─── */
.glc-page { padding-top: 92px; }

.glc-hero {
  padding: 80px 0 48px;
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, hsla(0, 60%, 20%, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
.glc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 20%, transparent 80%);
  opacity: 0.28; pointer-events: none;
}
.glc-hero > .wrap { position: relative; z-index: 1; }

.glc-hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 12px 0 18px; text-wrap: balance;
}
.glc-hero-sub {
  font-size: 17px; color: var(--ink-mute);
  max-width: 560px; line-height: 1.55; margin-bottom: 40px;
}

.glc-controls {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
}

.glc-search {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; min-width: 280px;
  background: hsla(0, 40%, 4%, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink-mute);
}
.glc-search:focus-within { border-color: hsla(0, 80%, 55%, 0.5); }
.glc-search input {
  flex: 1; background: none; border: 0; color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; outline: none;
}

.glc-grid-section { padding: 48px 0 64px; }
.glc-resultbar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.glc-resultbar b { color: var(--ink); font-weight: 600; }
.glc-sort b { color: var(--blue-bright); }

.glc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ─── Game Card ─── */
.glc-card {
  position: relative;
  background: linear-gradient(180deg, hsla(0, 40%, 6%, 0.6), hsla(0, 50%, 3%, 0.8));
  border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.glc-card:hover {
  transform: translateY(-4px);
  border-color: hsla(0, 80%, 55%, 0.4);
  box-shadow: 0 20px 40px -20px hsla(0, 90%, 45%, 0.3);
}
.glc-img {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden; background: hsla(0, 50%, 3%, 0.8);
}
.glc-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform .5s ease;
}
.glc-card:hover .glc-img img { transform: scale(1.05); }
.glc-img-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, hsla(0, 50%, 3%, 0.45) 100%);
  pointer-events: none;
}
.glc-cat {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 9px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-bright);
  background: hsla(0, 50%, 4%, 0.75);
  border: 1px solid hsla(0, 60%, 45%, 0.35);
  border-radius: 4px; backdrop-filter: blur(6px);
}

.glc-body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 14px; flex: 1;
}
.glc-title-row { display: flex; justify-content: space-between; align-items: baseline; }
.glc-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.1; letter-spacing: -0.005em;
  text-transform: uppercase; color: var(--ink); margin: 0;
}
.glc-price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: auto;
}
.glc-price { display: flex; flex-direction: column; gap: 2px; }
.glc-price-from {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase;
}
.glc-price b {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1;
}
.glc-price-unit { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.05em; }
.glc-cta { padding: 9px 14px !important; font-size: 12px !important; flex-shrink: 0; }

/* ─── Pagination ─── */
.glc-pager {
  display: flex; justify-content: center; align-items: center; gap: 16px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.glc-pager-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: transparent;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-display); font-size: 12px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); cursor: pointer; transition: all .2s;
}
.glc-pager-btn:hover:not(:disabled) { border-color: var(--blue-bright); color: var(--blue-bright); }
.glc-pager-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.glc-pager-nums { display: flex; gap: 4px; align-items: center; }
.glc-pager-n {
  width: 36px; height: 36px; background: transparent;
  border: 1px solid transparent; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-mute); cursor: pointer; transition: all .2s;
}
.glc-pager-n:hover { color: var(--ink); border-color: var(--line); }
.glc-pager-n.active {
  background: hsla(0, 80%, 50%, 0.15);
  border-color: hsla(0, 80%, 55%, 0.5);
  color: var(--blue-bright); font-weight: 600;
}
.glc-pager-dots { padding: 0 4px; color: var(--ink-mute); font-family: var(--font-mono); font-size: 12px; }

/* ─── Newsletter ─── */
.glc-news {
  padding: 80px 0; border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 100% 50%, hsla(0, 60%, 25%, 0.18), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  position: relative; overflow: hidden;
}
.glc-news::before {
  content: 'NEWSLETTER';
  position: absolute; right: -40px; bottom: -40px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(160px, 20vw, 260px);
  letter-spacing: -0.03em; color: transparent;
  -webkit-text-stroke: 1px hsla(0, 70%, 55%, 0.09);
  line-height: 0.8; pointer-events: none;
}
.glc-news-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.glc-news-title { font-size: clamp(42px, 5vw, 64px); margin: 14px 0 20px; }
.glc-news-sub { max-width: 480px; margin: 0; }
.glc-news-form-wrap { display: flex; flex-direction: column; gap: 14px; }
.glc-news-form {
  display: flex; gap: 12px;
  background: hsla(0, 40%, 3%, 0.75);
  border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 14px; align-items: end;
}
.glc-news-field {
  flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 4px 8px;
}
.glc-news-field label {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase;
}
.glc-news-field input {
  background: none; border: 0; color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; outline: none; padding: 0;
}
.glc-news-btn { padding: 14px 22px !important; font-size: 14px !important; }
.glc-news-meta {
  display: flex; gap: 10px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-mute); letter-spacing: 0.08em;
  text-transform: uppercase; padding-left: 14px;
}
.glc-news-meta span:first-child { color: var(--blue-bright); }

@media (max-width: 900px) {
  .glc-controls { flex-direction: column; align-items: stretch; }
  .glc-search { min-width: 0; width: 100%; box-sizing: border-box; }
  .glc-news-grid { grid-template-columns: 1fr; gap: 32px; }
  .glc-news-sub { max-width: 100%; }
  .glc-pager-btn span { display: none; }

  /* Newsletter form — stack vertically on all mobile/tablet widths */
  .glc-news .wrap { padding-left: 20px; padding-right: 20px; }
  /* min-width:0 prevents the 1fr grid column from sizing to child min-content */
  .glc-news-form-wrap { min-width: 0; overflow: hidden; }
  .glc-news-form { flex-direction: column; align-items: stretch; gap: 10px; max-width: 100%; overflow: hidden; }
  .glc-news-field { padding: 4px 0; min-width: 0; width: 100%; max-width: 100%; }
  .glc-news-field input { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
  .glc-news-btn { width: 100%; justify-content: center; }
  .glc-news-meta { flex-wrap: wrap; gap: 6px 10px; padding-left: 0; }
  .glc-news { padding: 56px 0; }
}