/* apps.fusedone.com: the fusedone.com look (tailwind.config.js + src/index.css in the fusedone repo), hand-written. */
:root {
  --ink: #0B1B33; --body: #475569; --muted: #64748B; --line: #E5E9F0; --canvas: #F7F9FC; --surface: #FFFFFF;
  --brand: #1D6FF2; --brand-dark: #1659C7; --brand-soft: #E8F0FE; --mint: #DDF5EC; --sky: #E3EEFF;
  --ok: #0E9F6E; --sleep: #94A3B8; --warn: #D97706;
  --shadow: 0 1px 2px rgba(11,27,51,.04), 0 8px 24px -12px rgba(11,27,51,.10);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* type */
.h-display { font-family: var(--display); font-weight: 600; font-stretch: 115%; color: var(--ink); letter-spacing: -0.02em; margin: 0; }
h1.h-display { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; }
h2.h-display { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
h3.h-display { font-size: 22px; line-height: 1.25; }
.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eyebrow.brand { color: var(--brand); }
.lead { font-size: 18px; max-width: 640px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.card { text-decoration: none; }
a.card:hover { border-color: #CBD5E1; }
.wash { background: radial-gradient(60% 80% at 0% 0%, var(--sky) 0%, transparent 70%), radial-gradient(60% 80% at 100% 100%, var(--mint) 0%, transparent 70%), #F1F6FD; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font: 500 11px/1.6 var(--mono); color: var(--body); background: var(--surface); }
.icon-tile { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex: none; }
.icon-tile svg { width: 20px; height: 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 12px 20px; font: 600 14px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; cursor: pointer; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #CBD5E1; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: none; }
.link svg { width: 16px; height: 16px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark svg { width: 32px; height: 32px; }
.brand-mark b { font: 600 19px/1 var(--display); font-stretch: 115%; letter-spacing: -0.02em; }
.brand-mark span { font: 500 12px/1 var(--mono); color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 4px 6px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--brand); }
@media (max-width: 760px) { .nav-links a.hide-sm { display: none; } .nav-links { gap: 18px; } }

/* sections */
section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; max-width: 560px; }
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { margin: 20px 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 4 / 3; }
.hero-art figure { position: absolute; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(11,27,51,.35); background: #0B1B33; }
.hero-art figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .a { inset: 0 18% 26% 0; }
.hero-art .b { inset: 34% 0 0 22%; }
.hero .wrap.split { grid-template-columns: 1fr 1.1fr; }
@media (max-width: 900px) { .hero .wrap, .hero .wrap.split { grid-template-columns: 1fr; } .hero-art { max-width: 560px; } }

/* games */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 820px) { .games { grid-template-columns: 1fr; } }
.game { overflow: hidden; display: flex; flex-direction: column; color: var(--body); }
.game .shot { aspect-ratio: 16 / 8.4; overflow: hidden; background: #0B1B33; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game:hover .shot img { transform: scale(1.03); }
.game .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game .body p { margin: 0; }
.game .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.game .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* apps */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .apps { grid-template-columns: 1fr; } }
.app { padding: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--body); }
.app h3 { font: 600 16px/1.3 var(--sans); color: var(--ink); margin: 0; }
.app p { margin: 0; font-size: 14px; }
.app .link { margin-top: auto; }

/* status */
.status-panel { padding: 8px; }
.srv { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 16px; border-radius: 14px; }
.srv + .srv { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.srv h3 { font: 600 16px/1.3 var(--sans); color: var(--ink); margin: 0 0 2px; }
.srv .addr { font: 500 12px/1.5 var(--mono); color: var(--muted); word-break: break-all; }
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sleep); box-shadow: 0 0 0 4px rgba(148,163,184,.18); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(14,159,110,.18); animation: pulse 2s infinite; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(217,119,6,.18); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(14,159,110,.06); } }
.state small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; text-align: right; }
@media (max-width: 600px) { .srv { grid-template-columns: auto 1fr; } .srv .state { grid-column: 2; } .state small { text-align: left; } }
.note { font-size: 13px; color: var(--muted); margin: 14px 8px 4px; }
.copy { background: none; border: 0; padding: 0 0 0 6px; color: var(--brand); cursor: pointer; font: 600 12px var(--sans); }

/* game page */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 22px; }
.feature h3 { font: 600 16px/1.3 var(--sans); color: var(--ink); margin: 14px 0 6px; }
.feature p { margin: 0; font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery figcaption { background: var(--surface); padding: 10px 14px; font-size: 13px; color: var(--muted); }
.wide-shot { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(11,27,51,.35); }
.cta { padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; padding: 28px; } }
.cta p { margin: 8px 0 0; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
