/* ==========================================================================
   TAPFORGE STUDIOS — SHARED STYLESHEET
   ==========================================================================
   This ONE file controls the look of every page on the site.
   Change a color here and it changes everywhere.

   >>> EASY EDITS: the ":root" block right below is the only part most
   >>> people ever need to touch. Everything else can be left alone.
   ========================================================================== */

:root {
  /* ----- BRAND COLORS (edit these to re-theme the whole site) ----- */
  --molten:    #ff7a18;   /* primary orange (from the logo)            */
  --ember:     #ffb347;   /* lighter orange (gradient partner)         */
  --steel-950: #101319;   /* page background                           */
  --steel-900: #161a22;   /* alternate band background                 */
  --steel-800: #1e242f;   /* card background                           */
  --steel-700: #2b3342;   /* subtle lines / secondary buttons          */
  --white-hot: #eef2f7;   /* main text                                 */
  --ash:       #9aa6b8;   /* muted text                                */

  /* ----- DERIVED (leave alone) ----- */
  --grad: linear-gradient(135deg, var(--molten), var(--ember));
  --cut: 16px;            /* size of the beveled "forge cut" corners   */
}

/* ==========================================================================
   BASE
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--steel-950);
  color: var(--white-hot);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a, button { -webkit-tap-highlight-color: transparent; }

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--molten);
  outline-offset: 3px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Headings use Chakra Petch — angular, like the chiseled logo letters */
h1, h2, h3, .display {
  font-family: "Chakra Petch", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { color: var(--ash); }
p strong { color: var(--white-hot); }

/* Small uppercase label above headings (mirrors "S T U D I O S") */
.eyebrow {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--molten);
  display: block;
  margin-bottom: 12px;
}

/* Thin glowing "molten seam" divider used under headings */
.seam {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, var(--molten), var(--ember), transparent);
  width: 96px;
  margin: 18px 0 0;
}
.seam.center { margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, transparent, var(--molten), var(--ember), transparent); }

section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; }

.band { background: var(--steel-900); }

/* ==========================================================================
   THE "FORGE CUT" — beveled corners used on cards, tiles and buttons.
   This is the visual signature of the site (echoes the logo's chiseled
   letterforms). Applied via the .cut class.
   ========================================================================== */
.cut {
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

/* ==========================================================================
   HEADER / NAVIGATION  (appears on every page)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 19, 25, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel-700);
}
/* molten seam along the very top of the page */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--grad);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--white-hot);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand .forge { color: var(--molten); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  color: var(--ash);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--white-hot); text-decoration: none; }
.nav-links a.active {
  color: var(--white-hot);
  background: var(--steel-800);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: var(--steel-800);
  border: 0;
  color: var(--white-hot);
  font-size: 1.4rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--steel-900);
    border-bottom: 1px solid var(--steel-700);
    padding: 10px 16px 16px;
    display: none;
  }
  .nav-links a { padding: 13px 14px; }
  .site-header.nav-open .nav-links { display: flex; }
}

/* ==========================================================================
   HERO (home page)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 84px 0 70px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(255, 122, 24, 0.13), transparent 70%),
    var(--steel-950);
}

.hero-logo {
  width: min(330px, 64vw);
  margin: 0 auto 6px;
  filter: drop-shadow(0 14px 36px rgba(255, 122, 24, 0.22));
}

/* the molten "pour" line — drips from the logo like the tap in the mark */
.pour {
  width: 2px;
  height: 64px;
  margin: 0 auto 30px;
  background: linear-gradient(180deg, var(--ember), var(--molten), transparent);
  box-shadow: 0 0 14px rgba(255, 122, 24, 0.65);
  animation: pour-glow 2.6s ease-in-out infinite;
}
@keyframes pour-glow {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.hero h1 { max-width: 720px; margin: 0 auto; }
.hero h1 .glow {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  max-width: 620px;
  margin: 20px auto 34px;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* rising ember particles */
.ember {
  position: absolute;
  bottom: -10px;
  width: 5px;
  height: 5px;
  background: var(--ember);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.5px);
  box-shadow: 0 0 8px var(--molten);
  animation: rise 7s linear infinite;
}
.ember:nth-child(1) { left: 16%; animation-delay: 0s;   animation-duration: 8s; }
.ember:nth-child(2) { left: 33%; animation-delay: 2.2s; animation-duration: 6.5s; }
.ember:nth-child(3) { left: 55%; animation-delay: 4s;   animation-duration: 7.5s; }
.ember:nth-child(4) { left: 72%; animation-delay: 1.1s; animation-duration: 9s; }
.ember:nth-child(5) { left: 88%; animation-delay: 3.3s; animation-duration: 7s; }
@keyframes rise {
  0%   { transform: translateY(0) scale(1);        opacity: 0; }
  8%   { opacity: 0.85; }
  70%  { opacity: 0.5; }
  100% { transform: translateY(-520px) scale(0.3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ember, .pour { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary { background: var(--grad); color: #181104; }
.btn-ghost   { background: var(--steel-700); color: var(--white-hot); }

/* smaller buttons used inside app cards */
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ==========================================================================
   FORGE MARKS (home page value strip)
   ========================================================================== */
.marks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
}
.mark-item {
  background: var(--steel-800);
  padding: 22px 24px;
  position: relative;
}
.mark-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.mark-item h3 { margin-bottom: 6px; font-size: 1.04rem; }
.mark-item p  { font-size: 0.95rem; }

/* ==========================================================================
   CATEGORY TILES (home + apps hub)
   ========================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 20px;
}
.tile {
  background: var(--steel-800);
  padding: 30px 28px 28px;
  color: var(--white-hot);
  display: block;
  position: relative;
  transition: transform 0.18s ease, background 0.18s ease;
}
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.tile:hover { transform: translateY(-4px); background: #232b38; text-decoration: none; }
.tile .tile-glyph {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #181104;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 18px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.tile h3 { margin-bottom: 8px; }
.tile p { font-size: 0.96rem; }
.tile .tile-go {
  display: inline-block;
  margin-top: 16px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--ember);
}

/* ==========================================================================
   APP CARDS (games / educational / utilities pages)
   ========================================================================== */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 44px;
}
.cat-tabs a {
  padding: 9px 18px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  background: var(--steel-800);
  color: var(--ash);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.cat-tabs a:hover { color: var(--white-hot); text-decoration: none; }
.cat-tabs a.active { background: var(--grad); color: #181104; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 20px;
}

.app-card {
  background: var(--steel-800);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.app-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}

/* the square badge with the app's initials (swap for an <img> if you
   upload real icons later — see README.txt) */
.app-badge {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #181104;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.app-badge img { width: 100%; height: 100%; object-fit: cover; }

.app-card h3 { margin-bottom: 6px; }
.app-card p  { font-size: 0.95rem; flex: 1; }

.app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ==========================================================================
   ABOUT / CONTACT shared bits
   ========================================================================== */
.prose { max-width: 700px; }
.prose p + p { margin-top: 16px; }
.prose h2 { margin: 36px 0 12px; }

.contact-card {
  background: var(--steel-800);
  padding: 34px 32px;
  max-width: 560px;
  position: relative;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.contact-card .row { margin-bottom: 22px; }
.contact-card .label {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--molten);
  display: block;
  margin-bottom: 5px;
}
.contact-card .value { font-size: 1.06rem; color: var(--white-hot); }

/* ==========================================================================
   FOOTER (appears on every page)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--steel-700);
  background: var(--steel-900);
  padding: 44px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { width: 44px; height: 44px; }
.footer-brand .name {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
}
.footer-brand .name .forge { color: var(--molten); }
.footer-brand .loc { font-size: 0.85rem; color: var(--ash); }

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a { color: var(--ash); font-size: 0.92rem; }
.footer-links a:hover { color: var(--white-hot); }

.copyright {
  margin-top: 26px;
  font-size: 0.84rem;
  color: var(--ash);
  text-align: center;
  width: 100%;
}

/* ==========================================================================
   PAGE HERO (small banner used on inner pages)
   ========================================================================== */
.page-hero {
  padding: 64px 0 30px;
  background:
    radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255, 122, 24, 0.09), transparent 70%),
    var(--steel-950);
}
.page-hero p { max-width: 620px; margin-top: 14px; }

/* ==========================================================================
   SMALL-SCREEN POLISH (phones)
   ========================================================================== */
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .hero { padding: 56px 0 52px; }
  .page-hero { padding: 46px 0 22px; }

  /* hero buttons stack full-width for easy thumb reach */
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
  .cta-row .btn { text-align: center; }

  /* app card buttons split the row 50/50 with 44px-tall tap targets */
  .app-actions .btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
    padding-left: 10px;
    padding-right: 10px;
  }

  .contact-card { padding: 26px 20px; }

  /* footer stacks and centers */
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-brand { flex-direction: column; }
  .footer-links { justify-content: center; }
  .copyright { margin-top: 18px; }
}

/* ==========================================================================
   ANNOUNCEMENT BAR (toggle + text set in admin.php > Pages)
   ========================================================================== */
.announce {
  display: block;
  background: var(--grad);
  color: #181104;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}
.announce-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}
a.announce { color: #181104; }
a.announce:hover { text-decoration: none; filter: brightness(1.06); }
.announce .go { font-weight: 700; white-space: nowrap; }

/* ==========================================================================
   APP CARD CORNER TAG (e.g. NEW / UPDATED — set per app in admin.php)
   ========================================================================== */
.app-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: var(--grad);
  color: #181104;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 13px 5px 11px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

/* ==========================================================================
   LIVE SEARCH BOX (app pages)
   ========================================================================== */
.app-search {
  width: 100%;
  max-width: 430px;
  margin-top: 4px;
  padding: 12px 15px;
  background: var(--steel-800);
  border: 1px solid var(--steel-700);
  color: var(--white-hot);
  font: inherit;
}
.app-search::placeholder { color: var(--ash); }
.app-search:focus { outline: 2px solid var(--molten); border-color: var(--molten); }
.no-results { color: var(--ash); padding: 4px 0 28px; }

/* ==========================================================================
   FOOTER SOCIAL LINKS (set in admin.php > Pages)
   ========================================================================== */
.social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
}
.schip {
  display: inline-block;
  padding: 8px 14px;
  background: var(--steel-800);
  color: var(--ash);
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.schip:hover { color: var(--white-hot); text-decoration: none; }

/* ==========================================================================
   FEATURED APP SPOTLIGHT (home page — pick the app in admin.php > Pages)
   ========================================================================== */
.featured {
  background: var(--steel-800);
  padding: 32px 30px;
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.f-icon {
  flex: 0 0 96px;
  width: 96px; height: 96px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #181104;
  font-family: "Chakra Petch", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.f-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-body { flex: 1; min-width: 250px; }
.f-body h2 { margin: 2px 0 8px; }
.f-body p { max-width: 560px; }
.f-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 600px) {
  .featured { flex-direction: column; text-align: center; }
  .f-body p { margin: 0 auto; }
  .f-actions { justify-content: center; }
}

/* ==========================================================================
   APP CARD: clickable title + rating/downloads meta line
   ========================================================================== */
.app-card h3 a { color: var(--white-hot); }
.app-card h3 a:hover { color: var(--ember); text-decoration: none; }
.badge-link { display: inline-block; }
.badge-link:hover { text-decoration: none; filter: brightness(1.08); }
.app-meta {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ember);
  margin-top: 9px;
}

/* ==========================================================================
   APP DETAIL PAGE (auto-generated in the app/ folder)
   ========================================================================== */
.app-hero { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.app-hero .f-icon { flex: 0 0 120px; width: 120px; height: 120px; font-size: 2.4rem; }
.app-hero-body { flex: 1; min-width: 250px; }
.app-hero-body h1 { margin: 2px 0 10px; }
.crumb {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.crumb a { color: var(--molten); }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.stat-chip {
  background: var(--steel-800);
  padding: 8px 14px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--white-hot);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.stat-chip .star { color: var(--ember); }
.app-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.long-desc { max-width: 700px; }
.long-desc p + p { margin-top: 14px; }
@media (max-width: 600px) {
  .app-hero { flex-direction: column; text-align: center; }
  .stat-row, .app-hero-actions { justify-content: center; }
}

/* ==========================================================================
   SCREENSHOT GALLERY + LIGHTBOX
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 12px;
}
.gallery a { display: block; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 9 / 16; transition: transform .18s ease, filter .18s ease; }
.gallery a:hover img { transform: scale(1.03); filter: brightness(1.08); }

.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 12, 16, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lb img { max-width: 92vw; max-height: 84vh; box-shadow: 0 10px 60px rgba(0,0,0,.6); }
.lb button {
  position: absolute;
  background: var(--steel-800);
  color: var(--white-hot);
  border: 0; cursor: pointer;
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.3rem; font-weight: 700;
  width: 48px; height: 48px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.lb button:hover { background: var(--steel-700); }
.lb .lb-close { top: 16px; right: 16px; }
.lb .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb .lb-prev { left: 6px; } .lb .lb-next { right: 6px; }
}

/* "More from TapForge" mini cards on app pages */
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }

/* tiles can show app icons (More from TapForge on app pages) */
.tile-glyph img { width: 100%; height: 100%; object-fit: cover; display: block; }
