/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg-dark:    #070B0E;
  --bg-darker:  #040609;
  --bg-mid:     #1E272B;
  --gold:       #F2AE03;
  --gold-warm:  #FFAD00;
  --rust:       #D85C32;
  --text:       #E0E9E4;
  --text-dim:   rgba(224, 233, 228, 0.7);
  --nav-height: 76px;
  --max-width:  1280px;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Section divider ─── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-divider--light .divider-line { background: rgba(224,233,228,0.15); }
.section-divider--left { justify-content: flex-start; padding: 0 0 20px; }

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(224, 233, 228, 0.2);
}

.divider-line--short { flex: 0 0 80px; }

.divider-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  white-space: nowrap;
}

.divider-label--gold { color: var(--gold); }

/* ─── Torn / jagged section edges ─── */
/* Each class places a jagged shape at the section bottom in the color of the next section */
.torn-edge { position: relative; }

/* Shared polygon path for the jagged edge shape */
.torn-edge--bottom::after,
.torn-edge--bottom-dark::after,
.torn-edge--bottom-white::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 10;
  pointer-events: none;
  clip-path: polygon(
    0% 100%, 0% 55%, 1.5% 20%, 3% 68%, 4.5% 30%, 6% 78%, 7.5% 12%, 9% 62%,
    10.5% 32%, 12% 72%, 13.5% 8%, 15% 58%, 16.5% 22%, 18% 68%, 19.5% 38%,
    21% 78%, 22.5% 18%, 24% 62%, 25.5% 28%, 27% 72%, 28.5% 5%, 30% 52%,
    31.5% 22%, 33% 68%, 34.5% 14%, 36% 58%, 37.5% 32%, 39% 72%, 40.5% 18%,
    42% 62%, 43.5% 8%, 45% 52%, 46.5% 28%, 48% 70%, 49.5% 16%, 51% 60%,
    52.5% 26%, 54% 66%, 55.5% 10%, 57% 56%, 58.5% 36%, 60% 76%, 61.5% 20%,
    63% 62%, 64.5% 12%, 66% 58%, 67.5% 30%, 69% 70%, 70.5% 16%, 72% 52%,
    73.5% 22%, 75% 66%, 76.5% 8%, 78% 56%, 79.5% 32%, 81% 72%, 82.5% 18%,
    84% 60%, 85.5% 10%, 87% 52%, 88.5% 36%, 90% 76%, 91.5% 20%, 93% 58%,
    94.5% 28%, 96% 68%, 97.5% 14%, 99% 52%, 100% 38%, 100% 100%
  );
}

/* Use bg-darker color (section above is bg-dark, next is bg-darker) */
.torn-edge--bottom::after    { background: var(--bg-darker); }
/* Use bg-dark color (section above is bg-darker, next is bg-dark) */
.torn-edge--bottom-dark::after  { background: var(--bg-dark); }
/* Use white (next section is white footer) */
.torn-edge--bottom-white::after { background: #fff; }

/* ─── Buttons ─── */
.btn-orange-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #fff;
  background-image: url(assets/btn-orange.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-orange-cta:hover { opacity: 0.95; transform: translateY(-1px); box-shadow: 0 0 18px 2px rgba(242,174,3,0.45); }
.btn-orange-cta:active { transform: translateY(0); box-shadow: none; }
button.btn-orange-cta { border: none; background-color: transparent; }

.btn-orange-cta img {
  width: 18px;
  height: auto;
  filter: brightness(0) invert(1);
}

.btn-orange-cta--sm { padding: 8px 20px; font-size: 13px; }

.btn-dark-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #fff;
  background-image: url(assets/btn-dark.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, filter 0.2s;
}

.btn-dark-cta:hover { opacity: 0.95; transform: translateY(-1px); box-shadow: 0 0 14px 2px rgba(255,255,255,0.12); }
.btn-dark-cta--sm { padding: 8px 20px; font-size: 13px; }

.btn-dark-cta img {
  width: 18px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Disabled state for "coming soon" buttons */
.btn-action--disabled,
.btn-dark-cta--disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(7,11,14,0.95) 0%, rgba(7,11,14,0.7) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}

#nav.scrolled {
  background: rgba(7,11,14,0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  gap: 32px;
}

/* Logo */
.nav-logo img {
  height: 52px;
  width: auto;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.85; }

/* Nav menu wrapper — on desktop, flex row; on mobile, collapsible */
.nav-menu {
  display: contents; /* behaves as if children are direct flex items of nav-inner */
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: rgba(224, 233, 228, 0.75);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-social a {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-social a:hover { opacity: 1; }

.nav-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* CTA button in nav */
.btn-nav-cta {
  padding: 8px 22px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #fff;
  background-image: url(assets/btn-orange.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hamburger (mobile only) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Hero background video layer */
.hero-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}
/* Video is always visible once src is set — bg layers cross-fade on top */

.hero-mute-btn {
  position: absolute;
  bottom: 68px;
  right: 20px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.hero-mute-btn:hover { background: rgba(0,0,0,0.8); }

.hero-playvid-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 0 14px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.hero-playvid-btn:hover { background: rgba(0,0,0,0.8); }

.hero-vid-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;

  /* Pixel-art loading box */
  width: auto;
  height: auto;
  border: 2px solid rgba(242,174,3,0.55);
  border-radius: 0;
  background: rgba(0,0,0,0.72);
  animation: none;
  padding: 10px 18px;
  white-space: nowrap;

  /* Corner pixel accents */
  box-shadow:
    -3px -3px 0 0 rgba(242,174,3,0.35),
     3px -3px 0 0 rgba(242,174,3,0.35),
    -3px  3px 0 0 rgba(242,174,3,0.35),
     3px  3px 0 0 rgba(242,174,3,0.35);
}

.hero-vid-spinner::before {
  content: 'TRAILER LOADING';
  font-family: 'FS Pixel Sans', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #f2ae03;
}

.hero-vid-spinner::after {
  content: '...';
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  font-family: 'FS Pixel Sans', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #f2ae03;
  animation: px-dots 1.4s steps(4, end) infinite;
}

@keyframes px-dots {
  from { width: 0; }
  to   { width: 2em; }
}

.hero-iframe-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
  pointer-events: none;
  border: none;
}
.hero-iframe-layer.active {
  opacity: 1;
  pointer-events: auto;
}

/* Crossfade: two layers swap opacity — sit above the video layer */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-bg-layer.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7,11,14,0.72) 0%, rgba(7,11,14,0.3) 50%, rgba(7,11,14,0.05) 100%),
    linear-gradient(to top, rgba(7,11,14,0.85) 0%, transparent 55%);
  z-index: 1;
}

/* ── Carousel arrows ── */
.hero-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7,11,14,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-arrow svg { width: 22px; height: 22px; }

.hero-arrow--left  { left: 24px; }
.hero-arrow--right { right: 24px; }

.hero-arrow:hover {
  background: rgba(242,174,3,0.2);
  border-color: rgba(242,174,3,0.5);
  color: #fff;
}

.hero-arrow:disabled,
.hero-arrow.hidden { opacity: 0; pointer-events: none; }

/* ── Screenshot counter ── */
.hero-counter {
  position: absolute;
  z-index: 10;
  bottom: 28px;
  right: 36px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.hero-counter-dot {
  width: 20px;
  height: 3px;
  border-radius: 0;
  background: rgba(255,255,255,0.3);
  transition: background 0.25s, width 0.25s;
  cursor: pointer;
  border: none;
  padding: 0;
}

.hero-counter-dot.active {
  background: var(--gold);
  width: 32px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-left: 88px;
}

/* Each panel hidden unless active */
.hero-panel {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 72px;
  max-width: 600px;
}

.hero-panel.active { display: flex; }

/* Transparent logo PNG (Trophy RC) */
.hero-logo {
  display: none;
}

.hero-panel[data-game="saltydogs"] .hero-logo {
  max-height: 236px;
  width: auto;
}

.hero-genre {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-title-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(60px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  margin-bottom: 28px;
}

/* Per-game title colour accents */
.hero-title-text--saltydogs {
  color: #7ee8ff;
  text-shadow: 0 0 60px rgba(80,200,255,0.3), 0 4px 24px rgba(0,0,0,0.7);
}

.hero-title-text--lostrailway {
  color: #fff;
  text-shadow: 0 0 60px rgba(255,80,80,0.25), 0 4px 24px rgba(0,0,0,0.7);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, filter 0.2s;
}

.btn-action:hover { opacity: 0.95; transform: translateY(-2px); box-shadow: 0 0 18px 2px rgba(242,174,3,0.4); }
.btn-action:active { transform: translateY(0); box-shadow: none; }

.btn-dark-action {
  background-image: url(assets/btn-dark.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.btn-orange-action {
  background-image: url(assets/btn-orange.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.btn-orange-action:hover { box-shadow: 0 0 18px 2px rgba(242,174,3,0.45); }

.btn-action img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ═══════════════════════════════════════════════
   GAMES SHOWCASE
═══════════════════════════════════════════════ */
#games {
  background: var(--bg-dark);
  padding-top: 40px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 20px;
  padding: 0 60px;
}

#games {
  scroll-margin-top: var(--nav-height);
}

/* Game card is now a <button> acting as tab */
.game-card {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  -webkit-appearance: none;
}

/* Screenshots hidden everywhere — capsules are the card image */
.game-card-screenshot { display: none; }

.game-card-capsule {
  display: block;
  width: 100%;
  overflow: hidden;
}
.game-card-capsule > img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.55) saturate(0.7);
}

.game-card:hover .game-card-capsule > img,
.game-card.active .game-card-capsule > img {
  transform: scale(1.04);
  filter: brightness(0.75) saturate(1);
}

.game-card.active .game-card-capsule > img {
  filter: brightness(0.9) saturate(1.1);
}

/* Hide game logos on desktop cards — capsules have branding built in */
.game-card-overlay picture { display: none; }

/* Gradient overlay always present, darker on inactive */
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,11,14,0.9) 0%, rgba(7,11,14,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  transition: opacity 0.3s;
}

.game-card-logo {
  width: 75%;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.9));
}

.game-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.game-card-tag {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 4px;
}

/* Mobile carousel dots — hidden on desktop */
.games-carousel-dots { display: none; }

/* Gold active indicator bar at bottom of card */
.game-card-active-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.game-card.active .game-card-active-bar {
  transform: scaleX(1);
}

.game-card--disabled {
  cursor: default;
  pointer-events: none;
}
.game-card--disabled .game-card-capsule > img {
  filter: brightness(0.55) saturate(0.4);
}
.game-card--disabled:hover .game-card-capsule > img {
  transform: none;
  filter: brightness(0.55) saturate(0.4);
}
.game-card--disabled .game-card-label {
  color: var(--text-dim);
}
.game-card--disabled::after {
  content: 'COMING SOON';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.72);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border: 1px solid rgba(242,174,3,0.35);
  z-index: 4;
}

/* ═══════════════════════════════════════════════
   GAME INFO PANEL (below game cards)
═══════════════════════════════════════════════ */
.game-info-panel {
  background: var(--bg-darker);
}

.game-info-item {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 40px;
  gap: 48px;
  align-items: center;
}

.game-info-item.active {
  display: flex;
  animation: gameInfoFade 0.3s ease;
}

@keyframes gameInfoFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.game-info-left {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-info-logo {
  max-width: 200px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
}

.game-info-logo--large {
  max-height: 96px;
  max-width: 220px;
}

.game-info-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.game-info-genre {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.game-info-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.game-info-body p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 580px;
}

.game-info-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   STUDIO MASCOT SECTION
═══════════════════════════════════════════════ */
#studio {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-darker);
}

.studio-bg {
  position: absolute;
  inset: 0;
  background: url(assets/monster-bg.webp) right center / cover no-repeat;
}

.studio-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(4,6,9,0.97) 30%, rgba(4,6,9,0.5) 65%, rgba(4,6,9,0.1) 100%),
    linear-gradient(to top, rgba(4,6,9,0.6) 0%, transparent 40%);
}

.studio-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

.studio-text {
  max-width: 520px;
}

.studio-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.studio-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 420px;
}

/* ═══════════════════════════════════════════════
   GAME DETAILS
═══════════════════════════════════════════════ */
#game-details {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: var(--bg-darker);
}

.details-bg {
  position: absolute;
  inset: 0;
  background: url(assets/mountain-bg.webp) center center / cover no-repeat;
  opacity: 0.12;
}

.details-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(4,6,9,0.5) 0%,
    rgba(4,6,9,0.0) 30%,
    rgba(4,6,9,0.0) 70%,
    rgba(4,6,9,0.8) 100%
  );
}

.detail-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

/* ─── Individual detail card ─── */
.detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.detail-card:hover .service-card-title {
  color: var(--gold);
}

.detail-card {
  background: #13171e;
  border: 1px solid rgba(255,255,255,0.07);
}

/* Header banner — PNG with torn edges */
.detail-card-header {
  display: block;
  margin: 0;
  padding: 10px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  background-image: url(assets/card-header-dark.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  color: rgba(224,233,228,0.5);
  transition: color 0.3s ease;
}

.detail-card:hover .detail-card-header,
.detail-card.mobile-active .detail-card-header {
  background-image: url(assets/card-header-orange.png);
  color: #fff;
}

/* Card art */
.detail-card-art {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.detail-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-card:hover .detail-card-art img {
  transform: scale(1.04);
}

/* Card body */
.detail-card-body {
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Transparent logo PNG in detail card */
.detail-game-logo {
  width: auto;
  max-width: 200px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.detail-game-logo--large {
  max-height: 80px;
  max-width: 200px;
}

.detail-game-title-text--saltydogs {
  color: #7ee8ff;
}

.detail-game-title-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.detail-game-title-text--dim {
  color: var(--text-dim);
  font-size: 20px;
  letter-spacing: 0.2em;
}

.detail-card-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

.detail-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
#about {
  background: var(--bg-dark);
  padding: 80px 0 60px;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-text .btn-orange-cta {
  margin-top: 16px;
}

.about-visual {
  position: relative;
  height: 460px;
}

/* Scattered screenshot cards */
.about-screenshot {
  position: absolute;
  overflow: hidden;
  outline: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.75), 4px 4px 0 rgba(0,0,0,0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease, outline-color 0.35s ease;
  cursor: default;
}

.about-screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-screenshot:hover {
  z-index: 10;
  outline-color: rgba(242,174,3,0.6);
  box-shadow: 0 16px 48px rgba(0,0,0,0.85), 6px 6px 0 rgba(0,0,0,0.5);
}

.about-screenshot:hover img { transform: scale(1.04); }

/* 4 landscape + 1 portrait — portrait anchored right, landscapes cascade left */
.about-screenshot--1 {
  width: 52%;
  height: 130px;
  top: 0;
  left: 0;
  transform: rotate(-2deg);
  z-index: 1;
}
.about-screenshot--1:hover { transform: rotate(-0.5deg) scale(1.04); }

.about-screenshot--2 {
  width: 52%;
  height: 130px;
  top: 20%;
  left: 14%;
  transform: rotate(2deg);
  z-index: 2;
}
.about-screenshot--2:hover { transform: rotate(0.5deg) scale(1.04); }

.about-screenshot--3 {
  width: 52%;
  height: 130px;
  bottom: 20%;
  left: 4%;
  transform: rotate(-1.5deg);
  z-index: 3;
}
.about-screenshot--3:hover { transform: rotate(-0.5deg) scale(1.04); }

.about-screenshot--4 {
  width: 52%;
  height: 130px;
  bottom: 0;
  left: 16%;
  transform: rotate(1.5deg);
  z-index: 4;
}
.about-screenshot--4:hover { transform: rotate(0.5deg) scale(1.04); }

/* Portrait screenshot — tall, anchored right */
.about-screenshot--5 {
  width: 30%;
  height: 340px;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(1.5deg);
  z-index: 5;
}
.about-screenshot--5:hover { transform: translateY(-50%) rotate(0.5deg) scale(1.04); }

/* ═══════════════════════════════════════════════
   PITCH MODAL
═══════════════════════════════════════════════ */
.pitch-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,6,9,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.pitch-modal {
  position: relative;
  background: #0b0f14;
  border: 1px solid rgba(255,255,255,0.09);
  max-width: 760px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.pitch-modal--wide { max-width: 900px; }

.pitch-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pitch-optional {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(224,233,228,0.35);
  text-transform: none;
  margin-left: 4px;
}

/* ─ File drop zone ─ */
.apply-file-zone {
  border: 1px dashed rgba(255,255,255,0.2);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.apply-file-zone:hover,
.apply-file-zone.drag-over {
  border-color: var(--gold);
  background: rgba(242,174,3,0.04);
}
.apply-file-prompt {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}
.apply-file-link {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  text-decoration: underline;
  padding: 0;
}
.apply-file-name {
  font-size: 13px;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.apply-file-clear {
  background: none;
  border: none;
  color: rgba(224,233,228,0.4);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.apply-file-clear:hover { color: #e06060; }

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

.pitch-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  transition: color 0.2s;
  z-index: 2;
}
.pitch-close:hover { color: #fff; }

.pitch-inner { padding: 52px 56px 56px; }

.pitch-header { margin-bottom: 36px; }

.pitch-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 10px;
}

.pitch-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 48px;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
}

.pitch-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ─ Form grid ─ */
.pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 20px;
}

.pitch-field { display: flex; flex-direction: column; gap: 6px; }
.pitch-field--full { grid-column: 1 / -1; }

.pitch-field label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.pitch-field .req { color: var(--gold); }

.pitch-field input,
.pitch-field textarea {
  background: #141b22;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}

.pitch-field input::placeholder,
.pitch-field textarea::placeholder { color: rgba(224,233,228,0.25); font-style: italic; }

.pitch-field input:focus,
.pitch-field textarea:focus { border-color: rgba(242,174,3,0.6); }

.pitch-hint {
  font-size: 11px;
  color: rgba(224,233,228,0.4);
  line-height: 1.5;
}

/* ─ Checkbox ─ */
.pitch-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.pitch-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

.pitch-checkbox-row label {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  cursor: pointer;
}

/* ─ Actions ─ */
.pitch-actions { display: flex; flex-direction: column; gap: 12px; }

.pitch-submit { align-self: flex-start; cursor: pointer; border: none; }
.pitch-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.pitch-error {
  font-size: 13px;
  color: #e06060;
  line-height: 1.5;
}
.pitch-error a { color: var(--gold); text-decoration: underline; }

/* ─ Success state ─ */
.pitch-success {
  text-align: center;
  padding: 60px 0 20px;
}

.pitch-success-icon {
  font-size: 48px;
  color: var(--gold);
  margin-bottom: 16px;
}

.pitch-success h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: #fff;
  margin-bottom: 12px;
}

.pitch-success p {
  font-size: 15px;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .pitch-inner { padding: 40px 24px 40px; }
  .pitch-grid { grid-template-columns: 1fr; }
  .pitch-title { font-size: 36px; }
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
#contact {
  background: var(--bg-darker);
  padding: 100px 0;
  text-align: center;
}

.contact-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.04em;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
}

.contact-sub {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 36px;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, border-color 0.2s;
}

.contact-social a:hover {
  background: rgba(242, 174, 3, 0.12);
  border-color: rgba(242, 174, 3, 0.4);
}

.contact-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.contact-social a:hover img { opacity: 1; }

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
#services {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: var(--bg-darker);
  scroll-margin-top: var(--nav-height);
}

#services .container {
  padding: 0 24px;
}

.services-bg {
  position: absolute;
  inset: 0;
  background: url(assets/mountain-bg.webp) center center / cover no-repeat;
  opacity: 0.07;
}

.services-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,11,14,0.6) 0%, transparent 30%, transparent 70%, rgba(7,11,14,0.6) 100%);
}

.services-content {
  position: relative;
  z-index: 2;
}

.services-content .section-divider {
  padding: 0 0 12px;
  margin-bottom: 0;
}

.services-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

/* Publishing divider sits inside publishing-text so reset left padding */
.publishing-text .section-divider {
  padding-left: 0;
  margin-bottom: 14px;
}

/* Service card title & body reuse .detail-card shell */
.service-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 4px;
  transition: color 0.3s ease;
  overflow-wrap: break-word;
  word-break: break-word;
}

.service-card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  min-height: 95px; /* ensures consistent bullet start position across columns */
}

.service-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.service-card-list li {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.service-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.service-card-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── Services mobile carousel nav (hidden on desktop) ─── */
.services-carousel-nav {
  display: none;
}

/* ═══════════════════════════════════════════════
   PUBLISHING
═══════════════════════════════════════════════ */
#publishing {
  position: relative;
  z-index: 5;
  margin-top: -80px;
  background: var(--bg-darker);
  will-change: transform;
}

.publishing-bg {
  position: absolute;
  inset: 0;
  background: url(assets/footer-bg.webp) right center / auto 110% no-repeat;
}

.publishing-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(4,6,9,1.0)  0%,
      rgba(4,6,9,0.95) 35%,
      rgba(4,6,9,0.65) 65%,
      rgba(4,6,9,0.15) 100%
    );
}

.publishing-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 240px;
}

.publishing-text {
  max-width: 540px;
}

.publishing-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 16px;
}

.publishing-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 20px;
}

.publishing-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}

/* ═══════════════════════════════════════════════
   JOIN US / JOBS
═══════════════════════════════════════════════ */
#jobs {
  background: var(--bg-dark);
  padding: 100px 0 110px;
}

.jobs-content {
}

.jobs-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 16px;
}

.jobs-body {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 48px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jobs-empty {
  font-size: 15px;
  color: var(--text-dim);
  padding: 40px 0;
  border-top: 1px solid rgba(224,233,228,0.1);
}

/* ── Job card ── */
.job-card {
  border: 1px solid rgba(224,233,228,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  transition: border-color 0.2s;
}

.job-card:hover {
  border-color: rgba(242,174,3,0.4);
}

.job-card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  gap: 16px;
}

.job-card-left {
  flex: 1;
  min-width: 0;
}

.job-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
}

.job-tag--dept {
  background: rgba(242,174,3,0.15);
  color: var(--gold);
}

.job-card-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(224,233,228,0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, transform 0.25s;
}

.job-card.open .job-card-toggle {
  transform: rotate(45deg);
  border-color: var(--gold);
  color: var(--gold);
}

.job-card-details {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid rgba(224,233,228,0.08);
}

.job-card.open .job-card-details {
  display: block;
}

.job-card-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  margin: 20px 0 24px;
  white-space: pre-wrap;
}

.job-section {
  margin-bottom: 24px;
}

.job-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.job-card-reqs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-card-nice li::before {
  content: '◦';
  color: rgba(224, 233, 228, 0.45);
}

.job-card-offer li::before {
  content: '✦';
  font-size: 10px;
  margin-top: 3px;
}

.job-card-reqs li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.job-card-reqs li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════════════════
   COMMUNITY FEED
═══════════════════════════════════════════════ */
#feed {
  background: var(--bg-darker);
  padding: 80px 0 90px;
}

.feed-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}

.feed-intro {
  position: sticky;
  top: 96px;
}

.feed-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 2.8vw, 42px);
  letter-spacing: 0.03em;
  color: #fff;
  margin: 12px 0 16px;
}

.feed-intro-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

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

.feed-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-card--discord {
  border-top: 2px solid rgba(88,101,242,0.55);
}

.feed-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feed-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.feed-card-meta { display: flex; flex-direction: column; gap: 2px; }

.feed-card-source {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

/* Discord members grid */
.feed-discord-members {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discord-member {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.discord-member img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-member-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg-darker);
}
.discord-member-status--online  { background: #3ba55c; }
.discord-member-status--idle    { background: #faa61a; }
.discord-member-status--dnd     { background: #ed4245; }
.discord-member-status--offline { background: #747f8d; }

.feed-discord-empty p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.feed-join-btn { align-self: flex-start; }

/* Discord channel messages */
.discord-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 18px;
  max-height: 280px;
  overflow-y: auto;
}
.discord-messages::-webkit-scrollbar { width: 3px; }
.discord-messages::-webkit-scrollbar-track { background: transparent; }
.discord-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); }

.discord-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.discord-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.discord-msg-avatar--placeholder {
  background: rgba(88,101,242,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.discord-msg-body { flex: 1; min-width: 0; }

.discord-msg-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.discord-msg-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.discord-msg-time {
  font-size: 10px;
  color: rgba(224,233,228,0.35);
}

.discord-msg-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
}
.discord-msg-text strong { color: rgba(224,233,228,0.9); }
.discord-msg-text code {
  background: rgba(255,255,255,0.08);
  padding: 1px 4px;
  font-size: 12px;
  border-radius: 3px;
}

/* Studio updates */
.feed-updates-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  overflow-y: auto;
  max-height: 320px;
  padding-right: 4px;
}

.feed-updates-list::-webkit-scrollbar { width: 3px; }
.feed-updates-list::-webkit-scrollbar-track { background: transparent; }
.feed-updates-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }

.update-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.update-item:last-child { border-bottom: none; padding-bottom: 0; }

.update-date {
  font-size: 11px;
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 2px;
  min-width: 70px;
}

.update-body { display: flex; flex-direction: column; gap: 4px; }

.update-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.update-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.update-link {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.update-link:hover { text-decoration: underline; }

.feed-empty {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

@media (max-width: 900px) {
  .feed-layout { grid-template-columns: 1fr; gap: 36px; }
  .feed-intro { position: static; }
  .feed-heading { font-size: clamp(32px, 6vw, 48px); }
}

@media (max-width: 600px) {
  #jobs { padding: 70px 0 80px; }
  .job-card-summary { padding: 16px 18px; }
  .job-card-details { padding: 0 18px 20px; }
  .job-card-title { font-size: 17px; }
  .jobs-body { font-size: 14px; }
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#footer {
  position: relative;
  z-index: 10;
}

/* Smooth SVG torn edge between publishing and white footer */
.footer-tear {
  display: block;
  width: 100%;
  height: 80px;
  background: transparent; /* publishing section dark shows through */
}

/* White section — logo pokes up into the SVG edge above */
.footer-top {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 24px 20px;
  overflow: visible;
  outline: 1px solid #fff;
}

.footer-logo-dark {
  height: 180px;
  width: auto;
  margin-top: -160px;
  position: relative;
  z-index: 20;
}

/* Gray section — socials + copyright, centered column */
.footer-bottom {
  background: #e8e8e4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 24px 24px;
}

.footer-social-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-social-row a:hover { opacity: 1; }

.footer-social-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0);
}

.footer-copy {
  font-size: 12px;
  color: rgba(30,30,30,0.45);
  letter-spacing: 0.03em;
  text-align: center;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .publishing-heading { font-size: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .container { padding: 0 20px; }

  /* ── Nav ── */
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }

  #nav.open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(7,11,14,0.99);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
  }

  #nav.open .nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px 24px 12px;
    gap: 18px;
  }

  #nav.open .nav-links a {
    font-size: 16px;
    color: var(--text);
  }

  #nav.open .nav-right {
    display: flex;
    flex-direction: row;
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 16px;
    align-items: center;
  }

  /* ── Hero: taller on mobile ── */
  #hero { height: 70vw; min-height: 220px; }
  .hero-panel { display: none !important; }
  .hero-counter { right: 12px; bottom: 10px; }

  /* ── Mobile hero arrows: smaller ── */
  .hero-arrow {
    width: 36px;
    height: 36px;
    top: 50%;
  }
  .hero-arrow svg { width: 16px; height: 16px; }
  .hero-arrow--left  { left: 8px; }
  .hero-arrow--right { right: 8px; }
  .hero-overlay {
    background:
      linear-gradient(to top, rgba(7,11,14,0.5) 0%, transparent 40%),
      linear-gradient(to bottom, rgba(7,11,14,0.3) 0%, transparent 30%);
  }

  /* ── Games grid: horizontal swipe carousel on mobile ── */
  #games { overflow: hidden; padding-top: 20px; }
  .games-grid {
    display: flex;
    flex-direction: row;
    grid-template-columns: unset;
    gap: 0;
    padding: 8px 0 12px;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .games-grid::-webkit-scrollbar { display: none; }

  .game-card {
    flex: 0 0 78vw;
    height: auto;
    min-height: unset;
    background: none;
    border-bottom: none;
    scroll-snap-align: center;
    margin: 0 6px;
    transform: scale(0.9);
    opacity: 0.6;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.5s ease;
  }
  .game-card:first-child { margin-left: calc(50% - 39vw); }
  .game-card:last-child  { margin-right: calc(50% - 39vw); }
  .game-card.active {
    transform: scale(1);
    opacity: 1;
    background: none;
    border-bottom: none;
  }

  /* Mobile: capsule filter overrides */
  .game-card .game-card-capsule > img {
    filter: brightness(0.6) saturate(0.8);
  }
  .game-card.active .game-card-capsule > img {
    filter: brightness(0.9) saturate(1.05);
  }
  .game-card--disabled .game-card-capsule > img {
    filter: brightness(0.5) saturate(0.35);
  }

  .game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,11,14,0.85) 0%, rgba(7,11,14,0.15) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 14px 16px;
  }
  .game-card-logo { max-width: 55%; max-height: 44px; }
  .game-card-active-bar { height: 3px; }

  /* Mobile carousel dots */
  .games-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 20px;
  }
  .games-carousel-dot {
    width: 24px;
    height: 3px;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s;
  }
  .games-carousel-dot.active {
    background: var(--gold);
    width: 36px;
  }

  /* ── Game info panel (standalone, when not moved by JS) ── */
  .game-info-item,
  .game-info-item.active {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px 20px;
  }
  .game-info-left { flex: none; width: 100%; }
  .game-info-logo { max-height: 52px; }
  .game-info-logo--large { max-height: 72px; max-width: 180px; }
  .game-info-body { width: 100%; min-width: 0; box-sizing: border-box; }
  .game-info-body p { font-size: 14px; max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
  .game-info-actions { flex-wrap: wrap; gap: 10px; }

  /* ── Studio ── */
  #studio { min-height: auto; padding: 50px 0; }
  .studio-heading { font-size: 34px; }
  .studio-body { font-size: 14px; }

  /* ── About ── */
  #about { padding: 50px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { height: 340px; }
  .about-screenshot--1 { width: 58%; height: 100px; }
  .about-screenshot--2 { width: 58%; height: 100px; }
  .about-screenshot--3 { width: 58%; height: 100px; }
  .about-screenshot--4 { width: 58%; height: 100px; }
  .about-screenshot--5 { width: 26%; height: 260px; }
  .about-heading { font-size: clamp(28px, 7vw, 48px); }

  /* ── Services: carousel on mobile ── */
  #services { padding: 60px 0 40px; }
  #services .container { padding: 0 12px; }
  .detail-cards {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .detail-card-body { padding: 16px 16px 28px; }
  .detail-card { display: none; }
  .detail-card.mobile-active { display: flex; }
  .services-heading { font-size: 28px; margin-bottom: 20px; }

  .services-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px 0 48px;
  }
  .services-carousel-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .services-carousel-arrow:hover {
    background: rgba(242,174,3,0.15);
    border-color: rgba(242,174,3,0.4);
    color: #fff;
  }
  .services-carousel-arrow svg { width: 18px; height: 18px; }

  .services-carousel-dots {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .services-carousel-dot {
    width: 20px;
    height: 3px;
    border-radius: 0;
    background: rgba(255,255,255,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
  }
  .services-carousel-dot.active {
    background: var(--gold);
    width: 32px;
  }

  /* ── Publishing ── */
  .publishing-heading { font-size: 38px; }
  .publishing-bg { background-position: 80% center; opacity: 0.35; }
  #publishing { margin-top: 0; }
  .publishing-content { padding-top: 60px; padding-bottom: 200px; }

  /* ── Section dividers ── */
  .section-divider { padding: 16px 20px; }

  /* ── Footer ── */
  .footer-logo-dark { height: 110px; margin-top: -70px; }

  /* ── No glow on touch devices ── */
  .btn-orange-cta:hover,
  .btn-dark-cta:hover,
  .btn-action:hover { box-shadow: none; }
}

@media (max-width: 480px) {
  /* ── Hero ── */
  .hero-content { padding-left: 16px; }
  .hero-logo { width: 180px; max-width: 50vw; }
  .hero-panel[data-game="saltydogs"] .hero-logo { max-height: 110px; width: auto; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .btn-action { justify-content: center; width: 100%; max-width: 240px; }

  /* ── Games grid ── */
  .games-grid { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .game-card > img:first-child { aspect-ratio: 16 / 8; }
  .game-card-logo { max-width: 50%; max-height: 38px; }
  .game-card-label { font-size: 11px; }
  .game-card-overlay { padding: 10px; }

  /* ── Game info panel ── */
  .game-info-item,
  .game-info-item.active { padding: 20px 16px; }
  .game-info-title { font-size: 22px; }

  /* ── Publishing ── */
  .publishing-heading { font-size: 30px; }
  .publishing-body { font-size: 14px; }

  /* ── Pitch modal ── */
  .pitch-overlay { padding: 0; align-items: flex-start; }
  .pitch-modal { min-height: 100dvh; }
  .pitch-inner { padding: 52px 20px 40px; }
  .pitch-grid { grid-template-columns: 1fr; }
  .pitch-title { font-size: 32px; }
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS (subtle fade-in)
═══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
