/* FalconTechnix Flasher. Same dark glass family as www.falcontechnix.com. */
:root {
  --bg: #0a0f17;
  --bg-2: #0f1621;
  --glass: rgba(18, 26, 38, 0.72);
  --glass-hi: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #e8eef5;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans);
  background-image:
    radial-gradient(1100px 500px at 10% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(74, 222, 128, 0.08), transparent 60%);
  background-repeat: no-repeat;
}
main { flex: 1; outline: none; }
a { color: var(--cyan); text-underline-offset: 2px; }
a:hover { color: #a5f3fc; }
code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.07); padding: .08em .38em; border-radius: 5px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: 1.25rem; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); }
p { margin: 0 0 .85rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 2.5rem 1rem; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--bg-2); padding: .5rem .8rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem; background: rgba(10, 15, 23, .82); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 600; }
.brand b { color: var(--cyan); }
.top nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; padding: .35rem .75rem; border-radius: 999px; font-size: .92rem; }
.top nav a:hover { color: var(--text); background: var(--glass-hi); }

/* browser support banner */
.support { margin: 1rem auto 0; max-width: 1080px; padding: 0 1rem; }
.support .note { margin: 0; }

/* glass surfaces */
.card, .panel, .note {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 45%), var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 34px -18px rgba(0,0,0,.8);
}
.note { padding: .85rem 1rem; border-radius: 14px; }
.note.warn { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.07); }
.note.bad { border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.08); }
.note.ok { border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.07); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* intro */
.intro { padding-bottom: 1rem; }
.intro p { max-width: 46rem; color: #cbd5e1; font-size: 1.05rem; }

/* device grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; padding: 1.1rem; color: var(--text); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.45); color: var(--text); }
.card .art { height: 120px; border-radius: 12px; margin-bottom: .9rem; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(34,211,238,.14), rgba(0,0,0,.25) 70%); border: 1px solid rgba(255,255,255,.06); }
.card .art img { width: 100%; height: 100%; object-fit: cover; }
.card .art svg { width: 64px; height: 64px; color: var(--cyan); }
.card h2 { font-size: 1.08rem; margin-bottom: .25rem; }
.card .proj { font-size: .8rem; color: var(--muted); margin-bottom: .55rem; }
.card p { font-size: .92rem; color: #cbd5e1; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .18rem .55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.ready { color: var(--green); border-color: rgba(74,222,128,.45); }
.badge.byo { color: var(--amber); border-color: rgba(251,191,36,.45); }
.badge.soon { color: var(--muted); }
.badge.how { color: var(--cyan); border-color: rgba(34,211,238,.35); }

/* device page */
.crumbs { font-size: .9rem; margin-bottom: 1rem; }
.dev-head { display: grid; grid-template-columns: 1fr 260px; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
@media (max-width: 760px) { .dev-head { grid-template-columns: 1fr; } }
.dev-head .art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: rgba(0,0,0,.25); display: grid; place-items: center; min-height: 160px; }
.dev-head .art img { width: 100%; display: block; }
.dev-head .art svg { width: 88px; height: 88px; color: var(--cyan); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .9rem; margin: .8rem 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }
.panel { padding: 1.2rem 1.25rem; margin-bottom: 1rem; }
.panel > h2 { display: flex; align-items: center; gap: .6rem; }
.step-n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-size: .85rem; font-weight: 800; color: #04131a; background: linear-gradient(135deg, var(--green), var(--cyan)); flex: none; }
ol.steps, ul.ticks { padding-left: 1.2rem; margin: 0 0 .8rem; }
ol.steps li, ul.ticks li { margin: .35rem 0; }
.panel.done { opacity: .75; }
.panel.locked { opacity: .5; pointer-events: none; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.15rem;
  border-radius: 999px; font: 600 .95rem var(--sans); color: var(--text); cursor: pointer; text-decoration: none;
  background: rgba(20, 28, 40, .8); border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -2px 0 rgba(0,0,0,.4), 0 6px 14px -6px rgba(0,0,0,.7);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.12); color: var(--text); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { color: #fff; border-color: rgba(103,232,249,.55); background-image: linear-gradient(135deg, rgba(74,222,128,.5), rgba(34,211,238,.5)); }
.btn.danger { border-color: rgba(248,113,113,.55); color: #fecaca; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0; }
label.check { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0; cursor: pointer; }
label.check input { margin-top: .3rem; accent-color: var(--cyan); }
.choice { display: grid; gap: .5rem; margin: .6rem 0; }
.choice label { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice label:has(input:checked) { border-color: rgba(34,211,238,.55); background: rgba(34,211,238,.06); }
.choice input { margin-top: .3rem; accent-color: var(--cyan); }
select, input[type="file"] { font: inherit; color: var(--text); background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; }
.fp { font-family: var(--mono); font-size: .85rem; color: var(--green); }

/* progress + log */
.progress { height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin: .8rem 0 .3rem; border: 1px solid rgba(255,255,255,.06); }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .2s ease; }
.status { font-size: .92rem; min-height: 1.5em; }
.status.ok { color: var(--green); }
.status.err { color: var(--red); }
details.log { margin-top: .8rem; }
details.log summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
details.log pre { max-height: 260px; overflow: auto; margin: .5rem 0 0; padding: .8rem; border-radius: 10px; background: #05080d; border: 1px solid var(--line); font: .78rem/1.5 var(--mono); color: #b6c3cf; white-space: pre-wrap; overflow-wrap: anywhere; }

/* qr */
.qr { display: inline-block; padding: 10px; background: #fff; border-radius: 12px; line-height: 0; }
.qr img { width: 168px; height: 168px; image-rendering: pixelated; }

/* footer */
.foot { border-top: 1px solid var(--line); background: #070b11; margin-top: 2rem; }
.foot .wrap { padding: 1.6rem 1rem 2rem; }
.foot p { color: var(--muted); font-size: .9rem; max-width: 52rem; }

/* help */
.help h2 { margin-top: 1.6rem; }
.help .panel { margin-bottom: 1rem; }

/* weak machines: no live blur behind the bar */
@media (prefers-reduced-transparency: reduce) { .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: #0a0f17; } }

/* portrait screenshots: show the top of the screen, not the middle */
.card .art img { object-position: top; }
.dev-head .art img { max-height: 420px; object-fit: cover; object-position: top; }
.wrap > .note { margin-bottom: 1rem; }
.dev-head .badges { margin: .2rem 0 .7rem; }
