/* ============================================
   MORTAL GAMES — INNER PAGES STYLES
   ============================================ */

/* ============================================
   SKULLSOUL INTERACTIVE — PAGES.CSS
   Inner page styles only. All variables, resets,
   typography, nav, footer, buttons, and .container
   are defined in global.css — never redefined here.
   ============================================ */


/* ══════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════ */

/* ── Intro ── */
.about-intro {
  padding: 120px 0;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.about-intro-left h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 32px;
  line-height: 1.1;
}

.about-intro-right p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ── Manifesto ── */
.about-manifesto {
  padding: 120px 0;
  background: var(--near-black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Decorative oversized quote mark */
.about-manifesto::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: -30px;
  font-family: var(--font-display);
  font-size: 30rem;
  color: rgba(179, 0, 0, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.about-manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-manifesto-text em {
  color: var(--red);
  font-style: italic;
}

/* ── Values ── */
.about-values {
  padding: 120px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 60px;
}

.value-card {
  background: var(--black);
  padding: 48px 32px;
  transition: background 0.3s ease;
}

.value-card:hover {
  background: var(--surface);
}

.value-number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 20px;
}

.value-title {
  font-size: 1rem;
  margin-bottom: 14px;
}

.value-text {
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.8;
}


/* ══════════════════════════════════════════════
   TEAM SECTION
   The section heading / intro lives inside
   .container. The carousel is full-bleed (sits
   outside .container) for an edge-to-edge feel.
   ══════════════════════════════════════════════ */

.about-team {
  padding: 120px 0 80px;
  background: var(--near-black);
  border-top: 1px solid var(--border);
}

.team-intro {
  max-width: 640px;
  margin-bottom: 60px;
}

.team-intro p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--grey-mid);
}

/* ── Carousel wrapper ──
   overflow:hidden clips the scrollbar track chrome
   without blocking the inner track from scrolling.
   position:relative anchors the nav buttons.        */
.team-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ── Scrollable track ──
   flex-row + overflow-x:auto = free horizontal scroll.
   padding-inline keeps first / last cards fully visible
   and never clipped by the viewport edge.
   scroll-snap-type intentionally NOT set.            */
.team-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  /* Side padding = cards never flush against screen edge */
  padding: 24px 60px 40px;
  /* Hide scrollbar — cosmetic only, scroll still works */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.team-track::-webkit-scrollbar {
  display: none;
}

/* ── Team card ── */
.team-card {
  flex: 0 0 240px; /* fixed width — no shrink, no grow */
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-red);
}

/* 3:4 portrait image — dark fill if image missing */
.team-card-image {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.85) brightness(0.92);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.team-card:hover .team-card-image img {
  filter: saturate(1) brightness(1);
  transform: scale(1.03);
}

.team-card-body {
  padding: 18px 20px 20px;
}

.team-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  margin: 0 0 6px;
  line-height: 1.3;
}

.team-card-role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  line-height: 1.5;
}

/* ── Carousel nav buttons ──
   Vertically centred over the image area of the cards
   (top = track padding-top + half the 3:4 image height).
   Calculation: 24px padding + (240px wide × 4/3 ratio / 2) = 184px  */
.team-nav {
  position: absolute;
  top: calc(24px + 160px); /* 24px track padding + ~half image height */
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(8, 8, 8, 0.8);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.team-nav:hover {
  background: var(--surface);
  border-color: var(--border-red);
}

.team-nav--prev { left: 12px; }
.team-nav--next { right: 12px; }


/* ══════════════════════════════════════════════
   JOIN OUR TEAM SECTION
   ══════════════════════════════════════════════ */

.join-team {
  padding: 120px 0;
  background: var(--black);
  border-top: 1px solid var(--border);
}

/* Two-column: copy left, form right */
.join-team-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

/* ── Left copy ── */
.join-team-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 32px;
}

.join-team-desc {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--grey-mid);
  margin-bottom: 20px;
}

.join-values {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.join-values li {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  padding: 10px 16px;
  border: 1px solid var(--border);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.join-values li::before {
  content: '—';
  color: var(--red);
  margin-right: 10px;
}

.join-values li:hover {
  border-color: var(--border-red);
  color: var(--white);
}

/* ── Right: form panel ── */
.application-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
}

.application-form-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ── Application form layout ── */
.application-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ── Shared form primitives ──
   These classes are also used by the contact form.
   Defined once here; do not duplicate.             */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  border-radius: 0;
  width: 100%;
}

/* Override background when inside darker panel */
.application-form-wrap .form-input,
.application-form-wrap .form-textarea,
.application-form-wrap .form-select {
  background: var(--surface-2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red-glow-strong), inset 0 0 20px rgba(179, 0, 0, 0.03);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--red-bright);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--red-bright);
  margin-top: 2px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: 24px;
  background: rgba(179, 0, 0, 0.07);
  border: 1px solid var(--border-red);
  text-align: center;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── Select: custom dropdown arrow ── */
.form-select-wrap {
  position: relative;
}

.form-select-wrap .form-select {
  padding-right: 40px; /* room for SVG arrow */
  cursor: pointer;
}

.form-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-dark);
  pointer-events: none;
}

/* ── File upload: styled label as dropzone ── */
.form-file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  color: var(--grey-dark);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
  font-size: 0.85rem;
}

.form-file-label:hover,
.form-file-label:focus {
  border-color: var(--border-red);
  color: var(--grey-mid);
  outline: none;
}

/* Hide the native file input visually while keeping it accessible */
.form-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form-hint {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--grey-darker);
  display: block;
}

.form-required {
  color: var(--red);
  margin-left: 2px;
}

.form-optional {
  color: var(--grey-dark);
  font-size: 0.9em;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
}

/* ── Submit button ──
   Extends .btn and .btn-primary from global.css —
   only layout overrides needed here.               */
.apply-submit {
  margin-top: 8px;
  align-self: flex-start;
}

/* ── Contact form two-col row ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


/* ══════════════════════════════════════════════
   GAMES PAGE
   ══════════════════════════════════════════════ */

.games-grid-section {
  padding: 120px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.game-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: var(--surface);
}

.game-card-image {
  position: absolute;
  inset: 0;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.4s ease;
  filter: brightness(0.5) saturate(0.6);
}

.game-card:hover .game-card-image img {
  transform: scale(1.06);
  filter: brightness(0.65) saturate(0.9);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 8, 8, 0.95) 0%,
    rgba(8, 8, 8, 0.4) 40%,
    transparent 70%
  );
  z-index: 1;
}

.game-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 40px;
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out);
}

.game-card:hover .game-card-content {
  transform: translateY(0);
}

.game-card-genre {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.game-card-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 12px;
}

.game-card-desc {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.game-card:hover .game-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.game-card-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid;
  margin-bottom: 16px;
}

.game-card-status.released {
  border-color: rgba(0, 200, 100, 0.4);
  color: rgba(0, 200, 100, 0.9);
}

.game-card-status.development {
  border-color: var(--border-red);
  color: var(--red);
}

.game-card-status.announced {
  border-color: rgba(200, 200, 200, 0.3);
  color: var(--grey-mid);
}

/* ── Game modal ── */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

.game-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.game-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(40px);
  transition: transform 0.4s var(--ease-out);
}

.game-modal-overlay.open .game-modal {
  transform: translateY(0);
}

.game-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.game-modal-close:hover {
  color: var(--red);
}

.game-modal-image {
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.game-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.game-modal-body {
  padding: 48px;
}

.game-modal-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.game-modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.game-modal-meta span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--grey-mid);
  text-transform: uppercase;
}

.game-modal-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 32px;
}


/* ══════════════════════════════════════════════
   NEWS PAGE
   ══════════════════════════════════════════════ */

.news-grid-section {
  padding: 120px 0;
}

.news-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.news-full-grid .news-card {
  display: flex;
  flex-direction: column;
  padding-left: 15%;
}

.news-full-grid .news-card-title {
  padding-top: 12px;
  font-size: 1.4rem;
}

.news-full-grid .news-card-summary {
  flex: 1;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}

.news-full-grid .news-card-footer {
  margin-top: auto;
}

/* Filter bar */
.news-filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.news-card-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.news-card:hover .news-card-arrow {
  transform: translate(4px, -4px);
}

.news-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  margin-bottom: -1px;
}

.news-filter-btn:hover,
.news-filter-btn.active {
  color: var(--white);
  border-bottom-color: var(--red);
}


/* ══════════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════════ */

.article-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(0.6);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.3) 0%,
    rgba(8, 8, 8, 0.8) 70%,
    rgba(8, 8, 8, 1) 100%
  );
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-meta-cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

.article-meta-date,
.article-meta-author {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--grey-dark);
  text-transform: uppercase;
}

.article-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grey-darker);
}

.article-title {
  font-size: clamp(2rem, 5vw, 4rem);
}

.article-body {
  padding: 100px 0;
}

.article-body-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-body-inner p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 28px;
  color: var(--grey);
}

.article-body-inner h2 {
  font-size: 1.5rem;
  margin: 52px 0 20px;
  color: var(--white);
}

.article-body-inner h3 {
  font-size: 1.2rem;
  margin: 40px 0 16px;
}

.article-body-inner img {
  width: 100%;
  margin: 48px 0;
  filter: brightness(0.85);
}

.article-body-inner blockquote {
  border-left: 3px solid var(--red);
  padding: 20px 32px;
  margin: 40px 0;
  background: var(--surface);
}

.article-body-inner blockquote p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--grey-light);
  margin: 0;
}

.article-related {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--near-black);
}


/* ══════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════ */

.contact-section {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.contact-info-item {
  margin-bottom: 28px;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--grey);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .about-intro-grid       { grid-template-columns: 1fr; gap: 48px; }
  .values-grid            { grid-template-columns: repeat(2, 1fr); }
  .games-grid             { grid-template-columns: 1fr; }
  .news-full-grid         { grid-template-columns: repeat(2, 1fr); }
  .contact-grid           { grid-template-columns: 1fr; gap: 60px; }

  .join-team-grid         { grid-template-columns: 1fr; gap: 56px; }
  .application-form-wrap  { padding: 32px; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  /* Tighten vertical rhythm on small screens */
  .about-intro,
  .about-values,
  .about-team,
  .about-manifesto,
  .join-team,
  .games-grid-section,
  .news-grid-section,
  .contact-section,
  .article-body,
  .article-related { padding: 80px 0; }

  .values-grid      { grid-template-columns: 1fr; }
  .news-full-grid   { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .game-modal-body  { padding: 28px; }
  .news-filter-bar  { flex-wrap: wrap; }

  /* Carousel: tighter padding, smaller cards */
  .team-track {
    padding: 20px 20px 32px;
    gap: 16px;
  }

  .team-card {
    flex: 0 0 200px;
    width: 200px;
  }

  .team-nav {
    width: 36px;
    height: 36px;
  }

  .team-nav--prev { left: 6px; }
  .team-nav--next { right: 6px; }

  /* Form */
  .application-form-wrap { padding: 24px 20px; }

  .apply-submit {
    width: 100%;
    justify-content: center;
  }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .team-card {
    flex: 0 0 180px;
    width: 180px;
  }
}

/* ── GAMES PAGE ── */
.games-grid-section {
  padding: 120px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.game-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  background: var(--surface);
}

.game-card-image {
  position: absolute;
  inset: 0;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.4s ease;
  filter: brightness(0.5) saturate(0.6);
}

.game-card:hover .game-card-image img {
  transform: scale(1.06);
  filter: brightness(0.65) saturate(0.9);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.4) 40%, transparent 70%);
  z-index: 1;
}

.game-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 40px;
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out);
}

.game-card:hover .game-card-content {
  transform: translateY(0);
}

.game-card-genre {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.game-card-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 12px;
}

.game-card-desc {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.game-card:hover .game-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.game-card-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid;
  margin-bottom: 16px;
}

.game-card-status.released {
  border-color: rgba(0,200,100,0.4);
  color: rgba(0,200,100,0.9);
}

.game-card-status.development {
  border-color: var(--border-red);
  color: var(--red);
}

.game-card-status.announced {
  border-color: rgba(200,200,200,0.3);
  color: var(--grey-mid);
}

/* ── GAME MODAL ── */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

.game-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.game-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(40px);
  transition: transform 0.4s var(--ease-out);
}

.game-modal-overlay.open .game-modal {
  transform: translateY(0);
}

.game-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.game-modal-close:hover { color: var(--red); }

.game-modal-image {
  aspect-ratio: 21/9;
  overflow: hidden;
}

.game-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.game-modal-body {
  padding: 48px;
}

.game-modal-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.game-modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.game-modal-meta span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--grey-mid);
  text-transform: uppercase;
}

.game-modal-desc {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 32px;
}

/* ── NEWS PAGE ── */
.news-grid-section {
  padding: 120px 0;
}

.news-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.news-full-grid .news-card {
  display: flex;
  flex-direction: column;

  padding-left: 15%;
  
}
.news-full-grid .news-card-title{
  padding-top:12px ;
  font-size: 1.4rem
}
.news-full-grid .news-card-summary {
  flex: 1;
  padding-top:12px;
  display: flex;
  flex-direction: column;
}

.news-full-grid .news-card-footer {
  margin-top: auto;
}

.news-filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.news-card-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.news-card:hover .news-card-arrow {
  transform: translate(4px, -4px);
}

.news-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  margin-bottom: -1px;
}

.news-filter-btn:hover,
.news-filter-btn.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* ── ARTICLE PAGE ── */
.article-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(0.6);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.8) 70%, rgba(8,8,8,1) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-meta-cat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

.article-meta-date,
.article-meta-author {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--grey-dark);
  text-transform: uppercase;
}

.article-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grey-darker);
}

.article-title {
  font-size: clamp(2rem, 5vw, 4rem);
}

.article-body {
  padding: 100px 0;
}

.article-body-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-body-inner p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 28px;
  color: var(--grey);
}

.article-body-inner h2 {
  font-size: 1.5rem;
  margin: 52px 0 20px;
  color: var(--white);
}

.article-body-inner h3 {
  font-size: 1.2rem;
  margin: 40px 0 16px;
}

.article-body-inner img {
  width: 100%;
  margin: 48px 0;
  filter: brightness(0.85);
}

.article-body-inner blockquote {
  border-left: 3px solid var(--red);
  padding: 20px 32px;
  margin: 40px 0;
  background: var(--surface);
}

.article-body-inner blockquote p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--grey-light);
  margin: 0;
}

.article-related {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--near-black);
}

/* ── CONTACT PAGE ── */
.contact-section {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.contact-info-item {
  margin-bottom: 28px;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--grey);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
  border-radius: 0;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-dark);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(179,0,0,0.2), inset 0 0 20px rgba(179,0,0,0.03);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--red-bright);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

.form-error {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--red-bright);
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  padding: 24px;
  background: rgba(179,0,0,0.07);
  border: 1px solid var(--border-red);
  text-align: center;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

/* ── PAGE RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: 1fr; }
  .news-full-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
  .page-section { padding: 80px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .news-full-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .game-modal-body { padding: 28px; }

  .news-filter-bar { flex-wrap: wrap; }
}
