/* Showcase, credits, offline and 404 pages. */
html { background: var(--bg); color: var(--t1); -webkit-text-size-adjust: 100%; scroll-padding-top: 128px; }
body { margin: 0; min-height: 100vh; font: 400 17px/26px var(--text);
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(232, 176, 74, .10), transparent 70%),
    radial-gradient(900px 600px at 6% -6%, rgba(40, 120, 90, .14), transparent 70%),
    var(--bg) fixed; }
a { color: var(--t1); text-underline-offset: .18em; }
a:hover { color: var(--gold-hi); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tri { display: inline-block; width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(14, 20, 17, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 6px rgba(232, 150, 60, .35)); }
.logo-txt { display: flex; flex-direction: column; min-width: 0; }
.logo-k { font: 500 11px/14px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.logo-n { font: 700 17px/20px var(--head); color: var(--t1); white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--t2); font: 500 16px/1 var(--text); }
.nav a:hover { color: var(--t1); background: var(--s1); }
.top-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 10px; border: 1.5px solid var(--chip); color: var(--t1); text-decoration: none; font: 600 16px/1 var(--text); flex: none; }
.top-cta:hover { border-color: var(--gold); color: var(--gold-hi); }
.top-cta .ico { width: 22px; height: 22px; }
.netbar { background: var(--s2); color: var(--t1); font: 500 15px/40px var(--text); border-bottom: 1px solid var(--line); }
.install { background: var(--s2); border-bottom: 1px solid var(--line); }
.install-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.install-t { margin: 0; flex: 1; font: 500 16px/1.4 var(--text); }
.install-go { flex: none; }
.install-x { flex: none; }

/* Intro */
.intro { padding-top: 28px; padding-bottom: 18px; }
.intro-h { margin: 0; font: 700 clamp(26px, 3.4vw, 40px)/1.15 var(--head); letter-spacing: -.01em; text-wrap: balance; }
.intro-p { margin: 10px 0 0; max-width: 54em; color: var(--t2); font-size: 17px; text-wrap: pretty; }
.intro-p a { color: var(--gold); white-space: nowrap; }

/* Featured */
.feat { position: relative; }
.feat-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 12px; scrollbar-width: none; }
.feat-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr) auto; gap: 32px; align-items: center;
  padding: 28px; overflow: hidden; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.slide-amb { position: absolute; inset: -60px; background: var(--amb) center / cover no-repeat; filter: blur(48px) saturate(1.2); opacity: .35; z-index: 0; }
.slide::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(14, 20, 17, .2), rgba(14, 20, 17, .75) 45%, rgba(14, 20, 17, .55)); }
.slide > :not(.slide-amb) { position: relative; z-index: 1; }
.slide-poster { display: block; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.slide-poster img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.slide-genre { margin: 0 0 6px; font: 500 15px/20px var(--text); color: var(--gold); }
.slide-title { margin: 0; font: 700 clamp(28px, 3.4vw, 44px)/1.1 var(--head); letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.slide-title a { text-decoration: none; }
.slide-en { margin: 4px 0 0; font: italic 500 16px/22px var(--text); color: var(--t2); }
.slide-desc { margin: 14px 0 0; color: var(--t2); max-width: 36em; font-size: 17px; line-height: 26px; }
.slide-tags { margin: 10px 0 0; font: 500 15px/22px var(--text); color: var(--t3); }
.slide-meta { margin: 12px 0 0; font: 500 15px/20px var(--text); color: var(--t3); }
.slide-act { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; margin-top: 18px; }
.slide-play { min-height: 56px; padding: 0 30px; font-size: 19px; }
.slide-act { flex-direction: column; align-items: stretch; max-width: 340px; }
.dl--quiet .btn-ghost { border: 0; background: none; min-height: 44px; padding: 0; justify-content: flex-start; color: var(--t2); font: 500 16px/1.3 var(--text); text-decoration: underline; text-underline-offset: .2em; box-shadow: none; }
.dl--quiet .btn-ghost:hover { color: var(--gold-hi); }
.dl--quiet .dl-note { display: none; }
.slide .cap-need { font: 500 15px/1 var(--text); color: var(--t2); }
.slide.dim .slide-poster img { filter: grayscale(.6) brightness(.7); }
.slide.dim .slide-play { display: none; }
.feat--list { display: flex; flex-direction: column; gap: 20px; }
.intro-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--s2); color: var(--t1); font: 500 15px/1.4 var(--text); }
.slide-shots { display: flex; gap: 12px; }
.slide-shots a:nth-child(n+3) { display: none; }
.slide-shots a { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.slide-shots img { display: block; width: 130px; height: auto; aspect-ratio: 405 / 900; object-fit: cover; }
.feat-nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.feat-arrow { width: 48px; height: 48px; border-radius: 10px; border: 0; background: var(--s1); color: var(--t1); font: 400 28px/1 var(--text); cursor: pointer; }
.feat-arrow:hover { background: var(--s2); color: var(--gold-hi); }
.segs { display: flex; gap: 4px; }
.seg { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.seg i { display: block; width: 32px; height: 4px; border-radius: 2px; background: var(--s3); transition: background .2s var(--ease); }
.seg[aria-current="true"] i { background: var(--gold); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--chip); background: transparent;
  color: var(--t2); font: 500 16px/20px var(--text); cursor: pointer; white-space: nowrap; transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease); }
.chip:hover { border-color: var(--gold); color: var(--t1); }
.chip[aria-pressed="true"] { background: var(--chip-on); border-color: var(--gold); color: var(--gold-hi); }
.chip[aria-pressed="true"]:not([data-tag=""])::before { content: '✓'; }
.chip[aria-disabled="true"] { opacity: .45; }
.chip-n { color: var(--t3); font-size: 14px; }
.chip-off { color: var(--ok); }

/* Catalog */
.cat { padding-top: 44px; padding-bottom: 32px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.cat-head h2 { margin: 0; font: 600 24px/30px var(--head); }
.count { color: var(--t3); font: 500 15px/1 var(--text); }
.count b { color: var(--t1); font-weight: 600; }
.sort { margin-left: auto; }
.sort select { min-height: 44px; padding: 0 36px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--s1); color: var(--t1); font: 500 16px/1 var(--text);
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--t2) 50%), linear-gradient(135deg, var(--t2) 50%, transparent 50%);
  background-position: right 18px top 50%, right 12px top 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.find { margin-top: 16px; }
.find input { width: min(100%, 360px); min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--s1); color: var(--t1); font: 400 17px/1 var(--text); }
.filter { position: sticky; top: calc(61px + env(safe-area-inset-top)); z-index: 20; display: flex; align-items: center; gap: 12px; margin: 14px -16px 0; padding: 8px 16px;
  background: rgba(14, 20, 17, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.filter-l { flex: none; color: var(--t2); font: 500 16px/1 var(--text); }
.chips-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 32px; }
.chips-row::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 18px; }
.cap { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease); }
.cap-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--s2); }
.cap-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .16s var(--ease), filter .2s var(--ease); }
.cap-shot { position: absolute; inset: 0; opacity: 0; background: center / contain no-repeat, rgba(10, 15, 13, .8); transition: opacity .25s var(--ease); }
.cap-shot.on { opacity: 1; }
.cap-t { padding: 12px 14px 0; font: 600 18px/24px var(--text); color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-m { padding: 2px 14px 0; font: 500 14px/20px var(--text); color: var(--t3); }
.cap-play { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 8px; background: var(--gold); color: var(--gold-ink);
  font: 700 16px/1 var(--text); box-shadow: inset 0 -2px 0 var(--gold-edge); }
.cap-t + .cap-m { padding-bottom: 14px; }
.cap-need { margin: -8px 14px 14px; font: 500 14px/20px var(--text); color: var(--t2); }
.b-new, .b-off { position: absolute; top: 8px; z-index: 2; height: 28px; padding: 0 10px; border-radius: 8px; font: 600 14px/28px var(--text); background: rgba(10, 15, 13, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.b-new { right: 8px; color: var(--gold-hi); }
.b-off { left: 8px; color: var(--ok); }
.b-off.upd { color: var(--gold-hi); box-shadow: inset 0 0 0 1.5px var(--gold); }
.cap.dim .cap-img img { filter: grayscale(.6) brightness(.7); }
.cap.dim .cap-play { display: none; }
.empty { margin: 28px 0; padding: 28px; border-radius: 12px; background: var(--s1); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty p { margin: 0; font: 600 20px/1.3 var(--text); }
.empty a { color: var(--t2); }
.more { display: flex; justify-content: center; margin-top: 24px; }
@media (hover: hover) {
  .cap:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 60%, transparent); box-shadow: 0 12px 32px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
  .cap:hover .cap-img img { transform: scale(1.04); }
  .cap:active { transform: translateY(-1px) scale(.99); }
  .cap .cap-play { opacity: 0; transition: opacity .16s var(--ease); }
  .cap:hover .cap-play, .cap:focus-visible .cap-play { opacity: 1; }
  .slide-poster:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0, 0, 0, .55), 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent); }
}

/* About */
.about { margin-top: 40px; background: var(--s1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.about-text { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; align-items: start; }
.about-logo { width: 112px; height: auto; filter: drop-shadow(0 6px 18px rgba(232, 150, 60, .35)); }
.about h2 { margin: 0 0 14px; font: 600 24px/30px var(--head); }
.about p { margin: 0 0 14px; color: var(--t2); max-width: 40em; }
.about-sign { color: var(--t1) !important; font-style: italic; }
.about-links h3 { margin: 0 0 14px; font: 600 18px/24px var(--head); }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.link { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 12px; background: var(--s2); text-decoration: none; color: var(--t1); }
.link:hover { background: var(--s3); color: var(--t1); }
.link .ico { width: 28px; height: 28px; color: var(--t2); }
.link--main { box-shadow: inset 0 0 0 1.5px var(--gold); }
.link--main .ico { color: var(--gold-hi); }
.link b { display: block; font: 600 17px/22px var(--text); overflow-wrap: anywhere; }
.link small { display: block; font: 400 14px/20px var(--text); color: var(--t3); }

/* Footer */
.foot { padding: 24px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--t3); font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a, .foot-install { color: var(--t2); min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: .2em; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: center; }
.step-ico { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--s3); display: grid; place-items: center; color: var(--t1); font-weight: 700; }
.step-ico svg { width: 24px; height: 24px; color: var(--gold-hi); }

/* Credits */
.credits { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 48px; padding-top: 32px; padding-bottom: 32px; }
.toc { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc p { margin: 0 0 6px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.toc a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--t2); }
.toc a:hover { background: var(--s1); color: var(--t1); }
.credits h1, .msg h1 { margin: 0 0 10px; font: 700 clamp(28px, 4vw, 40px)/1.15 var(--head); }
.lead { color: var(--t2); margin: 0 0 18px; }
.cr-group { padding: 22px 0 6px; scroll-margin-top: 80px; }
.cr-group h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font: 600 20px/26px var(--head); }
.cr-group h2 small { font: italic 500 15px/1 var(--text); color: var(--t3); }
.cr-poster img { display: block; width: 48px; height: 48px; border-radius: 8px; }
.msg { padding-top: 48px; padding-bottom: 48px; }
.msg .grid { margin: 18px 0; }

/* Tablet */
@media (max-width: 1100px) {
  .slide { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .slide-shots { display: none; }
  .credits { grid-template-columns: 1fr; }
  .toc { display: none; }
  .about-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .nav { display: none; } .top-cta { margin-left: auto; } }
/* Phone */
@media (max-width: 640px) {
  .top-in { height: 56px; gap: 10px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-k { font-size: 10px; letter-spacing: .04em; }
  .logo-n { font-size: 15px; }
  .intro { padding-top: 16px; padding-bottom: 12px; }
  .intro-h { font-size: 22px; line-height: 28px; }
  .intro-p { font-size: 16px; line-height: 24px; }
  .slide { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .slide-poster { max-width: 300px; width: 100%; justify-self: center; }
  .slide-act { max-width: none; }
  .slide-shots { display: none !important; }
  .slide-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .slide-play { width: 100%; }
  .slide-act .dl { width: 100%; }
  .feat-arrow { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cap-t { font-size: 17px; padding: 10px 12px 0; }
  .cap-m { padding: 2px 12px 0; }
  .filter { margin-left: -16px; margin-right: -16px; }
  .filter-l { display: none; }
  .chip { min-height: 48px; }
  .about-text { grid-template-columns: 1fr; }
  .about-logo { width: 88px; }
  .install-in { flex-wrap: wrap; }
  .install-t { flex-basis: 100%; }
}
@media (max-width: 430px) { .logo-k { display: none; } .logo-n { font-size: 15px; } }
@media (max-width: 340px) { .top-cta-l { display: none; } .top-cta { padding: 0 10px; } }
