/* AIGame54 — Flux (fx-) */

:root {
  --fx-bg: #f1f5f9;
  --fx-surface: #ffffff;
  --fx-bar: #0f172a;
  --fx-ink: #0f172a;
  --fx-muted: #64748b;
  --fx-line: rgba(15, 23, 42, 0.08);
  --fx-accent: #0284c7;
  --fx-accent-hi: #0ea5e9;
  --fx-r: 16px;
  --fx-font: "Outfit", system-ui, sans-serif;
  --fx-mono: "IBM Plex Mono", ui-monospace, monospace;
  --fx-w: 780px;
  --fx-cookie-pad: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 500 14px/1.55 var(--fx-font);
  color: var(--fx-ink);
  background: var(--fx-bg);
  min-height: 100dvh;
  padding-bottom: calc(var(--fx-cookie-pad) + env(safe-area-inset-bottom));
}
body.fx-lock { overflow: hidden; }
a { color: var(--fx-accent); text-decoration: none; }
a:hover { color: var(--fx-accent-hi); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

.fx-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 10px 14px; background: var(--fx-bar); color: #fff; font-weight: 700;
}
.fx-skip:focus { left: 10px; top: 10px; }

.fx-page { min-height: 100dvh; }

.fx-crumbs {
  margin: 0 0 14px; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.72rem; color: var(--fx-muted);
}
.fx-crumbs li::after { content: "/"; margin-left: 6px; color: var(--fx-line); }
.fx-crumbs li:last-child::after { content: none; }
.fx-crumbs a { color: var(--fx-muted); }
.fx-crumbs [aria-current="page"] { color: var(--fx-ink); font-weight: 700; }

.fx-lead { margin: 0 0 10px; color: var(--fx-muted); font-size: 0.88rem; line-height: 1.65; }
.fx-lead p { margin: 0 0 10px; }
.fx-lead p:last-child { margin-bottom: 0; }

.fx-guide {
  margin-bottom: 20px; padding: 16px 18px;
  background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: var(--fx-r);
}
.fx-guide h2 { margin: 0 0 10px; font-size: 0.95rem; }
.fx-guide ol { margin: 0; padding-left: 1.2rem; color: var(--fx-muted); font-size: 0.84rem; }
.fx-guide li { margin-bottom: 6px; }
.fx-guide li:last-child { margin-bottom: 0; }

.fx-band__lead {
  margin: -4px 0 12px; color: var(--fx-muted); font-size: 0.8rem; line-height: 1.55;
}

.fx-prose { color: var(--fx-muted); font-size: 0.88rem; line-height: 1.7; }
.fx-prose h2 { margin: 0 0 12px; font-size: 1rem; color: var(--fx-ink); }
.fx-prose h3 { margin: 18px 0 8px; font-size: 0.92rem; color: var(--fx-ink); }
.fx-prose p { margin: 0 0 12px; }
.fx-prose ul, .fx-prose ol { margin: 0 0 12px; padding-left: 1.25rem; }
.fx-prose li { margin-bottom: 6px; }
.fx-prose li:last-child { margin-bottom: 0; }

.fx-editorial { margin-bottom: 22px; }

.fx-contact-grid {
  display: grid; gap: 12px; margin-bottom: 18px;
}
@media (min-width: 640px) {
  .fx-contact-grid { grid-template-columns: repeat(2, 1fr); }
}
.fx-contact-card {
  padding: 14px 16px; border: 1px solid var(--fx-line); border-radius: var(--fx-r);
  background: var(--fx-surface);
}
.fx-contact-card strong { display: block; margin-bottom: 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fx-muted); }
.fx-contact-card p { margin: 0; font-size: 0.88rem; }

.fx-form { display: grid; gap: 12px; max-width: 520px; }
.fx-form label { display: grid; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--fx-ink); }
.fx-form input, .fx-form select, .fx-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--fx-line); border-radius: 10px;
  background: var(--fx-bg); font: inherit; font-size: 0.86rem; color: var(--fx-ink);
}
.fx-form textarea { min-height: 120px; resize: vertical; }
.fx-form__note { margin: 0; font-size: 0.76rem; color: var(--fx-muted); }

.fx-mast {
  position: sticky; top: 0; z-index: 100;
  background: var(--fx-bar); color: #e2e8f0;
}
.fx-mast__row {
  max-width: calc(var(--fx-w) + 32px); margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
}
.fx-mast__row--sub {
  background: var(--fx-surface); color: var(--fx-ink);
  border-bottom: 1px solid var(--fx-line);
  padding-top: 0; padding-bottom: 0;
  overflow-x: auto; scrollbar-width: none;
}
.fx-mast__row--sub::-webkit-scrollbar { display: none; }

.fx-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.95rem; color: #f8fafc; text-decoration: none; flex-shrink: 0;
}
.fx-brand img { width: 32px; height: 32px; border-radius: 8px; }

.fx-q {
  flex: 1; display: flex; gap: 6px; min-width: 0; max-width: 340px; margin-left: auto;
}
.fx-q input {
  flex: 1; min-width: 0; padding: 8px 12px; border: 0; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: #f8fafc; font: inherit; font-size: 0.78rem;
}
.fx-q input::placeholder { color: rgba(248,250,252,0.55); }
.fx-q button {
  padding: 8px 14px; border: 0; border-radius: 999px;
  background: var(--fx-accent-hi); color: #fff; font: inherit; font-size: 0.72rem; font-weight: 800; cursor: pointer;
}

.fx-burger {
  flex-shrink: 0; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; background: transparent; color: #f8fafc; cursor: pointer; font-size: 1rem;
}

.fx-links { display: none; gap: 2px; }
.fx-links a {
  padding: 12px 14px; font-size: 0.78rem; font-weight: 700; color: var(--fx-muted);
  text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent;
}
.fx-links a:hover { color: var(--fx-accent); }
.fx-links a.is-cur { color: var(--fx-accent); border-bottom-color: var(--fx-accent); }

.fx-body { max-width: var(--fx-w); margin: 0 auto; padding: 20px 16px 40px; }

.fx-note {
  margin-bottom: 18px; padding: 14px 16px;
  background: var(--fx-surface); border-radius: var(--fx-r);
  border: 1px solid var(--fx-line);
}
.fx-note h1 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; }
.fx-note p { margin: 0; color: var(--fx-muted); font-size: 0.84rem; }
.fx-note__n { margin-top: 8px; font-family: var(--fx-mono); font-size: 0.65rem; color: var(--fx-muted); }
.fx-note__n b { color: var(--fx-accent); }

.fx-pills {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 4px;
  scrollbar-width: none;
}
.fx-pills::-webkit-scrollbar { display: none; }
.fx-pill {
  flex: none; padding: 6px 14px; border: 1px solid var(--fx-line); border-radius: 999px;
  background: var(--fx-surface); color: var(--fx-muted); font: inherit; font-size: 0.72rem;
  font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.fx-pill.is-cur { background: var(--fx-bar); border-color: var(--fx-bar); color: #fff; }

.fx-band { margin-bottom: 24px; }
.fx-band__top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; gap: 8px;
}
.fx-band__top h2 {
  margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fx-muted);
}
.fx-band__top a { font-size: 0.72rem; font-weight: 700; }

.fx-matrix {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}

.fx-card {
  border: 1px solid var(--fx-line); border-radius: var(--fx-r);
  background: var(--fx-surface); overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.fx-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,0.08); transform: translateY(-1px); }
.fx-card__a { display: block; color: inherit; text-decoration: none; }
.fx-card__pic { aspect-ratio: 4/3; background: #e2e8f0; overflow: hidden; }
.fx-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.fx-card__txt { padding: 8px 10px 10px; }
.fx-card__txt span { font-size: 0.58rem; font-weight: 700; color: var(--fx-accent); text-transform: uppercase; letter-spacing: 0.05em; }
.fx-card__txt h3 {
  margin: 2px 0 0; font-size: 0.78rem; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.fx-stack { display: flex; flex-direction: column; gap: 8px; }
.fx-line {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--fx-line); border-radius: var(--fx-r); background: var(--fx-surface);
}
.fx-line:hover { border-color: rgba(2,132,199,0.35); }
.fx-line__a { display: contents; color: inherit; text-decoration: none; }
.fx-line__pic { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #e2e8f0; }
.fx-line__pic img { width: 100%; height: 100%; object-fit: cover; }
.fx-line__txt span { font-size: 0.6rem; font-weight: 700; color: var(--fx-accent); text-transform: uppercase; }
.fx-line__txt h3 { margin: 2px 0 0; font-size: 0.84rem; font-weight: 700; }

.fx-ad {
  margin: 14px 0; padding: 12px; border: 1px dashed var(--fx-line); border-radius: var(--fx-r);
  text-align: center; background: var(--fx-surface);
}
.fx-ad__in { min-height: 50px; display: flex; align-items: center; justify-content: center; }

.fx-sheet {
  padding: 18px; border: 1px solid var(--fx-line); border-radius: var(--fx-r);
  background: var(--fx-surface); margin-bottom: 14px;
}
.fx-sheet h1, .fx-sheet h2 { margin: 0 0 10px; }
.fx-dim { color: var(--fx-muted); }
.fx-dim p, .fx-dim li { margin: 0 0 8px; }

.fx-play {
  border: 1px solid var(--fx-line); border-radius: var(--fx-r); overflow: hidden;
  background: var(--fx-bar); margin-bottom: 18px;
}
.fx-play__hd {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--fx-surface); font-size: 0.72rem; font-weight: 700;
}
.fx-play__grow { flex: 1; }
.fx-play__box { position: relative; aspect-ratio: 16/9; background: #000; }
.fx-play__poster, .fx-play__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fx-play__poster img { width: 100%; height: 100%; object-fit: cover; }
.fx-play__ft { padding: 12px; background: var(--fx-surface); display: flex; flex-wrap: wrap; gap: 8px; }
.fx-play.is-max {
  position: fixed; inset: 0; z-index: 500; border-radius: 0;
  display: flex; flex-direction: column;
}
.fx-play.is-max .fx-play__box { flex: 1; aspect-ratio: auto; }

.fx-act {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 800;
  font-size: 0.78rem; cursor: pointer; text-decoration: none; border: 1px solid var(--fx-line);
}
.fx-act--pri { background: var(--fx-accent); color: #fff; border-color: var(--fx-accent); }
.fx-act--sec { background: transparent; color: var(--fx-ink); }
.fx-act--sm { padding: 6px 10px; font-size: 0.68rem; }
.fx-act:disabled { opacity: 0.5; cursor: not-allowed; }

.fx-duo { display: grid; gap: 14px; }
.fx-faq details {
  border: 1px solid var(--fx-line); border-radius: var(--fx-r);
  padding: 10px 12px; margin-bottom: 6px; background: var(--fx-surface);
}
.fx-faq summary { cursor: pointer; font-weight: 700; }

.fx-end {
  margin-top: 32px; padding: 20px 16px;
  background: var(--fx-bar); color: #94a3b8; border-radius: var(--fx-r);
  font-size: 0.76rem;
}
.fx-end strong { color: #f1f5f9; display: block; }
.fx-end nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.fx-end a { color: #7dd3fc; }

.fx-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 12px 16px; background: var(--fx-surface); border-top: 1px solid var(--fx-line);
}
.fx-cookie__in {
  max-width: var(--fx-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}

.fx-drop {
  display: none; position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,0.5);
}
.fx-drop.is-open { display: block; }
.fx-drop__box {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 16px; background: var(--fx-bar); color: #e2e8f0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.fx-drop__box a {
  display: block; padding: 12px 14px; border-radius: 10px;
  font-weight: 700; color: #cbd5e1; text-decoration: none; font-size: 0.88rem;
}
.fx-drop__box a.is-cur { background: rgba(14,165,233,0.15); color: #7dd3fc; }

@media (min-width: 640px) {
  .fx-matrix { grid-template-columns: repeat(3, 1fr); }
  .fx-burger { display: none; }
  .fx-links { display: flex; }
}

@media (min-width: 860px) {
  .fx-matrix { grid-template-columns: repeat(4, 1fr); }
  .fx-duo { grid-template-columns: 1fr 260px; }
}

@media (max-width: 639px) {
  .fx-q { max-width: none; }
}
