:root {
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --ink: #111827;
  --ink-2: #1F2937;
  --body: #374151;
  --muted: #4B5563;
  --faint: #9CA3AF;
  --line: #E5E7EB;
  --line-soft: #F0F1F3;
  --accent: #C2410C;
  --accent-deep: #9A3412;
  --accent-soft: #FFF1E8;
  --star: #B45309;
  --radius: 16px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--ink); text-wrap: pretty; }
code { font-size: 0.92em; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; flex: 0 0 36px; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand__name span, .site-footer__brand span { color: var(--accent); }
.brand__tagline { font-size: 14px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.is-active { background: var(--bg); color: var(--ink); }

.hero { padding: 40px 0 4px; }
.hero h1 { font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; }
.hero p { margin: 0; max-width: 60ch; color: var(--muted); font-size: 18px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; padding-top: 24px; padding-bottom: 8px; }
.layout > * { min-width: 0; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.side { display: grid; gap: 20px; }
.side__box { padding: 20px; }
.side__box h2 { font-weight: 600; font-size: 17px; margin: 0 0 12px; }

.feed { padding: 8px 24px 12px; }
.feed__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0 6px; }
.feed__head h1, .feed__head h2 { font-weight: 600; font-size: 21px; margin: 0; }
.feed__head span { font-size: 14px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 6px 0 12px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); text-align: center; min-width: 0; }
.tile:hover { background: var(--bg); color: var(--ink); }
.tile:hover .tile__t { color: var(--accent-deep); }
.tile img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; display: block; margin-bottom: 6px; box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.06); }
.tile__t { font-weight: 600; font-size: 15px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 100%; }
.tile__c { font-size: 13px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star { color: var(--star); }

.catlist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 14px; }
.catlist li { break-inside: avoid; }
.catlist a { display: flex; align-items: center; min-height: 32px; padding: 3px 0; line-height: 1.25; color: var(--ink); text-decoration: none; font-size: 14px; }
.catlist a:hover { color: var(--accent-deep); text-decoration: underline; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li + li { border-top: 1px solid var(--line-soft); }
.mini a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; color: var(--ink); min-height: 44px; }
.mini a:hover .mini__t { color: var(--accent-deep); }
.mini img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block; }
.mini__t { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mini__m { display: block; font-size: 13px; color: var(--muted); }
.about-box p { margin: 0 0 12px; color: var(--body); font-size: 15px; }

.breadcrumb { font-size: 14px; color: var(--muted); padding-top: 16px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; min-width: 0; }
.breadcrumb li { display: inline-flex; align-items: center; flex: 0 0 auto; white-space: nowrap; }
.breadcrumb li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--faint); }
.breadcrumb a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb a:hover { color: var(--accent-deep); text-decoration: underline; }
.breadcrumb + .layout, .container:has(> .breadcrumb) + .layout { padding-top: 8px; }

.article { padding: 32px 40px; }
.article h2 { font-weight: 600; font-size: 23px; margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.article h2.first { margin-top: 28px; }
.facts + .whats-new h2 { border-top: 0; padding-top: 0; margin-top: 28px; }
.article h3 { font-size: 19px; font-weight: 600; margin: 24px 0 8px; }
.article p { margin: 0 0 14px; color: var(--ink-2); }
.article ul, .article ol { margin: 0 0 14px; padding-left: 22px; color: var(--ink-2); }
.article li { margin: 0 0 6px; }
.article table { border-collapse: collapse; }

.apphead { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 16px; }
.apphead__icon { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.06); }
.apphead h1 { font-weight: 700; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; overflow-wrap: anywhere; }
.apphead--small { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; margin-bottom: 8px; }
.apphead--small .apphead__icon { width: 72px; height: 72px; border-radius: 16px; }
.apphead--small h1 { font-size: 30px; }
.article .apphead__promo { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.article .byline { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.article .apphead .byline { margin: 0; }
.byline a { color: var(--muted); }
.byline__date, .byline time { white-space: nowrap; }

.facts { display: flex; flex-wrap: wrap; row-gap: 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__item { flex: 1 1 auto; min-width: 0; padding: 2px 14px; border-left: 1px solid var(--line); }
.facts__item:first-child { padding-left: 0; border-left: 0; }
.facts__item--dev { max-width: 190px; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; white-space: nowrap; }
.facts dd { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.facts__item--dev dd { overflow: hidden; text-overflow: ellipsis; }
.facts__sub { font-weight: 400; color: var(--muted); font-size: 14px; }

.install-intro { margin: 0 0 16px; }
.article .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; counter-increment: s; margin: 0; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.steps strong { display: block; font-size: 17px; margin-top: 5px; color: var(--ink); }
.steps span { color: var(--body); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 40px 0; text-align: center; }
.app-body > h3 { margin-top: 20px; }
.cta .btn { min-width: 240px; }
.cta small { color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: #FFFFFF; font-family: var(--font-body); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-deep); color: #FFFFFF; }
.btn--off { background: var(--line); color: var(--muted); cursor: default; }
.btn--off:hover { background: var(--line); color: var(--muted); }

.pc-desc img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }
.pc-desc a, .app-description a { overflow-wrap: anywhere; }
.pc-desc table, .keyfacts table { width: 100%; font-size: 15px; }
.pc-desc td, .pc-desc th, .keyfacts td, .keyfacts th { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.keyfacts { background: var(--bg); border-radius: 12px; padding: 4px 20px 8px; margin: 0 0 18px; }
.keyfacts h3 { margin-top: 16px; }

.shots { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--faint) var(--line-soft); }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: var(--line-soft); border-radius: 4px; }
.shots::-webkit-scrollbar-thumb { background: var(--faint); border-radius: 4px; }
.shots img { height: 300px; width: auto; max-width: none; border-radius: 10px; border: 1px solid var(--line); scroll-snap-align: start; flex: 0 0 auto; }

.whats-new__summary { font-style: italic; color: var(--muted); margin: 0 0 14px; }
.whats-new__summary p:last-child { margin-bottom: 0; }
.whats-new__item + .whats-new__item { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.article .whats-new__ver { font-weight: 700; font-size: 15px; margin: 0 0 6px; color: var(--ink); }
.whats-new__dim { font-weight: 400; color: var(--muted); }
.whats-new__ver .badge { margin-left: 8px; vertical-align: middle; }
.whats-new__changelog { color: var(--ink-2); font-size: 16px; }
.whats-new__item + .whats-new__item .whats-new__changelog { color: var(--body); font-size: 15px; }
.whats-new__changelog p:last-child { margin-bottom: 12px; }
.badge, .ver__tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 700; }
.ver__tag { margin-left: 8px; vertical-align: middle; }


.article .vers { list-style: none; margin: 0; padding: 0; }
.ver { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line-soft); }
.ver:last-child { border-bottom: 0; }
.ver > div { min-width: 0; }
.ver b { font-size: 18px; }
.article .ver p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.details { width: 100%; font-size: 16px; }
.details th, .details td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.details th { color: var(--muted); font-weight: 600; width: 40%; padding-right: 12px; }
.details tr:last-child th, .details tr:last-child td { border-bottom: 0; }
.details td { overflow-wrap: anywhere; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 8px; border-top: 1px solid var(--line-soft); }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.page-link:hover { border-color: var(--accent); color: var(--accent-deep); }
.page-link.is-active { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

.static-page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 40px; margin: 8px 0 24px; max-width: 820px; }
.static-page h1 { font-size: 32px; margin: 0 0 16px; }
.static-page h2 { font-size: 21px; font-weight: 600; margin: 28px 0 8px; }
.static-page p, .static-page li { color: var(--ink-2); }

.ad-block { margin: 28px 0; text-align: center; }
.ad-block:empty { display: none; }
.label-ad { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.site-footer { background: var(--ink); color: #D1D5DB; margin-top: auto; padding: 40px 0 32px; font-size: 15px; }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.site-footer p { margin: 0; max-width: 40ch; }
.site-footer__brand { font-family: var(--font-head); font-weight: 700; color: #FFFFFF; font-size: 19px; margin: 0 0 6px; }
.site-footer__brand span { color: #FB923C; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer__links a { color: #E5E7EB; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.site-footer__links a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer__legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid #374151; color: #9CA3AF; font-size: 14px; max-width: none; }

@media (max-width: 991px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .catlist { columns: 3; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 12px 16px; }
  .facts__item, .facts__item:first-child { padding: 0; border-left: 0; }
  .facts__item--dev { grid-column: span 2; max-width: none; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .brand__tagline { display: none; }
  .site-header__bar { padding-top: 10px; padding-bottom: 6px; row-gap: 4px; }
  .nav { margin-left: -14px; }
  .hero { padding: 28px 0 0; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .layout { gap: 20px; padding-top: 16px; }
  .feed { padding: 4px 16px 8px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .article, .static-page { padding: 22px 18px; }
  .article h2 { font-size: 21px; }
  .apphead { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .apphead__icon, .apphead--small .apphead__icon { width: 64px; height: 64px; border-radius: 14px; }
  .apphead h1 { font-size: 27px; }
  .apphead--small h1 { font-size: 25px; }
  .ver .btn { width: 100%; }
  .shots img { height: 240px; }
}

@media (max-width: 480px) {
  .catlist { columns: 2; }
  .cta { align-items: stretch; }
  .details th, .details td { display: block; width: auto; padding: 0; border-bottom: 0; }
  .details th { padding-top: 10px; font-size: 13px; }
  .details td { padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
  .details tr:last-child td { border-bottom: 0; }
  .byline__date { display: block; }
  .byline__sep { display: none; }
  .pagination a.page-link:not([rel]) { display: none; }
}

@media (max-width: 360px) {
  .apphead h1, .apphead--small h1 { font-size: 22px; }
  .facts dd { font-size: 15px; }
  .facts__sub { display: none; }
}
