/* 4ever.ai.id — shared polish layer (loaded after each page's own styles).
   Bright theme: red #e53935, yellow #f9a825, green #43a047 on white. */
:root {
  --fx-red: #e53935; --fx-red-dk: #c62828;
  --fx-yellow: #f9a825; --fx-green: #43a047; --fx-green-dk: #2e7d32;
  --fx-ink: #1a1a1a; --fx-muted: #5f6368; --fx-line: #ececec;
  --fx-radius: 16px;
  --fx-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.06);
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
img, video, iframe { max-width: 100%; }
::selection { background: rgba(249,168,37,.35); color: inherit; }
:focus-visible { outline: 3px solid var(--fx-yellow); outline-offset: 2px; border-radius: 6px; }

/* sticky top bar */
.topbar { border-bottom-color: var(--fx-line); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 6px 18px rgba(0,0,0,.04); }
.topbar::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--fx-red), var(--fx-yellow), var(--fx-green)); }
.topbar nav {
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
          mask-image: linear-gradient(90deg, #000 88%, transparent);
  padding-right: 18px; scroll-snap-type: x proximity;
}
.topbar nav a { padding: 8px 2px; scroll-snap-align: start; position: relative; transition: color .15s; }
.topbar nav a.on { color: var(--fx-red-dk); }
.topbar nav a.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--fx-red);
}
@media (min-width: 720px) { .topbar nav { -webkit-mask-image: none; mask-image: none; padding-right: 0; } }

/* shared footer */
footer.site-footer {
  max-width: 640px; margin: 36px auto 0; padding: 22px 16px 28px; border-top: 1px solid var(--fx-line);
  color: var(--fx-muted); font-size: .8rem; line-height: 1.65; text-align: center;
}
footer.site-footer .sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; -webkit-mask-image: none; mask-image: none; padding: 0; }
footer.site-footer .sf-links a { color: #3c4043; text-decoration: none; font-weight: 600; padding: 4px 0; }
footer.site-footer .sf-links a:hover { color: var(--fx-red-dk); text-decoration: underline; }
footer.site-footer .sf-copy { margin: 0; }
footer.site-footer .sf-aff { margin: 6px auto 0; max-width: 520px; font-size: .74rem; color: #6b6f75; }
footer.site-footer.on-dark { border-top-color: rgba(255,255,255,.12); color: #b8b8b8; }
footer.site-footer.on-dark .sf-links a { color: #e6e6e6; }
footer.site-footer.on-dark .sf-aff { color: #a8a8a8; }

/* "about this page" content block used on games, token catalog, contact */
.fx-about {
  max-width: 640px; margin: 28px auto 0; padding: 20px 20px 18px; text-align: left;
  background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); box-shadow: var(--fx-shadow);
  color: #333; font-size: .93rem; line-height: 1.7;
}
.fx-about h2 { font-size: 1.05rem; color: var(--fx-ink); margin: 0 0 8px; letter-spacing: 0; text-transform: none; font-weight: 800; }
.fx-about h3 { font-size: .95rem; color: var(--fx-ink); margin: 16px 0 6px; font-weight: 700; }
.fx-about p { margin: 0 0 10px; }
.fx-about ul, .fx-about ol { margin: 0 0 10px 20px; padding: 0; }
.fx-about li { margin: 4px 0; }
.fx-about a { color: var(--fx-red-dk); font-weight: 600; }
.fx-about .fx-accent { height: 4px; width: 56px; border-radius: 4px; margin-bottom: 12px; background: linear-gradient(90deg, var(--fx-red), var(--fx-yellow), var(--fx-green)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .sparkle { display: none !important; }
}
