@font-face {
  font-family: 'Nasalization';
  src: url('/static/fonts/Nasalization%20Rg.otf') format('opentype');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0d10; --panel: #16181c; --card: #1e2126; --card2: #262b31; --line: #2e3238;
  --text: #e0e0e0; --muted: #9aa0a6; --dim: #6b7178; --green: #4CAF50; --red: #EF5350;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 'Segoe UI', system-ui, -apple-system, sans-serif; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.brandfont { font-family: 'Nasalization', 'Segoe UI', sans-serif; letter-spacing: 1px; }

header.top { display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top img.logo { height: 30px; filter: brightness(1.5); }
header.top .name { font-family: 'Nasalization', sans-serif; font-size: 20px; letter-spacing: 2px; color: #fff; white-space: nowrap; }
header.top .name b { color: var(--green); font-weight: normal; }
header.top nav { display: flex; gap: 6px; margin-left: 18px; }
header.top nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
header.top nav a.on, header.top nav a:hover { color: #fff; background: var(--card2); text-decoration: none; }
header.top .spacer { flex: 1; }
header.top .who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
header.top .who img { width: 28px; height: 28px; border-radius: 50%; }
button, .btn { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid #3b4046; background: var(--card2); color: var(--text); padding: 7px 14px; white-space: nowrap; }
button:hover, .btn:hover { border-color: var(--green); text-decoration: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: #08110a; font-weight: 600; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; }
.btn.primary:hover { filter: brightness(1.1); }

main { max-width: 1180px; margin: 0 auto; padding: 34px 28px 60px; }
.kicker { font-family: 'Nasalization', sans-serif; font-size: 11px; letter-spacing: 3px; color: var(--green); text-transform: uppercase; }
h1 { font-family: 'Nasalization', sans-serif; font-weight: normal; font-size: 28px; letter-spacing: 1px; margin: 6px 0 6px; color: #fff; }
h2 { font-family: 'Nasalization', sans-serif; font-weight: normal; font-size: 15px; letter-spacing: 1.5px; margin: 34px 0 12px; color: #fff; }
p.lead { color: var(--muted); margin: 0 0 28px; max-width: 720px; }

.launcher { display: flex; align-items: center; gap: 20px; background: linear-gradient(90deg, rgba(76,175,80,.14), rgba(76,175,80,.03)); border: 1px solid rgba(76,175,80,.4); border-radius: 12px; padding: 18px 24px; margin-bottom: 26px; }
.launcher img { width: 60px; height: 60px; flex: none; }
.launcher .txt { flex: 1; min-width: 0; }
.launcher .t { font-family: 'Nasalization', sans-serif; font-size: 18px; color: #fff; letter-spacing: 1px; }
.launcher .s { color: var(--muted); font-size: 13px; }
.launcher details.how { margin-top: 8px; }
.launcher .go { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.launcher .go .meta { color: var(--dim); font-size: 12px; white-space: nowrap; }
.apps { display: grid; gap: 22px; }
.app { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); overflow: hidden; }
.app .body { padding: 24px 26px; min-width: 0; }
.app .head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.app .head img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.app .head .t { font-family: 'Nasalization', sans-serif; font-size: 21px; color: #fff; letter-spacing: 1px; }
.app .head .s { color: var(--muted); font-size: 13px; }
.app .desc { color: #c5cad0; margin: 0 0 16px; white-space: pre-line; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); background: var(--card2); border-radius: 12px; padding: 2px 10px; white-space: nowrap; }
.chip.g { color: var(--green); border-color: rgba(76,175,80,.4); background: rgba(76,175,80,.08); }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.get .meta { color: var(--dim); font-size: 12px; }
.others { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
details.how { margin-top: 16px; font-size: 13px; color: var(--muted); }
details.how summary { cursor: pointer; color: var(--text); }
details.how code { background: #0f1114; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12px; overflow-wrap: anywhere; }
details.how li { margin: 4px 0; }
.app .shot { background: #0f1114 center/cover no-repeat; border-left: 1px solid var(--line); min-height: 260px; }
.legal { color: var(--dim); font-size: 11.5px; line-height: 1.55; }
.app .legal { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
footer.legal { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 900px; }
footer.legal p { margin: 0 0 8px; }
.empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 30px; text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.tile .n { font-family: 'Nasalization', sans-serif; font-size: 28px; color: #fff; }
.tile .l { color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.tablewrap { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 520px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { position: sticky; top: 0; background: var(--card2); text-align: left; font-weight: 600; color: var(--muted); padding: 9px 14px; white-space: nowrap; }
td { padding: 8px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
td.dim { color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.err { color: var(--red); }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .launcher { flex-wrap: wrap; }
  .launcher .go { align-items: flex-start; width: 100%; }
  .app .shot { border-left: 0; border-top: 1px solid var(--line); min-height: 200px; }
  header.top { padding: 12px 16px; flex-wrap: wrap; }
  header.top .who span { display: none; }
  main { padding: 24px 16px 50px; }
}
