/* SparkOne games showcase. Managed by SparkOne_MasterMind/deploy/showcase. Colours and fonts are the
   portfoliox-dark theme's own (main.css): #111319 ground, #B6FB44 accent, Merriweather + Akshar. */
/* The slim header band that replaces the theme's hero on the front page. */
.sl-band {
  background: radial-gradient(ellipse at 12% 0%, rgba(182, 251, 68, .08), transparent 55%), #0b0c10;
  border-bottom: 1px solid rgba(196, 207, 222, .08);
  padding: 22px 0 18px; color: #c4cfde;
}
.sl-band-row { display: flex; align-items: center; gap: 18px; min-width: 0; }
.sl-band-logo { width: 88px; height: 88px; object-fit: contain; flex: none; border-radius: 12px; }
.sl-band-id { min-width: 0; }
.sl-band-sub {
  display: block; font: 600 13px/1.2 'Akshar', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #B6FB44;
}
.sl-band h1 {
  font-family: 'Merriweather', serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 4px 0 2px; color: #B6FB44;
}
.sl-band h1 span { color: #9aa3ad; font-size: .62em; font-weight: 400; margin-left: .35em; white-space: nowrap; }
.sl-band p { margin: 0; color: #7c838e; font-size: 14px; }
.sl-band-btns {
  display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.sl-band-btns::-webkit-scrollbar { display: none; }
.sl-band-btn {
  flex: none; white-space: nowrap; text-decoration: none;
  font: 600 13px/1 'Akshar', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #e6ebf2; background: #1a1d24; border: 1px solid rgba(196, 207, 222, .14);
  padding: 10px 16px; border-radius: 6px; transition: background .2s, color .2s, border-color .2s;
}
.sl-band-btn:hover, .sl-band-btn:focus-visible { color: #111319; background: #B6FB44; border-color: #B6FB44; outline: none; }
.sl-band-btn.is-primary { color: #111319; background: #B6FB44; border-color: #B6FB44; }
.sl-band-btn.is-primary:hover, .sl-band-btn.is-primary:focus-visible { background: #fff; border-color: #fff; }
@media (min-width: 992px) {
  /* One line on a desktop: identity left, buttons right. */
  .sl-band > .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .sl-band-btns { margin-top: 0; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
}
@media (max-width: 575px) {
  .sl-band { padding: 16px 0 14px; }
  .sl-band-logo { width: 56px; height: 56px; }
  .sl-band h1 span { display: block; margin: 2px 0 0; font-size: .6em; }
}

.sl-games {
  --sl-bg: #111319;
  --sl-card: #181b22;
  --sl-line: rgba(196, 207, 222, .10);
  --sl-text: #c4cfde;
  --sl-muted: #7c838e;
  --sl-accent: #B6FB44;
  background: var(--sl-bg);
  padding: 28px 0 40px;
  color: var(--sl-text);
}
.sl-games-head { margin: 0 0 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.sl-games-head h5 {
  font-family: 'Akshar', sans-serif; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sl-accent); font-size: 14px; margin: 0; flex-basis: 100%;
}
.sl-games-head h2 {
  font-family: 'Merriweather', serif; color: #fff; font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15; margin: 0;
}
.sl-games-head p { color: var(--sl-muted); margin: 0; font-size: 16px; }

.sl-games-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sl-game {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--sl-card); border: 1px solid var(--sl-line); border-radius: 10px; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sl-game:hover, .sl-game:focus-within {
  transform: translateY(-4px); border-color: rgba(182, 251, 68, .45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(182, 251, 68, .15);
}
/* The newest game gets the whole first row: clip left, words right. */
.sl-game--feature { grid-column: 1 / -1; flex-direction: row; }
.sl-game--feature .sl-game-media { flex: 0 0 62%; }
.sl-game--feature .sl-game-body { justify-content: center; padding: 28px 32px; }
.sl-game--feature .sl-game-body p { flex: 0 0 auto; font-size: 16px; }

.sl-game-media {
  position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
}
.sl-game-media img, .sl-game-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.sl-game-media video { opacity: 0; transition: opacity .6s ease; }
.sl-game-media video.is-playing { opacity: 1; }
.sl-game-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--sl-accent); color: #111319; border-radius: 999px; padding: 3px 10px;
  font: 700 12px/1.4 'Akshar', sans-serif; letter-spacing: .08em; text-transform: uppercase;
}

.sl-game-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.sl-game-kind {
  font: 600 12px/1.2 'Akshar', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-muted);
}
.sl-game-body h3 { font-family: 'Merriweather', serif; font-size: 22px; margin: 0; line-height: 1.25; }
.sl-game--feature .sl-game-body h3 { font-size: 28px; }
.sl-game-body h3 a { color: #fff; text-decoration: none; }
.sl-game-body h3 a:hover { color: var(--sl-accent); }
.sl-game-body p { color: var(--sl-text); opacity: .85; margin: 0; font-size: 15px; line-height: 1.6; flex: 1; }
.sl-game-play { align-self: flex-start; margin-top: 6px; }

@media (max-width: 1199px) {
  .sl-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sl-game--feature { flex-direction: column; }
  .sl-game--feature .sl-game-media { flex: none; }
  .sl-game--feature .sl-game-body { padding: 18px 20px 20px; }
}
@media (max-width: 575px) {
  /* The slim header band that replaces the theme's hero on the front page. */
.sl-band {
  background: radial-gradient(ellipse at 12% 0%, rgba(182, 251, 68, .08), transparent 55%), #0b0c10;
  border-bottom: 1px solid rgba(196, 207, 222, .08);
  padding: 22px 0 18px; color: #c4cfde;
}
.sl-band-row { display: flex; align-items: center; gap: 18px; min-width: 0; }
.sl-band-logo { width: 88px; height: 88px; object-fit: contain; flex: none; border-radius: 12px; }
.sl-band-id { min-width: 0; }
.sl-band-sub {
  display: block; font: 600 13px/1.2 'Akshar', sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #B6FB44;
}
.sl-band h1 {
  font-family: 'Merriweather', serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 4px 0 2px; color: #B6FB44;
}
.sl-band h1 span { color: #9aa3ad; font-size: .62em; font-weight: 400; margin-left: .35em; white-space: nowrap; }
.sl-band p { margin: 0; color: #7c838e; font-size: 14px; }
.sl-band-btns {
  display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.sl-band-btns::-webkit-scrollbar { display: none; }
.sl-band-btn {
  flex: none; white-space: nowrap; text-decoration: none;
  font: 600 13px/1 'Akshar', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: #e6ebf2; background: #1a1d24; border: 1px solid rgba(196, 207, 222, .14);
  padding: 10px 16px; border-radius: 6px; transition: background .2s, color .2s, border-color .2s;
}
.sl-band-btn:hover, .sl-band-btn:focus-visible { color: #111319; background: #B6FB44; border-color: #B6FB44; outline: none; }
.sl-band-btn.is-primary { color: #111319; background: #B6FB44; border-color: #B6FB44; }
.sl-band-btn.is-primary:hover, .sl-band-btn.is-primary:focus-visible { background: #fff; border-color: #fff; }
@media (min-width: 992px) {
  /* One line on a desktop: identity left, buttons right. */
  .sl-band > .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .sl-band-btns { margin-top: 0; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
}
@media (max-width: 575px) {
  .sl-band { padding: 16px 0 14px; }
  .sl-band-logo { width: 56px; height: 56px; }
  .sl-band h1 span { display: block; margin: 2px 0 0; font-size: .6em; }
}

.sl-games { padding: 48px 0 24px; }
  .sl-games-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sl-game-body, .sl-game--feature .sl-game-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sl-game, .sl-game-media video { transition: none; }
  .sl-game:hover, .sl-game:focus-within { transform: none; }
}

/* The trip's controls (trip.js). The overlay never takes a click; only the button does. */
.sl-trip-bands {
  position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: 0;
  mix-blend-mode: soft-light;
  background: repeating-linear-gradient(115deg, #ff3b6b 0, #ffd23b 6vmax, #3bff8a 12vmax, #3bc8ff 18vmax, #b03bff 24vmax, #ff3b6b 30vmax);
  background-size: 200% 200%;
}
.sl-trip-gl {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2147482999; pointer-events: none;
  opacity: 0; mix-blend-mode: screen;
}
.sl-trip-sober {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483001;
  background: rgba(17, 19, 25, .85); color: #B6FB44; border: 1px solid rgba(182, 251, 68, .5);
  border-radius: 999px; padding: 8px 16px; font: 600 14px/1 'Akshar', sans-serif; letter-spacing: .06em;
  cursor: pointer;
}
.sl-trip-sober:hover, .sl-trip-sober:focus-visible { background: #B6FB44; color: #111319; outline: none; }

/* The featured game's button takes the hero's primary look (lime), like the theme's first .btn-hero. */
.sl-game--feature .sl-game-play { background: #B6FB44; color: #111319; }
.sl-game--feature .sl-game-play:hover, .sl-game--feature .sl-game-play:focus-visible { background: #fff; color: #111319; }
