* { box-sizing: border-box; }
:root {
  color-scheme: dark; font: 16px/1.55 "Segoe UI", system-ui, sans-serif; color: #f3f3f0;
  --page: #0b0b0b; --panel: #111; --stroke: #2c2c2a; --muted: #aeaeaa; --accent: #d4fd52;
}
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header, main, footer { width: min(1180px, calc(100% - 72px)); margin: 0 auto; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--stroke); gap: 20px; }
.brand { display: inline-flex; gap: 5px; align-items: center; font-size: 20px; font-weight: 780; letter-spacing: -.05em; white-space: nowrap; }
.brand-tool { font-weight: 420; color: var(--muted); }
.mark { position: relative; width: 23px; height: 23px; margin-right: 6px; flex: none; }
.mark::before, .mark::after { content: ""; position: absolute; inset: 10px 0; background: var(--accent); transform: rotate(45deg); }
.mark::after { transform: rotate(-45deg); }
nav { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--muted); font-size: .93rem; }
.nav-link:hover { color: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border-radius: 5px; font-size: .91rem; font-weight: 670; white-space: nowrap; }
.outline { border: 1px solid var(--stroke); background: #161616; color: #f3f3f0; }
.outline:hover { border-color: #71716a; background: #1f1f1e; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: #141709; }
.primary:hover { background: #e3ff8a; }
.hero { display: grid; grid-template-columns: 1fr .97fr; gap: 40px; align-items: center; padding: 68px 0 78px; border-bottom: 1px solid var(--stroke); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(3.5rem, 7vw, 7rem); line-height: .92; letter-spacing: -.085em; font-weight: 770; white-space: nowrap; }
h1 span { color: var(--accent); }
.hero-copy > .button { margin-top: 26px; }
.hero-art { position: relative; display: grid; place-items: center; height: min(32vw, 340px); min-height: 250px; overflow: hidden; border: 1px solid var(--stroke); border-radius: 9px; background-color: #101110; background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px); background-size: 29px 29px; }
.desktop { position: relative; width: 79%; aspect-ratio: 1.65; overflow: hidden; border: 1px solid #53564b; border-radius: 11px; box-shadow: 0 18px 45px #000b; background: #181b15; }
.desktop-bar { position: relative; display: flex; height: 23px; gap: 5px; align-items: center; padding-left: 10px; background: #11120f; border-bottom: 1px solid #36392d; z-index: 2; }
.desktop-bar i { width: 5px; height: 5px; border-radius: 50%; background: #66695c; }
.desktop-glow { position: absolute; inset: 23px 0 0; background: repeating-linear-gradient(165deg, transparent 0 17px, #deff7a18 18px, transparent 19px 35px), radial-gradient(ellipse at 72% 98%, #7b8f40, #2a3120 39%, #141611 77%); }
.mini-island { z-index: 2; position: relative; display: flex; align-items: center; gap: 8px; width: min(190px, 83%); margin: 13px auto; padding: 7px 11px; background: #080808; border: 1px solid #343631; border-radius: 20px; font-size: .78rem; font-weight: 670; }
.mini-island span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mini-island i { width: 5px; height: 5px; margin-left: auto; border-right: 1px solid #aaa; border-bottom: 1px solid #aaa; transform: rotate(45deg); }
.desktop-taskbar { position: absolute; left: 0; bottom: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 6px; height: 19px; background: #171a15; }
.desktop-taskbar i { border-radius: 2px; width: 7px; height: 7px; background: #797e6e; }
.desktop-taskbar i:first-child { background: #cad2b5; }
.catalog { padding: 40px 0 78px; min-height: 345px; scroll-margin-top: 18px; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.05em; line-height: 1.13; }
.search { position: relative; flex: 0 1 270px; }
.search span { position: absolute; top: 13px; left: 13px; width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search span::after { content: ""; position: absolute; width: 5px; height: 1.5px; background: var(--muted); bottom: -2px; right: -3px; transform: rotate(45deg); }
input, select, textarea { width: 100%; border: 1px solid #373735; background: #101010; border-radius: 5px; padding: 9px 10px; min-height: 42px; color: inherit; }
input::placeholder, textarea::placeholder { color: #8b8b86; opacity: 1; }
.search input { padding-left: 34px; }
.releases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--stroke); border-radius: 7px; background: var(--panel); overflow-wrap: anywhere; }
.card-head, .card-foot, .dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-mark { display: grid; place-items: center; width: 37px; height: 37px; background: #1d2213; border: 1px solid #424d29; color: var(--accent); border-radius: 8px; font: 720 1.25rem ui-monospace, monospace; }
.platform, .release-meta { font: .78rem/1.5 ui-monospace, Consolas, monospace; color: var(--muted); }
.card h3 { margin: 15px 0 4px; font-size: 1.27rem; line-height: 1.25; letter-spacing: -.035em; }
.description { color: var(--muted); margin-bottom: 17px; }
.card-foot { border-top: 1px solid var(--stroke); padding-top: 13px; margin-top: auto; }
#more { margin-top: 14px; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 74px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: .86rem; }
footer .brand { color: #eee; }
dialog { color: inherit; width: min(466px, calc(100% - 26px)); max-height: 92dvh; padding: 22px; background: #141414; border: 1px solid #424240; border-radius: 11px; }
dialog::backdrop { background: #000b; }
.dialog-header { margin-bottom: 15px; }
.dialog-header h2 { font-size: 1.75rem; }
.close { background: none; color: var(--muted); border: 0; font-size: 1.7rem; line-height: 1; width: 34px; height: 34px; }
.tabs, .account-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tab { color: var(--muted); padding: 5px 10px; border: 1px solid transparent; border-radius: 5px; background: none; }
.tab[aria-pressed=true] { color: #fff; background: #252525; border-color: #3d3d3a; }
form, form label { display: grid; gap: 6px; }
form { gap: 12px; }
form label { color: #e5e5e0; font-size: .93rem; }
textarea { resize: vertical; }
.status, .hint { color: var(--muted); font-size: .93rem; }
.status:empty { display: none; }
.status[data-error=true] { color: #ffb8ac; }
.hint { font-size: .86rem; }
#auth-status { margin-top: 12px; }
#catalog-status { margin-bottom: 12px; }
details { padding-top: 9px; border-top: 1px solid var(--stroke); }
summary { cursor: pointer; color: var(--muted); }
details form { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
.prefix { display: flex; align-items: center; gap: 7px; }
.prefix span { padding: 7px 10px; border: 1px solid var(--stroke); border-radius: 5px; color: var(--accent); }
@media (max-width: 980px) { .releases { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 740px) {
  .site-header, main, footer { width: calc(100% - 34px); }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 41px 0; }
  .hero-art { min-height: 220px; height: min(57vw, 320px); }
  .desktop { width: min(78%, 330px); }
  .catalog { padding-top: 29px; }
  .section-header { align-items: stretch; flex-direction: column; }
  .search { flex: auto; }
}
@media (max-width: 515px) {
  h1 { font-size: clamp(2.5rem, 12.8vw, 4rem); }
  .releases { grid-template-columns: minmax(0,1fr); }
  nav { gap: 12px; }
}

#developer { width: min(710px, calc(100% - 26px)); }
.developer-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.developer-totals > div { padding: 12px; display: grid; gap: 3px; border: 1px solid var(--stroke); border-radius: 5px; }
.developer-totals strong { font-size: 1.65rem; line-height: 1; font-variant-numeric: tabular-nums; }
.developer-totals span, .developer-meta { color: var(--muted); font-size: .86rem; }
.developer-releases { list-style: none; padding: 0; margin: 7px 0 12px; }
.developer-row { padding: 12px 0; border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.developer-row h3 { overflow-wrap: anywhere; font-size: 1rem; }
.developer-row-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.download-count { color: var(--muted); font-size: .85rem; }
.remove-release { color: #ffb8ac; }
.danger { color: #211010; border: 1px solid #ffb8ac; background: #ffb8ac; }
.danger:hover { background: #ffd1c8; }
#developer-more { margin-bottom: 10px; }
#delete-description { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  #open-developer { display: none; }
  .developer-row { align-items: start; flex-direction: column; }
}


.hero-art { box-shadow: inset 0 0 34px #c4ff4710, 0 12px 38px #0006; }
.card:hover { border-color: #646e40; }
.button:active { opacity: .86; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .nav-link, .card { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
  .card:hover { transform: translateY(-3px); }
  .hero-copy, .hero-art, .card { animation: appear .38s ease-out backwards; }
  .hero-art { animation-delay: 55ms; }
  dialog[open] { animation: appear .2s ease-out backwards; }
  dialog[open]::backdrop { animation: backdrop-in .18s ease-out both; }
}
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }
@keyframes backdrop-in { from { background: transparent; } }

