/* ============================================================================
   footer-os.css — the one cryptogames.gg footer (Newsletter\FooterOs, owner 2026-10-05).

   Same palette as the homepage (home-os tokens: blue-purple, no orange), restated per theme through
   body[data-theme] so it needs no dark literal and works on every page the plugin renders, with or
   without home-os.css. The two calls to action sit in quiet cards that match the page; only the
   buttons are loud.
   ============================================================================ */
body footer.cg-fos {
  --f-bg: #191919; --f-s1: #212121; --f-s2: #333333; --f-line: rgba(255,255,255,.08); --f-text: #ffffff; --f-muted: #b5b5b5; --f-accent: #9d8cff;
  --f-grad: linear-gradient(135deg, #06707f 0%, #4a28c4 62%, #7b2fc0 100%);
  box-sizing: border-box; display: block; grid-template-columns: none; gap: 0; clear: both; margin: 56px 0 0; padding: 44px 28px 22px; background: var(--f-bg); color: var(--f-muted);
  border-top: 1px solid var(--f-line); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
body:not([data-theme="dark"]) footer.cg-fos { --f-bg: #ffffff; --f-s1: #f4f4f6; --f-s2: #e9e9ee; --f-line: rgba(0,0,0,.09); --f-text: #191919; --f-muted: #5f5f6a; --f-accent: #4a28c4; }
.cg-fos *, .cg-fos *::before, .cg-fos *::after { box-sizing: border-box; }
.cg-fos a { text-decoration: none; }

.cg-fos .cg-fos-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.55fr); gap: 28px; max-width: 1480px; margin: 0 auto; }
.cg-fos h5 { margin: 0 0 10px; color: var(--f-text); font: 700 13px/1.3 Inter, system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.cg-fos h5.gap { margin-top: 18px; }
.cg-fos .cg-fos-col a { display: block; padding: 3px 0; color: var(--f-muted); font-size: 13px; }
.cg-fos .cg-fos-col a:hover { color: var(--f-text); }

/* brand */
.cg-fos .cg-fos-logo img { display: block; width: 128px; height: 128px; max-width: none; object-fit: contain; margin: -8px 0 6px -6px; }
.cg-fos .cg-fos-brand p { margin: 0 0 14px; max-width: 320px; font-size: 13px; color: var(--f-muted); }
.cg-fos .cg-fos-social { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-fos .cg-fos-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--f-s1); color: var(--f-text); }
.cg-fos .cg-fos-social a:hover { background: var(--f-s2); }

/* the two calls to action */
.cg-fos .cg-fos-join { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cg-fos .cg-fos-card { padding: 16px 16px 14px; border: 1px solid var(--f-line); border-radius: 14px; background: var(--f-s1); }
.cg-fos .cg-fos-ct { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.cg-fos .cg-fos-ct strong { color: var(--f-text); font-size: 14px; line-height: 1.3; }
.cg-fos .cg-fos-ct span { color: var(--f-muted); font-size: 12.5px; line-height: 1.45; }

.cg-fos .cg-nl-form { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; background: none; border: 0; }
.cg-fos .cg-nl-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cg-fos .cg-nl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cg-fos .cg-nl-in-email { flex: 1 1 140px; min-width: 0; height: 42px; margin: 0; padding: 0 13px; border: 1px solid var(--f-line); border-radius: 10px; background: var(--f-bg); color: var(--f-text); font: inherit; font-size: 14px; outline: none; box-shadow: none; }
.cg-fos .cg-nl-in-email::placeholder { color: var(--f-muted); opacity: .8; }
.cg-fos .cg-nl-in-email:focus { border-color: var(--f-accent); box-shadow: 0 0 0 3px rgba(106,80,255,.2); }
.cg-fos .cg-nl-btn { flex: 1 0 100%; height: 42px; margin: 0; padding: 0 18px; border: 0; border-radius: 10px; background: var(--f-grad); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(74,40,196,.75); transition: transform .15s, filter .15s; }
.cg-fos .cg-nl-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cg-fos .cg-nl-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.cg-fos .cg-nl-msg { flex: 1 0 100%; margin: 0; color: var(--f-text); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.cg-fos .cg-nl-msg:empty { display: none; }
.cg-fos .cg-nl-msg.is-err { color: #d65a52; }
.cg-fos .cg-nl-form.is-done .cg-nl-in-email, .cg-fos .cg-nl-form.is-done .cg-nl-btn { display: none; }

.cg-fos .cg-fos-tg { display: flex; padding: 0; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 42px; border-radius: 10px; background: #229ed9; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px -10px rgba(34,158,217,.8); transition: transform .15s, background .15s; }
.cg-fos .cg-fos-tg:hover { background: #1b8bc0; color: #fff; transform: translateY(-1px); }
.cg-fos .cg-fos-tg svg { width: 19px; height: 19px; }

/* bottom row */
.cg-fos .cg-fos-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; max-width: 1480px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--f-line); font-size: 12px; color: var(--f-muted); }
.cg-fos .cg-fos-bottom .cg-dp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cg-fos .cg-fos-bottom .cg-dp a { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--f-muted); font-size: 12px; }
.cg-fos .cg-fos-bottom .cg-dp a:hover { color: var(--f-text); }
.cg-fos .cg-fos-bottom .cg-dp img { width: 14px; height: 14px; border-radius: 3px; flex: none; }

@media (max-width: 1280px) {
  .cg-fos .cg-fos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cg-fos .cg-fos-brand { grid-column: 1 / -1; }
  .cg-fos .cg-fos-join { grid-column: 1 / -1; flex-direction: row; }
  .cg-fos .cg-fos-card { flex: 1 1 0; }
}
@media (max-width: 760px) {
  .cg-fos { padding: 32px 18px 20px; }
  .cg-fos .cg-fos-grid { grid-template-columns: 1fr 1fr; }
  .cg-fos .cg-fos-join { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .cg-fos .cg-nl-btn, .cg-fos .cg-fos-tg { transition: none; } }
