:root {
  color-scheme: dark;
  --ink: #eef6f4;
  --muted: #a8bbba;
  --line: #2b4045;
  --control-line: #526f73;
  --canvas: #0b1518;
  --surface: #142328;
  --surface-raised: #1b3034;
  --surface-inset: #0d1a1e;
  --accent: #93e3bf;
  --accent-hover: #c1f3dc;
  --accent-ink: #10271f;
  --accent-text: #afe8d5;
  --accent-soft: #203c36;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(ellipse at 90% 0%, #142a2e, transparent 45rem), var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { line-height: 1.55; }
a { color: var(--accent-text); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.skip { position: absolute; left: 1rem; top: -8rem; padding: .75rem; background: var(--surface); }
.skip:focus { top: .75rem; z-index: 2; }
.site-head { border-bottom: 1px solid var(--line); background: var(--surface-inset); }
.navbar, .navbar nav, .account, .actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.navbar { min-height: 68px; justify-content: space-between; padding-block: .55rem; }
.navbar nav { gap: clamp(.65rem, 3vw, 1.7rem); }
.navbar nav a { color: var(--muted); font-weight: 650; font-size: .92rem; text-decoration: none; }
.navbar nav a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.2rem; font-weight: 800; text-decoration: none; }
.brand img { display: block; object-fit: contain; }
.brand-accent { color: var(--accent); }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: .58rem .96rem; border: 1px solid transparent; border-radius: 8px; font: inherit;
  font-weight: 700; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-hover); }
button.quiet, .button.quiet { background: var(--surface); border-color: var(--control-line); color: var(--ink); }
button.quiet:hover, .button.quiet:hover { background: var(--surface-raised); }
.account form, .row form { margin: 0; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: end; gap: clamp(1.5rem, 6vw, 5rem);
  padding: clamp(2rem, 5.6vw, 4.3rem); margin: 2rem 0 2.6rem; border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(ellipse at 91% 5%, #2c5d55, transparent 68%), linear-gradient(155deg, #172e33, #101e23 70%);
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.15rem); letter-spacing: -.055em; margin: 0 0 .95rem; line-height: .98; }
.hero p { max-width: 44ch; color: #c5d9d6; font-size: 1.14rem; }
.hero-note { padding: 1.2rem; border: 1px solid #5c807a; border-radius: 12px; background: #0b151865; }
.hero-note > strong { display: block; margin-bottom: .5rem; }
.hero-note > div { padding: .65rem 0; border-top: 1px solid #5c807a; color: #d6e6e3; }
.section-title { margin: 2.6rem 0 1.3rem; }
.section-title h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: .45rem; overflow-wrap: anywhere; }
.section-title p, .helper { color: var(--muted); }
.section-bar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-bar h2, .app-heading h3, .app-heading p { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: var(--surface); }
.filters a { padding: .48rem .7rem; border-radius: 6px; color: var(--muted); font-size: .89rem; font-weight: 650; text-decoration: none; }
.filters a:hover { color: var(--ink); background: var(--surface-raised); }
.filters [aria-current] { color: var(--accent-text); background: var(--accent-soft); }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.app-card, .panel, .form-panel, .table-wrap, .metrics > div, .empty { padding: 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.app-card { min-height: 160px; }
.app-card:hover, .app-card:focus-within { border-color: var(--control-line); background: var(--surface-raised); }
.app-heading { display: flex; align-items: center; gap: .8rem; }
.app-heading h3 { margin-top: .15rem; }
.app-heading h3 a { color: var(--ink); text-decoration: none; }
.app-heading h3 a:hover { text-decoration: underline; }
.app-heading p, .app-description, .quiet-label { color: var(--muted); font-size: .92rem; }
.app-description { margin: .85rem 0 .3rem; }
.tag { display: inline-block; padding: .16rem .45rem; margin-right: .33rem; background: var(--accent-soft); color: var(--accent-text); border-radius: 6px; font-size: .73rem; font-weight: 680; }
.app-icon { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 14px; overflow: hidden; background: var(--accent-soft); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.letter { display: grid; place-items: center; font-size: 1.8rem; font-weight: 750; color: var(--accent-text); }
.pagination { margin: 1rem 0; display: flex; gap: 1rem; }
.form-panel { max-width: 690px; }
.form-panel form + form, .panel form + h3 { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
label { display: grid; gap: .38rem; margin: .75rem 0; font-weight: 650; color: var(--ink); }
input, textarea, select {
  width: 100%; padding: .55rem .68rem; min-height: 42px; border: 1px solid var(--control-line); border-radius: 6px;
  background: var(--surface-inset); color: var(--ink); font: inherit; font-weight: 450;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input::file-selector-button {
  margin-right: .55rem; padding: .28rem .55rem; border: 1px solid var(--control-line); border-radius: 5px;
  background: var(--surface-raised); color: var(--ink); font: inherit; cursor: pointer;
}
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.file-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.notice { border: 1px solid var(--control-line); border-radius: 8px; padding: .9rem; background: var(--accent-soft); margin: 1rem 0; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.panel + .panel, .dashboard-panels + .panel { margin-top: 1rem; }
.columns .panel { margin-top: 0; }
.profile-head { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.profile-head .section-title { margin: 1.7rem 0 1rem; }
.profile-head .app-icon { margin-top: .5rem; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-art { display: flex; gap: .65rem; flex-wrap: wrap; margin: .7rem 0; }
.preview-art img { max-width: min(100%, 170px); max-height: 240px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.metrics span, small { display: block; color: var(--muted); }
.metrics strong { font-size: 2rem; line-height: 1.4; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.row > div { min-width: 0; overflow-wrap: anywhere; }
.row small { line-height: 1.45; margin-top: .1rem; }
.reply { padding-left: 1.1rem; }
.empty { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.invite-link { width: 100%; min-width: 16rem; margin-top: .45rem; font-size: .85rem; }
.invite-panel { margin-top: 1rem; }
.invite-row > div { flex: 1; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: var(--surface-raised); color: var(--muted); }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); }
.social-links { margin: 1rem 0; }
.site-foot { margin: 3.2rem auto 0; padding: 1rem 0 1.8rem; border-top: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; color: var(--muted); font-size: .85rem; }
@media (max-width: 820px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-note { max-width: 400px; }
}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 28px); }
  .navbar nav { order: 3; width: 100%; margin-bottom: .2rem; }
  .app-grid, .columns, .file-fields { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { margin-top: 1rem; }
  .section-title { margin-top: 1.65rem; }
  .site-foot { flex-wrap: wrap; }
}

.store-badge { display: inline-block; margin: .6rem 0; }
.store-badge img { display: block; height: 40px; width: auto; }
.play-badge img { height: 60px; margin: -10px -8px; }
.card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }

.listing-detail { margin-block: clamp(16px, 4vw, 40px) 0; }
.listing-showcase {
  color: var(--ink);
  background: #101e23;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: clip;
  box-shadow: 0 16px 42px #03080966;
}
.listing-masthead {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 320px;
  padding: clamp(22px, 5vw, 56px);
  background: radial-gradient(ellipse at top right, #38645c 0%, #172d34 55%, #101e23 100%);
}
.listing-backdrop { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.listing-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 40%;
  filter: blur(23px) saturate(1.2);
  transform: scale(1.12);
  opacity: .78;
}
.listing-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101e23 7%, #101e23e8 42%, #101e2360 100%),
    linear-gradient(0deg, #101e23, transparent 46%);
}
.listing-intro { display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 30px); }
.listing-intro .app-icon {
  --mark-size: clamp(68px, 11vw, 124px);
  width: var(--mark-size);
  height: var(--mark-size);
  flex-basis: var(--mark-size);
  border-radius: 24%;
  box-shadow: 0 0 0 1px #ffffff32, 0 10px 36px #070d1270;
}
.listing-summary { min-width: 0; max-width: 660px; }
.listing-summary h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.3rem);
  line-height: .99;
  letter-spacing: -.05em;
  margin: 0 0 .6rem;
  overflow-wrap: anywhere;
}
.listing-byline { margin: 0 0 1.1rem; }
.listing-byline a, .listing-read-more { color: var(--accent-text); }
.listing-description { max-width: 61ch; }
.listing-description p { margin: 0; color: #e0ece9; line-height: 1.52; }
.listing-description-collapsed { overflow: hidden; max-height: calc(5 * 1.52em); }
.listing-read-more {
  min-height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.listing-read-more:hover { color: var(--ink); background: transparent; }
.listing-read-more[hidden] { display: none; }
.listing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.listing-actions .store-badge { margin: 0 4px 0 0; }
.listing-store { background: var(--surface); border-color: var(--control-line); color: var(--ink); }
.listing-store:hover { background: var(--surface-raised); }
.listing-gallery {
  padding: 0 clamp(22px, 5vw, 56px) clamp(22px, 4vw, 42px);
  background: linear-gradient(#101e23, #172a2d);
}
.listing-gallery h2 { font-size: 1.2rem; margin: 0 0 14px; }
.listing-gallery-track {
  --image-gap: 14px;
  display: flex;
  gap: var(--image-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 5px 5px 10px;
  margin: -5px -5px 0;
  scrollbar-color: #658480 transparent;
}
.listing-gallery-track a {
  display: block;
  flex: 0 0 calc((100% - 3 * var(--image-gap)) / 4);
  min-width: 130px;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid #64817e67;
  border-radius: 12px;
  background: #0f2025;
}
.listing-gallery-track a:hover { border-color: #bceade; }
.listing-gallery-track img { display: block; height: 100%; width: 100%; object-fit: contain; }
.listing-test { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; margin-top: 22px; align-items: start; }
.listing-test .panel { margin: 0; padding: clamp(18px, 3vw, 32px); }
.listing-test .panel h2 { margin-bottom: .65rem; }
.listing-test .panel p { color: var(--muted); }
.listing-feedback { scroll-margin-top: 18px; }
.listing-community-links { border-top: 1px solid var(--line); padding-top: .9rem; }
@media (max-width: 680px) {
  .listing-showcase { border-radius: 15px; }
  .listing-masthead { min-height: auto; }
  .listing-intro { display: grid; grid-template-columns: 1fr; }
  .listing-test { grid-template-columns: 1fr; }
  .listing-gallery-track a { flex-basis: 49%; }
}
